[Q] serial port - Touch CDMA Android Development

I was wondering if anyone has had luck compiling the kernel to support. I was thinking about doing this so so I could connect some serial devices to my phone, but I just wanted to see if anyone all ready has yet.

drock3260 said:
I was wondering if anyone has had luck compiling the kernel to support. I was thinking about doing this so so I could connect some serial devices to my phone, but I just wanted to see if anyone all ready has yet.
Click to expand...
Click to collapse
are you talking about usb host mode or something else? this is chipset support but no drivers for usb host.

most htc devices actually can run a serial mode where the data +- for the usb can be run as txd/rxd. You have to recompile the kernel with usb disabled and serial support enabled, but then you can connect serial devices that run at 3.3volts. I downloaded the serial app and it shows a hardware port on the vogue so I just assumed it supported this, but I could be wrong.

drock3260 said:
most htc devices actually can run a serial mode where the data +- for the usb can be run as txd/rxd. You have to recompile the kernel with usb disabled and serial support enabled, but then you can connect serial devices that run at 3.3volts. I downloaded the serial app and it shows a hardware port on the vogue so I just assumed it supported this, but I could be wrong.
Click to expand...
Click to collapse
i guess that figures - when you go into bootloader it starts in serial mode... haven't really looked into this. Have you looked at the kernel git?
http://androidhtc.git.sourceforge.net/git/gitweb.cgi?p=androidhtc/kernel.git;a=shortlog;h=refs/heads/htc-vogue-2.6.32

no I have not, but that seems like a good place to start. Thanks
edit: looks like most things are for bluetooth serial connections
edit2: looks like the kernel was built the way it should have been, but it only shows ttymsm0 which i think is for the bluetooth

Related

RS 232 / Serial

Hi,
I allways believed there is no RS232 on HTC Devices. Today I found something that confuses me:
http://bestcelldist.com/htc_tytn_ii_serial_data_cable.html
and this:
http://www.ppc-phones.de/index.php?site=ppcphones/htc_p4550.htm
is this Real? - where can you buy such cables? anybody a Wiring diagramm?
As our Devices miss USB Hosts maybe this is a chance to attache some custom Hardware.
BR
Daniel
more confusion:
http://htc-tytn-ii.handster.com/software.php?id=3339&for=HTC+TyTN+II
I know it doesn't work? Or am I wrong?
DanielS said:
more confusion:
http://htc-tytn-ii.handster.com/software.php?id=3339&for=HTC+TyTN+II
I know it doesn't work? Or am I wrong?
Click to expand...
Click to collapse
Interesting. Anyone ever give it a try ?
They do have a free download available...
http://teksoftco.com/index.php?section=products&pid=18
I read the manual and they say: "To connect a USB device to your Pocket PC, your mobile device must have a USB Host connector. Not all Windows Mobile Devices have it."
Kaiser do not have USB host.
I also believe that you cannot draw power from USB. So this leaves BT mouse as only option.

Generic USB devices on HD2?

Assuming USB hub functionality is present on the HD2, does anyone know if standard USB devices (e.g.generic keyboards or standard USB memory sticks) could be used on HD2 without having to install special drivers?
I'd like to know this to!
And like the G02, can I use a gamepad on this baby?
Given that USB host isn't supported how do you expect the device to have the drivers for it?
According to various reviews I've seen, USB host is supported.
sent them a mail
hello, just a quick question regarding the new HTC HD2,
does is "support" USB host, i.e can I plug in ,say, a USB memory stick (Generic devices)?
best regards
Click to expand...
Click to collapse
lets see how fun the answer will be...
Well, there are no drivers for peripherals in the leaked ROMs, no official information, nothing that would really indicate USB host support. It may be enabled somehow via hacks, but that would certainly mean that drivers need to be installed separately.
got a reply from HTC today;
"It doesn't support"
thats a shame really, hoped it would have... no TV out and no usb host, that sucked
how would it work to extract the host drivers from another device?
Could they be used on the HD?
(I think not after what I have read, but it just might work)
may be you can try thoses drivers :
http://forum.xda-developers.com/showthread.php?t=480899
and some proper cabe because you may have to add a input power cable and see if it works and tell us

[Q] Modem / COM port Access on G1

Is there a way to get a G1 into a diagnostic mode so the Qualcomm modem will show up over USB to a PC. I've tried various USB HTC drivers, including ones which include COM port over USB drivers (namely sync/diagnostic stuff for the Hero) but haven't had any luck getting anything but ADB composite device to show up.
I'm sure I'm getting the drivers to install, as the composite device changes its name depending on where the USB/ADB driver came.
Is there something I am missing here?
Thanks
I'm not steady handed enough to try your ribbon cable approach, though I think for a total investment of about $12 with shipping I can have a full homebrew cable. Much cheaper than the suggested component parts are by themselves.
I will update if the following work, I'm going off of supposition here:
This should be sufficient for getting the ExtUSB connector. Great part in my opinion is it already has wires going to a break out box.
www_amazon_com/HTC-Multifunction-Adapter-T-Mobile-Shadow/dp/B001QD3MQE/ref=lh_ni_t_
For the 3.3v CMOS compliant serial cable, I'm going to try this:
www_amazon_com/Data-Cable-Nokia-3585-CA-42/dp/B000BI4HQY/ref=pd_cp_cps_1
(replace _ in www_amazon_com with .)
Thanks for getting me started down the right road Xsite_01.
I know serial interfacing with most HTC phones isn't a top priority with ADB/ActiveSync (and JTAG for the hardcore), but someone should get Xsite's links added to the Wiki.
Xsite_01 said:
Diagnostic mode is entered from blue led mode using htc extusb to serial cable.
Qualcomm modem will show but with serial cable not regular usb. Here is the link on how to build one. If you need info on how to build it from home parts click here to view my tutorial, or contact me.
You acces serial port using serial cable and putty. Also you can acces the phone using PSAS/QMAT, Link 1, Link 2 for how to do it. But be wery careful accesing this, some command might damage the phone. I suggest that you read more about it before atempting anything.
You should not atempt this with regular usb cable becouse you can send the phone in some boot mode that can only be accessed using serial cable and you will be stuck(until you build serial cable).
Click to expand...
Click to collapse
I would like to communicate with the HTC Dream (G1) using the (qualcomm) diagnostic mode. By this, I mean the one that the QPST/QXDM softwares are using to talk to the baseband (radio). As I understand, it is possible to build the serial to USB cable (using the ExtUSB adapter needed for the G1) to do so. I would really appreciate if someone could confirm that he tested that for this purpose. I tried to build one by myself (using your instructables tutorial, great by the way, thanks Xsite_01 !) but did not managed to use it in diagnostic mode (neither in other mode actually, I may have broken some part of the chips so I would need to double check what I did and/or rebuy components to try again. The procedure is not difficult by itself, it is just the soldering pins that are really small...).
What I tried is to go to fastboot mode (default bootloader mode for the G1), issue the "fastboot oem rtask c" command (using the HTC standard USB cable). The command never returns so I disconnected it and plugged the serial cable (the one I made) but I did not see any diagnostic mode.
To compare, I managed to use the diagnostic mode on the HTC Desire Z using the following procedure:
* issue the "fastboot oem rtask c". The command returns an error but it is ok, it is because it gave the handling of the USB content to AT interpreter of the baseband
* issue the AT$QCDMG command to the AT interpreter of the baseband. You now get the diagnostic mode.
If someone has some hints, don't hesitate. I will come back as soon as it is working...

[Q] USB Host

Hi!
I've been wondering if our device could act as an USB host. It would be good to experiment with that feature, adding new drivers to the kernel, and using external devices like a printer, or an usb drive. Is it possible?
I've read some forums, I've seen that on Motorola Droid and ZTE Blade, that they have attached an usb keyboard, or a usb flash drive. These devices did not have a power supply on the port, they solved it externally.
So, the big question is can we enable the host mode on the USB somehow?
I've heard this has to be supported by the processor, and as far as I know the MSM7227 does not support the USB-host function. :/
nutterbg said:
I've heard this has to be supported by the processor, and as far as I know the MSM7227 does not support the USB-host function. :/
Click to expand...
Click to collapse
I did some research on this, and found something interesting:
https://picasaweb.google.com/lh/photo/sEQxpLaNfqmYjQ0clvLM2Q?feat=directlink
I found this in the service manual of our phone So it's not impossible - the MSM7227 supports the host mode by hardware - the question is how do we get use of this?
zte blade has MSM7227 -> so if they got it workin ... maybe we can use their drivers?
that would be a great feature
smg72523889 said:
zte blade has MSM7227 -> so if they got it workin ... maybe we can use their drivers?
that would be a great feature
Click to expand...
Click to collapse
I've googled a little more on this, here's what I found :
USB keyboard+ZTE Blade: http://www.youtube.com/watch?v=B1ydScM0sXU
The guy's webpage, who made the custom kernel for USB Host mode to ZTE Blade and Nexus One - could be useful http://sven.killig.de/android/N1/2.2/usb_host/
And his kernel: https://github.com/sonic74/kernel_msm - the only problem is that this kernel is .35, i don't know if we could port the host drivers from that
If any devs are here, please help us
(I'd love the next SwiftDroid with usb host support)
Before I try looking into this, wtf is USB hosts. I'm gessing its different to Adb and mass storage by the looks of this conversation :/
lukemovement1 said:
Before I try looking into this, wtf is USB hosts. I'm gessing its different to Adb and mass storage by the looks of this conversation :/
Click to expand...
Click to collapse
USB host is the 'boss' device so to speak. It gives commands to its connected devices (USB Slaves) So, when your phone is connected to computer, the PC is Host where the phone is a slave. So using USB host on a phone/tablet, means you can connect a manner of devices such as keyboards, mice, flash drives and such. Hope that answers your question
any progress?
http://rumah-android.com/read-your-flashdisk-into-android-deviceusb-on-the-go.html any one try this and give us result.........
USB Host will come with platform 3.0+ ( for tablet )
So, you connect USB device to it.
If you want to control other device with Android platform below 3.0.
May use IOIO Board.
more detail
http://androidcontrol.blogspot.com/2011/10/ioio-board-for-android-control-io.html

[Q]Hardware bricked USB connector or just software prob?

Hello,
few days ago I've got my USB OTG cable. So, when I connected this OTG cable to my USB HUB through USB cable with 2 sides of type A port (pic here : http://www.cyfronika.com.pl/art93/kab120aa-l.jpg) to get power on HUB from USB port charger but nothing happened on phone with flash storage, any notifications or something. Then, when I wanted to transfer some files from my computer to sdcard. I've connected USB cable but Windows 7(32-bit) says that my device can be damaged or something (code 43). I've searched about this and found this http://pcsupport.about.com/od/errorc/a/code-43-error.htm . I've used http://forum.xda-developers.com/showthread.php?p=21503469 for setting up the OTG and for kernel too.
Well, I've followed this tutorial but the error still appears. Tried on 3 computers with different cables and different USB ports.
So just tell me if it's software problem or I must do something with this.
LOGCAT : http://pastebin.com/gbqqDxay
LOGCAT_radio : http://pastebin.com/H4dU9JWX
dmesg : http://pastebin.com/tkicx7xb
Logs has been taken after USB cable connecting.
Thanks
(bump) can anyone help me?
(bump again)
(bumpin' like a crazy) Please, anyone have solution for this problem?
So the general idea is, you're trying to let your phone connect to other hardware while the phone is the host, right?
Now you're trying to connect your computer to your phone again normally and it's not working? (normal usb cable)
For one, there are a bunch of errors in the log you posted, thinks like
Code:
W/PackageManager( 353): Unknown permission android.permission.ACCESS_SUPERUSER in package hu.sztupy.android.usbhostcontroller
That might be a problem, I don't know. Perhaps you're better off asking the dev of this mod about these errors. Maybe there's something you forgot or wasn't mentioned in your guide that causes these?
Have you also considered the possibility your phone is now *always* trying to be the host (which is not going to be something a pc likes)? You're saying you can't properly connect with your pc any more, but can you connect with another device (usb stick for example)?
Marshian said:
So the general idea is, you're trying to let your phone connect to other hardware while the phone is the host, right?
Click to expand...
Click to collapse
Yes, It was the general idea when I've bought OTG cable.
Marshian said:
Now you're trying to connect your computer to your phone again normally and it's not working? (normal usb cable)
Click to expand...
Click to collapse
Yes, tried with 2 Nokia cables and one stock from Samsung. Windows is always showing code 43 ;/
Marshian said:
That might be a problem, I don't know. Perhaps you're better off asking the dev of this mod about these errors. Maybe there's something you forgot or wasn't mentioned in your guide that causes these?
Click to expand...
Click to collapse
Well, I'll try to contact with @sztupy (http://forum.xda-developers.com/showthread.php?t=1468531). Anyways I think I haven't forgotten what I wanted to write.
Mashian said:
Have you also considered the possibility your phone is now *always* trying to be the host (which is not going to be something a pc likes)? You're saying you can't properly connect with your pc any more, but can you connect with another device (usb stick for example)?
Click to expand...
Click to collapse
I've set default settings for USB Host Controller app. But no, I can't connect another device. I'm in half way to download Linux, maybe on it everything will be working properly.
Anyway thanks for your reply, let's see if it will be working on Linux ;f
//EDIT : Same problem on Linux. Device is not recognized.
(bump) Any ideas?
(bump)
ADDED MORE LOGS.

Categories

Resources