This process can be easily automated by writing a script using the l2ping command. If your smartphone becomes separated from your OpenWrt router, simply re-issue the command
Can you see mac address of laptop tethered to smartphone Bluetooth#
Note that HWaddr is the Bluetooth MAC address of the USB Bluetooth dongle connected to your OpenWrt device. TX packets:11379 errors:0 dropped:0 overruns:0 carrier:0 RX packets:11071 errors:0 dropped:0 overruns:0 frame:0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 The output of the ifconfig command should now contain a block which looks something like the belowīnep0 Link encap:Ethernet HWaddr 5C:F3:70:9B:95:CD Get an IP address and route your Internet traffic though your smartphone by issuing the following commands. You should now get an indication on your smartphone that your OpenWrt router is connected. For example, for my IPhone, I would type the commandĭbus-send -system -type=method_call -dest=org.bluez /org/bluez/hci0/dev_50_BC_96_9D_DD_21 string:'nap' Where XX represents the Bluetooth MAC address of your smartphone. While logged into your OpenWrt device with the default Access Point configuration, issue the following commandĭbus-send -system -type=method_call -dest=org.bluez /org/bluez/hci0/dev_XX_XX_XX_XX_XX_XX string:'nap' This has been tested with an IPhone 8 running IOS 14.2, OpenWrt 18.06.4 running on a HooToo TM03 and RAVPower RP-WD02 with a MicroSD card overlay file systems and a MT-300A with both Sabrent and Plugable USB Bluetooth dongles. (Connect devices to the hotspot normally, then go to Manage devices, and touch the name of each connected device to view its MAC address.) Touch Manage allowed devices > Add allowed device For each device, enter the MAC address and device name. In order to maximize performance, you should turn your tethered phone Wi-Fi off. Get the MAC addresses of the devices you want to allow to connect. In short, you get the stability of USB Tethering without the need to have your smartphone physically connected to your OpenWrt Router. Unlike USB tethering, Bluetooth tethering allows you the freedom to use your smartphone without the limits of being connected to a USB cable. It also is less of a CPU load on your phone, and allows you the flexibility of doing things with your OpenWrt router that you cannot do with your phone like connecting multiple devices with ease, both wireless and wired, to each other and to the internet. It's more convenient and has better performance (lower latency, more stable) than turning your smartphone into an access point and using that. Bluetooth tethering is used to connect your OpenWrt Router to the Internet by using your smartphone.