LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices

Reply
 
Search this Thread
Old 01-27-2009, 02:40 AM   #1
ebinjose
LQ Newbie
 
Registered: Jan 2008
Posts: 14

Rep: Reputation: 0
bluez hciconfig doesn't list the device class


Hi,

I am using, bluez*3.7.

{Just to give a background:
We are trying to build/run bluetooth stack on an imx.31 (arm based) platform which runs linux.
bluetooth chip is connected to imx.31 platform via a serial port.
I am trying to connect imx.31 to a sony-ericsson mobile handset.}

1) "hciconfig -a", will list all the details of the connected device, like the device class, services, device local name etc. But in our case, it doesn't seem to list such details.
It shows as follows (hcidump is enabled, so there are more messages)
--------------------------------------------------------------------------------------
mx31# hciconfig -a
hci0: Type: UART
BD Address: 00:02:5B:00:A5:A5 ACL MTU: 310:10 SCO MTU: 64:8
UP RUNNING PSCAN ISCAN
RX bytes:573 acl:0 sco:0 events:12 errors:0
TX bytes:254 acl:0 sco:0 commands:13 errors:0
Features: 0xff 0xff 0x8f 0xfe 0x9b 0xf9 0x00 0x80
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy:
Link mode: SLAVE ACCEPT
< HCI Command: Read Local Name (0x03|0x0014) plen 0
Name: 'CSR - bc4'
> HCI Event: Command Complete (0x0e) plen 252
< HCI Command: Read Class of Device (0x03|0x0023) plen 0
Class: 0x000000
Service Classes: Unspecified
Device Class: Miscellaneous,
> HCI Event: Command Complete (0x0e) plen 7
< HCI Command: Read Local Version Information (0x04|0x0001) plen 0
HCI Ver: 2.0 (0x3) HCI Rev: 0xc5c LMP Ver: 2.0 (0x3) LMP Subver: 0xc5c
Manufacturer: Cambridge Silicon Radio (10)

> HCI Event: Command Complete (0x0e) plen 12
--------------------------------------------------------------------------------------
2) I tried setting the device class (that I found in /etc/bluetooth/hcid.conf) as "0x3e0100" using
mx31#hciconf -a hci0 device "0x3e0100"
Then the device class was listed properly but later PIN exchange failed.

{On another host PC (this runs a different version of bluez), when I edited the "hcid.conf" file to enter a different device class, and later when I ran "hciconfig -a", after running "hcid -f /etc/bluetooth/hcid.conf", I could see this device class modification reflected}

Any suggestions ?
Am I missing something ?

Thanks,
Ebin Jose.
 
  


Reply

Tags
bluez, hciconfig


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
python: list of class-objects? Valkyrie_of_valhalla Programming 3 08-24-2008 06:26 AM
c++ generic list class? true_atlantis Programming 1 09-03-2005 10:17 PM
Implementing a vector class from a list class purefan Programming 9 04-14-2005 10:48 PM
c++ list class, type of node? exodist Programming 2 05-20-2004 06:27 PM
USB Audio Class Device Maninux Linux - Hardware 0 09-18-2003 03:28 AM


All times are GMT -5. The time now is 11:01 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration