david_1234
Posts: 241
Joined: Mon Jan 01, 2018 2:14 pm

Turn Your Raspberry Pi into a Bluetooth Beacon?

Sun Oct 27, 2019 3:02 pm

Hello ,
I'm trying to do as it say in this guide in order to broadcast and advertise my webpage
https://circuitdigest.com/microcontroll ... ble-beacon



1. I have enable the Bluetooth
2. make it discoverable
3. didn't get any errors while running the 3 comands

but I still can't see nothing while running scan on the Bluetooth on 2 phones

any one know why ?
any idea hoew to make this work?

Thanks ,

PiGraham
Posts: 3682
Joined: Fri Jun 07, 2013 12:37 pm
Location: Waterlooville

Re: Turn Your Raspberry Pi into a Bluetooth Beacon?

Sun Oct 27, 2019 3:14 pm

david_1234 wrote:
Sun Oct 27, 2019 3:02 pm

but I still can't see nothing while running scan on the Bluetooth on 2 phones

any one know why ?
any idea hoew to make this work?

Thanks ,
Do you mean the normal scan for Bluetooth devices, or are you running a beacon scanner app?
To check the broadcasted message on your smart phone, download the Physical Web App or Beacon scanner on your Android smartphone and start the scanning. You will see the broadcasted link in the app as shown below. Click on the link to visit and open the website in browser.

david_1234
Posts: 241
Joined: Mon Jan 01, 2018 2:14 pm

Re: Turn Your Raspberry Pi into a Bluetooth Beacon?

Sun Oct 27, 2019 3:29 pm

I'm trying both ways
on one tablet I'm running the android app - "Beacon Scanner"
and on another tablet just running the normal bluetooth scanner
I have try this on 2 units (2 raspberry pi ) - didn't get nothing

PiGraham
Posts: 3682
Joined: Fri Jun 07, 2013 12:37 pm
Location: Waterlooville

Re: Turn Your Raspberry Pi into a Bluetooth Beacon?

Sun Oct 27, 2019 4:08 pm

david_1234 wrote:
Sun Oct 27, 2019 3:29 pm
I'm trying both ways
on one tablet I'm running the android app - "Beacon Scanner"
and on another tablet just running the normal bluetooth scanner
I have try this on 2 units (2 raspberry pi ) - didn't get nothing
I don't know anything about this topic, so I'm just offering dome dumb questions which might sometimeshelp.

Are both those devices BLE capable?
The page you linked to seem to say the beacon is specific to BLE, not just any Bluetooth. In that case many Bluetooth devices won't see it.

The "normal BT scanner" probably won't show anything since that lists devices ready to pair, and I'm guessing the Edystone beacon is not advertising as ready to pair, it's advertising something else.

deepo
Posts: 359
Joined: Sun Dec 30, 2018 8:36 pm

Re: Turn Your Raspberry Pi into a Bluetooth Beacon?

Sun Oct 27, 2019 4:14 pm

When I last tried that I followed these instructions on my RPI 3B+
https://pimylifeup.com/raspberry-pi-eddystone-beacon/

And it worked fine with an app for iOS called Locate.

/Mogens

david_1234
Posts: 241
Joined: Mon Jan 01, 2018 2:14 pm

Re: Turn Your Raspberry Pi into a Bluetooth Beacon?

Sun Oct 27, 2019 4:22 pm

I saw and try this instructions also
got the same problem

I'm using Samsung A8
and Tablet lenovo a10-30

is there any way to check - maybe this is the problem?

I thought that the BLE is a standart using of Bluetooth - maybe this is my mistake?

Thanks ,

deepo
Posts: 359
Joined: Sun Dec 30, 2018 8:36 pm

Re: Turn Your Raspberry Pi into a Bluetooth Beacon?

Sun Oct 27, 2019 4:26 pm

david_1234 wrote:
Sun Oct 27, 2019 4:22 pm
I saw and try this instructions also
got the same problem

I'm using Samsung A8
and Tablet lenovo a10-30

is there any way to check - maybe this is the problem?

I thought that the BLE is a standart using of Bluetooth - maybe this is my mistake?

Thanks ,
Yeah the standard is the standard, but the Bluetooth chips are all manufactured to comply with a specific Bluetooth version.
And Bluetooth 4.0 introduced BLE, so if your chip is older and does not comply, then that could be your problem.

But the only RPi I have is an 3B+, and it works there.
Which RPi are you using? And what OS version?

/Mogens

david_1234
Posts: 241
Joined: Mon Jan 01, 2018 2:14 pm

Re: Turn Your Raspberry Pi into a Bluetooth Beacon?

Mon Oct 28, 2019 8:04 am

3B+
with raspbian-stretch

and my phone has
Bluetooth® v 5.0 (LE up to 2Mbps) (According to Samsung website)

deepo
Posts: 359
Joined: Sun Dec 30, 2018 8:36 pm

Re: Turn Your Raspberry Pi into a Bluetooth Beacon?

Mon Oct 28, 2019 4:51 pm

I do the following and get the following result:

Code: Select all

pi@raspberrypi:~ $ sudo -i

root@raspberrypi:~# hciconfig hci0 leadv 3
root@raspberrypi:~# hcitool -i hci0 cmd 0x08 0x0008 19 02 01 06 03 03 aa fe 11 16 aa fe 10 00 03 70 69 6d 79 6c 69 66 65 75 70 07 00 00 00 00 00 00
< HCI Command: ogf 0x08, ocf 0x0008, plen 32
  19 02 01 06 03 03 AA FE 11 16 AA FE 10 00 03 70 69 6D 79 6C
  69 66 65 75 70 07 00 00 00 00 00 00
> HCI Event: 0x0e plen 4
  01 08 20 00
root@raspberrypi:~#
I can then use the Locate iOS app to see that it finds an Eddystone beacons that advertises a URL: https://pymylifeup.com

I run Raspbian Lite Stretch:

Code: Select all

root@raspberrypi:~# uname -a
Linux raspberrypi 4.19.66-v7+ #1253 SMP Thu Aug 15 11:49:46 BST 2019 armv7l GNU/Linux
And I run Bluez v5.50:

Code: Select all

root@raspberrypi:~# bluetoothd -v
5.50
/Mogens
Last edited by deepo on Wed Oct 30, 2019 9:40 am, edited 1 time in total.

david_1234
Posts: 241
Joined: Mon Jan 01, 2018 2:14 pm

Re: Turn Your Raspberry Pi into a Bluetooth Beacon?

Wed Oct 30, 2019 9:20 am

now it's working
it's seem that I need to enable GPS and setting-goolge-near_by_devices on my android phone .

now when I run the beacon scanner application on the phone I can see the beacon

but shouldn't I also see it automatically while my phone bluetooth is on?
and also when I run the google -find near by devices - it won't find me the beacon?

am I missing something?
or I didn't understadn how this technology is working ?

Thanks,

PiGraham
Posts: 3682
Joined: Fri Jun 07, 2013 12:37 pm
Location: Waterlooville

Re: Turn Your Raspberry Pi into a Bluetooth Beacon?

Wed Oct 30, 2019 9:38 am

How your device responds to a beacon probably depends on what nearby app you are running.
Does this help?
ou don't have to do anything during the pairing process, but you'll have to give the OK the first time you access Nearby functionality in an app. When Nearby is active, a notification provides quick access to the Google account options on your phone that let you enable or disable Nearby for each installed app that supports it.
Google recently extended Nearby to allow Bluetooth beacons to pop up notifications to apps or web pages. So you might enter a museum, and get a notification linking you to an audio tour. United airlines might link you to free entertainment options while waiting at the gate, and your Chromecast will smooth out the setup process by popping up a notification to tap on instead of requiring you to type in a setup web address. In this case, you don't have to actually do anything besides make sure Bluetooth is enabled.

https://www.greenbot.com/article/307818 ... of-it.html

david_1234
Posts: 241
Joined: Mon Jan 01, 2018 2:14 pm

Re: Turn Your Raspberry Pi into a Bluetooth Beacon?

Wed Oct 30, 2019 9:41 am

I read this in the morning :-) - Thanks
but still not wroking ....
when you run the 3 commands on the pi
do you get the notification on your phone?

do you have any special google accont setting?

what if I don't have google accound , will it still work?

Return to “Beginners”