This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Zigbee Light Demo stops responding

I programmed a NRF52840 Dongle with the example light switch code having changed the channel to 14 which is what my coordinator is on.

I then programmed a NRF52840DK with the example switch code and adjusted the search to look specifically for the dongle with the endpoint at 10. All the other compatible devices in my Zigbee network have endpoints set to 1.

I programmed my Smartthings hub to recognise the Nordic dongle as a simple light bulb.

I put the hub in discover mode and fire up the dongle and the DK which both connect.

The Smartthings hub recognises the dongle as a light and I can turn it on and off from the Smartthings app on my phone.

The NRF52840DK switch also finds the dongle and I can control the light on the dongle using the two buttons on the DK board. The Smartthings hub DOES NOT see the updates to the dongle made from the DK switch unless I manually refresh it, but that is another issue.

Everything is fine for a random amount of time varying between a few minutes and several hours up to just over a day on one occasion. Then the light (dongle) simply stops responding. It no longer responds to the Smartthings hub nor to the DK board switch. If I restart the switch it fails to find the light. Only when I restart the light does it work again.

Does anyone have any idea why this should be happening? Can anyone suggest how I can debug this situation?

Parents
  • Hi,

    Have you tried running the light bulb application on the DK, and do you experience this issue on this as well? If you see the issue, you should enter debug mode and check if you can see where the application is stuck. You can also connect the debug out pins of the DK to SWD pinson the dongle, to debug the application running on this as well.

    Best regards,
    Jørgen

  • Can you please share the project you used when seeing this issue? That would help us with reproducing and debugging it.

  • I have enabled the debug trace dump and run the program on the nRF52840DK. I put a breakpoint at the flush statement in zb_nrf52840_abort. 

    void zb_nrf52840_abort(void)
    {
      while(1)
      {
    #ifdef ZB_NRF_TRACE
        /* Flush all remaining logs, including reason of abort. */
    breakpoint here ===>    zb_osif_serial_flush();
    #endif /* ZB_NRF_TRACE */
      }

    When the program stopped in the debugger I captured the debug window trace and it is pasted here. The stack trace shows that the abort was called from zb_buf_from_ref.

    <info> zboss:  00 00 00 0E 3E 41 88 F8|....>A..
    <info> zboss:  DD CF FF FF D5 A1 09 12|......	.
    <info> zboss:  FC FF D5 A1 01 4F DA 44|.....O.D
    <info> zboss:  00 00 00 52 0B 00 28 89|...R..(.
    <info> zboss:  81 43 00 DA 44 00 00 00|.C..D...
    <info> zboss:  52 0B 00 00 CA 00 19 4C|R......L
    <info> zboss:  D6 98 C7 A9 A8 70 73 67|.....psg
    <info> zboss:  07 D2 49 B8 75 A8 03 89|..I.u...
    <info> zboss:  C0 C4 C2 DE AD 48 01 CE|.....H..
    <info> zboss:  C2 26 00 00 00 0E 3E 41|.&....>A
    <info> zboss:  88 48 DD CF FF FF C0 6F|.H.....o
    <info> zboss:  09 12 FC FF C0 6F 01 B9|	....o..
    <info> zboss:  29 BC 95 0A 00 6F 0D 00|)....o..
    <info> zboss:  28 CE B4 4B 01 29 BC 95|(..K.)..
    <info> zboss:  0A 00 6F 0D 00 00 51 04|..o...Q.
    <info> zboss:  5F A8 18 42 F6 9D 9A 5F|_..B..._
    <info> zboss:  96 4B 9C F2 57 6A 9B 64|.K..Wj.d
    <info> zboss:  5C 53 20 CD D4 DE AD 48|\S ....H
    <info> zboss:  01 71 C3 26 00 00 00 0E|.q.&....
    <info> zboss:  3E 41 88 1A DD CF FF FF|>A......
    <info> zboss:  C9 8C 09 12 FC FF C9 8C|..	.....
    <info> zboss:  01 CC 1E 93 93 0A 00 6F|.......o
    <info> zboss:  0D 00 28 AF D2 6D 00 1E|..(..m..
    <info> zboss:  93 93 0A 00 6F 0D 00 00|....o...
    <info> zboss:  5B AC 0C 12 14 04 A7 D7|[.......
    <info> zboss:  17 EA 3A E5 46 86 DA CA|..:.F...
    <info> zboss:  23 67 82 AD EF CC D2 DE|#g......
    <info> zboss:  AD 48 01 CE C3 26 00 00|.H...&..
    <info> zboss:  00 0E 3E 41 88 63 DD CF|..>A.c..
    <info> zboss:  FF FF 57 79 09 12 FC FF|..Wy	...
    <info> zboss:  57 79 01 FC A8 85 FF 03|Wy......
    <info> zboss:  00 6F 0D 00 28 1E BC 75|.o..(..u
    <info> zboss:  00 A8 85 FF 03 00 6F 0D|......o.
    <info> zboss:  00 00 12 1B CD 89 34 93|......4.
    <info> zboss:  FF B3 D3 E6 1E DB D5 57|.......W
    <info> zboss:  FB 7F E6 16 F3 40 F4 DC|.....@..
    <info> zboss:  3C C6 C6 DE AD 45 81 31|<....E.1
    <info> zboss:  C5 26 00 00 00 0E 3B 41|.&....;A
    <info> zboss:  88 9F DD CF FF FF 1C 09|.......	
    <info> zboss:  09 12 FC FF 1C 09 01 6F|	....	.o
    <info> zboss:  56 1A F7 45 1F 0E 01 0B|V..E....
    <info> zboss:  28 5E 0F 00 00 56 1A F7|(^...V..
    <info> zboss:  45 1F 0E 01 0B 00 40 1E|E.....@.
    <info> zboss:  86 E6 EA 2E 51 B8 3C C6|....Q.<.
    <info> zboss:  B0 C5 ED 26 82 C1 B5 B8|...&....
    <info> zboss:  00 80 DE AD 48 01 9E C5|....H...
    <info> zboss:  26 00 00 00 0E 3E 41 88|&....>A.
    <info> zboss:  F9 DD CF FF FF D5 A1 09|.......	
    <info> zboss:  12 FC FF D5 A1 01 50 DA|......P.
    <info> zboss:  44 00 00 00 52 0B 00 28|D...R..(
    <info> zboss:  8A 81 43 00 DA 44 00 00|..C..D..
    <info> zboss:  00 52 0B 00 00 7B 3E 26|.R...{>&
    <info> zboss:  3D 5C 42 40 D6 CF 6E 14|=\[email protected].
    <info> zboss:  1E BC AA 96 C4 14 7A 70|......zp
    <info> zboss:  37 56 C3 C0 DE AD 48 01|7V....H.
    <info> zboss:  22 C7 26 00 00 00 0E 3E|".&....>
    <info> zboss:  41 88 49 DD CF FF FF C0|A.I.....
    <info> zboss:  6F 09 12 FC FF C0 6F 01|o	....o.
    <info> zboss:  BA 29 BC 95 0A 00 6F 0D|.)....o.
    <info> zboss:  00 28 CF B4 4B 01 29 BC|.(..K.).
    <info> zboss:  95 0A 00 6F 0D 00 00 FD|...o....
    <info> zboss:  8B 93 37 90 6D 25 73 E8|..7.m%s.
    <info> zboss:  35 5A BA 4F DD 62 6E 45|5Z.O.bnE
    <info> zboss:  CB EF 10 1A CC D2 DE AD|........
    <info> zboss:  48 01 55 C7 26 00 00 00|H.U.&...
    <info> zboss:  0E 3E 41 88 1E DD CF FF|.>A.....
    <info> zboss:  FF C9 8C 09 12 FC FF C9|...	....
    <info> zboss:  8C 01 D1 1E 93 93 0A 00|........
    <info> zboss:  6F 0D 00 28 B3 D2 6D 00|o..(..m.
    <info> zboss:  1E 93 93 0A 00 6F 0D 00|.....o..
    <info> zboss:  00 B7 59 4E 33 73 43 50|..YN3sCP
    <info> zboss:  9B A3 4D 33 25 9A 88 C6|..M3%...
    <info> zboss:  92 63 53 91 FF 5A CC D2|.cS..Z..
    <info> zboss:  DE AD 48 01 8B C7 26 00|..H...&.
    <info> zboss:  00 00 0E 3E 41 88 64 DD|...>A.d.
    <info> zboss:  CF FF FF 57 79 09 12 FC|...Wy	..
    <info> zboss:  FF 57 79 01 FD A8 85 FF|.Wy.....
    <info> zboss:  03 00 6F 0D 00 28 1F BC|..o..(..
    <info> zboss:  75 00 A8 85 FF 03 00 6F|u......o
    <info> zboss:  0D 00 00 45 F7 EA 0A A5|...E....
    <info> zboss:  CF 78 6C C1 F9 EB 90 5D|.xl....]
    <info> zboss:  E9 65 19 6E 49 E8 01 55|.e.nI..U
    <info> zboss:  DC F0 DE AD 48 01 3E C8|....H.>.
    <info> zboss:  26 00 00 00 0E 3E 41 88|&....>A.
    <info> zboss:  BE DD CF FF FF 00 00 09|.......	
    <info> zboss:  12 FC FF 00 00 01 AE FF|........
    <info> zboss:  85 04 00 00 5B FD 24 28|....[.$(
    <info> zboss:  E8 5B 66 01 FF 85 04 00|.[f.....
    <info> zboss:  00 5B FD 24 00 86 E8 23|.[.$...#
    <info> zboss:  DA D8 82 C5 F2 52 3A C9|.....R:.
    <info> zboss:  D5 2F C4 29 44 12 B5 29|./.)D..)
    <info> zboss:  74 71 C7 C6 DE AD 45 81|tq....E.
    <info> zboss:  03 C9 26 00 00 00 0E 3B|..&....;
    <info> zboss:  41 88 A0 DD CF FF FF 1C|A.......
    <info> zboss:  09 09 12 FC FF 1C 09 01|		....	.
    <info> zboss:  70 56 1A F7 45 1F 0E 01|pV..E...
    <info> zboss:  0B 28 5F 0F 00 00 56 1A|.(_...V.
    <info> zboss:  F7 45 1F 0E 01 0B 00 8F|.E......
    <info> zboss:  74 37 2D B6 5A 89 7E D0|t7-.Z.~.
    <info> zboss:  62 E8 6F 2B EE 92 97 EB|b.o+....
    <info> zboss:  28 00 80 DE AD 48 01 71|(....H.q
    <info> zboss:  B9 12 38 C4 C0 DE AD 3D|..8....=
    <info> zboss:  01 A0 CA 26 00 00 00 0E|...&....
    <info> zboss:  33 41 88 BF DD CF FF FF|3A......
    <info> zboss:  00 00 09 12 FC FF 00 00|..	.....
    <info> zboss:  1E AF FF 85 04 00 00 5B|.......[
    <info> zboss:  FD 24 28 E9 5B 66 01 FF|.$(.[f..
    <info> zboss:  85 04 00 00 5B FD 24 00|....[.$.
    <info> zboss:  69 B1 A0 A9 0F A3 BC FA|i.......
    <info> zboss:  AC F4 C4 C0 DE AD 3D 81|......=.
    <info> zboss:  A0 CA 26 00 00 00 0E 33|..&....3
    <info> zboss:  41 88 A1 DD CF FF FF 1C|A.......
    <info> zboss:  09 09 12 FC FF 00 00 1D|		......
    <info> zboss:  AF FF 85 04 00 00 5B FD|......[.
    <info> zboss:  E4 00 80 DE AD 3D 01 A2|.....=..
    <info> zboss:  CA 26 00 00 00 0E 33 41|.&....3A
    <info> zboss:  88 1F DD CF FF FF C9 8C|........
    <info> zboss:  09 12 FC FF 00 00 1D AF|	.......
    <info> zboss:  FF 85 04 00 00 5B FD 24|.....[.$
    <info> zboss:  28 B4 D2 6D 00 1E 93 93|(..m....
    <info> zboss:  0A 00 6F 0D 00 00 79 A6|..o...y.
    <info> zboss:  2D 9F C5 66 FB D8 38 B0|-..f..8.
    <info> zboss:  CC D2 DE AD 3D 01 A6 CA|....=...
    <info> zboss:  26 00 00 00 0E 33 41 88|&....3A.
    <info> zboss:  4A DD CF FF FF C0 6F 09|J.....o	
    <info> zboss:  12 FC FF 00 00 1D AF FF|........
    <info> zboss:  85 04 00 00 5B FD 24 28|....[.$(
    <info> zboss:  D0 B4 4B 01 29 BC 95 0A|..K.)...
    <info> zboss:  00 6F 0D 00 00 D1 71 26|.o....q&
    <info> zboss:  32 77 F2 8B E3 2E 95 CC|2w......
    <info> zboss:  D4 DE AD 3D 01 A9 CA 26|...=...&
    <info> zboss:  00 00 00 0E 33 41 88 FB|....3A..
    <info> zboss:  DD CF FF FF D5 A1 09 12|......	.
    <info> zboss:  FC FF 00 00 1D AF FF 85|........
    <info> zboss:  04 00 00 5B FD 24 28 8C|...[.$(.
    <info> zboss:  81 43 00 DA 44 00 00 00|.C..D...
    <info> zboss:  52 0B 00 00 D4 76 CD A2|R....v..
    <info> zboss:  33 4D 8E 28 03 7F C3 C0|3M.(....
    <info> zboss:  DE AD 3D 01 AA CA 26 00|..=...&.
    <info> zboss:  00 00 0E 33 41 88 65 DD|...3A.e.
    <info> zboss:  CF FF FF 57 79 09 12 FC|...Wy	..
    <info> zboss:  FF 00 00 1D AF FF 85 04|........
    <info> zboss:  00 00 5B FD 24 28 20 BC|..[.$( .
    <info> zboss:  75 00 A8 85 FF 03 00 6F|u......o
    <info> zboss:  0D 00 00 48 49 02 33 67|...HI.3g
    <info> zboss:  C9 6A 2B 53 1D DC F0 DE|.j+S....
    <info> zboss:  AD 3D 81 B2 CA 26 00 00|.=...&..
    <info> zboss:  00 0E 33 41 88 A2 DD CF|..3A....
    <info> zboss:  FF FF 1C 09 09 12 FC FF|...		...
    <info> zboss:  00 00 1D AF FF 85 04 00|........
    <info> zboss:  00 5B FD 24 28 61 0F 00|.[.$(a..
    <info> zboss:  00 56 1A F7 45 1F 0E 01|.V..E...
    <info> zboss:  0B 00 7E F2 B2 BF FD 11|..~.....
    <info> zboss:  64 1A 49 37 00 80 DE AD|d.I7....
    <info> zboss:  3D 01 B8 CA 26 00 00 00|=...&...
    <info> zboss:  0E 33 41 88 4B DD CF FF|.3A.K...
    <info> zboss:  FF C0 6F 09 12 FC FF 00|..o	....
    <info> zboss:  00 1D AF FF 85 04 00 00|........
    <info> zboss:  5B FD 24 28 D1 B4 4B 01|[.$(..K.
    <info> zboss:  29 BC 95 0A 00 6F 0D 00|)....o..
    <info> zboss:  00 EE 9A DD 41 5B 1B 5E|....A[.^
    <info> zboss:  EB D5 E9 CC D2 DE AD 3D|.......=
    <info> zboss:  01 B9 CA 26 00 00 00 0E|...&....
    <info> zboss:  33 41 88 C0 DD CF FF FF|3A......
    <info> zboss:  00 00 09 12 FC FF 00 00|..	.....
    <info> zboss:  1E AF FF 85 04 00 00 5B|.......[
    <info> zboss:  FD 24 28 EA 5B 66 01 FF|.$(.[f..
    <info> zboss:  85 04 00 00 5B FD 24 00|....[.$.
    <info> zboss:  47 E4 35 FB DF 2C EF 15|G.5..,..
    <info> zboss:  14 C8 C4 C2 DE AD 3D 01|......=.
    <info> zboss:  BA CA 26 00 00 00 0E 33|..&....3
    <info> zboss:  41 88 20 DD CF FF FF C9|A. .....
    <info> zboss:  8C 09 12 FC FF 00 00 1D|.	......
    <info> zboss:  AF FF 85 04 00 00 5B FD|......[.
    <info> zboss:  24 28 B5 D2 6D 00 1E 93|$(..m...
    <info> zboss:  9F AA 8A 0B 6E F7 12 F9|....n...
    <info> zboss:  BF CB D0 DE AD 3D 01 BD|.....=..
    <info> zboss:  CA 26 00 00 00 0E 33 41|.&....3A
    <info> zboss:  88 66 DD CF FF FF 57 79|.f....Wy
    <info> zboss:  09 12 FC FF 00 00 1D AF|	.......
    <info> zboss:  FF 85 04 00 00 5B FD 24|.....[.$
    <info> zboss:  28 21 BC 75 00 A8 85 FF|(!.u....
    <info> zboss:  03 00 6F 0D 00 00 7D 8D|..o...}.
    <info> zboss:  34 39 A4 4C 1A D8 CD BC|49.L....
    <info> zboss:  DB F0 DE AD 3D 01 C9 CA|....=...
    <info> zboss:  26 00 00 00 0E 33 41 88|&....3A.
    <info> zboss:  4C DD CF FF FF C0 6F 09|L.....o	
    <info> zboss:  12 FC FF 00 00 1D AF FF|........
    <info> zboss:  85 04 00 00 5B FD 24 28|....[.$(
    <info> zboss:  D2 B4 4B 01 29 BC 95 0A|..K.)...
    <info> zboss:  00 6F 0D 00 00 79 B6 7E|.o...y.~
    <info> zboss:  84 A3 C8 1D 1A DC B5 CC|........
    <info> zboss:  D2 DE AD 3D 01 CB CA 26|...=...&
    <info> zboss:  00 00 00 0E 33 41 88 C1|....3A..
    <info> zboss:  DD CF FF FF 00 00 09 12|......	.
    <info> zboss:  FC FF 00 00 1E AF FF 85|........
    <info> zboss:  04 00 00 5B FD 24 28 EB|...[.$(.
    <info> zboss:  5B 66 01 FF 85 04 00 00|[f......
    <info> zboss:  5B FD 24 00 79 76 6C 08|[.$.yvl.
    <info> zboss:  33 A4 1E 55 CB 56 C7 C8|3..U.V..
    <info> zboss:  DE AD 3D 01 CB CA 26 00|..=...&.
    <info> zboss:  00 00 0E 33 41 88 21 DD|...3A.!.
    <info> zboss:  CF FF FF C9 8C 09 12 FC|.....	..
    <info> zboss:  FF 00 00 1D AF FF 85 04|........
    <info> zboss:  FC 92 44 6A A2 CC D2 DE|..Dj....
    <info> zboss:  AD 3D 01 D5 CA 26 00 00|.=...&..
    <info> zboss:  00 0E 33 41 88 67 DD CF|..3A.g..
    <info> zboss:  FF FF 57 79 09 12 FC FF|..Wy	...
    <info> zboss:  00 00 1D AF FF 85 04 00|........
    <info> zboss:  00 5B FD 24 28 22 BC 75|.[.$(".u
    <info> zboss:  00 A8 85 FF 03 00 6F 0D|......o.
    <info> zboss:  00 00 1A 82 15 F2 86 54|.......T
    <info> zboss:  D3 BF F3 5D DB F0 DE AD|...]....
    <info> zboss:  3D 01 DD CA 26 00 00 00|=...&...
    <info> zboss:  0E 33 41 88 C2 DD CF FF|.3A.....
    <info> zboss:  FF 00 00 09 12 FC FF 00|...	....
    <info> zboss:  00 1E AF FF 85 04 00 00|........
    <info> zboss:  5B FD 24 28 EC 5B 66 01|[.$(.[f.
    <info> zboss:  FF 85 04 00 00 5B FD 24|.....[.$
    <info> zboss:  00 FE 50 10 E5 5F A5 AB|..P.._..
    <info> zboss:  96 EB 87 CA CC DE AD 48|.......H
    <info> zboss:  01 E1 CA 26 00 00 00 0E|...&....
    <info> zboss:  3E 41 88 22 DD CF FF FF|>A."....
    <info> zboss:  C9 8C 09 12 FC FF C9 8C|..	.....
    <info> zboss:  01 D2 1E 93 93 0A 00 6F|.......o
    <info> zboss:  0D 00 28 B7 D2 6D 00 1E|..(..m..
    <info> zboss:  93 93 0A 00 6F 0D 00 00|....o...
    <info> zboss:  EA 4C F8 C9 B5 AF C3 E1|.L......
    <info> zboss:  38 CA 64 12 58 42 2D A0|8.d.XB-.
    <info> zboss:  D3 35 26 A0 76 CC D2 DE|.5&.v...
    <info> zboss:  AD 48 01 0B CB 26 00 00|.H...&..
    <info> zboss:  00 0E 3E 41 88 68 DD CF|..>A.h..
    <info> zboss:  FF FF 57 79 09 12 FC FF|..Wy	...
    <info> zboss:  57 79 01 FE A8 85 FF 03|Wy......
    <info> zboss:  00 6F 0D 00 28 23 BC 75|.o..(#.u
    <info> zboss:  00 A8 85 FF 03 00 6F 0D|......o.
    <info> zboss:  00 00 4E 09 89 42 6F FE|..N	.Bo.
    <info> zboss:  4C B9 BE 9E C1 6E E9 1A|L....n..
    <info> zboss:  8F E3 D3 FE F3 49 4B DC|.....IK.
    <info> zboss:  F2 DE AD 48 01 73 CB 26|...H.s.&
    <info> zboss:  00 00 00 0E 3E 41 88 4D|....>A.M
    <info> zboss:  DD CF FF FF C0 6F 09 12|.....o	.
    <info> zboss:  FC FF C0 6F 01 BB 29 BC|...o..).
    <info> zboss:  95 0A 00 6F 0D 00 28 D3|...o..(.
    <info> zboss:  B4 4B 01 29 BC 95 0A 00|.K.)....
    <info> zboss:  6F 0D 00 00 A4 45 19 BC|o....E..
    <info> zboss:  8E 45 C7 D9 B7 EF F6 D3|.E......
    <info> zboss:  DF B9 97 97 BF 98 DA 93|........
    <info> zboss:  D9 CD D4 DE AD 48 01 5A|.....H.Z
    <info> zboss:  CC 26 00 00 00 0E 3E 41|.&....>A
    <info> zboss:  88 C3 DD CF FF FF 00 00|........
    <info> zboss:  09 12 FC FF 00 00 01 B0|	.......
    <info> zboss:  FF 85 04 00 00 5B FD 24|.....[.$
    <info> zboss:  28 ED 5B 66 01 FF 85 04|(.[f....
    <info> zboss:  00 00 5B FD 24 00 5E 94|..[.$.^.
    <info> zboss:  8F 90 52 A7 61 05 8B 76|..R.a..v
    <info> zboss:  E0 5A C0 55 66 32 FD 3A|.Z.Uf2.:
    <info> zboss:  76 0A 31 C9 CC DE AD 45|v.1....E
    <info> zboss:  81 D4 CC 26 00 00 00 0E|...&....
    <info> zboss:  3B 41 88 A3 DD CF FF FF|;A......
    <info> zboss:  1C 09 09 12 FC FF 1C 09|.		....	
    <info> zboss:  01 72 56 1A F7 45 1F 0E|.rV..E..
    <info> zboss:  01 0B 28 62 0F 00 00 56|..(b...V
    <info> zboss:  1A F7 45 1F 0E 01 0B 00|..E.....
    <info> zboss:  75 07 3E 9E 19 0D 00 54|u.>....T
    <info> zboss:  36 DA 0A 1E 46 A4 26 8B|6...F.&.
    <info> zboss:  FC 61 00 80 DE AD 3D 01|.a....=.
    <info> zboss:  05 CD 26 00 00 00 0E 33|..&....3
    <info> zboss:  41 88 C4 DD CF FF FF 00|A.......
    <info> zboss:  00 09 12 FC FF 00 00 1E|.	......
    <info> zboss:  B1 FF 85 04 00 00 5B FD|......[.
    <info> zboss:  24 28 EE 5B 66 01 FF 85|$(.[f...
    <info> zboss:  04 00 00 5B FD 24 00 93|...[.$..
    <info> zboss:  A9 5B EE 7E DC 35 8C 20|.[.~.5. 
    <info> zboss:  02 C9 CC DE AD 3D 81 05|.....=..
    <info> zboss:  CD 26 00 00 00 0E 33 41|.&....3A
    <info> zboss:  88 A4 DD CF FF FF 1C 09|.......	
    <info> zboss:  00 80 DE AD 3D 01 08 CD|....=...
    <info> zboss:  26 00 00 00 0E 33 41 88|&....3A.
    <info> zboss:  4E DD CF FF FF C0 6F 09|N.....o	
    <info> zboss:  12 FC FF 00 00 1D B1 FF|........
    <info> zboss:  85 04 00 00 5B FD 24 28|....[.$(
    <info> zboss:  D4 B4 4B 01 29 BC 95 0A|..K.)...
    <info> zboss:  00 6F 0D 00 00 EE 55 6F|.o....Uo
    <info> zboss:  3D 53 26 6E B4 7B 82 CC|=S&n.{..
    <info> zboss:  D2 DE AD 3D 01 09 CD 26|...=.	.&
    <info> zboss:  00 00 00 0E 33 41 88 23|....3A.#
    <info> zboss:  DD CF FF FF C9 8C 09 12|......	.
    <info> zboss:  FC FF 00 00 1D B1 FF 85|........
    <info> zboss:  04 00 00 5B FD 24 28 B8|...[.$(.
    <info> zboss:  D2 6D 00 1E 93 93 0A 00|.m......
    <info> zboss:  6F 0D 00 00 E6 5A 2C EB|o....Z,.
    <info> zboss:  50 E8 AC EF 3A 81 CC D2|P...:...
    <info> zboss:  DE AD 3D 01 0D CD 26 00|..=...&.
    <info> zboss:  00 00 0E 33 41 88 FC DD|...3A...
    <info> zboss:  CF FF FF D5 A1 09 12 FC|.....	..
    <info> zboss:  FF 00 00 1D B1 FF 85 04|........
    <info> zboss:  00 00 5B FD 24 28 8D 81|..[.$(..
    <info> zboss:  43 00 DA 44 00 00 00 52|C..D...R
    <info> zboss:  0B 00 00 CC 44 1F 63 1F|....D.c.
    <info> zboss:  41 D7 E5 9A 98 C4 C2 DE|A.......
    <info> zboss:  AD 3D 01 0E CD 26 00 00|.=...&..
    <info> zboss:  00 0E 33 41 88 69 DD CF|..3A.i..
    <info> zboss:  FF FF 57 79 09 12 FC FF|..Wy	...
    <info> zboss:  00 00 1D B1 FF 85 04 00|........
    <info> zboss:  00 5B FD 24 28 24 BC 75|.[.$($.u
    <info> zboss:  00 A8 85 FF 03 00 6F 0D|......o.
    <info> zboss:  00 00 0D 3C B9 1C C7 22|...<..."
    <info> zboss:  8C D9 AB B0 DB F0 DE AD|........
    <info> zboss:  3D 81 17 CD 26 00 00 00|=...&...
    <info> zboss:  0E 33 41 88 A5 DD CF FF|.3A.....
    <info> zboss:  FF 1C 09 09 12 FC FF 00|..		....
    <info> zboss:  00 1D B1 FF 85 04 00 00|........
    <info> zboss:  5B FD 24 28 64 0F 00 00|[.$(d...
    <info> zboss:  56 1A F7 45 1F 0E 01 0B|V..E....
    <info> zboss:  00 B6 3D 5D CC 4F 75 9E|..=].Ou.
    <info> zboss:  D1 64 F8 00 80 DE AD 3D|.d.....=
    <info> zboss:  01 18 CD 26 00 00 00 0E|...&....
    <info> zboss:  33 41 88 C5 DD CF FF FF|3A......
    <info> zboss:  00 00 09 12 FC FF 00 00|..	.....
    <info> zboss:  1E B1 FF 85 04 00 00 5B|.......[
    <info> zboss:  FD 24 28 EF 5B 66 01 FF|.$(.[f..
    <info> zboss:  85 04 00 00 5B FD 24 00|....[.$.
    <info> zboss:  4B 44 51 A7 E6 D9 6F AA|KDQ...o.
    <info> zboss:  1B 06 C6 C4 DE AD 3D 01|......=.
    <info> zboss:  1C CD 26 00 00 00 0E 33|..&....3
    <info> zboss:  41 88 4F DD CF FF FF C0|A.O.....
    <info> zboss:  6F 09 12 FC FF 00 00 1D|o	......
    <info> zboss:  B1 FF 85 04 00 00 5B FD|......[.
    <info> zboss:  24 28 D5 B4 4B 01 29 BC|$(..K.).
    <info> zboss:  95 0A 00 6F 0D 00 00 DF|...o....
    <info> zboss:  8B 3D 19 D3 BC 96 F5 57|.=.....W
    <info> zboss:  5A CC D2 DE AD 3D 01 1D|Z....=..
    <info> zboss:  CD 26 00 00 00 0E 33 41|.&....3A
    <info> zboss:  88 24 DD CF FF FF C9 8C|.$......
    <info> zboss:  09 12 FC FF 00 00 1D B1|	.......
    <info> zboss:  FF 85 04 00 00 5B FD 24|.....[.$
    <info> zboss:  28 B9 D2 6D 00 1E 93 93|(..m....
    <info> zboss:  0A 00 6F 0D 00 00 B4 D5|..o.....
    <info> zboss:  F8 BA 3F 7B 11 F5 27 66|..?{..'f
    <info> zboss:  CC D2 DE AD 3D 01 22 CD|....=.".
    <info> zboss:  26 00 00 00 0E 33 41 88|&....3A.
    <info> zboss:  6A DD CF FF FF 57 79 09|j....Wy	
    <info> zboss:  12 FC FF 00 00 1D B1 FF|........
    <info> zboss:  85 04 00 00 5B FD 24 28|....[.$(
    <info> zboss:  25 BC 75 00 A8 85 FF 03|%.u.....
    <info> zboss:  00 6F 0D 00 00 49 4F 7D|.o...IO}
    <info> zboss:  AB 5C B2 C3 53 49 32 DC|.\..SI2.
    <info> zboss:  F0 DE AD 3D 01 2D CD 26|...=.-.&
    <info> zboss:  00 00 00 0E 33 41 88 C6|....3A..
    <info> zboss:  DD CF FF FF 00 00 09 12|......	.
    <info> zboss:  FC FF 00 00 1E B1 FF 85|........
    <info> zboss:  04 00 00 5B FD 24 28 F0|...[.$(.
    <info> zboss:  5B 66 01 FF 85 04 00 00|[f......
    <info> zboss:  5B FD 24 00 EE 35 C4 EF|[.$..5..
    <info> zboss:  AD D2 34 BC 2D E2 C4 C0|..4.-...
    <info> zboss:  DE AD 3D 01 30 CD 26 00|..=.0.&.
    <info> zboss:  00 00 0E 33 41 88 50 DD|...3A.P.
    <info> zboss:  CF FF FF C0 6F 09 12 FC|....o	..
    <info> zboss:  FF 00 00 1D B1 FF 85 04|........
    <info> zboss:  00 00 5B FD 24 28 D6 B4|..[.$(..
    <info> zboss:  4B 01 29 BC 95 0A 00 6F|K.)....o
    <info> zboss:  0D 00 00 AC E0 25 B7 D2|.....%..
    <info> zboss:  57 A9 A3 FB 7A CC D2 DE|W...z...
    <info> zboss:  AD 3D 01 31 CD 26 00 00|.=.1.&..
    <info> zboss:  00 0E 33 41 88 25 DD CF|..3A.%..
    <info> zboss:  FF FF C9 8C 09 12 FC FF|....	...
    <info> zboss:  00 00 1D B1 FF 85 04 00|........
    <info> zboss:  00 5B FD 24 28 BA D2 6D|.[.$(..m
    <info> zboss:  00 1E 93 93 0A 00 6F 0D|......o.
    <info> zboss:  00 00 12 6D C8 A7 A7 74|...m...t
    <info> zboss:  BE 7F 3E 8C CC D2 DE AD|..>.....
    <info> zboss:  3D 01 39 CD 26 00 00 00|=.9.&...
    <info> zboss:  0E 33 41 88 6B DD CF FF|.3A.k...
    <info> zboss:  FF 57 79 09 12 FC FF 00|.Wy	....
    <info> zboss:  00 1D B1 FF 85 04 00 00|........
    <info> zboss:  5B FD 24 28 26 BC 75 00|[.$(&.u.
    <info> zboss:  A8 85 FF 03 00 6F 0D 00|.....o..
    <info> zboss:  00 47 DE 9B 80 D0 9D 00|.G......
    <info> zboss:  7D B9 7A DB F0 DE AD 48|}.z....H
    <info> zboss:  01 40 CD 26 00 00 00 0E|.@.&....
    <info> zboss:  3E 41 88 FD DD CF FF FF|>A......
    <info> zboss:  D5 A1 09 12 FC FF D5 A1|..	.....
    <info> zboss:  01 52 DA 44 00 00 00 52|.R.D...R
    <info> zboss:  0B 00 28 8E 81 43 00 DA|..(..C..
    <info> zboss:  44 00 00 00 52 0B 00 00|D...R...
    <info> zboss:  46 4F FA 74 AD D6 4F 52|FO.t..OR
    <info> zboss:  09 94 F1 D9 7F 6E 0C 84|	....n..
    <info> zboss:  DB C9 5F 4D 36 C4 C2 DE|.._M6...
    <info> zboss:  AD 3D 01 40 CD 26 00 00|.=.@.&..
    <info> zboss:  00 0E 33 41 88 C7 DD CF|..3A....
    <info> zboss:  FF FF 00 00 09 12 FC FF|....	...
    <info> zboss:  CF C2 29 84 C4 C2 DE AD|..).....
    <info> zboss:  48 01 1C CF 26 00 00 00|H...&...
    <info> zboss:  0E 3E 41 88 6C DD CF FF|.>A.l...
    <info> zboss:  FF 57 79 09 12 FC FF 57|.Wy	...W
    <info> zboss:  79 01 FF A8 85 FF 03 00|y.......
    <info> zboss:  6F 0D 00 28 27 BC 75 00|o..('.u.
    <info> zboss:  A8 85 FF 03 00 6F 0D 00|.....o..
    <info> zboss:  00 67 73 0F D8 32 3D 05|.gs..2=.
    <info> zboss:  61 EE A0 FF C4 53 4D A7|a....SM.
    <info> zboss:  E4 10 7A DF 04 02 DC F2|..z.....
    <info> zboss:  07 C5 C2 DE AD 3D 01 65|.....=.e
    <info> zboss:  D0 26 00 00 00 0E 33 41|.&....3A
    <info> zboss:  88 70 DD CF FF FF 57 79|.p....Wy
    <info> zboss:  09 12 FC FF D5 A1 04 53|	......S
    <info> zboss:  DA 44 00 00 00 52 0B 00|.D...R..
    <info> zboss:  28 2B BC 75 00 A8 85 FF|(+.u....
    <info> zboss:  03 00 6F 0D 00 00 29 F7|..o...).
    <info> zboss:  37 71 CE EF 2F CF 24 69|7q../.$i
    <info> zboss:  DB F0 DE AD 3D 01 65 D0|....=.e.
    <info> zboss:  26 00 00 00 0E 33 41 88|&....3A.
    <info> zboss:  54 DD CF FF FF C0 6F 09|T.....o	
    <info> zboss:  12 FC FF D5 A1 04 53 DA|......S.
    <info> zboss:  44 00 00 00 52 0B 00 28|D...R..(
    <info> zboss:  10 F0 A1 B9 88 1A ED CC|........
    <info> zboss:  D2 DE AD 3D 01 6E D0 26|...=.n.&
    <info> zboss:  00 00 00 0E 33 41 88 CB|....3A..
    <info> zboss:  DD CF FF FF 00 00 09 12|......	.
    <info> zboss:  FC FF D5 A1 04 53 DA 44|.....S.D
    <info> zboss:  00 00 00 52 0B 00 28 F5|...R..(.
    <info> zboss:  5B 66 01 FF 85 04 00 00|[f......
    <info> zboss:  5B FD 24 00 CF E9 92 93|[.$.....
    <info> zboss:  E9 B2 46 C9 7C 3A C9 CC|..F.|:..
    <info> zboss:  DE AD 45 81 A6 D0 26 00|..E...&.
    <info> zboss:  00 00 0E 3B 41 88 A8 DD|...;A...
    <info> zboss:  CF FF FF 1C 09 09 12 FC|....		..
    <info> zboss:  FF 1C 09 01 76 56 1A F7|..	.vV..
    <info> zboss:  45 1F 0E 01 0B 28 67 0F|E....(g.
    <info> zboss:  00 00 56 1A F7 45 1F 0E|..V..E..
    <info> zboss:  01 0B 00 B1 38 2B 87 D9|....8+..
    <info> zboss:  38 79 96 1B DD A3 C3 B6|8y......
    <info> zboss:  C5 E2 AC 5B 92 00 80 DE|...[....
    <info> zboss:  AD 48 01 13 D1 26 00 00|.H...&..
    <info> zboss:  00 0E 3E 41 88 00 DD CF|..>A....
    <info> zboss:  FF FF D5 A1 09 12 FC FF|....	...
    <info> zboss:  D5 A1 01 54 DA 44 00 00|...T.D..
    <info> zboss:  00 52 0B 00 28 91 81 43|.R..(..C
    <info> zboss:  00 DA 44 00 00 00 52 0B|..D...R.
    <info> zboss:  00 00 91 5A BA D3 7D 52|...Z..}R
    <info> zboss:  E2 71 F2 ED 4D 15 93 B7|.q..M...
    <info> zboss:  58 6A BE 94 E5 8E 37 C5|Xj....7.
    <info> zboss:  C0 DE AD 48 01 CB D2 26|...H...&
    <info> zboss:  00 00 00 0E 3E 41 88 55|....>A.U
    <info> zboss:  DD CF FF FF C0 6F 09 12|.....o	.
    <info> zboss:  FC FF C0 6F 01 BD 29 BC|...o..).
    <info> zboss:  95 0A 00 6F 0D 00 28 DB|...o..(.
    <info> zboss:  B4 4B 01 29 BC 95 0A 00|.K.)....
    <info> zboss:  6F 0D 00 00 CF 9E C3 2F|o....../
    <info> zboss:  9F 1B E9 F3 17 55 FA D4|.....U..
    <info> zboss:  96 35 8E EF 53 51 C3 FC|.5..SQ..
    <info> zboss:  E4 CC D2 DE AD 48 01 4B|.....H.K
    <info> zboss:  D3 26 00 00 00 0E 3E 41|.&....>A
    <info> zboss:  88 71 DD CF FF FF 57 79|.q....Wy
    <info> zboss:  09 12 FC FF 57 79 01 01|	...Wy..
    <info> zboss:  A8 85 FF 03 00 6F 0D 00|.....o..
    <info> zboss:  28 2C BC 75 00 A8 85 FF|(,.u....
    <info> zboss:  03 00 6F 0D 00 00 2F E4|..o.../.
    <info> zboss:  53 AD 5C 34 D4 97 AB 2E|S.\4....
    <info> zboss:  E6 67 FF 10 7A 22 02 9B|.g..z"..
    <info> zboss:  30 F8 C3 DC F2 DE AD 48|0......H
    <info> zboss:  C4 C0 DE AD 48 01 FA D6|....H...
    <info> zboss:  26 00 00 00 0E 3E 41 88|&....>A.
    <info> zboss:  72 DD CF FF FF 57 79 09|r....Wy	
    <info> zboss:  12 FC FF 57 79 01 02 A8|...Wy...
    <info> zboss:  85 FF 03 00 6F 0D 00 28|....o..(
    <info> zboss:  2D BC 75 00 A8 85 FF 03|-.u.....
    <info> zboss:  00 6F 0D 00 00 B5 2B A2|.o....+.
    <info> zboss:  3F D0 27 1A BD 9A 47 52|?.'...GR
    <info> zboss:  5F D0 46 08 AE 23 8A 41|_.F..#.A
    <info> zboss:  66 64 DC F2 DE AD 48 01|fd....H.
    <info> zboss:  26 D7 26 00 00 00 0E 3E|&.&....>
    <info> zboss:  41 88 56 DD CF FF FF C0|A.V.....
    <info> zboss:  6F 09 12 FC FF C0 6F 01|o	....o.
    <info> zboss:  BE 29 BC 95 0A 00 6F 0D|.)....o.
    <info> zboss:  00 28 DC B4 4B 01 29 BC|.(..K.).
    <info> zboss:  95 0A 00 6F 0D 00 00 66|...o...f
    <info> zboss:  16 DB C5 02 CA D1 CB 2D|.......-
    <info> zboss:  F7 3F A1 AB 7C C6 7C 1D|.?..|.|.
    <info> zboss:  A9 D8 61 07 CD D2 DE AD|..a.....
    <info> zboss:  48 01 A0 D7 26 00 00 00|H...&...
    <info> zboss:  0E 3E 41 88 33 DD CF FF|.>A.3...
    <info> zboss:  FF C9 8C 09 12 FC FF C9|...	....
    <info> zboss:  8C 01 DF 1E 93 93 0A 00|........
    <info> zboss:  6F 0D 00 28 C8 D2 6D 00|o..(..m.
    <info> zboss:  1E 93 93 0A 00 6F 0D 00|.....o..
    <info> zboss:  00 B0 A1 62 26 BB B9 A7|...b&...
    <info> zboss:  F4 5B 73 31 B8 27 5C 86|.[s1.'\.
    <info> zboss:  67 EB A8 40 77 2E CC D2|g..@w...
    <info> zboss:  DE AD 45 81 47 D8 26 00|..E.G.&.
    <info> zboss:  00 00 0E 3B 41 88 AA DD|...;A...
    <info> zboss:  CF FF FF 1C 09 09 12 FC|....		..
    <info> zboss:  FF 1C 09 01 78 56 1A F7|..	.xV..
    <info> zboss:  45 1F 0E 01 0B 28 69 0F|E....(i.
    <info> zboss:  00 00 56 1A F7 45 1F 0E|..V..E..
    <info> zboss:  01 0B 00 C0 AF 05 4F E8|......O.
    <info> zboss:  7E 0D E9 85 C0 F4 F8 B4|~.......
    <info> zboss:  CB AC 4F 5F CC 00 80 DE|..O_....
    <info> zboss:  AD 48 01 51 D8 26 00 00|.H.Q.&..
    

  • Could you also provide a sniffer trace, to see what is happening on-air between the devices?

  • Despite spending many hours trolling through articles on the WEB I have so far been unable to generate a sniffer trace with Wireshark and the sniffer application available for the nRF52840 dongle. I can get a trace of data but as far as working out how to handle the encryption I have been entirely unsuccessful. If you can point me to some article that explains how to set this up for someone who does not have a PHD in encryption and wireless sniffing I would be very happy to get a trace to you and would be eternally grateful for the help. I would also hope that this might allow me to identify exactly what is going on myself and be able to feed you much more detailed information about what is might be causing it.

    From the ZB log trace I provided and the very limited interpretation of the debug data I found does it look to you like there is a real issue here or am I misinterpreting the results? The fact that the code appears to be stuck in an endless loop called zb_nrf52840_abort with the parent function being zb_buf_from_ref led me to believe that the reference to the buffer is somehow invalid and the ZBoss has effectively panicked and shut down. Is this correct? It seems odd that it would stuff the device into what looks like a shutdown state from which there appears to be no way to recover other than pressing the reset button or cycling the power supply. In an embedded system I would expect the device to at least reboot after a period of time if not immediately The loop seems to be trying to ensure all the debug log data has been sent out but doesn't seem to do anything after that and I didn't find anything relevant in the debug console window to indicate that there was a problem anyway. Perhaps there is some watchdog function that could be set up to do this that would still respond to a time interrupt even though the main thread is stuck in a loop. Did I miss this? Is it just not built into the demo code?

    I really do appreciate your help here. I am not sure what the situation is in Europe and Asia but in the US I believe that Samsung Smartthings is one of the main SmartHome ecosystems on the market available on shelves in stores all round the country and consequently any product aimed at this arena MUST be able to work flawlessly with it to stand any real chance of wide acceptance.

    I know that debugging this sort of thing using just data from afar and not being able to recreate the problem in your own environment is a monumental task and I take my hat off too you for trying to help me here. Many thanks.

  • Did you add the keys described in the sniffer documentation to Wireshark?

    I need to forward the logs to the developers, I'm not able to decode it myself. I realized it would give the developers more details if I also included a sniffer trace with the logs.

  • I had to download the Wireshark source and recompile it to get it to run on the Mac with the nRf52840 dongle, sorry for the delay.

    I don't see where to add an attachment so the sniffer file is on my WEB site at www.cedartechnology.com/.../nRF52840DK.pcapng

    The nRF52840DK is running the sample light bulb application. It was started just after the trace was begun. The device has address 0x10ad. The hub (address 0x0000) is a SmartThings V2 hub and has the nRF52840 listed as a light bulb. I am able to turn the light on and off via the SmartThings application on an iPhone.

    Looking at the trace the last Link Status broadcast from the nRF52840 is at entry number 29229 followed by a couple of Route Reply messages which I assume are in response to the broadcast Route Request messages from the devices that are being replied to.

    After this the nRF52840DK became unresponsive as can be seen starting at row 31914 where the SmartThings hub sent the Off command to turn off the light. This was not acknowledged. The hub repeated the command several times but no acknowledgements were sent by the nRF52840.

    I do not see problems when the nRF52840 is in its own little network with the sample coordinator and switch only when in the full environment with the Samsung SmartThings controlled network.

    Thanks very much for looking into this. If I can supply any further information please let me know. I can be reach by phone at +1-352-281-6286

Reply
  • I had to download the Wireshark source and recompile it to get it to run on the Mac with the nRf52840 dongle, sorry for the delay.

    I don't see where to add an attachment so the sniffer file is on my WEB site at www.cedartechnology.com/.../nRF52840DK.pcapng

    The nRF52840DK is running the sample light bulb application. It was started just after the trace was begun. The device has address 0x10ad. The hub (address 0x0000) is a SmartThings V2 hub and has the nRF52840 listed as a light bulb. I am able to turn the light on and off via the SmartThings application on an iPhone.

    Looking at the trace the last Link Status broadcast from the nRF52840 is at entry number 29229 followed by a couple of Route Reply messages which I assume are in response to the broadcast Route Request messages from the devices that are being replied to.

    After this the nRF52840DK became unresponsive as can be seen starting at row 31914 where the SmartThings hub sent the Off command to turn off the light. This was not acknowledged. The hub repeated the command several times but no acknowledgements were sent by the nRF52840.

    I do not see problems when the nRF52840 is in its own little network with the sample coordinator and switch only when in the full environment with the Samsung SmartThings controlled network.

    Thanks very much for looking into this. If I can supply any further information please let me know. I can be reach by phone at +1-352-281-6286

Children
  • Unfortunately, I'm not able to read the sniffer trace as it is encrypted. Please make sure you run the sniffer before commissioning the device into the network, for the sniffer to obtain the keys. This could require you to erase the devices before starting the commissioning procedure on the devices again.

  • Sorry about that. I did not realise the trace would not have been decrypted already. To save time, here are the keys my system is using to read this data...

    Transport Key : 5A 69 67 42 65 65 41 6C 6C 69 61 6E 63 65 30 39

    Network Key : 50dcaba83f417592833406696ed2bea4

    I hope that helps.

  • Did the keys work for you? I have been trying to do more checking myself. When I run the code on the nRF52840DK I can see that most of the time it stops in the zb_nrf52840_abort function sitting in an endless loop flushing the zb_osif_serial buffer, which is of course empty.

    The stack trace shows only back to the zb_free_buf() function (1 level up) so I cannot tell where it came to from that. Is there any more I can do to enable me to help find out where it is going wrong?

  • Yes, I was able to read the sniffer trace using the keys. I have forwarded the details to our developers, hopefully they can shed some more light on what is happening from the sniffer trace and stack logs.

  • Is there any news from development? Is there anything I can do to help? It seems like a buffer management issue since it invariably stops around the allocation or deallocation of a ZBoss buffer.

    I really like the Nordic environment and the nRF52840 but I am coming under a lot of pressure to look at alternative devices from other manufacturers if I can't get this to work. All I am trying to do is to get a stable platform running in a commercially available mix of Zigbee products so I can develop five different devices to monitor and control an off grid power and air conditioning system. I have some of the code working but I can't keep the nRF52840 connected for more than a hour or so which means it is all pretty useless.

Related