11-08-2010 05:13 AM
I need to develop a USB communication module using Labview to read and the Micro-controller target. To start learning it, i used a USB pendrive for Data read and Write. I created a VISA RAW driver using the NI driver wizard and installed it. I'm using the USBRAWcontrol.vi downloaded from this forum. It is asking for the parameters like,
1. Request
2. Request Type
3. Value and
4. Index
Even-though, i read through the USB 2.0 specification sheet and Nuggets. I still have doubts like what are the value to be passed to the above parameters ? How can i write a data to the pendrive ? Bulk / Control - which one to prefer ?
11-09-2010 10:08 PM
How did you determine the vendor ID and product ID of the pendrive? Did you use USBview?
If you used USBview, the method of transfer Bulk/Control will be mentioned alongside your device when you connect it to your PC and run USBview.
11-09-2010 10:42 PM
I used the Device manager - Driver details to find the Vendor ID and Device ID. The HHD Device Monitor tool in Mass Storage View, says the protocol: Bulk-Only Transfer, Device Class: Storage. From this I incur that the Pendrive supports Bulk transfer. So, I tried a Bulktransfer VI. The NI Spy says the data Bulk out is success (0) on first transfer.
On the next Bulk Out, the VI stops with an I/O error.
As per the Device Monitor tool, even the first Bulk out transfer was not successful. I don't know how to solve this ?
11-10-2010 12:09 AM
Is the following link relevant to your case?
http://digital.ni.com/public.nsf/websearch/273BB58D3B52CE6886256F3B00714D03?OpenDocument