2.1.2 • Published 20 days ago

@eove/power-supply-com-communicator v2.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
20 days ago

power-supply-com-communicator

Node.js lib to communicate with power supply devices such as ITECH IT6932A model through serial port.

Supported devices

  • IT6932A

Install

npm install

Usage

This lib exposes a communicator which may send commands to the power supply device and get answers.

import { createCommunicator } from '@eove/power-supply-com-communicator';

const communicator = createCommunicator('/dev/ttyUSB0');

communicator
  .open()
  .then(() => communicator.sendCommand({ type: 'QUERY_IDENTIFICATION' }))
  .then(console.log);

Here's the API documentation

How to contribute?

You would like a power supply device to be supported?

Here are the steps:

  1. Find the corresponding PDF documentation and eventually add it to ./docs
  2. Create a ./lib/devices/<your-model> directory and implement the methods of the Driver Interface
  3. Send a PR for review and have fun testing!