usb loopback???? - Upgrading, Modifying and Unlocking

Is there an USB adept out there who would know if this is technically and programmatically possible:
A loopback connection via USB with an external Switch. USB+ and USB- are bridged via an external switch or button. Every 20ms or so, a packet is being sent to the device itself. If the switch is closed, the packet can be received, which fires an event (probably an error because of bouncing), but an event that can nonetheless be handled as an user input.
_________ usb+
| -------------
device | \ button/switch
USB | -------------
--------- usb-
Any idea?
Are there libraries available for eVC++ that expose the USB port as a virtual COM port?
Reason for asking: with external switches and an accessibility software, the devices become accessible for handicapped users. Up until now, legacy RS232 hardware handshake could be used to generate an user input, but these interfaces tend to become extinct with the newer devices.
Thanks for any hint
Phil

You cannot do this without an external hardware. You can buy an USB COM-port adapter, and work with it as with usual COM-port.

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

I am going to build USB port,need help.

Well guys,i am going (me and other guys who have good experience in e-circuits)to try build a USB port to the Himalaya..
Now I understand by the http://wiki.xda-developers.com/wiki/Connectors link that only the large connector have the pins for USB..
During this time,any help,new informations about himalaya's USB will be appreciated.
In fact the project "USB port" is actually at level zero. (really busy previous week)
I am trying to make this to connect especially a Mouse to XDA2
So,I really need a help from you,MattM and others..
Can someone build or convert a generic windows mouse driver to pocket pc?
Or maybe is more easy to make a serial connector for mouse?
Then does we need a pointer?
-Is this factible? or just a dream?
(Laucher Prog based on Flash like PocketWin has a Pointer add-on)
Waiting for your replyes!
Regards,Ser
i read something about it in this forum, try searching for home made keyboard or mouse & you might find some answers to the basic questions
Come on guys!
I will use the DC adapter connector and USB female connector.(You can see the photos attached)
-But first explain me closely about UDC- and UDC+ does they are for data transmission or power?
Also USB_VDD is for?
-If I connect a USB device to the XDA2 does it will give power to it?(for mouse,etc..) or do I need to connect an external power alimentation? If yes,6V?
-If I build a Serial port can you explain more about:
RS232_DCD
RS232_CTS
RS232_TXD
RS232_RTS
RS232_RXD
RS232_DTR
Maybe is simply make the serial cable like on the "Connector's Page" (http://wiki.xda-developers.com/wiki/Connectors) and attach a serial Female-Female to connect Mouses and others?
Please post your comments,suggestions,ideas.
Regards,Ser.
UDC- and UDC+ are data
USB_VDD is for power
I don't think anyone yet knows if the XDAII can work as a USB host anyway.
For rs232 you will normally only need RS232_RXD, RS232_TXD and ground.
I'm sure someone did a serial mouse program before....
Jamie
RS232_RXD, RS232_TXD are for data?
I hope someone did the program but i've searched over i-net and didn't find anything about it!
I've also read about the built-in USB port of Toshiba,some people connected their HDD and all went perfectly.
So,I hope connect a mouse will not be so hard..
Regards
Have a look here for a mouse driver http://www.windowsfordevices.com/articles/AT3401319437.html
Yeah,i've seen it before but don't sure if it will function properly,but let's take it for that moment.
Thanx!
After a short search over i-net I found the prog. that uses Toshiba for its serial devices like mouse,keyboards: Click n'type and Point n'type..let's figure more about.
OK,now I will connect the female usb to the connector like:
RED (USB_VDD +5V) to Pin 13
GREEN (UDC+) to pin 14
GOLD (UDC-) to pin 15
BLUE (GROUND) to pin 16
Correct me if it isn't.
But I can't find a scheme of the connector that I will use,I can't understand which is the pin 1..2..
Can someone give me help about?
Thanx to RUDEGAR that provided me the link,http://www.deje.gmxhome.de/software.html
I have the USB drivers and pointer for Mouse,also support for Mass storage.
i have disambled this connector 2 times
let me look it up for you
[UPSIDE]
[1] [5] [9] [13] [17] [21]
[3] [7] [11] [15] [19]
---------------------------------
[4] [8] [12] [16] [20]
[2] [6] [10] [14] [18] [22]
[DOWNSIDE]
now the upside is when you hold the connector flat and you see the 2 cutout lines in the plastic wich goes into the xda
topleft from that is pin 1
Well,the cable doesn't work! :x
-XDA2 does not give power to the usb device (tryed with a optical mouse)
(N:we verified with a VoltMeter and all cables seems to be ok)
-Also the DeJe Drivers (originally built to Toshiba) don't work. But the driver's are compatible with all WM2003 OS..
-I verified that on my pc(Win XP) when I connect the Optical mouse,it will no give power to the device once it load the drivers,so I guess maybe the same on Pocket Pc?
What do you think about?
-Probably I will build a Serial Cable for the Mouse
Regards, Ser
have you tryed a usb pen yet.. I see you mentioned storage before
yes,in fact I have't installed the Mass storage drivers for a Pen Drive,etc..
But I verified that no led (on pen drive) and no optical light was lightening so is easy to understand that XDA2 don't gives power to the USB devices... :?:
would they light anyway ? do they only light when the correct drivers are used and its told to light. I think it would be a awesome idea to add usb to the xda.. you could then use it for loads of other things..
unapproachable2kx said:
Well,the cable doesn't work! :x
Click to expand...
Click to collapse
It cannot work. Never will.
There are two different types of USB devices: hosts and clients. You can only ever connect a client to a host. Connecting client to client does not work. It's a bit like two people picking up the phone, none of them dialing a number, but still hoping they'd get connected. Not going to happen.
All USB mice are USB clients. The XDA II also is a USB client. The USB chip in the XDA II can only handle being a client. It does not support host mode, so no software in the world can change the XDA II to a USB host.
So, connecting a USB client to an XDA II will never work.
For serial communication (RS232), there is no such problem, so it may be possible to connect a serial mouse to the XDA II. The first thing you have to make sure is that the voltage is correct. "Normal" RS232 uses +12V/-12V, whereas most small devices (and quite likely also the XDA II) uses 0V/5V. You may have to add a MAX232 (or compatible) level shifter chip to your cable.
I strongly suggest you search the 'net for RS232 and read as much as you can find. If you just experiment with cables without really understanding the implications, you might damage your XDA II.
Once you sorted that out, make sure you connect all the handshake lines your mouse uses. I would imagine that some mice may need at least the DTR line assigned before they will start doing anything.
After that, the rest is software. Your driver will have to a) pick the correct baud rate, b) drive the handshake lines correctly, and then c) it can start receiving data.
Good luck!
Daniel
well there are CF cards which have usb master support
and with the backpack the xda2 can use CF cards
of cause the driver issue could be troublesome and i'm
not sure about the speed dec going that interface to interface way
but i would not rule out that it could work
with the right drivers mind you
How about connecting a serial to USB convertor to the serial port on the XDA II?, surely that would leave you with a USB host port that you could plug a mouse into?
In this case is more simple to connect serial mouse to the serial port.
Dunno if how u tell the usb will work.. :?:
http://www.expansys-usa.com/product.asp?code=113389
Would this do the trick?
It says host ports, can the XDA2 handle it?

a makeable thing??

hi
12v powered usb hub, with pocket pc charge and upto 4 device cabled network (or wifi). using smb network share of any plugged in disks, and having a directory set set asside for a print queue and for windows GDI drivers for printers which may be attatched. maybe a cat5 too. useful as a print file station, also with power cable gen of -12 and 5 for supplying disks.
a power efficient mobile office hub. MediaMobileHub.
any ideas??
very very few htc pdas have usb host functionality so they can only use usb for charging and being sync'd with by an usb host like a pc
ideas for min cost max function
things I need to know.
1. does pocket ICS route both ways as this would mean bluetooth and wifi were not needed as standard as a pocket pc could provide this extra connectivity. along with routing of other connected pockets.
2. how standard are GDI driver files.
3. how standard are disk drive enclosure power connectors.
4. active sync between devices would be good, with selection set being done via a cab download. and date criterian.
5. about usb printer scanner combo devices such as this lexmark. the scan button would scan and save to a fixed directory?
6. DVD writer auto do from directory on blank disk?
well more later,
a master hub yes
sorry for the confusion but the intent is the hub is a bus master.
when plugged as a slave into a pc
the hub when plugged as a slave into a pc would export a network interface with smb shares and pretend to be a pocket pc (with set name). this would also act as a routing gateway to any device ICS. so a dhcp server and nat would be needed within the device. this would be far better than exporting multiple usb devices. and sync up all pocket pcs with the one desktop, while keeping the need for desktop power consumption to a minimum. chains of hubs would present possible device naming problems, and so mac addresses would be the logical choice for the merged virtual power pc.

[Q] USB functionality

Hey there,
my G Pad is currently running the nightly build of CM11 (updated on Jan. 20).
I wanted to try out the external USB functionality. Despite the fact that the tablet does not support additional external power while using the USB host, PCap for Android doesn't work due to the fact, that the ALFA Wifi adapter (RTL8187 chipset) doesn't show up as USB device properly. Actually it's a bit strange.
My USB Hub, external Keyboard and my mouse are working as they should. Mass storage is also showing up. These devices seem to be handled correctly by the operating system. The problem is, I can not use the external Wifi adapter, because PCap tells me, it can't find any USB devices.
I installed the app 'USB device info' which is devided in two parts. The 'Linux' tab shows all devices (including the external Wifi adapter). It uses /sys/bus/usb/devices to determine what kinds of devices are connected to the tablet. Just like lsusb (shows all devices as well including the Alfa network adapter) everything is correct.
The other tab of 'USB device info' called 'Android' doesn't show any devices.
Could anyone explain what's the difference between those two tabs ('Android' and 'Linux') and why the devices are not visible in 'Android'. I guess the operating system is hiding the device, and that's the reason PCap capture is not able to find it.
Thank you guys.

LineageOS USB Power/Hoste mode

Hello *,
with stock rom USB host and power delivery is working so I'm able to connect a passive USB device, like a Flash drives or a mouse, to the Nokia 6.1 USB connector.
But after updating to LineageOS 18.1 this is not working anymore. Connections with active devices (like a PC) are working but not with passive devices, the stay off because of missing power delivery and I cannot active it in "Connected Devices -> USB Settings".
Hence my question, how can I activate the USB power delivery or host mode because I think the USB from the Nokia device do not deliver automatic power to a passive device?!?.
Thank you in advance.!
servietos said:
Hello *,
with stock rom USB host and power delivery is working so I'm able to connect a passive USB device, like a Flash drives or a mouse, to the Nokia 6.1 USB connector.
But after updating to LineageOS 18.1 this is not working anymore. Connections with active devices (like a PC) are working but not with passive devices, the stay off because of missing power delivery and I cannot active it in "Connected Devices -> USB Settings".
Hence my question, how can I activate the USB power delivery or host mode because I think the USB from the Nokia device do not deliver automatic power to a passive device?!?.
Thank you in advance.!
Click to expand...
Click to collapse
Try other custom roms
Yup still a relevant question till now with LOS20.
Include usb dacs on devices that don't work.

Categories

Resources