USB device endpoints - Windows Mobile Development and Hacking General

Hi,
When I enumerated the PDA USB device from my desktop, it only detects 2 Bulk transfer endpoints on the PDA. However, the Intel XScale chip actually supports up to 16 different kind of endpoints. For some reasons, the ROM code just configured to expose 2 endpoints.
Therefore, if I open com8, I only got two bulk transfer endpoints.
Does anyone know how to circumvent this problem or directly access the other hardware endpoints?
thanks,
- David

Related

Use PocketPC as USB mass storage

I wonder if there's any software to operate PocketPC as USB Stick available (like for Palm Tungsten T5 - Drive Mode)? So basically I would like to use PocketPC drives just as a USB Stick (without Activesync of course)
Thanks,
Georg
this cannot be done in software.
let me rehash this topic
Can anyone here kindly explain me why it aint possible to use PPC as USB MassStorageDevice? I know you need USB Host Controller chip to handle that stuff in hardware. Why cant we emulate its function in software? In the end its only sending signals to the pc?
How does the device upgrade process work then? you also have to transfer data to ppc rom here.
I know that it wont be easy to give a simple explanation, could anyone try it anyway?
thank you for your help!
regards,
Quappo
i think it would be possible to do in software
if it cant then it's because that it's hardcoded in the pda that when it interduce itself to the pc as a plug'n'play device it does so as a pda
if that cant be changed then you cant do it
I've found some interesting SW tools:
here: http://www.softick.com/pocket-pc/cardexport2/#compatibility
and here : http://www.deje.gmxhome.de/download.html
You mast pay for the first one :?
but the second (if you like) it's free !
Have a look !!
Carlo said:
I've found some interesting SW tools:
here: ...
and here : http://www.deje.gmxhome.de/download.html
... the second (if you like) it's free !
Click to expand...
Click to collapse
You were misleaded. The named tool can be used on PDAs having USB host functionality to connect other hard drives. It won't let your PDA be recognized as a USB stick.
Yes - in general case you can do it.
It is possible to write software which allow to represent PPC with USB end-point hardware as USB Mass Storage device.
Question is - how?
It seems device will need to supply correct descriptors at USB enumeration process and device will have to correctly process appropriate comands from host device (PC or something else)
again - how?
It seems someone will need to write low level software to manage USB endpoint hardware in PPC. it may look like kernel mode driver.
What to need? - doc for USB endpoint device and ability to write driver to manage this hardware.
It isn't difficult - but every PPC will need own device driver.
Or if the USB dev has some interface to supply descriptors and process commands from host (internal - inside system, or app level) - it can be done at some level of abstraction.
Resume
- it is possible
- need to know details about device and USB interface in this PPC.
ryhor - soft stick export does it perfectly. Either use that, or reverse engineer it...
Very useful for non activesynced pcs: keep a copy of activesync install on your SD card, use softstick, install activesync from PPC "usb drive", then switch over to activesync and sync away.
V
vijay555 said:
ryhor - soft stick export does it perfectly. Either use that, or reverse engineer it...
Very useful for non activesynced pcs: keep a copy of activesync install on your SD card, use softstick, install activesync from PPC "usb drive", then switch over to activesync and sync away.
V
Click to expand...
Click to collapse
This seems very interesting. Can you tell me how the PPC shows on the Windows PC desktop? It has mostly two drives then, a possible SD card included.
Can you change the drive letter via local disk management?
Happen to know if it would work on Jasjar?
Huib
I've no idea how it works on WM5, you'll have to check their site: either way, I'm sure they're working on it.
How it works: you get a little icon in your tray (on Today screen). From there you can choose either to activesync or USB Drive when you connect your usb lead. You can choose which drive to use as a usb drive, ie storage or storage card. Only one at a time though.
Then, stick in your usb lead, and after a few seconds of recognising new hardware, it'll recognise the phone as a standard USB drive, ie a normal drive. I believe the drive letter can be changed in drive management.
I don't think it needs any drivers on >WinXP.
V
vijay555 said:
I've no idea how it works on WM5, you'll have to check their site: either way, I'm sure they're working on it.
How it works: you get a little icon in your tray (on Today screen). From there you can choose either to activesync or USB Drive when you connect your usb lead. You can choose which drive to use as a usb drive, ie storage or storage card. Only one at a time though.
Then, stick in your usb lead, and after a few seconds of recognising new hardware, it'll recognise the phone as a standard USB drive, ie a normal drive. I believe the drive letter can be changed in drive management.
I don't think it needs any drivers on >WinXP.
V
Click to expand...
Click to collapse
Thanks, I will defenitely buy this stuff when they make a Universal Version.
Huib
if it works on wm2005 then it works on universal too

Q: Is Magician capable of USB Hosting ?

I saw some articles about USB Hosting on PDAs, and it took my attention very much, by this gate we can extend our Jam usage in variable ways, attaching USB flashdisks, HDs, digital cameras etc. Anyone has any idea on this issue ?
not possible. you need a usb host. the magician can only act as slave and not as host to a other device. not even with software because that's the way usb works. to keep cost low the chips for usb communication are mostly on a master and not the slave.
further more what could have been done is to connect both devices as slaves to a master and let it act as bridge (there are several devices that work that way) but since the magician doesn't support the mass storage device profile even this isn't possible.

Controller for TIACXWLN

Hello all.
Experimental version of custom mode controller for TIACXWLN built-in adapters
is located at http://winm-soft.atspace.com
Who is interested may test it...
Hello AlexB.
I was trying to run your program on hermes with WM6 which according to wiki is equipped with TI chipset, I found references in registry to TIACXWLN drivers but unfortunately your custom mode controller don't want to work all I've got is "Cannot process memory block!........" after choosing yes "Cannot read configuration! It is possible device is off." but the wlan device is actually on. I'll send you my *.dmp files maybe you can manage to make it work on hermes.
I had been toying around with the custom mode driver and have had little success thus far. Another thread was started and I have since taken great interest in trying to achieve promiscuous packet sniffing on my Tytn. I believe the problem may lie within either the custom driver, tiacxwln.dll or the hardware itself.
A little more information...
Mode controller works (attempt) directly with adapter (ACX100, PCMCIA!!!), not with the driver (standard, not patched). Program extracts an address of adapter registers window from TIACXWLN driver (TIACXWLN1 device object) and next it enables some packet filters, executes commands and etc...
I have no new ideas now why it works badly on such built-in adapter (device process commands with success status)...
On Dell I receive all packets but sometimes only...
Alex is it possible for you to patch internal driver to use promiscuous mode and don't bother with custom controller?
The custom mode controller is probably the best way to go about activating promiscuous scanning, since it's affect can be made temporary. If this mode of packet scanning were always enabled, I believe it would not allow one to associate with an access point.
I've attached the dump files that were generated after the unsuccessful execution of tiacxwln_ctrl.. perhaps the author or someone else can derive a solution .
Hi, Alex.
I was looking for your tiacxwln_ctrl custom controller on your web site, http://winm-soft.atspace.com/ but I could only find TNETWLN and WCF-11 files. Has it been moved, or deleted? I'd like to try it on my HTC 8525 with WM6.
Walt
I've received a private request for the file that AlexB developed and had posted on his site winm-soft (it's no longer available) which is mentioned above.. it will not enable promiscuous scanning on the Hermes. I repeat, it is broken, it does not work. AlexB did a great job creating this hack, however I don't believe that it was ever intended to work with the 8525. If AlexB would be so kind as to provide his source then perhaps we would have a decent starting point to enable this feature, however anyone who would be interested in doing this would find 3 perhaps not so obvious hurdles.
1: The TIACXWLN.DLL driver needs to be hacked to enable monitor mode.
2: A program capable of capturing and storing .pcap files would be necessary at this point as the only program that I'm aware of capable of sniffing out weak keys is airsnort which only accepts pcap dumps.
3: The pcap file would be huge. ie - could quite possibly take up 1gb or more of a micro sd card.
Just my $.02. Comments are welcome. Now onto the file. Enjoy!
Hi everybody,
The TIACXWLN controller was developed (beta/gamma...) for Dell X51 PDA and program worked bad and it is discarded! That program got some pointers (parameters) from context parameters of standard tiacxwln driver... Standard driver in Dell and driver in HTCs are different... Some experience of controller development was used to make TNETWLN controller (also TexasInstr adapter)... All controllers try to enable only promiscuous mode (not monitor mode).
As yet there are no TIACXWLN promiscuous mode ideas and devices...
Now some ideas for TNETW1251 (with SDIO) exist.
Thanks for the clarification.
Alex, I don't understand your reluctance to release source code, unless you based it upon "inside knowledge" of someone's copyrighted code, in which case I understand completely. If (and I fit into this category myself from time to time) you are simply embarrassed by code that "worked bad and it is discarded!" then maybe you could release it to a small group of coders who would be able to make it work without a lot of public exposure.
My personal interest is simple. I have a Zaurus C3200 that I use to sniff out rogue access points on the networks I am responsible for. It's big and clunky, and only works on 802.11b networks, so I don't carry it all the time, whereas I *always* have my 8525 with me, and it will work on b/g.
As far as WEP cracking goes, with ARP injection you can get aircrack to find a key with files of around 1-2MB in size, so the pcap files would not be too big. Of course, as I understand it, you *would* need monitor mode for packet injection to work.
IMHO this is a valuable development work that should continue. I just wish I had the skills and time to do more myself!
Walt
About sources
Main idea of contollers is working in special modes in parallel with vendor driver/software (without patching and etc.). All information, command structures and register constants was extracted from: http://acx100.sourceforge.net/
Who is intersted in building of new TIACXWLN driver should analize these sources. There are many commands and constants in these sources but controller used only Packet Filter command. All that the controller needed was address of mapped window of registers (it was stored in vendor driver context)... TIACXWLN adapter on Dell X51v processed these asynchronous commands with success (by response) but vendor driver was as post-processor any commands...
Commands are used by controller (details see in Linux driver (acx_struct.h)):
1) ACX1xx_CMD_INTERROGATE (IE_RXCONFIG)
2) ACX1xx_CMD_CONFIGURE (IE_RXCONFIG, RX_CFG1_RCV_PROMISCUOUS)
...
Hi, thanks to Lancealot for upload this file.
I install this controll driver in my HTC Universal (Universal have Wi-Fi chip from same corporation as TyTN: tiacxwln).
But this controll utility is not work on my UNiversal :-(
That setings promiscous mode, so Universal is freezed :-(
Anybody have any ideas ?
* Please excusive my for my bad english, thanks.
Hi Alex
I hv Sedna and have the discvussed Wi Fi driver..My problem is that it connects to wi fi router (g) but I cannot surf..most of the times I have to on/off and it works, but after long periods it disconnects.I hope this will solve the problem, also if u can suggest any guidance,I will b greatful
AlexB does your sniffer allow you to capture wifi traffic in all channels?
Hi,
Sniffer captures "adapter driver <-> protocols stack" packets...
Standard driver of WiFi adapter returns packets only after connecting to some network therefore sniffer gets traffic from one network on some channel... In promiscuous mode adapter gives user packets with foreign destination address.

Access USB device directly. Is it possible?

On WM5 has anyone been able to access USB devices like printer, Pendrive etc directly? Would be great to be able to print directly or access files from a USB memory stick.
Have heard of HP printer drivers for older versions of windows CE somewhere...
Using a usb device on the phone.
I know of no WM5 or WM6 phone for that matter that have a usb STACK on them that would allow them to use a usb device. They are designed to BE a usb device for a pc...not the other way around.
famewolf said:
I know of no WM5 or WM6 phone for that matter that have a usb STACK on them that would allow them to use a usb device. They are designed to BE a usb device for a pc...not the other way around.
Click to expand...
Click to collapse
i think you are mistaken.. there are a couple new WM5 and/or 6 devices that have USB hosting support.. among them is the Athena, O2 Flame, and toshiba g900, and those WM devices exclusive from/for japan..
Yeah, it is the other device that must be able to read the PPC.
My stereo read my Tytn as a storage device. Can play music directly from the PPC. However it is the Stereo doing the recognizing job. Not the other way around.
I'd just like to clarify a few things:
1) USB has two sides - host and client and they are different by hardware and not just software so there is no "able" question here.
2) In cases like memory stick, printer etc. when your device uses what is connected to it, the phone must act as host. The reason there are few devices with USB host is mainly because to be fully implemented this standard must provide up to 500 mA current to the hosted device and of course thats a bug problem when working on battery.
(Any phone that does implement it, provides it "unpowered" so not all devices will work)
3) In cases where something is using your device like the stereo, the phone acts as a client so with the right piece of software (like WM5Storage) any phone can be used.
The fujitsu Pocket LOOX T810/830 can act as a USB hub.
Some devices have this capability but not a feature that is common.
Sam.
I'm really unqualified to discuss this in great detail, but why I got there was - I've read somewhere in these forums about Win95 emulators for ppc devices. Now if it could be possible to "emulate" just the USB stack portion of Win95, maybe, the ppc could be connected to devices like printers which would not require a powered USB connection.
That's all ...
Atul
emulating an os dont add new features to the hardware though

Is it possible? USB for WiMo...

Hy,
with so many ppl out there making there own audio-video-charging-whatnot cables for Smartphones of all kinds (especially the Omnia i know of) i would like to know if it would be possible to get any kind of external USB device like Keyboard, Mouse, USb-Hub or HDD working on a custom cable and driver of some sort. Sure when u allready have a USB-Port on your device the special cable is not needed, but the Driver part is, so interest and demand of this should be rather high me thinks...
Since i have no knowledge to program it, this post is more like a suggestion or request. If the hardware of Smartphones is not as reconfigurable like the Bluetooth-components that can be teached to understand Bluetooth-Keyboards and Mouse then let me know and close the thread
Thanks
Flashhawk
these are possible...if someone agrees to write drivers for all the stuff we want to run...atleast thats what ive heard n read (and remember )
Default Zeno USB Host Drivers v6.0a
Zeno USB Host Drivers v6.0a
==========================
Date: 2009-02-12
Original thread and discussion found here:http://forum.xda-developers.com/showthread.php?t=480899&highlight=zeno+usb
Requirements
============
PDA or Smartphone running WM5, WM6, WM6.1, propper USB cable for your device, PTP digital camera.
Information
===========
Made by Zeno Sloim. Based on RATOC Systems drivers.
The package contains:
- USB Mouse driver
- USB Keyboard US-101 HID driver
- USB-based external CD-DVD unit
- USB-based HDD unit, Memory Flash, USB-based card-reader MassStorage Driver
- USB-to-Serial Port driver (start Terminal in Start-Programs for configuration).
- RS232 USB Serial Driver (start RS232 USB Serial Driver in Start-Programs for configuration).
- PTPView for HOST & PTP Digital Cameras driver (non-USB Mass Storage such as Sony, Canon etc.).
- download photos and movies from PTP digital camera to your PDA
- photo preview
- multiple files download
- delete files from digital camera
All features tested on Fujitsu Siemens Pocket Loox 560N running WM6.1 with Transcend 16 GB SDHC Class 6.
Used with OEM USB keyboard, OEM external HDD, Kingston 8 GB memory-flash, OEM card-reader and various SD, SDHC cards, Microsoft various USB Mouses, Jura F9 automatic-coffee-machine serial port controller, OEM serial GPS unit, Canon Powershot G3, Canon PowerShot S3 IS
Download and run installer.exe on your pc, autorun.exe on your pda, autorun-s.exe on your smartphone.
History
=======
- Version 1.0: 2009-02-06 (first version)
- Version 2.0: 2009-02-07 added USB Host Mouse support for generic USB mouse. Only left-click and right-click support included, scroll-mouses are reduced to simple left and right click mouses.)
- Version 3.0: USB-to-Serial Port support added. V3 includes all previous versions, no need for uninstall. V3 does automatically soft-reset, which was not the case for v1 or v2.
- Version 4.0: PTP digital camera support added. V4 includes all previous versions, no need for uninstall.
- Version 5.0: added compatibility with older devices WM2003, as well as for WM Smartphones.
- Version 6.0: improved USB-to-Serial Port driver and added a second RS232 USB Serial Driver more suited for serial GPS units.
- Version 6.0a: modified installer, no longer forced reboot after full install, due to conflict with TouchFlo, SBSH iLauncher which caused a repeated reboot. You should manually restart your device after complete install.
FAQ
===
1. What you see on screen when you connect something?
For HDD, Memory Flash or CardReader, you can see in Explorer(Resco Explorer or WM Explorer) the new unit labeled as "Hard Disk".
For keyboard, you don't see , but in any program using the device own keyboard (Touch Screen or slide - HTC Touch Pro), you can just type on external USB keyboard.
For mouse you see a yellow-green mouse cursor on screen which follows the external mouse movements.
For DVD you see : "External Mass Storage"
For Serial port a little window prompts you to configure the serial port settings and communication protocol.
Or start Terminal in Start-Programs for configuration, or start RS232 USB Serial Driver in Start-Programs for configuration.
For digital camera start the program PTP View.
2. Is program limited to only devices with USB-host?
Yes and no. It depends on the hardware construction, accesible USB connector, even older devices without usb-host can have usb-host functionality. Many models and manufacturers has hidden this feature which really exists in their devices. The only way to find is to test it and if not working, search if other users succeeded. Original Fujitsu Siemens Pocket Loox 560N has included by default usb-host connector, with support for HDD-Memory Flash only.
3. Cables and power supply - which ones?
I always tested it with powersupply incoupled for my Loox, even if HDD or DVD-unit self was powered separated. More info on how to build an injected USB power supply here:
http://tabletblog.com/2006/01/usb-po...host-mode.html
or here:
http://www.google.com/search?hl=en&q...or&btnG=Search
You can use the cables/accessories from an external powered usb 2.5" hdd unit and adapter mini-usb to usb (usb cables with 2 heads at one end for external power supply).
4. I ran your installer but nothing happened, and nothing got installed?
You must run installer.exe on your PC with your pda connected via Active Sync. Or copy autorun.exe to your pda and run it from your pda.
The installer detects if any of the 7 modules are already installed and it jumps to next component to check if it is installed. If all components are installed you see the message that nothing has been installed. After install, if you want to remove a certain component, you can do it by choosing Setting-System-Remove Programs. You'll see all 7 components and just uninstall the desired one like any other ordinary installled program. There's no common uninstaller for all 7 components at once, but for any of the 7 individually.
5. Does it work on my device?
There's nothing harmful, nothing malicious hidden in my program, so you can test it on your devices without risk for dataloss or other unpleasant effects.
The installation (CABs) is not locked to certain device, it is uninstallable, it is not compressed to avoid installproblems on certain devices. On my FSC Loox 560N I could install/uninstall without problems. Test my program, if it works, I'll be glad I could help other users, without thinking of money or profit. If it does not work, I can not guarantee I can help you. Just try and see.
6. Can it read data from attached DVD-unit or NTFS partitions?
Yes. The DVD unit I used is an Acer USB-based CD&DVD-RW made 2004 for an Acer Tablet-PC.
7. Barcode readers?
A user commented that even an USB barcode reader worked ok.
8. Incompatibility problems with other programs?
I can only test on my FSC Loox 560N. You can try on other devices and report in this thread on your experiences.
9. Legal aspects. Is this program legal?
Yes. All informations and sources are based on free available information and sources. No licences or copyrights were infringed. All is legal to use.
10. How much does it cost?
This program made by me, Zeno Sloim, is completeley free to use and test. I do not demand any payment or any other material form of recompense.
My program is done as Freeware and may be used by anyone.
However it may be not used or included by any person or company in a shareware product or which demands paying.
http://rapidshare.de/files/45220151/...v6.0a.rar.html
Maaan!!!
That is great!! Will try as fast as i can!!
Thank you so much!!!
Flashhawk
if u read the whole thread u will know that it is not working for majority of the devices. i hope that someone could solve this problem soon.
That driver doesnt work on many devices, touch pro and diamond cant use it.

Categories

Resources