{"id":38,"date":"2018-03-04T14:21:28","date_gmt":"2018-03-04T14:21:28","guid":{"rendered":"http:\/\/jeedom.sigalou-domotique.fr\/flasher-le-sonoff-4ch-pro-r2"},"modified":"2024-04-21T13:21:12","modified_gmt":"2024-04-21T11:21:12","slug":"flasher-le-sonoff-4ch-pro-r2","status":"publish","type":"post","link":"https:\/\/www.sigalou-domotique.fr\/en\/flasher-le-sonoff-4ch-pro-r2","title":{"rendered":"Flash the Sonoff 4CH Pro R2 (or 4CH Pro R3) with ESP Easy"},"content":{"rendered":"<p><span style=\"font-size: 12pt;\">I just received the <strong>4CH Pro R2<\/strong>, version R2 changes the implementation of the ESP8285 chip, the method for detecting the <strong>pin 15<\/strong> (to find <strong>GPIO0<\/strong>) changes slightly, this tutorial to save you time.<\/span><\/p>\n<blockquote><p><em><span style=\"text-decoration: underline;\">Note:<\/span> 21\/02\/2021 : I have since tested the 4CH Pro R3, I was going to make a tutorial page for its programming. It is ultimately simpler than the R2, Sonoff learned from his mistakes and put the GPIO0 back on the button (oufff).<\/em><\/p>\n<p><em>I did not make a tutorial page because I found a very clear and well done tutorial on <span style=\"text-decoration: underline;\"><a href=\"https:\/\/flobul-domotique.fr\/flasher-le-sonoff-4ch-pro-r3\/\" target=\"_blank\" rel=\"noopener\">the Fobul - Domotics page<\/a><\/span>. Congratulations to him, go to his page and take a look at his blog.<\/em><\/p>\n<p><em>For flashing, I used ESP_Easy_mega_20210114_normal_ESP8285_1M.bin<\/em><\/p><\/blockquote>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-27\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/4chpror2.jpg\" alt=\"\" width=\"500\" height=\"336\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/4chpror2.jpg 800w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/4chpror2-600x404.jpg 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/4chpror2-300x202.jpg 300w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/4chpror2-768x517.jpg 768w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/p>\n<p><!--more--><\/p>\n<h2>Material preparations of the Sonoff<\/h2>\n<h3>Rx\/Tx connectors the Sonoff board<\/h3>\n<ul>\n<li>It is necessary to locate the connectors Rx, Tx, GND as the card.<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-28\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/4chpror2-connecteurs.jpg\" alt=\"\" width=\"500\" height=\"334\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/4chpror2-connecteurs.jpg 500w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/4chpror2-connecteurs-300x200.jpg 300w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/p>\n<ul>\n<li>Use a soldering connector:<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-29\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/4chpror2-connecteurs4.jpg\" alt=\"\" width=\"300\" height=\"258\"><\/p>\n<ul>\n<li>&nbsp;A little bit of soldering iron after:<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-30\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/4chpror2-connecteurs4b.jpg\" alt=\"\" width=\"300\" height=\"198\"><\/p>\n<ul>\n<li>&nbsp;I decided to power the Sonoff with an external power supply during the flash, I had difficulty using the Vcc 3.3V spindle, so I did not use this spindle in the end.<\/li>\n<li>I use 3 wires, to connect Gnd, Rx and Tx, here is the cabling:<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-31\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/4chpror2-flash.jpg\" alt=\"\" width=\"509\" height=\"800\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/4chpror2-flash.jpg 509w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/4chpror2-flash-191x300.jpg 191w\" sizes=\"auto, (max-width: 509px) 100vw, 509px\" \/><\/p>\n<ul>\n<li>&nbsp;The FTDI232 can be connected to the computer, the latter will detect it, raise its COM port number thanks to the Control Panel\/Device Manager\/Ports (we need it to configure the flash software)<\/li>\n<\/ul>\n<h3>Connector Gnd-GPIO0<\/h3>\n<p>For the flashing phase of the Sonoff, it is necessary to put the box in programming mode, for this, it is necessary to connect GPIO0 (pin 15 of the ESP8285) to GND.<\/p>\n<ul>\n<li>To make it more practical, I welded a small connector on my own on the Gnd pin:<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-32\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/4chpror2-flash2.jpg\" alt=\"\" width=\"800\" height=\"450\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/4chpror2-flash2.jpg 800w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/4chpror2-flash2-600x338.jpg 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/4chpror2-flash2-300x169.jpg 300w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/4chpror2-flash2-768x432.jpg 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/p>\n<ul>\n<li>&nbsp;I made a small wire that clips onto the connector on one side and is a bit rigid on the other to touch GPIO0 at the time of the Sonoff\u2019s live msie to put it into programming mode:<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-33\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/4chpror2-flash1.jpg\" alt=\"\" width=\"800\" height=\"450\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/4chpror2-flash1.jpg 800w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/4chpror2-flash1-600x338.jpg 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/4chpror2-flash1-300x169.jpg 300w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/4chpror2-flash1-768x432.jpg 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/p>\n<ul>\n<li>&nbsp;This is where GPIO0 is located:<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-34\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/4chpror2-flash3.jpg\" alt=\"\" width=\"800\" height=\"582\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/4chpror2-flash3.jpg 800w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/4chpror2-flash3-600x437.jpg 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/4chpror2-flash3-300x218.jpg 300w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/4chpror2-flash3-768x559.jpg 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/p>\n<ul>\n<li>&nbsp;Here is the manipulation to do to put GPIO0 to GND<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-35\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/4chpror2-flash4.jpg\" alt=\"\" width=\"800\" height=\"440\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/4chpror2-flash4.jpg 800w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/4chpror2-flash4-600x330.jpg 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/4chpror2-flash4-300x165.jpg 300w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/4chpror2-flash4-768x422.jpg 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/p>\n<h3>Prepare files to Flash Sonoff with ESPEasy<\/h3>\n<p>Download page for the latest version of ESPEasy:<\/p>\n<p><a href=\"https:\/\/github.com\/letscontrolit\/ESPEasy\/releases\">https:\/\/github.com\/letscontrolit\/ESPEasy\/releases<\/a><\/p>\n<p>For this tutorial, I used this verison:<\/p>\n<p><a href=\"https:\/\/github.com\/letscontrolit\/ESPEasy\/releases\/download\/mega-20180304\/ESPEasy_mega-20180304.zip\">https:\/\/github.com\/letscontrolit\/ESPEasy\/releases\/download\/mega-20180304\/ESPEasy_mega-20180304.zip<\/a><\/p>\n<ul>\n<li>&nbsp;Save the ZIP file, unzip it in a folder and in that folder, launch <strong>FlashESP8266<\/strong> (Small 1 below), Select the port of the FTDI232 and the file Easyxxx_normal_ESP8285_1024.bin and launch the Flash.<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-36\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/4chpror2-flash7.jpg\" alt=\"\" width=\"694\" height=\"385\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/4chpror2-flash7.jpg 694w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/4chpror2-flash7-600x333.jpg 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/4chpror2-flash7-300x166.jpg 300w\" sizes=\"auto, (max-width: 694px) 100vw, 694px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-37\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/4chpror2-flash8.jpg\" alt=\"\" width=\"409\" height=\"215\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/4chpror2-flash8.jpg 409w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2018\/03\/4chpror2-flash8-300x158.jpg 300w\" sizes=\"auto, (max-width: 409px) 100vw, 409px\" \/><\/p>\n<h2>Launch of the Sonoff 4CH Pro R2 Flash<\/h2>\n<p>At this stage:<\/p>\n<ul>\n<li>The ESPEasy Flasher software is ready,<\/li>\n<li>The FTDI232 is connected to the computer,<\/li>\n<li>The small cable that will connect GPIO0 to GND is ready<\/li>\n<li>You have to prepare a continuous supply (between 5 and 24v), I use a 5V, it works very well.<\/li>\n<\/ul>\n<h3>Flash Launch<\/h3>\n<ul>\n<li>Power the Sonoff 4CH Pro while connecting GPIO0 to GNd with the small cable for 2s. (The box is in programming mode)<\/li>\n<li>No LED shall be switched on, if it is not the case, start again.<\/li>\n<li>Click on \"Flash\" on ESPEasy Flasher, wait for the Flash to finish.<\/li>\n<\/ul>\n<h2>Once the Sonoff is flashed, it must be connected to the WIFI network<\/h2>\n<p>For this, as the procedure is identical to all Sonoffs, you can look at this article: <a href=\"http:\/\/jeedom.sigalou-domotique.fr\/flash-sonoff-reseau-wifi-flashage\">After Flashing, connect a Sonoff to the WIFI network and link to Jeedom<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>I have just received the 4CH Pro R2, the R2 version has just changed the layout of the ESP8285 chip, so the method to detect pin 15 (to find GPIO0) changes slightly, this tutorial to save you time. Note 21\/02\/2021: I have since tested the 4CH Pro R3, I was going to do a tutorial page [...]<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[14],"tags":[61],"class_list":["post-38","post","type-post","status-publish","format-standard","hentry","category-domotique","tag-esp"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/posts\/38","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/comments?post=38"}],"version-history":[{"count":0,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/posts\/38\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/media?parent=38"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/categories?post=38"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/tags?post=38"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}