We are using STM32F103 microcontroller to communicate with BMS. We have used the HAL API (from the STM) to get the data from BMS. While sending the subcommand for device number (0x0001) we are receiving the response as NAK after sending register address and subcommand to the BMS. Here screenshot are attached of code and I2C waveform screenshot.
uint8_t subcmd[2] = { 0x01,0x00};
status2 = HAL_I2C_Mem_Write(&hi2c2, 0x10, 0x3E, 1, &subcmd[0], 2, 10000);