# serial **Repository Path**: xsdai/serial ## Basic Information - **Project Name**: serial - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-04-03 - **Last Updated**: 2024-04-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # serial [![Build Status](https://travis-ci.org/goburrow/serial.svg?branch=master)](https://travis-ci.org/goburrow/serial) [![GoDoc](https://godoc.org/github.com/goburrow/serial?status.svg)](https://godoc.org/github.com/goburrow/serial) ## Example ```go package main import ( "log" "github.com/goburrow/serial" ) func main() { port, err := serial.Open(&serial.Config{Address: "/dev/ttyUSB0"}) if err != nil { log.Fatal(err) } defer port.Close() _, err = port.Write([]byte("serial")) if err != nil { log.Fatal(err) } } ``` ## Testing ### Linux and Mac OS - `socat -d -d pty,raw,echo=0 pty,raw,echo=0` - on Mac OS, the socat command can be installed using homebrew: ````brew install socat```` ### Windows - [Null-modem emulator](http://com0com.sourceforge.net/) - [Terminal](https://sites.google.com/site/terminalbpp/)