Skip to contentSkip to conversation

Resetting the Major Device Class Not Working

Bluez-users oohay otihs 1 participant 1 message Dec 19, 2007 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

Hello everybody.

Can one reset the Major Device Class to something other than 0x01 (Personal Computer)? I would like to masquerade as a Mobile Phone because I have a device that only connects to mobiles, and I would like for it to connect to a desktop PC.

I've tried editing the class option in the device section in /etc/bluetooth/hcid.conf, and upon restarting the bluetooth services, hciconfig -a still lists my device's class as if it's a PC.

Here's an excerpt from /etc/bluetooth/hcid.conf:
...
device {
# Local device name
# %d - device id
# %h - host name
#name "%h-%d";
name "Logger_3";

# Local device class
class 0x5a020c;
...
}

Here's the output from hciconfig -a:

hci0: Type: USB
BD Address: 00:80:5A:46:A1:E5 ACL MTU: 384:8 SCO MTU: 64:8 UP RUNNING PSCAN ISCAN
RX bytes:944 acl:0 sco:0 events:41 errors:0
TX bytes:612 acl:0 sco:0 commands:27 errors:0
Features: 0xff 0xff 0x8f 0xfe 0x9b 0xf9 0x00 0x80
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: RSWITCH HOLD SNIFF PARK
Link mode: SLAVE ACCEPT
Name: 'Logger_3'
Class: 0x3e0104
Service Classes: Networking, Rendering, Capturing, Object Transfer, Audio Device Class: Computer, Desktop workstation
HCI Ver: 2.0 (0x3) HCI Rev: 0x7a6 LMP Ver: 2.0 (0x3) LMP Subver: 0x7a6
Manufacturer: Cambridge Silicon Radio (10)

Is it likely that I've got something misconfigured, or does Bluez allow for the resetting of the Major Device class?

As a side question - might anybody have a link to the Bluetooth Assigned Numbers document? I can't find it on the Bluetooth SIG site (just broken links), nor does Google seem to turn up anything fruitful.

Anybody's help would be greatly appreciated. Thanks.

---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace

_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users