Skip to content
Kristoffer Ek edited this page Oct 17, 2017 · 32 revisions

Set up build environment

images/programmer_front_small.jpg images/programmer_back_small.jpg

Given the serial programmer is connected to /dev/ttyUSB0, run:

git clone https://github.com/nabovarme/MeterLogger.git
cd MeterLogger
sudo docker build -t meterlogger:latest .
docker run -t -i --device=/dev/ttyUSB0 meterlogger:latest

Generate master key

perl -e 'print map(chr(int rand(256)), 1..16)'|xxd -g 16

and copy the generated key (ef500c9268cf749016d26d6cbfaaf7bf)

Set meter up in database

in mysql client run:

insert into `meters` (`serial`, `key`) values ('9999999', 'ef500c9268cf749016d26d6cbfaaf7bf');

Build and flash

Put jumper on pins marked 'PRG' and connect the serial programmer to the MeterLogger

images/meterlogger_small.jpg images/meterlogger_with_programmer_small.jpg

Run the following to clean, build and flash:

KEY=ef500c9268cf749016d26d6cbfaaf7bf AP=1 make clean all flashall

links: http://41j.com/blog/2015/01/esp8266-notes-summary/ gode posts om esp8266

Clone this wiki locally