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

Allow for defining only rx pin for VE.direct #455

Merged
merged 1 commit into from
Sep 28, 2023

Conversation

philippsandhaus
Copy link

This PR removes the necessity for defining a GPIO Pin for tx for Victron devices. Currently sending commands is not done and thus only the rx pin is used for MPPT and SmartShunt devices.

I thought about removing the victron_tx part completely in the code, but I think it will make potential future support for sending commands to the victron devices easier, but the tx pin should not be mandatory at the moment.

I think, this would eliminate a lot of confusion, what do you think?

@schlimmchen
Copy link
Member

Nice. Good idea.

[I was about to say that there is a whitespace before the closing bracket of the if statement that you changed, but none at the start, but I will exercise myself in restraint 😁]

Please update the Wiki accordingly, i.e., mention that the TX pin is optional. Are there more places where docs have to be updated?

@philippsandhaus
Copy link
Author

philippsandhaus commented Sep 23, 2023

whitespace removed ;-)

It is not directly mentioned in the Wiki, only that a physical connection is not needed. But I think it would make sense to describe how to define the GPIO pins and then mention that tx is optional. I can update the Wiki but would do this after the PR is in master and in the latest release. I don't see that this is mentioned elsewhere in the docs.

@philippsandhaus philippsandhaus marked this pull request as ready for review September 23, 2023 20:05
@schlimmchen
Copy link
Member

The VE.Direct Wiki page now mentions that one can leave Victron RX pin unconnected and set pin mapping TX pin to -1 accordingly. This is in anticipation that this PR is merged eventually.

The device profile wiki page should still be updated.

@helgeerbe helgeerbe merged commit 4ee49a6 into hoylabs:development Sep 28, 2023
8 checks passed
@philippsandhaus
Copy link
Author

philippsandhaus commented Sep 30, 2023

Thank you, I just did an update of the Device Profiles page.

@philippsandhaus philippsandhaus deleted the victron-notx branch October 3, 2023 19:00
Copy link

github-actions bot commented Apr 4, 2024

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new discussion or issue for related concerns.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants