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.
|