In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
Today, I will talk to you about how to achieve one-click configuration of WIFI, many people may not know much about it. In order to make you understand better, the editor summed up the following content for you. I hope you can get something according to this article.
1. The wifi module can connect to the router, so can it be controlled remotely?
The wifi module can connect to the router, which shows that there is no problem to realize the LAN control of the router.
2. In the process of remote control, is it possible to build a server in your own home?
Remote control needs a server, but it is very unlikely for users to build a server at home through their own computers, because building a server requires public network Ip and server-related software development, and the maintenance process is a high cost.
3. What kinds of remote control can be realized on the market now?
Method 1: buy your own server hardware, build it in the Baidu server center of Tencent server (to facilitate maintenance), and develop server software by yourself. (very large enterprises)
Way 2: by renting Aliyun, you can write the software of the server. (enterprise users, more difficult)
Way 3: through some P2P platforms to achieve penetration. However, this technology in China is relatively inaccurate. (used by a small number of enterprises)
Way 4: through third-party platforms, such as smart cloud and so on. (corporate users and individual developers)
Way 5: through the router peanut shell technology analysis, to achieve the mapping process. (amateur)
It can be clearly seen from the above that for ordinary enterprises, if they want to connect their devices to the Internet, from the point of view of cost, maintenance, cycle and so on, choosing a solution such as Smart Cloud is one of the fastest, safe and reliable ways of networking.
In terms of networking, WIFI, which is widely used at present, will sum up this aspect today, and it is also hoped to have the effect of throwing a brick to attract jade for those who are in need.
Let's take a look at a question from Zhihu, which is very interesting!
Question:
A smart socket was developed with smart cloud and found to have a magical one-click configuration function. To put it simply: when the smart socket is not connected to the WiFi, the SSID and password of the WiFi can be configured to the smart socket with one click through the mobile phone App.
Zhihu was answered, and the better answer was:
Parse the one-click configuration, which generally works as follows:
1. The device enters the initialization state and starts listening to nearby WiFi packets.
two。 After the phone / tablet sets the WiFi name and password, send the UDP broadcast package.
3. The device obtains the configuration information through the UDP packet (length), switches the network mode, connects to the home WiFi, and the configuration is completed.
Next, let's analyze the principle.
Internet of things Intelligent item Route: smart hardware + APP+ Cloud
The wifi username and password of the route to be configured by APP enter the intelligent hardware. At present, various WIFI chip manufacturers basically adopt the following ways:
1) SmartConfig
2) AP mode: APP configures the mobile phone to connect to intelligent hardware (AP of WIFI chip) to build a local area network. Of course, the local area network cannot surf the Internet, but the communication of various devices in the local area network is OK.
At this time, there are generally three devices in the local area network (WIFI chips work in AP mode or AP+STATION mode), mobile phones and intelligent hardware work in STATION mode.
SmartConfig, also known as one-click configuration, is faster than AP mode. Why? Please look at the decomposition below.
The so-called SmartConfig is:
The app end of the mobile phone sends a WIFI broadcast package or a multicast package containing the WIFI password of the UDP username.
The WIFI chip of the intelligent terminal can receive the UDP packet. As long as you know the organization of the UDP, you can decrypt the WIFI user name and password through the received UDP packet.
Then the intelligent hardware is configured on the specified WIFI AP.
The bad thing about AP mode is that the configuration time is longer than smartconfig, and the WIFI access point connected to the phone will change. If the configuration is not successful, the phone cannot surf the Internet. You need to manually configure WIFI before the phone can access the Internet.
ESP8266 chip: SDK provides two connection methods:
1) smartconfig
Using UDP broadcast mode (UDP receives IP address is 255.255.255.255) esp8266 first scan AP to get relevant information about AP, such as working channel, and then configure wifi chip to work on the channel just received by scan to receive UDP packet. If it is not received, continue to configure ESP8266 to work on another channel, so cycle, until you receive the UDP packet, why proceed to SCAN WIFI AP in advance?
It is to improve the efficiency of configuration. Assuming that there are only two AP in the current network, one AP works in CHANEL1 and the other ap works in channel13. Now we need to configure smart hardware to connect to AP2, that is, channel13. If we do not advance the scan, we need to waste time scanning from 1Murray 13. It just needs to be scanned from channel1-chane2---...channnel13 all the time. If AP is scanned, the chip will quickly get the UDP packet from AP CHANNNEL1 to channel13.
2) AP access
AP is an acronym for (Wireless) AccessPoint, that is, (wireless) access access point. To put it simply, it is like a wireless router, when the device is turned on, it enters AP mode, and a name similar to TPLINK_XXX (SSID) can be found in the phone's network list.
With the increasing number of dual-band WiFi in wireless routers (which can have two WiFi names, one 5G and the other 2.4G), maybe the next time smart hardware companies change WiFi solutions, devices supporting 5G will also be a factor of choice (switch to a chip scheme that supports 5G).
As far as mobile phone manufacturers are concerned, the connection WiFi mode based on one-button configuration can be further optimized: with the help of the mobile phone to share its own connected wifi (SSID) to the device, it directly provides the user with a configuration-free experience (in fact, the background has done an one-click configuration process for you).
Of course, there are other ways to connect, such as using NFC, sound wave recognition, etc. to tell smart devices to configure the name and password of WiFi, such as Ding Dong speakers.
After reading the above, do you have any further understanding of how WIFI implements one-click configuration? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.