From owner-freebsd-bluetooth@FreeBSD.ORG Thu Mar 22 16:02:54 2007 Return-Path: X-Original-To: freebsd-bluetooth@freebsd.org Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id AE92916A401 for ; Thu, 22 Mar 2007 16:02:54 +0000 (UTC) (envelope-from mail4lists@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.186]) by mx1.freebsd.org (Postfix) with ESMTP id 2BEC813C4BE for ; Thu, 22 Mar 2007 16:02:53 +0000 (UTC) (envelope-from mail4lists@gmail.com) Received: by nf-out-0910.google.com with SMTP id k27so1451643nfc for ; Thu, 22 Mar 2007 09:02:53 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:received:date:to:subject:message-id:mail-followup-to:references:mime-version:content-type:content-disposition:in-reply-to:organization:user-agent:from; b=KCpaCt6TmvHqjbRshOWDsKI6E3KLmK4QFxGTqoRCxYaoAOGLPkahRNS7ilffEtrB90ENifI9VBxMJ6IViWMKBsVOOFib9uUhUBqkYbEnfBVw3VVxxy0i22YxEnLFLhV7MLXHo894RUV61oPYOj+c/cBKJObje04nGK2X5v/xfeQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:date:to:subject:message-id:mail-followup-to:references:mime-version:content-type:content-disposition:in-reply-to:organization:user-agent:from; b=I/BlPuOCch5B3+5HXwplsIWBgXymdDQ4la8Uyene2ezNYJlrvytjqzseZQhEG8ccrHz/mKkpSaI8ErRONAvN/BQRoC+P7lMIDgShoPzV7L/lbeM6u02ww9CcDvp7J2xWYHV/LaNw6kDgWTnco6mTW1brGS85SMK10mrdOBfBGYo= Received: by 10.78.18.3 with SMTP id 3mr1004151hur.1174577830337; Thu, 22 Mar 2007 08:37:10 -0700 (PDT) Received: from gmail.com ( [212.39.72.25]) by mx.google.com with ESMTP id g8sm3082432muf.2007.03.22.08.37.08; Thu, 22 Mar 2007 08:37:09 -0700 (PDT) Received: by gmail.com (sSMTP sendmail emulation); Thu, 22 Mar 2007 17:37:06 +0200 Date: Thu, 22 Mar 2007 17:37:06 +0200 To: freebsd-bluetooth@freebsd.org Message-ID: <20070322153545.GA15238@gmail.com> Mail-Followup-To: freebsd-bluetooth@freebsd.org References: <200703221507.34630.ml-vic@de-martino.it> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200703221507.34630.ml-vic@de-martino.it> Organization: Accenture User-Agent: Mutt/1.5.13 (2006-08-11) From: Anton Stamenov Subject: Re: Cannot pair Nokia E61 X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Mar 2007 16:02:54 -0000 Try to uncomment the this in /etc/rc.bluetooth # Enable this if you have trouble with accepting incomming connections. # By default we will try to perform role switch and become Master on # incomming connection (if local device supports it). Some devices # do not support role switch and thus incomming connection from such # devices will fail. # ${hccontrol} -n ${dev}hci write_node_role_switch 0 || exit 1 On Thu, 22 Mar 2007, ml-vic wrote: > I'm trying to connect my Nokia E61 (called 'e61' in /etc/bluetooth/host > and 'NokiaVic' in /etc/bluetooth/hcsecd.conf, see below) to a laptop with > the latest 6.2 thru a usb bluetooth dongle. > The bottom line of it is that - form the E61 standpoint - the phone sees the > computer as 'NbBSD.dom (ubt0)', but it fails to pair upon introduction of the > pin 0000. > In rc.conf I enabled hcsecd. > > Here you are a detailed script ofa long useless session (I'm connected as > root) that for an expert can be useful to understand what's wrong with it. > > Please help. > Ciao from Rome - Vittorio > >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> > Script started on Thu Mar 22 14:00:43 2007 > > NbBSD# /etc/rc.bluetooth start ubt0 > BD_ADDR: 00:11:f6:07:cb:b8 > Features: 0xff 0xff 0x8f 0xfe 0x9b 0xf9 00 0x80 > <3-Slot> <5-Slot> > > > > > > Max. ACL packet size: 384 bytes > Number of ACL packets: 8 > Max. SCO packet size: 64 bytes > Number of SCO packets: 8 > > NbBSD# cat /etc/bluetooth/hcsecd.conf > device { > bdaddr 00:11:f6:07:c8:b8; > name "CompaqPC"; > key nokey; > pin "0000"; > } > > device { > bdaddr 00:12:d2:65:c2:03; > name "NokiaVic"; > key nokey; > pin "0000"; > } > NbBSD# cat /etc/bluetooth/hcsecd.conf /etc/bluetooth/hcsecd.conf > > # BD_ADDR Name [ alias0 alias1 ... ] > # **localhost** > 00:11:f6:07:c8:b8 compaq > #The Nokia E61 cell > 00:12:d2:65:c2:03 e61 > NbBSD# usbdevs -v -d > > Controller /dev/usb0: > addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), > Intel(0x0000), rev 1.00 > uhub0 > port 1 addr 2: full speed, self powered, config 1, product 0x4482(0x4482), > vendor 0x04b3(0x04b3), rev 0.00 > uhub3 > port 1 powered > port 2 powered > port 3 powered > port 4 powered > port 2 powered > Controller /dev/usb1: > addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), > Intel(0x0000), rev 1.00 > uhub1 > port 1 powered > port 2 addr 2: full speed, self powered, config 1, product 0x0001(0x0001), > vendor 0x0a12(0x0a12), rev 19.58 > ubt0 > Controller /dev/usb2: > addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), > Intel(0x0000), rev 1.00 > uhub2 > port 1 powered > port 2 powered > Controller /dev/usb3: > addr 1: full speed, self powered, config 1, OHCI root hub(0x0000), > NEC(0x0000), rev 1.00 > uhub4 > port 1 powered > Controller /dev/usb4: > addr 1: full speed, self powered, config 1, OHCI root hub(0x0000), > NEC(0x0000), rev 1.00 > uhub5 > port 1 addr 2: full speed, power 100 mA, config 1, Fusion UMTS > Quad-GPRS(0x6300), Option N.V.(0x0af0), rev 0.00 > ucom0 > > NbBSD# hccontrol -n ubt0hci inquiry > > Inquiry result, num_responses=1 > Inquiry result #0 > BD_ADDR: e61 > Page Scan Rep. Mode: 0x1 > Page Scan Period Mode: 0x2 > Page Scan Mode: 00 > Class: 50:02:0c > Clock offset: 0xf48 > Inquiry complete. Status: No error [00] > > NbBSD# hccontrol -n ubt0hci remote_name_request > BD_ADDR: e61 > Name: NokiaVic > > NbBSD# hccontrol -n ubt0hci create_connection e61 > BD_ADDR: e61 > Connection handle: 42 > Encryption mode: Disabled [0] > > NbBSD# hccontrol -n ubt0hci read_connection_list > Remote BD_ADDR Handle Type Mode Role Encrypt Pending Queue State > > NbBSD# hccontrol -n ubt0hci create_connection NokiaVic > 00:12:d2:65:c2:03 > BD_ADDR: e61 > Connection handle: 42 > Encryption mode: Disabled [0] > > NbBSD# hccontrol -n ubt0hci read_connection_list > Remote BD_ADDR Handle Type Mode Role Encrypt Pending Queue State > > NbBSD# hccontrol -n ubt0hci get_link_quality 42 > Status: No connection [0x2] > > NbBSD# l2ping -a e61 > 0 bytes from e61 seq_no=0 time=1430.404 ms result=0 > 0 bytes from e61 seq_no=1 time=60.359 ms result=0 > 0 bytes from e61 seq_no=2 time=58.552 ms result=0 > 0 bytes from e61 seq_no=3 time=61.747 ms result=0 > ^C > > NbBSD# l2control -a e61 read_connection_list > l2control: Could not bind socket, bdaddr=00:12:d2:65:c2:03: Network is down > > NbBSD# hccontrol -n ubt0hci write_authentication_enable 1 > > NbBSD# hccontrol -n ubt0hci write_authentication_enable l > Authentication Enable: Enabled [1] > > NbBSD# sdpcontrol -a e61 browse > > Record Handle: 0x00010000 > Service Class ID List: > A/V Remote Control (0x110e) > Protocol Descriptor List: > L2CAP (0x0100) > Protocol specific parameter #1: u/int/uuid16 23 > AVCTP (0x0017) > Protocol specific parameter #1: u/int/uuid16 256 > Protocol specific parameter #2: u/int/uuid16 3840 > > Record Handle: 0x00010001 > Service Class ID List: > OBEX Object Push (0x1105) > Protocol Descriptor List: > L2CAP (0x0100) > RFCOMM (0x0003) > Protocol specific parameter #1: u/int8/bool 9 > OBEX (0x0008) > Bluetooth Profile Descriptor List: > OBEX Object Push (0x1105) ver. 1.0 > > Record Handle: 0x00010002 > Service Class ID List: > Dial-Up Networking (0x1103) > Protocol Descriptor List: > L2CAP (0x0100) > RFCOMM (0x0003) > Protocol specific parameter #1: u/int8/bool 2 > Bluetooth Profile Descriptor List: > Dial-Up Networking (0x1103) ver. 1.0 > > Record Handle: 0x00010003 > Service Class ID List: > Invalid Service Class ID List. Not a UUID, type=0x35 > Protocol Descriptor List: > L2CAP (0x0100) > RFCOMM (0x0003) > Protocol specific parameter #1: u/int8/bool 1 > > Record Handle: 0x00010006 > Service Class ID List: > Imaging Responder (0x111b) > Protocol Descriptor List: > L2CAP (0x0100) > RFCOMM (0x0003) > Protocol specific parameter #1: u/int8/bool 15 > OBEX (0x0008) > Bluetooth Profile Descriptor List: > Imaging (0x111a) ver. 1.0 > > Record Handle: 0x00010007 > Service Class ID List: > 0x00000002-0000-1000-8000-0002ee000002 > Protocol Descriptor List: > L2CAP (0x0100) > RFCOMM (0x0003) > Protocol specific parameter #1: u/int8/bool 10 > OBEX (0x0008) > Bluetooth Profile Descriptor List: > 0x00000002-0000-1000-8000-0002ee000002 ver. 1.0 > > Record Handle: 0x00010008 > Service Class ID List: > OBEX File Transfer (0x1106) > Protocol Descriptor List: > L2CAP (0x0100) > RFCOMM (0x0003) > Protocol specific parameter #1: u/int8/bool 11 > OBEX (0x0008) > Bluetooth Profile Descriptor List: > OBEX File Transfer (0x1106) ver. 1.0 > > Record Handle: 0x00010009 > Service Class ID List: > 0x00005005-0000-1000-8000-0002ee000001 > Protocol Descriptor List: > L2CAP (0x0100) > RFCOMM (0x0003) > Protocol specific parameter #1: u/int8/bool 12 > OBEX (0x0008) > Bluetooth Profile Descriptor List: > 0x00005005-0000-1000-8000-0002ee000001 ver. 1.0 > > Record Handle: 0x0001000a > Service Class ID List: > 0x00000004-0000-1000-8000-0002ee000002 > Protocol Descriptor List: > L2CAP (0x0100) > RFCOMM (0x0003) > Protocol specific parameter #1: u/int8/bool 13 > OBEX (0x0008) > Bluetooth Profile Descriptor List: > 0x00000004-0000-1000-8000-0002ee000002 ver. 1.0 > > Record Handle: 0x0001000b > Service Class ID List: > 0x00005601-0000-1000-8000-0002ee000001 > Protocol Descriptor List: > L2CAP (0x0100) > RFCOMM (0x0003) > Protocol specific parameter #1: u/int8/bool 14 > OBEX (0x0008) > Bluetooth Profile Descriptor List: > 0x00005601-0000-1000-8000-0002ee000001 ver. 1.0 > > Record Handle: 0x0001000c > Service Class ID List: > SIM Access (0x112d) > Generic Telephony (0x1204) > Protocol Descriptor List: > L2CAP (0x0100) > RFCOMM (0x0003) > Protocol specific parameter #1: u/int8/bool 8 > Bluetooth Profile Descriptor List: > SIM Access (0x112d) ver. 1.1 > > Record Handle: 0x0001000d > Service Class ID List: > Handsfree Audio Gateway (0x111f) > Generic Audio (0x1203) > Protocol Descriptor List: > L2CAP (0x0100) > RFCOMM (0x0003) > Protocol specific parameter #1: u/int8/bool 28 > Bluetooth Profile Descriptor List: > Handsfree Audio Gateway (0x111f) ver. 1.1 > > Record Handle: 0x0001000e > Service Class ID List: > Headset Audio Gateway (0x1112) > Generic Audio (0x1203) > Protocol Descriptor List: > L2CAP (0x0100) > RFCOMM (0x0003) > Protocol specific parameter #1: u/int8/bool 29 > Bluetooth Profile Descriptor List: > Headset (0x1108) ver. 1.0 > Script done on Thu Mar 22 14:22:04 2007 > > _______________________________________________ > freebsd-bluetooth@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth > To unsubscribe, send any mail to "freebsd-bluetooth-unsubscribe@freebsd.org" -- ___________ anton