Skip to content

Commit

Permalink
added pnpList.vbs, updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
todbot committed Mar 2, 2012
1 parent bda9c9e commit 929b6f5
Showing 1 changed file with 24 additions and 4 deletions.
28 changes: 24 additions & 4 deletions README.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
usbSearch -- Search for USB devices
usbSearch -- Search for USB devices, list USB COM ports, in Windows

2012, Tod E. Kurt, http://todbot.com/blog/


A list of Windows-only tools (for now) for inspecting USB devices & serial ports

- usbSearch.vbs - search USB bus by VID / PID
- usbSearch.c - search USB bus by VID / PID (but in C, not VBScript)
- usbSearch.vbs - search USB bus by VID / PID, in VBScript
- usbSearch.exe - search USB bus by VID / PID
- usbSearch.c - source code for usbSearch.exe
- listComPorts.vbs - list all known COM ports, with other useful info
- listComPorts.exe - list all known COM ports, with other useful info
- listComPorts.c - source code for listComPorts.exe
- pnpList.vbs - list all PnP devices, USB and other

The .vbs files are executed on the command-line with the "cscript.exe" command.
For instance, to list all the COM ports, run:
Expand All @@ -16,7 +20,23 @@ $ cscript.exe //nologo listComPorts.vbs
COM26 - FTDI - FTDIBUS\VID_0403+PID_6001+A6004CCFA\0000
COM24 - PJRC.COM, LLC. - USB\VID_16C0&PID_0483\12345

The above example shows an Arduino Diecimila and Teensy plugged in.
The exe file outputs similar results when run:

$ listComPorts.exe
COM26 - FTDI - FTDIBUS\VID_0403+PID_6001+A6004CCFA\0000
COM24 - PJRC.COM, LLC. - USB\VID_16C0&PID_0483\12345

The above examples show an Arduino Diecimila and Teensy plugged in.

Note that the USB VID and PID are displayed (0403 and 6001, respectively,
for the Arduino), and the serial number too, if the device has one.
In the Arduino case, the serial number is "A6004CCFA".
The serial number is useful for determining which Arduino is bound to which
COM port.

To build the exe files, install MinGW or similar and type "make".
See the Makefile for details.




Expand Down

0 comments on commit 929b6f5

Please sign in to comment.