miaotao / android-serialport-api

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

No Devices Listed in Setup->Device #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Build the Project using eclipse in Ubuntu
2. Install the APK using adb
3. Run the serial port program and click setup, then click device

What is the expected output? What do you see instead?
I would expect to see a list of tty devices.  I'm not really sure as 
nothing shows up?

What version of the product are you using? On what operating system?
I am running on Android 1.5 on my own prototype Hardware.  I am using the 
standard android build system.  My system functions very well.  
My Linux kernel is 2.6.28.  
My build system is an Ubuntu Machine using eclipse.  The build process went 
smoothly.  
Please provide any additional information below.

I know there are some unknowns because you don't know what hardware I am 
using.  It is a custom platform based on Marvell PXA310 CPU.  
How does the APK find the list of serial devices?  is it possible it is 
looking in the wrong place?

I have been using ttyS0 as my console port.  I created a build with ttyS1 
and my original com port no longer works and the app still does not show 
any devices.  
Any help on getting it to see my tty devices would be appreciated.

Thanks

Original issue reported on code.google.com by matt.ros...@gmail.com on 11 May 2010 at 11:26

GoogleCodeExporter commented 9 years ago
I determined this was a problem with the name of my serial driver which has 2 
words separated by a space.  It was causing the parsing to fail.  quick hack 
fix = 

                            if ((w.length == 5) && (w[4].equals("serial"))){
                                        Log.d(TAG, "Found new driver: " + w[1]);
                                        mDrivers.add(new Driver(w[0], w[1]));
                                }
                            if ((w.length==6) && (w[5].equals("serial"))){
                                        Log.d(TAG, "Found new driver: " + w[1]);
                                        mDrivers.add(new Driver(w[1], w[2]));
                            }

Original comment by matt.ros...@gmail.com on 12 May 2010 at 1:48

GoogleCodeExporter commented 9 years ago
Maybe I should split the line using tabs instead of spaces.

Original comment by cedric.p...@gmail.com on 23 Oct 2011 at 9:36

GoogleCodeExporter commented 9 years ago
Fixed in SVN revision 35

Original comment by cedric.p...@gmail.com on 25 Oct 2011 at 9:48