Hi,
I deployed a network, this formed by about 20 ZR and a ZC. I use Many-to-one routing and the network work fine.
However I have a problem about the LQI and RSSI value. I need to know that , so I use this code to see the values:
afIncomingMSGPacket_t *MSGpkt;
(void)task_id; // Intentionally unreferenced parameter
// uint8 lqi;
if ( events & SYS_EVENT_MSG )
{
while ( (MSGpkt = (afIncomingMSGPacket_t *)osal_msg_receive( zclSampleLight_TaskID )) )
{
switch ( MSGpkt->hdr.event )
{
case ZCL_INCOMING_MSG:
// lqii=0;
lqii= MSGpkt->rssi;
HalLcdWriteValue(lqii,10,HAL_LCD_LINE_2);
// Incoming ZCL Foundation command/response messages
zclSampleLight_ProcessIncomingMsg( (zclIncomingMsg_t *)MSGpkt );
As you can see I just added and uint value (lqii) to get the value. the problem is that: this values have no sense, every packet I received from the different routers, which are in different place, I received the same value.
But in the packet sniffer the link cost in link status packet is different.
Some one had the same problem?
Thanks!
Danilo