forked from patience4711/read-APSystems-YC600-QS1-DS3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
legende.ino
72 lines (58 loc) · 2.48 KB
/
legende.ino
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
// nodemcu pins
// 16 D0
// 5 D1
// 4 D2
// 0 D3
// 2 D4
// GND
// 3,3v
// 14 D5
// 12 D6
// 13 D7 -> P02
// 15 D8 -> P03
// 3 D9
// 1 D10
// Serial of the APS inverter
// we use Serial.swap to go from normal usb serial to serial on d7, d6
// serial of my inverter 408000158215
// made the homepage to include the scripts so it uses less memory
// the inverterpage is served form progmem with processor for the form in 3 parts
// otherwise it is too large for the server.
// started making some global string vars in to chars freq heath acv dcc dcv power
// added an inverterquery get.Inverter?inv=x
// changed the reading procedure,
// added mqtt check to healthcheck and removed it from loop
// added a hardware reset command to use via serial
// in the healthcheck, if the zigbee not responsive it will be reset.
// added the console so that there are no swaps needed anymore.
// compile settings FS: 1mB OTA 1019
/*
from the readme from kadszol
Configuration ID: 0x0003; Size: 1 byte; Default value: 0
35: Sent=FE03 26 05 03 01 03 21 ZB_WRITE_CONFIGURATION ZCD_NV_STARTUP_OPTION value=03
35: Received=FE01 66 05 00 62 SRSP
40: Sent=FE01 410000 40 RESET
40: Received=FE064180020202020702C2
45: Sent=FE0A 2605 01 08 FFFF80971B01A3D8 56 ZB_WRITE_CONFIGURATION
45: Received=FE01 66 05 00 62 SRSP status = 00 success
50: Sent=FE03 2605 87 01 00 A6 ZB_WRITE_CONFIGURATION ZCD_NV_LOGICAL_TYPE 00=coordinator
50: Received=FE01 66 05 00 62 SRSP status = 00
55: Sent=FE04 2605 83 02 D8 A3 DD ZB_WRITE_CONFIGURATION ZCD_NV_PANID 0x0083 id 0x02 size D8A3 identifies the network
55: Received=FE 01 66 05 00 62 SRSP status = 00
60: Sent=FE06 2605 84 04 00000100 A4 ZB_WRITE_CONFIGURATION ZCD_NV_CHANLIST on which channel it operates
60: Received=FE 01 66 05 00 62 SRSP status = 00
65: Sent=FE0D 240014050F0001010002000015000020
65: Received=FE 01 64 00 00 65
lengths of progmem files
ECU_HOMEPAGE length = 3543 now 3113 combined with JAVA_SCRIPT 6737 after removing whitespace
stylesheet_home length = 1244 now 1074
stylesheet_subs length = 1209
MENUPAGE length = 1444
HTML_HEAD length = 727
LOGPAGE length = 1393
DETAILSPAGE length = 2172
DETAILS_SCRIPT length = 3019
JAVA_SCRIPT length = 4741
with beginrespons after combining the scripts with the home- and detailspage the memory comes back
so when the scripts are served apart, the memory leak arises
*/