USB data transfers on the Pocket PC - Windows Mobile Software Development

I need to be able to transfer data across the USB port on this system, but can't find any information on doing this with arbitrary data. The books 'USB Design By Example' and 'USB Complete' seem to be too low level (I'm not designing a new device) and the MSDN docs that come with Embedded Visual C++ 3.0 seem to be too high-level, dealing mainly with application APIs and ActiveSync. All I want is to be able to open the USB connection and talk/reply to whatever's on the other side, in much the same way that serial comms are done. Absolutely any pointers or comments on this would be appreciated. Currently I'm using a Fujitsu-Siemens Pocket LOOX but anything more generic would be fine.

Related

I connected the XDA to LAN and WAN without a PC

Soon after buying the T-Mobile MDA, it became painfully obvious that the performance of GPRS connectivity – at least in my area – is plain horrible! My guess is that I’m not alone, since a common question posted in XDA-related sites is how to WiFi with the XDA.
Well, there is no SDIO slot in the XDA that will support the SD WiFi cards, so the only way of getting connected to a LAN or WAN without schlepping your PC to act as a proxy server for pass-through would be to use a LAN/WAN-to-RS232 converter that could be plugged to the serial port socket on the XDA. I have tried a few RS232 I/O adapters with the XDA. and my results are available at:
http://mywebpages.comcast.net/prutchi/xda_connectivity.doc
(you can also try http://mywebpages.comcast.net/prutchi/xda_connectivity.htm, but I'm having some trouble with the figures)
You'll notice that I manage to communicate with resources on the net via a terminal, but haven't been able to trick IE into accepting my RS232 feed. If you try any of these interfaces and manage to open a socket, please let all of us know how.
Cheers,
David
Excellent work David,
I was able to replilcate your setup well! I am playing with a USB WAP and working on the DLLs to make it recognizable in Pocket IE. Working on understanding the connections and interface methods.
Used a GPS protocol as source and am doing some tweaks. I will post any updates or success! The only issue I am finding with this solutions is the size of the devices, but once we figure out the connection details we can port it over to smaller, power efficient devices.
Take care
Hi Ronin!
Any progress?
My intention was to use a RS232 wireless “wire” (two wireless RS232 dongles that transparently simulate an RS232 cable) to establish a wireless sync passthrough on the mean time.
Today I tried connecting via RS232 900MHz “Ticks” by Data Hunter ( The "Tick" is a complete data radio that parasitically draws all of its operating power from the RS232 data interface). However, I wasn't able to make it work
I'm pretty sure that I'm using the correct pinout configuration, but the XDA doesn't actively turn on COM1. Instead, it passively listens for activity from the PC. This leaves the Tick without power, and the PC sees no response. I'll try tickling the data ready lines to see if I can get it to establish the wireless link before actually establishing a sync connection.
Cheers,
David
Anyone tried to use the HW of a wireless Mouse?
I do not have one, so I don't know if there is only one Chip for movements and W-connections.
Maybe its possible to rewrite the mouse driver to access the data stream or just use the HW to build up a receiver.
And: The mouse-HW is LOW-POWER and small
Seems to be a real good idea Hopefully it will work
What about a USB-WLAN-Stick?
There're lots of USB-WLAN-Sticks on the market and a Driver should not be impossible to write!
I just opend the XDA-Connector (charging adapter) and found out that is every pin available! A USB-Adapter is easy to build!
Does anyone have some exp. with drivers? Can someone write a USB-devicedriver for WLAN?
Any Ideas?
ok, forget about it.
I'm still collecting information and I forgot about USB-Slave....
Well, I would like to see more results and solutions for this topic!
McNugget

External storage for WM devices

Hi all,
I've been using a carputer for some time now, but recently i find myself using my touch cruise more than anything else. It hooks up through BT and handles GPS and music without issues.
The only downside is the limited storage capacity it has compared to a full blown computer. (I have an 8gig SDHC)
Is there any way to enlarge this.
- I've been thinking about a NAS, but I'm unsure about the workings of this.
- AFAIK USB on the go is not supported, nor is USB host
- BT is another option, but is just way to slow for data transfer.
Any options ?
tia,
John
Maybe Network Folder Plugin will help you. It should mount a samba (windows shared) folder.
Can i connect to a NAS through this plugin?
If not, it kind of defeats the point to run a full blown computer in the car just to have file storage. Especially since I come from a carputer
well what are you storing file wise, several companies including Microsoft have storage available for mobile devices. windows live share, I use virtual mobile fore photos content etc.. sofar no mp3 support but it has some use and is free for the time being. There are several boxes out there that support usb host. maxtor or Buffalo make one I believe for dumping photos and music on the go.

[Q] Program to send Hex codes to phone through USB?

I have been using a program to monitor the URB packets sent between the PC and the phone to see if I can figure out what is unlocking the drive. Does anyone know of a program where I can manually send a packet to the phone through USB so that I can test? It would be super helpful!
Thanks
Revskills looks pretty dangerous. Start it and use the mobile ports.
Revskills is the name of the program.
I got what unlocks the phone logged (from monitors), and i do have a program to send the Usb raw data (that i mentioned on other topic).
Can't giveaway the program as i use it on linux, and is development-wise handmade from scratch by me (not gui, needs compilation each time i try something, etc).
Unfortunately, i can't operate with my device to test it (need to be ON and on the kin normal mode).
If someone want to sell me one, i may gratefully pay for a second hand one hehe.
Are you implying you can access the picture storage areas and pull them off the phone?
i'm implying that i have a program to send bulk hex code to the device or control transfer data too.
The "unlock" thing about the storage nand you wonder about is a mixture of both things, modifying device USB properties needed when it's needed.
Protocol used is MTP-like (which is "open") with several variations, so they called it MTPz ("z"une protocol for MTP).
And also I imply that the Zune usb monitoring is futile, as it uses Janus Drm (i always said it) and it's a response challege with cryptography used (not doable).
Nothing more, nothing less.

MTPZ and Windows Phone

Hi, I was wondering if anybody had compiled any information on MTPZ in regards to its usage on Windows Phone 7. Based on preliminary review of the Mac OS X Connector application, the authentication process for MTPZ + Zune is at least somewhat different for MTPZ + WP7.
I've essentially reverse engineered the Zune variety of the MTPZ protocol (which you can read about if you head over to my blog), and I was planning to look into MTPZ on Windows Phone since that might have a larger target audience, but I was hoping to gather some information first:
How is MTPZ used on WP7? Is it what allows one to move files back and forth to the device? In addition, what is an MTPZ session with a Windows Phone device like? Is it just MTPZ authentication operations initially followed by regular MTP (as is the case for Zune devices), or are there MTPZ operations used throughout a session?
What does the Zune software allow you to do with Windows Phone devices? I don't have one of my own.
Has anybody captured a USB/MTP session of the Zune software's communication with a Windows Phone device?
Also just for when/if I begin looking into the protocol:
Do the WP7 emulator images include MTPZ implementations?
Would it somehow be possible to use the emulator image to simulate an actual USB Windows Phone device?
Thanks so much for any information.
Sounds like a great project! I can't answer all your questions right now, but a few of them certainly...
MTPZ allows syncing media files (music, video, picture) to and from WP7. I believe it is also used for changing certain phone settings. In this way, it is very similar to Zune players.
I believe MTPZ is also involved in both the official dev-unlock procedure (the Microsoft developer registration tool requires that Zune be running and have connected with the phone) and app deployment (same restriction). I'm not sure about those - it miht be something else that Zune does - but it seems likely.
There are some other possibilities of things you might do with access to the phone (check it for update availability, wipe the phone, configure WiFi sync, rename it, etc.) It also might be possible to change other settings not visible int he GUI, or to access information that is normally hidden (one awesome possibility would be the encryption key used for the backups, though that's a long shot).
Honestly, just finding a way to run the WiFi sync on-demand would be brilliant. Another very cool option would be to directly modify the artist background images and such on the phone.
As for the emulator, it does support app deployment, but I think that's the only thing from the above list that is supported on it. I don't know how much, if any, of MTPZ is implemented in it. It's probably worth trying (it's free, after all) and considering that it's a VM, it's entirely possible that it does use a virtual USB connection (or some other link that you can tap).
Good luck!
Thanks for the reply.
Okay, so MTPZ is at least used for syncing the media files and all that? That's good to know, do you know if those are transferred via regular MTP commands?
Ah, based on the information there about requiring the Zune software running and connected, I'd also venture to say that it's likely, especially considering the plethora of MTPZ and other non-standard MTP opcodes, like "MTPZ_OPCODE_MARKETPLACE_SET_CREDENTIALS".
So it definitely seems that MTPZ was amended to include a bunch of WP7-specific operations, contrary to the handshake-only operations that comprised MTPZ for the Zune.
If the emulator supports app deployment, and that seems to require an MTPZ connection (and therefore the MTPZ authentication), so I think it would be fair to say that I would at least be able to debug a live authentication session. That being said, I'm still unsure of how I would go about using the emulator image to imitate a real, physical WP7 device connected over USB (much the same way that ISO disc images can be used to imitate physical discs) so that the Zune/Mac Connector software believes it is connected to a device. Hopefully somebody can shed some light on if that's possible and how to go about it.
Currently I'm doing a static analysis of the Mac OS X Windows Phone 7 Connector application to get some preliminary notes on the authentication process.
KBHomes said:
Hi, I was wondering if anybody had compiled any information on MTPZ in regards to its usage on Windows Phone 7. Based on preliminary review of the Mac OS X Connector application, the authentication process for MTPZ + Zune is at least somewhat different for MTPZ + WP7.
I've essentially reverse engineered the Zune variety of the MTPZ protocol (which you can read about if you head over to my blog), and I was planning to look into MTPZ on Windows Phone since that might have a larger target audience, but I was hoping to gather some information first:
How is MTPZ used on WP7? Is it what allows one to move files back and forth to the device? In addition, what is an MTPZ session with a Windows Phone device like? Is it just MTPZ authentication operations initially followed by regular MTP (as is the case for Zune devices), or are there MTPZ operations used throughout a session?
What does the Zune software allow you to do with Windows Phone devices? I don't have one of my own.
Has anybody captured a USB/MTP session of the Zune software's communication with a Windows Phone device?
Also just for when/if I begin looking into the protocol:
Do the WP7 emulator images include MTPZ implementations?
Would it somehow be possible to use the emulator image to simulate an actual USB Windows Phone device?
Thanks so much for any information.
Click to expand...
Click to collapse
Hi, there were some work on MTPz done by biktor_gj, donpromillo and me on the Nokia Lumia 800 Full Unlock thread (discussion started around page 76, tryouts around page 78-80).
So far, we know that Zune performs operating system backup and restore, send applications and software updates (cab and xaps) and flash updates (FFUs).
donpromillo and biktor_gj have sniffed USB traffic for the backup process.
Thanks for your work on MTPz reverse-engineering!

HP Elite X3 Help Needed

I have been conducting a review of the new HP X3 for my job, and there are two major "problems/things" are driving me nuts. I am a 28 year application developer, I have built my own Windows CE environments since PocketPC 2003 and my daily driver is a unlocked 950XL, so I am not some noob. But at this point this device has me stumped on Microsoft or HP motives with this device.
Just an overview, the device comes with a nice continuum dock with two USB ports and a USB C port, so basically three in total. It also has a display port as well, which to most people will require a DVI converter. As a developer remote desktop was my first stop. This option does work, but you quickly find out the that you don't like the mouse speed or the pointer size isn't exactly what you want as far as the overall RDP session. OK, so you go to settings and guess what. One option, mouse button left or right...Really HP and/or Microsoft????? At least give me some sort of mouse speed control. I was able to write a complete UWP application using Blend and Visual Studio through remote desktop, but if it had not been for the testing of the device I would have ended up pulling out my laptop and had the app done in 1/4 the time. So please expose some mouse settings, I have been through the Image Design Control tool for the provisioning and their WAP files from the ffu images but can not find the settings that I could configure to change this. My 950XL on the same HP dock with the same mouse and keyboard works 1000% times better, so it is something they have in a setting, hopefully not in a build.
Next I try and get the great dock that comes with the device to sync with a desktop. I have not tried this with the HD-500, so maybe this isn't fair. But as far as I can tell you can not have your device sync to a workstation when it is docked. I tried connecting the USB-C to a normal USB port on the desktop (both USB3 and USB2) and the device gets the dialog on the device saying USB error. So I try a straight through normal USB male to male cable, same error. Very annoying thing at first, but for a developer it gets worse.
So you end up taking the device off the dock and connect it using a UBS-C to a USB3 cable directly to the desktop. Finally the device is seen by the OS and Visual Studio. Things are looking up, workstation makes the ding, you can browse the files, visual studio shows the device and you think everything is ready. You go back to visual studio and set the break points in the code and press debug. The device turned off when you first sit it down but at first you don't even think about it. So you pick the device up get the screen running so visual studio starts trying to connect for the debugging session. Your humming along and visual studio debugger hits a null exception error and breaks. You sit down the phone and turn to visual studio to check out which object only to find out the phone turned off and the error along with the debug session had been cut off. I really don't understand whether is the light sensor or accelerator that HP has set here but it has to be a setting. My 950XL does not exhibit this behavior. I can see exposing a setting such as this as an option, but I cannot find the setting controlling this behavior if it is an option or something HP is enforcing for some unknown reason.
So if anyone can point me in the direction to the following options and/or settings it would be helpful.
1. Where are the mouse pointer speed settings for USB connect mouse including when using Continuum. (Registry settings or visual don't care)
2. On the HP X3 does anyone know how to turn off the setting to turn off when sat down. Trying to figure out if this is the black out of light or when it is acceleration setting.
Hi to prevent the phone to turn off you must turn off the double tap feature.
acuatico69 said:
Hi to prevent the phone to turn off you must turn off the double tap feature.
Click to expand...
Click to collapse
I think there was also a new FW update to aid in the screen timeout while docked.
geekempire said:
I have been conducting a review of the new HP X3 for my job, and there are two major "problems/things" are driving me nuts. I am a 28 year application developer, I have built my own Windows CE environments since PocketPC 2003 and my daily driver is a unlocked 950XL, so I am not some noob. But at this point this device has me stumped on Microsoft or HP motives with this device.
Just an overview, the device comes with a nice continuum dock with two USB ports and a USB C port, so basically three in total. It also has a display port as well, which to most people will require a DVI converter. As a developer remote desktop was my first stop. This option does work, but you quickly find out the that you don't like the mouse speed or the pointer size isn't exactly what you want as far as the overall RDP session. OK, so you go to settings and guess what. One option, mouse button left or right...Really HP and/or Microsoft????? At least give me some sort of mouse speed control. I was able to write a complete UWP application using Blend and Visual Studio through remote desktop, but if it had not been for the testing of the device I would have ended up pulling out my laptop and had the app done in 1/4 the time. So please expose some mouse settings, I have been through the Image Design Control tool for the provisioning and their WAP files from the ffu images but can not find the settings that I could configure to change this. My 950XL on the same HP dock with the same mouse and keyboard works 1000% times better, so it is something they have in a setting, hopefully not in a build.
Next I try and get the great dock that comes with the device to sync with a desktop. I have not tried this with the HD-500, so maybe this isn't fair. But as far as I can tell you can not have your device sync to a workstation when it is docked. I tried connecting the USB-C to a normal USB port on the desktop (both USB3 and USB2) and the device gets the dialog on the device saying USB error. So I try a straight through normal USB male to male cable, same error. Very annoying thing at first, but for a developer it gets worse.
So you end up taking the device off the dock and connect it using a UBS-C to a USB3 cable directly to the desktop. Finally the device is seen by the OS and Visual Studio. Things are looking up, workstation makes the ding, you can browse the files, visual studio shows the device and you think everything is ready. You go back to visual studio and set the break points in the code and press debug. The device turned off when you first sit it down but at first you don't even think about it. So you pick the device up get the screen running so visual studio starts trying to connect for the debugging session. Your humming along and visual studio debugger hits a null exception error and breaks. You sit down the phone and turn to visual studio to check out which object only to find out the phone turned off and the error along with the debug session had been cut off. I really don't understand whether is the light sensor or accelerator that HP has set here but it has to be a setting. My 950XL does not exhibit this behavior. I can see exposing a setting such as this as an option, but I cannot find the setting controlling this behavior if it is an option or something HP is enforcing for some unknown reason.
So if anyone can point me in the direction to the following options and/or settings it would be helpful.
1. Where are the mouse pointer speed settings for USB connect mouse including when using Continuum. (Registry settings or visual don't care)
2. On the HP X3 does anyone know how to turn off the setting to turn off when sat down. Trying to figure out if this is the black out of light or when it is acceleration setting.
Click to expand...
Click to collapse
hello
try using Bluetooth mouse
I'm using the following setup:
hp pro display p2012 over Display port to HDMI cable with DVI to HDMI adapter
Bluetooth mouse and keyboard
they work perfectly

Categories

Resources