Date: Sun, 11 Sep 2005 12:21:57 -0700 From: Maksim Yevmenkin <maksim.yevmenkin@savvis.net> To: Michael Reifenberger <mike@Reifenberger.com> Cc: freebsd-bluetooth@freebsd.org Subject: Re: can't download s55 phonebook via bluetooth Message-ID: <432483D5.4020603@savvis.net> In-Reply-To: <20050911141141.R39118@fw.reifenberger.com> References: <20050911141141.R39118@fw.reifenberger.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <y dot kurenkov at init dot ru> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?432483D5.4020603>