-
-
Notifications
You must be signed in to change notification settings - Fork 4
Closed
Labels
conclusion: resolvedIssue was resolvedIssue was resolvedtopic: codeRelated to content of the project itselfRelated to content of the project itselftype: imperfectionPerceived defect in any part of projectPerceived defect in any part of project
Description
When run on Ubuntu 20.04, serial-discovery is finding the /dev/ttyS* placeholder ports.
Looks like the go-serial library is supposed to check for this, but it seems to not be working.
https://github.com/bugst/go-serial/blob/f344e5f764a882b93ba5e38988551cbb2186e948/serial_unix.go#L285
./serial-discovery
LIST
{
"eventType": "command_error",
"message": "First command must be HELLO, but got 'LIST'",
"error": true
}
HELLO 1 "manual run"
{
"eventType": "hello",
"message": "OK",
"protocolVersion": 1
}
START
{
"eventType": "start",
"message": "OK"
}
LIST
{
"eventType": "list",
"ports": [
{
"address": "/dev/ttyS8",
"label": "/dev/ttyS8",
"protocol": "serial",
"protocolLabel": "Serial Port",
"properties": {}
},
{
"address": "/dev/ttyS9",
"label": "/dev/ttyS9",
"protocol": "serial",
"protocolLabel": "Serial Port",
"properties": {}
},
{
"address": "/dev/ttyS0",
"label": "/dev/ttyS0",
"protocol": "serial",
"protocolLabel": "Serial Port",
"properties": {}
},
{
"address": "/dev/ttyS2",
"label": "/dev/ttyS2",
"protocol": "serial",
"protocolLabel": "Serial Port",
"properties": {}
},
{
"address": "/dev/ttyS3",
"label": "/dev/ttyS3",
"protocol": "serial",
"protocolLabel": "Serial Port",
"properties": {}
},
{
"address": "/dev/ttyS7",
"label": "/dev/ttyS7",
"protocol": "serial",
"protocolLabel": "Serial Port",
"properties": {}
},
{
"address": "/dev/ttyS6",
"label": "/dev/ttyS6",
"protocol": "serial",
"protocolLabel": "Serial Port",
"properties": {}
},
{
"address": "/dev/ttyACM0",
"label": "/dev/ttyACM0",
"protocol": "serial",
"protocolLabel": "Serial Port (USB)",
"properties": {
"pid": "0x0483",
"serialNumber": "5393790",
"vid": "0x16c0"
}
},
{
"address": "/dev/ttyS1",
"label": "/dev/ttyS1",
"protocol": "serial",
"protocolLabel": "Serial Port",
"properties": {}
},
{
"address": "/dev/ttyS4",
"label": "/dev/ttyS4",
"protocol": "serial",
"protocolLabel": "Serial Port",
"properties": {}
},
{
"address": "/dev/ttyS5",
"label": "/dev/ttyS5",
"protocol": "serial",
"protocolLabel": "Serial Port",
"properties": {}
}
]
}
Metadata
Metadata
Assignees
Labels
conclusion: resolvedIssue was resolvedIssue was resolvedtopic: codeRelated to content of the project itselfRelated to content of the project itselftype: imperfectionPerceived defect in any part of projectPerceived defect in any part of project