diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..092ee12 --- /dev/null +++ b/Makefile @@ -0,0 +1,4 @@ +# Makefile + +main: + gcc everblu_meters.c -o everblu_meters -lwiringPi -lpthread -Wall diff --git a/README.md b/README.md index 8a0a344..d141e0d 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,14 @@ # everblu-meters -Fetch water usage data from Cyble EverBlu meters using RADIAN protocol. +Fetch water/gas usage data from Cyble EverBlu meters using RADIAN protocol on 433Mhz. + +Meters supported: +- Itron EverBlu Cyble Enhanced + ## Hardware ![Raspberry Pi Zero with CC1101](board.jpg) -Currently the project runs on Raspberry Pi with an RF transreciver (CC1101). +The project runs on Raspberry Pi with an RF transreciver (CC1101). ### Connections (rpi to CC1101): - pin 1 (3V3) to pin 2 (VCC) @@ -20,28 +24,29 @@ Currently the project runs on Raspberry Pi with an RF transreciver (CC1101). ## Configuration 1. Enable SPI in raspi-config. 2. Install WiringPi from https://github.com/WiringPi/WiringPi/ -3. Set meter serial number and production date in `cc1101.c`, it can be found on the meter label itself: +3. Install mosquitto-dev: `apt install mosquitto-dev` +4. Set meter serial number and production date in `cc1101.c`, it can be found on the meter label itself: ![Cyble Meter Label](meter_label.png) +5. Compile the code with `make` +6. Run `everblu_meters`, after ~2s your meter data should be on the screen. - - -## Compiling - -``` -gcc radian_trx.c -o radian_trx -lwiringPi -lpthread -Wall -``` - ## Troubleshooting ### Frequency adjustment +Your transreciver module may be not calibrated correctly, please modify frequency a bit lower or higher and try again +### Business hours +Your meter may be configured in such a way that is listens for request only during hours when data collectors work - to conserve energy. If you are unable to communicate with the meter, please try again during business hours (8-16). + +### Serial number starting with 0 +Please ignore the trailing 0, provide serial in configuration whthout it. + ## Origin and license -This code is fetched from http://www.lamaisonsimon.fr/wiki/doku.php?id=maison2:compteur_d_eau:compteur_d_eau - +This code is based on code from http://www.lamaisonsimon.fr/wiki/doku.php?id=maison2:compteur_d_eau:compteur_d_eau The license is unknown, citing one of the authors (fred): @@ -50,5 +55,3 @@ The license is unknown, citing one of the authors (fred): > this code was made by "looking" at the radian protocol which is said to be open source earlier in the page, I don't know if that helps? - - diff --git a/radian_trx.c b/everblu_meters.c similarity index 89% rename from radian_trx.c rename to everblu_meters.c index c5be4b7..9c4cc00 100644 --- a/radian_trx.c +++ b/everblu_meters.c @@ -2,7 +2,7 @@ /* it is exposed just to demonstrate CC1101 capability to reader water meter indexes */ /* there is no Warranty on radian_trx SW */ -#include "radian_trx.h" +#include "everblu_meters.h" void IO_init(void) { diff --git a/radian_trx.h b/everblu_meters.h similarity index 100% rename from radian_trx.h rename to everblu_meters.h