Bluetooth/en: различия между версиями
FuzzyBot (обсуждение | вклад) (Обновление для соответствия новой версии исходной страницы.) |
(Новая страница: «The <code>hcitool dev</code>command can be used to check if the device is enabled.») |
||
(не показано 11 промежуточных версий 2 участников) | |||
Строка 1: | Строка 1: | ||
<languages/> | <languages/> | ||
= Wiren Board 6: Bluetooth module = | |||
Wiren Board controllers are equipped with a combined Wi-Fi + Bluetooth 4.0 BLE (Bluetooth Low Energy) radio module manufactured by Realtek. | |||
Wiren Board 6 controllers are equipped with a combined Wi-Fi + Bluetooth 4.0 BLE (Bluetooth Low Energy) radio module manufactured by Realtek. Controllers do not support Bluetooth in modification without Wi-Fi! The same antenna as for Wi-Fi is used for Bluetooth communication. | |||
== Software == | == Software == | ||
There is preinstalled software[[http://www.bluez.org/ BlueZ|http://www.bluez.org/ BlueZ]], that supports the Bluetooth stack on Linux. A detailed description and purpose of the commands is given on the project page. Check the availability of Bluetooth with <code>hciconfig</code> command: | There is preinstalled software[[http://www.bluez.org/ BlueZ|http://www.bluez.org/ BlueZ]], that supports the Bluetooth stack on Linux. A detailed description and purpose of the commands is given on the project page. Check the availability of Bluetooth with <code>hciconfig</code> command: | ||
[[File:Hciconfig.png|||||]] | [[File:Hciconfig.png|||||]] | ||
Строка 14: | Строка 13: | ||
The <code>hcitool dev</code>command can be used to check if the device is enabled. | The <code>hcitool dev</code>command can be used to check if the device is enabled. | ||
Управлять включением/выключением Bluetooth-интерфейса можно командой <code>hciconfig hci0 up | down</code>. | |||
Поиск классических Bluetooth-устройств (BR/EDR, Bluetooth Basic Rate/Enhanced Data Rate) выполняется командой <code>hcitool scan</code>, сканирование BLE-устройств — | |||
<code>hcitool lescan</code>. | |||
Поиск Bluetooth-устройств рядом с контроллером описан в [[https://habr.com/company/wirenboard/blog/420831/ нашей статье|https://habr.com/company/wirenboard/blog/420831/ нашей статье]] в разделе "Bluetooth". | |||
=== Сканирование сервисов === | |||
Узнать, какие Bluetooth-сервисы поддерживает найденное устройство (телефон, к примеру), можно командой | |||
<pre>sdptool browse 58:40:4E:60:C5:B1 | grep "Service Name"</pre> | <pre>sdptool browse 58:40:4E:60:C5:B1 | grep "Service Name"</pre> | ||
[[File:Btservices.png||||||]] | [[File:Btservices.png||||||]] | ||
=== Работа с сервисами === | |||
Различные устройства поддерживают свой набор Bluetooth-сервисов, например, передачу файлов, работу в качестве сетевой карты, устройство воспроизведения аудио и т.п. Возможность работы с этими сервисами описана в документации к ПО [[http://www.bluez.org/ BlueZ|http://www.bluez.org/ BlueZ]], в документации к устройствам и на профильных форумах. Использование каждого сервиса требует сооетветвующей настройки. |
Версия 16:13, 23 апреля 2019
Wiren Board 6: Bluetooth module
Wiren Board 6 controllers are equipped with a combined Wi-Fi + Bluetooth 4.0 BLE (Bluetooth Low Energy) radio module manufactured by Realtek. Controllers do not support Bluetooth in modification without Wi-Fi! The same antenna as for Wi-Fi is used for Bluetooth communication.
Software
There is preinstalled software[BlueZ|http://www.bluez.org/ BlueZ], that supports the Bluetooth stack on Linux. A detailed description and purpose of the commands is given on the project page. Check the availability of Bluetooth with hciconfig
command:
The hcitool dev
command can be used to check if the device is enabled.
Управлять включением/выключением Bluetooth-интерфейса можно командой hciconfig hci0 up | down
.
Поиск классических Bluetooth-устройств (BR/EDR, Bluetooth Basic Rate/Enhanced Data Rate) выполняется командой hcitool scan
, сканирование BLE-устройств —
hcitool lescan
.
Поиск Bluetooth-устройств рядом с контроллером описан в [нашей статье|https://habr.com/company/wirenboard/blog/420831/ нашей статье] в разделе "Bluetooth".
Сканирование сервисов
Узнать, какие Bluetooth-сервисы поддерживает найденное устройство (телефон, к примеру), можно командой
sdptool browse 58:40:4E:60:C5:B1 | grep "Service Name"
Работа с сервисами
Различные устройства поддерживают свой набор Bluetooth-сервисов, например, передачу файлов, работу в качестве сетевой карты, устройство воспроизведения аудио и т.п. Возможность работы с этими сервисами описана в документации к ПО [BlueZ|http://www.bluez.org/ BlueZ], в документации к устройствам и на профильных форумах. Использование каждого сервиса требует сооетветвующей настройки.