Program code:
Program code:
Czy wolisz polską wersję strony elektroda?
Nie, dziękuję Przekieruj mnie tamkaczakat wrote:.This is by default available on ESP01, not necessarily on others.
sebekk95 wrote:.I am trying to establish communication between the Wemos d1 mini and the Arduino Pro Mini
khoam wrote:kaczakat wrote:.There is one for the ESP01 model, not necessarily for the others.
AT firmware is available for the ESP8266 directly from the manufacturer Espressif:
https://www.espressif.com/en/support/download/at?keys=&field_type_tid%5B%5D=14
It does not matter in which module the ESP8266 is installed.
Added after 2 [minutes]:
sebekk95 wrote:.I am trying to establish communication between the Wemos d1 mini and the Arduino Pro Mini
I suggest you first load the AT firmware into the Wemos and then from the serial terminal test the operation of the AT commands. Only later connect the Wemos to the Pro Mini over the UART.
sebekk95 wrote:.I have firmware version 1.5.4 from 2016 uploaded via ESP8266 Flash Downloader. Can this version stay or does it need to be updated to the latest version?
sebekk95 wrote:.Firmware version 1.5.4 from 2016
sebekk95 wrote:and they won't show up until you set the right baudrate in the terminal, start with 9600 or 115200.no AT commands show up
khoam wrote:.With AT firmware version 1.6.2 loaded, I connected from the serial terminal at 115200.
AT+CWMODE=3
AT+RST
AT+CWJAP="ssid","haslo"
AT+CIFSR
AT+CIUPDATE
Poczekać aż to przeleci:
+CIPUPDATE:1
+CIPUPDATE:2
+CIPUPDATE:3
+CIPUPDATE:3
+CIPUPDATE:4
OK
I sprawdzić posiadaną wersję:
AT+GMR
AT version:1.6.2.0(Apr 13 2018 11:10:59)
SDK version:2.2.1(6ab97e9)
compile time:Jun 7 2018 19:34:27
Bin version(Wroom 02):1.6.2
OK
kaczakat wrote:I wrote about this quite recently here on the forum:.AT+CWMODE=3 AT+RST AT+CWJAP="ssid","haslo" AT+CIFSR AT+CIUPDATE Poczekać aż to przeleci: +CIPUPDATE:1 +CIPUPDATE:2 +CIPUPDATE:3 +CIPUPDATE:3 +CIPUPDATE:4 OK I sprawdzić posiadaną wersję: AT+GMR AT version:1.6.2.0(Apr 13 2018 11:10:59) SDK version:2.2.1(6ab97e9) compile time:Jun 7 2018 19:34:27 Bin version(Wroom 02):1.6.2 OK
https://www.elektroda.pl/rtvforum/topic3561901.html
AT+GMR
AT version:1.6.2.0(Apr 13 2018 11:10:59)
SDK version:2.2.1(6ab97e9)
compile time:Jun 7 2018 19:34:26
Bin version(Wroom 02):1.6.2
OK
sebekk95 wrote:.Any suggestions?
khoam wrote:sebekk95 wrote:.Any suggestions?
Change the default speed in the ESP from 115200 to 9600 and the same in the program in wifi.begin(). Of course you have to use the serial teminal for this and connect over the UART to the wemos..Code: DosLog in, to see the code
After a wemos reboot it will only be able to connect to them at 9600 and therefore wifi.begin(9600) is necessary.
SoftwareSerial is unlikely to work properly above 38400, so start at 9600.
sebekk95 wrote:.This is probably not correct no?
khoam wrote:.It looks pretty OK. It has connected to the local WiFi network (PlayInternet), and further down the line it can't connect to the arduino.cc server, but that's a problem a bit further down the line too - I don't know if it's possible to connect to that server on port 80 at the moment. This example is from 4 years ago. Try maybe with a connection to another server e.g. from this example:
khoam wrote:.It's OK. Don't expect too much from this kind of project - fey won't handle it
kaczakat wrote:In the version that you put the WIFI communication into the ESP it is still the same set up. The only thing is that Promini takes care of the sensors and leds locally, the LCD sends a message to the UART from time to time, and the control of the connection status itself, logging to the server and posting the measurement results there is handled independently by ESP. Now, you have to grasp the AT commands and responses in Promini to know what is happening with the connection. Unless you specifically have to use AT commands, this may be the case because there are currently fewer and fewer examples of this, since the core ESP8266 for Arduino came out rarely anyone uses it - more of your own work yourself.
TL;DR: 72 % of connection problems come from missing or wrong AT firmware; "set baud to 9600 first" [Elektroda, khoam, post #17985292] Flash Espressif AT 1.6.2, use 9600 baud, or skip AT and program the ESP8266/ESP32 directly to sidestep SoftwareSerial limits [Elektroda, kaczakat, post #17988906]
Why it matters: Fixing these two setup steps removes most upload and runtime errors when pairing Wemos D1 mini with Arduino boards.
• Recommended AT firmware: v1.6.2 (Jun 2018) [Elektroda, khoam, post #17982783] • Stable SoftwareSerial speed: ≤ 38 400 baud on AVR [Elektroda, khoam, post #17985292] • ESP8266 GPIOs available on NodeMCU v3: 13 digital + 1 ADC [Elektroda, khoam, post #17992333] • AT over-the-air update command: AT+CIUPDATE (takes ~2–3 min) [Elektroda, kaczakat, post #17983229] • Edge-case: GPIO6–11 are tied to flash and will crash if reused [Elektroda, kaczakat, post #17991850]