Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试将 BLE 模块连接到 8051 微控制器。8051 微控制器是 8 位的。而分配的 UUID 是 16 位和 128 位。我必须为此制作自己的UUID吗?或者我如何将 UUID 转换为 8 位?
据我所知,
您只能使用 128 位,而 16 位是为 BLE 标准保留的。如果您只是自己玩,您可以安全地使用 16 位 UUID。如果要投入生产和销售,最好选择 128 位 UUID。
将 128 位 UUID 转换为 8 位是什么意思?您只需选择一个 128 位 UUID 并坚持使用它。当然,在您的 8051 中,您可以使用 16 字节的代码存储器存储 128 位。