read temperature from SL900A
I am trying to read temperature from SL900A tag. As base I am using in SDK provided. demo_gen2GenericCommand . Although tag is accessible and I am able to read the memory when I try to read the temperature from TAG I always get the failure response.
Data sheet of the Tag is available here: https://ams.com/documents/20143/36005/SL900A_DS000294_5-00.pdf/d399f354-b0b6-146f-6e98-b124826bd737
I changed the function demo_gen2GenericCommand and am sending following command:
....
genericCmd.cmd = cmd;
genericCmd.noResponseTime = 0xFF;
genericCmd.appendRN16 = true;
genericCmd.sndDataBitLength = 24; // 24: length of effective cmd data, headerbit + rn16 (if any) are computed by FW
genericCmd.sndData[0] = 0xE0;
genericCmd.sndData[1] = 0xAD;
genericCmd.sndData[2] = 0x00;
genericCmd.sndData[3] = 0x00;
genericCmd.expectedRcvDataBitLength = (uint16_t)(1U + 5U + 10U + 16U + 16U +((cmd == STUHFL_D_GEN2_GENERIC_CMD_CRC_EXPECT_HEAD) ? 0U : 1U));
....
According to my investigation reported failure is STUHFL_ERR_CHIP_RXCOUNT although I set expectedRcvDataBitLength according to the specification.
