E22/E220 configuration

Viewing 9 reply threads
  • Author
    Posts
    • #18627
      Robert
      Participant

        Hello,

        I’m new to this forum and I just started looking at a way to setup a point-to-point communication using E220-900T22D modules with Arduinos (or ESP32).

        I’m a bit confused by some comments in the examples for fixed transmission and for receiving message as explained below:

        Comments in the Arduino Fixed Transmission source :

        // with this DESTINATION_ADDL 2 you must set
        // FIXED SENDER configuration to the other device and
        // FIXED RECEIVER to this device
        #define DESTINATION_ADDL 2

        Comments in the Arduino Receive Message source :

        // with this RECEIVER_ADDL 3 you must set
        // FIXED RECEIVER configuration to the other device and
        // FIXED SENDER to this device
        #define DESTINATION_ADDL T

        The way it is written it looks like the Fixed Transmission device must be configured as a FIXED RECEIVER whilst the receiver must be configured as a FIXED SENDER.

        Shouldn’t that be the other way around?

      • #18629
        Renzo Mischianti
        Keymaster

          Hi Robert,
          Welcome to the forum, I think you get the library from
          Ebyte E220 (LLCC68) compatibility
          And the example from the same topic.

          You need another sketch to understand that comments. I created a setConfiguration file with a long set of configuration examples to simplify your work, and I named every configuration like FIXED SENDER or FIXED RECEIVER.

          I have attached the setConfiguration file.

          I will release the complete library and tutorial soon.

          Bye Renzo

        • #18631
          Robert
          Participant

            Hi Renzo,

            Thanks for your fast reply!

            In fact I got the complete library and examples from github and I already looked at the setConfiguration file. You did a great job! It will surely simplify my work. Thanks a lot.

            However, what I don’t understand is that in the fixed transmission file (Arduino_e22_04_SendFixedTransmission.ino) there is a comment saying that the the other device (i.e. the receiver of the fixed transmission) should be set as a FIXED SENDER and this device (i.e. the fixed sender) should be set as FIXED RECEIVER.

            I would expect it to be just the other way around.

            Same comment for the receive message file (Arduino_e22_08_receiveMessage.ino) where the configurations are reversed and saying that this device (i.e. the receiver) should be configured as a FIXED SENDER.

            Am I missing something?

            Best regards,
            Robert

          • #18632
            Renzo Mischianti
            Keymaster

              Hi Robert,
              pay attention, you have an E220 and you download from GitHub the library for E22.

              You must use the same example Arduino_e22_04_SendFixedTransmission for the sender and for the receiver.

              But the sender needs FIXED SENDER configuration, and you must uncomment the lines

              // With FIXED SENDER configuration
              #define DESTINATION_ADDL 3

              and a receiver (same as the sender but) you must set FIXED RECEIVER and uncomment the lines

              // With FIXED RECEIVER configuration
              #define DESTINATION_ADDL 2

              Bye Renzo.

            • #18634
              Robert
              Participant

                Hi Renzo,

                Thank you very much. It’s clear now.

                I am aware that the library is for the E22 series but I think it can be used with the E220 in my case as I only need a simple point-to-point fixed TX/RX link.

                Maximum packet size of 200 is OK for me and I don’t need a network ID.

                One major difference is that M1 & M0 both need to be “1” for configuring the device instead of “1” and “0” respectively for the E22 series.

                I still need to check if there are other differences in the various registers bit settings.

                Bye,
                Robert

              • #18635
                Renzo Mischianti
                Keymaster

                  Hi Robert,
                  you can download the E220 library (beta for now, but fully working) from this topic reply.

                  The code is pretty equal to the E22 examples.

                  Bye Renzo

                • #18636
                  Robert
                  Participant

                    Hi Renzo,

                    Thanks you for the link. I wasn’t aware that you already released the E220 library.

                    Bye,
                    Robert

                  • #18917
                    Robert
                    Participant

                      Hi Renzo,

                      I came across a discrepancy in the comments in the the E220 example file 01_setConfiguration.ino
                      The pin assignments for an Arduino Nano in the top of the comments do not match the pin assignments in the lines below that can be uncommented. See attached screen capture.

                      I presume that for an Arduino Nano I/O pins 6, 2 & 4 are used for AUX, M0 & M1 respectively in your library, right?

                      By the way, I presume I can use other I/O pins if it simplifies the PCB routing and change my source file accordingly, right?

                      Best regards and thanks for your help.

                      Robert

                    • #18921
                      Renzo Mischianti
                      Keymaster

                        Hi Robert,
                        yes the header It’s wrong.
                        In the constructor (and in my examples) I use AUX -> 2 M0 -> 4 M1 -> 6 .

                        I also create a shield for Arduino NANO 33 IoT (and for LOLIN32 and MKR WiFi 1010) that can be configured with
                        AUX -> 2 or 3
                        M0 -> 4 or 5
                        M1 -> 6 or 7

                        Thanks, Renzo

                      • #19576
                        Renzo Mischianti
                        Keymaster

                          The Library for E220 is released. You can find it from library manager and GitHub.
                          Bye Renzo

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