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.

Linux/CC2531EM-IOT-HOME-GATEWAY-RD: Binding ZZL device yields *** Error in `./NWKMGR_SRVR_arm': corrupted size vs. prev_size: 0x00fef610 ***

Part Number: CC2531EM-IOT-HOME-GATEWAY-RD
Other Parts Discussed in Thread: CC2531, Z-STACK

Tool/software: Linux

Hi!

I have assembled an successfully tested the HA gateway reference design.

However, when I attempt to bind a ZZL scene controller to a light ( both to a physical and to a gateway endpoint) I get the following error from the server:

*** Error in `./NWKMGR_SRVR_arm': corrupted size vs. prev_size: 0x00fef610 ***

The server also notes:

unexpected exit code (134) from netmgr!

 

This issue seems very similar to the one described here.

Sine the mentioned post was not really resolved. I thought to ask:

  • Has anyone successfully used a ZZL controller with the HA gateway?
  • Can anything be done to resolve the issue?

 

 


Additional Information:

I use Z-Stack_Linux_Gateway-1.0.1, and the CC2531 firmware provided in the download

The controller is a Ikea remote with Device ID 0x0830 Non-color scene controller

Dump of server output, when restarting:

OTA SERVER started (pid 19253) at Thu Aug 31 18:56:59 UTC 2017
starting tracker with our pid ./zigbeeHAgw and pid list 19134 19173 19227 19253
===================================================
tracking 4 pids, 19134 19173 19227 19253
when we see something missing we will send a SIGUSR2 to pid 1712
*** Error in `./NWKMGR_SRVR_arm': corrupted size vs. prev_size: 0x00fef610 ***
recv: Connection reset by peer
./zigbeeHAgw: line 1049: 19213 Aborted                 $NWKMGR_CMD $NWKMGR_RESTART_FLAG
NETWORK MANAGER exited with code 134 at Thu Aug 31 19:02:28 UTC 2017
./zigbeeHAgw: line 482: 19282 Killed                  ./track_servers $$ "$pids"
Removing connection #5
unexpected exit code (134) from netmgr!
resetting beaglebone black
 sleeping 6 seconds after reset... Using serial port: /dev/ttyACM0
zbSocProcessRpc: CMD0:41, CMD1:80, not handled
Received System version.
  Transport Protocol Version: 2
  Product ID: 0
  Software Release: 2.6.1
  Software Revision: 38724
done
Starting the ZigBee gateway subsystem
deviceKey = 0  (0 )
devPath = '/dev/ttyACM0'
logPath = './NpiLnxLog.txt'
... freeing memory (ret 0)
Port: 2533
Following IP addresses are available:

 IPv4: interface: lo     IP Address 127.0.0.1
 IPv4: interface: usb0   IP Address 192.168.7.2
 IPv4: interface: usb1   IP Address 192.168.6.2
 IPv6: interface: lo     IP Address ::1
 IPv6: interface: usb0   IP Address fe80::eaeb:11ff:fe27:b930
The socket will listen on the following IP addresses:

  IPv4: 0.0.0.0
  IPv6: ::
0.0.0.0 means it will listen to all available IP address

waiting for first connection on #3...
NPI started (pid 27938) at Thu Aug 31 19:02:55 UTC 2017
Connected to #5.(127.0.0.1 / ::18b2:f3b6:400:0)
ZLSZNP started (pid 27977) at Thu Aug 31 19:02:59 UTC 2017
[NWK_MGR/MAIN] :  there are 2 args
[NWK_MGR/MAIN] :  argv[0] = ./NWKMGR_SRVR_arm
[NWK_MGR/MAIN] :  argv[1] = 127.0.0.1:2536
[NWK_MGR/MAIN] :  ************************************************
[NWK_MGR/MAIN] :  *         Network Manager Server v1.0.1        *
[NWK_MGR/MAIN] :  * The following are the avaible key commands:  *
[NWK_MGR/MAIN] :  * Exit Program.                         -  q   *
[NWK_MGR/MAIN] :  ************************************************

NETWORK MANAGER started (pid 28017) at Thu Aug 31 19:03:00 UTC 2017
[GATEWAY/MAIN] :
[GATEWAY/MAIN] :  ************************************************
[GATEWAY/MAIN] :  *            Gateway Server v1.0.1             *
[GATEWAY/MAIN] :  * The following are the avaible key commands:  *
[GATEWAY/MAIN] :  * Exit Program.                         -  q   *
[GATEWAY/MAIN] :  ************************************************

GATEWAY SERVER started (pid 28031) at Thu Aug 31 19:03:02 UTC 2017
[OTASRVR/MAIN] :
[OTASRVR/MAIN] :  ************************************************
[OTASRVR/MAIN] :  *                OTA Upgrade Server 1.0.1      *
[OTASRVR/MAIN] :  * The following are the avaible key commands:  *
[OTASRVR/MAIN] :  * Exit Program.                         -  q   *
[OTASRVR/MAIN] :  ************************************************

OTA SERVER started (pid 28056) at Thu Aug 31 19:03:05 UTC 2017
starting tracker with our pid ./zigbeeHAgw and pid list 27938 27977 28031 28056
===================================================
tracking 4 pids, 27938 27977 28031 28056

 

Dump of gateway app log:

Binding source selected
Sending bind command
binding  source_address 0xb57fffec64fa8 endpoint 0x1
binding  destination_address 0xb57fffec530d3 endpoint 0x1
sent to NWK_MGR: len=36, cmd_id=26, subsystem=18
 Raw=24:00:12:1A:08:1A:12:0D:08:00:11:A8:4F:C6:FE:FF:57:0B:00:28:01:18:06:22:0D:08:00:11:D3:30:C5:FE:FF:57:0B:00:28:01:28:00
received from NWK_MGR: len=6, cmd_id=0, subsystem=114
 Raw=06:00:72:00:08:00:10:00:18:00
Calling confirmation callback
comm_device_binding_entry_request_confirm: Received ZIGBEE_GENERIC_CNF
comm_device_binding_entry_request_confirm: Status SUCCESS.
Server NWK_MGR disconnected
nwk_mgr_server_connected_disconnected_handler
Init state 4
Unregistering state machine (00000000)
Successfully connected to NWK_MGR server
nwk_mgr_server_connected_disconnected_handler
ERROR reading from socket (server NWK_MGR)
Server NWK_MGR disconnected
nwk_mgr_server_connected_disconnected_handler
Init state 4