Hi there,
we use the CC2564B on a PAN1316 module, connected to an i.MX8, as a hands-free system (HFP-HF) for a GSM device. The control (HCI) and the audio connection (PCM audio) work. Unfortunately, the outgoing audio (from the device towards Bluetooth) is interrupted after a while for all devices that we have produced so far, i.e. the Bluetooth point of view no longer receives audio from our device. The other direction continues to work without any problems. This problem occurs after different times, within a few seconds to sometimes more than 20 minutes. The PCM audio data are continuously on and no command will be sent to the CC2564B at the time of switching off.
It must be a problem in the CC2564, because we have done a test in which the PCM audio data behind the CC2564 was fed back into the CC2564. The outgoing audio was also interrupted in this constellation.
Our setup:
- i.MX8 with Linux 5.10, Bluez 5.66, Ofono 1.34, Bluez-Asa 4.0.0
- CC2564B firmware TIInit_6.7.16.bts (git.ti.com/.../service-packs)
- CC2564B is I²S Slave with 512kbit Bitclock / 16kHz samplerates, Assisted HFP Mode
Commands for initializing the CC2564B after uploading the firmware:
#HCI_VS_ANT_Enable (0xFDD0) disable ANT
hcitool -i hci0 cmd 0x3f 0x01D0 0x00 0x00 0x00
#HCI_VS_AVPR_Enable (0xFD92) enable AVPR, A3DP role sink, code upload
hcitool -i hci0 cmd 0x3f 0x0192 0x01 0x01 0x01 0x00 0x00
# HCI_VS_Write_SCO_Configuration (0xFE10)
hcitool -i hci0 cmd 0x3f 0x0210 0x00 0x00 0x00 0x00 0xff
# HCI_VS_Write_CODEC_Config (0xFD06) 106
hcitool -i hci0 cmd 0x3f 0x0106 0x00 0x02 0x01 0x80 0x3e 0x00 0x00 0x00 0x00 0x01 0x01 0x00 0x10 0x00 0x00 0x00 0x01 0x10 0x00 0x00 0x00 0x00 0x00 0x10 0x00 0x10 0x00 0x01 0x10 0x00 0x10 0x00 0x00 0x00
# HCI_VS_Write_CODEC_Config_Enhanced (0xFD07) 107
hcitool -i hci0 cmd 0x3f 0x0107 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x01 0x00 0x01 0x00 0x00 0x00 0x00 0x00
# setting voice properties for bluetooth adapter
hciconfig hci0 voice 0x0060
The application that takes over the control of the telephone function sends this command when you accept a call:
#HCI_VS_WBS_Associate (0xFD78) ACL handle 1
hcitool -i hci0 cmd 0x3f 0x0178 0x01 0x00
Do we have an initialization error?
Many thanks for your help.