CN115622811A - Verification method, device and system of burning license and electronic equipment - Google Patents
Verification method, device and system of burning license and electronic equipment Download PDFInfo
- Publication number
- CN115622811A CN115622811A CN202211602863.7A CN202211602863A CN115622811A CN 115622811 A CN115622811 A CN 115622811A CN 202211602863 A CN202211602863 A CN 202211602863A CN 115622811 A CN115622811 A CN 115622811A
- Authority
- CN
- China
- Prior art keywords
- information
- license
- time interval
- sending
- cloud server
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/12—Applying verification of the received information
- H04L63/126—Applying verification of the received information the source of the received data
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/2803—Home automation networks
- H04L12/2823—Reporting information sensed by appliance or service execution status of appliance services in a home automation network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/10—Network architectures or network communication protocols for network security for controlling access to devices or network resources
- H04L63/108—Network architectures or network communication protocols for network security for controlling access to devices or network resources when the policy decisions are valid for a limited amount of time
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Telephonic Communication Services (AREA)
Abstract
The application relates to the technical field of intelligent household appliances, and provides a method, a device and a system for verifying a burning license and an electronic device, wherein the method comprises the following steps: sending request information for requesting to acquire the license to a cloud server, and acquiring sending time information of the request information; the request information comprises MAC address information of a WiFi module of the intelligent household appliance; when receiving the license information sent back by the cloud server, acquiring the arrival time information of the license information; calculating a first difference value according to the sending time information and the arrival time information; and verifying the source validity of the license information according to the first difference and a first preset time interval. The invention has the advantages of high safety and good confidentiality effect.
Description
Technical Field
The application relates to the technical field of intelligent household appliances, in particular to a method, a device and a system for verifying a burning license and an electronic device.
Background
With the continuous development of internet technology, a WIFI module is generally set in an intelligent household appliance to realize the connection between the intelligent household appliance and an external network. Many functions are integrated in the WIFI module, such as functions of multi-cloud platform docking (kyotong cloud, ali cloud, etc.), over-the-Air Technology (OTA for short) upgrading, near field discovery, and the like. License (License) is a format contract that is made by the software developer with the user to specify and limit the user's rights to use the software or its source code, and the obligation the software developer should run out. A License (License) of the smart home appliance is used to store information such as a public-private key pair and an initial key required by the relevant software of the smart home appliance, and is specifically generated according to a physical address (Media Access Control, abbreviated as MAC address) of a WIFI module in the smart home appliance.
In actual production, the WIFI module in the intelligent household appliance produced by the agent factory generally does not have a License (License), the WIFI module of the intelligent household appliance needs to interact with the cloud server of the principal (the principal that the agent factory produces the intelligent household appliance) so as to send the MAC address to the cloud server, then the cloud server generates the License (License) according to a preset License generation program and the MAC address, and finally the License (License) is burned into the WIFI module of the intelligent household appliance so as to leave the factory, so that the principal can remotely monitor the number of the intelligent household appliance produced by the agent factory. However, the process of interacting the WIFI module of the intelligent household appliance with the cloud is carried out in a foundry, supervision is lacked, the safety factor is low, if the process is known by the foundry due to the fact that the License generation program is leaked, the foundry may privately set a third-party server for generating a License (License) according to the License generation program, and therefore the intelligent household appliance is produced and sold under the condition that the entrusting party does not know, and property loss is easily caused to the entrusting party.
Based on the above problems, no effective solution exists at present.
Disclosure of Invention
The application aims to provide a method, a device and a system for verifying a burning license and an electronic device, which can prevent a license generation program from being leaked and improve the safety.
In a first aspect, the present application provides a method for verifying a burn license, which is applied to an intelligent home appliance, and includes the following steps:
s1, sending request information for requesting license acquisition to a cloud server, and acquiring sending time information of the request information; the request information comprises MAC address information of a WiFi module of the intelligent household appliance;
s2, when license information sent back by the cloud server is received, obtaining arrival time information of the license information;
s3, calculating a first difference value according to the sending time information and the arrival time information;
and S4, verifying the source legality of the license information according to the first difference and a first preset time interval.
According to the verification method for the burning license, request information for requesting license acquisition is sent to a cloud server, and sending time information of the request information is acquired; the request information comprises MAC address information of a WiFi module of the intelligent household appliance; when receiving license information sent back by a cloud server, acquiring arrival time information of the license information; calculating a first difference value according to the sending time information and the arrival time information; and verifying the source validity of the license information according to the first difference value and the first preset time interval. According to the method and the device, the sending time information of the request information and the arrival time information of the license information are matched and verified through the intelligent household appliances, so that whether the license information is sent by the appointed cloud server or not is judged, abuse by a foundry due to secret leakage of a license generating program is prevented, property loss is reduced, and safety is improved.
Optionally, in the verification method of the burn license provided by the present application, step S4 includes:
s401, if the first difference value falls into a first preset time interval, judging that the source validity of the license information passes verification;
s402, if the first difference does not fall into a first preset time interval, judging that the source validity of the license information is not verified. Step S1 comprises, before:
A1. acquiring current network quality information;
A2. and adjusting the first preset time interval according to the current network quality information.
By the setting mode, the first preset time interval can be adjusted in real time according to the current network quality information, the adaptability is improved, misjudgment and misjudgment caused by the network quality problem are avoided, and the verification accuracy is improved.
Optionally, in the verification method for a burn license provided in the present application, the current network quality information includes interface traffic information of a router, and step A1 includes:
B1. acquiring interface flow information of a router;
the step A2 comprises the following steps:
B2. and adjusting the first preset time interval according to the interface flow information.
By the method, the first preset time interval can be adjusted in real time according to the interface flow information of the router, and adaptability and verification accuracy are improved.
Optionally, in the verification method of the burn license provided by the present application, the current network quality information includes a network download speed, and step A1 includes:
D1. downloading a plurality of test file data packets with first preset data sizes, and acquiring the downloading time corresponding to each test file data packet;
D2. calculating a first network downloading speed corresponding to each test file data packet according to the downloading time corresponding to each test file data packet;
D3. calculating the network downloading speed according to a plurality of first network downloading speeds;
the step A2 comprises the following steps:
D4. and adjusting the first preset time interval according to the network downloading speed.
Optionally, in the verification method for a burn license provided in the present application, the current network quality information includes a network response speed, and step A1 includes:
E1. sequentially sending a plurality of detection data packets to a cloud server within a first preset time period to obtain a first communication time length corresponding to each detection data packet; the first communication duration is a time interval between the moment when the intelligent household appliance sends the detection data packet and the moment when the response information sent back by the cloud server is received;
E2. calculating the network response speed according to a plurality of first communication time lengths;
the step A2 comprises the following steps:
E3. and adjusting the first preset time interval according to the network response speed.
Optionally, in the verification method of the burn license provided by the present application, step A1 includes:
F1. acquiring current date information;
the step A2 comprises the following steps:
F2. and adjusting the first preset time interval according to the current date information.
In practical application, the entrusting party may set different delay times for products on different dates, so as to conveniently distinguish product batches. The intelligent household appliance is capable of calculating the delay time to adjust a first preset time interval according to current date information, and meanwhile, the delay program can be set in the cloud server to adjust second sending time of license information according to dates, products with different production dates can be distinguished conveniently, meanwhile, randomness of verification modes is increased, and cracking is more difficult.
According to the verification method for the burning license, request information for requesting license acquisition is sent to a cloud server, and sending time information of the request information is acquired; the request information comprises MAC address information of a WiFi module of the intelligent household appliance; when receiving license information sent back by a cloud server, acquiring arrival time information of the license information; calculating a first difference value according to the sending time information and the arrival time information; and verifying the source validity of the license information according to the first difference and the first preset time interval. According to the method and the device, the intelligent household appliances are used for matching and verifying the sending time information of the request information and the arrival time information of the license information, so that whether the license information is sent by the appointed cloud server or not is judged, misuse caused by the agency factory due to secret leakage of the license generating program is prevented, property loss is reduced, and safety is improved.
In a second aspect, the present application provides a device for verifying a burn license, including the following modules:
a first obtaining module: the license acquisition system is used for sending request information for requesting license acquisition to the cloud server and acquiring sending time information of the request information; the request information comprises MAC address information of a WiFi module of the intelligent household appliance;
a second obtaining module: the system comprises a cloud server and a server, wherein the cloud server is used for sending license information to the server;
a first calculation module: the time information acquisition device is used for acquiring the sending time information and the arrival time information;
a verification module: and the license information source validity is verified according to the first difference and a first preset time interval.
According to the verification device based on the burning license, request information for requesting to acquire the license is sent to a cloud server through a first acquisition module, and sending time information of the request information is acquired; the request information comprises MAC address information of a WiFi module of the intelligent household appliance; the second acquisition module acquires the arrival time information of the license information when receiving the license information sent back by the cloud server; the first calculation module calculates a first difference value according to the sending time information and the arrival time information; the verification module verifies the source validity of the license information according to the first difference and the first preset time interval. According to the method and the device, the intelligent household appliances are used for matching and verifying the sending time information of the request information and the arrival time information of the license information, so that whether the license information is sent by the appointed cloud server or not is judged, misuse caused by the agency factory due to secret leakage of the license generating program is prevented, property loss is reduced, and safety is improved.
In a third aspect, the application provides a verification system for a burning license, which comprises a cloud server and an intelligent household appliance, wherein the intelligent household appliance is in communication connection with the cloud server;
the intelligent household appliance is used for sending request information for requesting to obtain the license to the cloud server and obtaining sending time information of the request information; the request information comprises MAC address information of a WiFi module of the intelligent household appliance;
when license information sent back by the cloud server is received, obtaining arrival time information of the license information;
calculating a first difference value according to the sending time information and the arrival time information;
verifying the source validity of the license information according to the first difference and a first preset time interval;
the cloud server is used for generating the license information when receiving the request information sent by the intelligent household appliance, determining second sending time according to the sending time information and the first preset time interval, and sending the license information to the intelligent household appliance at the second sending time.
Optionally, in the verification system for the burning license provided by the application, the cloud server includes a generating device and a receiving device, and the generating device and the receiving device are in communication connection;
the generating device is used for generating the license information;
the receiving device is used for receiving the request information sent by the intelligent household appliance, determining second sending time according to the sending time information and the first preset time interval, and sending the license information to the intelligent household appliance at the second sending time.
In a fourth aspect, the present application provides an electronic device comprising a processor and a memory, wherein the memory stores computer readable instructions, and the computer readable instructions, when executed by the processor, perform the steps of the method as provided in the first aspect.
In summary, according to the verification method, device, system and electronic device for the burning license, the intelligent household appliance performs the matching verification on the sending time information of the request information and the arrival time information of the license information, so as to judge whether the license information is sent by the specified cloud server, prevent misuse of the foundry due to leakage of a license generation program, reduce property loss and improve safety.
Drawings
Fig. 1 is a flowchart of a method for verifying a burn license according to the present application.
Fig. 2 is a schematic structural diagram of a verification apparatus for burning a license according to the present application.
Fig. 3 is a schematic structural diagram of an electronic device provided in the present application.
Fig. 4 is a schematic structural diagram of a verification system for a burn license provided in the present application.
Description of reference numerals:
201. a first acquisition module; 202. a second acquisition module; 203. a first calculation module; 204. a verification module; 301. a processor; 302. a memory; 303. a communication bus; 100. a cloud server; 110. a generating device; 120. a receiving device; 200. an intelligent household appliance.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only some embodiments of the present application, and not all embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, as presented in the figures, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be obtained by a person skilled in the art without making creative efforts based on the embodiments of the present application, belong to the protection scope of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only for distinguishing the description, and are not construed as indicating or implying relative importance.
Referring to fig. 1, fig. 1 is a flowchart of a verification method of a burn license in some embodiments of the present application, which is applied to an intelligent appliance, and includes the following steps:
s1, sending request information for requesting license acquisition to a cloud server, and acquiring sending time information of the request information; the request information comprises MAC address information of a WiFi module of the intelligent household appliance;
s2, acquiring arrival time information of the license information when the license information sent back by the cloud server is received;
s3, calculating a first difference value according to the sending time information (including sending time) and the arrival time information (including arrival time);
and S4, verifying the source validity of the license information according to the first difference and the first preset time interval.
In practical application, the specified cloud server can generate accurate license information, but the cloud server does not send the license information immediately, but can reach an agreement with the intelligent household appliance, and appropriate time delay is carried out according to actual conditions, so that the license information is sent at an appropriate time. Therefore, even if the license generation program is leaked, other pseudo base stations can generate accurate license information according to the license generation program, but the intelligent household appliance can not burn the license information until the intelligent household appliance is legal when the license information is sent to the intelligent household appliance. Therefore, even if the license generation program is leaked, the intelligent household appliance can verify whether the source of the license information is legal or not according to the first difference and the first preset time interval.
According to the verification method for the burning license, request information for requesting license acquisition is sent to a cloud server, and sending time information of the request information is acquired; the request information comprises MAC address information of a WiFi module of the intelligent household appliance; when receiving license information sent back by a cloud server, acquiring arrival time information of the license information; calculating a first difference value according to the sending time information and the arrival time information; and verifying the source validity of the license information according to the first difference and the first preset time interval. According to the method and the device, the intelligent household appliances are used for matching and verifying the sending time information of the request information and the arrival time information of the license information, so that whether the license information is sent by the appointed cloud server or not is judged, misuse caused by the agency factory due to secret leakage of the license generating program is prevented, property loss is reduced, and safety is improved.
In some embodiments, step S4 comprises:
s401, if the first difference value falls into a first preset time interval, judging that the source validity of the license information passes verification;
s402, if the first difference does not fall into the first preset time interval, judging that the source validity of the license information does not pass the verification.
In some embodiments, after step S4, the method further includes:
s5, if the source validity of the license information is not verified, the license information is cleared;
and S6, if the source legality of the license information passes the verification, verifying the compliance of the license information (namely verifying whether the format and specific content of the license information are compliant or not, which is the prior art and is not described in detail herein), if the compliance passes the verification, burning the license information into the WiFi module, and otherwise, clearing the license information.
In some preferred embodiments, step S1 is preceded by:
A1. acquiring current network quality information;
A2. and adjusting the first preset time interval according to the current network quality information.
The first preset time interval can be set according to actual needs. The first difference is calculated as follows:
first difference = arrival time of license information-transmission time of request information
Assuming that the transmission time of the request information is a and the arrival time of the license information is b, a first difference value of (b-a) can be obtained according to the above formula.
In practical application, the network quality information affects the sending time of the request information and the arrival time of the license information, and the better the network quality is, the smaller the delay effect on the sending time of the request information and the arrival time of the license information is; the worse the network quality, the greater the impact on the transmission time of the request information and the arrival time delay of the license information. Through the setting mode, the first preset time interval can be adjusted in real time according to the current network quality information, the adaptability is improved, misjudgment and misjudgment caused by the network quality problem are avoided, and the verification accuracy is improved.
In a further embodiment, the current network quality information includes interface traffic information of the router, and step A1 includes:
B1. acquiring interface flow information (including interface flow) of a router;
the step A2 comprises the following steps:
B2. and adjusting the first preset time interval according to the interface flow information.
In step B1, the interface traffic information of the router may be obtained by logging in a router management address, and then inputting an account and a password of the router (the name plate of a general router is marked or requested by a manufacturer), so as to obtain the real-time interface traffic information of the router.
In step B2, a plurality of first thresholds may be preset to correspond to different interface flows, a plurality of second thresholds are preset to correspond to different first thresholds, when the real-time interface flow reaches a certain first threshold, the second threshold may be obtained according to the first threshold, and the first preset time interval is extended or reduced by the second threshold.
By the method, the first preset time interval can be adjusted in real time according to the interface flow information of the router, and adaptability and verification accuracy are improved.
In other embodiments, the current network quality information includes a network download speed, and step A1 includes:
D1. downloading a plurality of test file data packets with first preset data sizes, and acquiring the corresponding downloading time of each test file data packet;
D2. calculating a first network downloading speed corresponding to each test file data packet according to the downloading time corresponding to each test file data packet;
D3. calculating a network downloading speed according to the plurality of first network downloading speeds;
the step A2 comprises the following steps:
D4. and adjusting the first preset time interval according to the network downloading speed.
In step D1, the test file data packet may be provided by a cloud server, or may be downloaded from another server, which is not specifically limited herein.
In step D2, the first network download speed is equal to the first preset data size divided by the download time.
In step D3, the network download speed is equal to the sum of the first network download speeds divided by the number of test file data packets.
In step D4, a plurality of network download speed intervals and a plurality of second preset time intervals may be preset, and each network download speed interval corresponds to one second preset time interval, so that when the network download speed is in a certain network download speed interval, the corresponding second preset time interval may be obtained according to the network download speed interval, and the first preset time interval is replaced by the second preset time interval.
By the method, the first preset time interval can be adjusted in real time according to the network downloading speed, and adaptability and verification accuracy are improved.
In some preferred embodiments, the current network quality information includes a network response speed, and step A1 includes:
E1. sequentially sending a plurality of detection data packets to a cloud server within a first preset time period to obtain a first communication time length corresponding to each detection data packet; the first communication duration is a time interval between the moment when the intelligent household appliance sends the detection data packet and the moment when the response information sent back by the cloud server is received;
E2. calculating a network response speed according to the plurality of first communication time lengths;
the step A2 comprises the following steps:
E3. and adjusting the first preset time interval according to the network response speed.
In step E1, the probe packet may be generated by an existing generator.
In step E2, the network response speed is equal to the sum of all the first communication durations divided by the number of probe packets.
In step E3, a plurality of network response speed intervals and a plurality of third preset time intervals may be preset, and each network response speed interval corresponds to one third preset time interval, so that when the network response speed is in a certain network response speed interval, a corresponding third preset time interval may be obtained according to the network response speed interval, and the third preset time interval is used to replace the first preset time interval.
By the method, the first preset time interval can be adjusted in real time according to the network response speed, and adaptability and verification accuracy are improved.
In other embodiments, step A1 comprises:
F1. acquiring current date information;
the step A2 comprises the following steps:
F2. and adjusting the first preset time interval according to the current date information.
In step F1, the manner of acquiring the current date information is the prior art.
The current date information includes year, month and day, and step F2 includes:
acquiring the year;
acquiring a first preset delay time according to the year;
and adjusting the first preset time interval according to the first preset delay time.
For example, the acquired year is 2020, the corresponding first preset delay time is 200 ms, and 200 ms is added to the original first preset time interval as a new first preset time interval (that is, the start time of the new first preset time interval is 200 ms later than the start time of the original first preset time interval, and the end time of the new first preset time interval is 200 ms later than the end time of the original first preset time interval).
In other embodiments, step F2 comprises:
acquiring a month;
acquiring a second preset delay time according to the month;
and adjusting the first preset time interval according to the second preset delay time.
For example, the acquired month is 10 months, the corresponding second preset delay time is 100 milliseconds, and 100 milliseconds are added to the original first preset time interval as a new first preset time interval (that is, the starting time of the new first preset time interval is 100 milliseconds later than the starting time of the original first preset time interval, and the ending time of the new first preset time interval is 100 milliseconds later than the ending time of the original first preset time interval).
In other embodiments, step F2 comprises:
acquiring the number of days;
acquiring a third preset delay time according to the number of days;
and adjusting the first preset time interval according to the third preset delay time.
For example, the number of days of the acquisition is 20, the corresponding third preset delay time is 50 milliseconds, and 50 milliseconds are added to the original first preset time interval as a new first preset time interval (that is, the start time of the new first preset time interval is 50 milliseconds later than the start time of the original first preset time interval, and the end time of the new first preset time interval is 50 milliseconds later than the end time of the original first preset time interval).
In practical application, the entrusting party may set different delay times for products on different dates, so as to conveniently distinguish product batches. The delay time is calculated automatically according to the current date information by the intelligent household appliance so as to adjust a first preset time interval (the burning program of the intelligent household appliance is provided by a client and is invisible after being packaged, and a foundry cannot know the content of the calculation program), and meanwhile, the delay program is arranged on the cloud server so that the second sending time of the license information can be adjusted according to the date, products with different production dates can be distinguished conveniently, meanwhile, the randomness of a verification mode is increased, and the products are more difficult to crack.
As can be seen from the above, in the verification method for the burning license, request information requesting for obtaining the license is sent to the cloud server, and sending time information of the request information is obtained; the request information comprises MAC address information of a WiFi module of the intelligent household appliance; when receiving license information sent back by a cloud server, acquiring arrival time information of the license information; calculating a first difference value according to the sending time information and the arrival time information; and verifying the source validity of the license information according to the first difference and the first preset time interval. According to the method and the device, the intelligent household appliances are used for matching and verifying the sending time information of the request information and the arrival time information of the license information, so that whether the license information is sent by the appointed cloud server or not is judged, misuse caused by the agency factory due to secret leakage of the license generating program is prevented, property loss is reduced, and safety is improved.
Referring to fig. 2, fig. 2 is a verification apparatus for a burning license in some embodiments of the present application, including the following modules:
the first obtaining module 201: the license acquisition system is used for sending request information for requesting license acquisition to the cloud server and acquiring sending time information of the request information; the request information comprises MAC address information of a WiFi module of the intelligent household appliance;
the second obtaining module 202: the system comprises a cloud server, a license server and a server, wherein the cloud server is used for sending license information to the server;
the first calculation module 203: for calculating a first difference value according to the transmission time information and the arrival time information;
the verification module 204: and the source validity of the license information is verified according to the first difference value and the first preset time interval.
In some embodiments, the verifying module 204 performs the following steps when verifying the source validity of the license information according to the first difference and the first preset time interval:
s401, if the first difference value falls into a first preset time interval, judging that the source validity of the license information passes verification;
s402, if the first difference does not fall into the first preset time interval, judging that the source validity of the license information does not pass the verification.
In some embodiments, the verifying module 204 further performs the following steps after verifying the source validity of the license information according to the first difference and the first preset time interval:
s5, if the source validity of the license information is not verified, clearing the license information;
and S6, if the source legality of the license information passes the verification, verifying the compliance of the license information (namely verifying whether the format and specific content of the license information are compliant or not, which is the prior art and is not described in detail herein), if the compliance passes the verification, burning the license information into the WiFi module, and otherwise, clearing the license information.
In some preferred embodiments, before sending the request information for requesting to obtain the license to the cloud server and obtaining the sending time information of the request information, the first obtaining module 201 performs the following steps:
A1. acquiring current network quality information;
A2. and adjusting the first preset time interval according to the current network quality information.
Wherein, first default time interval can set up according to actual need. The first difference is calculated as follows:
first difference = arrival time of license information-transmission time of request information
Assuming that the transmission time of the request information is a and the arrival time of the license information is b, a first difference value of (b-a) can be obtained according to the above formula.
In practical application, the network quality information can affect the sending time of the request information and the arrival time of the license information, and the better the network quality is, the smaller the delay effect on the sending time of the request information and the arrival time of the license information is; the worse the network quality, the greater the impact on the time of transmission of the request information and the time delay of arrival of the license information. Through the setting mode, the first preset time interval can be adjusted in real time according to the current network quality information, the adaptability is improved, misjudgment and misjudgment caused by the network quality problem are avoided, and the verification accuracy is improved.
In a further embodiment, the current network quality information includes interface traffic information of the router, and step A1 includes:
B1. acquiring interface flow information of a router;
the step A2 comprises the following steps:
B2. and adjusting the first preset time interval according to the interface flow information.
In step B1, the interface traffic information of the router may be obtained by logging in a router management address, and then inputting an account and a password of the router (the name plate of a general router is marked or requested by a manufacturer), so as to obtain the real-time interface traffic information of the router.
In step B2, a plurality of first thresholds may be preset to correspond to different interface flows, a plurality of second thresholds are preset to correspond to different first thresholds, when the real-time interface flow reaches a certain first threshold, the second threshold may be obtained according to the first threshold, and the first preset time interval is extended or reduced by the second threshold.
By the method, the first preset time interval can be adjusted in real time according to the interface flow information of the router, and adaptability and verification accuracy are improved.
In other embodiments, the current network quality information includes a network download speed, and step A1 includes:
D1. downloading a plurality of test file data packets with first preset data sizes, and acquiring the corresponding downloading time of each test file data packet;
D2. calculating a first network downloading speed corresponding to each test file data packet according to the downloading time corresponding to each test file data packet;
D3. calculating a network downloading speed according to the plurality of first network downloading speeds;
the step A2 comprises the following steps:
D4. and adjusting the first preset time interval according to the network downloading speed.
In step D1, the test file data packet may be provided by a cloud server, or may be downloaded from another server, which is not specifically limited herein.
In step D2, the first network downloading speed is equal to the first preset data size divided by the downloading time.
In step D3, the network download speed is equal to the sum of the first network download speeds divided by the number of test file data packets.
In step D4, a plurality of network download speed intervals and a plurality of second preset time intervals may be preset, and each network download speed interval corresponds to one second preset time interval, so that when the network download speed is in a certain network download speed interval, the corresponding second preset time interval may be obtained according to the network download speed interval, and the first preset time interval is replaced by the second preset time interval.
By the method, the first preset time interval can be adjusted in real time according to the network downloading speed, and adaptability and verification accuracy are improved.
In some preferred embodiments, the current network quality information includes a network response speed, and step A1 includes:
E1. sequentially sending a plurality of detection data packets to a cloud server within a first preset time period to obtain a first communication time length corresponding to each detection data packet; the first communication duration is a time interval between the moment when the intelligent household appliance sends the detection data packet and the moment when the response information sent back by the cloud server is received;
E2. calculating a network response speed according to the plurality of first communication time lengths;
the step A2 comprises the following steps:
E3. and adjusting the first preset time interval according to the network response speed.
In step E1, the probe packet may be generated by an existing generator.
In step E2, the network response speed is equal to the sum of all the first communication durations divided by the number of probe packets.
In step E3, a plurality of network response speed intervals and a plurality of third preset time intervals may be preset, and each network response speed interval corresponds to one third preset time interval, so that when the network response speed is in a certain network response speed interval, the corresponding third preset time interval may be obtained according to the network response speed interval, and the third preset time interval is used to replace the first preset time interval.
By the method, the first preset time interval can be adjusted in real time according to the network response speed, and adaptability and verification accuracy are improved.
In other embodiments, step A1 comprises:
F1. acquiring current date information;
the step A2 comprises the following steps:
F2. and adjusting the first preset time interval according to the current date information.
In step F1, the manner of acquiring the current date information is the prior art.
The current date information includes year, month and day, and step F2 includes:
acquiring the year;
acquiring a first preset delay time according to the year;
and adjusting the first preset time interval according to the first preset delay time.
For example, the acquired year is 2020, the corresponding first preset delay time is 200 ms, and 200 ms is added to the original first preset time interval as a new first preset time interval (that is, the start time of the new first preset time interval is 200 ms later than the start time of the original first preset time interval, and the end time of the new first preset time interval is 200 ms later than the end time of the original first preset time interval).
In other embodiments, step F2 comprises:
acquiring a month;
acquiring a second preset delay time according to the month;
and adjusting the first preset time interval according to the second preset delay time.
For example, the acquired month is 10 months, the corresponding second preset delay time is 100 milliseconds, and 100 milliseconds are added to the original first preset time interval as a new first preset time interval (that is, the starting time of the new first preset time interval is 100 milliseconds later than the starting time of the original first preset time interval, and the ending time of the new first preset time interval is 100 milliseconds later than the ending time of the original first preset time interval).
In other embodiments, step F2 comprises:
acquiring the number of days;
acquiring a third preset delay time according to the number of days;
and adjusting the first preset time interval according to the third preset delay time.
For example, the number of days of the acquisition is 20, the corresponding third preset delay time is 50 milliseconds, and 50 milliseconds are added to the original first preset time interval as a new first preset time interval (that is, the start time of the new first preset time interval is 50 milliseconds later than the start time of the original first preset time interval, and the end time of the new first preset time interval is 50 milliseconds later than the end time of the original first preset time interval).
In practical application, the entrusting party may set different delay times for products on different dates, so as to conveniently distinguish product batches. The intelligent household appliance is capable of calculating the delay time to adjust a first preset time interval according to current date information, and meanwhile, the delay program can be set in the cloud server to adjust second sending time of license information according to dates, products with different production dates can be distinguished conveniently, meanwhile, randomness of verification modes is increased, and cracking is more difficult.
As can be seen from the above, the verification apparatus for burning licenses of the present application sends request information requesting to obtain a license to the cloud server through the first obtaining module 201, and obtains sending time information of the request information; the request information comprises MAC address information of a WiFi module of the intelligent household appliance; the second obtaining module 202 obtains the arrival time information of the license information when receiving the license information sent back by the cloud server; the first calculating module 203 calculates a first difference value according to the sending time information and the arrival time information; the verification module 204 verifies the source validity of the license information according to the first difference and the first predetermined time interval. According to the method and the device, the sending time information of the request information and the arrival time information of the license information are matched and verified through the intelligent household appliances, so that whether the license information is sent by the appointed cloud server or not is judged, abuse by a foundry due to secret leakage of a license generating program is prevented, property loss is reduced, and safety is improved.
Referring to fig. 4, fig. 4 is a verification system of a burn license in some embodiments of the present application, which includes a cloud server 100 and an intelligent appliance 200, where the cloud server 100 and the intelligent appliance 200 are in communication connection;
the intelligent household appliance 200 is configured to send request information requesting for obtaining a license to the cloud server 100, and obtain sending time information of the request information; the request information includes MAC address information of the WiFi module of the intelligent home appliance 200;
when receiving the license information sent back by the cloud server 100, acquiring arrival time information of the license information;
calculating a first difference value according to the sending time information and the arrival time information;
verifying the source validity of the license information according to the first difference and the first preset time interval;
the cloud server 100 is configured to generate license information when receiving the request information sent by the intelligent appliance 200, determine second sending time according to the sending time information and the first preset time interval, and send the license information to the intelligent appliance 200 at the second sending time.
In practical application, the specified cloud server can generate accurate license information, but the cloud server does not send the license information immediately, but can reach an agreement with the intelligent household appliance, and appropriate time delay is carried out according to actual conditions, so that the license information is sent at an appropriate time.
In some embodiments, the cloud server 100 includes a generating device 110 and a receiving device 120, and a communication connection is formed between the generating device 110 and the receiving device 120;
the generation means 110 is used to generate license information;
the receiving device 120 is configured to receive the request information sent by the intelligent appliance 200, determine a second sending time according to the sending time information and the first preset time interval, and send the license information to the intelligent appliance 200 at the second sending time.
Through the setting mode, the license information generating function of the cloud server 100 and the second sending time function of determining the license information can be stored in different storage media, so that in practical application, even if a program generating the license information function is stolen, the license information cannot be sent to the intelligent household appliance 200 at an accurate time, the risk of disclosure is reduced, and the safety is further improved.
Referring to fig. 3, fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure, where the electronic device includes: the processor 301 and the memory 302, the processor 301 and the memory 302 being interconnected and communicating with each other via a communication bus 303 and/or other form of connection mechanism (not shown), the memory 302 storing computer readable instructions executable by the processor 301, the processor 301 executing the computer readable instructions when the electronic device is running to perform the method in any of the alternative implementations of the above embodiments when executing to implement the following functions: sending request information for requesting to acquire the license to a cloud server, and acquiring sending time information of the request information; the request information comprises MAC address information of a WiFi module of the intelligent household appliance; when license information sent back by a cloud server is received, obtaining arrival time information of the license information; calculating a first difference value according to the sending time information and the arrival time information; and verifying the source validity of the license information according to the first difference and the first preset time interval.
In the embodiments provided in the present application, it should be understood that the disclosed system and method may be implemented in other ways. The above-described system embodiments are merely illustrative, and for example, the division of the units is merely a logical division, and there may be other divisions in actual implementation, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of systems or units through some communication interfaces, and may be in an electrical, mechanical or other form.
In addition, units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the embodiment.
In addition, the functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist alone, or two or more modules may be integrated to form an independent part.
In this document, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions.
The above description is only an embodiment of the present application and is not intended to limit the scope of the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims (10)
1. A verification method of a burning license is applied to an intelligent household appliance and is characterized by comprising the following steps:
s1, sending request information for requesting license acquisition to a cloud server, and acquiring sending time information of the request information; the request information comprises MAC address information of a WiFi module of the intelligent household appliance;
s2, when license information sent back by the cloud server is received, obtaining arrival time information of the license information;
s3, calculating a first difference value according to the sending time information and the arrival time information;
and S4, verifying the source legality of the license information according to the first difference and a first preset time interval.
2. The method for verifying the burn license of claim 1, wherein the step S4 comprises:
s401, if the first difference value falls into a first preset time interval, judging that the source validity of the license information passes verification;
s402, if the first difference does not fall into a first preset time interval, judging that the source validity of the license information does not pass verification;
step S1 comprises, before:
A1. acquiring current network quality information;
A2. and adjusting the first preset time interval according to the current network quality information.
3. The verification method of the burn license of claim 2, wherein the current network quality information comprises interface traffic information of a router, and step A1 comprises:
B1. acquiring interface flow information of a router;
the step A2 comprises the following steps:
B2. and adjusting the first preset time interval according to the interface flow information.
4. The method for verifying the burn license of claim 2, wherein the current network quality information includes a network download speed, and the step A1 includes:
D1. downloading a plurality of test file data packets with first preset data sizes, and acquiring the downloading time corresponding to each test file data packet;
D2. calculating a first network downloading speed corresponding to each test file data packet according to the downloading time corresponding to each test file data packet;
D3. calculating the network downloading speed according to a plurality of first network downloading speeds;
the step A2 comprises the following steps:
D4. and adjusting the first preset time interval according to the network downloading speed.
5. The method for verifying the burn license of claim 2, wherein the current network quality information includes a network response speed, and the step A1 includes:
E1. sequentially sending a plurality of detection data packets to a cloud server within a first preset time period to obtain a first communication time length corresponding to each detection data packet; the first communication duration is a time interval between the moment when the intelligent household appliance sends the detection data packet and the moment when the response information sent back by the cloud server is received;
E2. calculating the network response speed according to a plurality of first communication time lengths;
the step A2 comprises the following steps:
E3. and adjusting the first preset time interval according to the network response speed.
6. The method for verifying the burn license of claim 2, wherein the step A1 comprises:
F1. acquiring current date information;
the step A2 comprises the following steps:
F2. and adjusting the first preset time interval according to the current date information.
7. The utility model provides a verification device of burn record license, is applied to intelligent household electrical appliances, its characterized in that includes following module:
a first obtaining module: the license acquisition system is used for sending request information for requesting license acquisition to the cloud server and acquiring sending time information of the request information; the request information comprises MAC address information of a WiFi module of the intelligent household appliance;
a second obtaining module: the system comprises a cloud server and a server, wherein the cloud server is used for sending license information to the server;
a first calculation module: the time information acquisition device is used for acquiring the sending time information and the arrival time information;
a verification module: and the license information source validity is verified according to the first difference and a first preset time interval.
8. A verification system of a burning license is characterized by comprising a cloud server and an intelligent household appliance, wherein the intelligent household appliance is in communication connection with the cloud server;
the intelligent household appliance is used for sending request information for requesting to obtain the license to the cloud server and obtaining sending time information of the request information; the request information comprises MAC address information of a WiFi module of the intelligent household appliance;
when receiving the license information sent back by the cloud server, acquiring the arrival time information of the license information;
calculating a first difference value according to the sending time information and the arrival time information;
verifying the source validity of the license information according to the first difference and a first preset time interval;
the cloud server is used for generating the license information when receiving the request information sent by the intelligent household appliance, determining second sending time according to the sending time information and the first preset time interval, and sending the license information to the intelligent household appliance at the second sending time.
9. The system for verifying the burn license of claim 8, wherein the cloud server comprises a generating device and a receiving device, and the generating device and the receiving device are in communication connection;
the generating device is used for generating the license information;
the receiving device is used for receiving the request information sent by the intelligent household appliance, determining second sending time according to the sending time information and the first preset time interval, and sending the license information to the intelligent household appliance at the second sending time.
10. An electronic device comprising a processor and a memory, the memory storing computer readable instructions that, when executed by the processor, perform the steps in the method of verifying a burn license of any of claims 1-6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211602863.7A CN115622811B (en) | 2022-12-14 | 2022-12-14 | Verification method, device and system of burning license and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211602863.7A CN115622811B (en) | 2022-12-14 | 2022-12-14 | Verification method, device and system of burning license and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115622811A true CN115622811A (en) | 2023-01-17 |
CN115622811B CN115622811B (en) | 2023-04-07 |
Family
ID=84880312
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211602863.7A Active CN115622811B (en) | 2022-12-14 | 2022-12-14 | Verification method, device and system of burning license and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115622811B (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050091312A1 (en) * | 2003-10-27 | 2005-04-28 | Sony Corporation | Content reproducing apparatus and content reproducing method |
US8392709B1 (en) * | 2009-04-28 | 2013-03-05 | Adobe Systems Incorporated | System and method for a single request—single response protocol with mutual replay attack protection |
CN104079552A (en) * | 2013-03-27 | 2014-10-01 | 三星泰科威株式会社 | Authentication system and method of operating the same |
CN105897516A (en) * | 2016-06-21 | 2016-08-24 | 西安科技大学 | Method for verifying schedulability of network application layer protocol, monitoring system and monitoring method |
CN106372466A (en) * | 2016-10-28 | 2017-02-01 | 美的智慧家居科技有限公司 | License burning and processing method and device of WIFI module |
CN107426156A (en) * | 2017-04-18 | 2017-12-01 | 腾讯科技(深圳)有限公司 | The method and relevant device of a kind of data check |
CN110324283A (en) * | 2018-03-30 | 2019-10-11 | 中移(苏州)软件技术有限公司 | Licensing Methods, apparatus and system based on asymmetric encryption |
CN113612616A (en) * | 2021-07-27 | 2021-11-05 | 北京沃东天骏信息技术有限公司 | Vehicle communication method and device based on block chain |
-
2022
- 2022-12-14 CN CN202211602863.7A patent/CN115622811B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050091312A1 (en) * | 2003-10-27 | 2005-04-28 | Sony Corporation | Content reproducing apparatus and content reproducing method |
US8392709B1 (en) * | 2009-04-28 | 2013-03-05 | Adobe Systems Incorporated | System and method for a single request—single response protocol with mutual replay attack protection |
CN104079552A (en) * | 2013-03-27 | 2014-10-01 | 三星泰科威株式会社 | Authentication system and method of operating the same |
CN105897516A (en) * | 2016-06-21 | 2016-08-24 | 西安科技大学 | Method for verifying schedulability of network application layer protocol, monitoring system and monitoring method |
CN106372466A (en) * | 2016-10-28 | 2017-02-01 | 美的智慧家居科技有限公司 | License burning and processing method and device of WIFI module |
CN107426156A (en) * | 2017-04-18 | 2017-12-01 | 腾讯科技(深圳)有限公司 | The method and relevant device of a kind of data check |
CN110324283A (en) * | 2018-03-30 | 2019-10-11 | 中移(苏州)软件技术有限公司 | Licensing Methods, apparatus and system based on asymmetric encryption |
CN113612616A (en) * | 2021-07-27 | 2021-11-05 | 北京沃东天骏信息技术有限公司 | Vehicle communication method and device based on block chain |
Also Published As
Publication number | Publication date |
---|---|
CN115622811B (en) | 2023-04-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5522307B2 (en) | System and method for remote maintenance of client systems in electronic networks using software testing with virtual machines | |
CN108259437B (en) | HTTP access method, HTTP server and system | |
CN113282603B (en) | Block chain consensus node checking method, device, equipment and storage medium | |
CN107342984A (en) | A kind of system, method and device for apparatus bound | |
CN111526159B (en) | Method and device for establishing data connection, terminal equipment and storage medium | |
CN108475379A (en) | A kind of electronic cigarette product certification method and electronic cigarette product certification system | |
CN105306534A (en) | Information verification method based on open platform and open platform | |
CN102710753A (en) | Method, device and system for publishing Internet application | |
CN107026738B (en) | Digital certificate updating method, digital signature verification method and digital authentication device | |
WO2014101112A1 (en) | Website identification method, device, and network system | |
CN110958239B (en) | Method and device for verifying access request, storage medium and electronic device | |
EP3544226B1 (en) | Unified secure device provisioning | |
CN110677399B (en) | Authentication method and device | |
JP2004519777A (en) | Method of measuring connection time of specific website on the Internet and recording medium storing program | |
CN107342966B (en) | Authority credentials distribution method and device | |
CN108366176A (en) | A kind of charging method of terminal applies, apparatus and system | |
CN105391705A (en) | Method of carrying out authentication on application service and device | |
CN110300400A (en) | One kind is registered method, apparatus, electronic equipment and storage medium | |
CN102946396B (en) | User agent's device, host web server and user authen method | |
CN106878336A (en) | A kind of data interactive method and device | |
CN107105045B (en) | Convenient filling method and system for wired security terminal firmware | |
CN106815734A (en) | A kind of information transferring method and device | |
CN111246396A (en) | Complete machine burning method and system based on UDP local area network | |
CN115622811B (en) | Verification method, device and system of burning license and electronic equipment | |
CN109788349A (en) | A kind of method and relevant apparatus detecting computing capability |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |