Hey guys!
I've searched and searched for something to allow me to transfer data via a serial cable from my phone to device.
Let me try to explain this.
HTC Wizard
Windows Mobile 6 (Explore 1.1)
I have style tap (palm os emulator)
Software for palm os for a stand alone fuel managment system (msefi.com)
So on my car, I use a serial cable to program and get realtime data.
Now I know they make bluetooth to serial adapters for around 70, but I was wondering if they make a mini usb to serial cable for the Mobile OS.
Anyone have any ideas?
Thanks
Chris
Well, you could theoretically get a USB to serial adapter that has a cable. Then cut the USB connector that goes to the PC off the cable and just splice the miniusb plug onto the end. I don't know about device support though I'm going to guess you would have to at least come up with a driver and the device might not support that type of functionality at all anyways.
Since the Wizard doesn't have a USB Host (aka USB OTG) the short answer is no. Even more importantly, the wizard won't power the serial adapter so the device is a dud to begin with.
The odds that the BT to RS232 connector method will work are far greater than the USB method.
Related
anyone has tried yet usb host functionality ? I found the drivers of ETEN M600/G500 but not tried yet... processor should be the same so the trinity should support this function.
Thank you for your enquiry, the p3600 was not designed to allow usb memory expansion as such there is no current or planned method to enable what you have requested.
It may be possible to find a 3rd party solution but this would not be supported by ourselves but the solution supplier.
Should you have any other problem, please do not hesitate to call us. Your Local number can be found at http://www.europe.htc.com/support/cs_by_phone.html
Best regards,
HTC Support
Guybrush said:
I found the drivers of ETEN M600/G500 but not tried yet...
Click to expand...
Click to collapse
Could you share either a link or the file?
Should be this
OK, I'm with Hermes, but anyway... According to the specs, E-Tens have S3C2440 while we have SC32442, but they should be the same. The schematics of the evaluation board (p.6) shows that there are two USB hosts: one from DN0/DP0 pins, the second from DN1/DP1 pins. The latter can also be configured as USB Device... and that's what we have at our MiniUSB connector.
So... if E-Ten uses the first USB Host pins, we're out of luck. If they've implemented it in shared mode, the driver should work. But I have a reason for a doubt: M600/M500 have separate I/O pins for USB host and device, while the connector itself is provided on the cradle. If they made it shared, it would be more easy to implement host/device sharing in the cradle rather than in the device...
A soldering iron may help, but I don't want to loose the warranty yet.
An owner of the Platform Builder may recompile the driver to utilize the shared pins as well. That's a better solution.
If you want to make an adapter for tests, note, that you need to supply +5V from an external power supply (which can be a PC USB port), and that you don't need to cross the pins: DN1 is D- for both host and device, and DP1 is D+ for both. Nothing but connectors and wires should be required.
One more note: a USB Host driver for a shared connector should shut down USB Device driver, something similar that WM5torage does. This also makes me doubt that E-Ten uses shared pins, and that's why I believe that a different driver is required.
But it should be possible!
OK, I've made an adaptor from MiniUSB male (to TyTN), USB A female (for devices), and MiniUSB female for power supply.
In the MiniUSB male I shorted pins 4 and 5. At least this way I can use it for charging from other power supplies, and I think it hould not harm, because pin 4 on GND means USB Host for MiniUSB.
I've installed the above drivers, and also USB Mass Storage drivers (attached).
I have a USB mouse, a card rider (4 slots), an MP3 player, and an RS232 port.
Nothing but MP3 player showed any sign of an activity in all my tests.
The MP3 player shows "MASS CONNECT" on its screen if it detects USB activity. If it does not, it just turns to normal operations, showing that it takes power from USB. It turned to this mode after I installed the attached driver. But I see no a mounted disk on TyTN itself.
So, it works somehow, and I'm almost confident it can be made to work...
Probably I just did something wrong... Who else wants to try?
I must add that installed stuff didn't affect the USB Device from working: ActiveSync connects OK, and WM5torage 1.73 works as before.
Hardwarewise, there are a couple of things to try: disconnect pin 4 from GND at the phone side, disconnect power supply from the phone (providing it only to the attached device), or both...
i'm waiting connectors to try something by myself too. Thanks Lurker0 for all this tips.
thread about usb host from eten users
http://www.eten-users.net/index.php?showtopic=4328&st=0
I ended up with a hard reset Of course I made full backup before the tests.
I've found out that GPRS stopped working. The error messages were like "Modem not found" and "The current call should be finished before data connection" (from memory and ranslated from Russian).
Then I found out that hardware settings for OHCI are wrong:
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\OHCI]
"MemBase"=dword:B0900000
"Irq"=dword:0000000B
"UseExistingSettings"=dword:00000000
"MemLen"=dword:00001000
"SysIntr"=dword:00000011
"Order"=dword:00000001
"Index"=dword:00000001
"Dll"="ohci.dll"
"Prefix"="HCD"
"InterfaceType"=dword:00000000
IRQ should be 0x1A (from working registry and also Samsung datasheet), and memory base 0xB5900000.
I've deleted ohci.dll and usbd.dll, then uninstalled that HID driver to no available. I needed a working phone now, and decided to hard reset and restore.
It's strange why IRQ and MemBase were wrong. It may explain why it didn't work. Good I noticed them before tests.
Hey Lurker0
Did you get around to trying it again or was the project abandoned?
Would love to hear how you are going with this if you're still working on it =)
No, I did nothing since that.
HTC Herald compatibility
Does anyone know if the herald can host any USB devices
Looking at http://www.pdadb.net/index.php?m=specs&id=462 it says "Serial: RS-232 , 115200bit/s" But where would this plug in? Is there a special cable for the USB / Audio port that allows RS232 instead of USB?
Also on eBay you can get a car kit with built in GPS http://cgi.ebay.co.uk/HTC-TyTN-Powe...emZ150099357396QQcategoryZ75447QQcmdZViewItem if this is through a physical (not bluetooth) connection there must be a serial port.
Anyone tried this?
Thanks
Jamie
Ok,
If I were to make up an appropriate USB cable.....
1) Could I get my P3600 to talk to a USB control box that controls a light display which is normally driven by a Windows PC?
2) Is there any API facility in the Windows Mobile OS that allows a programmer to send and receive USB data packets or would I have to hit the PocketPC device hardware and bypass the OS?
3) Is any of the above possible?
Thank you very much
using usb it would not be posible
usb comes in 2 types masters and slaves
htc pda's are slaves they cant init comm with usb devices
much like that you cant connect an usb harddisk with an usb webcam
trinity have usb host...
you can see in samsung -
http://www.samsung.com/global/syste...roduct/2007/7/7/324600sc32442x__schamatic.pdf
in page 6 you have usb connection,
in trinity we have usb device, if you want to have usb host you will have to change the wiring inside the trinity.
for this change you will need to replace R75 from 470K to 15K, disconnect R83 and make a short from R76 to gnd with 15K(ohm), disconnect R82 and connect Vbus to 5V
(all the numbers of the resistors are for the Evaluation Board, in the trinity it will be diffrent numbers/connections)!!!!!
this will NOT work with your pc!!!! (need more modifications but can be done)
only host option!!!
you wont able to charge your trinity!!! (need more modifications but can be done)
but you can make switch like in the PDF
and then you will have usb host.
i have done some work on the sc32442 chip and it worked with usb host
(not the trinity).
no because the cpu have something dont mean that it's map'd out in the pcb of the manufacturers
and doing a hardware mod can kill the device and will 100% surely void the warrenty
and when all the hardware changes are then don then he needs to write a usb driver for wm to support the
hardware he want to talk to if non already exist
htc seem to use an external chip to do the usb stuff which is basic
only Athena and flame support it
tbuaron said:
trinity have usb host...
you can see in samsung -
http://www.samsung.com/global/syste...roduct/2007/7/7/324600sc32442x__schamatic.pdf
in page 6 you have usb connection,
in trinity we have usb device, if you want to have usb host you will have to change the wiring inside the trinity.
for this change you will need to replace R75 from 470K to 15K, disconnect R83 and make a short from R76 to gnd with 15K(ohm), disconnect R82 and connect Vbus to 5V
(all the numbers of the resistors are for the Evaluation Board, in the trinity it will be diffrent numbers/connections)!!!!!
this will NOT work with your pc!!!! (need more modifications but can be done)
only host option!!!
you wont able to charge your trinity!!! (need more modifications but can be done)
but you can make switch like in the PDF
and then you will have usb host.
i have done some work on the sc32442 chip and it worked with usb host
(not the trinity).
Click to expand...
Click to collapse
uhm ... very nice impact!
are you know the jtag pins? must be the same like your embedded board.
This is not good...
What is the first HTC device to support USB Host?
Is it that big fat thing with a detachable keyboard (can't remember the name )?
Thanks for the replies.
PS One last question....
Does anyone make an SD or miniSD port based USB controller card?
Thanks again
Is it that big fat thing with a detachable keyboard (can't remember the name )? == Athena
and yes
Hi folks!
I want to connect an android device (it has usb slots... i can plug there 3g dongles, keyboards, wifi etc) with my computer to try to establish an adb session.
Is that possible like that (usb male - male)? Do i have to solder a custom cable - and how would he wiring be to force the android into "client mode"?
Any help is highly appreciated!
licht77 said:
Hi folks!
I want to connect an android device (it has usb slots... i can plug there 3g dongles, keyboards, wifi etc) with my computer to try to establish an adb session.
Is that possible like that (usb male - male)? Do i have to solder a custom cable - and how would he wiring be to force the android into "client mode"?
Any help is highly appreciated!
Click to expand...
Click to collapse
to wiring an usb cable is not so hard. normally you only need to solder the same coloured wire together, red to red, white to white, green to green and black to black. but there are already male to male cable to buy.
www.dx.com/p/ult-unite-ult-1234-usb...lated-data-connection-cable-white-60cm-269067
what does your android device have for an usb? is it micro usb or standard (type a)?
if you have a micro usb port so use an usb data cable, most of the charging cable does have data transfer support.
your computer even needs a driver for your android device to get working the adb.
good luck!
ps. on ytube there a lot vids how to... only search and destroy ( your android)
KindsKoPP said:
to wiring an usb cable is not so hard. normally you only need to solder the same coloured wire together, red to red, white to white, green to green and black to black.
ps. on ytube there a lot vids how to... only search and destroy ( your android)
Click to expand...
Click to collapse
Hi! Thanks for your help! Its a type A jack on that device just like on the computer. Adbd daemon is on the device running but my windows machine cannot detect an usb device with direct soldered pins (or a bought cable which seems to have the same wiring)
I read about possible collitions when both devices of an usb connection are in host mode and that maybe pullup resistors on the data lines are needed - but i didnt fully understand that part. (Its different to the pin shortening of an usb otg wiring which can be found thousand times on google *G*)
can u describe exactly which cable u have used? and sometime the colors of the cable are not correct e.g. red is not +. those are build by chinese manufactures for cheaps goods. so u have even to measure the cable with a voltmeter.
and describe what happen when u plug the cable in the pc. normally windows is always running as main and android as slave.
as you describe u have an usb a type so i guess your android version is minimum 4.x and is already automatically on host status because you said u can put in a 3g dongle...so u have to go to the android command change from inside. i dont know much about linux programming so have to ask a developer. i only do developing hardwares not softwares, sorry for that.
what is your android device? with a datasheet is it better to solve your problem.
Hi KindsKoPP!
Thanks for your help and interest!
Basically I tested with a 1 to 1 wired cable I soldered by cutting 2 usb cables. I double checked colors (measured their output when connected to the computer) and found them ok. Then I connected them 1 to 1 (red-red, black-black, green-green, white-white).
But no usb device showing up or asking for drivers...
I know that adbd is running on the target device.
I pulled up some info here: http://www.valki.com/2014/12/04/analyse-av7/
I am still hoping that those usb devices who are in a double role (like our phones too with their usb otg host mode and client mode for mtp, adb...) are triggerable externally by using special soldered cables (resistors?) ... like "when resistor xy is on D+ -> go to client mode"?
Hi,
So I'm developing an app to communicate over serial with a HID and testing on the g6 is proving troublesome.
The scene:
-Hid/USB Permissions granted
-Device filter correct and working as intended
-Goal is to send a string over serial.
Allthough I'm 100% sure my test code is correct, the app cannot open a serial port.
Is it normal behaviour in recent versions of android for the device to recognise an otg cable as a power source? Even with no other device connected? Are there any known issues opening serial ports on the g6? (7.0)
The cable works as intended when I plug a mouse or keyboard in but refuses to open a serial connection when my takget device is plugged in. It recognises it as a HID an can pull the serial number etc.
The android serial library should not require root or any other hackery So I'm a bit confused. I've ordered a few other otg adapters just in case.
Anyone who knows what might be going on pleas pitch in.
I've had some issues getting a serial adaptor working as well. I'm on 870DS. Originally tried the wired version of this:
https://forum.xda-developers.com/an...odemu-connect-android-to-30pin-t3234840/page1
Thank God the developer changed to Bluetooth. I tried about 6 different otg cables. Worked fine on other non usb-c phones.
I suspect it is the adapter too...sucks so bad. The annoying thing is that I was so confident in android serial that I wrote a lot of code before I bothered testing the concept lol.
Does your OTG work on memory sticks OK? I have a G6 h870ds. My OTG only works for me with USB3 OTG adapters and USB3 memory sticks. I don't have a USB3 HID device to try. I now have a large collection of different OTG adapters and memory sticks. I opened up some of the adapters to buzz them through to make sure they were made correctly. They were! It took a while for the penny to drop why some things worked and some didn't!
I cant use USB2 OTG adapters or USB2 memory sticks, keyboards or cameras. Initial connection of the USB2 OTG adapter is recognized but no connected devices are detected. I used an app called USB Device Info that can give me details of detected devices and only USB3 devices are ever detected.
I have a USB2 memory stick with an LED on it. When it is first connected to the OTG cable it flashes in a way that leads me to think it is trying to reply to USB bus interrogation but something (probably software) fails. The phone connects to my USB2 PC port just fine so I don't think the hardware is at fault. I've reset the phone and upgraded to Oreo too but alas that didn't help.
A friend of mine has a G6 H870S and all my adapters and memory stick combinations work fine on his phone so I find myself wondering if I'm just unlucky or whether the dual sim version is subtly different in some way.
I fully admit I know nothing about the inner workings of USB but as far as I can determine USB3 uses all of the USB2 connections and the additional connections only available on a USB3 port so the hardware should be OK. I'm guessing most HID devices are USB2 but if its a USB3 could you possible have a related problem but in reverse?
Every time I plug in any USB OTG adapter I get that same pop up screen that defaults to select as "power supply" even with no device connected whatever I have previously chosen.
What works for me is to plug in the OTG adapter, and only then plug in the memory stick to it. Otherwise I get the "Power supply" thing too.
Arak0n said:
What works for me is to plug in the OTG adapter, and only then plug in the memory stick to it. Otherwise I get the "Power supply" thing too.
Click to expand...
Click to collapse
Leaving just the OTG adapter connected for a few seconds then attaching the usb device does not help. USB2 devices are never detected but all my various USB3 memory sticks work reliably when using a USB3 spec adapter. I've given up worrying about it now and accepted that there is just something a bit iffy about my G6.