Service Data UUID & Service Data

  • Hello,

    I am looking for an example script to retrieve the servicedatauuid and servicedata of any bluetooth device.

    as :

    - uuid => 0xfdcd

    - data => 08094411444422880104e500c6020702aa2702012d

    Thanks

  • seillehs 13. Oktober 2023 um 15:55

    Hat den Titel des Themas von „Service Data UUID et Service Data“ zu „Service Data UUID & Service Data“ geändert.
  • Each BT device has its own protocol, so there is no general way to unpack the service data.

    For Shelly blu its bthome and there is a BTHome page describing how the service payload was packed.

    So each device can have a different protocol and each protocol is encoded differently, thats why there is no general script for this.

    Einmal editiert, zuletzt von _[Deleted]_ (14. Oktober 2023 um 17:56)

  • Hello,
    Thank you for your answer.
    I'm not looking to unpack Service Data.
    This work can be done with Theengs Gateway.

    What I'm looking for is just to have the Service Data UUID and Service Data.

    I looked at the ble-shelly-btn.js and ble-shelly-dw.js scripts but I don't see how to get these elements.

    Der Inhalt kann nicht angezeigt werden, da Sie keine Berechtigung haben, diesen Inhalt zu sehen.

    Einmal editiert, zuletzt von seillehs (15. Oktober 2023 um 18:23)

  • Hmm, okay.

    You can extract the UUID from a Script Bluetooth Scanner.

    For instance, a Bluetooth scanner blu service message, look like this: svc={"fcd2":"RAD0AWQFhAMALQA/AAA="},

    the part before the colon is the UUID. In this example, it's "fcd2."

    Der Inhalt kann nicht angezeigt werden, da Sie keine Berechtigung haben, diesen Inhalt zu sehen.
  • Dieses Thema enthält 22 weitere Beiträge, die nur für registrierte Benutzer sichtbar sind.