Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
General TopicsGSMBluetooth
Providers
AlltelATT WirelessCingularFidoNextelSprint PCST-MobileVerizon
Manufacturers
EricssonNokiaMotorola
Country Specific
Australian GroupUK Group
Related Topics
PocketPCPalmMore Topics ...

Cellular Phone Forum / General / Bluetooth / February 2005

Tip: Looking for answers? Try searching our database.

what device class?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Sarah Klage - 26 Feb 2005 14:35 GMT
Hello,

for a Java programm I have to know the bluetooth device class of my lokal
bluetooth device

local.init('myName', 0x010101);

But I have no idea what device class and so which number I have to enter.
Can you help me? I use a laptop with USB bluetooth dongle and win xp sp2.
I already had a look to the bluetooth specification (Assigned Numbers) but
did not understand it.

best regards
Sarah
Rob Shepherd - 26 Feb 2005 15:16 GMT
> Hello,
>
[quoted text clipped - 7 lines]
> I already had a look to the bluetooth specification (Assigned Numbers) but
> did not understand it.

This depends on what kind of device and what services you are offering to
prospective users.

Let me know this and we can choose the right one!

HTH

Rob

Signature

Rap it up for the common good
Let us enlist the neighbourhood
It's OK, I've overstood
This is a wordy rappinghood. OK, bye.

                  Tomtomclub, 1980.

Sarah Klage - 27 Feb 2005 01:19 GMT
Hello Rob,

> This depends on what kind of device and what services you are offering to
> prospective users.

Well, my intension is to write a software for a local computer which
monitors if a particular Bluetooth device (usually a mobile phone) is
available.
So, my Computer (a laptop by Asus) is equipped with a Bluetooth USB Dongle
(class 2). The Operating System is Windows XP SP2 but I think this should
not be important, is it?. The device I currently want to detect is a Nokia
6230 but this should not be important as well, right?
I don't mind which services the mobile phone os offering. I just want to
discover the device.s

The important line in the library i'd like to use is

local.init('myName', 0x010101);

This is the line where my local Bluetooth device (the USB Dongle) is going
to be initialised. But this line of code doesn't work. I have to enter the
"right" class number for my device instead of 0x010101.

If you need more information, please tell me!

Best regards
Sarah
Rob Shepherd - 27 Feb 2005 11:02 GMT
> Hello Rob,
>
[quoted text clipped - 17 lines]
> This is the line where my local Bluetooth device (the USB Dongle) is going
> to be initialised. But this line of code doesn't work.

Doesn't work how? it won't compile, won't run..... What java API are you using?

To define a CoD for a laptop computer from the assigned numbers document we can
use.....

Major Service Classes (bits 23-13)
Nothing relevant so: 00000000000

Major Device Class (bits 12-8)
Computer : 00001

Minor Device Class (bits 7-2)
Laptop: 000011

Format (bits 1-0)
standard format: 00

So from MSB->LSB we have

00000000000 00001 000011 00

hence

00000000 00000001 00001100

in hex is: 0x00010C

Hope this helps

Rob

Signature

Rap it up for the common good
Let us enlist the neighbourhood
It's OK, I've overstood
This is a wordy rappinghood. OK, bye.

                  Tomtomclub, 1980.

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.