.NET API for HID (USB)? [closed] - c#

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
Is there an API in .NET (C#) for using USB HID (human interface) devices?

HidLibrary wraps up all the P/Invoke calls for you. But no, it doesn't look there are any nice framework APIs for dealing with USB devices.

Here's mine little library for dealing with HID devices.
It might be useful, especially when you are trying to communicate using raw HID reports. I've also included a simple demonstration of how to use it.

There's nothing direct or high-level. There are some things you can do through the managed WMI API, but I've personally found a lot of WMI interaction with hardware to be cryptic at best and requiring a lot of trial-and-error to get it to do what you want.
Someone on The Code Project has developed a .NET component for USB HID you can try out that's probably going to fit the bill better than WMI.

I would suggest you follow this example instead. It was invaluable in getting me up and running with HiD dev in C#.

I suggest you start here: http://wiimotelib.codeplex.com/

Try looking at this: Simple HID Library. The main page has a list of other open source libraries.

Take a look at this library on Google Code:
C# USB HID driver

I was also searching for it. I'm using the code I found here:
http://janaxelson.com/hidpage.htm

Related

Is there a Fix implementation running under mono? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
Is there an implementation of the fix protocol running under mono (either free or commercial) ?
I found the following ones, but none indicates if the code it's mono compatible :
QuickFix
VersaFix
Onixs
B2Bits
RA-Cheetah
I tried the 2 open sources solutions :
QuickFix doesn't work on Mono because the .net bindings are developed in C++/CLI, which is not supported by Mono.
VersaFix however does run under mono without any changes, and its performances are quite similar under both platforms.
One possible solution: http://www.fixprotocol.org/discuss/read/adec4479
Other than this, there is nothing specifically designed that I know of, but it does look like each of the engines you mentioned does have a separate forum or mailing list you could try.
I can tell you that the way QuickFix is designed can be a real pain due to the way is uses identical classes in separate namespaces for each version of FIX.
Sorry dont have a better answer, good luck.
I suggest using the MoMA tool provided by http://www.mono-project.com/MoMA. I took the first one you specified "QuickFix" and downloaded the Binary version and scanned it with MoMA. The result was 273 Method calls that are not implemented.
It may sound like a lot but just like compiler errors, you fix a couple of things and the number goes down fast, also you have good odds that the parts you need will be fine and with the source for QuickFix available you may be able modify the code as needed or just throw some try{...}catch wrappers around those problem functions that you do need to use.
Of course you can try the same thing on the other available products, I just tried the first one. I believe MoMA will also work on obfuscated code, so you could test it on trial versions too.
I'm looking into Quickfix/N, which claims to be an open-source native .Net port of Quickfix, without native C++ bindings. In fact the API looks very similar to Quickfix/J (The java port). I will update this post if I find it not to be Mono-compatible.

library in c# to compose an image using layers/masks/filters [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I am looking for some sort of API similar to Photoshop functionality, I need to create an image using layers/masks/filters programmatically.
An example: I know how to make a nice button in Photoshop, there is a sequence of simple actions. What I want is to automate this process and generate an image of the button on the fly with a few input parameters.
I think I am not the first one who came up with such idea, there must be some library out there that does this thing. Unfortunately I cannot find anything.
Thanks!
You failed to mention if the library needs to be free/open source or if commercial libraries are acceptable but one of the best out there is GdPicture.NET. I doubt you'll find anything free that is remotely comprehensive but a good free one is Filters library (LGPL).
i don't think there is an API like this
but there is free open source software which is Paint.net
get it here
http://www.getpaint.net/download.html
see source code here
http://www.afterdawn.com/software/source_codes/paint.net.cfm
hope it helped
GDI+ in .NET?
Although I haven't used them you could take a look at:
Emgu CV: http://www.emgu.com/wiki/index.php/Emgu_CV
or OpenCvSharp : http://code.google.com/p/opencvsharp/
ImageMagic have layers support http://www.imagemagick.org/Usage/layers/ and there is Net wrapper

Wrapper class for WIA/TWAIN for a C# application? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
Is there a wrapper class somewhere for WIA/TWAIN functionality in a C# application?
Every search I make points to the same old 2001 CodeProject page, there has to be something new out there, right?
Maybe I'm not looking in the right place. :P
I need something really simple, like:
Image myImage = wiaWrapper.GetImageFromScanner();
Done and done.
Any guidance?
TwainDotNet
I've wrapped up the code from Thomas Scheidegger's article (CodeProject: .NET TWAIN image scanning) into a GitHub project.
I've cleaned up the API a bit, added WPF support and several people have added other improvements. I've tried to keep the API simple but it is still a bit more complicated that what you've got there.
Also this question has some other options: .NET Scanning API
Besides TwainDotNet maintained by Luke, I have recently noticed NTwain on NuGet (project page on Bitbucket).
Disclaimer: I work for Atalasoft
We publish DotTwain, which is a .NET TWAIN SDK. It's royalty-free and is used in InspectorTWAIN.com to help certify TWAIN drivers (we're members of the TWAIN working group).
Our product is a .NET Assembly that wraps interop calls.
You could also take a look at EZTwain from Dosadi, which is free. I don't know how native the .NET support is, but they have a way of calling from .NET.
As for a WIA C# wrapper, I came across ScanWIA on Codeplex. It doesn't have a whole lot of documentation. However, reading the source code might help.

Looking for a good SIP implementation in C# [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I saw a similar question from 1.5 years ago and I am hoping there is something better.
I am looking for a totally managed C# implementation because I need it for the .NET Microframework, so I can't have .NET wrappers around C code.
Has anyone run into a good C# implementation of the SIP protocol. I should not that I don't care about codecs, mostly will be dealing with call control.
My own C# SIP stack is at sipsorcery. It's far from perfect but as far as the RFC3261 core SIP standard goes it should be pretty good and you can hook into that using only SIPSorcery.Core assembly. The server applications can be disregarded if you're looking at doing some specialised call control.
I am using the ozeki voip sip sdk. It is written in c# and it provides a complete SIP implementation with all RFCs. The others I have tried were partial implementations only and didn't work with all my PBXs.
If you wish to be familiar with SIP protocol implementation then I suggest you to first read more useful information about the background of the VoIP technology. I used some examples for my project as well. I have found this explanation earlier:
The Session Initiation Protocol (SIP) is an IETF-defined signaling protocol widely used for controlling communication sessions such as voice and video calls over Internet Protocol. SIP helps in establishing communication sessions which involve various media types such as audio, video, or collaborative multimedia.
I mean, SIP protocol is very important to use when we would like to build an audio or video based application. (For example: Ozeki VoIP SIP SDK is appropriate to create SIP VoIP call services.)
The info derives from this webpage: http://voip-sip-sdk.com/p_304-sip-protocol-implementation-voip.html. I always use this website because this SDK has the best documentation which is plain and transparent to understand it.
This .NET SIP SDK is probably the most comprehensive.

Fax barcode recognition software to integrate in a c# application [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
My application is preparing a cover-sheet for submitting documents by fax. I identify the batch by printing a Code39 on it.
The incoming faxes are received as tif files and my small c# service is polling for new faxes and calling a decoding function.
Currently I use a Win32 dll to recognize the barcode (QSbar39) and I am facing some problems with it - timeouts, hangs, errors etc. which are painful to handle.
I'd prefer the have some free .Net component or an open source class to integrate.
Whould you take a different approach? What tool do you use?
Many thanks for your answers!
BarBara is an open source barcode recognition library. It certainly isn't perfect, but I have gotten it to work (if I remember it needed some twiddling to get it to compile in VS2008) pretty well.
I've used this java libarary with good results, and have gotten it to compile in .Net with minimal effort. It's been around for a while and works pretty well. It had some minor issues with EAN codes, but that has probably been resolved now.
http://barbecue.sourceforge.net/
I'm not sure there is anything available free or open source, but VintaSoftBarcode.NET Library is pretty cheap and did the job for me on a recent project.

Categories

Resources