Rockchip · AI & Linux Hub

Hardware interfaces

A Raspberry Pi I²C sensor appears on Sige5 but returns no temperature

There is a response on the bus, the driver has been bound, and the correct temperature can be read, which are three independent conclusions.

When migrating a Raspberry Pi probe, bringing the exact sensor model, address jumpers, and driver name to the new board can reduce the time spent guessing faults based on just a hexadecimal address.

First identify who is using the device

Use i2cdetect -l to check the adapter disclosed by the system, and check the actual wiring with the board manual. The address may have been occupied by the kernel driver. In this case, check the hwmon or IIO interface provided by the driver first. For status-sensitive or sensitive devices, the registers specified in the data sheet should be read to avoid random scanning.

From a reading to the unit

For example, if the upper-layer application displays 25000 as 25000°C, the problem may lie in the conversion of millidegrees Celsius. First check the unit of the corresponding attribute, and then save the original value, conversion result and reference temperature side by side. Correct address cannot replace device identity and range verification.

Determine whether the repair is effective

Sampling in two states of ambient temperature and temperature and temperature, check the numerical change direction and update cycle. Read it again after a power outage and restart to ensure that the device tree declaration, address settings and application permissions can all be restored with the system.

View adapters and registered devices

i2cdetect -l
ls /sys/bus/i2c/devices/

Board documentation and references

ArmSoM Sige5

Products and development resources

Check the hardware revision, carrier, image and interfaces in the product documentation. An article association is not evidence that a configuration has been tested.

Explore this topic → · Learning paths →