All Versions
37
Latest Version
Avg Release Cycle
272 days
Latest Release
1619 days ago
Changelog History
Page 2
Changelog History
Page 2
-
v3.0.b1 Changes
October 19, 2015- list_ports: add
vid
,pid
,serial_number
,product
,manufacturer
andlocation
attribute for USB devices. - β‘οΈ list_ports: update OSX implementation.
- list_ports: Raspberry Pi: internal port is found.
- serial_for_url: fix import (multiple packages in list)
- threaded: added new module implementing a reader thread
- π tweak examples/wx*
- posix: add experimental implementation
VTIMESerial
- π new URL handler
alt://
to select alternative implementations
- list_ports: add
-
v3.0.a0 Changes
September 22, 2015- π Starting from this release, only Python 2.7 and 3.2 (or newer) are supported. The source code is compatible to the 2.x and 3.x series without any changes. The support for earlier Python versions than 2.7 is removed, please refer to the pyserial-legacy (V2.x) series if older Python versions are a requirement).
- β‘οΈ Development moved to github, update links in docs.
- API changes: properties for
rts
,dtr
,cts
,dsr
,cd
,ri
,in_waiting
(instead of get/set functions) - remove file
FileLike
class, addread_until
andiread_until
toSerialBase
- π RS485 support changed (
rts_toggle
removed, addedserial.rs485
module andrs485_mode
property) socket://
andrfc2217://
handlers use the IPv6 compatiblesocket.create_connection
- π New URL handler:
spy:://
. - URL handlers now require the proper format (
?
and&
) for arguments instead of/
(e.g.rfc2217://localhost:7000?ign_set_control&timeout=5.5
) - β Remove obsolete examples.
- β‘οΈ Finish update to BSD license.
- π Use setuptools if available, fall back to distutils if unavailable.
- π» miniterm: changed command line options
- π miniterm: support encodings on serial port
- 0οΈβ£ miniterm: new transformations, by default escape/convert all control characters
- π§ list_ports: improved, added USB location (Linux, Win32)
- π¨ refactored code
- π [FTR pyserial:37] Support fileno() function in the socket protocol
- π§ Posix: [Patch pyserial:31] Mark/space parity on Linux
- π§ Linux: [Patch pyserial:32] Module list_ports for linux should include the product information as description.
- Java: fix 2 bugs (stop bits if/else and non-integer timeouts) (Torsten Roemer)
- β‘οΈ Update wxSerialConfigDialog.py to use serial.tools.list_ports.
- [Patch pyserial:34] Improvements to port_publisher.py example
- π§ [Feature pyserial:39] Support BlueTooth serial port discovery on Linux
π Bugfixes:
- [Bug pyserial:157] Implement inWaiting in protocol_socket
- [Bug pyserial:166] RFC2217 connections always fail
- [Bug pyserial:172] applySettingsDict() throws an error if the settings dictionary is not complete
- β± [Bug pyserial:185] SocketSerial.read() never returns data when timeout==0
π Bugfixes (posix):
- [Bug pyserial:156] PosixSerial.open raises OSError rather than SerialException when port open fails
- [Bug pyserial:163] serial.tools.list_ports.grep() fails if it encounters None type
- π fix setXON
- [Patch pyserial:36 / 38] Make USB information work in python 3.4 and 2.7
- π clear OCRNL/ONLCR flags (CR/LF translation settings)
- π [Feature pyserial:38] RS485 Support
- [Bug pyserial:170] list_ports_posix not working properly for Cygwin
- [Bug pyserial:187] improve support for FreeBSD (list_ports_posix)
π Bugfixes (win32):
- [Bug pyserial:169] missing "import time" in serialwin32.py
π Bugfixes (cli):
- [Bug pyserial:159] write() in serialcli.py not working with IronPython 2.7.4
-
v2.7 Changes
October 17, 2013- Win32: setRTS and setDTR can be called before the port is opened and it will set the initial state on port open.
- Posix: add platform specific method: outWaiting (already present for Win32)
- Posix: rename flowControl to setXON to match name on Win32, add flowControlOut function
- rfc2217: zero polls value (baudrate, data size, stop bits, parity) (Erik Lundh)
- β‘οΈ Posix: [Patch pyserial:28] Accept any speed on Linux [update]
- Posix: [Patch pyserial:29] PosixSerial.read() should "ignore" errno.EINTR
- OSX: [Patch pyserial:27] Scan by VendorID/Product ID for USB Serial devices
- Ensure working with bytes in write() calls
π Bugfixes:
- [Bug 3540332] SerialException not returned
- [Bug pyserial:145] Error in socket_connection.py
- β± [Bug pyserial:135] reading from socket with timeout=None causes TypeError
- π¦ [Bug pyserial:130] setup.py should not append py3k to package name
- [Bug pyserial:117] no error on lost conn w/socket://
π Bugfixes (posix):
- [Patch 3462364] Fix: NameError: global name 'base' is not defined
- β‘οΈ list_ports and device() for BSD updated (Anders Langworthy)
- [Bug 3518380] python3.2 -m serial.tools.list_ports error
- [Bug pyserial:137] Patch to add non-standard baudrates to Cygwin
- [Bug pyserial:141] open: Pass errno from IOError to SerialException
- [Bug pyserial:125] Undefined 'base' on list_ports_posix.py, function usb_lsusb
- β± [Bug pyserial:151] Serial.write() without a timeout uses 100% CPU on POSIX
- [Patch pyserial:30] [PATCH 1/1]Β serial.Serial() should not raise IOError.
π Bugfixes (win32):
- [Bug 3444941] ctypes.WinError() unicode error
- π [Bug 3550043] on Windows in tools global name 'GetLastError' is not defined
- π [Bug pyserial:146] flush() does nothing in windows (despite docs)
- [Bug pyserial:144] com0com ports ignored due to missing "friendly name"
- π§ [Bug pyserial:152] Cannot configure port, some setting was wrong. Can leave port handle open but port not accessible
-
v2.6 Changes
November 02, 2011π New Features:
- π Moved some of the examples to serial.tools so that they can be used
with
python -m
- serial port enumeration now included as
serial.tools.list_ports
- URL handlers for
serial_for_url
are now imported dynamically. This allows to add protocols w/o editing files. The listserial.protocol_handler_packages
can be used to add or remove user packages with protocol handlers (see docs for details). - π new URL type: hwgrep:// uses list_ports module to search for ports by their description
- several internal changes to improve Python 3.x compatibility (setup.py, use of absolute imports and more)
π Bugfixes:
- π» [Bug 3093882] calling open() on an already open port now raises an exception
- [Bug 3245627] connection-lost let rfc2217 hangs in closed loop
- π [Patch 3147043] readlines() to support multi-character eol
π Bugfixes (posix):
- [Patch 3316943] Avoid unneeded termios.tcsetattr calls in serialposix.py
- π [Patch 2912349] Serial Scan as a Module with Mac Support
π Bugfixes (win32):
- β± [Bug 3057499] writeTimeoutError when write Timeout is 0
- [Bug 3414327] Character out of range in list_ports_windows
- π [Patch 3036175] Windows 98 Support fix
- [Patch 3054352] RTS automatic toggle, for RS485 functionality.
- π Fix type definitions for 64 bit Windows compatibility
- π Moved some of the examples to serial.tools so that they can be used
with
-
v2.5 Changes
July 22, 2010π New Features:
- 0οΈβ£ [Bug 2976262] dsrdtr should default to False
dsrdtr
parameter default value changed fromNone
(followrtscts
setting) toFalse
. This meansrtscts=True
enables hardware flow control on RTS/CTS but no longer also on DTR/DSR. This change mostly affects Win32 as on other platforms, that setting was ignored anyway. - π Improved xreadlines, it is now a generator function that yields lines as they
are received (previously it called readlines which would only return all
lines read after a read-timeout). However xreadlines is deprecated and not
available when the io module is used. Use
for line in Serial(...):
instead.
π Bugfixes:
- β [Bug 2925854] test.py produces exception with python 3.1
- [Bug 3029812] 2.5rc2 readline(s) doesn't work
π Bugfixes (posix):
- [BUG 3006606] Nonblocking error - Unix platform
π Bugfixes (win32):
- [Bug 2998169] Memory corruption at faster transmission speeds. (bug introduced in 2.5-rc1)
- 0οΈβ£ [Bug 2976262] dsrdtr should default to False
-
v2.5-rc2 Changes
January 02, 2010π New Features:
- π Documentation update, now written with Sphinx/ReST
- β‘οΈ Updated miniterm.py example
- π experimental RFC-2217 client support (serial.rfc2217.Serial, see docs)
- β add
loop://
device for testing. - add
serial.serial_for_url
factory function (support for native ports andrfc2217
,socket
andloop
URLs) - β add new example:
rfc2217_server.py
- β tests live in their own directory now (no longer in examples)
π Bugfixes:
- π [Bug 2915810] Fix for suboption parsing in rfc2217
- Packaging bug (missed some files)
π Bugfixes (posix):
- π improve write timeout behavior
- π§ [Bug 2836297] move Linux specific constants to not break other platforms
- π
poll
based implementation forread
is in a separate classPosixPollSerial
, as it is not supported well on all platforms (the defaultSerial
class uses select). - π changed error handling in
read
so that disconnected devices are detected.
π Bugfixes (win32):
- [Bug 2886763] hComPort doesn't get initialized for Serial(port=None)
-
v2.5-rc1 Changes
July 30, 2009π New Features:
- π Python 3.x support (through 2to3)
- compatible with Python io library (Python 2.6+)
- π Support for Win32 is now written on the top of ctypes (bundled with Python 2.5+) instead of pywin32 (patch by Giovanni Bajo).
- 1.5 stop bits (STOPBITS_ONE_POINT_FIVE, implemented on all platforms)
- miniterm application extended (CTRL+T -> menu)
- miniterm.py is now installed as "script"
- β add scanlinux.py example
- β add port_publisher example
- π experimental RFC-2217 server support (examples/rfc2217_server.py)
- β add
getSettingsDict
andapplySettingsDict
serial object methods - π use a
poll
based implementation on Posix, instead of aselect
based, provides better error handling [removed again in later releases].
π Bugfixes:
- Improve and fix tcp_serial_redirector example.
- [Bug 2603052] 5-bit mode (needs 1.5 stop bits in some cases)
π Bugfixes (posix):
- [Bug 2810169] Propagate exceptions raised in serialposix _reconfigure
- [Bug 2562610] setting non standard baud rates on Darwin (Emmanuel Blot)
π Bugfixes (win32):
- [Bug 2469098] parity PARITY_MARK, PARITY_SPACE isn't supported on win32
- [SF 2446218] outWaiting implemented
- π» [Bug 2392892] scanwin32.py better exception handling
- [Bug 2505422] scanwin32.py Vista 64bit compatibility
-
v2.4 Changes
July 06, 2008π New Features:
- β± [Patch 1616790] pyserial: Add inter-character timeout feature
- [Patch 1924805] add a setBreak function
- β Add mark/space parity
- β Add .NET/Mono backend (IronPython)
π Bugfixes (posix):
- π§ [Bug 1783159] Arbitrary baud rates (Linux/Posix)
π Bugfixes (win32):
- [Patch 1561423] Add mark/space parity, Win32
- π [Bug 2000771] serial port CANNOT be specified by number on windows
- examples/scanwin32.py does no longer return \.\ names
- π fix \.\ handling for some cases
π Bugfixes (jython):
- The Jython backend tries javax.comm and gnu.io (Seo Sanghyeon)
-
v2.3 Changes
June 19, 2008π New Features:
- iterator interface.
for line in Serial(...): ...
is now possible Suggested by Bernhard Bender - 0οΈβ£
sendBreak()
accepts aduration
argument. Default duration increased. - win32 handles \.\COMx format automatically for com ports of higher number (COM10 is internally translated to \.\COM10 etc.)
- π§ miniterm.py has a new feature to send a file (upload) and configurable special characters for exit and upload. Refactored internals to class based structure (upload and class refactoring by Colin D Bennett)
π Bugfixes:
- [Bug 1451535] TCP/serial redirect example "--help"
- β‘οΈ update VERSION variable
- β‘οΈ update wxSerialConfigDialog.py and wxTerminal.py compatibility with wxPython 2.8 (Peleg)
- Check for string in write function. Using unicode causes errors, this helps catching errors early (Tom Lynn)
π Bugfixes (posix):
- [Bug 1554183] setRTS/setDTR reference to non existing local "on"
- π» [Bug 1513653] file descriptor not closed when exception is thrown
- FreeBSD now uses cuadX instead of cuaaX (Patrick Phalen)
π Bugfixes (win32):
- [Bug 1520357] Handle leak
- π» [Bug 1679013] Ignore exception raised by SetCommTimeout() in close().
- [Bug 1938118] process hang forever under XP
- iterator interface.
-
v2.2 Changes
July 31, 2005π Bugfixes:
- [Bug 1014227]: property broken
- [Bug 1105687]:
serial_tcp_example.py
:--localport
option - [Bug 1106313]: device (port) strings cannot be unicode
π Bugfixes (posix):
- [Patch 1043436] Fix for [Bug 1043420] (OSError: EAGAIN)
- [Patch 1102700]
fileno()
added - ensure disabled PARMRK
π Bugfixes (win32):
- [Patch 983106]: keep RTS/CTS state on port setting changes
π New Features:
dsrdtr
setting to enable/disable DSR/DTR flow control independently from thertscts
setting. (Currently Win32 only, ignored on other platforms)