Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
8d07cd9
Add timeout parameter to lte_send_at_cmd
Xykon Jul 27, 2020
09e39fe
Update modlte.c
Xykon Jul 27, 2020
d93abce
Update modlte.c
Xykon Jul 27, 2020
86665a2
PYCOM : make option MICROPY_FLOAT_IMPL
rcolistete Aug 5, 2020
a06c014
PYCOM : improved option MICROPY_FLOAT_IMPL
rcolistete Aug 7, 2020
218035c
Merge branch 'master' into lte_send_at_cmd_timeout
Xykon Aug 24, 2020
fdedb33
Merge pull request #167 from pycom/lte_send_at_cmd_timeout
Xykon Sep 21, 2020
38f9019
Fix memory leak happens after Bluetooth disconnect, fix a problem in …
geza-pycom Oct 21, 2020
ca10cd1
Fix a problem when machine.sleep(resume_wifi_ble=True) drops exceptio…
geza-pycom Oct 24, 2020
ca673c0
Small changes
geza-pycom Oct 25, 2020
e3f3b41
Adding these changes because looks good and even they not needed with…
geza-pycom Oct 25, 2020
c3e7b6c
pygate: reset the JIT queue margins
gijsio Oct 28, 2020
b728776
Merge pull request #193 from geza-pycom/Resume_problem_bt_disconnect_…
Xykon Nov 1, 2020
9f44896
Resume the BT Connection from the original list if connection was not…
geza-pycom Nov 3, 2020
e3f7111
Merge pull request #194 from geza-pycom/resume_problem_2
geza-pycom Nov 3, 2020
da9f545
Update _terminal.py
Xykon Nov 12, 2020
2064cbd
Merge pull request #174 from pycom/float_option
Xykon Nov 20, 2020
944d708
lorapf: add pygate_reset() to power cycle the module
peter-pycom Aug 27, 2020
58db509
LTE: check for SIM card before attaching
peter-pycom Aug 26, 2020
b822a70
lorapf: fix warnings
peter-pycom Nov 6, 2020
7d2e8e0
str_utils: add hexdump()
peter-pycom Nov 9, 2020
4937349
lte: debug MSG and state
peter-pycom Nov 9, 2020
9cc50b2
lte: callback LTE_EVENT_BREAK
peter-pycom Nov 10, 2020
a641ac5
modlte: improve exception texts
peter-pycom Nov 10, 2020
8e631ef
lte: reduce AT+CEREG from 2 to 1
peter-pycom Nov 11, 2020
6b4f392
BLE update
Xykon Nov 6, 2020
4254ab2
update idf 3394ee573
peter-pycom Nov 12, 2020
9a9a5b9
Merge remote-tracking branch 'pycom-micropython-sigfox/release_1.20.2…
Xykon Nov 23, 2020
6e2ff29
Update Pybytes to version 1.6.1
Xykon Nov 23, 2020
1097cbe
Update pycom_version.h
Xykon Nov 23, 2020
72bc4a7
Update _pybytes_protocol.py
Xykon Nov 23, 2020
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
Prev Previous commit
Next Next commit
lte: reduce AT+CEREG from 2 to 1
this way we only get unsolicited result codes for *state* changes (registered, registration lost), instead of for every *cell* change. This means fewer UART break signals, which in turn means fewer callbacks to deal with.
  • Loading branch information
peter-pycom committed Nov 23, 2020
commit 8e631efefb6b3d7be6731f826c06dcaf85231785
3 changes: 2 additions & 1 deletion esp32/lte/lteppp.c
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,8 @@ static void TASK_LTE (void *pvParameters) {
lteppp_send_at_cmd("ATE0", LTE_RX_TIMEOUT_MIN_MS);
// disable PSM if enabled by default
lteppp_send_at_cmd("AT+CPSMS=0", LTE_RX_TIMEOUT_MIN_MS);

// set registration URC to 1, ie for status changes
lteppp_send_at_cmd("AT+CEREG=1", LTE_RX_TIMEOUT_MIN_MS);
// at least enable access to the SIM
lteppp_send_at_cmd("AT+CFUN?", LTE_RX_TIMEOUT_MAX_MS);
char *pos = strstr(lteppp_trx_buffer, "+CFUN: ");
Expand Down
6 changes: 3 additions & 3 deletions esp32/mods/modlte.c
Original file line number Diff line number Diff line change
Expand Up @@ -280,15 +280,15 @@ static bool lte_check_attached(bool legacy) {
mp_hal_delay_ms(LTE_RX_TIMEOUT_MIN_MS);
lte_push_at_command("AT+CEREG?", LTE_RX_TIMEOUT_MIN_MS);
}
if (((pos = strstr(modlte_rsp.data, "+CEREG: 2,1,")) || (pos = strstr(modlte_rsp.data, "+CEREG: 2,5,")))
if (((pos = strstr(modlte_rsp.data, "+CEREG: 1,1")) || (pos = strstr(modlte_rsp.data, "+CEREG: 1,5")))
&& (strlen(pos) >= 31) && (pos[30] == '7' || pos[30] == '9')) {
attached = true;
}
} else {
if ((pos = strstr(modlte_rsp.data, "+CEREG: 2,1,")) || (pos = strstr(modlte_rsp.data, "+CEREG: 2,5,"))) {
if ((pos = strstr(modlte_rsp.data, "+CEREG: 1,1")) || (pos = strstr(modlte_rsp.data, "+CEREG: 1,5"))) {
attached = true;
} else {
if((pos = strstr(modlte_rsp.data, "+CEREG: 2,4")))
if((pos = strstr(modlte_rsp.data, "+CEREG: 1,4")))
{
lte_ue_is_out_of_coverage = true;
}
Expand Down