PIC reset sets setpoint to maximum

This Forum is about the Opentherm gateway (OTGW) from Schelte

Moderator: hvxl

Post Reply
mvdnes
Starting Member
Starting Member
Posts: 8
Joined: Sun Aug 07, 2022 12:38 pm

PIC reset sets setpoint to maximum

Post by mvdnes »

After running OTGW succesfully for several years, I have run into some issues recently after switching my thermostat from a Honeywell Round Modulation to a Honeywell Round Wireless RF (Y87RF2008).

This new thermostat sometimes jumps to it's maximum setpoint of 35 °C. (If I lower the maximum temperature on the thermostat to 32 °C for example, then that will be what it jumps to.)

I have determined that this happens after a reset of the PIC. I could trigger the behaviour when pulling the reset line low for 500ms while having a laptop connected to the serial lines. Therefore I can pretty much rule out it being triggered by an invalid command being sent or some other crash.

My setup is a V2 gateway from NodoShop (bought in 2017, revision 0.9.9.3), and I normally have it connected via a NodeMCU running custom firmware. The PIC is a P16F1847 running OpenTherm Gateway 6.5.

When running the thermostat without OTGW, it runs fine. I have even already replaced the thermostat thinking it was faulty, but that did not made any difference.

Below is a log I captured using otmonitor, with some data before the reset and after the setpoint:

Code: Select all

09:56:35.477828  T00110000  Read-Data   Relative modulation level (MsgID=17): 0.00
09:56:35.652836  BF0110000  Unk-DataId  Relative modulation level (MsgID=17): 0.00
09:56:36.475827  T00390000  Read-Data   Max CH water setpoint (MsgID=57): 0.00
09:56:36.500914  R00780000  Read-Data   Burner operation hours (MsgID=120): 0
09:56:36.652813  B40783481  Read-Ack    Burner operation hours (MsgID=120): 13441
09:56:36.676253  AC0395A00  Read-Ack    Max CH water setpoint (MsgID=57): 90.00
09:56:37.473821  T80190000  Read-Data   Boiler water temperature (MsgID=25): 0.00
09:56:37.663824  B40192800  Read-Ack    Boiler water temperature (MsgID=25): 40.00
09:56:38.471842  T10010A00  Write-Data  Control setpoint (MsgID=1): 10.00
09:56:38.668848  BD0010A00  Write-Ack   Control setpoint (MsgID=1): 10.00
09:56:39.469853  T80000200  Read-Data   Status (MsgID=0): 00000010 00000000
09:56:39.667842  B40000200  Read-Ack    Status (MsgID=0): 00000010 00000000
09:56:40.468065  T00110000  Read-Data   Relative modulation level (MsgID=17): 0.00
09:56:40.578852  BF0110000  Unk-DataId  Relative modulation level (MsgID=17): 0.00
09:56:41.465850  T001B0000  Read-Data   Outside temperature (MsgID=27): 0.00
09:56:41.583846  B601B0000  Data-Inv    Outside temperature (MsgID=27): 0.00
09:56:42.463851  T80190000  Read-Data   Boiler water temperature (MsgID=25): 0.00
09:56:42.583854  B40192800  Read-Ack    Boiler water temperature (MsgID=25): 40.00
09:56:43.461863  T10010A00  Write-Data  Control setpoint (MsgID=1): 10.00
09:56:43.593868  BD0010A00  Write-Ack   Control setpoint (MsgID=1): 10.00
09:56:46.498924  OpenTherm Gateway 6.5
09:56:46.523602  Error 03
09:56:47.401920  T1002010D  Write-Data  Master configuration (MsgID=2): 00000001 13
09:56:47.514910  B7002010D  Unk-DataId  Master configuration (MsgID=2): 00000001 13
09:56:47.538841  AD002010D  Write-Ack   Master configuration (MsgID=2): 00000001 13
09:56:47.590901  High power
09:56:48.400927  T807F0000  Read-Data   Slave product version (MsgID=127): 0 0
09:56:48.520935  B707F0000  Unk-DataId  Slave product version (MsgID=127): 0 0
09:56:48.595125  Low power
09:56:48.658125  Medium power
09:56:49.398934  T907E010B  Write-Data  Master product version (MsgID=126): 1 11
09:56:49.525928  BF07E010B  Unk-DataId  Master product version (MsgID=126): 1 11
09:56:50.397150  T00060000  Read-Data   Remote parameter flags (MsgID=6): 00000000 00000000
09:56:50.525955  BF0060000  Unk-DataId  Remote parameter flags (MsgID=6): 00000000 00000000
09:56:50.547600  AC0060300  Read-Ack    Remote parameter flags (MsgID=6): 00000011 00000000
09:56:51.394956  T00300000  Read-Data   DHW setpoint boundaries (MsgID=48): 0 0
09:56:51.537137  BF0300000  Unk-DataId  DHW setpoint boundaries (MsgID=48): 0 0
09:56:52.393169  T80310000  Read-Data   Max CH setpoint boundaries (MsgID=49): 0 0
09:56:52.540997  B70310000  Unk-DataId  Max CH setpoint boundaries (MsgID=49): 0 0
09:56:53.391029  T80380000  Read-Data   DHW setpoint (MsgID=56): 0.00
09:56:53.542996  B70380000  Unk-DataId  DHW setpoint (MsgID=56): 0.00
09:56:53.564985  A40385000  Read-Ack    DHW setpoint (MsgID=56): 80.00
09:56:54.388992  T00390000  Read-Data   Max CH water setpoint (MsgID=57): 0.00
09:56:54.552999  BF0390000  Unk-DataId  Max CH water setpoint (MsgID=57): 0.00
09:56:54.576613  AC0395A00  Read-Ack    Max CH water setpoint (MsgID=57): 90.00
09:56:55.386963  T001B0000  Read-Data   Outside temperature (MsgID=27): 0.00
09:56:55.556969  B601B0000  Data-Inv    Outside temperature (MsgID=27): 0.00
09:56:56.385006  T000A0000  Read-Data   Number of TSPs (MsgID=10): 0
09:56:56.557996  BF00A0000  Unk-DataId  Number of TSPs (MsgID=10): 0
09:56:57.384022  T000C0000  Read-Data   Size of fault buffer (MsgID=12): 0
09:56:57.568021  BF00C0000  Unk-DataId  Size of fault buffer (MsgID=12): 0
09:56:58.382022  T80190000  Read-Data   Boiler water temperature (MsgID=25): 0.00
09:56:58.573041  B40192800  Read-Ack    Boiler water temperature (MsgID=25): 40.00
09:56:59.380033  T10010A00  Write-Data  Control setpoint (MsgID=1): 10.00
09:56:59.572231  BD0010A00  Write-Ack   Control setpoint (MsgID=1): 10.00
09:57:00.378052  T80000200  Read-Data   Status (MsgID=0): 00000010 00000000
09:57:00.484028  B40000200  Read-Ack    Status (MsgID=0): 00000010 00000000
09:57:01.376066  T00110000  Read-Data   Relative modulation level (MsgID=17): 0.00
09:57:01.489209  BF0110000  Unk-DataId  Relative modulation level (MsgID=17): 0.00
09:57:02.374253  T00050000  Read-Data   Application-specific flags (MsgID=5): 00000000 0
09:57:02.487088  BC00500FF  Read-Ack    Application-specific flags (MsgID=5): 00000000 255
09:57:03.372279  T80190000  Read-Data   Boiler water temperature (MsgID=25): 0.00
09:57:03.500079  B40192800  Read-Ack    Boiler water temperature (MsgID=25): 40.00
09:57:04.370112  T10010A00  Write-Data  Control setpoint (MsgID=1): 10.00
09:57:04.505102  BD0010A00  Write-Ack   Control setpoint (MsgID=1): 10.00
09:57:05.369092  T80000200  Read-Data   Status (MsgID=0): 00000010 00000000
09:57:05.504274  B40000200  Read-Ack    Status (MsgID=0): 00000010 00000000
09:57:06.367097  T00110000  Read-Data   Relative modulation level (MsgID=17): 0.00
09:57:06.515204  BF0110000  Unk-DataId  Relative modulation level (MsgID=17): 0.00
09:57:07.364304  T00090000  Read-Data   Remote override room setpoint (MsgID=9): 0.00
09:57:07.521284  BF0090000  Unk-DataId  Remote override room setpoint (MsgID=9): 0.00
09:57:07.546487  AC0090000  Read-Ack    Remote override room setpoint (MsgID=9): 0.00
09:57:08.363323  T00090000  Read-Data   Remote override room setpoint (MsgID=9): 0.00
09:57:08.519327  BF0090000  Unk-DataId  Remote override room setpoint (MsgID=9): 0.00
09:57:08.544269  AC0090000  Read-Ack    Remote override room setpoint (MsgID=9): 0.00
09:57:09.361163  T80190000  Read-Data   Boiler water temperature (MsgID=25): 0.00
09:57:09.531144  B40192800  Read-Ack    Boiler water temperature (MsgID=25): 40.00
09:57:10.359134  T00090000  Read-Data   Remote override room setpoint (MsgID=9): 0.00
09:57:10.536336  BF0090000  Unk-DataId  Remote override room setpoint (MsgID=9): 0.00
09:57:10.561046  AC0090000  Read-Ack    Remote override room setpoint (MsgID=9): 0.00
09:57:11.357146  T10010A00  Write-Data  Control setpoint (MsgID=1): 10.00
09:57:11.535209  BD0010A00  Write-Ack   Control setpoint (MsgID=1): 10.00
09:57:12.355372  T80000200  Read-Data   Status (MsgID=0): 00000010 00000000
09:57:12.547308  B40000200  Read-Ack    Status (MsgID=0): 00000010 00000000
09:57:13.353184  T00110000  Read-Data   Relative modulation level (MsgID=17): 0.00
09:57:13.552331  BF0110000  Unk-DataId  Relative modulation level (MsgID=17): 0.00
09:57:14.352279  T900E6400  Write-Data  Maximum relative modulation level (MsgID=14): 100.00
09:57:14.551168  BF00E6400  Unk-DataId  Maximum relative modulation level (MsgID=14): 100.00
09:57:15.350389  T80190000  Read-Data   Boiler water temperature (MsgID=25): 0.00
09:57:15.462345  B40192800  Read-Ack    Boiler water temperature (MsgID=25): 40.00
09:57:16.348351  T10010A00  Write-Data  Control setpoint (MsgID=1): 10.00
09:57:16.467283  BD0010A00  Write-Ack   Control setpoint (MsgID=1): 10.00
09:57:17.346396  T80000200  Read-Data   Status (MsgID=0): 00000010 00000000
09:57:17.466353  B40000200  Read-Ack    Status (MsgID=0): 00000010 00000000
09:57:18.345421  T00110000  Read-Data   Relative modulation level (MsgID=17): 0.00
09:57:18.478419  BF0110000  Unk-DataId  Relative modulation level (MsgID=17): 0.00
09:57:19.343235  T10101400  Write-Data  Room setpoint (MsgID=16): 20.00
09:57:19.483439  B70101400  Unk-DataId  Room setpoint (MsgID=16): 20.00
09:57:19.508620  AD0101400  Write-Ack   Room setpoint (MsgID=16): 20.00
09:57:20.341458  T80190000  Read-Data   Boiler water temperature (MsgID=25): 0.00
09:57:20.482433  B40192800  Read-Ack    Boiler water temperature (MsgID=25): 40.00
09:57:21.338481  T10010A00  Write-Data  Control setpoint (MsgID=1): 10.00
09:57:21.493256  BD0010A00  Write-Ack   Control setpoint (MsgID=1): 10.00
09:57:22.337252  T80000200  Read-Data   Status (MsgID=0): 00000010 00000000
09:57:22.498463  B40000200  Read-Ack    Status (MsgID=0): 00000010 00000000
09:57:23.335286  T00110000  Read-Data   Relative modulation level (MsgID=17): 0.00
09:57:23.504252  BF0110000  Unk-DataId  Relative modulation level (MsgID=17): 0.00
09:57:24.333174  T1018148C  Write-Data  Room temperature (MsgID=24): 20.55
09:57:24.509457  B7018148C  Unk-DataId  Room temperature (MsgID=24): 20.55
09:57:25.331506  T80190000  Read-Data   Boiler water temperature (MsgID=25): 0.00
09:57:25.509472  B40192800  Read-Ack    Boiler water temperature (MsgID=25): 40.00
09:57:26.329471  T10010A00  Write-Data  Control setpoint (MsgID=1): 10.00
09:57:26.520292  BD0010A00  Write-Ack   Control setpoint (MsgID=1): 10.00
09:57:27.327291  T80000200  Read-Data   Status (MsgID=0): 00000010 00000000
09:57:27.525499  B40000200  Read-Ack    Status (MsgID=0): 00000010 00000000
09:57:28.325345  T00110000  Read-Data   Relative modulation level (MsgID=17): 0.00
09:57:28.527524  BF0110000  Unk-DataId  Relative modulation level (MsgID=17): 0.00
09:57:29.323534  T80310000  Read-Data   Max CH setpoint boundaries (MsgID=49): 0 0
09:57:29.436341  B70310000  Unk-DataId  Max CH setpoint boundaries (MsgID=49): 0 0
09:57:30.321512  T80190000  Read-Data   Boiler water temperature (MsgID=25): 0.00
09:57:30.441525  B40192800  Read-Ack    Boiler water temperature (MsgID=25): 40.00
09:57:31.320545  T10010A00  Write-Data  Control setpoint (MsgID=1): 10.00
09:57:31.443340  BD0010A00  Write-Ack   Control setpoint (MsgID=1): 10.00
09:57:32.318354  T80000200  Read-Data   Status (MsgID=0): 00000010 00000000
09:57:32.452543  B40000200  Read-Ack    Status (MsgID=0): 00000010 00000000
09:57:33.315383  T00110000  Read-Data   Relative modulation level (MsgID=17): 0.00
09:57:33.457547  BF0110000  Unk-DataId  Relative modulation level (MsgID=17): 0.00
09:57:34.314549  T1002010D  Write-Data  Master configuration (MsgID=2): 00000001 13
09:57:34.457587  B7002010D  Unk-DataId  Master configuration (MsgID=2): 00000001 13
09:57:34.481344  AD002010D  Write-Ack   Master configuration (MsgID=2): 00000001 13
09:57:35.312420  T80190000  Read-Data   Boiler water temperature (MsgID=25): 0.00
09:57:35.467568  B40192800  Read-Ack    Boiler water temperature (MsgID=25): 40.00
09:57:36.310600  T10010A00  Write-Data  Control setpoint (MsgID=1): 10.00
09:57:36.473610  BD0010A00  Write-Ack   Control setpoint (MsgID=1): 10.00
09:57:37.308598  T80000200  Read-Data   Status (MsgID=0): 00000010 00000000
09:57:37.471644  B40000200  Read-Ack    Status (MsgID=0): 00000010 00000000
09:57:38.306598  T00110000  Read-Data   Relative modulation level (MsgID=17): 0.00
09:57:38.483442  BF0110000  Unk-DataId  Relative modulation level (MsgID=17): 0.00
09:57:39.304603  T00030000  Read-Data   Slave configuration (MsgID=3): 00000000 0
09:57:39.488430  BF0030000  Unk-DataId  Slave configuration (MsgID=3): 00000000 0
09:57:40.303469  T80190000  Read-Data   Boiler water temperature (MsgID=25): 0.00
09:57:40.487427  B40192800  Read-Ack    Boiler water temperature (MsgID=25): 40.00
09:57:41.301485  T10010A00  Write-Data  Control setpoint (MsgID=1): 10.00
09:57:41.499447  BD0010A00  Write-Ack   Control setpoint (MsgID=1): 10.00
09:57:42.299649  T80000200  Read-Data   Status (MsgID=0): 00000010 00000000
09:57:42.403440  B40000200  Read-Ack    Status (MsgID=0): 00000010 00000000
09:57:43.297470  T00110000  Read-Data   Relative modulation level (MsgID=17): 0.00
09:57:43.402467  BF0110000  Unk-DataId  Relative modulation level (MsgID=17): 0.00
09:57:44.295650  T00390000  Read-Data   Max CH water setpoint (MsgID=57): 0.00
09:57:44.414661  BF0390000  Unk-DataId  Max CH water setpoint (MsgID=57): 0.00
09:57:44.439148  AC0395A00  Read-Ack    Max CH water setpoint (MsgID=57): 90.00
09:57:45.293493  T80190000  Read-Data   Boiler water temperature (MsgID=25): 0.00
09:57:45.419465  B40192800  Read-Ack    Boiler water temperature (MsgID=25): 40.00
09:57:46.291699  T10010A00  Write-Data  Control setpoint (MsgID=1): 10.00
09:57:46.418474  BD0010A00  Write-Ack   Control setpoint (MsgID=1): 10.00
09:57:47.289687  T80000200  Read-Data   Status (MsgID=0): 00000010 00000000
09:57:47.430506  B40000200  Read-Ack    Status (MsgID=0): 00000010 00000000
09:57:48.288509  T00110000  Read-Data   Relative modulation level (MsgID=17): 0.00
09:57:48.435475  BF0110000  Unk-DataId  Relative modulation level (MsgID=17): 0.00
09:57:49.286729  T001B0000  Read-Data   Outside temperature (MsgID=27): 0.00
09:57:49.434536  B601B0000  Data-Inv    Outside temperature (MsgID=27): 0.00
09:57:50.284532  T80190000  Read-Data   Boiler water temperature (MsgID=25): 0.00
09:57:50.446746  B40192800  Read-Ack    Boiler water temperature (MsgID=25): 40.00
09:57:51.282511  T10010A00  Write-Data  Control setpoint (MsgID=1): 10.00
09:57:51.451697  BD0010A00  Write-Ack   Control setpoint (MsgID=1): 10.00
09:57:52.280545  T80000200  Read-Data   Status (MsgID=0): 00000010 00000000
09:57:52.450528  B40000200  Read-Ack    Status (MsgID=0): 00000010 00000000
09:57:53.279558  T00110000  Read-Data   Relative modulation level (MsgID=17): 0.00
09:57:53.461554  BF0110000  Unk-DataId  Relative modulation level (MsgID=17): 0.00
09:57:54.277540  T00060000  Read-Data   Remote parameter flags (MsgID=6): 00000000 00000000
09:57:54.466574  BF0060000  Unk-DataId  Remote parameter flags (MsgID=6): 00000000 00000000
09:57:54.490247  AC0060300  Read-Ack    Remote parameter flags (MsgID=6): 00000011 00000000
09:57:55.275571  T80190000  Read-Data   Boiler water temperature (MsgID=25): 0.00
09:57:55.466604  B40192800  Read-Ack    Boiler water temperature (MsgID=25): 40.00
09:57:56.273860  T10010A00  Write-Data  Control setpoint (MsgID=1): 10.00
09:57:56.478747  BD0010A00  Write-Ack   Control setpoint (MsgID=1): 10.00
09:57:57.271596  T80000200  Read-Data   Status (MsgID=0): 00000010 00000000
09:57:57.382569  B40000200  Read-Ack    Status (MsgID=0): 00000010 00000000
09:57:58.269602  T00110000  Read-Data   Relative modulation level (MsgID=17): 0.00
09:57:58.381830  BF0110000  Unk-DataId  Relative modulation level (MsgID=17): 0.00
09:57:59.268832  T907E010B  Write-Data  Master product version (MsgID=126): 1 11
09:57:59.393616  BF07E010B  Unk-DataId  Master product version (MsgID=126): 1 11
09:58:00.266831  T80190000  Read-Data   Boiler water temperature (MsgID=25): 0.00
09:58:00.398626  B40192800  Read-Ack    Boiler water temperature (MsgID=25): 40.00
09:58:01.264630  T10010A00  Write-Data  Control setpoint (MsgID=1): 10.00
09:58:01.404628  BD0010A00  Write-Ack   Control setpoint (MsgID=1): 10.00
09:58:02.262646  T80000200  Read-Data   Status (MsgID=0): 00000010 00000000
09:58:02.408666  B40000200  Read-Ack    Status (MsgID=0): 00000010 00000000
09:58:03.260893  T00110000  Read-Data   Relative modulation level (MsgID=17): 0.00
09:58:03.408901  BF0110000  Unk-DataId  Relative modulation level (MsgID=17): 0.00
09:58:04.258753  T807F0000  Read-Data   Slave product version (MsgID=127): 0 0
09:58:04.419645  B707F0000  Unk-DataId  Slave product version (MsgID=127): 0 0
09:58:05.257639  T80190000  Read-Data   Boiler water temperature (MsgID=25): 0.00
09:58:05.424740  B40192800  Read-Ack    Boiler water temperature (MsgID=25): 40.00
09:58:06.255685  T10010A00  Write-Data  Control setpoint (MsgID=1): 10.00
09:58:06.426665  BD0010A00  Write-Ack   Control setpoint (MsgID=1): 10.00
09:58:07.253909  T80000200  Read-Data   Status (MsgID=0): 00000010 00000000
09:58:07.435649  B40000200  Read-Ack    Status (MsgID=0): 00000010 00000000
09:58:08.251707  T00110000  Read-Data   Relative modulation level (MsgID=17): 0.00
09:58:08.440696  BF0110000  Unk-DataId  Relative modulation level (MsgID=17): 0.00
09:58:09.250680  T80380000  Read-Data   DHW setpoint (MsgID=56): 0.00
09:58:09.440689  B70380000  Unk-DataId  DHW setpoint (MsgID=56): 0.00
09:58:09.463202  A40385000  Read-Ack    DHW setpoint (MsgID=56): 80.00
09:58:10.248075  T80190000  Read-Data   Boiler water temperature (MsgID=25): 0.00
09:58:10.451718  B40192800  Read-Ack    Boiler water temperature (MsgID=25): 40.00
09:58:11.246686  T10010A00  Write-Data  Control setpoint (MsgID=1): 10.00
09:58:11.355739  BD0010A00  Write-Ack   Control setpoint (MsgID=1): 10.00
09:58:12.244722  T80000200  Read-Data   Status (MsgID=0): 00000010 00000000
09:58:12.356760  B40000200  Read-Ack    Status (MsgID=0): 00000010 00000000
09:58:13.241737  T00110000  Read-Data   Relative modulation level (MsgID=17): 0.00
09:58:13.366752  BF0110000  Unk-DataId  Relative modulation level (MsgID=17): 0.00
09:58:14.240763  T00300000  Read-Data   DHW setpoint boundaries (MsgID=48): 0 0
09:58:14.371733  BF0300000  Unk-DataId  DHW setpoint boundaries (MsgID=48): 0 0
09:58:15.239834  T80190000  Read-Data   Boiler water temperature (MsgID=25): 0.00
09:58:15.370808  B40192800  Read-Ack    Boiler water temperature (MsgID=25): 40.00
09:58:16.237763  T10010A00  Write-Data  Control setpoint (MsgID=1): 10.00
09:58:16.696320  BD0010A00  Write-Ack   Control setpoint (MsgID=1): 10.00
09:58:17.234793  T80000200  Read-Data   Status (MsgID=0): 00000010 00000000
09:58:17.386806  B40000200  Read-Ack    Status (MsgID=0): 00000010 00000000
09:58:18.234004  T00110000  Read-Data   Relative modulation level (MsgID=17): 0.00
09:58:18.386775  BF0110000  Unk-DataId  Relative modulation level (MsgID=17): 0.00
09:58:19.231813  T00120000  Read-Data   CH water pressure (MsgID=18): 0.00
09:58:19.398807  B40120199  Read-Ack    CH water pressure (MsgID=18): 1.60
09:58:20.229832  T80190000  Read-Data   Boiler water temperature (MsgID=25): 0.00
09:58:20.403838  B40192800  Read-Ack    Boiler water temperature (MsgID=25): 40.00
09:58:21.228841  T10010A00  Write-Data  Control setpoint (MsgID=1): 10.00
09:58:21.401826  BD0010A00  Write-Ack   Control setpoint (MsgID=1): 10.00
09:58:22.225859  T80000200  Read-Data   Status (MsgID=0): 00000010 00000000
09:58:22.413810  B40000200  Read-Ack    Status (MsgID=0): 00000010 00000000
09:58:23.224866  T00110000  Read-Data   Relative modulation level (MsgID=17): 0.00
09:58:23.418836  BF0110000  Unk-DataId  Relative modulation level (MsgID=17): 0.00
09:58:24.222869  T80130000  Read-Data   DHW flow rate (MsgID=19): 0.00
09:58:24.418865  B70130000  Unk-DataId  DHW flow rate (MsgID=19): 0.00
09:58:25.220872  T80190000  Read-Data   Boiler water temperature (MsgID=25): 0.00
09:58:25.330074  B40192800  Read-Ack    Boiler water temperature (MsgID=25): 40.00
09:58:26.218858  T10010A00  Write-Data  Control setpoint (MsgID=1): 10.00
09:58:26.335080  BD0010A00  Write-Ack   Control setpoint (MsgID=1): 10.00
09:58:27.217889  T00000300  Read-Data   Status (MsgID=0): 00000011 00000000
09:58:27.333911  BC0000300  Read-Ack    Status (MsgID=0): 00000011 00000000
09:58:28.217066  T00110000  Read-Data   Relative modulation level (MsgID=17): 0.00
09:58:28.344909  BF0110000  Unk-DataId  Relative modulation level (MsgID=17): 0.00
09:58:29.214947  T801A0000  Read-Data   DHW temperature (MsgID=26): 0.00
09:58:29.350131  B701A0000  Unk-DataId  DHW temperature (MsgID=26): 0.00
09:58:30.214119  T80190000  Read-Data   Boiler water temperature (MsgID=25): 0.00
09:58:30.348905  B40192800  Read-Ack    Boiler water temperature (MsgID=25): 40.00
09:58:31.212936  T10015A00  Write-Data  Control setpoint (MsgID=1): 90.00
09:58:31.360947  BD0015A00  Write-Ack   Control setpoint (MsgID=1): 90.00
09:58:32.210935  T00000300  Read-Data   Status (MsgID=0): 00000011 00000000
09:58:32.364927  B40000302  Read-Ack    Status (MsgID=0): 00000011 00000010
09:58:33.208959  T00000300  Read-Data   Status (MsgID=0): 00000011 00000000
09:58:33.365938  B40000302  Read-Ack    Status (MsgID=0): 00000011 00000010
09:58:34.208136  T00110000  Read-Data   Relative modulation level (MsgID=17): 0.00
09:58:34.377966  BF0110000  Unk-DataId  Relative modulation level (MsgID=17): 0.00
09:58:35.207004  T00000300  Read-Data   Status (MsgID=0): 00000011 00000000
09:58:35.382961  BC000030A  Read-Ack    Status (MsgID=0): 00000011 00001010
09:58:36.206145  T801C0000  Read-Data   Return water temperature (MsgID=28): 0.00
09:58:36.388961  B701C0000  Unk-DataId  Return water temperature (MsgID=28): 0.00
09:58:37.204002  T00000300  Read-Data   Status (MsgID=0): 00000011 00000000
09:58:37.394156  BC000030A  Read-Ack    Status (MsgID=0): 00000011 00001010
09:58:38.203143  T80190000  Read-Data   Boiler water temperature (MsgID=25): 0.00
09:58:38.394006  B40192800  Read-Ack    Boiler water temperature (MsgID=25): 40.00
09:58:39.201205  T00000300  Read-Data   Status (MsgID=0): 00000011 00000000
09:58:39.404988  BC000030A  Read-Ack    Status (MsgID=0): 00000011 00001010
09:58:40.200188  T10015A00  Write-Data  Control setpoint (MsgID=1): 90.00
09:58:40.309195  BD0015A00  Write-Ack   Control setpoint (MsgID=1): 90.00
09:58:41.199015  T00000300  Read-Data   Status (MsgID=0): 00000011 00000000
09:58:41.309044  BC000030A  Read-Ack    Status (MsgID=0): 00000011 00001010
09:58:42.197026  T00110000  Read-Data   Relative modulation level (MsgID=17): 0.00
09:58:42.320040  BF0110000  Unk-DataId  Relative modulation level (MsgID=17): 0.00
09:58:43.196059  T000A0000  Read-Data   Number of TSPs (MsgID=10): 0
09:58:43.326027  BF00A0000  Unk-DataId  Number of TSPs (MsgID=10): 0
09:58:44.195040  T80190000  Read-Data   Boiler water temperature (MsgID=25): 0.00
09:58:44.327068  B40192800  Read-Ack    Boiler water temperature (MsgID=25): 40.00
09:58:45.193085  T10015A00  Write-Data  Control setpoint (MsgID=1): 90.00
09:58:45.337244  BD0015A00  Write-Ack   Control setpoint (MsgID=1): 90.00
09:58:46.191248  T00000300  Read-Data   Status (MsgID=0): 00000011 00000000
09:58:46.341053  BC000030A  Read-Ack    Status (MsgID=0): 00000011 00001010
09:58:47.190275  T00110000  Read-Data   Relative modulation level (MsgID=17): 0.00
09:58:47.341094  BF0110000  Unk-DataId  Relative modulation level (MsgID=17): 0.00
09:58:48.189095  T000C0000  Read-Data   Size of fault buffer (MsgID=12): 0
09:58:48.352292  BF00C0000  Unk-DataId  Size of fault buffer (MsgID=12): 0
09:58:49.187100  T80190000  Read-Data   Boiler water temperature (MsgID=25): 0.00
09:58:49.357314  BC0192900  Read-Ack    Boiler water temperature (MsgID=25): 41.00
09:58:50.186285  T10015A00  Write-Data  Control setpoint (MsgID=1): 90.00
09:58:50.355092  BD0015A00  Write-Ack   Control setpoint (MsgID=1): 90.00
09:58:51.184107  T00000300  Read-Data   Status (MsgID=0): 00000011 00000000
09:58:51.368312  BC000030A  Read-Ack    Status (MsgID=0): 00000011 00001010
09:58:52.183351  T00110000  Read-Data   Relative modulation level (MsgID=17): 0.00
09:58:52.373141  BF0110000  Unk-DataId  Relative modulation level (MsgID=17): 0.00
09:58:53.182120  T00050000  Read-Data   Application-specific flags (MsgID=5): 00000000 0
09:58:53.371196  BC00500FF  Read-Ack    Application-specific flags (MsgID=5): 00000000 255
09:58:54.181156  T80190000  Read-Data   Boiler water temperature (MsgID=25): 0.00
09:58:54.384176  BC0192900  Read-Ack    Boiler water temperature (MsgID=25): 41.00
09:58:55.179338  T10015A00  Write-Data  Control setpoint (MsgID=1): 90.00
09:58:55.288170  BD0015A00  Write-Ack   Control setpoint (MsgID=1): 90.00
09:58:56.178192  T00000300  Read-Data   Status (MsgID=0): 00000011 00000000
09:58:56.287214  BC000030A  Read-Ack    Status (MsgID=0): 00000011 00001010
09:58:57.176150  T00110000  Read-Data   Relative modulation level (MsgID=17): 0.00
09:58:57.299358  BF0110000  Unk-DataId  Relative modulation level (MsgID=17): 0.00
09:58:58.175230  T00090000  Read-Data   Remote override room setpoint (MsgID=9): 0.00
09:58:58.196518  R00630000  Read-Data   Operating mode HC1, HC2, DHW (MsgID=99): 0 0 0 0000
09:58:58.304366  BF0630000  Unk-DataId  Operating mode HC1, HC2, DHW (MsgID=99): 0 0 0 0000
09:58:58.324668  AC0090000  Read-Ack    Remote override room setpoint (MsgID=9): 0.00
09:58:59.173260  T80190000  Read-Data   Boiler water temperature (MsgID=25): 0.00
09:58:59.303280  BC0192A00  Read-Ack    Boiler water temperature (MsgID=25): 42.00
09:59:00.172378  T10015A00  Write-Data  Control setpoint (MsgID=1): 90.00
09:59:00.315310  BD0015A00  Write-Ack   Control setpoint (MsgID=1): 90.00
09:59:01.171309  T00000300  Read-Data   Status (MsgID=0): 00000011 00000000
09:59:01.320196  BC000030A  Read-Ack    Status (MsgID=0): 00000011 00001010
09:59:02.170371  T00110000  Read-Data   Relative modulation level (MsgID=17): 0.00
09:59:02.319454  BF0110000  Unk-DataId  Relative modulation level (MsgID=17): 0.00
09:59:03.168438  T900E6400  Write-Data  Maximum relative modulation level (MsgID=14): 100.00
09:59:03.331423  BF00E6400  Unk-DataId  Maximum relative modulation level (MsgID=14): 100.00
09:59:04.167370  T80190000  Read-Data   Boiler water temperature (MsgID=25): 0.00
09:59:04.336459  B40192B00  Read-Ack    Boiler water temperature (MsgID=25): 43.00
09:59:05.165452  T10015A00  Write-Data  Control setpoint (MsgID=1): 90.00
09:59:05.335266  BD0015A00  Write-Ack   Control setpoint (MsgID=1): 90.00
09:59:06.164479  T00000300  Read-Data   Status (MsgID=0): 00000011 00000000
09:59:06.347297  BC000030A  Read-Ack    Status (MsgID=0): 00000011 00001010
09:59:07.162503  T00110000  Read-Data   Relative modulation level (MsgID=17): 0.00
09:59:07.352472  BF0110000  Unk-DataId  Relative modulation level (MsgID=17): 0.00
09:59:08.161484  T90102300  Write-Data  Room setpoint (MsgID=16): 35.00
09:59:08.351518  BF0102300  Unk-DataId  Room setpoint (MsgID=16): 35.00
09:59:08.373148  A50102300  Write-Ack   Room setpoint (MsgID=16): 35.00
09:59:09.160467  T80190000  Read-Data   Boiler water temperature (MsgID=25): 0.00
09:59:09.363489  B40192B00  Read-Ack    Boiler water temperature (MsgID=25): 43.00
09:59:10.158487  T10015A00  Write-Data  Control setpoint (MsgID=1): 90.00
09:59:10.268306  BD0015A00  Write-Ack   Control setpoint (MsgID=1): 90.00
09:59:11.157493  T00000300  Read-Data   Status (MsgID=0): 00000011 00000000
09:59:11.266490  BC000030A  Read-Ack    Status (MsgID=0): 00000011 00001010
09:59:12.155336  T00110000  Read-Data   Relative modulation level (MsgID=17): 0.00
09:59:12.278539  BF0110000  Unk-DataId  Relative modulation level (MsgID=17): 0.00
09:59:13.154509  T1018149E  Write-Data  Room temperature (MsgID=24): 20.62
09:59:13.283351  B7018149E  Unk-DataId  Room temperature (MsgID=24): 20.62
09:59:14.153523  T80190000  Read-Data   Boiler water temperature (MsgID=25): 0.00
09:59:14.290534  BC0192C00  Read-Ack    Boiler water temperature (MsgID=25): 44.00
09:59:15.152539  T10015A00  Write-Data  Control setpoint (MsgID=1): 90.00
09:59:15.294339  BD0015A00  Write-Ack   Control setpoint (MsgID=1): 90.00
09:59:16.150366  T00000300  Read-Data   Status (MsgID=0): 00000011 00000000
09:59:16.293532  BC000030A  Read-Ack    Status (MsgID=0): 00000011 00001010
I would like to fix this issue, but before I go replacing hardware I would like to know if that is likely to fix it.
Could you assist me with debugging?
hvxl
Senior Member
Senior Member
Posts: 1990
Joined: Sat Jun 05, 2010 11:59 am
Contact:

Re: PIC reset sets setpoint to maximum

Post by hvxl »

I don't see much in your log that could make me imagine causing the thermostat to jump to its maximum.

The only thing that looks a bit unusual is that the thermostat requests MsgID 9 three times in quick succession soon after the reset of the PIC. A thermostat normally only does that when it receives a change of the remote override setpoint. If the initial room setpoint of 20 degrees was set via a remote setpoint override (your log doesn't go back far enough to determine that), specifying an override of 0 makes a thermostat go back to its scheduled temperature. That is unlikely to be the case here, because I don't think the Honeywell Round Wireless has a schedule and the first signs of a change of the setpoint do not appear until well over a minute later.

The startup sequence after the PIC reset shows that the thermostat switches the OTGW to medium power mode. This means that the thermostat will detect the reset of the PIC because it drops back to low power mode. This may also be why it requests MsgID 9 three times. Your boiler doesn't appear to support smart power. So the thermostat wouldn't be able to switch to medium power when the OTGW isn't in between.

Based on the above observations, there are a few things you can test:
  • Set the OTGW to monitor mode and check if the problem happens again when you reset the PIC.
  • Reset the PIC using the GW=R command, rather than pulling the reset line low.
  • With the thermostat directly connected to the boiler or with the OTGW in monitor mode, switch off the boiler for a few seconds, then switch it on again.
It might also be helpful to see what happens if the OTGW would not indicate that it supports Smart Power. But there currently is no way to do that. If none of the suggested tests provide any more leads, I may have to make a firmware version for you that provides that functionality.
Schelte
mvdnes
Starting Member
Starting Member
Posts: 8
Joined: Sun Aug 07, 2022 12:38 pm

Re: PIC reset sets setpoint to maximum

Post by mvdnes »

Thank you very much for your detailed response! I finally got around to testing some things.

Unlike I said previously, just resetting the PIC does not always trigger the problem. Although it does happen sometimes, it happens more when the NodeMCU is reset, even with the code for resetting the PIC turned off. Running otmonitor I did not see a banner, so it also happens when the PIC does not reset.

From the tests:
* It sometimes happens in monitor mode
* I have not seen the problem occur when resetting the PIC with GW=R
* I did not do the boiler test.

For a moment I suspected the power supply of the Nodoshop board, thinking that starting the wifi and starting the thermostat would be too much. But later I found out that the problem also happens with the NodeMCU out of the board, by shorting the reset header of the print. (not even having the serial lines attached)

So it looks like that the the hardware reset line (or some ground lines) interfere with the thermostat. One possible fix for me is to cut the trace from the NodeMCU to the reset line, but I am willing to wait if you want me too help debugging, or if you have a better idea.
hvxl
Senior Member
Senior Member
Posts: 1990
Joined: Sat Jun 05, 2010 11:59 am
Contact:

Re: PIC reset sets setpoint to maximum

Post by hvxl »

If you have observed the problem happening with the NodeMCU removed, cutting the trace from the NodeMCU to the reset line of the PIC is unlikely to fix the problem.

If the problem also sometimes happens in monitor mode, it is not caused by some message the OTGW sends. In monitor mode, the OTGW passes the signals between the boiler and thermostat in hardware. Even the timing is unchanged.

Some Honeywell thermostats have a TELE connection that can be used to override the temperature setting. Does your RF unit happen to have that too? This feature usually has to be switched on via a settings menu.
Schelte
hvxl
Senior Member
Senior Member
Posts: 1990
Joined: Sat Jun 05, 2010 11:59 am
Contact:

Re: PIC reset sets setpoint to maximum

Post by hvxl »

The revision 0.9.9.3 board will originally have come with a PIC16F88. Does the same problem happen with that PIC?

On that board version a buck convertor is used to convert 24V to 5V. Maybe there is some noise from that. Do you have some small capacitors you could add between GND and Vcc to try and reduce that noise? There's a Vcc pad next to PIC pin 14 and a GND pad next to PIC pin 17.

You do have the power supply set to 24V? Initially, the Nodo shop suggested to set the power supply to 20V, but that is too low.
Schelte
mvdnes
Starting Member
Starting Member
Posts: 8
Joined: Sun Aug 07, 2022 12:38 pm

Re: PIC reset sets setpoint to maximum

Post by mvdnes »

I will try some of your suggestions later this week, thanks!

The power supply was previously set to 20V, but I had already set it to 24V during this testing. With my multimeter I see that it outputs 22V under load.

What kind of capacitor should I use? I have some 25V lying around, which seem appropriate, but I am unsure how many nF/uF I should choose. Is larger better in this case?
hvxl
Senior Member
Senior Member
Posts: 1990
Joined: Sat Jun 05, 2010 11:59 am
Contact:

Re: PIC reset sets setpoint to maximum

Post by hvxl »

There should not be much load from the OTGW. Even with the NodeMCU installed, it should not draw anywhere near the 1A rating of the power supply. So a 2V voltage drop is unexpected.

There are already a couple of largish capacitors in front and behind the buck convertor. But these electrolytic capacitors aren't very good at filtering out high frequency noise. That's why it may help to add some small (ceramic) capacitor. Which exact value is hard to guess, but most likely something in the nF range. It should be able to handle 5V. So 25V versions are fine.
Schelte
mvdnes
Starting Member
Starting Member
Posts: 8
Joined: Sun Aug 07, 2022 12:38 pm

Re: PIC reset sets setpoint to maximum

Post by mvdnes »

You were right that cutting the reset line would not solve anything, as a few days ago the problem occurred even without it being connected. (I had the NodeMCU connected via wires instead of plugged into the board)

Today I did the following things:
  • Added/reflowed some solder on the power supply side,
  • Added a 2.2 nF capacitor to the pads you suggested,
  • Reverted to the PIC16F88, now running version 5.8.
So far, after forcing some unexpected resets of the PIC and/or the NodeMCU, the problem has not re-occured!
I am cautiously optimistic that this solved the issue, but will monitor it the coming week. Thank you very much for the help!
Post Reply

Return to “Opentherm Gateway Forum”