I loaded the v2 NTP WiFi code onto the ESP-12E connected to the v1 clock and it actually works!
The Clock server page says "Communicating with: NixieFirmwareV1, I2C v54", which is incorrect as the clock is running v56, but the debug log seems to indicate the parameter count and definitions are compatible:
SDK:2.2.1(cfd48f3)/Core:2.5.2=20502000/lwIP:STABLE-2_1_2_RELEASE/glue:1.1-7-g82abda3/BearSSL:a143020
Starting debug session
ezTime debug level set to DEBUG
--> Set OTA Updates on
scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 7
cnt
connected with snickerdoodle, channel 1
dhcp client start...
*WM:
*WM: AutoConnect
*WM: Connecting as wifi client...
*WM: Using last saved values, should be faster
state: 5 -> 0 (0)
rm 0
scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 7
cnt
connected with snickerdoodle, channel 1
dhcp client start...
ip:192.168.1.98,mask:255.255.255.0,gw:192.168.1.1
*WM: Connection result:
*WM: 3
*WM: IP Address:
*WM: 192.168.1.98
Connected!
mounted file system for read
reading config file
opened config file
{"time_zone":"
its.internet-box.ch/getTime/Europe/Zurich
"}
parsed json
Loaded time server URL:
its.internet-box.ch/getTime/Europe/Zurich
Loaded NTP server:
Loaded NTP timezone:
Loaded NTP interval: 0
Closing config file
Recovered Config from SPIFFS
mounted file system for read
reading config file
opened config file
{"time_zone":"
its.internet-box.ch/getTime/Europe/Zurich
"}
parsed json
Loaded time server URL:
its.internet-box.ch/getTime/Europe/Zurich
Loaded NTP server:
Loaded NTP timezone:
Loaded NTP interval: 0
Closing config file
Recovered Config from SPIFFS
AP IP address: 0.0.0.0
IP address: 192.168.1.98
I2C master started
Scanning I2C bus
Received a response from 87
2C <-- Received bytes (expecting 1):
ate format:
I2C Protocol ERROR! Expected header 54 or 62, but got: 255
Received a response from 104
2C <-- Received bytes (expecting 1):
er:
I2C Protocol ERROR! Expected header 54 or 62, but got: 25
Received a response from 105
2C <-- Received bytes (expecting 1):
cted header
I2C <-- Received bytes (expecting 22): 22
2C <-- Got hour mode:
2C <-- Got blank lead:
2C <-- Got scrollback:
2C <-- Got suppress ACP:
2C <-- Got useFade:
2C <-- Got date format:
I2C <-- Got day blanking:
I2C <-- Got blank hour start:
I2C <-- Got blank hour end:
<-- Got scroll steps:
-- Got backlight mode:
channel:
I2C <-- Got green channel:
I2C <-- Got blue channel:
t cycle speed:
2C <-- Got useLDR:
C <-- Got blankMode:
2C <-- Got slotsMode:
2C <-- Got minDim Hi:
<-- Got minDim Lo:
leading zero
Received a ping answer from 105
Scanning I2C bus done
Sending IP Address to I2C: 192.168.1.98
Sending time to I2C: 2018,01,01,0,0,0
HTTP server started
Querying pool.ntp.org ... Received data:
0: 24, 2, 9, EA,
4: 0, 0, 8, BD,
8: 0, 0, 5, 85,
12: 98, 2, 85, 35,
16: E1, 18, FD, 6E,
20: C4, EC, AE, 8D,
24: 0, 0, 0, 0,
28: 0, 0, 0, 0,
32: E1, 18, FE, 83,
36: A8, 49, B5, 10,
40: E1, 18, FE, 83,
44: A8, 4D, F, FF,
success (round trip 129 ms)
Received time: Tuesday, 03-Sep-19 15:00:19.724 UTC
Set event (#1) to trigger on: Tuesday, 03-Sep-2019 15:30:20 UTC
Sending time to I2C: 2019,9,3,15,00,20
Normal time serve mode
Sending IP Address to I2C: 192.168.1.98
pm open,type:2 0
Got 24h mode param: 12h
Got blankLeading param: blank
Got useScrollback param: on
Got suppressACP param: on
Got useFade param: on
Got useLDR param: on
Got dateFormat param: 1
Got dayBlanking param: 0
Got blankFrom param:
Got blankTo param:
Got fadeSteps param: 50
Got scrollSteps param: 4
Got backLight param: 5
Got redCnl param: 15
Got grnCnl param: 0
Got bluCnl param: 0
Got cycleSpeed param: 10
Got blankMode param: 2
Got slotsMode param: 1
Got minDim param: 260
2C <-- Received bytes (expecting 1):
cted header
I2C <-- Received bytes (expecting 22): 22
2C <-- Got hour mode:
2C <-- Got blank lead:
2C <-- Got scrollback:
2C <-- Got suppress ACP:
2C <-- Got useFade:
2C <-- Got date format:
I2C <-- Got day blanking:
I2C <-- Got blank hour start:
I2C <-- Got blank hour end:
<-- Got scroll steps:
-- Got backlight mode:
channel:
I2C <-- Got green channel:
I2C <-- Got blue channel:
t cycle speed:
2C <-- Got useLDR:
C <-- Got blankMode:
2C <-- Got slotsMode:
2C <-- Got minDim Hi:
<-- Got minDim Lo:
leading zero
Sending time to I2C: 2019,9,3,15,01,21
Normal time serve mode
Sending IP Address to I2C: 192.168.1.98
Got 24h mode param: 12h
Got blankLeading param: blank
Got useScrollback param: on
Got suppressACP param: on
Got useFade param: on
Got useLDR param: on
Got dateFormat param: 1
Got dayBlanking param: 0
Got blankFrom param:
Got blankTo param:
Got fadeSteps param: 50
Got scrollSteps param: 4
Got backLight param: 5
Got redCnl param: 15
Got grnCnl param: 0
Got bluCnl param: 0
Got cycleSpeed param: 10
Got blankMode param: 2
Got slotsMode param: 1
Got minDim param: 260
2C <-- Received bytes (expecting 1):
cted header
I2C <-- Received bytes (expecting 22): 22
2C <-- Got hour mode:
2C <-- Got blank lead:
2C <-- Got scrollback:
2C <-- Got suppress ACP:
2C <-- Got useFade:
2C <-- Got date format:
I2C <-- Got day blanking:
I2C <-- Got blank hour start:
I2C <-- Got blank hour end:
<-- Got scroll steps:
-- Got backlight mode:
channel:
I2C <-- Got green channel:
I2C <-- Got blue channel:
t cycle speed:
2C <-- Got useLDR:
C <-- Got blankMode:
2C <-- Got slotsMode:
2C <-- Got minDim Hi:
<-- Got minDim Lo:
leading zero
Got 24h mode param: 12h
Got blankLeading param: blank
Got useScrollback param: on
Got suppressACP param: on
Got useFade param: on
Got useLDR param: on
Got dateFormat param: 1
Got dayBlanking param: 0
Got blankFrom param:
Got blankTo param:
Got fadeSteps param: 50
Got scrollSteps param: 4
Got backLight param: 5
Got redCnl param: 15
Got grnCnl param: 0
Got bluCnl param: 0
Got cycleSpeed param: 10
Got blankMode param: 2
Got slotsMode param: 1
Got minDim param: 260
2C <-- Received bytes (expecting 1):
cted header
I2C <-- Received bytes (expecting 22): 22
2C <-- Got hour mode:
2C <-- Got blank lead:
2C <-- Got scrollback:
2C <-- Got suppress ACP:
2C <-- Got useFade:
2C <-- Got date format:
I2C <-- Got day blanking:
I2C <-- Got blank hour start:
I2C <-- Got blank hour end:
<-- Got scroll steps:
-- Got backlight mode:
channel:
I2C <-- Got green channel:
I2C <-- Got blue channel:
t cycle speed:
2C <-- Got useLDR:
C <-- Got blankMode:
2C <-- Got slotsMode:
2C <-- Got minDim Hi:
<-- Got minDim Lo:
leading zero
Sending time to I2C: 2019,9,3,15,02,22
Normal time serve mode
Sending IP Address to I2C: 192.168.1.98
Sending time to I2C: 2019,9,3,15,03,23
Normal time serve mode
Sending IP Address to I2C: 192.168.1.98
Sending time to I2C: 2019,9,3,15,04,24
Normal time serve mode
Sending IP Address to I2C: 192.168.1.98
Sending time to I2C: 2019,9,3,15,05,25
Normal time serve mode
Sending IP Address to I2C: 192.168.1.98
Sending time to I2C: 2019,9,3,15,06,26
However, the NTP setting showed blank in Time Servers tab. I manually entered the correct Posix TZ string for my area, a valid ntp pool address and suitable poll interval. It successfully began using the NTP time instead of the backup server and displayed the correct time:
Saved config
mounted file system for write
saving config
{"time_zone":"
its.internet-box.ch/getTime/Europe/Zuric....0","ntp_interval":0
}
Saved config
mounted file system for write
saving config
{"time_zone":"
its.internet-box.ch/getTime/Europe/Zuric...,"ntp_interval":7201
}
Saved config
Set event (#1) to trigger on: Tuesday, 03-Sep-2019 17:37:20 UTC
Timezone lookup for: America/Chicago ... (round-trip 153 ms) success.
Olson: America/Chicago
Posix: CST6CDT,M3.2.0,M11.1.0
mounted file system for write
saving config
{"time_zone":"
its.internet-box.ch/getTime/Europe/Zuric...,"ntp_interval":7201
}
Saved config
Sending time to I2C: 2019,9,3,10,37,20
Normal time serve mode
Sending IP Address to I2C: 192.168.1.98
Sending time to I2C: 2019,9,3,10,38,21
Normal time serve mode
Sending IP Address to I2C: 192.168.1.98
Sending time to I2C: 2019,9,3,10,39,22
Normal time serve mode
Sending IP Address to I2C: 192.168.1.98
Sending time to I2C: 2019,9,3,10,40,23
Normal time serve mode
Sending IP Address to I2C: 192.168.1.98
2C <-- Received bytes (expecting 1):
cted header
I2C <-- Received bytes (expecting 22): 22
2C <-- Got hour mode:
2C <-- Got blank lead:
2C <-- Got scrollback:
2C <-- Got suppress ACP:
2C <-- Got useFade:
2C <-- Got date format:
I2C <-- Got day blanking:
I2C <-- Got blank hour start:
I2C <-- Got blank hour end:
<-- Got scroll steps:
-- Got backlight mode:
channel:
I2C <-- Got green channel:
I2C <-- Got blue channel:
t cycle speed:
2C <-- Got useLDR:
C <-- Got blankMode:
2C <-- Got slotsMode:
2C <-- Got minDim Hi:
<-- Got minDim Lo:
leading zero
Sending time to I2C: 2019,9,3,10,41,24
Normal time serve mode
Sending IP Address to I2C: 192.168.1.98
Sending time to I2C: 2019,9,3,10,42,25
Normal time serve mode
Sending IP Address to I2C: 192.168.1.98
Sending time to I2C: 2019,9,3,10,43,26
Normal time serve mode
Sending IP Address to I2C: 192.168.1.98
mounted file system for write
saving config
{"time_zone":"
its.internet-box.ch/getTime/Europe/Zuric...,"ntp_interval":7201
}
Saved config
Sending time to I2C: 2019,9,3,10,44,27
Normal time serve mode
Sending IP Address to I2C: 192.168.1.98
Sending time to I2C: 2019,9,3,10,45,28
Normal time serve mode
Sending IP Address to I2C: 192.168.1.98
Sending time to I2C: 2019,9,3,10,46,29
Normal time serve mode
Sending IP Address to I2C: 192.168.1.98
Sending time to I2C: 2019,9,3,10,47,30
Normal time serve mode
Sending IP Address to I2C: 192.168.1.98
Sending time to I2C: 2019,9,3,10,48,31
Normal time serve mode
Sending IP Address to I2C: 192.168.1.98
Sending time to I2C: 2019,9,3,10,49,32
Normal time serve mode
Sending IP Address to I2C: 192.168.1.98
Sending time to I2C: 2019,9,3,10,50,33
Normal time serve mode
Sending IP Address to I2C: 192.168.1.98
Sending time to I2C: 2019,9,3,10,51,34
Normal time serve mode
It appears to be mostly working.
Best regards,
Don