netmindz / balboa_GL_ML_spa_control

Control protocol between GL2000 controller and ML series compatibile top panel
16 stars 8 forks source link

Not able to send command #71

Open Weom85 opened 7 months ago

Weom85 commented 7 months ago

image Hi, im not able to send command , when i check with analyser it seems that the delay between the FA message and the FB message is too long and pin 5 goes HI before i finish to send message.

i added log and snapshot of the graph.

do you have any idea of what i should change or what i'm doing wrong

100.000000 Sent target temp data 100.000000 onPumpSwitchStateChanged Pump1 2 Sendi ng fb060343060006f9a2 - 1 times ERROR: Pin5 went high before command could be sen t after flush ERROR: Pin5 went high before command could be sent after flush ERROR: Pin5 went high before command could be sent after flush ERROR: Pin5 went high before command could be sent after flush ERROR: Pin5 went high before command could be sent after flush ERROR: Pin5 went high before command could be sent after flush ERROR: Pin5 went high before command could be sent after flush ERROR: Pin5 went high before command could be sent after flush ERROR: Pin5 went high before command could be sent after flush ERROR: Pin5 went high before command could be sent after flush ERROR: Pin5 went high before command could be sent after flush ERROR: Pin5 went high before command could be sent after flush ERROR: Pin5 went high before command could be sent after flush ERROR: Pin5 went high before command could be sent after flush ERROR: Pin5 went high before command could be sent after flush ERROR: Pin5 went high before command could be sent after flush ERROR: Pin5 went high before command could be sent after flush ERROR: Pin5 went high before command could be sent after flush ERROR: Pin5 went high before command could be sent after flush ERROR: Pin5 went high before command could be sent after flush ERROR: Pin5 went high before command could be sent after flush ERROR: Pin5 went high before command could be sent after flush ERROR: Pin5 went high before command could be sent after flush ERROR: Pin5 went high before command could be sent after flush ERROR: Pin5 went high before command could be sent after flush ERROR: Pin5 went high before command could be sent after flush ERROR: Pin5 went high before command could be sent after flush ERROR: Pin5 went high before command could be sent after flush ERROR: Pin5 went high before command could be sent after flush ERROR: Pin5 went high before command could be sent after flush ERROR: Pin5 went high before command could be sent after flush ERROR: Pin5 went high before command could be sent after flush ERROR: Pin5 went high before command could be sent after flush ERROR: Pin5 went high before command could be sent after flush ERROR: Pin5 went high before command could be sent after flush ERROR: Pin5 went high before command could be sent after flush ERROR: Pin5 went high before command could be sent after flush ERROR: Pin5 went high before command could be sent after flush ERROR: Pin5 went high before command could be sent after flush ERROR: Pin5 went high before command could be sent after flush ERROR: Pin5 went high before command could be sent after flush ERROR: Pin5 went high before command could be sent after flush ERROR: Pin5 went high before command could be sent after flush ERROR: Pin5 went high before command could be sent after flush ERROR: Pin5 went high before command could be sent after flush ERROR: Pin5 went high before command could be sent after flush YAY: command response : 3350 Switch Light changed - Toggle ERROR: Pin5 went high before command could be sent after flush

Weom85 commented 7 months ago

image When the spa is sending the FB message there's 300 micro second between FA and FB

netmindz commented 6 months ago

I've optimised the code a bit to try and decrease the delay between when the interrupt on pin5 triggers and we send the command, if you can try pulling the latest code.

Overall I'm not sure why you were seeing a longer delay than I do, but hopefully this will help a bit more.

Generally if I complete sending and see the response in around 2500 then my spa responds ok

Weom85 commented 6 months ago

Thank you ! I’ll give it a try I was able to make it work tweaking the code but I lost connection often right now it’s not really fully reliable hopefully with your new code will fix it :)

I also order a RSC3 but i cannot flash the chip platformio won't compile the code.

I will still try to work on that


De : netmindz @.> Envoyé : Wednesday, January 3, 2024 5:09:24 PM À : netmindz/balboa_GL_ML_spa_control @.> Cc : Weom85 @.>; Author @.> Objet : Re: [netmindz/balboa_GL_ML_spa_control] Not able to send command (Issue #71)

I've optimised the code a bit to try and decrease the delay between when the interrupt on pin5 triggers and we send the command, if you can try pulling the latest code.

Overall I'm not sure why you were seeing a longer delay than I do, but hopefully this will help a bit more.

Generally if I complete sending and see the response in around 2500 then my spa responds ok

— Reply to this email directly, view it on GitHubhttps://github.com/netmindz/balboa_GL_ML_spa_control/issues/71#issuecomment-1876035732, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEKWKF7LKP6ZVSMUYBXTJQDYMXJJJAVCNFSM6AAAAABAOBE5CKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZWGAZTKNZTGI. You are receiving this because you authored the thread.Message ID: @.***>

netmindz commented 6 months ago

Can you remember what optimisations you made to make it more reliable?

As for the RSC3 I don't know if my board is faulty, but not only was I seeing it be slower, but even when it said it had send a message there was no response.

I need to pull that board out and confirm that it is actually transmitting to the rs485 bus when it says it is