Y
Y
Yu Yu2019-02-09 22:33:11
linux
Yu Yu, 2019-02-09 22:33:11

How to start programming bluetooth in Linux?

Hello!
I'm making a device that should work with a PC via bluetooth. The device works with the microchip RN4871 module via UART. On a PC, something like USB 5bites BTA40-02.
Alternatively, you can configure the serial port like this.
And if the software version, without introducing it into the settings, is everything in the application? I will do it on Qt.
For Linux, there is some kind of BlueZ stack. Who met him? Prompt materials in Russian. How are BTs generally programmed on a PC, where to start?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
J
Jacob E, 2019-02-13
@xztau

Start by reading the Qt documentation . As far as I understand, Qt on the line works just through the "BlueZ stack".

L
lonelymyp, 2019-02-10
@lonelymyp

Virtual comport is extremely simple, just install the driver on the bluetooth adapter and ... that's it.
Data transfer will already work, by itself, even without a special program, you can even send / receive data manually in the terminal.
The method of using comport in programs has been worked out for decades and the Internet is filled with hundreds of examples of working with comport in any operating system.
Do not use non-name usb bluetooth adapters on unknown chips. A wide variety of glitches and problems are possible, try to find an adapter based on some more or less popular chip that has official drivers for the version of the operating system you need and is guaranteed to support the required profile.
Similarly, about the bluetooth module, you don’t need to choose something uncommon for the first time, choose a popular bluetooth module with available code examples like HC-06.
Not all bluetooth modules have clear documentation and are easy to configure.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question