Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calibrate Wire.setClock so it sets correct frequency #15

Closed
LonerDan opened this issue Mar 30, 2015 · 8 comments
Closed

Calibrate Wire.setClock so it sets correct frequency #15

LonerDan opened this issue Mar 30, 2015 · 8 comments

Comments

@LonerDan
Copy link

This is more a observation then issue report since you have already written in description that Wire.setClock gives weird frequency. I played with it a while and found that at 400 it gives frequency around 1khz. At 300000 and more it doesnt work at all since the scl is all distorted and non consistent (more like some noise). Maximum frequency I got was ~307kHz with set values around 180000-200000.

@igrr
Copy link
Member

igrr commented Mar 31, 2015

Thanks for investigating.

The code that sets the frequency is here:

void i2c_freq(int freq_hz)
{
    s_i2c_delay = 1000000 / freq_hz / 4 - 1;
    if (s_i2c_delay < 0)
        s_i2c_delay = 0;
}

So this function needs a tweak to calculate the correct delay, maybe by using a static lookup table.
@ManiackCZ Since you have started experimenting with this, would you mind hacking this a bit to measure the frequencies we get for each value s_i2c_delay in range from 1 to 16? Then we can convert that data into a LUT and fix this.

@igrr igrr changed the title Wire.setClock maximum frequency Calibrate Wire.setClock so it sets correct frequency Mar 31, 2015
@LonerDan
Copy link
Author

LonerDan commented Apr 2, 2015

Oh, havent found that function when I was looking for it. Ok, I have few free days this week so I will try to poke around and let you know.

@LonerDan
Copy link
Author

LonerDan commented Apr 2, 2015

It seems little bit rough to use delayMicroseconds(). It has big gaps between individual delay values due to operation with integers. What frequency are the ESP8266 modules usually running at? Are there any other sources to generate delays? (timers, way to use NOPs...)

@igrr
Copy link
Member

igrr commented Apr 2, 2015

80MHz or 160MHz most of the time.
Maybe we can use a calibrated delay loop?
There's a CCOUNT special register which counts the CPU clock cycles. It can
be read in asm using RSR instruction.

On Thu, Apr 2, 2015 at 4:22 PM, ManiackCZ notifications@github.com wrote:

Seems little bit rough to use delayMicroseconds(). It has big gaps between
individual delay values due to operation with integers. What frequency are
the ESP8266 modules usually running at? Are there any other sources to
generate delays? (timers, way to use NOPs...)

Reply to this email directly or view it on GitHub
#15 (comment).

@LonerDan
Copy link
Author

LonerDan commented Apr 2, 2015

That seems promising. I will have a look at that.

@LonerDan
Copy link
Author

LonerDan commented Apr 4, 2015

I thought I got it, but it was bahaving absolutely without any logic so I looked at my conversion algorithm itself and it seems to give 0 all the time.
UPDATE: I investigated more and it seems to be something wrong with float in general. I opened new issue report.
UPDATE: Wait, maybe I am geting somewhere...

@LonerDan
Copy link
Author

UPDATE: I have my final leaving exams coming in few weeks, so I will have to (unforunately) pause my work on the calibration but I plan to get right back into it after a month or so.
Thank you for understanding

@igrr
Copy link
Member

igrr commented May 5, 2015

Fixed with the new i2c library.

@igrr igrr closed this as completed May 5, 2015
igrr pushed a commit that referenced this issue May 8, 2015
igrr pushed a commit that referenced this issue Oct 29, 2015
madpilot pushed a commit to madpilot/Arduino that referenced this issue Jul 15, 2017
axtls upgrade to svn r251 (1.5.3+)
d-a-v added a commit to d-a-v/Arduino that referenced this issue Mar 13, 2019
…a friday)

on NONOS-SDK branch release-2.2.x: git log 509eae8..c7b580c

commit c7b580c679e45d6c0a8f41c9b0913837b76ad4db
Merge: 183d43b 476e1a1
Author: Xu Chun Guang <xuchunguang@espressif.com>
Date:   Wed Mar 13 11:32:22 2019 +0800

    Merge branch 'feature/remove_phy_freq_trace' into 'release/v2.2.x'

    feat: Remove phy freq trace api and disable freq trace in at project by default

    See merge request sdk/ESP8266_NONOS_SDK!155

commit 476e1a1c2a4f985a552821339fcff5c8cbcd4d51
Author: Xu Chun Guang <xuchunguang@espressif.com>
Date:   Wed Mar 13 11:27:36 2019 +0800

    feat: Remove phy freq trace api and disable freq trace in at project by default

commit 183d43b8ee6ddd6110a4d964a1513e22ebf6d3fa
Merge: 5c830bd 498423e
Author: Xu Chun Guang <xuchunguang@espressif.com>
Date:   Tue Mar 12 20:45:40 2019 +0800

    Merge branch 'featur/compile_for_the_latest_toolchain' into 'release/v2.2.x'

    feat: Support the latest toolchain version

    See merge request sdk/ESP8266_NONOS_SDK!152

commit 498423e6e5cf91ed4c5f666587215ce7c5401a5f
Author: Xu Chun Guang <xuchunguang@espressif.com>
Date:   Tue Mar 12 20:40:56 2019 +0800

    feat: Recompile lwip and mbedtls lib

commit 1e469d5d55d3e49433542212637ded16d3d9eb92
Author: Xu Chun Guang <xuchunguang@espressif.com>
Date:   Tue Mar 12 20:32:55 2019 +0800

    fix: Fix compile error in mem.h

commit 312975dbb1bebf3101626cfe28c8c81bd9867126
Author: liuhan <liuhan@espressif.com>
Date:   Mon Feb 25 16:21:04 2019 +0800

    feat: Support the latest toolchain version

commit 5c830bd40722476575a422a3723f32ed3dc97bae
Merge: 9e370eb 563d595
Author: Xu Chun Guang <xuchunguang@espressif.com>
Date:   Tue Mar 12 20:12:02 2019 +0800

    Merge branch 'bugfix/wdev_int_status_overlap' into 'release/v2.2.x'

    fix(pp): Clear nmi status firstly when enter wdev irq

    See merge request sdk/ESP8266_NONOS_SDK!151

commit 563d595f5b2e617802d0cc9212b5b32dc2af49df
Author: Xu Chun Guang <xuchunguang@espressif.com>
Date:   Tue Mar 12 20:10:03 2019 +0800

    fix(pp): Clear nmi status firstly when enter wdev irq

commit 9e370ebb80d00447ee2eb6661341ba66d38c6bec
Merge: ff367d3 8e90392
Author: Xu Chun Guang <xuchunguang@espressif.com>
Date:   Tue Mar 12 20:02:58 2019 +0800

    Merge branch 'bugfix/lock_buffer_list_before_check_esf_buffer' into 'release/v2.2.x'

    feat(pp): Sync code from esp32 about esf_buf

    See merge request sdk/ESP8266_NONOS_SDK!150

commit 8e903928812d7bec4469b2637178e35d3e7c591b
Author: Xu Chun Guang <xuchunguang@espressif.com>
Date:   Tue Mar 12 19:59:15 2019 +0800

    feat(pp): Sync code from esp32 about esf_buf

    See
    https://gitlab.espressif.cn:6688/idf/esp-idf/merge_requests/4212 and
    https://gitlab.espressif.cn:6688/idf/esp-idf/merge_requests/4373

commit ff367d38d3e9556d7bc1fe92f7e6ef87e70ea7a4
Merge: 778b145 9629aca
Author: Xu Chun Guang <xuchunguang@espressif.com>
Date:   Tue Mar 12 19:36:05 2019 +0800

    Merge branch 'bugfix/illegal_default_hostname' into 'release/v2.2.x'

    fix: The default hostname is illegal

    See merge request sdk/ESP8266_NONOS_SDK!149

commit 9629acada0a587437f8c0e34352638877d0acde9
Author: Xu Chun Guang <xuchunguang@espressif.com>
Date:   Tue Mar 12 18:46:52 2019 +0800

    fix: The default hostname is illegal

    - espressif/ESP8266_NONOS_SDK#208
    - internal N8266-16

commit 778b1458daec381131c624428a75a5c2938a846b
Merge: 26b2f65 f07bdc7
Author: Xu Chun Guang <xuchunguang@espressif.com>
Date:   Sun Feb 24 17:28:31 2019 +0800

    Merge branch 'feature/code_optimize' into 'release/v2.2.x'

    Feature/code optimize

    See merge request sdk/ESP8266_NONOS_SDK!135

commit f07bdc7eae99abaa0c7185c6871c062b7b8302ea
Author: Xu Chun Guang <xuchunguang@espressif.com>
Date:   Sun Feb 24 17:27:09 2019 +0800

    feat(lib): Recompile lwip, mbedtls and driver lib

commit 9f17ed945813b314090df3b30e1b3549431fa664
Author: Xu Chun Guang <xuchunguang@espressif.com>
Date:   Thu Feb 21 11:55:12 2019 +0800

    feat: Add some flags in Makefile to reduce bin size

commit be733b64937f2e7b80aa3ee09b35aa737d9f4bc4
Author: Xu Chun Guang <xuchunguang@espressif.com>
Date:   Sun Feb 24 17:23:26 2019 +0800

    feat: Recompile internal libs with -ffunction-sections and -fdata-sections

commit 26b2f655c9d24a68730d80b4b240f8a2c8f8f06a
Merge: 57fa2e7 03f6f12
Author: Xu Chun Guang <xuchunguang@espressif.com>
Date:   Sun Feb 24 17:15:19 2019 +0800

    Merge branch 'feature/add_vendor_class_id_option_in_dhcp' into 'release/v2.2.x'

    feat(lwip): add vendor class id option in lwip

    See merge request sdk/ESP8266_NONOS_SDK!134

commit 03f6f120a5c612668bcf8203e3039cd940338115
Author: Xu Chun Guang <xuchunguang@espressif.com>
Date:   Sun Feb 24 17:13:57 2019 +0800

    feat(lwip): Recompile lwip core

commit b802c938083dc04edcd4008f80d02d89ecbab0aa
Author: Zhang Jun Hao <zhangjunhao@espressif.com>
Date:   Wed Feb 20 21:22:43 2019 +0800

    feat(lwip): add vendor class id option in lwip

commit 57fa2e75ac140dd4fedb265af47704cd69cb5ed8
Merge: fb644c1 f0dc656
Author: Xu Chun Guang <xuchunguang@espressif.com>
Date:   Sun Feb 24 16:57:45 2019 +0800

    Merge branch 'bugfix/remove_fast_reconnect' into 'release/v2.2.x'

    fix(lwip): remove fast reconnect when ip lost

    See merge request sdk/ESP8266_NONOS_SDK!133

commit f0dc656752b1d5bbde3e511785117eac1a9483fa
Author: Xu Chun Guang <xuchunguang@espressif.com>
Date:   Sun Feb 24 16:56:31 2019 +0800

    feat(lib): Recompile lwip core

commit d481a1f729aa8ed278f2282a8f3d70361469224d
Author: Zhang Jun Hao <zhangjunhao@espressif.com>
Date:   Wed Feb 20 21:01:56 2019 +0800

    fix(lwip): remove fast reconnect when ip lost

commit fb644c1f3443946a212ba665bf23cda6abb114ce
Merge: 0f2579f f5b9a9c
Author: Xu Chun Guang <xuchunguang@espressif.com>
Date:   Sun Feb 24 16:53:59 2019 +0800

    Merge branch 'bugfix/remove_server_id_option_in_dhcp_renew_pkt' into 'release/v2.2.x'

    fix(lwip): remove server id option in dhcp renew packet

    See merge request sdk/ESP8266_NONOS_SDK!132

commit f5b9a9cfd04e3d35860d16eb1cb4ff5c79b3a0c9
Author: Xu Chun Guang <xuchunguang@espressif.com>
Date:   Sun Feb 24 16:52:20 2019 +0800

    fix(lwip): remove server id option in dhcp renew packet

commit 863c3eeab5b3035f2876fbf727b7e35eaa6c2592
Author: Zhang Jun Hao <zhangjunhao@espressif.com>
Date:   Wed Feb 20 20:36:53 2019 +0800

    fix(lwip): remove server id option in dhcp renew packet

commit 0f2579f075578eb5be4e88119d4d36893cb62deb
Merge: 2fec556 93db18b
Author: Xu Chun Guang <xuchunguang@espressif.com>
Date:   Fri Feb 15 17:51:25 2019 +0800

    Merge branch 'feature/add_broad_support_for_espnow' into 'release/v2.2.x'

    feat(espnow): Add broadcast packets support for espnow

    See merge request sdk/ESP8266_NONOS_SDK!119

commit 93db18b60eb177bd0b889a16203bdc7a6b8352ee
Author: Xu Chun Guang <xuchunguang@espressif.com>
Date:   Fri Feb 15 17:49:53 2019 +0800

    feat(espnow): Add broadcast packets support for espnow

commit 2fec556f5cd044e6247468dd4a301fb6247f4a4c
Merge: 34f1abd e2ac7e6
Author: Xu Chun Guang <xuchunguang@espressif.com>
Date:   Fri Feb 15 17:43:33 2019 +0800

    Merge branch 'bugfix/prohibit_sending_probe_request_when_passive_scan' into 'release/v2.2.x'

    fix(wifi): Prohibit sending probe request when passive scan mode

    See merge request sdk/ESP8266_NONOS_SDK!118

commit e2ac7e62f0ee74b40ddec347b1025cef083cda5c
Author: Xu Chun Guang <xuchunguang@espressif.com>
Date:   Fri Feb 15 17:36:24 2019 +0800

    fix(wifi): Prohibit sending probe request when passive scan mode

commit 34f1abd9c4196e02180fe41c42a4027d2433fbb2
Merge: 795629c 1ffd19b
Author: Xu Chun Guang <xuchunguang@espressif.com>
Date:   Thu Dec 27 16:48:51 2018 +0800

    Merge branch 'bugfix/fix_compile_error' into 'release/v2.2.x'

    fix: Add header file or function declaration to avoid compile error

    See merge request sdk/ESP8266_NONOS_SDK!98

commit 1ffd19b6112fe42e46bd0e508046d9c40dd1561e
Author: Xu Chun Guang <xuchunguang@espressif.com>
Date:   Thu Dec 27 16:30:48 2018 +0800

    fix: Add header or function declaration to avoid compile error

commit 795629cfe57f18425a2a49d6f1cd5cccddc968cb
Merge: e4fbef1 d69478a
Author: Xu Chun Guang <xuchunguang@espressif.com>
Date:   Thu Dec 27 10:47:28 2018 +0800

    Merge branch 'bugfix/disable_ampdu_packet' into 'release/v2.2.x'

    fix(pp): Disable receiving ampdu packet

    See merge request sdk/ESP8266_NONOS_SDK!97

commit d69478aa93db0e6c1d2665e74c5678cd471d5779
Author: Xu Chun Guang <xuchunguang@espressif.com>
Date:   Thu Dec 27 10:45:38 2018 +0800

    fix(pp): Disable receiving ampdu packet

commit e4fbef1ac88adeb4a3ebf0dfc1d054c8a96b4868
Merge: 1ced46d 5920f5f
Author: Xu Chun Guang <xuchunguang@espressif.com>
Date:   Wed Dec 26 18:38:42 2018 +0800

    Merge branch 'bugfix/connect_ap_fail_sometimes' into 'release/v2.2.x'

    fix(net80211): Connect wrong AP if there is hidden ssid AP around

    See merge request sdk/ESP8266_NONOS_SDK!96

commit 5920f5f364927b155b4510d1a8b4fa09a6d23efd
Author: Xu Chun Guang <xuchunguang@espressif.com>
Date:   Wed Dec 26 18:35:25 2018 +0800

    fix(net80211): Connect wrong AP if there is hidden ssid AP around

commit 1ced46d95b4e3f4521109124183c55ad46ad5d7d
Merge: 054c8e6 f23771e
Author: Xu Chun Guang <xuchunguang@espressif.com>
Date:   Wed Dec 26 18:26:34 2018 +0800

    Merge branch 'bugfix/connect_fail_with_some_11b_AP' into 'release/v2.2.x'

    fix(net80211): Connect AP fail if AP is only 11b mode

    See merge request sdk/ESP8266_NONOS_SDK!95

commit f23771ee28767912d8e5acccaa60aa752d44e2a7
Author: Xu Chun Guang <xuchunguang@espressif.com>
Date:   Wed Dec 26 18:23:56 2018 +0800

    fix(net80211): Connect AP fail if AP is only 11b mode

commit 054c8e61cea33a29e49dce3daf5f4d5268d8e77f
Merge: 8fccba3 e1af3b1
Author: Xu Chun Guang <xuchunguang@espressif.com>
Date:   Wed Dec 26 18:08:01 2018 +0800

    Merge branch 'bugfix/fix_status_code_37_in_ADDBA' into 'release/v2.2.x'

    fix(net80211): fix some AP does not support status code 37 in ADDBA reponse

    See merge request sdk/ESP8266_NONOS_SDK!94

commit e1af3b1c6b92c6fe9080fd02249b8d21dcb3c516
Author: Xu Chun Guang <xuchunguang@espressif.com>
Date:   Wed Dec 26 18:00:28 2018 +0800

    fix(net80211): fix some AP does not support status code 37 in ADDBA reponse

commit 8fccba3a3587a2d62fe977252ed039de6ad964a8
Merge: 2898f5e 122d6cc
Author: Xu Chun Guang <xuchunguang@espressif.com>
Date:   Tue Dec 11 16:06:16 2018 +0800

    Merge branch 'bugfix/WACS-87' into 'release/v2.2.x'

    fix(at): AT should return error directly when domain length is 64

    See merge request sdk/ESP8266_NONOS_SDK!87

commit 122d6cc0347fabfa33350a215b5fa66c5d40521a
Author: Xu Chun Guang <xuchunguang@espressif.com>
Date:   Tue Dec 11 16:01:58 2018 +0800

    fix(at): AT should return error directly when domain length is 64

commit 2898f5e51faa0e1fe896d0be0be54881593ffa7d
Merge: 17b0f71 ae7e448
Author: Xu Chun Guang <xuchunguang@espressif.com>
Date:   Tue Dec 11 14:12:00 2018 +0800

    Merge branch 'bugfix/CCMP_encryption' into 'release/v2.2.x'

    fix(net80211): Fix CCMP encryption was incompatible with some AP

    See merge request sdk/ESP8266_NONOS_SDK!86

commit ae7e4486cd88e3ccb0162f88eaf22c27ca29e5a5
Author: Xu Chun Guang <xuchunguang@espressif.com>
Date:   Tue Dec 11 13:57:09 2018 +0800

    fix(net80211): Fix CCMP encryption was incompatible with some AP

    See WACS-69!

commit 17b0f712c78e143909547e3ae6af0616403fbe54
Merge: b33255c 9b9fea1
Author: Xu Chun Guang <xuchunguang@espressif.com>
Date:   Mon Dec 10 14:25:56 2018 +0800

    Merge branch 'bugfix/pmk_error' into 'release/v2.2.x'

    fix: PMK does not update if the AP is not connected

    See merge request sdk/ESP8266_NONOS_SDK!85

commit 9b9fea1c4532fa992567cd696bd725d9578fc9a3
Author: Xu Chun Guang <xuchunguang@espressif.com>
Date:   Mon Dec 10 14:17:14 2018 +0800

    fix: PMK does not update if the AP is not connected

commit b33255c200900f3bf0be979fa3b67e4baba9de4b
Merge: e165720 c7fa5c5
Author: Xu Chun Guang <xuchunguang@espressif.com>
Date:   Mon Dec 10 14:07:54 2018 +0800

    Merge branch 'feature/update_sdk_version_v2.2.2-dev' into 'release/v2.2.x'

    feat(version): Update SDK version v2.2.2-dev

    See merge request sdk/ESP8266_NONOS_SDK!84

commit c7fa5c5c23daf04ee1cf180ce958e27fde384bb4
Author: Xu Chun Guang <xuchunguang@espressif.com>
Date:   Mon Dec 10 13:04:13 2018 +0800

    feat(version): Update SDK version v2.2.2-dev

commit e1657204890febd904d7f4a23460a9d7dd6c9afb
Merge: 62e2534 379f5d1
Author: Xu Chun Guang <xuchunguang@espressif.com>
Date:   Mon Dec 10 12:59:42 2018 +0800

    Merge branch 'bugfix/os_printf_plus' into 'release/v2.2.x'

    fix(system): The second parameter of va_start is incorrect

    See merge request sdk/ESP8266_NONOS_SDK!83

commit 379f5d11be6e8db966b4227a915608c7b35ec1a5
Author: Xu Chun Guang <xuchunguang@espressif.com>
Date:   Mon Dec 10 12:09:15 2018 +0800

    fix(system): The second parameter of va_start is incorrect

commit 62e25342b55ee7cb8a020afae53940cda6748b2e
Merge: bf35a44 e24ccf7
Author: Xu Chun Guang <xuchunguang@espressif.com>
Date:   Mon Dec 10 12:03:14 2018 +0800

    Merge branch 'bugfix/functions_attribute' into 'release/v2.2.x'

    fix(system): Fix bug the functions by calling in is_printf_plus are ICACHE_FLASH_ATTR attribute

    See merge request sdk/ESP8266_NONOS_SDK!82

commit e24ccf7d56f821d27280bd29cf81ff704bf0a872
Author: Xu Chun Guang <xuchunguang@espressif.com>
Date:   Mon Dec 10 11:59:29 2018 +0800

    fix(system): Fix bug the functions by calling in is_printf_plus are ICACHE_FLASH_ATTR attribute

    See TW23172

commit bf35a44055807e57e37224dcef9af4747e0d8a69
Merge: 3785592 edc4bce
Author: Xu Chun Guang <xuchunguang@espressif.com>
Date:   Mon Dec 10 11:54:04 2018 +0800

    Merge branch 'bugfix/sntp_string_error' into 'release/v2.2.x'

    fix(at): Fix there is one more 0x0A appending to the SNTP time string

    See merge request sdk/ESP8266_NONOS_SDK!81

commit edc4bce0418a28bbb07ea502cba73cd598936418
Author: Xu Chun Guang <xuchunguang@espressif.com>
Date:   Mon Dec 10 11:46:42 2018 +0800

    fix(at): Fix there is one more 0x0A appending to the SNTP time string

    See TW24307

commit 378559200fc62a8cad7ee730f2c4d42028a2535a
Merge: daa9dc4 6811836
Author: Xu Chun Guang <xuchunguang@espressif.com>
Date:   Mon Dec 10 11:26:20 2018 +0800

    Merge branch 'feature/add_ci_config' into 'release/v2.2.x'

    feat(CI): Add ci config file

    See merge request sdk/ESP8266_NONOS_SDK!80

commit 68118361deab30ac709ce583df97b0b6c572ead8
Author: Xu Chun Guang <xuchunguang@espressif.com>
Date:   Mon Dec 10 11:23:15 2018 +0800

    feat(CI): Specify SSC versin for nonos v2.2.x

commit 4996540742605821041da4c6c066983cb7785108
Author: Xu Chun Guang <xuchunguang@espressif.com>
Date:   Mon Dec 10 11:15:16 2018 +0800

    feat(CI): Add ci config file

commit daa9dc43eb7e6355c4774792e0d5830e62a334fb
Merge: 4b42483 a572d15
Author: Xu Chun Guang <xuchunguang@espressif.com>
Date:   Mon Dec 10 11:11:03 2018 +0800

    Merge branch 'feature/add_libhal' into 'release/v2.2.x'

    feat(lib): Add libhal.a for the latest toolchain

    See merge request sdk/ESP8266_NONOS_SDK!79

commit a572d15a7ba967a83c7ae7e480b136d6b0377b47
Author: Xu Chun Guang <xuchunguang@espressif.com>
Date:   Sun Dec 9 17:03:06 2018 +0800

    feat(lib): Add libhal.a for the latest toolchain

commit 4b424839929bdf18889ab52482fddf3f7ec07468
Merge: 9e14b9c fb5e994
Author: Xu Chun Guang <xuchunguang@espressif.com>
Date:   Mon Dec 10 10:57:31 2018 +0800

    Merge branch 'bugfix/autotrace_not_work' into 'release/v2.2.x'

    fix(at): Fix AT+RFAUTOTRACE does not work

    See merge request sdk/ESP8266_NONOS_SDK!76

commit fb5e99404b7ab6c1c4b941e0ddffa092ca4aa46d
Author: Xu Chun Guang <xuchunguang@espressif.com>
Date:   Sun Dec 9 17:25:52 2018 +0800

    fix(at): Fix AT+RFAUTOTRACE does not work

    See TW24285

commit 9e14b9c0525dc35c9057266f84c1e29643483465
Author: Espressif Systems <wujiangang@espressif.com>
Date:   Tue Jun 26 17:25:02 2018 +0800

    fix(wpa2): add eap method in nak

    internal gitlab: c6882168

commit 9960ef3d04c1e9a1f1b8131e281d6845fa2856cd
Author: Espressif Systems <wujiangang@espressif.com>
Date:   Fri Jun 8 16:20:36 2018 +0800

    feat(at): Update AT bin version 1.6.2

    internal gitlab: d589238f

commit bc8565bfa606ed1d2276e664d2745dc428850ce4
Author: Espressif Systems <wujiangang@espressif.com>
Date:   Fri Jun 8 16:19:13 2018 +0800

    fix(upgrade): Fix max bin sectors since rf cal sector should be reversed

    internal gitlab: ccc1f1e1

commit cc3c946d722f08a82dc06609d47a96d04b2fbef4
Author: Espressif Systems <wujiangang@espressif.com>
Date:   Thu Apr 19 17:17:52 2018 +0800

    feat(at): Update at version

    internal gitlab: 68588e1e

commit 14c481dcccbae3af15e578ecb9e9fa4e90b301c0
Author: Espressif Systems <wujiangang@espressif.com>
Date:   Thu Apr 19 17:17:06 2018 +0800

    fix(wifi): Fix force light sleep can not sleep issue

    internal gitlab: bf2914d9

commit 18756685f53d36e258b7d1bb09fe720c103658f7
Author: Espressif Systems <wujiangang@espressif.com>
Date:   Thu Apr 19 17:16:16 2018 +0800

    fix(system): Fix system relative time not accurate

    internal gitlab: 159fa179

commit 7ac311a93a1a4cd7cb747af006cd3f15fc63efe9
Author: Espressif Systems <wujiangang@espressif.com>
Date:   Thu Apr 19 17:15:24 2018 +0800

    fix(dhcp): Update MACADDR & IP after send DHCP ACK

    internal gitlab: d3045ea8

commit dc2fa0ffa2820c92849bbb495ed220c94646e175
Author: Espressif Systems <wujiangang@espressif.com>
Date:   Thu Apr 19 17:14:20 2018 +0800

    fix(espconn): Fix SSL/TLS connection set/clear opt error when using mbedtls library

    internal gitlab: 3353fe5d

commit fab6c581ab7164c040489a810f43e0680286769f
Author: Espressif Systems <wujiangang@espressif.com>
Date:   Wed Apr 4 11:44:08 2018 +0800

    fix(at): Fix wrong ssid query when the length of ssid is 32

    internal gitlab: aeca57d1

commit 6f57c0511df394cf2a42bb690f7de6e5240e0b67
Author: Espressif Systems <wujiangang@espressif.com>
Date:   Fri Mar 23 16:34:22 2018 +0800

    fix(wifi): Fix short of eapol resend mechanism in softAP

    fix connect issue when some phone connect to softAP

    internal gitlab: 12b23eb9

commit e0fbec7def2a5a3a178ee8d35947933f91c4f7d8
Author: Espressif Systems <wujiangang@espressif.com>
Date:   Fri Mar 23 16:33:51 2018 +0800

    fix(wps): Fix wps validate config for some special routers

    internal gitlab: 43b779b8

commit f8f27ceb1d1b64a40a74acd9ff18398e492f8558
Author: Espressif Systems <wujiangang@espressif.com>
Date:   Thu Feb 22 14:47:14 2018 +0800

    fix(api): Fix comments for wifi_s(g)et_country

    The return value type should be bool in comments block of country code API

    internal gitlab: 7989fc6c

commit 86acbd8c5ead615b2729013ca4efb8e3fa0828b1
Author: Espressif Systems <wujiangang@espressif.com>
Date:   Thu Feb 22 14:46:24 2018 +0800

    fix(wifi): Fix station connect issue when upgrade sdk from old version

    Some wifi parameters are not initialized, when upgrade from old version sdk, they are seen as -1 and 256, which leads check failure in new sdk.
    Need to initialize them.

    internal gitlab: 550abb2c

commit 3f065fe770dd05e6ee91f3816c9b81cb5a89a1d1
Author: Espressif Systems <wujiangang@espressif.com>
Date:   Tue Feb 13 17:55:43 2018 +0800

    fix(wifi): Fix current increase in light sleep mode

    updata AT bin

    internal gitlab: 26dfe37a

commit fcdedd636cc847d54f5576e804e4cde7e1147ea5
Author: Espressif Systems <wujiangang@espressif.com>
Date:   Tue Feb 6 20:45:58 2018 +0800

    feat(bin): Update AT bin for SDK 2.2.0

    internal gitlab: 0fecfc34

commit 05c812a1b1befa2bcd4ae861198e8b477eca4629
Author: Espressif Systems <wujiangang@espressif.com>
Date:   Tue Feb 6 20:41:56 2018 +0800

    feat(version): Update version to 2.2.0 and add version.h

    internal gitlab: 0ae50b53

commit c8255dd4adfa7c251c2609b1b6aeac0815a8ec97
Author: Espressif Systems <wujiangang@espressif.com>
Date:   Tue Feb 6 20:38:13 2018 +0800

    feat(example): Add AT bin version

    internal gitlab: 4fcb6dc5

commit b26fe7a34cc413a47acb7697358aacf0f2084e2b
Author: Espressif Systems <wujiangang@espressif.com>
Date:   Sat Feb 3 12:40:59 2018 +0800

    fix(at): Fix bug that there is no result when sending AT+CIPBUFSTATUS

    internal gitlab: 59e80668

commit 332c8c9e8291b2ee2daa6b965d8aae5ccfe7fe2d
Author: Espressif Systems <wujiangang@espressif.com>
Date:   Sat Feb 3 12:39:49 2018 +0800

    fix(mbedtls): Fix already freed and exception bug when ESP8266 as SSL/TLS server

    internal gitlab: b216a729

commit 13629abd7db441a4372f5b31223d5264fd377f43
Author: Espressif Systems <wujiangang@espressif.com>
Date:   Sat Feb 3 12:38:59 2018 +0800

    fix(mbedtls): Fix memory leak when ESP8266 as SSL/TLS client

    internal gitlab: beb6a868

commit c33ec7b57cb32fa57b8426eb30eed68646d769b4
Author: Espressif Systems <wujiangang@espressif.com>
Date:   Sat Feb 3 12:38:01 2018 +0800

    fix(wifi): Fix assert happen when smartconfig start, then restore at once

    internal gitlab: c52bd9a0

commit 2b59dd22b1d600436956c67d8576c8a884094bcd
Author: Espressif Systems <wujiangang@espressif.com>
Date:   Sat Feb 3 12:36:51 2018 +0800

    fix(lwip): Fix send TCP data with two or more pbuf

    internal gitlab: d3a48012

commit 775c579a8a698fdc3e3ea5d48e3e0357f9a2d2a4
Author: Espressif Systems <wujiangang@espressif.com>
Date:   Sat Feb 3 12:35:54 2018 +0800

    fix(lwip): Fix the length of TCP data in one packet is more than 1460

    internal gitlab: a9082bb3

commit cab958da920a9c29b09b8c8f906780a5d3d0427b
Author: Espressif Systems <wujiangang@espressif.com>
Date:   Mon Jan 15 10:40:19 2018 +0800

    fix(lwip): Fix the bug of lwip output

    pbuf list should be send recursive.

    internal gitlab: 255a6546

commit 67a8b1f9cadea29b14e6cd32816d5b101f99fc2d
Author: Espressif Systems <wujiangang@espressif.com>
Date:   Mon Jan 15 10:39:35 2018 +0800

    fix(smartconfig): Fix the smartconfig scan time issue

    This is imported because the scan_config structure changed.

    internal gitlab: b8f454b8

commit fa3fed4af25db963bfeff91cf14f57ea1d78babf
Author: Espressif Systems <wujiangang@espressif.com>
Date:   Mon Jan 15 10:38:40 2018 +0800

    fix(at): Fix the bug that it should be error when the max connection number is more than 5

    internal gitlab: 9f5acb88

commit 879eb93780b8d045c351a9d431c1b44444d66fce
Author: Espressif Systems <wujiangang@espressif.com>
Date:   Mon Jan 15 10:37:43 2018 +0800

    fix(at): Fix the incorrect link id when client connection number reaches max

    internal gitlab: 69053443

commit f18c6fc7bc00a632ceb22e04e7d441711e879c6b
Author: Espressif Systems <wujiangang@espressif.com>
Date:   Mon Jan 15 10:36:46 2018 +0800

    feat(at): Add AT+SYSMSG to enable some report information

    internal gitlab: 0fd8e7f5

commit 4899e5084410a6b82e4af9393e4de712bd3a730a
Author: Espressif Systems <wujiangang@espressif.com>
Date:   Mon Dec 18 16:06:26 2017 +0800

    fix(mbedtls): Fix reconnect_callback is not triggered when handshake fail

    Fix reconnect_callback not triggered and disconnect return error.

    internal gitlab: 71a6715a

commit a3b79cc46c05fce061272248ebc5f0ac746b252b
Author: Espressif Systems <wujiangang@espressif.com>
Date:   Mon Dec 18 16:05:12 2017 +0800

    fix(example): Fix forget to add integer parameter when print integer

    internal gitlab: e5dbe905

commit 1f492fbe19a2c2d1761f6aad6bf92af21b6c086b
Author: Espressif Systems <wujiangang@espressif.com>
Date:   Thu Dec 14 16:27:18 2017 +0800

    feat(mesh): Remove mesh support

    Due to human resource limitation, we will not support esp8266 mesh.
    We will release esp32 wifi mesh soon.

    internal gitlab: a6dd4b1

commit c02ab5a4288cdbf2162e82ea49d0d3394ea9b13b
Author: Espressif Systems <wujiangang@espressif.com>
Date:   Thu Dec 14 16:22:38 2017 +0800

    feat(example): Use libmbedtls.a instead of libssl.a in mqtt demo

    internal gitlab: d14707f7

commit 09959c66adc866c11c00001c5167384643cf7248
Author: Espressif Systems <wujiangang@espressif.com>
Date:   Thu Dec 14 16:21:20 2017 +0800

    feat(system): Add softap distributes station ip event

    internal gitlab: ef8fcf30

commit d09b74d192593bb630993cf69dd36817b7da56c7
Author: Espressif Systems <wujiangang@espressif.com>
Date:   Tue Dec 12 15:17:03 2017 +0800

    feat(at): Add AT+CIPSERVERMAXCONN

    Set the Maximum Connections Allowed by Server
    AT+CIPSERVERMAXCONN=<num>

    internal gitlab: ad9c4265

commit 490911953db99e4956ec8f741008a84b1034379e
Author: Espressif Systems <wujiangang@espressif.com>
Date:   Tue Dec 12 15:15:42 2017 +0800

    fix(at): Fix the message is incorrect when creating UDP if ip is a domain name

    internal gitlab: 8e60bbdc

commit 559e72bab2a8631171b484a2f10db6b298227956
Author: Espressif Systems <wujiangang@espressif.com>
Date:   Tue Dec 12 15:14:36 2017 +0800

    fix(at): Fix GSLP too long time

    Check the return value of system_deep_sleep.

    internal gitlab: 9fa0cee1

commit 0f464480e3955472c3d37a2e8ad922208897b420
Author: Espressif Systems <wujiangang@espressif.com>
Date:   Tue Dec 12 15:13:50 2017 +0800

    feat(at): Update AT version to 1.6.0.0

    internal gitlab: ae9a473e

commit 099f9090e7fec4696dc9cc9efb4de3f9f01de16a
Author: Espressif Systems <wujiangang@espressif.com>
Date:   Tue Dec 12 14:34:45 2017 +0800

    feat(wifi): Add keep connection for station to keep connection with AP

    internal gitlab: 71f993c8

commit 477d338a3c9f7aa7a81a319cff0f201151462867
Author: Espressif Systems <wujiangang@espressif.com>
Date:   Tue Dec 12 14:33:05 2017 +0800

    fix(wifi): Fix scan do not start after connect

    1. add max scan and min scan timer
    2. change the scan timer set mechanism

    internal gitlab: 7e9e6ca4

commit cd54d8f0d3620f7b30416259dde777ba743b9b1e
Author: Espressif Systems <wujiangang@espressif.com>
Date:   Tue Dec 12 14:32:09 2017 +0800

    fix(wifi): The start channel can be any valid channel

    Some country, such as Israel, the start channel is not from 1,
    so remove the limitation that the start channel should be from 1.

    internal gitlab: 3481675b

commit 68e9a6c2854c4917f2f8dda06d68ea43bc262438
Merge: d8bc8e6 9d41059
Author: Wu Jian Gang <wujiangang@espressif.com>
Date:   Fri Dec 8 12:04:02 2017 +0800

    Merge pull request esp8266#39 from itmm/master

    added C++ support

commit d8bc8e6e9d88e05e46a6b02c3c49d04ff07a200e
Merge: 76b00b4 6ac645d
Author: Wu Jian Gang <wujiangang@espressif.com>
Date:   Fri Dec 8 12:02:31 2017 +0800

    Merge pull request esp8266#15 from marcelstoer/patch-1

    Update Readme

commit 76b00b4222b4cc9e1247ca72b3750c1586f2e4cd
Author: Espressif Systems <wujiangang@espressif.com>
Date:   Fri Dec 8 11:37:52 2017 +0800

    fix(mbedtls): Fix load cert fail when the private key in the bin header

    Fix load cert fail when the private key in the bin header.

    internal gitlab: 5e75cbba

commit d62e5a70d894028066bfe47dfd6e2a8a39dd5483
Author: Espressif Systems <wujiangang@espressif.com>
Date:   Fri Dec 8 11:33:55 2017 +0800

    feat(wifi): Add new esp_init_data_default v08 bin

    Adjusted the default target power, from the 34th byte to the 39th byte of esp_init_data_default.bin,  lower the target power of each level, optimized the frequency spectrum Mask and the EVM.

    Rename old bin to v05.bin

    first byte as magic: 0x05, second byte as version: 0x08

    internal gitlab: a60b151f

commit d437b37afb9c7085041eace938c2450b90324819
Author: Espressif Systems <wujiangang@espressif.com>
Date:   Tue Dec 5 15:09:47 2017 +0800

    fix(net80211): Fix Null pointer in ieee80211_rfid_locp_recv

    github issue: esp8266#36

    internal gitlab: 35037f64

commit 21f63d80d37c8e63fed4bc467c37e040ba2219f6
Author: Espressif Systems <wujiangang@espressif.com>
Date:   Tue Dec 5 15:08:25 2017 +0800

    feat(at): Add country code start channel in AT+CWCOUNTRY

    internal gitlab: fcd40d2e

commit cf608e9c130335d8585f83161258d34bba75b707
Author: Espressif Systems <wujiangang@espressif.com>
Date:   Tue Dec 5 15:07:36 2017 +0800

    fix(mbedtls): Fix disconnect callback function never be called

    Fix disconnect callback function is not called when error number is -7880

    internal gitlab: d2bca18e

commit fe32f7f9bd4741d77041b7ff2e10647055f7f47e
Author: Espressif Systems <wujiangang@espressif.com>
Date:   Tue Dec 5 15:06:32 2017 +0800

    fix(api): Fix os_calloc declaration

    Fix the definition error of os_calloc

    internal gitlab: 59208741

commit 493e8c0ba4ec2c3fd98dc4c1db4668e572df2502
Author: Espressif Systems <wujiangang@espressif.com>
Date:   Tue Dec 5 15:05:35 2017 +0800

    feat(mbedtls): Speed up mbedtls handshake process

    Speed up mbedtls handshake process

    internal gitlab: 468d320c

commit d6fa6dff795f5e72e2fe6571f8acd194ea2610cc
Author: Espressif Systems <wujiangang@espressif.com>
Date:   Tue Dec 5 15:04:19 2017 +0800

    fix(at): Fix that AT+CIPSTART causes busy if the server is connected at the same time

    internal gitlab: c217922d

    fix esp8266#50

commit f9315ea1506f6e1c530ab0f5bf885d49fd813c46
Author: Espressif Systems <wujiangang@espressif.com>
Date:   Tue Dec 5 15:02:43 2017 +0800

    feat(at): Add command AT+CWCOUNTRY

    - Add AT+CWCOUNTRY_CUR and AT+CWCOUNTRY_CUR?
    - Add AT+CWCOUNTRY_DEF and AT+CWCOUNTRY_DEF?

    - AT+CWCOUNTRY_DEF(CRU)=<policy>,<country_code>,<channel number>
      - policy --- 1: use manual country code; 0: use auto country code
      - country_code: country code information, the max length is 2 character
      - channel number: total channel number, the channel begin with 1

    internal gitlab: 09a16299

commit 02f48ab238765497412dc72b41d736c0ddfd409b
Author: Espressif Systems <wujiangang@espressif.com>
Date:   Tue Dec 5 15:01:07 2017 +0800

    feat(at): Enable scan time, scan type and add scan result information

    Update AT+CWLAP:
    - AT+CWLAP=<SSID>[,<mac>,<ch>,<scan_type>,<scan_time_min>,<scan_time_max>]
      - scan_type --- 0: active scan; 1: passive scan
      - scan_time_min --- [0, 1500] the minimum time when active scan, if it's passive scan, it is ignored
      - scan_time_max --- [0, 1500] the maximum time when active scan, if it's passive scan, it is passive time

    Update AT+CWLAP result information:
    - +CWLAP:<ecn>,<ssid>,<rssi>,<mac>,<ch>,<freq offset>,<freq calibration>,<pairwise cipher>,<group cipher>,<bgn>,<wps>

    Update AT+CWLAPOPT=<sort>,<mask>
    - Update mask from 0x7f to 0x7ff

    internal gitlab: 061fa77a

commit d688eafc2820d88724f4287fbed3fd8465b10529
Author: Espressif Systems <wujiangang@espressif.com>
Date:   Tue Dec 5 14:57:27 2017 +0800

    fix(wifi): bugfix of scan fail after connected if max or min scan time set to zero

    internal gitlab: 4773073b

commit 28dfea8256dd1f69ad8de8bf9dc2826cffdd4ebf
Author: Espressif Systems <wujiangang@espressif.com>
Date:   Tue Dec 5 14:55:26 2017 +0800

    fix(wifi): Fix softAP wrong behavior after call system_timer_reinit

    internal gitlab: 5f066211

commit 3be6c849df45e3207c1c1e8e487182b9b1c7f364
Author: Espressif Systems <wujiangang@espressif.com>
Date:   Tue Nov 28 17:18:42 2017 +0800

    fix(wifi): Remove max_tx_power in wifi_country_t in libs

    internal gitlab: 9d69f95b

commit 4671b17cc9fc6ed6787c2d310daf8accccf29c8d
Author: Espressif Systems <wujiangang@espressif.com>
Date:   Tue Nov 28 13:59:51 2017 +0800

    fix(api): Fix ets_delay_us declaration

    internal gitlab: c67a270f

commit cfe3c3f3747c0789d46f99fff525eee80bdc4cd4
Author: Espressif Systems <wujiangang@espressif.com>
Date:   Tue Nov 28 13:58:41 2017 +0800

    feat: Add USE_OPTIMIZE_PRINTF in third_party/Makefile

    save more heap

    internal gitlab: d0744654

commit 5873d94ee3dcfab3cd7ea89faa25d56b443120f5
Author: Espressif Systems <wujiangang@espressif.com>
Date:   Tue Nov 28 13:57:02 2017 +0800

    fix(mbedtls): Fix call send callback function failed

    Clear the pcommon variable when the connection is disconnected

    tw16346

    internal gitlab: b157840c

commit a1fa90a66b843e287c08a7d7222d11ebb794f146
Author: Espressif Systems <wujiangang@espressif.com>
Date:   Tue Nov 28 12:01:11 2017 +0800

    fix(mbedtls): Fix memory leak

    Avoid crashes because multiple TCP connections come in simultaneously

    tw16346

    internal gitlab: b3fc5ca8

commit 8ea75e7098742dbadccd959c1c2721cd36c55105
Author: Espressif Systems <wujiangang@espressif.com>
Date:   Tue Nov 28 11:59:02 2017 +0800

    fix(lwip): Fix sequence number error of RST+ACK

    bug of lwip, tw16549

    Fix sequence number error of RST+ACK when receive FIN+ACK.

    internal gitlab: 8e1a0451

commit 4ded6eaf21260549130b0f8a6176be2305245b5c
Author: Espressif Systems <wujiangang@espressif.com>
Date:   Tue Nov 28 11:56:36 2017 +0800

    fix(example): Fix IoT_Demo user sector error

    internal gitlab: 4933a9da

commit 9a3af298ee844aaa4b22f1a6ec23dde2cee5d6fc
Author: Espressif Systems <wujiangang@espressif.com>
Date:   Tue Nov 28 11:51:53 2017 +0800

    feat(wifi): Record more information of scanned ap

    internal gitlab: 0ac8d2e0

commit c5d46e9e52ce97866c2e86070748defd3cc5a070
Author: Espressif Systems <wujiangang@espressif.com>
Date:   Tue Nov 28 11:48:16 2017 +0800

    feat(wifi): Add country code API

    internal gitlab: 84786367

commit b4478720e5f12b78438dc8bb8d32b482b74734de
Author: Espressif Systems <wujiangang@espressif.com>
Date:   Tue Nov 28 11:46:52 2017 +0800

    wifi: Add scan threshold and dwell time

    internal gitlab: 59b261fa

commit 61248df5f6d45d130313b412f7492f581fd4cadf
Author: Espressif Systems <wujiangang@espressif.com>
Date:   Fri Nov 3 20:09:55 2017 +0800

    feat(examples): Update mqtt demo and auto bin generate script

    - add sntp feature to mqtt demo
    - add auto-generation bin feature
    - refactor mqtt_config.h
    - make auto-configuration SSL/TLS
    - add README.md for mqtt demo
    - add README.md for auto-generation bin

    internal gitlab: 6f2a8810

commit 8183d5564e5267ba857397c321405efd3419f303
Author: Espressif Systems <wujiangang@espressif.com>
Date:   Fri Nov 3 20:06:25 2017 +0800

    feat(at): Use new espconn_recv to fix tcp server issue in some case

    internal gitlab: bc8d8855

commit 5ee8215c25e9b0ec1dcfcba13820022943c19158
Author: Espressif Systems <wujiangang@espressif.com>
Date:   Fri Nov 3 19:55:04 2017 +0800

    feat(espconn): Modification for espconn

    1. Modify update TCP receive window size from application to library
    2. Add option for support read data initiatively

    internal gitlab: f9521739

commit cba0686be85102831b2684bccf4c44f868de0906
Author: Espressif Systems <wujiangang@espressif.com>
Date:   Fri Nov 3 17:54:24 2017 +0800

    feat(lib): Remove time function in libmain

    internal gitlab: 42918b5b

commit 33f234f4a6defafec2f9442dcc0bb1ebdb80c42f
Author: Espressif Systems <wujiangang@espressif.com>
Date:   Mon Oct 23 18:25:23 2017 +0800

    fix(wifi): Remove group key entry before connecting to AP

    internal gitlab: c30c9932

commit b762ea222ee94b9ffc5e040f4bf78dd8ba4db596
Author: Espressif Systems <wujiangang@espressif.com>
Date:   Fri Oct 13 15:14:49 2017 +0800

    fix(wpa): Fix wpa wpa2 ptk/gtk reinstallation vulnerability

    internal gitlab: 2c353d05

commit 990246645199b31807482ed23f7009e8dc53394b
Author: Espressif Systems <wujiangang@espressif.com>
Date:   Fri Oct 13 15:03:07 2017 +0800

    feat(err_t): Redefine err_t to s32_t

    Recompile related libs

    internal gitlab: 8f08806e

commit 10aea1782b2cac518a1a30eb8b4e046ed76c8d7c
Author: Espressif Systems <wujiangang@espressif.com>
Date:   Wed Oct 11 19:32:07 2017 +0800

    fix(at): Fix some bugs of AT

    AT:
    1. Fix bug that getting error irom string when printing;
    2. Fix bug that baudrate is incorrect when set uart baudrate 1200;
    3. Fix bug that it should return error when wrong link id;
    4. Fix bug that DNS uses auto mode by default;

    internal gitlab: 153eba8e

commit 9d41059954132430a3e95851adba5cac0a889336
Author: Timm Knape <timm.knape@adamhall.com>
Date:   Mon Aug 28 11:21:18 2017 +0200

    added C++ support

commit 6ac645da1d919ba1eb9dc493a8585ffa9ad01868
Author: Marcel Stör <marcelstoer@users.noreply.github.com>
Date:   Mon Jun 19 20:28:52 2017 +0200

    Update links
ascillato pushed a commit to ascillato/Arduino that referenced this issue Nov 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants