tuxphone / CubeCellRepeater

Small repeater node for the meshtastic project.
36 stars 6 forks source link
cubecell lora meshtastic repeater

CubeCellRepeater

This is the code for a simple repeater node for the meshtastic project: https://github.com/meshtastic (https://www.meshtastic.org) The Meshtastic project is in no way affiliated with or respnsible for the CubeCellRepeater project.

To be compatible with meshtastic project, portions of their code was used. (c) Copyright Meshtastic Project (and others).

Hardware: The actual node can be one of the LoRa CubeCell nodes by Heltec Automation: https://github.com/HelTecAutomation/ASR650x-Arduino/

Notes:

Intended for use with the platform.io IDE. Serial output speed is 115200. See the provided platformio.ini for built-in environments. Default is cubecell_board.

Will repeat packets ONCE with HopLimit reduced by one. To prevent flooding the last 64 repeated packets will not be repeated again. If the HopLimit was already 0, the packet will not be repeated.

Keep in mind that re-sending packets will cause the initial sender to assume that the packet is "received" or at least in the mesh. If no other meshtastic node is in range of either the node or the repeater, the message will still be shown as received.

Will work with most packets meeting the radio settings, but the serial output is based on the assumption that the node receives meshtastic packets. Minimum size for none-Meshtastic packets is 16 bytes.

The node can decode meshtastic packets meeting some requirements:

main.h

"#define SILENT" in main.h to stop serial output.

"#define CC_MONITOR_ONLY true" to stop repeating packets and just monitor the traffic via serial output.

"#define CC_SIGNAL_NEOPIXEL" or "#define CC_SIGNAL_GPIO13" to activate visual signalization of received and transmitted packets (green/red). Comment the #define to stop visual signals.

You can modify the radio settings in main.h (e.g using a preset, but selecting an alternate frequency slot. Or using your own freq/sf/cr settings).

List of meshtastic-supported regions:

For lora modem settings you should always try the default (LongFast), it's proven to be THE setting to go for. If you want to try other presets, here is the list: