colorchord icon indicating copy to clipboard operation
colorchord copied to clipboard

Where is settings.h?

Open bbkiwi opened this issue 7 years ago • 10 comments

Looking forward to trying the new version, but ... user/custom_commands.c:7:22: fatal error: settings.h: No such file or directory #include <settings.h>

bbkiwi avatar Jun 23 '17 04:06 bbkiwi

whoops. I'll get that tonight!

cnlohr avatar Jun 23 '17 17:06 cnlohr

Actually what happens if you try compiling without it? I thought I ditched it?

cnlohr avatar Jun 23 '17 17:06 cnlohr

I commented out the two includes fo settings.h and compiles and runs!!! And seems to be working well. Some slightly unusually behaviour for me but not serious.

  1. When connect to station via gui, the chip reboots twice, second time with wdt, but then connects and remembers.
  2. GPIO0 0 restores to station if in station mode and restores to AP is was in AP mode. I thought it was always supposed to start an AP (I've not yet looked at the new code.
  3. In station mode scan for wifi finds nothing for me (should it find the station is is connected to?, the only other stations are very weak).
  4. In AP mode scan for wifi does not find anything (even the home station which is very strong), it then attempts to go back to the SoftAP mode, but fails. If I RESET it then makes AP.

Here is COM9 monitor output (115200baud). Lines with *** are my comments. output.txt

bbkiwi avatar Jun 24 '17 04:06 bbkiwi

How does this compare to the regular ESP82xx behavior? Is it different? Also I need to check these things myself. I always configure APs manually instead of scanning so I didn't test that.

GPIO0 should revert back to ESP_XXXXXX. If it does not. BUG!

I don't really understand what's up with the extra reboot issue on Colorchord. Need to determine more by testing there.

cnlohr avatar Jun 24 '17 17:06 cnlohr

Hi, The regular ESP82xx behavior is different. No extra reboots when switching to station mode. Also switches to AP with GPIO00.

Still problems related to scan and switching to AP. Will raise the issue on esp82xx

Will put these files there too. output esp82xx test.txt output esp82xx test2.txt

bbkiwi avatar Jun 25 '17 00:06 bbkiwi

I have a version of cc/embedded8266 that incorporates my extra features and uses the new esp82xx. I borrowed a bit of @cnlohr code that stops the resetting loop when switching to a station, and some of @king2 ideas to create some more space. Still has funny behaviour of booting twice to connect to station. Also the oscope does not have any interference (no mic hooked yet).

https://github.com/bbkiwi/colorchord/tree/esp28xx21e2

bbkiwi avatar Jun 25 '17 07:06 bbkiwi

On trying your changes today (xtensa 4.8.2 and esp_iot_sdk_v1.5.2) on a few systems my first observation is that your setTimeout( WifiDataTicker, 500 ); near line 428 is lower than recently suggested.

I have been using requestTimeout( WifiDataTicker, 12000 ); instead. A more sophisticated approach would be an interruptible "tail" of the WIFI output.

pjmole avatar Jun 27 '17 19:06 pjmole

@bbkiwi if there's any way for us to swap the configuration system, I would be willing to consider accepting your merge. This raises a question as to if my tree could be merged into yours, then you can PR yours back to mine?

cnlohr avatar Jun 27 '17 20:06 cnlohr

Hi Charles,

I don't think it is ready yet and needs some more testing.

  1. Some of the glitches are related to esp82xx and I'd like to sort out those problems.
  2. There is some instability with the ADC that crops up with my changes, BUT it also seems to be there with your latest commit too. (I will raise the issue).
  3. Some of the features I introduce are redundant and will be changed soon. Your new config system creates more space but I am not sure if it enough. By using ICACHE_FLASH_ATTR in a few more places I've got plenty of room, but I don't yet know if this is going to cause other problems which I have not observed.
  4. I can try and make separate PR for some of the bits such us fixing sort,
  5. Also some of the changes were to colorchord2, do you want those?

bbkiwi avatar Jun 28 '17 03:06 bbkiwi

Oh Yeah more Testing.... I am a testing clown, I got a tp-link for an access point soley for travelling demonstration of colorchord's capability's. Right now 3 function wemos, and four I seem to have fried 3.3v regulators DUH!!

Last night i noticed the router claimed I needed stronger encryption for 11n. This led to a world of hurt, ... could not seem to get any other than WEP working..

My test equipment tp-link TL-WR810N + trendnet 651WI camera no wan

PI-3 for development kobo for portable display or fullscreen HDMI even for stereo I have concluded you need 3 colorchords, now with 3pin cjmc 20db gain mics

so test procedure..?? I am unsure of acceptible wi-fi security settings, are there any performance concerns. I play fast and dirty with the javascript side, expecting the command interface to be compatible. I never do erase_flash until completly frustrated. whooo2017-06-28_08 19 49

now going to do complete restart.

pjmole avatar Jun 28 '17 12:06 pjmole