The first byte of data returned is abnormal
eg.Send length 01 when read,The first byte of data returned is 00.However, the length sent is 03,The first byte of data returned is 82.
I would like to ask what the problem is, thank you
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.
The first byte of data returned is abnormal
eg.Send length 01 when read,The first byte of data returned is 00.However, the length sent is 03,The first byte of data returned is 82.
I would like to ask what the problem is, thank you
Hi Jiao,
Can you send your exact command format? Does it follow this guide? https://www.ti.com/lit/an/slvae86a/slvae86a.pdf?ts=1621262087755&ref_url=https%253A%252F%252Fwww.ti.com%252Fproduct%252FBQ79616-Q1
Can you send also the exact hex response? Remember there will be frame initialization bytes to indicate the device corresponding to the subsequent data packets as per datasheet.
Regards,
Taylor
Jiao,
Please provide exactly the hex command sent and received so we can help analyze this. There are likely two potential reasons: 1) may not have followed our exact autoaddress procedure as per the datasheet before attempting to communicate, did you do this? can you send the routine? or 2) the response is correct but we need to check how you are interpreting it.
Regards,
Taylor
I have compiled the process data and the questions,and My email is jyu@hongjing-wh.com Please send me an empty email. I will send the problem to you for help. Thank you
Hi Taylor
Please help to check the following message, what is wrong with it? Thank you
send | response | |||||||||||||
90 00 03 09 20 13 95 | ||||||||||||||
B0 03 43 00 E7 D4 | ||||||||||||||
B0 03 44 00 E5 E4 | ||||||||||||||
B0 03 45 00 E4 74 | ||||||||||||||
B0 03 46 00 E4 84 | ||||||||||||||
B0 03 47 00 E5 14 | ||||||||||||||
B0 03 48 00 E0 E4 | ||||||||||||||
B0 03 49 00 E1 74 | ||||||||||||||
B0 03 4A 00 E1 84 | ||||||||||||||
D0 03 09 01 0F 74 | ||||||||||||||
D0 03 06 00 CB 44 | ||||||||||||||
D0 03 06 01 0A 84 | ||||||||||||||
D0 03 08 02 4E E5 | ||||||||||||||
90 01 03 08 03 52 20 | ||||||||||||||
A0 03 43 00 E3 14 | 00 01 03 44 00 E4 CC | |||||||||||||
A0 03 44 00 E1 24 | 00 01 03 44 00 E6 FC | |||||||||||||
A0 03 45 00 E0 B4 | 00 01 03 45 00 E7 6C | |||||||||||||
A0 03 46 00 E0 44 | 00 01 03 46 00 E7 9C | |||||||||||||
A0 03 47 00 E1 D4 | 00 01 03 47 00 E6 0C | |||||||||||||
A0 03 48 00 E4 24 | 00 01 03 48 00 E3 FC | |||||||||||||
A0 03 49 00 E5 B4 | 00 01 03 49 00 E2 6C | |||||||||||||
A0 03 4A 00 E5 44 | 00 01 03 4A 00 E2 9C | |||||||||||||
80 00 03 06 00 D6 7E | 00 00 03 06 00 D7 A0 | |||||||||||||
80 01 03 06 00 D7 82 | 00 01 03 06 01 17 9C | |||||||||||||
90 00 03 08 00 13 DD | ||||||||||||||
90 01 03 08 03 00 52 20 | ||||||||||||||
80 00 20 01 00 25 84 | ||||||||||||||
A0 03 06 00 D1 84 | 00 01 03 06 01 17 9C | |||||||||||||
B0 03 32 03 83 85 | ||||||||||||||
B0 00 19 00 2D 74 | ||||||||||||||
90 00 20 05 00 E6 87 | ||||||||||||||
B0 03 31 FF 83 34 | ||||||||||||||
B0 03 32 FF 83 C4 | ||||||||||||||
90 00 20 30 22 71 CE | ||||||||||||||
90 01 00 03 0A 65 16 | ||||||||||||||
B0 00 07 00 24 D4 | ||||||||||||||
B0 03 0D 06 52 76 | ||||||||||||||
B0 03 0A 01 11 84 | ||||||||||||||
B0 00 0B E0 20 5C | ||||||||||||||
B0 00 0E 01 E3 44 | ||||||||||||||
B0 03 0F 06 53 16 | ||||||||||||||
B0 03 2C 03 8A 25 | ||||||||||||||
B0 03 2D 03 8B B5 | ||||||||||||||
The following loop | ||||||||||||||
A0 05 68 0F 5C 2D | 9F 01 05 68 (1F 7E)*16 0A 46 | ()Sample values are shown in parentheses, which are correct | ||||||||||||
9F is wrong | ||||||||||||||
A0 05 8E 0F 17 81 | 8F 01 05 8E (80 00)*8 E2 89 | ()Sample values are shown in parentheses, which are wrong | ||||||||||||
8F is wrong | ||||||||||||||
After a few seconds the data failed to transmit properly |
Jiao,
For the first command which response is incorrect, it seems your CRC is incorrect for command A0 05 68 0F 5C 2D. I calculate CRC as 5D E1 which may be reason for incorrect response. Can you check your CRC please?
Thanks,
Taylor
Hi Jiao,
So was this the error or just copy paste for this question? Can you change the commands to something else to see if you still lose comms after the two commands?
Regards,
Taylor