{"id":4426447,"name":"github.com/simpleiot/serial","ecosystem":"go","description":"Package serial is a cross-platform serial library for the go language.\n\nThe canonical import for this library is go.bug.st/serial so the import line\nis the following:\n\nIt is possible to get the list of available serial ports with the\nGetPortsList function:\n\nThe serial port can be opened with the Open function:\n\nThe Open function needs a \"mode\" parameter that specifies the configuration\noptions for the serial port. If not specified the default options are 9600_N81,\nin the example above only the speed is changed so the port is opened using 115200_N81.\nThe following snippets shows how to declare a configuration for 57600_E71:\n\nThe configuration can be changed at any time with the SetMode function:\n\nThe port object implements the io.ReadWriteCloser interface, so we can use\nthe usual Read, Write and Close functions to send and receive data from the\nserial port:\n\nIf a port is a virtual USB-CDC serial port (for example an USB-to-RS232\ncable or a microcontroller development board) is possible to retrieve\nthe USB metadata, like VID/PID or USB Serial Number, with the\nGetDetailedPortsList function in the enumerator package:\n\nfor details on USB port enumeration see the documentation of the specific package.\n\nThis library tries to avoid the use of the \"C\" package (and consequently the need\nof cgo) to simplify cross compiling.\nUnfortunately the USB enumeration package for darwin (MacOSX) requires cgo\nto access the IOKit framework. This means that if you need USB enumeration\non darwin you're forced to use cgo.\n\nThis example prints the list of serial ports and use the first one\nto send a string \"10,20,30\" and prints the response on the screen.","homepage":"https://github.com/simpleiot/serial","licenses":"BSD-3-Clause","normalized_licenses":["BSD-3-Clause"],"repository_url":"https://github.com/simpleiot/serial","keywords_array":[],"namespace":"github.com/simpleiot","versions_count":14,"first_release_published_at":"2019-12-03T19:26:03.000Z","latest_release_published_at":"2022-02-21T15:04:00.000Z","latest_release_number":"v1.3.5","last_synced_at":"2026-04-14T06:58:51.102Z","created_at":"2022-05-24T14:14:07.396Z","updated_at":"2026-04-14T06:58:51.102Z","registry_url":"https://pkg.go.dev/github.com/simpleiot/serial","install_command":"go get github.com/simpleiot/serial","documentation_url":"https://pkg.go.dev/github.com/simpleiot/serial#section-documentation","metadata":{},"repo_metadata":{},"repo_metadata_updated_at":"2023-03-21T20:27:23.002Z","dependent_packages_count":0,"downloads":null,"downloads_period":null,"dependent_repos_count":0,"rankings":{"downloads":null,"dependent_repos_count":9.345852080216646,"dependent_packages_count":6.999148183520997,"stargazers_count":null,"forks_count":null,"average":8.172500131868823},"purl":"pkg:golang/github.com/simpleiot/serial","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/go/github.com/simpleiot/serial","docker_dependents_count":null,"docker_downloads_count":null,"usage_url":"https://repos.ecosyste.ms/usage/go/github.com/simpleiot/serial","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/go/github.com/simpleiot/serial/dependencies","status":null,"funding_links":[],"critical":null,"issue_metadata":null,"versions_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fsimpleiot%2Fserial/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fsimpleiot%2Fserial/version_numbers","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fsimpleiot%2Fserial/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fsimpleiot%2Fserial/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fsimpleiot%2Fserial/codemeta","maintainers":[]}