Skip to content

Commit b1a5bad

Browse files
author
Rastislav Vysoky
committed
added room server roles to t114 and t-echo; added repeater and room server roles to WSL3; unified json intendations in /boards
1 parent 115deda commit b1a5bad

File tree

4 files changed

+171
-110
lines changed

4 files changed

+171
-110
lines changed

boards/t-echo.json

+60-60
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,62 @@
11
{
2-
"build": {
3-
"arduino": {
4-
"ldscript": "nrf52840_s140_v6.ld"
5-
},
6-
"core": "nRF5",
7-
"cpu": "cortex-m4",
8-
"extra_flags": "-DARDUINO_NRF52840_PCA10056 -DNRF52840_XXAA",
9-
"f_cpu": "64000000L",
10-
"hwids": [
11-
[
12-
"0x239A",
13-
"0x8029"
14-
]
15-
],
16-
"usb_product": "NRF52 DK",
17-
"mcu": "nrf52840",
18-
"variant": "pca10056",
19-
"bsp": {
20-
"name": "adafruit"
21-
},
22-
"softdevice": {
23-
"sd_flags": "-DS140",
24-
"sd_name": "s140",
25-
"sd_version": "6.1.1",
26-
"sd_fwid": "0x00B6"
27-
},
28-
"bootloader": {
29-
"settings_addr": "0xFF000"
30-
}
31-
},
32-
"connectivity": [
33-
"bluetooth"
34-
],
35-
"debug": {
36-
"jlink_device": "nRF52840_xxAA",
37-
"onboard_tools": [
38-
"jlink"
39-
],
40-
"svd_path": "nrf52840.svd"
41-
},
42-
"frameworks": [
43-
"arduino"
44-
],
45-
"name": "LilyGo T-ECHO",
46-
"upload": {
47-
"maximum_ram_size": 248832,
48-
"maximum_size": 815104,
49-
"require_upload_port": true,
50-
"speed": 115200,
51-
"protocol": "jlink",
52-
"protocols": [
53-
"jlink",
54-
"nrfjprog",
55-
"stlink",
56-
"cmsis-dap",
57-
"blackmagic"
58-
]
59-
},
60-
"url": "https://os.mbed.com/platforms/Nordic-nRF52840-DK/",
61-
"vendor": "Nordic"
2+
"build": {
3+
"arduino": {
4+
"ldscript": "nrf52840_s140_v6.ld"
5+
},
6+
"core": "nRF5",
7+
"cpu": "cortex-m4",
8+
"extra_flags": "-DARDUINO_NRF52840_PCA10056 -DNRF52840_XXAA",
9+
"f_cpu": "64000000L",
10+
"hwids": [
11+
[
12+
"0x239A",
13+
"0x8029"
14+
]
15+
],
16+
"usb_product": "NRF52 DK",
17+
"mcu": "nrf52840",
18+
"variant": "pca10056",
19+
"bsp": {
20+
"name": "adafruit"
21+
},
22+
"softdevice": {
23+
"sd_flags": "-DS140",
24+
"sd_name": "s140",
25+
"sd_version": "6.1.1",
26+
"sd_fwid": "0x00B6"
27+
},
28+
"bootloader": {
29+
"settings_addr": "0xFF000"
30+
}
31+
},
32+
"connectivity": [
33+
"bluetooth"
34+
],
35+
"debug": {
36+
"jlink_device": "nRF52840_xxAA",
37+
"onboard_tools": [
38+
"jlink"
39+
],
40+
"svd_path": "nrf52840.svd"
41+
},
42+
"frameworks": [
43+
"arduino"
44+
],
45+
"name": "LilyGo T-ECHO",
46+
"upload": {
47+
"maximum_ram_size": 248832,
48+
"maximum_size": 815104,
49+
"require_upload_port": true,
50+
"speed": 115200,
51+
"protocol": "jlink",
52+
"protocols": [
53+
"jlink",
54+
"nrfjprog",
55+
"stlink",
56+
"cmsis-dap",
57+
"blackmagic"
58+
]
59+
},
60+
"url": "https://os.mbed.com/platforms/Nordic-nRF52840-DK/",
61+
"vendor": "Nordic"
6262
}

boards/t3_s3_v1_x.json

+41-41
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,45 @@
11
{
2-
"build": {
3-
"arduino": {
4-
"ldscript": "esp32s3_out.ld",
5-
"partitions": "default.csv",
6-
"memory_type": "qio_qspi"
7-
},
8-
"core": "esp32",
9-
"extra_flags": [
10-
"-DARDUINO_LILYGO_T3_S3_V1_X",
11-
"-DBOARD_HAS_PSRAM",
12-
"-DARDUINO_USB_CDC_ON_BOOT=1",
13-
"-DARDUINO_RUNNING_CORE=1",
14-
"-DARDUINO_EVENT_RUNNING_CORE=1",
15-
"-DARDUINO_USB_MODE=1"
16-
],
17-
"f_cpu": "240000000L",
18-
"f_flash": "80000000L",
19-
"flash_mode": "qio",
20-
"mcu": "esp32s3",
21-
"variant": "esp32s3"
2+
"build": {
3+
"arduino": {
4+
"ldscript": "esp32s3_out.ld",
5+
"partitions": "default.csv",
6+
"memory_type": "qio_qspi"
227
},
23-
"connectivity": [
24-
"wifi"
8+
"core": "esp32",
9+
"extra_flags": [
10+
"-DARDUINO_LILYGO_T3_S3_V1_X",
11+
"-DBOARD_HAS_PSRAM",
12+
"-DARDUINO_USB_CDC_ON_BOOT=1",
13+
"-DARDUINO_RUNNING_CORE=1",
14+
"-DARDUINO_EVENT_RUNNING_CORE=1",
15+
"-DARDUINO_USB_MODE=1"
2516
],
26-
"debug": {
27-
"openocd_target": "esp32s3.cfg"
28-
},
29-
"frameworks": [
30-
"arduino",
31-
"espidf"
32-
],
33-
"name": "LilyGo T3-S3 Radio",
34-
"upload": {
35-
"flash_size": "4MB",
36-
"maximum_ram_size": 327680,
37-
"maximum_size": 4194304,
38-
"use_1200bps_touch": true,
39-
"wait_for_upload_port": true,
40-
"require_upload_port": true,
41-
"speed": 460800
42-
},
43-
"url": "https://www.lilygo.cc",
44-
"vendor": "LilyGo"
17+
"f_cpu": "240000000L",
18+
"f_flash": "80000000L",
19+
"flash_mode": "qio",
20+
"mcu": "esp32s3",
21+
"variant": "esp32s3"
22+
},
23+
"connectivity": [
24+
"wifi"
25+
],
26+
"debug": {
27+
"openocd_target": "esp32s3.cfg"
28+
},
29+
"frameworks": [
30+
"arduino",
31+
"espidf"
32+
],
33+
"name": "LilyGo T3-S3 Radio",
34+
"upload": {
35+
"flash_size": "4MB",
36+
"maximum_ram_size": 327680,
37+
"maximum_size": 4194304,
38+
"use_1200bps_touch": true,
39+
"wait_for_upload_port": true,
40+
"require_upload_port": true,
41+
"speed": 460800
42+
},
43+
"url": "https://www.lilygo.cc",
44+
"vendor": "LilyGo"
4545
}

examples/simple_room_server/main.cpp

+8
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,14 @@
9292
#include <helpers/nrf52/RAK4631Board.h>
9393
#include <helpers/CustomSX1262Wrapper.h>
9494
static RAK4631Board board;
95+
#elif defined(HELTEC_T114)
96+
#include <helpers/nrf52/T114Board.h>
97+
#include <helpers/CustomSX1262Wrapper.h>
98+
static T114Board board;
99+
#elif defined(LILYGO_TECHO)
100+
#include <helpers/nrf52/TechoBoard.h>
101+
#include <helpers/CustomSX1262Wrapper.h>
102+
static TechoBoard board;
95103
#else
96104
#error "need to provide a 'board' object"
97105
#endif

platformio.ini

+62-9
Original file line numberDiff line numberDiff line change
@@ -214,41 +214,68 @@ lib_deps =
214214
${Heltec_lora32_v3.lib_deps}
215215
densaugeo/base64 @ ~1.4.0
216216

217-
[env:Heltec_WSL3_companion_radio_ble]
217+
[env:Heltec_v3_companion_radio_wifi]
218218
extends = Heltec_lora32_v3
219219
build_flags =
220220
${Heltec_lora32_v3.build_flags}
221221
-D MAX_CONTACTS=100
222222
-D MAX_GROUP_CHANNELS=1
223-
-D BLE_PIN_CODE=123456
224-
-D BLE_DEBUG_LOGGING=1
223+
-D DISPLAY_CLASS=SSD1306Display
224+
-D WIFI_DEBUG_LOGGING=1
225+
-D WIFI_SSID="\"myssid\""
226+
-D WIFI_PWD="\"mypwd\""
225227
; -D ENABLE_PRIVATE_KEY_IMPORT=1
226228
; -D ENABLE_PRIVATE_KEY_EXPORT=1
227229
; -D MESH_PACKET_LOGGING=1
228230
; -D MESH_DEBUG=1
229231
build_src_filter = ${Heltec_lora32_v3.build_src_filter}
232+
+<helpers/ui/*.cpp>
230233
+<helpers/esp32/*.cpp>
231234
+<../examples/companion_radio>
232235
lib_deps =
233236
${Heltec_lora32_v3.lib_deps}
234237
densaugeo/base64 @ ~1.4.0
235238

236-
[env:Heltec_v3_companion_radio_wifi]
239+
[env:Heltec_WSL3_repeater]
240+
extends = Heltec_lora32_v3
241+
build_flags =
242+
${Heltec_lora32_v3.build_flags}
243+
-D ADVERT_NAME="\"Heltec Repeater\""
244+
-D ADVERT_LAT=-37.0
245+
-D ADVERT_LON=145.0
246+
-D ADMIN_PASSWORD="\"password\""
247+
-D MESH_PACKET_LOGGING=1
248+
; -D MESH_DEBUG=1
249+
build_src_filter = ${Heltec_lora32_v3.build_src_filter}
250+
+<../examples/simple_repeater>
251+
252+
[env:Heltec_WSL3_room_server]
253+
extends = Heltec_lora32_v3
254+
build_src_filter = ${Heltec_lora32_v3.build_src_filter}
255+
+<../examples/simple_room_server>
256+
build_flags =
257+
${Heltec_lora32_v3.build_flags}
258+
-D ADVERT_NAME="\"Heltec Room\""
259+
-D ADVERT_LAT=-37.0
260+
-D ADVERT_LON=145.0
261+
-D ADMIN_PASSWORD="\"password\""
262+
-D ROOM_PASSWORD="\"hello\""
263+
; -D MESH_PACKET_LOGGING=1
264+
; -D MESH_DEBUG=1
265+
266+
[env:Heltec_WSL3_companion_radio_ble]
237267
extends = Heltec_lora32_v3
238268
build_flags =
239269
${Heltec_lora32_v3.build_flags}
240270
-D MAX_CONTACTS=100
241271
-D MAX_GROUP_CHANNELS=1
242-
-D DISPLAY_CLASS=SSD1306Display
243-
-D WIFI_DEBUG_LOGGING=1
244-
-D WIFI_SSID="\"myssid\""
245-
-D WIFI_PWD="\"mypwd\""
272+
-D BLE_PIN_CODE=123456
273+
-D BLE_DEBUG_LOGGING=1
246274
; -D ENABLE_PRIVATE_KEY_IMPORT=1
247275
; -D ENABLE_PRIVATE_KEY_EXPORT=1
248276
; -D MESH_PACKET_LOGGING=1
249277
; -D MESH_DEBUG=1
250278
build_src_filter = ${Heltec_lora32_v3.build_src_filter}
251-
+<helpers/ui/*.cpp>
252279
+<helpers/esp32/*.cpp>
253280
+<../examples/companion_radio>
254281
lib_deps =
@@ -805,6 +832,20 @@ build_flags =
805832
; -D MESH_PACKET_LOGGING=1
806833
; -D MESH_DEBUG=1
807834

835+
[env:Heltec_t114_room_server]
836+
extends = Heltec_t114
837+
build_src_filter = ${Heltec_t114.build_src_filter}
838+
+<../examples/simple_room_server>
839+
build_flags =
840+
${Heltec_t114.build_flags}
841+
-D ADVERT_NAME="\"Heltec_T114 Room\""
842+
-D ADVERT_LAT=-37.0
843+
-D ADVERT_LON=145.0
844+
-D ADMIN_PASSWORD="\"password\""
845+
-D ROOM_PASSWORD="\"hello\""
846+
; -D MESH_PACKET_LOGGING=1
847+
; -D MESH_DEBUG=1
848+
808849
[env:Heltec_t114_companion_radio_ble]
809850
extends = Heltec_t114
810851
build_flags =
@@ -865,6 +906,18 @@ build_flags =
865906
; -D MESH_PACKET_LOGGING=1
866907
; -D MESH_DEBUG=1
867908

909+
[env:LilyGo_T-Echo_room_server]
910+
extends = LilyGo_Techo
911+
build_src_filter = ${LilyGo_Techo.build_src_filter} +<../examples/simple_room_server/main.cpp>
912+
build_flags =
913+
${LilyGo_Techo.build_flags}
914+
-D ADVERT_NAME="\"T-Echo Room\""
915+
-D ADVERT_LAT=-37.0
916+
-D ADVERT_LON=145.0
917+
-D ADMIN_PASSWORD="\"password\""
918+
; -D MESH_PACKET_LOGGING=1
919+
; -D MESH_DEBUG=1
920+
868921
[env:LilyGo_T-Echo_companion_radio_ble]
869922
extends = LilyGo_Techo
870923
build_flags =

0 commit comments

Comments
 (0)