Active Topics

 



Notices


Reply
Thread Tools
Posts: 27 | Thanked: 0 times | Joined on Oct 2008 @ Munich, Germany
#31
Hi,

Originally Posted by tz1 View Post
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.
I just got around to look into my traces of a run with "HD" off. I can see the "$PDSNS" traces, but still no luck with any output that looks like OBD2 (No "$PDOBD," in the trace).

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
RECONNECTED
RESPERR:
RECONNECTED
resperr3:
>esperr3:
resperr2:
>esperr3:
resperr2:
>esperr3:
resperr3:
Disconnected
Can't connect RFCOMM socket: Device or resource busy
I still have to strace that process to see what's going on.


Regards,
Hakan
 
Posts: 27 | Thanked: 0 times | Joined on Oct 2008 @ Munich, Germany
#32
Originally Posted by tz1 View Post
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).
Thanks, I just installed it and will take it for a spin tomorrow.

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
Traceback (most recent call last):
  File "obd2dash.py", line 373, in <module>
    DashBoard()
  File "obd2dash.py", lini 47, in __init__
    self.gpsdata = mmap.mmap(self.gpsfile.fileno(), 300)
ValueError: mmap length is greater than the file size

Regards,
Hakan
 
tz1's Avatar
Posts: 716 | Thanked: 236 times | Joined on Dec 2007
#33
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.
 
tz1's Avatar
Posts: 716 | Thanked: 236 times | Joined on Dec 2007
#34
0.31e is out on zdez, will be in extras-devel shortly

Fixed lots of problems and OBD is logged:

Code:
<Placemark>
<TimeStamp><when>2009-01-01T21:05:01Z</when></TimeStamp>
<styleUrl>#x</styleUrl><LineString><extrude>1</extrude><altitudeMode>relativeToGround</altitudeMode><coordinates>
-93.246748,44.096238,0.000
<!--01070g( $GPGGA,210501.200,4405.7743,N,09314.8049,W,1,10,2.0,359.5,M,-31.9,M,,0000*6C )-->
<!--01102g( $GPGSA,A,3,29,24,10,26,02,15,21,30,05,18,,,3.4,2.0,2.8*3F )-->
<!--01108l( $PDOBD,41,0D,00*00 )-->
<!--01108g( $GPGSV,3,1,12,29,70,276,42,24,67,309,44,10,61,055,41,26,34,140,38*72 )-->
<!--01131g( $G.3,9.2,-0.2,,*4A )-->
<!--01170g( $GPRMC,210501.400,A,4405.7743,N,09314.8049,W,0.00,229.78,010109,,,A*78 )-->
-93.246748,44.096238,0.000
<!--01194g( $GPGGA,210501.400,4405.7743,N,09314.8049,W,1,10,2.0,359.5,M,-31.9,M,,0000*6A )-->
<!--01241g( $GPGSA,A,3,29,24,10,26,02,15,21,30,05,18,,,3.4,2.0,2.8*3F )-->
<!--01256g( $GPGSV,3,1,12,29,70,276,41,24,67,309,44,10,61,055,41,26,34,140,38*71 )-->
<!--01280g( $GPGSV,3,2,12,02,28,091,31,15,27,159,26,21,23,284,17,30,18,229,33*78 )-->
<!--01319g( $GPGSV,3,3,12,16,07,329,,05,06,208,22,12,03,198,,18,05,229,27*7B )-->
<!--01342g( $GPGRS,210501.40,1,1.7,-0.4,-1.0,-0.2,9.5,-0.3,,*43 )-->
<!--01351l( $PDOBD,41,0C,0B,54*58 )-->
<!--01358g( $GPRMC,210501.500,A,4405.7743,N,09314.8049,W,0.00,229.78,010109,,,A*79 )-->
-93.246748,44.096238,0.000
<!--01405g( $GPGGA,210501.500,4405.7743,N,09314.8049,W,1,10,2.0,359.5,M,-31.9,M,,0000*6B )-->
<!--01451g( $GPGSA,A,3,29,24,10,26,02,15,21,GPGSV,3,3,12,16,07,329,,05,06,208,22,12,03,198,,18,05,229,27*7B )-->
<!--01467g( $GPGRS,210501.60,1,1.7,-0.5,-0.8,-0.3,9.1,-0.3,,*4C )-->
<!--01491g( $GPRMC,210501.700,A,4405.7743,N,09314.8049,W,0.00,229.78,010109,,,A*7B )-->
-93.246748,44.096238,0.000
<!--01532g( $GPGGA,210501.700,4405.7743,N,09314.8049,W,1,10,2.0,359.5,M,-31.9,M,,0000*69 )-->
<!--01553g( $GPGSA,A,3,29,24,10,26,02,15,21,30,05,18,,,3.4,2.0,2.8*3F )-->
<!--01577g( $GPGSV,3,1,12,29,70,276,42,24,67,309,44,10,61,055,41,26,34,140,38*72 )-->
<!--01594l( $PDOBD,41,0D,00*00 )-->
<!--01616g( $GPGSV,3,2,12,02,28,091,31,15,27,159,26,21,23,284,17,30,18,229,33*78 )-->
<!--01663g( $GPGSV,3,3,12,16,07,329,,05,06,208,23,12,03,198,,18,05,229,27*7A )-->
<!--01686g( $GPGRS,210501.70,1,1.6,-0.5,-0.7,-0.4,9.2,-0.2,,*46 )-->
<!--01726g( $GPRMC,210501.800,A,4405.7743,N,09314.8049,W,0.00,229.78,010109,0,61,055,42,26,34,140,38*71 )-->
<!--01748g( $GPGSV,3,2,12,02,28,091,31,15,27,159,26,21,23,284,17,30,18,229,33*78 )-->
<!--01788g( $GPGSV,3,3,12,16,07,329,,05,06,208,23,12,03,198,,18,05,229,27*7A )-->
<!--01811g( $GPGRS,210501.90,1,1.6,-0.6,-0.7,-0.6,9.6,-0.1,,*4E )-->
<!--01835g( $GPRMC,210502.000,A,4405.7743,N,09314.8049,W,0.00,229.78,010109,,,A*7F )-->
<!--01835t( $PDSNS,512,34250*5C )-->
-93.246748,44.096238,0.000
</coordinates></LineString></Placemark>
 
Posts: 4 | Thanked: 0 times | Joined on Jul 2008
#35
Originally Posted by tz1 View Post
0.31e is out on zdez, will be in extras-devel shortly

Fixed lots of problems and OBD is logged:

Code:
<!--01351l( $PDOBD,41,0C,0B,54*58 )-->
$PDOBD,41,0C,0B,54*58
Where can I find docs on how to translate that into usable data?
 
tz1's Avatar
Posts: 716 | Thanked: 236 times | Joined on Dec 2007
#36
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.
 
Posts: 4 | Thanked: 0 times | Joined on Jul 2008
#37
Originally Posted by tz1 View Post
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.
Great! Thank you.
 
tz1's Avatar
Posts: 716 | Thanked: 236 times | Joined on Dec 2007
#38
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.
 
Posts: 1 | Thanked: 0 times | Joined on Jan 2009 @ Tbilisi, Georgia
#39
it was me i PM-ed you before my account got blocked for MP-s

did you receive my pm?
 
tz1's Avatar
Posts: 716 | Thanked: 236 times | Joined on Dec 2007
#40
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.
 
Reply

Tags
gps, obd2


 
Forum Jump


All times are GMT. The time now is 06:19.