This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

OPT3101-SDK: bugs SDK

Part Number: OPT3101-SDK
Other Parts Discussed in Thread: OPT3101

Hi,

As mentioned in a previous thread, there are 2 bugs in the SDK

"First bug:

File: OPT3101_Functions.cpp Line 1061

this->calibration-findCommonCrosstalkScale(&this->calibration->illumCrosstalk[0][0], this >configurationFlags_isTXchannelActive, this->configurationFlags_isTXChannelActive);

The customer points out that the second parameter should be this->configurationFlags_isRegisterSetActive?

The second bug:

File: OPT3101_Calibration.cpp 48 ~ 60 lines

As long as the coefficient of coffQ or coffI is negative, coffQReg or coffIReg will get 0, and the compensation will not take effect. However, as shown in the calibration document zhcu660.pdf, both coffI and coffQ may be negative. What is the correct calculation formula of coffQReg and coffIReg? At present, it is obvious that a negative coefficient will lead to ineffective compensation."

The first bug has been confirmed to be wrong in the SDK. What about the second bug? What is the correct calculation formula for coffQReg and CoffIReg?

Thanks in advance,

Olga

  • Hi Olga,

    Can you point me to zhcu660.pdf? This first bug seems like an easy fix but I will make sure about it. The second one I am unable to locate. Lines 48-60 in OPT3101_Calibration.cpp have to do with writing to EEPROM. Maybe you are referring to another file?

    Thank you,

    Brent Elliott

  • Hi Brent,

    I am just refering to a previous thread in this forum. I think that the document this thread is refering to is "How to set up and calibrate OPT3101 based system for proximity sensing". 

    I have another version of the SDK so in my case the errors are not in the same lines as well. However, I have found the first error in the OPT3101device_Functions.cpp at line 1268.

    The second error appears in my case in the OPT3101Calibration.cpp file from lines 52 to 57. I think it is easier if you use the finder and look for "CoffIReg". 

    Thanks,

    Olga

  • Hi Olga,

    Thank you for the clarification. I will need some time to look over this and I will get back to you about it as soon as I can.

    Brent Elliott