patience4711 / read-APSystems-YC600-QS1-DS3

Software for an esp8266 nodemcu to read data from APS inverters.
128 stars 24 forks source link

Update the files #138

Closed fwolfst closed 5 months ago

fwolfst commented 7 months ago

I tried to compile the project, but I am quite sure that the source files are not up-to-date (the bin and main iso were updated often, but all the others were not). Could you upload the newest version? I moved quite some files around and only noticed it just now (e.g. the LogEvent List name, domIdx variable etc.). Thanks for all that work!

patience4711 commented 7 months ago

@fwolfst Done. The file AAA_Decode has some changes as it turned out that the panels 1 and 2 of the yc600 where swapped. So this is new and not yet tested.

fwolfst commented 7 months ago

@fwolfst Done. The file AAA_Decode has some changes as it turned out that the panels 1 and 2 of the yc600 where swapped. So this is new and not yet tested.

Great. Thank you very much!

fwolfst commented 7 months ago

@fwolfst Done. The file AAA_Decode has some changes as it turned out that the panels 1 and 2 of the yc600 where swapped. So this is new and not yet tested.

Great. Thank you very much!

Are you sure that also the main iso and the Logpage.ino are updated? Because in Logpage it tries to find Log_EventList. In the ESP-ECU-v10_9.ino I find Log_Events, which is probably the right variable, but different name.

patience4711 commented 7 months ago

@fwolfst Yes, the files came from one directory. To be absolutely sure i uploaded them again. Sorry i have no time to investigate this but i did not have troubles with compiling so it should be oke.

fwolfst commented 7 months ago

Much appreciated, thank you.

fwolfst commented 7 months ago

Just FYI, I created a fork at https://github.com/fwolfst/ESP8266-APSystems . The goal is to make it compile on my machine without ArduinoIDE (because there the library management drives me nuts and under Linux the given code would not work). For me, platform.io is much closer to what I am used to from my dayjob.

I got it to compile but do not know if everything works (need again a working zigbee module + sun to try :) ). Also had to fix the WIFI settings, it wouldnt automatically reconnect after saving them on 192.168.4.1.

I will try to clean up the code (gives some warnings) and maybe (maybe maybe) integrate some lorawan if I win in the lottery-of-time. Tell me if you want to be pinged with updates. Unfortunately, github PRs seem not to work best in this setting.

joffito commented 7 months ago

That sounds great! Maybe you can even fork the ESP32 version? But first things first. Hope you can get your hands on a zigbee module. if not i could order one and flash it when i got it.

patience4711 commented 7 months ago

The wifi connection portal is sometimes not working 100% probably because during the connection attempt, there are changes in wifi mode. This can lead to disconnection with the client that is configuring.

I think it would even be better to abandon the esp8266 version and switch to ESP32.
It is not more expensive and has the possiblity to connect wifi via bluetooth . This works very reliable and saves much programspace and some global vars. With our phone we can have a terminal to the esp so we could even port the console to that. The wifiportal and the console are massive pieces of code so if this could be slimmed down....

Bluetooth has a much better range than wifi so if you are thinking of lorawan this could be an alternative without need for extra hardware. Update: I recently tested with bluetooth but the results as to range indoors (in an appartementbuilding) are not very good. One floor at max. So maybe lora isn't such a bad idea.

gismo2004 commented 6 months ago

@patience4711 if you think about "moving" something, just check out esphome --> basically esphome has everything available when it comes to connection/hompage/mqtt and things like that, so you just have to care about the core thing, which is the communication part.

djsys commented 6 months ago

Je viens de la version pour ESP8266, Je viens d'essayer la version 8 pour ESP32, impossible de faire "PAIR" plus de 20 tentatives sans succes et la console se déconn Capture d'écran 2024-03-05 161619 ecte après chaque commande ?