-
Notifications
You must be signed in to change notification settings - Fork 23
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
Sync with sample stuffing #69
Conversation
custom board driver ma120x0 is broken esp dsp is now IDF managed component mdns is now IDF managed component Signed-off-by: Karl Osterseher <[email protected]>
Signed-off-by: Karl Osterseher <[email protected]>
Signed-off-by: Karl Osterseher <[email protected]>
Signed-off-by: Karl Osterseher <[email protected]>
* Updated Docker Command for IDF5 + macOS instructions
use sample stuffing / removal to keep up sync Signed-off-by: Karl Osterseher <[email protected]>
- add default values in menuconfig for ADAU1961 - remove bug in main resulting in failed i2s aquisition Signed-off-by: Karl Osterseher <[email protected]>
Signed-off-by: Karl Osterseher <[email protected]>
Signed-off-by: Karl Osterseher <[email protected]>
Signed-off-by: Karl Osterseher <[email protected]>
…log messages - improve on usable flash size - add support for lyratd msc V2.1 board - add support for lyratd msc V2.2 board - add support for korvo du1906 - do a little code clean up Signed-off-by: Karl Osterseher <[email protected]>
Signed-off-by: Karl Osterseher <[email protected]>
- code clean up Signed-off-by: Karl Osterseher <[email protected]>
Add DAC TAS5805M as custom board * New menu for inverting I2S signals * Updated Docker command for IDF5 + macOS instructions
@alexyao2015 I am trying to merge your recent changes regarding AI thinker board. In this branch there has been an IDF upgrade to v5 but also an ADF upgrade and I am unsure how to proceed now. I resolved most conflicts but have commented out some of your changes. Could you please try this and see what needs to be changed / added to make your changes work with the new ADF base? |
Signed-off-by: Karl Osterseher <[email protected]>
Signed-off-by: Karl Osterseher <[email protected]>
@unknown0816 @alexyao2015 Could one of you please try this with AI thinker board and confirm it works? I'd really like to go on with the merge. |
Signed-off-by: Karl Osterseher <[email protected]>
I haven't had a chance to try it yet sorry! |
Ok, sorry to push this. I thought nobody saw it as there was no reaction at all ;) glad to read you are still in |
I will try this today. I will come back to you, soon. |
Sadly I'm unable to get my docker running.. With my old version from idf v.4.3.5 I get the message that I must use v5 of idf. Using the newer versions I get the message, that cmake cannot be found. Can you help me getting the idf running? |
do you mean that CMakeList.txt isn't found? I had that problem too due to providing the wrong path on the host to the -v argument. Maybe check the content of the /project folder in the interactive container shell to verify that this is not the case. I was just able to start the build of this branch with the commands provided in the readme. |
Thanks for the info. My problem actually was an old build directory with a reference to an old cmake version. I could flash to the AI thinker and I found two issues. |
Thanks for taking the time. There is a define in boarddef.h called PA_GAIN or similar. Could you try to play with that? Also the noise was present for my lyrat too but was gone once playback from server started even if stopped again. I think this is another issue which I haven't found yet, not related to that specific board. |
@anabolyc s3 should work with sample insertion but not apll tuning as it doesn't have apll as far as I know |
Whats going on here? Can you add the element count of the queue to the "resync 1" log message? Also I don't see any improvement of RSSI, is this with external antenna and if so did you disconnect the internal one orare they now both connected? Because most of the time this will be a bad idea for sensitivity.
What exactly do you mean with that? I can't see any reason for the reset in the logs. The buffer shown in the logs is still 1000ms?! Could you try setting it to 2000ms? |
@CarlosDerSeher .. you checked the wrong log see here There is something like this:
I will check it again with master. If I remember correctly... I didn't saw that behaviour. |
Ok, sorry. Didn't download the new file (same name). Rssi is good then... Can you add the queue fill status to rssync 1 message?
This is strange too. Why are you getting this message twice? Could you try running original snapserver? |
Hello @CarlosDerSeher , I will try it in the next days. Sorry for the delay. Today morning I tried it briefly and the hard-resyncs are happening only once. I tested it at a different location. So might be an WiFi issue. I mentioned it - WiFi mesh and esp32 is a mess. I used the original snapserver the music comes from MusicAssistant (do you have the time to install it? Via docker it takes only a couple of minutes) Changing the tracks is working. But I tested it only 2-3 times. So give me some Could you please link the variable I should print? |
Please add this |
Maybe it has something to do with this part of the code. Please also print There is also an issue (#76) which could be related to your problem. |
I will do that. Might take some days.. ;-) |
add PT8211 audio board definition add I2S MSB format option
@CarlosDerSeher .. I tested now again with the default webserver. It's a lot better but not perfect (I can't say if it's a WiFi issue or bad power supply) ... Currently my Buffer is 5000ms. I think we can merge it. If you want I can to a test with current master. If you want a more detailed test. Edit: Some times I still get this message twice: I think it might be related to my setup. Could you verify on your side that it doesn't happen? |
I'll try this weekend but i am 99% sure I've never seen this |
Maybe we should define some test environment (docker?!) so we can be sure everybody got the same conditions while testing before a merge, especially if it is such a big one |
Yes definitely.. I like my setup because it is really easy to setup (one docker image) which includes snapserver and a centralised music library. Tell me your thoughts. If you need more information about it let me know. Maybe 2 different setups? |
Let's continue this discussion at #81 |
What about and |
Not yet. I hadn't the time. I did an intense A/B testing for the server side. So my results are:
I will do some more testing if it's WiFi , power supply or just magic why the resyncs are so sporadic. |
Alright sounds to me it is actually server / setup related then. As it works for me and @LeoSum8 I'll assume all is alright with the code and do the merge when I find the time |
Take your time - I will do some more testings if the resyncs can be provoked by a specific situation |
This is a confirmed behaviour on the server side. The music assistant server restarts at every track the stream. FYI. |
Ok so all is good on your side. There is still another issue #82 related to ethernet. Hopefully this will resolve itself soon, as all is good for my setup. |
Great. Let's see. Maybe you add also the WiFi improve feature? So @anabolyc has to update his webinstaller only once? |
Yes this is the plan. Maybe I'll do it first and merge all together I don't know yet |
* port official example of ethernet for IDF v5.x * Fix cmake if guard for ethernet Signed-off-by: Karl Osterseher <[email protected]> Co-authored-by: whc2001 <[email protected]>
@DerPicknicker I've merged just now. Hopefully it will build without issues now, it should though. I don't have time now to test it. improv is in the pipe too but there were some conflicts which I want to examine before merging |
@CarlosDerSeher ... Cool. I will test it as soon as I can find time. I have to install my dev Environment again. Let's see if I can test it until next week. |
In the meantime I compiled for lyrat v4.3 and it seems to run fine |
* upgrade to IDF v5.1.1 * add new synchronization implementation, use sample stuffing / removal to keep up sync * use big DMA buffer for I2S and improve sync * Add DAC TAS5805M as custom board * add wifi credential reset o press reset button (nRESET pin) 3 times but wait about 1s between button presses the button press counter is reset 5s after boot * Add support for PT8211 DAC (CarlosDerSeher#78) * upgrade ethernet interface to IDF v5 (CarlosDerSeher#84) * port official example of ethernet for IDF v5.x * Fix cmake if guard for ethernet Signed-off-by: Karl Osterseher <[email protected]> Co-authored-by: DerPicknicker <[email protected]> Co-authored-by: whc2001 <[email protected]>
Also upgrade to idf5