Giter Site home page Giter Site logo

Comments (3)

PaulStoffregen avatar PaulStoffregen commented on July 23, 2024 1

Yes, confirmed.

image

from serial-discovery.

cmaglie avatar cmaglie commented on July 23, 2024 1

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.

cmaglie avatar cmaglie commented on July 23, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.