All Projects → zmitchell → async-serial

zmitchell / async-serial

Licence: Apache-2.0, MIT licenses found Licenses found Apache-2.0 LICENSE-APACHE MIT LICENSE-MIT
Example code using asyncio, pyserial, and pyserial-asyncio

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to async-serial

CanSat-Ground-station
Code for a CanSat or OBCs GUI ground station where different sensor data are displayed in real time. No sensors needed to try it.
Stars: ✭ 55 (+19.57%)
Mutual labels:  serial, pyserial
TrialLicensing
Swift framework to deal with licensing and time-based trial periods in macOS apps.
Stars: ✭ 36 (-21.74%)
Mutual labels:  serial
Adalight Fastled
Adalight with FastLED support
Stars: ✭ 232 (+404.35%)
Mutual labels:  serial
convey
Communication through a serial port or named pipe
Stars: ✭ 46 (+0%)
Mutual labels:  serial
Nodemcu Tool
🔧 Upload + Manage Lua files on NodeMCU
Stars: ✭ 248 (+439.13%)
Mutual labels:  serial
stm8s-sdcc-examples
Example codes using sdcc to target STM8S MCUs.
Stars: ✭ 31 (-32.61%)
Mutual labels:  serial
Wmi Static Spoofer
Spoofing the Windows 10 HDD/diskdrive serialnumber from kernel without hooking
Stars: ✭ 199 (+332.61%)
Mutual labels:  serial
SVisual
Monitoring and record(save) of data for Arduino and STM32
Stars: ✭ 21 (-54.35%)
Mutual labels:  serial
ckwin
C-Kermit for Windows - scriptable internet and serial communications with terminal emulation
Stars: ✭ 35 (-23.91%)
Mutual labels:  serial
neato-serial
Python serial interface for Neato robot vacuum cleaners. Testing on XV Signature Pro, should work on others.
Stars: ✭ 39 (-15.22%)
Mutual labels:  serial
Huhnitor
Intergalactic serial monitor for ESP8266 Deauther
Stars: ✭ 265 (+476.09%)
Mutual labels:  serial
LibSerialPort.jl
Julia wrapper for the libserialport c library
Stars: ✭ 54 (+17.39%)
Mutual labels:  serial
EspBuddy
Wrapper to easily upload (OTA or Serial), backup, batch query, monitor ESP8266 boards using Esptool.py, Espota.py and Platformio
Stars: ✭ 47 (+2.17%)
Mutual labels:  serial
Saxi
Tools & library for driving the AxiDraw pen plotter
Stars: ✭ 234 (+408.7%)
Mutual labels:  serial
ESP8266
ESP8266 WiFi module Library for Arduino
Stars: ✭ 31 (-32.61%)
Mutual labels:  serial
Ohsce
PHP HI-REL SOCKET TCP/UDP/ICMP/Serial .高可靠性PHP通信&控制框架SOCKET-TCP/UDP/ICMP/硬件Serial-RS232/RS422/RS485 AND MORE!
Stars: ✭ 206 (+347.83%)
Mutual labels:  serial
arduivis
a bi-directional communication paradigm for programming languages & microcontrollers
Stars: ✭ 48 (+4.35%)
Mutual labels:  serial
jrxtx
The Java serial communication library.
Stars: ✭ 74 (+60.87%)
Mutual labels:  serial
serial2mqtt
Serial to MQTT adapter serivce
Stars: ✭ 21 (-54.35%)
Mutual labels:  serial
Quad-Serial
Quad serial project with FTDI CI's, Isolation and 1.8~5.5v UART port.
Stars: ✭ 17 (-63.04%)
Mutual labels:  serial

Async Serial

This is example code showing you how to do asynchronous serial communication such as ASCII-over-serial, as is common in scientific settings. There is an accompanying article here:

Usage

This code relies on the experimental pyserial-asyncio library, which at this time only supports Unix-based systems (Linux, macOS, etc). As explained in the article, you'll need the tool socat to create virtual serial ports so that you don't need a real device to try out the code.

Install the dependencies

Clone this repository:

git clone https://github.com/zmitchell/async-serial.git

The dependencies are managed with pipenv, the new officially sanctioned packaging tool for Python. Install the dependencies via:

pipenv install

This will create a virtual environment and install the dependencies listed in the Pipfile into it.

Run the code

You run the code in the virtual environment created by pipenv via

pipenv run python3 async_serial_protocol.py

To run one of the other programs, simply replace async_serial_protocol.py with the name of the program.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].