ESP8266 Developer Zone The Official ESP8266 Forum 2023-02-02T00:45:52+08:00 https://bbs.espressif.com:443/feed.php?f=65 2023-02-02T00:45:52+08:00 2023-02-02T00:45:52+08:00 https://bbs.espressif.com:443/viewtopic.php?t=78080&p=107846#p107846 <![CDATA[General Q&A • Implementing a very simple http-server and http-client both running on an ESP8266 board]]> https://mongoose.ws/tutorials/esp8266/http-client-server/

Statistics: Posted by Tom83 — Thu Feb 02, 2023 12:45 am


]]>
2023-02-01T20:03:10+08:00 2023-02-01T20:03:10+08:00 https://bbs.espressif.com:443/viewtopic.php?t=78077&p=107763#p107763 <![CDATA[General Q&A • Smartconfig Not Working]]>
https://github.com/espressif/ESP8266_RT ... fig_main.c

And used the EspTouch app for iPhone and used the EspressifTouchSDK 1.1.0 for iOS. In both cases, once the device receives the SSID-Password, it does not send a success response back to tell the app that the smartconfig has successfully finished.

Is there a way around this?

Statistics: Posted by Amorphous — Wed Feb 01, 2023 8:03 pm


]]>
2023-01-19T22:39:03+08:00 2023-01-19T22:39:03+08:00 https://bbs.espressif.com:443/viewtopic.php?t=77872&p=106901#p106901 <![CDATA[General Q&A • Implementing simple http-server and http-client on ESP8266]]> https://mongoose.ws/tutorials/esp8266/http-client-server/
This example uses the ESP8266 RTOS SDK toolchain.

Statistics: Posted by Tom83 — Thu Jan 19, 2023 10:39 pm


]]>
2022-11-07T00:36:01+08:00 2022-11-07T00:36:01+08:00 https://bbs.espressif.com:443/viewtopic.php?t=76132&p=103088#p103088 <![CDATA[General Q&A • Esp8266-01 as wifi connection for raspberry pi 2b]]>
I search on internet but with no success.

Any help will be appreciated .

Thaks.

Statistics: Posted by hiddenotebook — Mon Nov 07, 2022 12:36 am


]]>
2022-10-17T17:20:19+08:00 2022-10-17T17:20:19+08:00 https://bbs.espressif.com:443/viewtopic.php?t=75761&p=102485#p102485 <![CDATA[General Q&A • How to achieve shut down mode 0.5uA]]> How to achieve shut down mode?
I had tried to set the CHIP_EN pin to low but I get high current consumption (more then 100uA).

Statistics: Posted by rayleong — Mon Oct 17, 2022 5:20 pm


]]>
2022-10-13T00:45:34+08:00 2022-10-13T00:45:34+08:00 https://bbs.espressif.com:443/viewtopic.php?t=75726&p=102397#p102397 <![CDATA[General Q&A • Does the Light-sleep function disable the wifi radio?]]>
Sleep-Mode Table.JPG

Statistics: Posted by xytsrm — Thu Oct 13, 2022 12:45 am


]]>
2022-09-20T22:48:07+08:00 2022-09-20T22:48:07+08:00 https://bbs.espressif.com:443/viewtopic.php?t=75651&p=102178#p102178 <![CDATA[General Q&A • Peer Registration]]> I'm using ESP8266's & ESP32's with microPython; both using ESPNow communications. Using an ESP8266 as a sender doesn't require the ESPNow peer registration, however the ESP32 microPython does require an ESPNow sender to register peers.

What is the rational for "registration"?
As understood there's a limit of 10 encrypted devices, or 20 unencrypted devices; is this due to a fixed registration data array size?
If there is only a single receiver, it appears that any number of senders (ESP8266, or ESP32) can be used; is this true?

MM

Statistics: Posted by xytsrm — Tue Sep 20, 2022 10:48 pm


]]>
2022-05-22T23:02:54+08:00 2022-05-22T23:02:54+08:00 https://bbs.espressif.com:443/viewtopic.php?t=75384&p=101273#p101273 <![CDATA[General Q&A • POST Data from ESP826 to php file on xammpp server]]> Solar Tracker using a ESP8266.
I have updated the ESP8266:-
AT version:1.7.5.0(Oct 9 2021 09:26:04)
SDK version:3.0.5(b29dcd3)
compile time:Oct 15 2021 18:05:30

The problem is I cannot get it to post the data, all other commands work OK
I was trying originally with 8 variables but have now just setup a 2 field
Database to test it. Sending a POST from a browser using the same PHP files
it works OK. But when sent from ESP8266 it comes up with "Undfined Array Key"
which is because the server is not reciveing the POST variable information.
This is the Commads sent:-

Code:

AT+CIPSTART=0,"TCP","192.168.1.103",80\r\n
AT+CIPSEND=0,132\r\n
POST /insert.php, HTTP/1.1\r\n 
Host: 192.168.1.103\r\n         
User-Agent: Mozilla\r\n   
Content-Type: application/x-www-form-urlencoded\r\n\r\n"]   
\r\n\r\n
Content-Length: 20\r\n     
\r\n\r\n                     
Col_1=,Dec Value1,&Col_2=,Dec Value2,\r\n\r\n   
\r\n\r\n

The response from ESP8266:-

AT+CIPSTART=0,"TCP","192.168.1.103",80
0,CONNECT

OK
AT+CIPSEND=0,132

OK
>

Recv 132 bytes

SEND OK

+IPD,0,488:HTTP/1.1 302 Found
Date: Wed, 18 May 2022 17:00:17 GMT
Server: Apache/2.4.53 (Win64) OpenSSL/1.1.1n PHP/8.1.5
X-Powered-By: PHP/8.1.5
Location: http://192.168.1.103/
Content-Length: 254
Content-Type: text/html; charset=UTF-8

<br />
<b>Warning</b>:  Undefined array key "Col_1" in <b>
          C:\xampp\htdocs\insert.php</b> on line <b>17</b><br />
<br />
<b>Warning</b>:  Undefined array key "Col_2" in <b>
          C:\xampp\htdocs\insert.php</b> on line <b>18</b><br />
 record created successfully
0,CLOSED


It does access the PHP file and adds a record to the Database but
the field values are empty.

Obviously the command sequence is not correct or I have somthing wrong
any help or suggestions would be good, thank you.

Statistics: Posted by David-OLW — Sun May 22, 2022 11:02 pm


]]>
2022-05-19T02:56:48+08:00 2022-05-19T02:56:48+08:00 https://bbs.espressif.com:443/viewtopic.php?t=75379&p=101253#p101253 <![CDATA[General Q&A • POST Data to php file on xammpp server]]> Solar Tracker using a ESP8266.
I have updated the ESP8266:-
AT version:1.7.5.0(Oct 9 2021 09:26:04)
SDK version:3.0.5(b29dcd3)
compile time:Oct 15 2021 18:05:30

The problem is I cannot get it to post the data, all other commands work OK
I was trying originally with 8 variables but have now just setup a 2 field
Database to test it. Sending a POST from a browser using the same PHP files
it works OK. But when sent from ESP8266 it comes up with "Undfined Array Key"
which is because the server is not reciveing the POST variable information.
This is the Commads sent:-

Code:

AT+CIPSTART=0,"TCP","192.168.1.103",80\r\n
AT+CIPSEND=0,132\r\n
POST /insert.php, HTTP/1.1\r\n 
Host: 192.168.1.103\r\n         
User-Agent: Mozilla\r\n   
Content-Type: application/x-www-form-urlencoded\r\n\r\n"]   
\r\n\r\n
Content-Length: 20\r\n     
\r\n\r\n                     
Col_1=,Dec Value1,&Col_2=,Dec Value2,\r\n\r\n   
\r\n\r\n

The response from ESP8266:-

AT+CIPSTART=0,"TCP","192.168.1.103",80
0,CONNECT

OK
AT+CIPSEND=0,132

OK
>

Recv 132 bytes

SEND OK

+IPD,0,488:HTTP/1.1 302 Found
Date: Wed, 18 May 2022 17:00:17 GMT
Server: Apache/2.4.53 (Win64) OpenSSL/1.1.1n PHP/8.1.5
X-Powered-By: PHP/8.1.5
Location: http://192.168.1.103/
Content-Length: 254
Content-Type: text/html; charset=UTF-8

<br />
<b>Warning</b>:  Undefined array key "Col_1" in <b>
          C:\xampp\htdocs\insert.php</b> on line <b>17</b><br />
<br />
<b>Warning</b>:  Undefined array key "Col_2" in <b>
          C:\xampp\htdocs\insert.php</b> on line <b>18</b><br />
 record created successfully
0,CLOSED


It does access the PHP file and adds a record to the Database but
the field values are empty.

Obviously the command sequence is not correct or I have somthing wrong
any help or suggestions would be good, thank you.

Statistics: Posted by David-OLW — Thu May 19, 2022 2:56 am


]]>
2022-04-15T11:36:33+08:00 2022-04-15T11:36:33+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1680&p=100904#p100904 <![CDATA[General Q&A • Re: Help C++]]> I've converted code I wrote for ESP32 to C++ but it still uses the C APIs and my code is C++.
If you just rename files (as I did) you will get errors that can be fixed.

Statistics: Posted by HankB — Fri Apr 15, 2022 11:36 am


]]>
2022-03-26T07:55:50+08:00 2022-03-26T07:55:50+08:00 https://bbs.espressif.com:443/viewtopic.php?t=75316&p=100821#p100821 <![CDATA[General Q&A • ESP32 Custom PCB design]]>
I have completed a prototype on the ESP32 module and now I want to design its PCB board. I want to remove a few features of the ESP32 board in my custom design i.e. ESP23 sensors, touch pins as I am not using them. So, can someone please help me out and provide me the link to download Gerber files of ESP32 board.

Moreover, I am confused in the selection of PCB type. My product is going to be placed in very small space so it should have a small size. I am thinking of designing flexible PCB or a mix of rigid flex PCB. Any help would be appreciated.

Thanks.

Statistics: Posted by andrea05256 — Sat Mar 26, 2022 7:55 am


]]>
2022-03-11T05:06:54+08:00 2022-03-11T05:06:54+08:00 https://bbs.espressif.com:443/viewtopic.php?t=75306&p=100752#p100752 <![CDATA[General Q&A • Arduino Environment Libraries]]>
Would you classify this forum as I've described?
Is discussing Arduino frowned-on here?

Statistics: Posted by Inquisitor — Fri Mar 11, 2022 5:06 am


]]>
2022-01-11T06:15:40+08:00 2022-01-11T06:15:40+08:00 https://bbs.espressif.com:443/viewtopic.php?t=75278&p=100544#p100544 <![CDATA[General Q&A • Help needed: flashing AT firmware]]>
After some playing with my ESP8266-01 with Arduino SDK I wanted to install again the AT firmware on it and I failed.
I tried, from the ESP8266_NONOS_SDK-3.0.5, to instal it as follows:

esptool.py write_flash 0x00000 boot_v1.2.bin 0x01000 at/512+512/user1.1024.new.2.bin 0xfc000 esp_init_data_default_v08.bin 0x7e000 blank.bin 0xfe000 blank.bin

No errors during flashing (see below), but then in normal, not download mode, after power-toggle the ESP8266-01 runs amok ;-)
the led is blinking like crazy and console gets flooded with garbage.

Could anyone be so nice and guide me to the correct way? Am quite new to ESP8266-01.

Thanks
ChrisO


esptool/esptool.py write_flash 0x00000 boot_v1.2.bin 0x01000 at/512+512/user1.1024.new.2.bin 0xfc000
+esp_init_data_default_v08.bin 0x7e000 blank.bin 0xfe000 blank.bin
esptool.py v3.3-dev
Found 2 serial ports
Serial port /dev/ttyUSB0
Connecting....
Detecting chip type... Unsupported detection protocol, switching and trying again...
Connecting...
Detecting chip type... ESP8266
Chip is ESP8266EX
Features: WiFi
WARNING: Detected crystal freq 27.53MHz is quite different to normalized freq 26MHz. Unsupported crystal in use?
Crystal is 26MHz
MAC: 84:f3:eb:dc:5a:b1
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Flash will be erased from 0x00000000 to 0x00000fff...
Flash will be erased from 0x00001000 to 0x00065fff...
Flash will be erased from 0x000fc000 to 0x000fcfff...
Flash will be erased from 0x0007e000 to 0x0007efff...
Flash will be erased from 0x000fe000 to 0x000fefff...
Compressed 1936 bytes to 1460...
Wrote 1936 bytes (1460 compressed) at 0x00000000 in 0.3 seconds (effective 60.1 kbit/s)...
Hash of data verified.
Compressed 413556 bytes to 296998...
Wrote 413556 bytes (296998 compressed) at 0x00001000 in 33.8 seconds (effective 97.9 kbit/s)...
Hash of data verified.
Compressed 128 bytes to 75...
Wrote 128 bytes (75 compressed) at 0x000fc000 in 0.0 seconds (effective 35.2 kbit/s)...
Hash of data verified.
Compressed 4096 bytes to 26...
Wrote 4096 bytes (26 compressed) at 0x0007e000 in 0.2 seconds (effective 134.2 kbit/s)...
Hash of data verified.
Compressed 4096 bytes to 26...
Wrote 4096 bytes (26 compressed) at 0x000fe000 in 0.2 seconds (effective 134.2 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...

Statistics: Posted by ChrisO — Tue Jan 11, 2022 6:15 am


]]>
2021-12-17T10:23:44+08:00 2021-12-17T10:23:44+08:00 https://bbs.espressif.com:443/viewtopic.php?t=75268&p=100463#p100463 <![CDATA[General Q&A • Re: Practical Sensor Application?]]> https://github.com/espressif/ESP8266_RT ... power_save

Statistics: Posted by Her Mary — Fri Dec 17, 2021 10:23 am


]]>
2021-12-04T22:51:51+08:00 2021-12-04T22:51:51+08:00 https://bbs.espressif.com:443/viewtopic.php?t=75268&p=100423#p100423 <![CDATA[General Q&A • Practical Sensor Application?]]>
Are there any other approaches that can maintain a practical battery-life of as least 1 year, and yet maintain a WiFi connection to avoid the re-connection time overhead?

Statistics: Posted by xytsrm — Sat Dec 04, 2021 10:51 pm


]]>
2021-12-01T23:50:31+08:00 2021-12-01T23:50:31+08:00 https://bbs.espressif.com:443/viewtopic.php?t=74589&p=100416#p100416 <![CDATA[General Q&A • Re: Question on serial debugging]]> So may I relay on ESP8266 mechanism for connection recovering or should I poll the WIFI connection status in my program any way?

Statistics: Posted by ashelybrown — Wed Dec 01, 2021 11:50 pm


]]>
2021-11-24T23:13:36+08:00 2021-11-24T23:13:36+08:00 https://bbs.espressif.com:443/viewtopic.php?t=75257&p=100390#p100390 <![CDATA[General Q&A • WIFI Connection]]> So may I relay on ESP8266 mechanism for connection recovering or should I poll the WIFI connection status in my program any way?

Statistics: Posted by jenya7 — Wed Nov 24, 2021 11:13 pm


]]>
2021-11-24T23:07:06+08:00 2021-11-24T23:07:06+08:00 https://bbs.espressif.com:443/viewtopic.php?t=75251&p=100389#p100389 <![CDATA[General Q&A • Re: Connection to Access Point.]]> Statistics: Posted by jenya7 — Wed Nov 24, 2021 11:07 pm


]]>
2021-11-22T17:31:53+08:00 2021-11-22T17:31:53+08:00 https://bbs.espressif.com:443/viewtopic.php?t=75252&p=100382#p100382 <![CDATA[General Q&A • Re: can not connect to a specific WiFi access point]]> https://github.com/espressif/ESP8266_RT ... ng_started

Statistics: Posted by Her Mary — Mon Nov 22, 2021 5:31 pm


]]>
2021-11-22T17:30:18+08:00 2021-11-22T17:30:18+08:00 https://bbs.espressif.com:443/viewtopic.php?t=75251&p=100381#p100381 <![CDATA[General Q&A • Re: Connection to Access Point.]]> https://github.com/espressif/ESP8266_RT ... ng_started

Statistics: Posted by Her Mary — Mon Nov 22, 2021 5:30 pm


]]>
2021-11-22T17:26:57+08:00 2021-11-22T17:26:57+08:00 https://bbs.espressif.com:443/viewtopic.php?t=75253&p=100380#p100380 <![CDATA[General Q&A • Re: 应该下载哪个bin文件?]]> https://docs.espressif.com/projects/esp ... aries.html

Statistics: Posted by Her Mary — Mon Nov 22, 2021 5:26 pm


]]>
2021-11-11T18:30:41+08:00 2021-11-11T18:30:41+08:00 https://bbs.espressif.com:443/viewtopic.php?t=75253&p=100360#p100360 <![CDATA[General Q&A • 应该下载哪个bin文件?]]> Statistics: Posted by almondeo — Thu Nov 11, 2021 6:30 pm


]]>
2021-11-11T01:25:03+08:00 2021-11-11T01:25:03+08:00 https://bbs.espressif.com:443/viewtopic.php?t=75252&p=100358#p100358 <![CDATA[General Q&A • can not connect to a specific WiFi access point]]>
(Using non-OS SDK V2.0.0)

As a result of examination, ESP8266 seems to be rejected with non-support about Short Slot Time option.

[Q1] Is it correct in my understanding as above?

[Q2] Is there a way to support Short Slot Time option?

Statistics: Posted by alexweefs — Thu Nov 11, 2021 1:25 am


]]>
2021-11-10T14:54:29+08:00 2021-11-10T14:54:29+08:00 https://bbs.espressif.com:443/viewtopic.php?t=75251&p=100354#p100354 <![CDATA[General Q&A • Connection to Access Point.]]>

Code:

uint8_t UDP_Start(char* ssid, char* pass, uint16_t loc_port)
{
    uint32_t timeout = 0;

    if (WiFi.status() != WL_CONNECTED)
    {
        rt_parameters.wifi_mode = WIFI_STA;
       
        WiFi.mode(WIFI_STA);
        WiFi.begin(ssid, pass);

        if (sys_parameters.debug)
            Serial.println("Waiting for connection");
           
        while (WiFi.status() != WL_CONNECTED)
        {
            delay(DELAY_TICK);
           
            if (sys_parameters.debug)
                Serial.print('.');
           
            timeout++;
            if (timeout >= sys_parameters.ap_con_timeout)
            {
              if (sys_parameters.debug)
                Serial.println();
               
                return UDP_WIFI_ERR;
            }
        }
        Serial.print("\nConnection time (ms) ");
        Serial.println(DELAY_TICK * timeout);
    }
   
    rt_parameters.wifi_status = WiFi.status();
   
    IPAddress ip_addr = WiFi.localIP();

    memcpy(sys_parameters.loc_ip, ip_addr, 4);
   
    if (sys_parameters.debug)
    {
        Serial.print("Connected! IP address: ");
        Serial.println(ip_addr);
        Serial.printf("UDP server on port %d\n", loc_port);
    }
   
    if (udp.begin(loc_port) == 0)
        return UDP_CONNECT_ERR;

    return UDP_OK;
}


Sometimes it takes a reasonable amount of time - 6-10 seconds. Sometimes it takes 30-60 seconds. Sometimes it gets out on timeout with status
WL_CONNECT_FAILED
WL_NO_SSID_AVAIL
When it's WL_NO_SSID_AVAIL I do WiFi.scanNetworks() and see my Access Point.

How can I improve the situation?

Statistics: Posted by jenya7 — Wed Nov 10, 2021 2:54 pm


]]>
2021-10-08T14:40:20+08:00 2021-10-08T14:40:20+08:00 https://bbs.espressif.com:443/viewtopic.php?t=75235&p=100270#p100270 <![CDATA[General Q&A • Re: ESP-NOW REPEATER]]> https://github.com/espressif/ESP8266_RT ... ifi/espnow

Statistics: Posted by Her Mary — Fri Oct 08, 2021 2:40 pm


]]>
2021-10-05T15:15:22+08:00 2021-10-05T15:15:22+08:00 https://bbs.espressif.com:443/viewtopic.php?t=75238&p=100261#p100261 <![CDATA[General Q&A • UART receiving problem]]>

Code:

Serial.println("UDP OK");

Now I want to receive a char from a terminal

Code:

void UART_Get()
{
     char chr;
    if (Serial.available() > 0)
    {
        chr = Serial.read();

        //for debug
        Serial.print(chr);
    }
}

and I put it in a loop

Code:

void loop()
{
     UART_Get();
}

But I get nothing.
I test the RX pin with a scope and I see incoming signals on the pin.
What can be wrong?

Statistics: Posted by jenya7 — Tue Oct 05, 2021 3:15 pm


]]>
2021-10-01T20:11:39+08:00 2021-10-01T20:11:39+08:00 https://bbs.espressif.com:443/viewtopic.php?t=75235&p=100250#p100250 <![CDATA[General Q&A • ESP-NOW REPEATER]]>
Is it possible to use ESP-NOW protocol with an ESP8266 board acting as a repeater between to other ESP8266 boards?

If so, could you please help me with the code for the sender, repeater and receiver modules?

RicDG

Statistics: Posted by RicDG — Fri Oct 01, 2021 8:11 pm


]]>
2021-09-29T15:10:38+08:00 2021-09-29T15:10:38+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2880&p=100244#p100244 <![CDATA[General Q&A • Re: ESP8266 Mesh Network]]> Statistics: Posted by benclark19920 — Wed Sep 29, 2021 3:10 pm


]]>
2021-09-16T20:01:13+08:00 2021-09-16T20:01:13+08:00 https://bbs.espressif.com:443/viewtopic.php?t=11548&p=100219#p100219 <![CDATA[General Q&A • Re: How to use the sntp protocol on the ESP8266 to connect to a server in ssl?]]> bless you

Statistics: Posted by alenrexy — Thu Sep 16, 2021 8:01 pm


]]>
2021-09-14T01:06:59+08:00 2021-09-14T01:06:59+08:00 https://bbs.espressif.com:443/viewtopic.php?t=75226&p=100210#p100210 <![CDATA[General Q&A • Program ESP-01 (Wireless module) using ESP-PROG]]>
Has anyone been able to program the ESP-01 Wireless Module (8-pin) using the ESP-PROG programmer?
I just cannot get the Serial connection to work at all.

I've even tried to connect to an ESP32 board and I can use the JTAG interface for debugging but no Serial comms.
Not even to see inbound messages from the ESP32.

Any ideas?

Thanks.

Statistics: Posted by iceman — Tue Sep 14, 2021 1:06 am


]]>
2021-09-10T11:10:58+08:00 2021-09-10T11:10:58+08:00 https://bbs.espressif.com:443/viewtopic.php?t=11548&p=100196#p100196 <![CDATA[General Q&A • Re: How to use the sntp protocol on the ESP8266 to connect to a server in ssl?]]> https://github.com/espressif/ESP8266_RT ... /protocols

Statistics: Posted by Her Mary — Fri Sep 10, 2021 11:10 am


]]>
2021-09-04T06:02:06+08:00 2021-09-04T06:02:06+08:00 https://bbs.espressif.com:443/viewtopic.php?t=11548&p=100178#p100178 <![CDATA[General Q&A • Re: How to use the sntp protocol on the ESP8266 to connect to a server in ssl?]]> It may be because of the time (can't authenticate the certificate because of the validity over time) or because of a non-supported protocol. The TLS protocol is used for the secure transaction, the server is using TLSv1.2 and i read on internet that the ESP8266 was only supporting TLSv1.1; Is that right?

Statistics: Posted by elimark1 — Sat Sep 04, 2021 6:02 am


]]>
2021-07-13T11:58:02+08:00 2021-07-13T11:58:02+08:00 https://bbs.espressif.com:443/viewtopic.php?t=75165&p=100055#p100055 <![CDATA[General Q&A • Re: UDP multicast connection.]]> Statistics: Posted by Her Mary — Tue Jul 13, 2021 11:58 am


]]>
2021-07-04T18:23:05+08:00 2021-07-04T18:23:05+08:00 https://bbs.espressif.com:443/viewtopic.php?t=75165&p=100038#p100038 <![CDATA[General Q&A • UDP multicast connection.]]> Then I shoul create a connection
AT+CIPSTART="UDP","172.161.1.128",8000,1112,2 - if AT+CIPMUX=0
AT+CIPSTART=4,"UDP","172.16.1.154",8000,1112,0 - if AT+CIPMUX=1
But what if I want to send broadcast messages - anyone can send to anyone and receive from anyone.
How can I do it?

Statistics: Posted by jenya7 — Sun Jul 04, 2021 6:23 pm


]]>
2021-06-18T15:50:32+08:00 2021-06-18T15:50:32+08:00 https://bbs.espressif.com:443/viewtopic.php?t=75131&p=99998#p99998 <![CDATA[General Q&A • Re: ESP8258开机log打印无法出现“ready”]]> Statistics: Posted by Her Mary — Fri Jun 18, 2021 3:50 pm


]]>
2021-06-07T09:54:08+08:00 2021-06-07T09:54:08+08:00 https://bbs.espressif.com:443/viewtopic.php?t=65708&p=99963#p99963 <![CDATA[General Q&A • Re: How to enumerate the wifi interface network on linux under “ifconfig -a” same like wlan0]]>
1) you learn what ppp is, what pppd is and you modify it yourself
2) you buy for one dollar more than an ESP8266 an USB WiFi stick.

This smells like just another "I want it as cheap as possible, but I don't want to spend any effort on it".

Statistics: Posted by watson — Mon Jun 07, 2021 9:54 am


]]>
2021-06-03T11:17:33+08:00 2021-06-03T11:17:33+08:00 https://bbs.espressif.com:443/viewtopic.php?t=75131&p=99942#p99942 <![CDATA[General Q&A • ESP8258开机log打印无法出现“ready”]]>
异常开机日志 --->
ets Jan 8 2013,rst cause:2, boot mode:(3,7)

load 0x40100000, len 1856, room 16
tail 0
chksum 0x63
load 0x3ffe8000, len 776, room 8
tail 0
chksum 0x02
load 0x3ffe8310, len 552, room 8
tail 0
chksum 0x79
csum 0x79

2nd boot version : 1.5
SPI Speed : 40MHz
SPI Mode : DOUT
SPI Flash Size & Map: 8Mbit(512KB+512KB)
jump to run user1 @ 1000


[10:48:49.676]收←◆rf[112] : 03
rf[113] : 00
rf[114] : 01

[10:48:49.766]收←◆
SDK
蚇O
[10:48:51.177]收←◆鉓
)ヂ薆滧


正常开机日志 --->
ets Jan 8 2013,rst cause:2, boot mode:(3,7)

load 0x40100000, len 2408, room 16
tail 8
chksum 0xe5
load 0x3ffe8000, len 776, room 0
tail 8
chksum 0x84
load 0x3ffe8310, len 632, room 0
tail 8
chksum 0xd8
csum 0xd8

2nd boot version : 1.6
SPI Speed : 40MHz
SPI Mode : DOUT
SPI Flash Size & Map: 8Mbit(512KB+512KB)
jump to run user1 @ 1000


[11:16:20.227]收←◆屻?僶鞗r凔g|??噋rdc?瀨s?d済?胓鉢0ld`你;?宒??`屻s抣鋖?l`勩{揹菬\0?ld`;l噧{d劅隳c剬c|c?鄉茑bdc禧o飥g'?剱?審?$l淠靌?媚l €n黒0劅鈩cld靹?c劅隳cd?{$sd
ready

Statistics: Posted by Foruture — Thu Jun 03, 2021 11:17 am


]]>
2021-05-07T11:35:06+08:00 2021-05-07T11:35:06+08:00 https://bbs.espressif.com:443/viewtopic.php?t=74944&p=99730#p99730 <![CDATA[General Q&A • Re: Not able to scan router/mobile access point from ESP8285H16]]> https://www.espressif.com/en/contact-us ... -inquiries

Statistics: Posted by Her Mary — Fri May 07, 2021 11:35 am


]]>
2021-04-30T02:09:13+08:00 2021-04-30T02:09:13+08:00 https://bbs.espressif.com:443/viewtopic.php?t=74944&p=99712#p99712 <![CDATA[General Q&A • Not able to scan router/mobile access point from ESP8285H16]]>
We are working on a PCB board based on SOC ESP8285 and have created PCB prototypes for testing WIFI connectivity.

But after loading our code for WIFI scanning we are not able to get any access points, even after mobile hotspot kept very close to pcb, except below scenarios-

1. When we start WIFI hotspot on one PCB(using arduino sketch SoftAP.ino in attached zip file) we can view the same access point when we scan from another PCB, and also are able to connect. WIFI strength is also HIGH.
**Please note the access point is not visible on other devices like mobile.

2. When we scan we can detect WIFI Direct Access point but not the access point exposed by our router, also not able to detect hotspot started by mobile phone, we have tested with Android and Iphone.

We are using PI impedance matching for below specification defined in datasheet(Please check schematic)
"
Chip output impedance = 39 + j6 Ω. It is suggested to retain the π-type matching network to match the antenna.
"

Our pcb dimensions are 35mm x 25mm x1.6mm, FR4 material. Please find attached Schematic and PCB layout.

We are using below components for antena and crystal matching

U1- ESP8285 - Part NumberESP8285H16
Y1- Crystal_SMD - Part Number FTX26.000M6SM3S-10/10BFC
C2- 5.6pF RF Capacitor, JOHANSON TECHNOLOGY500R07S5R6BV4T
ESP8285_Schematic.jpg

GerberFiles.zip

Statistics: Posted by yakshatantra — Fri Apr 30, 2021 2:09 am


]]>
2021-04-22T22:50:36+08:00 2021-04-22T22:50:36+08:00 https://bbs.espressif.com:443/viewtopic.php?t=74898&p=99692#p99692 <![CDATA[General Q&A • Re: cannot read nvs_flash]]> Statistics: Posted by alphasion — Thu Apr 22, 2021 10:50 pm


]]>
2021-04-22T17:19:53+08:00 2021-04-22T17:19:53+08:00 https://bbs.espressif.com:443/viewtopic.php?t=74589&p=99687#p99687 <![CDATA[General Q&A • Re: Question on serial debugging]]> https://github.com/espressif/ESP8266_RTOS_SDK .

Statistics: Posted by Her Mary — Thu Apr 22, 2021 5:19 pm


]]>
2021-04-22T17:18:37+08:00 2021-04-22T17:18:37+08:00 https://bbs.espressif.com:443/viewtopic.php?t=74898&p=99686#p99686 <![CDATA[General Q&A • Re: cannot read nvs_flash]]> Statistics: Posted by Her Mary — Thu Apr 22, 2021 5:18 pm


]]>
2021-04-17T10:42:25+08:00 2021-04-17T10:42:25+08:00 https://bbs.espressif.com:443/viewtopic.php?t=74898&p=99643#p99643 <![CDATA[General Q&A • cannot read nvs_flash]]>

nvs_flash_init()

and write some parameters into nvs

Code:

nvs_handle mHandler;
                  if (nvs_open(WIFI_TAG, NVS_READWRITE, &mHandler) == ESP_OK)
                  {
                     nvs_set_str(mHandler, NVS_SSID, wifi_ssid);
                     nvs_set_str(mHandler, NVS_PASS, wifi_pass);
                     if (nvs_commit(mHandler) == ESP_OK)
                     {
                        i2c_oled_showstr(0, 6, "W");
                     }
                     nvs_close(mHandler);
                  }

but while i try to read this with this code

Code:

nvs_handle mHandler;
   bool ret = false;
   ret = nvs_open(WIFI_TAG, NVS_READONLY, &mHandler);
   ESP_ERROR_CHECK(nvs_get_str(mHandler, NVS_SSID, wifi_ssid, &wifi_ssid_length));
   ESP_ERROR_CHECK(nvs_get_str(mHandler, NVS_PASS, wifi_pass, &wifi_pass_length));
   nvs_close(mHandler);
   return ret;

there is an error :
ESP_ERROR_CHECK failed: esp_err_t 0x110c (ESP_ERR_NVS_INVALID_LENGTH) at 0x40221cd8
could any one tell me where my problem is?thx
btw,my partition table is Single Factory app,no OTA

Statistics: Posted by alphasion — Sat Apr 17, 2021 10:42 am


]]>
2021-03-02T16:46:46+08:00 2021-03-02T16:46:46+08:00 https://bbs.espressif.com:443/viewtopic.php?t=74646&p=99406#p99406 <![CDATA[General Q&A • Re: Websocket ESP8266_RTOS_SDK]]> https://github.com/espressif/ESP8266_RT ... /protocols

Statistics: Posted by Her Mary — Tue Mar 02, 2021 4:46 pm


]]>
2021-02-18T10:36:54+08:00 2021-02-18T10:36:54+08:00 https://bbs.espressif.com:443/viewtopic.php?t=74646&p=99334#p99334 <![CDATA[General Q&A • Websocket ESP8266_RTOS_SDK]]>
I can't find any example for a WebSocket application in ESP8266_RTOS_SDK.
Does anyone have it and could you share me? :)

Thank you for reading.

Statistics: Posted by nhuanhuynh — Thu Feb 18, 2021 10:36 am


]]>
2021-01-28T17:19:59+08:00 2021-01-28T17:19:59+08:00 https://bbs.espressif.com:443/viewtopic.php?t=74594&p=99269#p99269 <![CDATA[General Q&A • Re: Problem with connecting to Cisco AIR-AP1852l-E-K9 (NONOS SDK 3.0.4)]]> But if you are work on a new project, maybe the best way is to use RTOS SDK..

Statistics: Posted by Her Mary — Thu Jan 28, 2021 5:19 pm


]]>
2021-01-26T21:03:26+08:00 2021-01-26T21:03:26+08:00 https://bbs.espressif.com:443/viewtopic.php?t=74594&p=99264#p99264 <![CDATA[General Q&A • Problem with connecting to Cisco AIR-AP1852l-E-K9 (NONOS SDK 3.0.4)]]>
In the logs, I can see the following difference:
NONOS 1.5.4:

scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 5 (10)

NONOS 3.0.4

scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 0 (12)
reconnect

In the case of 3.0.4, wifi_station_get_connect_status () still returns STATION_CONNECTING.

Does any of you know what "state: 3 -> 0 (12)" means?

Statistics: Posted by pzygmunt — Tue Jan 26, 2021 9:03 pm


]]>
2021-01-21T22:24:22+08:00 2021-01-21T22:24:22+08:00 https://bbs.espressif.com:443/viewtopic.php?t=74589&p=99258#p99258 <![CDATA[General Q&A • Question on serial debugging]]>
I'm new to esp8266 firmware programming. I'm trying to start off by writing simple programs.

I'm using ubuntu linux with the esp-open-sdk. I can compile and flash simple programs (like blink) but I'm really stumped with printing debugging info to the console via the os_printf() function.

I have a simple user_init() function which includes two function calls.

uart_init(115200,115200);

os_printf("hello world");

I am expecting to see "hello world" printed on /dev/ttyUSB0 when I use the command "cat /dev/ttyUSB0".

I've already used stty to setup the serial port. I have it setup as such: "stty -F /dev/ttyUSB0 raw" and "stty -F /dev/ttyUSB0 115200".

I have my esp8266 wired properly to a ftdi usb to serial converter. Any ideas on what is going on?

Statistics: Posted by caleyfeli85 — Thu Jan 21, 2021 10:24 pm


]]>
2021-01-19T10:16:54+08:00 2021-01-19T10:16:54+08:00 https://bbs.espressif.com:443/viewtopic.php?t=74580&p=99255#p99255 <![CDATA[General Q&A • Re: How to connect to an ssl server using the sntp protocol on ESP8266?]]> https://github.com/espressif/ESP8266_RT ... /protocols

Statistics: Posted by Her Mary — Tue Jan 19, 2021 10:16 am


]]>
2021-01-07T13:56:18+08:00 2021-01-07T13:56:18+08:00 https://bbs.espressif.com:443/viewtopic.php?t=74517&p=99174#p99174 <![CDATA[General Q&A • Question regarding READ_FLASH]]>
The first point is that the serial protocol specification mentions four 32 bit words but lists five input parameters: https://github.com/espressif/esptool/wi ... 266--esp32

My second doubt is that I don't quite get what these parameters should look like, there's a bare description of the parameter names in this other section: https://github.com/espressif/esptool/wi ... ding-flash

If I understand correctly there's no other command required to start receiving the flash data payload, I'm also assuming that an initial sync is required (SYNC). This is something I'm already doing for READ_REG.

I would appreciate if anyone could help me understand the READ_FLASH parameters as well as provide some sample input.

Best regards.

Statistics: Posted by mbins — Thu Jan 07, 2021 1:56 pm


]]>