bugst / go-serial

A cross-platform serial library for go-lang.
BSD 3-Clause "New" or "Revised" License
618 stars 188 forks source link

Serial port busy #106

Open lengnuan-v opened 3 years ago

lengnuan-v commented 3 years ago

Serial port busy

    var err error
    var port serial.Port
    if port, err = serial.Open(name, &serial.Mode{DataBits: 8, BaudRate: 9600}); err != nil {
        fmt.Println(1)
        return err
    }

port return nil

cmaglie commented 2 years ago

It's the serial port really "busy"? Do you have permissions to open? what's the value of name?