vendredi 21 mai 2021

Use docker for flashing an opensource Zigbee Router

 Following this procedure to increase my Zigbee network range (works amazing !), I've ended up with another method of using cc-tools :



https://www.zigbee2mqtt.io/how_tos/how_to_create_a_cc2530_router.html



At the end of step2., this is given to perform https://www.zigbee2mqtt.io/how_tos/how_to_create_a_cc2530_router.html procedure, which is very similar.


Using cc-tools was a burden for me as I use a hybrid testing/stable debian, I could not get all the dependencies solved.


I've found some docker images : https://hub.docker.com/search?q=cc-tool&type=image


So I've used joonas' one


Here is the command :

- perform 'lsusb' to get the device bus ID of the Texas Instrument flashing device.

- download the firmware image in /dest/ and bind mount it in /srv

- joonas/cc-tool:latest does not exist, so it is mandatory to use the correct image tag

docker run -it --device /dev/bus/usb/001/021 -v /dest/CC2530_CC2591_router_2020_09_29:/srv joonas/cc-tool:20210112_1334_98a05cdf cc-tool -e -w /srv/router-cc2530-cc2591-std.hex