Unified Network Processor Interface for Texas Instruments Wireless SoCs.
npm install unpiunpi
========================
Unified Network Processor Interface for Texas Instruments Wireless SoCs.




js
var Unpi = require('unpi'),
SerialPort = require("serialport").SerialPort;
var sp = new SerialPort("/dev/ttyUSB0", {
baudrate: 57600
}),
unpi = new Unpi({
lenBytes: 1
phy: sp
});
unpi.on('data', function (data) {
console.log(data); // The parsed data receiving from the serial port
});
``