Comments (3)
Yes, confirmed.
from serial-discovery.
This has been fixed with #38, and is already in production.
I'm working on another fix in the go-serial library, that allows checking if a serial port is fake or not without opening it (following your suggestion on libudev here) but it's mid-term because it requires a more involved change in the go-serial library.
from serial-discovery.
@PaulStoffregen are the ttySxx
accessible from your user?
From some tests on my local machine I see that if the port is not accessible the enumerator will (wrongly) list it:
$ cat /dev/ttyS0
cat: /dev/ttyS0: Permission denied
$ go run portlist/portlist.go
Port: /dev/ttyACM0
USB ID : 2341:0057
USB serial :
Port: /dev/ttyS0
Port: /dev/ttyS1
Port: /dev/ttyS10
Port: /dev/ttyS11
Port: /dev/ttyS12
Port: /dev/ttyS13
Port: /dev/ttyS14
Port: /dev/ttyS15
Port: /dev/ttyS16
Port: /dev/ttyS17
Port: /dev/ttyS18
Port: /dev/ttyS19
Port: /dev/ttyS2
Port: /dev/ttyS20
Port: /dev/ttyS21
Port: /dev/ttyS22
Port: /dev/ttyS23
Port: /dev/ttyS24
Port: /dev/ttyS25
Port: /dev/ttyS26
Port: /dev/ttyS27
Port: /dev/ttyS28
Port: /dev/ttyS29
Port: /dev/ttyS3
Port: /dev/ttyS30
Port: /dev/ttyS31
Port: /dev/ttyS4
Port: /dev/ttyS5
Port: /dev/ttyS6
Port: /dev/ttyS7
Port: /dev/ttyS8
Port: /dev/ttyS9
but if I give the correct permissions to the user everything is fine again:
$ cat /dev/ttyACM0
^C
$ go run portlist/portlist.go
Port: /dev/ttyACM0
USB ID : 2341:0057
USB serial :
can you check if this is your case?
I've prepared a fix here bugst/go-serial#135
from serial-discovery.
Related Issues (6)
- Latest serial-discovery release uses version lower than previous HOT 2
- `serial-discovery` process on Windows consumes lots of CPU
- Using a FT232R serial to USB adapter breaks serial-discovery HOT 2
- Occasionally, my Arduino Nano 33 BLE is not detected by the gRPC equivalent of `board list watch` after an upload HOT 1
- Add macos amd64 architecture
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 serial-discovery.