Torque

Forums

Forums

Guest  

Show or hide header
Welcome Guest, posting in this forum require registration.




Torque » Torque OBD ECU Scanner » Torque Discussion / Ideas » possible to pause custom PID

Pages: [1]
Author Topic: possible to pause custom PID
moreause
Member
Posts: 637
Post possible to pause custom PID
on: June 6, 2021 (GMT)

Just having fun with torque

just for fun i monitor my exhaust valve and seat belt position …. to fight ticket if necessary lol

but my seat-belt is on the internal bus (ford mustang using obdlink mx)

so to get it i need to switch from the pcm bus to the internal bus to get the pid and switch back to pcm bus

and that kill the pid speed

just wondering if i could insert a counter in the start command to skip some of the reading
like start x=x+1 if x>50 do the start command, x=0
else do nothing

ps…if i try to use the sealtbelt pid on my truck with obdlink LX it just kill the connexion

and you can’t chose pid per connexion

just having fun testing the limit of torque

moreause
Member
Posts: 637
Post Re: possible to pause custom PID
on: June 18, 2021 (GMT)

just bumping it just in case

the changing bus all the time to get the seatbelt status
is killing my pid speed

it take 2 seconds to do a cycle

so still looking if there is an option like in obdlink to put some pid in low priority ..to skip some cycle

i tried to create an if and increment a value in the start command … but doesn’t seem to work … hey hackers don’t weird shit all the time lol …. i just tried lol

for now my start command is STP 53\n STPBR 512000

to switch to to medium speed bus…(that is now full speed)

and stop command STP 33 to revert to the normal bus

cintakc
Member
Posts: 1661
Post Re: possible to pause custom PID
on: June 19, 2021 (GMT)

there is a very simple solution
here’s an example of how to make your first PID read 5 times in a row, then your second PID is read once
in the line Diagnostic Start Commands of your main PID, you must register 4 times your main PID

for example your main PID 2102
then in the line Diagnostic Start Commands of your main PID you must write:
2102\n2102\n2102\n2102

then your second PID will be polled 5 times less often than your main PID

by analogy, you can poll your non-primary PID any number of times less often

moreause
Member
Posts: 637
Post Re: possible to pause custom PID
on: June 19, 2021 (GMT)

seem’s good if you have only 2 pid

if you have 5 or 6 it a bit different

it will poll the first on like 5 time.. the second one 5 time ect

so even the last one even if polled 5 time will be delayed

but …. i will try it non the less, 5 time 30ms is still faster than 1 time 1 seconds lol

cintakc
Member
Posts: 1661
Post Re: possible to pause custom PID
on: June 19, 2021 (GMT)

you wrote above that you monitor two parameters
for several PIDs to do what you want is of course more problematic

example Diagnostic Start Commands:
2102\n2103\n2104\n2105\n2102\n2103\n2104\n2105\n2102\n2103\n2104\n2105\n2102\n2103\n2104\n2105….

Pages: [1]
WP-Forum by: Fredrik Fahlstad, Version: 2.4
Page loaded in: 0.018 seconds.

  Follow me on twitter