OpenMarine
Can bus adapter not sending data - Printable Version

+- OpenMarine (https://forum.openmarine.net)
+-- Forum: OpenPlotter (https://forum.openmarine.net/forumdisplay.php?fid=1)
+--- Forum: General discussion (https://forum.openmarine.net/forumdisplay.php?fid=2)
+--- Thread: Can bus adapter not sending data (/showthread.php?tid=2717)

Pages: 1 2 3


Can bus adapter not sending data - Celestine - 2020-07-06

Hi,
I have an odd problem with my can bus adapter (Actisense NGT-1). 
When Openplotter2 is started chances are 50% that the can bus adapter start sending data. Many times I need to open SK admin and restart SK several times before data starts flowing in. I know that there is data to send as the connected n2k instruments before the Actisense performs normally.
The only error I get at start up is: 

Checking serial connections conflicts...
There are conflicts between the following serial connections:
Signal K -> connection ID: ais | device: /dev/ttyOP_ais

This is also odd as the ais input works perfect from start every time. The message doesn't tell with what the conflict is about. When, after restarting SK the can adapter is finally working the conflict message about the ais adapter is still there.
Where do I find logs that can give more details of what is going on?
Cheers,
Pär W


RE: Can bus adapter not sending data - Sailoog - 2020-07-06

what the openplotter serial app says in connections tab?

it seem that 2 apps are fighting for the same USB port. Check signal k, opencpn, can app... to see if you have assigned the same port twice.


RE: Can bus adapter not sending data - Celestine - 2020-07-06

Hi
Everything looks perfectly normal, that’s what makes it so strange.
When I set the connections up I did it in the serial app and then set up SK and can from there. That’s why I ask for the location of logs to be able to troubleshoot deeper.
Cheers
Pär W


RE: Can bus adapter not sending data - ActiveJC - 2020-07-07

(2020-07-06, 11:49 AM)Celestine Wrote: Hi,
I have an odd problem with my can bus adapter (Actisense NGT-1). 
When Openplotter2 is started chances are 50% that the can bus adapter start sending data. Many times I need to open SK admin and restart SK several times before data starts flowing in. I know that there is data to send as the connected n2k instruments before the Actisense performs normally.
The only error I get at start up is: 

Checking serial connections conflicts...
There are conflicts between the following serial connections:
Signal K -> connection ID: ais | device: /dev/ttyOP_ais

This is also odd as the ais input works perfect from start every time. The message doesn't tell with what the conflict is about. When, after restarting SK the can adapter is finally working the conflict message about the ais adapter is still there.
Where do I find logs that can give more details of what is going on?
Cheers,
Pär W

Hi there,
Not sure how Openplotter2 works so it may be worth performing the same tests with Actisense NMEA Reader (https://www.actisense.com/acti_software/nmea-reader).  
If you're using a Mac, use the WINE - Windows Emulator in order to test with NMEA Reader.
Any other issues, let the team know at https://www.actisense.com/support
Good luck  Smile


RE: Can bus adapter not sending data - Celestine - 2020-07-07

I don’t think that the actual adapter is what causes the problems. Once you get data into SK after some restarts it’ totally solid.
I’m not sure the ais port conflict has got anything to do with the n2k adapter problem either as the ais error persists when n2k is up and running. There isn’t even an actual problem with the ais as it works all the time. It’s just that there’s an error when the system check is run.
Is there a system log for SK and where can I find it?
Cheers
Pär W


RE: Can bus adapter not sending data - Sailoog - 2020-07-07

Please could you copy here your sk settings file: /home/pi/.signalk/settings.json


RE: Can bus adapter not sending data - Celestine - 2020-07-07

Hi,
Here it is!
Cheers
Pär W

{
"interfaces":{

},
"pipedProviders":[
{
"enabled":true,
"id":"ocpnout",
"pipeElements":[
{
"options":{
"logging":false,
"providerId":"ocpnout",
"subOptions":{
"baudrate":9600,
"device":"\/dev\/ttyOP_0183out",
"port":"10110",
"providerId":"ocpnout",
"sentenceEvent":"ocpnout",
"type":"udp",
"validateChecksum":false
},
"type":"NMEA0183"
},
"type":"providers\/simple"
}
]
},
{
"enabled":true,
"id":"ais",
"pipeElements":[
{
"options":{
"logging":false,
"providerId":"ais",
"subOptions":{
"baudrate":38400,
"device":"\/dev\/ttyOP_ais",
"providerId":"ais",
"sentenceEvent":"ais",
"type":"serial",
"validateChecksum":true
},
"type":"NMEA0183"
},
"type":"providers\/simple"
}
]
},
{
"enabled":true,
"id":"ap",
"pipeElements":[
{
"options":{
"logging":false,
"providerId":"ap",
"subOptions":{
"baudrate":4800,
"device":"\/dev\/ttyOP_ap",
"providerId":"ap",
"sentenceEvent":"",
"toStdout":[
"ap",
"nmea0183out"
],
"type":"serial",
"validateChecksum":true
},
"type":"NMEA0183"
},
"type":"providers\/simple"
}
]
},
{
"enabled":true,
"id":"n2k",
"pipeElements":[
{
"options":{
"logging":false,
"providerId":"n2k",
"subOptions":{
"baudrate":115200,
"device":"\/dev\/ttyOP_n2k",
"providerId":"n2k",
"type":"ngt-1-canboatjs"
},
"type":"NMEA2000"
},
"type":"providers\/simple"
}
]
}
],
"security":{
"strategy":".\/tokensecurity"
},
"ssl":false
}


RE: Can bus adapter not sending data - Sailoog - 2020-07-08

could you post an screenshot of devices and connections tabs of openplotter serial app?


RE: Can bus adapter not sending data - Celestine - 2020-07-08

Hi
I’ll try to do that tomorrow. Everything looks normal there, though.
When I started up all instruments this morning I had data from n2k right away even though the ais conflict error appeared. So I don’t’ think the two are related.
Cheers
Pär W


RE: Can bus adapter not sending data - Celestine - 2020-07-09

Hi,
Here comes screenshots of devices and connections tabs.
Cheers,
Pär W