summaryrefslogtreecommitdiff
path: root/pyserial/serial/serialutil.py
Commit message (Collapse)AuthorAgeFilesLines
* remove pyparallel and move pyserial files to toplevelChris Liechti2015-08-031-572/+0
|
* doc updatecliechti2014-08-031-23/+44
|
* do not allow negative baudrates, improve Python 3 compatibility of testscliechti2013-10-161-2/+5
|
* Ensure working with bytes in write() calls. to_bytes() extended to handle ↵cliechti2013-10-161-6/+27
| | | | bytes and memoryview instaces
* fix [Bug 3540332], base class of port not open exception changed to ↵cliechti2012-08-161-2/+2
| | | | SerialException
* implement patch 3147043cliechti2011-08-051-1/+2
|
* fix bytearray class so that readline works again with Python 2.5 and oldercliechti2010-07-221-3/+17
|
* - move [x]readline[s] to FileLike base class (io module provides ↵cliechti2010-07-211-42/+46
| | | | | implementation in the other case) - CR and LF constants added
* use False instead of 0cliechti2010-07-211-2/+2
|
* - improved xreadlines (now a generator)cliechti2010-07-211-5/+9
| | | | - version for release
* fix for [Bug 3029812] 2.5rc2 readline(s) doesn't workcliechti2010-07-211-2/+2
|
* fix [Bug 2976262] dsrdtr should default to Falsecliechti2010-05-201-2/+2
|
* add getSettingsDict and applySettingsDictcliechti2009-08-101-0/+17
|
* fixes for Python <= 2.5cliechti2009-08-071-0/+5
|
* - move to_bytes from rfc2217 module to corecliechti2009-08-051-7/+11
| | | | | | | - add data escape function in rfc2217.PortManager (also renamed class) - use escaping for outgoing data in example - multi port TCP/IP serial gateway extended with RFC 2217 support
* update compatibility code for 2.6cliechti2009-07-301-0/+4
|
* fix compatibility checkcliechti2009-07-291-1/+2
|
* fix some minor issues that were uncovered when run with 3.xcliechti2009-07-281-9/+9
|
* - read/write now work with bytes when available on older Pythons that is ↵cliechti2009-07-271-109/+109
| | | | | | | | equal to a str (implemented compatibility objects in serualutil) - improve conversion result of 2to3 - remove RawSerial object again - update docs
* new exception stylecliechti2009-07-251-1/+1
|
* - add more methods for file-like compatibilitycliechti2009-07-251-14/+93
| | | | | | | | | | | - provide RawSerial when io library is present (not yet finished) -> changes internal class hierarchy -> renamed internal read/write -> _read/_write (FileLike resp. RawSerialBase provides read/write) -> add test_rawio.py - _write returns number of byte written - set minimal python version to 2.3 due to basestring - add "name" attribute - documentation updates (new io stuff and VERSION, device())
* changes required for 2to3 support respectively Python 3.x compatibility of ↵cliechti2009-07-251-6/+0
| | | | the resulting code
* remove print and replace with stdio writescliechti2009-07-231-6/+6
|
* add missing stop bit constantcliechti2009-07-221-1/+1
|
* implement SF 2392892cliechti2009-07-211-1/+1
|
* minor doc changescliechti2009-07-211-4/+4
|
* 1.5 stop bit supportcliechti2009-02-161-1/+1
|
* - doc updatecliechti2009-02-071-74/+74
| | | - fix [Bug 2469098]
* - [Patch 1561423] Add mark/space parity, Win32cliechti2008-06-211-3/+3
| | | - remove VERSION constants except for the one in __init__.py
* prototype of .NET/Mono backendcliechti2008-06-211-1/+3
|
* [Patch 1616790] pyserial: Add inter-character timeout featurecliechti2008-06-201-0/+22
|
* fix bug 1938118cliechti2008-06-191-1/+1
|
* - clean up parameter naming between posix and windows implcliechti2006-08-261-7/+7
| | | | - improve error messages
* - add iterator interfacecliechti2005-12-201-0/+10
| | | | - readme extended, partialy converted to reStructuredText
* add dsrdtr setting, allows independent seeting of rts/cts and dsr/dtr flow ↵cliechti2005-05-191-4/+24
| | | | control on platforms where this is possible
* [Bug 1106313]: device (port) strings cannot be unicodecliechti2005-01-271-1/+2
|
* - fix bug [1014227]: property <del> brokencliechti2004-11-131-9/+9
|
* fix XON/XOFF consts [Bug 975250]cliechti2004-07-281-2/+2
|
* - implement write timeouts + testscliechti2004-04-201-2/+32
| | | | - added XON/XOFF constants
* typocliechti2004-02-021-1/+1
|
* accept any baudrate and let the system decide if that is a valid value, ↵cliechti2004-01-151-5/+11
| | | | added test for that
* forgot to init attributecliechti2003-10-011-0/+1
|
* Transition to the 2.0 series:cliechti2003-10-011-2/+245
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - New implementation only supports Python 2.2+, backwards compatibility should be maintained almost everywhere. The OS handles (like the hComPort or fd attribute) were prefixed with an underscore. The different names stay, as anyone that uses one of these has to write platform specific code anyway. - Common base class serialutil.SerialBase for all implementations. - PARITY_NONE, PARITY_EVEN, PARITY_ODD constants changed and all these constants moved to serialutil.py (still available as serial.PARITY_NONE etc. and they should be used that way) - Added serial.PARITY_NAMES (implemented in serialutil.PARITY_NAMES). This dictionary can be used to convert parity constants to meaningful strings. - Each Serial class and instance has a list of supported values: BAUDRATES, BYTESIZES, PARITIES, STOPBITS (i.e. serial.Serial.BAUDRATES or s = serial.Serial; s.BAUDRATES) these values can be used to fill in value sin GUI dialogs etc. - Creating a Serial() object without port spec returns an unconfigured, closed port. Useful if a GUI dialog should take a port and configure it. - New methods for serial.Serial instances: open(), isOpen() - A port can be opened and closed as many times as desired. - Instances of serial.Serial have baudrate, bytesize, timeout etc. attributes implemented as properties, all can be set while the port is opened. It will then be reconfigured. - Improved __doc__'s. - New test_advanced.py for the property setting/getting testing. - Small bugfix on posix with get* methods (return value should be true a boolean). - added a __repr__ that returns a meaningful string will all the serial setting, easy for debugging. - The serialposix module does not throw an exception on unsupported platforms, the message is still printed. The idea that it may still work even if the platform itself s not known, it simply tries to do the posix stuff anyway (It's likely that opening ports by number fails, but by name it should work).
* EOL character for lines can be chosencliechti2002-08-291-6/+7
| | | | idea by John Florian
* remove the mapping of flush to the destructive flushOutput as this is not ↵cliechti2002-08-181-6/+2
| | | | the expected behaviour
* added non-blocking modecliechti2002-05-261-5/+5
| | | | | fixed win32 version: no data is lost when a timeout occours typos in the docs
* added SerialException if port can not be openedcliechti2002-03-031-0/+3
|
* fixed missing files for 1.1cliechti2002-02-141-0/+65