Notices


Reply
Thread Tools
m750's Avatar
Posts: 249 | Thanked: 345 times | Joined on Aug 2010 @ Italy
#141
No @wictor, that should not be resolved with this modification.
I added a little delay during sending characters to the COM port, but I think the problem is due to something else. @Crogge, be sure you don't have other active Bluetooth devices nearby. pyOBD tries to connect to the first one it finds with com's capacity.

@wictor, I've made your changes in pyOBD. Thank's

pyobd 0.9.2-24 in repos
__________________
maxcpu : change cpu's clock with a TAP!
savecpu : overheating control for overclocked n900.
shaketowake2 : Enable/Disable wake up/rest by shaking.
tilt2control : control mediaplayer by tilting your n900.
gpstracker-c : easy handle your gpstracker tk102.
pyOBD for maemo (OBD-II cars diagnostic)
 

The Following User Says Thank You to m750 For This Useful Post:
m750's Avatar
Posts: 249 | Thanked: 345 times | Joined on Aug 2010 @ Italy
#142
Ops... my car responds in hex format:
get_dtc
Send: 0101
data: 41 01 00 06 80 00
Number of stored DTC:0 MIL: 0
Send: 07
DTC freeze result:7F 07 11
pyobd 0.9.2-25 in the repos
in this version I test if the answer is in hex or not (symply long or short answer)
__________________
maxcpu : change cpu's clock with a TAP!
savecpu : overheating control for overclocked n900.
shaketowake2 : Enable/Disable wake up/rest by shaking.
tilt2control : control mediaplayer by tilting your n900.
gpstracker-c : easy handle your gpstracker tk102.
pyOBD for maemo (OBD-II cars diagnostic)
 

The Following 2 Users Say Thank You to m750 For This Useful Post:
Posts: 11 | Thanked: 13 times | Joined on Feb 2012
#143
Hi,
I'm having communication issues with the latest pyobd version. Sometimes it cannot establish connection with ECU and sometimes sensor readout just hangs and I need to close the application.
How about others?
 
m750's Avatar
Posts: 249 | Thanked: 345 times | Joined on Aug 2010 @ Italy
#144
Please make a trace of pyobd functionality:

root
python /home/opt/pyobd/pyobd.py >> /home/user/pyobd.log
__________________
maxcpu : change cpu's clock with a TAP!
savecpu : overheating control for overclocked n900.
shaketowake2 : Enable/Disable wake up/rest by shaking.
tilt2control : control mediaplayer by tilting your n900.
gpstracker-c : easy handle your gpstracker tk102.
pyOBD for maemo (OBD-II cars diagnostic)
 
Posts: 11 | Thanked: 13 times | Joined on Feb 2012
#145
Originally Posted by m750 View Post
Please make a trace of pyobd functionality:

root
python /home/opt/pyobd/pyobd.py >> /home/user/pyobd.log
I did three trials.First and third one failed and second trial was working. Here are the logs:
1st log
Code:
Searching for BT dev...
 -Found device: CBT (00:0F:18:B0:05:0F)
 Found BT SPP dev
Port: /dev/rfcomm0
Send: atz
1 response atz
2nd log
Code:
Searching for BT dev...
 -Found device: CBT (00:0F:18:B0:05:0F)
 Found BT SPP dev
Port: /dev/rfcomm0
Send: atz
1 response atz
2 response ELM327 v1.3a
self.state: 1
Send: ate0
ate0
Send: at sp 0
OK
Send: 0100
Result: SEARCHING...
Now: 41 00 98 3F 80 10 
Send: 0100
data: 41 00 98 3F 80 10 
Send: 0120
data: NO DATA
Send: 0140
data: NO DATA
self.sup f: 10011000001111111000000000010000NODATANODATA
Send: 0101
data: 41 01 00 00 00 00 
0 0  
Status Since DTC Cleared : 0 
Send: 0104
data: 41 04 2A 
16.4705882353 16.4705882353  
Calculated Load Value : 16.4705882353 
Send: 0105
data: 41 05 47 
31 87.8 deg. C deg. F
Coolant Temperature : 31 deg. C
Send: 010B
data: 41 0B 61 
97 14.06888 kPa psi
Intake Manifold Absol. Press. : 97 kPa
Send: 010C
data: 41 0C 0E 18 
902 902 rpm rpm
Engine RPM : 902 rpm
Send: 010D
data: 41 0D 00 
0 0 KmH MPH
Vehicle Speed : 0 KmH
Send: 010E
data: 41 0E 84 
2.0 2.0 degrees degrees
Timing Advance : 2.0 degrees
Send: 010F
data: 41 0F 31 
9 48.2 deg. C deg. F
Intake Air Temp : 9 deg. C
Send: 0110
data: 41 10 05 FE 
15.34 0.0338247 g/s lb/s
Air Flow Rate - MAF : 15.34 g/s
Send: 0111
data: 41 11 00 
0.0 0.0 % %
Throttle Position : 0.0 %
Send: 011C
data: 41 1C 05 
5 5 BitEnc. BitEnc.
OBD Designation : 5 BitEnc.
Send: 0101
data: 41 01 00 00 00 00 
0 0  
Status Since DTC Cleared : 0 
Send: 0104
data: 41 04 2B 
16.862745098 16.862745098  
Calculated Load Value : 16.862745098 
Send: 0105
data: 41 05 47 
31 87.8 deg. C deg. F
Coolant Temperature : 31 deg. C
Send: 010B
data: 41 0B 61 
97 14.06888 kPa psi
Intake Manifold Absol. Press. : 97 kPa
Send: 010C
data: 41 0C 0E 20 
904 904 rpm rpm
Engine RPM : 904 rpm
Send: 010D
data: 41 0D 00 
0 0 KmH MPH
Vehicle Speed : 0 KmH
Send: 010E
data: 41 0E 84 
2.0 2.0 degrees degrees
Timing Advance : 2.0 degrees
Send: 010F
data: 41 0F 31 
9 48.2 deg. C deg. F
Intake Air Temp : 9 deg. C
Send: 0110
data: 41 10 06 26 
15.74 0.0347067 g/s lb/s
Air Flow Rate - MAF : 15.74 g/s
Send: 0111
data: 41 11 00 
0.0 0.0 % %
Throttle Position : 0.0 %
Send: 011C
data: 41 1C 05 
5 5 BitEnc. BitEnc.
OBD Designation : 5 BitEnc.
Send: 0101
data: 41 01 00 00 00 00 
0 0  
Status Since DTC Cleared : 0 
Send: 0104
data: 41 04 28 
15.6862745098 15.6862745098  
Calculated Load Value : 15.6862745098 
Send: 0105
data: 41 05 47 
31 87.8 deg. C deg. F
Coolant Temperature : 31 deg. C
Send: 010B
data: 41 0B 61 
97 14.06888 kPa psi
Intake Manifold Absol. Press. : 97 kPa
Send: 010C
data: 41 0C 0E 1C 
903 903 rpm rpm
Engine RPM : 903 rpm
Send: 010D
data: 41 0D 00 
0 0 KmH MPH
Vehicle Speed : 0 KmH
Send: 010E
data: 41 0E 84 
2.0 2.0 degrees degrees
Timing Advance : 2.0 degrees
Send: 010F
data: 41 0F 31 
9 48.2 deg. C deg. F
Intake Air Temp : 9 deg. C
Send: 0110
data: 41 10 06 1A 
15.62 0.0344421 g/s lb/s
Air Flow Rate - MAF : 15.62 g/s
Send: 0111
data: 41 11 00 
0.0 0.0 % %
Throttle Position : 0.0 %
Send: 011C
data: 41 1C 05 
5 5 BitEnc. BitEnc.
OBD Designation : 5 BitEnc.
Send: 0101
data: 41 01 00 00 00 00 
0 0  
Status Since DTC Cleared : 0 
Send: 0104
data: 41 04 29 
16.0784313725 16.0784313725  
Calculated Load Value : 16.0784313725 
Send: 0105
data: 41 05 48 
32 89.6 deg. C deg. F
Coolant Temperature : 32 deg. C
Send: 010B
data: 41 0B 61 
97 14.06888 kPa psi
Intake Manifold Absol. Press. : 97 kPa
Send: 010C
data: 41 0C 0E 1C 
903 903 rpm rpm
Engine RPM : 903 rpm
Send: 010D
data: 41 0D 00 
0 0 KmH MPH
Vehicle Speed : 0 KmH
Send: 010E
data: 41 0E 84 
2.0 2.0 degrees degrees
Timing Advance : 2.0 degrees
Send: 010F
data: 41 0F 31 
9 48.2 deg. C deg. F
Intake Air Temp : 9 deg. C
Send: 0110
data: 41 10 06 1A 
15.62 0.0344421 g/s lb/s
Air Flow Rate - MAF : 15.62 g/s
Send: 0111
data: 41 11 00 
0.0 0.0 % %
Throttle Position : 0.0 %
Send: 011C
data: 41 1C 05 
5 5 BitEnc. BitEnc.
OBD Designation : 5 BitEnc.
Send: 0101
data: 41 01 00 00 00 00 
0 0  
Status Since DTC Cleared : 0 
Send: 0104
data: 41 04 2C 
17.2549019608 17.2549019608  
Calculated Load Value : 17.2549019608 
Send: 0105
data: 41 05 48 
32 89.6 deg. C deg. F
Coolant Temperature : 32 deg. C
Send: 010B
data: 41 0B 61 
97 14.06888 kPa psi
Intake Manifold Absol. Press. : 97 kPa
Send: 010C
data: 41 0C 0E 18 
902 902 rpm rpm
Engine RPM : 902 rpm
Send: 010D
data: 41 0D 00 
0 0 KmH MPH
Vehicle Speed : 0 KmH
Send: 010E
data: 41 0E 84 
2.0 2.0 degrees degrees
Timing Advance : 2.0 degrees
Send: 010F
data: 41 0F 31 
9 48.2 deg. C deg. F
Intake Air Temp : 9 deg. C
Send: 0110
data: 41 10 06 28 
15.76 0.0347508 g/s lb/s
Air Flow Rate - MAF : 15.76 g/s
Send: 0111
data: 41 11 00 
0.0 0.0 % %
Throttle Position : 0.0 %
Send: 011C
data: 41 1C 05 
5 5 BitEnc. BitEnc.
OBD Designation : 5 BitEnc.
Send: 0101
data: 41 01 00 00 00 00 
0 0  
Status Since DTC Cleared : 0 
Send: 0104
data: 41 04 2B 
16.862745098 16.862745098  
Calculated Load Value : 16.862745098 
Send: 0105
data: 41 05 49 
33 91.4 deg. C deg. F
Coolant Temperature : 33 deg. C
Send: 010B
data: 41 0B 62 
98 14.21392 kPa psi
Intake Manifold Absol. Press. : 98 kPa
Send: 010C
data: 41 0C 0E 14 
901 901 rpm rpm
Engine RPM : 901 rpm
Send: 010D
data: 41 0D 00 
0 0 KmH MPH
Vehicle Speed : 0 KmH
Send: 010E
data: 41 0E 84 
2.0 2.0 degrees degrees
Timing Advance : 2.0 degrees
Send: 010F
data: 41 0F 31 
9 48.2 deg. C deg. F
Intake Air Temp : 9 deg. C
Send: 0110
data: 41 10 06 18 
15.6 0.034398 g/s lb/s
Air Flow Rate - MAF : 15.6 g/s
Send: 0111
data: 41 11 00 
0.0 0.0 % %
Throttle Position : 0.0 %
Send: 011C
data: 41 1C 05 
5 5 BitEnc. BitEnc.
OBD Designation : 5 BitEnc.
Send: 0101
data: 41 01 00 00 00 00 
0 0  
Status Since DTC Cleared : 0 
Send: 0104
data: 41 04 2A 
16.4705882353 16.4705882353  
Calculated Load Value : 16.4705882353 
Send: 0105
data: 41 05 49 
33 91.4 deg. C deg. F
Coolant Temperature : 33 deg. C
Send: 010B
data: 41 0B 62 
98 14.21392 kPa psi
Intake Manifold Absol. Press. : 98 kPa
Send: 010C
data: 41 0C 0E 20 
904 904 rpm rpm
Engine RPM : 904 rpm
Send: 010D
data: 41 0D 00 
0 0 KmH MPH
Vehicle Speed : 0 KmH
Send: 010E
data: 41 0E 84 
2.0 2.0 degrees degrees
Timing Advance : 2.0 degrees
Send: 010F
data: 41 0F 32 
10 50.0 deg. C deg. F
Intake Air Temp : 10 deg. C
Send: 0110
data: 41 10 06 0A 
15.46 0.0340893 g/s lb/s
Air Flow Rate - MAF : 15.46 g/s
Send: 0111
data: 41 11 00 
0.0 0.0 % %
Throttle Position : 0.0 %
Send: 011C
data: 41 1C 05 
5 5 BitEnc. BitEnc.
OBD Designation : 5 BitEnc.
Send: 0101
data: 41 01 00 00 00 00 
0 0  
Status Since DTC Cleared : 0 
Send: 0104
data: 41 04 29 
16.0784313725 16.0784313725  
Calculated Load Value : 16.0784313725 
Send: 0105
data: 41 05 4A 
34 93.2 deg. C deg. F
Coolant Temperature : 34 deg. C
Send: 010B
data: 41 0B 62 
98 14.21392 kPa psi
Intake Manifold Absol. Press. : 98 kPa
Send: 010C
data: 41 0C 0E 18 
902 902 rpm rpm
Engine RPM : 902 rpm
Send: 010D
data: 41 0D 00 
0 0 KmH MPH
Vehicle Speed : 0 KmH
Send: 010E
data: 41 0E 84 
2.0 2.0 degrees degrees
Timing Advance : 2.0 degrees
Send: 010F
data: 41 0F 32 
10 50.0 deg. C deg. F
Intake Air Temp : 10 deg. C
Send: 0110
data: 41 10 06 2C 
15.8 0.034839 g/s lb/s
Air Flow Rate - MAF : 15.8 g/s
Send: 0111
data: 41 11 00 
0.0 0.0 % %
Throttle Position : 0.0 %
Send: 011C
data: 41 1C 05 
5 5 BitEnc. BitEnc.
OBD Designation : 5 BitEnc.
Send: 0101
data: 41 01 00 00 00 00 
0 0  
Status Since DTC Cleared : 0 
Send: 0104
data: 41 04 29 
16.0784313725 16.0784313725  
Calculated Load Value : 16.0784313725 
Send: 0105
data: 41 05 4A 
34 93.2 deg. C deg. F
Coolant Temperature : 34 deg. C
Send: 010B
data: 41 0B 62 
98 14.21392 kPa psi
Intake Manifold Absol. Press. : 98 kPa
Send: 010C
data: 41 0C 0E 20 
904 904 rpm rpm
Engine RPM : 904 rpm
Send: 010D
data: 41 0D 00 
0 0 KmH MPH
Vehicle Speed : 0 KmH
Send: 010E
data: 41 0E 84 
2.0 2.0 degrees degrees
Timing Advance : 2.0 degrees
Send: 010F
data: 41 0F 32 
10 50.0 deg. C deg. F
Intake Air Temp : 10 deg. C
Send: 0110
data: 41 10 05 FA 
15.3 0.0337365 g/s lb/s
Air Flow Rate - MAF : 15.3 g/s
Send: 0111
data: 41 11 00 
0.0 0.0 % %
Throttle Position : 0.0 %
Send: 011C
data: 41 1C 05 
5 5 BitEnc. BitEnc.
OBD Designation : 5 BitEnc.
Send: 0101
data: 41 01 00 00 00 00 
0 0  
Status Since DTC Cleared : 0 
Send: 0104
data: 41 04 29 
16.0784313725 16.0784313725  
Calculated Load Value : 16.0784313725 
Send: 0105
data: 41 05 4A 
34 93.2 deg. C deg. F
Coolant Temperature : 34 deg. C
Send: 010B
data: 41 0B 62 
98 14.21392 kPa psi
Intake Manifold Absol. Press. : 98 kPa
Send: 010C
data: 41 0C 0E 14 
901 901 rpm rpm
Engine RPM : 901 rpm
Send: 010D
data: 41 0D 00 
0 0 KmH MPH
Vehicle Speed : 0 KmH
Send: 010E
data: 41 0E 84 
2.0 2.0 degrees degrees
Timing Advance : 2.0 degrees
Send: 010F
data: 41 0F 32 
10 50.0 deg. C deg. F
Intake Air Temp : 10 deg. C
Send: 0110
data: 41 10 06 10 
15.52 0.0342216 g/s lb/s
Air Flow Rate - MAF : 15.52 g/s
Send: 0111
data: 41 11 00 
0.0 0.0 % %
Throttle Position : 0.0 %
Send: 011C
data: 41 1C 05 
5 5 BitEnc. BitEnc.
OBD Designation : 5 BitEnc.
Send: 0101
data: 41 01 00 00 00 00 
0 0  
Status Since DTC Cleared : 0 
Send: 0104
data: 41 04 2A 
16.4705882353 16.4705882353  
Calculated Load Value : 16.4705882353 
Send: 0105
data: 41 05 4B 
35 95.0 deg. C deg. F
Coolant Temperature : 35 deg. C
Send: 010B
data: 41 0B 62 
98 14.21392 kPa psi
Intake Manifold Absol. Press. : 98 kPa
Send: 010C
data: 41 0C 0E 24 
905 905 rpm rpm
Engine RPM : 905 rpm
Send: 010D
data: 41 0D 00 
0 0 KmH MPH
Vehicle Speed : 0 KmH
Send: 010E
data: 41 0E 84 
2.0 2.0 degrees degrees
Timing Advance : 2.0 degrees
Send: 010F
data: 41 0F 32 
10 50.0 deg. C deg. F
Intake Air Temp : 10 deg. C
Send: 0110
data: 41 10 06 10 
15.52 0.0342216 g/s lb/s
Air Flow Rate - MAF : 15.52 g/s
Send: 0111
data: 41 11 00 
0.0 0.0 % %
Throttle Position : 0.0 %
Send: 011C
data: 41 1C 05 
5 5 BitEnc. BitEnc.
OBD Designation : 5 BitEnc.
Send: 0101
data: 41 01 00 00 00 00 
0 0  
Status Since DTC Cleared : 0 
Send: 0104
data: 41 04 27 
15.2941176471 15.2941176471  
Calculated Load Value : 15.2941176471 
Send: 0105
data: 41 05 4B 
35 95.0 deg. C deg. F
Coolant Temperature : 35 deg. C
Send: 010B
data: 41 0B 62 
98 14.21392 kPa psi
Intake Manifold Absol. Press. : 98 kPa
Send: 010C
data: 41 0C 0E 20 
904 904 rpm rpm
Engine RPM : 904 rpm
Send: 010D
data: 41 0D 00 
0 0 KmH MPH
Vehicle Speed : 0 KmH
Send: 010E
data: 41 0E 84 
2.0 2.0 degrees degrees
Timing Advance : 2.0 degrees
Send: 010F
data: 41 0F 32 
10 50.0 deg. C deg. F
Intake Air Temp : 10 deg. C
Send: 0110
data: 41 10 05 F6 
15.26 0.0336483 g/s lb/s
Air Flow Rate - MAF : 15.26 g/s
Send: 0111
data: 41 11 00 
0.0 0.0 % %
Throttle Position : 0.0 %
Send: 011C
data: 41 1C 05 
5 5 BitEnc. BitEnc.
OBD Designation : 5 BitEnc.
Send: 0101
data: 41 01 00 00 00 00 
0 0  
Status Since DTC Cleared : 0 
Send: 0104
data: 41 04 28 
15.6862745098 15.6862745098  
Calculated Load Value : 15.6862745098 
Send: 0105
data: 41 05 4B 
35 95.0 deg. C deg. F
Coolant Temperature : 35 deg. C
Send: 010B
stop
3rd log
Code:
Searching for BT dev...
 -Found device: CBT (00:0F:18:B0:05:0F)
 Found BT SPP dev
Port: /dev/rfcomm0
Send: atz
1 response ELM327 v1.3a
wictor
 
m750's Avatar
Posts: 249 | Thanked: 345 times | Joined on Aug 2010 @ Italy
#146
try to modify these lines in /home/opt/pyobd/obd_io.py:

line 190:
from:
time.sleep(0.01)
to
time.sleep(0.05)

line 193
from:
time.sleep(0.01)
to
time.sleep(0.05)
__________________
maxcpu : change cpu's clock with a TAP!
savecpu : overheating control for overclocked n900.
shaketowake2 : Enable/Disable wake up/rest by shaking.
tilt2control : control mediaplayer by tilting your n900.
gpstracker-c : easy handle your gpstracker tk102.
pyOBD for maemo (OBD-II cars diagnostic)
 
m750's Avatar
Posts: 249 | Thanked: 345 times | Joined on Aug 2010 @ Italy
#147
Hi @wictor,
I understand the problem: sometimes the ELM responds at the first command ("ATZ") with the "echo" already deactivated, then pyobd get a single response.

correct answer:

Send: atz
1 response atz
2 response ELM327 v1.3a
bad answer:
Send: atz
1 response ELM327 v1.3a

I modified pyobd_io.py so providing this eventuality. This evening i will put a new version in the repos.

[EDIT]
now in the repos: pyobd 0.9.2-26
__________________
maxcpu : change cpu's clock with a TAP!
savecpu : overheating control for overclocked n900.
shaketowake2 : Enable/Disable wake up/rest by shaking.
tilt2control : control mediaplayer by tilting your n900.
gpstracker-c : easy handle your gpstracker tk102.
pyOBD for maemo (OBD-II cars diagnostic)

Last edited by m750; 2012-09-20 at 20:43.
 

The Following 4 Users Say Thank You to m750 For This Useful Post:
Posts: 4 | Thanked: 0 times | Joined on Aug 2010
#148
Hi,

is it possible to implement the following protocol for opel vehicles
in your excellent software:

ISO 9141-2 / SAE J1962.

Thank you very much
 
m750's Avatar
Posts: 249 | Thanked: 345 times | Joined on Aug 2010 @ Italy
#149
As I know, SAE J1962 defines only the pinout of the connector.
__________________
maxcpu : change cpu's clock with a TAP!
savecpu : overheating control for overclocked n900.
shaketowake2 : Enable/Disable wake up/rest by shaking.
tilt2control : control mediaplayer by tilting your n900.
gpstracker-c : easy handle your gpstracker tk102.
pyOBD for maemo (OBD-II cars diagnostic)
 
Posts: 7 | Thanked: 8 times | Joined on Mar 2012
#150
My first discovery of OBD is week ago and I know very little. But I notice a lack of sensors reading in pyobd compared to torque on wife's android. If i'm not mistaken, some data is calcuated from car profile if you insert (correct) data, like power, torque, fuel in tank....
But even if you dont insert data and the phone doesn't have any idea how much fuel you have, it display how many kilometers you have to empty and fuel consumption. Long story short... all data that you can see in car dashboard and more. Car is WV Golf 5.

Edit:
Today I compared sensor list and found that is missing:
average trip speed
distance to empty
fuel flow rate
liters per 100km
trip distance
trip time

Last edited by McCloud; 2012-12-23 at 12:12.
 
Reply


 
Forum Jump


All times are GMT. The time now is 02:55.