From owner-freebsd-bluetooth@FreeBSD.ORG Sun Sep 11 19:21:55 2005 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 D330016A41F for ; Sun, 11 Sep 2005 19:21:55 +0000 (GMT) (envelope-from maksim.yevmenkin@savvis.net) Received: from mta10.adelphia.net (mta10.adelphia.net [68.168.78.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5FC0D43D45 for ; Sun, 11 Sep 2005 19:21:54 +0000 (GMT) (envelope-from maksim.yevmenkin@savvis.net) Received: from [192.168.1.254] (really [70.32.199.60]) by mta10.adelphia.net (InterMail vM.6.01.04.01 201-2131-118-101-20041129) with ESMTP id <20050911192153.BWCY12165.mta10.adelphia.net@[192.168.1.254]>; Sun, 11 Sep 2005 15:21:53 -0400 Message-ID: <432483D5.4020603@savvis.net> Date: Sun, 11 Sep 2005 12:21:57 -0700 From: Maksim Yevmenkin User-Agent: Mozilla Thunderbird 0.7.1 (Windows/20040626) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Michael Reifenberger References: <20050911141141.R39118@fw.reifenberger.com> In-Reply-To: <20050911141141.R39118@fw.reifenberger.com> Content-Type: multipart/mixed; boundary="------------090604020309060103010204" Cc: freebsd-bluetooth@freebsd.org Subject: Re: can't download s55 phonebook via bluetooth 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: Sun, 11 Sep 2005 19:21:56 -0000 This is a multi-part message in MIME format. --------------090604020309060103010204 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Michael, > I'm trying to download the phonebook of my Siemens s55 phone > using obexapp via bluetooth unter -current. i'm not sure about s55 but i know it works with s65. > After setting up the BT-stack and having hcsecd running I do: > obexapp -a mys55 -C irmc -r /tmp -n get telecom/pb.vcf bla.txt > and get: > ... Response: Forbidden (0x43). > > The same result is for any other comand like "ls"... "ls" usually will not work unless you connect to OBEX Folder Browsing Service, i.e. you need to specify "-f" switch in the obexapp command line. i have attached the mobile_backup.sh script written by Yuri Kurenkov that is known to work with obexapp and s65. > A download using Windows works BTW. > > A hcidump session is attached. i can not see what is going on on OBEX level from this dump :( i can only see up to RFCOMM level and everything looks fine to me. please use "-w" option with hcidump(1) to create a binary dump. thanks, max --------------090604020309060103010204 Content-Type: text/plain; name="mobile_backup.sh" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="mobile_backup.sh" #!/bin/sh work_dir=~/.mobile if [ -f $work_dir/mobile_backup.conf ]; then . $work_dir/mobile_backup.conf fi baks=${backs:-"9"} client=${clients:-"s65"} objects=${objects:-"pb.vcf cal.vcs"} folder=${folder:-"telecom"} backup_dir=${backup_dir:-"${work_dir}/backup"} obexapp=${obexapp:-"/usr/local/bin/obexapp"} obexapp_params=${obexapp_params:-"-a ${client} -C IrMC -f -n"} if [ ! -d ${backup_dir} ]; then echo Backup dir ${backup_dir} not exist exit 1 fi date=`date +"%Y%m%d"` if ( l2ping -c 1 -a ${client} > /dev/null 2>&1 ); then cd ${backup_dir} for object in ${objects} do #echo $object if ( $obexapp $obexapp_params get ${folder}/${object} ${object}.tmp >/dev/null 2>&1 ); then if [ -f ${object}.tmp -a -f ${object} ]; then if ( diff -q ${object} ${object}.tmp ); then #echo identical, no action rm ${object}.tmp else #echo different, need rotating i=${baks} while [ $i -ge 0 ] do #echo ${object}.${i} if [ ${i} -eq 0 ]; then from=${object} else from=${object}.$(($i-1)) fi to=${object}.${i} if [ -f ${from} ]; then mv $from $to fi i=$(($i-1)) done mv ${object}.tmp ${object} ls -l ${object}* fi else #echo just rename mv ${object}.tmp ${object} ls -l ${object}* fi fi sleep 10 done fi --------------090604020309060103010204--