Node.js lib to communicate with power supply devices such as ITECH IT6932A
model through serial port.
- IT6932A
npm install
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
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!