Closed doldis77 closed 3 years ago
Hi,
Can you post the complete log (stdout+stderr)? Replace serial and password with XXXXX's.
Also, I just noticed that I hadn't pushed a few of my changes since then, can you pull the latest version, and post the log here?
date time ( uptime ) [ thread name/id ] file:line v| 2021-01-14 14:08:56.051 ( 0.000s) [main thread ] loguru.cpp:647 INFO| arguments: ./AlsavoCtrl -a **** -p 1194 -s XXXXXXXXXXX -l XXXX 2021-01-14 14:08:56.052 ( 0.000s) [main thread ] loguru.cpp:650 INFO| Current dir: /home/***/Scripts/Alsavo 2021-01-14 14:08:56.052 ( 0.000s) [main thread ] loguru.cpp:652 INFO| stderr verbosity: 0 2021-01-14 14:08:56.052 ( 0.000s) [main thread ] loguru.cpp:653 INFO| ----------------------------------- 2021-01-14 14:08:56.052 ( 0.000s) [main thread ] AlsavoCtrl.cpp:359 INFO| Disconnecting. 2021-01-14 14:08:56.052 ( 0.000s) [main thread ] AlsavoCtrl.cpp:292 INFO| Connecting to ****:1194... 2021-01-14 14:08:56.061 ( 0.009s) [main thread ] AlsavoCtrl.cpp:319 INFO| Received handshake, CSID=53000000, DSID=F90A0080, server token 5BA4A9BC 2021-01-14 14:08:56.069 ( 0.018s) [main thread ] AlsavoCtrl.cpp:352 INFO| Connection complete. 2021-01-14 14:08:56.079 ( 0.027s) [main thread ] AlsavoCtrl.cpp:504 ERR| Received connection reset packet, disconnecting. 2021-01-14 14:08:56.079 ( 0.027s) [main thread ] AlsavoCtrl.cpp:359 INFO| Disconnecting. 2021-01-14 14:08:56.079 ( 0.028s) [main thread ] AlsavoCtrl.cpp:359 INFO| Disconnecting. 2021-01-14 14:08:56.079 ( 0.028s) [main thread ] loguru.cpp:526 INFO| atexit
before pulling changes... it kept looping "connect... reset, disconnect" until I made a Ctrl+C
Hmm it looks like you are getting disconnected at the very first packet after connection has been established, so at this point the authentication should be completed already. It may be that your heat pump is slightly different version and uses different dialect of the protocol. This has only been tested on Swim&Fun model 1402 (https://www.swim-fun.dk/fi/component/mijoshop/product/551-pool-laempoepumppu-inverter-heat-pump-wifi-metal-13-5kw?Itemid=564) so your mileage may vary.
If you want to investigate it further, I'd recommend capturing the network traffic of a short session on Alsavo Pro app on Android, I used PCAPDroid to do that, and then investigating the traffic using WireShark. You can then capture the traffic AlsavoCtrl app does before it receives the connection reset message and compare the captures.
One more thing to try: if you leave -a and -p out, the app connects to the global server somewhere in China that is used when the app is not in the same LAN as the heat pump, you could try if that makes any difference (ip 47.254.157.150 port 51192)
I have a Swim & Fun Heat Pump Inverter PRO 5 kW (model 1238 ?) ... also tried "global" connection, same issue.
Send a wireshark capture of this app to me at myfirstname dot mylastname at gmail, I'll take a look.
That is the previous model (the control panel has physical buttons and not a touch display), I bet the comms protocol is very slightly different. A wireshark capture of the android app might be helpful.
Thanks... will do that later.. .when I can get hold of an android phone :P
It was all my bad, I remembered the wrong "keyword" (password) thanks for all help =) So its confirmed to be working on model 1238
Hi!
I'm receiveing this when running. Dont know if the password is wrong ?