stm32 configure camera1. Experiment preparation2. Wiring diagram3. Experimental steps and experimental resultsIntroduction to the main program source code of wifi configuration
STM32F103 | wifi camera |
---|---|
PA2 | RX |
PA3 | TX |
GND | GND |
5V | 5V |
stm32 can also be connected to the computer, and you can use the ttl module. The stm32 used in this tutorial directly encapsulates the ttl module, and you can connect it to the computer through the USB interface Connection between STM32 and ttl module
STM32F103 | ttl module |
---|---|
PA9 | RX |
PA10 | TX |
GND | GND |
5V | 5V |
If only one mode is enabled, then sta_ip:null or ap_ip:null When sta_ip:null occurs, you need to check whether the connected wifi name and password are correct. If correct, whether only the AP mode is turned on and the STA mode is not turned on.
First open the NetAssist.exe software on your computer and make sure the computer and camera are on the same network segment.
Then connect according to the obtained IP address. For example, the obtained sta_ip is: "192.168.2.199"/ap_ip is: "192.168.4.1"
Then there are 2 ways
Then by sending information, the terminal of the serial port assistant will also print relevant information
Open the browser on your computer or mobile phone
Then watch the video through the obtained IP address. For example, the obtained sta_ip is: "192.168.2.199"/ap_ip is: "192.168.4.1"
Then you can watch the live camera footage in 2 ways
xxxxxxxxxx
The above constants are defined in the esp32_wifi.c source code of this project
If you want to change the wifi mode, this tutorial defaults to dual mode coexistence, that is, STA+AP mode Select the mode under the file esp32_wifi.h
xxxxxxxxxx
#define MODE_AP 0
#define MODE_STA 0
#define MODE_AP_STA 1
0: represents canceling this mode 1: represents selecting this mode You can only choose one mode, not at the same time, otherwise the IP address will not be queried