hardware-break

1.0.0 • Public • Published

hardware-break

This is a small reference and utility repository for sending hardware break signals to a device, using Node.js.

Some devices, like Novatel OEM6 family devices, can have configuration reset by sending a hardware break signal.

A hardware break signal is a special type of device signal that can be transmitted by periodically writing a continuous null stream to a device, because a hardware break signal occurs when a logical 0 is held for longer than one frame time.

Install

CLI utilities:

npm install --global hardware-break

or API usage:

npm install --save hardware-break

CLI Usage

hardware-break-novatel /dev/tty.usbserial-ABCDEFHIJ

or if you want to break at a different baudrate (should not be necessary):

hardware-break-novatel /dev/tty.usbserial-ABCDEFHIJ 115200

API usage

var hardwareBreak = require('hardware-break');
var hardwareBreakNovatel = hardwareBreak.novatel;

// Hardware break a novatel device using port
hardwareBreakNovatel('/dev/tty.usbserial-ABCEFG', function () {
  console.log('finished');
});

// Hardware break a novatel device using an existing SerialPort connection
hardwareBreakNovatel(novatelDevice, function () {
  console.log('finished');
});

Package Sidebar

Install

npm i hardware-break

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • pcswiftnav
  • snav
  • ljbade
  • ebethon
  • snav-jason