Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ikskuh/wifiserial
UART-to-Wifi converter based on an ESP32
https://github.com/ikskuh/wifiserial
Last synced: about 1 month ago
JSON representation
UART-to-Wifi converter based on an ESP32
- Host: GitHub
- URL: https://github.com/ikskuh/wifiserial
- Owner: ikskuh
- License: mit
- Created: 2024-03-11T19:22:40.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-03-11T20:02:28.000Z (8 months ago)
- Last Synced: 2024-05-17T11:43:11.002Z (6 months ago)
- Language: C++
- Size: 6.84 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# WifiSerial
Unholy combination of Arduino and ESP-IDF to create a primitive network-attached UART.
Features:
* Online reconfiguration
* Standard Port 23 for pure serial communications
* Configuration Port for changing parameters## Hardware + Pinout
I use a NodeMCU 32S, but it doesn't really matter, which ESP32 board you use.
You can use any ESP32 based hardware with the following pinout:| ESP GPIO | Function |
| -------- | -------------- |
| 1 | Debug/Prog TXD |
| 3 | Debug/Prog RXD |
| 16 | UART RXD |
| 17 | UART TXD |## Data Port
* TCP Port 23
* Only a single connection at a time.
* Everything sent is transmitted via the UART.
* Everything received via the UART is sent back to the host.## Configuration Port
* TCP Port 1337
* Only a single connection at a time.
* Line based protocol, accepts both CR and LF as command separator.
* Syntax is `key=value`
* Query the value by passing `key=?`
* Legal keys are:
* `baud`, takes an integer, current baud rate
* `mode`, takes a mode descriptor in the form of `8n1` (databits, parity, stop bits)
* databits from `5` to `8`
* parity is `e` (even), `o` (odd), `n` (none)
* stop bits is `1` or `2`## Build
Get PlatformIO and do:
```sh-session
[user@host] ~/wireless-uart$ pio run
…
[user@host] ~/wireless-uart$
```