LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

USB RAW communication with Pendrive

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 ? 

 

Download All
0 Kudos
Message 1 of 4
(3,168 Views)

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.

0 Kudos
Message 2 of 4
(3,133 Views)

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 ?   

0 Kudos
Message 3 of 4
(3,119 Views)
0 Kudos
Message 4 of 4
(3,109 Views)