This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How I did: OP1.2 + SetalkNG + Control Autopilot + AIS + Navionics
Hi there, 

I had a very hard time trying to find information on how to make my setup work together, so I will write down my steps, so others have something to follow:

Existing hardware:
Matsutec AIS transponder (RS 232 out)
Raymarine everything (ES75 plotter, i70 displays, itc5 for depth/temp/SoW and wind info, EV200 autopilot) all connect using SetalkNG network.
Ipad (Navionics + WilhelmSK)
Sailoog Canbus v2
RS232 -> USB adapter

Phisical connections: (assume that Raymarine stuff is all working)

Matsutec AIS to RS232 adapter to USB port on rpi

Found a empty white port on the SetalkNG hub and connected a modified cable. (brand new "setakNG white cable"cut one of the ends of the cable, isolated everything but the white and the blue wires, connected those two wires to Canbus adapter, white to Can H, blue to Can low (it was backwards in the instructions!, if you connected correctly, and the network is powered up, you will see the led blinks a lot! no blinking, no data))

Canbus to USB to the rpi


(nothing connected to the rpi except for power)

Brand new image of Openplotter v1.0 to SD card
boot, change to client only for accessing wifi (no other option here)
expand partition to use available space
try to update using the Openplotter admin interface
got an error halfway through. Take a look at the hostapd problem on the forum, tried many times what was discussed here: ( some times doing both commands, sometimes doing only one and trying again, eventually the update went through without any errors.

In the SignalK admin page, on Appstore  installed:

signalk-raymarine-autopilot (necessary for controlling the autopilot)
signalk-to-nmea2000 (necessary for sending AIS to the network)

Enable those plugins (still on the signalk admin page) under Pulgin config:

Signal K to nmea0183 (alreadly installed) enable and select depth sentences if you want to have them available to OpenCPN and/or to send to Navionics (I had my AIS data sent by the matsutec in NMEA0183 format, so no need to convert those)

Signalk-raymarine-autopilot (just enable and make sure the id is correct, most likely it is 204)
signalk-to-nmea2000 (enable and select AIS sentences)

Connect the RS232 adapter to the rpi

configure it on the Openplotter admin interface, "Serial" tab, in my case: 
name: /ttyOP_ais 
bauds 38400
apply, it will show up on the Kplex tab

Connect the Canbus adapter to the rpi (already conected to the SetalkNG network)
configure it on the Openplotter admin interface, "Serial" tab, in my case: 
name: /ttyOP_can
apply, it will show up on the CAN tab

BEFORE!!! you select anything on the CAN tab, click on the button "TX PNG enable list", as this option is not available after the Can adapter is in use. 
(it can be changed, just disable the other options on that tab)

Quick explation: for security reasons this adapters are programmed by default NOT to send any useful PGN (NMEA 2000 sentences) to the network, they just read. So you have to manully specify int the hardware of the adapter (not in config file somewhere) which PGNs it is allowed to send. This is done via the button mentioned above.

PGN allowed in my setup:

129794, 129038, 129040, 129041 for AIS

PGN allowed to control Raymarine Autopilot: (I spent many hours looking for this, only found it going through the source code for the Signalk-raymarine-autopilot plugin)


(there is a lot of old info around telling you to modify configuration files, for me, it didnt help and it wasnt necessary on this fresh install)

After you applied and checked that the above PGNs are allowed, still on CAN tab, select the checkbox:

Managed by Signal K (canboatjs) 
input/output CAN-USB (the one on the left)

and, that is it... its working...

it seems like my kplex is loosing comunication with the signal k after sometime (varying from 20 minutes to a few hours) and it only comes back after a rpi reboot. I will investigate that...

Any questions, be specific and I will try to help.
About the "kplex is loosing comunication with the signal k after sometime" after further investigation, it was not a kplex <-> Signal K issue, even devices connected directly to kplex were not getting AIS when it stopped working.

So I tried a different RS232 -> USB adapter e bingo! it is working flawlessly.
Next step:

Adding some sensors to the mix using ESP32 boards connected via wifi.....

Forum Jump:

Users browsing this thread: 1 Guest(s)