Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | parity: new PARITY_IGNORE setting (posix/win32)issue-154 | Chris Liechti | 2016-08-27 | 1 | -0/+3 |
| | | | | see #154 for discussion | ||||
* | win32: improve error messages in read() | Chris Liechti | 2016-06-01 | 1 | -2/+2 |
| | |||||
* | win32: handle errors of GetOverlappedResult in read(), fixes #121 | Chris Liechti | 2016-05-31 | 1 | -1/+4 |
| | |||||
* | style: flake8 findings | Chris Liechti | 2016-05-26 | 1 | -2/+1 |
| | |||||
* | win32: fix close and improve cancel (no error when write is canceled) | Chris Liechti | 2016-05-25 | 1 | -1/+4 |
| | |||||
* | win32: fix error code checking in _cancel_overlapped_io | Chris Liechti | 2016-05-12 | 1 | -1/+1 |
| | | | | it may also report ERROR_IO_INCOMPLETE when io is in progress | ||||
* | revert "fixes for RTS/DTR handling on open", bad solution | Chris Liechti | 2016-05-07 | 1 | -5/+0 |
| | | | | - with the patch, control lines have wrong initial state on posix - makes no difference on win32, execpt add code | ||||
* | win32: add methods to cancel read/write operation, use in close, fixes #51 | Chris Liechti | 2016-05-03 | 1 | -3/+26 |
| | |||||
* | refactor: use is_open instead of platform specific attributes, closes #83 | Chris Liechti | 2016-03-29 | 1 | -7/+7 |
| | |||||
* | style: replace % with format calls | Chris Liechti | 2016-02-16 | 1 | -17/+19 |
| | |||||
* | style: some of the suggestions from flake8 and pylint | Chris Liechti | 2016-02-12 | 1 | -19/+19 |
| | |||||
* | style: add flags for pylint | Chris Liechti | 2016-02-10 | 1 | -0/+1 |
| | |||||
* | style: some of the suggestions from flake8 | Chris Liechti | 2016-02-07 | 1 | -2/+11 |
| | |||||
* | remove inconsistent and unused main of platform modules | Chris Liechti | 2016-01-30 | 1 | -17/+0 |
| | |||||
* | optimized the codes of read method | denglj | 2016-01-25 | 1 | -15/+6 |
| | |||||
* | win32: fix bad super call and duplicate old-stlye __init__ call | Chris Liechti | 2016-01-22 | 1 | -2/+1 |
| | |||||
* | fixes for RTS/DTR handling on open (#59) | Chris Liechti | 2016-01-21 | 1 | -0/+5 |
| | | | | | | - internal RTS/DTR state defaults to None - serialwin32 and serialcli platforms override that to True (as before) - serialposix leaves it unset and therefore does not touch RTS/DTR on open (as it was in pySerial 2.7 and before) | ||||
* | update file headers | Chris Liechti | 2015-12-16 | 1 | -3/+3 |
| | |||||
* | fixed issue with 0 timeout on windows 10 | David Howlett | 2015-12-14 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the win32 documentation for ReadFile found at: https://msdn.microsoft.com/en-gb/library/windows/desktop/aa365467(v=vs.85).aspx it says: "If hFile was opened with FILE_FLAG_OVERLAPPED, the following conditions are in effect: The lpOverlapped parameter must point to a valid and unique OVERLAPPED structure, otherwise the function can incorrectly report that the read operation is complete. The lpNumberOfBytesRead parameter should be set to NULL. Use the GetOverlappedResult function to get the actual number of bytes read. If the hFile parameter is associated with an I/O completion port, you can also get the number of bytes read by calling the GetQueuedCompletionStatus function." In the previous version of read the variable "rc" was set with ReadFile. This works on windows 7 for all the hardware that I use but on windows 10 something has changed and rc is set to 0 by ReadFile if the serial connection is to a "Beagle Bone Black". This means I am no longer able to communicate with any of my Beagle Bone Blacks. I changed the read method to use GetOverlappedResult and then it worked fine on windows 10 with all the hardware I plugged in. | ||||
* | win32: change exception type in case SetCommState fails, fix for #49 | Chris Liechti | 2015-12-12 | 1 | -1/+1 |
| | |||||
* | win32: fix typo | Chris Liechti | 2015-11-06 | 1 | -1/+1 |
| | |||||
* | win32: fix minimal timeout issue | Chris Liechti | 2015-11-03 | 1 | -7/+8 |
| | | | | As pointed out by DavidHowlett in issue #27, timeouts < 0.001 are handled as blocking by pySerial but are rounded to 0 and the Windows API treats it as non-blocking. Therefore ensure a minimum of 1ms (not that it would make any sense to use such short timeouts anyway). | ||||
* | win32: fix race condition | Chris Liechti | 2015-11-02 | 1 | -6/+6 |
| | | | | | | | As pointed out by DavidHowlett in #27, there can be a race condition where ReadFile returns false but the operation is completed before GetLastError is called, therefore also allow ERROR_SUCCESS (0) to be OK. Also as suggested, rename flag. | ||||
* | win32: fix flush() | Chris Liechti | 2015-09-09 | 1 | -1/+1 |
| | |||||
* | pep-8 and small cleanups | Chris Liechti | 2015-08-30 | 1 | -58/+66 |
| | |||||
* | doc: update API docs, rename inter_byte_timeout | Chris Liechti | 2015-08-30 | 1 | -4/+4 |
| | | | | - inter_character_timeout -> inter_byte_timeout - keyword args for Serial: rename writeTimeout, interCharTimeout | ||||
* | api change: rename more methods and attributes (mostly internal) | Chris Liechti | 2015-08-29 | 1 | -107/+101 |
| | |||||
* | api change: provide control lines as properties, rename flush* and other ↵ | Chris Liechti | 2015-08-27 | 1 | -51/+26 |
| | | | | | | | | | | | | | | | | functions - flushInput() -> reset_input_buffer() - flushOuput() -> reset_output_buffer() - inWaiting -> in_waiting - getCD()/getRI()/getDSR() -> cd/ri/dsr - setRTS()/setDTR() -> rts/dtr - sendBreak() -> send_break() - setBreak() -> break_condition rts and dtr can now be read back and can be set before opening the port (and some platforms are able to apply the contol without a glitch on open) the old functions are still available and going to be deprecated. | ||||
* | win32: fixes | Chris Liechti | 2015-08-10 | 1 | -17/+1 |
| | |||||
* | update file headers with license information (SPDX) | Chris Liechti | 2015-08-09 | 1 | -1/+2 |
| | |||||
* | inherit from io.RawIOBase in SerialBase instead of everywhere else | Chris Liechti | 2015-08-06 | 1 | -2/+1 |
| | |||||
* | rs485: redo RS485 support, removed RTS toggle function | Chris Liechti | 2015-08-06 | 1 | -19/+43 |
| | |||||
* | [Bug pyserial:169] missing "import time" in serialwin32.py | Chris Liechti | 2015-08-05 | 1 | -1/+1 |
| | |||||
* | always base on io.RawIOBase | Chris Liechti | 2015-08-03 | 1 | -16/+3 |
| | |||||
* | work on python 3 compatibility | Chris Liechti | 2015-08-03 | 1 | -1/+1 |
| | |||||
* | remove pyparallel and move pyserial files to toplevel | Chris Liechti | 2015-08-03 | 1 | -0/+470 |