UPDATE: this tutorial has some vital info. Firstly, you will need a script called network-setup which is in /usr/share/doc/bluez-test-scripts/examples. Copy the test-network and the bluezutils.py files to /usr/bin and run test-network <MAC address you want to connect to>.

This worked for the first time but it fails to get IP ever since.

I have successfully managed to connect my Pi Zero to my Android phone but the initiate tethering, I need the GUI (Bluetooth manager). Can I setup tethering from the console and maybe even set it to start at boot?


You probably want to use bluetoothctrl. See How to Pair your Bluetooth Device when Using Bluez 5.x.

  • Unfortunately it doesn't say much about setting up PAN, nevertheless you are right about bluetoothctrl. I will try it! Thank you very much!!! – alkopop79 Sep 17 '16 at 19:29

The solution: test-network <address> nap

NOTE: To use this outside the /usr/share/doc/bluez-test-scripts/examples, you need to copy the testnetwork and bluez-utils.py files from /usr/share/doc/bluez-test-scripts/examples to /usr/bin first!!!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.