-
-
Notifications
You must be signed in to change notification settings - Fork 285
Audio breaks when playing https #125
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
Comments
You could try to use a separate FreeRtos Task to make sure that delays in the loop are not impacting the audio output. |
I have done that but it doesn't help. Same issue as before. Something I notest before was when I cut the power of the i2c keypad module the music stops. And when I plug it back in the music continues. |
I think the problem is the old version of wire library. The last update is since 2017. I tried to use the wire.h from the v2.0.0, but I got a lot of errors. |
The latest version of the ESP32 Arduino library is 2.0.2. |
I still have the v1.0.6. I am checking the https://github.com/espressif/arduino-esp32/commits/master/libraries/Wire/src but I can't find any major changes that could lead to this issue yet. I am sure it is not a power issue, I double checked and I have 2.5A power supply on the micro usb of the esp. It all started when I have added the I2C module. |
Maybe this is on Commits on Nov 19, 2018 espressif/arduino-esp32@deaf339 What do you think? |
I tried, but it diden't work. And out of what I can see it is not a timing problem, it was also not with the spi... Idid some measurements. What I think is that there can not be an other transaction be established when the audiotools is buzzy. It confirms with what I find out with the spi transaction too. But than it would occur on low bitrates too, but it is not for the i2c. |
A am afraid that I did never use my framework together with a I2C device.
|
Yes, but no result.
Not yet. I will do. |
I can not edit the sdkconfig.h in the Arduino environment. |
Hmm, I think for this parameter it should work. With one of the early 2.0 releases I was getting exceptions and after changing this parameter it went away... |
Diden't know that. I am still stuck on the earlier version of Arduino and not planning to change that in a short amount of time. I will continue with the direct interface to the esp for now. |
I had issues with esp32 and a long wire to connect a keypad. Now I m going to implement the I2C keypad again and do what you told me when I was testing with 1.0.6 and couldn't, now I'm installing now 2.0.2. I have updated to 2.0.2 but I still can't edit the sdkconfig.h in de arduino environment... |
There is a comment on top of the document...
The only place I can find the CONFIG_DISABLE_HAL_LOCKS is in the wire.h as a condition. So I will manualy added to my shetch before Wire.h. It works... but do I have to add a task like this now, a side of my task of the audioplayer?
Because I see it is a SemaphoreHandle_t... |
Wait, I found some issues in my shetch of the keypad and wiring. I will comeback when I have cleared it out. |
Is The latest version of the ESP32 Arduino library is 2.0.2 now supported? Having some issues but I diden't update audiotools yet. Having some errors on updating on a windows7 so I am carefull with that. |
The only thing which is not working is the Analog Output. |
I m testing now with only the url player and it seems to work in the first look. but I get al lot of special characters in my serial monitor when I start
|
Then it's time to upgrade my library. |
Ok, I will do. |
Hellix to? It is not in the url player I see but I will test that too. |
I am note sure, but I would say yes to be on the save side... |
I did it and it is working now and my first impression is that it works smoother, exept the https stream... I m still investigating. The unknown characters are gone. After updating I get an error
|
This should only happen if you have a #define USE_LAME or #define USE_DECODERS somewhere |
yes I did define use_lame because my mp3 player plays a lot of files with the lame codec. But I m programming only on the url player so I supose that is used only with the sd player... |
So is liblame not installed on your machine? |
Hmmm, that's new. It for encoding I see. On the mp3 player I decode I think. Not? More https stream fails than before, not sure what changed... |
Right, liblame is for encoding (to create mp3). |
after a time it stops, or maybe it esp now that keeps pending. |
No, I think it is still the I2C keyboard that causing this. |
This is why it reboots all the time when I push a button to change the station
I am sending an esp now command evry time I change the station so I m not sure what it is now. The esp now of the I2C command. I think the esp now... |
It is sure now, the burnouts comes for sure when I call player.copy() on the first boot. I have that since I have updated the Arduino espressif to 2.0.2. ANd it has nothing to do with the I2C keypad or the esp now. I testit it out. |
I guess you mean Brownout ? It seems that you have problems with your power supply... |
Yeah brownout. Its getting much to follow. I will try to connect directly to the power supply and see what it does. |
No reboot anymore, but when I press a key the music stops every second and start back. But no action is couple to the pressed key. And after a time the music stops. It works beter connected to the computer. |
Running on core 0 won't help. There is something wrong in player.copy() together with the sdk 2.0.2.
The first time it runs and brownout, the second time it runs. I measured the voltage drop, and there is as much on the second time as on the first. Only when I leave out the player.copy() or the player gets active, it stops brownout on the first run. |
This comment was marked as off-topic.
This comment was marked as off-topic.
After changing the way of wifi connecting I get an other message for this link...
after changing the delay in the loop I see a change. Strange that when I leave player.copy() out it doesn't crash anymore... My deception decoder doesn't work anymore after updating, so for the moment I can not give further details Guru Meditation Error: Core 0 panic'ed (LoadStoreError). Exception was unhandled.
|
Key might consider to handle the keys in a separate task. This should prevent that it has any negative impact on the audio processing. |
I have enabled the logger and here is where it stops. Hope you are something with it...
afther changing the mp3 decoder size back to the original
After deleting icyurl.h
|
Yes, we can't write 4294967295 bytes... |
There is no sound coming out of the spreakers but he keeps copying, not sure what is wrong... |
I was wrong the sound that is coming out falters. I have tested on my installation and I there I have the same issue, and thats where my spreakers are connected. |
I always used http and never https. |
The http from belgium that I have are working, if that is what you mean... To bad that the https don't work anymore. |
Can you give me a URL to try on my side. I am working with 2.0.3-RC1 |
I am trying now the shetch from the example slightly modified. And delaying a little the loop causes a reset. the music starts falters. That wasn't before that fast... And you are right it is only with https streams.
delete the delay and it works for that url... less offend the music falters. After a long time suddenly the music stopted, but the good news is that it diden't crash (but not always). And after a long time it start suddenly playing again and KEEPS PLAYING. Could it be there is something with the read bytes? I have enabled the log of the esp32 platform librarys and I diden't get any messages about an error. |
if I enable debug logger of audio tools I get the same message
ps: Https stream are very importent to me because I don't have some links in http. I have modified my previous comment about the testing of the example soo please read again |
I tried with 2.0.3-RC1 and noticed also that from time to time that are some short breaks... |
The first time it did restart with me and I get this message after increasing the I2C buffer
after that it diden't break anymore. |
If I connected to the external power supply, id didn't happen. |
I will update audio tools now for testing the https fails. |
Yes, it works. |
Hi,
You know I had some problems before by using the spi library simontainusly with audiotools. We solved the issue, but I couldn't use the spi when I was playing a song, but I could work arround that.
Now I having issues by adding a i2c pcf8574 expander board for a keypad that is using the wire.h library. When I play songs with a low bitrate the songs play well, but when I have songs with a bitrate of 320kbps than the music stops for a second and continue. I have done everything I could in my opinion on the side of the wire library.
I need to read that keypad when the music is playing... Is there something more I could do on the side of the autotools?
The text was updated successfully, but these errors were encountered: