From owner-freebsd-bluetooth@FreeBSD.ORG Thu Jun 7 10:17:08 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 7AFD116A400 for ; Thu, 7 Jun 2007 10:17:08 +0000 (UTC) (envelope-from pmilotinov@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.174]) by mx1.freebsd.org (Postfix) with ESMTP id D300713C45E for ; Thu, 7 Jun 2007 10:17:07 +0000 (UTC) (envelope-from pmilotinov@gmail.com) Received: by ug-out-1314.google.com with SMTP id u2so736123uge for ; Thu, 07 Jun 2007 03:17:06 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; b=d5OnRE7Yj2K+9oE1hV8IlNc7/xdLz2fWEeLXpXijbgKX1urrpI+wzabxCjnElbG5Ioxdj+etX7fWec5l3pBBZsOF8bLRgzo5MYJTxk2cie90oAdy1+VHdysc9anDL55m+Hj+xQV4J+Kd1oHNyT1L41l1OQ48k76vhXDgosgGNXM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=mEjfKasyYgPKph9wtBSPnorCLtxJTTPTDJs3s/Uz1XgDCTdoqWjHRrpY0T/QUMofaHIbBqEqSB+zlQEEmYoVz8S/zs4et0FPEwLMAeuc8vCE5piIjA7BADfLGIHifP64VNFIgHTMc8/sVo4VaQIfN/I4fGBOJAtAWpQGvrBJoeA= Received: by 10.67.32.19 with SMTP id k19mr1905970ugj.1181209751698; Thu, 07 Jun 2007 02:49:11 -0700 (PDT) Received: by 10.66.255.17 with HTTP; Thu, 7 Jun 2007 02:49:11 -0700 (PDT) Message-ID: Date: Thu, 7 Jun 2007 12:49:11 +0300 From: "Petyo Milotinov" To: freebsd-bluetooth@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Can't use internet on SE K610i via FreeBSD box 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, 07 Jun 2007 10:17:08 -0000 Hello! Here is my machine info: FreeBSD 6.2-STABLE FreeBSD 6.2-STABLE #0: Fri Apr 20 12:51:09 EEST 2007 /usr/obj/usr/src/sys/MYKERNEL i386 I want to connect my Sony Ericsson K610i GSM handy to internet via my machine through a BlueSoleil dongle. I configured MAC address of the phone in /etc/bluetooth/hosts and configured PIN management via /etc/bluetooth/hcsecd.conf. I l2ping the phone successfully. I can browse the phone from FreeBSD: ===================================================================== obexapp -a k610i -C FTRN -f obex> ls Access Owner Group Size Modified Name n/a n/a n/a n/a Phone memory/ n/a n/a n/a n/a Memory Stick/ Success, response: OK, Success (0x20) ===================================================================== So I decided to use internet on the phone via FreeBSD machine. I started following daemons (I intentionally used '-d' switches) : ===================================================================== sdpd -d hcsecd -d rfcomm_pppd -d -s -l rfcomm-server -C 1 (I tried '-S' switch too with no success) ===================================================================== Here is the rfcomm-server entry in /etc/ppp/ppp.conf: ===================================================================== rfcomm-server: set timeout 0 set lqrperiod 10 set ifaddr 192.168.0.1 192.168.0.2 255.255.255.0 enable lqr accept lqr # Do not use PPP authentication. Assume that # Bluetooth connection was authenticated already disable pap deny pap disable chap deny chap ===================================================================== I browsed services on the FreeBSD machine. Here is the output: ===================================================================== sdpcontrol -l browse : Record Handle: 00000000 Service Class ID List: Service Discovery Server (0x1000) Protocol Descriptor List: L2CAP (0x0100) Protocol specific parameter #1: u/int/uuid16 1 Protocol specific parameter #2: u/int/uuid16 1 Record Handle: 0x00000001 Service Class ID List: Browse Group Descriptor (0x1001) Record Handle: 0x00000002 Service Class ID List: LAN Access Using PPP (0x1102) Protocol Descriptor List: L2CAP (0x0100) RFCOMM (0x0003) Protocol specific parameter #1: u/int8/bool 7 Bluetooth Profile Descriptor List: LAN Access Using PPP (0x1102) ver. 1.0 Record Handle: 0x00000003 Service Class ID List: Serial Port (0x1101) Protocol Descriptor List: L2CAP (0x0100) RFCOMM (0x0003) Protocol specific parameter #1: u/int8/bool 7 Bluetooth Profile Descriptor List: Serial Port (0x1101) ver. 1.0 ===================================================================== I can find my FreeBSD machine on the phone. When I try to browse services provided sdpd prints message about L2CAP connection. But I receive following message on the phone: ===================================================================== "Services supported: No local services supported." ===================================================================== In the office, I tried to use internet via my windows machine through same BlueSoleil dongle- I activated "LAN Network access" on BlueSoleil software. The phone was able to discover "LAN Access" service and to connect to my PC and I could browse the internet. It seems my phone supports that functionality. So, why I cannot find any services on my FreeBSD machine? Where I'm wrong? Any suggestions are appreciated! Thanks in advance! Best regards, Petyo Milotinov