ESPeasy not that easy?

Moderators: grovkillen, Stuntteam, TD-er

Message
Author
CoolRemote
Normal user
Posts: 42
Joined: 17 Jan 2017, 15:27
Location: Groningen (Nederland)

ESPeasy not that easy?

#1 Post by CoolRemote » 18 Jan 2017, 20:43

I have bought 4 Sonoff modules, the version with WiFi only. Today I decided to use one of them and flash them with ESPeasy.
The result is that the module does not create a new WiFi network, also the LED does not turn on.

The flash went fine, no problems there, but once the flash procedure is done it is like it stops working.
There is no new network coming up in the list. It does not work. Does someone know how to solve this?

See flash results. in attached file.

Image
Last edited by CoolRemote on 18 Jan 2017, 23:14, edited 1 time in total.

User avatar
ManS-H
Normal user
Posts: 234
Joined: 27 Dec 2015, 11:26
Location: the Netherlands

Re: ESPeasy not that easy?

#2 Post by ManS-H » 18 Jan 2017, 20:47

CoolRemote wrote:I have bought 4 Sonoff modules, the version with WiFi only. Today I decided to use one of them and flash them with ESPeasy.
The result is that the module does not create a new WiFi network, also the LED does not turn on.

The flash went fine, no problems there, but once the flash procedure is done it is like it stops working.
There is no new network coming up in the list. It does not work. Does someone know how to solve this?

See flash results. in attached file.
What version of firmware did you used?
I started with r120 and upgraded to R145. No problem at all, this is my uptime of the module, Uptime: 83295 minutes

For the led you must make a role, this in my role:
on Sonoff-on do
gpio,12,1 // Relay on
gpio,13,0 // Green Led on
endon

on Sonoff-off do
gpio,12,0 // Relay off
gpio,13,1 // Green Led off
endon

CoolRemote
Normal user
Posts: 42
Joined: 17 Jan 2017, 15:27
Location: Groningen (Nederland)

Re: ESPeasy not that easy?

#3 Post by CoolRemote » 18 Jan 2017, 20:52

I used the version R120. Strange enough it does not start it's own WiFi network like "ESP_0"
I just wanted to try to upgrade it to the R145 version. On that I get the following error: stat ESPEasy_R120_1024.bin failed

User avatar
ManS-H
Normal user
Posts: 234
Joined: 27 Dec 2015, 11:26
Location: the Netherlands

Re: ESPeasy not that easy?

#4 Post by ManS-H » 18 Jan 2017, 21:39

CoolRemote wrote:I used the version R120. Strange enough it does not start it's own WiFi network like "ESP_0"
I just wanted to try to upgrade it to the R145 version. On that I get the following error: stat ESPEasy_R120_1024.bin failed
Did you use for flashing the 1024 file? I made my first mistake with flash first the 512 version and the to 1024 version. I cleared the sonoff with the clear.ino file and then I flashed the 1024.bin file.

CoolRemote
Normal user
Posts: 42
Joined: 17 Jan 2017, 15:27
Location: Groningen (Nederland)

Re: ESPeasy not that easy?

#5 Post by CoolRemote » 18 Jan 2017, 22:21

I am not sure, there are the 512, 1024 and the 4096 in the same folder.
Where can I find the files to clear the Sonoff?

I have been following the exactly the instructions in this video: https://www.youtube.com/watch?v=8CuD6YBdACs


>> I have tried a second Sonoff module. Have done the flash, and the result is the same, it does not create a WiFi network and also the LED does not work. This module has been tested before and was working. I have used the R120 version and choose the 1024 file for the flash size.

Does this mean I have two defective Sonoff modules after this?

nick-head
Normal user
Posts: 41
Joined: 15 Nov 2016, 11:09
Location: North East UK

Re: ESPeasy not that easy?

#6 Post by nick-head » 18 Jan 2017, 23:24

I have 4 Sonoff 10A Switches, all programmed with 120 I think, not sure now, but
they all work, all gave a wifi AP.

The only time I never got that was due to having the ip already programmed into it
before I reflashed.

I had to do an IP search to find it via my phone

Not much info but hey, it's my contribution. :)
ESP32, Arduino's,Raspberry Pi's, ESP8266's, Nextion's, Sonoff's, LightWaveRF's, RFXCom 433, and a headache
And a HackRF One, as a present to myself.

CoolRemote
Normal user
Posts: 42
Joined: 17 Jan 2017, 15:27
Location: Groningen (Nederland)

Re: ESPeasy not that easy?

#7 Post by CoolRemote » 18 Jan 2017, 23:34

Thank you very much Nick-head, Each single bit of help or information is welcome. So I guess the Sonoff's are not defective but just hard to find online?

data
Normal user
Posts: 93
Joined: 10 Dec 2016, 11:26

Re: ESPeasy not that easy?

#8 Post by data » 19 Jan 2017, 09:56

Have you installed the Arduino IDE?
If not, do so. Then, download the source, compile and install.

See the tutorial at: http://www.letscontrolit.com/wiki/index ... are_Upload
Don't forget to set the correct flash size (1024)

CoolRemote
Normal user
Posts: 42
Joined: 17 Jan 2017, 15:27
Location: Groningen (Nederland)

Re: ESPeasy not that easy?

#9 Post by CoolRemote » 19 Jan 2017, 17:21

Thank you very much for the help. I have been trying to flash the Sonoff with the Arduino UNO, without succes.
Also I have been trying again by following the video mentioned and also that failed.

Arduino makes clear that compiling goes fine without any problem. I didn't know the correct amount of the SPIFFS so I have tried all these options in the 1M range, but no matter which option I tried, the result was the same. There is a problem with uploading the sketch.

Report (Arduino, 1M 512K SPIFFS) (Detailed report available)

512
Arduino: 1.6.12 (Windows 8.1), Board:"Generic ESP8266 Module, 80 MHz, 40MHz, DIO, 115200, 1M (512K SPIFFS), ck, Disabled, None"

De schets gebruikt 407.105 bytes (81%) programma-opslagruimte. Maximum is 499.696 bytes.
Globale variabelen gebruiken 48.588 bytes (59%) van het dynamisch geheugen. Resteren 33.332 bytes voor lokale variabelen. Maximum is 81.920 bytes.
warning: espcomm_sync failed
error: espcomm_open failed
error: espcomm_upload_mem failed
error: espcomm_upload_mem failed

User avatar
ManS-H
Normal user
Posts: 234
Joined: 27 Dec 2015, 11:26
Location: the Netherlands

Re: ESPeasy not that easy?

#10 Post by ManS-H » 19 Jan 2017, 18:16

CoolRemote wrote:Thank you very much for the help. I have been trying to flash the Sonoff with the Arduino UNO, without succes.
Also I have been trying again by following the video mentioned and also that failed.

Arduino makes clear that compiling goes fine without any problem. I didn't know the correct amount of the SPIFFS so I have tried all these options in the 1M range, but no matter which option I tried, the result was the same. There is a problem with uploading the sketch.

Report (Arduino, 1M 512K SPIFFS) (Detailed report available)

512
Arduino: 1.6.12 (Windows 8.1), Board:"Generic ESP8266 Module, 80 MHz, 40MHz, DIO, 115200, 1M (512K SPIFFS), ck, Disabled, None"

De schets gebruikt 407.105 bytes (81%) programma-opslagruimte. Maximum is 499.696 bytes.
Globale variabelen gebruiken 48.588 bytes (59%) van het dynamisch geheugen. Resteren 33.332 bytes voor lokale variabelen. Maximum is 81.920 bytes.
warning: espcomm_sync failed
error: espcomm_open failed
error: espcomm_upload_mem failed
error: espcomm_upload_mem failed
Disconnect power
connect your FTDI USB/Serial interface which is set to 3.3 volt.
then while the power is still disconnected push the black button on the sonoff and while keeping it pressed connect the FTDI to the USB port so the Sonoff gets powered.
This shoul force the ESP/Sonoff into flashmode.
Now you can program it with the Arduino IDE or a flash program.


advisable settings in the arduino IDE:
Board: generic ESP8266 module
Flash Mode: QIO
Flash Frequency: 40MHz
Upload using: Serial
CPU frequency: 80MHz
Flash Size: 1M (64k SPIFFS)
Reset method: ck
Upload speed: 115200

CoolRemote
Normal user
Posts: 42
Joined: 17 Jan 2017, 15:27
Location: Groningen (Nederland)

Re: ESPeasy not that easy?

#11 Post by CoolRemote » 19 Jan 2017, 20:12

After a day trying and trying I am unable to find the solution. I keep getting error messages.

warning: espcomm_sync failed
error: espcomm_open failed
error: espcomm_upload_mem failed

data
Normal user
Posts: 93
Joined: 10 Dec 2016, 11:26

Re: ESPeasy not that easy?

#12 Post by data » 20 Jan 2017, 10:17

Is the serial port in use by another application?

vojtishek
Normal user
Posts: 70
Joined: 12 Jan 2017, 08:00

Re: ESPeasy not that easy?

#13 Post by vojtishek » 20 Jan 2017, 11:37

Hi, I have a same problem, get the error with sync, so probably sonoff not in flash mode. I was successful to flash espeasy on wemosd1 via usb so probably com port working.
I don't know if the soldered pins are ok or If I damaged something around, but original firmware still working, so I guess that chip is ok.

Is there any way how to get info from esp8266 on sonoff to ensure ftdi working properly on read mode?

I've used Arduino IDE as well as esptool flash.

Pictures of soldering and connections to ftdi here

https://goo.gl/photos/77bGHPgdWWQk5DdW9

Any help much appreciated

User avatar
ManS-H
Normal user
Posts: 234
Joined: 27 Dec 2015, 11:26
Location: the Netherlands

Re: ESPeasy not that easy?

#14 Post by ManS-H » 20 Jan 2017, 11:47

CoolRemote wrote:After a day trying and trying I am unable to find the solution. I keep getting error messages.

warning: espcomm_sync failed
error: espcomm_open failed
error: espcomm_upload_mem failed
If you follow the video, the guy is using putty. Do the same again.
Connect the Sonoff and use Putty.
1 - command:
Settings
Now Sonoff shows his state.
2 - command:
WifiSSID <give here your ssid>

Wifikey <give here your WPA key>

3 - command:
Save

4 - command:
Settings

And then show us what you see.

CoolRemote
Normal user
Posts: 42
Joined: 17 Jan 2017, 15:27
Location: Groningen (Nederland)

Re: ESPeasy not that easy?

#15 Post by CoolRemote » 20 Jan 2017, 12:01

Maybe it is Data. Thank you for the suggestion. A few details I noticed have been marked.

A few people convinced me that the Sonoff's are not defective because of these issues.

Below a part of the code. (The network name has been replaced for "Network-SSID). Even if COM10 is selected in this case, it says that it is setting COM1 to COM10.

By the looks of it uploading where it goes wrong. (Arduino does the compiling without Error).

It does not make any difference if TX and RX are inverted, the result is the same which is strange too.
(Same result with the Arduino and the USB to Serial adapter)

There is some information that if the following messages appear that the Sonoff is not correct in the flash mode.
warning: espcomm_sync failed
error: espcomm_open failed
error: espcomm_upload_mem failed

Also some write that it could be an issue of that the USB port can not deliver enough current.

-------------------

De schets gebruikt 248.947 bytes (25%) programma-opslagruimte. Maximum is 958.448 bytes.
Globale variabelen gebruiken 35.864 bytes (43%) van het dynamisch geheugen. Resteren 46.056 bytes voor lokale variabelen. Maximum is 81.920 bytes.
C:\Users\K\AppData\Local\Arduino15\packages\esp8266\tools\esptool\0.4.9/esptool.exe -vv -cd ck -cb 115200 -cp COM10 -ca 0x00000 -cf C:\Users\K\AppData\Local\Temp\arduino_build_599610/"Network-SSID".ino.bin
esptool v0.4.9 - (c) 2014 Ch. Klippel <ck@atelier-klippel.de>
setting board to ck
setting baudrate from 115200 to 115200
setting port from COM1 to COM10
setting address from 0x00000000 to 0x00000000
espcomm_upload_file
espcomm_upload_mem
setting serial port timeouts to 1000 ms
opening bootloader
resetting board
trying to connect
flush start
setting serial port timeouts to 1 ms
setting serial port timeouts to 1000 ms
flush complete
espcomm_send_command: sending command header
espcomm_send_command: sending command payload
read 0, requested 1
trying to connect
flush start
setting serial port timeouts to 1 ms
setting serial port timeouts to 1000 ms
flush complete
espcomm_send_command: sending command header
espcomm_send_command: sending command payload
read 0, requested 1
trying to connect
flush start
setting serial port timeouts to 1 ms
setting serial port timeouts to 1000 ms
flush complete
espcomm_send_command: sending command header
espcomm_send_command: sending command payload
read 0, requested 1
resetting board
trying to connect
flush start
setting serial port timeouts to 1 ms
setting serial port timeouts to 1000 ms
flush complete
espcomm_send_command: sending command header
espcomm_send_command: sending command payload
read 0, requested 1
trying to connect
flush start
setting serial port timeouts to 1 ms
setting serial port timeouts to 1000 ms
flush complete
espcomm_send_command: sending command header
espcomm_send_command: sending command payload
read 0, requested 1
trying to connect
flush start
setting serial port timeouts to 1 ms
setting serial port timeouts to 1000 ms
flush complete
espcomm_send_command: sending command header
espcomm_send_command: sending command payload
read 0, requested 1
resetting board
trying to connect
flush start
setting serial port timeouts to 1 ms
setting serial port timeouts to 1000 ms
Er is een fout opgetreden bij het uploaden van de schets
flush complete
espcomm_send_command: sending command header
espcomm_send_command: sending command payload
read 0, requested 1
trying to connect
flush start
setting serial port timeouts to 1 ms
setting serial port timeouts to 1000 ms
flush complete
espcomm_send_command: sending command header
espcomm_send_command: sending command payload
read 0, requested 1
trying to connect
flush start
setting serial port timeouts to 1 ms
setting serial port timeouts to 1000 ms
flush complete
espcomm_send_command: sending command header
espcomm_send_command: sending command payload
read 0, requested 1
warning: espcomm_sync failed
error: espcomm_open failed
error: espcomm_upload_mem failed

@ Mans-H, Putty does not allow me to do that. But I can give it another try.

CoolRemote
Normal user
Posts: 42
Joined: 17 Jan 2017, 15:27
Location: Groningen (Nederland)

Re: ESPeasy not that easy?

#16 Post by CoolRemote » 20 Jan 2017, 12:10

@ vojtishek, It looks like you could have used a tiny bit more solder on those contacts in order to avoid connection problems. Make sure that it flows out around the contacts really well. Apart from that it looks fine. :)

vojtishek
Normal user
Posts: 70
Joined: 12 Jan 2017, 08:00

Re: ESPeasy not that easy?

#17 Post by vojtishek » 20 Jan 2017, 12:32

@CoolRemote, thanks I will try more solder, I was just afraid firstly as my soldering skills are not so good :) .

Just wondering if the output from USB TTL is enough as they stated 120mA.
https://ae01.alicdn.com/kf/HTB1_5zDHpXX ... XFXXXo.jpg

CoolRemote
Normal user
Posts: 42
Joined: 17 Jan 2017, 15:27
Location: Groningen (Nederland)

Re: ESPeasy not that easy?

#18 Post by CoolRemote » 20 Jan 2017, 12:48

Maybe your soldering skills are better than my software skills. But that is why we can help each other.
120mA is not a lot, but maybe enough?

I found also this link (Dutch) how to make a backup from the original firmware. When I do this again I might do this step first:
http://domoticx.com/esp8266-wifi-firmware-backup-maken/

vojtishek
Normal user
Posts: 70
Joined: 12 Jan 2017, 08:00

Re: ESPeasy not that easy?

#19 Post by vojtishek » 20 Jan 2017, 12:55

That's look really promisely, I was in feeling that will completely loose old software on chip.
Still afraid about soldering, so will see :D

Appreciate this forum, learned a lot from collaboration.

Hope I will be able to perform my masterplan with domoticz, nice dashboard with all esp8266 devices :)

CoolRemote
Normal user
Posts: 42
Joined: 17 Jan 2017, 15:27
Location: Groningen (Nederland)

Re: ESPeasy not that easy?

#20 Post by CoolRemote » 20 Jan 2017, 13:20

I lost my software already, for me that information came too late. :(

Besides that, I also would love to set up a good working Domoticz.
I have set up Domoticz on a test pc and have been playing around with it to see how it works.
So far that is working fine. Now the Sonoff modules to complete it.

Something must be wrong when it comes to uploading and the serial connection. Hope to find the solution.

There is a nice small mother board I would like to use for Domoticz once it is working fine.
The Banana Pi Pro Image

The Banana Pi looks like a nice solution for this project.

vojtishek
Normal user
Posts: 70
Joined: 12 Jan 2017, 08:00

Re: ESPeasy not that easy?

#21 Post by vojtishek » 20 Jan 2017, 13:48

Eh, If I will be successful then share with you ;).
Domoticz working great for me in combination with WemosD1 esp8266 flashed on espeasy. Already tried temperature, luminosity sensors.

Banana PI looks interesting, I'm thingking about Raspberry like a server for domoticz.
Are there any advantages compared to Raspberry?

CoolRemote
Normal user
Posts: 42
Joined: 17 Jan 2017, 15:27
Location: Groningen (Nederland)

Re: ESPeasy not that easy?

#22 Post by CoolRemote » 20 Jan 2017, 18:45

The Banana Pi has a Gigabit LAN connector. Also it has a SATA connector. From what I have seen the RaspBerry is starting up a few seconds faster. :-)

NietGiftig
Normal user
Posts: 103
Joined: 16 Sep 2015, 20:32

Re: ESPeasy not that easy?

#23 Post by NietGiftig » 20 Jan 2017, 20:50

CoolRemote wrote:The Banana Pi has a Gigabit LAN connector. Also it has a SATA connector.
That are nice things to have!

But the raspberry community and so the support is much larger.
And not all is well on the Banana platform
http://linuxgizmos.com/banana-pi-projec ... cs-emerge/
That was some time ago, do not know what the status is these days.

CoolRemote
Normal user
Posts: 42
Joined: 17 Jan 2017, 15:27
Location: Groningen (Nederland)

Re: ESPeasy not that easy?

#24 Post by CoolRemote » 20 Jan 2017, 22:26

Those boards are interesting indeed. I guess if it is used for projects like Domoticz that they work fine, and they safe a lot of space and energy. Maybe add an extra Sonoff to turn the Banana Pi on and off :lol:

I wonder if this power supply, being sold as a LED power supply, and with build in EMI filter, can be used as power supply for the ESP8266 (Sonoff) modules? https://nl.aliexpress.com/item/LED-swit ... Title=true

Besides this back to the topic subject.

I have included a screenshot of the results I get when using Putty to talk to the Sonoff.
It does not allow me to enter commands.

Image

vojtishek
Normal user
Posts: 70
Joined: 12 Jan 2017, 08:00

Re: ESPeasy not that easy?

#25 Post by vojtishek » 21 Jan 2017, 09:53

Hey, i made some investigation regarding power consumption of esp8266.
Basically in transmitting mode eps8266 uses max 350mA at 3V3. For programming should be enough 120mA, but I´m about to try more mA.

So the power you´ve sent is more than needed, If it´s 3.3.V 10W , 10W/3.3V=3.3A.

I need to test putty when more free time. Hope one daz will be succesful :)

User avatar
ManS-H
Normal user
Posts: 234
Joined: 27 Dec 2015, 11:26
Location: the Netherlands

Re: ESPeasy not that easy?

#26 Post by ManS-H » 21 Jan 2017, 10:24

CoolRemote wrote:Those boards are interesting indeed. I guess if it is used for projects like Domoticz that they work fine, and they safe a lot of space and energy. Maybe add an extra Sonoff to turn the Banana Pi on and off :lol:

I wonder if this power supply, being sold as a LED power supply, and with build in EMI filter, can be used as power supply for the ESP8266 (Sonoff) modules? https://nl.aliexpress.com/item/LED-swit ... Title=true

Besides this back to the topic subject.

I have included a screenshot of the results I get when using Putty to talk to the Sonoff.
It does not allow me to enter commands.

Image
Sonoff is alive and working :)

Try this for send commands: https://esp8266.ru/esplorer/

CoolRemote
Normal user
Posts: 42
Joined: 17 Jan 2017, 15:27
Location: Groningen (Nederland)

Re: ESPeasy not that easy?

#27 Post by CoolRemote » 21 Jan 2017, 11:57

Thank you all for your input. This is great! :D

Possible I discovered something else what might lead to the solution.
This might lead to a good laugh for some who have experience with this, but it is new for me and we all need to learn this and that takes time.

I added NO credentials at all to the sketch that has been uploaded to the Sonoff. Like no SSID, no Password, and no other details.
Is that a condition to have it working properly the first time and if yes, where can I enter those details before I upload the sketch, and how and where (which foldfer) to safe this? Can this be the reason why my Sonoff modules are "defective" in my opinion? lol :D :lol:

And what else do I need to enter before it goes online the first time?

nick-head
Normal user
Posts: 41
Joined: 15 Nov 2016, 11:09
Location: North East UK

Re: ESPeasy not that easy?

#28 Post by nick-head » 21 Jan 2017, 12:15

Coolremote, just a quick question.

Why would you need a power supply to power the Sonoff Modules. ?

They are self powered when connected to the mains, I am bemused.

Glad you got them working though.

People on here know their stuff, I am still learning.

Regards

Nick
ESP32, Arduino's,Raspberry Pi's, ESP8266's, Nextion's, Sonoff's, LightWaveRF's, RFXCom 433, and a headache
And a HackRF One, as a present to myself.

CoolRemote
Normal user
Posts: 42
Joined: 17 Jan 2017, 15:27
Location: Groningen (Nederland)

Re: ESPeasy not that easy?

#29 Post by CoolRemote » 21 Jan 2017, 12:36

@ Nick-head, I came with this idea incase I want to do other ESP8266 projects in the future once I know how this works, besides the Sonoff's. Also you see some mentioning that there are issues with not enough current going to the ESP8266.

The Sonoff's might be up here, but they are no where to find on the WiFi network. Maybe because I added NO credentials? (No IP number, No SSID, No Password, Nothing) :lol:
I am glad that many here know their stuff, that way they can help others, and after all is it not that all of us are learning every day again? :D

nick-head
Normal user
Posts: 41
Joined: 15 Nov 2016, 11:09
Location: North East UK

Re: ESPeasy not that easy?

#30 Post by nick-head » 21 Jan 2017, 12:52

Ah right,

when you program your Sonoff, just leave it in place.
Using the IDE, open the Com port on the top right.

Then manually add settings to the Sonoff using the command input routines
ESP32, Arduino's,Raspberry Pi's, ESP8266's, Nextion's, Sonoff's, LightWaveRF's, RFXCom 433, and a headache
And a HackRF One, as a present to myself.

nick-head
Normal user
Posts: 41
Joined: 15 Nov 2016, 11:09
Location: North East UK

Re: ESPeasy not that easy?

#31 Post by nick-head » 21 Jan 2017, 12:54

Setup newline/CR/LF at the bottom

Commands I use:



Type "settings" in the send bar press send and it will give you info
ESP32, Arduino's,Raspberry Pi's, ESP8266's, Nextion's, Sonoff's, LightWaveRF's, RFXCom 433, and a headache
And a HackRF One, as a present to myself.

nick-head
Normal user
Posts: 41
Joined: 15 Nov 2016, 11:09
Location: North East UK

Re: ESPeasy not that easy?

#32 Post by nick-head » 21 Jan 2017, 12:55

ESP32, Arduino's,Raspberry Pi's, ESP8266's, Nextion's, Sonoff's, LightWaveRF's, RFXCom 433, and a headache
And a HackRF One, as a present to myself.

nick-head
Normal user
Posts: 41
Joined: 15 Nov 2016, 11:09
Location: North East UK

Re: ESPeasy not that easy?

#33 Post by nick-head » 21 Jan 2017, 13:06

You could probably use PUTTY but I don't use it so cannot tell you how to do it in that.
ESP32, Arduino's,Raspberry Pi's, ESP8266's, Nextion's, Sonoff's, LightWaveRF's, RFXCom 433, and a headache
And a HackRF One, as a present to myself.

CoolRemote
Normal user
Posts: 42
Joined: 17 Jan 2017, 15:27
Location: Groningen (Nederland)

Re: ESPeasy not that easy?

#34 Post by CoolRemote » 21 Jan 2017, 16:35

I opened Arduino. > ESPeasy. > I made sure that the COM port was selected, in this case COM3. > I have editted the SSID and the Password. > Next I clicked Save in Arduino. > Started Upload. > Connected the Sonoff while holding the button. > Released the button. > Clicked Upload. > Compiling was filled with Errors (No idea why). > Uploading was done till 100% but the text went "red" while uploading. > The Sonoff does not show up in the WiFi list.

It does upload this way only with the USB to Serial adapter. If I do exactly the same steps with Arduino UNO board I am getting errors again.

warning: espcomm_sync failed
error: espcomm_open failed
error: espcomm_upload_mem failed

It does upload which confirms for me too now that the Sonoff is not defective.

Next step is to find out what went wrong.

nick-head
Normal user
Posts: 41
Joined: 15 Nov 2016, 11:09
Location: North East UK

Re: ESPeasy not that easy?

#35 Post by nick-head » 21 Jan 2017, 17:42

Are you using a separate 3.3v psu, USB - Serial adaptors only supply a small current.

You said you had a working Sonoff, just power that up as you would if you were
programming it, then try the Com Port to set your wifi settings.

Try uploading a different revision i.e 78, as I had a few compile errors and had to iron them out.
ESP32, Arduino's,Raspberry Pi's, ESP8266's, Nextion's, Sonoff's, LightWaveRF's, RFXCom 433, and a headache
And a HackRF One, as a present to myself.

CoolRemote
Normal user
Posts: 42
Joined: 17 Jan 2017, 15:27
Location: Groningen (Nederland)

Re: ESPeasy not that easy?

#36 Post by CoolRemote » 21 Jan 2017, 17:46

At the moment I am only using the CH340 USB adapter or the Arduino, without extra power supply. This is one of the reasons too that I mentioned the extra power supply. However I don't have that but could order it. :)

I might try another version too and will post updates here :)

The first update for now is a Nespresso, after that I give it another try :D

CoolRemote
Normal user
Posts: 42
Joined: 17 Jan 2017, 15:27
Location: Groningen (Nederland)

Re: ESPeasy not that easy?

#37 Post by CoolRemote » 21 Jan 2017, 18:19

Gave it another try.

Used version R147. (Where can I download the version 78 you suggested?)
No succes with uploading. Gives also problems with compiling.

Can you please tell me if I have done one or more steps wrong in the steps followed below? That would be helpful for me in order to learn from it and maybe it helps some others too who start with this. It is a complete new project for me. The Arduino and the Sonoff's.

I opened Arduino. > ESPeasy. > I made sure that the COM port was selected, in this case COM3. > I have editted the SSID and the Password. > Next I clicked Save in Arduino. > Started Upload. > Connected the Sonoff while holding the button. > Released the button. > Clicked Upload. > Compiling was filled with Errors (No idea why). > Uploading was done till 100% but the text went "red" while uploading. > The Sonoff does not show up in the WiFi list.

The working Sonoff I have is with the original software and is linked to Ewelink.

nick-head
Normal user
Posts: 41
Joined: 15 Nov 2016, 11:09
Location: North East UK

Re: ESPeasy not that easy?

#38 Post by nick-head » 21 Jan 2017, 20:08

Right. Back to basics.

The Sonoff is not programming at all. If it gave you the three errors then nothing went in.

It will not part program. Its all or nothing.

In the Arduino IDE did you install the ESP8266 addon?
It is a library that you down load. At least I think it is. Has been a long time since I had to do it.

Have a look at that first so we can get a 100% compile before uploading.
ESP32, Arduino's,Raspberry Pi's, ESP8266's, Nextion's, Sonoff's, LightWaveRF's, RFXCom 433, and a headache
And a HackRF One, as a present to myself.

nick-head
Normal user
Posts: 41
Joined: 15 Nov 2016, 11:09
Location: North East UK

Re: ESPeasy not that easy?

#39 Post by nick-head » 21 Jan 2017, 20:10

ESP R.147 may not go into a Sonoff. May do i will try when I get back. I dont remember where V78 came from. Maybe github.
ESP32, Arduino's,Raspberry Pi's, ESP8266's, Nextion's, Sonoff's, LightWaveRF's, RFXCom 433, and a headache
And a HackRF One, as a present to myself.

nick-head
Normal user
Posts: 41
Joined: 15 Nov 2016, 11:09
Location: North East UK

Re: ESPeasy not that easy?

#40 Post by nick-head » 21 Jan 2017, 20:13

I think I downloaded the older files from sourceforge.net. Really just to have them.
ESP32, Arduino's,Raspberry Pi's, ESP8266's, Nextion's, Sonoff's, LightWaveRF's, RFXCom 433, and a headache
And a HackRF One, as a present to myself.

CoolRemote
Normal user
Posts: 42
Joined: 17 Jan 2017, 15:27
Location: Groningen (Nederland)

Re: ESPeasy not that easy?

#41 Post by CoolRemote » 21 Jan 2017, 20:39

Thank you Nick-head.

I have been following these instructions below, see link, to install the ESP8266 Add on. Including setting up the library the way they advise there.
I am still wondering if the current might be an issue. Do you think that LED power supply can be used for this type of projects?
I also have lab power supply, might give that a try and put it on 3,3V.

http://randomnerdtutorials.com/how-to-i ... duino-ide/

Arduino and programming is new for me, I would love to learn it, to give up is the easy way. :D

nick-head
Normal user
Posts: 41
Joined: 15 Nov 2016, 11:09
Location: North East UK

Re: ESPeasy not that easy?

#42 Post by nick-head » 21 Jan 2017, 22:38

Had a look at that PSU, maybe it would work but it is a bit elaborate to
get a 3.3v suppply when all that is needed is a 3.3v regulator and maybe
a few capacitors to drop the 5v down.

The only thing about that PSU I would be concerned about is is may have current
regulation, hence specifying that is is an LED PSU and not a standard PSU.
I maybe wrong, but I err on the side of caution most of the time.

If you have a Lab supply then I would try that, or, use the 3.3 rail on the Arduino,
I have used this method many times when I need a quick 3.3v as I have an Arduino
at hand all the time in front of me.

The breadboard plug in PSU's are good, 2.5mm Plug 3.3v/5V outputs, and £1 GBP each.

The ESPs are quite power hungry, I have tried direct to USB-TTL adapters and they don't like it.

Even to the point of upgrading the 3.3v regulator to a 1A version has been in my mind but I
never got round to doing it.

You will get a running system, don't know when, but it will happen :)
ESP32, Arduino's,Raspberry Pi's, ESP8266's, Nextion's, Sonoff's, LightWaveRF's, RFXCom 433, and a headache
And a HackRF One, as a present to myself.

nick-head
Normal user
Posts: 41
Joined: 15 Nov 2016, 11:09
Location: North East UK

Re: ESPeasy not that easy?

#43 Post by nick-head » 21 Jan 2017, 23:15

I have just reprogrammed a Sonoff using :

A 3.3v external breadboard supply
USB-TTL CH340 Adapter
Arduino IDE with ESPEasy R120
Settings for IDE are as below.
Kept Com Port Closed (top right of IDE) until 100% flash
Opened Com Window, watched as the flash Memory is erased and initiated.
The baud rate will have to be found by trial and error mine was 115200, could be others,
when flash is erased, remove power and reapply. A reset did not reboot the Sonoff.

ESP32, Arduino's,Raspberry Pi's, ESP8266's, Nextion's, Sonoff's, LightWaveRF's, RFXCom 433, and a headache
And a HackRF One, as a present to myself.

nick-head
Normal user
Posts: 41
Joined: 15 Nov 2016, 11:09
Location: North East UK

Re: ESPeasy not that easy?

#44 Post by nick-head » 21 Jan 2017, 23:22

Board: Generic ESP8266 Module
Flash Mode DIO
Flash Frequency 40Mhz
CPU Frequency 80 MHz
Flash Size 1M (64k Spiffs)
Debug Port Disabled
Debug Level None
Reset Method ck
Upload Speed 115200 (Yours may Differ)
Port Com 3 (Yours May Differ)

RX - TX
TX - RX

Sonoff Pinout

Reset Button at the top
+3.3v
Rxd
Txd
Gnd
GPIO 14 (not used here)
Un-populated header at the bottom
ESP32, Arduino's,Raspberry Pi's, ESP8266's, Nextion's, Sonoff's, LightWaveRF's, RFXCom 433, and a headache
And a HackRF One, as a present to myself.

nick-head
Normal user
Posts: 41
Joined: 15 Nov 2016, 11:09
Location: North East UK

Re: ESPeasy not that easy?

#45 Post by nick-head » 21 Jan 2017, 23:29

http://www.ebay.co.uk/itm/1Pcs-New-3-3V ... SwEK9Troaf

This is the type of module I am using, but even the Arduino would suffice
ESP32, Arduino's,Raspberry Pi's, ESP8266's, Nextion's, Sonoff's, LightWaveRF's, RFXCom 433, and a headache
And a HackRF One, as a present to myself.

CoolRemote
Normal user
Posts: 42
Joined: 17 Jan 2017, 15:27
Location: Groningen (Nederland)

Re: ESPeasy not that easy?

#46 Post by CoolRemote » 21 Jan 2017, 23:37

Insteresting information to move on with. I hope to give it a go again soon. I guess tomorrow and might use the lab power supply.
Will put updates here.

Enjoy your weekend and a Guinness :-)

nick-head
Normal user
Posts: 41
Joined: 15 Nov 2016, 11:09
Location: North East UK

Re: ESPeasy not that easy?

#47 Post by nick-head » 21 Jan 2017, 23:44

Yep, will do,

Just tried V147 and it does go on a 1MB Sonoff, I dont fancy removing the flash out of
one of these and putting it to 4MB.

I did it on an ESP-01, that was tricky enough.

I was using the experimental "MEGA" revision, I think that requires more flas mem.

OK, hope you get it done, I am having a ball here it's like a production line.

Regards

Nick
ESP32, Arduino's,Raspberry Pi's, ESP8266's, Nextion's, Sonoff's, LightWaveRF's, RFXCom 433, and a headache
And a HackRF One, as a present to myself.

CoolRemote
Normal user
Posts: 42
Joined: 17 Jan 2017, 15:27
Location: Groningen (Nederland)

Re: ESPeasy not that easy?

#48 Post by CoolRemote » 22 Jan 2017, 21:55

While reading through your posts I think we come to the same conclusion that the lack of enough power (current) might be one of the reasons that flashing is not going the way it should go. But ofcourse there can still be other reasons too.

I saw the link to the power supply, they go cheap indeed, however it seems they can cause damage too. Please see this video https://blog.brianmoses.net/2015/07/fig ... p8266.html If you scroll down on the page you will see a video about a simmilar "power supply" and take note of the meter readings. This is a normal effect when a power supply is being turned on because it has a peek and after that it is going to the adjusted value. The bigger power supplies don't have that since they have a soft start circuit build in to avoid this.

I didn't get this; I am having a ball here it's like a production line.

I didn't try yet with the lab power supply I have.

nick-head
Normal user
Posts: 41
Joined: 15 Nov 2016, 11:09
Location: North East UK

Re: ESPeasy not that easy?

#49 Post by nick-head » 22 Jan 2017, 22:11

Yer, Having a ball, = enjoying what I am doing to the limit

Like a production line = making lots of things at once, doing loads of programming , connecting building

I just enjoy messing about

Try some AA batteries if you don't want to use a PSU, 2 fully charged ones should suffice for a hour or so
ESP32, Arduino's,Raspberry Pi's, ESP8266's, Nextion's, Sonoff's, LightWaveRF's, RFXCom 433, and a headache
And a HackRF One, as a present to myself.

nick-head
Normal user
Posts: 41
Joined: 15 Nov 2016, 11:09
Location: North East UK

Re: ESPeasy not that easy?

#50 Post by nick-head » 22 Jan 2017, 22:16

And, that power supply is not the one I have.

Mine is a linear converter not digital.

It has 2 regulators on it, one 5v one 3.3v AMS 1Amp type, never had a problem with these.

The one you showed me is totally different
ESP32, Arduino's,Raspberry Pi's, ESP8266's, Nextion's, Sonoff's, LightWaveRF's, RFXCom 433, and a headache
And a HackRF One, as a present to myself.

Post Reply

Who is online

Users browsing this forum: No registered users and 14 guests