Python操作串口:pyserial
pyserial:用Python操作串口,是python進行硬件進行操作不可或缺的一個庫。
Features
- 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. </ul> </div>
- Python 2.3 or newer, including Python 3.x
- ctypes extension on Windows (is in standard library since Python 2.5+)
- “Java Communications” (JavaComm) or compatible extension for Java/Jython
Requirements
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!