Apple TV is iBeacon

Posted on
Thu Aug 31, 2017 1:06 pm
Hackencrash offline
User avatar
Posts: 246
Joined: Dec 16, 2015
Location: UK

Apple TV is iBeacon

I've been looking through my huge list of devices that automatically populate into the piBeacon folder wondering what the hell they all are.

:!: I found one of them to be my Apple TV

Unfortunately, I have a problem with this:
1. The Address changes each time I power cycle my Apple TV
2. The UUID changes each time I power cycle my Apple TV

When I rename the device to, say: Apple TV Beacon, and then power cycle the Apple TV, I get 2 devices where one is expired with a device name of: Apple TV Beacon.

Now I know that the new device that pops up in the list is the same Apple TV device, as the UUID shown in the Notes field begins with the same prefix as the expired device.

I also noticed that there's a piBeacon Plugin menu option called: Map UUID to a NAME, so I tried this.

When I use this option, I get this:

Screen Shot 2017-08-31 at 19.57.21.png
Screenshot
Screen Shot 2017-08-31 at 19.57.21.png (15.49 KiB) Viewed 3733 times

:?: Any idea how to have only one Apple TV Beacon object appear in my piBeacon folder that will withstand a power cycle?

Posted on
Thu Aug 31, 2017 1:59 pm
Different Computers offline
User avatar
Posts: 2533
Joined: Jan 02, 2016
Location: East Coast

Re: Apple TV is iBeacon

I don't use piBeacon, but I can say that the various ATV app store apps that claim to make the ATV into a beacon are all actually quite limited and not usable for our purposes.

Or at least that was the case half a year ago when I tried this.

SmartThings refugee, so happy to be on Indigo. Monterey on a base M1 Mini w/Harmony Hub, Hue, DomoPad, Dynamic URL, Device Extensions, HomeKitLink, Grafana, Plex, uniFAP, Fantastic Weather, Nanoleaf, LED Simple Effects, Bond Home, Camect.

Posted on
Tue Sep 05, 2017 11:17 am
Hackencrash offline
User avatar
Posts: 246
Joined: Dec 16, 2015
Location: UK

Re: Apple TV is iBeacon

I was not so much interested in using the Apple TV as a beacon for any purpose other to be able to register it properly in piBeacon such that it doesn't spam my Indigo system with loads of bogus piBeacon device instances of itself that I cannot filter out. At least if I can register it properly it's another indication that the Apple TV has got power applied to it.

Posted on
Tue Sep 05, 2017 1:58 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: Apple TV is iBeacon

I would need the EXACT UUID schema. Then I can add the logic to recognize the device.

e.g something like this:
UUID schema= 0114cabcdef-1234-yyyy

where yyyy is changing every time, but the rest stays.

Posted on
Tue Sep 05, 2017 3:05 pm
forestfield offline
Posts: 83
Joined: Dec 29, 2014
Location: West Sussex

Re: Apple TV is iBeacon

If it helps any, for my 2 gen3? appletv's I have
Code: Select all
"011a0bff4c00090603": "appleTV"

in my UUIDtoName, and that works for.

Caveat: 2 isn't a full sample and they are permanently on, so the UUIDs haven't changed in the last month or so. I'll power cycle one when I finish watching the GBBO.

Posted on
Tue Sep 05, 2017 3:10 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: Apple TV is iBeacon

Also need the minor and major.


Sent from my iPhone using Tapatalk

Posted on
Tue Sep 05, 2017 3:16 pm
forestfield offline
Posts: 83
Joined: Dec 29, 2014
Location: West Sussex

Re: Apple TV is iBeacon

... and after extensive experimentation the UUID and mac address on my Gen 3's don't change after a power cycle.

Using the above map, I see appleTV-522-25701 and appleTV-10-25701 in the Notes field

Posted on
Tue Sep 05, 2017 3:24 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Apple TV is iBeacon

If it is a uuid to mac device the mac# will not change in pibeacon. It might actually change in reality but the plugin then uses only the uuid to id the device and keeps the first mac#.

As for the uuid-major-minor. Neither the minor nor major changes?

If that is the case no changes are needed
That's the perfect case for the uuid to device.

Sent from my iPhone using Tapatalk

Posted on
Tue Sep 05, 2017 4:08 pm
Hackencrash offline
User avatar
Posts: 246
Joined: Dec 16, 2015
Location: UK

Apple TV is iBeacon

The mac changes, the UUID major stays the same, but the UUID minor changes each power cycle. I don't know if the UUID major is common across all Apple TV's
Last edited by Hackencrash on Tue Sep 05, 2017 4:22 pm, edited 1 time in total.

Posted on
Tue Sep 05, 2017 4:16 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: Apple TV is iBeacon

Ok I will put something together and you guys can test it.


Sent from my iPhone using Tapatalk

Posted on
Tue Sep 05, 2017 6:25 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: Apple TV is iBeacon

I need a little bit more info as I have only an apply v1.. and have not used it for some time..

looking traces it looks as if:
== iphones are : 011a0bff4c-MAJ-MIN where MAJ is fixed

and
== appleTV are : 011a0bff4c00090603 -MAJ-MIN where MIN is fixed ?? <== don't have info = no appleTV


Karl

Posted on
Tue Sep 05, 2017 9:41 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Apple TV is iBeacon

Ok I am preping:
Menu option for "iPhone mapping"
You can select what is constant for that device
Uuid
Uuid-major
Uuid-major-minor
Uuid--minor
And length of uuid
If the message received fulfills all the condition it will be accepted and the mac number is overwritten with the first occurrence of that device.

Also you can set a nickname for the device that will be used in the notes field instead of the uuid

Any comments?

Karl


Sent from my iPhone using Tapatalk

Posted on
Wed Sep 06, 2017 1:49 pm
Hackencrash offline
User avatar
Posts: 246
Joined: Dec 16, 2015
Location: UK

Re: Apple TV is iBeacon

Fab stuff Karl :)

Yes my Apple TV 4th Generation has a similar UUID format:

011b0bff4c00090603-###-43009

where ### is a number that seems to change each time. It looks like only the 4th digit changes from an a to a b between the generations.

Posted on
Wed Sep 06, 2017 2:27 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: Apple TV is iBeacon

The "iPhone" uuid is wrong. I have several with the 10 digit uuid at the same time

I also have the one you mention with an Apple TV. But might come from my neighbors.


Sent from my iPhone using Tapatalk

Posted on
Wed Sep 06, 2017 3:05 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: Apple TV is iBeacon

I got for apple devices:
011a0bff4c00090603-1290-1
011a0bff4c00090603-23050-1
011a0bff4c00090602-43456-43008
011b0bff4c00090603-1728-43009
011b0bff4c00090603-4544-43009
mostly neighbors I believe

for the "iPhone" UUID type : 010607ff4c-16-523
['28:F0:76:72:D3:49', '010607ff4c-16-523', '-95', '0', '', 11]
['AC:29:3A:EC:A9:9F', '010607ff4c-16-523', '-68', '0', '', 11]
['64:D6:47:A3:97:2C', '010607ff4c-16-523', '-96', '0', '', 11]

At the same time.. So uuid+maj-min = 010607ff4c-16-523 seems not to do the trick for iPhones.. and I don't know if these are indeed iPhones..


Karl


ps:
ff4c is a typical apple 2 byte id in the message

Who is online

Users browsing this forum: No registered users and 3 guests