Freematics UART 2.1 Custom PID 22242C creation

Inquiry and support for Freematics products
Post Reply
etnaskynet
Posts: 11
Joined: Fri Jan 31, 2020 8:00 pm
Location: Italy

Freematics UART 2.1 Custom PID 22242C creation

Post 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
stanley
Site Admin
Posts: 1018
Joined: Sat Mar 01, 2014 3:15 am

Re: Freematics UART 2.1 Custom PID 22242C creation

Post by stanley »

For any custom PIDs, you can try CAN sniffing mode.
etnaskynet
Posts: 11
Joined: Fri Jan 31, 2020 8:00 pm
Location: Italy

Re: Freematics UART 2.1 Custom PID 22242C creation

Post by etnaskynet »

Hello Stanley,

Do you have an example as reference to follow?

Regards.
Lucio
etnaskynet
Posts: 11
Joined: Fri Jan 31, 2020 8:00 pm
Location: Italy

Re: Freematics UART 2.1 Custom PID 22242C creation

Post by etnaskynet »

Hi Stanley,

do you have an example code to start?

Regards,
Lucio
etnaskynet
Posts: 11
Joined: Fri Jan 31, 2020 8:00 pm
Location: Italy

Re: Freematics UART 2.1 Custom PID 22242C creation

Post 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.
etnaskynet
Posts: 11
Joined: Fri Jan 31, 2020 8:00 pm
Location: Italy

Re: Freematics UART 2.1 Custom PID 22242C creation

Post 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
Post Reply