Claim a Redbear Duo to Particle cloud

A few months ago I received my reward form the Kickstarter-campaign of the Redbear Duo and until today the board was waiting for the first try. Because I also own a Particle Core and a Photon as well as an Electron, I decided to claim the Redbear Duo to the Particle cloud too.
First I invoked the listening mode (long press the setup-button until the RGB-led slowly flashes blued) and identified the firmware-version and device-id.

screen /dev/tty.usbmodemXXXXX

When now pressing “v” the version of the firmeware is displayed and after pressing “i” the device-id, that I noticed for later usage. Because I already started the serial-session, I directly captured the WiFi-settings of my home-wlan via pressing “w”.
The next step is downloading the necessary firmeware-files from Redbear Duo – Github repository. For me, v0.2.4 was the latest version.
Now, when all the preparation was done, I backuped the actual firmeware as well as the whole DCT-settings.

dfu-util -d 2b04:d058 -a 0 -s 0x8004000 -U dct_backup.bin

I also backuped the keys separately (they are also contained in the command above)

dfu-util -d 2b04:d058 -a 1 -s 2082 -U server_public_key.der
dfu-util -d 2b04:d058 -a 1 -s 34 -U device_private_key_backup.der

Now it’s time to update:

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

And now don’t forget to restore the private key, else it’s not possible to connect to the particle cloud again, when the device was claimed before. My board stucked in DFU-mode every time, until I realized the private-key problem and restored it, from the backup.

dfu-util -d 2b04:d058 -a 1 -s 34 -D device_private_key.der

Then reset the board. It should go to listening mode again, because the WiFi-credentials were gone. So repeat the serial session described above to insert the WiFi-settings again.
Now the board should connect to the Particle cloud and breeze Cyan. Go to the Particle WebIDE to claim the device with the before noticed device-id.
To test the tinker app for IOS and Android, the corresponding sketch need to be flashed to the Duo. After checking, that the Duo is displayed in the device-list, choose the Tinker-app from the list of example-code, select the Duo for flashing (click the little star in front of the device-name in the list of devices), then click “Flash” in the left navigation. When flashing was successful, the board should restart and then breeze Cyan again. Now I could use the Particle IOS-app to switch the D7-LED on and off.
Now I only need to think about a real project …

Tags:, , ,

Add a Comment

Your email address will not be published. Required fields are marked *