lysmarine / lysmarine_gen

Lysmarine is build with the stability of the raspbian operating system to provide an easy to use, stable, low-cost navigation computer for boats.
http://lysmarineos.com
20 stars 65 forks source link

Recognize more serial port USB devices. For example dAISy AIS #58

Open mgrouch opened 3 years ago

mgrouch commented 3 years ago

Recognize more serial port USB devices. For example dAISy AIS. I see some configs to recognize some known GPS chipsets. How do we recognize dAISy AIS serial ports and other NMEA ports via FTDI (those could be anything wind/depth)?

mgrouch commented 3 years ago

I do like approach based on vendor/product ID. It lets you to re-plug device into different USB port and still be named same

FredericGuilbault commented 3 years ago

gpsd provide a nice Udev list of known GPS device, and with udev event. I been able to dynamically add GPS signal to signalk and even reboot SK server on new device. That's the Approach I like the most.

Sadly such lists are not very easy to find. Plus on many cases when it's DIY stuff you only see that data are coming for let's say I2C, 1Wire or TTL only the human will be able to say if it's dept sensor, a temp sensor or a wind vane that are plugged on the other side.

That's why people still use node-red and openplotter....

I think some people that started collecting vendor/product ID for AIS and Radars but I haven't searched google for it yet.

mgrouch commented 3 years ago

You can do it by vendor And product ids

Sent from my iPhone

On Nov 25, 2020, at 8:57 AM, Frederic Guilbault notifications@github.com wrote:

 gpsd provide a nice Udev list of known GPS device, and with udev event. I been able to dynamically add GPS signal to signalk and even reboot SK server on new device. That's the Approach I like the most.

Sadly such lists are not very easy to find. Plus on many cases when it's DIY stuff you only see that data are coming for let's say I2C, 1Wire or TTL only the human will be able to say if it's dept sensor, a temp sensor or a wind vane that are plugged on the other side.

That's why people still use node-red and openplotter....

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

mgrouch commented 3 years ago

You can see for AIS here

https://bareboat-necessities.github.io/my-bareboat/images/config/openplotter-serial-devices.png

mgrouch commented 3 years ago

https://www.cruisersforum.com/forums/f13/daisy-open-source-ais-receiver-154962-3.html

mgrouch commented 3 years ago

I've done some changes in my fork. I know only vendorID/productID for dAISy AIS. And I can't test my changes cause it's on my winterized boat.

FredericGuilbault commented 3 years ago

https://github.com/bareboat-necessities/lysmarine_gen/blob/master/install-scripts/4-server/files/90-lys-ais.rules https://github.com/bareboat-necessities/lysmarine_gen/blob/master/install-scripts/4-server/files/manage_ais.sh https://github.com/bareboat-necessities/lysmarine_gen/blob/master/install-scripts/4-server/files/settings.json