Skip to content

Commit

Permalink
fix command order prevented configuration to be applied (#56)
Browse files Browse the repository at this point in the history
* fix command order prevented configuration to be applied

fix command order prevented configuration to be applied

* Energyconfig automode does not reset anymore

Energyconfig automode does not reset anymore
  • Loading branch information
hallard authored Sep 12, 2024
1 parent fdffb2e commit 7aa3745
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 14 deletions.
4 changes: 3 additions & 1 deletion raw/esp32/DenkyD4_V1.0/init.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
Template {"NAME":"Denky D4 (v1.0)","GPIO":[32,0,0,0,1,0,0,0,0,1,0,1,0,0,0,0,0,640,608,0,0,450,449,448,0,0,5632,0,0,0,0,0,0,0,0,0],"FLAG":0,"BASE":1}
Module 0

; All these parameters are saved onto flash device
; only once when autoconf is activated or
Expand All @@ -20,3 +19,6 @@ Backlog0 Timezone 99; TimeStd 0,0,10,1,3,60; TimeDst 0,0,3,1,2,120

; # Set Teleinfo in stadard mode at 9600 baud.
; EnergyConfig Standard

; use template and reboot
Module 0
6 changes: 4 additions & 2 deletions raw/esp32/DenkyD4_V1.1/init.bat
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
Br load("DenkyD4_V1.1.autoconf#cp2fs.be")
Template {"NAME":"Denky D4 (v1.1)","GPIO":[32,0,0,0,1,0,0,0,0,1,1376,1,0,0,0,0,0,640,608,0,0,0,0,0,0,0,5632,0,0,0,0,0,0,0,0,0],"FLAG":0,"BASE":1}
Module 0

; All these parameters are saved onto flash device
; only once when autoconf is activated or
Expand Down Expand Up @@ -29,5 +28,8 @@ Energyconfig bright=75
Energyconfig period=1

; Set Teleinfo to autodetect mode (standard or historique)
; this one restart device, use it at the end of file
Energyconfig automode

; use template and reboot
Module 0

5 changes: 3 additions & 2 deletions raw/esp32/DenkyD4_V1.3/init.bat
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
Br load("DenkyD4_V1.3.autoconf#cp2fs.be")
Template {"NAME":"Denky D4 (v1.3)","GPIO":[32,0,0,0,1,0,0,0,0,1,1376,1,0,0,0,0,0,640,608,0,0,0,0,0,0,0,5632,0,0,0,0,0,0,0,0,0],"FLAG":0,"BASE":1}
Module 0

; All these parameters are saved onto flash device
; only once when autoconf is activated or
Expand Down Expand Up @@ -29,5 +28,7 @@ Energyconfig bright=75
Energyconfig period=1

; Set Teleinfo to autodetect mode (standard or historique)
; this one restart device, use it at the end of file
Energyconfig automode

; use template and reboot
Module 0
6 changes: 4 additions & 2 deletions raw/esp32/DenkyD4_V1.3a/init.bat
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
Br load("DenkyD4_V1.3a.autoconf#cp2fs.be")
Template {"NAME":"Denky D4 (v1.3a)","GPIO":[32,0,0,0,1,0,0,0,0,1,1376,1,0,0,0,0,0,640,608,0,0,0,0,0,0,0,5632,0,0,0,0,0,0,0,0,0],"FLAG":0,"BASE":1}
Module 0

; All these parameters are saved onto flash device
; only once when autoconf is activated or
Expand Down Expand Up @@ -29,5 +28,8 @@ Energyconfig bright=75
Energyconfig period=1

; Set Teleinfo to autodetect mode (standard or historique)
; this one restart device, use it at the end of file
Energyconfig automode

; use template and reboot
Module 0

4 changes: 3 additions & 1 deletion raw/esp32/EthTinfo_V1.0/init.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
Template {"NAME":"EthTinfo (Olimex ESP32)","GPIO":[1,1,8864,1,0,1,0,0,5536,1,8832,8800,0,0,5600,1,1,1,1,5568,1,1,1,1,0,0,0,0,1,1,32,1,5632,1,1,1],"FLAG":0,"BASE":1}
Module 0
EthType 0
EthAddress 0
EthClockMode 3
Expand All @@ -22,3 +21,6 @@ EnergyConfig Full

; Send only each 1 on 10 frames received
EnergyConfig Skip 9

; use template and reboot
Module 0
4 changes: 2 additions & 2 deletions raw/esp32/Wemos_Teleinfo/init.bat
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
Br load("Wemos_Teleinfo.autoconf#cp2fs.be")
Template {"NAME":"Wemos Teleinfo","GPIO":[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1376,1,1,640,608,5632,1,1,0,1,0,0,0,1,1,1,1,1,1,1,1,1],"FLAG":0,"BASE":1}
Module 0

; All these parameters are saved onto flash device
; only once when autoconf is activated or
Expand All @@ -22,4 +21,5 @@ Backlog0 Timezone 99; TimeStd 0,0,10,1,3,60; TimeDst 0,0,3,1,2,120
; # Set Teleinfo in stadard mode at 9600 baud.
; EnergyConfig Standard


; use template and reboot
Module 0
5 changes: 3 additions & 2 deletions raw/esp32c3/Winky/init.bat
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
Br load("Winky.autoconf#cp2fs.be")
Template {"NAME":"Winky C3","GPIO":[1,4704,1376,5632,4705,640,608,1,1,32,1,0,0,0,0,0,0,0,1,1,1,1],"FLAG":0,"BASE":1}
Module 0

; All these parameters are saved onto flash device
; so once configured, you can change them afterward
Expand Down Expand Up @@ -38,5 +37,7 @@ Energyconfig bright=75
Energyconfig period=1

; Set Teleinfo to autodetect mode (standard or historique)
; this one restart device, use it at the end of file
Energyconfig automode

; use template and reboot
Module 0
5 changes: 3 additions & 2 deletions raw/esp32c6/Winky/init.bat
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
Br load("Winky.autoconf#cp2fs.be")
Template {"NAME":"Winky","GPIO":[1,4704,1376,4705,5632,4706,640,608,1,32,1,0,0,0,0,0,0,0,1,1,1,1,1,4096,0,0,0,0,0,0,0],"FLAG":0,"BASE":1}
Module 0

; All these parameters are saved onto flash device
; so once configured, you can change them afterward
Expand Down Expand Up @@ -38,5 +37,7 @@ Energyconfig bright=75
Energyconfig period=1

; Set Teleinfo to autodetect mode (standard or historique)
; this one restart device, use it at the end of file
Energyconfig automode

; use template and reboot
Module 0

0 comments on commit 7aa3745

Please sign in to comment.