code: function(options) {
  		console.log('Connecting to usb serial port:', this.portname);
  		var port;
  		try {
  			port = new SerialPort(this.portname, {
  				baudrate: options.baud || 57600,
  				buffersize: options.buffersize || 20480
  			});
  		} catch(e) {
  			process.stdout.write('Cannot open serial port.');
  			process.exit(-2);
  		}
  		this.serialport = port;
  		var self = this;
  		this.serialport.on('data', function(data) { self.seriallistener.call(self, data); });
  
  		////////////////////
  		//
  		// Keyboard / stdin listener
  		//
  		if (this.kbdin) {
  			process.stdin.resume();
  			process.stdin.setEncoding('utf8');
  			process.stdin.setRawMode(true);			// pass ^C through to serial port
  			process.stdin.on('data', function (data) {	// keyboard input goes to port
  				if (data === '\x1d') process.exit(0);	// ^] to quit
  				else if (port) self.serialport.write(data);
  			});
  		}
  	}
docs: //////////////////  Open serial port