Hi, Addison wrote: > for temparately, > you can try "chomd 777 /dev/ttyS0" to see if it works or not. This is a temp hack. The best thing is change the owner of the process to open the device. I just ask to the list in how android assign process owner and I'm waiting for an answer Michael > > > > 2009/6/26 Elvis Dowson <[email protected] > <mailto:[email protected]>> > > > Hi, > I'm writing an android jni project to access the serial ports, > e.g. /dev/ttyS1, however, I get the following error: > > I/SerialLibrary( 1070): Opening serial port /dev/ttyS0 : baud rate= > 19200, bits = 8, parity = 0, stop bits = 1 > E/SerialLibrary( 1070): cssl: cannot open file > > What should I do to get the android jni library to access /dev/ttyS0? > The program works fine when I use it without android on the same > target, so I'm wondering if some specific permissions or something > extra needs to be set in order to allow an android jni project to gain > access to /dev/ttyS0? > > Elvis > > > > >
--~--~---------~--~----~------------~-------~--~----~ unsubscribe: [email protected] website: http://groups.google.com/group/android-porting -~----------~----~----~----~------~----~------~--~---
