I have written a program to connect the laserrangefinder
and it works it shows if the device is connected or not,
but i get the message[italic] “device not supported” [/italic]
do i have to integrate the driver witch i have also on my computer to use the laserrangefnder?
CDC is supported so this should have worked! Did you use any gadgeteer driver? If so, don’t. Start new console application and follow the USB host tutorial.
No i don’t think that i have installed any driver
this is my problem i have the driver for that LRF on my pc
but i don’t know how to install it on my FEZ Spider
Plug the USB Host module to the Spider; plug the Spider to the PC; plug the LRF to the USB Host module.
“driver” refers to dragging the “device” onto the Gadgeteer designer, which then inserts code (the actual “driver” code) into your app. You don’t need to install a “driver” like you do on a PC into Fez-land, but you do need code to handle the device (you’re largely going to write this code for your application)
I think you need to start a non-gadgeteer app, start using the EMX template. Then start adding code to connect to the CDC device, and you should be able to talk to the LRF. Good luck !
The easiest way will be this, start a console application, not gadgeteer application. Then follow this “USB Host” tutorial Support – GHI Electronics
maybe I should say that I have written a C# program on my pc to communicate with the LRF and on my pc its not a problem for me but on the FEZ I need a driver or somthing like a driver to be able to speak with the LRF and here is my problem I noticed that I have to drag the LRF on my Fez designer but I dont now how to do this. In which way do you mean drag ? Where do I see the LRF to drag him?
The laser rangefinder won’t show up in the Gadgeteer toolbox because there’s not a Gadgeteer driver for it. Gus is recommending that you start with a regular .NETMF console application and follow the tutorial here: GHI Electronics – Where Hardware Meets Software
Connect your laser rangefinder to the USBHost module, and the USBHost module to a mainboard socket labeled “H”.
Once you have code to talk to the laser rangefinder from a NETMF console app, we can help you bring that back into the Gadgeteer world.
OK I started with the console application and the first two worked i recognized the device is connected or not and the mouse also worked fine :D. Now I’m programming the serial devices and the program is clear to me, but When I writte System.IO.Ports… there is no Ports only System.IO and some other points. I have included the right files i think and systems.ports should normaly work.