Skip to content

Guess the portname for your usb connected microcontroller, using simple heuristics.

Notifications You must be signed in to change notification settings

dustmop/portguide

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

portguide

A heuristical approach to guess the portname for a usb connected microcontroller.

For example, connect your Arduino or Tessel, then instead of figuring out your portname manually, do the following:

var portguide = require('portguide');
var SerialPort = require('serialport');
var port = new SerialPort(portguide.findPort(), {
  baudRate: 9600
});
....

No need to worry about plugging your device into the wrong usb port, portguide has got you covered!

Supports Linux, OSX, and Windows.

install

npm install portguide

caveats

Portguide's operation is not terribly intelligent. It simply looks for a device with a familiar naming pattern, but doesn't verify that the connection will actually work. Furthermore, if more than one device is attached, portguide will decline to pick one; instead it will just fail.

Probably not suitable for production, but great for experimentation, demos, or just showing off!

About

Guess the portname for your usb connected microcontroller, using simple heuristics.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published