Bluetooth Networking: access Raspberry from Android
Posted: Tue Mar 19, 2013 6:50 pm
Hello,
For several projects I would like to control a Raspberry Pi from a browser on an android device; a media player on our ship and a timelapse computer. Both applications are essentially battery powered, so I need a low-power connection solution; enter bluetooth.
What I want is to be able to browse the server on a raspberry Pi from an android device (or possibly every laptop, tablet). No tethering or anything fancy, and I do not need internet on the Pi via the phone.
I have been testing this with my android phone (HTC Desire Z running stock android 2.3.2) and my kubuntu desktop PC using a cheap android adapter. Using KDE's bluetooth tool, I can browse the files on the phone, so hardwarewise everything works.
I've installed on the PC (which will be the Pi) bluez-utils, bluez-compat and bluez-hcidump. After a I got the phone's bt Mac Address. Now when I do I get
I've read dozens of pages on bluetooth and linux, but most want their phone's internet on their laptop, which is the other way around; but even trying those has lead to nothing. Ideally, the raspberry should also auto-accept any bluetooth device that wants to browse it (that is, browse the internet, not browse files) so no interference with the Pi is needed anymore.
Any hints/tips?
For several projects I would like to control a Raspberry Pi from a browser on an android device; a media player on our ship and a timelapse computer. Both applications are essentially battery powered, so I need a low-power connection solution; enter bluetooth.
What I want is to be able to browse the server on a raspberry Pi from an android device (or possibly every laptop, tablet). No tethering or anything fancy, and I do not need internet on the Pi via the phone.
I have been testing this with my android phone (HTC Desire Z running stock android 2.3.2) and my kubuntu desktop PC using a cheap android adapter. Using KDE's bluetooth tool, I can browse the files on the phone, so hardwarewise everything works.
I've installed on the PC (which will be the Pi) bluez-utils, bluez-compat and bluez-hcidump. After a
Code: Select all
hcitool scanCode: Select all
pand --connect 00:11:22:33:44:55 -nCode: Select all
pand[6424]: Bluetooth PAN daemon version 4.101
pand[6424]: Connecting to 90:21:55:AD:64:22
pand[6424]: Connect to 90:21:55:AD:64:22 failed. Connection refused(111)
Any hints/tips?