Replies: 5 comments 11 replies
-
Telnet command should give you continuous stream of AIS messages. Not just 4. there is also AIS-catcher. You can try it instead of older rtl_ais. |
Beta Was this translation helpful? Give feedback.
-
Hello I started rtl_ais to mirror sending data to console: Using device 0: Generic RTL2832U OEM netcat does not show anything on port 10112: I also recompiled rtl-ais from https://github.com/dgiardini/rtl-ais, no effect. PS: the same device and hardware , but on different port (10110 default) rtl-ais was working ok with openplotter, so device is OK Any idea what is wrong? or just switch to AIS-catcher? |
Beta Was this translation helpful? Give feedback.
-
a bit more: when opencpn is not running , I see nothing, apparently signalk does not fire up connection |
Beta Was this translation helpful? Give feedback.
-
Did you specify localhost or 127.0.0.1 in SignalK? localhost might be resolving to ipv6 address instead of ipv4. Put 127.0.0.1 explicitly |
Beta Was this translation helpful? Give feedback.
-
yes, it works with 127.0.0.1 |
Beta Was this translation helpful? Give feedback.
-
Sorry in advance, I think part of my problem is that I don't really understand what should be happening.
I have here an rtl-sdr blog stick connected to an AIS antenna, connected to my RPi running BBN. I've done the blacklisting of modules as instructed.
If I run:
$ rtl_ais -n
I get a constant stream of AIS messages (AIVDM). So far, so good, I imagine.
If I kill that, and instead do:
$ systemctl start rtl-ais
$ ps aux | grep ais
I get:
/usr/bin/rtl-ais -R on -P 10112 -T
which looks promising.
However:
$ telnet localhost 10112
gives me four lines of AIVDM only (different every time I do it), and then stops. This may or may not be significant - see me not knowing what to expect.
I've enabled rtl_ais_tcp in Signal K Server, with localhost:10112, TCPclient, data timeout=600, remove null chars=on, as its configured values. However, there's no sign of AIS targets showing up in Freeboard or OpenCPN, or AIVDM messages in OpenCPN's NMEA debug window, where I am seeing other NMEA messages.
Most of the system config is standard, this is one of the first things I'm trying to get working.
In the SK server logs I do get a repeated
TcpProvider:connect ECONNREFUSED 127.0.0.1:30330
which seems to relate to OpenCPN according to the port number shown in the connection and plugin status table of the SK server dashboard. I don't know what that is though - an input to OpenCPN, output from it, plugin, something which requires configuration, or whether it's of any relevance to this.
I'm new to BBN and SignalK, so I don't know whether I'm dealing with a fault of some kind or just haven't set something up right. Any advice would be gladly received; my objective for now is just to get the AIS targets showing up in OpenCPN, but on Friday I'll be trying to connect up my NMEA0183 instruments via this system's MCS board.
Beta Was this translation helpful? Give feedback.
All reactions