[Q] serial port - Droid Incredible Q&A, Help & Troubleshooting

Has anyone got the physical serial port to work on the incredible? I have had a hard time finding anyone talking about it at all. I'm up for an upgrade and I like the incredible, and I was thinking it would sick to use with this:
http://www.youtube.com/watch?v=BCGe1WzNRZ8
I know its designed for the iphone, but the incredible is almost the same size so I think it would fit without much modification. The main issue is getting a serial port working to interface with it so an app can be written to map the buttons to the phone or support is directly added to an app.
can anyone shed any light onto this?

The Incredible doesn't have a physical serial port. It only has a micro-usb port used for charging, sync, and adb. In order to use a device like you've proposed, you'd likely need the usb port to act as a usb-host. Currently, the port only acts as a usb-slave. There was some work on this being done here:
http://forum.xda-developers.com/showthread.php?t=751535&highlight=usb-host

I am fairly sure that the usb d+/d- on htc devices with a micro usb plug can go into serial mode. Here is a post where they talk about doing it on the nexus one
http://forum.xda-developers.com/showthread.php?t=625434

Related

Foldable keyboard mod.

Hey
Does anyone know if its possible to have some kind of splitter so you can use your foldable keyboard AND have it synced to PC?
I do a lot of testing on the device, and keybaord input is very useful, but don't like having to unplug from keyboard and recradle everytime I need to transfer over a new build of the program.
I'm thinking of opening up my keyboard now... only just got it... but it would be so much better if I could still be cradled.
Anyhow, if anyone knows if its technically possible, ie, does the keyboard use serial and the pc sync USB only, is there any real possibility or am I dreaming.
No, you're not dreaming: a USB connection to the PC and a serial connection to the keyboard can co-exist. I would buy and modify a serial cradle if I were you, since the USB wiring is in there: only the small USB connector inside is missing. You could also just make a Y cable that hooks to the unit on one side, and to the USB port and the keyboard on the other: not as nice, but much cheaper solution.
OK, I just received some nice plugs for the device, anyone know where I can buy sockets? So I can make a part that goes between the keyboard and the device, without ripping open the keyboard and desoldering stuff.
Is the connection socket a standard part?

Male mini USB to standard female USB

So I found this Mini USB that plugs into the bottom if my T-Mobile Wing(HTC herald) I'm using the standard WM6 with no mods at this time. I was wondering if anyone here had ever used these for anything. IE can I plug a flash drive or camera into it and possibly with some app utilize my device to so. I searched and didn't find anything similar so i thought you guys might have some interesting ideas. thanks
in general no htc device (besides the 7500 and 9500) are able to host usb so far, as far as i know. i am not sure whether that is a real hardware restriction or a driver issue. maybe you could post a link where you found that, and what the actual purpose of that thing is and we could have a look into it, i would love for this to work, but i still doubt that

Generic USB-Slave to USBhost converter

Quite a lot PDAs supporting USB-host, but for only a few an adapters or appropriate cables from the manufactures are available.
As these devices support USB-Slave as well I would like to know if there's a way to convert the USB male connector (used as slave e.g. for sync with the PC) to a USB-host female in order to connect accessories (keyboard, mass-storage devices...).
According to wikipedia the configuration of the pins shouldn't differ too much for slave and host mode.
Pls. see attachement, that's what I found regarding this question. It's a picture showing a similar configuration (as new user I'm not allowed to post external links, thanks to ab21cn
from xdaflameusers)
But it's a male-to-male converter and furthermore a converter from "big usb" to micro (mini?) usb. As there're already standard converters for the different sizes of USB I would like to start with the biggest size and to buy the appropriate converter as needed.
Does anyone has a circuit diagram or any other idea for such a generic converter?
Try adapters made for Nokie N800 series
I had a Nokia 770 a couple of years ago. It came as USB device only with mini USB connector, but online I found how to upgrade the software to USB host, and use a cable adapter. The plans I found online involved a 9V battery and 5V voltage regulator inside a metal case (they used a penguin mints case). I built one of those, even using the penguin mints case, and it worked fine.
I have never seen any indication that my HTC phone would work the same, but I am guessing that it might, if the USB host drivers are available.
Google couldn't locate the penguin mints-based converter I originally found, but this seems to be a similar circuit diagram.
Edit: Found it!
thx
thanks for the links. but i'm a little bit afraid of connecting something to my pda which has an own power supply, the risk of a burn-out is given. i've got a nautiz x5 with 4400mA battery which should have enough energy to supply usb-power to connected devices.
I think I'm going to contact the manufacture of my device, maybe this works for me, but a generic adapter would be of use for anyone.
the chips used for usb should be of the shelf as i don't think each manufacture develops an own logic for usb... but this doesn't imply that the cabeling is standard too.
what the heck makes manufactures providing features in their products which the users can't take advantage of?
do you mean using keyboards and so on on ppc?
because it's so simple if ur phone has a mini usb plug (the one u plug the power adapter into). i found a cable that plug into that and plugs a normal usb cable in on the other side and blam been typing on my phone using a desktop keyboard. it depends how much power your device requires however. i wish there was some software to feed a video line out so i could watch videos on pair of vizors that wud be rad. all i can find is a mini-sd card converter now whats the point of that. guess i need an itouch
yes
primary i want to connect usb mass storage devices to my pocket pc. gamecontroller or keyboard would be a good thing too.
my devices doesn't have a standard usb plug, the only thing i got is a adapter from the properitary plug of my device to standard usb male connector, but this is meant for usb-slave use only.
the underlying qeustion is, if there's a way to convert usb-slave to usb-host using the same pins. if it needs an additonaly pin then i don't see a way to convert it as i don't know anything about the pins cableing of my properitary plug.
a week ago i found an adapter which was able to convert the male usb to another male usb... but it didn't work.
the problem is compareable to datatransfer between two pcs via usb - it's possible, but only using properiatry hardware and drivers...
so i think there's no way to solve this problem in a generic way.
out of interest, do you already have windows CE drivers for the device to act as a host and mass storage? I wouldnt mind them if you can point me somewhere..
how to check if my htc (touch2) ca use usb host?

[Q] USB host? Is it possible with the a100?

Hello friends, I am new to this forum, but certainly not new to the tablet world. I purchased the iconia a100 a few weeks ago and I must say it is a superb tablet in almost everyway. That being said, I am trying to come up with a solution for the lacking usb host on this tablet. I am certainly not a dev, but I am wondering if there is anything in the works for a working usb host? Does anyone know if acer has any plans to offer an adapter or even a different docking station with the usb host working from the 40 pin? If anyone has any ideas or would like to start a project i will be glad to help in anyway I can. While i was researching this usb host problem i see that there was a very sinilar situation with the galaxy which has since been resolved. Any suggestions? Thanks
Not yet possible, but you can pretty much count on it to be baked into a custom ROM when we get the ability to fully unlock and root this device. Root is already possible, and done. Unfortunately, we cant really do much development on it right now due to the encrypted bootloader. Most devs are waiting for the ics update in January to get the ball rolling on tweaks and hacks to the a100.
Sit tight, they'll have you up and running in no time
ummmmm............ could you repeat that?
This is also #1 on my wishlist. However, I don't know if that is even possible with a custom ROM; it requires the hardware to support it and I don't recall seeing any teardown that states that it would be possible.
I've seen it done in various phones, but don't know if its been posted on any here, but I'm sure a search on the forum would help find them. Its a matter of reconfiguring the port in the programming and getting an adapter from micro USB to standard USB.
But don't quote me on any of this, I could be mistaken with other devices. There has been talk about USB hosting on the a100 before.
ummmmm............ could you repeat that?
Yes, you would need something called an OTG (on the go) adapter. The hardware in the device has to support host, so it is not JUST software.
I can confirm that i have tried the otg adapter as well as other adapters...and it only works as slave. I would just like someone to confirm that usb host is possible [that the harware supports host capabilities]. I am just glad to see there are more people interested in fixing this problem as this tablet is superfast and top quality in every other way in my opinion. Thanks again
Maybe something comes out of
http://www.circuitsathome.com/mcu/programming/android_adk_compatible_usb_host_library_release
I ordered an OTG cable and once it comes I will take a look at enabling USB host mode.
I am guessing that the hardware supports USB host, but will need a kernel module and some scripts to enable it.
I also suspect that the USB port will not supply power to an attached device. If this is the case, the workaround is to attach a powered USB hub to the OTG cable.
Crossing my fingers, and waiting for that OTG cable to come in the mail...
flar2 said:
I ordered an OTG cable and once it comes I will take a look at enabling USB host mode.
I am guessing that the hardware supports USB host, but will need a kernel module and some scripts to enable it.
I also suspect that the USB port will not supply power to an attached device. If this is the case, the workaround is to attach a powered USB hub to the OTG cable.
Crossing my fingers, and waiting for that OTG cable to come in the mail...
Click to expand...
Click to collapse
USB host is enabled in the kernel. Hardware does support USB host.
Acer left it off the board entirely, so I doubt much can be done without hardware modding, which I'm all for lol.
Tapatalked from my Galaxy S II.
Sounds grim if the hardware connection is not there, are we sure that the port is just not supplying power?
do the kernel modules load? (e.g. usb-hid, usb-storage)
Has anyone actually tried to:
a) insmod the correct modules
b) force change to host mode (the device probably has to be either slave or host, not both at once)
c) connect something (e.g. a mouse or a thumbdrive) through the otg cable and a powered usb hub?
At least I won't have to build a kernel to test this out.
flar2 said:
Sounds grim if the hardware connection is not there, are we sure that the port is just not supplying power?
do the kernel modules load? (e.g. usb-hid, usb-storage)
Has anyone actually tried to:
a) insmod the correct modules
b) force change to host mode (the device probably has to be either slave or host, not both at once)
c) connect something (e.g. a mouse or a thumbdrive) through the otg cable and a powered usb hub?
At least I won't have to build a kernel to test this out.
Click to expand...
Click to collapse
I know this comes up every now and then, I really dont know how far anyone gets before giving up. Feel free to try out whatever you want, while I don't care about USB host I know a lot of people do and would love an update on any progress anyone can make. Even if its just things that don't work.
Acer is generally lazy and cheap, we use the same kernel source as the a500 which has host, which is why we also have it. It could be modules, though I doubt its so simple. Also a powered hub would be needed, there is no power supplied to the port that anyone has found. This could be remedied with some hardware work I'm sure. The hub would also need to be one way, meaning not dumping power to host as I doubt the a100 will take it and without protection would likely suffer damage if the power pins are even hooked up.
The system itself runs at 12v though I'm sure there's a 5v rail someplace but if it can support powering anything past maybe a flash drive is unknown.
Take a visit to iconia-dev on free node, they'll know more of this then probably anyone here does lol
Tapatalked from my Galaxy S II.
The A500 does not implement USB otg, but rather a standard USB port. In other words, USB otg is not necessary for the A500 since it has a standard port. The USB otg standard allows a the port to act as both master and slave depending on the connection. In the A100 service manual, the schematic shows only one connection to the chipset (client), host is unconnected, which could be a problem. However, it is known that the Tegra 2 can support otg connections. I'm not certain, but it may be possible that by shorting pins 4 and 5 in the micro usb connector (ie, using an otg cable) and with the proper kernel level support, the A100 could still act as a USB host, albeit with no power supply to the micro USB port.
I'll continue to investigate this once I have a chance to build otg support into the kernel and recieve the otg cable.
flar2 said:
The A500 does not implement USB otg, but rather a standard USB port. In other words, USB otg is not necessary for the A500 since it has a standard port. The USB otg standard allows a the port to act as both master and slave depending on the connection. In the A100 service manual, the schematic shows only one connection to the chipset (client), host is unconnected, which could be a problem. However, it is known that the Tegra 2 can support otg connections. I'm not certain, but it may be possible that by shorting pins 4 and 5 in the micro usb connector (ie, using an otg cable) and with the proper kernel level support, the A100 could still act as a USB host, albeit with no power supply to the micro USB port.
I'll continue to investigate this once I have a chance to build otg support into the kernel and recieve the otg cable.
Click to expand...
Click to collapse
Thanks for that, but one thing, its already in the kernel. However Linux society and/or waydownsouth would know more about what's in there, I just know it isn't blocked there. Modules etc I don't know. I look forward to seeing some progress on this topic.
Tapatalked from my Galaxy S II.
Pulled the kernel config from my tablet, you are correct, otg support is built into the kernel.
I'm using ezterry's kernel, almost everything is built in, there are only a few modules that have nothing to do with this.
I tested with an OTG cable, which shorts pins 4 and 5 in the micro usb connector. As expected, this did not enable USB host mode.
I tested wtih 5V going into the micro usb connection, as some of the non-powered devices need that voltage applied to activate the port, still nothing. (and no damage!)
I added a few other things to the kernel, the dmesg output changed slightly compared ezterry kernel
When connecting otg cable with 5V, dmesg shows:
tegra-otg tegra-otg: SUSPEND --> PERHIPHERAL
vbus connected, lock wakelock
tegra-otg tegra-otg: PERHIPHERAL --> SUSPEND
tegra_usb_phy_power_off(inst:0), phy->regulator_on: 1, line : 2754
tegra_usb_phy_power_off(inst:0), tegra_get_revision(): 0
vbus disconnected, unlock wakelock
android_work: did not send uevent (0 0 (null))
In the possibility that USB host is not possible on the micro usb port, a hardware mod could be done. There are points for a mini PCI-E connector on the motherboard (this is where the 3G module would be for A101). Solder wires to pins 36 and 38 for USB data, 4 for ground and connect them to a usb port. The PCI-E only gives 3.3V, but power could be supplied by a powered hub instead. There is even space inside the unit to mount a micro usb connector on the end with the power button.
The main roadblock is that the solder points are on the back side of the pcboard so you have to fully disassemble the unit to remove the motherboard. It would actually be fairly easy to do if the points were showing when you remove the back cover.
I don't think I have the nerve to actually try this.
flar2 said:
In the possibility that USB host is not possible on the micro usb port, a hardware mod could be done. There are points for a mini PCI-E connector on the motherboard (this is where the 3G module would be for A101). Solder wires to pins 36 and 38 for USB data, 4 for ground and connect them to a usb port. The PCI-E only gives 3.3V, but power could be supplied by a powered hub instead. There is even space inside the unit to mount a micro usb connector on the end with the power button.
The main roadblock is that the solder points are on the back side of the pcboard so you have to fully disassemble the unit to remove the motherboard. It would actually be fairly easy to do if the points were showing when you remove the back cover.
I don't think I have the nerve to actually try this.
Click to expand...
Click to collapse
Well if you want to play it like that, you can use a mini pci-e > usb adapter, which is also available with and without sata too lol. It would, maybe, depending on the board used, even line up with the sim slot, so minimal case cutting would be needed to make it accessible for usb. Straight drop in for an A101, though we lack the actual slot for it. Might be something I'll try later on.
Edit: I forget, does the sim slot line up with the pci-e slot? Been awhile since I saw the inside of one, so I may be wrong on that point.
There isn't an actual mini pci-e connector in my tab, it's just the solder points, so you would have to solder on a connector to use the adapter. The sim slot doesn't line up. But it looks like the empty sim slot is not high enough for a micro usb port to fit anyway.
I tried the hardware mod. Unfortunately the mini pci-e is not hooked up to the system. In other news, the motherboard is very easy to remove and reinstall.
there is a ROM in which they have implemented the usb otg?
Inviato dal mio Galaxy Nexus con Tapatalk 2

RK3188 1024x600 front USB not working? Any workarounds?

I'm not able to get to the bootloader screen because the front usb port is not functioning on my unit. Has anyone been able to use one of the USB ports on the back to get to ADB and/or get to the bootloader? Is this a known issue with a workaround? I've done quite a bit of searching and have not turned up any solutions. Considering what is involved in shipping this back, I'd much rather figure something out. Thanks in advance for any help!
Edit: I should mention that I have used the adbon password and it does acknowledge that adb has been enabled. Just nothing seems to work on the front port. When I connect my Linux machine and run lsusb nothing shows for the unit. I have considered buying or making a USB-A to USB-A cable to connect my computer to one of the back USB ports, but I'm concerned about how these back USB ports are designed. Is it as simple as a built-in OTG cable? If so I'm probably fine. If it is more like a computer's USB port I could damage my laptop, my headunit, or both. I'd really like to hear if anyone else has had to deal with this. Unfortunately I haven't verified if the front USB will charge a phone. This is my next step.
dutchhome said:
I'm not able to get to the bootloader screen because the front usb port is not functioning on my unit. Has anyone been able to use one of the USB ports on the back to get to ADB and/or get to the bootloader? Is this a known issue with a workaround? I've done quite a bit of searching and have not turned up any solutions. Considering what is involved in shipping this back, I'd much rather figure something out. Thanks in advance for any help!
Edit: I should mention that I have used the adbon password and it does acknowledge that adb has been enabled. Just nothing seems to work on the front port. When I connect my Linux machine and run lsusb nothing shows for the unit. I have considered buying or making a USB-A to USB-A cable to connect my computer to one of the back USB ports, but I'm concerned about how these back USB ports are designed. Is it as simple as a built-in OTG cable? If so I'm probably fine. If it is more like a computer's USB port I could damage my laptop, my headunit, or both. I'd really like to hear if anyone else has had to deal with this. Unfortunately I haven't verified if the front USB will charge a phone. This is my next step.
Click to expand...
Click to collapse
My front USB also doesn't work. I even got mini to standard USB cable with unit, but plugging flash drive into it doesn't produce any reslt.
I also plugged extension cable to one of back USB ports and tried it (plugibg same USB flash) but it doesn't work either.
So I'm also confused.
Does that mean you are still running the stock ROM? I have been hesitant to install the custom ROM because they say you must be able to get into the bootloader even though I couldn't find a step in the process that required it.
Regarding the USB ports not working at all, you may find that you need to use a powered USB hub. I've seen reports of USB devices acting up due to the low power. This is one of the reasons I thought it might be safe to use the rear ports with my computer. (My first real test is going to be mangling a male-to-male USB cable so only the data lines are connected to see if I can get those rear USB ports to talk to the computer. I figure that way there is no chance of frying any circuits.. Each side already has its own power and I don't believe any signaling is sent via the power pins.)
On my unit (MTCB-KGL-V2.80), I have used a T-Mobile USB broadband modem successfully on the rear port, so I know rear ports are live. I did take it apart to see if something was obviously wrong with the front port, but nothing jumped out at me.
So I have a bit more information on my headunit. BTW, I have the BMW E46 model with MCU MTCB-KGL-V2.80.
On my system, both the front USB port and the rear 3G USB port are wired as device ports connected to an AU6258 USB controller (http://www.sunnyqi.com/upLoad/product/month_1403/201403162331285643.pdf). I don't remember exactly which USB ports they are connected to, but I believe the 3G port is connected to port 2 (pins 6 & 7) and the front USB port is connected to either ports 3 or 4 (pins 9 & 10 or 11 & 12 respectively). Nothing is connected to port 1 or to the upstream port. The other rear USB port is wired directly to the MTC_RK3188 board.
All three ports are wired with only four pins, so I'm concerned that none of them could work with the computer. The USB controller doesn't have USB ID pins, so does that mean that the 4 downstream ports are OTG and the upstream port is for a computer? Unfortunately I don't know the hardware side.
dutchhome said:
Does that mean you are still running the stock ROM? I have been hesitant to install the custom ROM because they say you must be able to get into the bootloader even though I couldn't find a step in the process that required it.
Regarding the USB ports not working at all, you may find that you need to use a powered USB hub. I've seen reports of USB devices acting up due to the low power. This is one of the reasons I thought it might be safe to use the rear ports with my computer. (My first real test is going to be mangling a male-to-male USB cable so only the data lines are connected to see if I can get those rear USB ports to talk to the computer. I figure that way there is no chance of frying any circuits.. Each side already has its own power and I don't believe any signaling is sent via the power pins.)
On my unit (MTCB-KGL-V2.80), I have used a T-Mobile USB broadband modem successfully on the rear port, so I know rear ports are live. I did take it apart to see if something was obviously wrong with the front port, but nothing jumped out at me.
Click to expand...
Click to collapse
No I flashed Malaysk ROM from GPS SD card. No problems. Just follow instruction. I had luck that I didn't need to recover from USB.
Did you tried with USB powered hub? I don't have one to try it myself.
RK3188 1024x600 front USB not working confirmed
pa.ko said:
My front USB also doesn't work. I even got mini to standard USB cable with unit, but plugging flash drive into it doesn't produce any reslt.
I also plugged extension cable to one of back USB ports and tried it (plugibg same USB flash) but it doesn't work either.
So I'm also confused.
Click to expand...
Click to collapse
I checked on my Linux workstation with
Code:
lsusb |wc -l
plugging and unplugging all three USB cables and the number did not change. BTW where did you use the "adbon" command? The only place that I could even try was at Settings > Factory Settings. Regards Flint

Categories

Resources