[Q] USB OTG and charge - ONE Q&A, Help & Troubleshooting

I am aware that there are threads about doing this with a 100k resistor or a 36k resistor on the ID pin. However, this requires kernel support for such a cable. Would it be possible to compile a kernel with support for this for the OPO? If a kernel dev sees this, I would be willing to help write it and/or guinea pig it for you, I do have some java / C++ experience, but none with android kernels.

I've the same issue.
For my Nexus 7 (Tilapia) there is an special build based on CM10, for other devices it seems to be working with an Y-adapter.
So I'm a little confused, it is more than only switching PIN4+5 with an 100k or 38.k resistance. Due to the USB specification it should work, others say that it is only an recommendation. In the end it depends if that option is implemented in the hardware, wright?
Can anybody give some more detailed information about that? That would be great..
Back to my device: What I will do is to compile my own ROM with modification of the USB. Until now I compiled the AOSP-source, flashed my device with all vendor drives in it (and the device is working as well ). Also I can do changes with Eclipse,
It there a link or a tip, where and what to change in the AOSP-source? I'll be totally satisfied with a very simple solution e.g. that the USB controller is switched to the 'being charged'-Mode all the time (unindependend of host/client mode)
Can somebody help / give tips / links or also book / tutorials to me?
Thanks in advanced!

Related

[Q] How to communicate with custom made hw board?

Hi Xda developers,
I might get involved in project during internship, where they want me to find way how to connect android device to custom made proprietary radio transmitter-receiver board without bluetooth or wifi, so it has to be direct wired connection.
This radio transmitter-receiver board has its own microchips and firmware so all low level work and functions will be done in this board alone.
Does anyone has idea how this could be done? is it possible to write some drivers (probably C) to communicate with this board over micro usb port present in all android devices? And than how could be data received over radio used in basic java-android application installed on device? (could this be done with use of a binary/text file as a link between these two programs?)
Thanks in advance
If nobody knows or has time to answer my questions, please give me some tips where to start searching for answers (websites, books, magazines .... )
Is it essential to learn Linux architecture properly before modifying anything in android?

[DEV][KERNEL][3.1] --- Linux 3.1 mainline kernel

Hello people,
after some conversation with early ICS-on the transformer developer paulburton, I have a git repository of a mostly working linux 3.1 mainline kernel with some patches from paulburton to make it actually work.
Icluded are (as of now) :
improved atmel mXT1386 touchscreen driver
tegra_v4l2 camera driver
ov5640 soc camera driver
prox_lds6202 proximity sensor driver
fm34-500 voice processor driver
asusec keyboard driver (for dock)
al3000a ambient light driver
The purpose of this is not to port things back from some linux 3.X kernel to our 2.X kernel, but to have a fully working 3.X source tree some day, from which we could port to further linux versions in the future. This can also be helpful if we want to port android 5.X in the future.
The github is at https://github.com/skirata/linux/tree/android-tegra-tf101-3.1 .
(It's my github, if someone wants to become a collaborator, please let me know, I'll add you to the collab list.
WE NEED EVERY DEVELOPER WE CAN GET.
I will spend some time on this, but I think I can hardly finish this project on my own.
Totally support this, looks promising!
Thanks for the initiative.
Are you and guever working on this together? I can test and maybe help make aokp or megatron versions.
Sent from my Transformer TF101 using Tapatalk 2
Of course I'm willing to work, you know I've helped all I could.
My kernel has much of the code updated to 3.1, so may be we can use much of it.
This can be done in two ways, by modifying the code in paul whatever it takes, or modify mine. I have nothing clear which will be easier, because over time I have made ​​several test on my code and unfortunately, when the kernel does not boot can not be debugged, so you have to turn back.
Until wednesday I will not be able to devote almost no time, so I think the first thing would be to check the operation of the kernel of paul (if not already done) with a current rom.
It is possible that the graphics drivers (most are binary system level) may not work with that kernel.
Well, it is what I think, that first we must see is what should be changed in the kernel to function properly (or whether to change the rom).
Teamwork is how it's meant to be done.!
I will setup a working kernel konfig in the next days to push this a little forward.
at Guevor :
I'm adding you in as a collaborator so we can work together on this.
Let's improve paulburton's drivers and add new ones based on latest nvidia images.
The advantage of upstream-porting rather than downstream-porting is we can port future kernel versions more easily with own written drivers.
Also, android 5.X porting will be a lot easier, as I think it won't support 2.6.X kernels at that time. And even if it would, we can have a massive performance boost if using 3.1 mainline kernel with improvements all over the world.
Glad to count you in, guevor.
I owe you so much already.
EDIT : Just in case, be sure to use the 3.1 branch of the linux repository, as the master branch is forked from torvalds (linux 3.4.X) and will get some love when we get the 3.1 kernel to work as good as we are satisfied.
Well, the main problem I see, thinking about future versions (5.x) is that we do not have the source code for video drivers, only a small part that exists in the kernel. This added to the fact that nvidia does not provide (at least I do not know) the binary drivers for android (as they made ​​for linux), I think that may be, we do not see tegra2 drivers for 5.x. That does not mean we can not do something, but will be less optimal and more complicated.
Hopefully I'm wrong and nvidia make things easy , but I think no manufacturer will use tegra2 for new products, and do not think they will update current products to that version ....
guevor said:
Well, the main problem I see, thinking about future versions (5.x) is that we do not have the source code for video drivers, only a small part that exists in the kernel. This added to the fact that nvidia does not provide (at least I do not know) the binary drivers for android (as they made ​​for linux), I think that may be, we do not see tegra2 drivers for 5.x. That does not mean we can not do something, but will be less optimal and more complicated.
Hopefully I'm wrong and nvidia make things easy , but I think no manufacturer will use tegra2 for new products, and do not think they will update current products to that version ....
Click to expand...
Click to collapse
Have you tried contacting Nvidia about this?
For the record, I am not a Linux user, even with what Im going to say, keep that in mind... My history is firmly routed in WinBlows land!
This has me all sorts of excited, I remember saying it back in paul's thread before it fell off the face of the earth (read, first few pages of the forum).
As stated at the top, while NOT a Linux user, I was trying to build CM9 for one of my tablets, to do so, I had setup a Linux box (tried a few distro's), and kept having issues, so a friend of mine walked me through updating to a 3.4.x kernel (3.4.0.-5 iirc), and things definitely FELT smoother vs the 3.0 (on the distro I was using before he berated me for it and moved me to a different one) and then 3.2 kernel in use (ill note hardware issues where also at play with the actual issues, but the smooth feeling after updating was definitely something I noticed).
I have no benchmarks or performance statistics to back that up, but as I said in paul's thread, and have now experienced in a "full" Linux environment, the future with Kernel v3.1 and up has me VERY excited as to what can be done with the OG Transformer! (vs mass backports to 2.x)
On that note, Subscribed thread, and time to get an RMA for my Tablet... the top basil part is starting to come off the unit
I haven't coded a lot with linux and android source, but I do have experience with coding and especially with reading through source code and finding syntax and other errors i.e. proofreading
So if you want me on the team I'm game!
Orkeren said:
I haven't coded a lot with linux and android source, but I do have experience with coding and especially with reading through source code and finding syntax and other errors i.e. proofreading
So if you want me on the team I'm game!
Click to expand...
Click to collapse
Every help is welcome !
Please tell me your github name and I will add you as a collaborator
If my help is welcome i am willing to test your builds on my TF101G B90 with dock. So let me know if you have to do something.
ajohn117 said:
If my help is welcome i am willing to test your builds on my TF101G B90 with dock. So let me know if you have to do something.
Click to expand...
Click to collapse
Will do for sure, but it could take some time until we can push out the first build for testing.
rayman33 said:
Hello people,
after some conversation with early ICS-on the transformer developer paulburton, I have a git repository of a mostly working linux 3.1 mainline own.
Click to expand...
Click to collapse
With my git every things works but usb hotplug,cam,hdmi-audio. ( usb works fine when insert add boot ) , also i will stop dev for it as i'm selling my tab :crying: but would be nice if this got finished.
also major thanks to paul
Do you started the project?
I tried some things yesterday, but it did not boot. I will have a look into spark rom and try some other things, I think I have some ideas.
Btw, kernel compiles fine, zImage is there, perhaps some early device drivers have to be updated. I will look into the ramdisk I created and fix some things ...
Just to let you people know. Progress is being made.
First progress
I managed to make it boot on revolver 4.1.1 rom. I modified the video drivers to be compatible with the actual binary drivers.
The touch screen is not working, but I really have not looked at it, maybe even compile options I chose are not the most adequate, but just wanted to get it to boot with video graphics working.
We better get each other updated via pm in the future ..
What touchscreen driver did you define in the kernel config ?
The new mxt1386 or the old one from the 2.6.39.4 kernel?
Maybe we need to rewrite the mxt1386 drivers.
rayman33 said:
We better get each other updated via pm in the future ..
What touchscreen driver did you define in the kernel config ?
The new mxt1386 or the old one from the 2.6.39.4 kernel?
Maybe we need to rewrite the mxt1386 drivers.
Click to expand...
Click to collapse
Well, I tested whether simply boot and graphics drivers failed as expected, and I've tried to change it and make it working. I think that is the basics (make it boot) to further adjust problems.
About the drivers, yes, I used mxt1386 but not detected coordinates, just click. I used a USB mouse to verify that the graphics drivers work.
I updated the repository with my changes.
Did you get a log cat already ?
It may reveal if the mxt1386 driver fails to load.
rayman33 said:
Every help is welcome !
Please tell me your github name and I will add you as a collaborator
Click to expand...
Click to collapse
easy as pie!
Code:
orkeren

[APP][3.1+][BETA testers needed]ArduinoControl

I am working on an app to control Arduino micro-controllers, or really any serial device, from an Andriod tablet/phone.
Right now all that is done is a basic serial terminal sending and receiving tool, but there is much more to come, hopefully with multiple views with things suck as sliders to control anything you could imagine.
It requires a tablet with a USB host port (large computer end) or an adapter of any kind to allow you to plug the Arduino into the phone/tablet's micro USB port.
This app DOES NOT require any special Arduino, any one with a built in usb to serial controller will work. This includes the Mega, Uno, and most others.
I am not 100% sure if it will work without a usb host port, but it should as long as you give the arduino external power.
If you are interested in helping me with testing please reply here or PM me with the following info:
Device(s): phone/tablet and model/common name
Android version: 3.1, 4.0.4, etc
Rooted or not: yes or no
ROM+ Kernel: stock, CM9, CM10, AOKP, etc
Arduino(s): Mega, Uno, etc
Knowledge as to capability to trouble shoot: none, I know arduino and android well, I know enough to get by, etc
EXAMPLE in my case
Tablet- Acer Iconia tab a500 (Picasso)
4.1.2
Rooted
AOKP JB unofficial with the default kernel
Arduino Mega ADK and Uno
I know what I'm doing pretty well, so I should be able to help troubleshoot any problems to figure out the cause.
Thanks in advance to anyone that wants to help out
If you are interested in getting in on the project itself, let me know, Id be happy to accept any help as I am pretty new to android app developing.
I'd love to test this.
I have an Arduino Uno and an Acer Tab A500 on 4.0.3 rooted.
I have an ok knowledge of both Arduino and Android and I guess I should be able to help out here.
Though I have not much knowledge about Android development. Though I'm quite fit in the Arduino C language.

[Q] USB WIFI capability

Hello all!
Firstly, I would like to thank many people for their inputs on this site. I have been viewing it for quite some time, so I finally created an account. I cant wait to get in the community!
Now, as for the reason for this post. I am trying to get my ALFA USB WiFi AWUS036NHA to work with my Tab 2 7.0. After doing some research I am with the understanding that I must write the drivers into the kernel. I have a decent understanding of how the kernel works with the hardware and software of the device (the theory of it, rather), but I do not know how to actually edit the kernel. I have done some software developing on Linux, Windows, iOS, and the PSP-1000 communities, but I did nothing with their kernels.
My question is, is there a pre-built kernel with the RALINK drivers? If so, I would love a link to that, but I am also interested in learning how to modify the kernel, for I am mainly a Linux/Android fanatic.
Any input would be appreciated,
Thanks!
Edit : Just for informational purposes, my tablet is on Cyanogenmod 4.2.2. The only thing on it are a BlackUbuntu image, and a Backtrack 5 image, which I boot through terminal.
Edit : I am currently setting up the Eclipse IDE on my Ubuntu system. I should be ready to go by morning. I have been reading references and studying source code for the better part of the day.
Azraelpwnz

Android for Lenovo Yoga 13

Hi All,
I have been a long time XDA user, and follow and utilize a number of threads for my android devices!
(
For the first time ever i have not been able to find what I'm looking for and so I send out a plea for help (or lay out a challenge if people prefer them) !!
I have a lenovo yoga 13 and can run a live version of android 4.2 however i do not want to complete a hard drive install due to the lack of support for the wifi and BT.
I was wandering if anyone would be able to create a yoga 13 ROM including the driver for the realtek RTL8723a wifi/bt chip.
This has been working on Ubuntu elsewhere.
My knowledge does not extend passed installing ROMs so the process to learn this is beyond my grasp. I am happy to donate to developers should this help!!
I would love to do this myself but would not even know where to begin.
I have managed to install the relevant version of android and touchscreen etc works brilliantly, i just need the ability to connect to the internet.
I guess there are two options and some advise would be great:
1 - could i use a usb wifi adaptor that would be supported by Android rather than the built in realtex card.
2 - where should i begin to look or research if i wanted to learn how to modify the install in order to include the correct kernal or support for this version (I am assuming using the working ubuntu drivers in some way). Any recommended reference materials to get me started. I appreciate this option may require quite some time to fully understand android development.
Thanks
ussasx said:
I would love to do this myself but would not even know where to begin.
I have managed to install the relevant version of android and touchscreen etc works brilliantly, i just need the ability to connect to the internet.
I guess there are two options and some advise would be great:
1 - could i use a usb wifi adaptor that would be supported by Android rather than the built in realtex card.
2 - where should i begin to look or research if i wanted to learn how to modify the install in order to include the correct kernal or support for this version (I am assuming using the working ubuntu drivers in some way). Any recommended reference materials to get me started. I appreciate this option may require quite some time to fully understand android development.
Thanks
Click to expand...
Click to collapse
I am still really struggling with this and some help would be massively appreciated :/
For those interested
ussasx said:
I am still really struggling with this and some help would be massively appreciated :/
Click to expand...
Click to collapse
For anyone that is interested in android on the Lenovo yoga 13 check out console os
https://www.kickstarter.com/projects/mmv/console-os-dual-boot-android-remastered-for-the-pc
I am a backer and it looks like it will be funded.

Categories

Resources