-
Notifications
You must be signed in to change notification settings - Fork 91
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
Sleep Mode #405
Comments
Hi Dear valera39! |
Hi Dear clear-sky! |
clear-sky, I think a remote like this would be perfect for the radio. |
Hi Dear valera39 ! |
Hi Dear Wolle! |
There will be a new version in which this and other errors are eliminated. If I change something in the master now, I have problems transferring the dev branch via PR. Please be patient. |
Thanks, I just thought you hadn't noticed the error. |
Hi Dear Wolle! ESP32 Chip: ESP32-S3 00:00:00 |
fix wrong coredump size in 4MB partition
BT Emitter PowerOn (ESP32-S3) #405
This is a good idea. There is an AT command which switches off the BT emitter "AT-POWER_OFF". But there is none to switch it on. This can be done with the button on the board or with a short "H" pulse at the Connect input. |
Hello Wolle, Anyway.¸.. Thanks again. |
With the ESP32, GPIO12 would be free, this is a "strapping pin" and must be pulled to GND at startup. GPIO12 is therefore hardly applicable (possibly for the display backlight?) The pin for IR is "input only". |
Yes , now i remember why during my test, i stopped working with pin 35. |
Perhaps GPIO12 can be used for TFT_BL. I haven't tried it, but then GPIO32 would be free for BT-CONNECT. |
Hello Wolle, Use a SPST Latched Switch. Here is my idea of sequence of operation using 2 GPIO.
Many thanks... |
Hi Dear Wolle! |
The idea is good |
Hi Dear Wolle! |
This requires another setting option. Another idea would be to use a photodiode to control the brightness depending on the ambient light. But unfortunately there is no free pin on the ESP32. |
Great idea with the photodiode, it can be used for esp32s3 which has free pins. Shall we try it? |
A photodiode is probably not the right solution after all. There are too many with different properties or characteristics. I think a brightness sensor would be better, preferably with I2C. I will first see what is available on the big online platforms, the sensor must be available everywhere at an affordable price. |
For example, you can use the available GY-302 BH1750 Light Sensor |
Hi Dear valera39! |
clear-skyHey! |
This issue is stale because it has been open for 30 days with no activity. |
This issue was closed because it has been inactive for 14 days since being marked as stale. |
Hi Dear Wolle!
![IMG_20240426_235321](https://private-user-images.githubusercontent.com/96370186/326124257-6c451fb7-30bf-4b51-af5b-a9cbb85cbff1.jpg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzODk4MzksIm5iZiI6MTczOTM4OTUzOSwicGF0aCI6Ii85NjM3MDE4Ni8zMjYxMjQyNTctNmM0NTFmYjctMzBiZi00YjUxLWFmNWItYTljYmI4NWNiZmYxLmpwZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEyVDE5NDUzOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTg4MzUyZDMxYzgxYTVmMThkOWE5OTdlZGRjZWU2MTFiYjMwZDdkNzdkOWMzMjVjNzY2Mjk4NDRhZjc2ZjNiYzAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.7MloqE6GbtnXhj6w0OCTfgAbtolI2toC90A880gFJKY)
When you put the radio into sleep mode using the button on the remote control and then exiting it by pressing the same button, the radio reboots with this image
port monitor:
Esp32ExceptionDecoder:
disabling, firmware at C:\Arduino\ESP32-MiniWebRadio.pio\build\esp32s3\firmware.elf does not exist, rebuild the project?--- Terminal on COM5 | 512000 8-N-1
--- Available filters and text transformations: colorize, debug, default, direct, esp32_exception_decoder, hexlify, log2file, nocontrol, printable, send_on_enter, time
--- More details at https://bit.ly/pio-monitor-filters
--- Quit: Ctrl+C | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H
����x���x�x�x�xx��xxx�x��xxxxxx�x�x�xxxxx��xx�x�xxxxxxx��xx�x��xxx�x�xxx�xx�xx�xxx���xx�x�
ESP32 Chip: ESP32-S3
Arduino Version: 3.0.0
ESP-IDF Version: 5.1.3
MiniWebRadio Version 3.01f Apr 18/2024
ARDUINO_LOOP_STACK_SIZE 8192 words (32 bit)
FLASH size 8388608 bytes, speed 80 MHz
CPU speed 240 MHz
SDMMC speed 80 MHz
TFT speed 40 MHz
PSRAM total size: 8388608 bytes
RESET_REASON: Reset due to power-on event
00:00:00
00:00:00 ***************************
00:00:00 * MiniWebRadio V3 *
00:00:00 ***************************
00:00:00
00:00:00 setup: .... Arduino is pinned to core 1
00:00:00 tft_info: . init ILI9488
00:00:00 setup: .... Init SD card
00:00:00 setup: .... SD card found, 3761.6 MB by 3781.5 MB free
[ 856][I][esp32-hal-ledc.c:131] ledcAttachChannel(): LEDC attached to pin 10 (channel 0, resolution 8)
00:00:01 setup: .... seek for stations.csv
00:00:01 setup: .... stations.csv found
00:00:01 setup: .... seek for WiFi networks
[ 2002][I][WiFiMulti.cpp:90] addAP(): [WIFI][APlistAdd] add SSID: ASUS_AC66U
[ 7878][I][WiFiMulti.cpp:134] run(): [WIFI] scan done
[ 7880][I][WiFiMulti.cpp:139] run(): [WIFI] 6 networks found
[ 7881][I][WiFiMulti.cpp:263] run(): [WIFI] Connecting BSSID: 2C:FD:A1:C2:44:F0 SSID: ASUS_AC66U Channel: 1 (-54)
[ 7884][W][STA.cpp:548] disconnect(): STA already disconnected.
[ 7975][I][WiFiMulti.cpp:283] run(): [WIFI] Connecting done.
00:00:07 WiFI_info: Connecting WiFi...
00:00:07 WiFI_info: mDNS name: MiniWebRadio
00:00:07 setup: .... connected to ASUS_AC66U, IP address is 192.168.1.130
00:00:07 ftpServer: Buffers allocated: 4622 bytes
00:00:07 rtime_info: Initializing SNTP
02:00:07 rtime_info: Waiting for system time to be set... (1/10)
23:51:51 rtime_info: 23:51:51
23:51:51 audiotask: is pinned to core 0
23:51:51 audiotask: priority is 2
23:51:51 setup: .... Number of saved stations: 92
23:51:51 setup: .... current station number: 41
23:51:51 setup: .... current volume: 3
23:51:51 setup: .... last connected host: https://radio.sweetmelodies.tk:8000/stream1
23:51:51 setup: .... connection timeout: 500 ms
23:51:51 setup: .... connection timeout SSL: 2000 ms
23:51:51 action: ... current volume is 3
23:51:51 WiFI_info: RSSI is -55 dB
[ 10919][I][ArduinoOTA.cpp:141] begin(): OTA server at: MiniWebRadio.local:3232
23:51:52 action: ... switch to station 41
23:51:52 AUDIO_info: Connect to new host: "https://radio.sweetmelodies.tk:8000/stream1"
23:51:52 AUDIO_info: PSRAM found, inputBufferSize: 638965 bytes
23:51:52 AUDIO_info: buffers freed, free Heap: 178160 bytes
23:51:52 AUDIO_info: SSL has been established in 384 ms, free Heap: 140040 bytes
23:51:52 StationName: Sweet Melodies
23:51:52 bitRate: 128Kbit/s
23:51:52 icy-url: .. https://sweetmelodies.tk/
23:51:52 AUDIO_info: AACDecoder has been initialized, free Heap: 140100 bytes , free stack 3228 DWORDs
23:51:52 lastURL: .. https://radio.sweetmelodies.tk:8000/stream1
23:51:52 AUDIO_info: stream ready
23:51:52 AUDIO_info: syncword found at pos 0
23:51:52 AUDIO_info: Channels: 2
23:51:52 AUDIO_info: SampleRate: 44100
23:51:52 AUDIO_info: BitsPerSample: 16
23:51:52 AUDIO_info: BitRate: 160207
23:51:52 AUDIO_info: AAC HeaderFormat: ADTS
23:51:52 AUDIO_info: AAC Codec: MPEG-4 LowComplexity
23:51:53 StreamTitle: Mantovani - I Write The Songs
23:51:53 Audiocodec: AAC
23:51:53 ftpServer: Ftp server waiting for connection on port 21
23:51:54 BT-Emitter: KCX_BT_Emitter not found
23:51:59 DLNA_server: [0] 192.168.1.1:8200 RT-AC66U_B1-44F0
23:52:00 DLNA_server: 1 media server found
23:52:02 ir_code: .. IR address 0x00, IR command 0x16
[ 23274][I][main.cpp:3224] ir_long_key(): long pressed key nr: 10
[ 23421][W][STA.cpp:157] _onStaArduinoEvent(): Reason: 8 - ASSOC_LEAVE
23:52:05 falling asleep
23:52:37 ir_code: .. IR address 0x00, IR command 0x16
23:52:37 awake
[ 56172][W][STA.cpp:548] disconnect(): STA already disconnected.
[ 57921][I][WiFiMulti.cpp:134] run(): [WIFI] scan done
[ 57922][I][WiFiMulti.cpp:139] run(): [WIFI] 4 networks found
[ 57924][I][WiFiMulti.cpp:263] run(): [WIFI] Connecting BSSID: 2C:FD:A1:C2:44:F0 SSID: ASUS_AC66U Channel: 1 (-56)
[ 57927][W][STA.cpp:548] disconnect(): STA already disconnected.
[ 58008][I][WiFiMulti.cpp:283] run(): [WIFI] Connecting done.
START WIFI
23:52:39 WiFi connected
23:52:39 AUDIO_info: Connect to new host: "https://radio.sweetmelodies.tk:8000/stream1"
Guru Meditation Error: Core 0 panic'ed (InstructionFetchError). Exception was unhandled.
Core 0 register dump:
PC : 0x3c247d74 PS : 0x00060830 A0 : 0x820a711c A1 : 0x3fcbe320
A2 : 0x3fcba6a8 A3 : 0x3c2fcaa0 A4 : 0x00000000 A5 : 0x00060a23
A6 : 0xb33fffff A7 : 0xb33fffff A8 : 0x8210c62c A9 : 0x3fcbe2e0
A10 : 0x00000010 A11 : 0x3c2fcaa0 A12 : 0x3fceecc0 A13 : 0x00000000
A14 : 0x00000000 A15 : 0x00000000 SAR : 0x0000001a EXCCAUSE: 0x00000002
EXCVADDR: 0x3c247d74 LBEG : 0x40056f5c LEND : 0x40056f72 LCOUNT : 0xffffffff
Backtrace: 0x3c247d71:0x3fcbe320 |<-CORRUPTED
ELF file SHA256: 11d0c1f7068867e1
Rebooting...
xxxxxxx�x�x�xxx�xxx���xxxx��x�xxx��xx�x�xxxxxxx�x�xxx�xxxxxx�xxxxxx�x��x�xx�xxxxxxxxxxxxxxxxxxxxxx�xx�xxx�x�������x�xxxxxx�xxxxx�x�x�xxx�xxx��x�xxxx�x�x�x�x�xx�xxxxxx�xxx�x�xxx�x�xx����x��x�xxx�x��x�x�xx����x���x�xxx�x�xx�x�xx����xx�x�xxx�x�xxxxx��xx���xx����x���x�x�x�x�xx��xxx�x��xxxxxx�x�x�xxxxx��xx�x�xxxxxxx��xx�x��xxx�x�xxx�xx�xx�xxx���xx�x�
ESP32 Chip: ESP32-S3
Arduino Version: 3.0.0
ESP-IDF Version: 5.1.3
MiniWebRadio Version 3.01f Apr 18/2024
ARDUINO_LOOP_STACK_SIZE 8192 words (32 bit)
FLASH size 8388608 bytes, speed 80 MHz
CPU speed 240 MHz
SDMMC speed 80 MHz
TFT speed 40 MHz
PSRAM total size: 8388608 bytes
RESET_REASON: Software reset due to exception/panic
21:52:39
21:52:39 ***************************
21:52:39 * MiniWebRadio V3 *
21:52:39 ***************************
21:52:39
21:52:39 setup: .... Arduino is pinned to core 1
21:52:39 tft_info: . init ILI9488
21:52:40 setup: .... Init SD card
21:52:40 setup: .... SD card found, 3761.6 MB by 3781.5 MB free
[ 863][I][esp32-hal-ledc.c:131] ledcAttachChannel(): LEDC attached to pin 10 (channel 0, resolution 8)
21:52:41 setup: .... seek for stations.csv
21:52:41 setup: .... stations.csv found
21:52:41 setup: .... seek for WiFi networks
[ 2009][I][WiFiMulti.cpp:90] addAP(): [WIFI][APlistAdd] add SSID: ASUS_AC66U
[ 7486][I][WiFiMulti.cpp:134] run(): [WIFI] scan done
[ 7488][I][WiFiMulti.cpp:139] run(): [WIFI] 6 networks found
[ 7490][I][WiFiMulti.cpp:263] run(): [WIFI] Connecting BSSID: 2C:FD:A1:C2:44:F0 SSID: ASUS_AC66U Channel: 1 (-52)
[ 7492][W][STA.cpp:548] disconnect(): STA already disconnected.
[ 7573][I][WiFiMulti.cpp:283] run(): [WIFI] Connecting done.
21:52:46 WiFI_info: Connecting WiFi...
21:52:46 WiFI_info: mDNS name: MiniWebRadio
21:52:46 setup: .... connected to ASUS_AC66U, IP address is 192.168.1.130
21:52:46 ftpServer: Buffers allocated: 4622 bytes
21:52:46 rtime_info: Initializing SNTP
23:52:46 rtime_info: 23:52:46
23:52:46 audiotask: is pinned to core 0
23:52:46 audiotask: priority is 2
23:52:46 setup: .... Number of saved stations: 92
23:52:46 setup: .... current station number: 41
23:52:46 setup: .... current volume: 3
23:52:46 setup: .... last connected host: https://radio.sweetmelodies.tk:8000/stream1
23:52:46 setup: .... connection timeout: 500 ms
23:52:46 setup: .... connection timeout SSL: 2000 ms
23:52:47 setup: .... volume is muted: (from 3)
23:52:47 WiFI_info: RSSI is -54 dB
[ 8519][I][ArduinoOTA.cpp:141] begin(): OTA server at: MiniWebRadio.local:3232
23:52:47 RESET_REASON:Software reset due to exception/panic
23:52:48 ftpServer: Ftp server waiting for connection on port 21
23:52:49 BT-Emitter: KCX_BT_Emitter not found
23:52:55 DLNA_server: [0] 192.168.1.1:8200 RT-AC66U_B1-44F0
23:52:55 DLNA_server: 1 media server found
23:53:05 WiFI_info: RSSI is -50
dB
Re-flashed with a full cleanup and re-downloaded the project again.
Thanks for your hard work and hope you will add FM radio soon. I think clear-sky will be happy too :)
The text was updated successfully, but these errors were encountered: