Skip to content
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

ttyUSB0 file doesn't exist #32

Closed
GoogleCodeExporter opened this issue Apr 11, 2016 · 2 comments
Closed

ttyUSB0 file doesn't exist #32

GoogleCodeExporter opened this issue Apr 11, 2016 · 2 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. run SerialPort API 1.1 with /dev/ttyUSB0 as selected port
2. Open console
3. "Error: The serial port cannot be opened for an unknown reason"

What is the expected output? What do you see instead?


What version of the product are you using? On what operating system?
AOC MW0821 tablet with android 2.3

Please provide any additional information below.
The device only recognizes the ttyUSB0 port if I turn it on with the 
USB-to-serial cable already plugged, and when I try to change the permissions 
on the adb console, it says that the file doesn't exist, which is correct, as 
the file for the ttyUSB0 isn't on /dev.

Original issue reported on code.google.com by francisc...@gmail.com on 13 Jul 2012 at 1:26

@GoogleCodeExporter
Copy link
Author

I've tested it again, and I noted that the ttyUSB0 appears when I connect the 
usb to serial cable on the device. I'll try changing permissions while 
everything is connected to see what happens.

Original comment by francisc...@gmail.com on 13 Jul 2012 at 7:16

@GoogleCodeExporter
Copy link
Author

/dev/ttyUSB* files are created dynamically when an USB to serial adapter is 
plugged. To dynamically modify the permission of this file, you can modify the 
init script of your device to something like that:

on device-added-/dev/ttyUSB0
 chmod 0666 /dev/ttyUSB0

I did not tested it by myself, and it seams the trigger "on device-added" has 
been removed from recent Android versions.

Please let me know if you have a solution to this issue.

Original comment by cedric.p...@gmail.com on 15 Nov 2012 at 3:38

  • Changed state: WontFix
  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant