Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uploading working gps #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"configurations": [
{
"name": "Win32",
"includePath": [
"${workspaceFolder}/**",
"C:/Users/tbote/.platformio/packages/framework-arduinoespressif32/libraries/Preferences/src"
],
"defines": [
"_DEBUG",
"UNICODE",
"_UNICODE"
],
"windowsSdkVersion": "10.0.22621.0",
"compilerPath": "cl.exe",
"cStandard": "c17",
"cppStandard": "c++17",
"intelliSenseMode": "windows-msvc-x64"
}
],
"version": 4
}
2 changes: 1 addition & 1 deletion LoRaWAN-HelloWorld-lmic/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ static osjob_t sendjob;

// Schedule TX every this many seconds (might become longer due to duty
// cycle limitations).
const unsigned TX_INTERVAL = 60;
const unsigned TX_INTERVAL = 20;

// Pin mapping
// const lmic_pinmap lmic_pins = {
Expand Down
24 changes: 23 additions & 1 deletion LoRaWAN-HelloWorld-radiolib/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@
default_envs =
; ttn_sandbox_lorawan_v110_sx1276_radiolib_esp32dev_voc_radiolib_tmp_v110_1
; ttn_sandbox_lorawan_v104_sx1276_radiolib_esp32dev_voc_radiolib_tmp_1 ; Solar
ttn_sandbox_lorawan_v110_sx1276_radiolib_esp32dev_voc_experiment_1_110 ; Experiment
; ttn_sandbox_lorawan_v110_sx1276_radiolib_esp32dev_voc_experiment_1_110 ; Experiment
nexus_LoraWan_connection_ESP32mini_v1
; ttn_sandbox_lorawan_v110_sx1276_radiolib_esp32dev_plantpal
; ttn_sandbox_lorawan_v110_sx1276_radiolib_wemos_d1_mini32_voc_radiolib_tmp_v110_1
; ttn_sandbox_lorawan_v104_sx1276_radiolib_wemos_d1_mini32_voc_radiolib_tmp_1


; Use radiolib via github
[radiolib]
lib_deps = https://github.com/PCo-IoT-2024/RadioLib.git#GAIT2024
Expand Down Expand Up @@ -62,6 +64,11 @@ build_flags =
-D RADIOLIB_LORAWAN_APP_KEY="0x14, 0x70, 0xFC, 0x7A, 0xD8, 0x20, 0x9E, 0xFF, 0x48, 0xA9, 0xC7, 0xCD, 0xD6, 0x12, 0x4C, 0xF8" ; msb
-D RADIOLIB_LORAWAN_NWK_KEY="0x95, 0xBF, 0x84, 0x5A, 0xAA, 0x41, 0x6C, 0x96, 0xC8, 0x3B, 0xA8, 0x3C, 0x94, 0x81, 0x7C, 0x36" ; msb

[Nexus-connection]
build_flags =
-D RADIOLIB_LORAWAN_DEV_EUI="0x70B3D57ED006B486" ; direct
-D RADIOLIB_LORAWAN_APP_KEY="0x8E, 0x36, 0xAE, 0x6B, 0xDB, 0xD7, 0xC1, 0x33, 0xF9, 0x1B, 0x12, 0x74, 0x2B, 0x56, 0x59, 0x3D" ; msb
-D RADIOLIB_LORAWAN_NWK_KEY="0x30, 0x34, 0x3C, 0x49, 0x96, 0x26, 0x0B, 0x30, 0x48, 0x12, 0xD1, 0x55, 0x13, 0x5C, 0x16, 0xEC" ; msb
[message_104]
build_flags =
-D RADIOLIB_LORAWAN_PAYLOAD="\"RadioLib v1.0.4 device: Waiting for GPS\""
Expand Down Expand Up @@ -231,6 +238,21 @@ build_flags =
${message_104.build_flags}
-D RADIOLIB_LORA_UPLINK_INTERVAL_SECONDS="(1UL * 60UL)"

[env:nexus_LoraWan_connection_ESP32mini_v1]
platform = espressif32
board = esp32dev
framework = arduino
upload_speed = 115200
lib_deps =
${ttn_sandbox_lorawan_sx1276_radiolib_esp32.lib_deps}
${gps.lib_deps}
build_flags =
${eu868.build_flags}
${ttn_sandbox_lorawan_sx1276_radiolib_esp32.build_flags}
${Nexus-connection.build_flags}
${message_110.build_flags}
-D RADIOLIB_LORA_UPLINK_INTERVAL_SECONDS="(1UL * 60UL)"

;[env:d1_mini]
;platform = espressif8266
;board = d1_mini
Expand Down