done1212 / android-serialport-api

Automatically exported from code.google.com/p/android-serialport-api
0 stars 0 forks source link

ttyUSB0 file doesn't exist #32

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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 commented 8 years ago
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 commented 8 years ago
/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