ManikantaMylavarapu
Posts: 2
Joined: Thu Feb 07, 2019 1:34 pm

"nRF connect" mobile app not discovering my raspberry pi ble

Tue Mar 05, 2019 10:09 am

Hi to all.
I am new to raspberry pi.
"nRF Connect for Mobile" mobile app not disovering my raspberry pi.
"nRF Connect for Mobile" app will find near by all BLE devices(all vendors not only nordiac).
I knew that bluetooth on pi will support both classic & ble. By default pi's bluetooth is a 'classic' one, if it's false please correct me.
I enabled '--experimental' feature to support ble features.

Here is the my output while running "systemctl status bluetooth"
root@raspberrypi:~# systemctl status bluetooth
● bluetooth.service - Bluetooth service
Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2019-03-05 14:51:07 IST; 1min 7s ago
Docs: man:bluetoothd(8)
Main PID: 636 (bluetoothd)
Status: "Running"
CGroup: /system.slice/bluetooth.service
└─636 /usr/libexec/bluetooth/bluetoothd --experimental

Mar 05 14:51:06 raspberrypi systemd[1]: Starting Bluetooth service...
Mar 05 14:51:07 raspberrypi bluetoothd[636]: Bluetooth daemon 5.48
Mar 05 14:51:07 raspberrypi systemd[1]: Started Bluetooth service.
Mar 05 14:51:07 raspberrypi bluetoothd[636]: Starting SDP server
Mar 05 14:51:07 raspberrypi bluetoothd[636]: Bluetooth management interface 1.14 initialized
Mar 05 14:51:08 raspberrypi bluetoothd[636]: Endpoint registered: sender=:1.12 path=/A2DP/SBC/Source/1
Mar 05 14:51:08 raspberrypi bluetoothd[636]: Failed to set privacy: Rejected (0x0b)

Apart from this,any other thing has to be done to scan my raspberry pi's bluetooth as "BLE" not "classic".

Hardware details:
Raspberry pi 3 model b.

Please help me.

User avatar
Douglas6
Posts: 4874
Joined: Sat Mar 16, 2013 5:34 am
Location: Chicago, IL

Re: "nRF connect" mobile app not discovering my raspberry pi ble

Tue Mar 05, 2019 1:59 pm

By default, Raspberry Pi's run no BLE services and do not advertise, so there's nothing for another device to detect.

Do a Google search for how to start BLE advertising under Linux. It's just one or two terminal commands. If you get that working, your Pi should be detected. It will have no services, those are trickier to program.

Here's an example: https://www.raspberrypi.org/forums/view ... 50#p938150

User avatar
Douglas6
Posts: 4874
Joined: Sat Mar 16, 2013 5:34 am
Location: Chicago, IL

Re: "nRF connect" mobile app not discovering my raspberry pi ble

Tue Mar 05, 2019 7:04 pm

@kingbily: This forum works best if each problem/issue is contained in its own thread. Hijacking an unrelated thread is considered impolite and counter-productive. I'll answer briefly here; if you have additional questions or comments, please start a new thread.

Typically there is no need to explicitly connect to a BLE device. Once the device is discovered, you should be able to query for services, and read/write characteristics, etc. Have you tried that?

Return to “General discussion”