tfitts Posted September 16, 2015 Posted September 16, 2015 I'm trying to read raw hex data from 2 different USB scales (both show up as HID Human Interface Devices.) using hidtrace.exe I got the information belowScale #1 info VID=0922 PID=8004 (Dymo)Sample Output: 04 0B FF 15 00Scale #2 Info VID=0b67|PID=555e (Fairbanks)Sample Output: 05 0C FE FB FF The closest script I've found seems to be the one in this thread https://www.autoitscript.com/forum/topic/95105-hid-human-interface-device-communications-in-xp/ that uses rawinput.au3 to read from keyboard, mice, or HIDs but I can't figure out what changes I need to make to specify the VID/PID and read the stream from the correct device. I have one other scale that creates a standard serial port that I can read from no problem but I've never been able to get anything from these HID scales.Any help would be appreciated.
jchd Posted September 17, 2015 Posted September 17, 2015 Did you follow the examples near end of page 3? It worked for me at that time even if that requires a little bit of guesswork to determine exactly which device is which, especially when your machine has seen several HID devices connected over time. Maybe the "simplest" way is to try intercepting each device one after the other until you find the right one. This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe hereRegExp tutorial: enough to get startedPCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta. SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)
Maximz Posted October 21, 2015 Posted October 21, 2015 (edited) <snip>We do not accept adverts for payware products - please do not do it again. Edited October 21, 2015 by Melba23 See above
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now