Other Parts Discussed in Thread: BQSTUDIO, BQ4050
Hi All,
I am trying to put the chip in full access mode but i am only able to put in unsealed mode and i tried multiple approaches but all the time device is only entering Unsealed mode.
Following are the code i tried. I am checking this operation in Arduino.
1)
uint8_t unsealed_access_cmd[6] = {0x35, 0x00, 0x14, 0x04, 0x72, 0x36};
uint8_t full_access_cmd[6] = {0x35, 0x00, 0xFF, 0XFF, 0XFF, 0XFF};
uint8_t mode=0;
smbus->writeBlock(gauge, 0x44, &unsealed_access_cmd[0], 6); // to change DA configuration
delay(4500);
smbus->writeBlock(gauge, 0x44, &full_access_cmd[0], 6);
delay(4500);
mode=check_access();
2)
uint8_t unsealed_fullaccess_access_cmd[10] = {0x35, 0x00, 0x14, 0x04, 0x72, 0x36, 0xFF, 0XFF, 0XFF, 0XFF};
uint8_t mode=0;
//smbus->writeBlock(gauge, 0x44, &unsealed_fullaccess_access_cmd[0], 10); // to change DA configuration
delay(4500);
mode=check_access();
3)
uint8_t unsealed_access_cmd[6] = {0x35, 0x00, 0x14, 0x04, 0x72, 0x36};
uint8_t full_access_cmd[6] = {0x35, 0x00, 0xFF, 0XFF, 0XFF, 0XFF};
uint8_t mode=0;
smbus->writeBlock(gauge, 0x44, &unsealed_access_cmd[0], 6); // to change DA configuration
smbus->writeBlock(gauge, 0x44, &full_access_cmd[0], 6);
mode=check_access();
None of the above case the device went to full access mode. Can anyone let me know why I am not able to enter full access mode.
Other functionalities are working WRT IC, i mean the read and write are working.