This repository was archived by the owner on Sep 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 164
MicroPython release 1.20.2.rc2 based on Espressif IDF 3.3.1 #394
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
Changes needed for idf 3.3.
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
pyjtag clarifications
…vent Use the callback queue to notify the LoRa Timer Thread Do context switch in TimerCallback only if needed
Minor fixes in BLE and LoRa
…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
update sigfox libraries
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
Gil fixes
* 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
husigeza
approved these changes
Feb 4, 2020
There was a problem hiding this 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.
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.