2020-07-12, 03:56 PM
(2020-07-12, 11:46 AM)PaddyB Wrote:(2020-07-12, 11:33 AM)jamos.tan@gmail.com Wrote:(2020-07-12, 09:12 AM)PaddyB Wrote:(2020-07-12, 08:39 AM)jamos.tan@gmail.com Wrote:
I've tried doing this with UDP, TCP, SignalK connection and none of them receive any deltas/second, when trying the TCP connection it says "connection refused" and the rest of the connection options just don't receive data. When looking at the data browser in SignalK the connection is not listed, i guess that's because there was no data found to begin with. I know the data is there because Kplex does see it, but SignalK doesn't. Eventually I want to have the AIS data in Freeboard.
is the device sending the data connected to the openplotter network or another shared network? Should be sending to 10.10.10.1. not 192.168.*.*
It is on the same network, I am working with localhost, so class A 10.10.10.1 (or 127.0.0.1 localhost) and not class c 192.168.x.x
Sounds weird - could you post a message or screenshot of opencpn nmea debug window? Is it just ais that aren't being received when you configure signalk connections to receive on udp/tcp? What was the sending device again?
OpenCPN works just fine, also without Kplex configured. SDR VHF seems to open the UDP connection, I can see that in the network plugin details (addresses and ports) as follows:
SDR AIS output (client)
UDP openplotter.local:10110
UDP 192.168.1.51:10110
UDP 192.168.1.47:10110
UDP 10.10.10.1:10110
When I add a Kplex incoming connection (UDP in - port 10110) to test this input I get the AIS sentences. However, when testing it now I get an error; OSError occured. I haven't changed this connection, but I can't reset it either. When removing it, rebooting the pi and adding that same connection again, it works.
OpenCPN (on another laptop, couldn't copy the output on a pi but results are the same) gives the following output:
<GREEN>16:53:33 (TCP:192.168.1.47:10110) !AIVDM,1,1,,B,13aFgC@P00PG;F:N7annT?w225kD,0*7A<0x0D><0x0A>
<GREEN>16:53:33 (TCP:192.168.1.47:10110) !AIVDM,1,1,,B,E>jMjbQRHq1000000000000000006LV@?T<mPI3;;;v000,0*4B<0x0D><0x0A>
<GREEN>16:53:50 (TCP:192.168.1.47:10110) !AIVDM,1,1,,B,402E3:1vAn>miPGEahN7pi7008N0,0*47<0x0D><0x0A>
<GREEN>16:53:53 (TCP:192.168.1.47:10110) !AIVDM,1,1,,B,E>jMjbQRHq1000000000000000006LV@?T<mPI3;;;v000,0*4B<0x0D><0x0A>
My SignalK configuration:
Code:
{
"interfaces": {},
"pipedProviders": [
{
"enabled": true,
"id": "OPgps",
"pipeElements": [
{
"options": {
"logging": false,
"providerId": "OPgps",
"subOptions": {
"baudrate": 4800,
"device": "/dev/ttyAMA0",
"host": "localhost",
"providerId": "OPgps",
"type": "gpsd",
"validateChecksum": true
},
"type": "NMEA0183"
},
"type": "providers/simple"
}
]
},
{
"enabled": true,
"id": "OPpypilot",
"pipeElements": [
{
"options": {
"logging": false,
"providerId": "OPpypilot",
"subOptions": {
"host": "localhost",
"port": "20220",
"providerId": "OPpypilot",
"type": "tcp",
"validateChecksum": true
},
"type": "NMEA0183"
},
"type": "providers/simple"
}
]
},
{
"enabled": true,
"id": "Pypilot Signal K",
"pipeElements": [
{
"options": {
"logging": false,
"subOptions": {
"port": "20220",
"type": "udp",
"providerId": "Pypilot Signal K"
},
"type": "SignalK",
"providerId": "Pypilot Signal K"
},
"type": "providers/simple"
}
]
},
{
"pipeElements": [
{
"type": "providers/simple",
"options": {
"logging": false,
"type": "NMEA0183",
"subOptions": {
"validateChecksum": true,
"type": "udp",
"port": "10110",
"providerId": "OPkplex"
},
"providerId": "OPkplex"
}
}
],
"id": "AIS",
"enabled": true
}
],
"security": {
"strategy": "./tokensecurity"
},
"ssl": false
}