strandborg / AlsavoCtrl

Alsavo Heat Pump control application
Other
11 stars 1 forks source link

SIGBUS error on RPI4B #20

Open SuGiCZ opened 1 year ago

strandborg commented 1 year ago

I'm a bit baffled as to how this can possibly fix anything =). The sequence number is the monotonously increasing packet number that is part of the packet header (16 bits). Changing the internal state counter to 32 bits shouldn't really change anything, as the value is still converted to uint16_t when building the packet header (yes, ideally m_NextSeq should also be uint16_t instead of int16_t). The only situation where this might make any kind of difference is when we've already sent (and received acknowledgement for) 32767 packets during one session and the counter would then overflow; I've never seen the connection surviving for that long.

Nevertheless, if this helps your specific situation, great!

SuGiCZ commented 1 year ago

I don't understand too... I'm tried to debug code and this is what I found.

I still have one problem :-( The heat pump is accessible only from the cloud and its not stable (also in original app). Its no listening on port 1194. I tried nmap and I get opened UDP ports 67 and 48899, but none of them works. Any suggestion, how to get right port?

And thank you for this app! Using through the cloud will be too much easier in openhab, than original app :-)

strandborg commented 1 year ago

You could capture the traffic between the alsavo pro app and the heat pump (I used android tablet and one of the packet capture apps) to find out through which port the communication happens.