2022-11-18 06:00 AM
we have been trying to get the I2C up on both the controller and no responses from anyone the cubeMx issue if I2C is really a problem..Kindly respond as we are trying to get I2C up ..
requesting the experience forum experts to respond.
Thanks
Ravi
Solved! Go to Solution.
2022-11-24 03:43 AM
Get ready status is not seen to check whether sensor is ready to send??..
tried adding that piece of code was well...
any change let me know
thanks and regards
Ravi
2022-11-24 03:56 AM
so no error, sensor and I2C working ok.
did you power cycle?
power off sensor and STM board, wait, then power up again. sensor need power restart...
2022-11-24 04:00 AM
yes I2C is working ..
did the power cycle....power off both sensor and STM board...still not getting any values...
2022-11-24 04:01 AM
2022-11-24 04:02 AM
when there are no values and printing only dddd..I used to do the power cycle and then get the version number properly...but here I am not seeing any values.....let me know any change...thanks
2022-11-24 04:03 AM
I was referring to my earlier code when I had the version number print ON
2022-11-24 04:08 AM
Oo, sensor want/need crc byte also... ****.
2022-11-24 04:13 AM
I thought initially...but in my earlier I used to get the version number fine without sending 0xC2 as the CRC...well...let me know the change..so that I will try making here...just at the start we shall add or for every SCD30_cnt_measurement[0] = 0xC2 buffer value??
2022-11-24 04:14 AM
SCD30_cnt_measurement[0]=0xC2;
SCD30_cnt_measurement[1]=0x00;
SCD30_cnt_measurement[2]=0x10;
SCD30_cnt_measurement[3]=0x04; //0x400 = 1020 mbar
SCD30_cnt_measurement[4]=0x00;
is this the change you are referring??
2022-11-24 04:19 AM
code reference to check version number also..
..I have added different pattern like..sending stop bit first ..then soft reset..then 2s interval..then firmware...then start...then get ready ...then read....is this pattern correct..do we need to follow this...comparing this with workiing Rpi model we have...let me know your thoughts...