Cruisers Forum
 


Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 03-04-2017, 12:24   #1
Registered User

Join Date: Apr 2017
Posts: 33
furuno FA-30 ais messages not being picked up by openCPN

Hi all,

I'm trying to setup my openCPN version 4.4 to display ais targets received from my furuno FA-30 receiver connected to my windows laptop through direct ethernet cable connection (from FA-30 to ethernet adapter on laptop). I've set up wireshark on my laptop to confirm AIS messages are being received by my laptop . I've typed AIVDM messages into https://rl.se/aivdm and confirm some of them are clean messages that can be decoded eg !AIVDM,1,1,,B,13aL=:@P00PG4?BMqEl@0?vl26Ah,0*2E

wireshark shows that my furuno FA-30 is broadcasting aivdm messages

IPv4 source ip 172.31.24.2 destination ip 172.31.255.255
UDP source port 10033 destination port 10033

my computer ethernet adapter has been manually given an ip address on furunos broadcasting range
Ethernet adapter Ethernet:

Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : fe80::992a:2e4d:880b:432a%12
IPv4 Address. . . . . . . . . . . : 172.31.24.4
Subnet Mask . . . . . . . . . . . : 255.255.0.0
Default Gateway . . . . . . . . . : 172.31.24.1


(see attachment for full details)

So I thought I was all set. I started up openCPN went to options -> connections -> added connection -> network box ticked, UDP box ticked, ip address ( of the FA-30) 172.31.24.2 port 10033, I've ticket nmea logging debug and clicked apply.

The problem is that I'm receiving absolutely no ais data in openCPN not even in the nmea logging screen.

What have I done wrong?

many thanks!


My openCPN is not connected to a GPS.
bobbylockes is offline   Reply With Quote
Old 03-04-2017, 23:58   #2
Registered User

Join Date: Apr 2017
Posts: 33
Re: furuno FA-30 ais messages not being picked up by openCPN

Cant see my screenshot attachments.. Will try to upload later.
bobbylockes is offline   Reply With Quote
Old 04-04-2017, 11:48   #3
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 746
Re: furuno FA-30 ais messages not being picked up by openCPN

Did you use the correct cross over ethernet cable ?

And with a direct connection you dont' have a gateway.

I saw somewhere the settings for a FA-30. Probably the same as the FA-50:

172.031.024.002
subnet 255.255.000.000
gateway 000.000.000.000
navnet port 10000
hostname ais0
continues

There was also a recommendation to update the firmware and to leave the default IP unchanged.

Bram
verkerkbr is online now   Reply With Quote
Old 04-04-2017, 12:52   #4
Registered User

Join Date: Apr 2017
Posts: 33
Re: furuno FA-30 ais messages not being picked up by openCPN

Hi bram,

thanks for the tips. Do you mean I should setup my laptop with a similar ip address and submark? I've descirbed in my initial post how the submask and coputer ip is configured on the ethernet network adapter. Wireshark screenshot can't be attached mmmfff, though it provided all the information and confirmation of the ais messages entering my laptops network card.
I've trawled through the opncpn docs but can't find anything to help solve this strange issue. wireshark sees UDP ais messages on a certain port 10021 or 10033 from a source ip address (accoridng to wireshark furuno fa-30 has a ip address 172.34.21.2) and a destination of 172.34.255.255. opencpn does not see these messages when windows is configured with 255.255.0.0 submask and a 172.34.21.4 ip address.... I think I'm going to have to download the opencpn source code!!! hahah
bobbylockes is offline   Reply With Quote
Old 04-04-2017, 13:08   #5
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 746
Re: furuno FA-30 ais messages not being picked up by openCPN

Quote:
Originally Posted by bobbylockes View Post
Hi bram,

thanks for the tips. Do you mean I should setup my laptop with a similar ip address and submark? I've descirbed in my initial post how the submask and coputer ip is configured on the ethernet network adapter. Wireshark screenshot can't be attached mmmfff, though it provided all the information and confirmation of the ais messages entering my laptops network card.
I've trawled through the opncpn docs but can't find anything to help solve this strange issue. wireshark sees UDP ais messages on a certain port 10021 or 10033 from a source ip address (accoridng to wireshark furuno fa-30 has a ip address 172.34.21.2) and a destination of 172.34.255.255. opencpn does not see these messages when windows is configured with 255.255.0.0 submask and a 172.34.21.4 ip address.... I think I'm going to have to download the opencpn source code!!! hahah
I have no experience with FA-30. But I think you must use another IP on your computer. But leave the other settings the same.

You must have a fysical connection between your computer and the FA-30 first.

And then do the OpenCPN settings and use the port address.

Regards,


Bram
verkerkbr is online now   Reply With Quote
Old 04-04-2017, 19:21   #6
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 6,195
Re: furuno FA-30 ais messages not being picked up by openCPN

bobby...

Try setting your OpenCPN UDP input port address to "0.0.0.0". This should grab all UDP packets coming into your machine.

Also, you may want to look at your OCPN logfile to see that the ports are set as you expect.

Good Luck
Dave
bdbcat is offline   Reply With Quote
Old 05-04-2017, 07:12   #7
Registered User
 
Panos's Avatar

Join Date: May 2013
Location: summer Med, winter Caribbean
Boat: Tayana 37, 1978
Posts: 13
Re: furuno FA-30 ais messages not being picked up by openCPN

Hi,
I m not familiar with FA 30 - I just read the manual and did some forums research. It seams that Furuno uses a proprietary protocol (Navnet) to exchange info between devices. This said you need a filter program between the laptops input port and openCPN witch extracts the NMEA 0183 AIS sentences. If you do a "NAVNET - openCPN compatible" google search you will find what is needed. Hopefully you know your way with computers - you will need it.

Panos
Cookelu meu -Tayana 37
Panos is offline   Reply With Quote
Old 05-04-2017, 07:27   #8
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 6,195
Re: furuno FA-30 ais messages not being picked up by openCPN

bobby...

We sure would like to see a screenshot of the wireshark capture of an AIS packet....

Thanks
Dave
bdbcat is offline   Reply With Quote
Old 05-04-2017, 12:48   #9
Registered User

Join Date: Apr 2017
Posts: 33
Re: furuno FA-30 ais messages not being picked up by openCPN

I've take wireshark screenshots here (3 images showing all detail wireshark can show!)

wireshark furuno - Album on Imgur

The ais AIVDM message picked up by wireshark on my laptop at one moment in time is:
!AIVDM,1,1,,B,13`e?5PP1:PFw5TMs?KW0gw2R6I8,0*39

BTW I made sure the windows firewall is open on ports 10021(used by AIVDO message and port 10033 used bu AIVDM messages) but it didn't improve things.

I even ran the code of a small java UDP client that I foudn on the internet but that doesn't pick up any messages either. when I say this doesn;t work I mean it doesn't receive any messages on either port 10021 or 10033.

java code of receiver is here..
Code:
package ais_furuno_fa30;

import java.io.IOException;
import java.net.*;

public class Receiver {

    public static void main(String[] args) {
        int port = args.length == 0 ? 10021 : Integer.parseInt(args[0]);
        new Receiver().run(port);
    }

    public void run(int port) {    
    	DatagramSocket serverSocket = null;
    	try {
         serverSocket = new DatagramSocket(port);
        byte[] receiveData = new byte[8];

        System.out.printf("Listening on udp: %s:%d%n", 
                InetAddress.getLocalHost().getHostAddress(), port);     
        DatagramPacket receivePacket = new DatagramPacket(receiveData,
                           receiveData.length);
        
        //
        while(true)
        {
        	  //System.out.println("raw address: " + IPAddress);
              serverSocket.receive(receivePacket);
              String sentence = new String( receivePacket.getData(), 0,
                                 receivePacket.getLength() );
              System.out.println("RECEIVED: " + sentence);
              // now send acknowledgement packet back to sender     
              InetAddress IPAddress = receivePacket.getAddress();
             /*
        	 
             InetAddress IPAddress = InetAddress.getByName("127.0.0.1");
              String sendString = "polo";
              byte[] sendData = sendString.getBytes("UTF-8");
             // DatagramPacket sendPacket = new DatagramPacket(sendData, sendData.length,
               //    IPAddress, receivePacket.getPort());
              DatagramPacket sendPacket = new DatagramPacket(sendData, sendData.length,
                      IPAddress, 10034);
              serverSocket.send(sendPacket);*/
        }
        
      } catch (IOException e) {
              System.out.println(e);
              
      }
      finally{
    	  serverSocket.close();// should close serverSocket in finally block
      }
    }
}
bobbylockes is offline   Reply With Quote
Old 05-04-2017, 13:00   #10
Registered User

Join Date: Apr 2017
Posts: 33
Re: furuno FA-30 ais messages not being picked up by openCPN

@dave, I tried configuring opencpn to 0.0.0.0 on both 10021 and 10033 but it didn't work.

@panos I'm checking out your advice. FOund a 7 year old post that sounds that its impossible without knowledge of furuno's protocol.
Furuno AIS w. Ethernet - Panbo Forum

However wireshark is showing me valid ais messages coming from furunos device. So I'm convinced I'm doing something wrong in java and openCPN and that the messages do not use some special navnet protocol. I don't know UDP but its stateless and just broadcasts messages as such there is no communiction between the laptop and furuno. FA-30 is telling wireshark about the boats my antenna is receiving ais messages from, but the messages are not being picked up by openCPN (or my simple udp receiver in java). I'm obvioulsy missing something obvious. It's not the firewall (I opened it and wireshark is picking up messages). It's not 0.0.0.0 in openCPN as still received nothing. Yet my java recevier receives nothing too. I'm stuck for ideas again.
bobbylockes is offline   Reply With Quote
Old 05-04-2017, 13:10   #11
Registered User

Join Date: Apr 2017
Posts: 33
Re: furuno FA-30 ais messages not being picked up by openCPN

HI panos,

"This said you need a filter program between the laptops input port and openCPN witch extracts the NMEA 0183 AIS sentences."

perhaps this is indeed the problem. Perhaps wireshark shows everything regardless and openCPN is expecting a certain format (but then the java receiver didn't contain a filter and didn't pick anything up so I'm now trying to work out what wireshark is doing that simple UDP receiver is not).

many thanks!
bobbylockes is offline   Reply With Quote
Old 05-04-2017, 13:18   #12
bcn
Registered User

Join Date: May 2011
Location: underway whenever possible
Boat: Rangeboat 39
Posts: 3,956
Re: furuno FA-30 ais messages not being picked up by openCPN

Bobby..

just publish the wireshark traces.
bcn is offline   Reply With Quote
Old 05-04-2017, 14:13   #13
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 746
Re: furuno FA-30 ais messages not being picked up by openCPN

Is this also the solution for OpenCPN ?

http://furuno.custhelp.com/ci/fattac...et_Navnet2.pdf
verkerkbr is online now   Reply With Quote
Old 05-04-2017, 14:39   #14
Registered User

Join Date: Oct 2012
Location: Brighton, UK
Boat: Westerly Oceanlord
Posts: 452
Re: furuno FA-30 ais messages not being picked up by openCPN

Quote:
Originally Posted by bcn View Post
just publish the wireshark traces.
+1. Let's see what the navnet preamble looks like before checking whether NULL bytes might be an issue :-)
muttnik is offline   Reply With Quote
Old 05-04-2017, 14:45   #15
Registered User

Join Date: Aug 2009
Location: between the devil and the deep blue sea
Boat: a sailing boat
Posts: 20,309
Re: furuno FA-30 ais messages not being picked up by openCPN

Quote:
Originally Posted by bobbylockes View Post

(...)

(accoridng to wireshark furuno fa-30 has a ip address 172.34.21.2) and a destination of 172.34.255.255. opencpn does not see these messages when windows is configured with 255.255.0.0 submask and a 172.34.21.4 ip address.... I think I'm going to have to download the opencpn source code!!! hahah
Or rather 31.24 ? A typo there I guess.

How does your Windows get the IP? Does the Furuno assign the IP? Can you get Furuno to use TCP rather than UDP?

Have you tried IP from 172.31.24.2 and ...1? Notice the Shark shows talker at ... 2 while the data from your ethernet interface seems to show ... 1 (?)

Try NavMon - see there if you get anything.

Imho if Wireshark can see the sentence, it is coming.

I have had plenty of nonsense trying to use udp, never a glitch over tcp though.

b.
barnakiel is offline   Reply With Quote
Reply

Tags
ais, enc, furuno, opencpn

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
AIS NMEA messages not acquired. usodimare OpenCPN 8 16-04-2017 19:16
OpenCPN do not read TTM messages pudozh OpenCPN 1 03-09-2016 09:42
Just Picked Up a Yamaha 6hp 2 Stroke 2 Cyl - Anything To Watch For? MarkSF Engines and Propulsion Systems 1 29-08-2012 22:41
AIS Transponders and AIVDO Messages bdbcat OpenCPN 5 06-09-2010 20:16
Finally Picked our Boat Insurance Kasidah Dollars & Cents 3 17-03-2007 12:50

Advertise Here


All times are GMT -7. The time now is 06:32.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2020, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.