Damn Small Linux - Not!
The forum for DSL-N
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to enable bluetooth

 
Post new topic   Reply to topic    Damn Small Linux - Not! Forum Index -> DSL-N Tips and Tricks
View previous topic :: View next topic  
Author Message
Juanito



Joined: 11 Sep 2006
Posts: 88
Location: Dubai, U.A.E.

PostPosted: Tue Nov 28, 2006 3:48 am    Post subject: How to enable bluetooth Reply with quote

This might seem obvious, but remember to switch your Bluetooth device on before starting (enabled in BIOS, software & hardware switch)

[load the bluetooth utilities or bluez-utils.dsl once I post it]

#apt-get install bluez-utils

[Load the required modules]

# modprobe hci_usb
# modprobe rfcomm

[Check details of your local Bluetooth device]

# hcitool dev

Devices:
ID Dell TrueMobile Bluetooth Module USB\VID_413C&PID_8000
Dell TrueMobile Bluetooth Module
Manufacturer: Widcomm [now Broadcom...]
USB device
Manufacturer: Cambridge Silicon Radio
Firmware Revision: 1266
Bluetooth Device Address (BDA) 00:10:C6:56:F4:9F
HCI Version: Bluetooth HCI 1.2
LMP Version: Bluetooth LMP 1.2
LMP Sub Version: 04F2

[bring up the interface]

# hciconfig hci0 up

[verify everything loaded OK]

# hciconfig -a
hci0: Type: USB
BD Address: 00:10:C6:56:F4:9F ACL MTU: 192:8 SCO MTU: 64:8
UP RUNNING PSCAN ISCAN
RX bytes:71 acl:0 sco:0 events:8 errors:0
TX bytes:31 acl:0 sco:0 commands:8 errors:0
Features: 0xff 0xff 0x8f 0x78 0x18 0x18 0x00 0x80
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy:
Link mode: SLAVE ACCEPT
Name: 'CSR - bc2'
Class: 0x000000
Service Classes: Unspecified
Device Class: Miscellaneous,
HCI Ver: 1.2 (0x2) HCI Rev: 0x4f2 LMP Ver: 1.2 (0x2) LMP Subver: 0x4f2
Manufacturer: Cambridge Silicon Radio (10)

# hcitool dev
Devices:
hci0 00:10:C6:56:F4:9

[Now look for remote devices within range]

# hcitool scan
Scanning ...
00:0A:D9:E8:4A:65 .P900 [mobile phone]

[Check communication with remote device]

# l2ping 00:0A:D9:E8:4A:65
Ping: 00:0A:D9:E8:4A:65 from 00:10:C6:56:F4:9F (data size 20) ...
0 bytes from 00:0A:D9:E8:4A:65 id 0 time 56.93ms
0 bytes from 00:0A:D9:E8:4A:65 id 1 time 36.70ms
0 bytes from 00:0A:D9:E8:4A:65 id 2 time 31.67ms
<ctrl-c>
3 sent, 3 received, 0% loss

[Pair with remote device]

# hcitool auth 00:0A:D9:E8:4A:65 [asks for PIN on screen, PIN request on mobile]

[Search for modem on remote device and connect to it]

# sdptool search DUN
Inquiring ...
Searching for DUN on 00:0A:D9:E8:4A:65 ...
Service Name: Dial-up Networking
Service Description: Dial-up Networking
Service Provider: Sony Ericsson
Service RecHandle: 0x10015
Service Class ID List:
"Dialup Networking" (0x1103)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 7
Language Base Attr List:
code_ISO639: 0x656e
encoding: 0x6a
base_offset: 0x100
Profile Descriptor List:
"Dialup Networking" (0x1103)
Version: 0x0100

# rfcomm bind 0 00:0A:D9:E8:4A:65 1

[Check connection made OK]

# rfcomm show
rfcomm0: 00:0A:D9:E8:4A:65 channel 1 clean

Now I guess you are ready to use your mobile phone modem to connect to the Internet - didn't try it yet though...
Back to top
View user's profile Send private message
uddevil



Joined: 15 Dec 2006
Posts: 4
Location: Bandung, Indonesia

PostPosted: Fri Dec 15, 2006 5:29 pm    Post subject: question.. Reply with quote

can i use this for sending / receiving data from my cellphone..?


thanks
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
Juanito



Joined: 11 Sep 2006
Posts: 88
Location: Dubai, U.A.E.

PostPosted: Sat Dec 16, 2006 8:19 am    Post subject: Apparently so Reply with quote

Apparently you can - I saw via Google that several had managed it using other versions of Linux.
Let us know how you get on
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Damn Small Linux - Not! Forum Index -> DSL-N Tips and Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group