Search found 10 matches

by thuwrx10
Sat Sep 12, 2015 9:38 am
Forum: ESP8266 SDK
Topic: lwipopts.h还是lwip/opt.h?
Replies: 1
Views: 2168

lwipopts.h还是lwip/opt.h?

刚发布的lwIP for SDK 1.3.0代码里有几乎相同的两个文件lwipopts.h和lwip/opt.h,其中个别宏定义有差别。

在各个源文件里,这两个头文件中的任一个都有被include,这是怎么回事?

另外这个项目是不是比官方的lwIP要好一些?似乎官方的lwIP去除了好些功能,比如snmp
https://github.com/kadamski/esp-lwip
by thuwrx10
Fri Sep 11, 2015 9:32 am
Forum: ESP8266 SDK
Topic: SDK编程手册有错误/Mistake in SDK Programming Manual
Replies: 2
Views: 2014

Re: SDK编程手册有错误/Mistake in SDK Programming Manual

Espressif_Faye wrote:您好,

system_rtc_clock_cali_proc 的返回值 bit11 ~ bit0 为小数部分
因此,
如需取整,则为 system_rtc_clock_cali_proc()>>12
如需保留 2 位小数部分,则为 (system_rtc_clock_cali_proc() x 100)>>12

感谢您的热心反馈,我们将更新文档,以便于理解。


还是直接说system_rtc_clock_cali_proc返回值的单位是1/4096微秒比较好。
by thuwrx10
Mon Sep 07, 2015 4:59 pm
Forum: ESP8266 SDK
Topic: SDK编程手册有错误/Mistake in SDK Programming Manual
Replies: 2
Views: 2014

SDK编程手册有错误/Mistake in SDK Programming Manual

在第28页,介绍system_rtc_clock_cali_proc的返回值: RTC 时钟周期,单位:微秒,bit11 ~ bit0 为小数部分(取 2 位小小数并 * 100:(RTC_CAL*100)>> 12 ) (RTC_CAL*100)>>12得到的数字的单位是什么?光年? On page 29, return of the function system_rtc_clock_cali_proc(): RTC clock period (in us), bit11~ bit0 are decimal. ((RTC_CAL * 100)>> 12 ) What's the unit ...
by thuwrx10
Tue Sep 01, 2015 8:24 pm
Forum: ESP8266 SDK
Topic: Announce: Free book on the ESP8266
Replies: 12
Views: 12628

Re: Announce: Free book on the ESP8266

Wow, great job!

How about setting up a wiki, as everyone is able to contribute?
by thuwrx10
Tue Sep 01, 2015 7:43 pm
Forum: ESP8266 SDK
Topic: 请问修改模块在路由器里显示名字的api
Replies: 3
Views: 2463

Re: 请问修改模块在路由器里显示名字的api

bool wifi_station_set_hostname(char* hostname)
2C-ESP8266编程手册1.3.0中文版第53页。
多看文档。
by thuwrx10
Tue Sep 01, 2015 7:39 pm
Forum: ESP8266 SDK
Topic: 自己的 ota upgrade server
Replies: 30
Views: 26378

Re: 自己的 ota upgrade server

My code works properly (Normally it finishes upgrade and reboot before check_upgrade_result is called): #include "ota_upgrade.h" #include "upgrade.h" #include "osapi.h" #include "mem.h" struct espconn upgrade_connection; struct _esp_tcp upgrade_tcp; struct upg...
by thuwrx10
Sat Aug 29, 2015 12:55 pm
Forum: General Q&A
Topic: Does ESP8266 actually have hardware I2C?/ESP8266有硬件I2C吗?
Replies: 4
Views: 7181

Does ESP8266 actually have hardware I2C?/ESP8266有硬件I2C吗?

Found that the I2C code in Non-OS SDK 1.3 is actually a bit-bang method. Is it that ESP8266 doesn't have peripheral circuit to perform I2C function? Or the hardware I2C driver code is still under development?

刚发现非实时操作系统SDK 1.3版里的I2C驱动实际上是软件I2C。ESP8266是不是没有硬件I2C的电路?还是硬件I2C的驱动仍在开发中?
by thuwrx10
Sat Aug 29, 2015 12:47 pm
Forum: General Q&A
Topic: Need some disambiguation in 8A-GPIO document/文档8A-GPIO有表达不清楚的地方需要释疑
Replies: 1
Views: 2157

Need some disambiguation in 8A-GPIO document/文档8A-GPIO有表达不清楚的地方需要释疑

It is said in 2.2.4. Output low level register GPIO_OUT_W1TC in document 8A that, if the related bit is set to be 1, the IO output is low level (at the same time, users should enable the output). I wander what does "user should enable the output" mean? Does it mean that the user should kee...
by thuwrx10
Fri Aug 21, 2015 5:57 pm
Forum: ESP8266 SDK
Topic: Please use Espressif Flash Download Tool !!!
Replies: 13
Views: 51065

Re: Please use Espressif Flash Download Tool !!!

I'm using Ubuntu as my OS and I was not able to run python code of Flash Download Tool. So I considered esptool first, and experienced a weird problem. Finally I discovered that the boot sector has some special bytes related to SPI flash config. The Espressif Flash Download Tool "secretly"...
by thuwrx10
Wed Aug 19, 2015 4:18 pm
Forum: Report Bugs
Topic: Official Flash Download Tool not able to start on Ubuntu 15.04
Replies: 1
Views: 1896

Official Flash Download Tool not able to start on Ubuntu 15.04

I downloaded flash_download_tool_python2.6-2.7_wxpython3.0_release_v2.0_SOURCE, solved dependency problems, and ran frame_test.py $ python frame_test.py frame_test.py:139: wxPyDeprecationWarning: Using deprecated class PySimpleApp. app = wx.PySimpleApp() Traceback (most recent call last): File "...

Go to advanced search