Internet of Things card verification method, device and system
By monitoring the network location and mobile route of the Internet of Things card and optimizing the authorization verification process, the problem of cumbersome authorization times after the location of the IoT device is changed is solved, and the efficiency of communication resource utilization is improved.
Patent Information
- Application Number
- CN202410936477.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-12
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2044-07-12
AI Technical Summary
After the location of the IoT device changes, the location-based authorization authentication method leads to the problem of excessive number of authorizations and frequent occupation of communication resources.
Monitor the network position of the IoT card after the first verification. If it does not change, a secondary verification will be performed every preset time; if the position changes, a secondary verification will be determined based on the movement speed range and route to judge the communication continuity and avoid re-issuance. Authorization.
Reduce the number of authorizations, avoid frequent communication resource occupation, and improve authorization efficiency and device mobility flexibility.
Smart Images

Figure CN118474744B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to an Internet of Things card verification method, device and system. Background Art
[0002] The Internet of Things is an extension of the Internet, which enables various objects to be combined with the Internet to form a huge network for easy identification and management.
[0003] Items that can be connected to the Internet of Things are IoT devices, such as mobile WIFI, car computers, POS machines, smart speakers, etc. As IoT devices, they need to have networking capabilities. Currently, networking functions are generally achieved through IoT cards. Like SIM cards commonly used in mobile phones, IoT cards also need to be authenticated. Currently, some IoT cards use location-based authorization and authentication.
[0004] For IoT devices, the communication location of some IoT devices will change during use. If the physical network device is authorized based on location, then re-authorization is required after the location changes, which leads to the problem of too many authorization times and frequent occupation of communication resources. Summary of the invention
[0005] Based on this, it is necessary to provide an Internet of Things card verification method, device and system to address the above-mentioned problems.
[0006] The embodiment of the present invention is implemented as follows: a method for verifying an Internet of Things card, the method comprising:
[0007] S101, receiving a network access request from an Internet of Things card through a communication base station, and obtaining basic information of the Internet of Things card;
[0008] S102, performing an initial verification of the IoT card based on the basic information and communication link of the IoT card;
[0009] S103, after the first verification is passed, monitor the network location of the IoT card and determine whether the network location of the IoT card has changed. If not, execute S104. If so, execute S105-S106;
[0010] S104, performing a secondary verification on the IoT card according to the communication link at a preset interval;
[0011] S105, determining a moving speed range of the Internet of Things card according to the communication link, and determining a moving route of the Internet of Things card according to the moving speed range of the Internet of Things card;
[0012] S106, performing secondary verification on the IoT card based on its movement route and communication link.
[0013] In one embodiment, the present invention provides an Internet of Things card verification device, the Internet of Things card verification device comprising:
[0014] An information acquisition module is used to receive a network access request from an IoT card through a communication base station and acquire basic information of the IoT card;
[0015] The first verification module is used to verify the IoT card for the first time based on the basic information and communication link of the IoT card;
[0016] A change judgment module is used to monitor the network location of the IoT card and determine whether the network location of the IoT card has changed after the first verification is passed. If not, the first verification module is executed. If so, the route determination module and the second verification module are executed;
[0017] The first verification module is used to perform a second verification on the IoT card according to the communication link at a preset interval;
[0018] A route determination module, used to determine the moving speed range of the Internet of Things card according to the communication link, and determine the moving route of the Internet of Things card according to the moving speed range of the Internet of Things card;
[0019] The second verification module is used to perform secondary verification on the IoT card based on its movement route and communication link.
[0020] In one of the embodiments, the present invention provides an Internet of Things card verification system, the Internet of Things card verification system comprising: an Internet of Things device, a base station and a computer device;
[0021] The IoT device has a built-in IoT card to communicate with the base station;
[0022] The base station communicates with the computer device to implement communication between the Internet of Things device and the computer device;
[0023] The computer device is used to execute the steps of the above-mentioned Internet of Things card verification method.
[0024] An Internet of Things card verification method provided by an embodiment of the present invention monitors the network location of the Internet of Things card after the first verification; if the network location of the Internet of Things card has not changed, then the Internet of Things card is verified twice according to the communication link at a preset time interval, and at this time, it is only necessary to determine whether the communication link is normal at a preset time interval; if the network location of the Internet of Things card changes, the moving speed range of the Internet of Things card is determined according to the communication link, the moving route of the Internet of Things card is determined according to the moving speed range of the Internet of Things card, and the Internet of Things card is verified twice according to the moving route and the communication link of the Internet of Things card. At this time, it is only necessary to determine whether the moving route of the Internet of Things card is similar to the connection route of the communication base station connected to the Internet of Things device, that is, whether the communication of the Internet of Things card is continuous. In this way, after the location of the Internet of Things device equipped with the Internet of Things card changes, the moving route of the Internet of Things card and the connection route of the communication base station connected to the Internet of Things device are verified twice, and there is no need to re-authorize after the location changes, which solves the problem that the number of authorizations is too cumbersome and frequently occupies communication resources. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 This is a flow chart of an Internet of Things card verification method in one embodiment;
[0026] Figure 2 A logic diagram of an Internet of Things card verification method in an embodiment;
[0027] Figure 3 This is a structural block diagram of an Internet of Things card verification device in one embodiment;
[0028] Figure 4 It is a structural block diagram of an Internet of Things card verification system in one embodiment;
[0029] Figure 5 FIG. 4 is a block diagram of the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0030] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0031] It is understood that the terms "first", "second", etc. used in the present invention may be used herein to describe various elements, but unless otherwise specified, these elements are not limited by these terms. These terms are only used to distinguish a first element from another element. For example, a first xx script may be referred to as a second xx script, and similarly, a second xx script may be referred to as a first xx script without departing from the scope of the present invention.
[0032] like Figure 1 , Figure 2 As shown, in one embodiment, a method for verifying an Internet of Things card is proposed, which may specifically include the following steps:
[0033] S101, receiving a network access request from an Internet of Things card through a communication base station, and obtaining basic information of the Internet of Things card;
[0034] S102, performing an initial verification of the IoT card based on the basic information and communication link of the IoT card;
[0035] S103, after the first verification is passed, monitor the network location of the IoT card and determine whether the network location of the IoT card has changed. If not, execute S104. If so, execute S105-S106;
[0036] S104, performing a secondary verification on the IoT card according to the communication link at a preset interval;
[0037] S105, determining a moving speed range of the Internet of Things card according to the communication link, and determining a moving route of the Internet of Things card according to the moving speed range of the Internet of Things card;
[0038] S106, performing secondary verification on the IoT card based on its movement route and communication link.
[0039] In this embodiment, the network access request of the Internet of Things card refers to the network access registration process during each communication. The Internet of Things card needs to report information to the server through the communication base station so that the network can determine which communication base station the Internet of Things card is located at.
[0040] In this embodiment, the basic information of the Internet of Things card includes device information of the Internet of Things card and location information of the Internet of Things card.
[0041] In this embodiment, the basic information of the Internet of Things card is transmitted to the server side through a communication base station, and the number of communication base stations passed through is a certain number, and the link between these communication base stations is the communication link. However, only one communication base station is connected to the Internet of Things card. This communication base station connected to the Internet of Things card is the starting end of the communication link, and the termination end of the communication link is the server side. The communication link is bidirectional, that is, data can be uploaded or sent down. If data is uploaded, the data is sent from the starting end of the communication link and received by the termination end of the communication link; if data is sent down, the data is sent from the termination end of the communication link and received by the starting end of the communication link.
[0042] In this embodiment, the first verification occurs when the IoT card is just connected to the IoT device or the IoT device equipped with the IoT card is just turned on. At this time, the IoT card needs to be authorized and authenticated.
[0043] In this embodiment, the network location of the Internet of Things card is the location of the Internet of Things card in the network, which is essentially the location of the communication base station connected to the Internet of Things card, rather than the actual location of the Internet of Things card.
[0044] In this embodiment, the preset time can be set to 10 minutes, half an hour, etc. S104 is performed when the network location of the IoT card does not change, so there is no need to perform secondary verification all the time, and only needs to perform secondary verification once every preset time.
[0045] In this embodiment, S105-S106 are performed when the network position of the Internet of Things card changes. Since the network position of the Internet of Things card is monitored, S105-S106 are executed every time the network position of the Internet of Things card changes. It is worth noting that the network position of the Internet of Things card is not the actual position of the Internet of Things card, but the position of the communication base station connected to the Internet of Things card. Therefore, S105-S106 will only be executed once when the communication base station connected to the Internet of Things card is switched. If the movement is performed under the same communication base station, S105-S106 will not be executed.
[0046] In this embodiment, the moving speed of the Internet of Things card is essentially the average speed at which the Internet of Things card switches base stations.
[0047] In this embodiment, the movement route of the Internet of Things card is essentially the actual movement route of the Internet of Things device to which the Internet of Things card is connected.
[0048] In this embodiment, if the network location of the IoT card has not changed, the secondary verification is to verify whether the communication link has changed or whether an unfamiliar node has been connected to the link, etc. At this time, the link is checked, and the verification can be performed from the two aspects of packet loss rate and delay. If the network location of the IoT card has changed, then a secondary verification is performed from the aspect of whether the communication link has continuity, which is specifically manifested in that the change direction of the starting end of the communication link is consistent with the direction of the movement route of the IoT card.
[0049] An Internet of Things card verification method provided by an embodiment of the present invention monitors the network location of the Internet of Things card after the first verification; if the network location of the Internet of Things card has not changed, then the Internet of Things card is verified twice according to the communication link at a preset time interval, and at this time, it is only necessary to determine whether the communication link is normal at a preset time interval; if the network location of the Internet of Things card changes, the moving speed range of the Internet of Things card is determined according to the communication link, the moving route of the Internet of Things card is determined according to the moving speed range of the Internet of Things card, and the Internet of Things card is verified twice according to the moving route and the communication link of the Internet of Things card. At this time, it is only necessary to determine whether the moving route of the Internet of Things card is similar to the connection route of the communication base station connected to the Internet of Things device, that is, whether the communication of the Internet of Things card is continuous. In this way, after the location of the Internet of Things device equipped with the Internet of Things card changes, the moving route of the Internet of Things card and the connection route of the communication base station connected to the Internet of Things device are verified twice, and there is no need to re-authorize after the location changes, which solves the problem that the number of authorizations is too cumbersome and frequently occupies communication resources.
[0050] In one embodiment, the first verification of the Internet of Things card according to the basic information and communication link of the Internet of Things card includes:
[0051] Obtain the basic information and actual location information of the IoT device connected to the IoT card based on the basic information of the IoT card;
[0052] Determine whether the basic information of the IoT device exists in the verification device information database. If so, determine whether the actual location of the IoT device is an authorized login location based on the actual location information of the IoT device. If so, determine the communication base station to which the IoT device is connected based on the communication link.
[0053] Determine whether the communication base station to which the IoT device is connected is an authorized base station. If so, the first verification is successful.
[0054] In this embodiment, the basic information of the IoT card includes the device information of the IoT card and the location information of the IoT card. The basic information of the IoT device connected to the IoT card is essentially the device information of the IoT card, and the actual location information of the IoT device connected to the IoT card is essentially the location information of the IoT card.
[0055] In this embodiment, the first verification of the IoT card is the verification performed when the IoT card is activated or restarted, and three aspects of verification are required. First, whether the IoT device is an authorized device. The verification device information library includes the information of all authorized devices, so the basic information of the IoT device can be compared with the verification device information library to determine whether the IoT device is an authorized device. Second, whether the actual location of the IoT device is an authorized login location. The authorized login location can also exist in the verification device information library or can be saved separately. Third, whether the communication base station connected to the IoT device is an authorized base station. In the present invention, each IoT card or each IoT device corresponds to only one communication base station, which is determined by the application address of the IoT card. It is worth noting that the authorized login location and the authorized base station will be used for the first verification, and can be modified after activation verification. For the first verification of each restart, the authorized login location and the authorized base station may be different. For example, before the IoT device is shut down, the actual location information of the IoT device before shutdown and the communication base station connected to the IoT card are sent to the server for storage, as the authorized login location and authorized base station for the first verification of the next restart.
[0056] In this embodiment, the communication base station to which the IoT device is connected is determined based on the communication link, that is, the communication base station at the starting end of the communication link is determined. Only the first communication base station in the communication link will be connected to the IoT device, and the other communication base stations in the communication link will be connected to the communication base station, and the last communication base station in the communication link will be connected to the server end, so that the server end becomes the termination end of the communication link. Of course, the communication link is a two-way transmission, and the starting end and the termination end are just artificial settings.
[0057] In this embodiment, the specific steps for determining whether the communication base station connected to the Internet of Things device is an authorized base station may be: the server side receives the base station code of the communication base station connected to the Internet of Things device and the Internet of Things card code, so that the server side queries the correspondence between the base station code and the Internet of Things card code; if the base station code corresponds to the Internet of Things card code, the communication base station connected to the Internet of Things device is an authorized base station; if the base station code does not correspond to the Internet of Things card code, the communication base station connected to the Internet of Things device is an unauthorized base station.
[0058] In this embodiment, when the IoT card connects to a communication base station, it will identify the authorized base station and preferentially connect to the authorized base station.
[0059] In one embodiment, monitoring the network location of the Internet of Things card and determining whether the network location of the Internet of Things card changes includes:
[0060] Determine the communication base station to which the IoT device is connected based on the communication link;
[0061] The actual location of the communication base station to which the IoT device is connected is determined as the network location of the IoT card;
[0062] Whether the network location of the IoT card has changed is determined by judging whether the actual location of the communication base station to which the IoT device is connected has changed.
[0063] In this embodiment, the network position of the Internet of Things card is the position of the Internet of Things card in the network, which is essentially the position of the communication base station connected to the Internet of Things card. Therefore, if the actual position of the communication base station connected to the Internet of Things device changes, it means that the network position of the Internet of Things card has changed. If the actual position of the communication base station connected to the Internet of Things device does not change, it means that the network position of the Internet of Things card has not changed.
[0064] In one embodiment, the second verification of the Internet of Things card according to the communication link at every preset time includes:
[0065] At preset intervals, a number of random data are sequentially sent to the IoT device connected to the IoT card through the communication link, and return data from the IoT device connected to the IoT card is received through the communication link;
[0066] Determine the latency and packet loss rate of the IoT card based on the random data sent and the returned data;
[0067] Perform secondary verification on the IoT card based on its latency and packet loss rate.
[0068] In this embodiment, the sizes of the random data are the same, but the contents are different. The transmission mode can be a parallel or serial mode. In order to reduce the impact of different transmission modes, generally one transmission mode is used.
[0069] In this embodiment, the specific steps for determining the delay of the Internet of Things card based on the sent random data and the returned data may be: calculating the time difference between the sending time and the receiving time of each random data; and calculating the cumulative average of the time difference to obtain the delay of the Internet of Things card.
[0070] In this embodiment, the specific steps of determining the packet loss rate of the Internet of Things card according to the random data sent and the returned data can be: comparing each random data received with the corresponding random data sent to determine the data difference; calculating the ratio of the data difference to the data volume of all random data sent as the first ratio; judging whether the first ratio is greater than the preset packet loss threshold, if so, marking the random data as loss random data, and recording the ratio of the loss random data to the number of all random data sent as the second ratio, if not, the second ratio is 0; calculating the ratio of the sum of the data difference to all random data as the third ratio; and obtaining the packet loss rate of the Internet of Things card by the weighted average of the second ratio and the third ratio. The packet loss rate is characterized by two parts. One part is the loss ratio of each random data, that is, the first ratio; the preset packet loss threshold can be set to 0.2-0.3, if it is greater than the preset packet loss threshold, it is considered that the random data is lost, if it is less than or equal to the preset packet loss threshold, it is considered that the random data is received normally, and the first ratio is the loss during the transmission process. The other part is the total data loss ratio, that is, the ratio of the sum of the data volume of all random data lost to the data volume of all random data, which represents the stability during the entire data transmission process. The weighting coefficients of the second ratio and the third ratio may be set according to the needs of network quality, for example, 0.2 and 0.8 respectively.
[0071] In one embodiment, the second verification of the Internet of Things card according to the latency and packet loss rate of the Internet of Things card includes:
[0072] Get the historical communication link data of IoT card;
[0073] Determine the allowable fluctuation range of the IoT card's latency based on historical communication link data;
[0074] Determine the allowable fluctuation range of the packet loss rate of the IoT card based on historical communication link data;
[0075] Determine whether the latency and packet loss rate of the IoT card are both within the corresponding allowable fluctuation range. If so, the secondary verification is passed.
[0076] In this embodiment, the specific steps of determining the allowable fluctuation range of the delay or packet loss rate of the Internet of Things card according to the historical communication link data are as follows: for any one of the delay or packet loss rate, determine the distribution of the historical communication link data with time as the horizontal axis and the value as the vertical axis; calculate the regression line of the historical communication link data; take the current time on the time axis, and determine the value corresponding to the regression line and the current time; obtain the left endpoint of the allowable fluctuation range from the value corresponding to the current time on the regression line and the set lower offset coefficient, and obtain the right endpoint of the allowable fluctuation range from the value corresponding to the current time on the regression line and the set upper offset coefficient; obtain the allowable fluctuation range from the left endpoint and the right endpoint. Any one of the delay or packet loss rate takes the mean value of each test, so a series of discrete points can be obtained, and a linear regression fitting can be performed from these discrete points. After fitting, the corresponding value can be obtained from the current time. In this embodiment, the upper offset coefficient and the lower offset data can be consistent, usually between 0.2-0.4, for example, the upper offset coefficient and the lower offset data are both 0.4, and the obtained value is x, then the allowable fluctuation range is (0.6x, 1.4x).
[0077] In this embodiment, if the latency and packet loss rate of the IoT card do not both fall within the corresponding allowable fluctuation range, the secondary verification fails. At this time, the first verification needs to be repeated. If the first verification fails, the IoT card is locked.
[0078] In one embodiment, determining the moving speed range of the Internet of Things card according to the communication link includes:
[0079] Determine all communication base stations A to which the IoT device is connected based on the communication link;
[0080] For each communication base station A, determining a time point t1 at which the communication base station A is connected and a time point t2 at which the communication base station A is disconnected;
[0081] Depend on Obtaining the connection duration t3 of the communication base station A;
[0082] Determine a boundary a between the communication base station A and a previous communication base station A;
[0083] Determine a boundary b between the communication base station A and the next communication base station A;
[0084] Determine the longest straight-line distance c and the shortest straight-line distance d between boundary a and boundary b;
[0085] Depend on Obtaining the maximum value of the moving speed of the Internet of Things card in the communication base station A;
[0086] Depend on Obtain the minimum value of the moving speed of the Internet of Things card in the communication base station A;
[0087] Obtain a moving speed range of the Internet of Things card at the communication base station A according to the maximum and minimum values of the moving speed of the Internet of Things card at the communication base station;
[0088] Identify outliers for t3 based on the time sequence;
[0089] Each time an outlier is identified, it is determined whether a preset number of t3s after the t3 identified as an outlier are all outliers. If not, all data of the communication base station A corresponding to the t3 identified as an outlier are discarded, and the communication base station A corresponding to the t3 not identified as an outlier is determined as a part;
[0090] If a preset number of t3s after t3 identified as an outlier are all outliers, the communication base station A corresponding to t3 identified as an outlier is used as the dividing point to divide the t3 into two parts, namely, the front and back parts;
[0091] For each part, the public moving speed range of the part is determined according to the moving speed range of all the communication base stations A of the Internet of Things card in the part, and the public moving speed range of the part is determined as the moving speed range of the Internet of Things card in the part.
[0092] In this embodiment, determining all communication base stations A to which the IoT device is connected based on the communication link refers to determining the communication base stations A to which the IoT device is connected before and after each change in the communication link.
[0093] In this embodiment, t3 is the time that the Internet of Things card stays within the signal coverage of the communication base station A. Since it is unclear how far the Internet of Things card moves within the signal coverage of the communication base station A, but since the previous communication base station A and the next communication base station A of the communication base station A are known, and the network of the communication base stations is cellular, the boundary edge a and the boundary edge b can be known. In theory, when the Internet of Things card reaches the boundary edge a, it will be connected to the communication base station A, and when it reaches the boundary edge b, it will be disconnected from the communication base station A and connected to the next communication base station A. Therefore, the distance between the boundary edge a and the boundary b can be used to represent the moving distance of the Internet of Things card within the signal coverage of the communication base station A. Because the Internet of Things card is moving along the actual route at this time, even if there is a certain error in this way, there will not be much deviation from a realistic perspective.
[0094] In this embodiment, for the distance between the intersection edge a and the intersection b, since it is not clear at which point on the intersection edge a the Internet of Things card enters, and it is also not clear at which point on the intersection edge b the Internet of Things card leaves, the longest straight-line distance c and the shortest straight-line distance d between the intersection edge a and the intersection b are calculated, thereby obtaining the moving speed range of the Internet of Things card in the communication base station A.
[0095] In this embodiment, for example, if the time spent in a communication base station A is too long, it will inevitably cause the overall range of the moving speed of the IoT card in the communication base station A to be too large, which is abnormal data and needs to be excluded, so t3 is identified as an outlier according to the time sequence. The time sequence here refers to the time sequence in which t3 is determined, that is, the time sequence of t2 corresponding to t3.
[0096] In this embodiment, an outlier, also called an escape value, refers to one or more values in a data set that are significantly different from other values. There are many methods for identifying outliers, such as the interquartile range method, the box plot method, the GRUBBS test method, and the Dixon test method. This is a prior art and will not be expanded here.
[0097] In this embodiment, if the data after the outlier is not an outlier, then all the data of the communication base station A corresponding to t3 identified as an outlier should be discarded, which means that the Internet of Things card stays in the corresponding communication base station A for too long. If the data after the outlier are all outliers, it means that the moving speed range of the Internet of Things card has changed from the communication base station A corresponding to t3 identified as an outlier, and the preset number can be set to 3-5. At this time, the communication base station A corresponding to t3 identified as an outlier is used as the dividing point to divide it into two parts. For example, an Internet of Things device equipped with an Internet of Things card first moves by walking, and then changes to moving by car. The walking method has a corresponding moving speed range, and the car method has a corresponding moving speed range, but t3 in the car method does not belong to an outlier, because t3 in the car method is a continuous process.
[0098] In this embodiment, the public moving speed range of the part is determined according to the moving speed range of all the communication base stations A of the IoT card in the part. For example, if the moving speed range obtained in the part is 4.1-7.0m / s, 4.3-7.6m / s, and 4.3-7.8m / s, the public moving speed range of the part is 4.3-7.0m / s, which is the moving speed range of the IoT card in the part. If there is only one part, then this is the moving speed range of the IoT card.
[0099] In this embodiment, since this method is used to determine the moving speed range of the Internet of Things card, at least two data are required to make a judgment when judging any communication base station A, and after the communication base station A, a preset number of communication base stations A must be passed before it can be determined whether the outlier needs to be discarded, so there is a certain lag. However, since the network position of the Internet of Things card is in motion, this is a continuous process, so the moving speed range of the Internet of Things card can be determined based on the previous data.
[0100] In one embodiment, determining the moving route of the Internet of Things card according to the moving speed range of the Internet of Things card includes:
[0101] Obtain the location information of all communication base stations A;
[0102] For each section, determine the transportation mode used by the IoT device connected to the IoT card in the section according to the moving speed range of the IoT card in the section and the transportation mode speed comparison table;
[0103] Obtain the actual route corresponding to the transportation mode in the said part;
[0104] For each actual route, determine whether the actual route is within the signal coverage of the communication base station A in the portion, and if so, determine the actual route as the movement route of the IoT card in the portion;
[0105] Determine whether there is a connection point between the movement route of the Internet of Things card in the said part and the movement route of the Internet of Things card in the other said parts. If so, splice the movement routes with the connection points to obtain the movement route of the Internet of Things card.
[0106] In this embodiment, there are many modes of transportation, such as walking, cycling, car, high-speed rail, etc. For example, the device connected to the IoT card is a POS machine, and the POS machine can use any mode of transportation during movement. Different modes of transportation have different speeds, so a transportation mode speed comparison table can be set. Different speeds on the transportation mode comparison table correspond to different modes of transportation, such as walking speed of about 1.1m / s, cycling speed of 4.2-7.2m / s, etc.
[0107] In this embodiment, obtaining the actual route corresponding to the transportation mode means, for example, walking mode, then all the roads that can be walked belong to the actual route corresponding to the walking mode.
[0108] In this embodiment, the Internet of Things card can have multiple moving routes. This is because the radiation range of the communication base station is a regional range. As long as the route is within the range of all communication base stations A at the same time, it will be determined as the moving route of the Internet of Things card. For example, there are two adjacent parallel roads, the communication base station A is in the middle of the two roads, and both roads are within the signal coverage of the communication base station A. At this time, the moving routes of the Internet of Things card are determined to be two. The moving route of the Internet of Things card is determined to verify the Internet of Things card, that is, to determine the continuity of the communication base station. Therefore, the presence of multiple moving routes of the Internet of Things card does not affect the secondary verification.
[0109] In this embodiment, if there is only one part, it is not necessary to determine whether there is a connection point between the mobile route of the Internet of Things card in the part and the mobile route of the Internet of Things card in the other parts. If there are multiple parts, they need to be spliced, because different parts represent different modes of transportation, and the actual routes corresponding to different modes of transportation are different, so if there are multiple parts, the mobile route of each part needs to be spliced. Determining whether there is a connection point between the mobile route of the Internet of Things card in the part and the mobile route of the Internet of Things card in the other parts is because there may be multiple mobile routes of the Internet of Things card in the part, but there is a mobile route that has a connection point with the mobile route of the Internet of Things card in the other parts.
[0110] In one embodiment, the second verification of the Internet of Things card according to the movement route and communication link of the Internet of Things card includes:
[0111] Determine all communication base stations A to which the IoT device is connected based on the communication link;
[0112] Obtain the location information of all communication base stations A;
[0113] Connect all communication base stations A in the order of their appearance to obtain a base station connection route;
[0114] Determine the shortest distance d from each communication base station A to the mobile route of the IoT card i ;
[0115] Depend on Determine the judgment value of the base station connection route and the movement route of the Internet of Things card;
[0116] Determine whether the judgment value is less than the preset value. If so, the secondary verification is passed;
[0117] Wherein n is the number of communication base stations A, and i is the serial number of communication base station A.
[0118] In this embodiment, the mobile route of the IoT card is checked. If the base station connection route is basically consistent with the mobile route of the IoT card, it means that the communication of the IoT card is continuous and the secondary verification is passed. If the judgment value is not less than the preset value, the secondary verification fails, and the first verification needs to be repeated. If the first verification fails, the IoT card is locked. The mobile route of the IoT card needs to be checked because the mobile route of the IoT card is matched by the location of the communication base station A, not by the base station connection route.
[0119] In this embodiment, is the standard deviation formula. The smaller the standard deviation, the smaller the fluctuation or dispersion, that is, the closer the mobile route of the communication base station A and the IoT card is. Therefore, the smaller the judgment value, the greater the similarity, and the larger the judgment value, the smaller the similarity.
[0120] In this embodiment, if there are multiple movement routes of the Internet of Things card, the steps of this embodiment are executed for each movement route of the Internet of Things card, as long as one movement route of the Internet of Things card can pass the secondary verification.
[0121] In this embodiment, several actual routes may be selected, and then a determination value of each actual route may be obtained according to a minimum distance of a communication base station on the actual route, and an average value of all determination values may be set as a preset value.
[0122] like Figure 3 As shown, in one embodiment, an Internet of Things card verification device is provided, which may specifically include:
[0123] An information acquisition module is used to receive a network access request from an IoT card through a communication base station and acquire basic information of the IoT card;
[0124] The first verification module is used to verify the IoT card for the first time based on the basic information and communication link of the IoT card;
[0125] A change judgment module is used to monitor the network location of the IoT card and determine whether the network location of the IoT card has changed after the first verification is passed. If not, the first verification module is executed. If so, the route determination module and the second verification module are executed;
[0126] The first verification module is used to perform a second verification on the IoT card according to the communication link at a preset interval;
[0127] A route determination module, used to determine the moving speed range of the Internet of Things card according to the communication link, and determine the moving route of the Internet of Things card according to the moving speed range of the Internet of Things card;
[0128] The second verification module is used to perform secondary verification on the IoT card based on its movement route and communication link.
[0129] In this embodiment, each module of the Internet of Things card verification device is the modularization of the method part of the present invention. For the specific explanation of each module, please refer to the corresponding content of the method part of the present invention, and the embodiment of the present invention will not be repeated here.
[0130] like Figure 4 As shown, in one embodiment, an Internet of Things card verification system is provided, which may specifically include: an Internet of Things device, a base station, and a computer device;
[0131] The IoT device has a built-in IoT card to communicate with the base station;
[0132] The base station communicates with the computer device to implement communication between the Internet of Things device and the computer device;
[0133] The computer device is used to execute the steps of the above-mentioned Internet of Things card verification method.
[0134] In this embodiment, the computer device can be an independent physical server or terminal, or a server cluster composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud servers, cloud databases, cloud storage, and CDN.
[0135] An Internet of Things card verification system provided by an embodiment of the present invention monitors the network location of the Internet of Things card after the first verification; if the network location of the Internet of Things card has not changed, then the Internet of Things card is verified twice according to the communication link at a preset time interval, and at this time, it is only necessary to determine whether the communication link is normal at a preset time interval; if the network location of the Internet of Things card changes, the moving speed range of the Internet of Things card is determined according to the communication link, the moving route of the Internet of Things card is determined according to the moving speed range of the Internet of Things card, and the Internet of Things card is verified twice according to the moving route and the communication link of the Internet of Things card. At this time, it is only necessary to determine whether the moving route of the Internet of Things card is similar to the connection route of the communication base station connected to the Internet of Things device, that is, whether the communication of the Internet of Things card is continuous. In this way, after the location of the Internet of Things device equipped with the Internet of Things card changes, the moving route of the Internet of Things card and the connection route of the communication base station connected to the Internet of Things device are verified twice, and there is no need to re-authorize after the location changes, which solves the problem that the number of authorizations is too cumbersome and frequently occupies communication resources.
[0136] Figure 5 FIG. 2 shows an internal structure diagram of a computer device in one embodiment. Figure 5 As shown, the computer device includes a processor, a memory, a network interface, an input device and a display screen connected through a system bus. Among them, the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program. When the computer program is executed by the processor, the processor can implement an Internet of Things card verification method provided by an embodiment of the present invention. The internal memory may also store a computer program. When the computer program is executed by the processor, the processor can execute an Internet of Things card verification method provided by an embodiment of the present invention. The display screen of the computer device may be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device may be a touch layer covering the display screen, or a button, trackball or touchpad provided on the housing of the computer device, or an external keyboard, touchpad or mouse, etc.
[0137] Those skilled in the art will understand that Figure 5 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present invention, and does not constitute a limitation on the computer device to which the solution of the present invention is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0138] In one embodiment, an IoT card verification device provided by an embodiment of the present invention can be implemented in the form of a computer program. The computer program can be Figure 5 The computer device shown in the figure is run. The memory of the computer device can store various program modules that constitute the Internet of Things card verification device, such as: Figure 3 The information acquisition module, the first verification module, the change judgment module, the first verification module, the route determination module and the second verification module are shown. The computer program composed of each program module enables the processor to execute the steps of an Internet of Things card verification method in each embodiment of the present invention described in this specification.
[0139] For example, Figure 5 The computer device shown can be Figure 3 The information acquisition module in the Internet of Things card verification device shown executes step S101; the computer device can execute step S102 through the first verification module; the computer device can execute step S103 through the change judgment module; the computer device can execute step S104 through the first verification module; the computer device can execute step S105 through the route determination module; the computer device can execute step S106 through the second verification module.
[0140] In one embodiment, a computer device is provided, the computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the following steps are implemented:
[0141] S101, receiving a network access request from an Internet of Things card through a communication base station, and obtaining basic information of the Internet of Things card;
[0142] S102, performing an initial verification of the IoT card based on the basic information and communication link of the IoT card;
[0143] S103, after the first verification is passed, monitor the network location of the IoT card and determine whether the network location of the IoT card has changed. If not, execute S104. If so, execute S105-S106;
[0144] S104, performing a secondary verification on the IoT card according to the communication link at a preset interval;
[0145] S105, determining a moving speed range of the Internet of Things card according to the communication link, and determining a moving route of the Internet of Things card according to the moving speed range of the Internet of Things card;
[0146] S106, performing secondary verification on the IoT card based on its movement route and communication link.
[0147] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the processor performs the following steps:
[0148] S101, receiving a network access request from an Internet of Things card through a communication base station, and obtaining basic information of the Internet of Things card;
[0149] S102, performing an initial verification of the IoT card based on the basic information and communication link of the IoT card;
[0150] S103, after the first verification is passed, monitor the network location of the IoT card and determine whether the network location of the IoT card has changed. If not, execute S104. If so, execute S105-S106;
[0151] S104, performing a secondary verification on the IoT card according to the communication link at a preset interval;
[0152] S105, determining a moving speed range of the Internet of Things card according to the communication link, and determining a moving route of the Internet of Things card according to the moving speed range of the Internet of Things card;
[0153] S106, performing secondary verification on the IoT card based on its movement route and communication link.
[0154] It should be understood that, although each step in the flow chart of each embodiment of the present invention is shown in sequence according to the indication of the arrow, these steps are not necessarily performed in sequence according to the order indicated by the arrow. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be performed in other orders. Moreover, at least a portion of the steps in each embodiment may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily performed at the same time, but can be performed at different times, and the execution order of these sub-steps or stages is not necessarily performed in sequence, but can be performed in turn or alternately with at least a portion of other steps or sub-steps or stages of other steps.
[0155] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided by the present invention can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0156] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0157] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the present invention. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention.
Claims
1. A method for verifying an Internet of Things card, characterized in that: The Internet of Things card verification method includes: S101, receiving a network access request from an Internet of Things card through a communication base station, and obtaining basic information of the Internet of Things card; S102, performing an initial verification of the IoT card based on the basic information and communication link of the IoT card; S103, after the first verification is passed, monitor the network location of the IoT card and determine whether the network location of the IoT card has changed. If not, execute S104. If so, execute S105-S106; S104, performing a secondary verification on the IoT card according to the communication link at a preset interval; S105, determining a moving speed range of the Internet of Things card according to the communication link, and determining a moving route of the Internet of Things card according to the moving speed range of the Internet of Things card; S106, performing a secondary verification on the IoT card according to the movement route and communication link of the IoT card; Determining the moving speed range of the Internet of Things card according to the communication link includes: Determine all communication base stations A to which the IoT device is connected based on the communication link; For each communication base station A, determining a time point t1 at which the communication base station A is connected and a time point t2 at which the communication base station A is disconnected; The connection time t3 of the communication base station A is obtained by t2-t1; Determine a boundary edge a between the communication base station A and a previous communication base station A; Determine a boundary edge b between the communication base station A and the next communication base station A; Determine the longest straight-line distance c and the shortest straight-line distance d between the boundary edge a and the boundary edge b; The maximum value of the moving speed of the IoT card in the communication base station A is obtained by c / t3; The minimum value of the moving speed of the IoT card in the communication base station A is obtained by d / t3; Obtain a moving speed range of the Internet of Things card at the communication base station A according to the maximum and minimum values of the moving speed of the Internet of Things card at the communication base station; Identify outliers for t3 based on the time sequence; Each time an outlier is identified, it is determined whether a preset number of t3s after the t3 identified as an outlier are all outliers. If not, all data of the communication base station A corresponding to the t3 identified as an outlier are discarded, and the communication base station A corresponding to the t3 not identified as an outlier is determined as a part; If a preset number of t3s after t3 identified as an outlier are all outliers, the communication base station A corresponding to the t3 identified as an outlier is used as the dividing point to divide the t3 into two parts, namely, the front and back parts; For each part, the public moving speed range of the part is determined according to the moving speed range of all the communication base stations A of the Internet of Things card in the part, and the public moving speed range of the part is determined as the moving speed range of the Internet of Things card in the part.
2. The Internet of Things card verification method according to claim 1, characterized in that: The first verification of the IoT card based on the basic information and communication link of the IoT card includes: Obtain the basic information and actual location information of the IoT device connected to the IoT card based on the basic information of the IoT card; Determine whether the basic information of the IoT device exists in the verification device information database. If so, determine whether the actual location of the IoT device is an authorized login location based on the actual location information of the IoT device. If so, determine the communication base station to which the IoT device is connected based on the communication link. Determine whether the communication base station to which the IoT device is connected is an authorized base station. If so, the first verification is successful.
3. The Internet of Things card verification method according to claim 1, characterized in that: The monitoring of the network location of the Internet of Things card and determining whether the network location of the Internet of Things card changes includes: Determine the communication base station to which the IoT device is connected based on the communication link; The actual location of the communication base station to which the IoT device is connected is determined as the network location of the IoT card; Whether the network location of the IoT card has changed is determined by judging whether the actual location of the communication base station to which the IoT device is connected has changed.
4. The Internet of Things card verification method according to claim 1, characterized in that: The second verification of the IoT card according to the communication link at every preset time includes: At preset intervals, a number of random data are sequentially sent to the IoT device connected to the IoT card through the communication link, and return data from the IoT device connected to the IoT card is received through the communication link; Determine the latency and packet loss rate of the IoT card based on the random data sent and the returned data; Perform secondary verification on the IoT card based on its latency and packet loss rate.
5. The Internet of Things card verification method according to claim 4, characterized in that: The second verification of the IoT card according to the latency and packet loss rate of the IoT card includes: Get the historical communication link data of IoT card; Determine the allowable fluctuation range of the IoT card's latency based on historical communication link data; Determine the allowable fluctuation range of the packet loss rate of the IoT card based on historical communication link data; Determine whether the latency and packet loss rate of the IoT card are both within the corresponding allowable fluctuation range. If so, the secondary verification is passed.
6. The Internet of Things card verification method according to claim 1, characterized in that: Determining the moving route of the Internet of Things card according to the moving speed range of the Internet of Things card includes: Obtain the location information of all communication base stations A; For each section, determine the transportation mode used by the IoT device connected to the IoT card in the section according to the moving speed range of the IoT card in the section and the transportation mode speed comparison table; Obtain the actual route corresponding to the transportation mode in the said part; For each actual route, determine whether the actual route is within the signal coverage of the communication base station A in the portion, and if so, determine the actual route as the movement route of the IoT card in the portion; Determine whether there is a connection point between the movement route of the Internet of Things card in the said part and the movement route of the Internet of Things card in the other said parts. If so, splice the movement routes with the connection points to obtain the movement route of the Internet of Things card.
7. The Internet of Things card verification method according to claim 1, characterized in that: The second verification of the IoT card according to the movement route and communication link of the IoT card includes: Determine all communication base stations A to which the IoT device is connected based on the communication link; Obtain the location information of all communication base stations A; Connect all communication base stations A in the order of their appearance to obtain a base station connection route; Determine the shortest distance d from each communication base station A to the mobile route of the IoT card i ; Depend on Determine the judgment value of the base station connection route and the movement route of the Internet of Things card; Determine whether the judgment value is less than the preset value. If so, the secondary verification is passed; Wherein n is the number of communication base stations A, and i is the serial number of communication base station A.
8. An Internet of Things card verification device, characterized in that: The Internet of Things card verification device comprises: An information acquisition module is used to receive a network access request from an IoT card through a communication base station and acquire basic information of the IoT card; The first verification module is used to verify the IoT card for the first time based on the basic information and communication link of the IoT card; A change judgment module is used to monitor the network location of the IoT card and determine whether the network location of the IoT card has changed after the first verification is passed. If not, the first verification module is executed. If so, the route determination module and the second verification module are executed; The first verification module is used to perform a second verification on the IoT card according to the communication link at a preset interval; A route determination module, used to determine the moving speed range of the Internet of Things card according to the communication link, and determine the moving route of the Internet of Things card according to the moving speed range of the Internet of Things card; The second verification module is used to perform a second verification on the IoT card according to the movement route and communication link of the IoT card; Determining the moving speed range of the Internet of Things card according to the communication link includes: Determine all communication base stations A to which the IoT device is connected based on the communication link; For each communication base station A, determining a time point t1 at which the communication base station A is connected and a time point t2 at which the communication base station A is disconnected; The connection time t3 of the communication base station A is obtained by t2-t1; Determine a boundary edge a between the communication base station A and a previous communication base station A; Determine a boundary edge b between the communication base station A and the next communication base station A; Determine the longest straight-line distance c and the shortest straight-line distance d between the boundary edge a and the boundary edge b; The maximum value of the moving speed of the IoT card in the communication base station A is obtained by c / t3; The minimum value of the moving speed of the IoT card in the communication base station A is obtained by d / t3; Obtain a moving speed range of the Internet of Things card at the communication base station A according to the maximum and minimum values of the moving speed of the Internet of Things card at the communication base station; Identify outliers for t3 based on the time sequence; Each time an outlier is identified, it is determined whether a preset number of t3s after the t3 identified as an outlier are all outliers. If not, all data of the communication base station A corresponding to the t3 identified as an outlier are discarded, and the communication base station A corresponding to the t3 not identified as an outlier is determined as a part; If a preset number of t3s after t3 identified as an outlier are all outliers, the communication base station A corresponding to t3 identified as an outlier is used as the dividing point to divide the t3 into two parts, namely, the front and back parts; For each part, the public moving speed range of the part is determined according to the moving speed range of all the communication base stations A of the Internet of Things card in the part, and the public moving speed range of the part is determined as the moving speed range of the Internet of Things card in the part.
9. An Internet of Things card verification system, characterized in that: The IoT card verification system includes: IoT devices, base stations and computer devices; The IoT device has a built-in IoT card to communicate with the base station; The base station communicates with the computer device to implement communication between the Internet of Things device and the computer device; The computer device is used to execute the steps of the Internet of Things card verification method described in any one of claims 1 to 7.
