Thursday, October 11, 2012

Short and useful

Working with Bluez

To enable bluetooth driver in kernel, correct kernel configuration file to include Bluetooth subsystem, add required protocol supports, like rfcomm, l2cap, etc. Enable HCI support for the connection interface like USB or SDIO or which ever connection interface is required.

Now we have to include bluez-lib and bluez-utils in file system, which could be downloaded from bluez official site.
Once kernel and file system are in place, we have to bring bluetooth daemon up.
#/etc/init.d/bluetooth start

Now bluetooth service is ready to be used.

Useful tools for troubleshooting Bluetooth:

hcitool - to scan device remote device. There have few good options, but I have seen some are not working like connection.

hciconfig - To check and configure local bluetooth device

hidd - Bluetooth HID daemon

sdptool - control and interrogate SDP servers. provides the interface for performing SDP queries on Bluetooth devices, and administering a local sdpd.

obexftp - obexftp  is used to access files on mobile equipment, i.e. cell phones. With obexftpd you can transfer files between any computers using IrDA, Bluetooth and TCP/IP.
This tool lets you access the ObexFTP library by the means of a command line interface.  You might consider using  the  other  means  available. E.g. the ObexFS filesystem for Linux.

obexpushd - obexpushd is a program that can be used to receive files using OBEX (OBject EXchange) protocol over Bluetooth, IrDA or network connection. It can be used to receive files from mobile phones and other devices.
When run without -d or -n options obexpushd puts itself to the background and starts to listen for incoming connections via Bluetooth (default) and/or IrDA and/or network connection(TCP). obexpushd saves all received files to it's current directory but can alternativly forward all received data to a script for further processing.

obextool - A graphical frontend to browse obex file systems. able to communicate with mobiles and other communication devices using a standard communication protocol. Files can be uploaded to the mobile device, downloaded, renamed, copied, moved and deleted.  Detailed file properties may be displayed.

Links: