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

Disable TX/RX EN in favor of power EN over TX_EN #2456

Merged
merged 2 commits into from May 3, 2023

Conversation

thebentern
Copy link
Contributor

@thebentern thebentern commented May 2, 2023

No description provided.

@github-actions
Copy link
Contributor

github-actions bot commented May 2, 2023

🤖 Pull request artifacts

file commit
pr2456-firmware-2.1.11.6aa9e37.zip 6aa9e37

thebentern added a commit to meshtastic/artifacts that referenced this pull request May 2, 2023
thebentern added a commit to meshtastic/artifacts that referenced this pull request May 2, 2023
@thebentern thebentern merged commit a6385a5 into master May 3, 2023
45 checks passed
@thebentern thebentern deleted the fix-hydra-rf-switch branch May 3, 2023 11:24
Copy link

@ReiHof ReiHof left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why this change ? Diy Nano_VHF with Ebyte E22 900M30S works with RXEN/TXEN on IO 14/13
With firmware V2.1.11 a continous current of 600mA will result,
the modul is heading over 50 degrees.

@thebentern
Copy link
Contributor Author

Why this change ? Diy Nano_VHF with Ebyte E22 900M30S works with RXEN/TXEN on IO 14/13 With firmware V2.1.11 a continous current of 600mA will result, the modul is heading over 50 degrees.

That's not good. I'll take a look into this.
The reason for the change was that the 900M30S was not outputting the full 30dBm due to the RF ant switch not being properly triggered by the TX/RXEN pins. This was presumably due to the same scheme as some other SX1262 based targets such as the RAK-4631, wherein this pin is used to power dio2 which automatically switches modes internally. It would appear this is not so cut and dry. I need to investigate and see after restoring the TX/RXEN pin definitions if we cannot figure out why the switch is not getting triggered by RadioLib as it should. Perhaps it's a configuration issue or perhaps a bug.

@mverch67
Copy link
Collaborator

mverch67 commented May 10, 2023

Not sure if it's related to your issue (#2477), but the lora.setDio2AsRfSwitch(true) requires an external inverter logic which connects RX/TX and DIO2 (and thus saves two GPIO ports):

image

The hydra schematics show that DIO2 is not connected so pins 13/14 must be used to drive the RF switch and setDio2AsRfSwitch must be called with false as parameter.
image

This commit permanently sets TXEN to "high", which may explain the permanent current draw of 600mA and the heating up.

@thebentern
Copy link
Contributor Author

@ReiHof, please try the PR build artifacts here to test the fix:
#2484

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

Successfully merging this pull request may close these issues.

None yet

4 participants