Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

NMEA 2000 library for Codesys or some hints

teichhei
2019-04-18
2019-08-23
  • teichhei - 2019-04-18

    Hi everyone,

    I'm trying to get some info from a Raymarine network into a Wago PLC. I believe I have the PGN pulled out of the CAN ID correctly but now what? Does anybody have any info how exactly those fields are built and multiple messages reassembled?
    I tried first on a car OBD port but that is a whole dogs breakfast if you don't know what to expect.
    I'm using Wago E!Cockpit so I have to receive the 29 bit frames and deal with them. A library would be great.

    Sent from my SM-G935F using Tapatalk

     
  • somlioy - 2019-05-24

    If I'm not mistaken, the NMEA2000 standard is closed and costs several grands, and as far as I know theres no such thing as NMEA2000 library. Closest thing is: https://github.com/canboat/canboat, where they have done some reverse engineering.

    I think your best bet would be to use a NMEA2000-NMEA0183 converter where the latter i pure ASCII.

     
  • teichhei - 2019-07-10

    Thanks, CANBoat had all I needed to adapt. A few things are tricky though like injecting messages to control autopilot. So much traffic it is hard to find the right messages to spoof.

    Sent from my SM-G975F using Tapatalk

     
  • Maximilian-K - 2019-08-23

    I also believe you can set up a J1939 network in CoDeSys and add custom PGNs which you can point to the NMEA2k you want. Raymarine should have some sort of document with the common PGNs.

     

Log in to post a comment.