Sponsored links

Go Back   MP3Car.com > Mp3Car Technical > Engine Management, OBD-II, Engine Diagnostics, etc.


Reply
 
Share Thread Tools Display Modes
Old 06-18-2009, 02:24 PM   #16
North of the land of Hey Huns
 
Join Date: Jun 2004
Location: Westminster, MD
Posts: 1,034
malcom2073 is a name known to allmalcom2073 is a name known to allmalcom2073 is a name known to allmalcom2073 is a name known to allmalcom2073 is a name known to allmalcom2073 is a name known to all
Upon talking to an EE sitting next to me, he said that most microcontroller analog inputs are so high impedance to make it a non issue and you won't get any voltage drop. Perhaps 2k1toaster could pop by and confirm that the PIC chip the fb uses is high impedance on the analog inputs?
__________________
RevFE - Try it, you just might like it.
Carbon - Next Generation Touchscreen Browser
Come join us on IRC: irc.efnet.net #mp3car
Audiophiles make me chuckle as they pad my wallet.
malcom2073 is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Old 06-18-2009, 02:24 PM   #17
Mod - OBDII GPS Logger forum
 
Join Date: Mar 2009
Location: Los Angeles
Posts: 401
chunkyks is on a distinguished road
Bugbyte: no, hadn't found that thread yet. I first discovered there was such a thing as fusion brain about half an hour ago. Perhaps tripzero could throw in his 0.2 if he lurks on this forum still?

malcolm: Diffs are always welcome - especially from you, who unwittingly wrote a large part of the code in obdsim already [although that amount as a percentage is decreasing rapidly!] :-)

Also, malcolm, I had to make some changes to make the code run on OSX and on OpenSolaris - the OSX changes are in my repo already [eg, using posix_openpt(3) instead of hardcoding the linux on-filesystem equivalent], the OpenSolaris ones need a bit more testing before I'm going to commit them. You might find some of these changes useful to feed back into your own sim. [I ripped out windows support, though, since for now I have neither the urge nor the capability to support it - if anyone contributes patches for windows for obdsim, I'd definitely welcome them]

The manpages for pts(4) and pty(7) also make good reading. I think you need to use grantpt(3) and unlockpt(3) in your sim to be properly safe.

Gary (-;
chunkyks is offline   Reply With Quote
Old 06-18-2009, 02:29 PM   #18
Mod - OBDII GPS Logger forum
 
Join Date: Mar 2009
Location: Los Angeles
Posts: 401
chunkyks is on a distinguished road
Oh, and by the way; the current plugin API is limited in that you can only have one data generator plugged in at a time, changed at compile-time. I have the pattern worked out in my head to make all generators available in the same binary, but it will be a couple of [small] API changes.

If anyone actually writes code in the time between now and then [probably a couple days], then some extra fluff will be necessary to make it fit. I'm keeping the current set of functions prototypes in datasource.c, though, so the change will be very easy.

Gary (-;
chunkyks is offline   Reply With Quote
Old 06-18-2009, 02:59 PM   #19
Constant Bitrate
 
Join Date: Aug 2007
Location: Northern VA
Posts: 125
cgalpin is an unknown quantity at this point
Thanks for the info malcom2073. I'd love to hear what 2k1Toaster has to say about it too.
cgalpin is offline   Reply With Quote
Old 06-21-2009, 01:42 PM   #20
Mod - OBDII GPS Logger forum
 
Join Date: Mar 2009
Location: Los Angeles
Posts: 401
chunkyks is on a distinguished road
The dbus - fusion brain thing is done, by the way, as is the ability to have multiple plugins all compiled in at once.

I mentioned it on the fusion brain forum here: http://www.mp3car.com/vbulletin/fusi...ion-brain.html

Have fun,
Gary (-;
chunkyks is offline   Reply With Quote
Old 06-22-2009, 09:36 AM   #21
Constant Bitrate
 
Join Date: Aug 2007
Location: Northern VA
Posts: 125
cgalpin is an unknown quantity at this point
Thanks Gary. Will give it a spin once I get my sensor issues resolved.
cgalpin is offline   Reply With Quote
Old 06-23-2009, 06:40 PM   #22
Mod - OBDII GPS Logger forum
 
Join Date: Mar 2009
Location: Los Angeles
Posts: 401
chunkyks is on a distinguished road
Also, after some discussion on IRC the other day, I implemented a dlopen plugin so that you can dynamically load libraries instead of needing to compile them in. This should be more appealing to people wishing to keep their source closed.

Example usage might be:
Code:
obdsim -g dlopen -s /usr/local/lib/libobdsimdl_vagcom.so

Assuming anyone writes a vag-com interface and was wanting to keep it closed, of course.

Gary (-;
chunkyks is offline   Reply With Quote
Old 06-23-2009, 08:03 PM   #23
Constant Bitrate
 
Join Date: Aug 2007
Location: Northern VA
Posts: 125
cgalpin is an unknown quantity at this point
Quote: Originally Posted by chunkyks View Post
The dbus - fusion brain thing is done, by the way, as is the ability to have multiple plugins all compiled in at once.

I mentioned it on the fusion brain forum here: http://www.mp3car.com/vbulletin/fusi...ion-brain.html

Have fun,
Gary (-;

I gave my feedback there, but excellent job Gary - works a treat!
cgalpin is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Old 06-23-2009, 09:33 PM   #24
licensed to kill
 
kev000's Avatar
 
Join Date: Aug 2006
Location: Deep in the Rockies... coding in caves
Posts: 1,038
kev000 will become famous soon enough
Quote: Originally Posted by cgalpin View Post
I gave my feedback there, but excellent job Gary - works a treat!

Video or it never happened.
__________________
LinuxICE - because my car already has enough windows (and because I like speed).
LinuxICE2 beta2 is released!!! get it now!
Follow OpenICE development
kev000 is offline   Reply With Quote
Old 06-24-2009, 07:55 AM   #25
Constant Bitrate
 
Join Date: Aug 2007
Location: Northern VA
Posts: 125
cgalpin is an unknown quantity at this point
LOL. Not much to see other than me running my fingers over the analog input pins to create some data, and 3 shells spitting out data This description would be more informative:

sensor (or me) -[volts]-> FB -[USB]-> fbd - [dbus] -> obdsim - [OBDII/ELM]-> obdlogger

I guess I can try obdgui at some point and show me warming/cooling a temp sensor or something.
cgalpin is offline   Reply With Quote
Old 06-24-2009, 05:15 PM   #26
Mod - OBDII GPS Logger forum
 
Join Date: Mar 2009
Location: Los Angeles
Posts: 401
chunkyks is on a distinguished road
It occurred to me that this would make an excellent poor man's partially-hardware obd simulator. Not sure exactly how much use it would be, but a couple pots, an FB, and you'd be gold

Gary (-;
chunkyks is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




All times are GMT -5. The time now is 08:05 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.2
Copyright © 1999 - 2008 Mp3Car.com Inc.Ad Management by RedTyger
Message Board Statistics