Page 1 of 1

HFP AG problem

Posted: Sat Feb 08, 2025 3:18 pm
by Anton Gudkov
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.

Re: HFP AG problem

Posted: Sat Feb 08, 2025 9:23 pm
by MicroController
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)
?