Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: E32900T30D Only Transmitting on 866MHz #34104
    EdoJidai
    Participant

      Missing the #define E32_TTL_1W declaration!

      “E32_TTL_1W is not optional for 30 dBm E32 modules, missing it causes silent, hard-to-debug failures”

      Apologies for the thread, probably not needed.

      in reply to: ESP32 with Lora E32 not receiving data #34092
      EdoJidai
      Participant

        That worked!

        Added the following line to the setup() routine:
        Serial2.begin(9600, SERIAL_8N1, 16, 17);

        Progress!

        Thanks Renzo

        in reply to: ESP32 with Lora E32 not receiving data #34084
        EdoJidai
        Participant

          Hi Renzo, first off thank you for the great resources on this site.

          I’m trying to get an E32 900T30D module to TX from an ESP32 WROOM Dev Module. The power stays at a constant 52mA so no transmission is happening. Do you have any debugging tips?

          Here’s the pinout:
          ESP32 GND – E32 GND – 104 Capacitor – 100mF Negative – Bench Pwr Negative
          ESP32 VIN – E32 VCC – 104 Capacitor – 100mF Positive – Bench Pwr 5V 1A
          ESP32 15 – E32 AUX
          ESP32 RX2 – E32 TXD
          ESP32 TX2 – E32 RXD
          ESP32 19 – E32 M1
          ESP32 21 – E32 M0

          And the sender code: (similar to above)
          // Sender
          #include “Arduino.h”
          #define E32_TTL_1W
          #include “LoRa_E32.h”
          #define FREQUENCY_915

          LoRa_E32 e32ttl1w(&Serial2, 15, 21, 19); // RX AUX M0 M1

          void printParameters(struct Configuration configuration);
          void printModuleInformation(struct ModuleInformation moduleInformation);

          unsigned long interval = 3000; // interval between sends
          unsigned long lastSendTime = 0; // last send time
          byte msgCount = 0; // count of outgoing messages
          long randNumber;

          void setup() {
          Serial.begin(9600);
          delay(3000);
          Serial.println(“In setup”);
          e32ttl1w.begin();
          nodeConfig();
          }

          void loop() {
          if (millis() – lastSendTime > interval) {
          // print a random number from 10 to 19
          randNumber = random(10, 20);
          String trama = String(randNumber);
          ResponseStatus rs = e32ttl1w.sendFixedMessage(0x0, 0x3, 0x4, trama);
          Serial.println(“Sending ” + trama);
          Serial.println(rs.getResponseDescription());
          lastSendTime = millis(); // timestamp the message
          msgCount++;
          }
          delay(100);
          }

          void nodeConfig() {
          ResponseStructContainer c;
          c = e32ttl1w.getConfiguration();
          Configuration configuration = *(Configuration*)c.data;

          configuration.ADDH = 0x0;
          configuration.ADDL = 0x1;
          configuration.CHAN = 0x4;

          configuration.SPED.airDataRate = AIR_DATA_RATE_010_24;
          configuration.SPED.uartBaudRate = UART_BPS_9600;
          configuration.SPED.uartParity = MODE_00_8N1;
          configuration.OPTION.fec = FEC_1_ON;
          configuration.OPTION.fixedTransmission = FT_FIXED_TRANSMISSION;
          configuration.OPTION.ioDriveMode = IO_D_MODE_PUSH_PULLS_PULL_UPS;
          configuration.OPTION.transmissionPower = POWER_21;
          configuration.OPTION.wirelessWakeupTime = WAKE_UP_1250;
          // printParameters(configuration);
          c.close();

          // Set configuration changed and set to not hold the configuration
          ResponseStatus rs = e32ttl1w.setConfiguration(configuration, WRITE_CFG_PWR_DWN_SAVE);
          Serial.print(“Config: “);
          Serial.println(rs.getResponseDescription());
          }

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