Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/xamarin/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Bluetooth 在蓝牙世界中,如何将著名的guid转换为设备UUID';s_Bluetooth_Xamarin_Core Bluetooth_Android Bluetooth - Fatal编程技术网

Bluetooth 在蓝牙世界中,如何将著名的guid转换为设备UUID';s

Bluetooth 在蓝牙世界中,如何将著名的guid转换为设备UUID';s,bluetooth,xamarin,core-bluetooth,android-bluetooth,Bluetooth,Xamarin,Core Bluetooth,Android Bluetooth,我正在研究Xamarin的蓝牙开发 在连接状态下,所有c#代码都通过定义蓝牙配置文件的已知ID进行连接 在演示示例中,我看到了代码 UUID.fromString("00001101-0000-1000-8000-00805F9B34FB"); // ("fa87c0d0-afac-11de-8a39-0800200c9a66"); 什么是“00001101-0000-1000-8000-00805F9B34FB”?是否以某种方式从fa87c0d0-afac-11de-8a39-0800

我正在研究Xamarin的蓝牙开发

在连接状态下,所有c#代码都通过定义蓝牙配置文件的已知ID进行连接

在演示示例中,我看到了代码

UUID.fromString("00001101-0000-1000-8000-00805F9B34FB");    // ("fa87c0d0-afac-11de-8a39-0800200c9a66");
什么是“00001101-0000-1000-8000-00805F9B34FB”?是否以某种方式从fa87c0d0-afac-11de-8a39-0800200c9a66处获得

更重要的是,在蓝牙文档中,我们看到了用于不同配置文件的著名UUID,其形式如下:

HandsfreeAudioGateway   0x111F  Hands-free Profile (HFP)
0x111F如何正确转换为00001101-0000-1000-8000-00805F9B34FB表单


我想有蓝牙开发经验的人可以评论和澄清这些要点。

只是16位版本总是添加到128位蓝牙基本UUID中:

00000000-0000-1000-8000-00805F9B34FB
然后插入的1101使uuid引用串行端口配置文件,使其:

00001101-0000-1000-8000-00805F9B34FB
111F只是指免提模式。完整的128位版本为:

0000111F-0000-1000-8000-00805F9B34FB
我看不出你列出的其他UUID在没有经过掩蔽层的情况下是如何引用免提配置文件的