Sponsored links

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


Reply
 
Share Thread Tools Display Modes
Old 06-15-2009, 03:26 PM   #1
Constant Bitrate
 
Join Date: Aug 2007
Location: Northern VA
Posts: 125
cgalpin is an unknown quantity at this point
Didn't get parsable data back for cmd 00:

Hi Guys

I'm having trouble getting data from my scantool. It connect, but I get "Didn't get parsable data back for cmd 00:" and things go downhill from there. I tried connecting at 38400 baud as well with no luck.

Here is what I get from --serial-log=slog

Code:
cgalpin@jaunty:~/tmp/obdgpslogger/bin$ od -c slog 0000000 A T Z \r x 374 370 370 377 017 0 1 0 0 \r 370 0000020 374 370 370 377 017 A T E 0 \r x 374 370 370 377 017 0000040 A T S 0 \r x 376 x 374 370 017 0 1 0 0 \r 0000060 370 A T Z \r 224 212 \v \b 373 003 0000073

thanks,
charles
cgalpin is offline   Reply With Quote
Advertisement
 
Advertisement
Sponsored links

Old 06-15-2009, 04:48 PM   #2
Mod - OBDII GPS Logger forum
 
Join Date: Mar 2009
Location: Los Angeles
Posts: 408
chunkyks is on a distinguished road
Binary garbage across the serial port. An easy way to know your baudrate's squiffy.

Try editing src/logger/obdserial.c around line 94. Before the tcsetattr, add the following:
Code:
cfsetispeed(&options, B38400); cfsetospeed(&options, B38400);

The way obdgpslogger works right now, it simply gets the serial port settings using tcgetattr, modifies the ones it cares about [canonical mode, etc], and writes those settings back using tcsetattr.

This assumes that your {serial port, usb device driver, usb-to-serial chip} are all Doing The Right Thing(TM) and negotiating stuff right. In practice, I'm finding that a lot of people have their ports set to 9600 or 38400, but the device is set to the *other* one

You could also try using stty to set the baudrate on the port before launching obdgpslogger [probably faster and easier than modifying code, come to think of it]:
Code:
stty -F /dev/ttyS0 38400


In future, I think I'm going to add command-line options to control the baudrate by hand. [My OBDPro device uses the LEDs when you power it on to tell you what baudrate it's set to]

Lemme know if that improves things

Gary (-;
chunkyks is offline   Reply With Quote
Old 06-16-2009, 02:15 PM   #3
Constant Bitrate
 
Join Date: Aug 2007
Location: Northern VA
Posts: 125
cgalpin is an unknown quantity at this point
Just for anyone following this, I really didn't make any progress with this. Gary and I discussed this in IRC and I think it's a ftdi driver issue. Even just doing a basic connectivity test with minicom barely worked, and never could get a proper conversation going. I did verify communication speeds and even managed to change the OBDPRos scantool to 38400, but it didn't help. Works fine with the windows software it came with on a real windows laptop.

So for now I am going to shelve it. I honestly don't care about put a computer in my cars with OBDII right now, and will focus on my non-OBD and OBDI trucks!

charles
cgalpin 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
iBusRR v2.0.5: 06/01/2008 BMW Doors/Windows/Lights control NEW RELEASE!! WaRFiElD RR Released Plugins 384 10-14-2009 11:44 AM
police laptop\radio frequency jdogg1583 Hardware Development 63 03-31-2008 05:32 PM
How can I send the GPS data back to my computer via GPRS?? virkom GPS 2 07-01-2006 06:39 PM
AutoTap ODB-2 cable... coleman Engine Management, OBD-II, Engine Diagnostics, etc. 18 11-29-2004 12:13 AM
VOICES Traffic Data stevieg V.O.I.C.E.S 85 05-31-2004 09:24 PM



All times are GMT -5. The time now is 07:11 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