john30 / ebusd

daemon for communication with eBUS heating systems
GNU General Public License v3.0
572 stars 132 forks source link

HTTP not responding #468

Closed jordipalet closed 2 years ago

jordipalet commented 2 years ago

I'm using the ebus adapter 3 with Ethernet port, and despite I get very frequent errors such as: 2021-11-06 20:20:36.118 [bus notice] device invalid 2021-11-06 20:20:36.746 [bus error] unable to open x.x.x.x:9999: ERR: generic I/O error

(I'm using EBUSD_OPTS="--scanconfig --httpport=8889 --log=all:notice -d enh:x.x.x.x:9999")

I can do a scan/find and it seems to correctly report:

scan id = no data stored scan.05 = Vaillant;VR921;2303;5703 scan.05 id = 21;21;24;0020261008;0938;026911;N7 scan.08 = Vaillant;HMU00;0607;5103 scan.08 id = 21;21;35;0010031696;0001;005337;N4 scan.15 = Vaillant;CTLS2;0509;1304 scan.15 id = 21;21;28;0020260971;0953;007739;N4 scan.76 = Vaillant;VWZIO;0202;0103 scan.76 id = 21;21;10;0010031650;0082;005260;N9

However, trying http://10.10.10.89:8889/data doesn't provide any result (browser/curl just waiting)

I'm missing something ?

By the way I tried also using udp instead of enh, etc. same results. It also seems to me that sometimes powering off/on the ebus adapter 3, the log shows from time to time a lot of extra data and less errors, but then the errors come back again, not sure if it is related, or there is a way to "sync" the adapter with the ebus, etc.

Tks!

john30 commented 2 years ago

can you ping the adapter when ebusd reports it as "unable to open" from the same host? provide some ebusd logging please which ebusd version are you using? what does the LEDs on the adapter look like in this situation?

jordipalet commented 2 years ago

Yes, ping is always working.

ebusd --version ebusd 21.2.v21.2

(downloaded today from ebusd-21.2_armhf-buster.deb)

LEDs: Orange on (I think is the one described as yellow, for the power indication) Green blinking (eBus receive) Blue off Red off

If I unplug/plug the power adapter that provides power to the USB connector, I can see the Blue on, then off and also sometimes the red blinking.

In the Ethernet adapter I have the orange and green on, and a red one on as well.

Also when I do scan/find, it looks like the broadcast outsidetemp = 12.125 broadcast signoflife = no data stored broadcast vdatetime = 20:27:03;06.11.2021 are the same since a few hours ago, not sure if that's the expected behaviour ...

Some logs:

2021-11-06 23:04:48.978 [bus notice] device invalid 2021-11-06 23:04:49.829 [update notice] received read hmu State QQ=71: 0;49;225;8 2021-11-06 23:04:50.359 [update notice] received unknown MS cmd: 7108b5110100 / 09ef0111000108000000 2021-11-06 23:04:50.844 [update notice] received read hmu Status01 QQ=71: 30.5;30.5;-;-;-;off 2021-11-06 23:04:51.910 [bus error] unable to open 10.10.10.23:9999: ERR: generic I/O error 2021-11-06 23:04:51.910 [bus error] unable to open 10.10.10.23:9999: ERR: generic I/O error 2021-11-06 23:04:51.910 [bus notice] device invalid 2021-11-06 23:04:52.128 [bus error] unable to open 10.10.10.23:9999: ERR: generic I/O error 2021-11-06 23:04:52.128 [bus notice] device invalid 2021-11-06 23:04:52.145 [bus error] unable to open 10.10.10.23:9999: ERR: generic I/O error 2021-11-06 23:04:52.405 [bus error] unable to open 10.10.10.23:9999: ERR: generic I/O error 2021-11-06 23:04:52.405 [bus notice] device invalid 2021-11-06 23:04:52.405 [bus error] unable to open 10.10.10.23:9999: ERR: generic I/O error 2021-11-06 23:04:52.405 [bus notice] device invalid 2021-11-06 23:04:52.868 [update notice] received read hmu State QQ=71: 0;49;225;8 2021-11-06 23:04:53.354 [update notice] received unknown MS cmd: 7108b5110100 / 09ef0111000108000000 2021-11-06 23:04:53.745 [bus error] unable to open 10.10.10.23:9999: ERR: generic I/O error 2021-11-06 23:04:53.745 [bus error] unable to open 10.10.10.23:9999: ERR: generic I/O error 2021-11-06 23:04:53.745 [bus notice] device invalid 2021-11-06 23:04:53.746 [bus error] unable to open 10.10.10.23:9999: ERR: generic I/O error 2021-11-06 23:04:53.746 [bus notice] device invalid 2021-11-06 23:04:53.840 [update notice] received read hmu Status01 QQ=71: 30.5;30.5;-;-;-;off 2021-11-06 23:04:53.979 [bus error] unable to open 10.10.10.23:9999: ERR: generic I/O error 2021-11-06 23:04:53.979 [bus notice] device invalid 2021-11-06 23:04:54.124 [update notice] received unknown MS cmd: 7108b51a0405043200 / 0a04082f31000000000000 2021-11-06 23:04:54.807 [update notice] received unknown MS cmd: 7108b51a0405053201 / 0a05082f00000000000000 2021-11-06 23:04:55.867 [update notice] received read hmu State QQ=71: 0;49;225;8 2021-11-06 23:04:56.353 [update notice] received unknown MS cmd: 7108b5110100 / 09ef0111000108000000 2021-11-06 23:04:56.610 [update notice] received unknown MS cmd: 0376b51206130011a00500 / 0200ff 2021-11-06 23:04:56.877 [update notice] received read hmu Status01 QQ=71: 30.5;30.5;-;-;-;off 2021-11-06 23:04:56.911 [bus error] unable to open 10.10.10.23:9999: ERR: generic I/O error 2021-11-06 23:04:56.911 [bus error] unable to open 10.10.10.23:9999: ERR: generic I/O error 2021-11-06 23:04:56.911 [bus notice] device invalid 2021-11-06 23:04:57.129 [bus error] unable to open 10.10.10.23:9999: ERR: generic I/O error 2021-11-06 23:04:57.129 [bus notice] device invalid 2021-11-06 23:04:57.145 [bus error] unable to open 10.10.10.23:9999: ERR: generic I/O error 2021-11-06 23:04:57.406 [bus error] unable to open 10.10.10.23:9999: ERR: generic I/O error 2021-11-06 23:04:57.406 [bus notice] device invalid 2021-11-06 23:04:57.406 [bus error] unable to open 10.10.10.23:9999: ERR: generic I/O error 2021-11-06 23:04:57.406 [bus notice] device invalid 2021-11-06 23:04:57.448 [update notice] received read hmu Status01 QQ=10: 30.5;30.5;-;-;-;off 2021-11-06 23:04:57.716 [update notice] received unknown MS cmd: 1076b5110101 / 09ffffe009ffff00003c 2021-11-06 23:04:57.983 [update notice] received unknown MS cmd: 1076b512030f0001 / 07008000e201ff03 2021-11-06 23:04:58.247 [update notice] received update-write hmu SetMode QQ=10: auto;37.5;-;-;0;1;1;0;0;0 2021-11-06 23:04:58.510 [update notice] received unknown MS cmd: 1076b51009000000ffffff050000 / 0101 2021-11-06 23:04:58.745 [bus error] unable to open 10.10.10.23:9999: ERR: generic I/O error 2021-11-06 23:04:58.746 [bus error] unable to open 10.10.10.23:9999: ERR: generic I/O error 2021-11-06 23:04:58.746 [bus notice] device invalid 2021-11-06 23:04:58.746 [bus error] unable to open 10.10.10.23:9999: ERR: generic I/O error 2021-11-06 23:04:58.746 [bus notice] device invalid 2021-11-06 23:04:58.913 [update notice] received read hmu State QQ=71: 0;49;225;8 2021-11-06 23:04:58.979 [bus error] unable to open 10.10.10.23:9999: ERR: generic I/O error 2021-11-06 23:04:58.979 [bus notice] device invalid 2021-11-06 23:04:59.399 [update notice] received unknown MS cmd: 7108b5110100 / 09ef0110000108000000 2021-11-06 23:04:59.885 [update notice] received read hmu Status01 QQ=71: 30.5;30.5;-;-;-;off 2021-11-06 23:05:01.910 [update notice] received read hmu State QQ=71: 0;49;225;8 2021-11-06 23:05:01.911 [bus error] unable to open 10.10.10.23:9999: ERR: generic I/O error 2021-11-06 23:05:01.912 [bus notice] device invalid 2021-11-06 23:05:01.912 [bus error] unable to open 10.10.10.23:9999: ERR: generic I/O error 2021-11-06 23:05:02.129 [bus error] unable to open 10.10.10.23:9999: ERR: generic I/O error 2021-11-06 23:05:02.129 [bus notice] device invalid 2021-11-06 23:05:02.146 [bus error] unable to open 10.10.10.23:9999: ERR: generic I/O error 2021-11-06 23:05:02.396 [update notice] received unknown MS cmd: 7108b5110100 / 09ef0110000108000000 2021-11-06 23:05:02.406 [bus error] unable to open 10.10.10.23:9999: ERR: generic I/O error 2021-11-06 23:05:02.406 [bus notice] device invalid 2021-11-06 23:05:02.407 [bus error] unable to open 10.10.10.23:9999: ERR: generic I/O error 2021-11-06 23:05:02.407 [bus notice] device invalid 2021-11-06 23:05:02.926 [update notice] received read hmu Status01 QQ=71: 30.5;30.5;-;-;-;off 2021-11-06 23:05:03.746 [bus error] unable to open 10.10.10.23:9999: ERR: generic I/O error 2021-11-06 23:05:03.746 [bus error] unable to open 10.10.10.23:9999: ERR: generic I/O error 2021-11-06 23:05:03.747 [bus notice] device invalid 2021-11-06 23:05:03.747 [bus error] unable to open 10.10.10.23:9999: ERR: generic I/O error 2021-11-06 23:05:03.747 [bus notice] device invalid 2021-11-06 23:05:03.911 [update notice] received unknown MS cmd: 7108b509022802 / 0c020006075f0100484d553033 2021-11-06 23:05:03.980 [bus error] unable to open 10.10.10.23:9999: ERR: generic I/O error 2021-11-06 23:05:03.980 [bus notice] device invalid 2021-11-06 23:05:04.195 [update notice] received unknown MS cmd: 7108b509022802 / 0c020006075f0100484d553033 2021-11-06 23:05:04.584 [update notice] received unknown MS cmd: 0376b512061300105b0600 / 0200ff 2021-11-06 23:05:04.941 [update notice] received read hmu State QQ=71: 0;49;225;8 2021-11-06 23:05:05.426 [update notice] received unknown MS cmd: 7108b5110100 / 09ef0110000108000000 2021-11-06 23:05:05.912 [update notice] received read hmu Status01 QQ=71: 30.5;30.5;-;-;-;off 2021-11-06 23:05:06.196 [update notice] received unknown MS cmd: 7108b51a0405083200 / 0a08082f31000000000000 2021-11-06 23:05:06.836 [update notice] received unknown MS cmd: 7108b51a0405093201 / 0a09082f00000000000000 2021-11-06 23:05:06.912 [bus error] unable to open 10.10.10.23:9999: ERR: generic I/O error 2021-11-06 23:05:06.912 [bus notice] device invalid 2021-11-06 23:05:06.912 [bus error] unable to open 10.10.10.23:9999: ERR: generic I/O error ^C

ping 10.10.10.23 PING 10.10.10.23 (10.10.10.23) 56(84) bytes of data. 64 bytes from 10.10.10.23: icmp_seq=1 ttl=128 time=0.105 ms 64 bytes from 10.10.10.23: icmp_seq=2 ttl=128 time=0.128 ms 64 bytes from 10.10.10.23: icmp_seq=3 ttl=128 time=0.139 ms 64 bytes from 10.10.10.23: icmp_seq=4 ttl=128 time=0.124 ms 64 bytes from 10.10.10.23: icmp_seq=5 ttl=128 time=0.126 ms

By the way, I configured the IP as a static address using ebuspicloader (don't think this is problem, just to provide all the context)

jordipalet commented 2 years ago

So ... any hint on what else I can do/check?

john30 commented 2 years ago

please try with a build from the latest sources

jordipalet commented 2 years ago

Yep, it seems to work, I've installed ebusd-21.3_armv7-stretch.deb and seems to work. I will do some testing with the domoticz integration to see if I can visualize some data.

By the way, it will be good that when a new version is installed, /etc/default/ebusd is respected.

jordipalet commented 2 years ago

It is working fine now, tks!