https://github.com/xtaci/serialpacket
net.PacketConn over RS232/LoRa
https://github.com/xtaci/serialpacket
Last synced: 4 months ago
JSON representation
net.PacketConn over RS232/LoRa
- Host: GitHub
- URL: https://github.com/xtaci/serialpacket
- Owner: xtaci
- License: mit
- Created: 2022-03-27T11:04:47.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-03-29T06:54:03.000Z (over 4 years ago)
- Last Synced: 2025-07-12T08:37:09.681Z (12 months ago)
- Language: Go
- Homepage:
- Size: 14.6 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# serialpacket
SerialPacket is a net.PacketConn implementation over RS232.
It's designed to work with [kcp-go](https://github.com/xtaci/kcp-go) to provide reliable transmission over [LoRa](https://en.wikipedia.org/wiki/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 PORT0="/dev/pts/5"
$ export PORT1="/dev/pts/6"
```