IOS (IPhone) does not detect NVIDIA Jetson TX2 Bluetooth Network

NVidia Team,

My IOS (IPhone) is trying to scan the bluetooth networks. There is a TX2 board running Ubuntu 16.04 LTS with bluetooth enabled (bluetooth name - “tegra-ubuntu”). The IPhone is able to see the “tegra-ubuntu” network, but unable to connect to it.

My Windows Laptop and a few android mobile phones are able to see “tegra-ubuntu” and connect when bluetooth is enabled on the respective devices.

The issue is exactly the same as described in the post:
https://devtalk.nvidia.com/default/topic/1028644/jetson-tx2/tx2-bluetooth-connection-problem-with-ios-iphone-/

Both the files were modified as suggested in the post (/lib/systemd/system/bluetooth.service and /lib/systemd/system/ofono.service)

I want the IPhone to be able to connect (pair) to “tegra-ubuntu”.

Best Regards,
Kamalesh Nair

The error message on trying to connect is “Connection Unsuccesful: Make sure “tegra-ubuntu” is turned on and is in range”

Please check the L4T document from rel-28.2.1 -> Bluetooth Device Settings.

I tried the L4T document from rel-28.2.1 -> Bluetooth Device Settings, but still it does not work. Any help will be highly appreciated

hi kamalesh.narayan,

Please refer to below topic to see if can help: https://devtalk.nvidia.com/default/topic/1032768/jetson-tx2/bluetooth-cannot-be-connect-on-tx2/post/5276766/#5276766

Thanks

Hi kayccc, WayneWWW,

I ran the command $systemctl status bluetooth. I am getting the following errors.

Could you kindly take a look at this and tell me a solution?

nvidia@tegra-ubuntu:~$ systemctl status bluetooth
● bluetooth.service - Bluetooth service
Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2019-04-22 15:57:21 IST; 10min ago
Docs: man:bluetoothd(8)
Main PID: 1087 (bluetoothd)
Status: “Running”
CGroup: /system.slice/bluetooth.service
└─1087 /usr/lib/bluetooth/bluetoothd

Apr 22 15:57:21 tegra-ubuntu bluetoothd[1087]: Error adding Link Loss service
Apr 22 15:57:21 tegra-ubuntu bluetoothd[1087]: Not enough free handles to register service
Apr 22 15:57:21 tegra-ubuntu bluetoothd[1087]: Not enough free handles to register service
Apr 22 15:57:21 tegra-ubuntu bluetoothd[1087]: Not enough free handles to register service
Apr 22 15:57:21 tegra-ubuntu bluetoothd[1087]: Current Time Service could not be registered
Apr 22 15:57:21 tegra-ubuntu bluetoothd[1087]: gatt-time-server: Input/output error (5)
Apr 22 15:57:21 tegra-ubuntu bluetoothd[1087]: Not enough free handles to register service
Apr 22 15:57:21 tegra-ubuntu bluetoothd[1087]: Not enough free handles to register service
Apr 22 15:57:21 tegra-ubuntu bluetoothd[1087]: Sap driver initialization failed.
Apr 22 15:57:21 tegra-ubuntu bluetoothd[1087]: sap-server: Operation not permitted (1)

What is your release version? rel-28 or rel-32?

It is rel-28.

nvidia@tegra-ubuntu:~$ head -n 1 /etc/nv_tegra_release

R28 (release), REVISION: 1.0, GCID: 9379712, BOARD: t186ref, EABI: aarch64, DATE: Thu Jul 20 07:59:31 UTC 2017

nvidia@tegra-ubuntu:~$

Also another question WayneWWW; how can I increase the Bluetooth range on TX2 Board? At the moment, I have to keep my Android phone literally beside the board for my phone to detect the TX2 bluetooth and connect to it.

If I take 3 steps away, then the TX2 bluetooth is gone from my Android phone’s list of Bluetooth devices nearby.

Didn’t you connect antenna?

No

Hi WayneWWW,

I connected a bluetooth antenna to the board. Please see the attached photo. Is this the right way to connect it? It does not solve the issue of poor Bluetooth range.

Can you please have a look?


Yes, that looks correct.
There is no way to increase bluetooth range through software config. I cannot share much help here.

We are still looking into your iOS connection failure.

Thanks WayneWWW, hope you are able to reproduce the iOS (iPhone) connection failure issue at your end.

We can reproduce this issue now. May I ask what is your usecase here? To be honest, we seldom have bluetooth + iPhone usecase. Thus, I cannot immediately give you the answer if the BT profile is compatible between iphone and tegra.

Our testcases are all based on android tablet too.

To be very brief, we are developing an application for controlling TX2 with mobile over bluetooth. iPhone being able to scan and connect to TX2 bluetooth is the main thing we want for this application.

Hi kamalesh.narayan,

Please try below steps:

  1. Remove below hfp related config in /lib/systemd/system/ofono.service:
    ExecStart=/usr/sbin/ofonod -P ril,hfp_bluez5,hfp_bluez4,bluez5,bluez4,hfp_ag_bluez4,hfp_ag_bluez5 -d --nodetach
  2. Remove audio plugin in /lib/systemd/system/bluetooth.service:
    -d --noplugin=audio,a2dp,avrcp
  3. Reboot device
  4. Go to bluetooth settings and make TX2 visible and click on “+” to add device (This will start the search)
  5. Go to bluetooth settings in iPhone and search for TX2. Click on the TX2 DUT name to pair.

Hi carolyuu,

Thank you for your response. I will test this and get back to you.

Best regards,
Kamalesh