A system and method for realizing dynamic Wi-Fi password display
By using the time synchronization mechanism in the Wi-Fi system in public service occasions, the dynamic Wi-Fi password display between the router and the password display system is used to solve the problem of static password leakage and hidden dangers, which improves network security and users Experience.
Patent Information
- Application Number
- CN202111678258.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-31
- Publication Date
- 2025-01-24
- Estimated Expiration
- 2041-12-31
AI Technical Summary
When providing static Wi-Fi passwords in public service occasions, they are prone to leakage, resulting in security risks and network performance degradation. The existing technical solutions require frequent acquisition of router Wi-Fi passwords, which increases data security risks and merchant workload.
By establishing a time synchronization mechanism between the router and the password display system, the router calculates and updates the Wi-Fi password for each preset interval between the preset time interval. Wi-Fi password display.
There is no need to frequently obtain the router Wi-Fi password, which reduces data security risks, reduces merchant workload, and improves network security and user experience.
Smart Images

Figure CN114513301B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of network technology, and in particular to a system and method for realizing dynamic Wi-Fi password display. Background Art
[0002] In public service situations, when users need to be provided with Wi-Fi passwords, if a static Wi-Fi password is provided, the password is easily leaked, which poses a security risk. In addition, static Wi-Fi passwords are usually printed on promotional materials, which is troublesome to change. Since the capacity of routers to carry access devices is limited, and static Wi-Fi passwords are easily leaked, it is easy for a large number of non-target users to connect to the router, slowing down the network and making it less secure.
[0003] The Chinese invention patent with announcement number CN108462693A discloses a dynamic Wi-Fi password implementation method and system for merchants, which is provided with a router, a merchant management system, and a printing module. The router adjusts the Wi-Fi password at preset intervals, and the merchant management system obtains the Wi-Fi password and prints the Wi-Fi password on the order voucher given to the customer through the printing module when the customer consumes. Therefore, there is no need to worry about the password being leaked, causing non-merchant customers to access the router for a long time, affecting the customer's network experience. However, in this solution, the merchant management system needs to frequently obtain the Wi-Fi password from the router cloud, so that the merchant management system needs to access the cloud platform, which brings data security risks; the merchant can also manually enter the Wi-Fi password into the merchant management system. This method requires manual input according to the preset time interval to ensure the dynamic update of the Wi-Fi password, which increases the workload of the merchant and is easy to forget to update the Wi-Fi password, which reduces the customer experience. Summary of the invention
[0004] The first object of the present invention is to provide a method for realizing dynamic Wi-Fi password display, which can realize dynamic display of Wi-Fi password without frequently obtaining the Wi-Fi of the router.
[0005] A second object of the present invention is to provide a system for realizing dynamic Wi-Fi password display.
[0006] In order to achieve the above-mentioned first purpose, the present invention provides a method for realizing dynamic Wi-Fi password display, wherein: the router calculates the target Wi-Fi password according to the current router time at every preset time interval and changes the router's Wi-Fi password to the target Wi-Fi password; after the password display system starts working, the main control module obtains the current router time; the main control module calculates the target Wi-Fi password according to the current router time at every preset time interval, and outputs the target Wi-Fi password to the display module; the display module displays the target Wi-Fi password.
[0007] It can be seen from the above scheme that at every preset time interval, the router and the main control module calculate the target Wi-Fi password according to the same current router time and the same one-time password algorithm, so that the calculated target Wi-Fi password remains consistent. As a result, the main control module does not need to frequently obtain the Wi-Fi password of the router. When the password display system starts working, it obtains the current router time and can display the Wi-Fi password on the display module at a regular interval, thereby realizing the dynamic display of the Wi-Fi password.
[0008] A further solution is that when the main control module obtains the current router time, it uses at least one of the following methods to obtain it: the main control module is connected to the router through the Wi-Fi module and obtains the current router time from the router; or when the main control module obtains the current router time, the main control module obtains the current router time through the Bluetooth module; or when the main control module obtains the current router time, the main control module obtains the current router time through the button module.
[0009] It can be seen that there are various ways for the main control module to obtain the current router time. The current router time can be obtained by connecting to the router, or it can be directly input by the user.
[0010] A further solution is that when the router calculates the target Wi-Fi password according to the current router time, and when the main control module calculates the target Wi-Fi password according to the current router time, the following steps are performed: the target Wi-Fi password is calculated according to the current router time and the hash algorithm.
[0011] A further solution is that when the main control module obtains the current router time, it also obtains the shared key between the router and the password display system.
[0012] A further solution is that when the router and the main control module calculate the target Wi-Fi password according to the current router time and the hash algorithm, the target Wi-Fi password is calculated according to the current router time, the shared secret key, and the hash algorithm.
[0013] This shows that the safety of the present invention is enhanced.
[0014] A further solution is that after the router is working, the router can receive a first adjustment signal to adjust the preset time interval; and / or after the password display system is working, the main control module can receive a second adjustment signal to adjust the preset time interval.
[0015] It can be seen from this that the time interval for changing the password of the router can be set freely, and the time interval for changing the password of the password display system is the same as that of the router.
[0016] A further solution is that the display module includes an ink screen, and the display module enters a sleep state after displaying the target Wi-Fi password, is awakened after a preset time, and receives and displays the next target Wi-Fi password.
[0017] It can be seen that the power consumption of the present invention is low.
[0018] In order to achieve the above-mentioned second purpose, the present invention provides a system for realizing dynamic Wi-Fi password display, which includes: a password display system and a router, the password display system includes a main control module, a Wi-Fi module, and a display module, the main control module is connected to the Wi-Fi module, the main control module is connected to the display module, and the Wi-Fi module is connected to the router; the router is used to calculate the target Wi-Fi password according to the current router time and the preset time interval and change the Wi-Fi password of the router to the target Wi-Fi password; the Wi-Fi module is used to obtain the current router time and transmit the current router time to the main control module; the main control module is also used to calculate the target Wi-Fi password according to the current router time and the preset time interval and transmit the target Wi-Fi password to the display module; the display module is used to display the Wi-Fi password.
[0019] It can be seen from the above scheme that the present invention sets a password display system and a router. The router calculates the target Wi-Fi password according to the current router time and the preset time interval. The main control module obtains the current router time through the Wi-Fi module, and calculates the target Wi-Fi password that is the same as the router in combination with the preset time interval. As a result, the main control module does not need to frequently obtain the Wi-Fi password of the router. When the password display system starts working, the current router time is obtained, and the Wi-Fi password can be displayed on the display module at a regular interval, thereby realizing the dynamic display of the Wi-Fi password.
[0020] A further solution is that the password display system includes a clock module, and the main control module is connected to the clock module.
[0021] It can be seen that the clock module stores the current router time, so that the main control module does not need to repeatedly obtain the current router time through the Wi-Fi module.
[0022] A further solution is that the password display system includes a Bluetooth module, and the Bluetooth module is connected to the main control module.
[0023] It can be seen that the current time of the router can be input through the Bluetooth module, and the preset time interval can be changed. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1 It is a structural block diagram of a system for realizing dynamic Wi-Fi display in the present invention.
[0025] Figure 2 It is a flow chart of a main program of a password display system of a first embodiment of a method for realizing dynamic Wi-Fi display of the present invention.
[0026] The present invention is further described below in conjunction with the accompanying drawings and embodiments. DETAILED DESCRIPTION
[0027] The present invention is used to synchronize the Wi-Fi password of a router to a password display system in real time. Since the change of the Wi-Fi password of the router and the change of the Wi-Fi password displayed by the password display system are both calculated according to the current router time, the password display system does not need to be frequently synchronized with the router and can realize dynamic Wi-Fi password display according to a preset time interval.
[0028] A system embodiment of the present invention for realizing dynamic Wi-Fi display:
[0029] See also Figure 1 The system for realizing dynamic Wi-Fi display in this embodiment includes a password display system 1 and a router 2. The password display system 1 includes a main control module 11, a Wi-Fi module 12, a display module 13, a clock module 14, and a Bluetooth module 15. The main control module 11 is connected to the Wi-Fi module 12, the main control module 11 is connected to the display module 13, the main control module 11 is connected to the clock module 14, the main control module 11 is connected to the Bluetooth module 15, and the router 2 is connected to the password display system 1 by connecting to the Bluetooth Wi-Fi module 12.
[0030] The Wi-Fi module 12 obtains the current router time of the router 2 and transmits the current router time to the main control module 11. The router 2 calculates the target Wi-Fi password according to the current router time and the preset time interval. The main control module 11 calculates the target Wi-Fi password according to the current router time and the preset time interval, thereby realizing that at the same time, the Wi-Fi password of the password display system 1 is the same as the Wi-Fi password of the router 2. The main control module 11 transmits the calculated target Wi-Fi password to the display module 13, and the display module 13 includes an ink screen, and the display of the target Wi-Fi password is realized by the ink screen. The main control module 11 inputs the obtained current router time into the clock module 14, and the clock module 14 saves the current router time and records the current router time after the time change. The Bluetooth module 15 can be connected to the user's mobile terminal, such as a smart phone. The user can transmit the instruction to modify the current router time and the instruction to modify the preset time interval to the Bluetooth module 15 through the Bluetooth of the smart phone, and the Bluetooth module 15 transmits the instruction to the main control module 11 for execution. In this embodiment, the main control module 11 is a single-chip microcomputer.
[0031] A first embodiment of a method for realizing dynamic Wi-Fi display according to the present invention:
[0032] Before the password display system works, the router calculates the target Wi-Fi password according to the current router time at every preset time interval and changes the router's Wi-Fi password to the target Wi-Fi password. Specifically, the router can receive a first adjustment signal input by the user to adjust the preset time interval and determine the cycle of changing the target Wi-Fi password. The specific calculation process of the target Wi-Fi password is to use the current time of the router as the input, process it through the hash algorithm, obtain a fixed-length value and take a certain number of digits of the value, thereby obtaining the target Wi-Fi password.
[0033] After the password display system starts working, the main control module of the password display system determines whether the current router time is stored, that is, executes step S1. Specifically, when the password display system does not save time data, the timestamp will be a preset default value, and the system starts timing from this value, such as January 1, 1970. The main control module can determine whether the current router time is currently stored by reading the timestamp data. When the read timestamp data starts to change from the default value, the main control module confirms that the password display system does not store the current router time at this time, that is, it is considered that the time of the password display system is not synchronized with the time of the router, and it is necessary to obtain the current router time, that is, execute step S2. When the read timestamp data does not start to change from the default value, it is considered that the time of the password display system is synchronized with the time of the router, and step S3 can be continued.
[0034] When the main control module confirms that the current router time is not stored, step S2 is executed, and the main control module obtains the current router time. Specifically, if the password display system is provided with a Wi-Fi module, the main control module can be connected to the Wi-Fi module, connected to the router through the Wi-Fi module, and obtain the current router time from the router; if the password display system is provided with a Bluetooth module, the main control module can be connected to the Bluetooth module, and the user communicates with the Bluetooth module through the Bluetooth of his mobile terminal to input the current router time into the main control module; if the password display system is provided with a key module, the main control module is connected to the key module, and the user can manually input the current router time into the main control module by pressing the key. After the main control module obtains the current router time, step S3 can be continued.
[0035] Execute step S3, the main control module calculates the target Wi-Fi password according to the current router time and transmits the target Wi-Fi password to the display module. Specifically, the main control module calculates the target Wi-Fi password in the same way, that is, the current router time is also used as the input, and the hash algorithm is used to process it to obtain a fixed-length value and take the same position and the same number of bits as when the router calculates the target Wi-Fi password, so that the password display system can synchronously obtain the Wi-Fi password when the router's Wi-Fi password changes. After the main control module calculates the target Wi-Fi password, the Wi-Fi password obtained by the main control module at this time is the same as the router's Wi-Fi password at this time. The main control module transmits the target Wi-Fi password to the display module, and then executes step S4.
[0036] Execute step S4, and the display module displays the target Wi-Fi password. The display module displays the Wi-Fi password transmitted by the main control module on the screen and announces it to users who need to connect on site. The screen adopts an ink screen. When the ink screen does not receive the instruction to display the next target Wi-Fi password, it enters a dormant state and still maintains the current Wi-Fi display. When the ink screen receives the instruction to display the next target Wi-Fi password, the ink screen is awakened and displays the target Wi-Fi password. Since the ink screen consumes little power when the display content does not change, the power consumption of the password display system is very small, and the main control module generally adopts a low-power single-chip microcomputer, and the power supply requirements of the password display system can be met by using dry batteries.
[0037] Then execute step S5 and wait for the preset time interval. Specifically, the password storage system stores a preset time interval. When the main control module confirms that the time has passed the preset time interval, at this time, the main control module needs to calculate the target Wi-Fi password again according to the current router time after the preset time interval, that is, return to step S3. The preset time interval can be adjusted after the password display system works, and the main control module receives the second adjustment signal. The second adjustment signal can be adjusted in a way that the router transmits the preset time interval information to the main control module through the Wi-Fi module, the user inputs the preset time interval information to the main control module through the Bluetooth module, or the user inputs the preset time interval information to the main control module through a button. The preset time interval can also be pre-set in the main control module program. It should be noted that the setting of the preset time interval of the main control module needs to be the same as the setting of the preset time interval of the router to ensure the accuracy of Wi-Fi password synchronization.
[0038] If the preset time interval recorded by the router is not synchronized with the preset time interval recorded by the main control module, it is necessary to adjust the preset time interval recorded by the router or the preset time interval recorded by the main control module by inputting the first adjustment signal or the second adjustment signal to ensure that the two are equal. If the preset time interval needs to be changed, it is necessary to adjust the preset time interval recorded by the router and the preset time interval recorded by the main control module by inputting the first adjustment signal and the second adjustment signal.
[0039] When the password display system is powered off, the above steps are no longer executed. When the password display system is powered on again, the execution starts from step S1. Since the password display system is provided with a clock module, the password display system can continue to time after the system is powered off. Therefore, the password display system and the router only need to synchronize the time once, and the time of the password display system and the time of the router can always be synchronized, so that the same target Wi-Fi password can be obtained according to the current router time.
[0040] A second embodiment of a method for implementing dynamic Wi-Fi display according to the present invention:
[0041] The difference between this embodiment and the first embodiment of the above-mentioned method for realizing dynamic Wi-Fi display is that: this embodiment calculates the target Wi-Fi password according to the current router time and the shared key, that is, the current router time is processed by the shared key to obtain the corresponding parameters, and then the parameters are processed by the hash algorithm to obtain the target Wi-Fi password. Since the input amount before the hash algorithm is processed is kept confidential, the password display system is more secure. When the password display system determines whether the current router time is stored, it also determines whether there is a shared key. Only when there is the current router time and the shared key, can the subsequent target Wi-Fi password be calculated. For the acquisition of the shared key, it can be obtained when the current router time is obtained. Like the current router time, if the shared key of the router does not change, only one acquisition is required to ensure the synchronization of the Wi-Fi password. In addition, the remaining steps are the same as the first embodiment of the above-mentioned method for realizing dynamic Wi-Fi display, and will not be repeated here.
[0042] In summary, the present invention synchronizes the current router time of the router through the password display system, so that the system time of the password display system is equal to that of the router. The password display system and the router use the current system time as input and use the same one-time password algorithm to obtain the target Wi-Fi password, thereby realizing the dynamic display of the Wi-Fi password. The password display system and the router only need to perform time synchronization once, and the password display system can automatically calculate the Wi-Fi password that needs to be updated later, without frequently obtaining the Wi-Fi password from the router. It has the characteristics of simple structure, low power consumption, and wide application range.
Claims
1. A method for realizing dynamic Wi-Fi password display, characterized in that: The router calculates the target Wi-Fi password according to the current router time at every preset time interval and changes the Wi-Fi password of the router to the target Wi-Fi password; After the password display system is powered on and starts working, the main control module of the password display system determines whether the current router time is stored according to the value of the clock module of the password display system read. If the value of the clock module read changes from the default value, it is determined that the time of the password display system is not synchronized with the time of the router, and the current router time is obtained manually; if the value of the timestamp read does not change from the default value, it is determined that the time of the password display system is synchronized with the time of the router, and the main control module obtains the current router time from the clock module of the password display system; The clock module keeps timing during the power-on and power-off process of the password display system; The main control module calculates the target Wi-Fi password according to the current router time at each preset time interval, and outputs the target Wi-Fi password to the display module of the password display system; wherein the main control module calculates the target Wi-Fi password in the same manner as the router calculates the target Wi-Fi password, and the main control module also uses the current router time as an input, processes it through a hash algorithm, obtains a fixed-length value, and takes a value at the same position and with the same number of digits as when the router calculates the target Wi-Fi password, so that the password display system synchronously obtains the target Wi-Fi password when the Wi-Fi password of the router changes; The display module displays the target Wi-Fi password; The password display system only needs to obtain the current router time once, so that the time of the password display system and the time of the router can always be synchronized. The password display system calculates the target Wi-Fi password that is the same as the target Wi-Fi password calculated by the router according to the current router time.
2. A method for realizing dynamic Wi-Fi password display as claimed in claim 1, characterized in that: When the main control module manually obtains the current router time, it uses at least one of the following methods to obtain it: When the main control module obtains the current router time manually, the main control module obtains the current router time through a Bluetooth module; or When the main control module obtains the current router time, the main control module obtains the current router time through the button module.
3. A method for realizing dynamic Wi-Fi password display as claimed in claim 2, characterized in that: When the router calculates the target Wi-Fi password according to the current router time, and when the main control module calculates the target Wi-Fi password according to the current router time, the following steps are performed: The target Wi-Fi password is calculated according to the current router time and a hash algorithm.
4. A method for realizing dynamic Wi-Fi password display as claimed in claim 3, characterized in that: When the main control module obtains the current router time, it also obtains the shared key between the router and the password display system.
5. A method for realizing dynamic Wi-Fi password display as claimed in claim 4, characterized in that: When the router and the main control module calculate the target Wi-Fi password according to the current router time and the hash algorithm, the target Wi-Fi password is calculated according to the current router time, the shared key, and the hash algorithm.
6. A method for realizing dynamic Wi-Fi password display according to any one of claims 1 to 3, characterized in that: After the router is in operation, the router may receive a first adjustment signal to adjust the preset time interval; and / or After the password display system is in operation, the main control module may receive a second adjustment signal to adjust the preset time interval.
7. A method for realizing dynamic Wi-Fi password display according to any one of claims 1 to 3, characterized in that: The display module includes an ink screen. After displaying the target Wi-Fi password, the display module enters a dormant state, is awakened after the preset time, and receives and displays the next target Wi-Fi password.
Citation Information
Patent Citations
Merchant-oriented dynamic wifi password implementation method and system
CN108462693A
Router visitor network login method and system
CN107466037A
Bluetooth door lock system based on dynamic password generation and matching and unlocking method
CN111243133A