-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Permanent IDs are a special number that is stored in flash on the MCU in each module. They are not used for communication, but rather to identify modules across reboots so that settings, (e.g. what's growing in the module) can be preserved. I've already implemented the SBC side of this functionality, but the uC side still has yet to be done.
Specifications:
- Each module initially starts with a permanent ID set to zero. The permanent ID must be stored in flash. You'll probably have to use the PSoC's fake EEPROM component to make this work.
- Modify the IMALIVE message so that it include the currently set permanent ID as one of the fields.
- When the uC receives a GETPERMID message, it should send back a GETPERMID message with the currently set permanent ID as the sole field.
- When the uC receives a SETPERMID message, it should read the first field as an unsigned 32-bit integer, and set that as the permanent ID. This should also trigger a write to flash.
Reactions are currently unavailable