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

未關閉 適合新手
#4,015 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 2 天內回覆

還沒有人認領這個 Issue。

評估

難度
2/5
預估耗時
1-3 小時
新手友好度
70/100
Issue 類型
缺陷
描述清晰度
描述清楚
活躍度
活躍
技術堆疊
c
領域
embedded-iot

研究方向

從 RAK3112 變體的 target.cpp 開始,閱讀 radio_init()。issue 指出,必須先由 GPIO4 為內部 RF 開關供電,再初始化無線電。檢查該變體如何設定腳位及初始化無線電,然後使用 MeshCore 在 RAK3112/3312 上驗證接收情況。完成標準是無線電能可靠地接收訊號,包括來自遠處中繼器的訊號,同時傳送功能和現有介面仍可正常運作。

由索引模型根據 Issue 內容生成。

描述

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
}

主要語言
C
星號
3.9k
分支
1.5k
平均合併
2 天 12 小時
30 天內合併 PR
58

環境準備

這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

meshcore-dev/MeshCore 的其他 Issue

查看 meshcore-dev/MeshCore 的全部 Issue

相似的 Issue

更多 C Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。