help needed to store a string array in the EEPROM
hi everyone,
i have programmed rfid reader: can erase list of authorized cards/tags, add them , validated if card authorized or not, etc ... works fine.
my problem, power off nano, lost ! figured save authorized list in eeprom.
ids read rfid tag 12 bytes long transformed string comparison, etc ... have provision max of 50 tags (mytags[0] mytags[49], type = string).
even if length 12 bytes long, want store last 10 bytes, first ones same: way, each tag's byte store address xx0 xx9 (i when things aligned ...). 50 tags x 10 bytes = 500 bytes...it fit in internal eeprom !
i totally lost on how !!!
i need help, :
- on boot, load list of authorized tag's id allowed (as mytags[0] mytags[49})
- when button pressed, re-write whole list of who's authorized eeprom
eventually, want use external eeprom (so can replaced when written/read many times) now, if can me internal one, can figure out external 1 !!!
thanks in advance !
i have programmed rfid reader: can erase list of authorized cards/tags, add them , validated if card authorized or not, etc ... works fine.
my problem, power off nano, lost ! figured save authorized list in eeprom.
ids read rfid tag 12 bytes long transformed string comparison, etc ... have provision max of 50 tags (mytags[0] mytags[49], type = string).
even if length 12 bytes long, want store last 10 bytes, first ones same: way, each tag's byte store address xx0 xx9 (i when things aligned ...). 50 tags x 10 bytes = 500 bytes...it fit in internal eeprom !
i totally lost on how !!!
i need help, :
- on boot, load list of authorized tag's id allowed (as mytags[0] mytags[49})
- when button pressed, re-write whole list of who's authorized eeprom
eventually, want use external eeprom (so can replaced when written/read many times) now, if can me internal one, can figure out external 1 !!!
thanks in advance !
just write bytes of each string 1 @ time eeprom. there nothing difficult it.
if have n characters have n / 1024 slots in eeprom store data. @ rfid sequencer project code example used 4 bytes , had has number not string, made more efficient.
http://www.thebox.myzen.co.uk/hardware/rfid_sequencer.html
if have n characters have n / 1024 slots in eeprom store data. @ rfid sequencer project code example used 4 bytes , had has number not string, made more efficient.
http://www.thebox.myzen.co.uk/hardware/rfid_sequencer.html
Arduino Forum > Using Arduino > Programming Questions > help needed to store a string array in the EEPROM
arduino
Comments
Post a Comment