Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flashing Error! Please re-run this script... #147

Open
subjectbit opened this issue Aug 14, 2019 · 4 comments

Comments

@subjectbit
Copy link

commented Aug 14, 2019

I have followed the documentation to update my Conbee 2 stick and can't get it to work. I am using the Docker image on an Intel NUC with Home Assistant docker (not HASS.io). Everything was working great with ~55 nodes (mostly lights).

I decided to update the firmware and now can't get it to update.

Steps to recreate:

  1. Stop deconz container
  2. Enter this command to invoke the firmware update script
  3. Enter device path of /dev/ttyACM0
  4. Select firmware file of deCONZ_ConBeeII_0x26490700.bin.GCF
  5. Confirm device path & firmware file and submit. It starts to flash and then errors out. Full terminal interaction listed below

I have tried:

  1. restarting the machine
  2. unplugging the device for ~20 minutes
  3. trying all of the other firmware files

I can't get past this message. Any suggestions?

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
-------------------------------------------------------------------
 
             marthoc/deconz Firmware Flashing Script
 
                       Version: 0.5
 
-------------------------------------------------------------------
 
 
Listing attached devices...
 
GCFFlasher V3_05 (c) dresden elektronik ingenieurtechnik gmbh
Path             | Vendor | Product | Serial     | Type
-----------------+--------+---------+------------+-------
/dev/ttyACM0     | 0x1CF1 | 0x0030  |            | ConBee II 
 
Enter the full device path, or press Enter now to exit.
 
Device Path : /dev/ttyACM0
 
-------------------------------------------------------------------
 
Firmware available for flashing:
 
deCONZ_ConBeeII_0x26480700.bin.GCF
deCONZ_ConBeeII_0x26490700.bin.GCF
deCONZ_Rpi_0x261f0500.bin.GCF
deCONZ_Rpi_0x26320500.bin.GCF
deCONZ_Rpi_0x26330500.bin.GCF
 
Enter the firmware file name from above, including extension,
or press Enter now to exit.
 
File Name : deCONZ_ConBeeII_0x26490700.bin.GCF
 
-------------------------------------------------------------------
 
Device: /dev/ttyACM0
 
Firmware File: deCONZ_ConBeeII_0x26490700.bin.GCF
 
Are the above device and firmware values correct?
Enter Y to proceed, any other entry to exit: Y
 
Flashing...
 
GCFFlasher V3_05 (c) dresden elektronik ingenieurtechnik gmbh
Reboot device /dev/ttyACM0 (ConBee II)
action: update firmware after 29 ms
flashing 158985 bytes: |=error: timeout flashing firmware after 3003 ms
 
Flashing Error! Please re-run this script...


@subjectbit

This comment has been minimized.

Copy link
Author

commented Aug 14, 2019

One other thing I observed is when I try and restart the deconz container, the firmware now shows as follows:

23:21:13:940 GW update firmware found: /usr/share/deCONZ/firmware/deCONZ_ConBeeII_0x26490700.bin.GCF
23:21:13:940 GW firmware version: 0x00000002
23:21:13:940 GW firmware version shall be updated to: 0x26490700

AT this point, I'm not sure if I managed to brick the device, but it no longer displays any of the lights (although groups still show in the photoscan app) but all the sensors show up (they don't work though)

@marthoc

This comment has been minimized.

Copy link
Owner

commented Aug 16, 2019

@manup - any ideas what’s going on here? Seems like an issue with GCFFlasher maybe and not the container specifically?

@xavi-dev

This comment has been minimized.

Copy link

commented Aug 22, 2019

I'm having a similar error with a raspbee:

pi@raspberrypi:~ $ 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
-------------------------------------------------------------------
 
             marthoc/deconz Firmware Flashing Script
 
                       Version: 0.5
 
-------------------------------------------------------------------
 
 
Listing attached devices...
 
GCFFlasher V3_05 (c) dresden elektronik ingenieurtechnik gmbh
Path             | Vendor | Product | Serial     | Type
-----------------+--------+---------+------------+-------
/dev/ttyAMA0     | 0x0000 | 0x0000  |            | RaspBee 
 
Enter the full device path, or press Enter now to exit.
 
Device Path : /dev/ttyAMA0
 
-------------------------------------------------------------------
 
Firmware available for flashing:
 
deCONZ_ConBeeII_0x26480700.bin.GCF
deCONZ_ConBeeII_0x26490700.bin.GCF
deCONZ_Rpi_0x261f0500.bin.GCF
deCONZ_Rpi_0x26320500.bin.GCF
deCONZ_Rpi_0x26330500.bin.GCF
 
Enter the firmware file name from above, including extension,
or press Enter now to exit.
 
File Name : deCONZ_Rpi_0x26330500.bin.GCF
 
-------------------------------------------------------------------
 
Device: /dev/ttyAMA0
 
Firmware File: deCONZ_Rpi_0x26330500.bin.GCF
 
Are the above device and firmware values correct?
Enter Y to proceed, any other entry to exit: Y
 
Flashing...
 
GCFFlasher V3_05 (c) dresden elektronik ingenieurtechnik gmbh
Reboot device /dev/ttyAMA0 (RaspBee)
deCONZ firmware version 26050500
action: reset device RaspBee
action: update firmware after 2 ms
could not sync with bootloader
 
Flashing Error! Please re-run this script...

Flashing from container console I'm getting this error:

root@raspberrypi:/# sudo GCFFlasher_internal -d /dev/ttyAMA0 -x 3 -f /usr/share/deCONZ/firmware/deCONZ_Rpi_0x26330500.bin.GCF
GCFFlasher V3_05 (c) dresden elektronik ingenieurtechnik gmbh
using firmware file: /usr/share/deCONZ/firmware/deCONZ_Rpi_0x26330500.bin.GCF
ls dev: /dev/ttyAMA0 (0x0000/0x0000) sn:
dev /dev/ttyAMA0
ls dev: /dev/ttyS0 (0x0000/0x0000) sn:
Reboot device /dev/ttyAMA0 (RaspBee)
serial port open device
deCONZ firmware version 26050500
set watchdog ttl status: 0x04
close serial port
uart reset failed, try RaspBee reset
action: reset device RaspBee
action: update firmware after 2 ms
serial port open device
could not sync with bootloader
close serial port
@xavi-dev

This comment has been minimized.

Copy link

commented Aug 23, 2019

Solved:

The problem is that the WiringPi version 2.50 which is shipped with Raspbian Buster is too old.
To fix the issue you need to manually install WiringPi 2.52 as described in
http://wiringpi.com/wiringpi-updated-to-2-52-for-the-raspberry-pi-4b/

cd /tmp
wget https://project-downloads.drogon.net/wiringpi-latest.deb
sudo dpkg -i wiringpi-latest.deb

dresden-elektronik/deconz-rest-plugin#1762 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.