Sure , Christine.
But with the below steps i am able to pair a BT device .
please find below steps .
home# hciattach /dev/ttyS3 any
Device setup complete
:/home# [ 102.291439] Bluetooth: MGMT ver 1.22
[ 102.312353] kauditd_printk_skb: 3 callbacks suppressed
[ 102.312370] audit: type=1334 audit(1651171518.340:13): prog-id=13 op=LOAD
[ 102.335144] audit: type=1334 audit(1651171518.356:14): prog-id=14 op=LOAD
home# hciconfig -a hci0 up
:/home# hciconfig
hci0: Type: Primary Bus: UART
BD Address: 04:C4:61:AC:81:26 ACL MTU: 1021:7 SCO MTU: 120:6
UP RUNNING
RX bytes:1495 acl:0 sco:0 events:89 errors:0
TX bytes:1261 acl:0 sco:0 commands:89 errors:0
/home# [ 132.742604] audit: type=1334 audit(1651171548.772:15): prog-id=14 op=UNLOAD
[ 132.753282] audit: type=1334 audit(1651171548.772:16): prog-id=13 op=UNLOAD
/home# bluetoothctl
Agent registered
[CHG] Controller 04:C4:61:AC:81:26 Pairable: yes
[bluetooth]# help
Menu main:
Available commands:
-------------------
advertise Advertise Options Submenu
monitor Advertisement Monitor Options Submenu
scan Scan Options Submenu
gatt Generic Attribute Submenu
admin Admin Policy Submenu
player Media Player Submenu
endpoint Media Endpoint Submenu
transport Media Transport Submenu
list List available controllers
show [ctrl] Controller information
select <ctrl> Select default controller
devices [Paired/Bonded/Trusted/Connected] List available devices, with an optional property as the filter
system-alias <name> Set controller alias
reset-alias Reset controller alias
power <on/off> Set controller power
pairable <on/off> Set controller pairable mode
discoverable <on/off> Set controller discoverable mode
discoverable-timeout [value] Set discoverable timeout
agent <on/off/capability> Enable/disable agent with given capability
default-agent Set agent as the default one
advertise <on/off/type> Enable/disable advertising with given type
set-alias <alias> Set device alias
scan <on/off/bredr/le> Scan for devices
info [dev] Device information
pair [dev] Pair with device
cancel-pairing [dev] Cancel pairing with device
trust [dev] Trust device
untrust [dev] Untrust device
block [dev] Block device
unblock [dev] Unblock device
remove <dev> Remove device
connect <dev> Connect device
disconnect [dev] Disconnect device
menu <name> Select submenu
version Display version
quit Quit program
exit Quit program
help Display help about this program
export Print environment variables
[bluetooth]# power on
Changing power on succeeded
[bluetooth]# discoverable on
Changing discoverable on succeeded
[CHG] Controller 04:C4:61:AC:81:26 Discoverable: yes
[bluetooth]# agent on
Agent is already registered
[bluetooth]# default-agent
Default agent request successful
[bluetooth]# scan on
Discovery started
[CHG] Controller 04:C4:61:AC:81:26 Discovering: yes
[bluetooth]# inf0
Invalid command in menu main: inf0
Use "help" for a list of available commands in a menu.
Use "menu <submenu>" if you want to enter any submenu.
Use "back" if you want to return to menu main.
[NEW] Device 30:KK:7D:BF:D4:2A Naresh_BT_Device
[bluetooth]# info
Missing device address argument
[CHG] Device 30:KK:7D:BF:D4:2A RSSI: -89
[CHG] Device 30:KK:7D:BF:D4:2A RSSI: -80
[CHG] Device 30:KK:7D:BF:D4:2A RSSI: -89
[CHG] Device 30:KK:7D:BF:D4:2A RSSI: -80
[CHG] Device 30:KK:7D:BF:D4:2A RSSI: -89
[bluetooth]# piar 30:KK:7D:BF:D4:2A
Invalid command in menu main: piar
Use "help" for a list of available commands in a menu.
Use "menu <submenu>" if you want to enter any submenu.
Use "back" if you want to return to menu main.
[bluetooth]# pair 30:KK:7D:BF:D4:2A
Attempting to pair with 30:KK7D:BF:D4:2A
[CHG] Device 30:KK:7D:BF:D4:2A Connected: yes
Request confirmation
[agent] Confirm passkey 890227 (yes/no): yes
[CHG] Device 30:KK:7D:BF:D4:2A Bonded: yes
[CHG] Device 30:KK:7D:BF:D4:2A Modalias: bluetooth:v0046p1200d1436
[CHG] Device 30:KK:7D:BF:D4:2A UUIDs: 00001105-0000-1000-8000-00805f9b34fb
[CHG] Device 30:KK:7D:BF:D4:2A UUIDs: 0000110a-0000-1000-8000-00805f9b34fb
[CHG] Device 30:KK:7D:BF:D4:2A UUIDs: 0000110c-0000-1000-8000-00805f9b34fb
[CHG] Device 30:KK:7D:BF:D4:2A UUIDs: 0000110e-0000-1000-8000-00805f9b34fb
[CHG] Device 30:KK:7D:BF:D4:2A UUIDs: 00001112-0000-1000-8000-00805f9b34fb
[CHG] Device 30:KK:7D:BF:D4:2A UUIDs: 00001115-0000-1000-8000-00805f9b34fb
[CHG] Device 30:KK:7D:BF:D4:2A UUIDs: 00001116-0000-1000-8000-00805f9b34fb
[CHG] Device 30:KK:7D:BF:D4:2A UUIDs: 0000111f-0000-1000-8000-00805f9b34fb
[CHG] Device 30:KK:7D:BF:D4:2A UUIDs: 0000112f-0000-1000-8000-00805f9b34fb
[CHG] Device 30:KK:7D:BF:D4:2A UUIDs: 00001132-0000-1000-8000-00805f9b34fb
[CHG] Device 30:KK:7D:BF:D4:2A UUIDs: 00001200-0000-1000-8000-00805f9b34fb
[CHG] Device 30:KK:7D:BF:D4:2A UUIDs: 00001800-0000-1000-8000-00805f9b34fb
[CHG] Device 30:KK7D:BF:D4:2A UUIDs: 00001801-0000-1000-8000-00805f9b34fb
[CHG] Device 30:KK7D:BF:D4:2A ServicesResolved: yes
[CHG] Device 30:KK7D:BF:D4:2A Paired: yes
Pairing successful
[CHG] Device 30:KK7D:BF:D4:2A ServicesResolved: no
[CHG] Device 30:KK7D:BF:D4:2A Connected: no
[bluetooth]# connect 30:KK:7D:BF:D4:2A
Attempting to connect to 30:KK:7D:BF:D4:2A
Failed to connect: org.bluez.Error.Failed br-connection-profile-unavailable
[bluetooth]# connect 30:KK7D:BF:D4:2A
Attempting to connect to 30:KKD:BF:D4:2A
Failed to connect: org.bluez.Error.Failed br-connection-profile-unavailable
[bluetooth]# connect 30:F:D4:2A
Attempting to connect to 30D:BF:D4:2A
Failed to connect: org.bluez.Error.Failed br-connection-profile-unavailab
file transfer is failing using obexftp
root@am62xx-evm:/home# obexftp --nopath --noconn --uuid none --bluetooth 30:F:D4:2A --channel 12 --put t.txt
Suppressing FBS.
Connecting...failed: connect
unknown error on connect
Still trying to connect
Connecting...failed: connect
unknown error on connect
Still trying to connect
Connecting...failed: connect
unknown error on connect
Still trying to connect
I just want to test with GATT .,could you please help me on this
Thanks,
Naresh