Product ID SysInfo

HI,

I have an issue with retrieving the Product ID for my iMX6.
I need it to differentiate between modules at runtime.

But the issue is that the value sometimes changes after time.
First it was 0009 then 0000 and now 0026.

I tried to retrieve it using 2 different ways:

DWORD   pid8;
DWORD ret = Sys_GetConfigInt(mSysInfoHandle, L"PID8", &pid8);

Result is: 0x000f1000

TCHAR serial16[18];
ret = Sys_GetConfigString(mSysInfoHandle, L"PID8Serial8", serial16, sizeof(serial16));

Result is: 00260068000506132

Any idea how this can be?
Also the SPI seems to struggle since this issue surfaced.

Kind Regards,
Kevin

@KevinElaut63 ,
Please provide some more details, it will help us to solve the issue.

Which IMX6 module are you using? Colibri or Apalis, DL or S?

Toradex CE Library version?

Dump debug message and share with us.

Please share your sample code.

We are using the Colibri iMX6 DL module with v2.0 of the Toradex Libraries.
This is a module fresh from it’s package and the only code I used was:

HANDLE mSysInfoHandle = Sys_Init();
TCHAR serial16[18];
ret = Sys_GetConfigString(mSysInfoHandle, L"PID8Serial8", serial16, sizeof(serial16));

ret value is: 00260068000506132

Hi Raja,

This fixed it.
Now the Product id’s are consistent.

Thanks for fixing this!

Kind Regards,
Kevin

@KevinElaut63

Thank you for reporting this issue. We have solved now, download preliminary version from here.
Let us know if you face any problem on this.