# README
serialpacket
SerialPacket is a net.PacketConn implementation over RS232.
It's designed to work with kcp-go to provide reliable transmission over LoRa or other noisy channels.
Test:
$ socat -d -d pty,raw,echo=0 pty,raw,echo=0
2022/03/27 22:48:28 socat[14099] N PTY is /dev/pts/5
2022/03/27 22:48:28 socat[14099] N PTY is /dev/pts/6
2022/03/27 22:48:28 socat[14099] N starting data transfer loop with FDs [5,5] and [7,7]
$ export PORT1="/dev/pts/5"
$ export PORT1="/dev/pts/6"
# Functions
NewConn creates a net.PacketConn on a serial line.
NewSerialPacketAddr creates an address with given name and port.
# Constants
Frame Definition |MAGIC(4B) | LENGTH (1B) | RESERVE(1B) | DATA (LENGTH) | Max Packet Size: 240.
Frame Definition |MAGIC(4B) | LENGTH (1B) | RESERVE(1B) | DATA (LENGTH) | Max Packet Size: 240.
Frame Definition |MAGIC(4B) | LENGTH (1B) | RESERVE(1B) | DATA (LENGTH) | Max Packet Size: 240.
# Variables
No description provided by the author
No description provided by the author
# Structs
Conn is the packet connection definition for a serial connection.
SerialPacketAddr is the address definition in net.Addr.