I am developing the supervisory system with C # and connects it to some devices through an RS 485 controller. This controller was created with a microscable processor and the Windows OS recognizes it as an HID device (USB Plug and Play). He said, I have developed using Windows DL Functions (HID DLL), as the code below is illustrated in the block:
[DllImport ("hid.dll", SetLastError = true) ] Public stable Exxon zero HidD_GetHidGuid (Referee Good Headguide); [DllImport ("hid.dll", SetLastError = true)) Public Static Extensions Boole HidD_GetNumInputBuffers (Secure FileHandleHidDeviceObject, ref Int32 numberBuffers); [DllImport ("hid.dll", SetLastError = true)) Public Static Extensions Boole HidD_GetPreparsedData (Secure FileHandleDeviceObject, ref IntPtr preparsedData);
Today, I'm studying the port of this application in a Linux OS (Debian Disto) with Mono and I believe that Linux will be able to connect with these Windows based OS Will not work.
Is there any other way to integrate the HID device with C # without using these DLS? Or even if you have any clue?
No comments:
Post a Comment