sbcshop / RangePi

Range-Pi is a low cost portable “Plug and Play LoRaTM Dongle” based on Raspberry Pi RP2040 and LoRaTM Modules, comes with an onboard 1.14" LCD that covers 433/868/915 MHz frequency band to enable data transmission up to 5 KM.
MIT License
23 stars 6 forks source link

How to setup control parameters for the e22 chip #5

Open rebotnix opened 1 year ago

rebotnix commented 1 year ago

Hi,

we bought 2 of RangePi Modules and basic examples works very well.

Cause the Pi acts as a UART brige with micropython, we can´t figure out to configure the E22 sx1262 chip set. Special the sf=x is important for us to set.

Is it possible to set standard parameters like:

LoRa SX1262.begin(freq=434.0, bw=125.0, sf=9, cr=7, syncWord=0x12, power=14, currentLimit=60.0 preambleLength=8, implicit=False, implicitLen=0xFF, crcOn=True, txIq=False, rxIq=False, tcxoVoltage=1.6, useRegulatorLDO=False, blocking=True) This method is used to set LoRa configuration.

freq : Frequency in MHz bw : Bandwidth in kHz sf : Spreading factor, 5 to 12 cr : Coding rate, 5 to 8 syncWord : Sync word, private = 0x12, public = 0x34 power : TX power in dBm currentLimit : Current limit in mA preambleLength : Preamble length implicit : Implicit or explicit header, implicit = True implicitLen : Implicit header payload length crcOn : CRC on or off txIq : TX invert IQ rxIq : RX invert IQ tcxoVoltage : TCXO input voltage in V useRegulatorLDO : Use LDO regulator = True, use DC-DC regulator = False blocking : Blocking TX/RX = True, non blocking TX/RX = False etc...

Thanks for your support.

MAVProxyUser commented 1 month ago

The E22 manual says we can use the jumper to put it in different operating modes. image

As far as I can tell M0 and M1 are the jumpers locations on the board that come with the jumpers active. image

@rebotnix

MAVProxyUser commented 1 month ago

It looks like there is a tool to change the settings with too @rebotnix

Full manual: E22-400T30DC_UserManual_EN_v1.0.pdf

image

MAVProxyUser commented 1 month ago

This seems to have extra relevant info as well... https://github.com/xreef/EByte_LoRa_E22_Series_Library image