PDS is enabled on my coordinator. When I reboot its still in the same network, the routers work fine etc. So not sure why my child is being lost then.
I tried using the BitCloud HADevice for an example application changed minimal things, nothing in the configuration file for BitCloud 3.3.0 and I suffered the same issue.
My PDS definitions:
/* Enable wear-leveling version of PDS */
#define PDS_ENABLE_WEAR_LEVELING 1
/* ZigBee Platform NV items list*/
#define PERSISTENT_NV_ITEMS_PLATFORM NWK_SECURITY_COUNTERS_MEM_ID
/* Application NV items list */
#define PERSISTENT_NV_ITEMS_APPLICATION 0xFFFu
When the coordinator reboots it shows the following in the sniffer logs:
Frame 880: 56 bytes on wire (448 bits), 54 bytes captured (432 bits) on interface 0
Interface id: 0 (\\.\pipe\wireshark)
Encapsulation type: IEEE 802.15.4 Wireless PAN (104)
Arrival Time: Jan 1, 1970 11:13:22.134423000 AUS Eastern Daylight Time
[Time shift for this packet: 0.000000000 seconds]
Epoch Time: 802.134423000 seconds
[Time delta from previous captured frame: 4.347481000 seconds]
[Time delta from previous displayed frame: 4.347481000 seconds]
[Time since reference or first frame: 797.355508000 seconds]
Frame Number: 880
Frame Length: 56 bytes (448 bits)
Capture Length: 54 bytes (432 bits)
[Frame is marked: False]
[Frame is ignored: False]
[Protocols in frame: wpan:zbee_nwk:zbee_aps:zbee_zdp]
IEEE 802.15.4 Data, Dst: Broadcast, Src: 0x0000
<Frame Length: 56>
Frame Control Field: 0x8841, Frame Type: Data, Intra-PAN, Destination Addressing Mode: Short/16-bit, Source Addressing Mode: Short/16-bit
.... .... .... .001 = Frame Type: Data (0x0001)
.... .... .... 0... = Security Enabled: False
.... .... ...0 .... = Frame Pending: False
.... .... ..0. .... = Acknowledge Request: False
.... .... .1.. .... = Intra-PAN: True
.... 10.. .... .... = Destination Addressing Mode: Short/16-bit (0x0002)
..00 .... .... .... = Frame Version: 0
10.. .... .... .... = Source Addressing Mode: Short/16-bit (0x0002)
Sequence Number: 92
Destination PAN: 0x16cc
Destination: 0xffff
Source: 0x0000
[Extended Source: 00:00:00_12:34:56:78:90 (00:00:00:12:34:56:78:90)]
[Origin: 746]
<FCS Valid: Unknown>
ZigBee Network Layer Data, Dst: Broadcast, Src: 0x0000
Destination: 0xfffd
Source: 0x0000
Radius: 10
Sequence Number: 241
[Extended Source: 00:00:00_12:34:56:78:90 (00:00:00:12:34:56:78:90)]
[Origin: 746]
ZigBee Security Header
Security Control Field: 0x28, Key Id: Network Key, Extended Nonce
...0 1... = Key Id: Network Key (0x01)
..1. .... = Extended Nonce: True
Frame Counter: 65537
Extended Source: 00:00:00_12:34:56:78:90 (00:00:00:12:34:56:78:90)
Key Sequence Number: 0
Message Integrity Code: d00102a3
[Key: cccccccccccccccccccccccccccccccc]
[Key Origin: 762]
Frame Control Field: 0x0208, Frame Type: Data, Discover Route: Suppress, Security Data
.... .... .... ..00 = Frame Type: Data (0x0000)
.... .... ..00 10.. = Protocol Version: 2
.... .... 00.. .... = Discover Route: Suppress (0x0000)
.... ...0 .... .... = Multicast: False
.... ..1. .... .... = Security: True
.... .0.. .... .... = Source Route: False
.... 0... .... .... = Destination: False
...0 .... .... .... = Extended Source: False
ZigBee Application Support Layer Data, Dst Endpt: 0, Src Endpt: 0
Frame Control Field: Data (0x08)
.... ..00 = Frame Type: Data (0x00)
.... 10.. = Delivery Mode: Broadcast (0x02)
..0. .... = Security: False
.0.. .... = Acknowledgement Request: False
0... .... = Extended Header: False
Destination Endpoint: 0
Network Address Request (Cluster ID: 0x0000)
Profile: ZigBee Device Profile (0x0000)
Source Endpoint: 0
Counter: 110
ZigBee Device Profile, Network Address Request, Device: EmberCor_00:00:e9:3d:9c
Sequence Number: 0
Extended Address: EmberCor_00:00:e9:3d:9c (00:0d:6f:00:00:e9:3d:9c)
Request Type: Single Device Response (0)
Index: 0