From aboard s/v Victoria...trying to get their AIS ("easyAIS",
http://www.easyais.de/en/product_page.php?prodid=15) to work with OpenCPN. It seems no matter what we do, OpenCPN under NX0.5 will only display one AIS target while GPSD shows more targets and OpenCPN under Windows also displays additonal targets.
Here's what we have:
dmesg tail after plugging in AIS via serial2USB converter:
Code:
[ 297.188510] usbserial: USB Serial support registered for generic
[ 297.189253] usbcore: registered new interface driver pl2303
[ 297.189285] usbserial: USB Serial support registered for pl2303
[ 297.189325] pl2303 8-1:1.0: pl2303 converter detected
[ 297.190312] usb 8-1: pl2303 converter now attached to ttyUSB0
[ 298.361514] pps_core: LinuxPPS API ver. 1 registered
[ 298.361523] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <
[email protected]>
[ 298.362046] pps_ldisc: PPS line discipline registered
[ 298.362624] pps pps0: new PPS source usbserial0
[ 298.362643] pps pps0: source "/dev/ttyUSB0" added
GPS plugged in subseqeuntly, showing up on /dev/ttyUSB1.
gpspipe -w has both AIS and GPS showing up in the GPSD device list:
Code:
{"class":"VERSION","release":"3.6","rev":"3.6","proto_major":3,"proto_minor":7}
{"class":"DEVICES","devices":[{"class":"DEVICE","path":"/dev/ttyUSB0",
"activated":"2014-01-18T18:28:33.271Z","flags":9,"driver":"AIVDM",
"native":0,"bps":38400,"parity":"N","stopbits":1,"cycle":1.00},
{"class":"DEVICE","path":"/dev/ttyUSB1","activated":"2014-01-18T18:28:36.304Z",
"flags":1,"driver":"Generic NMEA","native":0,"bps":4800,"parity":"N",
"stopbits":1,"cycle":1.00}]}
{"class":"WATCH","enable":true,"json":true,"nmea":false,"raw":0,"scaled":false,
"timing":false}
Filtering only 'AIS' sentences out of the subsequent gpspipe stream shows that there are at least two targets:
Code:
{"class":"AIS","device":"/dev/ttyUSB0","type":1,"repeat":0,"mmsi":232064000,
"scaled":false,"status":0,"turn":0,"speed":1,"accuracy":false,"lon":91929148,
"lat":-16350914,"course":3480,"heading":105,"second":51,"maneuver":0,
"raim":false,"radio":163954}
{"class":"AIS","device":"/dev/ttyUSB0","type":1,"repeat":0,"mmsi":235059368,
"scaled":false,"status":0,"turn":0,"speed":145,"accuracy":true,"lon":91937745,
"lat":-16184157,"course":3410,"heading":342,"second":50,"maneuver":0,
"raim":false,"radio":69400}
In OpernCPN, under Options -> Connections, we disabled the "/tmp/aisfifo" serial connection which we assume to be used for AIS via sound card. We then tried two different settings:
[1] Only GPSD enabled -> Only the AIS target with MMSI 235059368 shows up
[2] Added another connection as shown below:
Attachment:
options_connections.jpg [ 40.29 KiB | Viewed 15500 times ]
Still only the 235059368 MMSI shows up.
Kay from Victoria says he has tried this before with more than two targets showing up in OpenCPN under Windows while NX would only show one target.
Any ideas/advice welcome. Is there anything in the "AIS via sound card" setup (/usr/local/bin/opencpnais) which we would need to disable for OpenCPN to work with a "normal" AIS?
Many thanks!