What range of Bluetooth UUIDs can be used for vendor defined profiles?

前端 未结 4 1088
忘掉有多难
忘掉有多难 2020-12-01 06:40

I want to build a simple Bluetooth Low Energy-based application using a custom profile. The adopted profiles / services / characteristics / descriptors use 16-bit U

4条回答
  •  离开以前
    2020-12-01 07:42

    You may not use 16-bit or 32-bit UUIDs unless they are assigned to you by registering.

    Using a short UUID that was not registered will result in incompatibilities with your device and future standards and or other device's registered numbers. Bluetooth qualification will require valid numbers.

    When not registering, generate your own valid 128-bit UUIDs:

    • Use a tool such as
      • https://www.uuidgenerator.net
      • uuidgen or guidgen.exe command line tools
    • Understand the UUID format https://en.wikipedia.org/wiki/Universally_unique_identifier
      • The Version 4 variant uses random numbers and you can create your own base UUID by replacing the leading 8 hex characters to 0.

提交回复
热议问题