deconz-rest-plugin: Unable to update firmware of Conbee II

I am using the deconz-docker (2.05.63) image on a Raspberry Pi 3b running raspbian.

I am trying to update the firmware to version 0x26480700 without success. When I start the container via docker run -it --rm --entrypoint "/firmware-update.sh" --privileged --cap-add=ALL -v /dev:/dev -v /lib/modules:/lib/modules -v /sys:/sys marthoc/deconz it says I should enter the corresponding device number.

But there is no number shown:

Enter C for Conbee, R for RaspBee, or press Enter now to exit: c
 
Listing attached devices...
 
GCFFlasher V3_02 (c) dresden elektronik ingenieurtechnik gmbh
Path             | Vendor | Product | Serial     | Type
-----------------+--------+---------+------------+-------
/dev/ttyAMA0     | 0x0000 | 0x0000  |            | RaspBee 
 
Enter the Conbee device number, or press Enter now to exit.

Furthermore the Conbee II is mounted under /dev/ttyACM0, so even this is wrong.

What do you suggest me to do to be able to update the firmware?

Thanks.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 45 (17 by maintainers)

Most upvoted comments

Can you please as a test try to disable ModemManager:

systemctl stop ModemManager

The files will be put there too soon.

I am ‘,webscrapping’’ that site to know when there is an updated version

Creative 😃

I managed now to update the firmware, although there is still no new docker version. For those interested, these were my steps:

Stop the container and start it again with access to the shell:

$ docker stop myDeconzContainer
$ docker run -it --rm --entrypoint "/bin/bash" --privileged --cap-add=ALL -v /dev:/dev -v /lib/modules:/lib/modules -v /sys:/sys marthoc/deconz

Then inside this container download the most recent version of the deb file, extract it and just use the GCFFlasher provided within:

> cd /tmp
> wget http://www.dresden-elektronik.de/rpi/deconz/beta/deconz-2.05.63-qt5.deb
> dpkg-deb -x ./deconz-2.05.63-qt5.deb ./deconz.deb.extracted
> cd deconz.deb.extracted/usr/bin
> ./GCFFlasher_internal -d /dev/ttyACM0 -f /usr/share/deCONZ/firmware/deCONZ_ConBeeII_0x26480700.bin.GCF
> exit

Finally start the “normal” container again: $ docker start myDeconzContainer

Check the GUI:

Hersteller dresden elektronik
Produkt ConBee II
Version 2.05.63 / 3.4.2019
Firmware 26480700
Die Version ist auf dem neuesten Stand.

I’ve checked it on a Raspbian Strech with Docker, turns out the environment variable parameters needs to be set. -e DECONZ_DEVICE=/dev/ttyACM0

The following command works here :

docker run -d \
    --name=deconz \
    -p 80:80 \
    -p 443:443 \
    --restart=always \
    -v /opt/deconz:/root/.local/share/dresden-elektronik/deCONZ \
    --device=/dev/ttyACM0 \
    -e DECONZ_WEB_PORT=80 \
    -e DECONZ_WS_PORT=443 \
    -e DECONZ_DEVICE=/dev/ttyACM0 \
    marthoc/deconz

I’ll update the docs and check if this can also be simplified in code.