Partager via


Group Ad-hoc Network (GN) (Windows CE 5.0)

Send Feedback

The Group Ad-hoc Network (GN) role enables two or more PAN Users (PANU) to interact with each other through a wireless network without using additional networking hardware. The devices are connected in a piconet where the GN acts as a master and communicates either point-to-point or a point-to-multipoint with a maximum of seven PANU slaves, by using the Bluetooth Network Encapsulation Protocol (BNEP).

A GN can only connect with a PANU that publishes a PANU SDP record. To connect to a PANU, the GN must perform the following tasks:

  1. Discover the PANU by sending a baseband inquiry and conducting a Service Discovery Protocol (SDP) search.

  2. Request a connection from the PANU if a connection does not already exist.

    Note   No master/slave switch is required when a GN establishes a connection with a PANU. You can toggle the master/slave switch by configuring the registry. For more information, see Personal Area Network (PAN) Profile Registry Settings.

  3. Create an L2CAP channel for Bluetooth Network Encapsulation Protocol (BNEP) to transmit network packets by using the BNEP control commands to initialize the BNEP connection. The commands are defined in the BNEP specification.

  4. Transfer Ethernet packets across the link.

You can configure the PAN profile to be a GN by setting the PRJ_BTH_PAN_GN environment variable.

Alternatively, you can configure the PAN profile through registry settings. For more information, see Personal Area Network (PAN) Profile Registry Settings.

For more information about the procedures related to the GN service, see the Personal Area Networking Profile Specification at this Official Bluetooth Wireless Info Web site.

See Also

Personal Area Networking (PAN) Profile | Setting or Clearing an Environment Variable

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.