Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/simenkid/unpi
Unified Network Processor Interface (UNPI) for Texas Instruments RF4CE, BluetoothSmart, and ZigBee Wireless SoCs
https://github.com/simenkid/unpi
Last synced: about 1 month ago
JSON representation
Unified Network Processor Interface (UNPI) for Texas Instruments RF4CE, BluetoothSmart, and ZigBee Wireless SoCs
- Host: GitHub
- URL: https://github.com/simenkid/unpi
- Owner: simenkid
- License: mit
- Created: 2016-02-27T05:00:00.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-02-14T06:22:50.000Z (over 5 years ago)
- Last Synced: 2024-09-19T02:29:58.061Z (about 2 months ago)
- Language: JavaScript
- Homepage:
- Size: 24.4 KB
- Stars: 8
- Watchers: 4
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
unpi
========================
Unified Network Processor Interface for Texas Instruments Wireless SoCs.[![NPM](https://nodei.co/npm/unpi.png?downloads=true)](https://nodei.co/npm/unpi/)
[![Travis branch](https://img.shields.io/travis/simenkid/unpi/master.svg?maxAge=2592000)](https://travis-ci.org/simenkid/unpi)
[![npm](https://img.shields.io/npm/v/unpi.svg?maxAge=2592000)](https://www.npmjs.com/package/unpi)
[![npm](https://img.shields.io/npm/l/unpi.svg?maxAge=2592000)](https://www.npmjs.com/package/unpi)
## DocumentationPlease visit the [Wiki](https://github.com/simenkid/unpi/wiki).
## Overview
The *unpi* is the packet builder and parser for Texas Instruments [_Unified Network Processor Interface (UNPI)_](http://processors.wiki.ti.com/index.php/Unified_Network_Processor_Interface) used in RF4CE, BluetoothSmart, and ZigBee wireless SoCs. As stated in TI's wiki page:
> TI's Unified Network Processor Interface (NPI) is used for establishing a serial data link between a TI SoC and external MCUs or PCs. This is mainly used by TI's network processor solutions.
## Installation
> $ npm install unpi --save
## UsageHere is an quick example. See [Usage](https://github.com/simenkid/unpi/wiki#Usage) on the Wiki for details.
```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
});
```## License
Licensed under [MIT](https://github.com/simenkid/unpi/blob/master/LICENSE).