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

Commit c7efa88

Browse files
author
iwahdan88
committed
New Stable version 1.18.2
- Fixed socke.connect Crash problem when LoRa/Sifgfox initialized before Wifi/LTE - Updates and bug fixes for LTE module - Fixed bug in spi.read()..The parameter write=.. in spi.read() was ignored. Instead always 0x55 was sent. - Updates to MQTT lib. - Added API to Get/set DNS servers. - Updated Sequans FW upgrade scripts - Enabled LCP Echo interval in IDF - Improvedd PPP session suspend/resume - Wifi AP mode on boot now is using only Default AP and SSID -> Initially the onboot wifi mode was using the ssid/pwd configured in pycom-config saved in flash which caused inconvenience for some users when switching between Pybytes FW and other Base FWs since the AP would be brought up with same ssid/pwd. This is now removed and in next releases wifi config saved in flash will be improved for more efficiency and relaiability.
1 parent d1c5ea9 commit c7efa88

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+294
-101
lines changed
-1.41 KB
Binary file not shown.

esp32/bootloader/lib/liblog.a

-140 Bytes
Binary file not shown.

esp32/bootloader/lib/libmicro-ecc.a

-52 Bytes
Binary file not shown.

esp32/bootloader/lib/libsoc.a

-592 Bytes
Binary file not shown.

esp32/bootloader/lib/libspi_flash.a

-72 Bytes
Binary file not shown.

esp32/frozen/Common/MQTTMsgHandler.py

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ def createSocketConnection(self):
7979
self._sock = None
8080

8181
self._sock = socket.socket()
82+
self._sock.settimeout(30)
8283
if self._cafile:
8384
self._sock = ssl.wrap_socket(
8485
self._sock,
@@ -153,7 +154,11 @@ def priority_send(self, packet):
153154
return msg_sent
154155

155156
def _receive_packet(self):
156-
if not self._poll.poll(self._receive_timeout):
157+
try:
158+
if not self._poll.poll(self._receive_timeout):
159+
return False
160+
except Exception as err:
161+
print("Poll error: {0}".format(err))
157162
return False
158163

159164
# Read message type
@@ -257,14 +262,15 @@ def _io_thread_func(self):
257262
self._verify_connection_state()
258263

259264
self._out_packet_mutex.acquire()
260-
if self._out_packet_mutex.locked() and len(self._output_queue) > 0:
261-
packet=self._output_queue[0]
262-
if self._send_packet(packet):
263-
self._output_queue.pop(0)
265+
if self._ping_failures == 0:
266+
if self._out_packet_mutex.locked() and len(self._output_queue) > 0:
267+
packet=self._output_queue[0]
268+
if self._send_packet(packet):
269+
self._output_queue.pop(0)
264270
self._out_packet_mutex.release()
265271

266272
self._receive_packet()
267273
self._callShadowCallback()
268274

269275
if len(self._output_queue) >= self._draining_cutoff:
270-
time.sleep(self._draining_interval)
276+
time.sleep(self._draining_interval)

esp32/frozen/LTE/sqnsbr.py

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

esp32/frozen/LTE/sqnsupgrade.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env python
2-
VERSION = "1.2.1"
2+
VERSION = "1.2.2"
33

4-
# Copyright (c) 2018, Pycom Limited.
4+
# Copyright (c) 2019, Pycom Limited.
55
#
66
# This software is licensed under the GNU GPL version 3 or any
77
# later version, with permitted additional terms. For more information
@@ -188,37 +188,32 @@ def __hangup_modem(self, delay, debug):
188188
self.__serial.read()
189189
if not self.__kill_ppp_ok:
190190
self.__serial.write(b"+++")
191-
time.sleep_ms(delay)
191+
time.sleep_ms(1150)
192192
resp = self.__serial.read()
193193
if debug: print('Response (+++ #1): {}'.format(resp))
194194
self.__check_resp(resp, True)
195195
self.__serial.write(b"AT\r\n")
196-
time.sleep_ms(delay)
196+
time.sleep_ms(250)
197197
resp = self.__serial.read()
198198
if debug: print('Response (AT #1) {}'.format(resp))
199199
self.__check_resp(resp)
200200
if resp is not None:
201201
if b'OK' not in resp and not self.__kill_ppp_ok:
202202
self.__serial.write(b"AT\r\n")
203-
time.sleep_ms(delay)
203+
time.sleep_ms(250)
204204
resp = self.__serial.read()
205205
if debug: print('Response (AT #2) {}'.format(resp))
206206
self.__check_resp(resp)
207207
if resp is not None and b'OK' in resp:
208208
return True
209209
self.__serial.write(b"+++")
210-
time.sleep_ms(delay)
210+
time.sleep_ms(1150)
211211
resp = self.__serial.read()
212212
if debug: print('Response (+++ #2): {}'.format(resp))
213213
self.__check_resp(resp, True)
214214
if resp is not None and b'OK' in resp:
215-
# self.__serial.write(b"ATH\r\n")
216-
# time.sleep_ms(delay)
217-
# resp = self.__serial.read()
218-
# if debug: print('Response (ATH #1) {}'.format(resp))
219-
# self.__check_resp(resp)
220215
self.__serial.write(b"AT\r\n")
221-
time.sleep_ms(delay)
216+
time.sleep_ms(250)
222217
resp = self.__serial.read()
223218
if debug: print('Response (AT #2) {}'.format(resp))
224219
self.__check_resp(resp)
@@ -380,7 +375,7 @@ def __run(self, file_path=None, baudrate=921600, port=None, resume=False, load_f
380375
else:
381376
if debug: print('Loading {}'.format(file_path))
382377
blobsize = os.stat(file_path)[6]
383-
if blobsize < 10240:
378+
if blobsize < 128:
384379
print('Firmware file is too small!')
385380
reconnect_uart()
386381
sys.exit(1)
@@ -460,6 +455,11 @@ def __run(self, file_path=None, baudrate=921600, port=None, resume=False, load_f
460455
print('Starting STP [FFF]')
461456
else:
462457
print('Starting STP ON_THE_FLY')
458+
459+
self.__serial.read(100)
460+
if verbose: print("Sending AT+CFUN=4")
461+
resonse = self.__serial.write(b'AT+CFUN=4\r\n')
462+
if verbose: print("AT+CFUN=4 returned {}".format(response))
463463
self.__serial.read(100)
464464

465465
if load_fff:

esp32/lib/libbootloader_support.a

-1.83 KB
Binary file not shown.

esp32/lib/libbt.a

-32.4 KB
Binary file not shown.

0 commit comments

Comments
 (0)