-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using USB Serial Facade #2
Comments
lease check below in the document (USBHostSerialFacade.md):
BTW, What device you use? Some tablets grab the usb-devices in kernel level. |
Thank you for your reply. I am afraid I don't understand what "USB serial devices were not handled by Android kernel" means. I am under the impression that with the USBHostSerialFacade we should be able to use the USB port on android devices just as the Java android usb module, No? |
oh, no I forget to enable USB Facade in FacadeConfiguration.java. |
Thanks. Please let me know and I will be happy to test it again. |
I fixed to enable facade and binary is now updated: [https://github.com/kuri65536/sl4a/commit/58dea62a878d1270ebca6b5b18d8d97aeb9b3eb7] My question is what the serial device did you want to use, so BTW, handled by kernel is shown in app as above (devices in linux tab):: https://lh4.ggpht.com/XtDQ1Uo8zMfBLl9LLhh8HLBhObZVbLRvdLMwRz7G_dQIo2yLisBfIR0AUdYiBuJML3Q=h900 The devices in linux tab will not be handled from Android USB API. |
Thanks. I have just tried to connect my USB flash disk and at least it recognized it now but of course read or write doesn't work. I am planning to try it with my PIC18F4550's USB. Let's see what happens. I will let you know about it. If you know more about this, I will be grateful if you share it with me. |
Oh and can you please put the help file on using the usb facade here? |
|
I tried it with PIC18F4550. It does pick up the device (device id, vendor id) but actual connection and transfers do not seem to work. Any ideas? |
Let me know about your device status.
In this (Android USB Host) system, USB Implementation must be written in java code. |
close this is old post. |
I am using the SL4a 5x04 and Python 2.7.9 onn my Nexus 7 (android 5.1) and am trying to access the USB with the example script given here: https://github.com/kuri65536/sl4a/blob/master/android/USBHostSerialFacade/samplescripts/testpl2303.py
However, android.usbserialGetDeviceList() gives an error saying that the RPC is not recognized. The exact error is:
Result(id=1, result=None, error=u'com.googlecode.android_scripting.rpc.RpcError: Unknown RPC.')
I used the latest releases for both SL4A and Python available on GitHub.
Any hints?
The text was updated successfully, but these errors were encountered: