View Single Post
Posts: 36 | Thanked: 19 times | Joined on Feb 2011
#66
seems like at sp0 returns nothing, so i commented the get results:

self.send_command("at sp 0") # init II
time.sleep(0.2)
#print self.get_result()
#wx.PostEvent(self._notify_window, DebugEvent([2,"at sp 0 response:" + self.get_result()]))

now i get this:

Code:
Nokia-N900:~# /opt/pyobd/pyobd_start 
Searching for BT dev...
 -Found device: CHX (00:11:12:19:11:33)
    Found BT SPP dev
/dev/rfcomm0
Send: atz
ELM327 v1.4
self.state: 1
Send: ate0
ate0
Send: at sp0
Send: 0100
SEARCHING...
Send: atz
ELM327 v1.4
self.state: 1
Send: ate0
ate0
Send: at sp0
Send: 0100
SEARCHING...
but, if in another window, i start terminal:

./miniterm.py -p /dev/rfcomm0

i get to see the replys
>1 00 BE 3E B8 13

if i try to connect manually, AT SP 0 returns OK

and i actually managed to send
ATZ
ATE0
AT SP0
0100

in such a way, that pyobd says connected, but this was not very reliable...