Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Less wifi sensibility with latest firmware #2673

Closed
gabryk91 opened this issue May 9, 2018 · 26 comments
Closed

Less wifi sensibility with latest firmware #2673

gabryk91 opened this issue May 9, 2018 · 26 comments
Labels
stale Action - Issue left behind - Used by the BOT to call for attention

Comments

@gabryk91
Copy link

gabryk91 commented May 9, 2018

Make sure these boxes are checked before submitting your issue - Thank you!

  • [x ] What hardware you are using
    Sonoff basic

I updated the firmware to the last one and I noticed an important reduction of WiFi sensibility. I have a sonoff pretty far away from the router, with the previous firmware I didn't have a problem, it was connecting fine. Now it doesn't, I have to plug it almost in the same room of the router...

There is something I can try.
As least resource, how can I downgrade the firmware? Thanks

@JF62
Copy link

JF62 commented May 9, 2018

Same here
5.13.1.a -> 54 %
5.12.xxx -> 82%

@arendst
Copy link
Owner

arendst commented May 9, 2018

So compile with ESP8266/Arduino core 2.3.0 and let us know.

@gabryk91
Copy link
Author

gabryk91 commented May 9, 2018

@arendst I used Sonota.exe and I don't know how to do that

@JF62
Copy link

JF62 commented May 9, 2018

I tested:
2.3.0 : 62%
2.4.0 : 50%
2.4.1 : 52%

@ajanulis
Copy link

ajanulis commented May 9, 2018

Same with my devices. Went from 5.12.0 to 5.13.1a - almost impossible to connect to WiFi. Described functionality with 3 or 4 short presses did not bring up AP. I was lucky enough to connect to wifi only when powered through USB FTDI few times but newer on AC (using SONOFF basic). Still have one working (based on Wimos mini) but on 5.12.0 - if it can help - I can reflash it as well. Using Atom & Platformio.

EDIT: Was wrong - it's possible to get AP running (kind of). It's complicated to enter this as Sonoff reboots each 30 or 40 seconds, but using 6 short presses is possible to reset and after that 4 short presses enters AP mode, but it's not possible to connect to it (no web service appears). Sorry, have no Android phone and can't check 3 short presses.

Reflashed back to 5.12.0 - at least minimal configuration works

EDIT#2: Compiled with ESP8266/Arduino core 2.3.0 and it 5.13.1a WORKS! (platform = espressif8266@1.5.0 ; v2.3.0)

EDIT#3: Compiled with ESP8266/Arduino core v2.4.0 - WORKS as well!

### EDIT#4: Compiled with ESP8266/Arduino core v2.4.1 (platform = espressif8266@1.7.0 ; v2.4.1) - WORKS like a bee!

@gabryk91
Copy link
Author

gabryk91 commented May 9, 2018

@ajanulis what is the procedure to flash the recompiled firmware? Serial connection is needed?
Also, is possible to revert to 5.12 from the web server or sonota.exe?

@ajanulis
Copy link

ajanulis commented May 9, 2018

@gabryk91, are you able to see yours online or it is just blinking like 30-40 seconds and restarting after that?

@gabryk91
Copy link
Author

gabryk91 commented May 9, 2018

@ajanulis it's blinking, but if I put it closer to the router it connects and start working again

@ajanulis
Copy link

ajanulis commented May 9, 2018

@gabryk91, than it's easy fix :) Do you know what address it gets from the your router? If yes - open web browser, enter that address and you will be provided with an option for "Firmware upgrade"

@gabryk91
Copy link
Author

gabryk91 commented May 9, 2018

@ajanulis yes ok, just I didn't know if "Firmware upgrade" would also replace it with an older release. With Firmware upgrade can I also load the firmware compiled through Arduino IDE? I followed the wiki to compile the latest firmware with ESP8266 v2.4.1 that you suggested working fine

@ajanulis
Copy link

ajanulis commented May 9, 2018

@gabryk91, I am pretty sure that there is no upgrade/downgrade restrictions as in an Apple world :) At least I strongly believe in such a freedom :)

If you already compiled and have firmware.bin file - just pass it to web browser and you are happiest guy! :) Just try it

A, it might be an issue - but you will see it very soon - it might be that it will be not enough memory for new firmware - then you should compile minimal version, upgrade (or should I say - downgrade) to it and only then you can flash last one. Good luck, fingers crossed

@gabryk91
Copy link
Author

gabryk91 commented May 9, 2018

It returns "Upload Failed:Upload buffer miscompare". There's a chance you can share your build?

@ajanulis
Copy link

ajanulis commented May 9, 2018

OK, that means its not enough memory. Sure I can share build, or build it for you, but than you should send me you wifi credentials

@gabryk91
Copy link
Author

gabryk91 commented May 9, 2018

Ok, maybe you can help me flying by myself :-)
I setup the Arduino environment for compiling and send the firmware OTA but I get the error

 <br />
<b>Warning</b>:  move_uploaded_file(arduino/sonoff.ino.bin): failed to open stream: No such file or directory in <b>C:\xampp\htdocs\api\upload-arduino.php</b> on line <b>10</b><br />
<br />
<b>Warning</b>:  move_uploaded_file(): Unable to move 'C:\xampp\tmp\phpD6B3.tmp' to 'arduino/sonoff.ino.bin' in <b>C:\xampp\htdocs\api\upload-arduino.php</b> on line <b>10</b><br />
Sorry, there was an error uploading your file sonoff.ino.bin to OTA server 192.168.1.x. 

@ajanulis
Copy link

ajanulis commented May 9, 2018

@gabryk91, I'd love to teach you to fly, but I am a learner as well. I am not a big fan of Arduino and use it only when there are no other options. And with Tasmota I learned (at least a bit) how to use Atom and Platformio and I like it. So if you'll decide to do the same, most probably I can guide you to the same result where I am now.

But have you tried:

pip -v install pycurl --upgrade

@gabryk91
Copy link
Author

gabryk91 commented May 9, 2018

Ok, I managed to do it (in the end it was missing the arduino folder inside the webserver)
But doesn't feels like much of an improvement compared to the official 5.13.1
Wifi signal is at 62%

Tomorrow I will try to revert back to 5.12 to see the difference

@ajanulis
Copy link

ajanulis commented May 9, 2018

Hmm, happy you did it and strange - I got signal fully at the previous level, and I suppose it's not 5.12 or 5.13 - it's just an Android core version you are using. Anyway, continue to investigate and post your results - it might help others to overcome it faster and without a lot of frustrations.

@gabryk91
Copy link
Author

gabryk91 commented May 9, 2018

Ok, I didn't manage to wait until tomorrow, I reverted succesfully to 5.12
Now the sonoff connect instantly without any problem, placed in the exact same location than before.

I think that's something to look into for @arendst

@reloxx13
Copy link
Contributor

Same here, 2.3.0 around 10-20% higher rssi

@ajanulis
Copy link

@reloxx13 , can you try 2.4.1?

@Winni66
Copy link

Winni66 commented May 15, 2018

I just went to 5.14, No connect to network anymore, even 58% is shown. After reboot every time back again to AP-mode. Went back to 5,13,1 (using 2 mobiles and Hotspot) everything is fine again (but KNX issues from #2734 are back again)
Unfortunately I'm not able to make my own binary yet.

@ajanulis
Copy link

@Winni66, send me your "user_config.h" and I will build it for you with 2.3.0 Arduino core

@Winni66
Copy link

Winni66 commented May 16, 2018

@ajanulis
that's a great offer, but what is user_config.h, where can I find it?
I'm using sonoff_knx.bin.

@reloxx13
Copy link
Contributor

pls make an own issue and read the wiki.

@ajanulis
Copy link

@Winni66, ok, let's make it simpler - send me your wifi SSID, pswrd and gateway address to a.janulis at gmail tod com. @reloxx13, not everyone want's to mess with Atom, platformio and so on - some guys just want to use it straight. I can understand why @arendst still use last Arduino core if it's known for creating issues

@stale
Copy link

stale bot commented Jun 30, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale Action - Issue left behind - Used by the BOT to call for attention label Jun 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Action - Issue left behind - Used by the BOT to call for attention
Projects
None yet
Development

No branches or pull requests

7 participants