Skip to content
Closed
Changes from 2 commits
Commits
Show all changes
69 commits
Select commit Hold shift + click to select a range
e7f173a
Merge pull request #110 from pycom/rc6
peter-pycom Feb 28, 2020
1a12aed
Update pyexec.c
Xykon Mar 2, 2020
e4be1c6
Merge pull request #111 from pycom/forum_topic_5740
Xykon Mar 2, 2020
618f71d
Fix core panics: Don't use m_malloc and gc_malloc unintended
amotl Nov 14, 2019
f92bba0
LTE: add debug flag
peter-pycom Mar 16, 2020
69ac2af
Merge pull request #112 from pycom/lte_debug
peter-pycom Mar 17, 2020
ff53818
Update get_idf_libs.py
Xykon Mar 17, 2020
20cc45c
Merge pull request #113 from pycom/secure_boot_fix_sdkconfig_copy
Xykon Mar 17, 2020
454c76a
add strlen_const() and sprint_binary_u8()
peter-pycom Mar 20, 2020
85007f9
LTE: add PSM Power Saving Mode
peter-pycom Mar 20, 2020
82c17cb
LTE: init() more expressive exceptions
peter-pycom Mar 20, 2020
d85d1f2
LTE: allow lte_debug to be toggled
peter-pycom Mar 20, 2020
0cdc8e8
LTE: psm not possible inppp
peter-pycom Mar 20, 2020
684d948
Merge pull request #114 from pycom/lte_psm_three
peter-pycom Mar 25, 2020
97620ae
assert the layout of the config block
peter-pycom Mar 20, 2020
873040c
document the pycom_config_block_t layout
peter-pycom Mar 20, 2020
92ffa59
LTE debug: print milliseconds spent
peter-pycom Mar 26, 2020
3764541
lte_disconnect(): give ATH time to complete
peter-pycom Mar 26, 2020
89b5292
lte_disconnect(): wait less
peter-pycom Mar 26, 2020
5b5b0d9
check IDF git hash
peter-pycom Apr 6, 2020
36d934d
make: improve instructions for IDF_HASH mismatch
peter-pycom Apr 8, 2020
0d6c8bb
Merge pull request #117 from pycom/idf_ver_check
peter-pycom Apr 8, 2020
435d6f2
Merge pull request #116 from pycom/lte_misc
peter-pycom Apr 22, 2020
6621135
[pybytes] updated to v1.4.0 (pymesh integration and coap client)
May 4, 2020
9283f1d
Update version number to 1.20.2.rc7
peter-pycom May 4, 2020
f928e5f
Merge pull request #120 from pycom/pyb_1.4.0
peter-pycom May 4, 2020
64cdc1a
Merge pull request #121 from pycom/v1.20.2.rc7
peter-pycom May 4, 2020
325f89c
Merge pull request #122 from pycom/Dev
peter-pycom May 4, 2020
c4948da
Merge pull request #441 from pycom/release_rc7_again
Xykon May 4, 2020
766b304
Update _pybytes.py
Xykon May 4, 2020
6d01270
Merge pull request #442 from pycom/release_hotfix_for_PR441
Xykon May 4, 2020
8495c7d
Fixed memory allocations in LittleFS files.
salal-m May 6, 2020
669dfe2
Updated mem free in socketfifo.c required for last commit's changes i…
salal-m May 7, 2020
6cb700a
Fixed memory allocations in Pycom Modules files
salal-m May 7, 2020
25183fb
Re-added the indentations to signify the code blocks under mutex lock.
salal-m May 8, 2020
a106cb4
Added a check before accessing the IP Address in the MDNS query respo…
salal-m May 8, 2020
8e08fab
Replaced heap_caps_malloc/free with malloc/free.
salal-m May 8, 2020
f58301e
Merge pull request #123 from pycom/pr418
May 18, 2020
5a6aa0a
PyJTAG: LTE uart 1
peter-pycom May 19, 2020
71354b9
Merge pull request #124 from pycom/pyjtag_lte
peter-pycom May 19, 2020
ba5b4f1
sigfox: fix commit hash (#125)
peter-pycom May 25, 2020
79ee9bf
Merge pull request #115 from pycom/pybytes_config_block
peter-pycom May 25, 2020
6cc3aff
Fix an issue in wrap_socket() results exception when no certificate v…
geza-pycom May 31, 2020
36b44d3
Merge pull request #126 from geza-pycom/SSL_no_verification
Jun 2, 2020
b74db42
Fix integer overflow in filesystem stat implementation. Resolve #409.…
geza-pycom Jun 10, 2020
669d1e3
add wlan_ap_tcpip_sta_list function that lists the connected devices …
geza-pycom Jun 10, 2020
73f0021
HTTP/S Server/Client Module (#118)
mate-pycom Jun 10, 2020
c9b534a
update idf hash (#130)
peter-pycom Jun 10, 2020
29d8021
Revert "update idf hash (#130)"
peter-pycom Jun 10, 2020
7f84b9c
Revert "HTTP/S Server/Client Module (#118)"
peter-pycom Jun 10, 2020
2186b33
idf 6ec081c (#132)
peter-pycom Jun 10, 2020
9f6e28e
Update pybytes to 1.5.0 (#133)
Xykon Jun 10, 2020
63d7be9
v1.20.2.rc9 (#135)
peter-pycom Jun 10, 2020
38d9cc7
Merge remote-tracking branch 'pycom-public/Dev'
peter-pycom Jun 10, 2020
1a257d8
Merge pull request #456 from pycom/v1.20.2.rc9_Dev_againagain
Xykon Jun 10, 2020
d14a92c
Jenkins: remove --depth=1
peter-pycom Jun 23, 2020
57b8aab
Jenkins: use IDF_HASH
peter-pycom Jun 23, 2020
3c72da7
Add support for EU433 region
Xykon Jun 25, 2020
221fdfa
pybytes 1.5.1
peter-pycom Jun 26, 2020
a159dee
rc10
peter-pycom Jun 26, 2020
5fade12
Update updater.py (#466)
Xykon Aug 4, 2020
a2a47c8
Update updater.py
Xykon Aug 4, 2020
8712a04
Merge pull request #469 from pycom/updater_update2
Xykon Aug 4, 2020
ae011b7
User C modules : enable in Makefile and application.mk
rcolistete Aug 6, 2020
5694360
PYCOM : make option MICROPY_FLOAT_IMPL
rcolistete Aug 5, 2020
bd4a28c
Pycom compatible with ulab module
rcolistete Aug 6, 2020
a910950
PYCOM : improved option MICROPY_FLOAT_IMPL
rcolistete Aug 7, 2020
87b47d1
PYCOM : enable MICROPY_PY_REVERSE_SPECIAL_METHODS
rcolistete Aug 7, 2020
e8da108
Merge branch 'squirrel' into pr/1
MKO1640 Aug 28, 2020
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 13 additions & 4 deletions esp32/mods/modlte.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ uart_config_t lte_uart_config0;
uart_config_t lte_uart_config1;

static bool lte_legacyattach_flag = true;
static bool lte_debug = false;

static bool lte_ue_is_out_of_coverage = false;

Expand Down Expand Up @@ -175,13 +176,16 @@ static void lte_callback_handler(void* arg)
static bool lte_push_at_command_ext(char *cmd_str, uint32_t timeout, const char *expected_rsp, size_t len) {
lte_task_cmd_data_t cmd = { .timeout = timeout, .dataLen = len};
memcpy(cmd.data, cmd_str, len);
//printf("[CMD] %s\n", cmd_str);
if (lte_debug)
printf("[AT] %s\n", cmd_str);
lteppp_send_at_command(&cmd, &modlte_rsp);
if ((expected_rsp == NULL) || (strstr(modlte_rsp.data, expected_rsp) != NULL)) {
//printf("[OK] %s\n", modlte_rsp.data);
if (lte_debug)
printf("[AT-OK] %s\n", modlte_rsp.data);
return true;
}
//printf("[FAIL] %s\n", modlte_rsp.data);
if (lte_debug)
printf("[AT-FAIL] %s\n", modlte_rsp.data);
return false;
}

Expand Down Expand Up @@ -494,7 +498,8 @@ static const mp_arg_t lte_init_args[] = {
{ MP_QSTR_id, MP_ARG_INT, {.u_int = 0} },
{ MP_QSTR_carrier, MP_ARG_KW_ONLY | MP_ARG_OBJ, {.u_obj = mp_const_none} },
{ MP_QSTR_cid, MP_ARG_KW_ONLY | MP_ARG_INT, {.u_int = 1} },
{ MP_QSTR_legacyattach, MP_ARG_KW_ONLY | MP_ARG_BOOL, {.u_bool = true} }
{ MP_QSTR_legacyattach, MP_ARG_KW_ONLY | MP_ARG_BOOL, {.u_bool = true} },
{ MP_QSTR_debug, MP_ARG_KW_ONLY | MP_ARG_BOOL, {.u_bool = false} },
};

static mp_obj_t lte_make_new(const mp_obj_type_t *type, mp_uint_t n_args, mp_uint_t n_kw, const mp_obj_t *all_args) {
Expand All @@ -504,6 +509,8 @@ static mp_obj_t lte_make_new(const mp_obj_type_t *type, mp_uint_t n_args, mp_uin
// parse args
mp_arg_val_t args[MP_ARRAY_SIZE(lte_init_args)];
mp_arg_parse_all(n_args, all_args, &kw_args, MP_ARRAY_SIZE(args), lte_init_args, args);
if (args[4].u_bool)
lte_debug = true;

// setup the object
lte_obj_t *self = &lte_obj;
Expand All @@ -524,6 +531,8 @@ STATIC mp_obj_t lte_init(mp_uint_t n_args, const mp_obj_t *pos_args, mp_map_t *k
// parse args
mp_arg_val_t args[MP_ARRAY_SIZE(lte_init_args) - 1];
mp_arg_parse_all(n_args - 1, pos_args + 1, kw_args, MP_ARRAY_SIZE(args), &lte_init_args[1], args);
if (args[3].u_bool)
lte_debug = true;
return lte_init_helper(pos_args[0], args);
}
STATIC MP_DEFINE_CONST_FUN_OBJ_KW(lte_init_obj, 1, lte_init);
Expand Down