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 SeriesThe EEPROM is located on the I2C bus.Corresponding I2C bus address
IPC2010i2c-100x50image-20250102171922085

Operating Procedure:

  1. Execute the following naming to see if the EEPROM chip is recognised.
i2cdetect -y 10 | grep 50
image-20250102171922085

10 is the corresponding I2C bus

  1. 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
  1. 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

\x65\x64\x61\x74\x65\x63 is the ASCLL code corresponding to the string edatec.

  1. 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
  1. Execute the following command to delete dynamically registered devices.
echo "0x50" | sudo tee /sys/class/i2c-adapter/i2c-10/delete_device
image-20250102172754459