eshkin...@gmail.com (Сергей Бурладян) writes:

> Hendrik Sattler <p...@hendrik-sattler.de> writes:
>
> > Am Montag 24 Mai 2010, 10:39:12 schrieb Sergey Burladyan:
> [skip]
> > > ls -la DSC0102?.JPG
> > > -rw-r--r-- 1 root root 79866 Май 22 20:59 DSC01020.JPG
> > > -rw-r--r-- 1 root root 79866 Май 22 20:59 DSC01021.JPG
> > > -rw-r--r-- 1 root root 42900 Май 22 20:59 DSC01022.JPG
> > > -rw-r--r-- 1 root root 78115 Май 22 20:59 DSC01023.JPG
> > > -rw-r--r-- 1 root root 79866 Май 22 20:59 DSC01024.JPG
> > > -rw-r--r-- 1 root root 79866 Май 22 20:59 DSC01025.JPG
> > > -rw-r--r-- 1 root root 79866 Май 22 20:59 DSC01026.JPG
> > > -rw-r--r-- 1 root root 79866 Май 22 20:59 DSC01027.JPG
> > > -rw-r--r-- 1 root root 79866 Май 22 20:59 DSC01028.JPG
> > > -rw-r--r-- 1 root root 79866 Май 22 20:59 DSC01029.JPG
> > > 
> > > as you can see, copied files are broken, they are less than the originals,
>
> > Not all of them, only those larger that 79866 bytes. Can you try to 
> > transfer 
> > one such large file using obexftp directly (not using obexfs)? Does that 
> > work?
>
> yes, it works:

hmm, that's interesting... i try to download files with this script:

obexftp -b XX:XX:XX:XX:XX:XX -l "Memory Stick/DCIM/100MSDCF" > list

xmlstarlet pyx list | grep 'Aname\|Asize' | perl -we 'while(<>){chomp;/ 
(DSC\d+.JPG)/;$name=$1;$_=<>;chomp;/ (\d+)/;$size=$1;print"$name 
$size\n";if(-e$name&&-s$name==$size){print"skip\n";next;};system("obexftp -b 
XX:XX:XX:XX:XX:XX -g \"Memory Stick/DCIM/100MSDCF/$name\"")==0 or die"system 
obexftp: $?"; $readed=-s $name;die"readed: $readed need 
$size"if($readed!=$size);}'

and while I download files, my phone rebooted many times! (i never saw this 
with lenny and KDE3 kdebluetooth) %)

i think it was rebooted before, I just did not notice.

and this files:
> > > -rw-r--r-- 1 root root 79866 Май 22 20:59 DSC01024.JPG
> > > -rw-r--r-- 1 root root 79866 Май 22 20:59 DSC01025.JPG
> > > -rw-r--r-- 1 root root 79866 Май 22 20:59 DSC01026.JPG
> > > -rw-r--r-- 1 root root 79866 Май 22 20:59 DSC01027.JPG
> > > -rw-r--r-- 1 root root 79866 Май 22 20:59 DSC01028.JPG
> > > -rw-r--r-- 1 root root 79866 Май 22 20:59 DSC01029.JPG

was download from booting/halted phone, by the way, many of these broken files 
are the same:
96baa7f52a543d58c733085ec9cfe0b6  DSC00994.JPG
96baa7f52a543d58c733085ec9cfe0b6  DSC00995.JPG
96baa7f52a543d58c733085ec9cfe0b6  DSC00996.JPG

may be obexfs or bluetooth library incorrectly handle errors?

also, when I run obexftp too early, even before the phone is fully loaded after 
reboot,
obexftp showed me this error message, i think it is incorrect:

Browsing XX:XX:XX:XX:XX:XX ...
Connecting..\failed: send UUID
Tried to connect for 37ms
error on connect(): Success
Still trying to connect
Connecting..|failed: send UUID
Tried to connect for 1ms
error on connect(): Success
Still trying to connect
Connecting../failed: send UUID
Tried to connect for 2ms
error on connect(): Success
Still trying to connect

error on connect(): Success -- strange error :) may be the library does not 
report the correct error code to obexfs and obexfs continue reading from some 
old buffers containing the previous file?

-- 
С уважением, Сергей Бурладян



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

  • ... Sergey Burladyan
    • ... Hendrik Sattler
      • ... =D0=A1=D0=B5=D1=80=D0=B3=D0=B5=D0=B9_?= =?UTF-8?Q?=D0=91=D1=83=D1=80=D0=BB=D0=B0=D0=B4=D1=8F=D0=BD
        • ... =D0=A1=D0=B5=D1=80=D0=B3=D0=B5=D0=B9_?= =?UTF-8?Q?=D0=91=D1=83=D1=80=D0=BB=D0=B0=D0=B4=D1=8F=D0=BD
          • ... Hendrik Sattler
            • ... =D0=A1=D0=B5=D1=80=D0=B3=D0=B5=D0=B9_?= =?UTF-8?Q?=D0=91=D1=83=D1=80=D0=BB=D0=B0=D0=B4=D1=8F=D0=BD

Reply via email to