PORTS Forum
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
This forum is closed to new activity.
The posts are available to browse, but posting has been disabled. BIG THANKS to all who have participated and shared your knowledge over the past 13 years.
Aug 11, 2023
Home
Help
Search
Login
Register
PORTS Forum
»
Ports and Interfaces
»
USB
»
Getting readings/data from a usb device?
« previous
next »
Print
Pages: [
1
]
Author
Topic: Getting readings/data from a usb device? (Read 13549 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?
Logged
Jan Axelson
Administrator
Frequent Contributor
Posts: 3033
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
Logged
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
Logged
Print
Pages: [
1
]
« previous
next »
PORTS Forum
»
Ports and Interfaces
»
USB
»
Getting readings/data from a usb device?