Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

Commit 58398d3

Browse files
authored
Release xykon (#377)
* Add mDNS support * Update modlte.c Disable the radio with CFUN=0 in lte_reset * Update pycom_version.h Update SW_VERSION_NUMBER to 1.20.1.r3
1 parent 06dfad0 commit 58398d3

File tree

10 files changed

+419
-2
lines changed

10 files changed

+419
-2
lines changed

esp32/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ LIBS = -L$(ESP_IDF_COMP_PATH)/esp32/lib -L$(ESP_IDF_COMP_PATH)/esp32/ld -L$(ESP_
103103
$(ESP_IDF_COMP_PATH)/newlib/lib/libc-psram-workaround.a \
104104
-lfreertos -ljson -ljsmn -llwip -lnewlib -lvfs -lopenssl -lmbedtls -lwpa_supplicant \
105105
-lxtensa-debug-module -lbt -lsdmmc -lsoc -lheap -lbootloader_support -lmicro-ecc \
106-
-u ld_include_panic_highint_hdl -lsmartconfig_ack -lmesh -lesp_ringbuf -lcoap
106+
-u ld_include_panic_highint_hdl -lsmartconfig_ack -lmesh -lesp_ringbuf -lcoap -lmdns
107107
ifeq ($(BOARD), $(filter $(BOARD), FIPY))
108108
LIBS += sigfox/modsigfox_fipy.a
109109
endif

esp32/application.mk

+2
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ APP_INC += -I$(ESP_IDF_COMP_PATH)/coap/libcoap/include/coap
7777
APP_INC += -I$(ESP_IDF_COMP_PATH)/coap/libcoap/examples
7878
APP_INC += -I$(ESP_IDF_COMP_PATH)/coap/port/include
7979
APP_INC += -I$(ESP_IDF_COMP_PATH)/coap/port/include/coap
80+
APP_INC += -I$(ESP_IDF_COMP_PATH)/mdns/include
8081
APP_INC += -I../lib/mp-readline
8182
APP_INC += -I../lib/netutils
8283
APP_INC += -I../lib/oofatfs
@@ -160,6 +161,7 @@ APP_MODS_SRC_C = $(addprefix mods/,\
160161
lwipsocket.c \
161162
machtouch.c \
162163
modcoap.c \
164+
modmdns.c \
163165
)
164166

165167
APP_MODS_LORA_SRC_C = $(addprefix mods/,\

esp32/frozen/Pybytes/_pybytes_config.py

+4
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,10 @@ def __process_cli_activation(self, filename, activation_token):
182182
pass
183183
return self.__pybytes_config
184184
else:
185+
try:
186+
self.__pybytes_cli_activation.close()
187+
except:
188+
pass
185189
print('Unable to provision Sigfox! Please try again.')
186190
return None
187191

esp32/get_idf_libs.py

+1
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ def main():
6161
shutil.copy(src + '/xtensa-debug-module/libxtensa-debug-module.a', dsttmpapp)
6262
shutil.copy(src + '/esp_ringbuf/libesp_ringbuf.a', dsttmpapp)
6363
shutil.copy(src + '/coap/libcoap.a', dsttmpapp)
64+
shutil.copy(src + '/mdns/libmdns.a', dsttmpapp)
6465
except:
6566
print("Couldn't Copy IDF libs defaulting to Local Lib Folders!")
6667
traceback.print_exc()

esp32/lib/libmdns.a

494 KB
Binary file not shown.

esp32/mods/modlte.c

+5
Original file line numberDiff line numberDiff line change
@@ -1191,6 +1191,11 @@ STATIC MP_DEFINE_CONST_FUN_OBJ_1(lte_ue_coverage_obj, lte_ue_coverage);
11911191
STATIC mp_obj_t lte_reset(mp_obj_t self_in) {
11921192
lte_check_init();
11931193
lte_disconnect(self_in);
1194+
if (!lte_push_at_command("AT+CFUN=0", LTE_RX_TIMEOUT_MAX_MS)) {
1195+
mp_hal_delay_ms(LTE_RX_TIMEOUT_MIN_MS);
1196+
lte_push_at_command("AT+CFUN=0", LTE_RX_TIMEOUT_MAX_MS);
1197+
}
1198+
mp_hal_delay_ms(LTE_RX_TIMEOUT_MIN_MS);
11941199
lte_push_at_command("AT^RESET", LTE_RX_TIMEOUT_MAX_MS);
11951200
lteppp_set_state(E_LTE_IDLE);
11961201
mp_hal_delay_ms(LTE_RX_TIMEOUT_MIN_MS);

0 commit comments

Comments
 (0)