ZigBee with Telegesis stick

Does anyone establish a successful connection to the Telegesis ETRX3USB stick in openHab?

I can start the binding but no devices are found during scan.

My system is a Raspberry PI with Ubuntu.

My system settings:
export EXTRA_JAVA_OPTS=-Dgnu.io.rxtx.SerialPorts=/dev/ttyUSB0
sudo chmod 666 /dev/ttyUSB0

I installed the the Zigbee binding snapshot: org.openhab.binding.zigbee-2.2.0-SNAPSHOT.jar

Set the debug log level:
log:set debug org.openhab.binding.zigbee
log:set debug com.zsmartsystems.zigbee

openHab logfile while using PaperUI.

2017-12-09 16:28:22.113 [DEBUG] [bee.discovery.ZigBeeDiscoveryService] - Starting ZigBee scan for zigbee:coordinator_telegesis:9a1e58bd
2017-12-09 16:28:22.116 [DEBUG] [tsystems.zigbee.ZigBeeNetworkManager] - Permit join to 65532/0 for 60 seconds.
2017-12-09 16:28:22.119 [DEBUG] [tsystems.zigbee.ZigBeeNetworkManager] - TX CMD: ManagementPermitJoiningRequest [0/0 -> 65532/0, cluster=0036, TID=0F, permitDuration=60, tcSignificance=true]
2017-12-09 16:28:22.124 [DEBUG] [tsystems.zigbee.ZigBeeNetworkManager] - TX APS: ZigBeeApsFrame [sourceAddress=0/0, destinationAddress=65532/0, profile=0000, cluster=54, addressMode=DEVICE, radius=31, sequence=15, payload=00 3C 01]
2017-12-09 16:28:22.127 [DEBUG] [ngle.telegesis.ZigBeeDongleTelegesis] - Telegesis send: TelegesisSendMulticastCommand [radius=31, address=65532, sourceEp=0, destEp=0, profileId=0, clusterId=54, messageData=00 3C 01]
2017-12-09 16:28:22.130 [DEBUG] [gesis.internal.TelegesisFrameHandler] - TX Telegesis queue: 1
2017-12-09 16:28:22.140 [DEBUG] [gesis.internal.TelegesisFrameHandler] - TELEGESIS TX: Data 41 54 2B 53 45 4E 44 4D 43 41 53 54 42 3A 30 33 2C 31 46 2C 46 46 46 43 2C 30 30 2C 30 30 2C 30 30 30 30 2C 30 30 33 36 0D 00 3C 01 0D 0A
2017-12-09 16:28:22.142 [DEBUG] [tsystems.zigbee.ZigBeeNetworkManager] - TX CMD: ManagementPermitJoiningRequest [0/0 -> 0/0, cluster=0036, TID=10, permitDuration=60, tcSignificance=true]
2017-12-09 16:28:22.145 [DEBUG] [tsystems.zigbee.ZigBeeNetworkManager] - TX APS: ZigBeeApsFrame [sourceAddress=0/0, destinationAddress=0/0, profile=0000, cluster=54, addressMode=DEVICE, radius=31, sequence=16, payload=00 3C 01]
2017-12-09 16:28:22.148 [DEBUG] [ngle.telegesis.ZigBeeDongleTelegesis] - Telegesis send: TelegesisSendUnicastCommand [address=0, sourceEp=0, destEp=0, profileId=0, clusterId=54, messageData=00 3C 01, messageId=null]
2017-12-09 16:28:22.150 [DEBUG] [gesis.internal.TelegesisFrameHandler] - TX Telegesis queue: 1
2017-12-09 16:28:22.271 [DEBUG] [gesis.internal.TelegesisFrameHandler] - TELEGESIS RX: Data 45 52 52 4F 52 3A 30 32
2017-12-09 16:28:22.273 [DEBUG] [gesis.internal.TelegesisFrameHandler] - Telegesis command complete: TelegesisSendMulticastCommand [radius=31, address=65532, sourceEp=0, destEp=0, profileId=0, clusterId=54, messageData=00 3C 01, status=UNKNOWN_COMMAND]
2017-12-09 16:28:22.282 [DEBUG] [gesis.internal.TelegesisFrameHandler] - TELEGESIS TX: Data 41 54 2B 53 45 4E 44 55 43 41 53 54 42 3A 30 33 2C 30 30 30 30 2C 30 30 2C 30 30 2C 30 30 30 30 2C 30 30 33 36 0D 00 3C 01 0D 0A
2017-12-09 16:28:22.407 [DEBUG] [gesis.internal.TelegesisFrameHandler] - TELEGESIS RX: Data 45 52 52 4F 52 3A 30 32
2017-12-09 16:28:22.409 [DEBUG] [gesis.internal.TelegesisFrameHandler] - Telegesis command complete: TelegesisSendUnicastCommand [address=0, sourceEp=0, destEp=0, profileId=0, clusterId=54, messageData=00 3C 01, messageId=null, status=UNKNOWN_COMMAND]
2017-12-09 16:28:51.400 [DEBUG] [tems.zigbee.ZigBeeNetworkMeshMonitor] - 0: Starting mesh update
2017-12-09 16:28:51.404 [DEBUG] [tsystems.zigbee.ZigBeeNetworkManager] - TX CMD: ManagementLqiRequest [0/0 -> 0/0, cluster=0031, TID=11, startIndex=0]
2017-12-09 16:28:51.407 [DEBUG] [tsystems.zigbee.ZigBeeNetworkManager] - TX APS: ZigBeeApsFrame [sourceAddress=0/0, destinationAddress=0/0, profile=0000, cluster=49, addressMode=DEVICE, radius=31, sequence=17, payload=00 00]
2017-12-09 16:28:51.410 [DEBUG] [ngle.telegesis.ZigBeeDongleTelegesis] - Telegesis send: TelegesisSendUnicastCommand [address=0, sourceEp=0, destEp=0, profileId=0, clusterId=49, messageData=00 00, messageId=null]
2017-12-09 16:28:51.412 [DEBUG] [gesis.internal.TelegesisFrameHandler] - TX Telegesis queue: 1
2017-12-09 16:28:51.423 [DEBUG] [gesis.internal.TelegesisFrameHandler] - TELEGESIS TX: Data 41 54 2B 53 45 4E 44 55 43 41 53 54 42 3A 30 32 2C 30 30 30 30 2C 30 30 2C 30 30 2C 30 30 30 30 2C 30 30 33 31 0D 00 00 0D 0A
2017-12-09 16:28:51.550 [DEBUG] [gesis.internal.TelegesisFrameHandler] - TELEGESIS RX: Data 45 52 52 4F 52 3A 30 32
2017-12-09 16:28:51.552 [DEBUG] [gesis.internal.TelegesisFrameHandler] - Telegesis command complete: TelegesisSendUnicastCommand [address=0, sourceEp=0, destEp=0, profileId=0, clusterId=49, messageData=00 00, messageId=null, status=UNKNOWN_COMMAND]
2017-12-09 16:29:01.425 [DEBUG] [tems.zigbee.ZigBeeNetworkMeshMonitor] - 0: ManagementLqiRequest returned null
2017-12-09 16:29:01.427 [DEBUG] [tsystems.zigbee.ZigBeeNetworkManager] - TX CMD: IeeeAddressRequest [0/0 -> 0/0, cluster=0001, TID=12, nwkAddrOfInterest=0, requestType=1, startIndex=0]
2017-12-09 16:29:01.429 [DEBUG] [tsystems.zigbee.ZigBeeNetworkManager] - TX APS: ZigBeeApsFrame [sourceAddress=0/0, destinationAddress=0/0, profile=0000, cluster=1, addressMode=DEVICE, radius=31, sequence=18, payload=00 00 00 01 00]
2017-12-09 16:29:01.432 [DEBUG] [ngle.telegesis.ZigBeeDongleTelegesis] - Telegesis send: TelegesisSendUnicastCommand [address=0, sourceEp=0, destEp=0, profileId=0, clusterId=1, messageData=00 00 00 01 00, messageId=null]
2017-12-09 16:29:01.433 [DEBUG] [gesis.internal.TelegesisFrameHandler] - TX Telegesis queue: 1
2017-12-09 16:29:01.444 [DEBUG] [gesis.internal.TelegesisFrameHandler] - TELEGESIS TX: Data 41 54 2B 53 45 4E 44 55 43 41 53 54 42 3A 30 35 2C 30 30 30 30 2C 30 30 2C 30 30 2C 30 30 30 30 2C 30 30 30 31 0D 00 00 00 01 00 0D 0A
2017-12-09 16:29:01.568 [DEBUG] [gesis.internal.TelegesisFrameHandler] - TELEGESIS RX: Data 45 52 52 4F 52 3A 30 32
2017-12-09 16:29:01.570 [DEBUG] [gesis.internal.TelegesisFrameHandler] - Telegesis command complete: TelegesisSendUnicastCommand [address=0, sourceEp=0, destEp=0, profileId=0, clusterId=1, messageData=00 00 00 01 00, messageId=null, status=UNKNOWN_COMMAND]
2017-12-09 16:29:11.445 [DEBUG] [tems.zigbee.ZigBeeNetworkMeshMonitor] - 0: Ieee Address request returned null
2017-12-09 16:29:11.448 [DEBUG] [tsystems.zigbee.ZigBeeNetworkManager] - TX CMD: ManagementRoutingRequest [0/0 -> 0/0, cluster=0032, TID=13, startIndex=0]
2017-12-09 16:29:11.450 [DEBUG] [tsystems.zigbee.ZigBeeNetworkManager] - TX APS: ZigBeeApsFrame [sourceAddress=0/0, destinationAddress=0/0, profile=0000, cluster=50, addressMode=DEVICE, radius=31, sequence=19, payload=00 00]
2017-12-09 16:29:11.452 [DEBUG] [ngle.telegesis.ZigBeeDongleTelegesis] - Telegesis send: TelegesisSendUnicastCommand [address=0, sourceEp=0, destEp=0, profileId=0, clusterId=50, messageData=00 00, messageId=null]
2017-12-09 16:29:11.454 [DEBUG] [gesis.internal.TelegesisFrameHandler] - TX Telegesis queue: 1
2017-12-09 16:29:11.468 [DEBUG] [gesis.internal.TelegesisFrameHandler] - TELEGESIS TX: Data 41 54 2B 53 45 4E 44 55 43 41 53 54 42 3A 30 32 2C 30 30 30 30 2C 30 30 2C 30 30 2C 30 30 30 30 2C 30 30 33 32 0D 00 00 0D 0A
2017-12-09 16:29:11.592 [DEBUG] [gesis.internal.TelegesisFrameHandler] - TELEGESIS RX: Data 45 52 52 4F 52 3A 30 32
2017-12-09 16:29:11.595 [DEBUG] [gesis.internal.TelegesisFrameHandler] - Telegesis command complete: TelegesisSendUnicastCommand [address=0, sourceEp=0, destEp=0, profileId=0, clusterId=50, messageData=00 00, messageId=null, status=UNKNOWN_COMMAND]
2017-12-09 16:29:21.471 [DEBUG] [tems.zigbee.ZigBeeNetworkMeshMonitor] - 0: ManagementRoutingRequest returned null
2017-12-09 16:29:21.473 [DEBUG] [tems.zigbee.ZigBeeNetworkMeshMonitor] - 0: Ending mesh update

How can I verify that the Telegesis stick works and where the problem might originate?

There are some users already using this stick. If I can get it working I will write a tutorial in the forum.

From the short log, it looks like it’s working ok - commands are being transmitted and received. Maybe the problem is with the devices you’re trying to connect - you don’t really provide a lot of information on what you are doing or what device you’re using etc…

Generally, this stick is very easy to use, but of course if you fancy adding to the documentation a PR on GH would be greatly appreciated :slight_smile: .

Hi Chris,
thank you for your fast reply.
I’m trying to connect three ZR-PLUG-EU-HA smartplugs (https://www.4-noks.com/shop/elios4you-accessories/smart-plug/?lang=en). Because discovery did not bring any results I also reset a Hue and a Lightify bulb to factory settings for testing.
Although the configuration of the Telegesis stick might be easy, there are some difficulties that should be documented. I can assist and create some documentation when my setup is running. So I will tell you my issues.

  1. System Configuration
    It is not the responsibility of this binding but it would helpful to get basic installation instructions for the supported sticks on the most common OS or at least some basic hints or references. In my case on Ubuntu is was the chmod and the EXTRA_JAVA_OPTS.

  2. Binding Configuration
    Even if the most options are optional I would appreciate more information on

  • Baud Rate
  • Reset Controller
  • Channel
  • PAN ID
  • Extended PAN ID
  • Trust Center Join Mode
  • Telegesis Dongle Password
    In case of problems I expect all parameters to be relevant for proper functionality.
  1. Manual Configuration in Things File
    I configured my whole system manually for better stability and easier upgrade procedure. The configuration structure can only be inferred by reading from the source code.

What would you recommend to be the next step to check why Hue, Lightify and smartplug pairing are not working?

The binding is in heavy development at the moment - if people can help with documentation etc, it would really be appreciated. Most of what you are asking is pretty simple and can be found in the device manual, or in standard ZigBee documents on the web (eg baud rate, PAN ID, EPAN ID). I will of course try to improve this, but it’s not been the priority so far - if you and others can contribute it would really be great.

Again, if someone can help document this it would be good. Please see here.

I’m not really sure - I have a number of these sticks here, and have reset them to factory settings many times and included many devices (many, many times) and not had any issues with any bulbs at least. This is unlikely to be a binding issue if the stick isn’t joining devices - you could however try the telegesis with a serial console directly.

I am using the latest snapshot on Openhabian and a Telegesis ETRX357-LRS stick with OSRAM Lightify devices, 7 bulbs and one plug.
My problem is that after reboots, the devices stop responding to the commands. The devices appear as online, the log shows the dim level changes, but the devices do not react. Resetting the device and enabling discovery will not add the device to the inbox. Instead it reacts to commands again for some time.

I also have the case that the stick will create a new network, instead of again taking the control of the network it had previously created. It opens a new PAN ID. Is this a timing issue on startup? Is there a way to put it back on the previous PAN using AT commands on the serial port?