Bluetooth/en: различия между версиями

Материал из Wiren Board
Метки: правка с мобильного устройства правка из мобильной версии
(Обновление для соответствия новой версии исходной страницы.)
 
Строка 1: Строка 1:
<languages/>
<languages/>
= Wiren Board: Bluetooth module =
<div class="mw-translate-fuzzy">
 
Wiren Board controllers are equipped with a combined Wi-Fi + Bluetooth 4.0 BLE (Bluetooth Low Energy) radio module manufactured by Realtek.Wiren Board Controllers do not support Bluetooth if purchased modification is without Wi-Fi ! The same antenna as for Wi-Fi is used for Bluetooth communication.
Wiren Board controllers are equipped with a combined Wi-Fi + Bluetooth 4.0 BLE (Bluetooth Low Energy) radio module manufactured by Realtek.Wiren Board Controllers do not support Bluetooth if purchased modification is without Wi-Fi ! The same antenna as for Wi-Fi is used for Bluetooth communication.
 
</div>


== Software ==
== Software ==


<div class="mw-translate-fuzzy">
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:
</div>


[[File:Hciconfig.png|||||]]
[[File:Hciconfig.png|||||]]
Строка 16: Строка 17:


Searching for classic Bluetooth-devices (BR/EDR, Bluetooth Basic Rate/Enhanced Data Rate) is proceed by the <code>hcitool scan</code> command, searching for BLE-devices — <code>hcitool lescan</code>.
Searching for classic Bluetooth-devices (BR/EDR, Bluetooth Basic Rate/Enhanced Data Rate) is proceed by the <code>hcitool scan</code> command, searching for BLE-devices — <code>hcitool lescan</code>.


Searching for Bluetooth devices near the controller is described in [[https://habr.com/company/wirenboard/blog/420831/ our article|https://habr.com/company/wirenboard/blog/420831/]] in "Bluetooth" section(only ru version).
Searching for Bluetooth devices near the controller is described in [[https://habr.com/company/wirenboard/blog/420831/ our article|https://habr.com/company/wirenboard/blog/420831/]] in "Bluetooth" section(only ru version).


=== Scanning services ===
=== Scanning services ===
Строка 27: Строка 26:


[[File:Btservices.png||||||]]
[[File:Btservices.png||||||]]


=== Working with services ===
=== Working with services ===


<div class="mw-translate-fuzzy">
Different devices support their own set of Bluetooth services such as file transfer, operating as network cards, audio playback device, etc. The opportunity to work with these services is described in the documentation for software [[http://www.bluez.org/ BlueZ|http://www.bluez.org/ BlueZ]], in the documentation for the devices and on specialized forums. The use of each service requires a corresponding configuration.
Different devices support their own set of Bluetooth services such as file transfer, operating as network cards, audio playback device, etc. The opportunity to work with these services is described in the documentation for software [[http://www.bluez.org/ BlueZ|http://www.bluez.org/ BlueZ]], in the documentation for the devices and on specialized forums. The use of each service requires a corresponding configuration.
</div>

Текущая версия на 10:25, 6 сентября 2022

Другие языки:

Wiren Board controllers are equipped with a combined Wi-Fi + Bluetooth 4.0 BLE (Bluetooth Low Energy) radio module manufactured by Realtek.Wiren Board Controllers do not support Bluetooth if purchased modification is 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:

Hciconfig.png

The hcitool devcommand can be used to check if the device is enabled.

You can control the Bluetooth interface mode on/off with the hciconfig hci0 up | down command.

Searching for classic Bluetooth-devices (BR/EDR, Bluetooth Basic Rate/Enhanced Data Rate) is proceed by the hcitool scan command, searching for BLE-devices — hcitool lescan.

Searching for Bluetooth devices near the controller is described in [our article|https://habr.com/company/wirenboard/blog/420831/] in "Bluetooth" section(only ru version).

Scanning services

You can find out which Bluetooth services are supported by the device found (phone, for example) by the following command

sdptool browse 58:40:4E:60:C5:B1 | grep "Service Name"

Btservices.png

Working with services

Different devices support their own set of Bluetooth services such as file transfer, operating as network cards, audio playback device, etc. The opportunity to work with these services is described in the documentation for software [BlueZ|http://www.bluez.org/ BlueZ], in the documentation for the devices and on specialized forums. The use of each service requires a corresponding configuration.