Welcome to WiFi-Forum

Go Back   WiFi-Forum - Wi-Fi Discussion Forum > Bluetooth Discussion Forums > alt.cellular.bluetooth
Reply
 
Thread Tools Display Modes
  #1  
Old 02-26-2005, 07:35 AM
Sarah Klage
 
Posts: n/a
Default what device class?

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



Reply With Quote
  #2  
Old 02-26-2005, 08:16 AM
Rob Shepherd
 
Posts: n/a
Default Re: what device class?

Sarah Klage wrote:
> 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.
>


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

--
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.
Reply With Quote
  #3  
Old 02-26-2005, 06:22 PM
Sarah Klage
 
Posts: n/a
Default Re: what device class?

Hello Rob,

"Rob Shepherd" <robshep@invalid.invalid> schrieb im Newsbeitrag
news:cvq3sj$14v$1@fantastix.bangor.ac.uk...
> 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


Reply With Quote
  #4  
Old 02-27-2005, 04:02 AM
Rob Shepherd
 
Posts: n/a
Default Re: what device class?

Sarah Klage wrote:
> Hello Rob,
>
> "Rob Shepherd" <robshep@invalid.invalid> schrieb im Newsbeitrag
> news:cvq3sj$14v$1@fantastix.bangor.ac.uk...
>
>>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.


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

--
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.
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Class 10 EDGE bluetooth; Low Latency; Bi-Directional Amplifier; $74.99/mo Data Plan rstarck Cingular Forum 5 01-03-2005 02:30 AM
Nokia's First Multimedia Device, The 7700 btooth BlueTooth Forum 3 12-29-2004 10:08 PM
FAQ: Why is my GPRS, EDGE, or UMTS so slow? John Navas alt.cellular.bluetooth 2 12-22-2004 07:52 PM
Re: Urgent - Pls help - need to buy a handheld device ROC comp.sys.palmtops 0 11-27-2004 07:27 AM
Mobile Device Developments 2004-Other Upcoming Conferences Elena Colle comp.dcom.telecom 0 08-17-2004 10:02 AM




All times are GMT -7. The time now is 04:35 AM.

vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd. All Contents Copyright © Wifi-Forum.com