From 880f1356dee1c14db5fa6bf14d40fc1de3c1f70c Mon Sep 17 00:00:00 2001 From: Alexander Heinrich Date: Tue, 6 Apr 2021 11:22:46 +0200 Subject: [PATCH] Reducing sending frequency of micro:bit firmware to 2s to reduce power consumption --- Firmware/Microbit_v1/Makefile | 4 ++-- Firmware/Microbit_v1/offline-finding/main.c | 2 +- .../Firmwares/Microbit/firmware.bin | Bin 14152 -> 14152 bytes 3 files changed, 3 insertions(+), 3 deletions(-) mode change 100644 => 100755 OpenHaystack/OpenHaystack/HaystackApp/Firmwares/Microbit/firmware.bin diff --git a/Firmware/Microbit_v1/Makefile b/Firmware/Microbit_v1/Makefile index 4d3155d..862e42e 100644 --- a/Firmware/Microbit_v1/Makefile +++ b/Firmware/Microbit_v1/Makefile @@ -1,7 +1,7 @@ PLATFORM := nRF51822 NRF51_SDK_PATH := $(shell pwd)/nrf51_sdk_v4_4_2_33551 NRF51_SDK_DOWNLOAD_URL := https://developer.nordicsemi.com/nRF5_SDK/nRF51_SDK_v4.x.x/nrf51_sdk_v4_4_2_33551.zip -OPENHAYSTACK_FIRMWARE_PATH := $(shell pwd)/../OpenHaystack/OpenHaystack/HaystackApp/firmware.bin +OPENHAYSTACK_FIRMWARE_PATH := $(shell pwd)/../../OpenHaystack/OpenHaystack/HaystackApp/Firmwares/Microbit/firmware.bin export PLATFORM export NRF51_SDK_PATH @@ -10,7 +10,7 @@ ifeq ($(DEPLOY_PATH),) DEPLOY_PATH := /Volumes/MICROBIT endif -offline-finding/build/offline-finding.bin: $(NRF51_SDK_PATH) blessed/.git +offline-finding/build/offline-finding.bin: $(NRF51_SDK_PATH) blessed/.git offline-finding/main.c $(MAKE) -C blessed $(MAKE) -C offline-finding diff --git a/Firmware/Microbit_v1/offline-finding/main.c b/Firmware/Microbit_v1/offline-finding/main.c index f42567f..8953f01 100644 --- a/Firmware/Microbit_v1/offline-finding/main.c +++ b/Firmware/Microbit_v1/offline-finding/main.c @@ -15,7 +15,7 @@ #include "ll.h" -#define ADV_INTERVAL LL_ADV_INTERVAL_MIN_NONCONN /* 100 ms */ +#define ADV_INTERVAL 2000000 /* 2 s */ /* don't make `const` so we can replace key in compiled binary image */ static char public_key[28] = "OFFLINEFINDINGPUBLICKEYHERE!"; diff --git a/OpenHaystack/OpenHaystack/HaystackApp/Firmwares/Microbit/firmware.bin b/OpenHaystack/OpenHaystack/HaystackApp/Firmwares/Microbit/firmware.bin old mode 100644 new mode 100755 index ce4f81601fecf1338c2f5a6241d8e6f68d172c70..776b8fcfbf7f902a98fd9870ed9b15966357201c GIT binary patch delta 16 XcmX?+cOq{C3lnogi`-^*CPz~MILifk delta 16 XcmX?+cOq{C3lsB#Hpb2DOpc}iIV%N!