Unable to change ID in transmit window after linked to PGN

Comprehensive CAN monitor for Windows® and its add-ins: Plotter, CANdb Import, Instruments Panel, and J1939
Post Reply
Username
Posts: 17
Joined: Fri 31. Jul 2015, 17:57

Unable to change ID in transmit window after linked to PGN

Post by Username » Mon 2. May 2016, 21:38

I have a J1939 transmit list that I add messages to. Once I create the message, and the symbol/PGN is applied, I cannot edit the message ID or DLC, only the data.

My application could have several different source addresses, so I would like to be able to change the source address dynamically. I have updated my symbol file to include the other source addresses, but how do I go about changing it within the "Edit Message" window?

For example, I have a message ID 0CFEEE00h, I would like to change to 0CFEEE01h, I don't see any way to do so within the "Edit Message" window.

K.Wagner
Software Development
Software Development
Posts: 1080
Joined: Wed 22. Sep 2010, 13:36

Re: Unable to change ID in transmit window after linked to P

Post by K.Wagner » Tue 3. May 2016, 09:41

Hello,

I'm not sure if I understand what you mean. Assuming you are using the PCAN-Explorer, you can edit an already created J1939 message by doing right mouse-click over that message. Than you can select the option "Edit Message..." and the Edit Message window appears:
Popup menu of a J1939 message
Popup menu of a J1939 message
EditMessage.png (10.29 KiB) Viewed 7207 times
If you want to change the Source-Address dynamically in regard of any event that can occur, then you will need to write a VBScript macro for that.
Best regards,
Keneth

Username
Posts: 17
Joined: Fri 31. Jul 2015, 17:57

Re: Unable to change ID in transmit window after linked to P

Post by Username » Tue 3. May 2016, 15:57

I am able to open the "edit message" window, but I am unable to edit the ID, only the data (notice the message ID and DLC are grayed out):
Attachments
EDIT_message.bmp
EDIT_message.bmp (204.47 KiB) Viewed 7203 times
EDIT.bmp
EDIT.bmp (249.25 KiB) Viewed 7203 times

Username
Posts: 17
Joined: Fri 31. Jul 2015, 17:57

Re: Unable to change ID in transmit window after linked to P

Post by Username » Tue 3. May 2016, 16:00

I just now realized I can do what I need by adjusting the "priority" and "source" values, and the ID updates as desired, while maintaining the appropriate PGN:
Attachments
success.bmp
success.bmp (381.01 KiB) Viewed 7203 times

K.Wagner
Software Development
Software Development
Posts: 1080
Joined: Wed 22. Sep 2010, 13:36

Re: Unable to change ID in transmit window after linked to P

Post by K.Wagner » Tue 3. May 2016, 16:16

Yes. When you create a message, you select a PGN, that is, that PGN is tied to that message. The ID is given by the protocol (J1939). This is, it is formed using PGN, Source and Destination address, and Priority. Depending on the kind of PGN you will be able or not to change the destination address and length (DLC).
Best regards,
Keneth

Post Reply