coloradocube / balloonsat

COTS balloonsat mission to test the RPi 4 with a battery UPS, a quad camarray, a GPS module, a RockBLOCK module, and a small number of Qwiic sensors
0 stars 5 forks source link

Adafruit RockBLOCK library limits sent text to 120 bytes #76

Open ivogeorg opened 2 years ago

ivogeorg commented 2 years ago

Description

When sending data, packed in a Python struct, the byte limit is 340. When sending text with Python encode, the limit is 120 bytes. When the limit is bypassed to send more than 120 bytes, the message is received as hex-encoded text. Possible solutions:

  1. Figure out why the library imposes the limit of 120 bytes and, if possible, remove it without getting the messages as hex-encoded strings. (Might be due to the underlying RockBLOCK functionality.)
  2. Send 2-3 text messages from one telemetry reading, both with the same datetime stamp.
  3. Send as data and decode the struct on the receiving end. If a web service is set up, the decoding is straightforward.

Knowledge

  1. 51

  2. https://github.com/adafruit/Adafruit_CircuitPython_RockBlock
  3. https://github.com/adafruit/Adafruit_CircuitPython_RockBlock/blob/main/adafruit_rockblock.py
  4. https://github.com/adafruit/Adafruit_CircuitPython_RockBlock/tree/main/examples
  5. 73