Skip to content

Serge45/mocktty

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

Mock tty device by using pyserial

Usage

  • pip install -r requirements.txt
  • python3 mocktty.py

console will print the name of created tty device, and then you can

  • send bytes to client via stdin, e.g. '\xF0\x00\xF7'
  • $ hexdump < <path_of_mock_tty_device> to get the buffered data in client
  • $ echo -n -e <bytes> > <path_of_mock_tty_device> to send bytes to master
  • data sent to master will output via stdout

About

A simple mock tty device for development

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages