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

Update pypackage set txpower per nrf/inverter #51

Merged
merged 1 commit into from
May 23, 2022

Conversation

Sprinterfreak
Copy link
Contributor

Add config parameter txpower in inverters- and nrf context.
This enables overriding txpower default RF24_PA_MAX, in some cases
inverters require RF24_PA_LOW. For larger setups, txpower can be set per
inverter to be able to query a far away (max) and a near by (low) one from within
one instance.

Valid values can be:

  • txpower: 'max' (corresponds to RF24_PA_MAX, default)
  • txpower: 'low' (corresponds to RF24_PA_LOW)

Add config parameter `txpower` in inverters- and nrf context.
This enables overriding txpower default RF24_PA_MAX, in some cases
inverters require RF24_PA_LOW. For larger setups, txpower can be set per
inverter to be able to query a far away (max) and a near by (low) one from within
one instance.

Valid values can be:
 * `txpower: 'max'` (corresponds to RF24_PA_MAX, default)
 * `txpower: 'low'` (corresponds to RF24_PA_LOW)
@lumapu
Copy link
Owner

lumapu commented May 23, 2022

why do you not support, min and high? Maybe a good idea to have it configurable by inverter.
For my setup I get the best results using high setting.

@lumapu lumapu merged commit e543787 into lumapu:main May 23, 2022
@Sprinterfreak
Copy link
Contributor Author

I had not seen a noticeable difference between high vs. max and low vs. min. If there is, can do.

@lumapu
Copy link
Owner

lumapu commented May 23, 2022

I checked the datasheet of NRF24L01 (sparkfun.com) chip. On page 55 and 56 you can see the setting RF_PWR. The settings have a step of 6dBm - so I think it makes sense to implement all of them.

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.

2 participants