How can scan particular BLE devices?

kishan patel
Posts: 45
Joined: Wed Aug 30, 2017 4:56 am

How can scan particular BLE devices?

Postby kishan patel » Mon Jan 01, 2018 11:29 am

Hello,
I have scanning BLE tags and its working properly.
But i can detect all Bluettoth devices with pbeacon tags.
If i want to scan only for pBeacon. What should i do?...Any configuration for BLE name?
Please,tell me.

Thanks in advance.

User avatar
kolban
Posts: 1683
Joined: Mon Nov 16, 2015 4:43 pm
Location: Texas, USA

Re: How can scan particular BLE devices?

Postby kolban » Mon Jan 01, 2018 11:26 pm

Can you elaborate on "pBeacon"? Do you have any links or references to further explain what you mean?

Typically, a BLE device advertises using BLE advertising packets. The content of the packet is under the governance of the BLE server that is transmitting. The content of the packet must adhere to the BLE specifications and can contain fields of pre-defined structures. Those can include the devices name, exposed service UUIDs, manufacturer data and more. There is a limit to the amount of data that can be contained within a single advertisement.
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32

kurtzweber
Posts: 64
Joined: Tue Jan 10, 2017 1:09 pm

Re: How can scan particular BLE devices?

Postby kurtzweber » Tue Jan 02, 2018 2:58 pm

Hi

don't know what a "pbeacon" is, but if you meant iBeacon, the framework does include an example about how to scan for those devices:
https://github.com/espressif/esp-idf/tr ... le_ibeacon

maybe you can change it to search for "pbeacon" specific advertising data...

User avatar
hassan789
Posts: 156
Joined: Thu Jun 29, 2017 2:15 am

Re: How can scan particular BLE devices?

Postby hassan789 » Tue Jan 02, 2018 8:48 pm

You can filter/scan/connect to particular devices based on:
1. the ble services they are running (uuid filter)
2. based the ble hardware mac

kishan patel
Posts: 45
Joined: Wed Aug 30, 2017 4:56 am

Re: How can scan particular BLE devices?

Postby kishan patel » Thu Jan 04, 2018 5:34 am

Hello,

pBeacon is same as iBeacon.
Actually,i can also detect devices whose bluetooth is ON.
So,i have detecting number of extra devices instead of pBeacon's list.

Thanks.

chegewara
Posts: 2230
Joined: Wed Jun 14, 2017 9:00 pm

Re: How can scan particular BLE devices?

Postby chegewara » Thu Jan 04, 2018 5:52 am

You can filter all bluetooth le devices and search only those with UUID FDA50693-A4E2-4FB1-AFCF-C6EB07647825, at least this ive found on aliexpress.

kishan patel
Posts: 45
Joined: Wed Aug 30, 2017 4:56 am

Re: How can scan particular BLE devices?

Postby kishan patel » Mon Jan 08, 2018 10:24 am

Hello chegewara,

Thanks. But can you tell me in details.I have not understood about aliexpress.
Means are you talking about product serach or write code to scan ble with specific UUID.

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: How can scan particular BLE devices?

Postby WiFive » Mon Jan 08, 2018 3:25 pm

Yes write code to scan ble with specific UUID.

UUID was seen in product description on AliExpress.

hiren_kumbhare
Posts: 2
Joined: Mon Jul 03, 2017 8:48 am

Re: How can scan particular BLE devices?

Postby hiren_kumbhare » Tue Jan 09, 2018 9:42 am

Hello,

Need to know the changes to be made in the code for implementing the same in gatt_client example.

Thanks in Advance

Awaiting for response

Thanks and Regards,
Hiren Kumbhare

Who is online

Users browsing this forum: dalmat and 121 guests