From owner-freebsd-bluetooth@FreeBSD.ORG Tue Aug 22 20:51:53 2006 Return-Path: X-Original-To: freebsd-bluetooth@freebsd.org Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3BD7F16A4DD for ; Tue, 22 Aug 2006 20:51:53 +0000 (UTC) (envelope-from freebsd@abv.bg) Received: from smtp-out.abv.bg (smtp-out.abv.bg [194.153.145.99]) by mx1.FreeBSD.org (Postfix) with ESMTP id B387443D64 for ; Tue, 22 Aug 2006 20:51:46 +0000 (GMT) (envelope-from freebsd@abv.bg) Received: from mail02.abv.bg (app9.ni.bg [192.168.151.43]) by smtp-out.abv.bg (Postfix) with ESMTP id A2B9AEB2D4; Tue, 22 Aug 2006 23:51:45 +0300 (EEST) Received: from mail02.abv.bg (localhost.localdomain [127.0.0.1]) by mail02.abv.bg (Postfix) with ESMTP id 94B6D86B54; Tue, 22 Aug 2006 23:51:45 +0300 (EEST) Message-ID: <1098400120.449091156279905606.JavaMail.nobody@mail02.abv.bg> Date: Tue, 22 Aug 2006 23:51:45 +0300 (EEST) From: Mario Pavlov To: Maksim Yevmenkin MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1251" Content-Transfer-Encoding: 8bit X-Mailer: AbvMail 1.0 X-Originating-IP: 85.187.137.6 Cc: freebsd-bluetooth@freebsd.org Subject: Re: Re: pairing PC and phone 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: Tue, 22 Aug 2006 20:51:53 -0000 >Mario, > >[...] > >> # cat /etc/bluetooth/hcsecd.conf >> device { >> bdaddr 00:00:00:00:00:00; >> name "Default entry"; >> key nokey; >> pin nopin; >> } >> >> device { >> bdaddr 00:17:b0:53:55:29; >> name "Tilifon"; >> key nokey; >> pin "nopin"; >> } > >you need to specify pin code, for example > >pin "1234"; > >> so I run the hcsecd daemon >> >> and I try: >> # obexapp -c -a 00:17:b0:53:55:29 -C 1 >> >> my phone tells me that some device want to pair with it >> I chose accept >> and the phone is prompting me for passcode... >> I enter something and it sasy "pairing failed" > >when phone prompts, you need to enter the same pin code you have put >into /etc/bluetooth/hcsecd.conf, i.e. for example above you need to >enter 1234 on the phone. > >thanks, >max > Thank you very much it has connected but now there is another problem so...when the phone prompt me for the passcode and I enter it it says that is connected, but the obex returns this: # obexapp -c -a 00:17:b0:53:55:29 -C 1 Could not connect to the remote OBEX server. Response: Unknown response (0). Service: None and in a few seconds the fone tells that is disconnected what does this mean ? how can I browse the files in my phone ? sdpcontrol returns this: # sdpcontrol -a 00:17:b0:53:55:29 browse Record Handle: 0x00010087 Service Class ID List: Dial-Up Networking (0x1103) Generic Networking (0x1201) Protocol Descriptor List: L2CAP (0x0100) RFCOMM (0x0003) Protocol specific parameter #1: u/int8/bool 1 Bluetooth Profile Descriptor List: Dial-Up Networking (0x1103) ver. 1.0 Record Handle: 0x00010088 Service Class ID List: Serial Port (0x1101) Protocol Descriptor List: L2CAP (0x0100) RFCOMM (0x0003) Protocol specific parameter #1: u/int8/bool 15 Record Handle: 0x00010089 Service Class ID List: Serial Port (0x1101) Protocol Descriptor List: L2CAP (0x0100) RFCOMM (0x0003) Protocol specific parameter #1: u/int8/bool 3 Record Handle: 0x0001008a 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 13 Bluetooth Profile Descriptor List: Handsfree (0x111e) ver. 1.1 Record Handle: 0x0001008b 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 12 Bluetooth Profile Descriptor List: Headset (0x1108) ver. 1.0 Record Handle: 0x00010090 Service Class ID List: SIM Access (0x112d) Generic Telephony (0x1204) Protocol Descriptor List: L2CAP (0x0100) RFCOMM (0x0003) Protocol specific parameter #1: u/int8/bool 4 Bluetooth Profile Descriptor List: SIM Access (0x112d) ver. 1.0 Record Handle: 0x00010092 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: 0x00010093 Service Class ID List: OBEX File Transfer (0x1106) Protocol Descriptor List: L2CAP (0x0100) RFCOMM (0x0003) Protocol specific parameter #1: u/int8/bool 10 OBEX (0x0008) Bluetooth Profile Descriptor List: OBEX File Transfer (0x1106) ver. 1.0 Record Handle: 0x00010095 Service Class ID List: 0x00000002-0000-1000-8000-0002ee000002 Protocol Descriptor List: L2CAP (0x0100) RFCOMM (0x0003) Protocol specific parameter #1: u/int8/bool 11 OBEX (0x0008) ----------------------------------------------------------------- http://ide.li/ - портал за българите по света. Статии, новини, форуми, снимки, информация.