Author Topic: Getting readings/data from a usb device?  (Read 9691 times)

johnjameson

  • Member
  • ***
  • Posts: 2
Getting readings/data from a usb device?
« 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?

Jan Axelson

  • Administrator
  • Frequent Contributor
  • *****
  • Posts: 3033
    • Lakeview Research
Re: Getting readings/data from a usb device?
« Reply #1 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

johnjameson

  • Member
  • ***
  • Posts: 2
Re: Getting readings/data from a usb device?
« Reply #2 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