Newbie looking for some advice on the best way to construct some data handling.
Not wanting detailed coding but more is there a common way in which I can move and store the different data.
The program contains various parameters like, temp to 1 dec place, time hh mm, volumes <= 1000 and on/off status.
While defaults will be specified in the program code, they would also be stored in eeprom.
I would also like to be able to eeprom store and restore all the data in one simple block rather than storing separate bytes.
Also, and this seems the greater challenge, changes to the values in the main program and eeprom need to be done via a comms link; which probably would be sent across as a complete block of values. rather than individual ones.
The program contains various parameters like, temp to 1 dec place
Nonsense. The program has variables containing values, like temp, that you SHOW with one decimal place. Internally, it is stored with maximum precision.
I would also like to be able to eeprom store and restore all the data in one simple block rather than storing separate bytes.
EEMPROM_ReadAnything and EEPROM_WriteAnything bear investigation, then.
ricky101:
which probably would be sent across as a complete block of values. rather than individual ones.
When you burrow all the way down to the bottom everything on an Arduino is done one byte at a time.
I would not get hung up about a block of values. You can easily write a function that will send or receive a bunch of values of the same or different types.
If you are planning to receive data in your Arduino the examples in Serial Input Basics may be useful. The parse example might give you some ideas regarding your "block of values"
You could use the same approach in a PC program that is receiving the data.