logo elektroda
logo elektroda
X
logo elektroda

Renaming the ESP8266 module using AT commands and UDP/TCP server

matekogon 2670 7
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 16626178
    matekogon
    Level 22  
    Hello everyone. Colleagues I have a question for you:
    1. is it possible with AT commands to change the name of the ESP module. I mean the name that is displayed to me in the ESP module router
    2. when I start the server with the AT+CIPSERVER command, am I starting a UDP or TCP server? because I'm a bit confused. The assumption is that the ESP module is supposed to be a server and receive UDP packets and reply. I am currently using AT+CIPSTART but I have read that this is a client command
  • ADVERTISEMENT
  • Helpful post
    #2 16626230
    dondu
    VIP Meritorious for electroda.pl
    1. there isn't (at least for the version from about 4 months ago).
    2.
    AT Instruction Set wrote:
    14. AT+CIPSERVER – Configure as TCP server
  • ADVERTISEMENT
  • #3 16626938
    matekogon
    Level 22  
    Thanks a lot for the information
  • ADVERTISEMENT
  • #4 16633901
    matekogon
    Level 22  
    Buddy dondu and is the version of the software you are talking about perhaps able to save the configuration to the module(e.g. AT+CIPSTART....................... )etc.?
  • #5 16634198
    dondu
    VIP Meritorious for electroda.pl
    Unfortunately there is no AT+CIPSTART_DEF command like e.g. AT+CIPSTA_DEF.
    If you find any possibility, to set the module name then please write.
  • ADVERTISEMENT
  • #6 16637331
    matekogon
    Level 22  
    Colleagues one more question because I can't find the answer. There is a command AT+SAVETRANSLINK to make the module transparent and send everything from the UART over wifi. In the manual it says to disable this function you have to send the command AT+SAVETRANSLINK=0 only how to do this as everything from the UART goes to send. How to switch back to AT commands?
  • #7 16831543
    matekogon
    Level 22  
    dondu wrote:
    Unfortunately there is no AT+CIPSTART_DEF command like e.g. AT+CIPSTA_DEF.
    If you find any possibility, to set the module name then please write.
    .

    In order to see the module name set by us in the router, use the command AT+CWHOSTNAME="my name",
    Works with ESP-01 version
    AT version:1.5.0.0(Oct 24 2017 12:03:18)
    SDK version:2.1.0(ace2d95)
    compile time:O ct 24 2017 15:48:04
    Bin version(Wroom 02):1.5.1

    The AT+CWHOSTNAME command does not save the setting to flash so the name must be set again after a module reset.
  • #8 16831564
    Anonymous
    Anonymous  

Topic summary

The discussion addresses two main questions regarding the ESP8266 module using AT commands. First, changing the module's name as displayed in the router is not directly possible with older AT firmware versions; however, the AT+CWHOSTNAME command can set a hostname visible to the router on ESP-01 modules with AT firmware version 1.5.0.0 and SDK 2.1.0. This hostname setting is volatile and must be reapplied after each reset since it is not saved to flash. Second, the AT+CIPSERVER command starts a TCP server, not a UDP server. The AT+CIPSTART command is used to initiate client connections, confirming that it is a client command. Additional notes include the absence of a persistent server configuration command like AT+CIPSTART_DEF and the use of AT+SAVETRANSLINK to enable transparent transmission mode, which requires a specific command to disable and return to AT command mode. Proper entry into AT command mode involves sending three ESC characters with timing considerations.
Summary generated by the language model.
ADVERTISEMENT