In order to realize transparent transmission between the computer and the microcontroller, we must first understand the WiFi module.
Test whether the wifi module is normal
Use a serial cable to connect to the wifi module serial port. Connect the CH340G serial cable TX to the wifi module RX, and connect the CH340G serial cable RX to the wifi module TX. As shown in the following table
Note: The wifi module cannot be powered by 5V, the wifi module is powered by 3.3V. The pin diagram is as follows
Connect to the serial debugging assistant (you can use Anxinke Assistant or other serial debugging assistants), and send data to the wifi module through the serial port for settings.
Note: When using the Friendly Serial Port Assistant to send a command, you need to press the Enter key before clicking Send, otherwise the command will fail to be recognized.
It is recommended to use Anxinke serial port debugging, which comes with commands. The link is as follows.
AiThinker_Serial_Tool.rar-Embedded Document Resources-CSDN Download
For more download resources and learning materials of Anxin WiFi module debugging tool, please visit CSDN download channel.
https://download.csdn.net/download/qq_34343637/53394077?spm=1003.2166.3001.6637.1
The default display of the serial port assistant is not comprehensive. You need to drag the lower right corner to display all commands.
The module uses a default baud rate of 115200. After the connection is successful, send the command "AT" and the return "OK" indicates that the module is normal.
ESP-01S WIFI module communicates with the computer via TCP
1. Anxinke serial port debugging assistant
The default baud rate of the wifi module is 115200. After successfully connecting to the Anxinke serial port debugging assistant, send the settings in sequence.
AT+RST //wifi module reset
AT+CWMODE=1 //Set to station mode
AT+CWJAP="adam","5656haha" //Join the wifi network named "adam", password "5656haha"
2. Computer configuration
Query the IP address of the computer that will communicate with the wifi module: 192.168.43.170 (CMD -> ipconfig)
Open the friendly serial port debugging assistant and set it as follows
3. Anxinke serial port debugging assistant
//Connect to the TCP server, TCP protocol, TCP server IP address, TCP server port
AT+CIPSTART="TCP","192.168.43.170",6000
// Enable transparent transmission
AT+CIPMODE=1
//Start sending and receiving data
AT+CIPSEND
4. Final effect
Previous article:C51 Programming 25-Application (MCU and computer realize WiFi communication)
Next article:C51 Programming 23- Application (HC 06 Bluetooth Module)
- Popular Resources
- Popular amplifiers
- Learn ARM development(16)
- Learn ARM development(17)
- Learn ARM development(18)
- Embedded system debugging simulation tool
- A small question that has been bothering me recently has finally been solved~~
- Learn ARM development (1)
- Learn ARM development (2)
- Learn ARM development (4)
- Learn ARM development (6)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- CGD and Qorvo to jointly revolutionize motor control solutions
- CGD and Qorvo to jointly revolutionize motor control solutions
- Keysight Technologies FieldFox handheld analyzer with VDI spread spectrum module to achieve millimeter wave analysis function
- Infineon's PASCO2V15 XENSIV PAS CO2 5V Sensor Now Available at Mouser for Accurate CO2 Level Measurement
- Advanced gameplay, Harting takes your PCB board connection to a new level!
- Advanced gameplay, Harting takes your PCB board connection to a new level!
- A new chapter in Great Wall Motors R&D: solid-state battery technology leads the future
- Naxin Micro provides full-scenario GaN driver IC solutions
- Interpreting Huawei’s new solid-state battery patent, will it challenge CATL in 2030?
- Are pure electric/plug-in hybrid vehicles going crazy? A Chinese company has launched the world's first -40℃ dischargeable hybrid battery that is not afraid of cold
- Analog circuit knowledge: basic usage of triodes
- What is Ferroelectric RAM (FRAM)?
- EEWorld invites you to disassemble (sixth issue): disassemble the car wireless charger
- Serial port monitoring data How do you monitor the communication data between two serial ports (such as the serial port of the main control MCU and the blue...
- FAQ_ Regarding the problem that the STEVAL_IDB007V1 evaluation board cannot upgrade the demo program through BlueNRG-1 Navigator
- MSP430F169 basic clock configuration code practice
- [HPM-DIY] has launched a visual configuration code generation tool.
- A newbie who can only repair adapters and charging heads wants to upgrade to engineering.
- The greatest equation
- CH583 Evaluation Serial Port Download