我用的官方的DEMO板连接smartRF测试的,比如我全部发送0x22,接收到的数据都不对,如果发送不一样的数据,接收到数据基本全部错误;
Viki Shi:
没遇到过,你用哪个例程测试的?
风吹我衣:
回复 Viki Shi:
发射端的硬件是我自己的,用的软件是rfEasyLinkTx_CC1310_LAUNCHXL_tirtos_ccs,接收端就用的官方的DEMO板,直接连电脑用smartRF软件收的
Alvin Chen:
回复 风吹我衣:
你数据包格式符合吗?
Frame Structure
The EasyLink implements a basic header for transmitting and receiving data. This header supports addressing for a star or point-to-point network with acknowledgments.
Packet structure:_________________________________________________________
||||
| 1B Length | 1-64b Dst Address |Payload|
|___________|___________________|_________________________|
Alvin Chen:
回复 Alvin Chen:
你能修改的部分为for循环的部分填充:
txPacket.payload[0] = (uint8_t)(seqNumber >> 8); txPacket.payload[1] = (uint8_t)(seqNumber++); uint8_t i; for (i = 2; i < RFEASYLINKECHO_PAYLOAD_LENGTH; i++) { txPacket.payload[i] = rand(); }
txPacket.len = RFEASYLINKECHO_PAYLOAD_LENGTH;
请看如下配置: