|
 |
|
06-18-2009, 02:24 PM
|
#16
|
|
North of the land of Hey Huns
Join Date: Jun 2004
Location: Westminster, MD
Posts: 1,034
|
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.
|
|
|
|
Sponsored links
|
|
Advertisement
|
|
06-18-2009, 02:24 PM
|
#17
|
|
Mod - OBDII GPS Logger forum
Join Date: Mar 2009
Location: Los Angeles
Posts: 401
|
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 (-;
|
|
|
06-18-2009, 02:29 PM
|
#18
|
|
Mod - OBDII GPS Logger forum
Join Date: Mar 2009
Location: Los Angeles
Posts: 401
|
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 (-;
|
|
|
06-18-2009, 02:59 PM
|
#19
|
|
Constant Bitrate
Join Date: Aug 2007
Location: Northern VA
Posts: 125
|
Thanks for the info malcom2073. I'd love to hear what 2k1Toaster has to say about it too.
|
|
|
06-21-2009, 01:42 PM
|
#20
|
|
Mod - OBDII GPS Logger forum
Join Date: Mar 2009
Location: Los Angeles
Posts: 401
|
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 (-;
|
|
|
06-22-2009, 09:36 AM
|
#21
|
|
Constant Bitrate
Join Date: Aug 2007
Location: Northern VA
Posts: 125
|
Thanks Gary. Will give it a spin once I get my sensor issues resolved.
|
|
|
06-23-2009, 06:40 PM
|
#22
|
|
Mod - OBDII GPS Logger forum
Join Date: Mar 2009
Location: Los Angeles
Posts: 401
|
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 (-;
|
|
|
06-23-2009, 08:03 PM
|
#23
|
|
Constant Bitrate
Join Date: Aug 2007
Location: Northern VA
Posts: 125
|
Quote: Originally Posted by chunkyks 
I gave my feedback there, but excellent job Gary - works a treat!
|
|
|
|
Sponsored links
|
|
Advertisement
|
|
06-23-2009, 09:33 PM
|
#24
|
|
licensed to kill
Join Date: Aug 2006
Location: Deep in the Rockies... coding in caves
Posts: 1,038
|
Quote: Originally Posted by cgalpin 
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
|
|
|
06-24-2009, 07:55 AM
|
#25
|
|
Constant Bitrate
Join Date: Aug 2007
Location: Northern VA
Posts: 125
|
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.
|
|
|
06-24-2009, 05:15 PM
|
#26
|
|
Mod - OBDII GPS Logger forum
Join Date: Mar 2009
Location: Los Angeles
Posts: 401
|
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 (-;
|
|
|
|
Sponsored links
|
|
Advertisement
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 08:05 AM.
| |