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

Only a white site after login..... #92

Closed
xoseperez opened this issue Feb 27, 2017 · 28 comments
Closed

Only a white site after login..... #92

xoseperez opened this issue Feb 27, 2017 · 28 comments

Comments

@xoseperez
Copy link
Owner

Originally reported by: Dieter Langens (Bitbucket: nettworker, GitHub: nettworker)


I have compiled the espurna Software with the Arduino IDE 1.8.0.
Compiling and uploading to a Sonoff Pow works without Errors.

In arduino.h i have uncomment:

#define SONOFF_POW
#define ENABLE_HLW8018        1

Settings for the Board:
Generic ESP8266 Module*

  • Flash Mode: QIO
  • Flash Frequency: 40 MHz
  • CPU Frequency: 80 MHz
  • Flash Size: 1M (128K SPIFFS)
  • Debug Port: disabled
  • Debug Level: none
  • Reset Mode: ck
  • Upload Speed: 115200

The AP is created and i can log on with firefox, MS Edge gets in a loop for authenticating.
In Firefox i got only a blank page and nothing to configure.

Whats the Problem?

@xoseperez
Copy link
Owner Author

Original comment by Dieter Langens (Bitbucket: nettworker, GitHub: nettworker):


Is there any option to enable a debugging to Serial Monitor?

@xoseperez
Copy link
Owner Author

Original comment by f-fish (Bitbucket: f-fish, GitHub: Unknown):


Hi Dieter ... I only use platformio these days, that said I suspect you need to flash the fs still.

by default you should have usb serial debug.

If your FF logon the pop-up?

@xoseperez
Copy link
Owner Author

Original comment by Dieter Langens (Bitbucket: nettworker, GitHub: nettworker):


I dont know platformio.....
After log on with FF nothing happend, only white 'paper'....
Flash the FS???????

Sorry, i am new and only tested a little bit with the ESP.

@xoseperez
Copy link
Owner Author

Original comment by f-fish (Bitbucket: f-fish, GitHub: Unknown):


See ..
https://bitbucket.org/xoseperez/espurna/wiki/ArduinoIDE.md bottom of the page.

What you could try - again not sure it will work under Arduino IDE is in general.h around line 121 set #define EMBEDDED_WEB 1

That might mitigate the need to flash the filesystem, works for me with platformio.

See for your terminal commands.
https://bitbucket.org/xoseperez/espurna/wiki/Terminal.md

Later Ferdie

@xoseperez
Copy link
Owner Author

Original comment by Dieter Langens (Bitbucket: nettworker, GitHub: nettworker):


Hello Ferdie,

the option " #define EMBEDDED_WEB 1" does not work for me....
USB Serial Debug works also not, no Output in Arduio IDE....
Use the ESP8266 Sket Data Upload in the Arduino IDE and now the Website is shown and works.

Thx

PS: I must read about SPIFFS :)

@xoseperez
Copy link
Owner Author

Original comment by f-fish (Bitbucket: f-fish, GitHub: Unknown):


" #define EMBEDDED_WEB 1" yeah took a chance. It is not mainstream yet - this must be the reason why.

Hmmm you on windows ?

arduino.JPG

Seems to work OK

@xoseperez
Copy link
Owner Author

Original comment by Dieter Langens (Bitbucket: nettworker, GitHub: nettworker):


Yes, i am on Windows!
debug.jpg

no debug output :(

@xoseperez
Copy link
Owner Author

Original comment by f-fish (Bitbucket: f-fish, GitHub: Unknown):


That is weird .. can you check to see if your com port is configured?

2017-02-28 04_34_05-Clipboard.png

Ok I am on 1.8.1 - com13 - looking at the name of the windows seems a bit odd.

Later Ferdie

@xoseperez
Copy link
Owner Author

Hi

Also, what version of ESPurna are you using? Try resetting the board while connected to the terminal output. You should see some garbage at first and then the welcome message.

EMBEDDED_WEB will only work under Arduino IDE with the code in the dev branch.

@xoseperez
Copy link
Owner Author

Original comment by Dieter Langens (Bitbucket: nettworker, GitHub: nettworker):


Com Port is OK, i have flashed the software at that port.
I have so much, cause i have a lot of arduinos, usb2uart and other adapters for my rc hobby...

@xoseperez
Copy link
Owner Author

Original comment by Dieter Langens (Bitbucket: nettworker, GitHub: nettworker):


Thats the only Message after Reset:

ets Jan 8 2013,rst cause:1, boot mode:(3,6)

load 0x4010f000, len 1384, room 16
tail 8
chksum 0x2d
csum 0x2d
v3de0c112
~ld
á

@xoseperez
Copy link
Owner Author

Original comment by Dieter Langens (Bitbucket: nettworker, GitHub: nettworker):


ESPURNA Version 1.6.3

@xoseperez
Copy link
Owner Author

It's a bit weird...
I'd like to ask you to checkout the last version, and clean and upload the firmware and filesystem again. It might be due to a corrupted flash.

esptool.py -p /dev/ttyUSB0 -b 115200 erase_flash

You can also try setting the debug level to "All" to see if the core libraries messages do work.

@xoseperez
Copy link
Owner Author

Original comment by Dieter Langens (Bitbucket: nettworker, GitHub: nettworker):


I use Windows :)
All other functions seems to work......
I got Values from the Pow via MQTT to Domoticz, Relay works....

@xoseperez
Copy link
Owner Author

Original comment by Dieter Langens (Bitbucket: nettworker, GitHub: nettworker):


Compiling the actual software generate Errors:

Arduino: 1.8.0 (Windows 10), Board: "Generic ESP8266 Module, 80 MHz, 40MHz, QIO, 115200, 1M (128K SPIFFS), ck, Disabled, None"

button:97: error: 'DebounceEvent' does not name a type

E:\Admin\Bücher und Anleitungen\ESP8266\xoseperez-espurna-1.6.7\xoseperez-espurna-9bd7c8c94f6e\code\espurna\button.ino: In function 'DebounceEvent::TDebounceEventCallback buttonCallbackProvider(unsigned int)':

button:101: error: could not convert 'buttonCallbackProvider(unsigned int)::__lambda0{index}' from 'buttonCallbackProvider(unsigned int)::__lambda0' to 'DebounceEvent::TDebounceEventCallback {aka std::function<void(unsigned char, unsigned char)>}'

exit status 1
'DebounceEvent' does not name a type

Dieser Bericht wäre detaillierter, wenn die Option
"Ausführliche Ausgabe während der Kompilierung"
in Datei -> Voreinstellungen aktiviert wäre.

@xoseperez
Copy link
Owner Author

Original comment by Dieter Langens (Bitbucket: nettworker, GitHub: nettworker):


Tested 1.6.6 works fine.....

@xoseperez
Copy link
Owner Author

Version 1.6.7 requires the latest version of the DebounceEvent library. Delete your copy (under My Documents/Arduino/libraries) and install the new one from this URL: https://bitbucket.org/xoseperez/debounceevent/get/2.0.0.zip

@xoseperez
Copy link
Owner Author

About the debug log: try uncomenting the DEBUG_PORT line in the code/espurna/config/arduino.h file:

//--------------------------------------------------------------------------------
// General
//--------------------------------------------------------------------------------

#define DEBUG_PORT              Serial

@xoseperez
Copy link
Owner Author

Original comment by f-fish (Bitbucket: f-fish, GitHub: Unknown):


Ah that makes sense - all my building was done with platformio, so debug was enabled by default.

Later Ferdie

@xoseperez
Copy link
Owner Author

Original comment by Dieter Langens (Bitbucket: nettworker, GitHub: nettworker):


New DebounceEvent Library installed, but once more Compiling Errors:

Arduino: 1.8.0 (Windows 10), Board: "Generic ESP8266 Module, 80 MHz, 40MHz, QIO, 115200, 1M (128K SPIFFS), ck, Disabled, None"

button:97: error: 'DebounceEvent' does not name a type

exit status 1
'DebounceEvent' does not name a type

@xoseperez
Copy link
Owner Author

Are you sure it's properly installed?

@xoseperez
Copy link
Owner Author

Original comment by Dieter Langens (Bitbucket: nettworker, GitHub: nettworker):


Yes, checked it multiple times.
Also added the library manually to the code....

button:98: error: 'DebounceEvent' does not name a type

exit status 1
'DebounceEvent' does not name a type

@xoseperez
Copy link
Owner Author

I have found the problem. The Arduino IDE does a very poor job generating prototypes for methods with non-standard argument or return value types...
It should be solved adding these two lines to the code/espurna/config/prototypes.h file:

#include <DebounceEvent.h>
DebounceEvent::TDebounceEventCallback buttonCallbackProvider(unsigned int index);

Will be fixed in 1.6.8.

@xoseperez
Copy link
Owner Author

Closed by mistake, sorry.
Can you check with version 1.6.8?

@xoseperez
Copy link
Owner Author

Original comment by Dieter Langens (Bitbucket: nettworker, GitHub: nettworker):


It works....
Compiling & Debugging :)
Thx

@xoseperez
Copy link
Owner Author

And do you have access to the web interface?

@xoseperez
Copy link
Owner Author

Original comment by Dieter Langens (Bitbucket: nettworker, GitHub: nettworker):


Yes :)

Tested on Sonoff Pow and Basic....

@xoseperez
Copy link
Owner Author

Nice! Closing :)

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