E22 module is now working.
This commit is contained in:
@@ -332,6 +332,123 @@ When the rnode is flashed, it is signed with a key. If you connect the RNode to
|
||||
$ rnodeconf /dev/ttyACM0 --eeprom-wipe
|
||||
$ rnodeconf /dev/ttyACM0 -r --platform ESP32 --model a4 --product f0 --hwrev 3
|
||||
|
||||
## Adding support for SX1268 module
|
||||
|
||||
### Boards.h
|
||||
|
||||
Change the following section:
|
||||
|
||||
````
|
||||
const uint8_t interfaces[INTERFACE_COUNT] = {SX1278};
|
||||
const bool interface_cfg[INTERFACE_COUNT][3] = {
|
||||
// SX1278
|
||||
{
|
||||
false, // DEFAULT_SPI
|
||||
false, // HAS_TCXO
|
||||
false // DIO2_AS_RF_SWITCH
|
||||
},
|
||||
};
|
||||
const int8_t interface_pins[INTERFACE_COUNT][10] = {
|
||||
// SX1278
|
||||
{
|
||||
10, // pin_ss
|
||||
12, // pin_sclk
|
||||
11, // pin_mosi
|
||||
13, // pin_miso
|
||||
-1, // pin_busy
|
||||
15, // pin_dio
|
||||
14, // pin_reset
|
||||
-1, // pin_txen
|
||||
-1, // pin_rxen
|
||||
-1 // pin_tcxo_enable
|
||||
}
|
||||
};
|
||||
````
|
||||
|
||||
with this:
|
||||
|
||||
````
|
||||
#if BOARD_VARIANT == MODEL_F1
|
||||
const uint8_t interfaces[INTERFACE_COUNT] = {SX1278};
|
||||
const bool interface_cfg[INTERFACE_COUNT][3] = {
|
||||
// SX1278
|
||||
{
|
||||
false, // DEFAULT_SPI
|
||||
false, // HAS_TCXO
|
||||
false // DIO2_AS_RF_SWITCH
|
||||
},
|
||||
};
|
||||
const int8_t interface_pins[INTERFACE_COUNT][10] = {
|
||||
// SX1278
|
||||
{
|
||||
10, // pin_ss
|
||||
12, // pin_sclk
|
||||
11, // pin_mosi
|
||||
13, // pin_miso
|
||||
-1, // pin_busy
|
||||
15, // pin_dio
|
||||
14, // pin_reset
|
||||
-1, // pin_txen
|
||||
-1, // pin_rxen
|
||||
-1 // pin_tcxo_enable
|
||||
}
|
||||
};
|
||||
#elif BOARD_VARIANT == MODEL_F2
|
||||
const uint8_t interfaces[INTERFACE_COUNT] = {SX1262};
|
||||
const bool interface_cfg[INTERFACE_COUNT][3] = {
|
||||
// SX1262
|
||||
{
|
||||
false, // DEFAULT_SPI
|
||||
true, // HAS_TCXO
|
||||
true // DIO2_AS_RF_SWITCH
|
||||
},
|
||||
};
|
||||
const int8_t interface_pins[INTERFACE_COUNT][10] = {
|
||||
// SX1262
|
||||
{
|
||||
10, // pin_ss
|
||||
12, // pin_sclk
|
||||
11, // pin_mosi
|
||||
13, // pin_miso
|
||||
16, // pin_busy
|
||||
15, // pin_dio
|
||||
14, // pin_reset
|
||||
-1, // pin_txen
|
||||
17, // pin_rxen
|
||||
-1 // pin_tcxo_enable
|
||||
}
|
||||
};
|
||||
#endif
|
||||
````
|
||||
|
||||
### Radio.cpp
|
||||
|
||||
Add the following statement to the function **sx126x::enableTCXO()**.
|
||||
|
||||
// Board added by Mees Electronics
|
||||
#elif BOARD_MODEL == BOARD_MEES_ESP32_S3
|
||||
uint8_t buf[4] = {MODE_TCXO_1_8V_6X, 0x00, 0x00, 0xFF};
|
||||
|
||||
#### Makefile
|
||||
|
||||
Change the following section:
|
||||
|
||||
````
|
||||
# Added board from Mees Electronics
|
||||
firmware-mees-esp32-s3:
|
||||
arduino-cli compile --fqbn "esp32:esp32:esp32s3:CDCOnBoot=cdc" $(COMMON_BUILD_FLAGS) --build-property "compiler.cpp.extra_flags=\"-DBOARD_MODEL=0x61\""
|
||||
````
|
||||
|
||||
with this:
|
||||
|
||||
````
|
||||
# Added board from Mees Electronics
|
||||
firmware-mees-esp32-s3:
|
||||
arduino-cli compile --fqbn "esp32:esp32:esp32s3:CDCOnBoot=cdc" $(COMMON_BUILD_FLAGS) --build-property "compiler.cpp.extra_flags=\"-DBOARD_MODEL=0x61\" \"-DBOARD_VARIANT=0xF2\""
|
||||
````
|
||||
|
||||
If you want to compile the board for the SX1278 just change **BOARD_VARIANT** to *0xF1*.
|
||||
|
||||
# License
|
||||
|
||||
(C) 2025 M.T. Konstapel https://meezenest.nl/mees
|
||||
|
Reference in New Issue
Block a user