I have a Fez Cobra iii and I want to interact with a sensor that outputs position information through a usb connection.
I want to connect that sensor to the USB Host connector from Cobra iii and read the input.
I understood that i need to use GHIElectronics.NETMF.USBHost namespace from GHIElectronics.NETMF.USBHost.dll, but I cannot find it.
I use WS2013, and have installed: MicroFrameworkSDK, netmfvs2013 and GHI Electronics NETMF SDK 2015 R1, but I cannot see the dll in the project.
If you can let me now where it is the dll or what do I need to install to have access to it, please let me know.
Also, any example of code on how to read from USB host connector will be very helpful.
The client send string data to the USB.
Thank you for your answer.
I found the dll and new I can read the input from the sensor.
Now I would like to communicate with the sensor by sending commands.
If I send the command “motoroff”, it should stop the sensor engine (this work when sent from the PC.)
I tried the below procedure to send the command back to the sensor, but, since it did not stopped, I assume that something it is wrong with the way I send it.
I use “using Toolbox.NETMF;” to get the byte array to be sent.
I checked the byte array and has a total of 8 bytes before being sent.
@ Sorin - When including code in your postings, select/highlight the code and hit the </> button. This will cause the code to be properly formatted and easy to read.