Constructor difference and HardwareSerial and SoftwareSerial difference

Home Forums The libraries hosted on the site EByte LoRa e32 UART devices sx1262/sx1268 Constructor difference and HardwareSerial and SoftwareSerial difference

Viewing 6 reply threads
  • Author
    Posts
    • #5981
      ludophot
      Participant

        Hi, I have a few questions for my understanding

        • what is the difference between : LoRa_E32 e32ttl100(2, 3,5,6,7); and LoRa_E32 e32ttl(2, 3,5,6,7); ?
        • what is the difference between serial and hardware the interest of everyone?the most efficient method?

        thank you 🙂

         

         

         

      • #5983
        Renzo Mischianti
        Keymaster

          Hi Ludophot,

          for

          LoRa_E32 e32ttl100(2, 3,5,6,7); and LoRa_E32 e32ttl(2, 3,5,6,7)

          change only the variable name e32ttl100 in e32ttl.

           

          I think you mean difference from

          LoRa_E32 e32ttl100(2, 3,5,6,7); // Arduino RX <-- e22 TX, Arduino TX --> e22 RX AUX M0 M1


          and

          #include <SoftwareSerial.h>
          SoftwareSerial mySerial(2, 3); // Arduino RX <-- e22 TX, Arduino TX --> e22 RX
          LoRa_E22 e22ttl(&mySerial, 5, 6, 7); // AUX M0 M1


          and

          LoRa_E22 e22ttl(&Serial1, 5, 6, 7); // AUX M0 M1

          the first and the second is the samething the difference is that in the first case I instantiate SoftwareSerial internally.

          The last one you pass a reference of the HardwareSerial.

           

          The better solution is to use HardwareSerial, because SoftwareSerial is an emulation of Hardware one, so to do the emulation need more processors time respect an hardware implementation of the Serial, and can be more fast.

          But not all Arduino like have multiple Serial, so for Arduino UNO, if you want use debug and other you need to do Software one.

          Bye Renzo

        • #5988
          ludophot
          Participant

             Arduino RX <– e22 TX 
            we see that you work on the E22

          • #5997
            Renzo Mischianti
            Keymaster

              Hehehehhe… you discover me…

              yes the library is ready and tested,

              the base commands is the same of library for E32 but there are addictions of the new features like RSSI, configuration for repeater mode packet size increased etc. etc.

              I start writing documentation, a library without documentation is half work..

              But probably first I release the “EByte E32 Web Manager“,  a web manager to configure and test E32..


              EByte LoRa E32 Manager Custom Home Page

               

              Bye Renzo

              • #13699
                Thayro
                  <span class="Y2IQFc" lang="en">Hello, about EByte E32 Web Manager, do you already have the configuration software available for download?</span>
              • #6009
                ludophot
                Participant

                  I ordered 2 E22 in anticipation of the release of your library.

                  Repeater mode interests me a lot because I used it on NRF24 modules. do the E32s lack it? the rssi? measurement of the power level when receiving a signal

                • #6010
                  Renzo Mischianti
                  Keymaster

                    No E32 doesn’t have RSSI and repeater function.

                    E22 can reach a greater distance with less power:
                    from 3Km of E32 to 4/5Km of E22
                    from 8Km of E32 1W to 10/12Km of E22

                    The packet size of E22 is configurable from 32Kb to 240Kb.

                    It’s also more difficult to find module versione, so for the first test I use a PCB as adapter


                    Ebyte LoRa E22 device for Arduino, esp32 or esp8266 3 devices module SMD

                    Bye Renzo

                  • #13700
                    Thayro

                      Hello, about EByte E32 Web Manager, do you already have the configuration software available for download?

                      • #13713
                        Renzo Mischianti
                        Keymaster

                          Hi Thayro,
                          you are right, has been ready for months, i try to publish as soon as possible.
                          Bye Renzo

                        • #13759
                          Renzo Mischianti
                          Keymaster

                            Hi Thayro,
                            I release It, you can find the program in the example list of Library.
                            Bye Renzo

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