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"
context:
  with.http.server: true
  http.port: 9999
  init.cache: true
channels:
  - type: serial
    # GPS
    port: /dev/ttyUSB0
    baudrate: 4800
    verbose: false
  - type: serial
    # AIS
    port: /dev/ttyS0
    baudrate: 38400
    verbose: false
forwarders:
  - type: tcp
    port: 7002
    properties: no.ais.properties
  - type: tcp
    subclass: nmea.forwarders.AISTCPServer
    port: 7003
computers:
  - cls: nmea.computers.AISManager
    properties: ais.mgr.properties

And OpenCPN is happy in both cases.

See more details here.

No comments:

Post a Comment