# Signalk-send-n2k

**URL:** <https://discourse.nodered.org/t/signalk-send-n2k/84789>\
**Category:** General\
**Created:** [22 January 2024 10:56 UTC](https://discourse.nodered.org/t/signalk-send-n2k/84789 "2024-01-22T10:56:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![higster](https://avatars.discourse-cdn.com/v4/letter/h/aeb1de/32.png) [@higster](https://discourse.nodered.org/u/higster)\
**Post date:** [22 January 2024 10:56 UTC](https://discourse.nodered.org/t/signalk-send-n2k/84789/1 "2024-01-22T10:56:07Z")

</div>

Hey Gang, I am looking for some help with using Node Red to send data to SignalK and then onwards to NMEA2K.

I am running OpenPlotter on a PI 4B - this in turn is running SignalK and Node Red (signalk-node-red 3.0.3)

I am getting battery voltage data into Node Red via MQTT from a Victron GX Node Red instance, and I want to push this data out onto the NMEA2K Network. I am running a PICAN-M NMEA Hat that connects to the NMEA 2K Network on my boat [PICAN-M - NMEA 0183 & NMEA 2000 HAT For Raspberry Pi](https://copperhilltech.com/pican-m-nmea-0183-nmea-2000-hat-for-raspberry-pi/)

I have this function that converts the voltage value coming in via MQTT to an actisense formatted string

```js
var voltage = msg.payload.toFixed(2); // Round to two decimal places

// Create Actisense-formatted string for PGN 127508
msg.payload = {
    pgn: 127508,
    fields: [
        { "Battery Voltage": voltage, "SID": 1 } // SID (Source Instance) can be any valid value
    ]
};

return msg;

```

_ADMIN EDIT: Wrap code ↑ in triple backticks_

This is successfully generating a pgn message, with the Battery Voltage, and a SID of 1

I am then trying to use the "send NMEA2000 node" to send this pgn data onto the NMEA2K network, but cannot get it to work. The fields in the node are:

Name  
NMEA2000 Event (default value is nmea2000out)  
NMEA2000 Jason Event (default value is nmea2000JsonOut)

Any help getting this working would be greatly appreciated

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [22 March 2024 10:56 UTC](https://discourse.nodered.org/t/signalk-send-n2k/84789/2 "2024-03-22T10:56:40Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
