Hi guys
I need some help here.
Here is my system:
The problem I have is I need to monitor 200 or more slaves, and I need more ram to monitor all the slaves. So I am thinking I can put these into my SPI EEPROM on the board. But I am worry that it's too slow, and the EEPROM will wear out.
A typical have 1M Program/Erase cycles, if I write data on it every second, it only last for 11 days. Which is not good.
Any one have some better ideas on how I can do these?
Thanks guys
I need some help here.
Here is my system:
- My system has one master and many slaves
- Each slave is assigned a unique ID
- In my system, the master need to be able to tell if a slave is off line
- Each slave send a hearbeat to the master in a fix interval to inform the slave is alive (current every 30mins)
- The master keep an record of all slaves and their latest check-in-time
- The master flag a slave off-line if the slave doesn't check in within the pre-determined time.
Code:
struct
{
uint16_t lastCheckInTime;
uint16_t id : 12;
uint16_t isOnline : 1;
uint16_t isInstalled : 1;
uint16_t reserved1 : 1;
uint16_t reserved2 : 1;
}CHECK_IN_RECORD
A typical have 1M Program/Erase cycles, if I write data on it every second, it only last for 11 days. Which is not good.
Any one have some better ideas on how I can do these?
Thanks guys