FLASH Wifi Relay
Moderators: grovkillen, Stuntteam, TD-er
-
- Normal user
- Posts: 66
- Joined: 16 Feb 2017, 09:23
FLASH Wifi Relay
Hi All,
ESP Easy is so amazing and easy that I want to make sure I can flash it on hardware before I buy that hardware.
I want to have relay which can switch on and of a 20 Volt LED light.
I am thinking about the Sonoff SV https://www.itead.cc/sonoff-sv.html, or this one: http://www.ebay.com/itm/ESP8266-5V-10A- ... Sw5cNYIKhJ.
Does anybody know if they can be flashed and how?
I like the idea of a relay and the wifi chip integrated into one module.
It would be even better if I can connect a temperature sensor to it as well.
thanks!
ESP Easy is so amazing and easy that I want to make sure I can flash it on hardware before I buy that hardware.
I want to have relay which can switch on and of a 20 Volt LED light.
I am thinking about the Sonoff SV https://www.itead.cc/sonoff-sv.html, or this one: http://www.ebay.com/itm/ESP8266-5V-10A- ... Sw5cNYIKhJ.
Does anybody know if they can be flashed and how?
I like the idea of a relay and the wifi chip integrated into one module.
It would be even better if I can connect a temperature sensor to it as well.
thanks!
Re: FLASH Wifi Relay
Both can be flashed, instructions are in the Wiki.
The module from ebay uses an esp-01 on which info is all over the web. It has only 2 GPIOs exposed and comes with flash sizes of 512kB to 1MB. The powersupply/relay part seems undocumented which may lead to some guesswork.
Sonoff SV has a nice documentation here including a schematic, seems to have 1MB flash and has 3 additional GPIOs exposed. A button for manual input and bootloader mode is on board. You'll need to solder some pin headers for flashing.
The sonoff is the way to go if you ever want to connect something else.
The module from ebay uses an esp-01 on which info is all over the web. It has only 2 GPIOs exposed and comes with flash sizes of 512kB to 1MB. The powersupply/relay part seems undocumented which may lead to some guesswork.
Sonoff SV has a nice documentation here including a schematic, seems to have 1MB flash and has 3 additional GPIOs exposed. A button for manual input and bootloader mode is on board. You'll need to solder some pin headers for flashing.
The sonoff is the way to go if you ever want to connect something else.
-
- Normal user
- Posts: 66
- Joined: 16 Feb 2017, 09:23
Re: FLASH Wifi Relay
Ah thanks!
So if I understand https://www.itead.cc/wiki/images/4/40/S ... V-VIEW.pdf well, I can connect GND, TX, RX and 3v3 to my usb to serial adapter to load the firmware onto it.
But how can I put it in flashing mode?
And also I see IO5, IO4 and IO14. They have above the Diagram the letters SVG, do they stand for Serial, Volt and Ground?
So if I understand https://www.itead.cc/wiki/images/4/40/S ... V-VIEW.pdf well, I can connect GND, TX, RX and 3v3 to my usb to serial adapter to load the firmware onto it.
But how can I put it in flashing mode?
And also I see IO5, IO4 and IO14. They have above the Diagram the letters SVG, do they stand for Serial, Volt and Ground?
Re: FLASH Wifi Relay
To enter flash mode hold the button on power up, this pulls gpio0 to ground. This seems to be too basic knowledge, the wiki doesn't even mention it.
I think S stands for signal, the pins are directly connected to the respective GPIOs. V is Vcc (3.3V) and G of course ground. It's all in the schematic pdf.

I think S stands for signal, the pins are directly connected to the respective GPIOs. V is Vcc (3.3V) and G of course ground. It's all in the schematic pdf.

-
- Normal user
- Posts: 66
- Joined: 16 Feb 2017, 09:23
Re: FLASH Wifi Relay
thank you very much!
Also thinking about the Sanoff SC combined with ESP Easy, just flashing the ESP module will that be enough?
But thats another topic
Also thinking about the Sanoff SC combined with ESP Easy, just flashing the ESP module will that be enough?
But thats another topic
Re: FLASH Wifi Relay
Re the SC have a look at this page. Not exactly espeasy but it's possible to let it talk MTTQ. 

Re: FLASH Wifi Relay
Hi So I got the sonoff sv but I am unable to flash it with espeasy... No response after Flash... I tried Tasmota and it works so my sonoff is OK.
I tried espeasy mega 20180302 1M in dev normal and test with successful flash but my sonoff never start after that...
Someone could help me please ?
I tried espeasy mega 20180302 1M in dev normal and test with successful flash but my sonoff never start after that...
Someone could help me please ?
Re: FLASH Wifi Relay
What version (ESP8266/8285) did you use?
And could you test with the 8285 version?
Also please test the build with DOUT marking.
And could you test with the 8285 version?
Also please test the build with DOUT marking.
Re: FLASH Wifi Relay
@TD-er Thank you for your reply.
So the version is ESP8266EX with memory XTX PN25F08 so 1M but I also test esp8265 just to try and no luck...
Can you tell me more about the build with DOUT marking ?
So the version is ESP8266EX with memory XTX PN25F08 so 1M but I also test esp8265 just to try and no luck...
Can you tell me more about the build with DOUT marking ?
Re: FLASH Wifi Relay
Flashchips can have 1 or more datalines.
Also a DOUT-only flash chip cannot communicate at higher speeds.
- DIO - SPI host uses the "Dual I/O Fast Read" command (BBh). Two SPI pins are used to write the flash address part of the command, and to read flash data out. Therefore these phases need half the clock cycles compared to standard SPI.
- DOUT - SPI host uses the "Dual Output Fast Read" command (3Bh). Two SPI pins are used to read flash data out. Slightly slower than DIO, because the address is written via the single MOSI data pin.
- QIO - SPI host uses the "Quad I/O Fast Read" command (EBh). Four SPI pins are used to write the flash address part of the command, and to read flash data out. Therefore these phases need a quarter the clock cycles compared to standard SPI.
- QOUT - SPI host uses the "Quad Output Fast Read" command (6Bh). Four SPI pins are used to read the flash data out. Slightly slower than QIO, because the address is written via the single MOSI data pin.
Also a DOUT-only flash chip cannot communicate at higher speeds.
Re: FLASH Wifi Relay
Thank you for this explanation.
For Tasmota it's only in DOUT so I thank this could fix the thing but with espeasy how can I do that ?
For Tasmota it's only in DOUT so I thank this could fix the thing but with espeasy how can I do that ?
Re: FLASH Wifi Relay
in the released binaries is one with dout in the name. (there should be one)
Re: FLASH Wifi Relay
Not sure to understand... For 1024 their is
ESP_Easy_mega-20180302_dev_ESP8266_1024.bin
ESP_Easy_mega-20180302_dev_ESP8266PUYA_1024.bin
ESP_Easy_mega-20180302_dev_ESP8266PUYA_1024_VCC.bin
ESP_Easy_mega-20180302_dev_ESP8285_1024.bin
ESP_Easy_mega-20180302_normal_ESP8266_1024.bin
ESP_Easy_mega-20180302_normal_ESP8285_1024.bin
ESP_Easy_mega-20180302_test_ESP8266_1024.bin
ESP_Easy_mega-20180302_test_ESP8285_1024.bin
So wich one ? because I can not see DOUT... Help please...
ESP_Easy_mega-20180302_dev_ESP8266_1024.bin
ESP_Easy_mega-20180302_dev_ESP8266PUYA_1024.bin
ESP_Easy_mega-20180302_dev_ESP8266PUYA_1024_VCC.bin
ESP_Easy_mega-20180302_dev_ESP8285_1024.bin
ESP_Easy_mega-20180302_normal_ESP8266_1024.bin
ESP_Easy_mega-20180302_normal_ESP8285_1024.bin
ESP_Easy_mega-20180302_test_ESP8266_1024.bin
ESP_Easy_mega-20180302_test_ESP8285_1024.bin
So wich one ? because I can not see DOUT... Help please...
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: FLASH Wifi Relay
You could try my Flasher and force DOUT checked.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you

ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you



Re: FLASH Wifi Relay
@grovkillen Thank you for your tool, I tried and I ahve an error :
Any help please...
Code: Select all
######2018-03-03######
#######0.00.021#######
######FLASH INFO######
BIN file: ESP_Easy_mega-20180302_normal_ESP8266_1024.bin
COM port: (COM3) USB Serial Port
Baud rate: 115200
! FORCED DOUT ENABLED !
######POST FLASH######
No post flash information entered...
######FLASH LOG######
[esptool.exe -vv -bm dout -cd nodemcu -cb 115200 -cp COM3 -ca 0x00000 -cf "P:\Domotique\NEW\BIN\ESP_Easy_mega-20180302_normal_ESP8266_1024.bin"]
[03/03/2018 15:26:20] esptool v0.4.12 - (c) 2014 Ch. Klippel <ck@atelier-klippel.de>
[03/03/2018 15:26:20] setting flash mode from qio to dout
[03/03/2018 15:26:20] setting board to nodemcu
[03/03/2018 15:26:20] setting baudrate from 115200 to 115200
[03/03/2018 15:26:20] setting port from to COM3
[03/03/2018 15:26:20] setting address from 0x00000000 to 0x00000000
[03/03/2018 15:26:20] espcomm_upload_file
[03/03/2018 15:26:20] espcomm_upload_mem
[03/03/2018 15:26:20] setting serial port timeouts to 1000 ms
[03/03/2018 15:26:20] opening bootloader
[03/03/2018 15:26:20] resetting board
[03/03/2018 15:26:20] trying to connect
[03/03/2018 15:26:20] flush start
[03/03/2018 15:26:20] setting serial port timeouts to 1 ms
[03/03/2018 15:26:20] setting serial port timeouts to 1000 ms
[03/03/2018 15:26:20] flush complete
[03/03/2018 15:26:20] espcomm_send_command: sending command header
[03/03/2018 15:26:20] espcomm_send_command: sending command payload
[03/03/2018 15:26:20] read 0, requested 1
[03/03/2018 15:26:20] trying to connect
[03/03/2018 15:26:20] flush start
[03/03/2018 15:26:20] setting serial port timeouts to 1 ms
[03/03/2018 15:26:20] setting serial port timeouts to 1000 ms
[03/03/2018 15:26:20] flush complete
[03/03/2018 15:26:20] espcomm_send_command: sending command header
[03/03/2018 15:26:20] espcomm_send_command: sending command payload
[03/03/2018 15:26:20] espcomm_send_command: receiving 2 bytes of data
[03/03/2018 15:26:20] espcomm_send_command: receiving 2 bytes of data
[03/03/2018 15:26:20] espcomm_send_command: receiving 2 bytes of data
[03/03/2018 15:26:20] espcomm_send_command: receiving 2 bytes of data
[03/03/2018 15:26:20] espcomm_send_command: receiving 2 bytes of data
[03/03/2018 15:26:20] espcomm_send_command: receiving 2 bytes of data
[03/03/2018 15:26:20] espcomm_send_command: receiving 2 bytes of data
[03/03/2018 15:26:20] espcomm_send_command: receiving 2 bytes of data
[03/03/2018 15:26:20] Uploading 608112 bytes from P:\Domotique\NEW\BIN\ESP_Easy_mega-20180302_normal_ESP8266_1024.bin to flash at 0x00000000
[03/03/2018 15:26:20] erasing flash
[03/03/2018 15:26:20] size: 094770 address: 000000
[03/03/2018 15:26:20] first_sector_index: 0
[03/03/2018 15:26:20] total_sector_count: 149
[03/03/2018 15:26:20] head_sector_count: 16
[03/03/2018 15:26:20] adjusted_sector_count: 133
[03/03/2018 15:26:20] erase_size: 085000
[03/03/2018 15:26:20] espcomm_send_command: sending command header
[03/03/2018 15:26:20] espcomm_send_command: sending command payload
[03/03/2018 15:26:20] setting serial port timeouts to 15000 ms
[03/03/2018 15:26:20] setting serial port timeouts to 1000 ms
[03/03/2018 15:26:20] espcomm_send_command: receiving 2 bytes of data
[03/03/2018 15:26:20] writing flash
[03/03/2018 15:26:29] ................................................................................ [ 13% ]
[03/03/2018 15:26:39] ........................................................................... read 0, requested 1
[03/03/2018 15:26:39] warning: espcomm_send_command: didn't receive command response
[03/03/2018 15:26:39] warning: espcomm_send_command(FLASH_DOWNLOAD_DATA) failed
[03/03/2018 15:26:39] read 0, requested 1
[03/03/2018 15:26:39] warning: espcomm_send_command: didn't receive command response
[03/03/2018 15:26:39] closing bootloader
[03/03/2018 15:26:39] flush start
[03/03/2018 15:26:39] setting serial port timeouts to 1 ms
[03/03/2018 15:26:39] setting serial port timeouts to 1000 ms
[03/03/2018 15:26:39] flush complete
[03/03/2018 15:26:39] error: espcomm_upload_mem failed
[2018-03-03 15:26:39] DONE! BUT WITH (1) ERRORS!
############################
[2018-03-03 15:26:39] JOB COMPLETED, over and out!
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: FLASH Wifi Relay
Tried more than once?
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you

ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you



Re: FLASH Wifi Relay
OK I tried few times and now no more errors on flash but my sonoff never boot, no led on, no wifi hotspot... I will try all *1024.bin files just in case...
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: FLASH Wifi Relay
Did you post flash with dhcp or just a plain flash?
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you

ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you



Re: FLASH Wifi Relay
Not sure to understand what you mean but if your question is to know if I fill in the "Post Flash Action" of your tool the answer is no.
First I just want my sonoff to boot to be sure everything is OK and I need its MAC adress to add it to my network.
First I just want my sonoff to boot to be sure everything is OK and I need its MAC adress to add it to my network.
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: FLASH Wifi Relay
Aha, sorry but I thought you did the programming with the tool since the AP might take some minute to get active in worst case.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you

ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you



Re: FLASH Wifi Relay
@Grovkillen: The firmware itself should also be compiled with DOUT.
Could you try one of these, I compiled this morning for someone else: https://www.dropbox.com/s/w71xizrdgv0jx ... r.rar?dl=0
It's branch v2.0 of this morning.
Could you try one of these, I compiled this morning for someone else: https://www.dropbox.com/s/w71xizrdgv0jx ... r.rar?dl=0
It's branch v2.0 of this morning.
Re: FLASH Wifi Relay
I did it !!! after the first try of this french tuto : http://www.compu-tek.fr/blog/1325-2/ and using the tools on this website with this firmware : ESP_Easy_mega-20180302_normal_ESP8266_1024.bin
So I don't know what was wrong before but now my garage door is connected with my sonoff sv powered by the garage door opener battery backup !!!
Thank you for your help
So I don't know what was wrong before but now my garage door is connected with my sonoff sv powered by the garage door opener battery backup !!!
Thank you for your help
Re: FLASH Wifi Relay
I may have missed it looking through the comments, but is the relay on this on the same GPIO port as the standard sonoff modules? GPIO 12? I see GPIO 14, 4 and 5 on the headers, but not sure what the relay is.
Who is online
Users browsing this forum: Bing [Bot] and 16 guests