geodirk / csharp-usb-hid-driver Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/csharp-usb-hid-driver
License: GNU General Public License v3.0
Automatically exported from code.google.com/p/csharp-usb-hid-driver
License: GNU General Public License v3.0
[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
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
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
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
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
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
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.