Updated How to Flash the RF Bridge (markdown)

Theo Arends 2018-02-09 16:25:55 +01:00
parent a235c18895
commit 34c7c505a6
1 changed files with 8 additions and 12 deletions

@ -14,20 +14,16 @@ https://www.arduino.cc/en/Main/Software
3. Open the Arduino IDE sofware . Go to File > Preferences > Additional Board Manager and add this URL:
http://arduino.esp8266.com/versions/2.3.0/package_esp8266com_index.json
4. Go to Sketch > Include Library > Manage Libraries. Search for and install ArduinoJson and PubSubClient
4. Exit the IDE and copy all files from the Tasmota/lib folder to the folder > libraries
5. In the “portable” folder you created in step 2, go into that folder > libraries and copy "IRremoteESP8266" and f"PubSubClient" into your Tasmota\lib folder.
5. Back in Arduino IDE go to File > Open. Browse to the the folder where you extracted the TASMOTA firmware and open sonoff-sonoff.ino.
6. Now in your Tasmota\lib\PubSubClient\SRC folder, open PubSubClient.h with a text editor (Notepad) and change “MQTT_MAX_PACKET_SIZE” to “1000”. Save and exit.
7. Back in Arduino IDE go to File > Open. Browse to the the folder where you extracted the TASMOTA firmware and open sonoff-sonoff.ino.
8. Find the user_config.h tab at the top right of the Arduino IDE interface (on a drop down arrow) and within that file, find the sections where you can:
6. Find the user_config.h tab at the top right of the Arduino IDE interface (on a drop down arrow) and within that file, find the sections where you can:
Enter your Wifi name and password
Enter your MQTT broker IP address, port, username and password
9. On the Tools menu, ensure you set these settings:
7. On the Tools menu, ensure you set these settings (Theo: wrong parameter Flash should be 1M (no SPIFFS)):
![settings](https://i.imgur.com/sTOctw1.png)
> Board: Generic ESP8266 Module
@ -41,14 +37,14 @@ Note for Port:
This will not be selectable until you connect your USB Adapter.
Seect this AFTER you plugged in the bridge correctly while holding down the pairing button.
10. Ensure the switch on your RF Bridge is switched of the OFF position (change it back to ON position AFTER flashing your Bridge).
8. Ensure the switch on your RF Bridge is switched of the OFF position (change it back to ON position AFTER flashing your Bridge).
11. Connect up your USB serial adapter to the correct pins on the bridge. Hold DOWN the pairing button while connecting the USB serial adapter to your computer (the bridge should now go into the correct mode where you can flash it). (Pin out etc on the below image)
9. Connect up your USB serial adapter to the correct pins on the bridge. Hold DOWN the pairing button while connecting the USB serial adapter to your computer (the bridge should now go into the correct mode where you can flash it). (Pin out etc on the below image)
![pin](https://i.imgur.com/djhr2Jg.jpg)
12. In the Arduino IDE interface, you can now select the correct PORT on the Tools menu.
10. In the Arduino IDE interface, you can now select the correct PORT on the Tools menu.
13. At the top right of the Arduio IDE software, click on the right arrow (UPLOAD) to upload the firmware. This should take about 2-3 minutes as it compiles the firmware then uploads it.
11. At the top right of the Arduio IDE software, click on the right arrow (UPLOAD) to upload the firmware. This should take about 2-3 minutes as it compiles the firmware then uploads it.
When compete, disconnect the cables etc, switch the switch back to the OFF position and it should now be working as you expect.