Page 1 of 1

Freematics UART 2.1 Custom PID 22242C creation

Posted: Thu Feb 20, 2020 8:57 am
by etnaskynet
Hello,

using Torque I am able to monitor the DPF quantity with the following CUSTOM PID:

Mode OBD2 and PD = 22242C
Name = DPF quantity
min value = 0
max value = 600
scale factor = X1
units = Gr
Equation = (A*256+B)/100
Header OBD = 7E0

How can I implement my CUSTOM PID on Freematics UART v.2.1 ?

Regards,
Lucio

Re: Freematics UART 2.1 Custom PID 22242C creation

Posted: Sat Feb 22, 2020 10:15 am
by stanley
For any custom PIDs, you can try CAN sniffing mode.

Re: Freematics UART 2.1 Custom PID 22242C creation

Posted: Sat Feb 22, 2020 8:42 pm
by etnaskynet
Hello Stanley,

Do you have an example as reference to follow?

Regards.
Lucio

Re: Freematics UART 2.1 Custom PID 22242C creation

Posted: Sun Feb 23, 2020 8:02 am
by etnaskynet
Hi Stanley,

do you have an example code to start?

Regards,
Lucio

Re: Freematics UART 2.1 Custom PID 22242C creation

Posted: Tue Feb 25, 2020 4:22 am
by etnaskynet
Hello Stanley,

after the following commands:

ATZ
ATDP
ATH1
ATS1
22242C

I retrieved the following hex codes

7E8 05 62 24 2C 01 63

how I can decode it order to calculare the right value by the formula:
(A*256 + B)/100

Regards.

Re: Freematics UART 2.1 Custom PID 22242C creation

Posted: Sun Mar 29, 2020 4:00 am
by etnaskynet
Sniffing done.
On serial monitor, if i write 222556 he reply to me
Correctly with right values.

He reply 62 25 54 01 FF so,
25 54 is pid and 01 FF are values.

Could you please update your library to work with
2byte pids?

Or, can I use obd.sendCommand ?

If yes, how I can do it?

thanks for your help.

Regards.
Lucio