SK
Signal K4mo ago
Runar

Multiple session on N2K?

SignalK set up to send data to my B&G setup for the performance plugin by @HansT. When I reboot, this happens more often than not. How do I avoid?
No description
17 Replies
HansT
HansT3mo ago
So it looks like it's connected to uniqueNumber missing in settings.json. @Scott Bender I thought this was fixed already? If not, probably enough to add uniqueNumber to the variables to write to settings.json? It's already part of the can interface, so a secondary interface can get it's own number.
Scott Bender
Scott Bender3mo ago
I’m not sure what the number being displayed there is. But if uniqueNumber is not in the setting (it should be), then it uses a random number. There was also recently a change to the way the serial number is generated.
Runar
Runar3mo ago
So how do I implement?
Scott Bender
Scott Bender3mo ago
Update your server with “sudo npm install -g signalk-server” And check your connection in settings.json for uniqueNumber. It should look something like ``` { "type": "providers/simple", "options": { "logging": true, "type": "NMEA2000", "subOptions": { "type": "canbus-canboatjs", "interface": "can0", "providerId": "can0", "uniqueNumber": 920606,
Runar
Runar3mo ago
Changed manually, but when reatarting the can connection is gone. When I add it and restart - this is what I get
No description
Scott Bender
Scott Bender3mo ago
very strange. I just created a new connection and it looks like this
{
"pipeElements": [
{
"type": "providers/simple",
"options": {
"logging": false,
"type": "NMEA2000",
"subOptions": {
"type": "canbus-canboatjs",
"interface": "can0",
"uniqueNumber": 418893
}
}
}
],
"id": "can0",
"enabled": true
}
{
"pipeElements": [
{
"type": "providers/simple",
"options": {
"logging": false,
"type": "NMEA2000",
"subOptions": {
"type": "canbus-canboatjs",
"interface": "can0",
"uniqueNumber": 418893
}
}
}
],
"id": "can0",
"enabled": true
}
try deleting your data connection via the admin ui, restart, then create a new one ?
HansT
HansT3mo ago
@Runar did you upgrade the server as Scott mentioned?
Runar
Runar3mo ago
Yes. I did. Restarted my pi and then screenshot my setting.json
HansT
HansT3mo ago
I also notice 'providers/simple' in Runar's screenshot - that looks odd \ /
Runar
Runar3mo ago
Did a new upgrade with browser closed. Restarted my pi. Checked settings.json. Still no "uniqueNumber"
Scott Bender
Scott Bender3mo ago
Did you deleted and recreate the data connection?
Runar
Runar3mo ago
not on purpose as far as i know...
Scott Bender
Scott Bender3mo ago
I asked you to do that above try deleting your data connection via the admin ui, restart, then create a new one ?
Runar
Runar3mo ago
Only the can or all?
Want results from more Discord servers?
Add your server