We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I want to do data logging for GPS data in serial memory AT24C512 for this purpose,i need to make a circular buffer in serial memory.
Could some body please post the code now and algorithm for real-time circular buffer so that data may be stored in circular buffer and may be read or retrieved at will.
Data need to be continuously stored over circular queue while data is retrieved from queue only on demand
regards m.yasir
With your spellings - more care you must take!
so u havent had any answers from the 'professionals' and i dont think the einstein quoter can to help u.
GOOGLE makes an awesome first resource for such needs.
www.google.com/search
In the list I found this: en.wikipedia.org/.../Circular_buffer Which includes source code and a thorough explanation.
also , see the gps logger application here also uses circular buffer techniques
frank.circleofcurrent.com/.../gps_logger.htm
But Einstein would notice that your links don't seem to bother too much with the wear on the serial memory. OK if the serial memory is FRAM. Not so good if the serial memory is flash. Semigood if the serial memory is EEPROM. In some cases acceptable if the serial memory has automatic wear leveling.
That is one of the reasons why the OP was requested to supply a bit more information, and to consider the implications of the wear issues. The OP hasn't responded, so no one have seen an interest in trying to speculate in the OP:s needs. Especially since this was an urgent matter and we have to assume that the OP picked up the wallet and payed a consultant for immediate help. We poor sods on this list just don't have the available time to instantly produce turnkey code whenever someone posts an urgent request.
Wouldn't we be more unprofessional if we ignored the wear problem and just gave a link to a standard RAM-based ring buffer, like you did?
Links for what I want.
tnahks m.yasir
Have you figured out yet how fast you can wear down the memory?
we have done the math and get 11.2 years.
How do you perform the wear leveling? The rotating data has natural wear leveling but if you have read and write indices stored in the same address, they will not get any wear leveling unless the serial memory has internal wear leveling.
If that's not sufficient, what do you require?
the index will be in ram and we determine the number on starting reset.
Are you storing an autoincrementing number in each log entry and of a numeric range able to store larger numbers than max number of entries that fits in the memory?
Or what method do you use to synchronize the ring buffer positions on reset?
u r 2 late 2 give help now.
we have solution.
m.yasir
No, I'm not. But you never responded to my earlier questions.
u help for problem we do not have.
u r 2 late.
we have solution all ready.
plz go now.
u help for problem we do not have...u r 2 late...plz go now.
Yasir,
First, you are extremely rude. Do you really think people will be more interested in helping you is you insult them? Refusing to follow good old Einstein's advice, you seem to understand that you do not even begin to understand the issues at hand...it says more about you than about the good people trying to help sms-generation dummies like yourself.
if u did give advice i would thank u. u did not.
peace 2 u 2.
I must admit to finding it a little amusing that you guys are so easily and regularly 'trolled' on this forum. However, it does seem an awful waste of bandwidth and results in you all getting terribly wound up.
Take five minutes to read slowly and carefully through the OP's posts and the response that provided the solution to his problem then think carefully about the use of SMS, capitalisation, spelling and punctuation, noting in particular how it varies. Consider what this tells you about the author of these posts.