Code Monkey home page Code Monkey logo

csharp-usb-hid-driver's People

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

csharp-usb-hid-driver's Issues

Event Handling in VB.net

Hi...

I was able to write data to the device using usb.write() function.In the post 
it says there are 2 ways to read data from the device. I tried to integrate usb 
event handler with VB.net but cudnt compile the Vb application. Is there any 
working example for VB.net using event handler ??? All i want is acquiring the 
received byte array as an event driven function. Please can some1 send me the 
code ? [email protected]

Thank You
Regards
Anuradha 

Original issue reported on code.google.com by [email protected] on 10 May 2012 at 4:41

Write Fails

Everytime you call "write()" it returns false.
Maybe people have said things about the PTR being wrong, so modifications have 
been made. 
I made those changes, I even removed the hard coding of 64 bytes and made that 
dynamic.
I am still running into problems when trying to send commands to the device.


Original issue reported on code.google.com by [email protected] on 4 Oct 2012 at 5:50

Can someone provide a working example ?

Hello , thanks for the project , i'm trying to put pieces together but i can't 
made it work. I can connect to the device but as everyone (or a big majority) i 
can't trigger the event handler.

Could you please add a clear example of how to read from the remote ?

thanks !

Original issue reported on code.google.com by [email protected] on 2 Dec 2014 at 6:15

USBHIDDRIVER.dll keeps windows form application running

What steps will reproduce the problem?
1. Windows Form Application keeps running when main form is closed due to 
USBInterface object.
 Attempting to Dispose UsbInterface object by:
 usb.stopRead(); 
 usb.Disconnect();
 usb = null; 
throw NullReferenceException on Disconnect() .


What is the expected output? What do you see instead?
usb Object is Connected and Reading when steps above are executed.


What version of the product are you using? On what operating system?
using MS .NET 2.0


Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 28 Jan 2008 at 10:04

Help adding the USBHIDDRIVER dll to my project and using it

What steps will reproduce the problem?
1. When i add to project USBHIDDriver.csproj
2. Or Add the dll to my project
3. using USBHIDDRIVER;

I'm able to instantiate
 USBInterface usb = new USBInterface("VID_04C5","PID_1090");

However when i do the following
usb.Connect();

i get an error that says usb is a field but is used as a type...Can you guys 
help me out on this. Thanks...Yaw



What version of the product are you using? On what operating system?
Windows 7 32bit

Please provide any additional information below.

Original issue reported on code.google.com by [email protected] on 22 Feb 2012 at 3:10

USB Device Disconnect Throws and Exception Since USBThread is null

        [TestMethod]
        public void Test_BayerContourUSB()
        {
            bool isConnected = false;

            USBHIDDRIVER.USBInterface contourUSB = new USBHIDDRIVER.USBInterface("vid_1a79", "pid_6002");

            string[] deviceList = contourUSB.getDeviceList();

            if (contourUSB != null)
                isConnected = contourUSB.Connect();

            if (isConnected == true && contourUSB != null)
                contourUSB.Disconnect();

            contourUSB = null;
        }

// USE ANY DEVICE YOU WANT BTW 

// Exception is thrown at usbThread.Abort() since usbThread is null
// Note usbThread is NEVER assigned to so it is always null

        //---#+************************************************************************
        //---NOTATION:
        //-  disconnectDevice()
        //-
        //--- DESCRIPTION:
        //--  disconnects the device and cleans up
        //                                                             Autor:      F.L.
        //-*************************************************************************+#*
        /// <summary>
        /// Disconnects the device.
        /// </summary>
        public void disconnectDevice()
        {
            usbThread.Abort();
            myUSB.CT_CloseHandle(myUSB.HidHandle);
        }


Original issue reported on code.google.com by [email protected] on 21 Jan 2015 at 6:58

Download Link funktioniert nicht

Der im Blog angegebene Download Link scheint nicht zu funktionieren. Statt beim 
Download lande ich auf der Startseite des Blogs. 

Original issue reported on code.google.com by [email protected] on 22 Dec 2011 at 7:33

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.