Clearing DM2 Messages

Discuss issues and ideas you have to configuring displays with PowerVision
taylorsscott
Posts: 7
Joined: Sat Aug 20, 2011 11:54 am

Clearing DM2 Messages

Post by taylorsscott » Thu Dec 01, 2011 9:42 am

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!
ksaenz
Enovation Controls Development
Enovation Controls Development
Posts: 263
Joined: Thu Aug 19, 2010 7:53 am

Re: Clearing DM2 Messages

Post by ksaenz » Fri Dec 02, 2011 3:37 pm

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