Wi-Fi password dynamic updating method and device

By automatically updating the password when the Wi-Fi router detects a second device connection, the communication interruption problem caused by manually changing the Wi-Fi password in the prior art is solved, and automatic updates and efficient communication are achieved.

CN115086952BActive Publication Date: 2025-12-30VIVO MOBILE COMM CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210704950.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-21
Publication Date
2025-12-30
Estimated Expiration
2042-06-21

AI Technical Summary

Technical Problem

In existing technologies, after changing the Wi-Fi password, connected devices need to manually enter the new password, which leads to communication interruption and inefficiency.

Method used

When a second device other than the first electronic device is detected to be connected to the Wi-Fi router, the Wi-Fi password is automatically updated. Under certain conditions, the password is updated from the first password to the second password and sent to the first device.

Benefits of technology

It eliminates the need for users to manually change Wi-Fi passwords, ensuring uninterrupted communication connections and improving communication efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115086952B_ABST
    Figure CN115086952B_ABST
Patent Text Reader

Abstract

The application discloses a Wi-Fi password dynamic updating method and device, and belongs to the technical field of communication. The Wi-Fi password dynamic updating method applied to a Wi-Fi router comprises the following steps: in the case that a second electronic device, except for a first electronic device, is detected to be in communication connection with the Wi-Fi router, starting a Wi-Fi password dynamic updating function; in the case that the connection states of the first electronic device and the second electronic device with the Wi-Fi router satisfy a first condition, updating the Wi-Fi password from a first password to a second password; and sending the second password to the first electronic device, so that the first electronic device updates the Wi-Fi password.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of Internet technology, specifically relating to a method and apparatus for dynamically updating Wi-Fi passwords. Background Technology

[0002] A router is a hardware device that connects two or more networks. It acts as a gateway between networks and is a dedicated intelligent network device that reads the address in each data packet and then decides how to transmit it.

[0003] A Wi-Fi router is a router that converts wired network signals and mobile network signals into wireless signals. It is commonly used in homes, offices, schools, hotels, and other similar locations.

[0004] In related technologies, when a user changes the Wi-Fi password of a Wi-Fi router, electronic devices that have been connected to the Wi-Fi router via the Wi-Fi password will disconnect from the Wi-Fi router, causing data transmission interruption. At this time, the user needs to manually enter the changed Wi-Fi password into the electronic device in order to communicate with the Wi-Fi router again, resulting in low communication efficiency. Summary of the Invention

[0005] The purpose of this application is to provide a method and apparatus for dynamically updating Wi-Fi passwords, which can solve the problem of low communication efficiency.

[0006] In a first aspect, embodiments of this application provide a method for dynamically updating Wi-Fi passwords in a Wi-Fi router, including:

[0007] If a second electronic device other than the first electronic device is detected to be communicating with the Wi-Fi router, the Wi-Fi password dynamic update function is activated;

[0008] If the connection status between the first electronic device and the second electronic device and the Wi-Fi router meets the first condition, the Wi-Fi password will be updated from the first password to the second password;

[0009] Send a second password to the first electronic device to update the Wi-Fi password.

[0010] Secondly, embodiments of this application provide a Wi-Fi password dynamic update device for a Wi-Fi router, comprising:

[0011] The startup module is used to activate the dynamic Wi-Fi password update function when a second electronic device other than the first electronic device is detected to be communicating with the Wi-Fi router.

[0012] The update module is used to update the Wi-Fi password from the first password to the second password when the connection status between the first electronic device and the second electronic device and the Wi-Fi router meets the first condition;

[0013] The sending module is used to send a second password to the first electronic device so that the first electronic device can update the Wi-Fi password.

[0014] Thirdly, embodiments of this application provide a router, including a processor and a memory, wherein the memory stores a program or instructions that can run on the processor, and when the program or instructions are executed by the processor, they implement the steps of the method described in the first aspect.

[0015] Fourthly, embodiments of this application provide a readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps of the method described in the first aspect.

[0016] Fifthly, embodiments of this application provide a chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run programs or instructions to implement the steps of the method described in the first aspect.

[0017] In a sixth aspect, embodiments of this application provide a computer program product stored in a storage medium, which is executed by at least one processor to implement the method described in the first aspect.

[0018] In this embodiment, when the Wi-Fi router detects a communication connection between a second electronic device (other than the first electronic device) and the Wi-Fi router, it activates the dynamic Wi-Fi password update function. If the connection status between the first and second electronic devices and the Wi-Fi router meets a first condition, the Wi-Fi password is updated from a first password to a second password. The second password is then sent to the first electronic device to update its Wi-Fi password. Thus, the user does not need to manually change the Wi-Fi password on the first electronic device; the first electronic device can automatically update its Wi-Fi password, ensuring uninterrupted communication with the Wi-Fi router and improving communication efficiency. Attached Figure Description

[0019] Figure 1 This is a flowchart illustrating the Wi-Fi password dynamic update method for Wi-Fi routers provided in this application embodiment;

[0020] Figure 2 This is a schematic diagram of the structure of the Wi-Fi password dynamic update device applied to a Wi-Fi router provided in the embodiments of this application;

[0021] Figure 3This is a schematic diagram of the router structure provided in the embodiments of this application;

[0022] Figure 4 This is a schematic diagram of the hardware structure of an electronic device that implements the embodiments of this application. Detailed Implementation

[0023] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.

[0024] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.

[0025] The following description, in conjunction with the accompanying drawings, details the Wi-Fi password dynamic update method and apparatus provided in this application through specific embodiments and application scenarios.

[0026] Figure 1 This is a flowchart illustrating a method for dynamically updating Wi-Fi passwords in a Wi-Fi router, as provided in an embodiment of this application. The method for dynamically updating Wi-Fi passwords in a Wi-Fi router may include:

[0027] Step 101: If a second electronic device other than the first electronic device is detected to be communicating with the Wi-Fi router, activate the Wi-Fi password dynamic update function;

[0028] Step 102: If the connection status between the first electronic device and the second electronic device and the Wi-Fi router meets the first condition, update the Wi-Fi password from the first password to the second password;

[0029] Step 103: Send a second password to the first electronic device to update the Wi-Fi password.

[0030] The specific implementation methods of the above steps will be described in detail below.

[0031] In this embodiment, when the Wi-Fi router detects a communication connection between a second electronic device (other than the first electronic device) and the Wi-Fi router, it activates the dynamic Wi-Fi password update function. If the connection status between the first and second electronic devices and the Wi-Fi router meets a first condition, the Wi-Fi password is updated from a first password to a second password. The second password is then sent to the first electronic device to update its Wi-Fi password. Thus, the user does not need to manually change the Wi-Fi password on the first electronic device; the first electronic device can automatically update its Wi-Fi password, ensuring uninterrupted communication with the Wi-Fi router and improving communication efficiency.

[0032] In some possible implementations of the embodiments of this application, the first electronic device in the embodiments of this application can be an electronic device set by the user, such as an electronic device corresponding to an electronic device identifier (e.g., MAC address) added by the user in the configuration file or settings interface of the Wi-Fi router.

[0033] In some possible implementations of the embodiments of this application, the first electronic device in the embodiments of this application may also be an electronic device determined based on the historical connection information with the Wi-Fi router. For example, an electronic device that has communicated with the Wi-Fi router more than a threshold number of times and whose connection duration for each connection is greater than a second duration threshold may be determined as the first electronic device.

[0034] For example, let's take a threshold of 5 connections and a second duration threshold of 8 hours. A user typically leaves home for work around 8 AM and returns home around 6 PM. When leaving for work, their electronic device disconnects from the Wi-Fi router because it's outside the router's coverage area. Upon returning home, the device reconnects to the router because it's back within the router's coverage area. If, within a week, the device connects to the router more than 5 times, and each connection lasts approximately 14 hours (more than 8 hours), then the device is identified as the first electronic device.

[0035] Understandably, the first electronic device can be considered as one that requires long-term use and can utilize the Wi-Fi router.

[0036] In some possible implementations of the embodiments of this application, the Wi-Fi router can be pre-configured with a dynamic Wi-Fi password update function, which is used to dynamically update the Wi-Fi password.

[0037] In some possible implementations of the embodiments of this application, when the Wi-Fi router is a Wi-Fi router used in a home, the second electronic device can be an electronic device used by a non-family member, and in this case, the first electronic device can be an electronic device used by a family member; when the Wi-Fi router is a Wi-Fi router used in a company, the second electronic device can be an electronic device used by a non-company employee, and in this case, the first electronic device can be an electronic device used by a company employee.

[0038] In some possible implementations of the embodiments of this application, the connection status between the first electronic device and the second electronic device and the Wi-Fi router in the embodiments of this application satisfies a first condition, which may include:

[0039] The second electronic device disconnects from the Wi-Fi router; or,

[0040] The duration of the communication connection between the second electronic device and the Wi-Fi router exceeds the first duration threshold.

[0041] For example, when user A visits user B's home, user B provides user A with the Wi-Fi password for their home's Wi-Fi router. User A's electronic device then communicates and connects to user B's Wi-Fi router using this password. It is understood that in this example, user A's electronic device is the second electronic device, and user B's electronic device is the first electronic device. When user A leaves user B's home, the communication connection between user A's electronic device and user B's Wi-Fi router is lost. At this point, it indicates that the connection status of both the first and second electronic devices with the Wi-Fi router satisfies the first condition.

[0042] Furthermore, if the connection status between the first electronic device and the second electronic device and the Wi-Fi router meets the first condition, the communication connection between the second electronic device and the Wi-Fi router can be disconnected, and the number of the first electronic devices connected to the Wi-Fi router is greater than the number threshold.

[0043] For example, consider a threshold of 3. User B's household has 5 people, each with an electronic device, and all 5 electronic devices are connected to the Wi-Fi router in their home. It is understood that each of the 5 people in User B's household has an electronic device, as described in the first example.

[0044] When User A visits User B's home, all of User B's family members are home. User B provides User A with the Wi-Fi password for their home Wi-Fi router, and User A's electronic device communicates and connects to User B's Wi-Fi router using this password. In this example, User A's electronic device is considered the second electronic device. When User A leaves User B's home, four family members are home, and one family member is away. User A's electronic device loses its connection to User B's Wi-Fi router. At this point, there are four first electronic devices communicating with User B's Wi-Fi router, exceeding the threshold of 3. Therefore, the connection status of both the first and second electronic devices with the Wi-Fi router satisfies the first condition.

[0045] When User A visits User B's home, all of User B's family members are home. User B provides User A with the Wi-Fi password for their home Wi-Fi router, and User A's electronic devices connect to User B's Wi-Fi router using this password. When User A leaves User B's home, two family members are home, and three family members are out. User A's electronic devices lose connection with User B's Wi-Fi router. At this point, there are two electronic devices still connected to User B's Wi-Fi router, which is less than the threshold of three. Therefore, the connection status of both the first and second electronic devices with the Wi-Fi router does not meet the first condition.

[0046] In this embodiment of the application, the purpose is to prevent a guest user from automatically connecting to the Wi-Fi network whenever they arrive in the vicinity after connecting to the Wi-Fi network once, thereby occupying the network or using the network for communication.

[0047] For another example, let's take a first duration threshold of 2 hours. User A's neighbor, User B, experiences a network outage, and User B needs to temporarily establish a communication connection with the external network using User A's Wi-Fi router. In this case, User A provides User B with the Wi-Fi password for their router. It's understood that in this example, User B's electronic device is the second electronic device, and User A's electronic device is the first electronic device. When the communication connection between User B's electronic device and the Wi-Fi router lasts longer than 2 hours, it indicates that the connection status of both the first and second electronic devices with the Wi-Fi router meets the first condition.

[0048] In this embodiment of the application, in order to prevent other users from hogging the Wi-Fi router's network resources for an extended period of time, users with excessively long access times are identified as second electronic devices.

[0049] In some possible implementations of the embodiments of this application, if the communication connection duration between the second electronic device and the Wi-Fi router exceeds a first duration threshold, before step 102, the Wi-Fi password dynamic update method provided in the embodiments of this application may further include: adjusting the Wi-Fi signal coverage range of the Wi-Fi router so that the second electronic device disconnects from the communication connection with the Wi-Fi router.

[0050] In some possible implementations of this application, the Wi-Fi signal coverage range of the Wi-Fi router can be narrowed, and the propagation direction of the Wi-Fi signal can be adjusted to adjust the Wi-Fi signal coverage range. When the Wi-Fi signal coverage range of the Wi-Fi router is adjusted so that the second electronic device is no longer within the Wi-Fi signal coverage range, while the first electronic device is within the Wi-Fi signal coverage range, the communication connection between the second electronic device and the Wi-Fi router is disconnected, while the communication connection between the first electronic device and the Wi-Fi router remains open. Then, the Wi-Fi password is updated from the first password to the second password; the second password is then sent to the first electronic device.

[0051] In this embodiment, since only the first electronic device remains connected to the Wi-Fi router after the Wi-Fi signal coverage area is adjusted, only the first electronic device can receive the updated second password and thus update its password accordingly. The second electronic device, which has already disconnected, will not be able to automatically reconnect even if it is within the Wi-Fi router's range the next time the password is updated.

[0052] In some possible implementations of the embodiments of this application, after step 103, the Wi-Fi password dynamic update method provided in the embodiments of this application may further include: restoring the Wi-Fi signal coverage of the Wi-Fi router.

[0053] In this embodiment of the application, although the second electronic device may be within the Wi-Fi signal coverage area of ​​the Wi-Fi router, it cannot connect to the Wi-Fi router using the original Wi-Fi password because the Wi-Fi password has been updated.

[0054] In some possible implementations of the embodiments of this application, step 102 may include: generating a second password according to the Wi-Fi password update algorithm and the Wi-Fi password update key; and updating the Wi-Fi password from the first password to the second password.

[0055] This application does not limit the specific process of generating a second password based on the Wi-Fi password update algorithm and the Wi-Fi password update key; any available method can be used in this application.

[0056] In some possible implementations of the embodiments of this application, in step 103, the Wi-Fi router sends the second password generated according to the Wi-Fi password update algorithm and the Wi-Fi password update key to the first electronic device. The first electronic device updates the Wi-Fi password to the second password. During this process, the user does not need to manually enter the updated Wi-Fi password, and the first electronic device can automatically update the Wi-Fi password.

[0057] The following uses a specific application scenario as an example to illustrate the Wi-Fi password dynamic update method provided in this application embodiment.

[0058] For example, after purchasing a Wi-Fi router and installing it in their home, the user can connect to the internet using the router's initial Wi-Fi password or reconfigure the password to connect using the reconfigured password. The user's own electronic devices and those of their family members can then be configured as the first set of electronic devices. When a guest visits, the user provides the Wi-Fi password, and the guest's electronic device connects to the user's Wi-Fi router using that password. When the guest leaves, the connection is lost, and the router updates the password and sends the updated password to both the user's and family members' electronic devices. These devices then update their passwords to the new password sent by the router. When the guest visits again, the password has been updated, and the guest's electronic device cannot automatically connect to the router.

[0059] For another example, after purchasing a Wi-Fi router and installing it in their home, the user can connect to the internet using the router's default Wi-Fi password or reconfigure the password to connect using the reconfigured password. The user's electronic devices and those of their family members can then be designated as the primary electronic devices. When a neighbor's internet connection drops, the neighbor needs to temporarily connect to the internet using the user's Wi-Fi router. In this case, the user shares their Wi-Fi password with their neighbor. The neighbor's electronic devices then temporarily connect to the internet through the user's Wi-Fi router. If the neighbor's connection to the Wi-Fi router remains unused for an extended period, it's possible that the neighbor is using the user's internet connection without permission. To prevent unauthorized access to your Wi-Fi network, a Wi-Fi router can adjust its Wi-Fi signal coverage. This ensures that the user's electronic devices and those of their family members are within range, while neighbors' devices are outside. The neighbors' devices then disconnect from the router, and the router updates the Wi-Fi password, sending the updated password to both the user's and family members' devices. These devices then update their passwords to the new password sent by the router. Finally, the router restores its Wi-Fi coverage. Now, even if a neighbor's device is within the router's range and can detect the network, it cannot automatically connect because the password has been updated.

[0060] It should be noted that the Wi-Fi password dynamic update method provided in this application embodiment can be executed by a Wi-Fi password dynamic update device. This application embodiment uses a Wi-Fi password dynamic update device executing the Wi-Fi password dynamic update method as an example to illustrate the Wi-Fi password dynamic update device provided in this application embodiment.

[0061] Figure 2 This is a schematic diagram of the structure of a Wi-Fi password dynamic update device applied to a Wi-Fi router according to an embodiment of this application. The Wi-Fi password dynamic update device 200 applied to a Wi-Fi router may include:

[0062] The startup module 201 is used to start the Wi-Fi password dynamic update function when a second electronic device other than the first electronic device is detected to be communicating with the Wi-Fi router.

[0063] The update module 202 is used to update the Wi-Fi password from the first password to the second password when the connection status between the first electronic device and the second electronic device and the Wi-Fi router meets the first condition.

[0064] The sending module 203 is used to send a second password to the first electronic device so that the first electronic device can update the Wi-Fi password.

[0065] In this embodiment, when the Wi-Fi router detects a communication connection between a second electronic device (other than the first electronic device) and the Wi-Fi router, it activates the dynamic Wi-Fi password update function. If the connection status between the first and second electronic devices and the Wi-Fi router meets a first condition, the Wi-Fi password is updated from a first password to a second password. The second password is then sent to the first electronic device to update its Wi-Fi password. Thus, the user does not need to manually change the Wi-Fi password on the first electronic device; the first electronic device can automatically update its Wi-Fi password, ensuring uninterrupted communication with the Wi-Fi router and improving communication efficiency.

[0066] In some possible implementations of the embodiments of this application, the connection status between the first electronic device and the second electronic device and the Wi-Fi router satisfies the first condition, which may include:

[0067] The second electronic device disconnects from the Wi-Fi router; or,

[0068] The duration of the communication connection between the second electronic device and the Wi-Fi router exceeds the first duration threshold.

[0069] In some possible implementations of the embodiments of this application, the Wi-Fi password dynamic update device 200 applied to a Wi-Fi router may further include:

[0070] The adjustment module is used to adjust the Wi-Fi signal coverage of the Wi-Fi router when the communication connection duration between the second electronic device and the Wi-Fi router exceeds a first duration threshold, so as to disconnect the second electronic device from the Wi-Fi router.

[0071] In some possible implementations of the embodiments of this application, the update module 203 may specifically be used for:

[0072] A second password is generated based on the Wi-Fi password update algorithm and the Wi-Fi password update key;

[0073] Update the Wi-Fi password from the first password to the second password.

[0074] In some possible implementations of embodiments of this application, the first electronic device may include:

[0075] User-configured electronic devices; or,

[0076] The electronic devices identified based on their historical connection history with the Wi-Fi router.

[0077] The Wi-Fi password dynamic update device for Wi-Fi routers provided in this application embodiment can achieve... Figure 1 The various processes in the embodiment of the Wi-Fi password dynamic update method applied to Wi-Fi routers will not be described again here to avoid repetition.

[0078] Optional, such as Figure 3 As shown, this application embodiment also provides a router 300, including a processor 301 and a memory 302. The memory 302 stores a program or instructions that can run on the processor 301. When the program or instructions are executed by the processor 301, they implement the various steps of the above-described Wi-Fi password dynamic update method embodiment and can achieve the same technical effect. To avoid repetition, they will not be described again here.

[0079] In some possible implementations of the embodiments of this application, processor 301 may include a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits that can be configured to implement the embodiments of this application.

[0080] In some possible implementations of embodiments of this application, memory 302 may include read-only memory (ROM), random access memory (RAM), disk storage media device, optical storage media device, flash memory device, electrical, optical, or other physical / tangible memory storage device. Therefore, typically, memory 302 includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the Wi-Fi password dynamic update method according to embodiments of this application.

[0081] Figure 4 This is a schematic diagram of the hardware structure of an electronic device that implements the embodiments of this application.

[0082] The electronic device 400 includes, but is not limited to, components such as: radio frequency unit 401, network module 402, audio output unit 403, input unit 404, sensor 405, display unit 406, user input unit 407, interface unit 408, memory 409, and processor 410.

[0083] Those skilled in the art will understand that the electronic device 400 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 410 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 4 The electronic device structure shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.

[0084] The radio frequency unit 401 is used to communicate with the Wi-Fi router and receive the Wi-Fi password sent by the Wi-Fi router.

[0085] Processor 410 is used to update the Wi-Fi password to the Wi-Fi password sent by the Wi-Fi router.

[0086] It should be understood that, in this embodiment, the input unit 404 may include a graphics processing unit (GPU) 4041 and a microphone 4042. The GPU 4041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 406 may include a display panel 4061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like. The user input unit 407 includes at least one of a touch panel 4071 and other input devices 4072. The touch panel 4071 is also called a touch screen. The touch panel 4071 may include a touch detection device and a touch controller. Other input devices 4072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, power buttons, etc.), trackballs, mice, and joysticks, which will not be described in detail here.

[0087] The memory 409 can be used to store software programs and various data. The memory 409 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, application programs or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory 409 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory 409 in the embodiments of this application includes, but is not limited to, these and any other suitable types of memory.

[0088] Processor 410 may include one or more processing units; optionally, processor 410 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into processor 410.

[0089] The electronic device 400 in this application embodiment can be a terminal or other devices besides a terminal. For example, the electronic device can be a mobile phone, tablet computer, laptop computer, handheld computer, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc.

[0090] The electronic device 400 in this application embodiment can be an electronic device with an operating system. The operating system can be the Android operating system, the iOS operating system, or other possible operating systems, and this application embodiment does not specifically limit it.

[0091] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described embodiment of the Wi-Fi password dynamic update method applied to a Wi-Fi router and achieve the same technical effect. To avoid repetition, they will not be described again here.

[0092] The processor is the processor in the router described in the above embodiments. The readable storage medium includes a computer-readable storage medium, and examples of computer-readable storage media include non-transitory computer-readable storage media such as ROM, RAM, magnetic disks, or optical disks.

[0093] This application also provides a chip, including a processor and a communication interface. The communication interface and the processor are coupled. The processor is used to run programs or instructions to implement the various processes of the above-described embodiments of the Wi-Fi password dynamic update method applied to Wi-Fi routers, and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0094] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.

[0095] This application provides a computer program product stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-described embodiment of the Wi-Fi password dynamic update method applied to a Wi-Fi router, and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0096] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

[0097] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the related technology, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0098] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.

Claims

1. A method for dynamic updating of Wi-Fi password, characterized in that, The method is applied to a Wi-Fi router, and the method comprises: starting a Wi-Fi password dynamic updating function in a case where a second electronic device other than a first electronic device is detected to be in communication connection with the Wi-Fi router; updating a Wi-Fi password from a first password to a second password in a case where connection states of the first electronic device and the second electronic device with the Wi-Fi router satisfy a first condition; sending the second password to the first electronic device to enable the first electronic device to update the Wi-Fi password; the connection states of the first electronic device and the second electronic device with the Wi-Fi router satisfying the first condition comprise one of the following: the second electronic device disconnecting the communication connection with the Wi-Fi router; a communication connection duration of the second electronic device with the Wi-Fi router being greater than a first duration threshold; the second electronic device disconnecting the communication connection with the Wi-Fi router, and a number of the first electronic devices in communication connection with the Wi-Fi router being greater than a number threshold.

2. The method of claim 1, wherein, in a case where the communication connection duration of the second electronic device with the Wi-Fi router is greater than the first duration threshold, before the updating the Wi-Fi password from the first password to the second password, the method further comprises: adjusting a Wi-Fi signal coverage range of the Wi-Fi router to enable the second electronic device to disconnect the communication connection with the Wi-Fi router.

3. The method of claim 1, wherein, the updating the Wi-Fi password from the first password to the second password comprises: generating the second password according to a Wi-Fi password updating algorithm and a Wi-Fi password updating key; updating the Wi-Fi password from the first password to the second password.

4. The method of claim 1, wherein, the first electronic device comprises: an electronic device set by a user; or an electronic device determined according to a historical connection condition with the Wi-Fi router.

5. A Wi-Fi password dynamic updating apparatus, characterized in that, The device is applied to a Wi-Fi router, and the device comprises: a starting module configured to start a Wi-Fi password dynamic updating function in a case where a second electronic device other than a first electronic device is detected to be in communication connection with the Wi-Fi router; an updating module configured to update a Wi-Fi password from a first password to a second password in a case where connection states of the first electronic device and the second electronic device with the Wi-Fi router satisfy a first condition; a sending module configured to send the second password to the first electronic device to enable the first electronic device to update the Wi-Fi password; the connection states of the first electronic device and the second electronic device with the Wi-Fi router satisfying the first condition comprise one of the following: the second electronic device disconnecting the communication connection with the Wi-Fi router; a communication connection duration of the second electronic device with the Wi-Fi router being greater than a first duration threshold; the second electronic device disconnecting the communication connection with the Wi-Fi router, and a number of the first electronic devices in communication connection with the Wi-Fi router being greater than a number threshold. The second electronic device disconnects the communication connection with the Wi-Fi router, and the number of the first electronic devices connected with the Wi-Fi router is greater than a number threshold.

6. The apparatus of claim 5, wherein, The apparatus further comprises: The adjusting module is configured to adjust a Wi-Fi signal coverage range of the Wi-Fi router, so that the second electronic device disconnects the communication connection with the Wi-Fi router, when the communication connection duration of the second electronic device with the Wi-Fi router is greater than the first duration threshold.

7. The apparatus of claim 5, wherein, The updating module is specifically configured to: generate the second password according to a Wi-Fi password updating algorithm and a Wi-Fi password updating key; and update the Wi-Fi password from the first password to the second password.

8. The apparatus of claim 5, wherein, The first electronic device comprises: an electronic device set by a user; or an electronic device determined according to a historical connection condition with the Wi-Fi router.

Citation Information

Patent Citations

  • Method and device for automatically replacing information of network device, and network device

    CN109246854A

  • Password updating method and device, storage medium and electronic device

    CN112040484A