manymuch / Xgimi-4-Home-Assistant

XGIMI integration for home assistant
MIT License
161 stars 21 forks source link

new H3S token #23

Closed Anbercube closed 1 year ago

Anbercube commented 1 year ago

Managed to grab my H3S's BLE token with Bluetooth Smart Scanner App . token : 35548a967abddcffffff3043524b544d raw data (only show up when pressing power button of the remote):

{
    kCBAdvDataAppearance = 961;
    kCBAdvDataIsConnectable = 1;
    kCBAdvDataManufacturerData = <46003554 8a967abd dcffffff 3043524b 544d>;
    kCBAdvDataRxPrimaryPHY = 129;
    kCBAdvDataRxSecondaryPHY = 0;
    kCBAdvDataServiceUUIDs =     (
        "Human Interface Device"
    );
    kCBAdvDataTimestamp = "712591390.796815";
}
helgek commented 1 year ago

@manymuch this one is different from the one which was reported by mayongze before.

helgek commented 1 year ago

@Anbercube I have added your information to the Stack Overflow post

manymuch commented 1 year ago

I am thinking if the token is actually "device specific" or "model specific"? From designing view, it seems "device specific" is more reasonable. It prevent one remote turning on the all same projectors in the same room. If so, sharing token by model seems useless. Are there anyone success with provided token rather then sniffering?

helgek commented 1 year ago

@manymuch absolutely. I had also been wondering if they would really store the same manufacturer code in all respective remotes. I had once ordered a second Elfin remote but I can't recall if I sniffed the signal before pairing it with the projector. This would be one way to find out I guess. But otherwise I guess we will have more clarity about this anytime soon when more people have tried the advertising implementation.

jack-webb commented 1 year ago

@manymuch I found some data points that could indicate the codes are device-specific, and not model-specific. I'm not sure this is totally conclusive though, at least without more testing. Wydt?

Reports of 2 different tokens for Horizon Ultra: https://github.com/manymuch/Xgimi-4-Home-Assistant/issues/5#issuecomment-1740732840 https://github.com/manymuch/Xgimi-4-Home-Assistant/issues/30#issuecomment-1783868369

Reports of 2 different tokens for Horizon 1080p:

24 (mine)

https://github.com/manymuch/Xgimi-4-Home-Assistant/issues/5#issuecomment-1768052116

I'll test this other token on my Horizon 1080p and report back. It might be a little while before I can do that.

Also looks like we have two different codes for Elfin on the SO answer: https://stackoverflow.com/questions/69921353/how-can-i-clone-a-non-paired-ble-signal-from-a-remote-to-trigger-a-device/75563140#75563140

jack-webb commented 1 year ago

Created #31 to put this discussion in one place :)

helgek commented 1 year ago

@jack-webb Thank you :)

manymuch commented 1 year ago

Thanks for the sharing. The token is now considered device specific. See issue #31. Closing all token sharing issues.