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

No tx on Seeed Studio E5 module (STM32WLE5xxxx) #798

Closed
ixmeins opened this issue Jul 16, 2023 · 4 comments
Closed

No tx on Seeed Studio E5 module (STM32WLE5xxxx) #798

ixmeins opened this issue Jul 16, 2023 · 4 comments
Labels
bug Something isn't working resolved Issue was resolved (e.g. bug fixed, or feature implemented)

Comments

@ixmeins
Copy link

ixmeins commented Jul 16, 2023

IMPORTANT: Check the wiki
Before submitting new issue, please check the Wiki and the API documentation. You might find a solution to your issue there.

Describe the bug
Using any of the supplied Lora TX examples for the Nucleo WL55 board with the rfswitch_pins[] array configured for PA4,PA5,PA5 allows the application to build and run on the target with no error messages returned by the driver but no RF is output from the SX126x. (Confirmed with R&S spectrum analyser in case it appeared at an unexpected frequency).

To Reproduce
Insert this code block into example sketches, select E5 module from official STM32duino v2.6.0 board list.

// Setup for E5 module
static const uint32_t rfswitch_pins[] = {PA4, PA5, PA5};
static const Module::RfSwitchMode_t rfswitch_table[] = {
{STM32WLx::MODE_IDLE, {LOW, LOW, LOW}},
{STM32WLx::MODE_RX, {HIGH, LOW, LOW}},
{STM32WLx::MODE_TX_LP, {LOW, HIGH, HIGH}}, // No LP mode just HP
{STM32WLx::MODE_TX_HP, {LOW, HIGH, HIGH}},
END_OF_MODE_TABLE,
};

Expected behavior
RF output from SX126x module as per radiolib supplied example files.

Additional info (please complete):

Hardware works with my RIOT OS code and LoraWAN examples within Arduino 2.1.1

@ixmeins
Copy link
Author

ixmeins commented Jul 16, 2023

Stupidly easy fix. setOutputPower() values below 15 generate no output on this module. Values of 15-22 work as expected.

@ixmeins ixmeins closed this as completed Jul 16, 2023
@jgromes
Copy link
Owner

jgromes commented Jul 16, 2023

This is an interesting corner case, maybe the setOutputPower method should return an error when either LP or HP is not available but the user requests power output in that range. It would have to be defined by the RF switch table, so seeing as you did define LP switch mode even though there actually isn't one it wouldn't have worked anyway, but I think that can be included in the examples and docs.

Also, right now you will not be able to set power lower than 15 dBm, even though the HP amplifier can actually go as low as -9 dBm.

@jgromes jgromes reopened this Jul 16, 2023
@jgromes jgromes added the bug Something isn't working label Jul 16, 2023
@hallard
Copy link

hallard commented Jul 16, 2023

just my 2 cents it’s may be because E5 has no LP path just HP
https://forum.seeedstudio.com/t/lora-e5-fw-bug-tx-eu868-85ma-too-high-consumption/260126/8

RAK 3172 had same issue until they released the LP version
https://forum.rakwireless.com/t/rak3172-too-much-consumption-in-transmit-eu868/4781

scratched my head a lot on this one I made some PR on mbed to get things to work

@jgromes
Copy link
Owner

jgromes commented Jul 16, 2023

@hallard yes, that was also my conclusion.

@ixmeins fixed in the commit mentioned above, thanks for reporting!

@jgromes jgromes closed this as completed Jul 16, 2023
@jgromes jgromes added the resolved Issue was resolved (e.g. bug fixed, or feature implemented) label Jul 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working resolved Issue was resolved (e.g. bug fixed, or feature implemented)
Projects
None yet
Development

No branches or pull requests

3 participants