xreef / EByte_LoRa_E22_Series_Library

Arduino LoRa EBYTE E22 device library complete and tested with Arduino, esp8266, esp32, STM32 and Raspberry Pi Pico (rp2040 boards).. sx1262/sx1268
Other
104 stars 22 forks source link

configuration.getChannelDescription() reports wrong E22 frequency #26

Closed sidtupper closed 7 months ago

sidtupper commented 7 months ago

I'm using some E22-900T30D modules. When I run your example at

https://github.com/xreef/EByte_LoRa_E22_Series_Library/tree/master/examples/esp32_e22_setConfiguration) /esp32_e22_setConfiguration.ino

it returns Chan : 23 -> 433MHz, when I expect it to return 850 + 23 -> 873MHz.

Does this matter? In other words, is it just informational, or does it result in wrong commands to the module?

A related problem is it returns an error "POWER_30 was not declared" when attempting to set the configuration to POWER_30. I can't find "#define E22_22" or "#define E22_30" in the repository so I guess TRANSMISSION_POWER gets enumerated as though for E22-400 in line 467 of statesNaming.h. Adding "#define FREQUENCY_915" and "#define E22_30" in the example code seems to fix it.

xreef commented 7 months ago

Hi Sid, Ahh, I checked that you wrote "Adding "#define FREQUENCY_915" and "#define E22_30" in the example code seems to fix it.". So I think it's all okay now. Some additional info here. Bye Renzo