Pyserial

Latest version: v3.5

Safety actively analyzes 685838 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 7

3.5

----------------------
See above (3.5b0) for what's all new in this release

Bugfixes:

- spy: ensure bytes in write()

Bugfixes (posix):

- [540] serialposix: Fix inconsistent state after exception in open()

Bugfixes (win32):

- [530] win32: Fix exception for composite serial number search on Windows

Bugfixes (MacOS):

- [542] list_ports_osx: kIOMasterPortDefault no longer exported on Big Sur
- [545, 545] list_ports_osx: getting USB info on BigSur/AppleSilicon

3.5b0

------------------------
New Features:

- [411] Add a backend for Silicon Labs CP2110/4 HID-to-UART bridge.
(depends on `hid` module)

Improvements:

- [315] Use absolute import everywhere
- [351] win32: miniterm Working CMD.exe terminal using Windows 10 ANSI support
- [354] Make ListPortInfo hashable
- [372] threaded: "write" returns byte count
- [400] Add bytesize and stopbits argument parser to tcp_serial_redirect
- [408] loop: add out_waiting
- [495] list_ports_linux: Correct "interface" property on Linux hosts
- [500] Remove Python 3.2 and 3.3 from test
- [261, 285, 296, 320, 333, 342, 356, 358, 389, 397, 510] doc updates
- miniterm: add :kbd:`CTRL+T Q` as alternative to exit
- miniterm: suspend function key changed to :kbd:`CTRL-T Z`
- add command line tool entries ``pyserial-miniterm`` (replaces ``miniterm.py``)
and ``pyserial-ports`` (runs ``serial.tools.list_ports``).
- ``python -m serial`` opens miniterm (use w/o args and it will print port
list too) [experimental]

Bugfixes:

- [371] Don't open port if self.port is not set while entering context manager
- [437, 502] refactor: raise new instances for PortNotOpenError and SerialTimeoutException
- [261, 263] list_ports: set default `name` attribute
- [286] fix: compare only of the same type in list_ports_common.ListPortInfo
- rfc2217/close(): fix race-condition
- [305] return b'' when connection closes on rfc2217 connection
- [386] rfc2217/close(): fix race condition
- Fixed flush_input_buffer() for situations where the remote end has closed the socket.
- [441] reset_input_buffer() can hang on sockets
- examples: port_publisher python 3 fixes
- [324] miniterm: Fix miniterm constructor exit_character and menu_character
- [326] miniterm: use exclusive access for native serial ports by default
- [497] miniterm: fix double use of CTRL-T + s use z for suspend instead
- [443, 444] examples: refactor wx example, use Bind to avoid deprecated
warnings, IsChecked, unichr

Bugfixes (posix):

- [265] posix: fix PosixPollSerial with timeout=None and add cancel support
- [290] option for low latency mode on linux
- [335] Add support to xr-usb-serial ports
- [494] posix: Don't catch the SerialException we just raised
- [519] posix: Fix custom baud rate to not temporarily set 38400 baud rates on linux
- [509 518] list_ports: use hardcoded path to library on osx

Bugfixes (win32):

- [481] win32: extend RS485 error messages
- [303] win32: do not check for links in serial.tools.list_ports
- [430] Add WaitCommEvent function to win32
- [314, 433] tools/list_ports_windows: Scan both 'Ports' and 'Modem' device classes
- [414] Serial number support for composite USB devices
- Added recursive search for device USB serial number to support composite devices

Bugfixes (MacOS):

- [364] MacOS: rework list_ports to support unicode product descriptors.
- [367] Mac and bsd fix _update_break_state

3.4

------------------------
Improvements:

- miniterm: suspend function (temporarily release port, :kbd:`Ctrl-T s`)
- [240] context manager automatically opens port on ``__enter__``
- [141] list_ports: add interface number to location string
- [225] protocol_socket: Retry if ``BlockingIOError`` occurs in
``reset_input_buffer``.

Bugfixes:

- [153] list_ports: option to include symlinked devices
- [237] list_ports: workaround for special characters in port names

Bugfixes (posix):

- allow calling cancel functions w/o error if port is closed
- [220] protocol_socket: sync error handling with posix version
- [227] posix: ignore more blocking errors and EINTR, timeout only
applies to blocking I/O
- [228] fix: port_publisher typo

3.3

------------------------
Improvements:

- [206] Exclusive access on POSIX. ``exclusive`` flag added.
- [172] list_ports_windows: list_ports with 'manufacturer' info property
- [174] miniterm: change cancel impl. for console
- [182] serialutil: add overall timeout for read_until
- socket: use non-blocking socket and new Timeout class
- socket: implement a functional a reset_input_buffer
- rfc2217: improve read timeout implementation
- win32: include error message from system in ClearCommError exception
- and a few minor changes, docs

Bugfixes:

- [183] rfc2217: Fix broken calls to to_bytes on Python3.
- [188] rfc2217: fix auto-open use case when port is given as parameter

Bugfixes (posix):

- [178] in read, count length of converted data
- [189] fix return value of write

Bugfixes (win32):

- [194] spurious write fails with ERROR_SUCCESS

3.2.1

--------------------------
Improvements:

- remove ``serial.aio`` in favor of separate package, ``pyserial-asyncio``
- add client mode to example ``tcp_serial_redirect.py``
- use of monotonic clock for timeouts, when available (Python 3.3 and up)
- [169] arbitrary baud rate support for BSD family
- improve tests, improve ``loop://``

Bugfixes:

- [137] Exception while cancel in miniterm (python3)
- [143] Class Serial in protocol_loop.py references variable before assigning
to it
- [149] Python 3 fix for threaded.FramedPacket

Bugfixes (posix):

- [133] _update_dtr_state throws Inappropriate ioctl for virtual serial
port created by socat on OS X
- [157] Broken handling of CMSPAR in serialposix.py

Bugfixes (win32):

- [144] Use Unicode API for list_ports
- [145] list_ports_windows: support devices with only VID
- [162] Write in non-blocking mode returns incorrect value on windows

3.2.0

--------------------------
See 3.2.1, this one missed a merge request related to removing aio.

Page 1 of 7

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.