I'm considering using a ROG device as a development platform for a project I'm working on. There's a somewhat unique aspect to the project in that it involves usage of an external USB device, and I think the extra USB port on the ROG devices could provide a convenient way to develop/debug such an application. I'm hoping an existing owner with some development experience can confirm something for me:
Is it possible to have an active adb session on one of the phone's USB ports, while simultaneously using a USB peripheral (keyboard, mouse, whatever really) on the other?
Thanks!
Related
I would like to connect my Prime to a serial port in order to use a terminal connection interface with some equipment. I am currently using my laptop to conduct some maintenance on this equipment out in the field and would love if I could shed this weight and use my prime instead.
I have the following apps:
- ConnectBot
- Slick USB 2 Serial Terminal
However, the USB to Serial cable which is use for my laptop recevies power from the USB port in order to work. It does not appear that the Prime provides power to its special connector to USB cable (data cable). I do not have my keyboard dock yet, so I do not know if the full-scale USB port provided on the dock will allow me to use my existing cable.
So, my question to ya'll is:
Can I use just the Prime (without the dock) to connect to a serial connection? If so, how best can I accomplish this?
Anyone?....
I'm going for a long trip and unable to bring my laptop, so I need to do everything from my RAZR. I bought a USB OTG cable and a USB Y-cable thinking it would be the final solution.
The main problem with the card readers as some of the USB sticks is that they all want >100mA and RAZR reports being unable to supply that amperage. You can debug this using USB Host Controller and enabling the 'DMesg display mode'.
Simple permanent solution:
buy a cheap unpowered usb hub. Since weight and space are my main concerns I cannot travel with powered hubs.
Complicated temporary solution, requiring root:
Check the dmesg output from the above application or by doing a tail -f /var/log/dmesg in terminal and see what port is being reported as underpowered. Most of the time it will be this: "usb 3-1: rejected 1 configuration due to insufficient available usb power". Of course that's not true since the power is provided by an external brick capable of supplying at least 1 amp.
You have several ways of doing this, I'm using root explorer as an example. Go into /sys/bus/usb/devices/3-1/ , click on the bConfigurationValue file, select 'Text Editor' from the prompt, type "1" into the editor, save and exit.
You will have to do this every time you plug something in so you might make it into a script, something like "echo 1>/sys/bus/usb/devices/3-1/bConfigurationValue".
Other issues: I'm taking two cameras with me, a Canon SX230HS and a Nikon D7000. The problem with new cameras is that they have given up on the Mass Storage protocol and switched completely to PTP (Picture Transfer Protocol).
Simple solution: use an SD Card reader to transfer photos. Use USB OTG Helper to help you with mounting, it's a free one-click solution.
Complicated solution: for Canon I'm using RawDroid. For Nikon I'm using DslrDashboard.
If you can afford it, PhotoMate should also work.
Oh, this should go into the Accessory forum, or maybe not even on this forum, but I was able to ditch the camera chargers (two wall bricks + two chargers) by buying a PIXO C-USB charger. It's one of those universal LiPo chargers with spring contacts. You can plug it into a USB port or USB charger and you can charge 1 cell or 2-cell LiIon/LiPo packs or AA/AAA batteries.
I am still looking for an efficient 2xAA/AAA -> USB high current supply for complete portability, but I might just build one myself. The reason is that you will find batteries everywhere but less so publicly available power sockets.
Hmm, I think that for a cheap USB power, you could use one of those smartphone battery backup usb batteries. The problem I see with AA or AAA is that they are less efficient due the extra space they need because of the packaging of each battery, and the materials (NIMH vs Lithium)
Also, taken from this thread: http://forum.xda-developers.com/showthread.php?t=1349038
You need a powered hub in order for the RAZR to accept it, and I think this is a kernel issue, and cannot be modified just with root (Because of the locked bootloader).
I think that probably what you need, as you stated before, an external source of power, and probably something like this powered usb hub:
http://www.ebay.com/itm/Black-Samsu...o-USB-Host-OTG-HUB-CARD-READER-/160921077532?
It needs to be powered in order for it to work with our RAZR.
Have a look at the entire thread that I posted before, I think it could be helpful.
I am already on my long trip and the non powered usb hub worked perfectly. I already explained how you can 'fool' the kernel into thinking it has enough power, this is a non-issue. The thing with AA/AAA is not density but it is they are readily available in remote areas of the world where there is no power.
I already tested one AA/usb power supply I had for overload and magic smoke came out.
It worked for me. However it depends on how the hub and charger are connected. I had to connect the hub between the female plug of the otg-cable (a y-cable) and the usb stick and the charger to the male otg-cable plug. Connecting the charger directly to the hub didn't work.
[Q] How to estimate the power supply capability of my Samsung tablet through otg ?
After much hesitation about the choice for which small otg gadget , I choose this one for its slim and simple looking with a suitable price:
http://www.amazon.com/gp/product/B00GLKI0QE
The following idea is how I design the use situation : The otg is connected to my Nexus 7. And I planned to plug the Samsung Tablet to one of the four usb 3.0 port. As this is not a gadget with its own power adapter. I worried about the power supply issue. I wonder which could be the main part to supply part. Let alone to add other devices to all the usb 3.0 ports.
Is my idea a practical one ? Anybody who has a wise solution is warmly welcomed.
I have connected an OTG cable to my device, I also have a powered USB hub connected to the other end of the OTG cable, When I try using a male to male USB cable to go from the USB hub to my computer my phone does not talk to the computer. Can I by making a special cable, have my phone talking to the computer and OTG?
I hope I explained this well enough
Thanks hope this helps you help Clancey Aggen
UAS specialist said:
I have connected an OTG cable to my device, I also have a powered USB hub connected to the other end of the OTG cable, When I try using a male to male USB cable to go from the USB hub to my computer my phone does not talk to the computer. Can I by making a special cable, have my phone talking to the computer and OTG?
I hope I explained this well enough
Thanks hope this helps you help Clancey Aggen
Click to expand...
Click to collapse
USB works via a type of slave/host setup. A typical scenario would involve plugging your device into a PC for file-transfer, in which case the PC is acting as 'HOST', and the device is acting as 'SLAVE'.
However, If your phone is operating in USB OTG mode then it is operating in host mode and therefore your PC would be unable to connect, as you have two devices hosting connections, but neither is seeking connection. Overcoming this limitation although plausible, is practically speaking, a waste of time in presence of other solutions.
The cable ends determine which mode to put it's respective device in. The Male MicroUSB-B end (the OTG end) has an extra pin that's jumped to another. This signals the "OTG" host mode in the device. "OTG" only applies to the MicroUSB, as the "On-the-go" functionality means it can be either host or slave.
May I ask what you are attempting to accomplish and/or why you need this setup? Just trying to transfer files or more?
Edit: my theory is you expected something akin to two-devices on a network hub. A typical USB hub is slave-device, used to share a bus lane together with other usb slave-devs, e.g. "turn one port into 4". Do not confuse with the similarly-named Network Hub. While it technically is still serial communication, thats on a whole 'nuther level functionality-wise. (Nethubs echo any received messages across all lines. USB does not do this to my knowledge.
Does anyone know if it's possible to access the PX5's OTG USB using one of the existing external USB connections (without having to pull the head unit apart)? I'm trying to get a USB connection for ADB and came across this on the wiki:
Bootloader mode
Holding the power button while turning on the unit will get you into bootloader mode. **This is battery power not acc power** The screen will be black but plugging in a usb to the front usb will prompt the PC to install the RockChip bootloader drivers - this might help http://www.cnx-software.com/2013/11...install-rockchip-usb-drivers-in-windows-xp78/
Click to expand...
Click to collapse
I noticed on the MTCD schematic that the MCU has pins for CTL_RECOVERY and CTL_WAKEUP, which leads me to believe it might be possible to program the PX5 in place using some sort key combination. I tried the wiki instructions, but can't get the PX5 get picked up at all on the USB connection.
It depends on the hardware - Some GS might as the original GS has the hardware configuration and switch correctly implemented, which some GS users have reported. Others manufacturer units might not, ostensibly because they messed up the implementation (e.g. my JY or Joying).
Give it try, put device into recovery mode and connect usb port to PC.
Teh crickets!
Oops, pardon the late response. I've given it a try and the manufacturer even sent a special cable (purple connector instead of the white), but I'm unable to get the PC to detect anything on the USB port. Doesn't even try to enumerate a device on Windows.
If it helps, this is a KLD device.