public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: Edouard Lafargue <ELafargue@montrouge.sns.slb.com>
To: bluez-devel@lists.sourceforge.net
Subject: [Bluez-devel] Documentation for hcid.conf ?
Date: Tue, 23 Mar 2004 15:43:49 +0100	[thread overview]
Message-ID: <1080053029.7507.40.camel@gryffindor> (raw)

[-- Attachment #1: Type: text/plain, Size: 2885 bytes --]

   Hello,

   I am currently writing a (not so) short document on how to set up a
generic Bluetooth access point under Linux. The goal is to describe a
working setup that enables both DUN and PAN connectivity to a network
through a Linux server, for several clients at the same time. The idea
is to reproduce the basic functionality of a standard Bluetooth access
point.

   While configuring the system, I have discovered that the detection of
my computer as a "Network Access Point" largely depends on the "class"
setting of hcid.conf. A standard "0x100" is not good enough if you want
your Linux box to be automatically detected by a Windows machine, for
example.

    Below is my effort at describing the role/effect of the "class"
option, please feel free to include this in the "hcid.conf" man page
-does it exist ? It's really needed!-. I would appreciate if someone who
is more knowledgeable than me in this field could look at this and
correct what I'm saying there.

    Another useful thing to do would be to describe a few more "class"
options, such as "0x020100" which enables a computer to be detected as a
NAP, etc.

Edouard

--------------------------------------
   - Device Class: "class"

        The default is 0x100 which simply stands for "Computer". The
meaning of the Bluetooth Device Class is described in the Bluetooth
Specification section 1.2 ("Assigned Numbers - Bluetooth Baseband").

        Basically the Bluetooth device class is a high-level description
of the type of device ("Device Class"), such as "Printer", "Computer",
etc, and also the type of high-level services offered by this device
("Networking", "OBEX Object push", etc) . This information is often used
by clients who are looking for a certain type of service around them.

        Where it becomes tricky is that another type of mechanism for
service discovery exists: "SDP", as in "Service Discovery Protocol". SDP
settings are usually taken care of by service-providing applications
(dund or pand for example), but the "class" of the bluetooth device is
usually never updated.

        This is a problem, because in reality, most Bluetooth clients
scan in two steps: they first look for all bluetooth devices around them
and find out their "Device Class" and "Service Class" (both are
contained in the "class" parameter). Then, they use SDP in order to
check if a device in a given class offers the type of service they want.
This means that the hcid.conf "class" parameter needs to be set up
properly in order to be detected in the way you want : in general a
device looking for a service such as "Network Access Point" will only
scan for this service on devices containing "Network" in their service
class. Another example is that Nokia Mobile phones will generally only
send business cards to computers that show "OBEX Object Push" in their
"class" setting.

--------------------


[-- Attachment #2: Type: text/html, Size: 3683 bytes --]

             reply	other threads:[~2004-03-23 14:43 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-23 14:43 Edouard Lafargue [this message]
2004-03-23 15:04 ` [Bluez-devel] Documentation for hcid.conf ? Marcel Holtmann
     [not found]   ` <1080059454.7507.85.camel@gryffindor>
2004-03-23 17:29     ` Marcel Holtmann
2004-03-24 22:23       ` Fredrik Noring
2004-03-23 17:38 ` Collin R. Mulliner
2004-03-23 17:48   ` Marcel Holtmann
2004-03-23 18:31     ` Edouard Lafargue
     [not found]     ` <20040323225438.6b7bb3ee@coredump>
2004-03-23 22:36       ` Marcel Holtmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1080053029.7507.40.camel@gryffindor \
    --to=elafargue@montrouge.sns.slb.com \
    --cc=bluez-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox