Thread
:
[Announce] pyOBD for Maemo/n900
View Single Post
vanous
2012-02-18 , 15:28
Posts: 36 | Thanked: 19 times | Joined on Feb 2011
#
75
Originally Posted by
m750
pyobd 0.9.2-13 in extras-devel.
thank you!
i have tested this version, but as you uncommented the line 123 again, it hangs with OK after AT SP 0 send it. I am now working on fixing it.
what i don't understand is, how can the program constantly perform get_result() with no issue, but with the at sp 0 it stops while reading the buffer...
i will let you know.
EDIT:
ok, i think i now understand it.
the echo off (ate0) most probably takes care of clearing the buffer in such a way, that once you read it, it is empty.
this means, that what happens at the begging of the init process (something i don't understand how can happen) is that you send a command and read the response several times. but after you send echo off, this cannot happen anymore, once you read the buffer, it is empty.
which means, the
at sp0
response needs to be collected into variable and then printed as many times as needed:
self.send_command("at sp 0")
time.sleep(0.5)
atsp_response=self.get_result()
print atsp_response
wx.PostEvent(self._notify_window, DebugEvent([2,"atsp0 response: " + atsp_response ]))
btw. in the wx.PostEvent i tried to print is with %s, but it didn't work for me...
please apply and release, thank you.
Last edited by vanous; 2012-02-18 at
16:09
.
Quote & Reply
|
The Following 2 Users Say Thank You to vanous For This Useful Post:
don_falcone
,
m750
vanous
View Public Profile
Send a private message to vanous
Find all posts by vanous