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.

ZED cannot send command to ZC after lost/rejoin network many times

Other Parts Discussed in Thread: TEST2, CC2538

Hi all,

I find a  strange issue about ZED cannot send command to ZC. When ZED locate in unstable netwrok, ZED will lost/rejoin network many times. For a while, I observe ZC sned association request and assign the same short address to ZED. After association request, ZED cannot send command to ZC. I power cycle ZED, ZED can rejoin network but still cannot send command to ZC(even I trig EZ-MODE again). Please check TI sniffer and help me solve this issue, thanks

20160905_test1.psd

20160905_test2.psd

20160905_test3.psd

platform : CC2538+CC2592EVM+1.2.2a simpleLight(ZC), CC2538+CC2592EVM + 1.2.2a simpleSwitch(ZR), CC2650EVM(ZED) + 1.02.02a simpleSwitch

 

Test1 : ZC <----> ZR <----> ZED

PAN : 0xCAA2

ZR : 0x7280

ZED : 0x737F

Packet 4479 show "association request"

Packet 4483 show "short address still 0x737F"

Packet 4555 power cycle ZED

 

Test2 : ZC <----> ZED

PAN : 0xAECD

ZED : 0x21C0

Packet 1476 show "association request"

Packet 1480 show "short address still 0x21C0"

Packet 1511 power cycle ZED

 

Test3 : ZC <----> ZED, After ZED join ZC, I disable permit join

PAN : 0xE80A

ZED : 0x55C5

Packet 1243 show "association request"

Packet 1247 show "short address still 0x55C5"

Packet 1275 power cycle ZED

  • There is no Packet 4479 in your 20160905_test1.psd. By the way, association request is sent from ZED side not ZC or ZR. In sniffer logs of Test 2 and 3, I see ZED joins back successfully. You can try to set a breakpoint at where your device to send command and check what happens.
  • Hi YK,

    Thank you for your reply, I will check this issue with breakpoint. I check test1 log which I upload. I can see packet 4479, I use version : 2.18.1

  • I use Ubiqua Packet Analyzer to open it but there is no packet 4479. Anyway, you should set breakpoint to check it first.
  • Hi YK,
    I set breakpoint at
    zcl.c

    status = AF_DataRequest( destAddr, epDesc, clusterID, msgLen, msgBuf,
    &zcl_TransID, options, AF_DEFAULT_RADIUS );

    and
    zstackapi.c

    // Was the response successful
    if(errno == ICALL_ERRNO_SUCCESS)
    {
    // setup return of
    status = (zstack_ZStatusValues)pMsg->hdr.status;
    }

    When I send Switch_sendToggle() on both case(OK/NG), the return value is "SUCCESS". I think "SampleSwitch" send command to "ZStackCore" correctly, but I cannot debug ZStackCore layer. Is it possible ZStack lost EZ-MODE(or binding) information?
  • If your destination is coordinator, you can revise code to always use 0x0000 as destination short address and test again. If you cannot see the problem in this test, I would say the problem is in binding table.