C#并刷新蓝牙友好名称 [英] c# and refreshing the Bluetooth friendly name

查看:135
本文介绍了C#并刷新蓝牙友好名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个蓝牙设备,它将根据其当前模式和固件版本来更新其友好名称.

I have a bluetooth device that will update it's friendly name depending on it's current mode and firmware version. 

例如,它可能显示为"Device Application v1.5",

For example it might be display as "Device Application v1.5",

然后我将其置于升级模式,它将更改为"Device Bootloader v0.8".

I then put it in upgrade mode and it will change to "Device Bootloader v0.8".

我的问题是Windows似乎会缓存连接到特定设备地址的Bluetooth友好名称,如果此友好名称发生更改,将需要很长时间刷新.同样在以蓝牙友好名称重新连接到设备时 已经改变.例如从应用程序模式切换到引导加载程序模式,直到在Windows上更新友好名称(尽管直接使用设备地址进行连接?),我似乎无法连接.

The issue I have is that windows appears to cache the Bluetooth friendly name connected to a particular device address and will take a long time to refresh if this friendly name changes. Also when reconnecting to the device after the bluetooth friendly name has changed. e.g. going from application mode to boot loader mode I can't seem to connect until the friendly name has updated on windows (despite connecting directly using the device address??). 

我的问题是:

有什么方法可以强制在Windows中以编程方式刷新蓝牙设备的友好名称?

is there any way to force the bluetooth device friendly name to refresh programatically in windows?

如果您直接连接到BT地址,设备友好名称和配对过程之间是否存在任何联系?

Is there any connection between the device friendly name and the pairing process if you connect directly to a BT address?

推荐答案

您好robertbrendansmith,

Hi robertbrendansmith,

谢谢您在这里发布.

对于您的问题,在C#中,我们可以从蓝牙获取信息.但是,在尝试并在线搜索后,我找不到在C#中刷新的方法.

For your question, in C#, we could get the information from the Bluetooth. However, after trying and searching online, I could not find ways to refresh in C#.

我认为蓝牙可能出了点问题.蓝牙升级时,友好名称已更改.在我们的计算机中,我们可以看到升级名称.例如,我用我的iPhone.升级后连接蓝牙时,也许我会看到 旧名称.这取决于哪个蓝牙发射器的信号.友好名称不是问题.友好名称在升级时已更改.但是蓝牙没有刷新,它使用的是旧信息.这就是为什么你 说,直到友好名称升级,您才能连接.

I think maybe there is something wrong with the Bluetooth. When the Bluetooth upgrade, the friendly name changed. In our computer, we could see the upgrade name. I used my iPhone for example. When I connect the Bluetooth after it upgrade, maybe I would see the old name. It is depend on the signal which Bluetooth transmitter. It is not the problem about the friendly name. The friendly name has changed when it upgraded. But the Bluetooth did not been refresh and it use the old information. This is why you said that you could not connect until the friendly name upgrade.

也许您可以重新启动蓝牙以刷新蓝牙以升级信息.

Maybe you could restart the Bluetooth to refresh the Bluetooth to upgrade the information.

我希望这会对您有所帮助.

I hope this would be helpful to you.

最好的问候,

温迪


这篇关于C#并刷新蓝牙友好名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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