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