Hello All,
I am trying to use the JSerial lib in ubuntu with no success.
Anyone knows if I can use this Lib in Linux ?
I get an exception error when i try to open the com1 (its working and reported in system) /dev/ttyS0
And even a simple application to list all ports serial.listports returns a empty list. (works in Windows)
I have a RSR232 CardReader that I need to use, so any suggestions would be welcome.
If you want to run the application without using sudo constantly, you have to add your user to the correct group. In my case it is the dialout group (Ubuntu Server 16.04 LTS). To see what group your port belongs to you can issue
It's most likely a permission issue. Try running your application using sudo. In my case the jar is called serialtest.jar, so I use the command If you want to run the application without using sudo constantly, you have to add your user to the correct group. In my case it is the dialout group (Ubuntu Server 16.04 LTS). To see what group your port belongs to you can issue Example (in my case)
Now I just add myself to the group dialout with Then I log out and back in and voila, I can run the application without sudo.
i have some problem with my FriendlyAm NanoPc-T2 Andorid.
I can't access to /dev/ttyAMA3 from my App
To access i must sign Apk with Rom signature:
java -jar ./signapk.jar platform.x509.pem platform.pk8 ./SerialPortDemo.apk SerialPortDemo-Signed.apk
and add this in APK manifest : SetManifestAttribute(android:sharedUserId,"android.uid.system")
then install Apk using :
ADB install -r myapk-signed.apk