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.

How to get LQI between ZED and Coordinator.

Hi,

Let's say I have this setup: 1 Coordinator, 1 repeater and 1 ZED.

  • Coordinator Connected to the ZED
  • ZED Connected to the Repeater

I have 2 question:

1) Can ZED Connect To Both The Repeater And Coordinator or just one?

2) How do I measure the LQI, not of the last hop, but of the overall LQI Between the ZED and the Coordinator?

  • 1. ZED can only connect to one parent.

    2. You can use ZDO_MGMT_LQI_REQ to collect lqi

  • ZDO_MGMT_LQI_REQ gives me the LQI Between the coordinator and ZED, even if the ZED is connected to the repeater?

  • No. But you can use LqI requests to get all LQI between nodes.

  • Repeater Network Address: 0xA54E

    ZED Network Address: 0xC5BD

    Running ZDO_MGMT_LQI_REQ on all 3 devices I get the following associations.

    • 0000 --> A54E = 202
    • A54E --> 0000 = 255
    • A54E --> C5BD = 229
    • C5BD --> A54E = 247

    As you can see the connection between the coordinator and the repeater has two different values: 202 and 255. Which one should I focus on?

  • Hi Ayman,

    This appears to be a follow-up to a prior thread.  LQI is based off the RSSI values that a node observes from its associated devices when receiving messages.  Therefore, if I understand your above analysis correctly, the ZDO_MGMT_LQI_REQ of DstAddr 0x0000 shows that its link quality from 0xA54E is 202.  Likewise the LQI that 0xA54E receives from 0x0000 is 255.  The value you should focus on depends on the direction you are sending messages: 0x0000 to 0xA54E would be 255 whereas 0xA54E to 0x0000 is 202.  This is further compounded when adding a third device requiring two hops, in essence 0xC5BD --229-> 0xA54E --202-> 0x0000.  I apologize if I misunderstand your designations as this would reverse the LQI order. 

    Regards,
    Ryan