[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [coldsync-hackers] New snapshot: 2.2.0



Andrew Arensburger wrote:

>         It should also be possible to sync a m50* under FreeBSD with
> 
>         listen usb {
>                 protocol: m50x;
>         }

I'm interested in knowing if anyone has performed a succesfull
sync under FreeBSD like this?
 
>         I'd like to thank Koen Deforche and Mike Durian for their
> contributions.

Nono, thank you for the clean coldsync code (versus the mess
in pilot-link I first tried to modify).

>         Question for Koen: if I'm reading your code correctly, the
> m50x protocol is exactly the same as the netsync protocol, except that
> the first ritual packet doesn't have the header. Is this correct? If
> so, this seems rather odd.

Not only rather odd, but I suspect it is caused by a bug in either
the palm (not so likely) or the kernel core usb code. On Windows,
monitoring HotSync using USB Snoopy, this first header (6 bytes)
is actually there!

So it was to my surprise that these 6 bytes were gone once the
data arrives in usb-serial.c.

I have no idea of what is going wrong, but some possible scenarios
could be:
 - when usb-serial gets insmodded, it already starts reading from
   the data pipe, but since nobody has open()'ed the serial
   tty yet, it is dropped.
 - when usb-serial gets insmodded, it is not yet reading from the
   data pipe, and therefore the usb stack in the kernel drops
   the data.
 - the first handshaking is different in timing and little
   details from the windows handshaking, and the palm acts
   funny.

An interesting test is whether under FreeBSD this header is
there or not. So, for anyone trying coldsync to sync a
Palm m50x in a usb cradle on FreeBSD, if protocol simple
does not work, try protocol net.

Also, since the problem where my palm hangs when transferring
large files from the palm to the PC is not solved yet, it
may be related to this as well.

koen.
This message was sent through the coldsync-hackers mailing list.  To remove
yourself from this mailing list, send a message to majordomo@thedotin.net
with the words "unsubscribe coldsync-hackers" in the message body.  For more
information on Coldsync, send mail to coldsync-hackers-owner@thedotin.net.