One red blink while trying to connect to the cloud


#1

Hi,

I received my Duo and started playing with it. I upgraded it from 0.2.3 to 0.3.1. Now it blinks red one time while trying to connect to the cloud (see video). Where to go from here?
thanks!

com-crop (1)

Upgrade commands:

dfu-util -d 2b04:d058 -a 0 -s 0x8004000 -D fac-dct-r1.bin
dfu-util -d 2b04:d058 -a 1 -s 2082 -D server_public_key.der
dfu-util -d 2b04:d058 -a 1 -s 34 -D device_private_key.der
dfu-util -d 2b04:d058 -a 0 -s 0x8020000 -D duo-system-part1-v0.3.1.bin
dfu-util -d 2b04:d058 -a 0 -s 0x8040000 -D duo-system-part2-v0.3.1.bin
dfu-util -d 2b04:d058 -a 2 -s 0x140000 -D duo-fac-web-server-v0.3.1.bin
dfu-util -d 2b04:d058 -a 2 -s 0x180000 -D duo-wifi-r1.bin

@guohui may you have a clue on how to proceed? thanks


#2

Hi, maybe you can try re-flashing firmware 0.3.1 on top of what you have following the instructions here for firmware since v0.3.0:?

Example:

dfu-util -d 2b04:d058 -a 0 -s 0x8008000 -D fac-dct-r1.bin
dfu-util -d 2b04:d058 -a 1 -s 2082 -D server_public_key.der
dfu-util -d 2b04:d058 -a 1 -s 34 -D device_private_key.der
dfu-util -d 2b04:d058 -a 0 -s 0x8020000 -D duo-system-part1-vx.x.x.bin
dfu-util -d 2b04:d058 -a 0 -s 0x8040000 -D duo-system-part2-vx.x.x.bin
dfu-util -d 2b04:d058 -a 2 -s 0x140000 -D duo-fac-xxxx.bin
dfu-util -d 2b04:d058 -a 2 -s 0x180000 -D duo-wifi-r1.bin


#3

that fixed the issue, thanks man!


#4

I loaded the carloop app (ODB_BLINK) on my Duo which uses SYSTEM_MODE(MANUAL). In order to reconnect to the cloud I had to put the Duo into SAFE mode. When I did that I end up in the "connecting to cloud flashing cyan with the occasional single red blink - exactly like shown in the above video. My Duo came with the 0.3.1 firmware already installed so in my case I was NOT trying to re-flash it.

Do you have any suggestions on what may have happened and how I can recover my Duo?


#5

Interesting, I was going to try the Particle device doctor to see if I could restore the duo to a healthy state and I discovered that I cannot put it into DFU mode. Holding SETUP and pressing RESET causes the Duo to:

  1. Blink magenta
  2. Blink green
  3. Blink very rapid green
  4. Blink very rapid white
  5. A couple of slow white blinks
  6. Off for a second or so
  7. Back to blinking magenta

But No Yellow???


#6

This is the first time I heard that the Duo cannot enter the DFU mode. Without being capable of entering the DFU mode, you can’t even upgrade the system firmware. :cry:. In that case, you have to reflash the bootloader using the RBLink or any other programmers.

Best regards,
Guohui


#7

Ok, I have an RBLink module ordered and will give that a try. Where can I find instructions on using it to reflash the bootloader and where is the latest version of the code?


#8

Please follow the instructions here: https://github.com/redbear/Duo/blob/master/docs/firmware_deployment_guide.md#2-via-rblink-usb-port

It will update the bootloader and the latest system firmware for you. But make sure that you have the latest board package installed on Arduino.

Cheers!


#9

guohui,

The last sentence of you response has me confused “But make sure that you have the latest board package installed on Arduino.” – What Arduino? Please explain.


#10

The Arduino is an opensource software, which also provide hardware to enable makers to develop their applications in a easy way. See: https://www.arduino.cc

If you are not using Arduino, please follow the instructions here: [GENERAL] Recovery of the Duo from stuck state.

Alternatively, you can use Openocd to flash the firmware images:
openocd -f redbear_duo.cfg -c "init; reset halt; Unlock (); reset halt; program duo-bootloader-rc6.bin verify 0x8000000; program duo-system-part1-v0.3.3.bin verify 0x8020000; program duo-system-part2-v0.3.3.bin verify 0x8040000; program duo-user-part.bin verify reset exit 0x80c0000"
,where the redbear_duo.cfg can be found here: https://github.com/redbear/STM32-Arduino/tree/master/arduino/variants/RedBear_Duo/openocd_scripts, and the images can be found here: https://github.com/redbear/STM32-Arduino/tree/master/arduino/firmwares.

Cheers!


#11

Thanks for the topic. The answers helped me find the answer to my question. More details here.


#12

I reloaded the bootloader via RBLink and this fixed the problem I was having getting into DFU mode.

I then flashed all of the firmware using:
dfu-util -d 2b04:d058 -a 0 -s 0x8008000 -D fac-dct-r1.bin
dfu-util -d 2b04:d058 -a 1 -s 2082 -D server_public_key.der
dfu-util -d 2b04:d058 -a 1 -s 34 -D device_private_key.der
dfu-util -d 2b04:d058 -a 0 -s 0x8020000 -D duo-system-part1-v0.3.3.bin
dfu-util -d 2b04:d058 -a 0 -s 0x8040000 -D duo-system-part2-v0.3.3.bin
dfu-util -d 2b04:d058 -a 2 -s 0x140000 -D duo-fac-web-server-v0.3.1.bin
dfu-util -d 2b04:d058 -a 2 -s 0x180000 -D duo-wifi-r1.bin

I still get my original problem with the red flash as shown in the video. I removed the device from the particle cloud, but that didn’t alter anything. I’m guessing that my private key is corrupted and I’ll have to re-provision the Duo.

I picked up a second Duo (it has firmware 0.2.1) – I remember finding a link to instructions on how to use the Particle web set-up to configure my first Duo (I think it was a link to a Photon beta setup) but I haven’t been able to find it again - does anyone know which link I’m talking about?


#13

It’s probably that the device private key is destroyed. Please try provisioning your Duo again by following this guide: https://github.com/redbear/Duo/blob/master/docs/devices_provisioning_guide.md.

BTW, I’d recommend that you update the Wi-Fi firmware to r2, which can be found here: https://github.com/redbear/Duo/tree/master/firmware/wifi.

Cheers!


#14

I found where the link I was referring to was listed. It came from the Carloop forum at https://community.carloop.io/t/help-getting-connect-redbear-duo-carloop/349


#15

Success! Guohui, I followed your suggestions and after provisioning the Duo again the single red blink stopped and it was able to connect to Particle’s server.

Thank you for your assistance.