Radios on the badge have sleep mode (ATSM2) set by default.
We need todo some tests around this as we need to make sure when putting the radio to sleep we give it enough time to send the last outgoing message.
In arduino terms
Serial.print(PACKET);
Serial.flush();
delay(XXX);
pinMode(SRF_SLEEP, INPUT);
We should test this to see how long XXX needs to be for our packet to be sent.
There also needs to be a delay after waking the radio before we can send it a packet to it, again in arduino terms
pinMode(SRF_SLEEP, OUTPUT);
delay(XXX);
Serial.print(packet);
I've used a delay of 400 before but would like us to test see if we can get it lower
Radios on the badge have sleep mode (ATSM2) set by default.
We need todo some tests around this as we need to make sure when putting the radio to sleep we give it enough time to send the last outgoing message. In arduino terms Serial.print(PACKET); Serial.flush(); delay(XXX); pinMode(SRF_SLEEP, INPUT); We should test this to see how long XXX needs to be for our packet to be sent.
There also needs to be a delay after waking the radio before we can send it a packet to it, again in arduino terms pinMode(SRF_SLEEP, OUTPUT); delay(XXX); Serial.print(packet); I've used a delay of 400 before but would like us to test see if we can get it lower
In RTOS we would of course use vTaskDelay