Edgar,
One of my goals was to use "generic" WinCE devices as Clients to the JM128 (in Host mode). The goal was to use inexpensive devices like some of the GPS navigation units as a hand held user interface to our products.
This part of the project has turned out to be the most difficult. Here were some of the major barriers-
(1) most CE devices in USB Client mode use ActiveSync or a proprietary protocol to communicate across the only port on the device, the USB port. You will need to manage that process so as to claim the USB port for your needs when needed.
(2) using ActiveSync was not an option as it is undocumented
(3) if you use existing CE "appliance" type hardware like the GPS units, you will need to "hack" your application into the existing boot structure. Your hack will need to disable (and enable if need be) the above mentioned ActiveSync support.
(4) once you are "in" and your application is running on the CE Client and you have USB access, you will need to craft your USB structure with the JM128 being the USB Host and initiating all communication while the CE Client will actually be the one initiating activity. We did this by having the JM poll the CE device for commands.
(5) we needed the JM device to still act as a Client and thus needed the ability to intelligently recognize who was connected and act appropriately. Our solution consisted of a host and client connector on the JM device of which only one could be connected. Client was detected by the presence of Vusb while we polled for Host. We found this worked better than trying to fit the OTG model to our environment.
We continue down this path as there is no way we can build a 4.3” color TFT touch screen user interface for the $100 price points you can find out of China. If your project permits, you may want to consider building your own hardware using one of the ARM development platforms which come with all the necessary CE (and Linux in some cases) board support package to build your custom operating system with USB Host support.
I hope the above is of some help.
Bill