Skip to content

[Same Chip ID] 3 sensors are not distinguished  #112

@RoboSchmied

Description

@RoboSchmied

Problem

There are 3 sensors in the openipc repos that have the same chip ID cb3e and are all seen as sc223a by ipctool.

#define SC223A_CHIP_ID_H	(0xcb)
#define SC223A_CHIP_ID_L	(0x3e)
#define SC233A_CHIP_ID_H	(0xcb)
#define SC233A_CHIP_ID_L	(0x3e)
#define SC2239P_CHIP_ID_H	(0xcb)
#define SC2239P_CHIP_ID_L	(0x3e)

ipctool handling chip id cb3e

    case 0xcb3e:
        // XM
        strcpy(ctx->sensor_id, "SC223A");
        return true;

History

Here we found out that there may be different "versions" of the sc223a.

Thanks to @johndi3 who mentioned sc233a and thanks to @themactep who helped discovering the ChipID.

Solution

As done here we should regard more registers to differentiate between the 3 sensors.

ToDo

If you have one of the 3 sensors, please post the result of this command:

ipctool i2cdump 0x60 0x3100 0x310F

That will show your device ID + some more registers.

The output of my "version" of the sc223a (sold as sc5239s) is:

root@openipc-gk7205v210:~# ipctool i2cdump 0x60 0x3100 0x310F
       0  1  2  3  4  5  6  7   8  9  A  B  C  D  E  F
3100: 00 12 00 08 01 12 05 CB  3E 01 00 00 00 00 00

The important part here is CB 3E 01.
The register 0x3109 (here value 01) can differ between the 3 sensors.

We need to find the different values of register 0x3109 for each of the 3 sensors.
Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions