Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
tools:tasmota [2023/10/16 19:25]
darron [Resources]
tools:tasmota [2023/12/15 07:56] (current)
darron [SONOFF 4CH PRO R2]
Line 352: Line 352:
 ===SONOFF 4CH PRO R2=== ===SONOFF 4CH PRO R2===
  
-First attach a console to the ESP8285Connect a UART adapter in 3V mode to the Rx/Tx and GND pins on the board and power on with the DC input.+<wrap right> 
 +{{tools:sonof4ch.jpg?100}} {{tools:esp8285-pin-layout.jpg?100}} 
 +</wrap>
  
 The built-in firmware for this device died after 6 months of use. The console shows the chip rebooting with watchdog reset errors continuously. The built-in firmware for this device died after 6 months of use. The console shows the chip rebooting with watchdog reset errors continuously.
  
-==Write flash==+To upgrade attach a console to the ESP8285 by connecting a UART adapter in 3V mode to the Rx/Tx and GND pins on the board. Power up with the DC input.
  
-To enable flash mode power off and short IO0 on the pad. Power up with the DC input.+To enable flash erase/write, power off and short IO0 on the pad. Power up with the DC input. 
 + 
 +==Write flash==
  
-Programming may take a few attempts. With 100% success power cycle the board.+Writing was unreliable and needed lots of attempts (do not give up).
  
 <code> <code>
-esptool.py write_flash -fs detect -fm dout 0x0 tasmota.bin --no-compress+esptool.py write_flash tasmota.bin --no-compress
 esptool.py v4.6.2 esptool.py v4.6.2
 +Loaded custom configuration from /home/darron/Tasmota/ESP8266/13.1.0/esptool.cfg
 Found 1 serial ports Found 1 serial ports
 Serial port /dev/ttyUSB0 Serial port /dev/ttyUSB0
-Connecting.......+Connecting...
 Detecting chip type... Unsupported detection protocol, switching and trying again... Detecting chip type... Unsupported detection protocol, switching and trying again...
 Connecting... Connecting...
Line 376: Line 381:
 MAC: 84:0d:8e:48:e6:fd MAC: 84:0d:8e:48:e6:fd
 Stub is already running. No upload is necessary. Stub is already running. No upload is necessary.
-WARNING: Failed to communicate with the flash chip, read/write operations will fail. Try checking the chip connections or removing any other hardware connected to IOs. 
 Configuring flash size... Configuring flash size...
-Warning: Could not auto-detect Flash size (FlashID=0x0, SizeID=0x0), defaulting to 4MB 
 Flash will be erased from 0x00000000 to 0x0009efff... Flash will be erased from 0x00000000 to 0x0009efff...
-Flash params set to 0x0340 
 Wrote 655360 bytes at 0x00000000 in 59.9 seconds (87.5 kbit/s)... Wrote 655360 bytes at 0x00000000 in 59.9 seconds (87.5 kbit/s)...
 Hash of data verified. Hash of data verified.
Line 386: Line 388:
 Leaving... Leaving...
 Hard resetting via RTS pin... Hard resetting via RTS pin...
- 
 </code> </code>
  
 ==Boot== ==Boot==
 +
 +When writing succeeded, this was the boot message.
  
 <code> <code>
Line 408: Line 411:
  
 [[https://www.xmcwh.com/uploads/799/XM25QH32C_Ver2.0.pdf|XM25QH32C SPI flash data-sheet]]  [[https://www.xmcwh.com/uploads/799/XM25QH32C_Ver2.0.pdf|XM25QH32C SPI flash data-sheet]] 
 +
 +[[https://tasmota.github.io/docs/devices/Sonoff-4CH-Pro/|Tasmoto SONOFF 4CH Pro]]
  
 [[https://wiki.iteadstudio.com/images/f/fe/Sonoff_4CH_Pro_Schematic.pdf|SONOFF 4CH Pro schematic]] [[https://wiki.iteadstudio.com/images/f/fe/Sonoff_4CH_Pro_Schematic.pdf|SONOFF 4CH Pro schematic]]
 +
 +[[https://github.com/nickdeacon/PIR-Lighting-controller|SONOFF 4CH Pro alternative STM32 firmware]]
 +
 +[[https://datasheet.lcsc.com/szlcsc/SYN480R-FS24_C15561.pdf|SONOFF 4CH Pro RF receiver data-sheet]]
 +
 +{{tools:4ch_pro.pdf|SONOFF 4CH User manual}}
 +