Here are some ways to Fix errors 1. Make sure both the uarts, and the ring buffer is working well. Follow what I did in this video and you should also get the results ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-1CV3tWlRW5A.html 2. Sometimes the connection with the ESP is the problem, So test the ESP separately ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-eiw-Ns9l8K8.html 3. If you are stuck at the IP Address part, then use a third device. I mean your phone and ESP should connect to a third device (could be another phone or any router) 4. Mostly the issues are with the Discovery boards, and they are due to some UART connections at the hardware level. So make sure you test the UART using the first point. 5. During Debugging, don't halt the CPU while looking for some string. You will loose the data, and the code will hang there. 6. I spent countless hours in making it work, so You also put some effort before simply commenting that it doesn't work. DEBUG..... It's your strongest weapon. PS: Cutecom is only available in linux. Use any other serial monitor like realter, terraterm, hercules etc
thanks! Really appreciate a lot your effort and guide. i change another development is workable...no idea why previous development board run half then stop...
Thanks bro, 192.168.1.121 CIPMUX---->OK CIPSERVER---->OK Now Connect to the IP ADRESS Look like is success after i change development board. so i key in 192.168.1.121 to my handphone browser? anyway, my handphone no display. can advise a bit for this?
For STM32F7, I disabled the "Enable the UART Error Interrupt" codes in Ringbuf_init() function and I used the updated version of Uart_isr(...) function. Then, it worked for me. Thanks a lot.
Bro.. can you please help me I'm using STM32F429ZIT6 , Serial Terminal usart1 only communicated with terminal.im using usart1&2, one for PC and 2 for wifi module and i interface with ESP8266-01 wifi module. I did everything like this video. But not worked. Can you Give me some idea?
I have used NodeMCU, but i wrote the tutorial in terms of AT commands. So you can use it for all the esp8266 types. Regarding the connection, you can google it. All MCUs have the same connection. Rx of ESP to Tx of MCU, and Tx to Rx. Those, who have errors in the Uart_isr function, like DR or SR registers are not present, replace the Uart_isr code with the one provided in this file controllerstech.com/wp-content/uploads/2020/04/Uart_isr.c
I have a NodeMCU, which was already programmed using Arduino IDE for some other application. In that case how do I restore NodeMCU back to its original configuration, so that your program works? Thanks in advance
bro,where i can download a aplication cutecom for widows? i'm stuck in is this. my program cant run because i dont no the ip for turn on and tur off LED
sorry brow i have a question , why i run in hercules and realterm cant display ip addr? what i wrong the view display the symbol cant be discribe ? i follow your program until end but cannot display ip addr
I had problems with short time for which the module was connected to the wifi, the reason was too short times between rx and tx so I have added hal_delays in start() functions and everything is working just fine ;)
@@cpodge I dont have access to the project unfortunately, but as I said it was somewhere in start() function which consists of some methods try before each one - should work then delete 1 by 1 to debug ;)
@@michazodak431 Thanks, I will try this out! Did this stop your server from responding? I can toggle the LED a few times thenit will not reload the page any more in my web browser and I have to do a hard reset to the board
@@cpodge after adding delays, server worked properly I have send some data from environmental sensors and displayed them on server and it didn't crash ;). Everything else was done like in tutorial
Hi, the tutorial is nice, but I'm having trouble understanding a general thing. In general, a web server can probably be made in many ways. You can use a standalone ESP8266, or ESP32-S, or like you: ESP8266 in combination with STM32 sending AT commands. Question: which variant is generally better when creating a device "from scratch"? Is this guide more suitable for existing STM32 devices "extended" with WiFi functionality provided by the ESP module, or is there simply another reason why the STM32 should be a "master" controller than it would be worth using the ESP module alone?
This tutorial just adds the wifi capability to the stm32, Nothing else.. If mcu doesn't matter then there are obviously better alternatives like ESP32 .
i flashed AT firmware the project is working perfectly, but after few seconds its gone, i need to press reset again please can you guide me, where to change the code, for that i believe its in ESP8266_HAL.c.
I had made connection and then burn the code to STM32F411 discovery i had received only RESETTING..RESETTING...... at hercules what should i do to get ip addresss, help me thanks
First check if the uart ia working properly Remove esp, and Short the Rx and Tx pins for the device uart... Now whatever data you send should come back... Try this
How to add few buttons in html code, and add accordingly the changes in "server_start" and "server_handle" in order to add 2 more Leds and make project scalable, I tried addding buttons in HTML and thought ill add more ("if,else if") for adding more logic for several Leds and also declared /ledoff1.../ledon1 in different variables suchd as LED_ON1 or LED_OFF1.....according to the buttons in HTML and output but im not able to make it scalable {also defined pins as GPIO o/p at IOC file} please help, how do i make it work for 3 Leds?
Thanks for tutorial, I had to make few changes in code because responses from my esp8266 module were slightly different but after all everything worked. The only problem I have is that web server is dying pretty fast after 10/15 secs is this due to the fact ram is getting fullfiled or I made some mistakes? Any ideas how to solve that?
Yeah server times out really fast, but that shouldn't affect the RAM. I have use malloc to allocate the dynamic memory. If u did made some changes, cross check the malloc and free. Maybe you forgot to free some allocated memory and it's adding up with the new allocation
Hi! I had done everything as suggested but yet nothing get on terminal. serial console shows download verified successfully but not getting AT command response on terminal and webserver page is also not showing
Great video! Could you help? I tryied had problems and I quite not understand how do I send a longer(more than 2048 characters) HTML file through the AT+CIPSEND commands! It always ends in an error or just failing at sending data at some point How should the proceidure be? I also tryied with the UART USB adapater but still got the same results
Boa tarde, implementei o exemplo para stm32f103 más quando inicializo o /* USER CODE BEGIN 2 */ ESP_Init("xxxxx","xxxxx"); /* USER CODE END 2 */ trava nessa inicialização, tem alguma ideia?
your connection might be the problem. also make sure you have followed the steps properly connect your esp to the computer using ftdi or something and try those commands and see if it is responding to them
Hello, could you tell me which part of the code I need to modify (expect the HTML one of course) if I want to add a second Led on the same web page ? Because the "Server_Handle" part seems to be adapted to a single Led because of the presence of "/ledoff" or "/ledon" in the adress. Am I wrong ? And if yes, have you any advice ? Thanks a lot for what you do, Regards.
sir please help me how can i get these 4 library file [ UartRingbuffer_multi.c , ESP8266_HAL.c, UartRingbuffer_multi.h , ESP8266_HAL.h ]@@ControllersTech
Hi, I managed to bring the code to the STM32L4xxx, a query, Would the connection be to the Uart1 right? On my board I have the problem that these are free pins not soldered, I can use the Uart3, taking into account that the tx of the ESP8266 goes to the rx of the plate and the rx of the ESP to the tx of the plate, is it correct?
Hello, I have problems to see the response on the terminal. I have windows and I am using RealTerm, but no program can recognize my STM32F11E-Discovery such a COM. And I dont know why, If you can help me it would be awesome!! Greetings from Spain!!
I have used esp8266-01 it response to AT Command and connect to host but when I am going to open web server it doesn't give response when trying to open server page using IP address.i connected my mobile and esp8266 to same host.
Please provide {"ESP8266_HAL.c" and ''UartRingbuffer_multi.c'' with their header files}its not there even at the site nor at github and also not present in description.
@@ControllersTech I checked it only the codes are written over there, there are no ".c" or ".h" file or any sort of library whatsoever please kindly check with it and if possible provide zip files for both{"ESP8266_HAL.c" and its header file/''UartRingbuffer_multi.c and its header file} ive watched this video quite alot of times but i keep getting jumbled in libraries i couldnt go forward .
Here is the tip: Every tutorial website that provides the code, it is mostly located towards the end of the article. Here is the zip file controllerstech.com/wp-content/uploads/2020/08/TUT_ESP8266_WEBSERVER.zip
I don't know anything about Android app development. And even if you do want to develop, make some web based one. Which can send the data like any browser does and the code will take care of the rest
I had made connection and then burn the code to STM32F407 discovery i had received only RESETTING..RESETTING...... at hercules what should i do to get ip addresss
hi thanks for your video,but i don't understand why do we need to use ringbuffer and you use uart_pc only to display the IP address of ESP,right?please help me,thank you very much.
uart2 is not needed. I just used it for the debugging purpose. For the ring buffer, you need it because you don't know the size of incoming data in the uart
@@ControllersTech thanks but i have a problem, i am not able to receive the ip address hercules screen shows only RESETTING……after that it stops from working.what should i do so that i would be able to receive the ip address and open web page please help me. Thanks in advance
@@ControllersTech hey sir i got that word "Now Connect to the IP ADRESS" but when i connect to the web,it said "ERR_EMPTY_RESPONSE 192.168.1.12 don't send any data".please tell me why.I think the problem is the Basic inclusion.it have a warning "a format string is not a string literal",please help me thanks u so so much.
@@ControllersTech i think the function name Get_after get error ,i can't take the value behind that,can u help me ffix it, please help me,thanks you very much.
Hi, i use esp8266-01 too. When i connect with ttl converter to wifi module and sent AT commands from serial monitor.i got correct answers. But when i sent AT commands from stm32f4, no answer from wifi modul. Whats the problem? What should i do? do you have offer for me?
@@ControllersTech its interesting, looks like i send but rx interrupt doesnt occur. i thought first usart 1 port doesnt work, so i have same board and tried on it. and same rx interrupt doesnt occur. but function is correct. cos i use to send data to serial monitor same function.
@@ControllersTech on MX i add a 12 bit ADC with continous conversion enabled then in the while i start the ADC and i put with the pollforconversion instruction the value on a variable called adc_value but it remains always 0 instead...
Oh! And I have a warning with "sprintf (datatosend, Basic_inclusion); " function. It warning: "format string is not a string literal (potentially insecure)" at "Basic_inclusion". But with sprintf(data, ".....", SSID) with the same datatype is not warning.
@@meohoang7741 ukm k đc. T đổi qua làm app inventor kết nối vs thingspeak, r stm32 lấy dữ liệu trên đó về điều khiển. Hoặc dễ hơn là lấy esp kết nối firebase hay thingspeak để lấy dữ liệu về chân nào đó, r stm32 kết nối uart đọc dữ liệu chân esp về r điều khiển ngoại vi cx đc.
Actually it's NodeMCU, but i wrote the tutorial in terms of AT commands. So you can use it for all the esp8266 types. Regarding the connection, you can google it. All MCUs have the same connection. Rx of ESP to Tx of MCU, and Tx to Rx.
@@harshitajain4870 I just downloaded the zip file. The files "esp82766_HAL.c, .h, uartringbuffer.c, .h" all are present there. If you still can't find them, contact on telegram @controllerstech
Read the library file. Its not that hard to understand it. Also I have mentioned all those commands in the video, which I asked to watch before this one.
bro , tnx alot it reall works, but if you are using esp8266 01 module first you need to flash it, it is covered by ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-MPyShmRcgD0.html this, again tnx alot for your code