Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
RoboSchmied opened this issue Feb 29, 2024 · 6 comments
Open

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

RoboSchmied opened this issue Feb 29, 2024 · 6 comments

Comments

@RoboSchmied
Copy link
Contributor

RoboSchmied commented Feb 29, 2024

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.

@RoboSchmied RoboSchmied changed the title Same Chip ID on 3 sensors are not distinguished [Same Chip ID] 3 sensors are not distinguished Mar 1, 2024
@widgetii
Copy link
Member

widgetii commented Mar 1, 2024

I'd start from finding sensor's datasheet

@RoboSchmied
Copy link
Contributor Author

I'd start from finding sensor's datasheet

Its hard to find anything from smartsense. They label their product flyers as datasheet. Even in Chinese Forums.
And the vendors say they do not have them.

@themactep
Copy link
Contributor

Hard does not mean impossible. I have a few here https://github.com/themactep/openipc-wiki/tree/master/hardware/components/sensor/docs/ but not for these particular models.

@RoboSchmied
Copy link
Contributor Author

Hard does not mean impossible. I have a few here https://github.com/themactep/openipc-wiki/tree/master/hardware/components/sensor/docs/ but not for these particular models.

Wow, thank you. Very interesting. How + where did you get them?

@themactep
Copy link
Contributor

I know a guy who knows a guy, you know... LOL. Google and other search engines can do magic.

@RoboSchmied
Copy link
Contributor Author

They are marked as Company Confidential and SmartSens Confidential - NDA only.
No chance for me with google & co.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants