Stefan Allius
62ea2a9e6f
Refactoring async stream ( #194 )
...
* GEN3: Invalid Contact Info Msg
Fixes #191
* introduce ifc with FIFOs
* add object factory
* use AsyncIfc class with FIFO
* declare more methods as classmethods
* - refactoring
- remove _forward_buffer
- make async_write private
* remove _forward_buffer
* refactoring
* avoid mqtt handling for invalid serial numbers
* add two more callbacks
* FIX update_header_cb handling
* split AsyncStream in two classes
* split ConnectionG3(P) in server and client class
* update class diagramm
* refactor server creation
* remove duplicated imports
* reduce code duplication
* move StremPtr instances into Inverter class
* resolution of connection classes
- remove ConnectionG3Client
- remove ConnectionG3Server
- remove ConnectionG3PClient
- remove ConnectionG3PServer
* fix server connections
* fix client loop closing
* don't overwrite self.remote in constructor
* update class diagramm
* fixes
- fixes null pointer accesses
- initalize AsyncStreamClient with proper
StreamPtr instance
* add close callback
* refactor close handling
* remove connection classes
* move more code into InverterBase class
* remove test_inverter_base.py
* add abstract inverter interface class
* initial commit
* fix sonar qube warnings
* rename class Inverter into Proxy
* fix typo
* move class InverterIfc into a separate file
* add more testcases
* use ProtocolIfc class
* add unit tests for AsyncStream class
* icrease test coverage
* reduce cognitive complexity
* increase test coverage
* increase tes coverage
* simplify heartbeat handler
* remove obsolete tx_get method
* add more unittests
* update changelog
* remove __del__ method for proper gc runs
* check releasing of ModbusConn instances
* call garbage collector to release unreachable objs
* decrease ref counter after the with block
2024-10-13 16:07:01 +02:00
Stefan Allius
5ef68280b1
S allius/issue186 ( #187 )
...
* Parse more values in Server Mode
Fixes #186
* read OUTPUT_COEFFICIENT and MAC_ADDR in SrvMode
* fix unit test
* increase test coverage
2024-09-14 19:49:29 +02:00
Stefan Allius
865216b8d9
remove dubbled fixtures
2024-09-07 18:03:50 +02:00
Stefan Allius
be4c6ac77f
S allius/issue182 ( #183 )
...
* GEN3: After inverter firmware update the 'Unknown Msg Type' increases continuously
Fixes #182
* add support for Controller serial no and MAC
* test hardening
* GEN3: add support for new messages of version 3 firmwares
* bump libraries to latest versions
- bump aiomqtt to version 2.3.0
- bump aiohttp to version 3.10.5
* improve test coverage
* reduce cognective complexity
2024-09-07 11:45:16 +02:00
Stefan Allius
270732f1d0
fix merge conflict
2024-09-03 18:54:49 +02:00
Stefan Allius
7b4fabdc25
fix merge conflikt
2024-09-03 18:48:21 +02:00
Stefan Allius
2351ec314a
fix merge
2024-09-03 18:42:48 +02:00
Stefan Allius
604d30c711
Merge branch 'main' of https://github.com/s-allius/tsun-gen3-proxy into dev-0.11
2024-09-03 18:39:27 +02:00
Stefan Allius
a76c0ac440
improve test coverage und reduce test delays
2024-09-03 17:23:09 +02:00
Stefan Allius
627ca97360
Test modbus_tcp ( #179 )
...
* add more unit tests
2024-08-30 20:40:53 +02:00
Stefan Allius
d2b88ab838
Sonar qube 3 ( #178 )
...
* add more unit tests
2024-08-29 23:47:30 +02:00
Stefan Allius
2b8dacb0de
Dev 0.11 ( #175 )
...
* use random IP adresses for unit tests
* Docker: The description ist missing (#171 )
Fixes #167
* S allius/issue167 (#172 )
* cleanup
* Sonar qube 6 (#174 )
* test class ModbusConn
2024-08-26 23:49:23 +02:00
Stefan Allius
7f41365815
Sonar qube 6 ( #174 )
...
* test class ModbusConn
2024-08-26 23:37:24 +02:00