What is windows phone bluetooth

Содержание
  1. Pair a Bluetooth device in Windows
  2. Turn on Bluetooth
  3. To pair a Bluetooth headset, speaker, or other audio device
  4. To pair a Bluetooth keyboard, mouse, or other device
  5. To pair a Bluetooth printer or scanner
  6. To pair a Bluetooth device using Swift Pair
  7. Bluetooth Developer FAQ
  8. What APIs do I use? Bluetooth Classic (RFCOMM) or Bluetooth Low Energy (GATT)?
  9. Bluetooth LE (Windows.Devices.Bluetooth.GenericAttributeProfile)
  10. Bluetooth Classic (Windows.Devices.Bluetooth.Rfcomm)
  11. Why does my Bluetooth LE Device stop responding after a disconnect?
  12. Do I have to pair Bluetooth devices before using them?
  13. When should I pair with a device before communicating with it?
  14. Do all Windows devices support Peripheral Role?
  15. Can I access these APIs from Win32?
  16. Is this functionality supposed to exist on a specific SKU?
  17. Как передавать файлы по Bluetooth на Windows Phone 7.8
  18. Вопросы и ответы для Bluetooth-разработчиков Bluetooth Developer FAQ
  19. Какие интерфейсы API следует использовать? What APIs do I use? Bluetooth Classic (RFCOMM) или Bluetooth с низким энергопотреблением (GATT)? Bluetooth Classic (RFCOMM) or Bluetooth Low Energy (GATT)?
  20. Bluetooth LE (Windows.Devices.Bluetooth.GenericAttributeProfile) Bluetooth LE (Windows.Devices.Bluetooth.GenericAttributeProfile)
  21. Bluetooth Classic (Windows.Devices.Bluetooth.Rfcomm) Bluetooth Classic (Windows.Devices.Bluetooth.Rfcomm)
  22. Почему мое устройство Bluetooth LE перестает отвечать после отключения? Why does my Bluetooth LE Device stop responding after a disconnect?
  23. Требуется ли привязать устройства Bluetooth для их использования? Do I have to pair Bluetooth devices before using them?
  24. Когда следует связаться с устройством перед взаимодействием с ним? When should I pair with a device before communicating with it?
  25. Все ли устройства Windows поддерживают периферийную роль? Do all Windows devices support Peripheral Role?
  26. Можно ли получить доступ к этим API с Win32? Can I access these APIs from Win32?
  27. Эта функция должна существовать в определенном номере SKU? Is this functionality supposed to exist on a specific SKU?

Pair a Bluetooth device in Windows

You can pair all kinds of Bluetooth devices with your PC—including keyboards, mice, phones, speakers, and a whole lot more. To do this, your PC will need to have Bluetooth. Some PCs, such as laptops and tablets, have Bluetooth built in. If your PC doesn’t, you can plug a USB Bluetooth adapter into the USB port on your PC to get it.

Before you start, make sure that your Windows 10 PC supports Bluetooth. For more info on how to check, see Fix Bluetooth problems in Windows 10. If you need help adding a device without Bluetooth capabilities, see Add a device to a Windows 10 PC.

Turn on Bluetooth

After you’ve checked that your Windows 10 PC supports Bluetooth, you’ll need to turn it on. Here’s how:

Select Start > Settings > Devices > Bluetooth & other devices, and turn on Bluetooth.

In action center

Action center can be found next to time and date on your taskbar. On the taskbar, select action center ( or ), then select Bluetooth to turn it on. If it’s turned off, it might appear as Not connected.

If you don’t see Bluetooth in your action center, here’s how you can change it:

Expand quick actions. On the taskbar, select action center ( or ) > Expand. Bluetooth should appear here. It will appear as Bluetooth or Not connected.

Add Bluetooth to action center. Select Start > Settings > System > Notifications & actions > Quick actions. Go to Add or remove quick actions and turn on Bluetooth.

Note: For more info about how to change the apps and settings that appear in action center, see Change notification and action settings in Windows 10.

To pair a Bluetooth headset, speaker, or other audio device

Turn on your Bluetooth audio device and make it discoverable. The way you make it discoverable depends on the device. Check the device or visit the manufacturer’s website to learn how.

On your PC, select Start > Settings > Devices > Bluetooth & other devices > Add Bluetooth or other device > Bluetooth. Choose the device and follow additional instructions if they appear, then select Done.

Your Bluetooth device and PC will usually automatically connect anytime the two devices are in range of each other with Bluetooth turned on.

To pair a Bluetooth keyboard, mouse, or other device

Turn on your Bluetooth keyboard, mouse, or other device and make it discoverable. The way you make it discoverable depends on the device. Check the device or visit the manufactur’s website to learn how.

On your PC, select Start > Settings > Devices > Bluetooth & other devices > Add Bluetooth or other device > Bluetooth. Choose the device and follow additional instructions if they appear, then select Done.

To pair a Bluetooth printer or scanner

Turn on your Bluetooth printer or scanner and make it discoverable. The way you make it discoverable depends on the device. Check the device or visit the manufacturer’s website to learn how.

Select Start > Settings > Devices > Printers & scanners > Add a printer or scanner. Wait for it to find nearby printers, then choose the one you want to use and select Add device.

If you’re having installation issues with your printer or scanner, see either Fix printer problems or Install and use a scanner in Windows 10.

To pair a Bluetooth device using Swift Pair

Swift Pair in Windows 10 lets you quickly pair a supported Bluetooth device with your PC. If the Bluetooth device supports Swift Pair, you’ll receive a notification when it’s nearby and you put it into pairing mode to make it discoverable.

Читайте также:  Средства сравнения электронных таблиц windows 10

Turn on a Bluetooth device that supports Swift Pair and make it discoverable. The way you make it discoverable depends on the device. Check the device or visit the manufacturer’s website to learn more.

If this is your first time using Swift Pair, select Yes when asked if you want to get notifications and use Swift Pair.

When a notification appears that a new Bluetooth device was found, select Connect.

After it’s connected, select Close.

Before you start, make sure that your Windows 8 PC supports Bluetooth.

Turn on your Bluetooth device and make it discoverable.

The way you make it discoverable depends on the device. Check the device or visit the manufacturer’s website to learn how.

Select Start > type Bluetooth > select Bluetooth settings from the list.

Turn on Bluetooth > select the device > Pair.

Follow any instructions if they appear. Otherwise, you’re done and connected.

Your Bluetooth device and PC will usually automatically connect anytime the two devices are in range of each other with Bluetooth turned on.

Before you start, make sure that your Windows 7 PC supports Bluetooth.

Turn on your Bluetooth device and make it discoverable.

The way you make it discoverable depends on the device. Check the device or visit the manufacturer’s website to learn how.Turn on your Bluetooth device and make it discoverable. The way you make it discoverable depends on the device. Check the device or visit the manufacturer’s website to learn how.

Select Start > Devices and Printers.

Select Add a device > select the device > Next.

Follow any other instructions that might appear. Otherwise, you’re done and connected.

Your Bluetooth device and PC will usually automatically connect anytime the two devices are in range of each other with Bluetooth turned on.

Bluetooth Developer FAQ

This article contains answers to commonly asked UWP Bluetooth API questions.

What APIs do I use? Bluetooth Classic (RFCOMM) or Bluetooth Low Energy (GATT)?

There are various discussions online around this general topic so let’s keep this answer squarely on the difference with respect to Windows. Here are some general guidelines:

Bluetooth LE (Windows.Devices.Bluetooth.GenericAttributeProfile)

Use the GATT APIs when you are communicating with a device that supports Bluetooth Low Energy. If your use case is infrequent, low bandwidth, or requires low power, Bluetooth Low Energy is the answer. The main namespace that includes this functionality is Windows.Devices.Bluetooth.GenericAttributeProfile.

When not to use Bluetooth LE

  • High bandwidth, high frequency scenarios. If you need to constantly keep sync with large amounts of data, consider using Bluetooth classic or maybe even WiFi.

Bluetooth Classic (Windows.Devices.Bluetooth.Rfcomm)

The RFCOMM APIs give developers a socket to perform bidirectional serial port-style communication. Once you’ve got a socket, the methods for writing and reading are fairly standard. An implementation of this is presented in the Rfcomm Chat sample.

When not to use Bluetooth Rfcomm

  • Notifications. The Bluetooth GATT protocol has a specific command for this and will result in significantly less power draw and faster response times.
  • Checking for proximity or presence detection. Better to use the Advertisement APIs and connect over Bluetooth LE.

Why does my Bluetooth LE Device stop responding after a disconnect?

The most common reason this occurs is because the remote device has lost pairing information. A large number of older Bluetooth devices don’t require authentication. To protect the user, all pairing transactions performed from the Settings application will require authentication, and some devices were not designed with this in mind.

Starting with Windows 10 release 1511, developers have control over the pairing handshake. The Device Enumeration and Pairing Sample details the various aspects of associating new devices.

In this example, we initiate pairing with a device using no encryption. Note, this will only work if the remote device does not require encryption or authentication to function.

Do I have to pair Bluetooth devices before using them?

You don’t have to pair devices before using them if leveraging Bluetooth RFCOMM (classic). Starting with Windows 10 release 1607, you can simply query for nearby devices and connect to them. The updated RFCOMM Chat Sample shows this functionality.

(14393 and below) This feature is not available for Bluetooth Low Energy (GATT Client), so you will still have to pair either through the Settings page or using the Windows.Devices.Enumeration APIs in order to access these devices.

(15030 and above) Pairing Bluetooth devices is no longer needed. Use the new Async APIs like GetGattServicesAsync and GetCharacteristicsAsync in order to query the current state of the remote device. See the Client docs for more details.

When should I pair with a device before communicating with it?

Generally, if you require a trusted, long-term bond with a device, pair with it by either directing the user to the settings page or using the Device Enumeration and Pairing APIs. If you simply need to read information from the device that is exposed publicly (a temperature sensor or beacon), then connect or listen for advertisements without making any effort to pair with the device. This will prevent interoperability problems in the long run, because a large number of devices do not support pairing.

Читайте также:  Разрешить длинные имена файлов windows 10

Do all Windows devices support Peripheral Role?

No. This is a hardware-dependent feature, but a method is provided, BluetoothAdapter.IsPeripheralRoleSupported, to query whether it is supported or not. Currently supported devices include Windows Phone on 8992+ and RPi3 (Windows IoT).

Can I access these APIs from Win32?

Yes, all these APIs should work. This blog details the way to call Windows APIs from Desktop applications.

Is this functionality supposed to exist on a specific SKU?

Bluetooth LE: Yes, all functionality is in OneCore and should be available on most recent devices w/ a functioning Bluetooth LE stack.

Caveat: Peripheral Role is hardware-dependent and some Windows Server Editions don’t support Bluetooth.

Bluetooth BR/EDR (Classic): Some variations exist but mostly, they have very similar profile level support. See the docs on RFCOMM and these supported profile documents for PC and Phone

Как передавать файлы по Bluetooth на Windows Phone 7.8

Наконец-то в свет вышел апдейт Windows Phone 7.8. Самыми полезными его новшествам стали возможность раздачи Интернета и передача файлов по Bluetooth. Ранее мы только читали об этом, сейчас же можно испытать всё в действии.

Так об этом пишут наши заокеанские коллеги, мне пока что «замучить» Bluetooth не удалось, но можеб быть кому то эта информация будет полезна.

Bluetooth Share on Windows Phone 7.8

Теперь пользователи смартфонов Nokia Lumia на Windows Phone 7.5 получили приложение Bluetooth File Sharing. Программа отлично функционирует, и хотелось бы, чтобы также хорошо файлы передавались на платформе Windows Phone 8.

Уже прошло испытание передачи файлов через Bluetooth с телефона под управлением Windows Phone 8 на телефон Windows Phone 7.8. Смотрите видео:

Нужно выбрать файл и передать его с помощью опции «Поделиться» в меню. Если телефоны сопряжены, то передача начнется мгновенно. Вам нужно будет подтвердить принятие файла на смартфоне-получателе.

Bluetooth Share on Windows Phone 7.8

В приложении можно отдельно просмотреть отправленные и полученные файлы. Они показаны в виде списка, из которого можно открывать файлы. При передаче можно выбрать определенный тип файлов (картинки, музыка и т.д.).

Скачать Bluetooth Share из Nokia Collection or можно по ссылке .

Вопросы и ответы для Bluetooth-разработчиков Bluetooth Developer FAQ

Эта статья содержит ответы на часто задаваемые вопросы об API-интерфейсах UWP для работы с Bluetooth. This article contains answers to commonly asked UWP Bluetooth API questions.

Какие интерфейсы API следует использовать? What APIs do I use? Bluetooth Classic (RFCOMM) или Bluetooth с низким энергопотреблением (GATT)? Bluetooth Classic (RFCOMM) or Bluetooth Low Energy (GATT)?

В сети существуют различные обсуждения об этой общей теме, поэтому сосредоточим этот ответ исключительно на разнице относительно Windows. There are various discussions online around this general topic so let’s keep this answer squarely on the difference with respect to Windows. Ниже приведены некоторые общие рекомендации. Here are some general guidelines:

Bluetooth LE (Windows.Devices.Bluetooth.GenericAttributeProfile) Bluetooth LE (Windows.Devices.Bluetooth.GenericAttributeProfile)

Используйте интерфейсы API GATT при подключении к устройству, которое поддерживает Bluetooth с низким энергопотреблением. Use the GATT APIs when you are communicating with a device that supports Bluetooth Low Energy. Если ваш вариант использования является нечастой, низкой пропускной способностью или требует низкого энергопотребления, то ответом Bluetooth является низкий уровень энергии. If your use case is infrequent, low bandwidth, or requires low power, Bluetooth Low Energy is the answer. Основным пространством имен, которое содержит эту функцию, является Windows.Devices.Bluetooth.GenericAttributeProfile. The main namespace that includes this functionality is Windows.Devices.Bluetooth.GenericAttributeProfile.

Когда не следует использовать Bluetooth с низким энергопотреблением When not to use Bluetooth LE

  • Сценарии с высокой пропускной способностью и высокой частотой High bandwidth, high frequency scenarios. Если нужно постоянно синхронизировать большие объемы данных, лучше использовать классический Bluetooth или даже Wi-Fi. If you need to constantly keep sync with large amounts of data, consider using Bluetooth classic or maybe even WiFi.

Bluetooth Classic (Windows.Devices.Bluetooth.Rfcomm) Bluetooth Classic (Windows.Devices.Bluetooth.Rfcomm)

Интерфейсы API RFCOMM дают разработчикам возможность выполнять двунаправленную связь в стиле последовательного порта. The RFCOMM APIs give developers a socket to perform bidirectional serial port-style communication. Когда у вас есть сокет, методы для записи и чтения являются довольно стандартными. Once you’ve got a socket, the methods for writing and reading are fairly standard. Реализация этого представлена в примере чата Rfcomm. An implementation of this is presented in the Rfcomm Chat sample.

Когда не следует использовать Bluetooth Rfcomm When not to use Bluetooth Rfcomm

  • Уведомления. Notifications. Протокол Bluetooth GATT имеет определенную команду для этого и приведет к значительно меньшему потреблению энергии и сократит время ответа. The Bluetooth GATT protocol has a specific command for this and will result in significantly less power draw and faster response times.
  • Проверка близости или определение наличия. Checking for proximity or presence detection. Лучше использовать Интерфейсы API для рекламных объявлений и подключиться через Bluetooth с низким энергопотреблением. Better to use the Advertisement APIs and connect over Bluetooth LE.

Почему мое устройство Bluetooth LE перестает отвечать после отключения? Why does my Bluetooth LE Device stop responding after a disconnect?

Чаще всего это происходит из-за того, что удаленное устройство потеряло сведения о парах. The most common reason this occurs is because the remote device has lost pairing information. Для большого числа старых устройств Bluetooth не требуется проверка подлинности. A large number of older Bluetooth devices don’t require authentication. Для защиты пользователя все связанные транзакции, выполняемые из приложения параметров, будут требовать проверки подлинности, и некоторые устройства не были спроектированы с учетом этого. To protect the user, all pairing transactions performed from the Settings application will require authentication, and some devices were not designed with this in mind.

Читайте также:  Как удалить журнал обновлений windows

Начиная с выпуска Windows 10 1511 разработчики могут управлять подтверждением связывания. Starting with Windows 10 release 1511, developers have control over the pairing handshake. В примере перечисления и связывания устройств описываются различные аспекты связывания новых устройств. The Device Enumeration and Pairing Sample details the various aspects of associating new devices.

В этом примере мы начинаем связывание с устройством без шифрования. In this example, we initiate pairing with a device using no encryption. Обратите внимание, что это сработает, только если удаленное устройство не запрашивает шифрование или проверку подлинности. Note, this will only work if the remote device does not require encryption or authentication to function.

Требуется ли привязать устройства Bluetooth для их использования? Do I have to pair Bluetooth devices before using them?

Вам не нужно связывать устройства, прежде чем использовать их, если вы используете Bluetooth RFCOMM (классическая модель). You don’t have to pair devices before using them if leveraging Bluetooth RFCOMM (classic). Начиная с выпуска 1607 Windows 10 вы можете просто запросить ближайшие устройства и подключиться к ним. Starting with Windows 10 release 1607, you can simply query for nearby devices and connect to them. Эта функция показана в обновленном примере чата RFCOMM. The updated RFCOMM Chat Sample shows this functionality.

(14393 и ниже) Эта функция недоступна для Bluetooth с низким энергопотреблением (GATT Client), поэтому для доступа к этим устройствам по-прежнему придется связываться с помощью страницы параметров или с помощью API-интерфейсов Windows. Devices. Enumeration. (14393 and below) This feature is not available for Bluetooth Low Energy (GATT Client), so you will still have to pair either through the Settings page or using the Windows.Devices.Enumeration APIs in order to access these devices.

(15030 и более поздние версии) Связывание устройств Bluetooth больше не требуется. (15030 and above) Pairing Bluetooth devices is no longer needed. Используйте новые API Async, такие как GetGattServicesAsync и GetCharacteristicsAsync, для запроса текущего состояния удаленного устройства. Use the new Async APIs like GetGattServicesAsync and GetCharacteristicsAsync in order to query the current state of the remote device. Дополнительные сведения см. в документации клиента. See the Client docs for more details.

Когда следует связаться с устройством перед взаимодействием с ним? When should I pair with a device before communicating with it?

Как правило, если вам требуется надежная, долгосрочная облигации с устройством, свяжите с ним или направьте пользователя на страницу параметров или используйте перечисление устройств и попарные API-интерфейсы. Generally, if you require a trusted, long-term bond with a device, pair with it by either directing the user to the settings page or using the Device Enumeration and Pairing APIs. Если вам нужно просто прочитать информацию с устройства, доступного для общего доступа (датчик температуры или маяк), подключитесь к рекламным данным или прослушайте рекламу, не прибегая к работе с устройством. If you simply need to read information from the device that is exposed publicly (a temperature sensor or beacon), then connect or listen for advertisements without making any effort to pair with the device. Это предотвратит проблемы взаимодействия в долгосрочном запуске, так как большое число устройств не поддерживает связывание. This will prevent interoperability problems in the long run, because a large number of devices do not support pairing.

Все ли устройства Windows поддерживают периферийную роль? Do all Windows devices support Peripheral Role?

Нет. No. Это аппаратно зависимая функция, но для запроса того, поддерживается ли он, Блуетусадаптер. Исперифералролесуппортед предоставляет метод. This is a hardware-dependent feature, but a method is provided, BluetoothAdapter.IsPeripheralRoleSupported, to query whether it is supported or not. К устройствам, поддерживающимся в настоящее время, относятся Windows Phone на 8992+ и RPi3 (Windows IoT). Currently supported devices include Windows Phone on 8992+ and RPi3 (Windows IoT).

Можно ли получить доступ к этим API с Win32? Can I access these APIs from Win32?

Да, все эти API должны работать. Yes, all these APIs should work. В этой публикации блога описан способ вызова API Windows из приложений для настольных компьютеров. This blog details the way to call Windows APIs from Desktop applications.

Эта функция должна существовать в определенном номере SKU? Is this functionality supposed to exist on a specific SKU?

Bluetooth с низким энергопотреблением: да, все функции есть в OneCore и должны быть доступны на последних устройствах со стеком Bluetooth с низким энергопотреблением. Bluetooth LE: Yes, all functionality is in OneCore and should be available on most recent devices w/ a functioning Bluetooth LE stack.

Предостережение. роль периферийных устройств зависит от оборудования, а некоторые выпуски Windows Server не поддерживают Bluetooth. Caveat: Peripheral Role is hardware-dependent and some Windows Server Editions don’t support Bluetooth.

Bluetooth BR/ЕДР (классическая модель). Существует несколько вариантов, но в основном они имеют очень похожую поддержку на уровне профиля. Bluetooth BR/EDR (Classic): Some variations exist but mostly, they have very similar profile level support. См. документацию по RFCOMM и поддерживаемые документы профиля для ПК и телефона See the docs on RFCOMM and these supported profile documents for PC and Phone

Оцените статью