ESP32 Webradio
Re: ESP32 Webradio
Hi WiFive
Thanks for the hint - No no sign of an APLL enabled by that call. Parameter change did do something but not any thing deterministic - and still a lot of jitter on BCK
/j
Thanks for the hint - No no sign of an APLL enabled by that call. Parameter change did do something but not any thing deterministic - and still a lot of jitter on BCK
/j
Analog Digital IC designer / DevOps @ Merus Audio, Copenhagen, Denmark.
We do novel and best in class Audio amplifiers for consumer products.
Programmed assembler for C-64 back in 1980's, learned some electronics - hacking since then
We do novel and best in class Audio amplifiers for consumer products.
Programmed assembler for C-64 back in 1980's, learned some electronics - hacking since then
Re: ESP32 Webradio
Jakobsen wrote:Hi WiFive
Thanks for the hint - No no sign of an APLL enabled by that call. Parameter change did do something but not any thing deterministic - and still a lot of jitter on BCK
/j
perhabs you must change the register too: cut from lib
perhabs it helps you
rtc_clk.o rtc_xtal_32k_ena
rtc_clk.o rtc_8m_ena
rtc_clk.o rtc_plla_ena
rtc_clk.o rtc_set_slow_freq
rtc_clk.o rtc_set_fast_freq
rtc_clk.o rtc_bbpll_md
rtc_clk.o rtc_init_xtal_freq
rtc_clk.o rtc_get_xtal
rtc_clk.o rtc_apb_freq_up
rtc_clk.o rtc_uart_div_modify
rtc_clk.o rtc_uart_tx_wait_idle
rtc_clk.o rtc_set_cpu_freq
rtc_clk.o rtc_init_clk
rtc_clk.o rtc_init_clk_lite
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪
Re: ESP32 Webradio
my setup test was from 2.5 MHz do 154 MHz
each higher pos was more clear as the preview
example 2.5 MHz ( Jitter )
info for the choice of src of clock and register are in the technical docu too
hope this helps.
each higher pos was more clear as the preview
example 2.5 MHz ( Jitter )
Code: Select all
rtc_plla_ena(1, 0, 255, 0, 0); // 2.5MHz
hope this helps.
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪
Re: ESP32 Webradio
yeap, WiFive is right.
316 kHz
you must play with the clk register itself too
and we must use the right src
there are many parameters possible, better we wait for the docu
we can stretch time too ( ? ! )
we can polarisation too ( ? ! )
we can invert too ( ? ! )
we can do more ( ? ! )
i think "my" setup was the best for 10MHz ..160 MHz
if we want smaller we need a fine tuning with other src by choice the right register.
best wishes
rudi
316 kHz
you must play with the clk register itself too
and we must use the right src
there are many parameters possible, better we wait for the docu
we can stretch time too ( ? ! )
we can polarisation too ( ? ! )
we can invert too ( ? ! )
we can do more ( ? ! )
i think "my" setup was the best for 10MHz ..160 MHz
if we want smaller we need a fine tuning with other src by choice the right register.
best wishes
rudi
Last edited by rudi ;-) on Tue Feb 28, 2017 11:08 pm, edited 1 time in total.
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪
Re: ESP32 Webradio
played with the stretching and polarisation
same 316KHz
but :
5_10 6_10 8_10 with more playtime the jitter can be compensated
and there are differences with
-> DevKitC V1
-> DevKitC V2
-> DemoBoard V2
-> Wrover V1
-> Wrover V2
-> ...
i mean, the jitter make sig time delayed waved, perhabs a caps to much in the line?
.. i do not know .. i am
hardware hobbiest
same 316KHz
but :
5_10 6_10 8_10 with more playtime the jitter can be compensated
and there are differences with
-> DevKitC V1
-> DevKitC V2
-> DemoBoard V2
-> Wrover V1
-> Wrover V2
-> ...
i mean, the jitter make sig time delayed waved, perhabs a caps to much in the line?
.. i do not know .. i am
hardware hobbiest
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪
Re: ESP32 Webradio
Any progress?Jakobsen wrote:
O yes - need more coffee - i did commit - as I use to on SVN but i see there is more to it then that.
I will try to follow you description tonight and have added git to my bucket list.
Any progressBuddyCasino wrote:Its going to be on Github as soon as I got it to work.
Where are you stuck
best wishes
rudi
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪
-
- Posts: 263
- Joined: Sun Jun 19, 2016 12:00 am
Re: ESP32 Webradio
I'm sending a multipart http message (json + pcm audio) to the Alexa endpoint, but they reset the connection and I have no idea why. When I interrupt my data sending by returning NGHTTP2_ERR_DEFERRED from my data_source_read_callback() to give nghttp2 time to read from the socket to maybe retrieve some error message that would help me, I only get a settings frame and after that its "mbedtls_ssl_write returned -0x50", which means the peer reset the connection.Any progress
Where are you stuck
It works in my Java prototype. Its totally infuriating.
Re: ESP32 Webradio
Hi Rudi
I did change the plla_ena in the i2s code as well. It is the jitter that we need to reduce. For audio codec and i2s interface with out faster MCKL in the setup, the jitter on BCK crank up the noise floor in the audio band.
We need more insight to the esp32 clock system to get the apll going - the audio quality is good for now - just no CD quality yet.
Do not down play you hobby approach to this stuff - you got you hand more dirty then most professional has the skills to do.
I am stocked by work and lag of focus - I am working some dsp stuff that also will be needed to do a top notch platform.
/j
I did change the plla_ena in the i2s code as well. It is the jitter that we need to reduce. For audio codec and i2s interface with out faster MCKL in the setup, the jitter on BCK crank up the noise floor in the audio band.
We need more insight to the esp32 clock system to get the apll going - the audio quality is good for now - just no CD quality yet.
Do not down play you hobby approach to this stuff - you got you hand more dirty then most professional has the skills to do.
I am stocked by work and lag of focus - I am working some dsp stuff that also will be needed to do a top notch platform.
Code: Select all
return ESP_FAIL;
}
clkmInteger = clkmdiv;
clkmDecimals = (clkmdiv - clkmInteger) / denom;
float mclk = clkmInteger + denom * clkmDecimals;
bck = factor/(bits * channel);
// rtc_plla_ena(1, 0, 0,1 , 0);
I2S[i2s_num]->clkm_conf.clka_en = 1; // jkj was 0
I2S[i2s_num]->clkm_conf.clkm_div_a = 63;
I2S[i2s_num]->clkm_conf.clkm_div_b = clkmDecimals;
/j
Analog Digital IC designer / DevOps @ Merus Audio, Copenhagen, Denmark.
We do novel and best in class Audio amplifiers for consumer products.
Programmed assembler for C-64 back in 1980's, learned some electronics - hacking since then
We do novel and best in class Audio amplifiers for consumer products.
Programmed assembler for C-64 back in 1980's, learned some electronics - hacking since then
Re: ESP32 Webradio
@Jakobsen
thank you for the friendly words.
have you seen, we have now I2S Theme in ESP32 technical Reference
Update is from today, 2017 March 1
V 1.5
here you get it
visit allways the espressif resource for newer updates
best wishes
rudi
ps: i am on the road - will come back to your post asap
thank you for the friendly words.
have you seen, we have now I2S Theme in ESP32 technical Reference
Update is from today, 2017 March 1
V 1.5
here you get it
visit allways the espressif resource for newer updates
best wishes
rudi
ps: i am on the road - will come back to your post asap
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪
Who is online
Users browsing this forum: No registered users and 105 guests