Receiving bulk data and processing


#1

hi,

  im using Q2686 wireless CPU for receiving bulk of data from a LOgger using serial port at 9600 baud rate and to transfer it through tcp. But the data will bulk (hex) data's around 4 lakh bytes and the length is also not fixed. Vaild data's are inbetween 1lakh 30bytes(approx) and above 1lalk 35bytes (approx). Valid data's will be around 6k bytes so it needs to be stored in flash and retransmitted after the whole reception of data but on continous reception of data,GSM modem gets restarted.i think it is impossible to write in flash memory every 1k of valid data and to transfer it later. so can anybody please give a suggestion how to receive this bulk data and without delay to store the valid data in flash?

#2

Hello,
My first question would be about

,
is the fact the modem is rebooting normal?
Continuous reception suggest kind of a loop in the receiving function.


#3

ya the modem restart is normal and i think it is due to the uart buffer memory overflow.


#4

I think your on the wrong track here, there is no excuse why an arm core can’t keep up with a 1kb/s stream. Either it is a bug or you implemented it wrong. You didn’t do it in a loop, did you?

post your code if you want more usefull feedback.


#5

Post only the code that relates to the serial port (UART).


#6

hi all,

     Thanks for ur replies. Im using a loop only for receiving the incoming data. 

Now the problem is how to store the valid data in flash memory during the reception of bulk data because that will take a time interval for writing in flash memory.

If any suggestion please send, I have to make the code after analyzing only.