[RELEASE] BLE (Beacon) Gateway Manager

Also, remove the http;//x.x.x.x/ from the URI. It should start with “apps/” in the gateway. As per instructions: “ * URI: The url you copied, beginning with the word "apps" (e.g. apps/api/###/gateway?access-token=xxxxxxxx)”

I think that’s your problem.

1 Like

OMG... I only noticed this and missed/forgot to take a subset of it. :slight_smile:

That's all it took, I left the setting to filter for iBeacon only and it worked like a charm. :smiley:
Thanks!

Maybe for slower users like me ( :wink: ) you could include a reminder in the UI below about leaving out the http://###.

In any case, in spite of my lazy reading and thanks to your help, I'm up and running. Just did a test rule where I set a light to green when I'm present, purple when gone. Ran the rule and about 2m after I unplugged the BT beacon light changed to purple.

Awesome. Now I need to move the gateway to the garage and the iBeacon to the car, and give it a literal test-drive.

Very cool.

Haha, no worries. I’ll update the readme to make the documentation more clear. Glad it’s working for you. Let us know how it works with your vehicles. I have two vehicles/garage doors and the garage door opens as each vehicle pulls up every time. :slight_smile:

Wow...I had a fun time today. :wink:

Moved gateway to the garage ceiling, plugged in, and came back into the house.

Nothing works - gateway is inaccessible, presence not happening, can't access gateway from config software. What the heck! What did I screw up now!? Brought it back into the house, plugged in, nothing, looks dead. Oh man!

Then I wiggled the USB cable connector at the gateway...bingo, light comes on.

Turns out the included USB cable connector (on the gateway side) was bad. Wiggle it just slightly and the unit would lose power. Replaced the USB cable and up and running. :smiley: Happy ending...yay.

3 Likes

I want to use my phone like ibeacon via Beacon Simulator for Android
Beacon Simulator - Apps on Google Play

I created it on my Android smartphone and pressed the 'Add New beacon' button, but it doesn't appear.

But, What was created through the iPhone appears.
Beacon Simulator - Appstore

Could you help me?? pls :slight_smile:

Can you turn on debugging for the gateway manager device and app and check the logs and look at the payload being received by the gateway manager? It should show you all data being sent to the hub and then from the hub to the hubitat app.

Also, what type of beacon is the android simulator app broadcasting? See the documentation for supported beacon types.

2023-01-24 11:42:10.864 AMdebugParsed payload from Gateway: [beacons:[]]

app:892023-01-24 11:42:10.851 AMdebugSending payload to device: BLE Gateway, payload: {"v":1,"mid":3954,"time":5071,"ip":"192.168.86.46","mac":"************","rssi":-72}

app:892023-01-24 11:42:10.849 AMdebugPOST received from Gateway: {"v":1,"mid":3954,"time":5071,"ip":"192.168.86.46","mac":"************","rssi":-72}

android
KakaoTalk_20230124_113436370

ios

If the gateway device has debugging enabled, you should see your beacon broadcast and a debug log entry made like so:

[type:auto, mac:, rssi:-92, data:]

Since the parsed payload from gateway is returning “beacons []”, it means that no beacons are detected. You will see each beacon listed inside the square brackets in the parsed payload, too.

If you do not see it, it means the beacon is not broadcasting (or being detected by the gateway). You can try moving your phone closer to the gateway.

You can also go into the settings icon of the app. Any beacon detected that is actively broadcasting will show up in the application state data.

I would also make sure you configured your gateway using the recommended settings in the documentation.

Since it’s picking up your iPhone beacon app, that confirms the beacon and gateway is working. It must be something with your android device beacon simulator.

You may also wish to try changing the beacon type in your android beacon app. You can try eddystone-uid or AltBeacon and see if that works. It may be possible the app is not broadcasting the ibeacon data correctly.

Hope this helps.

ibeacon made by iphone

2023-01-24 12:23:21.917 PMdebugbeacon ID: C856E7B0EE1E44F08E6696369593479E:0:0 present: true

app:892023-01-24 12:23:21.914 PMdebugiBeacon detected: uuid: C856E7B0EE1E44F08E6696369593479E, major: 0, minor: 0, power: -59, rssi: -37, distance: 0, dni: C856E7B0EE1E44F08E6696369593479E:0:0

app:892023-01-24 12:23:21.911 PMdebugParsed payload from Gateway: [beacons:[[type:auto, mac:************, rssi:-37, data:02011A1AFF4C000215C856E7B0EE1E44F08E6696369593479E00000000C5]]]

app:892023-01-24 12:23:21.897 PMdebugSending payload to device: BLE Gateway, payload: {"v":1,"mid":4092,"time":7542,"ip":"192.168.86.46","mac":"************","rssi":-73,"devices":[[0,"5193F4F0EFF8",-37,"02011A1AFF4C000215C856E7B0EE1E44F08E6696369593479E00000000C5"]]}

app:892023-01-24 12:23:21.895 PMdebugPOST received from Gateway: {"v":1,"mid":4092,"time":7542,"ip":"192.168.86.46","mac":"************","rssi":-73,"devices":

2023-01-24 12:23:21.903 PMdebug[type:auto, mac:************, rssi:-37, data:02011A1AFF4C000215C856E7B0EE1E44F08E6696369593479E00000000C5]

eddystone-uid, AltBeaconmade made by android but, not working like ibeacon.
Is this an Android problem?

Looks like the gateway is not detecting your android beacon simulator. The gateway is obviously working because it’s detecting that ibeacon from your iPhone. Unfortunately there is nothing I can do if the gateway cannot detect your simulator.

Are you sure the Android phone is transmitting? What if you try loading an app on your iPhone that detects nearby beacons and see if that app can see your android simulator? If that works, then you know that the gateway cannot detect your android simulator. But if you cannot see your android simulator with another app on your iPhone, perhaps the android device is not actually transmitting anything.

That’s my best guess. Give that a try and see what happens.

1 Like

I made ibeacon in android and ios at the same time.

I tried scanning with third smartphone.



Both ios and android are searchable.

Logs

  1. BLE Gateway

dev:2722023-01-24 06:56:41.950 PMdebug[type:auto, mac************, rssi:-51, data:1AFF4C0002156E70A1C329A742EBA2AA30E3B57CFCCC00000000BF]

  1. BLE Gateway Manager

app:892023-01-24 06:56:41.972 PMdebugParsed payload from Gateway: [beacons:[[type:auto, mac:************ , rssi:-51, data:1AFF4C0002156E70A1C329A742EBA2AA30E3B57CFCCC00000000BF],]]

app:892023-01-24 06:56:41.972 PMdebugSending payload to device: BLE Gateway, payload: {"v":1,"mid":5470,"time":13963,"ip":"192.168.86.49","mac":"************ ","rssi":-66,"devices":[[2,"5D799917EC47",-51,"1AFF4C0002156E70A1C329A742EBA2AA30E3B57CFCCC00000000BF"]]}

app:892023-01-24 06:56:41.972 PMdebugPOST received from Gateway: {"v":1,"mid":5470,"time":13963,"ip":"192.168.86.49","mac":"************ ","rssi":-66,"devices":
[[2,"5D799917EC47",-51,"1AFF4C0002156E70A1C329A742EBA2AA30E3B57CFCCC00000000BF"]]}

I think ble gateway is receiving information from beacon simulator on android but it is not processed.

help..

I’d love to help, but if the gateway won’t detect your simulated beacon ,there is really nothing I can do, as all the app does is process the data received from the gateway. The gateway was tested with an iOS app as well as a usb radbeacon and a blue charms usb beacon.

Are you sure you haven’t turned on any sort of filtering in the gateway settings? It’s possible that a setting in the gateway is filtering your beacon. Can you please post the configuration screen from your gateway so I can see your settings? Then I can look at that for you and see if I see anything in there that should be adjusted.

1 Like

my gateway detect my simulated beacon. pls look my logs at upper pictures.

Is this the beacon you are trying to setup? If so, then the gateway must be receiving the beacon since it’s in the logs. It’s possible there is something off with the data string being sent. Please confirm this is the beacon you are looking for and the broadcasting type (ibeacon, alt beacon, eddystone-uid). If yes, then I’ll need some time to debug and figure out why it’s not parsing the data string.

1 Like

yes. this is my simulated ibeacon made by android.

Okay thanks. I will try to look at this for you over the next couple of days to see if I can figure out what is wrong. There is logic in the gateway app that parses that data string to determine the beacon type. Will get back to you soon.

1 Like

Thank you so much for your helping

Such excellent support...gold star for you. :slight_smile: Very nice of you.

Can you also do me a favor and post a screenshot of the settings page in the app? Thanks.