Open cpn AIS

sailaboutvic

Well-Known Member
Joined
26 Jan 2004
Messages
9,972
Location
Northern Europe
Visit site
Here we go again .
As from my last posting we have a digital IAIS unit , it works on my iPad , it also work on my PC open CPN , but we also have an Samsung table with open CPN and for some reason I can't get it to pick the AIS .
Any ideas guys ?
Just to say I disconnected the iPad and turned the PC in case of a conflict and still it won't show up .
Just wonding if there a setting I not set .
 
Is this wifi signal from the AIS unit showing up on the tablet on the list of wifi signals that it can actually see and log on to?

If the tablet can see and log onto the wifi signal, then it is probably one of the settings within OpenCPN that are not set correctly.

For example, I seem to remember when I set up OpenCPN some years ago it likes the AIS units IP address to be entered into the TCP/IP set up box as 192.168.001.015 or whatever, rather than 192.168.1.15 which many programs will accept. I think you also need to enter the correct port number as found by accessing the AIS units wifi set-up screen.

Richard
 
Are you getting other data to the iPad successfully, e.g. your own position? i.e. is it just AIS data that isn't working?

If you click on the "Show NMEA debug Window" box do you see !AIVDM messages scrolling through?
 
On the laptop take a look at Options>Connections. If the iAIS unit is using its defaults you should see an entry that has an address like 169.254.1.1:2000 (its the :2000 that's important, the preceding numbers may be different).

Recreate that connection on the tablet and that *should* do the trick
 
On the laptop take a look at Options>Connections. If the iAIS unit is using its defaults you should see an entry that has an address like 169.254.1.1:2000 (its the :2000 that's important, the preceding numbers may be different).

Recreate that connection on the tablet and that *should* do the trick
Some quick replys thanks guy .
Yes the tablet is loged on to the AIS wifi .
The port is correct at 2000.
The address is the same as the PC which works ok .
I gone through the setting and they seen to be the same as the laptop in options , connections , AIS
Once I am back at the boat I will try and do as lpdsn says and look at show NMEA debug window , not try that yet .
 
worth checking it's set to TCP protocol as well .

(I'm assuming iAIS uses TCP , not UDP?)
IAIS Uses both you can set it to TCP or UDP , if I understand it right , if you want to use multiple display you have to set it to UPD althought both my laptop and my ipad seen to work fine when it set at TCP .
Can anyone else explain the different .
 
Re check the setting and both the laptop and the tablet has the same setting .
But for some reason when I go onto debug window , there nothing showing for the AIS on the tablet ,
although there showing for the GPS .
for sure the tablet is connecting to the AIS wifi .
One other thing . The laptop is connecting tho UDP , 0.0.0.0 port 2000 ,
I try connecting the tablet both ways , UDP and TCP .
Now I am lost .
Over to you guys
 
Re check the setting and both the laptop and the tablet has the same setting .
But for some reason when I go onto debug window , there nothing showing for the AIS on the tablet ,
although there showing for the GPS .
for sure the tablet is connecting to the AIS wifi .
One other thing . The laptop is connecting tho UDP , 0.0.0.0 port 2000 ,
I try connecting the tablet both ways , UDP and TCP .
Now I am lost .
Over to you guys

Hi Vic ... I don't think that the UDP can be correct. Set the laptop to connect to the AIS unit through TCP/IP through whatever IP address and port number the AIS uses .... it will be something like 192.168.1.15:2000 as I said above. Once you have OpenCPN on the laptop connecting and receiving GPS and AIS data then you should be able to use the same TCP settings in the tablet version of OpenCPN. Don't forget to try the leading zeros in the IP address if it doesn't connect the first time.

Richard
 
Unless you can find someone to fiddle directly or someone with actual experience I think youre outside our skills. What you have on the PC is a bit of a fudge, listing 0.0.0.0:2000 on UDP (I think) means the system will listen for anything from port 2000 on any interface available, given that UDP is a broadcast method rather than point to point. It may be that the Android network stack works slightly differently to Windows and you dont get the same result.

If using the iAIS default of a TCP connection to 169.254.1.1:2000 doesnt work I'd suggest you email Digital for advice. As an afterthought, when the PC is connected to the iAIS wifi try opening a command window and type 'ipconfig'. What you want are the numbers listed in 'Default Gateway', add :2000 after those numbers in the OpenCPN connections dialog and see what happens.

Update: reading a more current User Guide for the iAIS it looks like the correct IP address for TCP should be 192.168.1.1 with Port 2000
 
Last edited:
Unless you can find someone to fiddle directly or someone with actual experience I think youre outside our skills. What you have on the PC is a bit of a fudge, listing 0.0.0.0:2000 on UDP (I think) means the system will listen for anything from port 2000 on any interface available, given that UDP is a broadcast method rather than point to point. It may be that the Android network stack works slightly differently to Windows and you dont get the same result.

If using the iAIS default of a TCP connection to 169.254.1.1:2000 doesnt work I'd suggest you email Digital for advice. As an afterthought, when the PC is connected to the iAIS wifi try opening a command window and type 'ipconfig'. What you want are the numbers listed in 'Default Gateway', add :2000 after those numbers in the OpenCPN connections dialog and see what happens.

Update: reading a more current User Guide for the iAIS it looks like the correct IP address for TCP should be 192.168.1.1 with Port 2000

Hi Robbie
Yes the new gate way is 192.168.1.1 port 2000 . We did have a problem a while back on the iPad and it came to light that when apple updated their iOS the old gate way stop working so we have to re program the unit with a file they sent up .
Anyway I have try the above gate way without any luck .
 
Hi Vic ... I don't think that the UDP can be correct. Set the laptop to connect to the AIS unit through TCP/IP through whatever IP address and port number the AIS uses .... it will be something like 192.168.1.15:2000 as I said above. Once you have OpenCPN on the laptop connecting and receiving GPS and AIS data then you should be able to use the same TCP settings in the tablet version of OpenCPN. Don't forget to try the leading zeros in the IP address if it doesn't connect the first time.

Richard

Hi Richard
What do you mean by the " leading zeros " ?
 
Vic, further thought - are you using the free or paid for version of OCPN on your tablet ? If the free, try getting rid and installing the paid for mainly cos its supported and up to date - still may not fix your problem though :)
 
Some quick replys thanks guy .
Yes the tablet is loged on to the AIS wifi .
The port is correct at 2000.
The address is the same as the PC which works ok .
I gone through the setting and they seen to be the same as the laptop in options , connections , AIS
Once I am back at the boat I will try and do as lpdsn says and look at show NMEA debug window , not try that yet .

iirc port 10110 should be used for your ais. all working great on my Samsung tablet with open cpn.

So just checked my settings. The port is 10110 and is working. But thw digitial yacht documentation saud port number 2000. I remember having issues 18 months ago and the resolution was to set the port to 10110.
 
Last edited:
iirc port 10110 should be used for your ais. all working great on my Samsung tablet with open cpn.

So just checked my settings. The port is 10110 and is working. But thw digitial yacht documentation saud port number 2000. I remember having issues 18 months ago and the resolution was to set the port to 10110.

Interesting, inasmuch as there is a standard for these things using port 10110 seems to be it for NMEA data. Ceratainly its the one that Navico use in thier GoFree setup
 
Quick update
I manage to get everything working but only on UDP and nothing with TCP , plain to email DY to morrow and see what they have to say , report back once I got a answer.
 
Top