TTGO LoRa32 T3_V1.6 #define problème

Bonjour
J'ai un TTGO ESP32 Paxcounter LoRa32 (ESP32 LoRa32 T3 V2.1 1.6 )
https://fr.aliexpress.com/item/4000329729312.htm est un Heltec Wireless Stick Lite Wireless Stick Lite (Phaseout) – Heltec Automation

quelle configuration #define j'ai essayé de nombreuses façons mais aucune ne fonctionne
#define SCK 5 // GPIO5 - SCK
#define MISO 19 // GPIO19 - MISO
#define MOSI 34 // GPIO27 - MOSI
#define SS 18 // GPIO18 - CS
#define RST 14 // GPIO14 - RESET (Si Lora ne fonctionne pas, remplacez-le par GPIO14)
#define DI0 26 // GPIO26 - IRQ (demande d'interruption)
#define BAND 868E6

l'OLED_LoRa_Sender et le LoRaReceiver

#include <SPI.h>
#include <LoRa.h>
#include <Wire.h> 
#include "SSD1306.h"
#include "images.h"

#define SCK     5    // GPIO5  -- SCK
#define MISO    35   // GPIO19 -- MISO
#define MOSI    34   // GPIO27 -- MOSI
#define SS      18   // GPIO18 -- CS
#define RST     14   // GPIO14 -- RESET (If Lora does not work, replace it with GPIO14)
#define DI0     26   // GPIO26 -- IRQ(Interrupt Request)
#define BAND    868E6


unsigned int counter = 0;

SSD1306 display(0x3c, 21, 22);
String rssi = "RSSI --";
String packSize = "--";
String packet ;

 

void setup() {
  pinMode(16,OUTPUT);
  pinMode(2,OUTPUT);
 
  digitalWrite(16, LOW);    // set GPIO16 low to reset OLED
  delay(50);
  digitalWrite(16, HIGH); // while OLED is running, must set GPIO16 in high
 
  Serial.begin(115200);
  while (!Serial);
  Serial.println();
  Serial.println("LoRa Sender Test");
 
  SPI.begin(SCK,MISO,MOSI,SS);
  LoRa.setPins(SS,RST,DI0);
  if (!LoRa.begin(868E6)) {
    Serial.println("Starting LoRa failed!");
    while (1);
  }
  //LoRa.onReceive(cbk);
//  LoRa.receive();
  Serial.println("init ok");
  display.init();
  display.flipScreenVertically(); 
  display.setFont(ArialMT_Plain_10);
   
  delay(1500);
}

void loop() {
  display.clear();
  display.setTextAlignment(TEXT_ALIGN_LEFT);
  display.setFont(ArialMT_Plain_10);
 
  display.drawString(0, 0, "Sending packet: ");
  display.drawString(90, 0, String(counter));
  Serial.println(String(counter));
  display.display();

  // send packet
  LoRa.beginPacket();
  LoRa.print("hello ");
  LoRa.print(counter);
  LoRa.endPacket();

  counter++;
  digitalWrite(2, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);                       // wait for a second
  digitalWrite(2, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);                       // wait for a second
}
/*
  Check the new incoming messages, and print via serialin 115200 baud rate.
 
  by Aaron.Lee from HelTec AutoMation, ChengDu, China
  成都惠利特自动化科技有限公司
  www.heltec.cn
 
  this project also realess in GitHub:
  https://github.com/Heltec-Aaron-Lee/WiFi_Kit_series
*/

#include "heltec.h"



#define BAND    868E6  //you can set band here directly,e.g. 868E6,915E6
void setup() {
    pinMode(LED_1,OUTPUT);
 
  digitalWrite(LED_1, LOW);    // set GPIO16 low to reset OLED
  delay(50);
  digitalWrite(LED_1, HIGH); // while OLED is running, must set GPIO16 in high
    digitalWrite(LED_1, LOW);    // set GPIO16 low to reset OLED
  delay(50);
    //WIFI Kit series V1 not support Vext control
  Heltec.begin(false /*DisplayEnable Enable*/, true /*Heltec.LoRa Disable*/, true /*Serial Enable*/, true /*PABOOST Enable*/, BAND /*long BAND*/);

}

void loop() {

  // try to parse packet
  int packetSize = LoRa.parsePacket();
  if (packetSize) {
    // received a packet
    Serial.print("Received packet '");
    // read packet
    while (LoRa.available()) {
      Serial.print((char)LoRa.read());
    }
    // print RSSI of packet
    Serial.print("' with RSSI ");
    Serial.println(LoRa.packetRssi());
      digitalWrite(LED_1, led);   // turn the LED on (HIGH is the voltage level)
led = !led;
  }
}

côté réception il n'y a pas 2 messages entrant

09:36:45.202 -> Serial initial done
09:36:45.202 -> The Wireless Stick Lite not have an on board display, Display option must be FALSE!!!
09:36:45.271 -> LoRa Initial success!

rien de d'autres

le problème les #define sont pas bon ou autre chose ????

merci

Bonjour

J'ai un TTGO ESP32 Paxcounter LoRa32 (ESP32 LoRa32 T3 V2.1 1.6 )
https://fr.aliexpress.com/item/4000329729312.htm est un Heltec Wireless Stick Lite Wireless Stick Lite(V3) – Heltec Automation

La carte TTGO n'est pas une carte Heltec (marques concurrentes, produits différents ) peut être cherches-tu à faire communiquer en LoRa une carte TTGO et une carte Heltec ?

TTGO et dans une moindre mesure Heltec ont pour habitude d'apporter des modifications successives à leurs cartes ... ce qui influe parfois les valeurs de pins à renseigner en #define pour une bonne correspondance avec la réalité de la carte.

Il faut identifier avec précision les deux cartes (version, sous-version) devant communiquer et mettre de part et d'autre dans les codes des N° de pins correspondant exactement au schéma de chacn des deux cartes.

la page Aliexpress citée donne les N° de pins pour diverses versions de la carte

Pour que la communication s'établisse il faut bien entendu que les deux cartes LoRa fonctionnent sur la même bande (868 MHz par exemple) et que les antennes adaptées soient en place

09:36:45.202 -> The Wireless Stick Lite not have an on board display, Display option must be FALSE!!!

la carte Heltec ne possédant pas d'afficheur il faut donner la valeur FALSE à Display Option, peut être dans la librairie

09:36:45.271 -> LoRa Initial success!

C'est un bon signe pour la définition des broches de liaison avec la puce radio, l'intitalisation a pu se faire par le bus SPI

Merci

Avec le Heltec Wireless Stick Lite le dump des Registers donne des choses

13:38:57.124 -> Serial initial done
13:38:57.193 -> LoRa Initial success!
13:38:57.193 -> 0x0: 0xB5
13:38:57.193 -> 0x1: 0x81
13:38:57.193 -> 0x2: 0x1A
13:38:57.193 -> 0x3: 0xB
13:38:57.193 -> 0x4: 0x0
13:38:57.193 -> 0x5: 0x52
13:38:57.193 -> 0x6: 0xD9
13:38:57.193 -> 0x7: 0x0
13:38:57.193 -> 0x8: 0x0
13:38:57.193 -> 0x9: 0xFC
13:38:57.193 -> 0xA: 0x9
13:38:57.193 -> 0xB: 0x2B
13:38:57.226 -> 0xC: 0x23
13:38:57.226 -> 0xD: 0x1
13:38:57.226 -> 0xE: 0x0
13:38:57.226 -> 0xF: 0x0
13:38:57.226 -> 0x10: 0x0
13:38:57.226 -> 0x11: 0x0
13:38:57.226 -> 0x12: 0x0
13:38:57.226 -> 0x13: 0x0
13:38:57.226 -> 0x14: 0x0
13:38:57.226 -> 0x15: 0x0
13:38:57.226 -> 0x16: 0x0
13:38:57.226 -> 0x17: 0x0
13:38:57.226 -> 0x18: 0x10
13:38:57.226 -> 0x19: 0x0
13:38:57.226 -> 0x1A: 0x0
13:38:57.226 -> 0x1B: 0x0
13:38:57.226 -> 0x1C: 0x0
13:38:57.226 -> 0x1D: 0x72
13:38:57.226 -> 0x1E: 0xB4
13:38:57.226 -> 0x1F: 0x64
13:38:57.226 -> 0x20: 0x0
13:38:57.226 -> 0x21: 0x8
13:38:57.226 -> 0x22: 0x1
13:38:57.226 -> 0x23: 0xFF
13:38:57.226 -> 0x24: 0x0
13:38:57.226 -> 0x25: 0x0
13:38:57.226 -> 0x26: 0x4
13:38:57.226 -> 0x27: 0x0
13:38:57.226 -> 0x28: 0x0
13:38:57.226 -> 0x29: 0x0
13:38:57.226 -> 0x2A: 0x0
13:38:57.226 -> 0x2B: 0x0
13:38:57.226 -> 0x2C: 0x0
13:38:57.226 -> 0x2D: 0x50
13:38:57.226 -> 0x2E: 0x14
13:38:57.261 -> 0x2F: 0x45
13:38:57.261 -> 0x30: 0x55
13:38:57.261 -> 0x31: 0xC3
13:38:57.261 -> 0x32: 0x5
13:38:57.261 -> 0x33: 0x27
13:38:57.261 -> 0x34: 0x1C
13:38:57.261 -> 0x35: 0xA
13:38:57.261 -> 0x36: 0x3
13:38:57.261 -> 0x37: 0xA
13:38:57.261 -> 0x38: 0x42
13:38:57.261 -> 0x39: 0x34
13:38:57.261 -> 0x3A: 0x49
13:38:57.261 -> 0x3B: 0x1D
13:38:57.261 -> 0x3C: 0x0
13:38:57.261 -> 0x3D: 0xAF
13:38:57.261 -> 0x3E: 0x0
13:38:57.261 -> 0x3F: 0x0
13:38:57.261 -> 0x40: 0x0
13:38:57.261 -> 0x41: 0x0
13:38:57.261 -> 0x42: 0x12
13:38:57.261 -> 0x43: 0x24
13:38:57.261 -> 0x44: 0x2D
13:38:57.261 -> 0x45: 0x0
13:38:57.261 -> 0x46: 0x3
13:38:57.261 -> 0x47: 0x0
13:38:57.261 -> 0x48: 0x4
13:38:57.261 -> 0x49: 0x23
13:38:57.261 -> 0x4A: 0x0
13:38:57.261 -> 0x4B: 0x9
13:38:57.261 -> 0x4C: 0x5
13:38:57.261 -> 0x4D: 0x84
13:38:57.261 -> 0x4E: 0x32
13:38:57.261 -> 0x4F: 0x2B
13:38:57.261 -> 0x50: 0x14
13:38:57.295 -> 0x51: 0x0
13:38:57.295 -> 0x52: 0x0
13:38:57.295 -> 0x53: 0x10
13:38:57.295 -> 0x54: 0x0
13:38:57.295 -> 0x55: 0x0
13:38:57.295 -> 0x56: 0x0
13:38:57.295 -> 0x57: 0xF
13:38:57.295 -> 0x58: 0xE0
13:38:57.295 -> 0x59: 0x0
13:38:57.295 -> 0x5A: 0xC
13:38:57.295 -> 0x5B: 0x0
13:38:57.295 -> 0x5C: 0x6
13:38:57.295 -> 0x5D: 0x0
13:38:57.295 -> 0x5E: 0x5C
13:38:57.295 -> 0x5F: 0x78
13:38:57.295 -> 0x60: 0x0
13:38:57.295 -> 0x61: 0x1C
13:38:57.295 -> 0x62: 0xE
13:38:57.295 -> 0x63: 0x5B
13:38:57.295 -> 0x64: 0xCC
13:38:57.295 -> 0x65: 0x0
13:38:57.295 -> 0x66: 0x1
13:38:57.295 -> 0x67: 0x50
13:38:57.295 -> 0x68: 0x0
13:38:57.295 -> 0x69: 0x0
13:38:57.295 -> 0x6A: 0x0
13:38:57.295 -> 0x6B: 0x0
13:38:57.295 -> 0x6C: 0x0
13:38:57.295 -> 0x6D: 0x0
13:38:57.295 -> 0x6E: 0x0
13:38:57.295 -> 0x6F: 0xB
13:38:57.295 -> 0x70: 0xD0
13:38:57.295 -> 0x71: 0x0
13:38:57.295 -> 0x72: 0x13
13:38:57.329 -> 0x73: 0x0
13:38:57.329 -> 0x74: 0x0
13:38:57.329 -> 0x75: 0x0
13:38:57.329 -> 0x76: 0x0
13:38:57.329 -> 0x77: 0x0
13:38:57.329 -> 0x78: 0x0
13:38:57.329 -> 0x79: 0x0
13:38:57.329 -> 0x7A: 0x0
13:38:57.329 -> 0x7B: 0x0
13:38:57.329 -> 0x7C: 0x0
13:38:57.329 -> 0x7D: 0x0
13:38:57.329 -> 0x7E: 0x0
13:38:57.329 -> 0x7F: 0x0

Pas contre le ESP32 LoRa32 T3 V2.1 1.6 ne sorte rien

/*
  LoRa register dump

  This examples shows how to inspect and output the LoRa radio's
  registers on the Serial interface
*/
#include <SPI.h>              // include libraries
#include <LoRa.h>

void setup() {
  Serial.begin(115200);               // initialize serial
  while (!Serial);

  Serial.println("LoRa Dump Registers");

  // override the default CS, reset, and IRQ pins (optional)
   LoRa.setPins(18, 23, 26); //CS, reset, IRQ LoRa.setPins(ss, reset, dio0)

  if (!LoRa.begin(868E6)) {         // initialize ratio at 915 MHz
    Serial.println("LoRa init failed. Check your connections.");
    while (true);                   // if failed, do nothing
  }

  LoRa.dumpRegisters(Serial);
}


void loop() {
}
13:42:16.616 -> LoRa Dump Registers
13:42:16.649 -> LoRa init failed. Check your connections.

j'ai fait quelques essais
LoRa.setPins(18, 23, 26); //CS, reset, IRQ LoRa.setPins(ss, reset, dio0)
LoRa.setPins(18, 14, 26);
LoRa.setPins(18, 12, 26);

mais toujours RIEN !! je sèche !!!

Merci

j'ai essayer de changer la Board ESP32 dev module avec TTGO lora32 oled v1

et la LoRa Dump Registers donne des résultats