2018-03-15, 05:05 AM
Is there an actual NMEA string for an AIS event that should generate an alarm? If not, this might be more difficult than I thought.
RPI, OpenCPN and buzzer
|
2018-03-15, 05:05 AM
Is there an actual NMEA string for an AIS event that should generate an alarm? If not, this might be more difficult than I thought.
yes abarrow its !AIVDM
http://www.bosunsmate.org/ais/#nmea seems like a lot of work for something that opencpn already does.
2018-03-15, 03:03 PM
Yes, but I think he wants to have some sort of remote buzzer. I guess you could just remote the speaker and play the alert sounds that OpenCPN generates.
2018-03-15, 06:30 PM
I only wanted Opencpn to switch on a GPIO pin instead of opening a wav file.
It seems to be more difficult than I thought. I'm going to abort...
2018-03-16, 02:06 PM
Don't bury your head in the sand. It can be done with the help of node-red.
Connect node-red to signalK and watch for the ais alert. Use the gpio node and trigger your your favourite pin. Hook the pin up to an relay, mosfet, optocoupler, whatever and connect it to your signal-horn. Get blown away when the alarm triggers
2018-03-17, 08:09 AM
Thank you. I'll try to do that.
...but I'm a noob, and not sure to succeed
2018-03-17, 08:31 AM
2018-03-17, 11:07 AM
Tbh I don't know. It was a wild guess... Because Jim said there was a NMEA sentence I assumed SignalK could handle it too.
I'm currently not at home and just running a pi zero here so I can't test.
2018-03-17, 11:15 AM
(2018-03-17, 11:07 AM)shark24 Wrote: Tbh I don't know. It was a wild guess... Because Jim said there was a NMEA sentence I assumed SignalK could handle it too. Not sure there's any ais 'Alarm' messages , they'd be local events anyway to the program?
I thought OpenCPN could trigger this 'alarm'. Douz wrote about 'AIS Alarm' so I assumed there is some sort of alarm.
What about the geofence node ( https://www.npmjs.com/package/node-red-node-geofence ). Haven't looked into it but this might be an option to check if an AIS target is in your 'alarm' area. I guess you can calculate the CPA with node-red but it's not that simple https://sci-hub.tw/https://doi.org/10.10...3316000229 |
« Next Oldest | Next Newest »
|