-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider baking in asset numbers #24
Comments
Some approaches I can think of for writing the serial number to EEPROM:
Previous experience suggests this is something we might want to write more than once (albeit rarely). To be more specific, each of our power and motor boards is shortly going to receive the third asset tag it's had in its lifetime (first the alphabetical labels used during manufacture, then the current |
I should have clarified that it shouldn't be trivial to write. A fun solution: We could add a command that accepts a signed serial number and only writes if the signature is valid. https://github.com/kmackay/micro-ecc has a nice small ECDSA implementation we could use. |
That would certainly be fun to implement, but probably overkill :) |
All of our other boards (except RPi, but I'm working on that too) currently have a command which can return the asset number as the serial of the board. I suggest adding this functionality to this firmware also. This will allow students to index the board by the number that is marked on it.
To prevent having different firmwares on the various boards, I suggest programming this number into the built in EEPROM on the AtMega328. This attribute should be for most intents write-once, read-only.
Things we need to work out:
The text was updated successfully, but these errors were encountered: