HFP AG problem

Anton Gudkov
Posts: 6
Joined: Sat Nov 18, 2023 12:44 pm

HFP AG problem

Postby Anton Gudkov » Sat Feb 08, 2025 3:18 pm

Hello everyone. I am studying the hfp ag project and saw this picture. The sine table has a size of 100 int16_t, hence 200 bytes. The mSBC codec requests 240 bytes from the user every 7.5 ms. Therefore, it requests about 133 packets in 1 second (1000/7.5=133). 200 bytes of the sine table is the full period. And in 240 bytes, for which mSBC is designed for approximately 1.2 periods. Therefore, the sine frequency = 133*1.2 =160 Hz. And on the analyzer I see only 80. Why am I seeing half of it and how can I fix it? Or it's not a mistake and I don't understand something.

MicroController
Posts: 2045
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

Re: HFP AG problem

Postby MicroController » Sat Feb 08, 2025 9:23 pm

Don't know what signal you're 'analyzing', but could the reason for the unexpected frequency by lying in

Code: Select all

#define WBS_PCM_SAMPLING_RATE_KHZ    (16)
#define PCM_SAMPLING_RATE_KHZ        (8)
?

Who is online

Users browsing this forum: Corand and 118 guests