RAK3112/3312 receive sensitivity VERY poor with MeshCore (but works OK with Meshtastic)

Abierto Apto para principiantes
#4,015 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 2 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
70/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
c
Área
embedded-iot

Línea de trabajo

Empieza por target.cpp de la variante RAK3112 y lee radio_init(). El issue indica que GPIO4 debe alimentar el interruptor RF interno antes de inicializar la radio. Comprueba cómo configura los pines la variante e inicializa la radio; después, verifica la recepción en un RAK3112/3312 con MeshCore. El trabajo estará terminado cuando la radio reciba señales de forma fiable, incluidas las de repetidores lejanos, y sigan funcionando la transmisión y las interfaces existentes.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Using a RAK3112 radio module. Comes with older Meshtastic image pre-flashed -- works fine.
Flash a MeshCore image, radio cannot "hear" any signals, except for a Companion that is also inside the house (but the reported signal is very weak).
Compared MeshCore with Meshtastic using the same HW, in the same location, etc.
Tried several MeshCore builds, starting with 1.15, USB and BLE. No difference.
Also tried enabling the "AGC Reset" option.
Transmit appears to be working: see a clear signal on a nearby SDR, on the correct frequency.
Interfaces (USB, BLE) work OK, as does radio configuration.

Using an AI suggestion, found that MeshCore is not driving GPIO4, to power the RF Switch in the 3112 module. This effectively keeps the RF Switch in the 'transmit' mode at all times, so the receiver only hears very strong signals that "bleed through" the switch chip.

The code additions shown below makes everything work. Now hearing repeaters 10-15 miles away.
I understand that someone with a deeper understanding of the system may want a different implementation to achieve the same thing.

In RAK3112 variant, target.cpp, function radio-init() :

// Add this #define :
#ifndef RAK3112_ANT_SW
#define RAK3112_ANT_SW 4
#endif

bool radio_init() {
fallback_clock.begin();
rtc_clock.begin(Wire);

// Add these 3 lines to power the RAK3112 internal RF switch (ANT_SW = GPIO4)
pinMode(RAK3112_ANT_SW, GPIO_MODE_OUTPUT);
digitalWrite(RAK3112_ANT_SW, HIGH);
delay(10); // allow time for power to stabilize

#if defined(P_LORA_SCLK)
return radio.std_init(&spi);
#else
return radio.std_init();
#endif
}

Lenguaje dominante
C
Estrellas
3.9k
Forks
1.5k
Merge medio
2 d 12 h
PR fusionados (30 d)
58

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de meshcore-dev/MeshCore

Todos los issues de meshcore-dev/MeshCore

Issues similares

Más issues de C

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.