pySerial is a Python module which encapsulates the access for the serial port. It provides backends for Python running on Windows, Linux, BSD (possibly any POSIX compliant system), Jython and IronPython (.NET and Mono). The module named “serial” automatically selects the appropriate backend.
Installation:
pyserial
This installs a package that can be used from Python (import serial).
To install the module for all users on the system, administrator rights (root) is required..
From source (tar.gz or checkout)
http://pypi.python.org/pypi/pyserial Unpack the archive, enter the pyserial-x.y directory and run:
python setup.py install
Setuptools/PyPI
Alternatively it can be installed from PyPI, either manually downloading the files and installing as described above or using:
easy_install -U pyserial
Product's homepage
Here are some key features of "pySerial":
· Same class based interface on all supported platforms.
· Access to the port settings through Python properties.
· Support for different byte sizes, stop bits, parity and flow control with RTS/CTS and/or Xon/Xoff.
· Working with or without receive timeout.
· File like API with “read” and “write” (“readline” etc. also supported).
· The files in this package are 100% pure Python.
· The port is set up for binary transmission. No NULL byte stripping, CR-LF translation etc. (which are many times enabled for POSIX.) This makes this module universally useful.
· Compatible with io library (Python 2.6+)
· RFC 2217 client (experimental), server provided in the examples.
Requirements:
· Python
Download pySerial 2.6 Free
Tags: serial port , Python library , serial port access , Python , serial , library ,
·, python, module, port, etc, access, package, files, pyserial, byte, supported, posix, system, · file, timeout ·, receive timeout ·, timeout, receive timeout, file api, rts/cts, flow, and/or, control, parity, file

No comments:
Post a Comment