Notices


Reply
Thread Tools
Posts: 804 | Thanked: 1,598 times | Joined on Feb 2010 @ Gdynia, Poland
#191
Originally Posted by sicelo View Post
tried 38400 as well. same situation. it's like the device does not receive the "Enter" key. I've tried Ctrl+J, Ctrl+M, turning off flow control, with no luck. Weirdness. But pyobd can communicate with it (using 9600 baud).

Device shows that it 'receives' each character i type (ATZ for example) by blinking its LED, but on hitting Enter, complete 'silence'
See last post of http://www.linuxquestions.org/questi...-linux-725450/ - poster suggests that minicom and similar won't work well as the protocol is binary and not ascii...

Maybe start with some simple python code, based on /opt/pyobd/obd_io.py around lines 75-90 (class OBDPort, init method seems to set connection parameters) and build some simple debug tool on that?

edit: have you read http://gersic.com/connecting-your-ra...bd-ii-adapter/ and tried reproducing that on N900 instead of raspberry?
 

The Following User Says Thank You to misiak For This Useful Post:
Community Council | Posts: 677 | Thanked: 1,227 times | Joined on Sep 2010 @ Mbabane
#192
Thanks for the help and ideas misiak
I am 100% sure that the ELM327 'speaks' ascii. You can see this in pyobd code, and also earlier posts in this thread, e.g.
Post 66
Post 53

I'll look deeper in pyobd code as you suggested.
 
Community Council | Posts: 677 | Thanked: 1,227 times | Joined on Sep 2010 @ Mbabane
#193
Originally Posted by misiak View Post
....

edit: have you read http://gersic.com/connecting-your-ra...bd-ii-adapter/ and tried reproducing that on N900 instead of raspberry?
exactly what i'm doing, with no success so far. i would say it's N900 problem, but minicom/screen on pc doesn't get anywhere too. 1AM here .. I should sleep and maybe will have clearer mind in the morning
 
Community Council | Posts: 677 | Thanked: 1,227 times | Joined on Sep 2010 @ Mbabane
#194
i can now send/receive data via
Code:
echo -n -e "<elm cmd>" > /dev/rfcomm0  ## e.g. AT@1, ATI
and the output is caught in another terminal with
Code:
tail -f /dev/rfcomm0
AT L1 command is very useful with the above setup so the ELM sends line feeds after each response. Now I don't need to depend on an Android device finally

Will be further investigating why pyobd eventually stops reading data

Last edited by sicelo; 2016-04-02 at 14:25.
 

The Following User Says Thank You to sicelo For This Useful Post:
Community Council | Posts: 677 | Thanked: 1,227 times | Joined on Sep 2010 @ Mbabane
#195
In the meantime, decided to build obdgpslogger for the N900. works very well for what I want to do

http://talk.maemo.org/showthread.php...33#post1502733

Probably because it's C based, it logs faster than pyOBD. Not to say or suggest that pyOBD is inferior in any way

Last edited by sicelo; 2016-04-03 at 20:37.
 

The Following 3 Users Say Thank You to sicelo For This Useful Post:
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 14:50.