how to manage usb port

albgreco

Member
Licensed User
Longtime User
Hello,

I was wondering if and how is it possible to manage somehow the usb connection of PDA: after all, Active Sync is able to connect, read/write files using usb; what port / code should be used to do so by a PPC program? more, would it be possible not only to exchange files with PC but to read bytes sent by a USB device like a barcode scanner? (is it crazy? :) this latter would be the real aim I would like to achieve...!)

Thank you

Alberto
 

agraham

Expert
Licensed User
Longtime User
You can transfer files to and from PC and PPC by using the RAPI library and a Basic4ppc program running on the desktop. The RAPI library uses ActiveSync for the transfers. But there is no hope of easily doing anything else.

PCs and laptops have "downstream" or host USB ports that connect to upstream ports on peripherals to control those peripherals.

Most devices only have "upstream" USB hardware that is like those on printers and other peripherals. This USB hardware cannot control other peripherals.

Some devices (like the iPAQ214) do have a host port but even here there is no standardised software interface to control them and as standard they can only connect to keyboards and disks.
 

albgreco

Member
Licensed User
Longtime User
Thank you, I understand. My PDA is an Asus MyPal 730 and it seems it has host USB capabilities (at least maybe using a special cable). If so, I suppose it should be working with a standard usb keyboard - but where to find the appropriate driver? are there are any libraries to use with Basic4ppc for decoding signals from the usb port when it acts as a host?
and since a usb barcode scanner operates as a keyboard emulator, could it work the same?
 

agraham

Expert
Licensed User
Longtime User
it seems it has host USB capabilities (at least maybe using a special cable). If so, I suppose it should be working with a standard usb keyboard - but where to find the appropriate driver
On my iPAQ214 USB host drivers for keyboard and disk drives are built in and according to the "Expansion" topic near the end here ASUS A730W VGA Pocket PC, PDA Reviews by Mobile Tech Review they are also built-in to the A730.

are there are any libraries to use with Basic4ppc for decoding signals from the usb port when it acts as a host?
No, and due to the difficulty of writing USB drivers and the lack of devices with host USB ports there probably will never be.

and since a usb barcode scanner operates as a keyboard emulator, could it work the same?
Probably - you can only tell by trying.
 
Top