Permalink
Switch branches/tags
Nothing to show
Commits on Feb 3, 2017
  1. Merge pull request #41 from ElectricRCAircraftGuy/patch-1

    rene-aguirre committed on GitHub Feb 3, 2017
    added pip installation instructions
  2. added link

    ElectricRCAircraftGuy committed on GitHub Feb 3, 2017
  3. minor formatting

    ElectricRCAircraftGuy committed on GitHub Feb 3, 2017
  4. added pip installation instructions

    ElectricRCAircraftGuy committed on GitHub Feb 3, 2017
    -also added some clarity to your English phrases in the Windows install section
Commits on Dec 12, 2016
  1. [packing] Packing version 0.4.2

    Rene Aguirre committed Dec 12, 2016
    PyPi packing
Commits on Oct 25, 2016
  1. Merge pull request #39 from c1728p9/fix_hang_on_close

    rene-aguirre committed on GitHub Oct 25, 2016
    Fix intermittent lockup on close
  2. Fix intermittent lockup on close

    c1728p9 committed Oct 25, 2016
    When aborting execution of the input reader thread set "__abort" to
    true, even if __h_read_event is null. This prevents a race condition
    which occurs if abort is called before the input reader thread has
    created its read event. If this race condition occurs then __abort
    will not get set to true and the input reader thread will not
    terminate. This causes close() to get stuck when trying to
    join this thread.
Commits on May 2, 2016
  1. [issue #33] HidDevice.get(False) inhibits parsing

    Rene Aguirre committed May 2, 2016
    Fixing do_process_raw_reports parameter, this allows to read
    reports in a totally transparent way.
Commits on Feb 16, 2016
  1. [packing] Packing version 0.4.1

    Rene Aguirre committed Feb 16, 2016
    Prepare for PyPI
  2. Merge pull request #31 from c1728p9/pylint_fix

    rene-aguirre committed Feb 16, 2016
    Suppress pylint import-error in python 3
Commits on Feb 14, 2016
  1. Suppress pylint import-error in python 3

    c1728p9 committed Feb 14, 2016
    Add the directive "# pylint: disable=import-error" to disable the
    the pylint error when running under python 3.
    
    Note:
    pylint 1.4.4 + astroid 1.3.8 did not give this import error. The error
    started sometime after and can be seen in pylint 1.5.4 + astroid 1.4.4.
Commits on Feb 13, 2016
  1. [issue 30] Win10 AMD64 ctypes exceptions

    Rene Aguirre committed Feb 13, 2016
    Issues with ctypes missing to detect properly setup API functions
    calling arguments.
    
    #30
Commits on Nov 14, 2015
  1. Merge pull request #29 from vernie/patch-1

    rene-aguirre committed Nov 14, 2015
    Fix usage range offset calculation
Commits on Nov 12, 2015
Commits on Oct 27, 2015
  1. Merge pull request #28 from c1728p9/tox_and_other_changes

    rene-aguirre committed Oct 27, 2015
    Tox and other changes
Commits on Oct 25, 2015
  1. Trim trailing whitespace

    c1728p9 committed Oct 25, 2015
    Trim trailing whitespace from the project.  To confirm that nothing
    important changed in the process astor was used.  The only changes
    that effected the generated code were to docstrings, which will not
    cause problems.  These changes are:
    -hid\__init__.py line 5: trailing whitespace removed from docstring
    -core.py line 47: trailing whitespace removed from docstring
    -hid_pnp_mixin.py line 52: trailing whitespace removed from docstring
  2. Fix python 3 incompatibilities

    c1728p9 committed Oct 25, 2015
    Make the following changes to ensure consistent behavior between
    python 2 and python 3:
    -Don't allow old importing syntax
    -Explicitly use the new style print function
    -Use integer division explicitly
    -Add python 3 compatibility check to tox using pylint
  3. Add requirements file for examples

    c1728p9 committed Oct 25, 2015
    Add the file example-requirements.txt for modules required by examples
    but not required by the pywinusb library.
  4. Fix bug and suppress errors from pylint

    c1728p9 committed Oct 25, 2015
    Fix a typo in core.py, along with suppressing false-positives detected
    by pylint.
  5. Add tox to test multiple version of python

    c1728p9 committed Oct 25, 2015
    Add tox and configure it to test python 2.7 and 3.4 along with both
    32 and 64 bit variants.  To test using tox these versions of python
    need to be installed in at the correct location.  Also configure tox
    to run show_hids.py as a test and to run pylint to check for errors.
Commits on Oct 20, 2015
  1. [packaging] Packing version 0.4.0

    Rene Aguirre committed Oct 20, 2015
    Bump up version to 0.4.0, ready for PyPI upload.
Commits on Oct 12, 2015
  1. Fix exception from thread.join

    c1728p9 committed Oct 12, 2015
    Remove the call to close from _process_raw_report, since this
    causes the InputReportProcessingThread to join itself.  The application
    using the hid handle is responsible for closing this handle.
Commits on Oct 1, 2015
  1. Allow exclusive device access in HidDevice

    c1728p9 committed Sep 29, 2015
    Add an option to HidDevice.open() to open with exclusive access.
    By default devices will be opened in shared mode.  If the shared
    parameter is set to False then the HID device will be opened
    with exclusive access.
    
    Note:  Depending on which programs are running, some HID devices will
    already be opened in shared mode.  Trying to open one of these devices
    with exclusive access will result in failure being returned by
    CreateFile.
Commits on Aug 23, 2015
  1. Fix assert on HID device disconnect

    c1728p9 committed Aug 23, 2015
    If the current HID device is removed pywinusb will assert and exit
    without properly cleaning up resources.  This patch fixes that problem
    by removing the assert, along with the call to hid_object.close(), since
    if called, it would trigger another error from trying to join itself.
    
    This patch also makes the call to abort on the reader thread more
    robust.  It also adds stronger guarantees to resource cleanup
    in the InputReportReaderThread.
  2. Fix intermittent python crash on write timeout

    c1728p9 committed Aug 23, 2015
    If send_output_report is called and the remote device takes longer than
    10 seconds to read the out endpoint, then the current transfer will
    time out and return.  The current write will still be active, but the
    buffers used by it will have been freed.  This memory corruption can
    cause python to crash.
    
    This patch fixes the problem by canceling the operation if it times
    out.  It also adds additional checking to the write operation, which
    allows send_output_report to return immediately if a failure occurs,
    rather than waiting for a 10 second timeout.
    
    The python crash on write can be reproduce prior to this patch by
    constantly writing packets to the out endpoint, while the HID
    device stops processing out packets for at least 10 seconds.
Commits on Aug 11, 2015
  1. Merge pull request #23 from c1728p9/fix_crash

    rene-aguirre committed Aug 11, 2015
    Fix crash when closing hid devie and more
  2. Prevent h_event from being used after deletion

    c1728p9 committed Aug 11, 2015
    Prevent h_event from being used in the call to abort() by setting it
    to None when InputReportReaderThread is already in the process
    of terminating.
  3. Replace thread sleep loop with thread.join()

    c1728p9 committed Aug 11, 2015
    When waiting for the threads of a HIDDevice object to finish use
    the thread.join() method rather than checking if the thread is alive
    in a loop.
  4. Fix intermittent python crash when closing device

    c1728p9 committed Aug 11, 2015
    When close is called on a HID device and the current read is aborted,
    the call to ReadFile does not get canceled.  This is a problem since
    once the InputReportReaderThread's run method returns, the buffers
    passed to ReadFile get released, even though they are still in
    use.  If another packet arrives when these buffers are freed it causes
    python to crash.  This patch makes sure that ReadFile is properly
    canceled when close() is called and it aborts the current read.
Commits on Mar 22, 2015
  1. example: PySide PnP (version up to 0.3.7)

    Rene Aguirre committed Mar 22, 2015
Commits on Mar 21, 2015
  1. Working with Python33

    Rene Aguirre committed Mar 21, 2015
  2. 0.3.5: Latest Py27-64 PnP fix

    Rene Aguirre committed Mar 21, 2015
Commits on Nov 30, 2014
  1. Merge pull request #16 from jrowberg/master

    rene-aguirre committed Nov 30, 2014
    Change input report processing/reader threads to daemons
Commits on Nov 29, 2014
  1. Change input report processing/reader threads to daemons

    Jeff Rowberg committed Nov 29, 2014