N
N
Nicholas2020-12-28 02:29:58
linux
Nicholas, 2020-12-28 02:29:58

How to create a Bluetooth hotspot under Linux with Bluez version 5?

Given: PC running Linux (Gentoo), Bluetooth controlled via Bluez 5, LAN connection, Samsung Galaxy J6 phone. I'm trying to connect it to the network via Bluetooth (I just want to compare the reliability of communication with Wi-Fi, maybe there will be fewer interruptions compared to Wi-Fi, although the speed will most likely be less).

I found an instruction in the gentoo wiki with such a scheme, at the beginning a bridge is created (brctl addbr br0 && brctl addif br0 eth0 && brctl setfd br0 0 && brctl stp br0 off && ifconfig br0 up && dhclient br0), then the point itself is launched (bluez-test- nap br0). Bluez 4 had the pand service, it was removed in 5.
As a result, the phone sees the network, connects to it, receives an IP address from the router, and then stops responding, only arp requests arrive from the phone via the bnep0 interface, and then quite rarely. At the same time, if you try to ping the phone from the computer, the counter of incoming packets on the phone grows, outgoing ones too, but the counter of incoming packets on the computer does not grow, as if the connection is one-way.
Moreover, if you turn on the distribution via Bluetooth in the opposite direction (from the phone to the computer), then the network works.
Where do you need to dig? maybe you need to wait for bluez update?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question