"Bluetooth is an industrial specification for wireless personal area networks (PANs). Bluetooth provides a way to connect and exchange information between devices such as mobile phones, laptops, PCs, printers, digital cameras and video game consoles via a secure, globally unlicensed short-range radio frequency" from (Wikipedia Bluetooth definition).
This article explains how to use an USB Bluetooth adapter on the FOX Board and how to implements some services on it like device scanning and object pushing.
To quickly try bluetooth on your FOX Board you need:
Download a ready to use flash image for your FOX Board model:How to reflash a FOX Board).
Login your FOX Board and type:
# cdBluez-start Using /lib/modules/2.6.15/kernel/net/bluetooth/bluetooth.ko Using /lib/modules/2.6.15/kernel/net/bluetooth/l2cap.ko Using /lib/modules/2.6.15/kernel/net/bluetooth/rfcomm/rfcomm.ko Using /lib/modules/2.6.15/kernel/drivers/bluetooth/hci_usb.ko
with this command you start the Bluetooth stack. Now turn on a Bluetooth device and scan the active devices typing:
# hcitool scan
If everything is OK you should obtain the Bluetooth devices address list.
Scanning ... 00:16:20:8F:BA:60 Z520i 00:12:56:C2:88:17 Sergio 08:00:46:EA:CA:12 NOME-YOMKTFIKO9
To found the devices who gets available OPUSH services type:
# sdptool search OPUSH Inquiring ... Searching for OPUSH on 00:16:20:8F:BA:60 ... Service Name: OBEX Object Push Service RecHandle: 0x10005 Service Class ID List: "OBEX Object Push" (0x1105) Protocol Descriptor List: "L2CAP" (0x0100) "RFCOMM" (0x0003) Channel: 5 "OBEX" (0x0008) Profile Descriptor List: "OBEX Object Push" (0x1105) Version: 0x0100
Now you can try to send and image to your mobile. For example let we send this TUX Case image:
If you have your FOX Board connected to internet you can get this image directly from the Acme site typing:
# cd /mnt/flash # wget http://18.104.22.168/articles/00112/tuxcase.jpg Connecting to 22.214.171.124[126.96.36.199]:80 tuxcase.jpg 100% |*****************************| 4710 00:00 ETA
Then to send it to your mobile type:
# ussp-push 00:16:20:8F:BA:60@5 tuxcase.jpg tuxcase.jpg name=tuxcase.jpg, size=4710 Local device 00:02:72:81:4A:EC Remote device 00:16:20:8F:BA:60 (5) Connection establishedIf everything goes ok you will have the TUX Case on your mobile phone:
The format of ussp-push command is:
# ussp-push addressdevice@channel localfile remotefile
Some implementations on the fifth layer are:
BlueZ is the official Bluetooth protocol stack for Linux (www.bluez.org).
It provides the libraries to interface the applications with the Bluetooth utilities and services.
# make menuconfigThen enable the Bluetooth support from this voices:
Driver settings Bluetooth BlueZ libraries and tools [*] OpenObex [*] ussp-pushThen save, exit and type:
# ./configure ... # makeNow reflash your board with the new fimage.
a company involved in creating technological products with a high degree of innovation. Confinidigitali offers its experience in the hardware and software design based on the Acme Systems FOX Board following the customer in all the stages of product development.