OTGW 4.2.5 reboots often (Agpo Ferroli Megalux 6)

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

Moderator: hvxl

OTGW 4.2.5 reboots often (Agpo Ferroli Megalux 6)

Postby sincze » Sat Dec 12, 2015 9:37 pm

I recently started to experience problems with my OTGW.
In the summer it started heating the house... for no reason.

In addition: My room thermostat display has 'f' in display or no display at all.
Solution: remove USB cord from Raspberry or TPLINK (via Ser2Net) and communication with thermostat is restored instantly.

To solve the spontanious heating and display problem I updated to 4.2.5 latest .hex firmware
(my hardware Agpo Ferroli Megalux 6 & Honeywell Modulation. (OTGW + USB) ).

However this firmware version resets my OTGW every minute or so.
All values drop to '0' and device starts working untill the next reboot.

Any suggestions?
I now reverted back to firmware 4.2 hopefully without any errors.

Any suggestions for my setup?
Attachments
Modulation.jpg
Honeywell
Modulation.jpg (114.03 KiB) Viewed 11075 times
Logs.rar
OT Data
(62.27 KiB) Downloaded 233 times
sincze
Starting Member
Starting Member
 
Posts: 39
Joined: June 2014
Location: Breda

Re: OTGW 4.2.5 reboots often (Agpo Ferroli Megalux 6)

Postby hvxl » Sun Dec 13, 2015 10:01 am

Everything looks fine in those logs, except that the thermostat repeatedly requests the same information. That is usually a sign that the thermostat didn't (correctly) receive the response. The gateway will reset itself when it received the same message from the thermostat 64 times in a row.

The transmission of a message to the thermostat is very basic functionality that works for everyone else and has not been changed between 4.2 and 4.2.5. So I cannot think of any explanation why this would work with 4.2 and not with 4.2.5.

Some things you can try when encountering problems after a firmware upgrade:
  • Pull the power of the gateway. That will reset the gateway and the thermostat at the same time.
  • Switch to monitor mode to see if that works.
Schelte
hvxl
Senior Member
Senior Member
 
Posts: 1223
Joined: June 2010

Re: OTGW 4.2.5 reboots often (Agpo Ferroli Megalux 6)

Postby sincze » Sun Dec 13, 2015 10:17 am

Okay thank you for the reply :D and from the most experienced user.

That is usually a sign that the thermostat didn't (correctly) receive the response. The gateway will reset itself when it received the same message from the thermostat 64 times in a row.


So it might be a bad connection ??
Settings: Heater 'Comfort Mode'.
- Ignore multiple bit.... (enabled)
- return remote overwrite bit (enabled)
- Reference voltage is now at 1.042 and does not produce errors.

For now on FW 4.2 as the thermostat was blinking 'E' this morning I removed power from OTGW.
It is running for now. If that runs fine I will update to 4.2.5 again.

OTGW is now connected to Windows 10 machine and relay enabled.
As I was thinking the power supply of the raspberry or tplink might be faulty due to the amount of reboots of the OTGW.
However that might not be the case if I understand you correctly?

Sándor
sincze
Starting Member
Starting Member
 
Posts: 39
Joined: June 2014
Location: Breda

Re: OTGW 4.2.5 reboots often (Agpo Ferroli Megalux 6)

Postby hvxl » Sun Dec 13, 2015 1:25 pm

The same connection is used to power the thermostat, and receive and transmit opentherm messages. Power and receiving is fine, so there can't be much wrong with the connection. Unless something is stealing part of the current and doesn't leave enough for the thermostat to be able to distinguish the logic levels.

There are no setting that influence the transmissions to the thermostat at this level. The only things that can be wrong are the bit timings and the logical levels. The bit timings are derived from the same clock that is also used as the base for the RS232 communication and sending messages to the boiler. Those two work, so the clock seems to be alright.

That leaves the logic levels as the most likely culprit. If you want to investigate that, you can perform the checks described in the first two paragraphs of the Opentherm interfaces section of the troubleshooting page.

If the levels are fine on the gateway side, measure them again on the thermostat side. So on the other end of the cable going to the thermostat. If you measure other values that way, there's current leaking away somewhere. If that is also fine, your thermostat may be bad. Can you borrow another opentherm thermostat from someone to check?
Schelte
hvxl
Senior Member
Senior Member
 
Posts: 1223
Joined: June 2010

Re: OTGW 4.2.5 reboots often (Agpo Ferroli Megalux 6)

Postby sincze » Sun Dec 13, 2015 4:40 pm

Ah okay, so basically OTGW is really rock solid hardware . I will follow the instructions on OTGW website.

Only things in between are high-speed usb hub (came with TPlink 703 due to known bug) & prologic usb cable.

As when display of thermostat is blank (no display) I can revive it by disconnecting the usb cable from the hub.

Maybe that gives some additional information for debugging purposes I need to check as well?
sincze
Starting Member
Starting Member
 
Posts: 39
Joined: June 2014
Location: Breda

Re: OTGW 4.2.5 reboots often (Agpo Ferroli Megalux 6)

Postby sincze » Sun Dec 13, 2015 8:45 pm

I do hope so the flash will finish correctly.... :shock:
Attachments
Flash FW 2.5-1.JPG
Flash FW 2.5-1.JPG (124.85 KiB) Viewed 10965 times
Flash FW 2.5.JPG
Flash FW 2.5.JPG (115.79 KiB) Viewed 10965 times
sincze
Starting Member
Starting Member
 
Posts: 39
Joined: June 2014
Location: Breda

Re: OTGW 4.2.5 reboots often (Agpo Ferroli Megalux 6)

Postby sincze » Mon Dec 14, 2015 4:25 pm

Hi Schelte

Could you please have a look at my otlog of 14-12-2015 around 15:56

At 15:57 I move away from otomonitor.exe (with relay) on windows machine and move to ser2net on a raspberry / tplink.
Look what happens now.

At 16:00 I move back to otmonitor.exe (with relay) and data jumps in again.

Ser2Net is configured in the following way (only last sentence interesting)

Code: Select all
BANNER:banner:\r\nser2net port \p device \d [\s] (Debian GNU/Linux)\r\n\r\n

2000:telnet:600:/dev/ttyS0:9600 8DATABITS NONE 1STOPBIT banner
2001:telnet:600:/dev/ttyS1:9600 8DATABITS NONE 1STOPBIT banner
3000:telnet:600:/dev/ttyS0:19200 8DATABITS NONE 1STOPBIT banner
3001:telnet:600:/dev/ttyS1:19200 8DATABITS NONE 1STOPBIT banner

# 10001:raw:0:/dev/ttyUSB0:9600 8DATABITS NONE 1STOPBIT banner
10001:raw:0:/dev/ttyUSB0:9600,NONE,1STOPBIT,8DATABITS



Any idea what causes this behaviour??
I know it used to work with ser2net without any problems on my tplink.

Next on my list will be to use otmonitor on the raspberry with relay to find out if ser2net is causing this strange behaviour for some reason.
At 16:14 I connect to otmonitor running on my raspberry pi with relay.
At 16:21 I connect to ser2net
At 16:23 I connect to otmonitor running on my raspberry pi with relay.

I don't touch the cable and I first stop ser2net before launching the otmonitor and vice versa.

Getting crazy on this one. :shock:
Attachments
otlog-20151214.rar
Switch from otmonitor on windows to otmonitor on raspberry to ser2net
(56.79 KiB) Downloaded 210 times
sincze
Starting Member
Starting Member
 
Posts: 39
Joined: June 2014
Location: Breda

Re: OTGW 4.2.5 reboots often (Agpo Ferroli Megalux 6)

Postby sincze » Mon Dec 14, 2015 10:15 pm

I uploaded the diagnostic.hex in my OTGW today.
As I expected it also gives me different results (connected to windows machine OTmonitor) and connected to Raspberry Pi (Ser2Net) and running OT monitor on windows machine.

It seems if you connect via Ser2Net it only receives the first OTGW command.
Repeats that a lot of times and reboots itself.

Well I'm abslolutely am clueless now.
It seems almost as if there is something wrong with the PL2303_Prolific_Driver for Raspberry / OpenWrt.
Attachments
Prologic Settings.JPG
Windows Setting
Prologic Settings.JPG (28.08 KiB) Viewed 10876 times
Opentherm-Debug.rar
Diagnostic.hex
(1.42 KiB) Downloaded 254 times
sincze
Starting Member
Starting Member
 
Posts: 39
Joined: June 2014
Location: Breda

Re: OTGW 4.2.5 reboots often (Agpo Ferroli Megalux 6)

Postby sincze » Tue Dec 15, 2015 6:52 pm

Okay.

I installed otmonitor on my raspberry.

First I received an error then I realized a package was missing.
Code: Select all
sudo apt-get install python-tk


However the results are the same with Ser2Net & OTMonitor, as expected.

So sum up. OTGW is running with cable and everything on my Windows 10 machine.
It will not work on a raspberry or linux type (openwrt TP-Link).

Any clues?
Driver issue?

I checked the comport
Code: Select all
pi@raspberrypi ~ $ stty -F /dev/ttyUSB0 -a


Gives the following result:
Code: Select all
speed 9600 baud; rows 0; columns 0; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>; eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W
;
lnext = ^V; flush = ^O; min = 1; time = 0;
-parenb -parodd cs8 hupcl -cstopb cread clocal -crtscts
ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr -icrnl -ixon -ixoff -iuclc -ixany -imaxbel -iutf8
-opost -olcuc -ocrnl -onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
-isig -icanon -iexten -echo -echoe -echok -echonl -noflsh -xcase -tostop -echoprt -echoctl -echoke


tldp.org/LDP/nag2/x-087-2-serial-config ... ation.html

I would say correct
Code: Select all
speed 9600 baud -parenb cs8 hupcl -cstopb


Meaning in my opinion: 9600 baud NOPARITY 8DATABITS 1STOPBIT,
Attachments
OT-Monitor-Raspberry.jpg
OT Monitor on Raspberry
OT-Monitor-Raspberry.jpg (23.08 KiB) Viewed 10833 times
sincze
Starting Member
Starting Member
 
Posts: 39
Joined: June 2014
Location: Breda

Re: OTGW 4.2.5 reboots often (Agpo Ferroli Megalux 6)

Postby sincze » Wed Dec 16, 2015 8:31 pm

hvxl wrote:If the levels are fine on the gateway side, measure them again on the thermostat side. So on the other end of the cable going to the thermostat. If you measure other values that way, there's current leaking away somewhere. If that is also fine, your thermostat may be bad. Can you borrow another opentherm thermostat from someone to check?


:o made some progress today after borrowing a second OTGW from a friend.
Luckily for me his device showed the same behaviour.
After disconnecting the 'thermostat' from his OTGW the OTMonitor on the RASPBERRY came to life!
I exchanged his OTGW back to mine and unplugged the thermostat.
Again the OTMonitor came back to life.

After directly connecting the Thermostat to the OTGW (normally the wire was extended) sudden death of OTMonitor.
Disconnecting it again.... OTMonitor came back to life.
So at least the extended wire is not wrong :lol:

Now let's find out what I can do next.....
sincze
Starting Member
Starting Member
 
Posts: 39
Joined: June 2014
Location: Breda

Re: OTGW 4.2.5 reboots often (Agpo Ferroli Megalux 6)

Postby sincze » Wed Dec 16, 2015 9:07 pm

A well at least we now know the
- OTGW is okay
OTMonitor-Raspberry.JPG
OTMonitor-Raspberry.JPG (142.1 KiB) Viewed 10765 times

- OT Thermostat is okay.
20151216_210024.jpg
Opentherm Thermostat
20151216_210024.jpg (142.97 KiB) Viewed 10765 times


..... however the OTGW thinks something is wrong with the wiring..... or it loses some voltage somewhere...
Suggestions are welcome...

Wiring is okay if OTGW is not connected to the RASPBERRY, so maybe a little bit thicker wire??

@Schelte: Maybe we can try the trick you performed here?
jeelabs.org/2012/11/25/bi-directional-s ... and-power/
sincze
Starting Member
Starting Member
 
Posts: 39
Joined: June 2014
Location: Breda

(Solved): OTGW 4.2.5 reboots often (Agpo Ferroli Megalux 6)

Postby sincze » Fri Dec 18, 2015 10:59 am

Well at least after one week of research progress has been made. :D

I changed the internal wiring of the OTGW.
The idea came from a post that mentioned 'Floating Ground" posted earlier.

I now used "schakeldraad".
Thicker and more convenient to mount compared to the original telephone wire,

Connectors are now outside of the OTGW box so changing them in case unmount is needed is much easier.

Next stop would be getting Ser2Net to work on the latest 15:05 Openwrt realease for TPLink 703.
Luckily not that much hassle on the Raspberry Pi with Ser2Net. That one works like a charm.
Attachments
OTGW-1=.png
OTGW-1=.png (92.9 KiB) Viewed 10680 times
sincze
Starting Member
Starting Member
 
Posts: 39
Joined: June 2014
Location: Breda

Re: OTGW 4.2.5 reboots often (Agpo Ferroli Megalux 6)

Postby Bororo » Fri Dec 18, 2015 3:52 pm

Interesting.
I would like to ask you about Windows 10 driver for Prolific cable - did you manage to make it working under Windows 10?
Mine is not working, I'm getting Error Code 10 and yellow exclamation symbol next to virtual COM port.
The new cable with different chipset is on the way and I hope it will work with Win 10.
http://www.ebay.com/itm/USB-to-TTL-Seri ... 1303998507?
Bororo
Starting Member
Starting Member
 
Posts: 33
Joined: January 2011

Re: OTGW 4.2.5 reboots often (Agpo Ferroli Megalux 6)

Postby sincze » Fri Dec 18, 2015 10:06 pm

Bororo wrote:Interesting.
I would like to ask you about Windows 10 driver for Prolific cable - did you manage to make it working under Windows 10?
Mine is not working, I'm getting Error Code 10 and yellow exclamation symbol next to virtual COM port.
The new cable with different chipset is on the way and I hope it will work with Win 10.
http://www.ebay.com/itm/USB-to-TTL-Seri ... 1303998507?


Yes it is working under Windows 10
I found it here: http://www.ifamilysoftware.com/news37.html

Please let me know if it worked for you.
Have a nice evening :)
sincze
Starting Member
Starting Member
 
Posts: 39
Joined: June 2014
Location: Breda

Re: OTGW 4.2.5 reboots often (Agpo Ferroli Megalux 6)

Postby Bororo » Sat Dec 19, 2015 2:31 pm

Thank you very much for your help.
The driver from ifamilysoftware working like a charm, no exclamation mark, everything is up and running now. :wink:
Bororo
Starting Member
Starting Member
 
Posts: 33
Joined: January 2011

Next

Return to Opentherm Gateway Forum

Who is online

Users browsing this forum: No registered users and 1 guest