maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] pyOBD for Maemo/n900 (https://talk.maemo.org/showthread.php?t=81129)

misiak 2016-04-01 22:37

Re: [Announce] pyOBD for Maemo/n900
 
Quote:

Originally Posted by sicelo (Post 1502652)
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?

sicelo 2016-04-01 22:46

Re: [Announce] pyOBD for Maemo/n900
 
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.

sicelo 2016-04-01 22:55

Re: [Announce] pyOBD for Maemo/n900
 
Quote:

Originally Posted by misiak (Post 1502653)
....

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 :)

sicelo 2016-04-02 14:19

Re: [Announce] pyOBD for Maemo/n900
 
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

sicelo 2016-04-03 18:53

Re: [Announce] pyOBD for Maemo/n900
 
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 :)


All times are GMT. The time now is 21:17.

vBulletin® Version 3.8.8