mirror of
https://gitlab.com/manzerbredes/ina260-zmq-publisher.git
synced 2025-04-07 04:16:26 +02:00
Minor changes
This commit is contained in:
parent
f1bbb2449f
commit
a3bb6ee6d7
1 changed files with 11 additions and 13 deletions
24
README.md
24
README.md
|
@ -1,28 +1,26 @@
|
||||||
## ina260-zmq-publisher
|
## ina260-zmq-publisher
|
||||||
|
|
||||||
A ZeroMQ-based power monitoring publisher for the ina260 chip. This repository provides:
|
A ZeroMQ-based power monitoring publisher for the ina260 chip.\
|
||||||
|
This repository provides:
|
||||||
- `logger`: that collects power measurements from the ina260 using the dedicated driver
|
- `logger`: that collects power measurements from the ina260 using the dedicated driver
|
||||||
- `publisher`: that continuously publish using the ZeroMQ pub/sub communication pattern
|
- `publisher`: that continuously publish the logger's data using the ZeroMQ pub/sub communication pattern
|
||||||
- `subscriber`: a client that collect the measurements from the publishers (broker, frontend etc...)
|
- `subscriber`: a program that collects the measurements published by the publishers (used to create a broker, frontend etc...)
|
||||||
|
|
||||||
*Note: Nothing is stored locally! Everything that is published by the publishers is either received by the subscriber or lost.*
|
*Note: Nothing is stored locally! Everything that is published by the publishers is either received by the subscriber or lost.*
|
||||||
|
|
||||||
### Compilation
|
### Compilation
|
||||||
The only dependency is [ZeroMQ](https://zeromq.org/). After installing the ZeroMQ library, the following will generate all the executables:
|
The only dependency is [ZeroMQ](https://zeromq.org/). After installing the ZeroMQ library, running `$ make` will generate all the executables.
|
||||||
|
|
||||||
$ make
|
|
||||||
|
|
||||||
### Deployment
|
### Deployment
|
||||||
1. Update `config.mk` according to your needs \*\***IMPORTANT**\*\*
|
1. Update `config.mk` according to your needs \*\***IMPORTANT**\*\*
|
||||||
2. On the nodes equiped with the ina260 chips run `make publish`
|
2. On the nodes equiped with the ina260 chips and its driver, run `make publish`
|
||||||
3. On the node that collect the measurements (broker, frontend etc..) run `make subscribe`
|
3. On the node that collect the measurements (broker, frontend etc..) run `make subscribe`
|
||||||
|
|
||||||
### Notes
|
### Notes
|
||||||
- Message format used in ZeroMQ exchanges:
|
- Message format used in ZeroMQ exchanges:
|
||||||
|
|
||||||
1: <ZMQ_TOKEN>
|
L1: <ZMQ_TOKEN>\
|
||||||
2: <KEY>
|
L2: <KEY>\
|
||||||
3: <CLIENT>
|
L3: <CLIENT>\
|
||||||
4: <INTERVAL>
|
L4: <INTERVAL>\
|
||||||
5-n:<CSV-DATA>
|
L5-n: <CSV-DATA>
|
Loading…
Add table
Reference in a new issue