2019-01-19, 01:50 PM
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 :
Configuration KPlex :
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