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

Espurna 1.9.2 - Sonoff RF - Could not connect to WIFI #204

Closed
xoseperez opened this issue Sep 2, 2017 · 13 comments
Closed

Espurna 1.9.2 - Sonoff RF - Could not connect to WIFI #204

xoseperez opened this issue Sep 2, 2017 · 13 comments

Comments

@xoseperez
Copy link
Owner

Originally reported by: Giorgio Anastasi (Bitbucket: giorgioanastasi, GitHub: giorgioanastasi)


I installed the new firmware with ota and also with serial, but i always have the same problem (before i erase the flash).
I've tried them all, even from terminal (the commands "restart" and "reconnect" do not work )

--- Miniterm on /dev/cu.usbserial-00000000 115200,8,N,1 ---

--- Quit: Ctrl+C | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---

[WIFI] Could not connect to FASTWEB-1-N2YD6sDP3BUj

[WIFI] Creating access point

[WIFI] MODE AP --------------------------------------

[WIFI] SSID SONOFF_RF_9E0F44

[WIFI] PASS fibonacci

[WIFI] IP 192.168.4.1

[WIFI] MAC 5E:CF:7F:9E:0F:44

[WIFI] ----------------------------------------------

[MDNS] OK

[MAIN] System OK

@xoseperez
Copy link
Owner Author

Was it working with previous versions?
Have you checked the password?

@xoseperez
Copy link
Owner Author

Original comment by Giorgio Anastasi (Bitbucket: giorgioanastasi, GitHub: giorgioanastasi):


Yes working (was 1.8.3) , and i checked the password many times, also trying to tethering the phone, it does not connect. Now, don't working also Ap mode.....I do not know what to do

@xoseperez
Copy link
Owner Author

Original comment by Giorgio Anastasi (Bitbucket: giorgioanastasi, GitHub: giorgioanastasi):


Update: with the 1.9.1 version is ok.....with 1.9.2 i don't connect to router wifi.

@xoseperez
Copy link
Owner Author

Between 1.9.1 and 1.9.2 there are few things that could impact the WIFI... the only one I can think of is the WiFi gain... try commenting "WiFi.setOutputPower... " line in wifiConfigure method in wifi.ino module.

There have been some changes in the commands too: "reconnect" is now "reset.wifi", there is also a new "reset.mqtt" and you can still "reset" the board to reboot it.

In case of doubt you can always run "commands" to get a list of available commands.

@xoseperez
Copy link
Owner Author

Original comment by Jay (Bitbucket: ElectricImpossible, GitHub: ElectricImpossible):


I also have had problems with the .bin 1.9.2 on my Sonoff RF. Out of multiple attempts I could never get it to connect to my Wifi.

My other Sonoff's (basic and dual) have no issues.

1.9.1 is working without issue.

@xoseperez
Copy link
Owner Author

Original comment by Christophe Histaesse (Bitbucket: chistaesse, GitHub: chistaesse):


Same issue here, and with Sonoff Basic. WiFi.setOutputPower(getSetting("wifiGain", WIFI_GAIN).toFloat()); commented, STA mode working good.

@xoseperez
Copy link
Owner Author

Original comment by Thijs (Bitbucket: Psychostase, GitHub: Unknown):


Flashed all my devices to Espurna 1.9.2

The only one with a wifi connection problem was the Sonoff RF.
So I can confirm this. Thank you in advanced!

@xoseperez
Copy link
Owner Author

@chistaesse do you mean that after removing that line the device is working fine?

@xoseperez
Copy link
Owner Author

Original comment by Mike B (Bitbucket: faceless2, GitHub: faceless2):


I have a brand new Sonoff basic and can confirm I am getting the same problem.

  1. Flashed latest version from GIT as of yesterday, device set up a soft AP and I could connect.
  2. Specified ssid and password, reset device multiple times - device never connected to SSID.
  3. Commented out the WiFi.setOutputPower line and reflashed - device connected immediately

@xoseperez
Copy link
Owner Author

Fixed with 1.9.4

@xoseperez
Copy link
Owner Author

Original comment by Erwin (Bitbucket: elonden, GitHub: elonden):


To be fair the Sonoff POW's that I have work OK with the Wifi gain option. It has enabled me to have a few outside which fixed some coverage problems I have when it was disabled.

Might want to revise if disabling it entirely is a good option.

Thanks
Erwin

@xoseperez
Copy link
Owner Author

Original comment by Thomas (Bitbucket: tom-kaltofen, GitHub: Unknown):


+1 for getting Wifi gain option back, it helped me to get stable coverage in some spaces

I think it would be better to add an additional option "Disabled" to the Wifi gain settings, which does not set gain at all. This setting could be the default value to prevent problems with devices not supporting it properly. On devices that support it one could freely choose another setting. Thank you!

@xoseperez
Copy link
Owner Author

Please, refer to #255.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant