cubeceLrepeater
這是用於網格櫃項目的簡單中繼器節點的代碼:https://github.com/meshtastic(https://www.meshtastic.org)網格tastic項目絕不與CubeceLrepeater項目相關或可隸屬。
為了與網狀項目兼容,使用了部分代碼。 (c)版權網格項目(以及其他項目)。
硬件:實際節點可以是Heltec Automation的Lora Cubecell節點之一:https://github.com/heltecautomation/asr650x-arduino/
筆記:
旨在與平台一起使用。串行輸出速度為115200。有關內置環境,請參見提供的Platform.ini。默認值為Cubecell_board。
將重複一包,而Hoplimit則減少了一個。為了防止洪水最後64個重複的數據包,將不會再次重複。如果Hoplimit已經是0,則數據包將不會重複。
請記住,重新發送數據包將導致初始發件人假定數據包被“接收”或至少在網格中。如果沒有其他網狀節點在節點或中繼器的範圍內,則該消息仍將顯示為接收。
將與大多數符合無線電設置的數據包一起使用,但是串行輸出基於以下假設:該節點接收網格數據包。無避難數據包的最小尺寸為16個字節。
該節點可以解碼符合某些要求的網格數據包:
- 它們是默認的網格密鑰或您提供的默認鍵(請參見main.h)
- 數據包通過通道0,主頻道發送。對於所有遙測,節點信息,跟踪和DM,這應該已經是正確的。
main.h
Main.h中的“ #Define Silent”停止串行輸出。
“ #define cc_monitor_olly true”停止重複數據包,而只需通過串行輸出監視流量即可。
“ #define cc_signal_neopixel”或“ #define cc_signal_gpio13”激活接收和發送數據包的視覺信號(綠色/紅色)。評論#Define以停止視覺信號。
您可以在main.h中修改無線電設置(例如使用預設,但選擇替代頻率插槽或使用您自己的freq/sf/cr設置)。
網格支持區域的清單:
- 美國meshtastic_config_loraconfig_regioncode_us
- 歐盟433MHz meshtastic_config_loraconfig_regioncode_eu_433
- 歐盟868MHz(默認)meshtastic_config_loraconfig_regioncode_eu_868
- 中國meshtastic_config_loraconfig_regioncode_cn
- 日本meshtastic_config_loraconfig_regioncode_jp
- 澳大利亞 /新西蘭Meshtastic_config_loraconfig_regioncode_anz
- 韓國Meshtastic_config_loraconfig_regioncode_kr
- 台灣Meshtastic_config_loraconfig_regioncode_tw
- 俄羅斯Meshtastic_config_loraconfig_regioncode_ru
- 印度meshtastic_config_loraconfig_regioncode_in
- 新西蘭865MHz meshtastic_config_loraconfig_regioncode_nz_865
- 泰國Meshtastic_config_loraconfig_regioncode_th
- wlan band meshtastic_config_loraconfig_regioncode_lora_24
- 烏克蘭433MHz meshtastic_config_loraconfig_regioncode_ua_433
- 烏克蘭868MHz meshtastic_config_loraconfig_regioncode_ua_868
- 馬來西亞433MHz meshtastic_config_loraconfig_regioncode_my_433
- 馬來西亞919MHz meshtastic_config_loraconfig_regioncode_my_919
- 新加坡923MHz meshtastic_config_loraconfig_regioncode_sg_923
對於LORA調製解調器設置,您應該始終嘗試默認設置(Longfast),這被證明是要使用的設置。如果您想嘗試其他預設,以下是列表:
- meshtastic_config_loraconfig_modempreset_short_fast
- meshtastic_config_loraconfig_modempreset_short_slow
- meshtastic_config_loraconfig_modempreset_medium_fast
- meshtastic_config_loraconfig_modempreset_medium_slow
- meshtastic_config_loraconfig_modempreset_long_fast(默認)
- meshtastic_config_loraconfig_modempreset_long_moderate
- meshtastic_config_loraconfig_modempreset_long_slow
- meshtastic_config_loraconfig_modempreset_very_long_slow