Thursday, January 09, 2020

dAISy AIS HAT for the Raspberry Pi

Just received the dAISy HAT from Wegmatt, it just works!
Whoever can click can do it.

And this was the opportunity to keep working on the AISParser, and I have also added a custom TCP Forwarder to the Multiplexer, along with an AIS filter on the regular TCP Forwarder.

This way, you can forward NMEA data on one port, and AIS data on another one. This is not necessary, but it can be nice to have.

Here is an example of a yaml driving the Multiplexer:

# MUX definition.
name: "With a GPS and AIS"
  with.http.server: true
  http.port: 9999
  init.cache: true
  - type: serial
    # GPS
    port: /dev/ttyUSB0
    baudrate: 4800
    verbose: false
  - type: serial
    # AIS
    port: /dev/ttyS0
    baudrate: 38400
    verbose: false
  - type: tcp
    port: 7002
  - type: tcp
    subclass: nmea.forwarders.AISTCPServer
    port: 7003
  - cls: nmea.computers.AISManager

And OpenCPN is happy in both cases.

See more details here.