Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:iot-open:practical:hardware:sut:stm32:iot_2 [2024/04/26 10:22] – [Task to be implemented] ktokarzen:iot-open:practical:hardware:sut:stm32:iot_2 [2024/04/27 08:15] (current) – [Result validation] ktokarz
Line 1: Line 1:
 ====== STM_IoT_2: Connecting to the WiFi Access Point and presenting IP ===== ====== STM_IoT_2: Connecting to the WiFi Access Point and presenting IP =====
-Each computer connected to the Internet is identified with the IP address. IP abbreviation stands for Internet Protocol, which is responsible for transmitting data packets between computers in the whole global web - the Internet. The same mechanism is used to address and transmit packets among IP-capable IoT devices. The most popular local networks which support IP addressing are Ethernet and WiFi. Currently the transition from traditional IPv4 to new IPv6 version occurs. Our laboratory supports IPv4.+Each computer connected to the Internet is identified with the IP address. IP abbreviation stands for Internet Protocol, which is responsible for transmitting data packets between computers in the whole global web - the Internet. The same mechanism is used for addressing and transmitting packets among IP-capable IoT devices. The most popular local networks which support IP addressing are Ethernet and WiFi. Currentlythe transition from traditional IPv4 to the new IPv6 version is occurring. Our laboratory supports IPv4.
 \\ \\
 The STM32WB55 SoC doesn't have Ethernet or WiFi network controller so our STM laboratory stands have the WiFi module based on ESP32-C3 SoC. It is connected by a serial port and controlled with AT commands. To learn how to use these commands please refer to the STM_IoT_Intro chapter. The STM32WB55 SoC doesn't have Ethernet or WiFi network controller so our STM laboratory stands have the WiFi module based on ESP32-C3 SoC. It is connected by a serial port and controlled with AT commands. To learn how to use these commands please refer to the STM_IoT_Intro chapter.
 \\ \\
-ESP32 chip gets the IP address from the DHCP server after establishing the connection with the FiFi access point. In this scenario, we present how to connect to a WiFi network and read and display the IP address on an LCD. Displaying on other display than LCD is up to the developer. You can refer to the appropriate scenario, as listed below.+ESP32 chip gets the IP address from the DHCP server after establishing the connection with the WiFi access point. In this scenario, we present how to connect to a WiFi network and read and display the IP address on an LCD. Displaying on other display than LCD is up to the developer. You can refer to the appropriate scenario, as listed below.
  
 ===== Prerequisites ===== ===== Prerequisites =====
Line 76: Line 76:
 Texts sent as part of the message are delimited with double quotation marks. In C++ we need to mark them with backslash characters inside the string constants. Examples above include these markings. Texts sent as part of the message are delimited with double quotation marks. In C++ we need to mark them with backslash characters inside the string constants. Examples above include these markings.
 </note> </note>
 +Some explanation can be needed for the "AT+RST" and "AT+SYSSTORE=0" commands. 
 +If we don't use the "AT+SYSSTORE=0" command our module stores the WiFi credentials in non-volatile memory and automatically connects to the network after powering on. In our laboratory, it is not recommended because the next commands can return "ERROR" if we try to connect the network and MQTT broker if we are already connected.
 +If we don't use the "AT+RST" command our module will keep the WiFi connection active, even if we upload the new version of the software. It would result in the same error in the case of WiFi or MQTT reconnecting.
  
 === Step 3 === === Step 3 ===
Line 97: Line 100:
 <note> <note>
 Using another node ar even the same node another time can change the IP read. You can book another device and discover its IP. Using another node ar even the same node another time can change the IP read. You can book another device and discover its IP.
 +</note>
 +<note info>
 +Because LCD can't properly display some non-visible characters the presented code sometimes shows additional, non-letter characters. It is out of the scope of this scenario to filter these characters out. We leave the task of making visual improvements to your invention.
 </note> </note>
  
en/iot-open/practical/hardware/sut/stm32/iot_2.1714126927.txt.gz · Last modified: 2024/04/26 10:22 by ktokarz
CC Attribution-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0