USB OTG host mode (ANY USB keyboard support!) TUT - Galaxy S II Themes and Apps

USE ANY USB KEYBOARD WITH YOUR USB OTG SUPPORTED ANDROID DEVICE!!!!
I've been experimenting with Wifi cards and the samsung galaxy sII
and realized people where having the same problem as i was having with plugging in usb keyboards.
turns out it all has to do with a vendors permission issue. if your device is not in the list, it will seen as "unknown".
As it turns out you can simply add your device and it'll work. mind you it was to be a simple input device and will have the power constraints of 100mW. But if u can compile a driver and splice in dc power.... skies the limit!
steps:
1. Android must be rooted (not going over that) and must support USB OTG (on-the-go)
2. You can either buy a USB OTG micro to female adapter on ebay for like 4 bucks. i decided to make one myself since i have lots of spare parts.
Heads up: a simple micro usb to female usb connector IS NOT THE SAME AS A USB OTG CABLE, they may look the same but the OTG cable has Pin 4 grounded to pin 5 on the micro usb side. This is how the device distinguishes aach type of cable. WARNING: IF MAKING THIS YOURSELF DO NOT CROSS BLACK AND RED, this WILL fry your PHONE.if you don't know you rway around a soldering iron, just buy one
3. Check what manufacturer your device is on this chart, if it's not there, check on the internet or plug the usb device into a linux box and run "lsusb" in the command promt and look for your device, the number will look like this:
Bus ### Device ###:ID <THIS ONE!>:<more numbers> " Company"
here's the chart: (taken from here :http://developer.android.com/guide/developing/device.html)
Code:
Company USB Vendor ID
Acer 0502
ASUS 0b05
Dell 413c
Foxconn 0489
Garmin-Asus 091E
Google 18d1
HTC 0bb4
Huawei 12d1
K-Touch 24e3
KT Tech 2116
Kyocera 0482
Lenevo 17EF
LG 1004
Motorola 22b8
NEC 0409
Nook 2080
Nvidia 0955
OTGV 2257
Pantech 10A9
Philips 0471
PMC-Sierra 04da
Qualcomm 05c6
SK Telesys 1f53
Samsung 04e8
Sharp 04dd
Sony Ericsson 0fce
Toshiba 0930
ZTE 19D2
eg my keyboard is lenovo , so code is 17EF, you get it
4. log in as root, mount system as read-writeable, Create this file: /etc/udev/rules.d/51-android.rules
if its already there, then just append the command you want after.
if you dont have root explorer or otherwise installed here is how to in bash:
Code:
su
su
mount -o remount,rw system /system
mkdir -p /etc/udev/rules.d/
cd /etc/udev/rules.d/
now in the "51-android.rules" file add this line (or more for more device support):
SUBSYSTEM=="usb_device", SYSFS{idVendor}=="<VENDOR CODE>", MODE "0666", NAME=="<VENDOR>"
my example with my lenovo keyboard:
SUBSYSTEM=="usb_device", SYSFS{idVendor}=="17EF", MODE "0666", NAME=="lenovo"
save.
5. plug in the USB OTG cable and plug in your keyboard or other device. it sould say "usb host cable" then "usb device".
on some keyboards the numlock light wont work, due to the fact of power contraints on the phone, you can add support by plicing in 5v DC in to the line (soldering needed) or you can probably jsut attach a powered usb hub
And thats IT, now you can actually type documents at a reasonable pace, without paying an arm and a leg for a supported bluetooth keyboard!!!
-td8f4
* to moderators i know i have less than 50 posts hopefully i dont get banned, i thought this was considered dev*

Wow, really nice work - I wonder if some kindly ROM devs could just bake in support for all in their ROMs?

NZtechfreak said:
Wow, really nice work - I wonder if some kindly ROM devs could just bake in support for all in their ROMs?
Click to expand...
Click to collapse
wow really good work.
just another info on the price of an BT keyboard:
http://www.amazon.de/s?ie=UTF8&search-type=ss&index=ce-de&field-keywords=CHIN FAI
40 euro are not an arm and a leg
and this i ok to type on

Indeed, you can get some BT keyboards quite cheaply. I already have one, but I'd still like full USB keyboard support (I don't always have my keyboard on me, but lots of people have USB keyboards).

I tested this on an unrooted SGS (Logitech K340 unifying keyboard) and it worked fine without having to change any settings. Just plugged it into the USB OTG adapter and then plugged the adapter into the phone. It said the device was unknown but the keyboard worked when I went to type in the apps. Mice also worked. The logitech MX Performance worked fine. A bit weird seeing a mouse pointer on the phone though.

How about keyboard remapping?
Sent from my GT-I9100 using XDA Premium App

At first I thought:
"1) plug in OTG cable, 2) plug in USB keyb., 3) use"
*lol*
No, seriously, this information is VERY usefull and might open up the way not only for keyboard (as the OP stated, "get a driver compiled and the sky is the limit".
Will definitaly bookmark this thread and when I'm done with some other tinkerings try to "get the drivers compiled"
*clicksthanks*

reply
my ultimate goal is to have a external usb wifi adapter plugged into my phone so i can use it to pentest with a Backtrack 5 chroot session.
i'm working on cross compiling the RTL8187 driver for the ARM architecture.
look here for updates
HTML:
http://forum.xda-developers.com/showthread.php?p=16333147
and @ karl999999
40 euro are not an arm and a leg
and this i ok to type on
Click to expand...
Click to collapse
i know it's not expensive, but i'd really rather use something i already have, i've got a small flexible usb keyboard which works great.

As I'm trying to add joystick support on SGSII, I tried to add an xbox 360 controller and my device was not recognized. I tried this method and added "045E" as vendor but no luck, still not recognized... Any idea ?
Thanks

alx5962 said:
As I'm trying to add joystick support on SGSII, I tried to add an xbox 360 controller and my device was not recognized. I tried this method and added "045E" as vendor but no luck, still not recognized... Any idea ?
Thanks
Click to expand...
Click to collapse
Also interested in this... Sadly I dont have the skills to compile a driver myself...
Sent from my GT-I9100 using XDA Premium App

Thanks. This is so cool and I gotta try it at home later (Tried 2 different keyboards at home before but didn't work). Hopefully you could find a way to use PS3 joystick as well.
Maybe we collect a list of device code and update it a single file. Then rom developer can incorporate it into their roms.
Don't worry about post counts. The is definitively a very good finding and development progress for S2.

alx5962 said:
As I'm trying to add joystick support on SGSII, I tried to add an xbox 360 controller and my device was not recognized. I tried this method and added "045E" as vendor but no luck, still not recognized... Any idea ?
Thanks
Click to expand...
Click to collapse
We might have more luck with generic USB gamepads. I think all we need is someone who has the required knowledge to compile joydev.ko for our kernel.

testando said:
Also interested in this... Sadly I dont have the skills to compile a driver myself...
Sent from my GT-I9100 using XDA Premium App
Click to expand...
Click to collapse
My skill is quite limited too but with some reading it's not that hard (and I can give some help too).

I am looking for support for my Plantronics USB Headset. I am able to control volume through the headset when connected to OTG, but can't route audio through them.
I believe we do need generic drivers for USB Headsets. Hope one of the elite developers can help us. I will be happy to donate 5 euros for the same
Also, my Microsoft Wireless combo (Desktop 6000 v3) do not work while my wireless mouse 1000 do work absolutely fine on the Phone.
I am also looking for NTFS Mass Storage support which seems to be currently limited to FAT32 (and possibly FAT16) only.

Prankey said:
I am looking for support for my Plantronics USB Headset. I am able to control volume through the headset when connected to OTG, but can't route audio through them.
I believe we do need generic drivers for USB Headsets. Hope one of the elite developers can help us. I will be happy to donate 5 euros for the same
Also, my Microsoft Wireless combo (Desktop 6000 v3) do not work while my wireless mouse 1000 do work absolutely fine on the Phone.
I am also looking for NTFS Mass Storage support which seems to be currently limited to FAT32 (and possibly FAT16) only.
Click to expand...
Click to collapse
There is a solution for that already. Search ntfs-3g or posts started by me.
Just tried my logitech wireless keyboard but doesn't work. May need to dig out some old wired keyboard to try later.

somebody can get the USB ID of EuroCase? i can't get it from the internet

takato23 said:
somebody can get the USB ID of EuroCase? i can't get it from the internet
Click to expand...
Click to collapse
Actually, you may found the id by S2 itself. Just install a terminal emulator and do the same lsusb command.

jackleung said:
Actually, you may found the id by S2 itself. Just install a terminal emulator and do the same lsusb command.
Click to expand...
Click to collapse
Okay i could get the usb id from eurocase (i've a keyboard+mouse 2.4ghz pack) It's 1D57. Now when i connect the recivier, says "connected a usb device". But when i try to use mouse or keyboard it get stuck on one letter. I've try with a genius keyboard also (ID 0566) and it does the same... the only device that it works is a Razer mouse (without doing a thing)

My Microsoft Wireless Mouse 1000 works perfectly fine. However my other Microsoft Wireless Desktop combo (6000 v3) doesn't.
Also, I am looking for a way to use my USB headsets. I am able to control volume through it, but can't route audio through it.
Hope one of the devs here would be generous enough to help us get our devices working

Writing a driver and firmware from scrarch is quite a bit more arguous than finding one that works with linux. Look for one.
Once I get this porting business figured out ill post a tut on porting. Maybe even a small vm of the ubuntu box, to avoid rebuilding the setup
Sent from my GT-I9100 using XDA App

Related

OTG Cable Answers

Ok guy so I finally got my OTG cable:
http://cgi.ebay.com/Micro-USB-Host-...od=260766327039&ps=63&clkid=63440061151806986
There seems to be alot of questions regarding which peripherals work
List of everything I have tried so far:
Logitec LX3 Optical Mouse: Works Perfectly with no set up
PSX to USB adapter: Seems to only output mouse commands (Left joystick and Dpad works but nothing else)
Wireless USB Adapter - Works perfectly with mouse and keyboard - no set up
USB Flash Drives - Works perfectly , mounts in mnt/usbOTG
USB Card reader(microSD and SD): Works Perfectly, mounts in mnt/usbOTG
Powered USB Hub (7 Port)
Card Reader: Did not mount
Flash drive: Did not mount
Optical Mouse : Works perfectly
When I start trying more things I will post on here and give you an update.
bilago said:
Ok guy so I finally got my OTG cable:
http://cgi.ebay.com/Micro-USB-Host-...od=260766327039&ps=63&clkid=63440061151806986
There seems to be alot of questions regarding which peripherals work
List of everything I have tried so far:
Logitec LX3 Optical Mouse: Works Perfectly with no set up
PSX to USB adapter: Seems to only output mouse commands (Left joystick and Dpad works but nothing else)
Wireless USB Adapter - Works perfectly with mouse and keyboard - no set up
USB Flash Drives - Works perfectly , mounts in mnt/usbOTG
USB Card reader(microSD and SD): Works Perfectly, mounts in mnt/usbOTG
Powered USB Hub (7 Port)
Card Reader: Did not mount
Flash drive: Did not mount
Optical Mouse : Works perfectly
When I start trying more things I will post on here and give you an update.
Click to expand...
Click to collapse
Do you have to be rooted to get usb thumb drives to work? I am not rooted and a wireless mouse will work but I cannot get thumb drive to work.
texasez said:
Do you have to be rooted to get usb thumb drives to work? I am not rooted and a wireless mouse will work but I cannot get thumb drive to work.
Click to expand...
Click to collapse
Yes, you have to be unlocked, rooted and flash a different kernel before this will work. The OP kind of forgot to mention that.
Eventually this won't be the case as I expect this functionality to be enabled shortly by the official SD card update WHEN it finally comes. Haven't rooted yet, trying to keep my unit as stock as possible for development purposes. Being able to do things the general public may not be able to do just makes things harder ATM.
Do you think that they Are going to send me the cable to Argentina?
epakrat75 said:
Yes, you have to be unlocked, rooted and flash a different kernel before this will work. The OP kind of forgot to mention that.
Eventually this won't be the case as I expect this functionality to be enabled shortly by the official SD card update WHEN it finally comes. Haven't rooted yet, trying to keep my unit as stock as possible for development purposes. Being able to do things the general public may not be able to do just makes things harder ATM.
Click to expand...
Click to collapse
I think you're mistaking the OP for a discussion of SD cards in the Xoom. This thread is about OTG cables, which were enabled in the 3.1 update. Or do I have that wrong?
BTW- Just ordered one. Got one suggested in another post from meritline and *suprise* it doesn't work... Waiting again...
Sorry guys, I keep forgetting that not everyone who reads these forums have rooted their Xooms. I am rooted running the latest installment of Tiamat Kernels.
Just an update my testing has stopped since the cable is a POS and broke the first day.
I ordered the Motorola Cam Connection Kit from Amazon and it said it would get here in a month! I wish they would have told me that before I placed the order. I'll probably end up buying one and just selling that one to someone on this forum.
I don't know how much this would help but I found a thread on some .apks for mounting hard drives and other things. Check this out and hopefully it helps you guys mount some things.
http://forum.xda-developers.com/showpost.php?p=13337600&postcount=6

USB Adapter with a USB hub

Hello all,
I received my USB adapter from Samsung today and am pleased to inform you that it works wonderfully with a USB hub. My hub has 4 slots on it and the tab was playing well with multiple USB devices being plugged in.
Really? I guess usb hub is needed to make things work? i had all kinds of issues. Mainly, not reading some usb drives, and memory reader. I just plugged the usb drive, directly into the usb adapter. The memory card reader was connected by standard usb to mini usb cable. That didn't work.
I got to try this.
Thanks.
No problem. I actually have not tried storage devices yet, only input devices. I posted on your other thread as well.
I have a feeling thumb drives may be having a problem if they are formatted in the FAT32 file system. I am going to try an NTFS drive and external hard drive and will let you know my results.
UPDATE: It appears I had it the other way around. I plugged in an NTFS drive to no avail, then formatted it to FAT32 and it worked.
FAT32 works great. NTFS is completely missing from stock kernels, it's in pershoot's "lib" extra modules archive on his kernels. However, I tried an NTFS drive using the extra module and it failed. (might require some manual mount magic???) It would take a lot more work to get FUSE working properly, and that's needed for the (vastly superior) ntfs-3g driver.
So does it work with external usb hard drives (both self powered and plug powered) of the sizes of 500GB and more?
what brand/type
what brand/type of usb hub do you have
Invisman said:
So does it work with external usb hard drives (both self powered and plug powered) of the sizes of 500GB and more?
Click to expand...
Click to collapse
If the hub is powered then the drive should work fine. You just can't use a usb powered drive without a power source
Sent from my SCH-I500 using XDA App
Ican't get mine to read my game controllers. Says something about high powered device. It won't let me read the message. When I tap it to make it bigger it just goes away. I am very frustrated. Can you get a fame controller to work? I used ps3.
Sent from my PC36100 using XDA Premium App
Shadee1394 said:
Ican't get mine to read my game controllers. Says something about high powered device. It won't let me read the message. When I tap it to make it bigger it just goes away. I am very frustrated. Can you get a fame controller to work? I used ps3.
Sent from my PC36100 using XDA Premium App
Click to expand...
Click to collapse
PS3 controllers require a special driver. It may also require too much current since it tries to charge via USB. You'll need a powered hub if that is the case.
Gonna try my PS3 controller in a few minutes.
Edit: So far:
No excessive current errors from my PS3 controller - however mine has a fully charged battery because it's been plugged into a PS3 that has only been playing movies/videos for weeks. However button presses aren't recognized by anything. My guess is that if I dmesg I'll get an unrecognized device error. PS3 controllers are nonstandard.
However a Nyko AirFlo controller worked fine in SNES9x EX. It was semi-recognized by SNESoid - the keymap screen recognized something was being pressed, but games themselves wouldn't register presses.
Edit 2: PS3 controllers require the hid-sony kernel module to be loaded. This is included in pershoot's optional "lib" archive with his kernels. I had to hit the PS button to get it to turn on and start sending presses to the tab. No excessive current errors, but my controller was fully charged.
Thanks. But for some reason the ps3 and the x box controller worked for the xoom. I called samsung and they don't have any help for this issue yet. Can you get any external device to work for at least over fifty percent of what the adapter is meant to do? Did you get any error messages. I get high powered device connected. Then it say underneath that out could not connect. Device needs............. I cant read the rest. When I tap it to enlarge and read it disappears. Samsung can't figure out why that is happening either. Plz help.
Sent from my PC36100 using XDA Premium App
Shadee1394 said:
Thanks. But for some reason the ps3 and the x box controller worked for the xoom. I called samsung and they don't have any help for this issue yet. Can you get any external device to work for at least over fifty percent of what the adapter is meant to do? Did you get any error messages. I get high powered device connected. Then it say underneath that out could not connect. Device needs............. I cant read the rest. When I tap it to enlarge and read it disappears. Samsung can't figure out why that is happening either. Plz help.
Sent from my PC36100 using XDA Premium App
Click to expand...
Click to collapse
Make sure the PS3 controller is fully charged before you connect it. If it isn't, it'll try to charge the battery and that's probably what sets off the overcurrent protection.
As to it working with the Xoom - I'd be VERY surprised if it worked with the Xoom when stock. Not so surprised about custom kernels, adding those modules is one of the first things people add, and the Xoom guys may have figured out module autoloading.
Thanks going to try now
Sent from my PC36100 using XDA Premium App
nothing over 32GB for now
Kevin Gossett said:
If the hub is powered then the drive should work fine. You just can't use a usb powered drive without a power source
Sent from my SCH-I500 using XDA App
Click to expand...
Click to collapse
wish i'd have read this before i bought it. i assumed it would since every other android tablet i have/had can power my external hds. pretty much makes it useless for me now as i was hoping to use it as external storage and for easy, quick file transfers. tf, xoom, and archos all work fine.
Entropy512 said:
As to it working with the Xoom - I'd be VERY surprised if it worked with the Xoom when stock. Not so surprised about custom kernels, adding those modules is one of the first things people add, and the Xoom guys may have figured out module autoloading.
Click to expand...
Click to collapse
It works on a stock 3.1 build, it was one of those new features hyped at google i/o. I have both the European XOom and the Galaxy tab. The xoom copes fine with the ps3 and my other usb only non brand gamepad. The galaxy tab give me the hipower usb device error.
Entropy512 said:
...
However a Nyko AirFlo controller worked fine in SNES9x EX. It was semi-recognized by SNESoid - the keymap screen recognized something was being pressed, but games themselves wouldn't register presses.
...
Click to expand...
Click to collapse
For SNESoid, you probably forgot to go into the other settings menu and turn on external input. The names may be off, but in addition to setting the key mappings, you have to turn on another option for it to see additional input devices, and then your gamepad will work
poorlilpoop said:
Really? I guess usb hub is needed to make things work? i had all kinds of issues. Mainly, not reading some usb drives, and memory reader. I just plugged the usb drive, directly into the usb adapter. The memory card reader was connected by standard usb to mini usb cable. That didn't work.
I got to try this.
Thanks.
Click to expand...
Click to collapse
I had troubles reading an SD card with an old USB reader I had lying around. It was hit and miss.
Then I bought this SD card reader at Fry's for $4.99 and it works perfectly.
So, just to be clear, you are using a male A-A USB cable with one end plugged into the USB adapter on the GTab and the other end into one of the available USB ports in the hub, right?

[WIP] USB Host support (working)

Hello!
I have been asked into looking for usb host support for nook touch. The hardware appears to be pretty similar to Nook Color, so there were no troubles in that area.
The kernel used by B&N for the Nook Touch is somewhat older than .32 kernel used for Nook Color, so the patch itself required some massage. Surprisingly B&N kernel already has usb host support compiled in, so you don't even need to change anything in kernel config, just apply the patch.
Just like in Nook Color, the id pin in the usb receptacle is not connected anywhere, so a special app is needed to switch the host mode on and off. The Nook Color usbhost switcher should work: https://github.com/verygreen/Nook-Color-usbhost-switcher though I cannot compile it for eclair, so I guess that needs some more massage and help here would be appreciated.
Meanwhile you can simply switch the mode from adb, type
Code:
echo host > /sys/devices/platform/musb_hdrc/mode
to enable usb host mode and type
Code:
echo peripheral > /sys/devices/platform/musb_hdrc/mode
to disable it.
The LED at the bottom that usually indicates charging status will light up in usb host mode even if the power is not connected.
The upside is you don't need a special OTG cable and can just use gender changer on your existing nook cable if you so desire.
Now, problems
I have not tracked why yet, but self powered mode only works when you try to enable it first with external power plugged in first.
The user-friendly tool for usbhost mode switching needs to be compiled for eclair
The self-powered mode is very faint. Keeps up with my keyboard, but not even with a simple usb hub.
Battery drain is significant, though not sure what part of it is attributed to the usbhost mode and what to adb over wifi
Eclair init is buggy so input devices are unusable without a patch, see commit 6405c6953fa02d41d9f6377f4cdb947604f481c4 in google tree to sytem/core/init. I am attaching recompiled init binary that works.
Attachments: binary.zip contains:
uImage - prebuilt 1.1 kernel with the patch
uRamdisk - root ramdisk with fixed init, adb over wifi
init - just recompiled init binary for those who might need it
usbhost_patch.zip - just the patch itself in it's current form.
THANKS TO:
andrewed, who asked me to do this and also provided me with a device. He is on a quest to touchtype on e-paper with a USB physical keyboard, all described here: Project: E-Paper Tablet (typable!)
Thats just awesome, thanks!
Now the only thing missing is a good ebook composer and publisher, and it becomes symetrical.
That is awesome! How about audio and serial ports?
Thanks!
bisbal said:
That is awesome! How about audio and serial ports?
Thanks!
Click to expand...
Click to collapse
Audio will most probably require external power source. Also to make audio work there would need to be some changes to the libaudio, likely similar in nature to stuff I did for Nook Color, only for this older release of Android.
Serial ports will likely work as is as I don't think they draw too much power. The kernel support for usbserial would need to be added of course.
Possibility for Bluetooth dongle? And thus audio?
Sent from my GT-I8150 using xda premium
Thiso said:
Possibility for Bluetooth dongle? And thus audio?
Click to expand...
Click to collapse
Should be possible, but would require external power for the bt dongle I would think.
Verygreen,
As of now, what is the use? Can I put an external keyboard as it is? Does it need a driver (or something of the sort) for that? Can I put a usb stick? Audio and BT, as I can see, need an extra effort...
Anyway, thank you for your effort. I thought I'd never see something like that for the STR.
apeine said:
Verygreen,
As of now, what is the use? Can I put an external keyboard as it is? Does it need a driver (or something of the sort) for that? Can I put a usb stick? Audio and BT, as I can see, need an extra effort...
Anyway, thank you for your effort. I thought I'd never see something like that for the STR.
Click to expand...
Click to collapse
You can use keyboard and mouse as is with just the files posted, no extra drivers need. Everything else would need more work at the android side.
for some phones it is possible to buy usb to audio jack converter, e.g.
http://www.amazon.com/Headphones-Ea...6?s=electronics&ie=UTF8&qid=1327504575&sr=1-6
I don't know how much effort and changes is needed on kernel side to make it work though.
---------- Post added at 04:26 PM ---------- Previous post was at 04:21 PM ----------
Do I need to copy all three binaries? Also, could you prepare uRamdisk with adb over usb (not wifi) enabled? Thank you in advance.
cceerrtt said:
for some phones it is possible to buy usb to audio jack converter, e.g.
http://www.amazon.com/Headphones-Ea...6?s=electronics&ie=UTF8&qid=1327504575&sr=1-6
I don't know how much effort and changes is needed on kernel side to make it work though.
Click to expand...
Click to collapse
Those are not applicable, since they aren't actually connected to the USB port. On some phones, the USB "plug" is modified to connect with extra pins -- which carry audio signal.
cceerrtt said:
Do I need to copy all three binaries? Also, could you prepare uRamdisk with adb over usb (not wifi) enabled? Thank you in advance.
Click to expand...
Click to collapse
You need the kernel uImage and uRamdisk files, init is already included.
As far as adb over usb is concerned, it's a bit pointless since there is only one usb receptacle, so you can either connect with adb over usb or connect some usb device, but not both at the same time.
That's why wifi makes more sense.
verygreen said:
Should be possible, but would require external power for the bt dongle I would think.
Click to expand...
Click to collapse
BT USB dongle consumes almost same as USB mouse
http://www.tomsguide.com/us/squeezing-more-life-out-of-your-notebook,review-583-26.html
Since USB mouse is working, BT USB might be feasible as well...
verygreen said:
You need the kernel uImage and uRamdisk files, init is already included.
As far as adb over usb is concerned, it's a bit pointless since there is only one usb receptacle, so you can either connect with adb over usb or connect some usb device, but not both at the same time.
That's why wifi makes more sense.
Click to expand...
Click to collapse
My point is that you don't need wireless access point with adb over usb. It is also more secure than adb over wifi with lower power consumption. Whenewer I need adb over wifi, I can enable it using one adb command. Moreover, using both adb and keyboard attached to nook would not be very frequent scenario (at least in my case).
Thiso said:
BT USB dongle consumes almost same as USB mouse
http://www.tomsguide.com/us/squeezing-more-life-out-of-your-notebook,review-583-26.html
Since USB mouse is working, BT USB might be feasible as well...
Click to expand...
Click to collapse
I've tried a few BT dongles and they can be detected without external power, but I have yet to figure out if BT communications can be driven without external power as well.
USB Host Mode Swicth for Nook Simple Touch
Attached is a Nook Simple Touch version of verygreens USB Host Mode switching app.
Requires properly installed "su" in /system/bin
Let me know if there are problems.
Let's hope so. But I have good hopes as BT intention is to be low power communication. In the post I was referring to earlier, the power communication of BT in use was similar to USB mouse in use...
Sent from my GT-I8150 using xda premium
Would this cable work for host? I've had cables refuse to work with other devices for no apparent reason before, and I don't really want to order something that won't work.
http://www.amazon.com/female-Micro-male-Cable-Adapter/dp/B005GI2VMG/ref=pd_vtp_e_77
TorimuNooter
I'll try to get this included in my TorimuNooter root! Maybe version 0.5 I'm working on 0.4 right now and I can't include your USB host support because it's not yet complete, but I will try to implement it as soon as I can.
Good work!
@Googie2149: Any standard USB cable will work as well as any other.
The ID pin on the micro USB connector on the Nook is not going anywhere so a special OTG cable is not required.
I loaded in the new uImage and uRamdisk and things act more consistently, but I still can't get a keyboard to work.
Neither of the two utilities out there seem to work correctly for me. I do have su installed. I have had more success with simple commands
Code:
echo host > /sys/devices/platform/musb_hdrc/mode
echo peripheral > /sys/devices/platform/musb_hdrc/mode
cat /sys/devices/platform/musb_hdrc/mode
One thing is clear; the Nook adheres to the USB standard for supplying power, that is, it supplies it for 100 millisecs and if the peripheral signals back correctly it continues to supply it. Issuing a host command cause the red LED to flash for about a 1/10 of a second. Supplying power on the red wire is not necessary for host communication.
My setup has a powered hub and a cable with the red lead not carried through. I can issue a host command but it never seems to communicate. The status reads back "a_wait_vrise".
Does anybody have any insight into the FSM to say what is going on?

[Q] Logitech Unifying Receiver not working on Nexus 7 (2013)/OTG Cable Question

I'm trying to connect the unifying receiver to my Nexus 7 (2013) with an OTG cable, but it doesn't work.
USB diagnostics app by Chainfire says the kernel detects it, but the Android API doesn't (not sure what that is). All other USB devices I have tried seem to be working.
I think I read of other people having the same problem. I was wondering if this was a problem with the 2013 Nexus 7 in general. If so, is there a fix? or will there be one?
Also, I was playing with my tablet and OTG cable; I was wondering if anyone else has USB devices "sleeping" when the tablet is put to sleep.
I noticed when I plug the cable in the tablet while it is awake, and then plug in a USB device, the USB device will work fine until I put the tablet to sleep. After I put the tablet to sleep, the USB device would power off, and after waking the tablet back up, the device would remain off and unresponsive.
The workaround I found was to plug in the cable while the tablet was asleep, and then waking up the tablet before plugging in USB device. I would then be able to put the tablet to sleep with the USB device remaining powered (while it's asleep and) when it's awakened.
Sorry if this was confusing.
Thanks!
I've got a working OTG fix that does not require root after much messing about!
Go to settings and disable security lock screen then select English US as the language.
Insert OTG cable and start Nexus Media Importer.
Reboot.
Nexus Media Importer should now pop up as usual and OTG should now be working.
Change language back but do not reboot as you will have to repeat these steps.
Same problem..
I have tried nexus media importer or custom kernel, ETC.. however, the problem is occurred again.
Everytime, kernel has error like..
Code:
logitech-djreceiver 0003:046D:C52B.0018 : claimed by neither input, hiddev nor hidraw
logitech-djreceiver 0003:046D:C52B.0018 : logi_dj_probe:hid_hw_start returned error
Is there anyone uses unifying on Nexus 7 2013? :crying:
Same issue with the receiver
My Unifying receiver works on my SGS 3, but it doesn't seem to work with my nexus 7 :'(
Lurkin_Lurker said:
I'm trying to connect the unifying receiver to my Nexus 7 (2013) with an OTG cable, but it doesn't work.
USB diagnostics app by Chainfire says the kernel detects it, but the Android API doesn't (not sure what that is). All other USB devices I have tried seem to be working.
I think I read of other people having the same problem. I was wondering if this was a problem with the 2013 Nexus 7 in general. If so, is there a fix? or will there be one?
Also, I was playing with my tablet and OTG cable; I was wondering if anyone else has USB devices "sleeping" when the tablet is put to sleep.
I noticed when I plug the cable in the tablet while it is awake, and then plug in a USB device, the USB device will work fine until I put the tablet to sleep. After I put the tablet to sleep, the USB device would power off, and after waking the tablet back up, the device would remain off and unresponsive.
The workaround I found was to plug in the cable while the tablet was asleep, and then waking up the tablet before plugging in USB device. I would then be able to put the tablet to sleep with the USB device remaining powered (while it's asleep and) when it's awakened.
Sorry if this was confusing.
Thanks!
Click to expand...
Click to collapse
Any News in this area? I Bought my Nexus 7 to use it during class (as a studytool ofc) . But without having my external keyboard it isn't of much use
I've been having trouble getting my Logitech K750 keyboard to work on the nexus 7 (stock ROM, only rooted). Does anyone know if the Logitech Unifying Receiver is supported on this product? It works perfectly fine on my Galaxy Note N7000 running CM10.2
I can get other USB devices to work on the Nexus using the same OTG cable, for example Logitech MX Revolution wireless mouse, Xbox 360 controller and USB flash drives.
Same problem
I have the same issue with a stock/non-rooted Nexus 7 (2013) and my Logitech unifying receiver. Sadly all I can really say is what did and didn't work.
Does work:
OTG adapter from monoprice.com
Trendnet Powered USB 2.0 Hub (TU2-700)
Microsoft Wireless Mouse 5000
Every USB flash drive I've tried has worked via the 'Nexus Media Importer' app (FAT/FAT32 devices). Even multiple plugged-in flash drives connected simultaneously via the USB hub works just fine.
Custom built USB 2.0 External Hard Drive (using a Nexstar enclosure and Western Digital 320GB hard drive; powered off USB hub)
Apple iPhone 4s (iOS 7) - The tablet called the phone a MTP device and viewed the media (pics) through the built-in Gallery app importer
Does NOT work:
Logitech unifying receivers - Specifically, I tried with the K360, K400 and K750 keyboards and a M510 mouse
USB 2.0 10/100 Ethernet Adapter from monoprice.com (no apparent model # but it's their PID#: 9468)
USB 2.0 Logitech C910 Webcam
USB Logitech Headset G330 ...I was just curious
So far compatibility seems arbitrary. I would have thought the Nexus 7 (2013) would have better compatibility with Logitech, a maker of Google TV's, versus Microsoft or even Apple but that has not been the case. If this is a bug, it's a big one considering the popularity of Logitech devices. Sadly, I personally don't even have a keyboard that will work.
Any more details about this problem? Surely this must be a driver issue, since I don't see any other reason why the unifying receiver would refuse to work on the new Nexus 7. As stated above by others, it works perfectly fine on other devices, including the stock rom running TF101 transformer tablet.
I'm running CM nightlies on my Nexus 7 and was really surprised to see that it doesn't work with my unifying kb & mouse
---------- Post added at 01:34 PM ---------- Previous post was at 01:14 PM ----------
Just tested with a different USB tester app - the receiver is obviously recognised. The OS can see it, and gets the device/vendor ID, and the device name... but no mouse cursor
http://i.imgur.com/moYVDet.png
http://i.imgur.com/OjFGzaw.png
Tested it with an older Logitech mouse that I have (doesn't use Unifying receiver), and that worked just fine..
http://i.imgur.com/aHdk6Qv.png
http://i.imgur.com/Z8qhoFr.png
But I need the new unifying one to work, mostly for the keyboard.
This issue is discussed here: http://forum.xda-developers.com/showthread.php?t=2233849
I'm also having trouble with this. My K400, which would be awesome for tablets, isn't able to work, for it uses a Logitech unifying receiver. It seems it's a simple fix within the kernel. I've tried flashing many different kernels for this device, yet none have added support for it. The device works well on my Galaxy S4, if that means anything.
We'll need to get ahold of one of the developers and hope they're willing to add in the necessary stuff to their kernel if we want to fix this.
Could it be that a current Nexus 7 dev has to integrate some of the patches listed in some of the roms posted here: http://forum.xda-developers.com/showthread.php?t=2233849 ?
mohitrocks said:
Could it be that a current Nexus 7 dev has to integrate some of the patches listed in some of the roms posted here: http://forum.xda-developers.com/showthread.php?t=2233849 ?
Click to expand...
Click to collapse
How can we ask them that?
Anyone found any update news on this issue:?
Marty
I can't help with the unifying remote but the sleep of the USB drive drive me nuts too I was recommended this app and it worked perfectly
https://play.google.com/store/apps/details?id=com.MI.otglock
Sent from my HTC One X using Tapatalk now Free
The Logitech Wireless Touch Keyboard K400r works with its unifying receiver and OTG cable plugged into the original Nexus 7:
Android version 4.3
Build number JWR66Y
Kernel version 3.1.10-g1e8b3d8
But the above set up does not work with the 2013 version of the Nexus 7:
Android version 4.3
Build number JSS15R
Kernel version 3.4.0-g9e52a21
Bump
Solution Anyone?
Can't believe that none of the N7 developers are using a logitech device! !
I got a K400. Works fine with my nexus 5. Not with the nexus 7 2013
need an updated or custom kernel
It looks like we'll need an updated kernel, which has some extra CONFIG switches activated, per these threads:
http://forum.xda-developers.com/showthread.php?t=2233849#2
Has anyone had success with a custom kernel or rom that includes the kernel drivers for the Logitech unifying receiver?
It would be nice to have a minimally changed kernel that included support just for these new drivers:
http://androidforums.com/nexus-7-gen2-2013-all-things-root/770430-otg-cables-usb-logitech-k400r-wireless-keyboard-track-pad-area.html#post6153020
Updates?
Hey all
Was just trying out the Unifying Receiver today and was surprised and disappointed that it didn't work at all.
Has anyone managed to get it working since the last post?
P
no
After my last post, I contacted Google support. They said that they could not help, and Logitech would have to fix it. I tried to talk technical about kernel config switches, and I begged to talk to someone who understood what I was saying, but I basically was told they did not have resources to troubleshoot every possible accessory.
I contacted Logitech, and they said that Google was right. They claimed responsibility and stated they did not support Nexus 7 (2013). It would not work.
Bottom line: This accessory will only ever work in a custom ROM, if it works then.
If anyone has any luck with this accessory on a custom ROM or in any other setup, please let us know.
Earlier posts say it is recognized by the OS, but not Android API.
Then, all it needs should be the files to tell Android it is a mouse and keyboard, right? Seems like the only issueis our device didn't have it in its device list.
What file to mod, what line(s) to mod?
Has anyone found a fix for this? I just bought a Google Nexus 7 2013 - 32GB and am trying to use the unifying receiver with an OTG cable (Logitech devices are the K800 keyboard and Experience MX mouse). The unifying receiver works fine on my galaxy S5 but no luck on my nexus 7. I am currently unrooted running stock lollipop 5.0.2. I am prepared to unlock bootloader, root, and install custom kernel if necessary.
Any info to get the Logitech unifying receiver working on my Nexus 7 would be greatly appreciated.

Does the Samsung LAN/USB Hub ET-UP900 work?

Hi @ all
Does anyone knows, if the original Samsung LAN/USB Hub ET-UP900 will work with this tablet? Unfortunately, I'm not allowed to post a link.
I'd like to fit the tablet into my car, use the two usb-ports for sound-out and external hard-disk, use the micro-usb for charging the tablet while using the usb-ports at the same time. LAN port not needed.
Does this work?
Greetings from Switzerland
Patrick
I've been wondering that my self??
Anyone?
I have just checked on the Samsung German site and when you select our model of tablet it comes up and says not compatible. Although I personally would take that with a pinch of salt. Shame it was not a little cheaper then I would just buy it and try it lol.
---------- Post added at 04:26 PM ---------- Previous post was at 04:23 PM ----------
Also looking at the specs closer it is for use on the Note Pro so there is absolutely no reason why it would not work.
Assuming that too, but too risky to buy the tablet and the hub if something won't work after all...
So I'm hoping that anyone is able to check it out.
burningstep said:
Assuming that too, but too risky to buy the tablet and the hub if something won't work after all...
So I'm hoping that anyone is able to check it out.
Click to expand...
Click to collapse
So, guys, after a few tries with other devices like Multimedia Dock......cause i can't believe, that its not possible to use usb and charge at the same time, and ALL other devices definitely Don't work, I buy this at conrad electronic in munich, cause there I know, I can bring it back, and get money back, if it doesn't fit......and, I wonder very very much.....it works.....but I only tested usb and charge....and device check it as a usb connector....thats important.....I dont know why, but multimedia dock won't work, it doesn't be shown as a dock, no charging. ....but it works with note 3.....strange.....but now im looking for a way to connect it to LAN. If I connect it, nothing happens, no internet connection.....how it will work on pro? An app needed? Cause in settings are no options to configure a Lan Connection......I think, you will need ipv4 settings for.....or it is done very simple and there is a simple script in the firmware of pro devices? Anyone knows? Im searching the internet, but found nothing about......
Ah....and the reason for searching this device is: if you want to use a bluetooth keyboard, you'll have problema with bluetooth connection all the time....I figure out, pairing it new every time is better.....but at this device, wlan an bluetooth must be going over the same modem or hardware, cause if you use both, wlan and bluetooth for keyboard, you got massive trouble with internet connection and sometimes you cant connect to your access point.....really ****.....I try an usb keyboard , wireless from Microsoft with pad....and this works perfect. ...but then, you can't charge anymore.....with any hubs or something, no chance, and all older devices wont work.....damned.....does anyone have a solution for the bluetooth trouble? I try the bluetooth fix apps also,they help a but for bluetooth problems but not for the wlan disaster....whats the reason for ? The radio?......wil be happy for any answers.....
you running kit kat or?
After seen the spec and it probably wont work. ET-UP900 need USB 3.0 port and Note 2014 only have USB 2.0 port. Maybe some kind of USB 3 to USB 2 adapter might work.
The USB 3.0 Port is just for charging, for example with a wall plug...
sent from htc one...
I'm thinking it's more of an issue with drivers or kernel ....
That's why I'd love to hear from someone with KK installed
Galaxy Note 10.1 (2014 Edition) should work!
burningstep said:
Does anyone knows, if the original Samsung LAN/USB Hub ET-UP900 will work with this tablet [Galaxy Note 10.1 (2014 Edition)]?
Click to expand...
Click to collapse
Does it work on the Note 10.1 2014? Yes!
Click to expand...
Click to collapse
Answer at http://www.amazon.com/Does-work-Not...m_cd_ql_tlc_al?_encoding=UTF8&asin=B00J2N0GB4
thanks mate!
Really hope the info is legit
considering on ordering one now
Will let you know form firsthand exp when I get it
D
Just got my brand new official Samsung USB lan/Hub. And..... it doesn't work. The usb part of it seems to wok ok, but it doesn't detect ethernet. The user manual wants me to go into the settings --> more networks-- Ethernet connections... BUT I have no such setting
planing on playing around for a little while longer, but sorry to say lads, it doesn't seem to work.
suggestions?
Seems that I atleast have hit a wall with regards to getting this to work. Anyone have any bright ideas? or dark ideas for that mater??
Anyone actually managed to get this to work?
Ok, guys.....i think, you mean the adapter for Note pro? I got it, and it works. .... first, i bought this, cause it was the only USB adapter, that charge and using usb at the same time with p600........... and then i try to get Ethernet work. ...... the thing is, you have to know some things about ip4 connections, this is a kind different to wifi connections. ...... but i can offer you good news, the adapter works. The thing is, the firmware of p600/605 isn't modified to say the apps, they can connect to Internet with ethernet. ..
With the Adapter, the connection works, if you look to your router, you will find your device in Lan network. ......
What you need, are two things. ..... first, the app "ethernet" from play store (need root), that gives your device the right ip address, subnet mask and the gateway. .... (you don't have to do anything, just start the app, and press "enable")...... and the second one ist xposed framework and the module "hack connectivity", this little tool will say all apps to listen also to Ethernet Routing, not only wifi....... for me, this ,works like a charm, if i come to office, i plug the adapter in, with a wireless keyboard usb plug, Lan connected and also a cable to charge my note 3........ than i just enable the ethernet app, and change keyboard to my own for external keys (external keyboard helper), and that's all, so i have Lan Internet (4 times faster than wifi), have connection to my pc, and a external keyboard and mouse. ..... that's perfect. ....
If I'm finished, i plug the adapter off, and disable ethernet app, it changes automatically to wifi. ........
For generally information : Android already have ethernet drivers enabled from source, also in Samsung firmware, eth0 is working, the thing is, the apps are just programmed to listen to Wifi only. ....... don't know why, cause it's just one simple parser line to get this working.....
OK, on a mobile, it's not so interesting to havea Lan connection, but on a tablet, this will really good and fast. ....
Try this and habe fun. ... but i don't understand, why Samsung have the pins of the 10.1 204 so stupid organized, that all docking stations and usb adapters don't work with charging and usb at same time. .... the note 3 Multimedia Dock will not be detected as a dock. ....... that's so stupid. ....... shame on Samsung. ... if this was my company, i will fire the engineers at the same day if they make such a ****..........
Gesendet von meinem SM-P600 mit Tapatalk
atonal said:
Ok, guys.....i think, you mean the adapter for Note pro? I got it, and it works. .... first, i bought this, cause it was the only USB adapter, that charge and using usb at the same time with p600........... and then i try to get Ethernet work. ...... the thing is, you have to know some things about ip4 connections, this is a kind different to wifi connections. ...... but i can offer you good news, the adapter works. The thing is, the firmware of p600/605 isn't modified to say the apps, they can connect to Internet with ethernet. ..
With the Adapter, the connection works, if you look to your router, you will find your device in Lan network. ......
What you need, are two things. ..... first, the app "ethernet" from play store (need root), that gives your device the right ip address, subnet mask and the gateway. .... (you don't have to do anything, just start the app, and press "enable")...... and the second one ist xposed framework and the module "hack connectivity", this little tool will say all apps to listen also to Ethernet Routing, not only wifi....... for me, this ,works like a charm, if i come to office, i plug the adapter in, with a wireless keyboard usb plug, Lan connected and also a cable to charge my note 3........ than i just enable the ethernet app, and change keyboard to my own for external keys (external keyboard helper), and that's all, so i have Lan Internet (4 times faster than wifi), have connection to my pc, and a external keyboard and mouse. ..... that's perfect. ....
If I'm finished, i plug the adapter off, and disable ethernet app, it changes automatically to wifi. ........
For generally information : Android already have ethernet drivers enabled from source, also in Samsung firmware, eth0 is working, the thing is, the apps are just programmed to listen to Wifi only. ....... don't know why, cause it's just one simple parser line to get this working.....
OK, on a mobile, it's not so interesting to havea Lan connection, but on a tablet, this will really good and fast. ....
Try this and habe fun. ... but i don't understand, why Samsung have the pins of the 10.1 204 so stupid organized, that all docking stations and usb adapters don't work with charging and usb at same time. .... the note 3 Multimedia Dock will not be detected as a dock. ....... that's so stupid. ....... shame on Samsung. ... if this was my company, i will fire the engineers at the same day if they make such a ****..........
Gesendet von meinem SM-P600 mit Tapatalk
Click to expand...
Click to collapse
Could you post a model number for the Note Pro adapter? I have been looking through Google and went to the Samsung site. I can not find it.
Sent from my SM-N900V
It is calles LAN/USB Hub ET-UP900.....
where can I find the module: hack connectivity?
Hallo Jaytronics
What you need, are two things. ..... first, the app "ethernet" from play store (need root), that gives your device the right ip address, subnet mask and the gateway. .... (you don't have to do anything, just start the app, and press "enable")...... and the second one ist xposed framework and the module "hack connectivity", this little tool will say all apps to listen also to Ethernet Routing, not only wifi.......
Click to expand...
Click to collapse
I was wondering, where I can find the modul: hack connectivity? I was locking on the modules... I did not found it.... Can you tell me where it is...? and its exact name?
Thanks
I got this ET-UP900 adapter working with a SM-C115 by compiling a custom kernel. If you add the right drivers you can probably run use it with most devices.
During the build process of the kernel you run "make menuconfig". Here you select "Device Drivers" > "Network Device Support" > "USB Network Adapters". Include the "Multi-purpose USB Networking Framework" and "SMSC LAN95XX base USB 2.0 10/100 ethernet devices". If you add those as module you got to load them with "insmod mii.ko; insmod usbnet.ko; insmod smsc95xx.ko" in this order.
My current problem with this is that the device is not carging through the adapater. I guess there is another driver or option missing but I am still looking into this.
atonal said:
Ok, guys.....i think, you mean the adapter for Note pro? I got it, and it works. .... first, i bought this, cause it was the only USB adapter, that charge and using usb at the same time with p600........... and then i try to get Ethernet work. ...... the thing is, you have to know some things about ip4 connections, this is a kind different to wifi connections. ...... but i can offer you good news, the adapter works. The thing is, the firmware of p600/605 isn't modified to say the apps, they can connect to Internet with ethernet. ..
With the Adapter, the connection works, if you look to your router, you will find your device in Lan network. ......
What you need, are two things. ..... first, the app "ethernet" from play store (need root), that gives your device the right ip address, subnet mask and the gateway. .... (you don't have to do anything, just start the app, and press "enable")...... and the second one ist xposed framework and the module "hack connectivity", this little tool will say all apps to listen also to Ethernet Routing, not only wifi....... for me, this ,works like a charm, if i come to office, i plug the adapter in, with a wireless keyboard usb plug, Lan connected and also a cable to charge my note 3........ than i just enable the ethernet app, and change keyboard to my own for external keys (external keyboard helper), and that's all, so i have Lan Internet (4 times faster than wifi), have connection to my pc, and a external keyboard and mouse. ..... that's perfect. ....
If I'm finished, i plug the adapter off, and disable ethernet app, it changes automatically to wifi. ........
For generally information : Android already have ethernet drivers enabled from source, also in Samsung firmware, eth0 is working, the thing is, the apps are just programmed to listen to Wifi only. ....... don't know why, cause it's just one simple parser line to get this working.....
OK, on a mobile, it's not so interesting to havea Lan connection, but on a tablet, this will really good and fast. ....
Try this and habe fun. ... but i don't understand, why Samsung have the pins of the 10.1 204 so stupid organized, that all docking stations and usb adapters don't work with charging and usb at same time. .... the note 3 Multimedia Dock will not be detected as a dock. ....... that's so stupid. ....... shame on Samsung. ... if this was my company, i will fire the engineers at the same day if they make such a ****..........
Gesendet von meinem SM-P600 mit Tapatalk
Click to expand...
Click to collapse
I have a Samsung Galaxy Tab 3 10" P5200. I don't want to go buying this adapter and its not compatible with it so do you think it can work?
Hi atonal
Thanks for you information!!!
I have some Questions:
I tried all of this buttons, but... nothing... Perhabs I have the false Module???
Can you send me an Link, where I could download the-you-mentioned-Modul???
atonal said:
first, the app "ethernet" from play store (need root), that gives your device the right ip address, subnet mask and the gateway. .... (you don't have to do anything, just start the app, and press "enable")
Click to expand...
Click to collapse
a) Ethernet app is funcioning! Super
atonal said:
...... and the second one ist xposed framework and the module "hack connectivity", this little tool will say all apps to listen also to Ethernet Routing, not only wifi....... for me, this ,works like a charm...
Click to expand...
Click to collapse
b) hack connectivity ("Service, 1.4"? I gues?)
The modul showes me three categories:
Refresh-> Refresh-button
Hack-> Wifi, Mobile and Desactivate-Button
traces->Activatea and Desactivate-Button
atonal said:
For generally information : Android already have ethernet drivers enabled from source, also in Samsung firmware, eth0 is working, the thing is, the apps are just programmed to listen to Wifi only. ....... don't know why, cause it's just one simple parser line to get this working.....
Click to expand...
Click to collapse
Perhabs you know somebody who could know how to change the source or direct in the app the connetcion-way??
Once more Thank you!

Categories

Resources