From owner-freebsd-doc@FreeBSD.ORG Sat May 31 23:20:15 2003 Return-Path: Delivered-To: freebsd-doc@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EED8037B401 for ; Sat, 31 May 2003 23:20:14 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id E50D743FAF for ; Sat, 31 May 2003 23:20:13 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h516KDUp083757 for ; Sat, 31 May 2003 23:20:13 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h516KDuw083756; Sat, 31 May 2003 23:20:13 -0700 (PDT) Date: Sat, 31 May 2003 23:20:13 -0700 (PDT) Message-Id: <200306010620.h516KDuw083756@freefall.freebsd.org> To: freebsd-doc@FreeBSD.org From: Hiten Pandya Subject: Re: docs/52514, Bluetooth Handbook Chapter X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Hiten Pandya List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Jun 2003 06:20:15 -0000 The following reply was made to PR docs/52514; it has been noted by GNATS. From: Hiten Pandya To: bug-followup@FreeBSD.ORG Cc: pav@oook.cz Subject: Re: docs/52514, Bluetooth Handbook Chapter Date: Sat, 31 May 2003 23:17:41 -0700 Hello Pav. Thanks for this nice documentation what it is needed most. Here are some comments on your Bluetooth documentation: First of all, this chapter should be in the ``Desktop'' section, just as Murray pointed out. --- chapter.sgml.orig Tue May 20 21:11:44 2003 +++ chapter.sgml Tue May 20 23:15:03 2003 @@ -6687,6 +6687,388 @@ + + + + + Pav + Lucistnik + Written by + +
pav@oook.cz
+
+
+
+
+ Bluetooth Some would help: Bluetooth, Wi-Fi, Ad-hoc etc. You should provide for the various acronyms and abbreviations used throughout this chapter. It will make it easier to find information in the printed version of the Handbook. + + + Introduction + Bluetooth is a wireless technology for creating personal networks + operating in the 2.4 GHz unlicensed band, with a range of 10 meters. + Networks are usually formed ad-hoc from portable devices like mobile + phones, handhelds and laptops. Unlike the other popular wireless + technology, Wi-Fi, Bluetooth offers higher level service profiles, This could probably be: "Unlike its counterpart, Wi-Fi," ... + The Bluetooth stack in FreeBSD is implemented using Netgraph. + A Broad variety of USB dongles is supported by the &man.ng.ubt.4; driver. The Bluetooth stack in FreeBSD is implemented using the Netgraph facility (see &man.netgraph.4;). A broad variety of USB dongles ... + The 3Com PC Card 3CRWB60-A is supported by the &man.ng.bt3c.4; driver. + Serial and UART based Bluetooth devices are supported via + &man.ng.h4.4; and &man.hcseriald.8;. This chapter describes using + a USB Bluetooth dongle. Bluetooth support is available only on + FreeBSD 5.0 and newer systems. Bluetooth support is available in FreeBSD 5.0 and newer systems ... (Also, you must note somewhere that the core Netgraph module is required if its loaded via a KLD. You should also explan the various Bluetooth kernel configuration options, and how to utilise them) + + HCI and Inquiry + + Now it is time to discover some nearby bluetooth devices. s/bluetooth/Bluetooth/ + Discovering devices and many other interesting tasks is done with "Interesting taks like discovering devices, and such are done with..." + BD_ADDR is the unique address of a bluetooth device, similar to MAC BD_ADDR + If you perform a discovery on a different bluetooth device, it will find s/bluetooth/Bluetooth/, this should be done whereever you have used "bluetooth. + Pairing of Devices + + By default, Bluetooth communication is not authorized and any device Isn't ``authenticatied'' a better word instead of ``authorized''? Because at start of the chapter, you said its unlicensed, and available for personal networks; which makes ``authorized'' sound a little obfuscated, IMHO. + + You can choose any PIN you like. Note that some devices, like + headsets, have a fixed PIN built in. Start hcsecd -d. + The switch forces the daemon to stay in the + terminal and not fork to the background, so we can see what is happening. + Set the remote device to receive pairing and initiate the HCI connection + to the remote device. The remote device should say that pairing was + accepted, and let you enter the PIN. Enter the same PIN as you have in your + hcsecd.conf. Now your PC and remote device are paired. + Alternatively, you can initiate pairing on the remote device. + This will appear in the hcsecd output: Use &man.hcsecd.8; ? + + Service Discovery Protocol (SDP) + If you want to know which services a Bluetooth device offers, and + on which RFCOMM channels, build libbluetooth + and sdp-1.0rc3 from Maksim Evmenkin's Erm, hmm. According to his emails to me. His surname is ``Yevmenkin.'' + + Dial-up Networking (DUN) and Local Area Network (LAN) + + Bluetooth can be used for connecting to the Internet, either over + PPP (mobile phones) or the local network (access points). The Dial-up Networking + profile on FreeBSD is implemented with &man.ppp.8; and Use &os;, instead of FreeBSD. This should be done everywhere. + to something ppp can operate with. Create ppp labels in s/ppp/PPP/, wherever ``ppp'' is used. + url="http://www.geocities.com/m_evmenkin/">Maksim Evmenkin's See my comment above. + + Troubleshooting + + + A remote device cannot connect to us + Some older devices do not support role switching. By default, + when FreeBSD is accepting a connection, it tries to switch roles + to become a master. Devices which do not support this will not + be able to connect. Role switching is performed when a connection + is being established, so we cannot ask the remote device if it does + support role switching. There is a driver option to disable role + switching on our side: + &prompt.root; hccontrol -n ubt0hci write_node_role_switch 0 + + + + Something is going wrong, can I see what exactly is happening? + Yes, you can. Use the hcidump tool &man.hcidump. (I don't recall its section number) + from Maksim Evmenkin's + snapshot, which works much like &man.tcpdump.1;. You can + use it to display the content of Bluetooth packets on the terminal + and to record Bluetooth communication for later analyzation. + Lastly, you should use formal structure instead of ``Question and Answer'' type structure for this (Troubleshooting) section. We are trying to cut down on QA sections in the Handbook, last time I checked. Thanks Pav. Hope my comments help. -- Hiten (hmp@FreeBSD.ORG)