Other Parts Discussed in Thread: Z-STACK
使用 Z-Stack Mesh 1.0.0协议;
终端与协调器都使能NV_RESTORE;
组网后终端会定时给协调器发送数据,抓包查看,发现终端发送Data request 请求,协调器也回复ACK之后,部分终端没有成功发送数据。LQI值也不低。请问下这个可能是什么原因导致(已附上抓包数据)。7571.data.psd
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.
使用 Z-Stack Mesh 1.0.0协议;
终端与协调器都使能NV_RESTORE;
组网后终端会定时给协调器发送数据,抓包查看,发现终端发送Data request 请求,协调器也回复ACK之后,部分终端没有成功发送数据。LQI值也不低。请问下这个可能是什么原因导致(已附上抓包数据)。7571.data.psd
部分终端没有成功发送数据
請問你的终端程序是如何发送数据的?能把相關程序貼上來嗎?
static void A10_SendTheMessage(void) { afAddrType_t dstAddr; //uint8 uart_data[8] = {0}; //static uint8 tansferId = 0; dstAddr.addrMode = afAddr16Bit; dstAddr.addr.shortAddr = 0x0000; dstAddr.endPoint = GENERICAPP_ENDPOINT; AF_DataRequest( &dstAddr, &GenericApp_epDesc, CLUSTER_A10_REPORT_A20, 1, &seat_belt_status, &GenericApp_TransID, AF_DISCV_ROUTE, AF_DEFAULT_RADIUS ); //HalUARTWrite(HAL_UART_PORT_0 ,uart_data,1); }这个是终端发送数据的函数
在GenericApp_ProcessEvent()里面加入了一个周期事件,或者按键中断有效,通过这两种方法调用终端发送函数A10_SendTheMessage();