summaryrefslogtreecommitdiff
path: root/serial/serialwin32.py
Commit message (Collapse)AuthorAgeFilesLines
* parity: new PARITY_IGNORE setting (posix/win32)issue-154Chris Liechti2016-08-271-0/+3
| | | | see #154 for discussion
* win32: improve error messages in read()Chris Liechti2016-06-011-2/+2
|
* win32: handle errors of GetOverlappedResult in read(), fixes #121Chris Liechti2016-05-311-1/+4
|
* style: flake8 findingsChris Liechti2016-05-261-2/+1
|
* win32: fix close and improve cancel (no error when write is canceled)Chris Liechti2016-05-251-1/+4
|
* win32: fix error code checking in _cancel_overlapped_ioChris Liechti2016-05-121-1/+1
| | | | it may also report ERROR_IO_INCOMPLETE when io is in progress
* revert "fixes for RTS/DTR handling on open", bad solutionChris Liechti2016-05-071-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 #51Chris Liechti2016-05-031-3/+26
|
* refactor: use is_open instead of platform specific attributes, closes #83Chris Liechti2016-03-291-7/+7
|
* style: replace % with format callsChris Liechti2016-02-161-17/+19
|
* style: some of the suggestions from flake8 and pylintChris Liechti2016-02-121-19/+19
|
* style: add flags for pylintChris Liechti2016-02-101-0/+1
|
* style: some of the suggestions from flake8Chris Liechti2016-02-071-2/+11
|
* remove inconsistent and unused main of platform modulesChris Liechti2016-01-301-17/+0
|
* optimized the codes of read methoddenglj2016-01-251-15/+6
|
* win32: fix bad super call and duplicate old-stlye __init__ callChris Liechti2016-01-221-2/+1
|
* fixes for RTS/DTR handling on open (#59)Chris Liechti2016-01-211-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 headersChris Liechti2015-12-161-3/+3
|
* fixed issue with 0 timeout on windows 10David Howlett2015-12-141-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 #49Chris Liechti2015-12-121-1/+1
|
* win32: fix typoChris Liechti2015-11-061-1/+1
|
* win32: fix minimal timeout issueChris Liechti2015-11-031-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 conditionChris Liechti2015-11-021-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 Liechti2015-09-091-1/+1
|
* pep-8 and small cleanupsChris Liechti2015-08-301-58/+66
|
* doc: update API docs, rename inter_byte_timeoutChris Liechti2015-08-301-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 Liechti2015-08-291-107/+101
|
* api change: provide control lines as properties, rename flush* and other ↵Chris Liechti2015-08-271-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: fixesChris Liechti2015-08-101-17/+1
|
* update file headers with license information (SPDX)Chris Liechti2015-08-091-1/+2
|
* inherit from io.RawIOBase in SerialBase instead of everywhere elseChris Liechti2015-08-061-2/+1
|
* rs485: redo RS485 support, removed RTS toggle functionChris Liechti2015-08-061-19/+43
|
* [Bug pyserial:169] missing "import time" in serialwin32.pyChris Liechti2015-08-051-1/+1
|
* always base on io.RawIOBaseChris Liechti2015-08-031-16/+3
|
* work on python 3 compatibilityChris Liechti2015-08-031-1/+1
|
* remove pyparallel and move pyserial files to toplevelChris Liechti2015-08-031-0/+470