< Back

Notice:

Before upgrade third-party firmware, please contact: [email protected]

Your firmware must be no greater than 512KB

The third-party firmware should be developed with esp-open-sdk, Arduino, ESP8266_NONOS_SDK, or ESP8266_RTOS_SDK (not IDF)

Software & Hardware

1.1 Software

Download upgrade tool from the following link:

Link:
https://pan.baidu.com/s/199MOKrXFZBLWd0Zi3YoCZA  
password:jz7g

Downloard DoHome_JRE_32.zip for Windows 32Download DoHome_JRE_64.zip for Windows 64

1.2 Hardware

A computer with Wi-Fi adaptor

2、Steps

2.1 Make sure that your current firmware is running on first slot

Connect your device’s WiFi (If your firmware is DoHome firmware, the WiFi is named as “DoHome_xxxx”). After WiFi connected, run the download tool and select the “Third-party upgrade” tab, shown as the following figure.

EV$L86[$]M1O~Z77MTQCEB5.png

Click “Slot check” button, then the text field below the button will show some info such as “Slot=1”, it means that the current firmware runs at slot 1 (There are two slots on ESP). 

)MS5YSIGZMXME{N}3@H$_YW.png

Fig. 2  check slot


To upgrade firmware to third-party firmware, the current firmware must be running on the first slot! In other word, when you press the button “Slot check” the info shown in the text field must be “Slot=1”.

If yes, go to 2.2 to do next step, otherwise, refer to subsection 3.5 to change slot.

2.2 Upgrade to a transitional firmware

A transitional firmware is utilized to upgrade to the third-party firmware. The transitional firmware is within the folder named “prepare”. There are two files named “u1.bin” and “u2.bin” respectively.

Firstly, make your device connect to a router, and then your computer connect the same router. Run the upgrade tool “DoHome_v21.exe”, and select the “DoHome upgrade” tab view. Input the transitional firmware’s path as the following figure. Secondly, input the target device IP (You can find the IP from the router console).

REL)FR61~4[P(65L`J_C5CV.png

Fig. 3 Upgrade view

其他区域不用填写。点击Start upgrading即可开始升级。 Leave  the other text field along, and then click “Start upgrading” button to start upgrading to transitional firmware.

2.3 Connect the device which upgrade to transitional firmware with router

If the target device is upgraded to the transitional firmware, the device will generate a WiFi named as “Upgrade-xxxxxxx”, when the device power up. Connect to the WiFi if you find it on your phone, as shown in the following figures.

NY%B1SV[VH36W06FD}[YWN7.png}D(NUBJ45GLOYIDEJ$X@F]6.png

Fig. 4 Connect to the WiFi generate by transitional firmware

When your phone is connected to the WiFi “Upgrade-xxxxxxx”, a login page will be  popup, as shown in Fig. 4. This is a portal to tell the device which router to connect. Select the router you want your device to connect and input the password, then click “Join” button. Finally, the device will connect to the router automatically.

2.4 Upgrade to third-party firmware

Make sure your computer is connect to the router you selected in the step 2.3. Run the upgrade tool on computer, go to “Third-party upgrade” tab view.

EV$L86[$]M1O~Z77MTQCEB5.png

Fig. 5 third-party firmware upgrade

Click “Scan device” button, the following text field will list the device (which is upgraded to the transitional firmware) info. The info includes device IP, which will be used in the next step.

E@EE4G$2P9E]{0$K)FG~W9Y.png3RW{DKBRM22OMTG4BN1TWH5.png

Fig. 6 Scan device

The “dev_id” list in the text field is the same as the WiFi name generated by the device that upgrade to transitional firmware. The IP address follow up with “dev_id” should be filled in the text field named “Device IP”. In the “Firmware path” text field, Input your third-party firmware path.

3`2VSFYEK83)@{MUE~P7%OG.png

Fig. 7 Third-party firmware upgrade

Finally, click “Start upgrade” button to start upgrading progress.

3、FAQ

3.1 Alert show up, such as“Current slot must be 1, when upgrade third-party firmware”

T8OE3LHP]O9LI[YF@MO7S4B.png

Fig. 8

It means that the firmware running on your device currently is not run on the first slot. Check your slot refer to 2.1

3.2 None IP is listed when click“Scan device” button

Your computer must connect to the router you setup in step 2.2

 

3.3 Create a third-party firmware

The third-party firmware you want to upgrade to must contain a bootloader. Plus, the firmware size must smaller than 512KB. Take the firmware developed based on ESP8266_NONOS_SDK as example to show you how to create a third-party firmware. At least two files are needed, which is the boot.bin and the user1.1024.new.2.bin. You can merge the two files into one bin via the “ESP8285 Download tool v3.6.4”. The combined bin file can be used as the third-party firmware.

PR])%UT@QQ(3[P`5_Y~XT`4.png

3.4 u1.bin and u2.bin path

Do not input the u1.bin path to the text field for u2.bin by mistake, or the upgrade will be failed, and your device will not be able to run again!

3.5 Change slot

To change slot, you need an extra firmware, the firmware is within the folder named “Dohome区域切换固件”. You can find the folder from the download link list in 1.1. There are two files named “u1.bin” and “u2.bin”, respectively.

60JFU55[ZR_9C_7@D{A~{B0.png

Fig. 10

Connect your device to your router and then run the upgrade tool on computer. Stay on the “DoHome Upgrade” tab view. Input the u1.bin and u2.bin (the extra firmware we mentioned previously) path, as shown in Fig. 10. To get device IP, you can click the “Scan device” button on the “Third-party upgrade” tab view, as shown in Fig. 11. Then input the IP it found. Notice that your computer must connect to the same router as the device.

715WQYNTI)B7[2CTDX54KBX.png

In the “DoHome upgrade” tab view, click “Start upgrading” button to start upgrading. When upgrade progress is finished, check slot as step 2.1. If “slot=1” is shown on the info text field, you can go to step 2.2 to do next.

If you use the extra firmware to change slot, the device will create a new WiFi named as “Trans-xxxxxx”. The name is different from the name “Upgrade-xxxxxx”, which create by the transitional firmware we discussed in 2.3. Although the WiFi name is different, the rest steps are the same.

Connect your phone to the WiFi “Trans-xxxxxx”, the routers scanned by device will be list as following figure, which is a popup view shown automatically after connect to the WiFi.

         

Fig. 12

Select your router and input the password and then click “Join” button

3.6 Cannot connect to the device’s WiFi

Reboot your device and then reconnect again.

3.7 Schematics for smart socket

Chip: ESP8285

Technical support: [email protected]

image.png