Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to send command #71

Open
Weom85 opened this issue Dec 9, 2023 · 4 comments
Open

Not able to send command #71

Weom85 opened this issue Dec 9, 2023 · 4 comments

Comments

@Weom85
Copy link

Weom85 commented Dec 9, 2023

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
Copy link
Author

Weom85 commented Dec 9, 2023

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

@netmindz
Copy link
Owner

netmindz commented Jan 3, 2024

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
Copy link
Author

Weom85 commented Jan 3, 2024 via email

@netmindz
Copy link
Owner

netmindz commented Jan 6, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants