Hi,
Android Dev Noob and just looking at the SDK I have this question which probably someone will be able to tell be straight away.
I want to relay USB Host port data to a USB accessory port.
I am looking at the USB Host APIs >= Andriod 3.1
What I want to do is be able to relay the keyboard, mouse and touchscreen that I have connected on the host port and relay that to the OTG.
So here is my noob questions before I waste loads of time.
1... Is it possible to create device manifests on the fly.
I was thinking I could just make devices connected on the host appear as if they are on the accessory port.
If not then I guess I could create some default manifests and pick the most relevant.
2... This is hardware related but many tablets and android boxes have separate usb host & otg ports?
It is possible to have a host and accessory going at the same time.
This might makes things a little easier as the rationale is that I have a windows 8 machine and an RK3288 android box and I want to share the keyboard, mouse and touchscreen.
Video is easy as I can just swap the input between pc & hdmi.
I was thinking if I plugged all my devices into android I could just have a hot Key to redirect to windows 8 or don't capture and use devices on android.
I thought it might be a much simpler way without network needs and have read there are gesture problems with KVM products such as Synergy.
What do you think is it possible, does anyone know if this has already been done and there is an app?
Also if you have any better ideas or some pointers where to start all will be welcome.
Many Thanks
Stuart
Related
It is my understanding that nobody has yet managed to successfully hook up a USB keyboard to an HTC Dream yet, or any other android phone. I doubt this is due to some hardware limitation as USBInput has recently been released for Windows Mobile phones (http://www.teksoftco.com/index.php?section=products&platform=1&pid=18). In fact, the Linux kernel has an HID driver built in so getting USB keyboard support on android should definitely be possible.
Would anyone know either of a project to realise the above, or anyone who might be interested in doing this?
I dont think G1 has USB hosts
and
I perfer Bluetooth Keyboard and mouse support (this seems more reasonable~)
Actually it is said to have usb host capability, but the kernel tree available for the htc dream has nothing to enable it. Documentation from Qualcomm will likely be required in order to make use of the feature.
hello everyone,
Can anyone make an application which sends ASCII code via bluetooth to a PC or a bluetooth module??
I really need it for my mechatronics project.
Thanks before
Does it have to be Bluetooth? You might be able to cobble something together over USB with the USB host driver.
I'd like wireless communication for the system since cable is kinda out of date...
But when time is running out... I guess USB will be OK. But for now, since I still have plenty of time, I'd go with wireless.
You could use the chroot method and install Ubuntu on your Nexus One. I don't know if it exposes the phone's Bluetooth interface, but it might be worth looking at since you could code up anything you want in any language if that were the case.
ermmm... it's kinda advance...
any URL to the guide maybe???
is there no ordinary apps or so?
Basic serial over bluetooth is done using the RFCOMM profile, details on how to write an app can be found here:
http://developer.android.com/guide/topics/wireless/bluetooth.html
I'd guess you open a socket to the destination machine, just like normal network programming, just over bluetooth rather than tcp. Here is a stackoverflow article on the subject
http://stackoverflow.com/questions/...-sdp-connection-to-a-rs232-adapter-in-android
....
I'll try my best to understad it
complete noob on java programing here T^T
After searching and not finding what I was looking for, I always go to XDA. What android phones from Verizon have usb hosting capabilities. Specifically I want to connect and external hard drive to transfer files. I know you're probably wondering why I just don't use a computer, well my 4 year old son made my computer unusable. Thanks in advance for any help.
Sent from my DINC2
Just look at the market
Search: "usb host"
First result is okay
The problem is:
- Your hardware need to support it
- You need to be root.
But you can try!
---------------------------------
Fernando Setien
I've tried the usb host controllers app, but that was a no go. I have an incredible 2 that is rooted. I should have included this in my first post, but I failed to.
Sent from my DINC2
Also the kernel needs to support it and no stock kernel does that I know of.
Supposedly, Android 3.1 and newer support USB host mode. In some cases you'll need special adapters and/or a powered USB hub. Unfortunately, I'm too new of a user to post outside links (the forum won't let me), but there's much documentation on the Android developer site regarding host mode v. accessory mode, and at least one article/forum thread showing an Android 3.1 tablet with an Android 2.2 phone plugged into it, the tablet reading the phone's logs over the USB connection.
In other words, it's possible, but hardware limitations may make it difficult, as will whatever version of Android you're using.
YellowApple said:
Supposedly, Android 3.1 and newer support USB host mode. In some cases you'll need special adapters and/or a powered USB hub. Unfortunately, I'm too new of a user to post outside links (the forum won't let me), but there's much documentation on the Android developer site regarding host mode v. accessory mode, and at least one article/forum thread showing an Android 3.1 tablet with an Android 2.2 phone plugged into it, the tablet reading the phone's logs over the USB connection.
In other words, it's possible, but hardware limitations may make it difficult, as will whatever version of Android you're using.
Click to expand...
Click to collapse
I am running a ICS and it is not enabled by default. It maybe on Tablets but not mobile phones. A search will lead you to threads about it asking for it to be add to the kernel but you remove options when you do and there has not been alot of want for it.
Native support
At least Samsung Galaxy SII and Note does usb Host with the default ROM. You can see with cable you need (witch could be an issue too) on many blogs.
Hello everyone. I am an enthusiast on custom software hacks on Android and various other platforms. I know this question has been asked, but read to the end first before you answer.
What if you didn't want to use your device's data connection to tether your computer because you have available wifi, but no wireless card on your computer?
Is it possible to use your phone as your computer's wifi receiver?
And finally, would it be possible to bring this solution to both PC's and Macs alike? I know a solution exists for windows, and I ask this because I have a "Mac" as my primary system.
Thank you in advance for any help and solutions this community can provide.
I'm sure this is possible software and hardware-wise, but why? Don't they have little USB->Wifi adapters for around $20 usd?
Well, yes. But the point is to make the most out of the available hardware.
Don't get me wrong; I will probably go out and buy an adapter soon anyways. My understanding is that OSX has built-in compatibility with most adapters already.
Hello i just signed up to forum so i couldnt put this in the appropriate forum but my question is
I would like to make a small app to control a usb to serial adapter that has 4 relays built in that i would like to switch on and off. i was thinking usb to rs232 adapter i saw ftdi has an android samples and hardware that may be suitable i also saw several usb serial adapters on fleabay i couldnt put links to any of it being new and other places but im not sure what would be best suited for the task. i have eclipse running along with android studio but im no programmer by any stretch of the word im able to mostly edit code or do things along that line. I did use the app inventer tool on mit website to make a concept apk but thats as far as i got so far. anyone offering any info on where to start on the hardware side and also im not sure of what to use as far as a designer/programmer/compiler the only programming i have done has been visually so something along those lines would be great.
the concept app was 4 on off sliders one for each relay
any advice or help appreciated thanks
Ryan
I wanted to add some more info my device is a in the family of AN-21 U 4.2.2 car stereo dvd nav unit devices from china i am not rooted but already have one ftdi usb serial device installed and working(obd interface) so my feeling is im all set with the ftdi drivers.
moderator can this be moved to appropriate forum? or do I need to make 10 posts to be able to make one there myself?