peterantypas / maiana

MAIANA™ is the first Open Source AIS transponder. It proudly raises an extra long middle finger to the marine electronics industry, government overregulation and everything else that gets in the way of innovation in this space.
GNU General Public License v3.0
342 stars 71 forks source link

Set Ais info #59

Closed shakibmehr closed 3 years ago

shakibmehr commented 3 years ago

How to set Ais information(MMSI, ......)?

peterantypas commented 3 years ago

You will need to establish UART connection. First, send the "cli" command. If the UART is working, you should see the board reboot into CLI mode with no NMEA stream. This will make it easier to do this.

Here is a sample command:

station 987654321,NAUT,,37,0,0,0,0

I haven't written a document for this, look in CommandProcessor.cpp to see how the arguments are parsed:

Boat type is an enumerated value defined in the AIS spec.

     /*
       * The station command format is:
       * station mmsi,name,callsign,type,len,beam,portoffset,bowoffset
       */
shakibmehr commented 3 years ago

Tnx.

peterantypas commented 3 years ago

Closing, since this is out of scope for MAIANA.