View Single Post
Posts: 11 | Thanked: 13 times | Joined on Feb 2012
#46
First of all, thanks for porting pyobd to N900!

I've been using Vag-com with homemade adapter and some other free OBD programs with ELM bluetooth adapter. Finally I have something for my N900 also.

I have tried Pyobd with Toyota Avensis (2001) and VW Golf(2000). Latest Pyobd shows with Avensis that some PIDS after 32 first ones are also supported, but I guess that this Golf only supports some of the first 32 PIDs.

I have been wondering, why my Pyobd sometimes stops working after checking DTC. It seems, that if car ECU doesn't have any DTCs active, then Pyobd stops working properly. I think that the problem is in the code, where it tries to print the codes to stdout. Because DTCCodes is empty, you will get index error with print function in the following place in pobd.py:
Code:
                  if prevstate!=3: 
                    wx.PostEvent(self._notify_window, DTCEvent(0)) #clear list
                    DTCCodes=self.port.get_dtc()

                    print DTCCodes
                    print DTCCodes[0][0]
                    print DTCCodes[0][1]
I like Vag-com ability to show a lot of sensor information with VAG cars. If I have time, I'll try to debug their serial protocol to find out, how they are getting all the extra information. I'm newvie with Python, but it would be nice to implement some new features to pyobd.

//Wictor