OpenIPC / ipctool

Simple tool (and library) for checking IP camera hardware
https://openipc.org
MIT License
158 stars 34 forks source link

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

Open RoboSchmied opened 6 months ago

RoboSchmied commented 6 months ago

Problem

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

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.

widgetii commented 6 months ago

I'd start from finding sensor's datasheet

RoboSchmied commented 6 months ago

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 commented 6 months ago

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 commented 6 months ago

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 commented 6 months ago

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

RoboSchmied commented 6 months ago

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