Thanks for the information @matt001k!
I am a bit confused though. I was monitoring spotter logs while it was running (and had a cellular connection active as seen on the spotter dashboard site as well as the signal LED being solid green)
I have attached the logs below:
2024-10-03T14:57:48.140Z [ERR] [INFO] Cellular SignalErrorState changed from CONNECTING to OK
2024-10-03T14:57:48.156Z [MS] [DEBUG] Has message 332 expired? queuedTime: 6454458, now64: 6489320, remaining: 86365138
2024-10-03T14:57:48.156Z [MS] [DEBUG] Has message 332 expired? queuedTime: 6454458, now64: 6489321, remaining: 86365137
2024-10-03T14:57:48.156Z [MS] [DEBUG] Requeueing unexpired message 332 to queue(6)
2024-10-03T14:57:48.156Z [MS] [DEBUG] Has message 332 expired? queuedTime: 6454458, now64: 6489322, remaining: 86365136
2024-10-03T14:57:48.160Z [ERR] [INFO] Cellular SignalErrorState changed from OK to CONNECTING
2024-10-03T14:57:48.160Z [MS] [DEBUG] Sending legacy messages to Notecard.
2024-10-03T14:57:48.179Z [MS] [DEBUG] Notecard is 2.000000 pct full.
2024-10-03T14:57:48.179Z [MS] [INFO] Queuing message 332 20004550
2024-10-03T14:57:49.015Z [MS] [DEBUG] Has message 333 expired? queuedTime: 6459734, now64: 6490181, remaining: 86369553
2024-10-03T14:57:49.015Z [MS] [INFO] Queuing message 333 20004600
2024-10-03T14:57:49.554Z [MS] [DEBUG] Has message 334 expired? queuedTime: 6465018, now64: 6490718, remaining: 86374300
2024-10-03T14:57:49.554Z [MS] [INFO] Queuing message 334 20016570
2024-10-03T14:57:50.093Z [MS] [DEBUG] Has message 335 expired? queuedTime: 6470301, now64: 6491257, remaining: 86379044
2024-10-03T14:57:50.093Z [MS] [INFO] Queuing message 335 2000F988
1727967470.269 53bcc703ce1e1390, [payload] | tick: 81242074, rtc: 2024-10-03T14:57:49.367, line: 2024-09-26T13:53:02,Avg Dark,2829389,Avg Blue,10326002,Avg Green,10095587,Temperature,22.25,Absorbance Blue,-0.002,Absorbance Green,0,R Ratio,-3.341,pH,-1,Ref Avg Dark,2255212,Ref Avg Blue,-11047,Ref Avg Green,12890720,Ref Absorbance Blue,nan,Ref Absorbance Green,-0.001
Current bit offset: 230
Rounded bit offset: 232
New bit offset: 2400
2024-10-03T14:57:50.296Z [MS] [INFO] Added message(id: 339 len: 300) to queue MS_Q_LEGACY: (4)!
Message: DE 66 FE B0 EE D9 FF A8 02 25 51 4B EE FD 1A 5E 0F 38 78 4E 41 4E F3 1C 0C BD 40 8A 7C 32 30 32 34 2D 30 39 2D 32 36 54 31 33 3A 35 33 3A 30 32 2C 41 76 67 20 44 61 72 6B 2C 32 38 32 39 33 38 39 2C 41 76 67 20 42 6C 75 65 2C 31 30 33 32 36 30 30 32 2C 41 76 67 20 47 72 65 65 6E 2C 31 30 30 39 35 35 38 37 2C 54 65 6D 70 65 72 61 74 75 72 65 2C 32 32 2E 32 35 2C 41 62 73 6F 72 62 61 6E 63 65 20 42 6C 75 65 2C 2D 30 2E 30 30 32 2C 41 62 73 6F 72 62 61 6E 63 65 20 47 72 65 65 6E 2C 30 2C 52 20 52 61 74 69 6F 2C 2D 33 2E 33 34 31 2C 70 48 2C 2D 31 2C 52 65 66 20 41 76 67 20 44 61 72 6B 2C 32 32 35 35 32 31 32 2C 52 65 66 20 41 76 67 20 42 6C 75 65 2C 2D 31 31 30 34 37 2C 52 65 66 20 41 76 67 20 47 72 65 65 6E 2C 31 32 38 39 30 37 32 30 2C 52 65 66 20 41 62 73 6F 72 62 61 6E 63 65 20 42 6C 75 65 2C 6E 61 6E 2C 52 65 66 20 41 62 73 6F 72 62 61 6E 63 65 20 47 72 65 65 6E 2C 2D 30 2E 30 30 31 0D
2024-10-03T14:57:50.304Z [BM_TX] [INFO] Submitted spotter/transmit-data message to sat/cell queue, Len: 272
I have always seen the messages being submitted to the MS_Q_LEGACY in all my test runs.
Is there something wrong in my call to spotter_tx_data maybe?
// Print the payload data to a file, to the bm_printf console, and to the printf console.
bm_fprintf(0, "payload_data.log", "tick: %llu, rtc: %s, line: %.*s\n",
uptimeGetMs(), rtcTimeBuffer, read_len, payload_buffer);
bm_printf(0, "[payload] | tick: %llu, rtc: %s, line: %.*s", uptimeGetMs(),
rtcTimeBuffer, read_len, payload_buffer);
printf("[payload-line] | tick: %llu, rtc: %s, line: %.*s\n", uptimeGetMs(),
rtcTimeBuffer, read_len, payload_buffer);
ledLinePulse = uptimeGetMs(); // trigger a pulse on LED2
if (spotter_tx_data(payload_buffer, read_len, BM_NETWORK_TYPE_CELLULAR_IRI_FALLBACK)) {
printf("%llut - %s | Sucessfully sent Spotter transmit data request\n", uptimeGetMs(),
rtcTimeBuffer);
} else {
printf("%llut - %s | Failed to send Spotter transmit data request\n", uptimeGetMs(),
rtcTimeBuffer);
}