Disclosure of Invention
The invention aims to provide a method for identifying the identity of mobile equipment and a service server.
The technical scheme for solving the technical problems is as follows: a method for mobile device identification, the method for mobile device identification comprising:
s1, the service server sends a device information acquisition instruction to the mobile device when receiving a preset service transaction request sent by the mobile device;
s2, the mobile device acquires preset type of to-be-verified device information according to the device information acquisition instruction, and sends the to-be-verified device information to the service server;
s3, the service server receives the information of the equipment to be verified, and traverses the information to determine whether the equipment reference information corresponding to the mobile equipment is prestored;
s4, if the device reference information corresponding to the mobile device is pre-stored, obtaining the pre-stored device reference information corresponding to the mobile device, and calculating the similarity between the obtained device reference information and the received device information to be verified;
and S5, if the similarity is not less than a preset threshold, rejecting the service handling request, and if the similarity is less than the preset threshold, responding to the service handling request.
Preferably, the step S3 is followed by:
and if the equipment reference information corresponding to the mobile equipment is not prestored, storing the received equipment information to be verified as the equipment reference information corresponding to the mobile terminal, and responding to the service handling request.
Preferably, the steps S1 and S2 are replaced with:
when the mobile equipment sends the service handling request, acquiring preset type information of the equipment to be checked;
sending the acquired information of the equipment to be verified and the service transaction request to the service server
Preferably, the information of the device to be verified at least includes an international mobile device identifier, an international mobile subscriber identity, a device brand, a device model, device hardware configuration information, device operating system information, and a device factory date.
Preferably, the step S4 includes:
comparing the received equipment information to be verified with prestored equipment reference information of the mobile equipment one by one to screen out equipment information to be verified, which is consistent with the prestored equipment reference information of the mobile equipment, in the equipment information to be verified;
and acquiring a weight value corresponding to the to-be-verified equipment information consistent with the pre-stored equipment reference information of the mobile equipment according to a mapping relation between the preset equipment information type and the weight value, and accumulating the weight values to obtain the similarity.
The technical scheme for solving the technical problems is as follows: a service server based on the above method for identifying the identity of a mobile device, the service server comprising:
the system comprises a sending module, a receiving module and a processing module, wherein the sending module is used for sending a device information acquisition instruction to the mobile device when receiving a preset service handling request sent by the mobile device;
the confirmation module is used for receiving the preset type of equipment information to be verified, which is sent by the mobile equipment and acquired according to the equipment information acquisition instruction, and traversing to confirm whether the equipment reference information corresponding to the mobile equipment is prestored;
the calculation module is used for acquiring pre-stored equipment reference information corresponding to the mobile equipment and calculating the similarity between the acquired equipment reference information and the received equipment information to be verified if the equipment reference information corresponding to the mobile equipment is pre-stored;
and the service processing module is used for rejecting the service handling request if the similarity is not less than a preset threshold value, and responding to the service handling request if the similarity is less than the preset threshold value.
Preferably, the service server further includes:
and the storage module is used for storing the received equipment information to be verified as the equipment reference information corresponding to the mobile terminal if the equipment reference information corresponding to the mobile equipment is not prestored, and responding to the service handling request.
Preferably, the information of the device to be verified at least includes an international mobile device identifier, an international mobile subscriber identity, a device brand, a device model, device hardware configuration information, device operating system information, and a device factory date.
Preferably, the calculation module comprises:
the screening unit is used for comparing the received equipment information to be verified with prestored equipment reference information of the mobile equipment one by one so as to screen out the equipment information to be verified, which is consistent with the prestored equipment reference information of the mobile equipment, in the equipment information to be verified;
an accumulation unit, configured to obtain, according to a mapping relationship between a preset device information type and a weight value, a weight value corresponding to pre-stored device reference information of the mobile device, and accumulate each weight value to obtain the similarity
The invention has the beneficial effects that: when a preset service transaction request sent by the mobile equipment is sent to the service server, if equipment reference information corresponding to the mobile equipment is prestored in the service server, the identity of the mobile equipment is identified according to the similarity and the size relation of a preset threshold value by calculating the similarity of the equipment reference information and the equipment information to be verified, so that the service transaction request of the mobile equipment is responded or rejected.
Detailed Description
The principles and features of this invention are described below in conjunction with the following drawings, which are set forth by way of illustration only and are not intended to limit the scope of the invention.
As shown in fig. 1, fig. 1 is a schematic flowchart of an embodiment of a method for identifying a mobile device according to the present invention, where the method for identifying a mobile device includes the following steps:
step S1, when receiving a preset service transaction request sent by a mobile device, a service server sends a device information acquisition instruction to the mobile device;
in this embodiment, the predetermined service refers to a specific service that needs to be bound with the mobile device, and the specific service is valid only once and is valid for the first time. The mobile device sends the preset service handling request to a service server, and the service server sends a device information acquisition instruction to the mobile device when receiving the preset service handling request.
S2, the mobile device acquires preset type of to-be-verified device information according to the device information acquisition instruction, and sends the to-be-verified device information to the service server;
in this embodiment, after receiving a device information acquisition instruction sent by a service server, a mobile device acquires device information of a preset type according to the device information acquisition instruction, where the device information of the preset type is to-be-verified device information, and then sends the to-be-verified device information to the service server.
The preset type of device information at least comprises an international mobile device identifier, an international mobile subscriber identity, a device brand, a device model, device hardware configuration information, device operating system information and a device factory date. Of course, multiple types (for example, 5 or 6 types) of the above-mentioned pieces of equipment information may be included, and the equipment information may also include other types of information, for example, production information (including manufacturer information: manufacturer name, contact person, address and contact phone), maintenance information (including maintenance record: maintenance time and maintenance content), and the like.
S3, the service server receives the information of the equipment to be verified, and traverses the information to determine whether the equipment reference information corresponding to the mobile equipment is prestored;
in this embodiment, after receiving the device information to be verified sent by the mobile device, the service server traverses the pre-stored device reference information in the storage area corresponding to the service server, so as to determine whether the device reference information corresponding to the mobile device is pre-stored.
The type of the device reference information may be the same as or partially the same as the type of the device information described above. The device reference information includes, but is not limited to, an international mobile device reference identifier, an international mobile subscriber reference identifier, a device reference brand, a device reference model, device hardware configuration reference information, device operating system reference information, and a device factory reference date. The traversing by the service server to determine whether the device reference information corresponding to the mobile device is prestored specifically is as follows: the service server traverses the pre-stored device reference information in the storage area by taking one or two or more types of the device information to be verified as a reference, if one or two or more types of the device reference information are the same as the device information to be verified, the device reference information corresponding to the mobile device is confirmed to be pre-stored, the confirmed device reference information can only be the device reference information of one mobile device, or can be the device reference information of a plurality of mobile devices, or the device reference information corresponding to the mobile device is not stored in the service server.
S4, if the device reference information corresponding to the mobile device is pre-stored, obtaining the pre-stored device reference information corresponding to the mobile device, and calculating the similarity between the obtained device reference information and the received device information to be verified;
in this embodiment, if the device reference information corresponding to the mobile device is prestored, the device reference information corresponding to the mobile device is extracted from the storage area, and then the similarity between the obtained device reference information and the received device information to be verified is calculated. After the mobile device is booted, some device information may change, and the device reference information and the device information to be verified respectively include multiple types of information, so that the similarity between the two pieces of information needs to be calculated to distinguish whether the two pieces of information are corresponding to the same mobile device.
And S5, if the similarity is not less than a preset threshold, rejecting the service handling request, and if the similarity is less than the preset threshold, responding to the service handling request.
In this embodiment, the preset threshold is, for example, 0.95 or 0.9, if the similarity between the device reference information and the device information to be verified is greater than or equal to the preset threshold, it indicates that the device reference information and the device information to be verified are the device information of the same mobile device, since the device reference information is pre-stored in the service server, it indicates that the mobile terminal has made a request for the predetermined service, that is, has sent a predetermined service transaction request to the service server, and obtains a service corresponding to the predetermined service, since the predetermined service is a specific service that needs to be bound to the mobile device and is valid only for the first time, if the mobile device subsequently re-applies for the predetermined service to the service server, the service server rejects; on the contrary, if the similarity between the device reference information and the device information to be verified is smaller than the preset threshold, it indicates that the device reference information and the device information to be verified are not the device information of the same mobile device, and indicates that the mobile terminal has not made a request for the predetermined service, so the service server responds to the service transaction request of the mobile device.
In the embodiment, the similarity between the reference information of the equipment and the information of the equipment to be verified is calculated, and the equipment identity identification of the mobile equipment after the mobile equipment is switched on can be accurately carried out by responding or rejecting the service handling request of the mobile equipment according to the similarity.
Compared with the prior art, in this embodiment, when a predetermined service handling request sent by a mobile device is sent to a service server, if device reference information corresponding to the mobile device is prestored in the service server, the identity of the mobile device is identified according to the similarity and the magnitude relation between the similarity and a preset threshold value by calculating the similarity between the device reference information and the device information to be verified, so as to respond or reject the service handling request of the mobile device.
In a preferred embodiment, on the basis of the embodiment of fig. 1, after the step S3, the method further includes:
and if the equipment reference information corresponding to the mobile equipment is not prestored, storing the received equipment information to be verified as the equipment reference information corresponding to the mobile terminal, and responding to the service handling request.
In this embodiment, if the service server does not pre-store the device reference information corresponding to the mobile device, in order to identify the identity of the mobile device when the mobile device subsequently applies for the predetermined service again to the service server, the received device information to be verified is stored as the device reference information corresponding to the mobile terminal.
In addition, if the service server does not pre-store the device reference information corresponding to the mobile device, it indicates that the mobile device does not apply for the predetermined service to the service server, that is, the service server can determine the identity of the mobile device, and therefore, the service server can directly respond to the predetermined service transaction request of the mobile device.
In a preferred embodiment, based on the embodiment of fig. 1, the steps S1 and S2 are replaced by:
when the mobile equipment sends the service handling request, acquiring preset type information of the equipment to be checked; and sending the acquired information of the equipment to be verified and the service transaction request to the service server together.
In this embodiment, if the mobile device sends a predetermined service transaction request to the service server, it may obtain the device information to be verified of its own preset type at the same time, and then send the device information to be verified of the preset type and the predetermined service transaction request together to the service server. By the method, the preset type of equipment information to be verified can be acquired without the mobile equipment waiting for the equipment information acquisition instruction returned by the service server, the speed of preset service processing is increased, and user experience is better.
In a preferred embodiment, as shown in fig. 2, on the basis of the embodiment of fig. 1, the step S4 includes:
s41, comparing the received equipment information to be verified with prestored equipment reference information of the mobile equipment one by one to screen out the equipment information to be verified which is consistent with the prestored equipment reference information of the mobile equipment;
and S42, acquiring a weight value corresponding to the to-be-verified device information consistent with the pre-stored device reference information of the mobile device according to the mapping relation between the preset device information type and the weight value, and accumulating the weight values to obtain the similarity.
In this embodiment, the device information to be verified and the device reference information are of multiple types, and the service server compares the received device information to be verified with the pre-stored device reference information of the mobile device one by one, so as to screen out the device information to be verified, which is consistent with the stored device reference information of the corresponding type, from the device information to be verified; according to a preset mapping relationship between the type of the device information and the weight value (for example, the weight value corresponding to the device hardware configuration information is X1, and the weight value corresponding to the device model is X2), determining the weight value corresponding to the screened device information to be verified, and accumulating the determined weight values to obtain the similarity.
For example, the to-be-verified device information includes device hardware configuration information and a device model, a weight value corresponding to the device hardware configuration information is X1, and a weight value corresponding to the device model is X2, and if the to-be-verified device hardware configuration information is consistent with the stored device hardware configuration reference information and the to-be-verified device model is consistent with the stored device reference model, the similarity is the sum of X1 and X2. For another example, the information of the device to be verified includes device hardware configuration information, a device model, and an international mobile subscriber identity, where a weight value corresponding to the device hardware configuration information is X1, a weight value corresponding to the device model is X2, and a weight value corresponding to the international mobile subscriber identity is X3, and if the hardware configuration information of the device to be verified is consistent with the stored device hardware configuration reference information, the model of the device to be verified is consistent with the stored device reference model, but the international mobile subscriber identity changes after the mobile device records the machine-flushing, the similarity is still the sum of X1 and X2.
As shown in fig. 3, fig. 3 is a schematic structural diagram of an embodiment of a service server based on the above-mentioned method for identifying an identity of a mobile device, where the service server includes:
a sending module 101, configured to send a device information acquisition instruction to a mobile device when receiving a predetermined service transaction request sent by the mobile device;
in this embodiment, the predetermined service refers to a specific service that needs to be bound with the mobile device, and the specific service is valid only once and is valid for the first time. The mobile device sends the predetermined service transaction request to the service server, and the sending module 101 of the service server sends a device information obtaining instruction to the mobile device when receiving the predetermined service transaction request.
The confirmation module 102 is configured to receive device information to be verified of a preset type, which is sent by the mobile device and acquired according to the device information acquisition instruction, and perform traversal to confirm whether device reference information corresponding to the mobile device is prestored;
the preset type of device information at least comprises an international mobile device identifier, an international mobile subscriber identity, a device brand, a device model, device hardware configuration information, device operating system information and a device factory date. Of course, multiple types (for example, 5 or 6 types) of the above-mentioned pieces of equipment information may be included, and the equipment information may also include other types of information, for example, production information (including manufacturer information: manufacturer name, contact person, address and contact phone), maintenance information (including maintenance record: maintenance time and maintenance content), and the like.
In this embodiment, after the service server receives the device information to be verified sent by the mobile device, the confirmation module 102 traverses the pre-stored device reference information in the storage area corresponding to the service server, so as to confirm whether the device reference information corresponding to the mobile device is pre-stored.
The type of the device reference information may be the same as or partially the same as the type of the device information described above. The device reference information includes, but is not limited to, an international mobile device reference identifier, an international mobile subscriber reference identifier, a device reference brand, a device reference model, device hardware configuration reference information, device operating system reference information, and a device factory reference date. The traversing by the service server to determine whether the device reference information corresponding to the mobile device is prestored specifically is as follows: the service server traverses the pre-stored device reference information in the storage area by taking one or two or more types of the device information to be verified as a reference, if one or two or more types of the device reference information are the same as the device information to be verified, the device reference information corresponding to the mobile device is confirmed to be pre-stored, the confirmed device reference information can only be the device reference information of one mobile device, or can be the device reference information of a plurality of mobile devices, or the device reference information corresponding to the mobile device is not stored in the service server.
The calculation module 103 is configured to, if the device reference information corresponding to the mobile device is prestored, obtain prestored device reference information corresponding to the mobile device, and calculate a similarity between the obtained device reference information and the received device information to be verified;
in this embodiment, if the device reference information corresponding to the mobile device is prestored, the device reference information corresponding to the mobile device is extracted from the storage area, and then the similarity between the obtained device reference information and the received device information to be verified is calculated. After the mobile device is booted, some device information may change, and the device reference information and the device information to be verified respectively include multiple types of information, so that the similarity between the two pieces of information needs to be calculated to distinguish whether the two pieces of information are corresponding to the same mobile device.
And the service processing module 104 is configured to reject the service handling request if the similarity is not smaller than a preset threshold, and respond to the service handling request if the similarity is smaller than the preset threshold.
In this embodiment, the preset threshold is, for example, 0.95 or 0.9, if the similarity between the device reference information and the device information to be verified is greater than or equal to the preset threshold, it indicates that the device reference information and the device information to be verified are the device information of the same mobile device, since the device reference information is pre-stored in the service server, it indicates that the mobile terminal has made a request for the predetermined service, that is, has sent a predetermined service transaction request to the service server, and obtains a service corresponding to the predetermined service, since the predetermined service is a specific service that needs to be bound to the mobile device and is valid only for the first time, if the mobile device subsequently re-applies for the predetermined service to the service server, the service server rejects; on the contrary, if the similarity between the device reference information and the device information to be verified is smaller than the preset threshold, it indicates that the device reference information and the device information to be verified are not the device information of the same mobile device, and indicates that the mobile terminal has not made a request for the predetermined service, so the service server responds to the service transaction request of the mobile device.
In the embodiment, the similarity between the reference information of the equipment and the information of the equipment to be verified is calculated, and the equipment identity identification of the mobile equipment after the mobile equipment is switched on can be accurately carried out by responding or rejecting the service handling request of the mobile equipment according to the similarity.
In a preferred embodiment, on the basis of the embodiment of fig. 3, the service server further includes:
and the storage module is used for storing the received equipment information to be verified as the equipment reference information corresponding to the mobile terminal if the equipment reference information corresponding to the mobile equipment is not prestored, and responding to the service handling request.
In this embodiment, if the service server does not pre-store the device reference information corresponding to the mobile device, in order to identify the identity of the mobile device when the mobile device subsequently applies for the predetermined service again to the service server, the received device information to be verified is stored as the device reference information corresponding to the mobile terminal.
In addition, if the service server does not pre-store the device reference information corresponding to the mobile device, it indicates that the mobile device does not apply for the predetermined service to the service server, that is, the service server can determine the identity of the mobile device, and therefore, the service server can directly respond to the predetermined service transaction request of the mobile device.
In a preferred embodiment, as shown in fig. 4, on the basis of the embodiment of fig. 3, the calculating module 103 includes:
a screening unit 1031, configured to compare the received device information to be verified with pre-stored device reference information of the mobile device one by one, respectively, so as to screen out device information to be verified, in the device information to be verified, that is consistent with the pre-stored device reference information of the mobile device;
the accumulation unit 1032 is configured to obtain, according to a mapping relationship between a preset device information type and a weight value, a weight value corresponding to pre-stored device information to be verified that is consistent with the pre-stored device reference information of the mobile device, and accumulate each weight value to obtain the similarity.
In this embodiment, the device information to be verified and the device reference information are of multiple types, and the service server compares the received device information to be verified with the pre-stored device reference information of the mobile device one by one, so as to screen out the device information to be verified, which is consistent with the stored device reference information of the corresponding type, from the device information to be verified; according to a preset mapping relationship between the type of the device information and the weight value (for example, the weight value corresponding to the device hardware configuration information is X1, and the weight value corresponding to the device model is X2), determining the weight value corresponding to the screened device information to be verified, and accumulating the determined weight values to obtain the similarity.
For example, the to-be-verified device information includes device hardware configuration information and a device model, a weight value corresponding to the device hardware configuration information is X1, and a weight value corresponding to the device model is X2, and if the to-be-verified device hardware configuration information is consistent with the stored device hardware configuration reference information and the to-be-verified device model is consistent with the stored device reference model, the similarity is the sum of X1 and X2. For another example, the information of the device to be verified includes device hardware configuration information, a device model, and an international mobile subscriber identity, where a weight value corresponding to the device hardware configuration information is X1, a weight value corresponding to the device model is X2, and a weight value corresponding to the international mobile subscriber identity is X3, and if the hardware configuration information of the device to be verified is consistent with the stored device hardware configuration reference information, the model of the device to be verified is consistent with the stored device reference model, but the international mobile subscriber identity changes after the mobile device records the machine-flushing, the similarity is still the sum of X1 and X2.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.