idealpcsolutions
Newbie level 4
Hi folks,
Does anyone have any experience in using an mcu to collect and process e-mails?
I have an Atmel UC3A 32bit 66Mhz MCU connected to a SIM900 GSM Modem
This is where I am at:
I can get the MCU to issue a RETR command to the POP server and it sends the serial data via the SIM900 to one of the MCU usarts which recieves the data (interrupt driven) and stores it in a 128 byte circular buffer
I do not have any flow control on the rs232 comms connection to the SIM900 as up until now I have not found it necessary.
PROBLEM!
Data received now exceeds 128 bytes, how best to parse the incomming stream in C, I am thinking collect each line in turn into the buffer and if the line does not contain what I want discard it by flushing the buffer and collecting the next line into the buffer - is this a reasonable strategy?
Should I implement some kind of flow control on the serial comms?
All advice/idea's most welcome (several heads are better than one)
Thank You
Does anyone have any experience in using an mcu to collect and process e-mails?
I have an Atmel UC3A 32bit 66Mhz MCU connected to a SIM900 GSM Modem
This is where I am at:
I can get the MCU to issue a RETR command to the POP server and it sends the serial data via the SIM900 to one of the MCU usarts which recieves the data (interrupt driven) and stores it in a 128 byte circular buffer
I do not have any flow control on the rs232 comms connection to the SIM900 as up until now I have not found it necessary.
PROBLEM!
Data received now exceeds 128 bytes, how best to parse the incomming stream in C, I am thinking collect each line in turn into the buffer and if the line does not contain what I want discard it by flushing the buffer and collecting the next line into the buffer - is this a reasonable strategy?
Should I implement some kind of flow control on the serial comms?
All advice/idea's most welcome (several heads are better than one)
Thank You