ZigBee Gateway troubleshooting


#1

Hi, I’m having some problems with using ZigBee. I’ve followed the instructions on


I’ve ran the test_zigbee.js in js_test, and it is hanging on “Requesting ZigBee Network Status”. Running malos_zigbee in a separate terminal, I get the following:

pi@raspberrypi:/usr/share/matrixlabs/matrixio-devices $ malos_zigbee
**************
MALOS ZigBee starting
**************

You can query specific driver info using port 40000.
Registered driver Zigbee with port 40001.
New delay between updates for Zigbee is 1000 ms.
New timeout after last ping for Zigbee 1000 ms.
Connecting to the ZigbeeGateway
Listening for connections on port 4901
Listening for connections on port 4900
Waiting for client connection on port 4901
client: connecting to 127.0.0.1
Connected to the Gateway
New connection from client 127.0.0.1:38546 on port 4901
ZigBeeGateway: ../../../protocol/zigbee_5.7/app/framework/util/af-main-host.c:372: emAfResetAndInitNCP: Assertion `0' failed.
Gateway socket hung up
*** buffer overflow detected ***: malos_zigbee terminated
Aborted

After doing some googling, I found


has had the exact same issue.

This post


offered a solution, so I followed the following steps:

  1. Comment https://github.com/matrix-io/matrix-creator-init/blob/master/em358-program.bash#L78 in /usr/share/matrixlabs/matrixio-devices/em358-program.bash
  2. cd /usr/share/matrixlabs/matrixio-devices`
  3. sudo ./em358-program.bash`

the output of sudo ./em358-program.bash:

pi@raspberrypi:/usr/share/matrixlabs/matrixio-devices $ sudo ./em358-program.bash
*** Running the program instead of the bootloader

Then the output for /usr/share/matrixlabs/matrixio-devices/blob/ZigBeeGateway -n 1 -p ttyS0:

pi@raspberrypi:/usr/share/matrixlabs/matrixio-devices $ /usr/share/matrixlabs/matrixio-devices/blob/ZigBeeGateway -n 1 -p ttyS0
Reset info: 11 (SOFTWARE)
ERROR: ezspForceReset 0x21
ZigBeeGateway: ../../../protocol/zigbee_5.7/app/framework/util/af-main-host.c:372: emAfResetAndInitNCP: Assertion `0' failed.
Aborted
ZigBeeGateway>Child process for serial input got EOF. Exiting

I’m not sure what to do now, help would be appreciated.