Receive NMEA2000 pgn 126996

Discuss issues and ideas you have to configuring displays with PowerVision
JoakimMD
Posts: 20
Joined: Fri Oct 22, 2010 9:17 am

Receive NMEA2000 pgn 126996

Post by JoakimMD » Tue Dec 05, 2017 6:25 am

Hi all,

PV780 and PVCS 2.8.10546

The flow is: Request for pgn 126996. Receive pgn depending on source address and put received information in four strings.

So, sending out a request is no problem but I can´t figure out how to receive the pgn. Tried Free form data messages but I can´t get anything. I suspect it has to do with the filters that I don´t know how they work. Searched the forum and also looked in the manual but it´s not clear to me. An example would be nice. Pgn is NMEA fast packet 134 bytes of data.

Filter on source address can also be a challenge from what I have read. This will be a problem for later.

This is what I would Think work, but it´s not. Any suggestions?
Attachments
FFD.png
FFD.png (29.84 KiB) Viewed 121 times
JoakimMD
Posts: 20
Joined: Fri Oct 22, 2010 9:17 am

Re: Receive NMEA2000 pgn 126996

Post by JoakimMD » Tue Dec 05, 2017 7:32 am

This section in the core reference manual is unclear. It says, for example that 3 is the third byte. Then you would expect to be able to define that the data end byte to be 8, but it will automatically change to 7.

Do you start countning from 0 or 1?
Attachments
Manual.png
Manual.png (91.4 KiB) Viewed 120 times
boyce
Enovation Controls Development
Enovation Controls Development
Posts: 322
Joined: Wed Sep 08, 2010 5:09 pm

Re: Receive NMEA2000 pgn 126996

Post by boyce » Tue Dec 05, 2017 2:50 pm

I've included a configuration that I received from one of the developers. It's not the NMEA product information PGN but it is similar. I think the main thing to notice is that the PGN field and the Mask includes the space for the source address, really the entire CAN ID. But the Mask is used to select the PGN. The example configuration did not use the Packet Definition fields, she said you didn't need to.
freeformdata1.JPG.png
freeformdata1.JPG.png (38.3 KiB) Viewed 109 times
freeformdata3.png
freeformdata3.png (21.51 KiB) Viewed 109 times
There is a script that shows receiving the message and picking the data out of the SoftwareId reserved string.
freeformdata2.JPG.png
freeformdata2.JPG.png (84.3 KiB) Viewed 109 times
I think the main issue is knowing how to define the PGN and Mask fields for the Free Form Data Message.
Parse Software ID.zip
(721.68 KiB) Downloaded 11 times
Boyce Schrack
Enovation Controls
JoakimMD
Posts: 20
Joined: Fri Oct 22, 2010 9:17 am

Re: Receive NMEA2000 pgn 126996

Post by JoakimMD » Thu Dec 14, 2017 3:08 am

Boyce,

Thanks for your answer. I have had alot of other projects ongoing but I will test this now. I can´t type that many characters in PGN and mask field. Using PVCS 2.8 and I think I will need to upgrade to latest 2.9.

Will get back to you if I run into more problems.

/Joakim