-
Notifications
You must be signed in to change notification settings - Fork 8
Home
MeterLogger for Kamstrup meters are programmed with a standard FT232RL FTDI USB to TTL serial adapter also used for Arduino. DTR pin is left unconnected. Here shown with a male-to-female adapter and a cap connected to the 3.3 V supply to help supplying power for the MeterLogger when programming the flash:
It can be ordered from https://www.banggood.com/FT232RL-FTDI-USB-To-TTL-Serial-Converter-Adapter-Module-For-Arduino-p-917226.html
MeterLogger is running at 3.3 V, so remember to configure the adapter for 3.3 V!
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
perl -e 'print map(chr(int rand(256)), 1..16)'|xxd -g 16
and copy the generated key (ef500c9268cf749016d26d6cbfaaf7bf)
in mysql client run:
insert into `meters` (`serial`, `key`) values ('9999999', 'ef500c9268cf749016d26d6cbfaaf7bf');
Put jumper on pins marked 'PRG' and connect the serial programmer to the MeterLogger
Run the following to clean, build and flash:
KEY=<key> AP=1 make clean all flashall
where <key> is the key copied in previous step.
links: http://41j.com/blog/2015/01/esp8266-notes-summary/ gode posts om esp8266