Not able to Perform Operation after Gateway Power ON After Sometime
We observed that after creating the Thread network successfully if we power down the NXP Modular gateway(HOST) for around 7-8 minutes then again power on the NXP Modular gateway it has been observed that not able to perform any operation through NXP Modular gateway(HOST). It seems like before power down NXP Modular gateway is Leader but after the power on, one of the REED devices become a leader.
Below are the different steps for more details. (Attached steps as well for reference)
Set-up
1. NXP Modular gateway (HOST)
2. REED (Total Number of Devices = 3)
================================================================================================================================ Step 1 Working condition (When NXP Modular Gateway is Leader) 2001:2002:2003::/64 dev eth0 proto kernel metric 256 pref medium fd01::1 dev threadtap0 metric 1024 pref medium fd01::2 dev threadtap0 proto kernel metric 256 pref medium fd01:0:0:3ead::/64 via fe80::260:37ff:fe00:fa5c dev threadtap0 metric 1024 pref medium fe80::/64 dev wlan0 proto kernel metric 256 pref medium fe80::/64 dev eth0 proto kernel metric 256 pref medium fe80::/64 dev threadtap0 proto kernel metric 256 pref medium ff00::/8 dev wlan0 metric 256 pref medium ff00::/8 dev eth0 metric 256 pref medium ff00::/8 dev threadtap0 metric 256 pref medium Device 1Interface 0: 6LoWPAN Link local address (LL64): fe80::c5b1:bd28:9480:4b0e Mesh local address (ML64): fdf5:497a:826d:1534:50d8:8f41:8477:26c8 Mesh local address (ML16): fdf5:497a:826d:1534::ff:fe00:c01 Unique local address: fd01::3ead:3cc2:34ca:95ea:e918 Link local all Thread Nodes(MCast): ff32:40:fdf5:497a:826d:1534::1 Realm local all Thread Nodes(MCast): ff33:40:fdf5:497a:826d:1534::1 thr get routes ID Sequence: 4 Router ID Mask: 9000000000000000 RouterID Short Address Next Hop Cost NOut NIn 0 0x0000 0x2001 0 0 0 thr get parent Parent short address: 0x0C00 Parent extended address: 0x0BDEFEA9C2BB83555 thr get neighbors Index Extended Address ShortAddr LastTime LinkMargin Child State 0 0x0BDEFEA9C2BB8355 0x0C00 9 40 no Neighbor Synced 1 0x2270C3C514E9F7CA 0x0000 11 62 no Neighbor Synced 2 0xE24BEFDA65E1831C 0x0400 3 59 no Neighbor Synced thr get devicerole devrole: Router Eligible End Device Device 2 ifconfig Interface 0: 6LoWPAN Link local address (LL64): fe80::2070:c3c5:14e9:f7ca Mesh local address (ML64): fdf5:497a:826d:1534:8da9:855b:67c0:b0d5 Mesh local address (ML16): fdf5:497a:826d:1534::ff:fe00:0 Unique local address: fd01::3ead:5047:901b:977:7796 Link local all Thread Nodes(MCast): ff32:40:fdf5:497a:826d:1534::1 Realm local all Thread Nodes(MCast): ff33:40:fdf5:497a:826d:1534::1 thr get routes ID Sequence: 16 Router ID Mask: D000000000000000 RouterID Short Address Next Hop Cost NOut NIn 1 0x0400 0x0400 1 3 3 3 0x0C00 0x0C00 1 3 3 thr get parent Parent short address: 0x0C00 Parent extended address: 0x0BDEFEA9C2BB8355 thr get neighbors Index Extended Address ShortAddr LastTime LinkMargin Child State 0 0x0BDEFEA9C2BB8355 0x0C00 10 36 no Neighbor Synced 1 0xE24BEFDA65E1831C 0x0400 2 62 no Neighbor Synced thr get devicerole devrole: Router Device 3 ifconfig Interface 0: 6LoWPAN Link local address (LL64): fe80::e04b:efda:65e1:831c Mesh local address (ML64): fdf5:497a:826d:1534:bd3e:6f06:9ef3:317d Mesh local address (ML16): fdf5:497a:826d:1534::ff:fe00:400 Unique local address: fd01::3ead:49e1:dbb4:5db6:3fe Link local all Thread Nodes(MCast): ff32:40:fdf5:497a:826d:1534::1 Realm local all Thread Nodes(MCast): ff33:40:fdf5:497a:826d:1534::1 thr get routes ID Sequence: 27 Router ID Mask: D000000000000000 RouterID Short Address Next Hop Cost NOut NIn 0 0x0000 0x0000 1 3 3 3 0x0C00 0x0C00 1 3 3 thr get parent Parent short address: 0x0C00 Parent extended address: 0x0BDEFEA9C2BB8355 thr get neighbors Index Extended Address ShortAddr LastTime LinkMargin Child State 0 0x0BDEFEA9C2BB8355 0x0C00 7 35 no Neighbor Synced 1 0x2270C3C514E9F7CA 0x0000 28 61 no Neighbor Synced thr get devicerole devrole: Router ================================================================================================================================ Step 2 when host shutdown all devices have no ULA address after 7 to 8 minutes. Below is the device configuration; Device 1 ifconfig Interface 0: 6LoWPAN Link local address (LL64): fe80::c5b1:bd28:9480:4b0e Mesh local address (ML64): fdf5:497a:826d:1534:50d8:8f41:8477:26c8 Mesh local address (ML16): fdf5:497a:826d:1534::ff:fe00:800 Link local all Thread Nodes(MCast): ff32:40:fdf5:497a:826d:1534::1 Realm local all Thread Nodes(MCast): ff33:40:fdf5:497a:826d:1534::1 thr get parent Parent short address: 0x0400 Parent extended address: 0xE24BEFDA65E1831C thr get routes ID Sequence: 4 Router ID Mask: E000000000000000 RouterID Short Address Next Hop Cost NOut NIn 0 0x0000 0x0000 1 3 3 1 0x0400 0x0400 1 3 3 thr get neighbors Index Extended Address ShortAddr LastTime LinkMargin Child State 0 0x2270C3C514E9F7CA 0x0000 26 63 no Neighbor Synced 2 0xE24BEFDA65E1831C 0x0400 4 57 no Neighbor Synced thr get devicerole devrole: Router Device 2 ifconfig Interface 0: 6LoWPAN Link local address (LL64): fe80::2070:c3c5:14e9:f7ca Mesh local address (ML64): fdf5:497a:826d:1534:8da9:855b:67c0:b0d5 Mesh local address (ML16): fdf5:497a:826d:1534::ff:fe00:0 Link local all Thread Nodes(MCast): ff32:40:fdf5:497a:826d:1534::1 Realm local all Thread Nodes(MCast): ff33:40:fdf5:497a:826d:1534::1 thr get parent No parent found! thr get routes ID Sequence: 26 Router ID Mask: E000000000000000 RouterID Short Address Next Hop Cost NOut NIn 1 0x0400 0x0400 1 3 3 2 0x0800 0x0800 1 3 3 thr get neighbors Index Extended Address ShortAddr LastTime LinkMargin Child State 0 0xE24BEFDA65E1831C 0x0400 9 62 no Neighbor Synced 1 0xC7B1BD2894804B0E 0x0800 7 64 no Neighbor Synced thr get devicerole devrole: Leader Device 3 ifconfig Interface 0: 6LoWPAN Link local address (LL64): fe80::e04b:efda:65e1:831c Mesh local address (ML64): fdf5:497a:826d:1534:bd3e:6f06:9ef3:317d Mesh local address (ML16): fdf5:497a:826d:1534::ff:fe00:400 Link local all Thread Nodes(MCast): ff32:40:fdf5:497a:826d:1534::1 Realm local all Thread Nodes(MCast): ff33:40:fdf5:497a:826d:1534::1 thr get parent Parent short address: 0x0000 Parent extended address: 0x2270C3C514E9F7CA thr get routes ID Sequence: 42 Router ID Mask: E000000000000000 RouterID Short Address Next Hop Cost NOut NIn 0 0x0000 0x0000 1 3 3 2 0x0800 0x0800 1 3 3 thr get neighbors Index Extended Address ShortAddr LastTime LinkMargin Child State 0 0x2270C3C514E9F7CA 0x0000 8 61 no Neighbor Synced 1 0xC7B1BD2894804B0E 0x0800 5 59 no Neighbor Synced thr get devicerole devrole: Router after no host device avilable we are able to ping all three devices usig devices terminal after no host device avilable we are able to send a CoAP message to all three devices usig devices terminal ================================================================================================================================ Step 3 After 7 to 8 minutes a power up a NXP Modular Gateway (host) again and we get these type of device property. Device 1 ifconfig Interface 0: 6LoWPAN Link local address (LL64): fe80::c5b1:bd28:9480:4b0e Mesh local address (ML64): fdf5:497a:826d:1534:50d8:8f41:8477:26c8 Mesh local address (ML16): fdf5:497a:826d:1534::ff:fe00:800 Unique local address: fd01::3ead:3cc2:34ca:95ea:e918 Link local all Thread Nodes(MCast): ff32:40:fdf5:497a:826d:1534::1 Realm local all Thread Nodes(MCast): ff33:40:fdf5:497a:826d:1534::1 thr get parent Parent short address: 0x0400 Parent extended address: 0xE24BEFDA65E1831C thr get routes ID Sequence: 116 Router ID Mask: F000000000000000 RouterID Short Address Next Hop Cost NOut NIn 0 0x0000 0x0000 1 3 3 1 0x0400 0x0400 1 3 3 3 0x0C00 0x0C00 1 3 3 thr get neighbors Index Extended Address ShortAddr LastTime LinkMargin Child State 0 0x2270C3C514E9F7CA 0x0000 12 63 no Neighbor Synced 1 0x0BDEFEA9C2BB8355 0x0C00 12 33 no Neighbor Synced 2 0xE24BEFDA65E1831C 0x0400 16 57 no Neighbor Synced thr get devicerole devrole: Router Device 2 ifconfig Interface 0: 6LoWPAN Link local address (LL64): fe80::2070:c3c5:14e9:f7ca Mesh local address (ML64): fdf5:497a:826d:1534:8da9:855b:67c0:b0d5 Mesh local address (ML16): fdf5:497a:826d:1534::ff:fe00:0 Unique local address: fd01::3ead:5047:901b:977:7796 Link local all Thread Nodes(MCast): ff32:40:fdf5:497a:826d:1534::1 Realm local all Thread Nodes(MCast): ff33:40:fdf5:497a:826d:1534::1 thr get parent No parent found! thr get routes ID Sequence: 125 Router ID Mask: F000000000000000 RouterID Short Address Next Hop Cost NOut NIn 1 0x0400 0x0400 1 3 3 2 0x0800 0x0800 1 3 3 3 0x0C00 0x0C00 1 3 3 thr get neighbors Index Extended Address ShortAddr LastTime LinkMargin Child State 0 0xE24BEFDA65E1831C 0x0400 10 62 no Neighbor Synced 1 0xC7B1BD2894804B0E 0x0800 10 63 no Neighbor Synced 2 0x0BDEFEA9C2BB8355 0x0C00 25 35 no Neighbor Synced thr get devicerole devrole: Leader Device 3 ifconfig Interface 0: 6LoWPAN Link local address (LL64): fe80::e04b:efda:65e1:831c Mesh local address (ML64): fdf5:497a:826d:1534:bd3e:6f06:9ef3:317d Mesh local address (ML16): fdf5:497a:826d:1534::ff:fe00:400 Unique local address: fd01::3ead:49e1:dbb4:5db6:3fe Link local all Thread Nodes(MCast): ff32:40:fdf5:497a:826d:1534::1 Realm local all Thread Nodes(MCast): ff33:40:fdf5:497a:826d:1534::1 thr get parent Parent short address: 0x0000 Parent extended address: 0x2270C3C514E9F7CA thr get routes ID Sequence: 131 Router ID Mask: F000000000000000 RouterID Short Address Next Hop Cost NOut NIn 0 0x0000 0x0000 1 3 3 2 0x0800 0x0800 1 3 3 3 0x0C00 0x0C00 1 3 3 thr get neighbors Index Extended Address ShortAddr LastTime LinkMargin Child State 0 0x2270C3C514E9F7CA 0x0000 8 61 no Neighbor Synced 1 0xC7B1BD2894804B0E 0x0800 4 57 no Neighbor Synced 2 0x0BDEFEA9C2BB8355 0x0C00 3 33 no Neighbor Synced thr get devicerole devrole: Router this time all devices get Host operation command. ================================================================================================================================Step 4 After this scenario we power down the NXP Modular Gateway (host) again for 7 to 8 minutes and we observe same scenario as per second step device 1 $ ifconfig Interface 0: 6LoWPAN Link local address (LL64): fe80::c5b1:bd28:9480:4b0e Mesh local address (ML64): fdf5:497a:826d:1534:50d8:8f41:8477:26c8 Mesh local address (ML16): fdf5:497a:826d:1534::ff:fe00:800 Link local all Thread Nodes(MCast): ff32:40:fdf5:497a:826d:1534::1 Realm local all Thread Nodes(MCast): ff33:40:fdf5:497a:826d:1534::1 $ thr get parent Parent short address: 0x0400 Parent extended address: 0xE24BEFDA65E1831C $ thr get routes ID Sequence: 180 Router ID Mask: E000000000000000 RouterID Short Address Next Hop Cost NOut NIn 0 0x0000 0x0000 1 3 3 1 0x0400 0x0400 1 3 3 $ thr get neighbors Index Extended Address ShortAddr LastTime LinkMargin Child State 0 0x2270C3C514E9F7CA 0x0000 4 63 no Neighbor Synced 2 0xE24BEFDA65E1831C 0x0400 13 57 no Neighbor Synced $ thr get devicerole devrole: Router device 2 ifconfig Interface 0: 6LoWPAN Link local address (LL64): fe80::2070:c3c5:14e9:f7ca Mesh local address (ML64): fdf5:497a:826d:1534:8da9:855b:67c0:b0d5 Mesh local address (ML16): fdf5:497a:826d:1534::ff:fe00:0 Link local all Thread Nodes(MCast): ff32:40:fdf5:497a:826d:1534::1 Realm local all Thread Nodes(MCast): ff33:40:fdf5:497a:826d:1534::1 $ thr get parent No parent found! $ thr get routes ID Sequence: 191 Router ID Mask: E000000000000000 RouterID Short Address Next Hop Cost NOut NIn 1 0x0400 0x0400 1 3 3 2 0x0800 0x0800 1 3 3 $ thr get neighbors Index Extended Address ShortAddr LastTime LinkMargin Child State 0 0xE24BEFDA65E1831C 0x0400 27 62 no Neighbor Synced 1 0xC7B1BD2894804B0E 0x0800 16 63 no Neighbor Synced thr get devicerole devrole: Leader Device 3 ifconfig Interface 0: 6LoWPAN Link local address (LL64): fe80::e04b:efda:65e1:831c Mesh local address (ML64): fdf5:497a:826d:1534:bd3e:6f06:9ef3:317d Mesh local address (ML16): fdf5:497a:826d:1534::ff:fe00:400 Link local all Thread Nodes(MCast): ff32:40:fdf5:497a:826d:1534::1 Realm local all Thread Nodes(MCast): ff33:40:fdf5:497a:826d:1534::1 $ thr get parent Parent short address: 0x0000 Parent extended address: 0x2270C3C514E9F7CA $ thr get routes ID Sequence: 198 Router ID Mask: E000000000000000 RouterID Short Address Next Hop Cost NOut NIn 0 0x0000 0x0000 1 3 3 2 0x0800 0x0800 1 3 3 $ thr get neighbors Index Extended Address ShortAddr LastTime LinkMargin Child State 0 0x2270C3C514E9F7CA 0x0000 11 61 no Neighbor Synced 1 0xC7B1BD2894804B0E 0x0800 8 57 no Neighbor Synced $ thr get devicerole devrole: Router CoAP message is working fine. ================================================================================================================================Step 5 After some time when we power on the NXP Modular gateway (Host) again all three devices are not getting CoAP opeartion command and device Thread prop are as below. 2001:2002:2003::/64 dev eth0 proto kernel metric 256 pref medium fd01::1 dev threadtap0 metric 1024 pref medium fd01::2 dev threadtap0 proto kernel metric 256 pref medium fd01:0:0:3ead::/64 via fe80::260:37ff:fe00:fa5c dev threadtap0 metric 1024 pref medium fe80::/64 dev wlan0 proto kernel metric 256 pref medium fe80::/64 dev eth0 proto kernel metric 256 pref medium fe80::/64 dev threadtap0 proto kernel metric 256 pref medium ff00::/8 dev wlan0 metric 256 pref medium ff00::/8 dev eth0 metric 256 pref medium ff00::/8 dev threadtap0 metric 256 pref medium Device 1: ifconfig Interface 0: 6LoWPAN Link local address (LL64): fe80::c5b1:bd28:9480:4b0e Mesh local address (ML64): fdf5:497a:826d:1534:50d8:8f41:8477:26c8 Mesh local address (ML16): fdf5:497a:826d:1534::ff:fe00:800 Unique local address: fd01::3ead:3cc2:34ca:95ea:e918 Link local all Thread Nodes(MCast): ff32:40:fdf5:497a:826d:1534::1 Realm local all Thread Nodes(MCast): ff33:40:fdf5:497a:826d:1534::1 $ $ thr get parent Parent short address: 0x0400 Parent extended address: 0xE24BEFDA65E1831C $ thr get routes ID Sequence: 19 Router ID Mask: E000000000000000 RouterID Short Address Next Hop Cost NOut NIn 0 0x0000 0x0000 1 3 3 1 0x0400 0x0400 1 3 3 thr get neighbors Index Extended Address ShortAddr LastTime LinkMargin Child State 0 0x2270C3C514E9F7CA 0x0000 17 63 no Neighbor Synced 2 0xE24BEFDA65E1831C 0x0400 10 57 no Neighbor Synced $ thr get devicerole devrole: Router Device 2:(This device get Host Broadcast message directly) ifconfig Interface 0: 6LoWPAN Link local address (LL64): fe80::2070:c3c5:14e9:f7ca Mesh local address (ML64): fdf5:497a:826d:1534:8da9:855b:67c0:b0d5 Mesh local address (ML16): fdf5:497a:826d:1534::ff:fe00:0 Unique local address: fd01::3ead:5047:901b:977:7796 Link local all Thread Nodes(MCast): ff32:40:fdf5:497a:826d:1534::1 Realm local all Thread Nodes(MCast): ff33:40:fdf5:497a:826d:1534::1 $ thr get parent No parent found! thr get routes ID Sequence: 37 Router ID Mask: E000000000000000 RouterID Short Address Next Hop Cost NOut NIn 1 0x0400 0x0400 1 3 3 2 0x0800 0x0800 1 3 3 thr get neighbors Index Extended Address ShortAddr LastTime LinkMargin Child State 0 0xE24BEFDA65E1831C 0x0400 18 62 no Neighbor Synced 1 0xC7B1BD2894804B0E 0x0800 6 63 no Neighbor Synced 2 0x0BDEFEA9C2BB8355 0x0001 74 38 yes Neighbor Synced thr get devicerole devrole: Leader Device 3: ifconfig Interface 0: 6LoWPAN Link local address (LL64): fe80::e04b:efda:65e1:831c Mesh local address (ML64): fdf5:497a:826d:1534:bd3e:6f06:9ef3:317d Mesh local address (ML16): fdf5:497a:826d:1534::ff:fe00:400 Unique local address: fd01::3ead:49e1:dbb4:5db6:3fe Link local all Thread Nodes(MCast): ff32:40:fdf5:497a:826d:1534::1 Realm local all Thread Nodes(MCast): ff33:40:fdf5:497a:826d:1534::1 $ thr get parent Parent short address: 0x0000 Parent extended address: 0x2270C3C514E9F7CA thr get routes ID Sequence: 58 Router ID Mask: E000000000000000 RouterID Short Address Next Hop Cost NOut NIn 0 0x0000 0x0000 1 3 3 2 0x0800 0x0800 1 3 3 thr get neighbors Index Extended Address ShortAddr LastTime LinkMargin Child State 0 0x2270C3C514E9F7CA 0x0000 6 61 no Neighbor Synced 1 0xC7B1BD2894804B0E 0x0800 20 57 no Neighbor Synced thr get devicerole devrole: Router ================================================================================================================================
Please try to run Router Advertisement Daemon (radvd) on the gateway for it to send router advertisement messages.