ceisenach / screenlogic_over_ip

IP Communications for Pentair ScreenLogic2
GNU General Public License v3.0
16 stars 2 forks source link

Login Message Question #7

Open bmenchaca opened 5 years ago

bmenchaca commented 5 years ago

Hello - thanks so much for the doc - I was pulling my hair out trying to decode this with wireshark and manual replays...not pretty.

I can successfully send the initial CONNECTSERVERHOST\r\n\r\n, and a subsequent challenge message: 1E:00:0E:00:00:00:00:00

And I then get the response: 1E:00:0F:00:18:00:00:00:11:00:00:00 And then the string: 00-90-C2-FB-1E-DB And a trailer: 00:00:00

After this, I attempt a login (with "Android" as the controller string): 1F:00:1B:00:30:00:00:00:5C:01:00:00:00:00:00:00:07:00:00:00:41:6E:64:72:6F:69:64:00:10:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:02:00:00:00

And I get the response: 1F:00:0D:00:00:00:00:00

And then the unit will FIN the next message I send.

I have included the working (from my local controller) and non-working pcaps. First thing that jumps out at me is that my controller seems to be sending it's own MAC Address (string encoded) after the PID int (sending a length of 17, then the string, then some trailer that's all zeroes). No idea what's going on with that. I have tried sending a duplicate of that, and it does not work either (0xd response).

pcaps.zip