dresden-elektronik / deconz-rest-plugin

deCONZ REST-API plugin to control ZigBee devices
BSD 3-Clause "New" or "Revised" License
1.88k stars 485 forks source link

deCONZ / Conbee doesn't join #433

Closed drbytes closed 5 years ago

drbytes commented 6 years ago

This morning I noticed a problem with deCONZ (latest beta), the Conbee can't seem to join the network: image

Any idea why?

Is there a way to specify the tty port?

manup commented 6 years ago

The tty port looks fine. since this a remote desktop session please make sure only one instance of deCONZ is running. Some clients will just open another X session where deCONZ from the other local session is not visible.

$ ps ax | grep deCONZ

If that isn't the problem please provide the settings from Edit/Network Settings.

drbytes commented 6 years ago

No its not the right port, its on ttyUSB1 Ill test without the RFXCOM (ttyUSB0) disconnected

manup commented 6 years ago

Hmm strange, then I don't understand how this screen is possible, do you have another FTDI device at ttyUSB0?

To disable auto connecting to a device the commandline parameter --auto-connect=0 can be specified. Then on the deCONZ start screen the device can be selected manually.

drbytes commented 6 years ago

Yes, its another FTDI device, the RFXCOM. It seems there has been an issue with the data storage. I currently am looking at a total destruction of data. My backup seems corrupted as well.

I am now on a fresh install Is there any way to re-discover the devices? I have a ZLL.DB file that looks OK but no devices are shown in the UI. All the remotes still turn the lights on / off / dim. I just don't have anything in the UI. PWA shows all the devices but notes them as disconnected/unreachable.

Any way to recover without too much work?

manup commented 6 years ago

:/ if you don't have an backup made in the Phoscon App it's difficult since the related network parameters are kept there. It might be possible to recover since most parameters are also stored on the ConBee, is deCONZ in In Network state again?

If so you can see where your ZigBee network is:

In the Phoscon App you can switch to that channel:

Menu > Settings > Gateway > Advanced

Note This will only work if all other parameters are still ok.

drbytes commented 6 years ago

zll.zip Here's my ZLL.DB

I've set the network and restarted deconz but still nothing But I think I'm missing settings in network... image

manup commented 6 years ago

Uff it looks totally broken, which firmware version is shown in: deCONZ > Help > About deCONZ ?

drbytes commented 6 years ago

The latest firmware I believe

image

drbytes commented 6 years ago

--

manup commented 6 years ago

Latest is deCONZ 2.05.06 and included firmware version 0x261e0500

http://www.dresden-elektronik.de/rpi/deconz/beta/deconz-2.05.06-qt5.deb

You may try to update the firmware with that but I doubt that this is the reason.

Not sure sure what destroyed your configuration, was the RFXCOM attached all the time? Maybe there are some unwanted interchange and commands on UART port get messed up.

If the update doesn't work, in worst case you need to do:

Now the annoying part: When you need to reset your devices and rejoin them to the network. Names, groups and rules are restored from the zll.db but some bits must be redone manually maybe.

When everything is working again please make a backup from within the Phoscon App so such a issue can be solved easier if it happens again for some reason.

drbytes commented 6 years ago

That worked, however I had to move it to another machine, it doesn't want to work on the ubuntu machine. After I reinstalled everything on a windows machine I pulled a backup in pwa, moved the stick to ubuntu, applied the backiup and it's back to "joining" and not doing anything. A bunch of CRC errors are also thrown by the application

manup commented 6 years ago

Is this a plain Ubuntu machine or VM? Can you try another USB slot, and also try to just connect the ConBee without the other RFCCOM connected.

CRC errors indicate that multiple programs communicate via UART with ConBee.

Also since you connect remotely to the Ubuntu machine have you verified that only one X session is running, CRC errors also occur when multiple deCONZ instances are running.

Can you please provide the output of:

$ ps ax | grep deCONZ
stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

autopia40 commented 5 months ago

Unsure if this will help anyone that comes across this thread, I found it as I couldn't get a ConBee 1 and DeConz to join and map an existing zigbee network, after playing with all the Deconz settings, I think I found the correct settings, which were essentially two parameters over and above setting it to router; I enabled predefined PAN ID and filled in the PAN ID field from my zigbee network, and Security mode only worked with 'High - No Master but TC Link Key', the address and key fields were autopopulated on joining the network. I also had to find out the channel being used and selected it in the Channel Mask, hope this all helps someone trying to use a ConBee device and DeConz?

image Conbee_Deconz