The goal of this module is to provide a set to function to communicate directly
from Scilab with USB Device on Linux, Windows and Mac OS X.
Hid communication process based on HIDAPI (this library works on those SO with
a native driver). http://www.signal11.us/oss/hidapi/
Bulk communication process for custom USB class based on libusb-1.0 on Linux.
Windows and Mac OS X depending of which driver works better in each OS
CDC communication process based on Serial Communication Toolbox or custom based
on termios (linux) and API win32 (windows). I am not sure yet
Collection of macros to uses as interface. Those macros verify the OS and the
USB class process and made the adjustments needed to successful communication
process
HID Tested on:
+ GNU/Linux Ubuntu 32 Bits Full Tested
-Make a list with every hid device connected. Passed
-Read Manufacture, Product and Serial String. Passed
-Write to the hid testing device. Passed
-Read to the hid testing device. Passed
-Set Feature Report to the hid testing device. Passed
-Get Feature Report to the hid testing device. Passed
+Needs libusb-1.0 develop package to compile on Linux
+ Windows XP OS 32 Bits Partial Tested
-I have problems to initialized my hid testing device on Windows.
-Make a list with every hid device connected. Passed
-Read Manufacture, Product and Serial String. Passed
-Write to the hid testing device. Failed
-Read to the hid testing device. Failed
-Set Feature Report to the hid testing device. Untested
-Get Feature Report to the hid testing device. Untested
+Needs MinGW module to compile on Windows
Note: I tested the HIDAPI on Windows with the example included with the HIDAPI
library but it do not work. I guess its something with the Feature Reports
process and/or Windows driver.
BULK Tested on:
+ GNU/Linux Ubuntu 32 Bits Partial Tested
-Make a list with every hid device connected. Untested
-Read Manufacture, Product and Serial String. Passed
-Write to the bulk testing device. Passed
-Read to the bulk testing device. Passed
+Needs libusb-1.0 develop package to compile on Linux
Note: The source of bulk implementation its unpublished. It not finished yet.
ToDo
HID
+ test in Windows OS 64 Bits
+ test in MacOS X 32 Bits
+ test in MacOS X 64 Bits
BULK
+ enhanced the module to support Bulk communication on Linux/Windows/MacOs X