Bluetooth connect error

hello,

I’m currently trying to establish a Bluetooth connection between Jetson orin nano and Windows.

But the following error appears:

Is there a solution?

[bluetooth]# connect 00:1A:7D:DA:71:13
Attempting to connect to 00:1A:7D:DA:71:13
[CHG] Device 00:1A:7D:DA:71:13 Connected: yes
[CHG] Device 00:1A:7D:DA:71:13 ServicesResolved: yes
Failed to connect: org.bluez.Error.NotAvailable
[CHG] Device 00:1A:7D:DA:71:13 ServicesResolved: no
[CHG] Device 00:1A:7D:DA:71:13 Connected: no

Hi chyy111,

We can’t reproduce BT connection issue.
Can you connect to other devices? like BT keyboard/mouse…
Please provide the dmesg log for check. Thanks!

The Bluetooth keyboard is connected well and is in use.

When connecting from Jetson to PC, it lasts for about 3 seconds and then disconnects.

Is it impossible to use it at the same time because it is connected to a Bluetooth keyboard?

No idea. Maybe you could check your syslog and see what is the disconnection error.

How can I check syslog?

Hi chyy111,

You can check syslog from: /var/log/syslog

Here is my log.

Nov 8 17:18:00 hhc kernel: [ 2578.659607] rtk_btusb: btusb_notify: hci0 evt 1
Nov 8 17:18:00 hhc kernel: [ 2578.661722] rtk_btcoex: hci create connection, start paging
Nov 8 17:18:01 hhc kernel: [ 2579.303658] rtk_btcoex: connected, handle 0005, status 0x00
Nov 8 17:18:01 hhc kernel: [ 2579.303670] rtk_btcoex: Page success
Nov 8 17:18:01 hhc kernel: [ 2579.366528] rtk_btcoex: l2cap op 2, len 16, out 1
Nov 8 17:18:01 hhc kernel: [ 2579.366585] rtk_btcoex: TX l2cap conn req, hndl 0x0005, PSM 0x0001, scid 0x0040
Nov 8 17:18:01 hhc kernel: [ 2579.366590] rtk_btcoex: PSM(0x0001) do not need parse
Nov 8 17:18:01 hhc kernel: [ 2579.370390] rtk_btcoex: l2cap op 3, len 20, out 0
Nov 8 17:18:01 hhc kernel: [ 2579.370478] rtk_btcoex: RX l2cap conn rsp, hndl 0x0005, dcid 0x0040, scid 0x0040, result 0x0001
Nov 8 17:18:01 hhc kernel: [ 2579.371648] rtk_btcoex: l2cap op 3, len 20, out 0
Nov 8 17:18:01 hhc kernel: [ 2579.371684] rtk_btcoex: RX l2cap conn rsp, hndl 0x0005, dcid 0x0040, scid 0x0040, result 0x0000
Nov 8 17:18:01 hhc bluetoothd[753]: src/adapter.c:connected_callback() hci0 device 00:1A:7D:DA:71:13 connected eir_len 17
Nov 8 17:18:01 hhc dhcpd[1249]: DHCPDISCOVER from e6:ef:a6:fe:cb:0a via l4tbr0: network 192.168.55.0/24: no free leases
Nov 8 17:18:02 hhc bluetoothd[753]: src/device.c:search_cb() 00:1A:7D:DA:71:13: No service update
Nov 8 17:18:02 hhc bluetoothd[753]: src/device.c:device_svc_resolved() /org/bluez/hci0/dev_00_1A_7D_DA_71_13 err 0
Nov 8 17:18:02 hhc bluetoothd[753]: src/device.c:connect_profiles() /org/bluez/hci0/dev_00_1A_7D_DA_71_13 (all), client :1.98
Nov 8 17:18:03 hhc kernel: [ 2581.475918] rtk_btcoex: l2cap op 6, len 16, out 1
Nov 8 17:18:03 hhc kernel: [ 2581.475995] rtk_btcoex: TX l2cap disconn req, hndl 0x0005, dcid 0x0040, scid 0x0040
Nov 8 17:18:03 hhc kernel: [ 2581.475997] rtk_btcoex: handle_l2cap_discon_req: handle 0x0005, dcid 0x0040, scid 0x0040, dir 1
Nov 8 17:18:05 hhc kernel: [ 2583.509970] rtk_btcoex: HCI Disconnect, handle 0005, reason 0x13
Nov 8 17:18:05 hhc bluetoothd[753]: src/adapter.c:dev_disconnected() Device 00:1A:7D:DA:71:13 disconnected, reason 2
Nov 8 17:18:05 hhc kernel: [ 2583.600703] rtk_btcoex: disconn cmpl evt: status 0x00, handle 0005, reason 0x16
Nov 8 17:18:05 hhc kernel: [ 2583.600716] rtk_btcoex: process disconn complete event.
Nov 8 17:18:05 hhc bluetoothd[753]: src/adapter.c:adapter_remove_connection()
Nov 8 17:18:05 hhc bluetoothd[753]: plugins/policy.c:disconnect_cb() reason 2
Nov 8 17:18:05 hhc bluetoothd[753]: src/adapter.c:bonding_attempt_complete() hci0 bdaddr 00:1A:7D:DA:71:13 type 0 status 0xe
Nov 8 17:18:05 hhc bluetoothd[753]: src/device.c:device_bonding_complete() bonding (nil) status 0x0e
Nov 8 17:18:05 hhc bluetoothd[753]: src/device.c:device_bonding_failed() status 14
Nov 8 17:18:05 hhc bluetoothd[753]: src/adapter.c:resume_discovery()
Nov 8 17:18:05 hhc kernel: [ 2583.685937] rtk_btusb: btusb_notify: hci0 evt 2
Nov 8 17:18:07 hhc dhcpd[1249]: DHCPREQUEST for 192.168.55.100 from 0a:78:06:a8:a0:e2 (hhc) via l4tbr0
Nov 8 17:18:07 hhc dhcpd[1249]: DHCPACK on 192.168.55.100 to 0a:78:06:a8:a0:e2 (hhc) via l4tbr0
Nov 8 17:18:10 hhc dhcpd[1249]: DHCPDISCOVER from e6:ef:a6:fe:cb:0a via l4tbr0: network 192.168.55.0/24: no free leases
Nov 8 17:18:13 hhc dbus-daemon[2496]: [session uid=1000 pid=2496] Activating service name=‘org.gnome.gedit’ requested by ‘:1.98’ (uid=1000 pid=4312 comm="/usr/bin/nautilus --gapplication-service " label=“kernel”)
Nov 8 17:18:13 hhc dbus-daemon[2496]: [session uid=1000 pid=2496] Successfully activated service ‘org.gnome.gedit’
Nov 8 17:18:14 hhc dhcpd[1249]: DHCPREQUEST for 192.168.55.100 from 0a:78:06:a8:a0:e2 (hhc) via l4tbr0
Nov 8 17:18:14 hhc dhcpd[1249]: DHCPACK on 192.168.55.100 to 0a:78:06:a8:a0:e2 (hhc) via l4tbr0

I saw above error that leads to disconnect.

Remote User Terminated Connection (0x13) error message often means that the two ends of the link haven’t found a profile/service that is defined on both ends of the link.

Is this device able to connect to other ubuntu host ?

The same error occurs when connecting to another Ubuntu or Windows.

Then it may not be the issue we can help check. Please also ask this in some other ubuntu communities.

Neither Windows nor Ubuntu can connect to Jetson, but cell phones such as Android and iOS can connect via Bluetooth.