HFP issue

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
hydys
Level 3
Level 3
Distributor - Yuban(GC)
25 sign-ins 10 replies posted 10 sign-ins

Dear sir:

在使用bluez协议栈测试HFP连接耳机后,发现无法通过耳机听到声音(该bluez配置使用在其他主控平台pcm接口上可以正常使用,后来换平台仅更换I2S接口配置)。

主控把MIC语音通过I2S接口模式传输到43455 BT音频接口,然后发送到HF client。

附件是抓取的HCI log,麻烦帮忙看分析下问题,谢谢!

信息:

OS:linux3.18 BlueZ: 5.25 

Physical interface:I2S(2*16bit*32K采样率)

 

0 Likes
1 Solution
Zhengbao_Zhang
Moderator
Moderator
Moderator
250 sign-ins First comment on KBA 10 questions asked

hello:

 patch_ram 在load的时候尝试按照下面的指令修改来匹配你的host 接口设置:

** <--scopcm=sco_routing,pcm_interface_rate,frame_type,
** sync_mode,clock_mode,lsb_first,fill_bits,
** fill_method,fill_num,right_justify>
**
** Where
**
** sco_routing is 0 for PCM, 1 for Transport,
** 2 for Codec and 3 for I2S,
**
** pcm_interface_rate is 0 for 128KBps, 1 for
** 256 KBps, 2 for 512KBps, 3 for 1024KBps,
** and 4 for 2048Kbps,
**
** frame_type is 0 for short and 1 for long,
**
** sync_mode is 0 for slave and 1 for master,
**
** clock_mode is 0 for slabe and 1 for master,
**
** lsb_first is 0 for false aand 1 for true,
**
** fill_bits is the value in decimal for unused bits,
**
** fill_method is 0 for 0's and 1 for 1's, 2 for
** signed and 3 for programmable,
**
** fill_num is the number or bits to fill,
**
** right_justify is 0 for false and 1 for true
**
** <--i2s=i2s_enable,is_master,sample_rate,clock_rate>
**
** Where
**
** i2s_enable is 0 for disable and 1 for enable,
**
** is_master is 0 for slave and 1 for master,
**
** sample_rate is 0 for 8KHz, 1 for 16Khz and
** 2 for 4 KHz,
**
** clock_rate is 0 for 128KHz, 1 for 256KHz, 3 for
** 1024 KHz and 4 for 2048 KHz.
**

View solution in original post

0 Likes
7 Replies
Zhengbao_Zhang
Moderator
Moderator
Moderator
250 sign-ins First comment on KBA 10 questions asked

hello:  

   请将load 过程提供下, 如果从pcm 改为I2s,那么在load的过程需要配置I2s的接口信息。

0 Likes
lock attach
Attachments are accessible only for community members.
hydys
Level 3
Level 3
Distributor - Yuban(GC)
25 sign-ins 10 replies posted 10 sign-ins

Dear Zhengbao:

我看log发现客户没有建立sco连接,已经让客户加上了,附件是最新的hci log和load过程log,请注意查收!

非常感谢!

0 Likes
Zhengbao_Zhang
Moderator
Moderator
Moderator
250 sign-ins First comment on KBA 10 questions asked

FW path = /etc/bcm4345c0.hcd
file /etc/bcm4345c0.hcd could not be opened, error 2

hello, 帮忙确认firmware download 进去了吗?

0 Likes
lock attach
Attachments are accessible only for community members.
hydys
Level 3
Level 3
Distributor - Yuban(GC)
25 sign-ins 10 replies posted 10 sign-ins

Dear  

请注意查收附件!

他们固件加载过程确实有问题,目前已经改好,但是仍然没有声音。

0 Likes
hydys
Level 3
Level 3
Distributor - Yuban(GC)
25 sign-ins 10 replies posted 10 sign-ins

Dear Zhengbao:

       另外,客户尝试把SCO_Routing,修改为PCM模式发现,耳机端(HF client)可以听到声音,但是噪音比较大,而且不连贯,声音卡顿。

0 Likes
Zhengbao_Zhang
Moderator
Moderator
Moderator
250 sign-ins First comment on KBA 10 questions asked

hello:

 patch_ram 在load的时候尝试按照下面的指令修改来匹配你的host 接口设置:

** <--scopcm=sco_routing,pcm_interface_rate,frame_type,
** sync_mode,clock_mode,lsb_first,fill_bits,
** fill_method,fill_num,right_justify>
**
** Where
**
** sco_routing is 0 for PCM, 1 for Transport,
** 2 for Codec and 3 for I2S,
**
** pcm_interface_rate is 0 for 128KBps, 1 for
** 256 KBps, 2 for 512KBps, 3 for 1024KBps,
** and 4 for 2048Kbps,
**
** frame_type is 0 for short and 1 for long,
**
** sync_mode is 0 for slave and 1 for master,
**
** clock_mode is 0 for slabe and 1 for master,
**
** lsb_first is 0 for false aand 1 for true,
**
** fill_bits is the value in decimal for unused bits,
**
** fill_method is 0 for 0's and 1 for 1's, 2 for
** signed and 3 for programmable,
**
** fill_num is the number or bits to fill,
**
** right_justify is 0 for false and 1 for true
**
** <--i2s=i2s_enable,is_master,sample_rate,clock_rate>
**
** Where
**
** i2s_enable is 0 for disable and 1 for enable,
**
** is_master is 0 for slave and 1 for master,
**
** sample_rate is 0 for 8KHz, 1 for 16Khz and
** 2 for 4 KHz,
**
** clock_rate is 0 for 128KHz, 1 for 256KHz, 3 for
** 1024 KHz and 4 for 2048 KHz.
**

0 Likes
hydys
Level 3
Level 3
Distributor - Yuban(GC)
25 sign-ins 10 replies posted 10 sign-ins

Dear Zhengbao:

目前我们尝试过--scopcm=3,3,1,0,0,1,0,0,0    --i2s=1,0,1,3

我们再尝试下其他配置。

TKS!

0 Likes