@eove/power-supply-com-communicator
v3.0.0
Published
Communicator to communicate to power supply
Downloads
14
Readme
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:
- Find the corresponding PDF documentation and eventually add it to
./docs
- Create a
./lib/devices/<your-model>
directory and implement the methods of the Driver Interface - Send a PR for review and have fun testing!