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

MicroPython release 1.20.2.rc2 based on Espressif IDF 3.3.1 #394

Merged
merged 69 commits into from
Feb 4, 2020
Merged

Conversation

Xykon
Copy link
Member

@Xykon Xykon commented Feb 4, 2020

No description provided.

oligauc and others added 30 commits October 8, 2019 11:03
BLE: Allow static passwords, remove bonded when pin changes
At three places the length field was not set when AT commands werde
issued, causing lte.attach() with the band=xx option to fail.
Also, affected: lte_get_modem_version()
Before, the only accepted argument & value for adc.init() was bits=12, and even that was
discarded. With that change, the function meets the documentation and works as expected.
Fix Pybytes OTA update failure
Add option to deinit active wifi connection when disabling wifi_on_boot
Add API to get/set Sigfox information
Support Sigfox registration in pybytes_config.py
Revert back to normal servers
Set release to 1.20.1.r2
PYFW-390: Update .gitignore to allow esp32/lib libraries to be updated
doniks and others added 21 commits January 22, 2020 08:36
…vent

Use the callback queue to notify the LoRa Timer Thread
Do context switch in TimerCallback only if needed
…ted Assembly instructions which are reading the Flash from IRAM functions causing bad00bad issue
Replacing "switch-case" with "if-else if" in Region.c to avoid generated Assembly instructions which are reading the Flash from IRAM functions causing bad00bad issue
In modbt.c it can happen that received packets are lost, because the user registered callback is not called fast enough (via gatts_char_callback_handler()), which means it can happen that the value of a characteristic is updated 2 times in a row (via gatts_event_handler()) without giving the possibility to the callback to run and fetch the new value. In this specific example the first callback will show the 2nd change, and the 2nd callback will show that actually nothing happened. The 1st change gets lost.
The fix of this issue breaks backward compatibility, because the prototype of the user registered Python callback is changed:
OLD: callback(characteristic)
NEW: callback(characteristic, (event, value))  → (event, value) is a tuple, where data is bytearray containing the value of the request if the “event” is WRITE, otherwise “value” is “None”. “event” shows the correct event any time.
PYFW-395: BLE characteristic update messages are lost if they sent too frequently
PYFW-403: mod_network_register_nic() using MicroPython functions outside of GIL in wlan_setup_ap()
this way the user can select a set of bands they want to use when attaching
* PYFW-391: Add changes needed for esp-idf v3.3

* PYFW-391: Add changes needed for esp-idf v3.3.1

* Updating README.md

* Update sdkconfig.h and libraries when secure boot is ON, but CONFIG_SECURE_BOOT_ENABLED is removed from sdkconfig.h

* Re-compile libraries with 1.22.0-80 toolchain

* Update application.mk to fix when built with SECURE=on

* Add checker which forbids compilation when CONFIG_SECURE_BOOT_ENABLED is defined but SECURE=on is not
Specify multiple bands for LTE attach
Update version to 1.20.2.rc2 for public release
@Xykon Xykon requested a review from husigeza February 4, 2020 19:18
Copy link
Contributor

@husigeza husigeza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the PR should be renamed, but the content is good.

@Xykon Xykon changed the title Release 3.3.1 MicroPython release 1.20.2.rc2 based on Espressif IDF 3.3.1 Feb 4, 2020
@Xykon Xykon self-assigned this Feb 4, 2020
@Xykon Xykon merged commit e5f77ab into Dev Feb 4, 2020
@Xykon Xykon deleted the release-3.3.1 branch February 4, 2020 21:24
X-Ryl669 pushed a commit to X-Ryl669/pycom-micropython-sigfox that referenced this pull request May 12, 2023
* BLE: Allow static passwords, remove bonded when pin changes

* mods/pybadc.c: Fix the argument handling of bits=x for adc.init()

Before, the only accepted argument & value for adc.init() was bits=12, and even that was
discarded. With that change, the function meets the documentation and works as expected.

* mods/pyblte.c: Fix the lenght field for AT commands

At three places the length field was not set when AT commands werde
issued, causing lte.attach() with the band=xx option to fail.
Also, affected: lte_get_modem_version()

* Support Sigfox registration for Pybytes

* PYFW-390: Update .gitignore to allow esp32/lib libraries to be updated

* MDNS advertisement works

* Adding text to advertisement works

* Query works

* Free up internal query results

* Change host_name to hostname

* Rename text to txt

* Adding libmdns.a to esp32/lib

* Adding scripts for PyJTAG and short Readme

* update sigfox libraries

* Replace xQueueSendFromISR call with xQueueSend when called from BLE event

Use the callback queue to notify the LoRa Timer Thread
Do context switch in TimerCallback only if needed

* Replacing "switch-case" with "if-else if" in Region.c to avoid generated Assembly instructions which are reading the Flash from IRAM functions causing bad00bad issue

* BLE characteristic update messages are lost if they sent too frequently

In modbt.c it can happen that received packets are lost, because the user registered callback is not called fast enough (via gatts_char_callback_handler()), which means it can happen that the value of a characteristic is updated 2 times in a row (via gatts_event_handler()) without giving the possibility to the callback to run and fetch the new value. In this specific example the first callback will show the 2nd change, and the 2nd callback will show that actually nothing happened. The 1st change gets lost.
The fix of this issue breaks backward compatibility, because the prototype of the user registered Python callback is changed:
OLD: callback(characteristic)
NEW: callback(characteristic, (event, value))  → (event, value) is a tuple, where data is bytearray containing the value of the request if the “event” is WRITE, otherwise “value” is “None”. “event” shows the correct event any time.

* PYFW-394: mod_ssl_setup_socket() allocates memory while GIL is not locked

* PYFW-401: Mutex of LFS can be locked in wlan_read_file or mod_ssl_read_file

* PYFW-402: wlan_do_connect() allocates memory while GIL is not locked

PYFW-403: mod_network_register_nic() using MicroPython functions outside of GIL in wlan_setup_ap()

* PYFW-404: bt_connect_helper() uses MicroPython functions outside of GIL

* PYFW-405: lte_send_at_cmd() uses MicroPython functions outside of GIL

* refactor lte_add_band() out of lte_attach()

* add bands=() parameter to lte.attach()

this way the user can select a set of bands they want to use when attaching

* PYFW-391: Add changes needed for esp-idf v3.3.1

* Updating README.md

* Update sdkconfig.h and libraries when secure boot is ON, but CONFIG_SECURE_BOOT_ENABLED is removed from sdkconfig.h

* Add checker which forbids compilation when CONFIG_SECURE_BOOT_ENABLED is defined but SECURE=on is not

* Add pybytes_on_boot functionality (pycom#87)

* Update pycom_version.h

Update version to 1.20.2.rc2 for public release

* Update Pybytes to version 1.3.1

Co-authored-by: oligauc <oliver@pycom.io>
Co-authored-by: Islam Wahdan <islam@pycom.io>
Co-authored-by: robert-hh <robert@hammelrath.com>
Co-authored-by: Géza Husi <husigeza91@gmail.com>
Co-authored-by: Jirka Krepl <jiri.krepl@gmail.com>
Co-authored-by: doniks <p.putz@yahoo.de>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants