logo elektroda
logo elektroda
X
logo elektroda

[ESP8266}[NODEMCU] - ERROR: Communication with MCU not yet established.

lipol 3417 11
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 16049510
    lipol
    Level 8  
    Hi!
    I have a problem uploading a lua program to the ESP8266 using ESPlorer. It appears:
    PORT OPEN 115200
    Communication with MCU...

    and in the log: ERROR: Communication with MCU not yet established.
    and nothing can be done...
    I have everything set up correctly.
    What could be the cause? I am very much asking for help.
  • ADVERTISEMENT
  • #2 16052094
    piotr411
    Level 22  
    - converter drivers not installed
    - wrong com port
    - poor quality connection cables,
    - Windows 8.1, 10 - driver problem
    - not suitable RS converter (CH340G, usually works)
    - lower the speed to 9600, press reset in ESPlorer a few times. ESP8266 will automatically change speed. (option does not work in Arduino, only LUA)
    - the new ESP8266 12F versions need a 1000uF capacitor in the power supply
    - to the ESP8266, you may have a badly written soft uploaded and it is blocking transmission, you can check what type of error occurs when you change the speed to 76800.
  • #3 16052130
    lipol
    Level 8  
    The converter drivers are installed correctly and the chip worked on the regular firmware and responded to AT commands. I should also add that after uploading the nodemcu it also worked for a while and I managed to upload the init.lua file. However, after restarting ESPlorer, I was no longer able to connect to the module.... It appears: "Waiting answer from ESP - Timeout reached. Command aborted". I have not disconnected anything or moved any cables, so I have no idea at what point the problem occurred.
    I have also tried re-flashing the nodemcu and everything uploads nicely but unfortunately this does not solve the problem.
  • ADVERTISEMENT
  • #4 16052150
    piotr411
    Level 22  
    If you can, take a screenshot of the ESPlorer
  • #5 16052184
    lipol
    Level 8  
    [ESP8266}[NODEMCU] - ERROR: Communication with MCU not yet established.

    After disconnecting and connecting the power supply:
    [ESP8266}[NODEMCU] - ERROR: Communication with MCU not yet established.
  • ADVERTISEMENT
  • #6 16052219
    piotr411
    Level 22  
    If you have uploaded the program that is on display, you have slightly messed up ;)
    You have changed the start parameters of the UART.
    Turn on, DTR, RTS and press reset in ESPlorer. several times, RESET
    Early on as I wrote above change the speed to 76800 and upload the screenshots again.

    In line 4 you have uart.setup, for the time of writing the program and testing don't use this function, this way you lost the auto baud rate. And you have a problem with the correct baud rate as you can see in the second Screen. Probably when presented on 76800, the ESP8266 data reading will be correct.
  • #7 16052271
    lipol
    Level 8  
    [ESP8266}[NODEMCU] - ERROR: Communication with MCU not yet established. [ESP8266}[NODEMCU] - ERROR: Communication with MCU not yet established. [ESP8266}[NODEMCU] - ERROR: Communication with MCU not yet established.

    Still nothing :( And until I unplug and plug in the power at the ESP with the converter connected to the computer, I can't even click RESET or Send to ESP....

    i set up the uart.setup like this because I wanted to send data via the uart to the external ATmega microcontroller from the website. But after re-uploading the nodemcu, didn't this program get deleted from memory?
  • #8 16052303
    piotr411
    Level 22  
    Take a screen shot of the "settings" tab of ESPlorer
  • ADVERTISEMENT
  • #10 16052401
    piotr411
    Level 22  
    Everything is ok in the settings.
    On which com are you connecting, because you have com4, com5

    You can see that the ESP is sending data, but at a different baud rate.
    What RS converter do you have?
  • #11 16052419
    lipol
    Level 8  
    Sorry for the confusion with the ports, but I tried on a second computer that's why it's different. But it's definitely the right one.
    As for the converter I use this one: https://botland.com.pl/konwertery-usb-uart-rs...ml?search_query=konwerter+usb&results=135
    But as I say it worked before so I don't suspect this is to blame.
    I've tried on all the baudrates that are possible to set in ESPlorer.... i've been sitting on this for a few hours now. If the uart.setup() command changed anything then there I had it set to 9600....
    I'm considering whether to simply buy a new chip.
  • Helpful post
    #12 16052761
    piotr411
    Level 22  
    If the software reset doesn't work you need to do a hard reset after each baud rate change, the ESP8266 sends information because there are "bushes", the problem is the wrong speed. Now it is difficult to ask what you have set. If you have an analyser then try to record what the ESP8266, sends. On the analyser you will read what you set. The other thing is that on 78600, whatever you would set the ESP will send a packet of system information. therefore, check at this speed.
ADVERTISEMENT