Skip to content
  • Shirin Raeisi's avatar
    Add seco-eeprom-manager · fb96b127
    Shirin Raeisi authored and Shirin Raeisi's avatar Shirin Raeisi committed
    Introduces a new read/write procedure for the Eeprom in which the first six bytes are considered for the header
    (2 bytes of version and 4 bytes of crc). in this case any read/write will start at
    address 0x06.
    The functions are:
    set eeprom i2c: sets the i2c bus and slave address. It is necessary to be run before any function.
    Required parameters: i2c-bus, slave-address
    --------------------------------------------------
    --------------------------------------------------
    add uid: writes uid with its specified data.
    required parameters: uid, data
    example: seco-e2prom-manager -S 0x05,0x50 -a 0x00,K12345678
    --------------------------------------------------
    --------------------------------------------------
    read uid: reads uid and shows their index in case of multiple saved ids that serves then for update command.
    required parameters: uid
    example: seco-e2prom-manager -S 0x05,0x50 -r 0x00
    --------------------------------------------------
    --------------------------------------------------
    format eeprom: formats eeprom by deleting whole eeprome and recalculating crc and saving eeprom version.
    required parameters: -
    example: seco-e2prom-manager -S 0x05,0x50 -f
    --------------------------------------------------
    --------------------------------------------------
    show eeprom: reads the entire eeprom and shows all saved data, including the Header.
    required parameters: -
    example: seco-e2prom-manager -S 0x05,0x50 -s
    --------------------------------------------------
    --------------------------------------------------
    fb96b127
This project is licensed under the GNU General Public License v2.0 or later. Learn more