Zigbee binding

For manually set com port what I need to do.

Iā€™m getting confused - are you asking about running the console, or the binding?

I am asking about bindings. Bindings are got active in my work space. OpenHab PaperUI doesnā€™t show

any thing related to zigbee CC2531. Console used for setting zigbee PANID, etc.

You need to run the binding, and all dependancies must be resolved - this requires that all the zigbee bundles are installed. Once you have this, then you should have the ZigBee binding showing in PaperUI. You can from there add a dongle (manually adding a thing by going through the + button in the inbox or the Things page). Once you add the CC2531 dongle, there is a box that will show the COM port, along with the PANID etc.

Itā€™s hard to understand what you are doing to be honest and it would be useful if you can describe your issue a bit better.

Now i got know chris. I have installed only two bindings com.zsmartsystems.zigbee.dongle.cc2531

and com.zsmartsystems.zigbee. So I need to install all require zigbee bundles. What you provided in

this link https://github.com/zsmartsystems/com.zsmartsystems.zigbee. I mean all zigbee

bundles need to be installed in my workspace. What are the required zigbee bundles.

It is easiest to install all, and therefore I recommend this given you are beginner, but strictly speaking, not all are required.

As an absolute minimum, you need 4 bundles -:

  • com.zsmartsystems.zigbee
  • com.zsmartsystems.zigbee.dongle.cc2531
  • org.openhab.binding.zigbee
  • org.openhab.binding.zigbee.cc2531

If you are running this in the IDE (I donā€™t know) then it is more complex since the dependencies will be managed through the Target Platform and if you want to run different dependencies, then it can be a bit complex to manage.

If you are trying to debug the 2538, then this is why my suggestion is to simply use the console application for initial testing. Do not even load the binding or openHAB bundles - ignore openHAB completely, and use the workspace here. Once you have this working with the 2538, then you can look at what is needed to get it working in the binding.

As I said, Iā€™m not really sure what you are doing. Sometimes it seems you are just trying to get the binding working with the cc2531, and others it seems you are trying to debug the cc2538. Iā€™m not sure if the workspace you refer to is the IDE workspace, or if it is just the openHAB workspace, so itā€™s quite hard to help (sorry).

Yeah, I downloaded workspace and done mvn clean install but there is no mentioned how to start

workspace. I can follow your suggestions for initially test. Can you please tell me how to start

workspace. I completely ignored openhab.

I provided you a direct link to the console information above - it looks like this -:

There is an example command line also shown.

You can either run the application within the IDE (my recommendation) or you may need to compile it externally (Iā€™m not sure if it is compiled as part of the maven build). Given you are trying to debug something, it is likely to be better if you run within the IDE.

Can i use Eclipse IDE.

Yes

Thanks for helping chris. In Eclipse IDE just will have to import application and run.

Yes - import the workspace, and set up the run configuration as per the console command lineā€¦

I have imported your workspace into eclipse IDE.

Then got some errors in eclipse IDE. I have shared below screen shot.

Sorry, but you need to try and work through some of this yourself. I have absolutely no way to know what these errors are. I assume you are familiar with programming, and hopefully with Java, so you need to look through the error list and work out what isnā€™t configured correctly.

I will try and help, but you need to provide useful information.

Can I use maven build? Actually not issue with your workspace bindings.

The issue with these binding and not going to Active.

  • org.openhab.binding.zigbee
  • org.openhab.binding.zigbee.cc2531

To do what?

If you are simply wanting to compile the JARs, then of course maven is fine. If you want to debug (as I think you are, but again, youā€™ve not really said :roll_eyes:) then I would guess that you want to run it in the IDE?

Later I can debug. Initially I have to test with CC2538 devices. If it is fine, then i will go further.

When I installed 4 bundles into my openhab workspace. Openhab bundles throws errors

184 | Active | 80 | 1.1.1.SNAPSHOT | com.zsmartsystems.zigbee.dongle.cc2531
185 | Active | 80 | 1.1.1.SNAPSHOT | com.zsmartsystems.zigbee
186 | Installed | 80 | 2.4.0.201808290659 | ZigBee CC2531 Binding
187 | Installed | 80 | 2.4.0.201808290659 | ZigBee Binding
openhab> start 187
Error executing command: Error executing command on bundles:
Error starting bundle 187: Could not resolve module: org.openhab.binding.zigbee [187]
Unresolved requirement: Import-Package: javax.measure.quantity

above JARā€™s done by Maven build.

You are using a runtime that is too old, or doesnā€™t have the required dependencies. Please read the error - it says that a dependency is not available - you need to resolve this by adding the dependency to the runtime!

I think soā€¦ i am using openhab 2.10 snapshot. I will try to run latest one.

Thanks chris for helping.

This may seem like an odd question. But I need to ask.

Does anyone actually have a working Zigbee network?
If yes, which hardware (coordinator) ?

My latest experience.
The day before yesterday I started all over regarding the Zigbee network. I managed to get both the Philips Hue sensor as well as a Trust motion sensor added just fine. Everything seemed running perfect, just untill last night.
From the event log, it looks like this problem started, when I tried to add a Xiaomi door/window sensor. It didnĀ“t went well, (which didnĀ“t surprise me, but I had to try). But it also looks like, the Zigbee network went ā€œdownā€ as well.
Untill this specific time last night, there has been several communications with the coordinator since I started all over the day before yesterday, the coordinator updated regulary:

2018-08-28 21:23:52.726 [me.event.ThingUpdatedEvent] - Thing 'zigbee:coordinator_ember:417017b0' has been updated.

Shortly after the above event log, I tried to include the xiaomi sensor, which didnĀ“t succeed. It was discovered allright, but not completed. I also tried to remove it again, which didnĀ“t work either.

2018-08-28 21:24:08.455 [home.event.InboxAddedEvent] - Discovery Result with UID 'zigbee:device:417017b0:00158d00022d9d88' has been added.

2018-08-28 21:25:55.657 [me.event.InboxRemovedEvent] - Discovery Result with UID 'zigbee:device:417017b0:00158d00022d9d88' has been removed.
2018-08-28 21:25:55.717 [hingStatusInfoChangedEvent] - 'zigbee:device:417017b0:00158d00022d9d88' changed from UNINITIALIZED to INITIALIZING
2018-08-28 21:25:55.722 [hingStatusInfoChangedEvent] - 'zigbee:device:417017b0:00158d00022d9d88' changed from INITIALIZING to OFFLINE
2018-08-28 21:25:55.748 [hingStatusInfoChangedEvent] - 'zigbee:device:417017b0:00158d00022d9d88' changed from OFFLINE to OFFLINE: Node has not completed discovery
2018-08-28 21:25:56.162 [nt.FirmwareStatusInfoEvent] - Firmware status of thing zigbee:device:417017b0:00158d00022d9d88 changed to UNKNOWN.

2018-08-28 21:28:40.765 [hingStatusInfoChangedEvent] - 'zigbee:device:417017b0:00158d00022d9d88' changed from OFFLINE: Node has not completed discovery to REMOVING
2018-08-28 21:28:40.784 [hingStatusInfoChangedEvent] - 'zigbee:device:417017b0:00158d00022d9d88' changed from REMOVING to REMOVED
2018-08-28 21:28:40.800 [hingStatusInfoChangedEvent] - 'zigbee:device:417017b0:00158d00022d9d88' changed from REMOVED to UNINITIALIZED
2018-08-28 21:28:40.884 [hingStatusInfoChangedEvent] - 'zigbee:device:417017b0:00158d00022d9d88' changed from UNINITIALIZED to UNINITIALIZED (HANDLER_MISSING_ERROR)

After this, all communication with zigbee coordinator seems to have stopped, according to the event log. No more update for the coordinator.
Since I log everytime the Philips sensor trigger, I can also tell from its last triggering, which was last night at: 21:23:37 28.08.2018ā€¦ Notice the time. Its a few seconds just before the last update for the coordinator, and a few more seconds before I tried to add the xiaomi device.

I have a slight feeling, if I hadnĀ“t tried to add the xiaomi device, the zigbee network might be still be running.
Unfortunatly I have no debug logging atm. And I wonder if it would make any sense now?