Commit Graph

65 Commits

Author SHA1 Message Date
Sebastien
2ab14d62be Merged with httpd - work in progress 2020-03-10 17:27:06 -04:00
Sebastien
39058213fa Merge remote-tracking branch 'origin/httpd' into master-cmake
Conflicts:
	.cproject
	.gitmodules
	.project
	.pydevproject
	.settings/language.settings.xml
	.settings/org.eclipse.cdt.core.prefs
	components/cmd_i2c/CMakeLists.txt
	components/cmd_i2c/cmd_i2ctools.c
	components/cmd_i2c/component.mk
	components/cmd_nvs/cmd_nvs.c
	components/cmd_nvs/component.mk
	components/cmd_system/cmd_system.c
	components/cmd_system/component.mk
	components/config/config.c
	components/config/config.h
	components/config/nvs_utilities.c
	components/display/CMakeLists.txt
	components/driver_bt/CMakeLists.txt
	components/driver_bt/component.mk
	components/raop/raop.c
	components/services/CMakeLists.txt
	components/squeezelite-ota/cmd_ota.c
	components/squeezelite-ota/squeezelite-ota.c
	components/squeezelite-ota/squeezelite-ota.h
	components/squeezelite/component.mk
	components/telnet/CMakeLists.txt
	components/wifi-manager/CMakeLists.txt
	components/wifi-manager/dns_server.c
	components/wifi-manager/http_server.c
	components/wifi-manager/http_server.h
	components/wifi-manager/wifi_manager.c
	components/wifi-manager/wifi_manager.h
	main/CMakeLists.txt
	main/console.c
	main/esp_app_main.c
	main/platform_esp32.h
2020-03-10 13:55:22 -04:00
Sebastien
879272dfe4 idf.py app now builds both squeezelite and recovery in a single pass 2020-03-09 23:47:15 -04:00
Sebastien
c97f9e2c59 retrofit to gcc8 2020-03-04 13:01:24 -05:00
Sebastien
4f72f284ce Additional messages added to messaging bus, increase dft size 2020-03-03 11:42:25 -05:00
Sebastien
e19c9e12dc memory leak fixed 2020-02-24 16:14:17 -05:00
Sebastien
d4576bbdd4 httpd implementation - wip 2020-02-21 15:16:54 -05:00
Sebastien
8c3a52d40c added ability to upload new firmware from the browser. 2020-02-14 13:33:50 -05:00
sebastien
e6bad26ef0 Merge remote-tracking branch 'origin/master' into httpd
Conflicts:
	components/wifi-manager/http_server.c
2020-02-04 22:44:34 -05:00
philippe44
dfebb8ceb6 Add set_GPIO, handle GPIO 36/39 bug 2020-02-01 01:56:06 -08:00
Sebastien
b680999e62 Merge branch 'master' into httpd
Conflicts:
	components/wifi-manager/http_server.c
	components/wifi-manager/wifi_manager.c
	main/config.c
	main/config.h
2020-01-22 15:13:18 -05:00
philippe44
450943735b add display + some refactoring 2020-01-10 12:32:50 -08:00
philippe44
daef63fdea more refactoring
- jack & led moved to services
- output_i2s subscribes to jack detection
- add user-defined debounce timer to buttons
2020-01-08 19:09:53 -08:00
philippe44
26ecdf60d9 refactor services, increase max sockets - release 2020-01-06 16:08:15 -08:00
philippe44
d301a2d9df JACK_LEVEL correction for real 2020-01-04 13:34:55 -08:00
philippe44
aa6aed2164 correct JACK_GPIO 2020-01-04 13:32:31 -08:00
Sebastien
87255733a5 WIP httpd - saving current work. likely won't compile right now! 2019-12-12 11:33:58 -05:00
Sebastien
3929f3e809 Work in progress - move to httpd 2019-11-26 08:29:19 -05:00
philippe44
b62872ad78 BT & AP volume equalization, TAS5780 support 2019-11-23 19:04:59 -08:00
Sebastien
29242c63b9 Fix UI reboot to OTA/Recovery button - release 2019-11-20 14:56:06 -05:00
Sebastien
4369614bb4 Bug Fix: OTA now works from the Squeezelite app partition - release 2019-11-13 17:16:57 -05:00
Sebastien
e9ba659b4f Refactor configuration. needs new recovery image! -- release
In order to use this new release, it is recommended to erase the flash
and replace the recovery partition with one that is at least at this
level.
2019-11-07 14:00:16 -05:00
Sebastien
cdbb198d8a enhancement: new "config" module to access configuration in RAM
This is to allow moving some tasks/stack memory to SPIRAM, saving on
precious IRAM. HTTP server should also be more responsive.
2019-11-06 23:31:13 -05:00
Sebastien
114d507e3f Added taskYield after wifi start 2019-11-04 15:01:56 -05:00
Sebastien
512c7d7722 Even more more logs. Removed references to the old wifi-manager struct 2019-11-04 14:46:51 -05:00
Sebastien
21ae78f499 Even more logging 2019-11-04 14:33:14 -05:00
Sebastien
9665e6485a Don't turn on AP mode if connect was initially a success. 2019-11-03 16:44:45 -05:00
Sebastien
9c9fe3e0bf fix boot loop caused by competing wifi_manager and cmd_wifi
It is now possible to set a default autoexec command to automatically
join wifi when wifi_manager is disabled. To test wifi stability without
wifi_manager, use the following commands:

nvs_set bypass_wm str -v "1"
nvs_set autoexec str -v "1"
nvs_set autoexec1 str -v "squeezelite -o I2S -b 500:2000 -d all=info -m
nvs_set autoexec2 str -v "join <ssid> <password>"
ESP32"
restart

Note that squeezelite occupies the "autoexec1" slot to avoid conflicts
with the wifi manager web configuration page when it is re-enabled. To
re-enable the wifi-manager, use the following commands:

nvs_set bypass_wm str -v "0"
restart

--
Additional change:  Credits page now has a button to enable the nvs
editor even in ota mode
2019-11-01 09:50:05 -04:00
Sebastien
2ed8b50fbe allow bypassing the wifi manager
to disable wifi manager, use command:  nvs_set bypass_wm str -v "1"
to enable wifi manager, use command:  nvs_set bypass_wm str -v "0"
2019-10-31 17:42:45 -04:00
Sebastien
9f3f9bfbd2 Fix: don't delete AP details when connect fails. 2019-10-31 16:57:38 -04:00
Sebastien
8af0330f61 complete wifi-manager refactor. WIP. needed: make erase_flash.
This is NOT compatible with previous binaries.  Make sure that the
squeezelite binary used is in line with that recovery partition.
2019-10-31 16:20:14 -04:00
Sebastien
113e7be398 stability improvements 2019-10-29 19:02:40 -04:00
Sebastien
eb4a97a98c Improve WiFi connection management. 2019-10-29 17:13:47 -04:00
Sebastien
ec293f8258 Fix reboot caused by starting scan while wifi is connecting. 2019-10-28 23:24:14 -04:00
Sebastien
e4374f8554 New AP list implementation
- AP List now uses cJSON, which should be more robust than sprintf.
- Max number of access points reported now aligned with espressif's max.
- WiFi logs no longer suppressed by the wifi_manager
2019-10-28 15:04:08 -04:00
Sebastien
d4315f29ca OTA + nvs parameters bug fixes 2019-10-15 21:01:22 -04:00
sle118
47f24dbbfd cJSON stability WIP - nobuild 2019-10-15 14:10:19 -07:00
sle118
2944f51eec Improve status.json 2019-10-08 20:29:32 -07:00
Sebastien
d2f17f5b05 Update status.json message format: add severity 2019-10-03 23:27:28 -04:00
Sebastien
24c473588a bug fixes 2019-10-03 16:00:43 -04:00
Sebastien
39ab188e5d Resolve Jenkins build issues 2019-10-03 14:40:24 -04:00
Sebastien
b6f1ce9a7a NVS Refactor ** Factory+Squeezelite FLASH required for this branch!
This is a major refactoring of the nvs parameters storage. To support
this, a new partition was added. To start using this branch, one must
flash all binaries and possibly re-configure the system.
2019-10-03 14:15:59 -04:00
Sebastien
4ca8bf2e76 Jenkins build fix 2019-10-02 16:48:53 -04:00
Sebastien
ee0415dabf Improve OTA speed, fix status JSON buffer overflow 2019-10-02 16:04:41 -04:00
Sebastien
18f36b5433 Improve UI status handling during OTA 2019-10-02 12:16:10 -04:00
Sebastien
f3ae2f54a1 troubleshoot reboot-add traces to Wifi_Manager 2019-09-30 21:15:26 -04:00
Sebastien
4a79a39d3c Major refactoring. OTA Works now (yes, yes... really works! ) 2019-09-30 16:22:58 -04:00
Sebastien
0ab1cd438b Full OTA refactor and other stability improvement 2019-09-29 21:12:02 -04:00
Sebastien
17847a125c More OTA changes, new build target 2019-09-28 23:11:32 -04:00
Sebastien
e45ee97a43 Fix ota percent update for ui 2019-09-28 14:41:11 -04:00