2019-12-16, 08:39 PM
(2019-12-15, 05:42 PM)mikedeflieslife Wrote: I'm close to getting my system set up how I want it, but i'm having an issue with connections in Signalk.
Each time I restart the Pi the serial ports change.
In one session my CAN-USB might be at /dev/ttyUSB0 and my GPS might be /dev/ttyUSB1
If I restart the Pi, these might switch, Or even move to completely new ports like /dev/ttyUSB2
Is this normal expected behaviour? Is it possible to bind them to specific physical ports?
Secondly, the signalk server shows 'Discovered connections' in this case my Simrad NSS8.
I can't seem to do anything with this discovered connection though. Should it be that you could click on it and set it to 'Enabled' or that it becomes automatically enabled? Mine does neither.
If I have to add it manually (which I can do) what is point in the 'Discovered connections'
Thanks in advance
Yes, that is the expected linux behaviour with serial devices. As Jim said, you need to set some udev rules to fix this but using udev is not easy.
The good news is that I have just released openplotter-serial app and it will do all the job for you : you can set an alias to your device and you have to use that alias when you want to configure your device in any program. Your device will be remembered by its serial number or even by its position in the USB connector or hub. You will be able to crete connections with other apps or programs like SK, CAN, GPSD, pypilot...