mirror of https://github.com/arendst/Tasmota.git
Created How to Flash the RF Bridge (markdown)
parent
ba1b1beab8
commit
8cf46cfa92
|
@ -0,0 +1,55 @@
|
|||
|
||||
Someone asked me on here a more detailed explanation of how to do this, so I thought I would post (as best as I can recall) how to do it with a Windows PC.
|
||||
|
||||
TASMOTA Source Code zip file and extract it (I used 5.11.1b I think)
|
||||
https://github.com/arendst/Sonoff-Tasmota/releases
|
||||
|
||||
Arduino IDE (Im on 1.86)
|
||||
https://www.arduino.cc/en/Main/Software
|
||||
|
||||
1. Install/Extract the Arduino IDE software.
|
||||
|
||||
2. In the folder where you installed Arduino IDE to, make a new folder called portable
|
||||
|
||||
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
|
||||
|
||||
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.
|
||||
|
||||
6. Now in your Tasmota\lib\PubSubClient\SRC folder, open PubSubClient.h with a text editor (Notepad) and change “MQTT_MAX_PACKET_SIZE” to “512”. 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:
|
||||
|
||||
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:
|
||||
![settings](https://i.imgur.com/sTOctw1.png)
|
||||
|
||||
> Board: Generic ESP8266 Module
|
||||
> Flashmode: DOUT
|
||||
> Freq: 40 CPU: 80
|
||||
> Flash: 1M (64K SPIFFS)
|
||||
> Upload speed: 115200
|
||||
> Port: Com
|
||||
|
||||
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).
|
||||
|
||||
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)
|
||||
![pin](https://i.imgur.com/djhr2Jg.jpg)
|
||||
|
||||
12. 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.
|
||||
|
||||
When compete, disconnect the cables etc, switch the switch back to the OFF position and it should now be working as you expect.
|
||||
|
||||
Credits @erew123 #1841
|
Loading…
Reference in New Issue