I would like to create a button in addition to the Diagnostic menu in the standard 2.3 configuration. I would like to allow the user to clear DM2 messages after inputting a password.
Can someone assist me in creating a way to clear DM2 messages after putting in a password?
Best Regards!
Clearing DM2 Messages
- taylorsscott
- Posts: 7
- Joined: Sat Aug 20, 2011 11:54 am
- ksaenz
- Enovation Controls Development
- Posts: 263
- Joined: Thu Aug 19, 2010 7:53 am
Re: Clearing DM2 Messages
Hello taylorsscott,
Here is an example of using a password prompt:
viewtopic.php?f=5&t=269
If the password is correct, what you have to do to ask the ECU to clear DM2 messages is send a request for PGN 65228.
You can do this with a Free Form CAN message with Frame ID = 0x18EA0000, Length = 3 Bytes, Data bytes = 0x00FECC.
To send the Free Form CAN message you need to execute the action J1939->Tx Ext Form() from a state machine.
Regards,
ksaenz
Here is an example of using a password prompt:
viewtopic.php?f=5&t=269
If the password is correct, what you have to do to ask the ECU to clear DM2 messages is send a request for PGN 65228.
You can do this with a Free Form CAN message with Frame ID = 0x18EA0000, Length = 3 Bytes, Data bytes = 0x00FECC.
To send the Free Form CAN message you need to execute the action J1939->Tx Ext Form() from a state machine.
Regards,
ksaenz