Hi Team,
In the rfPacketErrorRate, while using 15.4 mode, got confused about the TX data formation.
The TX data seems assigned by below code:
The first and second bytes of data buffer are assigned as sequence number, not the packet length.
But when use other RF mode for example 2-GFSK mode, the received data first byte is actually the length information, 30(0x1E) is the length predefined (0xAE 0xAE are values I added to distinguish data):
While using 15.4 mode, I got this, no length information is added,
As we can see on the RX side, it uses the first byte to determine the data length, so in this case 15.4 will not apply.
How ever, when I use smartRF studio to receive data, it shows the data length (please ignore the data content, that's some test code I made, just modified the content, no other changes), not sure value 0x1e is generated by smartRF studio or is it actually received data.
Then I looked into code again, I see "currentDataEntry->data" which is an instant of "rfc_dataEntryGeneral_t" seems confusing to me, I got some questions:
1. Does the "data" member store actually the first byte of TX data buffer?
2. How the length information is inserted into TX data buffer since we can see the first and second bytes are already assigned in the code as sequence number?
3. Does "rfc_dataEntryGeneral_t" also apply to 15.4 mode?
Thanks!