On 2005-05-09, Rob <[EMAIL PROTECTED]> wrote:
> Hi
>
> I have already got all the code I need to connect to my palm using the USB
> cradle.
> I am currently opening the pipe using:-
>
> CreateFile("\\?\vid ... \\PIPE00", etc...)
>
> Whilst this works fine for my Tungsten T3, my Tungsten T uses different
> pipes for the network connection.
>
> T3 uses pipe00(read) and pipe01(write)
> T uses pipe02(read) and pipe03(write)
> Tests have shown other devices use various combinations of pipes
>
> My code must support various devices so I need a way of determining which
> pipes are used by the device.
>
> I have tried opening all the pipes and simply using the first one that sends
> data but this can cause a bluescreen if the palm is doing a cradle
> hotsync.
>
> How can I determine the correct pipe to use for any device?Look at how it is done in libpisock in pilot-link: http://cvs.pilot-link.org . For PalmOne devices use PALM_GET_EXTENDED_CONNECTION_INFO and look for the pipes with the function_id 'psys'. These are the console/debug ports on USB devices. For other devices you have to do other things. See also the darwinusb.c file in libpisock. HTH Ton van Overbeek -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
