ESP32-audioI2S icon indicating copy to clipboard operation
ESP32-audioI2S copied to clipboard

audio fails in some positions

Open lidense opened this issue 1 year ago • 4 comments

I have a webradio using this nice library running on an M5stack Core2 with a small external DAC hooked to an amplified speaker with a cable audio jack 3.5. This device works well for the dozen or so mp3 or HLS radios stations that I have in my platformio sketch but in certain positions sound stops or runs intemittently with a period of about 1 sec. If I move the device in a different position it goes back to working. It doesn't seem to be a bad contact because the device and its DAC are held steady in a box. Wifi signal seems to be sufficient.
It reminds me of issues like going into some kind of resonance or interference in certain positions, any idea? Thanks

lidense avatar Jun 03 '24 16:06 lidense

...the terminal gives this error message when the above happens: [ 80634][E][Wire.cpp:513] requestFrom(): i2cRead returned Error 263

lidense avatar Jun 04 '24 07:06 lidense

[ 80634][E][Wire.cpp:513] requestFrom(): i2cRead returned Error 263

I2C is probably used for communication with an external DAC? I have no idea, maybe an ACK problem.

If dropouts occur with HLS, which is quite possible, you can double the DMA buffer. While a new data packet is being fetched and decoded, the DMA must bridge the time. Unfortunately, the DMA in the ESP32 is very small.

schreibfaul1 avatar Jun 04 '24 19:06 schreibfaul1

OK, thanks. Regards

----- Mail d'origine ----- De: Wolle @.> À: schreibfaul1/ESP32-audioI2S @.> Cc: lidense @.>, Author @.> Envoyé: Tue, 04 Jun 2024 21:58:13 +0200 (CEST) Objet: Re: [schreibfaul1/ESP32-audioI2S] audio fails in some positions (Issue #760)

[ 80634][E][Wire.cpp:513] requestFrom(): i2cRead returned Error 263

I2C is probably used for communication with an external DAC? I have no idea, maybe an ACK problem.

If dropouts occur with HLS, which is quite possible, you can double the DMA buffer. While a new data packet is being fetched and decoded, the DMA must bridge the time. Unfortunately, the DMA in the ESP32 is very small.

-- Reply to this email directly or view it on GitHub: https://github.com/schreibfaul1/ESP32-audioI2S/issues/760#issuecomment-2148316555 You are receiving this because you authored the thread.

Message ID: @.***>

lidense avatar Jun 05 '24 13:06 lidense

what is the maximum size of dma? And of dma count? Thanks

lidense avatar Jun 05 '24 20:06 lidense

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Jul 06 '24 02:07 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Jul 20 '24 02:07 github-actions[bot]