Ports
May 21, 2013, 06:47:58 pm *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: SMF - Just Installed!
 
   Home   Help Search Login Register  
Welcome to the PORTS Forum. Please post your questions, answers, and comments relating to USB and other hardware interfaces in the appropriate forums below. - Jan
Pages: [1]
  Print  
Author Topic: Getting readings/data from a usb device?  (Read 619 times)
johnjameson
Member
*
Posts: 2


« on: April 10, 2012, 12: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?
Logged
Jan Axelson
Administrator
Frequent Contributor
*****
Posts: 1627


WWW
« Reply #1 on: April 10, 2012, 01: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
Logged
johnjameson
Member
*
Posts: 2


« Reply #2 on: April 11, 2012, 11:11:20 am »

Wow,thanks Jan,alotta info there.
I plan to take readings from this sensor once I get a handle on the code
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!