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

PDU message length incorrect between blocks #2

Closed Mictronics closed 3 years ago

Mictronics commented 3 years ago

PDU message length sent by websocket block not equal (shorter) to what is received in bitstream block. It seems there is a problem in the PDU message code (in GnuRadio). Reproducible with large number of messages (type 5) being send. Seems we need to tell the bitstream block what length is expected and not rely on what is received.

Mictronics commented 3 years ago

Getting payload length via d_len_payload = strlen(sentence); fails as soon as the PDU message buffer is filled with 0 and 1.