Questions tagged [libusbdotnet]

LibUsbDotNet - A .NET C# USB library for WinUSB, LibUsb-Win32, and libusb-1.0. Using the common device classes, applications work with all operating systems and drivers without modification.

LibUsbDotNet - A development tool written for .NET software developers who desire a fast and easy way to create a complete custom USB driver solution for unix-like and windows platforms.

Features:

  • Full support for WinUSB. All WinUSB interfaces are treated as separate devices. IE each interface can be used by a different application.

  • Extended kernel level support for libusb-win32.

  • Supports unix-like operating systems using mono .NET and Libusb-1.0.

  • Common device classes allow for a single code base to support multiple drivers and platforms.

  • Includes a USB InfWizard utility (windows only) for generating USB installation packages, removing devices, and installing drivers.

  • Device discovery using any or all of the following criteria:

    • VendorID
    • ProductID
    • Revision Code
    • Serial Number
    • Device Interface GUID
    • Source package includes many small example applications
    • '

    Project Links:

51 questions
1
vote
1 answer

How can I determine why ControlTransfer method of LibUsbDotNet in C# returns false?

I am trying to use the ControlTransfer method of the LibUsbDotNet C# library to communicate with a USB device but the method keeps returning false. My code is as follows: private bool writeCtrlMsg(int value, int index, byte[] buffer) { if…
user1969903
  • 810
  • 13
  • 26
1
vote
2 answers

LibUsbDotNet doesn't open device

I use latest LibUsbDotNet nuget package in Visual Studio 2017 on Win 10. For my full speed USB device with 2 interrupt endpoints and 1 bulk IN endpoint I installed WinUSB driver using zadiq 2.4 utility. LibUsbDotNet can see my device when…
Martin Dusek
  • 1,170
  • 3
  • 16
  • 41
1
vote
1 answer

How to use my device's VID and PID inside UsbDeviceFinder function of LibUsbDotNet?

I am trying to use my USB device inside my C# windows form application, I have found the VID and PID of my device from device manager and they are mentioned like below: USB\VID_1A86&PID_7523 Now inside my code I have a function named UsbDeviceFinder…
Naser.Sadeghi
  • 1,341
  • 1
  • 12
  • 35
1
vote
1 answer

How to populate UsbRegDeviceList in a .NET app running LibUsbDotNet "Getting Started Example"

When I run it, the allDevices list is empty. I started a new VB.NET console project, and installed Nuget LibUsbDotNet. My code is this: Imports System Imports LibUsbDotNet Imports LibUsbDotNet.Info Imports LibUsbDotNet.Main Imports…
Doug Null
  • 7,989
  • 15
  • 69
  • 148
1
vote
0 answers

Using a USB-to-USB cable bridge to communicate information between two computers

I am wondering if it is possible for me to use a USB-to-USB cable bridge to establish a communication link between my applications on two different computers. Currently I have an application which runs embedded on an industrial Linux computer and I…
1
vote
2 answers

Write to USB PORT C# using LibUsbDotNet C# USB Library

I want to write some data to a USB port and receive an answer from it. I actually used the same string cmdLine = "@00WD3000C82B*\r"; and sent it to the same machine with the SerialPort object and by using rs235 port. its do well.. and I got the…
user8253046
1
vote
0 answers

How to use Bulk transfer in USB communication C#

I have little bit problem with USB communication. I can connect to USB device but I cannot write any data to USB device. This is my code to write data to USB device: public byte[] GetUID = { 0xFF, 0xCA, 0x00, 0x00, 0x00 }; public byte[] SCardConnect…
SkyFrotza
  • 97
  • 11
1
vote
1 answer

LibUsbDotNet Bulk Transfer Usb Communication Win32Error

We have a vendor-specific device for USB connections. We used LibUsbDotNet Bulk Transfer communication. In the first case, I did 64 byte data transfer. In the second case I made 1024 byte data transfer. In case of 64 byte transfer, there is usually…
srhnylmz
  • 11
  • 3
1
vote
1 answer

How to update the libusb driver using the INF file on device manager

I am developing a program for communicate between device and pc with libusbdotnet dll.The device uses CDC(Communication Device Class) in USB classes. I created an INF file from libusbdotnet inf wizard. And I updated driver with inf files on device…
V.O.D
  • 11
  • 3
1
vote
0 answers

Using LibUsbDotNet for ASP.NET Core application running under Linux - libusb-1.0 library not found

I've developed an ASP.NET Core application that involves communicating with a USB device. It uses version 2.2.8-r101 of the CoreCompat.LibUsbDotNet library for this, which is a port of LibUsbDotNet that targets .NET Standard 1.5. When I host the…
Tagc
  • 8,736
  • 7
  • 61
  • 114
1
vote
0 answers

LibUsbDotNet Win32Error: Error Code 87

I’m having a problem with an USB device. I am developing an application in C# that communicates with this device. To do this communication I am using the LibUsbDotNet library. The problem is the following, my communication works perfectly in many…
Maycon
  • 13
  • 1
  • 6
1
vote
1 answer

Can't find device on libusbdotnet

I am a beginer on USB. I found libusbdotnet on http://sourceforge.net/projects/libusbdotnet/ i am using the library. But i can't find my device by command MyUsbDevice = UsbDevice.OpenUsbDevice(MyUsbFinder); //public UsbDeviceFinder MyUsbFinder =…
1
vote
2 answers

LibUsbDotNet open device -> Device not found

I have usbasp programmer for AVR microcontrollers. This programmer uses libusb library. I've managed to connect it to pc, system detected new device and I managed to install driver for this device. It works well since I'm able to program AVR chips…
termil0r
  • 131
  • 2
  • 14
0
votes
0 answers

How to debug a process that fails to exit?

I have an issue with one of my C# project where the main process will sometimes not exit. It's an Avalonia 11 project that uses LibUsbDotNet to communicate with a vendor USB peripheral. Sometimes (~10%), upon closing the main window, the 'console'…
Julien BERNARD
  • 653
  • 6
  • 17
0
votes
0 answers

How do I see what Win32 error LibUsbDotNet is returning when trying to write to a USB device?

I am trying to write to a USB device using the LibUsbDotNet library, however, when I try to write it returns a Win32 error. So far it finds the device, sets up the interface, and sets up the writer endpoint (as far as I can tell). But, when I try to…