Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

need Flow control for collecting pop3 e-mail using a microcontroller and sim900

Status
Not open for further replies.

idealpcsolutions

Newbie level 4
Joined
Sep 9, 2014
Messages
7
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
55
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
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top