From 7f73699f97f55ae02fc2eee93396a72fdc280a6e Mon Sep 17 00:00:00 2001 From: tuxphone <67556506+tuxphone@users.noreply.github.com> Date: Fri, 18 Sep 2020 21:09:44 +0200 Subject: [PATCH] Update README.md --- README.md | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index a79229e..2293d3b 100644 --- a/README.md +++ b/README.md @@ -11,11 +11,21 @@ Keep in mind that re-sending packets will cause the initial sender to assume tha If no other meshtastic node is in range of either the node or the repeater, the message will still be shown as received. You can use this for range tests. -Will work only for the channel "Default" with setting "Very long range (but slow)"! -Modify radio settings for your own channels. - Will work with any packet meeting the radio settings, but the serial output is based on the assumption that the node receives meshtastic packets. +"#define SILENT" to stop serial output. -Will only send serial data, if "#define SILENT" is deleted, commented or set to another value (e.g. VERBOSE). +Modify radio settings for your own channels: -Comment "#include " when using the Arduino IDE. The include is needed when using platform.io. +Look for the following defines and change to your needs. The settings will be stored in "CanSet" and used to configure the radio. + +#define LORA_SPREADING_FACTOR 12 // [SF5..SF12] +#define LORA_CODINGRATE 4 // [1: 4/5, 2: 4/6, 3: 4/7, 4: 4/8] +#define LORA_CHAN_NUM 0 // Channel Number (meshtastic specific) + +Note: with "HW_VERSION" you select your country/continent settings. For US use HW_VERSION_US, for CN use HW_VERSION_CN. See Meshradio.h + +#define HW_VERSION_EU865 // define your region _before_ including MeshRadio.h ! +#include "MeshRadio.h" + +ChannelSettings ChanSet={ TX_OUTPUT_POWER, ChannelSettings_ModemConfig_Bw125Cr48Sf4096, mPSK, "Default", + LORA_BANDWIDTH, LORA_SPREADING_FACTOR, LORA_CODINGRATE, LORA_CHAN_NUM };