如何获得蓝牙服务的SDP记录? [英] how to get an SDP record for bluetooth service?

查看:436
本文介绍了如何获得蓝牙服务的SDP记录?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新来的两个Winsock和蓝牙节目。我需要开发一个蓝牙服务,在电脑上运行。
纵观MSDN库,他们说用WSASetService(http://msdn.microsoft.com/en-us/library/aa362921%28VS.85%29.aspx)函数来发布服务。

I'm new to both winsock and bluetooth programming. I need to develop a bluetooth service to run on a pc. Looking at the MSDN library they say to use WSASetService(http://msdn.microsoft.com/en-us/library/aa362921%28VS.85%29.aspx) function to publish a service.

的问题是,在WSAQUERYSET(http://msdn.microsoft.com/en-us/library/aa362920%28VS.85%29.aspx)结构,具有将被传递给WSASetService,需要一个二进制的SDP记录,我不知道如何得到它。

The problem is that the WSAQUERYSET(http://msdn.microsoft.com/en-us/library/aa362920%28VS.85%29.aspx) structure, that has to be passed to WSASetService, needs a binary SDP record and i don't know how to get it.

在嵌入式MSDN库的部分他们所描述的程序使用的 Bthnscreate

In the Windows embedded section of the MSDN library they describe a procedure to obtain an SDP record using Bthnscreate.

我安装了Windows CE 6使用这个工具,但在安装目录,也没有在整个系统中我找不到它。

I installed Windows CE 6 to use this tool but i can't find it in the install directory nor in the entire system.

我怎样才能得到一个SDP记录?

How can i get an SDP record?

谢谢!

推荐答案

出钱让我为您创建它?不,我在开玩笑 - 除非你需要专家的帮助。我是32feet.NET蓝牙库.NET的维护者。我们写清SDP记录解析,创建和诊断倾销。你应该能够与我们的 ServiceRecordBuilder 类来创建你的记录,然后把它转换成二进制的形式与方法 ServiceRecordCreator.CreateServiceRecord 。看到一些文档蓝牙SDP - 服务发现协议中的 32feet.NET - 用户指南

Pay me to create it for you? No I'm kidding -- unless you need expert help. I'm maintainer of the 32feet.NET Bluetooth library for .NET. We include full SDP record parsing, creating, and diagnostic dumping. You should be able to create your record with our ServiceRecordBuilder class and then have it converted to binary form with method ServiceRecordCreator.CreateServiceRecord. See some documentation in the "Bluetooth SDP — Service Discovery Protocol" section in 32feet.NET -- User Guide

这篇关于如何获得蓝牙服务的SDP记录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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