emfcamp / Mk2-Firmware

Firmware that runs on the TiLDA v2 Badge
18 stars 36 forks source link

Radio sleep test #28

Open dpslwk opened 10 years ago

dpslwk commented 10 years ago

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

marekventur commented 10 years ago

I'll write a test for that, let's see what I can zero it in on.