Forum Replies Created

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • in reply to: E220-900T22D problem with receiving configuration #31573
    Adam
    Participant

      Solved 🙂

      in reply to: E220-900T22D problem with receiving configuration #31551
      Adam
      Participant

        Hi, Renzo I try out how to get RSSI data but I would like to do it my self (not using library). Can You check my code? I set channel RSSI mode as enable.

        
        #include
        
        // Pin definitions
        #define LORA_RX 10
        #define LORA_TX 11
        #define LORA_M0 7
        #define LORA_M1 8
        
        char DataRSSI[10];
        String command = "C0 C1 C2 C3";
        
        // Initialize SoftwareSerial for communication with the LoRa module
        SoftwareSerial loraSerial(LORA_RX, LORA_TX);
        
        void setup() {
        // Set pin modes
        pinMode(LORA_M0, OUTPUT);
        pinMode(LORA_M1, OUTPUT);
        
        // Set M0 and M1 pins to receive mode
        digitalWrite(LORA_M0, LOW);
        digitalWrite(LORA_M1, LOW);
        
        // Initialize serial communication
        Serial.begin(9600);
        loraSerial.begin(9600);
        
        Serial.println("LoRa Receiver is ready.");
        }
        
        void loop() {
        // Check if data is available for reading
        if (loraSerial.available()) {
        String message = "";
        
        // Read data
        while (loraSerial.available()) {
        char c = loraSerial.read();
        message += c;
        delay(10); // Small delay for stable reception
        }
        
        // Send command (if necessary)
        loraSerial.println(command);
        
        // Read RSSI (if RSSI is sent as 4 bytes)
        if (loraSerial.available() >= 4) { // Check if at least 4 bytes are available
        loraSerial.readBytes(DataRSSI, 4);
        Serial.print("RSSI: ");
        Serial.println(String(DataRSSI)); // Convert char array to String
        }
        
        // Display the received message
        Serial.println("Received message: " + message);
        }
        }
        
        

        Here’s the situation:

        RSSI Value Not Showing:
        The code should be reading RSSI values when at least 4 bytes are available. Despite enabling RSSI on the receiver, I’m not seeing any RSSI values in the output.

        Transmitter Details:
        I have a transmitter sending a simple “hello” message. The receiver successfully receives this message, but it doesn’t provide the RSSI.

        Configuration Check:
        I’ve set the M0 and M1 pins for receive mode based on the module’s documentation, but I’m not sure if this is correct.
        Communication Confirmation:

        The receiver does get the transmitted message, so it seems like communication is working fine otherwise.

        in reply to: E220-900T22D problem with receiving configuration #31545
        Adam
        Participant

          Thank You 🙂 – Renzo what about RSSI? how to implement that?
          regards,
          A

          in reply to: E220-900T22D problem with receiving configuration #31542
          Adam
          Participant

            hey Renzo, I have currently implemented a library that reads and changes values ​​for e220-900T22D. However, I don’t know how to run RSSI. Should I implement code on the transmitter and receiver to enable this function? Isn’t this CHANNEL RSSI? How is signal strength information transmitted?

            in reply to: E220-900T22D problem with receiving configuration #31541
            Adam
            Participant

              Hi, just ready implement get config – and start to make set config. Regarding C1 – this is not an issue. Just founded in the manual that this is normal procedure after reading config from lora.

              in reply to: E220-900T22D problem with receiving configuration #31526
              Adam
              Participant

                Hi Renzo, finally I did it. My code is receiving all 12 bytes as a hex. One thing is interesting – when I configure my config as:
                byte loraConfig[] = {0xc0, 0x00, 0x09, 0x00, 0x03, 0x62, 0xc5, 0x00, 0x03, 0x00, 0x00, 0x10};

                and then when try to get the config I receive:

                configRecived[] = {0xc1, 0x00, 0x09, 0x00, 0x03, 0x62, 0xc5, 0x00, 0x03, 0x00, 0x00, 0x10};

                why in first byte c0 moved to c1?

                regards,
                A

                in reply to: E220-900T22D problem with receiving configuration #31525
                Adam
                Participant

                  I checked with the ebyte configurator (using FTDI232) and was able to load and save configurations for all my ebyte modules . I created a simple code using an array of bytes representing config: byte loraConfig[] = {0xc0, 0x00, 0x09, 0x00, 0x03, 0x62, 0x05, 0x00, 0x03, 0x00, 0x00, 0x10};. With this code in my arduino ide, I can change my LoRa parameters. Now I will implement load configurations. I will let You know if it works…

                Viewing 7 posts - 1 through 7 (of 7 total)