From owner-freebsd-bluetooth@FreeBSD.ORG Tue Nov 13 17:14:52 2007 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7451716A420 for ; Tue, 13 Nov 2007 17:14:52 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.184]) by mx1.freebsd.org (Postfix) with ESMTP id 767D313C4AA for ; Tue, 13 Nov 2007 17:14:51 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: by fk-out-0910.google.com with SMTP id b27so2160163fka for ; Tue, 13 Nov 2007 09:14:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=u1fimbsKKDNAP4kSrQxrh2qcVZssjLuCsPZq8IXI0yc=; b=gMMQzCDbUhGoBkbP2tTiCxSCkk4gaenMzuoDJycPC6JvqF/FiVhFeQQWIaJB+RXT2AxCTzXMCEsbWJkVAyJGdQoxUtU321W/wlAC8Yso8OMYdYcFNs9zojy3XhsFyikMb2aO8ymgBKfLOltPvUyaIIT4YQLqnoULqDk5Olhc2Jg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=hkPBLXp0EAWEgw0AR27bGvepXqLVoH2t8z+GAILLxuFZWccTKlMJQFcwABoSMniCTHa3AeWQt1U3mH6QdfNQbZbEaejunMmYN0MHgYJqmhIwCLi1/BQj68ytCEQFp+MzyyOjCbUKOqMESILXo+W/C6ielmvoThr8FtADIu7+9pQ= Received: by 10.86.68.20 with SMTP id q20mr957788fga.1194974078241; Tue, 13 Nov 2007 09:14:38 -0800 (PST) Received: by 10.86.83.12 with HTTP; Tue, 13 Nov 2007 09:14:38 -0800 (PST) Message-ID: Date: Tue, 13 Nov 2007 09:14:38 -0800 From: "Maksim Yevmenkin" To: "Zoran Kolic" In-Reply-To: <20071112170237.GA964@faust.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20071112170237.GA964@faust.net> Cc: freebsd-bluetooth@freebsd.org Subject: Re: correct steps to put data on the 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, 13 Nov 2007 17:14:52 -0000 On 11/12/07, Zoran Kolic wrote: > Howdy! > Must to confess that I'm impressed with bluetooth in > connecting different sort of devices. Such a nice toy > as usb dongle I had not for a long time. > I might need some advice for putting files from desk- > top box to nokia phone with memory card. I found that > loading ng_ubt gives enough magic to load further usb > part and all necessary netgraph modules. Dongle is > gigabyte bt03d and is recognized by the module. After > giving /etc/rc.bluetooth script 555 privs, I could > start/stop the stack. Reading along manual, I learnt > that hcsecd should handle pairing of dongle and the > phone. Is it a necessary step for the task I have in > mind? I suppose I need paired devices to even think > about it. Is it enough to start usage of obexapp? And yes, usually you need to pair phone and pc. > finally, should I find the channel to operate on? If > I get it right, flag has to be "-C IrMC". Or FTRN? > Manual says app will find the correct channel just > giving it the protocol. depends on what your phone supports. usually its either obex push (opush) or obex file transfer (ftrn). if you are using ftrn then you will likely need to use -f switch with obexapp. > Do I need something more than this: > kldload ng_ubt > input dongle > /etc/rc.bluetooth start ubt0 the last should not be required. if devd(8) is running /etc/rc.d/bluetooth will be executed automatically when dongle is plugged. > hcsecd you probably want to use hcsecd_enable knob in rc.conf and /etc/rc.d/hcsecd script to start/stop it. > obexapp -a bluetooth_address -C IrMC i'd say try first '-f -C ftrn' instead of '-C irmc' > If I missed something important, please let me know. > Not to forget, firewall should be set to handle this > interaction. I use ipfw as stateful. If desktop starts > the session, it will go like a charm. If the phone > has to query, I must know the port to connect to. Any > advice about configuration for this service? ip firewall (such as ipfw/pf/etc) will not help you here. bluetooth/obex is a completely different protocol. thanks, max