This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Send all signalK event to UDP Port (for using navionics on ipad)
#1
Hello,

I installed and configure my pi, every thing works fine. OpenCPN receives all the relevant information on TCP 10110 from signalK.
I would like to configure the network to receive the same NMEA messages on UDP 2000 for an application navionicson my ipad connected to the network .
I tried to use KPlex for that, as it's a multiplexer and it has udp output.
But Kplex only see a limited part of my messages : GPS and pressure (coming from I2C/BME280).
The other messages are directly send to SignalK via OPpypilot or OPsensors.

I thought to define a TCP route from SignalK to Kplex and then send all the messages to UDP through KPlex. But I think it will create a messages overflow as the same message will be sent and resent between KPlex and SignalK.


How can I sent all the message from KPlex to UDP ?

Regards,
Philippe

My configuration :
Openplotter 1.2.0 alpha
PI 3
SignalK 1.10.2

Sensors :
RS422/485 (NMEA input)
GPS USB

DS18B20 (temperature)
BME280 (pressure)
MPU 9255 (accelerator & compas)

 

Configuration signalk :

Code:
{
    "enablePluginLogging":true,
    "interfaces":{
        "appstore":true,
        "nmea-tcp":true,
        "plugins":true,
        "providers":true,
        "rest":true,
        "tcp":true,
        "webapps":true,
        "ws":true
    },
    "loggingDirectory":"/home/pi/Logs",
    "mdns":false,
    "pipedProviders":[
        {
            "enabled":false,
            "id":"OPcan",
            "pipeElements":[
                {
                    "options":{
                        "logging":false,
                        "subOptions":{
                            "device":"/dev/ttyOP_",
                            "type":"ngt-1"
                        },
                        "type":"NMEA2000"
                    },
                    "type":"providers/simple"
                }
            ]
        },
        {
            "enabled":false,
            "id":"OPpypilot",
            "pipeElements":[
                {
                    "options":{
                        "logging":false,
                        "subOptions":{
                            "host":"localhost",
                            "port":"20220",
                            "type":"tcp"
                        },
                        "type":"NMEA0183"
                    },
                    "type":"providers/simple"
                }
            ]
        },
        {
            "enabled":true,
            "id":"OPkplex",
            "pipeElements":[
                {
                    "options":{
                        "logging":false,
                        "subOptions":{
                            "host":"localhost",
                            "port":"30330",
                            "type":"tcp"
                        },
                        "type":"NMEA0183"
                    },
                    "type":"providers/simple"
                }
            ]
        },
        {
            "enabled":true,
            "id":"OPwifi",
            "pipeElements":[
                {
                    "options":{
                        "logging":false,
                        "subOptions":{
                            "port":"55561",
                            "type":"udp"
                        },
                        "type":"SignalK"
                    },
                    "type":"providers/simple"
                }
            ]
        },
        {
            "enabled":true,
            "id":"OPserial",
            "pipeElements":[
                {
                    "options":{
                        "logging":false,
                        "subOptions":{
                            "port":"55559",
                            "type":"udp"
                        },
                        "type":"SignalK"
                    },
                    "type":"providers/simple"
                }
            ]
        },
        {
            "enabled":true,
            "id":"OPnotifications",
            "pipeElements":[
                {
                    "options":{
                        "logging":false,
                        "subOptions":{
                            "port":"55558",
                            "type":"udp"
                        },
                        "type":"SignalK"
                    },
                    "type":"providers/simple"
                }
            ]
        },
        {
            "enabled":true,
            "id":"OPsensors",
            "pipeElements":[
                {
                    "options":{
                        "logging":false,
                        "subOptions":{
                            "port":"55557",
                            "type":"udp"
                        },
                        "type":"SignalK"
                    },
                    "type":"providers/simple"
                }
            ]
        }
    ],
    "port":3000,
    "security":{
        "strategy":"@signalk/sk-simple-token-security"
    },
    "ssl":false,
    "sslport":3443



Configuration KPlex :
Code:
# For advanced manual configuration, please visit: http://www.stripydog.com/kplex/configuration.html
# Please do not modify defaults nor OpenPlotter GUI settings.
# Add manual settings at the end of the document.

###defaults

[udp]
name=system
direction=in
port=10110

[tcp]
name=signalk
direction=out
mode=server
port=30330


###end of defaults

###OpenPlotter GUI settings

[udp]
name=pub_net
direction=out
optional=yes
address=10.10.10.255
port=2000

[serial]
name=gp
direction=in
optional=yes
filename=/dev/ttyOP_gp
baud=4800

###end of OpenPlotter GUI settings

###Manual settings
Reply


Messages In This Thread
Send all signalK event to UDP Port (for using navionics on ipad) - by pkernevez - 2019-01-19, 01:50 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)