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
0
votes
0 answers

Libusbdotnet gives all details about my device but device is null

I'm writig a dotnet application to communicate with a telemetry device for bulk transfer . I'm using [libusbdotnet v2][1] [1]: https://github.com/LibUsbDotNet/LibUsbDotNet/tree/v2. I'm able to enumerate my devices it gives me the VID,PID of all…
jasmi
  • 1
  • 3
0
votes
0 answers

C# Application only runs on Development machines with Visual Studio installed

I have a C# application which uses the LibUsbDotNet nuget package to talk to an Android device via USB. The application runs just fine on any of our developer machines with Visual Studio installed (I'm referring to the EXE run out of a zip of the…
0
votes
0 answers

Error IoTimedOut when reading data from the device

I used libUsbDotNet library (C#) to read data from USB device. The program sees the device and turns to it, but gives a response IoTimedOut. The program code is shown below. public static UsbDeviceFinder MyUsbFinder = new UsbDeviceFinder(0x10C4,…
0
votes
0 answers

Win32Error when writing to endpoint with LibUsbDotNet (Wrong alt interface on WinUSB)?

I am trying to port a C++ library to .NET, but I cannot get it to work and I don't understand what's wrong. The only big change I see is that in the C++ library with libusb, I have to set the alt interface setting to 1, but in LibUsbDotNet, this is…
GrixM
  • 215
  • 2
  • 4
  • 20
0
votes
0 answers

Why can't I open or load USB device with GUID or VID / PID

I would like to read the contents of an RFID card via a USB reader. I installed the Nuget package: LibUsbDotNet I get the guid, pid, vid via the Windows Device Manager :- L'appareil USB\VID_1667&PID_0005\PGM-T1048 a été configuré. GUID de classe…
Neotof Tof
  • 53
  • 1
  • 9
0
votes
0 answers

How do you use LibUsbDotNet to communicate with an RTL2832U device?

Has anyone worked with RTL2832U (SDR) via LibUsbDotNet? I can get details of the USB device with LibUsbDotNet but how would I go about specifically the RTL2832U as an SDR device? I am trying to write my own SDR software in C#.
TheJoe
  • 57
  • 10
0
votes
0 answers

HIDSharp and endpoints

i'm trying to connect with a skylanders portal using hidsharp and have had little success. I've managed to pull some data from it but for this to be useful i need to send commands over a usb endpoint. after a day of looking around, i've made no…
0
votes
0 answers

Parsing Sensor Input In Windows Forms Application

I am trying to parse input from an OSI LaserScan AutoSense 615 LiDaR in either a console application or a Windows Forms application using C#. Per the manufacturer, the output of the LiDaR is byte 11111110 followed by thirty bytes of intensity data…
Tom Lever
  • 321
  • 3
  • 16
0
votes
1 answer

libusbdotnet can not find RFIDeas USB HID device

I am running windows 7x64 connecting to a RFIDeas USB reader (Part# RDR-80582AKU). Using device manager, I found its vendor & product ID as HID\VID_0C27&PID_3BFA&REV_1623. My .NEt app referenced Libusdotnet,LibUsb.Common, also installed…
BachPhi
  • 142
  • 11
0
votes
1 answer

Read RFID tag using LibUsbDotNet

I have a generic USB RFID card reader. I am using code from How to read from a usb rfid reader? to read the data. It seems to read okay, however, the output is a byte array. What I want to get is the RFID number, the one that's printed on the card.…
OJ Raqueño
  • 4,471
  • 2
  • 17
  • 30
0
votes
1 answer

How to send vendor specific commands like "SET DATE TIME" to a usb device

I am using libusbdotnet in a C# application to communicate with a usb device. How do I give vendor specific commands like SET DATE TIME using libusbdotnet?
user1985
  • 1
  • 1
0
votes
1 answer

USB device not valid in MonoLibUsb

I'm trying to open a USB device handle in MonoLibUsb (on Linux), but every time I open it I get IsInvalid == true on the device handle. The USB device is definitely compatible with LibUsb as I've connected it to my Windows PC and can successfully…
TheHvidsten
  • 4,028
  • 3
  • 29
  • 62
0
votes
1 answer

LibUsbDotNet -unable to find the usb device error

Using the below link as reference, I try to communicate with USB from my PC. The below code public static UsbDeviceFinder MyUsbFinder = new UsbDeviceFinder(1234, 1); if (MyUsbDevice == null) throw new Exception("Device Not Found."); returns…
user1648142
0
votes
1 answer

Underlying hardware beneath virtual Com port

I have a device connected to USB port via USB cable to my PC and in device Manager it says - > "XYZ corp Virtual COM port (COM A)" Is this is same as Serial Com Port.?What is the underlying hardware under it both at device side and Host Side - a…
Raulp
  • 7,758
  • 20
  • 93
  • 155
0
votes
2 answers

c/libusb-0.1: why is usb_release_interface() failing?

I'm working on an old program, which uses libusb 0.1. In some cases we want to reset connection to an usb device. So we do something like: ret = usb_release_interface(dev_handle, 0); ret = usb_close(dev_handle); And later we open it etc. in…
pjaall
  • 379
  • 5
  • 14