BT slave and BLE peripheral simultaneous discovery issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I am currently using blueZ5.43 on my device.
My device is currently running on linux-3.10 kernel.
We are currently using Both BT classic and ble.
We are presenlty using SPP profile by running the rfcomm utilty.
We are playing the slave role in SPP and listening to any SPP incoming
connection.
Similarly we have written some custom GATT service, which we added to
the list of core gatt_services which are registered when the
bluetoothd comes up.
For other devices to connect to our SPP slave we are doing "hciconfig
hci0 piscan".
Also for other devices to connect to our GATT service we are doing BLE
advertising.
In the advertising data we are setting the "Complete Local Name" as
"XXXXXXXXX_XXXXXX"(just putting wild characters instead of actual name
we used in our case).
We set the device name as "XXXXXXXXX_XXXXXX_BT" in
/etc/bluetooth/bluetooth.conf and the bluetoothd sets the device name
the same when it comes up.

We are running the bluetoothd with --compat option so that the sdptool
adds the SPP profile.

With this setup when we are discovering the device from any other
device (Like windows 10 machine or from Android device).

We are seeing sometimes the device shows up with "XXXXXXXXX_XXXXXX_BT"
and sometimes the device shows up with "XXXXXXXXX_XXXXXX" and this
continues to happen with only one visible at a time.

if we try to connect and pair with "XXXXXXXXX_XXXXXX" it sends a GATT
Connect request and subsequently pairs and does GATT discovery but
doesn't discover SPP.

if we try to connect and pair with "XXXXXXXXX_XXXXXX_BT" it sends a
accept connection request, and subsequenlty pairs and does SDP
discovery and the SPP shows up on a particular BT serial port

Based on the above points following are my question:

1)Why scanning of the device is showing separate entries for BLE and BT classic.
2)Is there a way to make our device visible to outside world, where it
will only appear once in the scanned list of the other devices and
discover both GATT as well as SPP profile?

Any suggestions would be helpful.

Thanks.



[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux