How to read data from USB port using C

c++usb

I have sensor node connected to USB port that sense temperature, humidity and light and send the data to PC.
What piece of code will help me to read that data from the USB port in normal C.
Application of the nodes is built on C using Eclipse.

Best Solution

I looked into the specifications of your board and it seems like it's a FTDI chip. This means it's exactly the same way you read from a serial port.

Here is how you program the serial port in Windows (it hasn't changed in a long time).

Related Question