如何找到串口蓝牙设备的UUID? [英] How to find the UUID of serial port Bluetooth device?

查看:26
本文介绍了如何找到串口蓝牙设备的UUID?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从串口蓝牙设备接收数据到安卓手机.但我不知道该设备的 UUID 如何找到该设备的 UUID?

I want to receive data from the serial port bluetooth device to android phone. But i don't know the UUID of that device how to find the UUID of that device?

推荐答案

扩展普华永道关于 UUID 为 0x1101 的说法,据我所知,这是 UUID 的 16 位版本.我不知道如何使用 16 位 UUID 实例化 UUID.但正如这篇文章所说,您可以通过以下方式做到:

Extending what pwc said about the UUID being 0x1101, this is the 16 bit version of the UUID as far as I can tell. I could not work out how to instantiate an UUID with a 16 bit UUID. But as this post says you can do it by:

private static final UUID MY_UUID = UUID.fromString("00001101-0000-1000-8000-00805f9b34fb");

这对我有用,可以连接到我从 Deal Extreme 购买的串行蓝牙模块

This worked for me to connect to a serial bluetooth module I bought from Deal Extreme

这篇关于如何找到串口蓝牙设备的UUID?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆