matrix-io / matrix-malos-zigbee

MALOS service for ZigBee
GNU General Public License v3.0
5 stars 6 forks source link

ZigBeeGateway: ... : emAfResetAndInitNCP: Assertion `0' failed. #15

Open ecc21 opened 5 years ago

ecc21 commented 5 years ago

Hi, I've come across the same problem in this issue running the test_zigbee.js. Running test_zigbee.js hangs on "Requesting ZigBee Network Status", and when running malos_zigbee service in a terminal, I get

**************
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

Following the solution proposed in here, I obtained the following after commenting out Line 78 in 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've tried swapping out the raspberry Pi's (both rasp pi 3 B running raspbian stretch), and swapping out the matrix boards, so I'm reasonably sure its not a hardware problem.

daniel17903 commented 4 years ago

I am having the same problem.

nourlabs commented 3 years ago

I am having the same problem.