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

Re: [coldsync-hackers] New snapshot: 2.2.0



On Tue, Jul 31, 2001 at 09:41:08AM +0200, Koen Deforche wrote:
> 
> 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.

Is this:
	01ff 0000 0016
the bytes that you are talking about?

It looks like they get sent from the bulk endpoint like you said.  But
they get sent _right_ after initialization.  The visor driver doesn't
submit that endpoint until the port is opened.  Which is a lot later in
time than the Windows driver.  That might be why there is a difference.

> 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.

Nope, this does not happen.

>  - 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.

No, if the bulk request never gets sent by the driver, the data never
gets sent.  It stays on the device.

>  - the first handshaking is different in timing and little
>    details from the windows handshaking, and the palm acts
>    funny.

I think this is it.

> 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.

I hope not :)

Hope this helps a bit.

greg k-h
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.