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

v1.20.0.rc8 #276

Merged
merged 58 commits into from
Mar 6, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
0372114
esp32/micropython: correction to keyboard interrupts exposure
Dec 13, 2018
9df2333
Update pycom_config.h
Xykon Dec 17, 2018
adeebf1
esp32: Fixes in order to get the US915 certification passing.
Jan 3, 2019
e3ca985
esp32/frozen: updated MQTTMsgHandler.py
Jan 7, 2019
036a6d1
es32/lib: updated IDF libs
Jan 7, 2019
4a859e2
esp32/modlte: Enabled suspention of Mesh task in modem upgrade task
Jan 7, 2019
38428ff
mods/machspi.c: Fix the bug in pybspi_transfer() (#9)
husigeza Jan 7, 2019
afcb3c4
Merged changes from v1.20.0 release-candidate
Jan 7, 2019
6144e6d
Merge branch 'master' of https://github.com/pycom/Firmware-Development
Jan 7, 2019
258876e
esp32/modusocket:Added mpy API to get/se/clear DNS Servers Ipv4
Jan 7, 2019
b3e3a8c
Update modusocket.c
Xykon Jan 7, 2019
12dcbdb
esp32/modnetwork: fixed wrong nic selection in case of AF_INET
Jan 11, 2019
dd002a2
esp32/modnetwork.c: fix a linking issue for WIPY, LOPY, SIPY
husigeza Jan 13, 2019
1b5eba3
esp32/modlte: Added flag for legacy attachment method
Jan 14, 2019
9e091a5
esp32/modlte: updated
Xykon Jan 14, 2019
d586893
Merge branch 'attach-legacy'
Jan 14, 2019
a541954
Update sqnsupgrade (#11)
Xykon Jan 15, 2019
215fcd2
esp32/sdkconfig.h: synced with IDF v3.1
Jan 16, 2019
d8769fd
esp32: Removed CRTL-D function in PyBytes Firmware + minor bug fix
Jan 16, 2019
0650a29
esp32: Minor bug fix for Secure Boot
Jan 17, 2019
c887d32
esp32/lteppp: added suspen/resume functinality to lteppp
Jan 14, 2019
d9085a4
esp32/lteppp: improving lteppp suspend/resume mechanism
Jan 15, 2019
81573b3
esp32/lteppp: updated PPP Suspend mechanism
Jan 16, 2019
42f4108
Update to LTE module (#12)
Jan 18, 2019
ff3b397
esp32: updated version
Jan 18, 2019
bda5261
esp32: On Boot wifi AP defaults now to DEFAULT wifi ssid and Password
Jan 18, 2019
a7a2e9e
esp32: help- Removed CRTL-D from PYBYTES build + minor fixes
Jan 18, 2019
c16daf9
esp32: Updated Pypytes scripts
Jan 18, 2019
0b6307f
Merge of Public repo [release-candidate] Head.
Jan 19, 2019
87f2d8b
esp32/ltepp: bug fix for lteppp suspend
Jan 19, 2019
a6ebe1e
Merge HEAD of release-candidate 1.20.0
Jan 21, 2019
b886f41
IDF v3.1 update
Jan 22, 2019
622a235
Merge remote-tracking branch 'public/release-candidate'
Jan 23, 2019
f2a33ba
Fix linking Issue
Jan 23, 2019
a83e360
Esp32/frozen/MQTTlib: Gracefully handle EAGAIN return of Socket.write
Jan 28, 2019
7ce6f7e
esp32/mpthreadport.c: fix an issue in cleaning up user threads during…
husigeza Jan 30, 2019
733cf7e
esp32/mphal: Fix issue causing Device crash when safe booting (CTRL-F…
Jan 31, 2019
1eb354a
esp32/mods/modusocket.c: adding do_handshake for non-blocking sockets…
husigeza Jan 31, 2019
98000bb
build config: make openthread over lora a build-time configuration op…
martijnthe Feb 1, 2019
ad55267
esp32/modlte: Added factory modem reset option , method to check UE c…
Feb 8, 2019
e078fcc
Pymesh feature added from Pygo to Lopy (#16)
Feb 8, 2019
2b28d49
esp32/make: Fix Makefile bug where SIPY FIPY and LOPY4 excluded secur…
Feb 8, 2019
52ece9c
Updated Pybytes scripts + updated pycom version
Feb 8, 2019
a3a8dec
esp32/modlte: minor fix
Feb 8, 2019
3264aaa
Squashed commit of the following:
Feb 15, 2019
caa3669
esp32/modbt: Add API to Enable/Disable bt modem Sleep
Feb 18, 2019
dc4bc94
esp32/modbt: included an init param to enable/disable modem sleep
Feb 18, 2019
a004d14
v1.20.0.rc7.1
Feb 19, 2019
7837d32
esp32/modwlan: Fix Wifi connection resuming after more than 1 machin…
Feb 20, 2019
1aeeda5
Merge remote-tracking branch 'public/release-candidate'
Feb 22, 2019
192d48e
esp32/Jenkins: Disable OpenThread for FiPy-Pybytes Build
Feb 25, 2019
82cd397
Merge branch 'release-candidate' of https://github.com/pycom/pycom-mi…
Mar 1, 2019
916bb4d
Merge branch 'master' of https://github.com/pycom/Firmware-Development
Mar 1, 2019
2cdc603
esp32/machuart: Fix Issue #256
Mar 1, 2019
52da273
Merge pull request #21 from iwahdan88/master
Mar 1, 2019
937d4a4
Pymesh Border Router (#22)
Mar 5, 2019
3ce7552
esp32/sqnsupgrade: Updated to V1.2.3
Mar 6, 2019
8dc29d1
v1.20.0.rc8
Mar 6, 2019
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
132 changes: 98 additions & 34 deletions esp32/frozen/LTE/sqnsupgrade.py

Large diffs are not rendered by default.

16 changes: 16 additions & 0 deletions esp32/mods/machuart.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@
#define UART_TRIGGER_RX_FULL (0x04)
#define UART_TRIGGER_TX_DONE (0x08)

#define MACH_UART_CHECK_INIT(self) \
if(!(self->init)) {nlr_raise(mp_obj_new_exception_msg_varg(&mp_type_OSError, "UART not Initialized!"));}

/******************************************************************************
DECLARE PRIVATE FUNCTIONS
******************************************************************************/
Expand All @@ -89,6 +92,7 @@ struct _mach_uart_obj_t {
uint8_t uart_id;
uint8_t rx_timeout;
uint8_t n_pins;
bool init;
};

/******************************************************************************
Expand Down Expand Up @@ -265,6 +269,7 @@ STATIC bool uart_rx_wait (mach_uart_obj_t *self) {

STATIC void mach_uart_print(const mp_print_t *print, mp_obj_t self_in, mp_print_kind_t kind) {
mach_uart_obj_t *self = self_in;
MACH_UART_CHECK_INIT(self)
if (self->config.baud_rate > 0) {
mp_printf(print, "UART(%u, baudrate=%u, bits=", self->uart_id, self->config.baud_rate);
switch (self->config.data_bits) {
Expand Down Expand Up @@ -430,6 +435,9 @@ STATIC mp_obj_t mach_uart_init_helper(mach_uart_obj_t *self, const mp_arg_val_t
// configure the rx timeout threshold
self->uart_reg->conf1.rx_tout_thrhd = self->rx_timeout & UART_RX_TOUT_THRHD_V;

// Init Done
self->init = true;

return mp_const_none;

error:
Expand Down Expand Up @@ -494,25 +502,30 @@ STATIC mp_obj_t mach_uart_deinit(mp_obj_t self_in) {
uart_driver_delete(self->uart_id);
}

self->init = false;

return mp_const_none;
}
STATIC MP_DEFINE_CONST_FUN_OBJ_1(mach_uart_deinit_obj, mach_uart_deinit);

STATIC mp_obj_t mach_uart_any(mp_obj_t self_in) {
mach_uart_obj_t *self = self_in;
MACH_UART_CHECK_INIT(self)
return mp_obj_new_int(uart_rx_any(self));
}
STATIC MP_DEFINE_CONST_FUN_OBJ_1(mach_uart_any_obj, mach_uart_any);

STATIC mp_obj_t mach_uart_wait_tx_done(mp_obj_t self_in, mp_obj_t timeout_ms) {
mach_uart_obj_t *self = self_in;
MACH_UART_CHECK_INIT(self)
TickType_t timeout_ticks = mp_obj_get_int_truncated(timeout_ms) / portTICK_PERIOD_MS;
return uart_wait_tx_done(self->uart_id, timeout_ticks) == ESP_OK ? mp_const_true : mp_const_false;
}
STATIC MP_DEFINE_CONST_FUN_OBJ_2(mach_uart_wait_tx_done_obj, mach_uart_wait_tx_done);

STATIC mp_obj_t mach_uart_sendbreak(mp_obj_t self_in, mp_obj_t bits) {
mach_uart_obj_t *self = self_in;
MACH_UART_CHECK_INIT(self)
pin_obj_t * pin = (pin_obj_t *)((mp_obj_t *)self->pins)[0];

uint32_t isrmask = MICROPY_BEGIN_ATOMIC_SECTION();
Expand Down Expand Up @@ -571,6 +584,7 @@ STATIC MP_DEFINE_CONST_DICT(mach_uart_locals_dict, mach_uart_locals_dict_table);

STATIC mp_uint_t mach_uart_read(mp_obj_t self_in, void *buf_in, mp_uint_t size, int *errcode) {
mach_uart_obj_t *self = self_in;
MACH_UART_CHECK_INIT(self)
byte *buf = buf_in;

// make sure we want at least 1 char
Expand Down Expand Up @@ -598,6 +612,7 @@ STATIC mp_uint_t mach_uart_read(mp_obj_t self_in, void *buf_in, mp_uint_t size,

STATIC mp_uint_t mach_uart_write(mp_obj_t self_in, const void *buf_in, mp_uint_t size, int *errcode) {
mach_uart_obj_t *self = self_in;
MACH_UART_CHECK_INIT(self)
const char *buf = buf_in;

// write the data
Expand All @@ -609,6 +624,7 @@ STATIC mp_uint_t mach_uart_write(mp_obj_t self_in, const void *buf_in, mp_uint_t

STATIC mp_uint_t mach_uart_ioctl(mp_obj_t self_in, mp_uint_t request, mp_uint_t arg, int *errcode) {
mach_uart_obj_t *self = self_in;
MACH_UART_CHECK_INIT(self)
mp_uint_t ret;

if (request == MP_STREAM_POLL) {
Expand Down
10 changes: 5 additions & 5 deletions esp32/mods/modlora.c
Original file line number Diff line number Diff line change
Expand Up @@ -2359,7 +2359,7 @@ static int lora_socket_socket (mod_network_socket_obj_t *s, int *_errno) {
#ifdef LORA_OPENTHREAD_ENABLED
// if mesh is enabled, assume socket is for mesh, not for LoraWAN
if (lora_mesh_ready()) {
return mesh_socket_open(_errno);
return mesh_socket_open(s, _errno);
}
#endif // #ifdef LORA_OPENTHREAD_ENABLED

Expand Down Expand Up @@ -2387,7 +2387,7 @@ static int lora_socket_socket (mod_network_socket_obj_t *s, int *_errno) {
static void lora_socket_close (mod_network_socket_obj_t *s) {
s->sock_base.u.sd = -1;
#ifdef LORA_OPENTHREAD_ENABLED
mesh_socket_close();
mesh_socket_close(s);
#endif // #ifdef LORA_OPENTHREAD_ENABLED
}

Expand Down Expand Up @@ -2457,7 +2457,7 @@ static int lora_socket_recvfrom (mod_network_socket_obj_t *s, byte *buf, mp_uint

#ifdef LORA_OPENTHREAD_ENABLED
if (lora_mesh_ready()) {
return mesh_socket_recvfrom(buf, len, ip, port, _errno);
return mesh_socket_recvfrom(s, buf, len, ip, port, _errno);
}
#endif // #ifdef LORA_OPENTHREAD_ENABLED

Expand Down Expand Up @@ -2523,7 +2523,7 @@ static int lora_socket_bind(mod_network_socket_obj_t *s, byte *ip, mp_uint_t por

#ifdef LORA_OPENTHREAD_ENABLED
if (lora_mesh_ready()) {
return mesh_socket_bind(ip, port, _errno);
return mesh_socket_bind(s, ip, port, _errno);
}
#endif // #ifdef LORA_OPENTHREAD_ENABLED

Expand Down Expand Up @@ -2567,7 +2567,7 @@ static int lora_socket_sendto(struct _mod_network_socket_obj_t *s, const byte *b

#ifdef LORA_OPENTHREAD_ENABLED
if (lora_mesh_ready()) {
return mesh_socket_sendto(buf, len, ip, port, _errno);
return mesh_socket_sendto(s, buf, len, ip, port, _errno);
}
#endif // #ifdef LORA_OPENTHREAD_ENABLED

Expand Down
Loading