Mictronics / ais-simulator

Create and transmit AIS frames via gnuradio toolchain and web application in browser. Provides a websocket to PDU message block to change frame content on runtime. Works in burst mode, a frame is send on change immediately, one time. Transmitter remains silent until next change event.
Other
31 stars 6 forks source link

Simulator of the 27th type of messages #7

Closed kelrilka closed 2 months ago

kelrilka commented 2 months ago

Hi! When modeling a type 27 message, the decoder determines that the message is of type 1. Also, some fields are spoiling. https://github.com/Mictronics/ais-simulator/blob/d905de9210239db6e18e8a5e14a1f875e1ca5dbf/webapp/assets/aivdm_encoder.js#L393-L394

Solution:

static encodeMsgType27(mmsi, status, speed, course, lat, lon) {
            const header = this.getMsgHeader(27, mmsi, 3);