Strange problem with OTGW

For OpenTherm-gateway related questions in Domoticz
Hobbybob
Posts: 111
Joined: Monday 01 May 2017 19:03
Target OS: Raspberry Pi
Domoticz version: Stable
Contact:

Re: Strange problem with OTGW

Post by Hobbybob » Wednesday 16 May 2018 12:53

sincze wrote:
Wednesday 16 May 2018 0:41
That would mean the watchdog kicked in and a failure within the firmware itself. However as 4.2.5 has been running in a lot of gateways flawless (even in nine). That would be strange

. http://www.domoticaforum.eu/viewtopic.php?f=75&t=11257
Ah, I see you are having problems as well. I will try to flash the older firmware in a couple of days, and post back the results. If that still doesn't work, I think I will have to try and test if the OTGW is actually good. I don't have much experience in soldering, so it could be something is not quite right, but since it works good when only otmonitor is connected, I was assuming the hardware-side was okay.

Are there any links on testing the hardware? Because I'm afraid that the older firmware will not be the solution, since (as you already said) many people are running this version in combination with Domoticz.

User avatar
sincze
Posts: 901
Joined: Monday 02 June 2014 22:46
Target OS: Raspberry Pi
Domoticz version: 3.8875
Location: Netherlands
Contact:

Re: Strange problem with OTGW

Post by sincze » Wednesday 16 May 2018 15:16

I have had problems since last October :)
For debugging hardware
http://otgw.tclcode.com/debugging.html

I have been running with otmonitor and relay enabled for quite some time. Even with that I had my wdt resets.

Currently installed a new pic. Instead of 7-20 resets a day now once every 3 weeks. But the heating does not do a lot these days so don't sure if that was the 100% fix.
Using Pass2php since 2016-12
LAN: RFLink, P1-Port, OTGW, MySensors
USB: RFXCom, ZWave
WIFI: Mi-light Wifi-Bridge, Sonoff, ESP8266, Xiaomi Gateway
Solar: Omnik Inverter, PVOutput
Video: Kodi clients with Harmony HUB
Sensors: You name it I probably got 1.

svkeulen
Posts: 2
Joined: Wednesday 03 January 2018 11:12
Target OS: NAS (Synology & others)
Domoticz version:

Re: Strange problem with OTGW

Post by svkeulen » Friday 18 May 2018 19:37

I just bought an OTGW with firmware 4.2.5. I noticed that it reports only messages of length 9 (like BC0090000) to domoticz (it says 2018-05-18 19:26:48.619 OTGW: BC0090000) while the source-code of domoticz seems to want to parse other output. I guess it is more like the messagelog of otmanager. Maybe older firmware outputs this type. I dont know because it failed to downgrade. Anyhow... I am rewriting the code (OTGWBase.cpp) of domoticz as we speak. I just finished two messageIDs and it works like a charm. ID 0 Status and 1 Control setpoint.

Now it says: 2018-05-18 19:26:46.808 (OTGW) Temp (Control Setpoint) etc...

When I finish I will share it with you.

Hobbybob
Posts: 111
Joined: Monday 01 May 2017 19:03
Target OS: Raspberry Pi
Domoticz version: Stable
Contact:

Re: Strange problem with OTGW

Post by Hobbybob » Saturday 19 May 2018 10:52

svkeulen wrote:
Friday 18 May 2018 19:37
I just bought an OTGW with firmware 4.2.5. I noticed that it reports only messages of length 9 (like BC0090000) to domoticz (it says 2018-05-18 19:26:48.619 OTGW: BC0090000) while the source-code of domoticz seems to want to parse other output. I guess it is more like the messagelog of otmanager. Maybe older firmware outputs this type. I dont know because it failed to downgrade. Anyhow... I am rewriting the code (OTGWBase.cpp) of domoticz as we speak. I just finished two messageIDs and it works like a charm. ID 0 Status and 1 Control setpoint.

Now it says: 2018-05-18 19:26:46.808 (OTGW) Temp (Control Setpoint) etc...

When I finish I will share it with you.
Oh, that would be awesome!
I don't know if it will solve my problems, but if the other solutions don't work, I'll sure give it a try!

svkeulen
Posts: 2
Joined: Wednesday 03 January 2018 11:12
Target OS: NAS (Synology & others)
Domoticz version:

Re: Strange problem with OTGW

Post by svkeulen » Saturday 19 May 2018 11:54

I don't know if it will solve my problems, but if the other solutions don't work, I'll sure give it a try!
If you only see messages of length 9, mostly starting with a B(oiler) or a T(ermostat) in your domoticz log then it would.

Hobbybob
Posts: 111
Joined: Monday 01 May 2017 19:03
Target OS: Raspberry Pi
Domoticz version: Stable
Contact:

Re: Strange problem with OTGW

Post by Hobbybob » Saturday 19 May 2018 12:06

Okay, so I decided to test the harware first. I disconnected the gateway from everything, and removed the PIC and octocoupler. Then I started to follow everything described on http://otgw.tclcode.com/debugging.html

All the voltages check out, but I don't register any amps on X1... Now I figured my multimeter might be broken, so I got a 100 ohm resistor, and screwed one end in X1, and then measured the voltage between the other end of the resistor and the other side of X1. I am still measuring the exact same voltage as when I don't have the resistor connected.

This is really weird. Am I doing something wrong here?

Hobbybob
Posts: 111
Joined: Monday 01 May 2017 19:03
Target OS: Raspberry Pi
Domoticz version: Stable
Contact:

Re: Strange problem with OTGW

Post by Hobbybob » Sunday 20 May 2018 11:37

I also posted the question on the domoticaforum.eu-forum, and got a response there. I have been able to get through the whole testing procedure, and it looks like my hardware is okay. I did not immediatly suspect that it would not be, because with otmonitor it worked perfectly, but I just wanted to be sure.

It looks like I have to flash the older firmware. @sincze Do you have 3.4 anywhere? I can't find it on the otgw-website.

User avatar
sincze
Posts: 901
Joined: Monday 02 June 2014 22:46
Target OS: Raspberry Pi
Domoticz version: 3.8875
Location: Netherlands
Contact:

Re: Strange problem with OTGW

Post by sincze » Sunday 20 May 2018 12:47

Oldest I have is 4.0.
Using Pass2php since 2016-12
LAN: RFLink, P1-Port, OTGW, MySensors
USB: RFXCom, ZWave
WIFI: Mi-light Wifi-Bridge, Sonoff, ESP8266, Xiaomi Gateway
Solar: Omnik Inverter, PVOutput
Video: Kodi clients with Harmony HUB
Sensors: You name it I probably got 1.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests