1 Overview
Some customers need to read EERPOM data and write data to EERPOM when using devices with EEPROM, this guide will instruct users on how to read EERPOM data and write data to EERPOM when reading EERPOM data and writing data to EERPOM.
2 Application Guide
This guide takes IPC2010 as an example, please refer to the following table for the corresponding I2C bus of EEPROM for other types of devices.
Device Series | The EEPROM is located on the I2C bus. | Corresponding I2C bus address | |
IPC2010 | i2c-10 | 0x50 | ![]() |
Operating Procedure:
- Execute the following naming to see if the EEPROM chip is recognised.
i2cdetect -y 10 | grep 50
![image-20250102171922085](/docs/assets/image-20250102171922085-C_yWAaPH.png)
10
is the corresponding I2C bus
- Execute the following command to dynamically register the I2C EEPROM device.
echo "24c32 0x50" | sudo tee /sys/class/i2c-adapter/i2c-10/new_device
![image-20250102172053696](/docs/assets/image-20250102172053696-CL6ksmhj.png)
- Execute the following command to write data to EERPOM.
echo -ne "\x65\x64\x61\x74\x65\x63" | sudo tee /sys/class/i2c-adapter/i2c-10/10-0050/eeprom
![image-20250102172244120](/docs/assets/image-20250102172244120-C97XBsZy.png)
\x65\x64\x61\x74\x65\x63
is the ASCLL code corresponding to the string edatec
.
- Execute the following command to read the contents of the EEPROM.
sudo hexdump -C /sys/class/i2c-adapter/i2c-10/10-0050/eeprom
![image-20250102172435816](/docs/assets/image-20250102172435816-BDiH7oNy.png)
- Execute the following command to delete dynamically registered devices.
echo "0x50" | sudo tee /sys/class/i2c-adapter/i2c-10/delete_device
![image-20250102172754459](/docs/assets/image-20250102172754459-Cxt8Zuub.png)