All Projects → reelyactive → advlib

reelyactive / advlib

Licence: MIT License
Open source, protocol-agnostic library for decoding ambient wireless packets. We believe in an open Internet of Things.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to advlib

barnowl
Technology-agnostic middleware for RFID, RTLS and M2M, enabling location-aware physical spaces. We believe in an open Internet of Things.
Stars: ✭ 25 (-72.22%)
Mutual labels:  rfid, bluetooth-low-energy, node-js, pareto-anywhere
onetricks.net
(WIP) kayn-powered (typescript node.js) ReasonReact app presenting you a dashboard of high ELO one trick ponies in League of Legends
Stars: ✭ 13 (-85.56%)
Mutual labels:  node-js
livecoding-frontend-projects
Repositório com projetos Front-End
Stars: ✭ 70 (-22.22%)
Mutual labels:  node-js
sourcemaps.io
Web-based Source Map validator
Stars: ✭ 50 (-44.44%)
Mutual labels:  node-js
Theatherflix
Theatherflix OpenSource Project - A visual tool for wiring digital movies, to sort and list the top latest movie trailers. We are constantly developing and making changes. Do you want to be part? Contact us!
Stars: ✭ 51 (-43.33%)
Mutual labels:  node-js
owonb35
Bluetooth Client for Owon B35 Multimeter
Stars: ✭ 22 (-75.56%)
Mutual labels:  bluetooth-low-energy
delet
[DEPRECATED - see README.md] a Discord bot made using Discord.js
Stars: ✭ 46 (-48.89%)
Mutual labels:  node-js
botyo
Modular chatbot framework designed for group chat rooms on Facebook
Stars: ✭ 17 (-81.11%)
Mutual labels:  node-js
ble-utilities-unreal
This is Unreal Engine plugin that allows to scan for BLE devices with Cycling Power service running, connect to one of them and subscribe for its notifications.
Stars: ✭ 48 (-46.67%)
Mutual labels:  bluetooth-low-energy
rdm6300
A simple library to interface with RDM6300 RFID reader.
Stars: ✭ 46 (-48.89%)
Mutual labels:  rfid
timeoff-server
TimeOff is an application that allows companies' employees to set vacations before they begin taking their time off. Implemented in modern tech stack i.e. Node, Express, MongoDB.
Stars: ✭ 33 (-63.33%)
Mutual labels:  node-js
telegram-channel-scraper
Scrape messages from Telegram in a NodeJS cli program
Stars: ✭ 132 (+46.67%)
Mutual labels:  node-js
ble-heart-rate-demo
Web bluetooth heart rate monitor
Stars: ✭ 24 (-73.33%)
Mutual labels:  bluetooth-low-energy
blessed-bluez
BLE library using Java and Bluez
Stars: ✭ 32 (-64.44%)
Mutual labels:  bluetooth-low-energy
ESP32 BLE OTA Arduino
OTA update on ESP32 via BLE
Stars: ✭ 41 (-54.44%)
Mutual labels:  bluetooth-low-energy
Arduino-BLE-MIDI
MIDI over Bluetooth Low Energy (BLE-MIDI) 1.0 for Arduino
Stars: ✭ 133 (+47.78%)
Mutual labels:  bluetooth-low-energy
node-js-jwt-auth
Node.js Demo for Token Based Authentication (JWT) with MySQL database
Stars: ✭ 161 (+78.89%)
Mutual labels:  node-js
Discord-Reposter
Bot for reposting Discord messages (work in progress)
Stars: ✭ 62 (-31.11%)
Mutual labels:  node-js
Registration-and-Login-Form-in-Nodejs-and-MongoDB
This Project is Live on: 🌍
Stars: ✭ 40 (-55.56%)
Mutual labels:  node-js
node-telegram-keyboard-wrapper
A support to manage keyboards and force replies in Telegram via bots
Stars: ✭ 32 (-64.44%)
Mutual labels:  node-js

advlib

Library for wireless advertising packet decoding. advlib is protocol-agnostic and currently supports the following processor modules:

and the following interpreter modules:

The purpose of advlib is to extract all potentially relevant information from ambient data packets and to organise this information in a consistent manner, regardless of the radio protocol.

The objective of advlib v1.x is to support and to make accessible the broadest array of use cases by being highly modular and by facilitating contributions to its continuous development.

advlib is a lightweight Node.js package that can run on resource-constrained edge devices as well as on powerful cloud servers and anything in between. It is a key element in Pareto Anywhere open source software of the reelyActive technology platform.

Installation

npm install advlib

Hello advlib

For example, process several raw packets received from a beacon by selecting Bluetooth Low Energy as the processor (advlib-ble) and including any relevant processor and interpreter libraries (don't forget to first install these using npm).

const advlib = require('advlib');

const PROCESSORS = [
    { processor: require('advlib-ble'),
      libraries: [ require('advlib-ble-services'),
                   require('advlib-ble-manufacturers') ],
      options: { ignoreProtocolOverhead: true } }
];
const INTERPRETERS = [ require('advlib-interoperable') ];

let packets = [
    'c21d04acbe55daba16096164766c6962206279207265656c79416374697665',
    'c21904acbe55daba1216aafe10fc017265656c7961637469766507',
    'c21804acbe55daba1116aafe20000c4815200000004500000258'
];
let processedPackets = advlib.process(packets, PROCESSORS, INTERPRETERS);
console.log(processedPackets);

Packets will be combined, in order of precedence, into a single JSON:

{ name: "advlib by reelyActive",
  txPower: -4,
  uri: "https://www.reelyactive.com",
  batteryVoltage: 3.144,
  temperature: 21.125,
  txCount: 69,
  uptime: 60000 }

Standard Properties

advlib observes the following standard properties to represent the information extracted from ambient data packets. New standard properties are added whenever new data cannot be effectively represented using the existing properties. Once established, a standard property should not change (unless otherwise noted).

Property Type Notes
acceleration Array of Number [ x, y, z ] In g
angleOfRotation Number In degrees
appearance String From Bluetooth
batteryPercentage Number 0 to 100 (%)
batteryVoltage Number In volts
deviceIds Array of String
elevation Number In m
heading Number In degrees
heartRate Number In beats per minute
illuminance Number In lx
interactionDigest Array of Object
isButtonPressed Array of Boolean
isContactDetected Array of Boolean
isMotionDetected Array of Boolean
magneticField Array of Number [ x, y, z ] In G
name String
nearest Array of Object
position Array of Number [ lon, lat, ele ]
pressure Number In Pa
relativeHumidity Number 0 to 100 (%)
speed Number In m/s
temperature Number In Celcius
txCount Number
txPower Number In dBm
uptime Number In milliseconds
uri String
uuids Array of String
version String Format pending

Properties are intended to be as flat as possible to facilitate data manipulation, especially with respect to database schemas.

Project History

The advlib project began in 2015 and was published in a scientific paper entitled Low-Power Wireless Advertising Software Library for Distributed M2M and Contextual IoT presented at the 2nd IEEE World Forum on Internet of Things (WF-IoT) in Milan, Italy that same year.

In 2020, advlib was redesigned and updated to v1.x which is modular, more efficient, protocol-agnostic and better supports the broad range of use cases that have emerged since its initial conception. The previous version remains available in the release-0.1 branch and as [email protected] on npm.

Contributing

Discover how to contribute to this open source project which upholds a standard code of conduct.

Security

Consult our security policy for best practices using this open source software and to report vulnerabilities.

Known Vulnerabilities

License

MIT License

Copyright (c) 2015-2022 reelyActive

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].