can't download s55 phonebook via bluetooth

Maksim Yevmenkin maksim.yevmenkin at savvis.net
Sun Sep 11 12:21:56 PDT 2005


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
-------------- next part --------------
#!/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



More information about the freebsd-bluetooth mailing list