EMDK 蓝牙本地设备
一个简单的问题是,如何获取已使用 Motorola EMDK 2.4 与 MC75 设备配对的本地蓝牙设备?似乎我可以获取 RemoteDevice 列表,但没有方法可以查看本地堆栈和已配对的内容,这样我可以读取已分配的串行端口并自动为用户打开 SerialPort 对象。
Just a quick question, how do I get the local Bluetooth devices that have already been paired using the Motorola's EMDK 2.4 for an MC75 device? Seems I can get the RemoteDevice list but there is no method to see the local stack and what's been paired already, this way I can read what serial port it has already been assigned and open up a SerialPort object automatically for the user.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
答案是您不这样做或不能...您可以使用 Microsoft 蓝牙。下载此适用于摩托罗拉设备上的 Windows Mobile 蓝牙...也可能适用于其他设备。您可以从移动示例中获取,我在硬盘驱动器上找到了它...C:\Program Files (x86)\Windows Mobile 6 SDK\Samples\Common\CS\Bluetooth。我将其添加到我的项目中,然后我所要做的就是将所有当前配对的设备添加到列表框中,
然后当选择一个设备时,您可以将其作为蓝牙设备访问,如下所示:
然后您开始流式传输,
我必须修改StreamProcessor 和 BTConnectionManager 有点适合我,但这是我的版本,其中没有表单引用。
The answer is you don't or can't...you instead use the Microsoft Bluetooth. Download this for windows mobile bluetooth on a motorola device...may work on other devices too. You can get from the mobile samples, I found it here on my hard drive...C:\Program Files (x86)\Windows Mobile 6 SDK\Samples\Common\CS\Bluetooth. I added this to my project then all I had to do was this to add all the currently paired devices to a listBox
And then when one was selected you can access it as a BlueTooth device like this:
You then start stream by
I had to modifiy the StreamProcessor and BTConnectionManager a bit to work for me but here is my version of it without the form references in it.