• Stars
    star
    102
  • Rank 335,584 (Top 7 %)
  • Language
    C
  • License
    MIT License
  • Created over 12 years ago
  • Updated almost 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Search for USB devices by VID/PID, gets device serial numbers
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, 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
- listArduinos.pl  - Mac OS X program to list Arduino UNOs ports & serial nums

The .vbs files are executed on the command-line with the "cscript.exe" command.
For instance, to list all the COM ports, run:

cmd> 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 exe file outputs similar results when run:

cmd> 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.

With two Arduino UNOs, the results look like:
cmd> listComPorts.exe
COM27 - http://www.arduino.cc - USB\VID_2341&PID_0000\64936333936351400000
COM25 - http://www.arduino.cc - USB\VID_2341&PID_0000\6493234373835191F1F1


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".  In the Teensy case,
the serial number is "12345".  
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.

A short description of these programs is given here:
http://todbot.com/blog/2012/03/02/listcomports-windows-command-line-tool-for-usb-to-serial/





More Repositories

1

blink1

Official software for blink(1) USB RGB LED by ThingM
C#
944
star
2

circuitpython-tricks

Some CircuitPython tricks, mostly reminders to myself
Python
534
star
3

arduino-serial

Example C and Java host code to talking to an arduino or other "serial" device
C
232
star
4

hidapitester

Simple command-line program to test HIDAPI
C
203
star
5

picostepseq

MIDI sequencer using Raspberry Pi Pico in Arduino & CircuitPython
C
191
star
6

Blink1Control2

Blink1Control GUI to control blink(1) USB RGB LED devices.
JavaScript
151
star
7

blink1-tool

Command-line tools and C library for blink(1) USB RGB LED
C
80
star
8

mozzi_experiments

Experiments with Mozzi, mostly on SAMD21 & RP2040 chips
C++
79
star
9

wiichuck_adapter

Very simple adpater for hooking a Wii Nunchuck to your Arduino or other microcontroller
Objective-C
72
star
10

SoftI2CMaster

Software I2C / TWI library for Arduino allows any two pins to be SDA & SCL
C++
71
star
11

qtpy-knob

QT Py Media Knob using rotary encoder & neopixel ring
Python
70
star
12

ServoEaser

Arduino library for servo easing
C++
67
star
13

picotouch

Tiny capsense touch MIDI keyboard controller from a Raspberry Pi Pico
Python
67
star
14

hidpytoy

A GUI app for playing with HID devices, written in Python
Python
64
star
15

arduino-i2c-scanner

Simple Arduino I2C scanner as described at http://todbot.com/blog/2009/11/29/i2cscanner-pde-arduino-as-i2c-bus-scanner/
Arduino
64
star
16

CircuitPython_GC9A01_demos

Demos showing how to use CircuitPython displayio driver for GC9A01 round LCDs
Python
50
star
17

qtpy-tricks

Some tips and tricks for CircuitPython, using a QT Py board
41
star
18

win-hid-dump

Sort of a Windows version of `usbhid-dump` to show HID Report Descriptors
C#
40
star
19

mac-hid-dump

Sort of a MacOS version of `usbhid-dump` to show HID Report Descriptors
C
40
star
20

circuitpython-synthio-tricks

tips, tricks, and examples of using CircuitPython synthio
37
star
21

blink1-python

Official Python library for blink(1) USB RGB LED notification device
Python
35
star
22

pico8enc

Lotsa Rotary Encoders on a Raspberry Pi Pico
Python
33
star
23

PicoDVI_experiments

Experiments using PicoDVI (mostly on Adafruit DVI RP2040 Feather)
C++
31
star
24

NeoJoints

Neopixel Joints, millable on the Othermill
Eagle
27
star
25

macropadsynthplug

Abuse StemmaQT port by turning it into Audio Out + MIDI In
Python
25
star
26

picotouch_synth

Thin captouch-based synth platform for Raspberry Pi Pico
Python
24
star
27

MIDIPedalBox

USB MIDI Pedal, powered by CircuitPython + Trinket M0
Python
24
star
28

samd21-programming-notes

SAMD21 programming notes
23
star
29

electron-hid-toy

Simple example of using node-hid in Electron (w/ React)
JavaScript
19
star
30

crashspace-bigbutton

Eagle
18
star
31

MozziScout

Arduino sketches for Oskitone Scout using Mozzi synthesis library
C
17
star
32

plinkykeeb

Simple MIDI controller using KB2040 and computer key switches
Python
16
star
33

circuitpython_staroids

Something like Asteroids but not really, done in CircuitPython
Python
15
star
34

circuitpython_led_effects

Some fun with Neopixel / WS2812 LEDs in CircuitPython
Python
15
star
35

qtpy_synth

Hardware & software for a tiny QTPy-driven synth
Python
13
star
36

LinkM

BlinkM controller / programmer and general USB-to-I2C adapter
C
12
star
37

node-blink1-server

HTTP API server in Node for blink(1) devices
JavaScript
12
star
38

BlinkM-Examples

BlinkM example code for Arduino, Processing, et al
C
11
star
39

hidraw-dump

Use Linux HIDRAW to print info about HID devices (USB & Bluetooth/BLE)
C
9
star
40

blink1mk3

Official hardware design files for blink(1) mk3 USB RGB LED by ThingM
C
8
star
41

circuitpython_screensaver

Do you need a screensaver for CircuitPython? Of course you do
Python
8
star
42

Mill-a-Week

weekly experiments with othermachine Othermill
Eagle
8
star
43

eurorack_hagiwo_stuff

C++
8
star
44

blink1-android

Android library for blink(1) USB RGB LED
Java
7
star
45

ArduinoOnBeagleBone

Arduino and AVR compilation tools for BeagleBone (currently command-line only)
7
star
46

CircuitPython_PS2Controller

CircuitPython library to read Sony PS2 and PS1 ("PSX") game controllers
Python
7
star
47

blink1-java

blink(1) Java / Processing library
Processing
6
star
48

magtag_dayofweek

Use MagTag to display day of week on your fridge
Python
6
star
49

picostepsynth

Python
6
star
50

NeopixelTester

some testing hardware for Neopixels (WS2812, SK6812)
C++
6
star
51

CircuitPython_MicroOSC

Minimal OSC parser, server, and client for CircuitPython and CPython
Python
5
star
52

node-hid-ds4-test

Testing Playstation DualShock4 controller with node-hid
JavaScript
5
star
53

tal_experiments

Experiments with the Teensy Audio Library
C++
5
star
54

tomu-hardware-eagle

Eagle translation of im-tomu/tomu-hardware
5
star
55

ArduinoCore-EFM32

Arduino core for EFM32HG and Tomu boards (very much work in progress)
C
5
star
56

HackadayVectorscopeHacks

Hacks (hopefully) for the Hackaday Superconference 2023 badge
Python
5
star
57

touchwheels

some touchwheels
Python
5
star
58

CircuitPython_Noise

Simplex noise (like Perlin) for CircuitPython
Python
4
star
59

blink1-webhid

JavaScript
4
star
60

blink1-python-old

Python libraries for blink(1) USB LED
Python
4
star
61

node-ifttt-demoserver

Example of how to implement an IFTTT Channel w/ OAuth2
JavaScript
4
star
62

blinkm2

C++
3
star
63

NoiseShield

A simple audio output shield for Arduino
C
3
star
64

electron-hid-test

extremely simple demo of node-hid with electron
JavaScript
3
star
65

StripGrid

Grid controller for LED strips
C
3
star
66

circuitpython_ledtools

hacks
Python
3
star
67

electron-hid-test-erb

electron-hid-test using electron-react-boilerplate
TypeScript
3
star
68

qtpy-keys

Tiny USB keyboard using QTPy and CircuitPython
Python
3
star
69

MIDIHost2Host

Connect two USB-MIDI host devices together, using two Trinket M0s
C++
3
star
70

GPSWiiRecorder

The full set of source for the Make magazine Wii nunchuck roller coaster data logger
C++
3
star
71

node-arduino-serial

NodeJs version of arduino-serial commandline tool
JavaScript
2
star
72

circuitpython_invaders

Python
2
star
73

CloudFridge

C++
2
star
74

TeamPneumo

Development for CashMachine
C++
2
star
75

eagle-tricks

Various bits n bobs to do with Eagle Schematic & PCB software
2
star
76

samd11toy

playing with SAMD11
Eagle
2
star
77

SDLbeerlight

an overly complicated light announcing a certain time of day or state of mind
Eagle
2
star
78

ILOVELAMP

Sketches and Ideas for I LOVE LAMP project
Eagle
2
star
79

seeknobs

knob board for seesaw, and also a drone synth
C++
2
star
80

TrinketTrigger

The simplest Eurorack module?
Python
2
star
81

QTPyNoisyBoi

Python
2
star
82

cirpycp

Copy files from CircuitPython Bundle to your device, based on a list of requirements
Shell
2
star
83

pico_test_synth

Simple board to help make synths with Raspberry Pi Pico and PCM5102 I2S DAC
Python
2
star
84

WS2812_Arduino_Lib_Compare

Comparison of different Arduino libraries for WS2812 / NeoPixel LEDs
Arduino
1
star
85

ReflashBlinkM

Update or replace firmware in a BlinkM
Processing
1
star
86

WingShield

WingShield Industries makes Arduino shield kits, like the ScrewShield
1
star
87

node-tinynative

Smallest possible Node.js native module
C++
1
star
88

Blink1DotNet

C# library blink(1) .NET library for blink(1) devices connected to computer
C#
1
star
89

qtpy_midibff

QTPy MIDI BFF
1
star
90

qt-fun

qt-fun
C++
1
star
91

TrinketTouringMachine

Eurorack modules based around Trinket M0
C++
1
star
92

PWM-Tests

1
star
93

BlinkMNet

A network of Arduino-connected BlinkMs
C++
1
star
94

electron-tray-test

Testing out Tray API in Electron, showing how click event does not work on MacOSX
JavaScript
1
star
95

mp3thing

mp3 player controller for cheap commercial screenless mp3 players
Arduino
1
star
96

CrashSpaceStatus

The "AtCrashSpace" app written using Apache Cordova
JavaScript
1
star
97

todbot.github.com

1
star
98

BlinkM-Arduino

Official BlinkM Arduino library and examples by ThingM
C++
1
star
99

CircuitPython_TouchPIO

Capacitive touch sensing using Pico / RP2040 PIO, using touchio API
Python
1
star