Other Parts Discussed in Thread: CC1310
Tool/software: TI-RTOS
hi
i use the rfPacketErrorRate_CC1310_LAUNCHXL_tirtos_ccs and do these(in tx.c):
change PAYLOAD_LENGTH to 256 MAX_LENGTH to 512
masking the pPacket[i] to get the rand();
in order to send 256bytes .
in rx.c
i change the MAX_LENGTH to 512 in order to receice more than 255 byte .
i get the packetLength in rx_callback by
uint8_t packetLength = ((*(uint8_t*)(¤tDataEntry->data + 1)) << 8) | (*(uint8_t*)(¤tDataEntry->data));
when i send the data , the rx_callback can be called .but the packetLength is zero.
but if i change the send length to less than 254 .i can get the right num.
is there some have to be set?
thanks!