minigpsd/miniobd2d 0.31
0.30 is at rc6 and I will be moving it to an official release shortly.
However I've refactored the code and the shared memory stuff worked so well I also wrote an OBD2 version that works with elm-327 compatible devices (I use obdpros). For the bleeding edgers, the links are up at http://www.zdez.org but it is a beta. Minigpsd should function the same, but you will need to manually start miniobd2d (the OBD settings are from the minigpsd setup programs - uncheck Harley), and the obdecode program (xterm - prints out status when any parameter changes) Minigpsd has a new annotation UDP port. Send any text to port 32347 and it will be added as an XML comment in the KML file. It truncates the line at the first control character, but you can send multiple lines. I don't protect for double-dash (if "--" appears in the text) which will confuse Google Earth. Miniobd2d will write the PID returns to this port so they will be logged in the KML. Major TODOs: 0. Start up miniobd2d when minigpsd starts, alternately add to the setup program. 1. Scheduler - so mobd2d will do rpm, speed, etc. more often than coolant temperature, user settable. 2. Startup/connect robustness (sometimes the connection doesn't respond or is slow causing problems). Also figure out if I have to add special things for special vehicles. 3. Python dashboard - something simple but fast showing all the gauge information. I have something simple for my Harley. |
Re: minigpsd/miniobd2d 0.31
1 Attachment(s)
Slight update, not really stable, but the scheduler is in.
(speed, heading from gps, rpm, and engine coolant temp) |
Re: minigpsd/miniobd2d 0.31
How is your obd-II different from carman (aside from the obvious). And have you considered working with/adding to carman? I'm not sure if their souce is available yet, though.
|
Re: minigpsd/miniobd2d 0.31
I have already started a message stream with the CarMan project. My project is more toward logging, not display, so the "engine" is more important than the "body". In fact I've altered the program and wrote example programs SPECIFICALLY so that it would be fast and easy to integrate into Carman, but Carman itself is larger and more complex, though I think minigpsd/miniobd2d would simplify it a great deal.
My code is GPLv3 - they are welcome to use it. But I am still working on the OBD2 communication core. |
Re: minigpsd/miniobd2d 0.31
The logging of the data is a great addition, but it'd be best if Carman would abstract the interface and use a library or even miniobd2 for their purprose. This way, 3rd party applications can use the same interface again. And, the logs can be parsed with other applications such as Fuelpad.
|
Re: minigpsd/miniobd2d 0.31
Carman has 2 abstraction layers. The first one is in libobd or the old obdlib(python) that deals with the obd communication itself and support ELM and ozen based scantools. The second layer was added on the 0.7 version with a daemon that collects data from GPS and OBD, save them to build a trip log and send them though D-Bus to the UI. The code is GPL as well and it is available at the garage's svn (carman project).
|
Re: minigpsd/miniobd2d 0.31
0.31-pre0c is in Extras-devel.
|
Re: minigpsd/miniobd2d 0.31
1 Attachment(s)
0.31-pre0d is on http://www.zdez.org - the big thing is Valentine V1 radar detector support.
|
Re: minigpsd/miniobd2d 0.31
Quote:
I just installed pre0c and tried it with a ELM327 Bluetooth OBD2 CAN-BUS Interface Scanner elm_327 ( http://cgi.ebay.com/ws/eBayISAPI.dll...m=370109454632 ) I could not check the OBD2 decoding (I could not download the saved kmz files yet, maybe later tonight) but one thing I noticed is that Carman can't see the OBD2 adapter while minigpsd is running. As soon as I stop minigpsd, Carman connects just fine to the adapter. Regards, Hakan |
Re: minigpsd/miniobd2d 0.31
At this time Carman and minigpsd use the same "connection" which can only be used one at a time.
|
Re: minigpsd/miniobd2d 0.31
Quote:
Any news on the Carman minigpsd integration? I really love using minigpsd to log my voyages (including ODBII data), but showing off the spiffy Carman interface every now and then would be nice, too :p Regards, Hakan |
Re: minigpsd/miniobd2d 0.31
I tried but Carman has some complex DBUS messaging with NO examples of how to send the bits of data. Minigpsd has examples both in python and c of how to pick up its data - both obd and gps - and display it (removing the printfs and adding the dbus sends should be all that is necessary, but it is beyond me).
|
Re: minigpsd/miniobd2d 0.31
For the moment, bluez-utils-test osso6 will be in extras-devel, and osso4 will remain in extras.
I don't think I can do both versions and I would like to wait a few days until more people have updated to 5.2008. |
Re: minigpsd/miniobd2d 0.31
For the record, I have updated my N810 to 5.2008 and successfully installed minigpsd-0.31b after that.
Regards, Hakan |
Re: minigpsd/miniobd2d 0.31
Quote:
I think I noticed a white dot on the lower left of the status icon. Does this signify the OBD connection? The bluetooth statusbar applet turns blue too while I'm in the vicinity of my car, and clicking on it shows that it is connected with "CAN OBDII". Regards, Hakan |
Re: minigpsd/miniobd2d 0.31
Yes. It will show a dot in the UL for GPS, the LL for OBD.
Harley must be off since that is for the non-OBD2 datastream of harley motorcycles. V1 is for my radar detector which I can also pull data via bluetooth with a special interface (It is in one of the threads). |
Re: minigpsd/miniobd2d 0.31
I can't get the OBD tracing to work, so I'm working my way through the source code of 0.31a. Could you please tell me whether I'm on the right track?
Quote:
I see GPS data (which MaemoMapper can use) and the dots for the sattelites (and the green circle), but never the UL white dot. Quote:
The bluetooth icon shows that my N810 is connected to the ELM adapter, but I can't see anything that looks like OBD in the KML file. If I read the function calcobd() in harley.c correctly, I should at least see $PDERR or $PDMSG in my KML if this function is ever called, right? Regards, Hakan |
Re: minigpsd/miniobd2d 0.31
Quote:
Regards, Hakan |
Re: minigpsd/miniobd2d 0.31
Is there a way of using obdII via serial USB converter?
It's bit frustrating that on tablets the only way is bluetooth way especially when tablets have hardwired serial ports as well as good usb rs232 dongle support. |
Re: minigpsd/miniobd2d 0.31
Source problems:
Get 0.31b from www.zdez.org (source). There will be a 0.31c shortly, but maybe in extras-devel. I'll see if I can find a KMZ with data. They should appear as KML comments with an l just after the timestamp and the obd message values. USB Converter OBD2: Remove /dev/rfcomm1 in the device field in the config program and replace it with /dev/ttyUSB0 or /dev/ttyACM0 or whatever the serial port comes up as. Note: I don't set the baud rate, so you will need to do stty or something similar, or set the OBD device to the device default (or wait for me to add a baudrate field). |
Re: minigpsd/miniobd2d 0.31
Quote:
By the way, you named your OBD trace lines "$PDxyz". Are those names standartized or your own invention? Quote:
Regards, Hakan |
Re: minigpsd/miniobd2d 0.31
0.31c isn't out yet. I'll see if I can get it to zdez shortly.
I'll try to split the temp/light when I do that. http://www.gpsinformation.org/dale/nmea.htm gives the rules for proprietary sentences (which I'm breaking). Technically it should be Pxxxyyy where the three letters for xxx never varies(GRM for garmin, NOK for nokia), and yyy is the item and can be a length I choose and the format of following data is up to me . OBD data is not NMEAized right now, but it is on my todo list. You would get the individual bytes, e.g. something like 65535l( 41 0C 12 34 ) in the log as an XML comment. When I NMEAize them, they will be something like Harley, or might be PDOxy where xy is the hexadecimal PID for those that aren't easily decoded. But RPM and speed will follow what I'm doing for my Harley. I might try NMEAizing the OBD too. |
Re: minigpsd/miniobd2d 0.31
0.31c is up on http://www.zdez.org if you want to try. I haven't fully tested it, but I've tried to NMEAize the OBD and sensors ($PDSNS,<lux>,<temp>*ck)
|
Re: minigpsd/miniobd2d 0.31
I am still having trouble installing. My problem is that i have bluz-utils*osso6
instead of bluez-utils*osso4 How can i fix. |
Re: minigpsd/miniobd2d 0.31
Do you have an error message? If you've done the SSU, and bluez-utils-test-3.28osso6, everything should work. That version of bluez-utils-test is in extras-devel as well as the main repository pool
http://repository.maemo.org/extras-d...sso6_armel.deb http://repository.maemo.org//pool/di...sso6_armel.deb |
Re: minigpsd/miniobd2d 0.31
Quote:
I just installed and used 0.31c. I'll check the NMEAzition of the OBD and sensors later tonight when I'm at home and have access to the data files on my table again ( typing this at work :p ) I still see only the white dot on the lower left but since GPS works, I guess this isn't really important ;-) If I stop minigpsd and start miniobd from the command line, I see the following output: Code:
~ $ /usr/bin/miniobd2 Code:
Disconnected I don't have any other programm using the BT connection, and after stopping miniobd2, carman shows my OBD values just fine. I'll install strace later tonight, perhaps this sheds more light on my problem :confused: Regards, Hakan |
Re: minigpsd/miniobd2d 0.31
is the 00:18:E4... the correct address for the OBD interface?
You've set the OBD bt address, checked OBD on, Harley is unchecked? Is there any way you can use a terminal to type commands? (ATZ, ATSP0, ATE1, ATH0, 00 each as a separate command)? I have a real elm327 but there are clones that don't always play by the same rules. miniobd2d will just "sit there" even if everything is working since the other programs will interpret the data from files or connections. Are you running carman at the same time? That won't work. |
Re: minigpsd/miniobd2d 0.31
Quote:
Quote:
Then again, reading mgsetuplib.py, I just noticed that there is a checkbox called "HD". Is this the "Harley" you were talking about? If so, maybe you should put a space between the "HD" and the "Device" labels, it looks like just one word now. I'll try to get a screenshot later tonight. Quote:
Quote:
Quote:
Regards, Hakan |
Re: minigpsd/miniobd2d 0.31
Uncheck "On". I need to tweak the UI to make it clear that
OBD X On X HD means OBD (X On ) ( X HD ) HD=HarleyDavidson. |
Re: minigpsd/miniobd2d 0.31
0.31d is up on http://www.zdez.org if you want to try. V1 nemaized, and fixed an annoying bug that would leave blank btconnect tasks running (eating cpu).
|
Re: minigpsd/miniobd2d 0.31
Hi,
Quote:
I can see the "miniobd2d" process in the task list, so I'm pretty sure that the standalone programm is launched (as opposed to the harley parser built-in in minigpsd) If I run miniobd2d from the command line, I get Code:
Presss CTRL-C for hangup Regards, Hakan |
Re: minigpsd/miniobd2d 0.31
Quote:
By the way, could you please put obd2dash.py into the installation image too? I guess that you always need the "correct" version for the "struct.unpack()" calls. Using the currently distributed obd2dash.py gives me Code:
/media/mmc1/minigpsd $ python obd2dash.py Regards, Hakan |
Re: minigpsd/miniobd2d 0.31
oops. I will have time since I'm off work until monday and will be able to sync up 0.31 for a pre-release version.
|
Re: minigpsd/miniobd2d 0.31
0.31e is out on zdez, will be in extras-devel shortly
Fixed lots of problems and OBD is logged: Code:
<Placemark> |
Re: minigpsd/miniobd2d 0.31
Quote:
Where can I find docs on how to translate that into usable data? |
Re: minigpsd/miniobd2d 0.31
http://en.wikipedia.org/wiki/OBD-II_PIDs
Among others. Data is in hexadecimal (base 16). 41 is a response. 0C is the PID. 0B54 is the RPM*4 The accompanying program in python that does the dashboard contains the equations to do conversions. |
Re: minigpsd/miniobd2d 0.31
Quote:
|
Re: minigpsd/miniobd2d 0.31
Someone PM'ed me but has the account set to NOT receive private messages, which include replys.
I also just got a sparkfun 6dof accelerometer gyro combination. http://www.sparkfun.com/commerce/pro...oducts_id=8190 (I got the 75 deg/sec - better precision for vehicles, but perhaps not for other applications, the 150 or 300 might be better). It will be integrated into minigpsd when I have some free time. |
Re: minigpsd/miniobd2d 0.31
it was me :) i PM-ed you before my account got blocked for MP-s :)
did you receive my pm? :) |
Re: minigpsd/miniobd2d 0.31
I got the PM but I couldn't reply. In short, you might need to configure it first (upon install it should work). It would be simple to write just the minimal information in CSV (and optionally zip that). Starting things up from boot is also fairly simple.
If you can't PM, just ask here. |
All times are GMT. The time now is 18:49. |
vBulletin® Version 3.8.8