Sonoff Basic - AP not apearing on first boot with pre-built BIN

Moderators: grovkillen, Stuntteam, TD-er

Message
Author
VanadiumJade
New user
Posts: 1
Joined: 30 Jul 2017, 06:34

Sonoff Basic - AP not apearing on first boot with pre-built BIN

#1 Post by VanadiumJade » 30 Jul 2017, 06:44

Hi,

I have setup 2 Sonoff basic and 2 Sonoff wall plugs and 3 Sonoff POW all with Espeasy.
I have got the hang of it... I have order 15 more Sonoff basics. I seem to have an issue with the new batch.

I have been using R120 and flash program to write FW.
I do the same steps I have done with all the other devices.
- Solder pins
- Plug in to laptop with button held down
- flasher com6,1024,120
- Plug into power source and AP apears ... configure and good to go.

last step doesn't work... AP doesnt show.

Is there something I am missing? because it worked for 7 previous devices... but this lot doesnt seem to work.
I will try a few more... but I dont want to brick 15 of them.


Thanks in advance.

User avatar
toffel969
Normal user
Posts: 469
Joined: 03 Jan 2017, 10:58
Location: Germany

Re: Sonoff Basic - AP not apearing on first boot with pre-built BIN

#2 Post by toffel969 » 31 Jul 2017, 15:41

Connect via serial and post output here
Domoticz on Raspi 2 -- 14 ESP units (hacked Sonoff,NodeMCUs, Wemos, self-built units) running with RC140- Mega 2.0.0 dev8

seikan
New user
Posts: 4
Joined: 08 Jun 2017, 02:23

Re: Sonoff Basic - AP not apearing on first boot with pre-built BIN

#3 Post by seikan » 08 Aug 2017, 15:01

I got exactly same issue with a new batch of Sonoff I just bought. No out in serial as well. :(

LisaM
Normal user
Posts: 513
Joined: 11 Apr 2017, 18:29

Re: Sonoff Basic - AP not apearing on first boot with pre-built BIN

#4 Post by LisaM » 08 Aug 2017, 17:24

What are the specs (mem/soc) of the current sonoff basic batch?
And when using the Arduino IDE to compile & upload?
Output of the upload?

seikan
New user
Posts: 4
Joined: 08 Jun 2017, 02:23

Re: Sonoff Basic - AP not apearing on first boot with pre-built BIN

#5 Post by seikan » 08 Aug 2017, 17:33

It seems like the new Sonoff Basic are shipped with new chip.
Flashing using the Flash tool was done without error, but the AP will never get discovered.

I have to use the Andruino IDE to compile the latest firmware and flash it with DOUT mode to finally get it working.

shanekuz
New user
Posts: 5
Joined: 11 Aug 2017, 23:50

Re: Sonoff Basic - AP not apearing on first boot with pre-built BIN

#6 Post by shanekuz » 11 Aug 2017, 23:57

Hi is there any fix for this yet? I have two SONOFF units and they worked fine until i flashed them with the same settings as above and now they dont seem to do anything.

If i boot them with the button pressed they still go into upload mode as if i dont press the button the upload tool errors so i know they are not dead. When they boot after the firmware update there is no led activity on the unit and it does not appear as a wifi AP.

Any help would be great.

LisaM
Normal user
Posts: 513
Joined: 11 Apr 2017, 18:29

Re: Sonoff Basic - AP not apearing on first boot with pre-built BIN

#7 Post by LisaM » 12 Aug 2017, 11:12

shanekuz wrote: 11 Aug 2017, 23:57 Hi is there any fix for this yet? I have two SONOFF units and they worked fine until i flashed them with the same settings as above and now they dont seem to do anything.

If i boot them with the button pressed they still go into upload mode as if i dont press the button the upload tool errors so i know they are not dead. When they boot after the firmware update there is no led activity on the unit and it does not appear as a wifi AP.

Any help would be great.
Fix for what? You're telling exactly... nothing.

supergrobi
New user
Posts: 2
Joined: 12 Aug 2017, 22:50

Re: Sonoff Basic - AP not apearing on first boot with pre-built BIN

#8 Post by supergrobi » 12 Aug 2017, 23:18

Hello Forum

i have the same problem.

i flashing 3 Sonoff Wifi Basic with 2.0 dev11 Bin File and after the Sonoff ESP doing nothing.
what i do:
- flashing with ESPTool ESPEasy_v2.0.0-dev11_normal_1024.bin --> Flash OK, but after Restart no AP is open
- flashing with ESPTool ESPEasy_v2.0.0-dev9_normal_1024.bin --> Flash OK, but after Restart no AP is open
- flashing with ESPTool ESPEasy_v2.0.0-dev9_normal_4096.bin --> Flash OK, but after Restart no AP is open
- flashing with ESP Flash Download Tool V2.3 ESPEasy_v2.0.0-dev11_normal_1024.bin --> Flash OK, but after Restart no AP is open
- erase mem (http://www.pratikpanda.com/completely-f ... sh-memory/) and Flash ESPEasy_v2.0.0-dev9_normal_1024.bin --> all OK, but no AP
also try the test and dev files with same nothing...

i used an CH340 Serial Adapter for programming and a Laboratory power supply for the 3.3V. The ESP does not consume any power. Maybe 1-2 mA. If i pressed the button needs 35 mA.

last week i flashed 2 Sonoff Basic with the same dev11, same Adapter without any problems. They working perfectly.
but now i ordered 5 new Sonoff. 3 of them are with this problems. 2 I have not flashed yet.

the serial Output is:
----------------------------------------------------------
ets Jan 8 2013,rst cause:1, boot mode:(3,6)

load 0x4010f000, len 1384, room 16
tail 8
chksum 0xef
csum 0xef
csum err
ets_main.c
----------------------------------------------------------
please can anybody help me ?

sorry for my bad english.

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Sonoff Basic - AP not apearing on first boot with pre-built BIN

#9 Post by grovkillen » 13 Aug 2017, 00:50

Just a reminder, the basic is a 1MB device (as standard, it's possible to resolder it with a 4MB chip) and thus you need to use the "1024" bin file.

Regarding the problem it seems that the latest batch is using a different setup and need to be flashed differently than the official compiled bin. How this is done I have not a step by step guide but you need to compile yourself as of now. We need to document this on the wiki though.
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 :idea: :idea: :idea:

shanekuz
New user
Posts: 5
Joined: 11 Aug 2017, 23:50

Re: Sonoff Basic - AP not apearing on first boot with pre-built BIN

#10 Post by shanekuz » 13 Aug 2017, 06:19

LisaM wrote: 12 Aug 2017, 11:12
shanekuz wrote: 11 Aug 2017, 23:57 Hi is there any fix for this yet? I have two SONOFF units and they worked fine until i flashed them with the same settings as above and now they dont seem to do anything.

If i boot them with the button pressed they still go into upload mode as if i dont press the button the upload tool errors so i know they are not dead. When they boot after the firmware update there is no led activity on the unit and it does not appear as a wifi AP.

Any help would be great.
Fix for what? You're telling exactly... nothing.

"When they boot after the firmware update there is no led activity on the unit and it does not appear as a wifi AP." others seem to follow.

supergrobi
New user
Posts: 2
Joined: 12 Aug 2017, 22:50

Re: Sonoff Basic - AP not apearing on first boot with pre-built BIN

#11 Post by supergrobi » 13 Aug 2017, 11:02

i read somewhere in the INet should used the DOUT mode for programming.

i do this with the ESP Flash Download Tool V2.3 and now one Sonoff is working !!!!

later i will check the other sonoff's

Edit: other modules now also working after flshing in DOUT mode. it's crazy the radio Button SPI Mode jumps back to QIO Mode after start programming.
Last edited by supergrobi on 13 Aug 2017, 16:42, edited 1 time in total.

AndrewJ
Normal user
Posts: 229
Joined: 14 Feb 2017, 12:38

Re: Sonoff Basic - AP not apearing on first boot with pre-built BIN

#12 Post by AndrewJ » 13 Aug 2017, 11:23

It would be good if someone would add this info to the Wiki. I'd do it myself, but I don't believe I have the access to it?
Andrew

LisaM
Normal user
Posts: 513
Joined: 11 Apr 2017, 18:29

Re: Sonoff Basic - AP not apearing on first boot with pre-built BIN

#13 Post by LisaM » 13 Aug 2017, 16:41

shanekuz wrote: 13 Aug 2017, 06:19
LisaM wrote: 12 Aug 2017, 11:12
shanekuz wrote: 11 Aug 2017, 23:57 Hi is there any fix for this yet? I have two SONOFF units and they worked fine until i flashed them with the same settings as above and now they dont seem to do anything.

If i boot them with the button pressed they still go into upload mode as if i dont press the button the upload tool errors so i know they are not dead. When they boot after the firmware update there is no led activity on the unit and it does not appear as a wifi AP.

Any help would be great.
Fix for what? You're telling exactly... nothing.

"When they boot after the firmware update there is no led activity on the unit and it does not appear as a wifi AP." others seem to follow.
Serial output?
Flash method?
Unfortunately, i'm not telepatic. You need to tell us as much details as possible. For you it's clear, but your environment is unclear to us...

shanekuz
New user
Posts: 5
Joined: 11 Aug 2017, 23:50

Re: Sonoff Basic - AP not apearing on first boot with pre-built BIN

#14 Post by shanekuz » 14 Aug 2017, 06:17

I have tried both with the Arduino IDE and ESPtool.exe im pushing the 1024.bin image using a USB - TTL board using the 3.3V pin. If i dont boot the SONOFF with the button pressed then both applications fail to upload so the unit seems to be able to still be programmed.

If i boot the unit with the button pressed i cant telnet to it to run TTL commands which was a test i found so i cant run AT commands serial to the unit so it may be dead im not sure.

Fleshi
New user
Posts: 2
Joined: 14 Aug 2017, 21:50

Re: Sonoff Basic - AP not apearing on first boot with pre-built BIN

#15 Post by Fleshi » 14 Aug 2017, 21:55

seikan wrote: 08 Aug 2017, 17:33 It seems like the new Sonoff Basic are shipped with new chip.
Flashing using the Flash tool was done without error, but the AP will never get discovered.

I have to use the Andruino IDE to compile the latest firmware and flash it with DOUT mode to finally get it working.
Which command did you use in Andruino IDE? And which FTDI chip did you use?

Because I have the same problem :( .

User avatar
alphons
New user
Posts: 1
Joined: 14 Aug 2017, 22:21

Re: Sonoff Basic - AP not apearing on first boot with pre-built BIN

#16 Post by alphons » 15 Aug 2017, 00:53

Same problems using the flashtool from letscontrolit.
Got this working on my devices (china, last week) :
USB-UART
USB-UART
usb-uart.jpg (27.91 KiB) Viewed 54849 times
SONOFF-CASING
SONOFF-CASING
sonoff-casing.jpg (24.09 KiB) Viewed 54849 times
SONOFF-PCB
SONOFF-PCB
sonoff-pcb.jpg (49.66 KiB) Viewed 54849 times
By using the other tool from:
http://espressif.com/en/support/download/other-tools

Download: Flash Download Tools V3.4.9.2 (ESP8266 & ESP32)
http://espressif.com/sites/default/file ... .9.2_0.zip

Download latest ESPEasy 2.0 (dev 11) and unzip from
https://github.com/letscontrolit/ESPEasy/releases
I used: ESPEasy_v2.0.0-dev11.zip
https://github.com/letscontrolit/ESPEas ... -dev11.zip

Unzip the "Flash Download Tools" and run ESPFlashDownloadTool_v3.4.9.2.exe

Choose ESP8266 DownloadTool:
ESP8266 DownloadTool
ESP8266 DownloadTool
tool.png (6.8 KiB) Viewed 54845 times
Select: ESPEasy_v2.0.0-dev11_normal_1024.bin in the tool (pressing ... button)
Type adres after @ 0x00000
Checkbox before the pathname checked.

Settings, CrystalFreq: 26M
SPI SPEED: 26.7 MHz
SPI MODE: DOUT
FLASH SIZE: 8MBit

Select your COM port (in my case COM3)
BAUD: 115200
FLASHING
FLASHING
flashing.png (27.45 KiB) Viewed 54849 times
Hit button Start.
CONSOLE
CONSOLE
console.png (12.08 KiB) Viewed 54849 times
After a while, the proces is finished.

Unplug and Replug the USB UART, de devices reboots (Picture shows Putty output)
BOOTING
BOOTING
booting.png (14.13 KiB) Viewed 54849 times
Wifi AP SSID: ESP_EASY_0 appears.

Cheers.

vincen
Normal user
Posts: 92
Joined: 26 Jun 2017, 07:15

Re: Sonoff Basic - AP not apearing on first boot with pre-built BIN

#17 Post by vincen » 15 Aug 2017, 09:30

Same problem here with brand new Sonoff 4CH ! I can flash it without problem but Wifi sugnal never shows up :( I tried also in DIO mode for flash but not much more success !

USB-TTL adapter: CP2102

If you have any ideas what to test, I'm ready for it :)

Thanks

Vincèn

Here is result of flash process:

Code: Select all

vincen@Fixe-Ubuntu:~/Bureau$ esptool.py --port /dev/ttyUSB0 write_flash 0x00000 ESPEasy_v2.0.0-dev11_normal_1024.bin 
esptool.py v2.0
Connecting....
Detecting chip type... ESP8266
Chip is ESP8266
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Auto-detected Flash size: 1MB
Compressed 558896 bytes to 368923...
Wrote 558896 bytes (368923 compressed) at 0x00000000 in 32.6 seconds (effective 137.2 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting...
vincen@Fixe-Ubuntu:~/Bureau$

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: Sonoff Basic - AP not apearing on first boot with pre-built BIN

#18 Post by Shardan » 15 Aug 2017, 13:24

Hello vincen,

did you consider that the 4ch Sonoff does not use a ESP-8266? It is an ESP8285, a slightly different processor.

ESPEasy runs on the 4CH sonoff, but you have to compile a version for the other processor.



Regards
Shardan
Regards
Shardan

vincen
Normal user
Posts: 92
Joined: 26 Jun 2017, 07:15

Re: Sonoff Basic - AP not apearing on first boot with pre-built BIN

#19 Post by vincen » 15 Aug 2017, 13:33

Shardan wrote: 15 Aug 2017, 13:24did you consider that the 4ch Sonoff does not use a ESP-8266? It is an ESP8285, a slightly different processor.
ESPEasy runs on the 4CH sonoff, but you have to compile a version for the other processor.
Thanks for the notice but I have read that with build of version 2 now the firmware works with both no ??

LisaM
Normal user
Posts: 513
Joined: 11 Apr 2017, 18:29

Re: Sonoff Basic - AP not apearing on first boot with pre-built BIN

#20 Post by LisaM » 15 Aug 2017, 13:56

vincen wrote: 15 Aug 2017, 13:33
Shardan wrote: 15 Aug 2017, 13:24did you consider that the 4ch Sonoff does not use a ESP-8266? It is an ESP8285, a slightly different processor.
ESPEasy runs on the 4CH sonoff, but you have to compile a version for the other processor.
Thanks for the notice but I have read that with build of version 2 now the firmware works with both no ??
Yes, but you cannot use the pre-compiled ESP8266 version...
You need to compile it yourself with Arduino IDE using the ESP8285 board.

vincen
Normal user
Posts: 92
Joined: 26 Jun 2017, 07:15

Re: Sonoff Basic - AP not apearing on first boot with pre-built BIN

#21 Post by vincen » 15 Aug 2017, 14:13

LisaM wrote: 15 Aug 2017, 13:56
vincen wrote: 15 Aug 2017, 13:33
Shardan wrote: 15 Aug 2017, 13:24did you consider that the 4ch Sonoff does not use a ESP-8266? It is an ESP8285, a slightly different processor.
ESPEasy runs on the 4CH sonoff, but you have to compile a version for the other processor.
Thanks for the notice but I have read that with build of version 2 now the firmware works with both no ??
Yes, but you cannot use the pre-compiled ESP8266 version...
You need to compile it yourself with Arduino IDE using the ESP8285 board.
Completely lost here as I thought it was included by default in 2.0 version so I don't see the point to recompile it to get support for it ! In all matters if it needs to be recompiled I have to give up (never succeeded to follow all steps to setup environnment for that :( Or perhaps someone has the file avalaible for test ?

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Sonoff Basic - AP not apearing on first boot with pre-built BIN

#22 Post by grovkillen » 15 Aug 2017, 14:20

vincen wrote: 15 Aug 2017, 14:13
LisaM wrote: 15 Aug 2017, 13:56
vincen wrote: 15 Aug 2017, 13:33
Thanks for the notice but I have read that with build of version 2 now the firmware works with both no ??
Yes, but you cannot use the pre-compiled ESP8266 version...
You need to compile it yourself with Arduino IDE using the ESP8285 board.
Completely lost here as I thought it was included by default in 2.0 version so I don't see the point to recompile it to get support for it ! In all matters if it needs to be recompiled I have to give up (never succeeded to follow all steps to setup environnment for that :( Or perhaps someone has the file avalaible for test ?
Use the bin file ending with "8285". This is something that will be changed in the future since it is a bit confusing having the name that way. See this request: https://github.com/letscontrolit/ESPEasy/issues/444
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 :idea: :idea: :idea:

vincen
Normal user
Posts: 92
Joined: 26 Jun 2017, 07:15

Re: Sonoff Basic - AP not apearing on first boot with pre-built BIN

#23 Post by vincen » 15 Aug 2017, 14:44

grovkillen wrote: 15 Aug 2017, 14:20Use the bin file ending with "8285". This is something that will be changed in the future since it is a bit confusing having the name that way. See this request: https://github.com/letscontrolit/ESPEasy/issues/444
Sorry LisaM but I confirm you that standard bin file of ESP2 works well as is on Sonoff 4CH I have ;) Problem was with parameters of flash and here is correct command with bin file downloaded from github :D Once flashed, I just removed few seconds power supply from FTDI adapter to the Sonoff then plugged it back and after few seconds my favorite ESP wifi signal popped up :) Unhappy I can't go further :( When I succeed to access the captive web portal and setup my Wifi, I get the notification to wait 20s but at the end it comes back as ESP_Easy instead of connecting to Wifi. I have already few ESP modules connected to Wifi so this one should not be a problem !
Some ideas about something to investigate for that ?

Update: Redid the flash with version 2 and with 8285 file and it works like a charm now :) same flash command line with the 8285 file and it's all setup ( I have 4 of these and they are now operationnal with my Home Assistant system through MQTT ;) Might be nice to update Wiki with instructions no ?? 8-)

Thanks for help ;)

Code: Select all

vincen@Fixe-Ubuntu:~/Bureau$ esptool.py --port /dev/ttyUSB0 write_flash -fm dout 0x00000 ESPEasy_v2.0.0-dev11_normal_1024.bin 
esptool.py v2.0
Connecting....
Detecting chip type... ESP8266
Chip is ESP8266
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Auto-detected Flash size: 1MB
Flash params set to 0x0320
Compressed 558896 bytes to 368923...
Wrote 558896 bytes (368923 compressed) at 0x00000000 in 32.5 seconds (effective 137.5 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting...
vincen@Fixe-Ubuntu:~/Bureau$

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: Sonoff Basic - AP not apearing on first boot with pre-built BIN

#24 Post by Shardan » 15 Aug 2017, 15:23

vincen wrote: 15 Aug 2017, 13:33
Shardan wrote: 15 Aug 2017, 13:24did you consider that the 4ch Sonoff does not use a ESP-8266? It is an ESP8285, a slightly different processor.
ESPEasy runs on the 4CH sonoff, but you have to compile a version for the other processor.
Thanks for the notice but I have read that with build of version 2 now the firmware works with both no ??
Even the older R1xx versions can be used with Sonoff 4ch, i'm running a R148 on it.

But the standard binaries are compiled for the ESP-8266, not for ESP-8285!
As the two CPUS handle the memory slightly different you must compile a binary suitable for the CPU.
If the source is compiled correctly it runs on both.

Regards
Shardan
Regards
Shardan

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Sonoff Basic - AP not apearing on first boot with pre-built BIN

#25 Post by grovkillen » 15 Aug 2017, 15:24

vincen wrote: 15 Aug 2017, 14:44 Might be nice to update Wiki with instructions no ?? 8-)
We will add this once it's released with "correct" nomenclature. :)
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 :idea: :idea: :idea:

vincen
Normal user
Posts: 92
Joined: 26 Jun 2017, 07:15

Re: Sonoff Basic - AP not apearing on first boot with pre-built BIN

#26 Post by vincen » 15 Aug 2017, 15:26

grovkillen wrote: 15 Aug 2017, 15:24
vincen wrote: 15 Aug 2017, 14:44 Might be nice to update Wiki with instructions no ?? 8-)
We will add this once it's released with "correct" nomenclature. :)
Well it might already help lot of users to get in Wiki no ? I'm ok to do it if you want ? (I filled the request account on Wiki ;)

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Sonoff Basic - AP not apearing on first boot with pre-built BIN

#27 Post by grovkillen » 15 Aug 2017, 15:42

Sure you can add the information but it will be changed in a short while since with the next dev-release it will obey the suggested nomenclature. :)
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 :idea: :idea: :idea:

vincen
Normal user
Posts: 92
Joined: 26 Jun 2017, 07:15

Re: Sonoff Basic - AP not apearing on first boot with pre-built BIN

#28 Post by vincen » 15 Aug 2017, 15:48

grovkillen wrote: 15 Aug 2017, 15:42 Sure you can add the information but it will be changed in a short while since with the next dev-release it will obey the suggested nomenclature. :)
Will make a note in explanations, and will try not to forget to update it when new dev-release is avalaible ;)

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Sonoff Basic - AP not apearing on first boot with pre-built BIN

#29 Post by grovkillen » 15 Aug 2017, 15:59

vincen wrote: 15 Aug 2017, 15:48
grovkillen wrote: 15 Aug 2017, 15:42 Sure you can add the information but it will be changed in a short while since with the next dev-release it will obey the suggested nomenclature. :)
Will make a note in explanations, and will try not to forget to update it when new dev-release is avalaible ;)
Good! :)
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 :idea: :idea: :idea:

vincen
Normal user
Posts: 92
Joined: 26 Jun 2017, 07:15

Re: Sonoff Basic - AP not apearing on first boot with pre-built BIN

#30 Post by vincen » 15 Aug 2017, 16:02

grovkillen wrote: 15 Aug 2017, 15:59 Good! :)
Waititng to get news of my credential request on Wiki to start prepare the tutorial :) Might take few days as it's long time I have not used Wiki editor :mrgreen:

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Sonoff Basic - AP not apearing on first boot with pre-built BIN

#31 Post by grovkillen » 15 Aug 2017, 16:03

vincen wrote: 15 Aug 2017, 16:02
grovkillen wrote: 15 Aug 2017, 15:59 Good! :)
Waititng to get news of my credential request on Wiki to start prepare the tutorial :) Might take few days as it's long time I have not used Wiki editor :mrgreen:
It should arrive in a couple of seconds/minutes... check your spam folder.
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 :idea: :idea: :idea:

vincen
Normal user
Posts: 92
Joined: 26 Jun 2017, 07:15

Re: Sonoff Basic - AP not apearing on first boot with pre-built BIN

#32 Post by vincen » 15 Aug 2017, 16:40

grovkillen wrote: 15 Aug 2017, 16:03It should arrive in a couple of seconds/minutes... check your spam folder.
Still nothing in spam or inbox :(

shanekuz
New user
Posts: 5
Joined: 11 Aug 2017, 23:50

Re: Sonoff Basic - AP not apearing on first boot with pre-built BIN

#33 Post by shanekuz » 16 Aug 2017, 07:02

Thank you alphons your post works fine and my units are now working again.

Fleshi
New user
Posts: 2
Joined: 14 Aug 2017, 21:50

Re: Sonoff Basic - AP not apearing on first boot with pre-built BIN

#34 Post by Fleshi » 16 Aug 2017, 13:36

alphons wrote: 15 Aug 2017, 00:53 Same problems using the flashtool from letscontrolit.
Got this working on my devices (china, last week):....
Thanks, Alphons!! After a lot errors your post is the solution :D :D

awclem
New user
Posts: 1
Joined: 20 Aug 2017, 17:28

Re: Sonoff Basic - AP not apearing on first boot with pre-built BIN

#35 Post by awclem » 20 Aug 2017, 17:34

I had the same issue. I solved it but I am not sure if what I have done to solve it is going to cause me any additional issues if the memory size has not changed.

I solved the issue by flashing the 8285 version of the firmware instead of the 1024 size. I now have 4 working devices using this. I was just assuming that the company has upgraded the memory on the new units.

If this is something that is going to cause me issues I would sure like to know it ASAP.

vincen
Normal user
Posts: 92
Joined: 26 Jun 2017, 07:15

Re: Sonoff Basic - AP not apearing on first boot with pre-built BIN

#36 Post by vincen » 21 Aug 2017, 07:48

awclem wrote: 20 Aug 2017, 17:34 I had the same issue. I solved it but I am not sure if what I have done to solve it is going to cause me any additional issues if the memory size has not changed.

I solved the issue by flashing the 8285 version of the firmware instead of the 1024 size. I now have 4 working devices using this. I was just assuming that the company has upgraded the memory on the new units.

If this is something that is going to cause me issues I would sure like to know it ASAP.
Nope it's the correct firmware in fact ;) 8285 is fos chip reference not memory size so you are all ok there :)

psy0rz
Normal user
Posts: 232
Joined: 02 Feb 2017, 12:12

Re: Sonoff Basic - AP not apearing on first boot with pre-built BIN

#37 Post by psy0rz » 14 Sep 2017, 21:00

I think we already have a precompiled ESP8285 version, that should work right?

https://github.com/letscontrolit/ESPEas ... y-releases
Please support ESPEasy development via Patreon or buy us a coffee.

ayasystems
Normal user
Posts: 39
Joined: 09 Aug 2016, 09:45

Re: Sonoff Basic - AP not apearing on first boot with pre-built BIN

#38 Post by ayasystems » 11 Oct 2017, 22:41

I have the same problem but i can solve it with your instructions!! Best regards and thanks!

surbitron
New user
Posts: 2
Joined: 29 Oct 2017, 21:54

Re: Sonoff Basic - AP not apearing on first boot with pre-built BIN

#39 Post by surbitron » 29 Oct 2017, 22:43

I have a few brand new Sonoff Basic devices - the ones with the new chip that required DOUT rather than DIO, apparently, though I am having trouble flashing ESPEasy binary images on these devices with it set to DOUT or DIO.

I have successfully flashed these devices with a blink sketch using the Arduino IDE, so I know my USB-> serial is working ok. I'm pretty sure the Arduino IDE is using DIO though, as '-bm' is not specified on the command line (see example further down this post).

Here is one of my attempts at flashing an ESPEasy binary image, with console out (I'm on a Mac):

$ esptool -vv -bz 1M -bm dout -cd ck -cb 115200 -cp /dev/cu.wchusbserial1410 -ca 0x00000 -cf ESPEasy_v2.0.0-dev12_normal_1024.bin
esptool v0.4.9 - (c) 2014 Ch. Klippel <ck@atelier-klippel.de>
setting flash size from 512K to 1M
setting flash mode from qio to dout
setting board to ck
setting baudrate from 115200 to 115200
setting port from /dev/tty.usbserial to /dev/cu.wchusbserial1410
setting address from 0x00000000 to 0x00000000
espcomm_upload_file
espcomm_upload_mem
opening port /dev/cu.wchusbserial1410 at 115200
tcgetattr
tcsetattr
serial open
opening bootloader
resetting board
trying to connect
espcomm_send_command: sending command header
espcomm_send_command: sending command payload
trying to connect
espcomm_send_command: sending command header
espcomm_send_command: sending command payload
espcomm_send_command: receiving 2 bytes of data
espcomm_send_command: receiving 2 bytes of data
espcomm_send_command: receiving 2 bytes of data
espcomm_send_command: receiving 2 bytes of data
espcomm_send_command: receiving 2 bytes of data
espcomm_send_command: receiving 2 bytes of data
espcomm_send_command: receiving 2 bytes of data
espcomm_send_command: receiving 2 bytes of data
Uploading 566528 bytes from ESPEasy_v2.0.0-dev12_normal_1024.bin to flash at 0x00000000
erasing flash
size: 08a500 address: 000000
first_sector_index: 0
total_sector_count: 139
head_sector_count: 16
adjusted_sector_count: 123
erase_size: 07b000
espcomm_send_command: sending command header
espcomm_send_command: sending command payload
setting timeout 15000
setting timeout 100
espcomm_send_command: receiving 2 bytes of data
writing flash
................................................................................ [ 14% ]
................................................................................ [ 28% ]
................................................................................ [ 43% ]
................................................................................ [ 57% ]
................................................................................ [ 72% ]
................................................................................ [ 86% ]
.......................................................................... [ 100% ]
starting app without reboot
espcomm_send_command: sending command header
espcomm_send_command: sending command payload
espcomm_send_command: receiving 2 bytes of data
closing bootloader

The above appears to flash ok but the AP never turns up and serial is silent. I have tried the same with the R120 release of ESPEasy and also specifying -bm DIO with no difference in behaviour.


Here's what a successful upload of the blink sketch looks like, performed by the Arduino IDE (I am using the same esptool for the command line and the IDE):

/Users/user/Library/Arduino15/packages/esp8266/tools/esptool/0.4.9/esptool -vv -cd ck -cb 115200 -cp /dev/cu.wchusbserial1410 -ca 0x00000 -cf /var/folders/_b/z_ylfsdx2pxfj41qtwgfx0sw0000gn/T/arduino_build_846813/sketch_oct28a.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 /dev/tty.usbserial to /dev/cu.wchusbserial1410
setting address from 0x00000000 to 0x00000000
espcomm_upload_file
espcomm_upload_mem
opening port /dev/cu.wchusbserial1410 at 115200
tcgetattr
tcsetattr
serial open
opening bootloader
resetting board
trying to connect
espcomm_send_command: sending command header
espcomm_send_command: sending command payload
trying to connect
espcomm_send_command: sending command header
espcomm_send_command: sending command payload
espcomm_send_command: receiving 2 bytes of data
espcomm_send_command: receiving 2 bytes of data
espcomm_send_command: receiving 2 bytes of data
espcomm_send_command: receiving 2 bytes of data
espcomm_send_command: receiving 2 bytes of data
espcomm_send_command: receiving 2 bytes of data
espcomm_send_command: receiving 2 bytes of data
espcomm_send_command: receiving 2 bytes of data
Uploading 228336 bytes from /var/folders/_b/z_ylfsdx2pxfj41qtwgfx0sw0000gn/T/arduino_build_846813/sketch_oct28a.ino.bin to flash at 0x00000000
erasing flash
size: 037bf0 address: 000000
first_sector_index: 0
total_sector_count: 56
head_sector_count: 16
adjusted_sector_count: 40
erase_size: 028000
espcomm_send_command: sending command header
espcomm_send_command: sending command payload
setting timeout 15000
setting timeout 100
espcomm_send_command: receiving 2 bytes of data
writing flash
................................................................................ [ 35% ]
................................................................................ [ 71% ]
............................................................... [ 100% ]
starting app without reboot
espcomm_send_command: sending command header
espcomm_send_command: sending command payload
espcomm_send_command: receiving 2 bytes of data
closing bootloader

Immediately after uploading this the Sonoff blinks away happily.

As a side note, I HAVE successfully flashed an AdaFruit Huzzah with the R120 binary image specifying -bm DIO, so the image is also fine.... It's just these Sonoffs that I'm struggling with.

Any advice would be gratefully received.

sups
Normal user
Posts: 13
Joined: 17 Oct 2017, 14:54

Re: Sonoff Basic - AP not apearing on first boot with pre-built BIN

#40 Post by sups » 31 Oct 2017, 09:38

Hello all

I have a Sonoff S20 which I've read is almost identical to the Sonoff basic. I'm able to upload espeasy but as with others.. there's no AP. There's a twist to this story though... As I did manage to get it up before..
This is what happend:
Tested the original unit with EWelink - all was ok
Soldered header and used Adruino IDE to flash espEasy R120 - all went well
ESP_0 AP came up and I started to configure the unit....whilst going through the config I thought I could load up a config from another Sonoff Basic I have, then update the parameters like IP address, name etc.. but the config wasn't showing up So i rebooted the unit..... It went downhill from there..i Iost connectivity . I turned off my WiFi ap in the hope of seeing esp_0 on the unit but that didn't happen either. Ive tried to flash espEasy on again.. which seems to go on successfully... But no Esp_0 ap. I get no output over serial nor can I send any commands (using putty)

Flashing Tasimota works fine..

I have a feeling that config data is persistent and that is what's causing the problem. I may need to do some work of memory wipe, and start again.

I anyone out there able to help?

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: Sonoff Basic - AP not apearing on first boot with pre-built BIN

#41 Post by Shardan » 31 Oct 2017, 14:29

- Disconnect the S20
- shorten Tx--Rx with a jumper cable
- power on and wait some seconds
- power off, remove jumper.

This erases the chip memory.

Regards
Shardan
Regards
Shardan

sups
Normal user
Posts: 13
Joined: 17 Oct 2017, 14:54

Re: Sonoff Basic - AP not apearing on first boot with pre-built BIN

#42 Post by sups » 31 Oct 2017, 15:03

Thanks Shardan
I'll give this a go when I get home. Incidentally...Do you have any idea what kind of response I should get from the on board LEDs when doing this?

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: Sonoff Basic - AP not apearing on first boot with pre-built BIN

#43 Post by Shardan » 31 Oct 2017, 15:29

Honestly i don't know.
My S20's are still on the way from china :)
Hopefully the customs won't reject them.
Regards
Shardan

sups
Normal user
Posts: 13
Joined: 17 Oct 2017, 14:54

Re: Sonoff Basic - AP not apearing on first boot with pre-built BIN

#44 Post by sups » 02 Nov 2017, 15:53

Just an update.
Shorting tx/Rx didn't work for me.. I had to use the espTool from
Espressif. There is an option to clear the chip which worked. I then used Arduino IDE to load EspEasy on again.
Phew!

Oh and my unit also came from China... Took about 3weeks to deliver to my home in the UK.

mrwee
Normal user
Posts: 225
Joined: 31 Aug 2016, 12:52

Re: Sonoff Basic - AP not apearing on first boot with pre-built BIN

#45 Post by mrwee » 02 Nov 2017, 20:40

Just flashed a new Sonoff S20 (V1.3) with the Arduino IDE and ESPEasy v2.0.0-dev12 and flashmout 'DOUT'. Flashed and ran in first 'go'.

I do still get "Error while reading/writing config.dat in 926" with this new device :(

sups
Normal user
Posts: 13
Joined: 17 Oct 2017, 14:54

Re: Sonoff Basic - AP not apearing on first boot with pre-built BIN

#46 Post by sups » 02 Nov 2017, 21:25

Is there much of a difference between R120 and 147?.....

mrwee
Normal user
Posts: 225
Joined: 31 Aug 2016, 12:52

Re: Sonoff Basic - AP not apearing on first boot with pre-built BIN

#47 Post by mrwee » 02 Nov 2017, 21:47

sups wrote: 02 Nov 2017, 21:25 Is there much of a difference between R120 and 147?.....
I did not try R147 on this new S20, but v2.0.0-dev11 did not fail on my previous test-S20.

jackwan1
Normal user
Posts: 21
Joined: 11 Apr 2017, 05:42

Re: Sonoff Basic - AP not apearing on first boot with pre-built BIN

#48 Post by jackwan1 » 20 Jan 2018, 05:30

@alphons

I received the NEW sonoff basic from itead today.

I followed your instruction to flash the Espeasy normal v2.0 with the flashing tools from Espressif per your instruction.

I was successful and reboot the sonoff and on the Wifi ssid, I see ESP_Easy_0, but I cannot logon because it requires an 8 digit password.

Please advise the password.

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Sonoff Basic - AP not apearing on first boot with pre-built BIN

#49 Post by grovkillen » 20 Jan 2018, 06:11

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 :idea: :idea: :idea:

jackwan1
Normal user
Posts: 21
Joined: 11 Apr 2017, 05:42

Re: Sonoff Basic - AP not apearing on first boot with pre-built BIN

#50 Post by jackwan1 » 20 Jan 2018, 20:34

Thanks all,

I was able to log onto the sonoff and change ip address of my desire and proceed to configure this for domoticz.

When I reach the "HARDWARE" section, as usual, since I had many sonoff, I change the wifi status led to GPIO 13(D7), as soon as I did that, the led on sonoff goes on and I was disconnected from the router and no longer able to log on. What gives?

Post Reply

Who is online

Users browsing this forum: No registered users and 27 guests