Hi,
I am working on a project where i want to upload audio files(.wav) to server using GSM. Device should record 10 sec audio files continuously but when controller is free(between writing samples to SD card) it should send AT commands to GSM. I have implemented this using polling method, but in polling i am loosing audio as its not recording when i am sending AT commands. I also tried SerialEvent, it performs better than polling but sometimes SerialEvent function doesn't receive full response from GSM module. Can anyone tell me what can be the best way to handle this where i can prioritize uart in background and making recording as higher priority. I have interfaced GSM with teensy3.5/3.6 over UART(Serial1).
I am working on a project where i want to upload audio files(.wav) to server using GSM. Device should record 10 sec audio files continuously but when controller is free(between writing samples to SD card) it should send AT commands to GSM. I have implemented this using polling method, but in polling i am loosing audio as its not recording when i am sending AT commands. I also tried SerialEvent, it performs better than polling but sometimes SerialEvent function doesn't receive full response from GSM module. Can anyone tell me what can be the best way to handle this where i can prioritize uart in background and making recording as higher priority. I have interfaced GSM with teensy3.5/3.6 over UART(Serial1).