PORTS Forum

Ports and Interfaces => USB => Topic started by: johnjameson on April 10, 2012, 01:43:08 pm

Title: Getting readings/data from a usb device?
Post by: johnjameson on April 10, 2012, 01:43:08 pm
Hey guys,I've been reading over some example code for detecting a usb when its put into a pc and just wondering where is there any example code for taking data from a usb device
for example reading data from a sensor?
Title: Re: Getting readings/data from a usb device?
Post by: Jan Axelson on April 10, 2012, 02:06:55 pm
My HID and WinUSB example code can read data for any purpose:

http://www.lvr.com/hidpage.htm#MyExampleCode

http://www.lvr.com/winusb.htm

Or you can use a USB virtual serial port device and access the device as if it were a physical serial port:

http://www.lvr.com/serport.htm

Also see:

http://www.lvr.com/usbfaq.htm

http://www.lvr.com/usb_on_a_budget.htm

Jan
Title: Re: Getting readings/data from a usb device?
Post by: johnjameson on April 11, 2012, 12:11:20 pm
Wow,thanks Jan,alotta info there.
I plan to take readings from this sensor once I get a handle on the code