ZigBee Gateway troubleshooting

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.

1 Like

hi,

i am having the same problem! did you ever fix it?

thanks

Sorry, I’ve had no luck fixing the issue.

1 Like

Hi @ecc21 and @randlea2,

We’ve been looking into this issue and are still trying to pinpoint the fix for it.

One interesting observation, if you uninstall and re-install matrixio-malos-zigbee and reboot after each process, ZigBee starts working again. This is not a permanent fix but could work temporarily.

I’ve been using these files to test, one to register a device and one to control it which was written by one of our software developers.

Will send you updates when we have more information on a solution.

Best,
Samreen

2 Likes

Hi

Just wondering is there any update on this?

Thanks.