This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM62P: Support on bringing up HFP and Rfcomm SPP in Linux

Part Number: AM62P
Other Parts Discussed in Thread: CC3351,

Hi TI Team,

We are trying to bring up HFP profile and Rfcomm SPP communication support in the TI AM62P setup running Linux 11.02.08.02. We had purchased CC3351, but unfortunately, it supports only WiFi & BLE.

Now we are using USB Bluetooth Dongle from TP Link (UB500), and we are now able to use Bluetooth for scanning & pairing between Mobile Devices and the AM62P. Following are the changes which we had done to achieve the required behavior so far.

  1. Added below entries to kernel config
    CONFIG_BT=y
    CONFIG_BT_BREDR=y
    CONFIG_BT_RFCOMM=y
    CONFIG_BT_RFCOMM_TTY=y
    CONFIG_BT_L2CAP=y
    CONFIG_BT_SCO=y
    CONFIG_BT_LE=y
  2. Verified the changes are reflected in the target
    root@am62pxx-evm:~# zcat /proc/config.gz | grep RFCOM
    CONFIG_BT_RFCOMM=y
    CONFIG_BT_RFCOMM_TTY=y
  3. Validated bluetoothctl
    [bluetooth]# show
    Controller 8C:90:2D:CB:AF:63 (public)
            Manufacturer: 0x005d (93)
            Version: 0x0a (10)
            Name: am62pxx-evm
            Alias: am62pxx-evm
            Class: 0x00000000 (0)
            Powered: yes
            Discoverable: no
            DiscoverableTimeout: 0x000000b4 (180)
            Pairable: yes
            UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
            UUID: Generic Access Profile    (00001800-0000-1000-8000-00805f9b34fb)
            UUID: PnP Information           (00001200-0000-1000-8000-00805f9b34fb)
            UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
            UUID: A/V Remote Control        (0000110e-0000-1000-8000-00805f9b34fb)
            UUID: Device Information        (0000180a-0000-1000-8000-00805f9b34fb)
            Modalias: usb:v1D6Bp0246d0548
            Discovering: no
            Roles: central
            Roles: peripheral
    Advertising Features:
            ActiveInstances: 0x00 (0)
            SupportedInstances: 0x04 (4)
            SupportedIncludes: tx-power
            SupportedIncludes: appearance
            SupportedIncludes: local-name
            SupportedSecondaryChannels: 1M
            SupportedSecondaryChannels: 2M
            SupportedSecondaryChannels: Coded

Even though all these confirmations are there, when tried doing rfcomm, we are getting below error.

root@am62pxx-evm:~# rfcomm 
Can't open RFCOMM control socket: Protocol not supported

# Bluetooth is not having RFCOMM entry
root@am62pxx-evm:~# cat /proc/net/protocols | grep bluetooth                                                                                                                                                       
SCO        856      0      -1   NI       0   no   bluetooth   n  n  n  n  n  n  n  n  n  n  n  n  n  n  n  n  n  n
L2CAP      840      0      -1   NI       0   no   bluetooth   n  n  n  n  n  n  n  n  n  n  n  n  n  n  n  n  n  n
HCI        896      0      -1   NI       0   no   bluetooth   n  n  n  n  n  n  n  n  n  n  n  n  n  n  n  n  n  n

# Bluetooth is not having rfcomm entry
root@am62pxx-evm:~# lsmod | grep bluetooth
bluetooth             540672  26 btrtl,btmtk,btintel,btbcm,btusb
ecdh_generic           16384  2 bluetooth
rfkill                 28672  4 bluetooth,cfg80211

Please suggest how we can bring up rfcomm and hfp profile in the TI AM62P?

Thanks & Regards,
Mohammed Shakir