libusb-win32 | libusb-win32 Sourceforge subversion repo export | Code Editor library

 by   mcuee C Version: Current License: No License

kandi X-RAY | libusb-win32 Summary

kandi X-RAY | libusb-win32 Summary

libusb-win32 is a C library typically used in Editor, Code Editor applications. libusb-win32 has no bugs, it has no vulnerabilities and it has low support. You can download it from GitHub.

libusb-win32 Sourceforge subversion repo export
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              libusb-win32 has a low active ecosystem.
              It has 10 star(s) with 9 fork(s). There are 4 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 15 open issues and 3 have been closed. On average issues are closed in 19 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of libusb-win32 is current.

            kandi-Quality Quality

              libusb-win32 has no bugs reported.

            kandi-Security Security

              libusb-win32 has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              libusb-win32 does not have a standard license declared.
              Check the repository for any license declaration and review the terms closely.
              OutlinedDot
              Without a license, all rights are reserved, and you cannot use the library in your applications.

            kandi-Reuse Reuse

              libusb-win32 releases are not available. You will need to build from source code and install.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of libusb-win32
            Get all kandi verified functions for this library.

            libusb-win32 Key Features

            No Key Features are available at this moment for libusb-win32.

            libusb-win32 Examples and Code Snippets

            No Code Snippets are available at this moment for libusb-win32.

            Community Discussions

            QUESTION

            Can libusb be build using GNU GCC compiler?
            Asked 2021-Jun-10 at 14:03

            I am trying to start using libusb for communication via COM port ( EDIT: for my Rs232 device), on windows 10 x64 only. My IDE is Code:blocks. I have a couple of questions:

            I downloaded libusb from their website (latest windows binaries)

            But I noticed there is a libusb-win32 ''version'' of it in sourceforge. It says

            "libusb-win32 is a port of libusb-0.1 under Windows"

            1. What does this mean, and should I use the "latest windows binaries" version or the "libusb-win32" version?

            Also, the Readme file from their website (the 'libusb windows binaries' one) has instructions for compiling in Visual Studio and Mingw and there are files for Visual studio and Mingw only.

            1. Does this means I cannot compile the libusb it in GNU GCC compiler?

            EDIT: the question 2) is already answered here: https://stackoverflow.com/a/38252750/13294095

            ...

            ANSWER

            Answered 2021-Jun-10 at 14:03

            "I am trying to start using libusb for communication via COM port ( EDIT: for my Rs232 device), on windows 10 x64 only"

            If you have a device that when you plug it into your PC via a USB port, it instantiates a COM port, then that device does have a UART. The device must also have driver that upon connecting to the PC is installed, and results in establishing the serial port you can see in device manager (under ports) Read about USB serial driver for some background.

            "I have a physical uart device after the Rs232, I my MCU. I use the Rs-232 to translate from UART to USB protocol. -Even though I do not know what "Virtual com port" is."

            Your device may have a UART, but when you plug it into a PC via a USB port, a virtual serial port is created via a driver on the PC... "When the USB to serial adapter is connected to the computer via the USB port the driver on the computer creates a virtual COM port which shows up in Device Manager on Windows"... Read more here. (under Architecture)

            In short, if when you plug your device into the PC, you can see a port that has been created in Device Manager, then all the work is done. Your application code can incorporate a C serial port library to open a port and send/receive serial messages, etc. However, if you are developing the device with the UART to work on a Windows PC via a USB port, then yes, you need to create a driver. Maybe then libUSB is for you.

            Source https://stackoverflow.com/questions/67920784

            QUESTION

            PyUSB: reading from a USB device
            Asked 2020-Feb-05 at 09:46

            This is an updated and shortened question.

            Communicating with a USB-device should be easy via PyUSB. So, I'm trying to read from a USB-device (oscilloscope) using PyUSB under Win10. Apparently, the USB-driver (libusb-win32 v1.2.6.0) is installed correctly since the device is found and I get some response from print(dev) (see below). From this I can see that the output endpoint address is 0x3 and the input endpoint address is 0x81

            According to the Oscilloscope manual, I'm supposed to send :SDSLSCPI# to the device to set it into SCPI-mode and should get the reponse ':SCPION'. However, when sending :SDSLSCPI# the monitor of the oscilloscope reproduceably will freeze and it will restart.

            If I send *IDN? I should get the response ,P1337,1842237,V2.4.0->. But only if the device is already in SCPI-mode. Apparently, it is not and I get a timeout error (see below).

            So, what am I doing wrong here? What information am I missing in the PyUSB tutorial. Am I using the wrong PyUSB commands/parameters or is it about missing additional drivers or is it about the hardware, either Win10 or the device hardware? Thank you for hints on how to find out what's going wrong.

            By the way, what is the second value in dev.read(0x81,7)? Number of bytes to read? Well, usually I don't know how many bytes the device will send. I was expecting a command to read until a linefeed or some other terminator character within the timeout time. Where can I find "fool-proof" documentation, tutorials and examples about PyUSB?

            Code:

            ...

            ANSWER

            Answered 2019-Nov-29 at 16:59

            msg = '*IDN?'

            This is not a complete SCPI command: It is missing the newline \n character at the end.

            That is also why the device was not able to send an answer via USB.

            Source https://stackoverflow.com/questions/59105167

            QUESTION

            Listing usb devices using pyusb doesn't work
            Asked 2019-Aug-24 at 05:48

            I am trying to list USB devices on my windows 7 pc. I installed this ahead: https://sourceforge.net/projects/libusb-win32/files/libusb-win32-releases/1.2.6.0/libusb-win32-devel-filter-1.2.6.0.exe

            The code below does not print anything. Is there something else to be done to get the device info?

            ...

            ANSWER

            Answered 2019-Aug-24 at 01:07

            Looks like you're using a Python libusb wrapper. This will only enumerate USB devices which have actually been associated with the libusb driver. Every device is associated with a driver, and most will have class drivers (eg HID, UVC, MSC, etc) provided by the OS, so you need to use a different API to access them. You can enumerate all devices in a generic fashion by using the native SetupAPI and WinUSB on Windows, if that's what you really want. But this wrapper will only enumerate devices that specifically use the libusb driver. Since your code doesn't show any, you probably just don't have a device that uses libusb.

            You can use the Zadig tool to remap drivers to different devices. But beware of doing this as you can easily break things if you happen to choose an unsupported configuration. It's normally used when you have a custom or 3rd party device.

            Source https://stackoverflow.com/questions/57634218

            QUESTION

            pyusb - [Error 5] on Linux, but not Windows
            Asked 2019-Mar-05 at 04:07

            I'm trying to communicate with an AD9913 evaluation board (Analog Devices), which has a Cypress FX-2 USB controller. I wrote a fully functional Python library which works flawlessly on Windows 7 (using a driver generated through libusb-win32-1.2.6.0's inf-wizard.exe), but now I try to run the same software from a Raspberry Pi 3 with Raspbian Jessie and cannot seem to write or read.

            The following minimal example works on Windows 7:

            ...

            ANSWER

            Answered 2017-Jan-26 at 13:31

            Although I still cannot communicate with the device on the Raspberry Pi, the Error 5 problem is resolved by explicitly selecting a suitable alternate setting with proper endpoints, e.g.

            Source https://stackoverflow.com/questions/41855500

            QUESTION

            Pyusb/libusb0 insufficient permissions Windows
            Asked 2019-Feb-18 at 14:29

            I want to read out a USB measurement device in python. For this I use the usbtmc module. It requires Pyusb and libusb-win32. I installed both and it seems that they are running fine. In the device manager I can find my USB device. And in python too. For example:

            ...

            ANSWER

            Answered 2019-Feb-18 at 14:29

            The Keysight support helped me out: I had to install the Keysight drivers (connection expert) and the pyvisa and pyvisa-py module. It is now working!

            Source https://stackoverflow.com/questions/54629985

            QUESTION

            libusb, pyusb and python-escpos on a windows machine
            Asked 2018-Nov-21 at 05:28

            I am trying to work with Epson POS TM-82 printer on windows 7 (64 bit). I have installed the printer's driver. I have python 2.7.15 (64 bit) installed. To work with python I am using this package, python-escpos.

            After I have installed python-escpos, and try to run as documented, I am getting an error:

            ...

            ANSWER

            Answered 2018-Nov-21 at 05:28

            Answering my own question here. So, it turns out, the problem was with python-escpos library. I had to remove the following from the printer.py (python module of that library):

            Source https://stackoverflow.com/questions/53261467

            QUESTION

            Error getting number of devices using Libusb-win32-1.2.6.0
            Asked 2017-Aug-11 at 22:24

            I am trying to run a simple code written with libusb-win32 on VS2010 to get information about the USB devices connected. I cannot get it run sucessfully.

            ...

            ANSWER

            Answered 2017-Aug-11 at 22:24

            The usb_find_devices() documentation in the libusb 0.1 API says:

            Returns the number of changes since the previous call to this function (total of new device and devices removed).

            So, it does not return the number of available devices, like you are expecting. If you need that value, enumerate the bus list counting the devices yourself. Otherwise, just ignore the count and move on to your bus printing loop, it will run across any connected devices.

            That being said, there is a newer libusb 1.0 API, but its documentation does not mention usb_find_devices() at all. usb_find_devices() appears to have been replaced with a new usb_get_devices_list() function:

            Returns a list of USB devices currently attached to the system.

            This is your entry point into finding a USB device to operate.

            You really should be using the newer 1.0 API, per the libusb website:

            There are several libusb-0.1 API implementations:

            • libusb-0.1 is the very first libusb implementation.
            • libusb-compat-0.1 is a compatibility library which provides the libusb-0.1 API by using the libusb-1.0 API.
            • libusb-win32 is a Windows-only implementation of the libusb-0.1 API. The libusb-win32 project has also created the open source libusb0.sys Windows kernel driver, which exposes a userspace API that allows USB devices to be accessed outside of the Windows kernel.

            ...

            Because the 0.1 and 1.0 APIs use different prefixes they are compatible with each other. It is common that both are installed in parallel on a system. We strongly recommend using libusb-1.0 together with libusb-compat-0.1 instead of the ancient libusb-0.1 code, so that programs which use both the 0.1 API and the 1.0 API in different parts of the program, or in different libraries used by the program, will all use libusb-1.0 for the actual device access. This is important to avoid potential conflicts between libusb-1.0 and libusb-0.1 being used in the same process.

            ... libusb-1.0 is recommended for all new development. Developers are encouraged to port existing applications which use libusb-0.1 to use the new API.

            ...

            libusb-0.1 (legacy API)

            ...

            • Note that libusb-win32 is a separate project which still sees active development. The next generation libusb-win32 kernel driver (libusbk.sys) is based on KMDF. The ​libusbk library will support the existing libusb-win32 API, libusb-1.0 API and WinUSB-like API. libusb-win32 users who are fine with the libusb-win32 API are recommended to keep using it since it will be supported by the libusb-win32 project. libusb-win32 users who are interested in libusb-1.0 will also be supported once the libusbk backend is integrated. Future enhancement of the libusb-1.0 API (say libusb-1.1) may be required to be more suitable for Windows users.

            Source https://stackoverflow.com/questions/45640602

            QUESTION

            How to read from a USB RFID Reader with C#
            Asked 2017-Mar-13 at 08:23

            I just bought an USB RFID Reader and now I want to read, write and check if a card is on the Reader at the moment or not. So I searched here and found the Code below. The description of it is pretty much all what I Need:

            • Opens a USB device by vendor and product id.

            • Opens a UsbEndpointReader class for reading.

            • Reads and displays usb device output from Ep01 until no data is received for 5 seconds.

            But I dont understand where "USBDevice", "USBDeviceFinder" etc. are coming from? It's the only Code the user posted. I copied it into my Visual Studio and as expected it says for example "The Name 'USBDevice' does not exist in the current context"

            Can someone help how to fix this?

            Btw. this is the original question and the answers: Link to the Original Post

            ...

            ANSWER

            Answered 2017-Mar-13 at 08:23

            It's most likely in the package LibUsbDotNet. If you are using Visual Studio, open up Tools > NuGet Package Manager > Manage NuGet Packages for Solution..., go to Browse and paste it into the search bar. Add it to your project and now it should be good to go.

            Source https://stackoverflow.com/questions/42759089

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install libusb-win32

            You can download it from GitHub.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/mcuee/libusb-win32.git

          • CLI

            gh repo clone mcuee/libusb-win32

          • sshUrl

            git@github.com:mcuee/libusb-win32.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link