Frequency displayed/calculated? incorrectly in 01_getConfiguration example

Home Forums The libraries hosted on the site EByte LoRa e220 UART devices LLCC68 Frequency displayed/calculated? incorrectly in 01_getConfiguration example

Viewing 5 reply threads
  • Author
    Posts
    • #20252
      Gulpman
      Participant

        Hi,
        I successfully managed to connect an ESP32 with the E220-900T2D board and upload the 01_getConfiguration.ino example from the library.

        However, I think there is an issue with the display of the frequency:

        Success
        1
        ----------------------------------------
        HEAD : C1 0 8
         
        AddH : DF
        AddL : 40
         
        Chan : 18 -> 428MHz
         
        SpeedParityBit     : 0 -> 8N1 (Default)
        SpeedUARTDatte     : 11 -> 9600bps (default)
        SpeedAirDataRate   : 10 -> 2.4kbps (default)
         
        OptionSubPacketSett: 0 -> 200bytes (default)
        OptionTranPower    : 0 -> 22dBm (Default)
        OptionRSSIAmbientNo: 0 -> Disabled (default)
         
        TransModeWORPeriod : 11 -> 2000ms (default)
        TransModeEnableLBT : 0 -> Disabled (default)
        TransModeEnableRSSI: 0 -> Disabled (default)
        TransModeFixedTrans: 0 -> Transparent transmission (default)
        ----------------------------------------
        Success
        1
        ----------------------------------------
        HEAD: C1 8 3
        Model no.: 20
        Version  : B
        Features : 16
        ----------------------------------------

        The output says I’m dealing with a 433MHz device, but it is a 868MHz device. The channel is correct (18) but the base frequency is not.

        I configured my E220-900T22D to channel 18 with Ebyte’s configuration programm so 868,125MHz should be displayed.
        See attached screenshot from the configuration tool of Ebyte.

        Best,
        Gulpman

      • #20254
        Renzo Mischianti
        Keymaster

          Hi Gulpman,
          Yes, you must add the correct frequencies define like described here.

          Bye Renzo

          • #20255
            Gulpman
            Participant

              Got it, thank you very much Renzo 🙂

              But… it seems there is still something not correctly shown:
              For the 433MHz devices calculation seems to be correct: The base frequency used there is 410.25MHz. For the resulting frequency the channel is added up to the base frequency.
              So for my previous case, 428MHz was displayed correctly (410 + 18).

              When I now set

              #define FREQUENCY_868
              

              The output is:

              [...]
              Chan : 18 -> 880MHz
              [...]
              

              From the E220-900T22D manual (page 15, register description 04H) it is said that the base frequency is 850.125MHz and adding 18 (for channel 18) should give 868,25MHz not 880MHz as displayed in the script.

              Am I missing something here? Thanks a lot in advance.

              Best, Gulpman

          • #20256
            Renzo Mischianti
            Keymaster

              Hi Gulpman,
              no, you don’t miss anything :P, there is a bug, I’m going to fix it as soon as possible.

              Bye Renzo

            • #20257
              Renzo Mischianti
              Keymaster

                I forgot to say that it’s only a visualization issue, the Library work correctly.
                Bye Renzo

              • #20800
                Elija
                Participant

                  Hi. Thanks to Renzo for the library, is very useful and complete.

                  I have a similar problem of frequency display with E220-900T30D module.

                  I tried to set
                  #define FREQUENCY_868

                  but the “getConfiguration” example shows me every time frequencies around 433 MHz (depending on choosen channel) but not frequencies around 868 MHz.

                  Is it possible that
                  #define FREQUENCY_868

                  must be set in another position of the sketch? I insert it when sketch starts, after the inclusion od libraries.

                  I use 1.0.3 library version.

                  Thanks!

                  Emuz24

                  P.S. Sorry for my english!

                • #20803
                  Renzo Mischianti
                  Keymaster

                    Hi Elija,
                    you must add that definition before the inclusion of the library.

                    If doesn’t work, add that define directly on EByte_LoRa_E220_Series_Library/includes/statesNaming.h file.

                    Bye Renzo

                    • #20811
                      Elija
                      Participant

                        It works fine!

                        Thanks a lot!

                  Viewing 5 reply threads
                  • You must be logged in to reply to this topic.
                  Exit mobile version