Skip to main content

A simple cross platform serial terminal in pure wxPython

Project description

License: BSD, see README.TXT

Changes: | 1.1 Original Release | 1.2 Added ‘back door’ socket server | 1.3 Separated newline conversion on tx and rx | 1.4 Added dependency to csFIFO

Usage:

I’ve tested it on Windows XP, Windows 7 and Linux/Ubuntu under Python 2.6.7 and 2.7.3, though no warranty is given for it’s correct operation. It may work with older Python versions and on other operating systems.

It now supports a socket server so you can connect to it remotely via TCP.

The port parameter now supports urls from pySerial, e.g.

port=socket://localhost:12345

From the command line:

usage: wxTerminal.py [-h] [-port PORT] [-baud BAUD] [-xon] [-rts]
                    [-timeout TIMEOUT] [-echo] [-D]
                    [-KBNONE | -KBCR | -KBLF | -KBCRLF | -KBLFCR]
                    [-SPNONE | -SPCR | -SPLF | -SPCRLF | -SPLFCR]
                    [-5 | -6 | -7 | -8]
                    [-stop {1,1.5,2}] [-None | -Odd | -Even | -Mark | -Space]
                    [-snoopserver] [-lockKB]
e.g.
wxTerminal.py -h
wxTerminal.py <PORT> [other settings]
Simply wxTerminal.py on it's own pops up a configuration dialog

From python:

import wxTerminal
wxTerminal.Terminal(port="/dev/ttyS0")  #Will open /dev/ttyS0 with default settings

or

import wxTerminal
t=wxTerminal.Termina(port="/dev/tyUSB0",baudrate=115200,snoopserver=True)

or

import wxTerminal
wxTerminal.Terminal() #Will bring up a port setup dialog

Other keyword parameters:

baudrate      Sets the serial baud rate
bytesize      Sets size of Tx/Rx serial characters
parity        Sets serial parity
stopbits      Sets number of stop bits
rtscts        Enables hardware flow control
xonxoff       Enables software flow control
timeout       Alters serial timeout
echo          Enables local echo
unprintable   TBD
sp_newline    Inbound newline translation
kb_newline    Outbound newline translation
snoopserver   Enable a telnet server (port 56712)
PortSettings  A dictionary with keys/values from the above list
lockKB        Lock keyboard input (useful for snooped connections)

Dependencies:

wxPython
pySerial
Python >2.6.3
csFIFO

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

wxTerminal-1.4-py2.7.egg (38.8 kB view details)

Uploaded Egg

wxTerminal-1.4-py2.6.egg (38.9 kB view details)

Uploaded Egg

File details

Details for the file wxTerminal-1.4-py2.7.egg.

File metadata

  • Download URL: wxTerminal-1.4-py2.7.egg
  • Upload date:
  • Size: 38.8 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for wxTerminal-1.4-py2.7.egg
Algorithm Hash digest
SHA256 e3aefd326cdec9b46864508f1bfc7ce921bedc350b3ca6a3aee2f9f49347f98a
MD5 c7ed96f6b0044ee7fcb3149426a1b139
BLAKE2b-256 4ed0f8dd874f58e2465424c4ee4d0a0819248b0f4aa7fe2fcc4d473182bad0be

See more details on using hashes here.

File details

Details for the file wxTerminal-1.4-py2.6.egg.

File metadata

  • Download URL: wxTerminal-1.4-py2.6.egg
  • Upload date:
  • Size: 38.9 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for wxTerminal-1.4-py2.6.egg
Algorithm Hash digest
SHA256 8a51c230ebe0da52e30d34edefb420a05f6a3e04bd0c8c9dc4d808a29a7e5619
MD5 0e51ce7cb049dbbe563d18624364fe56
BLAKE2b-256 68140965af110aaef8e31bfd92f78e0c3451ac027c8016dfccc8c41a459424e6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page