Error Communicating With Local Bluetooth Adapter
5 posts by mahithm » Wed Nov 26, 2014 3:58 am Hi,I'm new to Raspberry Pi and I'm trying pybluez error communicating with local bluetooth adapter to implement a Bluetooth In/Out Board with it. I have a python error communicating with local bluetooth adapter Raspberry Pi B+ model running Raspbian. I have used the following http://www.instructables.com/id/Raspberry-Pi-Bluetooth-InOut-Board-or-Whos-Hom/?ALLSTEPS as the reference for the same. python bluetooth library But everytime I run the python program, it throws up the following error.Code: Select allpi@raspberrypi ~ $ python inquiry.py
performing inquiry...
Traceback (most recent call last):
File "inquiry.py", line 12, in
nearby_devices = bluetooth.discover_devices(lookup_names = True)
File "/usr/lib/python2.7/dist-packages/bluetooth/bluez.py", line 22, in discover_devices
raise BluetoothError ("error communicating with local "
bluetooth.btcommon.BluetoothError: error communicating with local bluetooth adapter
I can detect the bluetooth adapter but when I run the command "hcitool scan" from terminal, it gives me the error, "Inquiry failed : Connection timed out". I have installed the packages bluetooth bluez bluez-utils blueman python-bluez for the same. Here are the other info, if it helps.Code: Select allpi@raspberrypi ~ $ uname -a
Linux raspberrypi 3.12.28+ #709 PREEMPT Mon Sep 8 15:28:00 BST 2014 armv6l GNU/Linux
pi@raspberrypi ~ $ lsusb
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 016: ID 1a2c:0002
Bus 001 Device 015: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
Bus 001 Device 012: ID 15d9:0a4f Trust International B.V.
Bus 001 Device 006: ID 148f:5370 Ralink Technology, Corp. RT5370 Wireless Adapter
I have been stuck on this problem for sometime now. I have tried googling for the similar problem but none of the solution posted for it actually worked for me. Hence I'm here "Duh" . Any help in solving this problem will be highly appreciate
von GoogleAnmeldenAusgeblendete FelderNach Gruppen oder Nachrichten suchen
Instructable »Raspberry Pi Bluetooth In/Out Board or "Who's Home" by prb3333 in technologyraspberry-pi Download 4 Steps Share Favorite I Made it! Collection Intro Intro: Raspberry Pi Bluetooth In/Out Board or "Who's Home"I wanted to create an electronic In/Out Board. The type you http://www.instructables.com/id/Raspberry-Pi-Bluetooth-InOut-Board-or-Whos-Hom/step2/Install-bluetooth-software/ may have to record who is present or not in a company or home. It is usually ... 1 Step 1: Raspberry Pi SetupLet's get started. You will need: A Raspberry Pi computer, I tested with http://www.drivers.com/fix_bluetooth_drivers.php the 512 MB model, with internet connection. An SD card loaded with the latestRaspbian “wheezy” ... 2 Step 2: Install bluetooth softwareAt the terminal type the command sudo apt-get install bluez this will take a little error communicating while to install the bluetooth drivers and software. Also needed is the the ... 3 Step 3: Get bluetooth device addressesYou can use the inquiry.py script from the pybluez website to query the nearby discoverable devices. https://code.google.com/p/pybluez/source/browse/trunk/examples/simple/inquiry.py At the pi terminal: wget https://pybluez.googlecode.com/svn/trunk/examples/simple/inquiry.py python inquiry.py You will need ... 4 Step 4: Run the basic In/Out BoardYou can get my basic In/Out Board python script using this command: wget https://raw.github.com/paulbarber/raspi-gpio/master/inoutboard.py Insert error communicating with your device addresses and person names into the script. Repeat the 'if' block ...Step 2: Install bluetooth softwareShow All Items At the terminal type the command sudo apt-get install bluez this will take a little while to install the bluetooth drivers and software. Also needed is the the pybluez interface from Python to bluetooth. sudo apt-get install python-bluez If you have not already, insert your bluetooth dongle into a USB port on the pi. At the terminal you can use hcitool to check your device, e.g. type hcitool dev « PreviousNext »View All Steps DownloadAdvertisement
I am a nube to python and programming, but have a project in mind this will help me with.
This Works pretty good and i'm very interested in getting this to work for me, however, I noticed that as long as John is found, then it "looks" for Paul, then Paul shows either In or Out correctly, but if John is not found, it assumes Paul is not found and does not try to "look" for Paul, and just prints
John: Out
Paul: Out
If i comment out John's section, then the Paul's works as expected.
Please Help. Thanks
Hi,Is it an issue with the line indentation?
Python is fussy about how specific lines are indented to make the 'if' statements work correctly.
Windows Vista, Windows XP System Requirements Windows: Platform: Windows 8, Windows 7, Vista, XP How To Fix Bluetooth Driver Problems About Bluetooth Device Drivers: A Bluetooth Driver is a software program that allows your operating system to communicate with a Bluetooth device and vice-versa. Bluetooth Device Drivers are operating system and device specific. In other words, for the same Bluetooth Device, you are likely to require a different Driver for Windows 8 or Windows 7 to the Driver you would need for Windows XP. Also, one Driver will work only with one type of Bluetooth Device. Description Compatibility Download Bluetooth Driver Update Tool Windows 8, Windows 7, Vista, XP DOWNLOAD In most cases, Bluetooth Device Driver errors occur when the required Driver is either missing or corrupt. In this article, we will discuss the following topics: What are the common causes of Bluetooth Device Drivers problems? How to troubleshoot Bluetooth Device Drivers errors Common Bluetooth Device Drivers Problems: If you encounter a problem with your Bluetooth Driver, your Windows operating system will fail to identify the connected Bluetooth Device. Most of the time, you will be made aware of a problem in a Bluetooth device driver by the appearance of an error message on your screen. Below are some of the common Bluetooth Driver errors and their meaning: Error 1 – “Bluetooth device not found. Please verify that your Bluetooth device is properly connected and turned on” Meaning – The above error has been reported mostly in Windows XP, and it occurs because Windows XP installs its own Bluetooth device driver instead of the driver that was included with your Bluetooth device. Error 2 – “This device is not configured correctly. (Code 1)” Meaning – The above error means that either the required Bluetooth Driver is not installed on your computer or it is missing. Error 3 – “This device cannot start. (Code 10)” Mean