Apple TV is iBeacon

User avatar
Hackencrash
Posts: 251
Joined: Wed Dec 16, 2015 7:05 am
Location: UK

Apple TV is iBeacon

Post by Hackencrash »

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:
Screenshot
Screenshot
Screen Shot 2017-08-31 at 19.57.21.png (15.49 KiB) Viewed 4130 times
:?: Any idea how to have only one Apple TV Beacon object appear in my piBeacon folder that will withstand a power cycle?
User avatar
Different Computers
Posts: 2730
Joined: Sat Jan 02, 2016 10:07 am
Location: East Coast
Contact:

Re: Apple TV is iBeacon

Post by Different Computers »

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.
Sonoma on a Mac Mini M1 running Airfoil Pro, Bond Home, Camect, Roku Network Remote, Hue Lights, DomoPad, Adapters, Home Assistant Agent, HomeKitLinkSiri, EPS Smart Dimmer, Fantastic Weather, Nanoleaf, LED Simple Effects, Grafana, Yamaha RX Receiver.
User avatar
Hackencrash
Posts: 251
Joined: Wed Dec 16, 2015 7:05 am
Location: UK

Re: Apple TV is iBeacon

Post by Hackencrash »

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.
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: Apple TV is iBeacon

Post by kw123 »

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.
forestfield
Posts: 83
Joined: Mon Dec 29, 2014 12:58 pm
Location: West Sussex

Re: Apple TV is iBeacon

Post by forestfield »

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.
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: Apple TV is iBeacon

Post by kw123 »

Also need the minor and major.


Sent from my iPhone using Tapatalk
forestfield
Posts: 83
Joined: Mon Dec 29, 2014 12:58 pm
Location: West Sussex

Re: Apple TV is iBeacon

Post by forestfield »

... 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
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Apple TV is iBeacon

Post by kw123 »

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
User avatar
Hackencrash
Posts: 251
Joined: Wed Dec 16, 2015 7:05 am
Location: UK

Apple TV is iBeacon

Post by Hackencrash »

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.
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: Apple TV is iBeacon

Post by kw123 »

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


Sent from my iPhone using Tapatalk
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: Apple TV is iBeacon

Post by kw123 »

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
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Apple TV is iBeacon

Post by kw123 »

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
User avatar
Hackencrash
Posts: 251
Joined: Wed Dec 16, 2015 7:05 am
Location: UK

Re: Apple TV is iBeacon

Post by Hackencrash »

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.
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: Apple TV is iBeacon

Post by kw123 »

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
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: Apple TV is iBeacon

Post by kw123 »

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
Post Reply

Return to “piBeacon”