Comments (6)
To solve this problem you must either run the program as root, add the current
user to the group that /dev/ttyUSB0 belongs to (mine is 'dialout', although
this didn't seem to work for me), or change permissions on the ttyUSB0 folder,
although this may change once the computer is restarted/device unplugged
eg. chmod -R 777 /dev/ttyUSB0
I've found you need to give 7's (read, write, and execute) for it to work. But
I am by no means an expert - if somebody has a better solution please feel free
to correct me
Original comment by [email protected]
on 28 Nov 2012 at 6:05
from java-simple-serial-connector.
I experienced the following with Ubuntu 12.10 (and also with 12.04 LTS):
On my system the culprit was modem-manager blocking the serial port after
plugging in my FTDI (USB virtual serial) device. I got the "Port busy"
exception for ~ 30 seconds. Then the port was accessible again. After a
"apt-get purge modemmanger" everything is fine now. The port is accessible
immediately after plugging the device.
Original comment by [email protected]
on 28 Nov 2012 at 10:09
from java-simple-serial-connector.
In case the problem was with COM1 AKA /dev/ttyS0
Using chmod -R 777 /dev/ttyS0 only solves the problem until reboot, because the
permissions will be reset.
using "ls -l /dev/ttyS0" I found out that the user group "dialout" has
permissions on the "file", so I just added my user to that group and my problem
was solved
Hope this helps
Original comment by [email protected]
on 6 Feb 2013 at 8:29
from java-simple-serial-connector.
I've resolved this problem with:
chmod -R 777 /dev/ttyS0
Thanks :)
Original comment by [email protected]
on 22 Feb 2013 at 2:47
from java-simple-serial-connector.
Original comment by [email protected]
on 11 Apr 2013 at 2:32
- Changed state: Done
from java-simple-serial-connector.
Hi every one, My name is Gopinath, i want connect weighbrige in ubuntu 10.04
via the serial port. i want to read the weight using Java. please any one help
me to do this.
Os: Ubuntu 10.04
Language : Java 1.7.0
Which library is easy to read, and how i can read the data, please assist me...
Thanks and Regards
Gopinath R
Original comment by [email protected]
on 1 May 2013 at 7:15
from java-simple-serial-connector.
Related Issues (20)
- From 2nd time onwards weight reading not working in linux
- Hundreds of wakeups per second wastes lots of power on small host system even with idle port (no datat flow)
- SerialPort should allow for method that return Inpu/Outputstream HOT 1
- Raspberry Pi serial over usb adapter reads data only once (Watchport/H sensor) using jssc 2.8.0.0
- Two java application is opening the same port
- Always port busy on 32 bit system
- EventThread is never terminated
- Ubuntu return an empty serial list HOT 2
- readBytes() wrong when get second message
- jssc stops working after a while on windows 7 HOT 1
- Driver won't work with real COM1 port
- High CPU load using jssc HOT 1
- SerialPortTimeoutException trown while result shows it returned correct value and amount of bytes HOT 1
- Unable to load on Minibian, Raspberry Pi 1 B HOT 3
- JVM terminates with signal 6 (abort) after several hours of use
- Stuck on waitEvents() method forever when no data is available
- Set Timeout and Port disconnect throw exception HOT 1
- Trouble getting reader to return text using readByte() HOT 1
- SerialPortEventListener returns invalid type
- In Windows 10 SOMETIMES (casually 2 or 3 times on 5) receive signal is NOT raised
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from java-simple-serial-connector.