[Q] UART Access - T-Mobile LG G2x

[Posting in correct forum]
I was wondering if I can use the same headphone hack on the G2X to access UART as was published for the Atrix?
Furthermore, is it the same USB pinout to access NVFlash?
Thanks!

smp_ said:
[Posting in correct forum]
I was wondering if I can use the same headphone hack on the G2X to access UART as was published for the Atrix?
Furthermore, is it the same USB pinout to access NVFlash?
Thanks!
Click to expand...
Click to collapse
For your first question, no way to know but to try I don't see that it SHOULD cause any harm (but it's still at your own risk ).
For the second question, I don't see that it's relevant. We have a working NVFlash utility. Am I missing something else that you're wanting?

MWBehr said:
For your first question, no way to know but to try I don't see that it SHOULD cause any harm (but it's still at your own risk ).
For the second question, I don't see that it's relevant. We have a working NVFlash utility. Am I missing something else that you're wanting?
Click to expand...
Click to collapse
Thanks for the answers!
I actually don't have a G2X right now. I am looking to buy one, but only if I can get early UART messages since I plan on heavily modifying the kernel to the point where it will fail early in the beginning. Is there any other way to get early kernel messages from the device other than UART?
So NVFlash will work with just a regular micro USB cable? If that's the case, I'm happy

You can find the P999 (G2x) Service Manual at this thread:
http://forum.xda-developers.com/showthread.php?t=1037120
There is a system block diagram on page 37 that shows UART at the USB. It appears that the UART goes to the Qualcomm chip and not directly to the CPU, but I don't know if that's fine or not.
Page 257 tells us the MicroUSB IC is:
MAX14526DEEWP MUIC , ; , IC, Analog Multiplexer CSP
R/TP 20P MAXIM INTEGRATED PRODUCTS INC.
Click to expand...
Click to collapse
So if you can find information on that chip you can get to its UART.

xBIGREDDx said:
You can find the P999 (G2x) Service Manual at this thread:
http://forum.xda-developers.com/showthread.php?t=1037120
There is a system block diagram on page 37 that shows UART at the USB. It appears that the UART goes to the Qualcomm chip and not directly to the CPU, but I don't know if that's fine or not.
Page 257 tells us the MicroUSB IC is:
So if you can find information on that chip you can get to its UART.
Click to expand...
Click to collapse
Thanks for the info, this is very helpful! I will dig more and post my results.

smp_ said:
Thanks for the answers!
I actually don't have a G2X right now. I am looking to buy one, but only if I can get early UART messages since I plan on heavily modifying the kernel to the point where it will fail early in the beginning. Is there any other way to get early kernel messages from the device other than UART?
So NVFlash will work with just a regular micro USB cable? If that's the case, I'm happy
Click to expand...
Click to collapse
For that I would ask faux123, morfic, or krylon. They probably have the most kernel development experience for the G2x right now (aside from TeamDouche anyway )
Edit: Missed the second half. Yup, nvflash works with stock USB cables. It's used commonly to directly flash the custom CWM recovery bootloader rather than use the update.zip method.

xBIGREDDx said:
You can find the P999 (G2x) Service Manual at this thread:
http://forum.xda-developers.com/showthread.php?t=1037120
There is a system block diagram on page 37 that shows UART at the USB. It appears that the UART goes to the Qualcomm chip and not directly to the CPU, but I don't know if that's fine or not.
Page 257 tells us the MicroUSB IC is:
So if you can find information on that chip you can get to its UART.
Click to expand...
Click to collapse
I looked through the service manual, thanks for the pointer! I couldn't find a datasheet for the MAX14526DEEWP, but I found the driver code in the kernel source published by LG.
It looks like writing '6' to /proc/driver/hmuic will turn on UART debugging through the USB port on the device. I'm still not sure what the pinout is for RX/TX, that'll require some further digging. Reference: kernel/drivers/star/star_muic.c:585
There's one more piece that I'm unsure of. It's the DP3T switch listed on page 181 of the service manual. I think MDM_UART_SW needs to be 0 and AP20_UART_SW needs to be 1 to pass the UART data from the processor to the MUIC. The AP20 GPIO is exposed in the code as STAR_AP20_UART_SW in kernel/arch/arm/mach-tegra/include/star_pinmux_definition.h
So, in theory, if I initialize the AP20_UART_SW GPIO correctly, and initialize the MUIC driver to "developer" mode early enough, I should get serial output directly from the Tegra

It appears, based on the news in this thread, that the headphone jack also does have some sort of data connection happening.

xBIGREDDx said:
It appears, based on the news in this thread, that the headphone jack also does have some sort of data connection happening.
Click to expand...
Click to collapse
Hmm, yes it does. I'm guessing it's not UART, but rather some protocol they've defined and are using the mic input to transmit data to their app.

Related

[Q]3G wifi card replacement. Hardware modification?

did anybody replace the wifi card with 3G or even 3G+GPS model? please post the guide.
WiFi for the gTablet is a chip soldered to the mainboard, not a plug-in card, therefore not easily replaced.
But you can add a 3G card (mini PCI-E) if you add a connector (and maybe some other stuff). There is a thread on "hardware replacement (with pics)" that talks more about this.
thank you for your reply. i just read that thread and realize there is no connector on our board. it is too hard to solder that connector on.
ketty_yijun said:
thank you for your reply. i just read that thread and realize there is no connector on our board. it is too hard to solder that connector on.
Click to expand...
Click to collapse
Solder connector is actually easy, what is not easy it is to add all other necessary components for connector to work....
you don't need to add all components. go get a 3g network card from http://cgi.ebay.com/Ericsson-F3307-...ultDomain_0&hash=item230b570b8d#ht_3087wt_905 and ask pershoot to compile a 3g support kernel for you.
ketty_yijun said:
you don't need to add all components. go get a 3g network card from http://cgi.ebay.com/Ericsson-F3307-...ultDomain_0&hash=item230b570b8d#ht_3087wt_905 and ask pershoot to compile a 3g support kernel for you.
Click to expand...
Click to collapse
Where would one plug such a card into the gTablet?
How about a USB 3g
Sent from my GTablet-TnT-Lite using Tapatalk
SRTDOC said:
How about a USB 3g
Click to expand...
Click to collapse
Not working yet on G-Tab, IIRC.
Maybe somebody did take a driver for the modem 3g-of ZT-180 for our g-tablet? (sorry my english)
ketty_yijun said:
you don't need to add all components. go get a 3g network card from http://cgi.ebay.com/Ericsson-F3307-...ultDomain_0&hash=item230b570b8d#ht_3087wt_905 and ask pershoot to compile a 3g support kernel for you.
Click to expand...
Click to collapse
I don't think its as simple as that. In addition to compiling new kernel support, you would need to solder a mini pci-express connector onto the system board, and then find some way to connect a sim card reader to it. The *easiest* way to get 3G support is through a usb modem, but I don't think anyone has found one that works yet (probably because of lack of support within the kernel).

[Q] 3G dongle (e160e) Xoom Wifi ICS4.0.3

Hi
I've had a single sitting around for awhile and I've learnt that you can get a xoom to use this via a USB cable, I've found support for it on honeycomb but nothing about ics yet, is it too early.
Anyone know of any topics for this.
Thanks
gmonkeyuk said:
Hi
I've had a single sitting around for awhile and I've learnt that you can get a xoom to use this via a USB cable, I've found support for it on honeycomb but nothing about ics yet, is it too early.
Anyone know of any topics for this.
Thanks
Click to expand...
Click to collapse
Provide specific details on make, model, and chipset. Then I can compile a driver.
bigrushdog said:
Provide specific details on make, model, and chipset. Then I can compile a driver.
Click to expand...
Click to collapse
UK Wifi mZ604 wingray, Nightly build 54 Timat kernel 3.0.4 ICS 4.0.3
If need more info just ask. Thanks
bigrushdog said:
Provide specific details on make, model, and chipset. Then I can compile a driver.
Click to expand...
Click to collapse
BRD, is the requisite driver (option/sierra) all that's necessary to use one of those to get on-line? Are there any user-space (Android/Framework) changes necessary as well?
kcrudup said:
BRD, is the requisite driver (option/sierra) all that's necessary to use one of those to get on-line? Are there any user-space (Android/Framework) changes necessary as well?
Click to expand...
Click to collapse
I've never played with one, so I'm only going off what Ive read. Should be the same as the Ethernet dongles. Create the interface, register with dhcp if need be, etc. However, there is user-space work that needs to be done for all of these interface mods. Most people report limited functionality as many apps don't "see" the interface. So I believe there are some extra unknown steps. I'm gonna start a fresh thread on this topic because it seems to be a popular concept. I'll holla
bigrushdog said:
Should be the same as the Ethernet dongles. ... Most people report limited functionality as many apps don't "see" the interface. ...
Click to expand...
Click to collapse
I'm gonna bet that's even just as simple as using an "iface=" parameter on the command line (or fixing it up in code).
I'm gonna start a fresh thread on this topic because it seems to be a popular concept. I'll holla
Click to expand...
Click to collapse
Yeah- 'cause as we've discussed in private, what I'd like to be able to do is replace my internal LTE Mini-PCI modem with one of the HSDPA+ Mini-PCI modems I've got lying around, so when I travel overseas I can use my Xoom with native GSM 3G data.

USB Fast Charge

Hello all,
I'm developing an industrial application using the Galaxy Camera: basically, the camera is connected to a PC through an USB cable, and is used as a remotely controlled picture camera.
What I have to do is control the camera from the PC, play live preview on the PC and take pictures.
I developed a server application on the camera side which communicates, through several sockets and ports with the PC over the USB, with the help of the ADB program.
On the PC side a C# client plays the live preview, control the camera and takes the nedeed pictures.
Using Android APIs and camera parameters I'm able to control everything I need on the camera.
However, I'm facing a big problem now: while the camera is running, connected to the PC and streaming live preview to it, the camera power consumption is so high I cannot hold the battery charger (the conversion process from raw preview to Jpeg -YuvImage.CompressToJpg- is really CPU loading, and the USB current is too low); so, every time, after few hours, I end up with a discharged battery.
This is not acceptable, cause my customers will use the camera for continuous working flow, even for several days.
The problem is that when the Camera is connected to an USB plug the charging current is automatically limited, to avoid to overload the computer USB port.
There's a way to force the charging process to use high current even with an USB connection to a PC (simulating AC charge), but doing so USB communication will be lost, interrupting the communication between the camera and the PC.
In other word, if you want a USB connection to a PC, you'll have a low charging current; if you want an high charging current, you loose the USB connectivity!
This is not an hardware problem, but a Kernel limitation (as far as I've understood).
So, my question is: would it be possible to modify the Kernel in manner to add the possibility to charge the camera as fast as wee can (AC charge), while mantaining USB communication?
How? Where?
I read many and many post on various forums, but I didn't undertand it could be done or not, and how.
I'm running Android 4.1.2, Kernel version 3.0.31 - 751817 (if this could be useful).
Please help me!
Thank you in advance.
Regards,
Giovanni
I think this can be changed in the Kernel settings.
Maybe it helps to ask Andip:
http://forum.xda-developers.com/showthread.php?t=1964572
gronph said:
I think this can be changed in the Kernel settings.
Maybe it helps to ask Andip:
http://forum.xda-developers.com/showthread.php?t=1964572
Click to expand...
Click to collapse
It requires changes to the kernel to support the setting, but if going to the SIII forum, asking a developer how to add it, getting the source, adding it in, and compiling makes more sense than checking out our own kernel thread and just saying "can that be next?", then by all means...
Sent from my EK-GC110 using Tapatalk 4
twistedumbrella said:
It requires changes to the kernel to support the setting, but if going to the SIII forum, asking a developer how to add it, getting the source, adding it in, and compiling makes more sense than checking out our own kernel thread and just saying "can that be next?", then by all means...
Sent from my EK-GC110 using Tapatalk 4
Click to expand...
Click to collapse
Thank you for your answer, but, due to the fact English is not my native language, your statement is not completely clear to me.
Are you suggesting me to log into the Galaxy Camera Kernel thread (where is it? I can't find it) and ask for a new feature?
Is there any programmer that is working on the Kernel?
Please address me to any useful link, please.
Ciao,
Giovanni
croccodillo said:
Thank you for your answer, but, due to the fact English is not my native language, your statement is not completely clear to me.
Are you suggesting me to log into the Galaxy Camera Kernel thread (where is it? I can't find it) and ask for a new feature?
Is there any programmer that is working on the Kernel?
Please address me to any useful link, please.
Ciao,
Giovanni
Click to expand...
Click to collapse
Most of that was not directed at you. I didn't see a purpose in sending someone to the SIII when we do have a custom kernel here. I will be adding fast charge to it shortly.
http://forum.xda-developers.com/showpost.php?p=44040889
croccodillo said:
Thank you for your answer, but, due to the fact English is not my native language, your statement is not completely clear to me.
Are you suggesting me to log into the Galaxy Camera Kernel thread (where is it? I can't find it) and ask for a new feature?
Is there any programmer that is working on the Kernel?
Please address me to any useful link, please.
Ciao,
Giovanni
Click to expand...
Click to collapse
Here you are the Adam Kernel sources (for GT-I9300), wich has usb fast charge feature. You can build your kernel simply merging the right code from this source to your own galaxy camera source, since the two devices have the same chipset.
https://github.com/wanam/Adam-Kernel-GS3
Correct me if I'm wrong
I think I see why this forum saw so little traffic before. Each thread is an island, forced to fend for itself with only the SIII to assist it.
Delux9364 said:
Here you are the Adam Kernel sources (for GT-I9300), wich has usb fast charge feature. You can build your kernel simply merging the right code from this source to your own galaxy camera source, since the two devices have the same chipset.
https://github.com/wanam/Adam-Kernel-GS3
Correct me if I'm wrong
Click to expand...
Click to collapse
Doesn't include it as anything that can be extracted.
twistedumbrella said:
Doesn't include it as anything that can be extracted.
Click to expand...
Click to collapse
what do u mean?
Delux9364 said:
what do u mean?
Click to expand...
Click to collapse
A commit, a comment, a function with a name that indicates that is what it does.
From everything i've seen the fast charge patch was only made for msm and omap kernels. This one may require going about it differently.
Sent from my Galaxy Nexus using Tapatalk 2
twistedumbrella said:
A commit, a comment, a function with a name that indicates that is what it does.
From everything i've seen the fast charge patch was only made for msm and omap kernels. This one may require going about it differently.
Sent from my Galaxy Nexus using Tapatalk 2
Click to expand...
Click to collapse
what about Siyah Kernel for i9300?
Delux9364 said:
what about Siyah Kernel for i9300?
Click to expand...
Click to collapse
Strike two...
twistedumbrella said:
Strike two...
Click to expand...
Click to collapse
Please be more clear when you write something, as many of ours don't speak English as current language.
Again: what do you mean?
Delux9364 said:
Please be more clear when you write something, as many of ours don't speak English as current language.
Again: what do you mean?
Click to expand...
Click to collapse
Do you have baseball where you are from?
https://www.google.com/#q=strike+two
First search result:
http://idioms.thefreedictionary.com/two+strikes+against
Google is your friend.
This device forum is not large like the others, so being lazy does not help what little development we have going here.

[Q] Is this phone support USB OTG/HOST

As the title said, is this phone support it?
this is the only feature i'm waiting to decide if i'll buy this
grimmyrippy said:
As the title said, is this phone support it?
this is the only feature i'm waiting to decide if i'll buy this
Click to expand...
Click to collapse
LG has resolved the power issue, so it should. Recall that the N4 was released as USB OTG, but had to be backtracked when it was discovered there was no power. Fortunately,,cable and kernel tweaks by devs worked around the issue.
wideasleep1 said:
LG has resolved the power issue, so it should. Recall that the N4 was released as USB OTG, but had to be backtracked when it was discovered there was no power. Fortunately,,cable and kernel tweaks by devs worked around the issue.
Click to expand...
Click to collapse
YAAAAY!!!
Looks like it should from the various log file leaks etc. My main reservation will be the ability to get ethernet working OTG like with the N7. Got this working with my Note2 after building the kernel modules myself - hopefully the N5 will be precompiled, or easy to create too.
Most Android phones at the moment support it so it would be weird if the N5 didn't support it
ehcool said:
Most Android phones at the moment support it so it would be weird if the N5 didn't support it
Click to expand...
Click to collapse
maybe for making it cheap xD
If the service manual that was leaked is accurate, the hardware will support USB OTG. There are a bunch of references in the manual (the Qualcomm power management IC has a VOUT_5VS_OTG output, a block diagram for the charging/USB area shows +5V0_OTG_OVP (over voltage protection), and there is a OTG enable line listed (OTG_EN)).
I didn't realize the N4 didn't support OTG (without a bit of a work around) until I came across this thread and did some reading about it.
Matt
mtucker said:
If the service manual that was leaked is accurate, the hardware will support USB OTG. There are a bunch of references in the manual (the Qualcomm power management IC has a VOUT_5VS_OTG output, a block diagram for the charging/USB area shows +5V0_OTG_OVP (over voltage protection), and there is a OTG enable line listed (OTG_EN)).
I didn't realize the N4 didn't support OTG (without a bit of a work around) until I came across this thread and did some reading about it.
Matt
Click to expand...
Click to collapse
this weekend i will order this:good::good::good::good::good::fingers-crossed::fingers-crossed::fingers-crossed:
http://www.meenova.com/
danmaman said:
this weekend i will order this:good::good::good::good::good::fingers-crossed::fingers-crossed::fingers-crossed:
http://www.meenova.com/
Click to expand...
Click to collapse
That is a nifty device. I was going to sell my 64GB uSD card with my Note2 after I get the Nexus 5, but maybe I will hang on to it and get one those uSD adapters. It would be much easier to carry that uSD adapter with a 64GB card inside instead of an OTG cable and a thumb drive.
Matt
If the N5 is even loosely based on the LG G2 it will have USB OTG host. My G2 natively mounts mass storage devices via USB OTG.
Does any one have a link to a mirror of the N5 service manual?
Sent from my VS980 4G using xda app-developers app
ElecEngineer1422 said:
.........Does any one have a link to a mirror of the N5 service manual?
Click to expand...
Click to collapse
I had a hard time finding it, but eventually I Googled lg-D821.pdf and found this...... ironically stored on Google Docs. You will get a warning about the file being too big for Google to virus check it. I went for it and it is the manual.
https://docs.google.com/file/d/0B7VNhP6LbXNmdl9wZG1OSTBnVUE/edit?usp=sharing
mtucker said:
I had a hard time finding it, but eventually I Googled lg-D821.pdf and found this...... ironically stored on Google Docs. You will get a warning about the file being too big for Google to virus check it. I went for it and it is the manual.
https://docs.google.com/file/d/0B7VNhP6LbXNmdl9wZG1OSTBnVUE/edit?usp=sharing
Click to expand...
Click to collapse
Nice! Thanks for this!

[Q] Building a serial UART cable for I9300 / which voltage

I'm trying to build an UART/USB-Cable for my I9300
I found conflicting information about the voltage. Some sorces say to use an converter with 3,3V others 5V. Can anybody tell me what's correct?
Any additional links to information about UART/Serial console/which USB Controller in I9300 would be greatly appreciated. Useful information is very rare on this topic.
reinsn said:
I'm trying to build an UART/USB-Cable for my I9300
I found conflicting information about the voltage. Some sorces say to use an converter with 3,3V others 5V. Can anybody tell me what's correct?
Any additional links to information about UART/Serial console/which USB Controller in I9300 would be greatly appreciated. Useful information is very rare on this topic.
Click to expand...
Click to collapse
Why don't you use something like this? http://www.ebay.com/itm/FT232-USB-U...488?pt=LH_DefaultDomain_0&hash=item3a7b2522d8
FTDI even has an android app for its products https://play.google.com/store/apps/details?id=com.ftdi.j2xx.hyperterm
It worked fine on Galaxy S2.
This is what i want to use, but it supports TTL levels 3,3 and 5V. Which are you using for your SGS2?
reinsn said:
This is what i want to use, but it supports TTL levels 3,3 and 5V. Which are you using for your SGS2?
Click to expand...
Click to collapse
I'm assuming it was 3.3V. I used it for flashing a bootloader of a router using a computer. But it worked on Android too, no custom kernel was required.
---------- Post added at 12:40 AM ---------- Previous post was at 12:38 AM ----------
reinsn said:
This is what i want to use, but it supports TTL levels 3,3 and 5V. Which are you using for your SGS2?
Click to expand...
Click to collapse
Buy something like this one, it supports both http://www.ebay.com/itm/3-3V-5-5V-F...er-Module-for-Arduino-Mini-Port-/380717046158
Sorry you misunderstood me. I don't want to interface a serial console from my i9300. I want to interface the i9300 itself.
Anyway I'll order a controller which supports both 3,3V and 5V TTL levels. If I find out by myself I'll post the solution here.
If anybody knows by experience the answer would still be appreciated
Hi reinsn!
reinsn said:
Sorry you misunderstood me. I don't want to interface a serial console from my i9300. I want to interface the i9300 itself.
Anyway I'll order a controller which supports both 3,3V and 5V TTL levels. If I find out by myself I'll post the solution here.
If anybody knows by experience the answer would still be appreciated
Click to expand...
Click to collapse
You're correct there's not much related to GT-I9300 but you may find information about some of the older devices.
Anyway, the signals are handled by MAX77693 chip on the mainboard.
By using the correct resistor at the ID pin, the data lines of MAX77693 switch to UART mode.
There's an internal multiplexer for that.
As these lines transfer USB data as well, these I/Os should be 5V tolerant, but i guess they are set to 3.3V output voltage in this mode.
A standard FTDI UART should do the job...
For further information see this technical thread:
http://forum.xda-developers.com/showthread.php?t=1629359
P.S.: Internally all I/O to the Exynos use 1.8V level
Regards,
scholbert
scholbert said:
Hi reinsn!
You're correct there's not much related to GT-I9300 but you may find information about some of the older devices.
Anyway, the signals are handled by MAX77693 chip on the mainboard.
By using the correct resistor at the ID pin, the data lines of MAX77693 switch to UART mode.
There's an internal multiplexer for that.
As these lines transfer USB data as well, these I/Os should be 5V tolerant, but i guess they are set to 3.3V output voltage in this mode.
A standard FTDI UART should do the job...
For further information see this technical thread:
http://forum.xda-developers.com/showthread.php?t=1629359
P.S.: Internally all I/O to the Exynos use 1.8V level
Regards,
scholbert
Click to expand...
Click to collapse
Thank you for your information. I already found the infos I was searching for and made a guide: http://forum.xda-developers.com/galaxy-s3/general/info-i9300-uart-guide-how-to-talk-to-t2928854.
The TTL levels on UARTs serial line are 3,3V.
reinsn said:
Thank you for your information. I already found the infos I was searching for and made a guide: http://forum.xda-developers.com/galaxy-s3/general/info-i9300-uart-guide-how-to-talk-to-t2928854.
The TTL levels on UARTs serial line are 3,3V.
Click to expand...
Click to collapse
I have had the access to AT commands of N7100 without a converter http://cetinkayasinan.blogspot.com.tr/2013/07/samsung-galaxy-note2-n7100-at-hayes.html
In that guide, why do you need an USB to Serial Converter?
I read about a more privileged instruction set available when using UART, but was not yet able to see any difference. Only difference I noticed UART-connection is stable and USB modem connection breaks when screen goes off.

Categories

Resources