Search found 23 matches

by baoshi
Tue Jul 21, 2015 2:19 pm
Forum: ESP8266 SDK
Topic: About new ESP-NOW functions on SDK 1.2.0
Replies: 21
Views: 20504

Re: About new ESP-NOW functions on SDK 1.2.0

Hi Faye,

I tried the code you provided.

It seems I always get -4 error from esp_now_add_peer call. It there any clue what I did wrongly? (esp_now_init and esp_now_set_self_role is ok).

Also, would you please give a little explanation what is CONTROLLER role and what is SLAVE role?

Thanks

Baoshi
by baoshi
Wed Jul 15, 2015 12:07 am
Forum: ESP8266 SDK
Topic: Latest RTOS SDK with memory optimization
Replies: 3
Views: 1814

Latest RTOS SDK with memory optimization

I was looking at the recent RTOS SDK with memory optimization. It seems ICACHE_FLASH_ATTR has been added onto many FreeRTOS portable functions, especially those xxxFromISR. I understand the xxxFromISR function are not interrupt handlers, but they may be called from ISRs. It is safe to have them in t...
by baoshi
Tue Jun 30, 2015 12:17 am
Forum: ESP8266 SDK
Topic: Does lwip socket in RTOS supports select()?
Replies: 2
Views: 4251

Re: Does lwip socket in RTOS supports select()?

I got it. It seems tv_sec is internally counted by FreeRTOS tick. I did the following trick and the timeout works. int ICACHE_FLASH_ATTR mqtt_esp_read(int my_socket, unsigned char* buffer, int len, int timeout_ms) { struct timeval tv; fd_set fdset; int rc = 0; int rcvd = 0; FD_ZERO(&fdset); FD_S...
by baoshi
Tue Jun 30, 2015 12:00 am
Forum: ESP8266 SDK
Topic: Does lwip socket in RTOS supports select()?
Replies: 2
Views: 4251

Does lwip socket in RTOS supports select()?

Hi, I created the following code to test the socket API in esp_iot_rtos_sdk. int ICACHE_FLASH_ATTR mqtt_esp_read(int my_socket, unsigned char* buffer, int len, int timeout_ms) { struct timeval tv; fd_set fdset; int rc = 0; int rcvd = 0; FD_ZERO(&fdset); FD_SET(my_socket, &fdset); tv.tv_sec =...
by baoshi
Tue Jun 09, 2015 12:39 pm
Forum: ESP8266 HDK
Topic: 又没有关于boot mode的说明
Replies: 5
Views: 8242

Re: 又没有关于boot mode的说明

Hi YimingLi,
Thanks for demystifying it.
Baoshi
by baoshi
Tue Jun 09, 2015 10:25 am
Forum: ESP8266 HDK
Topic: 又没有关于boot mode的说明
Replies: 5
Views: 8242

Re: 又没有关于boot mode的说明

Yes this is as close as I can get.

So boot mode (x, y)
x is 0-7 according to Strapping page/
What is y?

Thanks
by baoshi
Mon Jun 08, 2015 9:37 pm
Forum: ESP8266 HDK
Topic: 又没有关于boot mode的说明
Replies: 5
Views: 8242

又没有关于boot mode的说明

ESP8266在reset的时候可以从UART0收到类似
ets Jan 8 2013,rst cause:2, boot mode:(3,6)
的信息。
能不能官方说明一下,rst cause, boot mode的各个数字是什么意思。
比如我看过
boot mode:(3,6) (3,7) 是flash boot
boot mode: (1,6) (1, 7) 是 UART download
还有一些奇怪的数字比如(3,0)就不知道怎么回事了
谢谢
by baoshi
Thu May 07, 2015 12:51 pm
Forum: ESP8266 HDK
Topic: Excessive current on GPIO0 when driving to ground?
Replies: 3
Views: 6075

Re: Excessive current on GPIO0 when driving to ground?

Currently I use a series resistor of 4.7K between GPIO0 and my controller board. I pull RESET and GPIO0 down, wait 50ms, release RESET but continue pull down GPIO0, wait 20ms, then release GPIO0. It seems the chip enters bootloader mode successfully. The 50ms and 20ms are based on experiment. Actual...
by baoshi
Sat Apr 25, 2015 11:32 am
Forum: ESP8266 SDK
Topic: SDK 1.0.1 and 8MBit Flash?
Replies: 2
Views: 2883

SDK 1.0.1 and 8MBit Flash?

The recently released SDK 1.0.1 has this line in the readme file: *NOTICE*: If you use Esp Flash Download Tool, please MAKE SURE to choose FLASH SIZE to 8Mbit. I found most of the existing modules are having a 4Mbit flash (2504QBT). Does it means AT firmware later than 1.0.1 is unable to run on curr...
by baoshi
Wed Apr 01, 2015 1:01 pm
Forum: ESP8266 SDK
Topic: Testing Current Consumption using datalogger....
Replies: 9
Views: 7228

Re: Testing Current Consumption using datalogger....

I use a "uCurrent" (8kHz bandwidth) to measure the current consumption, checking output from an oscilloscope. ESP8266 seems to be sucking power on 100ms interval. I guess this is due to some network activity. If you did your log every 100ms, you could have missed something or the result is...

Go to advanced search