LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

USB RAW Communication difficulties - chip CP2102

Hello,

 

I want to control through Labview a UART to USB bridge, chip CP2102. It comes with a Virtual COM port driver which I don't want to use because I want to control it as a USB device. The company suggests to produce a custom driver through an application they have in order to control it as a USB device. On the other hand, Labview suggests to produce a NI-VISA driver. So I produced a VISA driver, MAX found my USB RAW device and the VISA test panel opened. Also the simple GET_STATUS request worked fine through control in pipe.

 

The company gives for their custom made driver some control commands but I don't think I can use these commands with NI-VISA driver, right?

Which commands will I use in order to receive and send data? Which pipe will I use? Control or Bulk?

Should I roll back to their custom driver and control it as a USB Instr? Would it be easier?

 

 

Thanks in advance,

Ino

0 Kudos
Message 1 of 3
(2,598 Views)

InoKiour,

 

I did a search for CP2102 and came across this other forum they talk about a dll that the company provided. If this is the same device, then I would look over this discussion forum.

http://forums.ni.com/t5/LabVIEW/USB-communication-with-cp2102-RAW/m-p/921245/highlight/true#M414396

Kyle Hartley
Senior Embedded Software Engineer

0 Kudos
Message 2 of 3
(2,576 Views)

InoKiour,

 

I have a FTDI uart at my desk which I used, after generating a driver I used it just as a com port so you should just be able to send the commands to the device as before. If you're not that familiar with the devices controls then it may be better to just use their driver.

 

Either way if the device is waiting for a specific command you should be able to do a visa write with the input followed by a read and the device should respond in some way. 

 

Maybe someone who is more familiar with the CP2102 will see this.

Kyle Hartley
Senior Embedded Software Engineer

0 Kudos
Message 3 of 3
(2,572 Views)