Zigbee stick for Europe. Any available? Retain state in HASS?

I have been able to change the firmware successfully unfortunately I have installed the wrong one and cannot figure out yet how to change it again, if possible at all.

There are two options: 115200 bps, RTS/CTS and 57600 bps, XON/XOFF

I installed em357-ncp-uart-rts-cts-use-with-serial-uart-bl-500
While bellows is expecting 57600bps with XON/XOFF.

Anyhow it seems uart works now:
$ ./uart-test-2 -n 0 -p 5 -t 1

Opening serial port and initializing EZSP… 08/16/2017 20:16:17: 0.000 Tx RST
08/16/2017 20:16:17: 0.135 RSTACK Rx
08/16/2017 20:16:17: 0.135 Tx ack(0)+
succeeded.

Checking EZSP version… 08/16/2017 20:16:17: 0.135 Tx data(0,0)
08/16/2017 20:16:17: 0.139 data(0,1) Rx
08/16/2017 20:16:17: 0.139 Tx ack(1)+
succeeded.

For anyone else who wants to try:
Upgrade guide: https://www.silabs.com/documents/public/user-guides/UG228.pdf
Package containing firmware: https://raw.githubusercontent.com/yqyunjie/Zigbee-Project/master/software/STACK/ember-stack-Z5.0.0.0-em35x-ezsp-dev.exe

Then use the correct image file:
EmberZNet5.0.0-GA\EM35x-EZSP\build\em35x-ezsp-images\EM357\em357-ncp-uart-xon-xoff-use-with-serial-uart-bl-500.s37

1 Like

Nice investigation - thanks!
Good luck to find a way to get the f/w you need on there…

I am now able to use the stick without changing the firmware. By changing the baudrate to 115200 and setting xonxoff to False in /bellows/uart.py line 260 and up. ( @rcloran Are you able to make this configurable? )

Home assistant is now successfully able to setup the zha component. And when I turn on my Ikea light bulb it is seen, but joining is still not successful :frowning:

2017-08-17 18:26:12 DEBUG (MainThread) [bellows.uart] Data frame: b'504db5cae1a78f4ca6c341251d237e'
2017-08-17 18:26:12 DEBUG (MainThread) [bellows.uart] Sending: b'8610be7e'
2017-08-17 18:26:12 DEBUG (MainThread) [bellows.ezsp] Application frame 98 (incomingSenderEui64Handler) received
2017-08-17 18:26:12 DEBUG (MainThread) [bellows.uart] Data frame: b'604db1ed502a15a159944a2dae5592636381a48c12316b0a7ee1d6046680c0f0e0cd50c0957e'
2017-08-17 18:26:12 DEBUG (MainThread) [bellows.uart] Sending: b'87009f7e'
2017-08-17 18:26:12 DEBUG (MainThread) [bellows.ezsp] Application frame 69 (incomingMessageHandler) received
2017-08-17 18:26:12 DEBUG (MainThread) [bellows.zigbee.application] No such device 10115
2017-08-17 18:26:12 WARNING (MainThread) [bellows.zigbee.application] Message on unknown device 0x2783
2017-08-17 18:26:15 DEBUG (MainThread) [bellows.uart] Data frame: b'704db18c6cc9a03fc36ab572a15593499c4e16657e'
2017-08-17 18:26:15 DEBUG (MainThread) [bellows.uart] Sending: b'8070787e'
2017-08-17 18:26:15 DEBUG (MainThread) [bellows.ezsp] Application frame 36 (trustCenterJoinHandler) received
2017-08-17 18:26:15 INFO (MainThread) [bellows.zigbee.application] Device 0xe338 (00:0b:57:ff:fe:9a:8d:b5) joined the network
2017-08-17 18:26:15 INFO (MainThread) [bellows.zigbee.device] [0xe338] Discovering endpoints
2017-08-17 18:26:15 DEBUG (MainThread) [bellows.ezsp] Send command sendUnicast
2017-08-17 18:26:15 DEBUG (MainThread) [bellows.uart] Sending: b'0052219c5412f6b259914a25aa1593499c4f26a8ecf6844aa57e'
2017-08-17 18:26:15 DEBUG (MainThread) [bellows.uart] Data frame: b'0152a19c54fc67737e'
2017-08-17 18:26:15 DEBUG (MainThread) [bellows.uart] Sending: b'8160597e'
2017-08-17 18:26:15 DEBUG (MainThread) [bellows.ezsp] Application frame 52 (sendUnicast) received
2017-08-17 18:26:16 INFO (SyncWorker_10) [homeassistant.components.device_tracker.ubus] Checking ARP
2017-08-17 18:26:20 DEBUG (MainThread) [bellows.uart] Data frame: b'1152b1975412f6b259914a25aa1593499c9826cdedbc487e'
2017-08-17 18:26:20 DEBUG (MainThread) [bellows.uart] Sending: b'82503a7e'
2017-08-17 18:26:20 DEBUG (MainThread) [bellows.ezsp] Application frame 63 (messageSentHandler) received
2017-08-17 18:26:21 DEBUG (MainThread) [bellows.uart] Data frame: b'2152b18cc756a03fc36ab572a15593499c4ecab47e'
2017-08-17 18:26:21 DEBUG (MainThread) [bellows.uart] Sending: b'83401b7e'
2017-08-17 18:26:21 DEBUG (MainThread) [bellows.ezsp] Application frame 36 (trustCenterJoinHandler) received
2017-08-17 18:26:21 INFO (MainThread) [bellows.zigbee.application] Device 0x7c93 (00:0b:57:ff:fe:9a:8d:b5) joined the network
2017-08-17 18:26:21 DEBUG (MainThread) [bellows.zigbee.application] Skip initialization for existing device 00:0b:57:ff:fe:9a:8d:b5
2017-08-17 18:26:21 DEBUG (MainThread) [bellows.uart] Data frame: b'3152b5cae1a78f4ca6c3412573b87e'
2017-08-17 18:26:21 DEBUG (MainThread) [bellows.uart] Sending: b'8430fc7e'
2017-08-17 18:26:21 DEBUG (MainThread) [bellows.ezsp] Application frame 98 (incomingSenderEui64Handler) received
2017-08-17 18:26:21 DEBUG (MainThread) [bellows.uart] Data frame: b'4152b1ed502a15a159944a2dae5592c86381b4d712316b0a6ebad6046680c0f0e0cd50c92e7e'
2017-08-17 18:26:21 DEBUG (MainThread) [bellows.uart] Sending: b'8520dd7e'
2017-08-17 18:26:21 DEBUG (MainThread) [bellows.ezsp] Application frame 69 (incomingMessageHandler) received
2017-08-17 18:26:21 DEBUG (MainThread) [bellows.zigbee.zdo] [0x7c93:zdo] ZDO request 0x0013: [31891, 00:0b:57:ff:fe:9a:8d:b5, 142]
2017-08-17 18:26:22 DEBUG (MainThread) [bellows.ezsp] Send command sendUnicast
2017-08-17 18:26:22 DEBUG (MainThread) [bellows.uart] Sending: b'1553219c54b969b259914a25aa1593499c4c25a8eff68477057e'
2017-08-17 18:26:22 DEBUG (MainThread) [bellows.uart] Data frame: b'5253a19c54f292987e'
2017-08-17 18:26:22 DEBUG (MainThread) [bellows.uart] Sending: b'8610be7e'
2017-08-17 18:26:22 DEBUG (MainThread) [bellows.ezsp] Application frame 52 (sendUnicast) received
2017-08-17 18:26:22 DEBUG (MainThread) [bellows.uart] Data frame: b'6253b1f1c756a03fc36ab572a1556d869c7b9b7e'
2017-08-17 18:26:22 DEBUG (MainThread) [bellows.uart] Sending: b'87009f7e'
2017-08-17 18:26:22 DEBUG (MainThread) [bellows.ezsp] Application frame 89 (incomingRouteRecordHandler) received
2017-08-17 18:26:22 DEBUG (MainThread) [bellows.uart] Data frame: b'7253b1f1c756a03fc36ab572a1556d869c659a7e'
2017-08-17 18:26:22 DEBUG (MainThread) [bellows.uart] Sending: b'8070787e'
2017-08-17 18:26:22 DEBUG (MainThread) [bellows.ezsp] Application frame 89 (incomingRouteRecordHandler) received
2017-08-17 18:26:22 DEBUG (MainThread) [bellows.uart] Data frame: b'0253b1ed542a15b7d9944a65aa5592cb6381b4d7123162897cfe808975687e'
2017-08-17 18:26:22 DEBUG (MainThread) [bellows.uart] Sending: b'8160597e'
2017-08-17 18:26:22 DEBUG (MainThread) [bellows.ezsp] Application frame 69 (incomingMessageHandler) received
2017-08-17 18:26:22 DEBUG (MainThread) [bellows.uart] Data frame: b'1253b19754b969b259914a25aa1592499c9625abedf7c07e'
2017-08-17 18:26:22 DEBUG (MainThread) [bellows.uart] Sending: b'82503a7e'
2017-08-17 18:26:22 DEBUG (MainThread) [bellows.ezsp] Application frame 63 (messageSentHandler) received
2017-08-17 18:26:22 WARNING (MainThread) [bellows.zigbee.device] [0x7c93] Failed ZDO request during device initialization: ('Endpoint request failed: %s', [129, 58168, []])

update:
It seems other users have the same issue with a Linear HUSBZB-1 stick.

I have been able to change the firmware. :smile:
In the package that also contains the firmware (https://raw.githubusercontent.com/yqyunjie/Zigbee-Project/master/software/STACK/ember-stack-Z5.0.0.0-em35x-ezsp-dev.exe) there was a tool to reset to the bootloader

in Ember/EmberZNet5.0.0-GA/EM35x-EZSP/
$ make -f standalone-bootloader-demo-gateway.mak
$ cd /build/standalone-bootloader-demo-gateway
$ ./standalone-bootloader-demo-gateway.exe -n 0 -p ttyS4 -t 1

This will give a nice menu:

demo-host>bootload serial-menu    
NCP Bootloader(host) v20 b00
1. upload ncp app image(.ebl)
2. switch to bootloader via EZSP
3. switch to bootloader via reset
4. switch to app reset
5. get running stack version
6. exit
BLH >

Select option 2. Now via the telegesis terminal application on baudrate 115200 I was able to upload a different image.
I am now running em357-ncp-uart-xon-xoff-use-with-serial-uart-bl-500.s37

Unfortunately my ikea buld is still not working. Might pick up a philips hue bulb somewhere to test that.

FYI, Dresden Elektronik have offered to donate RaspBee/ConBee hardware to developers Home Assistant if they would like to implement native support for them, see comment from manup here:

2 Likes

Which Driver did you use? The link you have provided is for the em358 model.

I think the driver was in this package:
https://raw.githubusercontent.com/yqyunjie/Zigbee-Project/master/software/STACK/ember-stack-Z5.0.0.0-em35x-ezsp-dev.exe

Thanks for the reply. I have checked the package and it isnt there.

I have managed to connect using linux however it appears the bootloader isnt present. ATI command works but AT+BLOAD fails to load the bootloader menu. I suspect it needs to be flashed with one via the programmer port.

I was hoping to use this device at some point with the aim of interfacing with a recently installed Smart Meter

For any one else with the same issues it appears I wasn’t using the correct baud rate (school boy error). This guide should provide what you need:

Hi!

We have created 2 new products, compatible with Home Assistant ZigBee component:

  • Elelabs ZigBee USB adapter
  • Elelabs ZigBee Raspberry Pi Shield]

I’m not posting a link here, not to spam the thread, but you can find them.
We have also created some user guides on how to get them working with Home Assistant, so you could get started easily.

As I can see those are no longer available. Can you tell me when it will be available?