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

EEPROM version register documentation mismatch with library ? #46

Open
linkineo opened this issue Jun 23, 2023 · 1 comment
Open

EEPROM version register documentation mismatch with library ? #46

linkineo opened this issue Jun 23, 2023 · 1 comment

Comments

@linkineo
Copy link

linkineo commented Jun 23, 2023

We're using both Medical/Extended-grade and standard versions of the sensor.

In the library during initialization, the following check is performed in the EEPROM version register 0x240b

if ((eeprom_version & 0x7F00) == MLX90632_XTD_RNG_KEY)

with

#define MLX90632_XTD_RNG_KEY 0x0500 /**Extended range support indication key */

Yet the latest datasheet from your website does not document this register. It however documents the product code like this:

image

Questions:
Is the magic 0x0500 always reflecting a medical-grade device or which meaning does it have ? Why not use in the library the product code as a way to identify a medical-grade device ?

@Letme
Copy link
Member

Letme commented Jul 31, 2023

0x0500 does not mention anything about medical-grade device, so I am not sure why you would think this is connected?

The extended range is read at initialization (

ret = mlx90632_i2c_read(MLX90632_EE_VERSION, &eeprom_version);
) from EE_VERSION (https://github.com/melexis/mlx90632-library/blob/master/inc/mlx90632.h#L87) which is on address 0x240B and it defines the eeprom content variation which enables us to keep some backwards compatibility with older versions as well as with newer extended range versions. The product code you are referencing is not present in older devices.

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

2 participants