Hi!, I'm testing the library with a RP2040 and a E220900T22D, seems like something went wrong using get_configuration()
DEBUG MODE NORMAL!
DEBUG AUX HIGH!
DEBUG Complete!
Initialization: {} Success
DEBUG check_UART_configuration: 1
DEBUG MODE PROGRAM!
DEBUG AUX HIGH!
DEBUG Complete!
DEBUG set_mode: 1
DEBUG data: b'\x00\x00\xc1\x00\x08\x01\x02b\x00\x01\x03\x00\x00\x00'
DEBUG data len: 14
DEBUG model: 900T22D
DEBUG MODE NORMAL!
DEBUG AUX HIGH!
DEBUG Complete!
Retrieve configuration: {} Save mode returned not recognized!
----------------------------------------
HEAD : 0x0 0x0 0xc1
AddH : 0x0
AddL : 0x8
Chan : 98 -> 948
SpeedParityBit : 0b0 -> 8N1 (Default)
SpeedUARTDatte : 0b0 -> 1200bps
SpeedAirDataRate : 0b1 -> 2.4kbps
OptionSubPacketSett: 0b0 -> 200bytes (default)
OptionTranPower : 0b10 -> 13dBm
OptionRSSIAmbientNo: 0b0 -> Disabled (default)
TransModeWORPeriod : 0b0 -> 500ms
TransModeEnableLBT : 0b0 -> Disabled (default)
TransModeEnableRSSI: 0b0 -> Disabled (default)
TransModeFixedTrans: 0b0 -> Transparent transmission (default)
----------------------------------------
from machine import Pin
from time import sleep
from lora_e220 import LoRaE220, print_configuration, Configuration
from lora_e220 import logger
from lora_e220_operation_constant import ResponseStatusCode
from machine import UART
# Init Lora
# https://github.com/xreef/EByte_LoRa_E220_micropython_library
uart1 = UART(1)
lora = LoRaE220('900T22D', uart1, aux_pin=7, m0_pin=2, m1_pin=3)
logger.enable_debug = True
code = lora.begin()
print("Initialization: {}", ResponseStatusCode.get_description(code))
# read config
code, configuration = lora.get_configuration()
print("Retrieve configuration: {}", ResponseStatusCode.get_description(code))
print_configuration(configuration)