Method and device for determining equipment parallel imports, method and device for determining equipment restructuring
By importing the License file into the device for language information verification, the problem of low efficiency of anti-cross-cross-update and restructuring of the equipment is solved, and the effect of quickly identifying the behavior of cross-cross-update and restructuring is achieved.
Patent Information
- Application Number
- CN202210416233.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-20
- Publication Date
- 2025-07-29
- Estimated Expiration
- 2042-04-20
AI Technical Summary
In the prior art, equipment anti-cross-checking verification efficiency is low, making it difficult to effectively manage equipment tampering behavior, resulting in safety hazards and chaos in market order.
By generating and importing the License file of the target device, using the language information and program language information of the target device for verification, to determine whether the device has been scattered or modified.
The equipment anti-cross-and-reform verification efficiency is improved, long-term verification problems caused by relying on equipment hardware numbering and usage data are avoided, and the rapid identification of cross-ss-and-reform behaviors are achieved.
Smart Images

Figure CN114819592B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of security technologies, and more particularly, to a method and device for determining equipment diversion, a method and device for determining equipment refitting, a storage medium, and an electronic device. Background Art
[0002] With the increasingly fierce market competition, some product equipment has been tampered with during the circulation process, resulting in some safety hazards and loopholes in the equipment, and also affecting the market order. Therefore, many equipment manufacturers pay more and more attention to the anti-diversion management of equipment. Currently, in related technologies, anti-diversion is achieved by using the product equipment's packaging box. For example, a two-dimensional code is printed on the surface of the packaging box as an anti-diversion identifier. However, this method is difficult to effectively manage anti-diversion. There is also a method that uses the entire equipment and usage data to verify whether there is a diversion behavior. This method strongly depends on the equipment hardware number and has a long verification period, resulting in low verification efficiency.
[0003] Regarding the problem of low verification efficiency of equipment anti-diversion in related technologies, no effective solution has been proposed yet. Summary of the Invention
[0004] The embodiments of the present invention provide a method and device for determining equipment diversion, a method and device for determining equipment refitting, a storage medium, and an electronic device, so as to at least solve the problem of low verification efficiency of equipment anti-diversion in related technologies.
[0005] According to an embodiment of the present invention, a method for determining equipment diversion is provided, including: obtaining a first license file, where the first license file is generated by a server based on target information of a target device and imported into the target device, and the target information at least includes first language information of the target device; verifying the target device based on the first license file to obtain a verification result; and determining whether the target device has been diverted based on the verification result.
[0006] In an exemplary embodiment, verifying the target device based on the first license file to obtain a verification result includes: parsing the first license file to obtain the first language information of the target device; and verifying the target device based on the first language information and the program language information of the target device to obtain the verification result.
[0007] In an exemplary embodiment, verifying the target device based on the first language information and the program language information of the target device to obtain the verification result includes at least one of the following: verifying the target device based on the first language information and the program language information of the target device to obtain the verification result when the target device is upgraded or started; and verifying the target device based on the first language information and the program language information of the target device at a predetermined period to obtain the verification result.
[0008] In an exemplary embodiment, determining whether the target device is a product of a counterfeit product based on the verification result includes: determining that the target device is a product of a counterfeit product if the verification result indicates that the first language information is inconsistent with program language information of the target device.
[0009] In an exemplary embodiment, after determining that the target device has been counterfeited, the method further includes: performing predetermined processing on the target device, wherein the predetermined processing includes at least one of the following: stopping streaming; displaying an OSD prompt on the screen; and restarting the operation.
[0010] In an exemplary embodiment, the first license file includes: a first license file, wherein the first license file includes a first target character string and first target information obtained by encoding and encrypting batch information of the target device and serial number information of the target device included in the target information; and a second license file, wherein the second license file includes a second target character string and second target information obtained by encoding and encrypting the first language information included in the target information.
[0011] According to another embodiment of the present invention, a method for determining whether a device has been modified is provided, comprising: obtaining a second license file, wherein the second license file is generated by a server based on target information of a target device and imported into the target device, wherein the target information includes at least second language information, and the second language information is different from the current language information of the target device; when it is determined that the program of the target device has been upgraded to a program matching the second language information, verifying the target device based on the second license file to obtain a verification result; and determining whether the target device has been successfully modified based on the verification result.
[0012] In an exemplary embodiment, verifying the target device based on the second License file to obtain a verification result includes: parsing the second License file to obtain the second language information of the target device; verifying the target device based on the second language information and the program language information of the target device to obtain the verification result.
[0013] In an exemplary embodiment, verifying the target device based on the second language information and the program language information of the target device to obtain the verification result includes at least one of the following: when upgrading the target device or starting the target device, verifying the target device based on the second language information and the program language information of the target device to obtain the verification result; verifying the target device based on the second language information and the program language information of the target device at a predetermined period to obtain the verification result.
[0014] In an exemplary embodiment, determining whether the target device is successfully remanufactured based on the verification result includes: when the verification result indicates that the second language information and the program language information of the target device are consistent, determining that the target device is successfully remanufactured.
[0015] In an exemplary embodiment, the second License file includes: a third license file, where the third license file includes a third target string and third target information obtained by encoding and encrypting the batch information of the target device and the serial number information of the target device included in the target information; a fourth license file, where the fourth license file includes a fourth target string and fourth target information obtained by encoding and encrypting the second language information included in the target information.
[0016] According to another embodiment of the present invention, there is also provided a device for determining cross-region sales of devices, including: a first acquisition module, configured to acquire a first license file, where the first License file is generated by a server based on the target information of the target device and imported into the target device, and the target information at least includes the first language information of the target device; a first verification module, configured to verify the target device based on the first License file to obtain a verification result; a first determination module, configured to determine whether the target device has cross-region sales based on the verification result.
[0017] According to another embodiment of the present invention, a device for determining whether a device has been modified is provided, comprising: a second acquisition module for acquiring a second license file, wherein the second license file is generated by a server based on target information of a target device and imported into the target device, wherein the target information includes at least second language information, and the second language information is different from the current language information of the target device; a second verification module for verifying the target device based on the second license file to obtain a verification result when it is determined that the program of the target device has been upgraded to a program matching the second language information; and a second determination module for determining whether the target device has been successfully modified based on the verification result.
[0018] According to yet another embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored. The computer program is configured to execute the steps of any one of the above method embodiments when run.
[0019] According to another embodiment of the present invention, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to perform the steps in any one of the above method embodiments.
[0020] The present invention verifies the target device based on a first license file imported into the target device by a server, and the first license file includes the target device's first language information. Based on the verification result, it is then determined whether the target device has been used for counterfeit goods. This achieves the goal of verifying whether the target device has been used for counterfeit goods based on the first license file, avoiding the long verification cycle caused by relying on the device hardware number and usage data in the related art. Therefore, the low efficiency of device anti-counterfeit goods verification in the related art is solved, and the efficiency of device anti-counterfeit goods verification is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 This is a block diagram of the hardware structure of a mobile terminal according to a method for determining device cross-selling in an embodiment of the present invention;
[0022] Figure 2 is a flow chart of a method for determining device channel diversion according to an embodiment of the present invention;
[0023] Figure 3 is a flow chart of a method for determining device modification according to an embodiment of the present invention;
[0024] Figure 4 This is a flow chart of a method for preventing counterfeiting and reforming equipment according to a specific embodiment of the present invention;
[0025] Figure 5 is a schematic diagram of license generation according to a specific embodiment of the present invention;
[0026] Figure 6 This is an example diagram of equipment anti-channeling according to a specific embodiment of the present invention;
[0027] Figure 7 is an example diagram of a license file according to a specific embodiment of the present invention;
[0028] Figure 8 is an example diagram of device calibration according to a specific embodiment of the present invention;
[0029] Figure 9 This is a structural block diagram of a device for determining device cross-selling according to an embodiment of the present invention;
[0030] Figure 10 4 is a structural block diagram of a device for determining device modification according to an embodiment of the present invention. DETAILED DESCRIPTION
[0031] Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings and in combination with embodiments.
[0032] It should be noted that the terms "first", "second", etc. in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0033] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 FIG. 1 is a block diagram of the hardware structure of a mobile terminal according to an embodiment of the present invention, which is a method for determining device cross-selling. Figure 1 As shown, the mobile terminal may include one or more ( Figure 1 Only one is shown) a processor 102 (the processor 102 may include but is not limited to a microprocessor MCU or a programmable logic device FPGA and other processing devices) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 and an input and output device 108 for communication functions. It will be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the mobile terminal. Figure 1 More or fewer components than shown, or with Figure 1 Different configurations shown.
[0034] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the method for determining device parallel import in the embodiments of the present invention. The processor 102 executes various functional applications and data processing by running the computer programs stored in the memory 104, that is, the above-mentioned method is implemented. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memories, or other non-volatile solid-state memories. In some instances, the memory 104 may further include a memory remotely disposed relative to the processor 102, and these remote memories can be connected to the mobile terminal through a network. Examples of the above-mentioned network include but are not limited to the Internet, enterprise intranet, local area network, mobile communication network, and combinations thereof.
[0035] The transmission device 106 is used to receive or send data via a network. Specific examples of the above-mentioned network may include a wireless network provided by a communication provider of the mobile terminal. In one instance, the transmission device 106 includes a network adapter (abbreviated as NIC), which can be connected to other network devices through a base station and thus communicate with the Internet. In one instance, the transmission device 106 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0036] In this embodiment, a method for determining device parallel import is provided. Figure 2 It is a flowchart of the method for determining device parallel import according to the embodiments of the present invention, as Figure 2 shown, and this process includes the following steps:
[0037] Step S202: Obtain a first license file, where the first license file is generated by the server based on the target information of the target device and imported into the target device, and the target information includes at least the first language information of the target device;
[0038] Step S204: Verify the target device based on the first license file to obtain a verification result;
[0039] Step S206: Determine whether the target device has been parallel imported based on the verification result.
[0040] Through the above steps, the target device is verified based on the first License file imported into the target device by the server, and the first License file contains the first language information of the target device. Then, according to the verification result, it can be determined whether the target device has been diverted. The purpose of verifying whether the target device has been diverted based on the first License file is achieved, avoiding the problem of long verification cycle caused by relying on device hardware numbers and usage data in related technologies. Therefore, the problem of low efficiency of device anti-diversion verification in related technologies is solved, and the effect of improving the efficiency of device anti-diversion verification is achieved.
[0041] Among them, the execution subject of the above steps can be a device, for example, the above target device, or a processor with human-computer interaction capabilities configured on a storage device, or a processing device or processing unit with similar processing capabilities, etc., but not limited thereto. The following takes the target device executing the above operations as an example (only an exemplary description, and in actual operations, other devices or modules can also execute the above operations) for illustration:
[0042] In the above embodiment, the target device obtains the first license License file. In practical applications, the first License file is generated by the server based on the target information of the target device and imported into the target device. The target information includes device information and the first language information. The device information includes the uniqueness information of the device, for example, the unique serial number (SN, MAC, CPU id or motherboard id) of the device. That is, when generating the first License file, not only the uniqueness information of the device is included, but also the language information of the device is added, and then the corresponding first License license file is generated through an encryption algorithm; after the first License file is imported into the target device, the target device can verify the target device based on the first License file to obtain a verification result. For example, verify whether the License language of the device is consistent with the language of the program; then, based on the verification result, it can be determined whether the target device has been diverted. That is, by verifying the device language, it can be determined whether the device has been diverted, achieving the purpose of verifying whether the target device has been diverted based on the first License file, avoiding the problem of long verification cycle caused by relying on device hardware numbers and usage data in related technologies. Therefore, the problem of low efficiency of device anti-diversion verification in related technologies is solved, and the effect of improving the efficiency of device anti-diversion verification is achieved.
[0043] In an alternative embodiment, in an exemplary embodiment, verifying the target device based on the first License file to obtain a verification result includes: parsing the first License file to obtain the first language information of the target device; verifying the target device based on the first language information and the program language information of the target device to obtain the verification result. In this embodiment, after the server imports the first License file into the target device, the target device can internally parse the corresponding first License file to obtain the first language information of the target device. The language is bound to the device, and then verification is performed based on the first language information and the program language information of the target device to obtain the verification result. For example, if the verification result indicates that the first language information and the program language information of the target device are inconsistent or do not match, it can be considered that the target device may have been diverted. Through this embodiment, the target device parses the first License file to obtain the language information of the target device, thereby achieving the purpose of verifying whether the target device has been diverted.
[0044] In an alternative embodiment, verifying the target device based on the first language information and the program language information of the target device to obtain the verification result includes at least one of the following: when upgrading the target device or starting the target device, verifying the target device based on the first language information and the program language information of the target device to obtain the verification result; verifying the target device based on the first language information and the program language information of the target device at a predetermined period to obtain the verification result. Optionally, when the target device is upgraded, verify the target device based on the first language information and the program language information of the target device to obtain the verification result; optionally, when the target device is started, verify the target device based on the first language information and the program language information of the target device to obtain the verification result; the first language information and the program language information of the target device can also be verified at a predetermined period to obtain the verification result. For example, verify the first language information and the program language information of the target device once every 10 minutes (or 1 hour, or other time); optionally, it can also be set to verify the first language information and the program language information of the target device at a fixed time. For example, verify at 12 o'clock every night or 6 o'clock in the morning or other time points. The above predetermined period or fixed time can be configured as needed. Through this embodiment, the purpose of configuring the anti-diversion verification of the target device through different strategies is achieved.
[0045] In an alternative embodiment, determining whether the target device has been diverted based on the verification result includes: when the verification result indicates that the first language information is inconsistent with the program language information of the target device, determining that the target device has been diverted. In this embodiment, when the verification result indicates that the first language information is inconsistent with the program language information of the target device, it can be determined that the target device has been diverted. In practical applications, when the device manufacturer fails to verify the device or there is a possibility that the device has been diverted, corresponding disposal measures can be configured for the device. For example, the device can be placed in an abnormal state. Through this embodiment, the purpose of determining whether the target device has been diverted based on the verification result is achieved.
[0046] In an alternative embodiment, after determining that the target device has been diverted, the method further includes: performing a predetermined process on the target device, where the predetermined process includes at least one of the following: stopping pulling the stream; displaying an OSD prompt on the screen; restarting the operation. In practical applications, after determining that the target device has been diverted, the target device can perform corresponding predetermined processes. For example, taking a network camera device as an example, the device can stop pulling the stream at this time, that is, the device has no bitstream, or prompt through the screen display, or restart the device abnormally, etc. Through this embodiment, the purpose of timely performing relevant processes after detecting that the device has been diverted is achieved.
[0047] In an alternative embodiment, the first License file includes: a first license file, where the first license file includes a first target string and first target information obtained by encoding and encrypting the batch information of the target device and the serial number information of the target device included in the target information; a second license file, where the second license file includes a second target string and second target information obtained by encoding and encrypting the first language information included in the target information. In this embodiment, the first License file includes two parts. The first part includes a first target string (such as "License:") and first target information, where the first target information is obtained by encoding and encrypting the batch information and serial number information of the target device. The second part includes a second target string (such as "signature:") and second target information, where the second target information is obtained by encoding and encrypting the first language information of the target device. Through this embodiment, the purpose of preventing diversion is achieved by encrypting the first License file.
[0048] Currently, in order to reduce the maintenance and production costs of equipment, many manufacturers hope to use the same main board for both Chinese and English versions, and distinguish between domestic and overseas versions for the whole machine. At the same time, to meet the requirements of the overseas market, domestic products can be quickly introduced overseas to provide prototypes or shipments to overseas customers. Therefore, it is required that domestic equipment can be converted into overseas equipment for shipment on the production line. However, users cannot convert domestic equipment into overseas equipment for shipment. So, in addition to requiring that the equipment cannot be diverted, that is, attackers cannot divert the goods, it is also required that the equipment supports conversion. In related technologies, the method of modifying hardware and software programs is mainly used, resulting in a long program update time and difficulty in quickly shipping the goods.
[0049] In this embodiment, a method for determining equipment conversion is also provided. Figure 3 It is a flowchart of the method for determining equipment conversion according to the embodiment of the present invention, as Figure 3 shown. The process includes the following steps:
[0050] S302, obtain a second license file. Among them, the second license file is generated by the server based on the target information of the target device and imported into the target device. The target information at least includes second language information, and the second language information is different from the current language information of the target device.
[0051] S304, when it is determined that the program of the target device has been upgraded to a program matching the second language information, verify the target device based on the second license file to obtain a verification result.
[0052] S306, determine whether the target device has been successfully converted based on the verification result.
[0053] Through the above steps, by re-importing the second license file into the target device, and the second language information of the target device included in the second license file is different from the previous language information of the target device. Then, when it is determined that the program of the target device has been upgraded to a program matching the second language information, the target device can be verified based on the second license file, and then it can be determined whether the target device has been successfully converted according to the verification result. The purpose of determining whether the target device has been successfully converted can be achieved by re-importing the second license file and upgrading the program to match the second license file, avoiding the problems of long conversion time and low efficiency caused by relying on the modification of hardware and software in related technologies. Therefore, the problem of low efficiency in equipment conversion and determining whether the conversion is successful in related technologies is solved, and the effect of improving the efficiency of equipment conversion determination is achieved.
[0054] Among them, the execution subject of the above steps can be a device, for example, the above target device, or a processor with human-computer interaction capabilities configured on a storage device, or a processing device or processing unit with similar processing capabilities, etc., but not limited thereto. The following takes the target device executing the above operations as an example (only an exemplary illustration, and in actual operations, other devices or modules can also execute the above operations) for description:
[0055] In the above embodiment, the target device obtains a second license file. In practical applications, the second license file is generated by the server based on the target information of the target device and imported into the target device. The target information includes device information and second language information. The device information includes the uniqueness information of the device, for example, the unique serial number (SN, MAC, CPU id, or motherboard id) of the device. That is, when generating the second license file, not only the uniqueness information of the device is included, but also the language information of the device is added. Among them, the second language information is different from the current language information of the target device. For example, before the transformation, the language information of the target device is Chinese, and the second language information can be English, Japanese, or other languages, etc. Then, a corresponding second license file is generated through an encryption algorithm; then, when it is determined that the program of the target device has been upgraded to a program that matches the second language information, the target device can be verified based on the second license file to obtain a verification result, and then it is determined whether the target device has been successfully transformed based on the verification result. It should be noted that upgrading the program of the target device to a program that matches the second language information here means an upgrade performed by the device manufacturer. It realizes the purpose of transforming the target device only by re-importing the second license file and upgrading the program to match the second license file, and then verifying the target device based on the second license file to determine whether the target device has been successfully transformed, avoiding the problems of long transformation time and low efficiency caused by relying on hardware and software modifications in the related art. Therefore, the problem of low device transformation efficiency in the related art is solved, and the effect of improving the device transformation efficiency is achieved.
[0056] In an optional embodiment, verifying the target device based on the second License file to obtain a verification result includes: parsing the second License file to obtain the second language information of the target device; verifying the target device based on the second language information and the program language information of the target device to obtain the verification result. In this embodiment, after the server imports the second License file into the target device, the target device can internally parse the corresponding second License file to obtain the second language information of the target device. The language is bound to the device, and then verification is performed based on the second language information and the program language information of the target device to obtain the verification result. For example, if the verification result indicates that the second language information and the program language information of the target device are inconsistent or do not match, it can be considered that the target device may have been diverted, or it can be determined that the target device has not been properly modified by the device manufacturer. In practical applications, the program of the target device during verification may not necessarily be a program upgraded by the device manufacturer to match the second language information. For example, if the user modifies the target device by himself, the program may have been tampered with. At this time, verification based on the second language information and the program language information of the target device can also detect that the device has been diverted. It should be noted that even if the user modifies the target device by himself, the user cannot import the License file of the device because the License file is imported by the device manufacturer from the server through the internal network. Therefore, the security of the target device can also be ensured. Through this embodiment, the target device parses the second License file to obtain the second language information of the target device, and then verifies the target device based on the second language information, thereby achieving the purpose of determining whether the target device has been successfully modified.
[0057] In an optional embodiment, verifying the target device based on the second language information and the program language information of the target device to obtain the verification result includes at least one of the following: verifying the target device based on the second language information and the program language information of the target device to obtain the verification result when the target device is upgraded or started; verifying the target device based on the second language information and the language information of the program of the target device at a predetermined period to obtain the verification result. In this embodiment, after the target device is modified, whether it is a normal modification by the device manufacturer or an abnormal modification by the user, the target device can be verified based on the second language information and the program language information of the target device to obtain a verification result. For example, the target device can be verified when the target device is upgraded or started, or the target device can be verified based on the second language information and the program language information of the target device at a predetermined period to obtain a verification result. When the verification result indicates that the second language information and the program language information of the target device are inconsistent, it can be determined that the target device is abnormally modified, that is, it is determined that the target device has not been successfully modified. When the verification result indicates that the second language information and the program language information of the target device are consistent, it can be determined that the target device is normally modified, that is, it is determined that the target device is successfully modified. Through this embodiment, the purpose of verifying the target device through different strategies to determine whether the target device has been normally modified is achieved.
[0058] In an optional embodiment, determining whether the target device has been successfully modified based on the verification result includes: when the verification result indicates that the second language information and the program language information of the target device are consistent, determining that the target device has been successfully modified. In this embodiment, whether the target device has been successfully modified can be determined based on the verification result. Optionally, in actual application, the judgment can be made based on the above-mentioned multiple verification results. For example, when each verification result indicates that the second language information and the program language information of the target device are consistent, it is determined that the target device has been successfully modified, or it is determined that the target device has been normally modified. In the above embodiment, after the target device has been successfully modified, anti-channelling verification and processing can still be performed on the target device according to the scheme of the above embodiment. Through this embodiment, the purpose of determining whether the target device has been successfully modified based on the verification result is achieved.
[0059] In an optional embodiment, the second License file includes: a third license file, where the third license file includes a third target string and third target information obtained by encoding and encrypting the batch information of the target device and the serial number information of the target device included in the target information; a fourth license file, where the fourth license file includes a fourth target string and fourth target information obtained by encoding and encrypting the second language information included in the target information. In this embodiment, the second License file includes two parts. The first part corresponds to the third license file and includes a first target string (such as "License:") and first target information, where the first target information is obtained by encoding and encrypting the batch information and serial number information of the target device. The second part corresponds to the fourth license file and includes a second target string (such as "signature:") and second target information, where the second target information is obtained by encoding and encrypting the first language information of the target device. Through this embodiment, the purpose of encrypting the second License file to prevent the target device from being illegally modified is achieved.
[0060] Obviously, the above-described embodiments are only a part of the embodiments of the present invention, rather than all of the embodiments. The present invention will now be described in conjunction with the embodiments. Hereinafter, a method for preventing the diversion and modification of IPC network camera devices (hereinafter referred to as "devices") will be taken as an example for illustration.
[0061] Figure 4 is a flowchart of a method for preventing the diversion and modification of a device according to a specific embodiment of the present invention, as Figure 4 shown. The process includes the following steps:
[0062] S402, Apply for the material number of the device (corresponding to the aforementioned target device) as the serial number of the batch of the device. This step can only be applied for on the internal network of the device manufacturer;
[0063] S404, Obtain the unique serial number of the device (such as, SN, MAC, CUP id or motherboard id) for binding;
[0064] S406, Obtain the language information of the production of the device (corresponding to the aforementioned first language information, second language information), such as Chinese, or English, or other language information;
[0065] S408, Generate a corresponding License file (corresponding to the aforementioned first License file, second License file) through an encryption algorithm;
[0066] Figure 5It is a schematic diagram of License generation according to a specific embodiment of the present invention. In the License generation stage, device information and language information are uploaded to the License server together and then imported into the device. Generally, the private key is stored on the intranet KMS server, and the public key is stored on the IPC device, and external parties cannot access it through the external network, ensuring the security of the private key. As Figure 6 shown, Figure 6 It is an example diagram of anti-channel-hopping of a device according to a specific embodiment of the present invention. External parties cannot access the intranet of the device manufacturer through the external network, that is, they cannot obtain the License file of the device. Only after the server imports the License file into the device, the plaintext information of the device License can be obtained through the device public key, and the device language data can be obtained. The anti-channel-hopping function is realized through the License encryption scheme;
[0067] In practical applications, the License file is divided into two parts, as Figure 7 shown, Figure 7 It is an example diagram of the License file according to a specific embodiment of the present invention. The first part starts with the string "License:", followed by the encrypted information of the device uniqueness after Base64 encoding of the license string (corresponding to the aforementioned first target information and third target information); the second part starts with the string "signature:", followed by the information after Base64 encoding of the RSA signature of the license string (corresponding to the aforementioned second target information and fourth target information). This ensures that the permission cannot be tampered with. The permission records the device language permission (Chinese|English);
[0068] S410, enter the License anti-channel-hopping verification;
[0069] S412, enter the device restructuring verification, that is, verify whether the device is a normal restructuring. The restructuring by the device manufacturer is a normal restructuring, while the self-restructuring behavior of the user is an abnormal restructuring. In the normal restructuring by the device manufacturer, for example, changing the device language from Chinese to English, the current device mainboard remains unchanged. The device manufacturer re-imports the applied English License file in the production process and then upgrades the English program. In the normal restructuring carried out by the device manufacturer, the new device language (different from the language before the device restructuring) will be changed in step S406 above and a new License file (corresponding to the aforementioned second License file) will be generated in step S408. At the same time, in the normal restructuring by the device manufacturer, the corresponding program also needs to be upgraded;
[0070] It should be noted that before entering step S410 or S412, the license file should be imported into the device first, and the device will parse the corresponding license file internally to obtain the device language information and bind the language to the device. In addition, the above steps S410 and S412 are not in a specific order, and the above steps S402-S406 can be executed simultaneously, in no particular order.
[0071] S414: Perform device verification. This step includes at least one of the following:
[0072] 1) Configure the device upgrade anti-channeling verification. When upgrading the device, verify whether the device license language and the program language are consistent. If the verification is consistent, it is considered passed;
[0073] 2) Configure the device startup anti-channeling verification. After the device is successfully upgraded, when it is started for the first time, the device's license language and program language are verified to be consistent. If the verification is consistent, it is considered passed;
[0074] 3) Configure the device to perform anti-channelling verification at regular intervals, or configure the device to perform anti-channelling verification according to a predetermined period. After the device is successfully upgraded, for example, the device's license language and program language are verified every 1 hour, 10 minutes, or other time. If the verification is consistent, it is considered passed. Alternatively, the device can be set to verify at 12:00 a.m. or other time every day;
[0075] 4) Configure device uniqueness verification. Currently, two devices with the same language import licenses to each other. The license saves the unique information of each device and verifies the uniqueness and hardware matching. If the verification is consistent, it is considered passed. Figure 8 is an example diagram of device calibration according to a specific embodiment of the present invention, such as Figure 8 As shown in the following example, if the license file of device A ( Figure 8 If you import License A into the device, you will find that License A does not match Device B.
[0076] Optionally, the device may be calibrated according to one or more of the calibration methods in 1) to 4) above;
[0077] S416: Determine whether the verification is successful, that is, determine whether one or more of the verifications in step S414 are successful. Successful verification indicates that the device's license language and program language are consistent, and the device's uniqueness matches the hardware.
[0078] S418, if the verification is successful, it can be determined that the device is normal;
[0079] S420. If the verification fails, that is, the verification is unsuccessful, it can be determined that the device has been diverted or the device has been illegally modified. At this time, the device verification handling can be configured. For example, if the device is abnormal, specifically, abnormal behaviors such as stopping the device from pulling the stream, displaying an OSD prompt on the screen, and restarting the device abnormally can be performed.
[0080] S422. The process ends.
[0081] It should be noted that in the above step S412, subsequent verification is performed after the device is modified to verify whether the device is normally modified or whether the modification is successful, so as to ensure that the device language verification passes, so as to achieve the purpose of switching the device from Chinese to English; at the same time, relevant series of verifications will also be performed when the device is modified, such as the verification in the above step S414. The main advantage of the embodiment of the present invention is that the language program of the software can be directly updated and the device material number can be updated, which can quickly meet the requirements of device modification and verification.
[0082] In the embodiment of the present invention, the License file license is used as the device language verification; the License file components include device uniqueness information (SN, MAC, CUP id or motherboard id) and language information. The device language verification methods include a combination of startup verification, upgrade verification, timing verification, and uniqueness verification; the official (device manufacturer) can modify the language information in the License file to modify the device, so as to modify the language of the device. Through the above embodiments, by using the License file license as the language verification method, the security of the file is guaranteed; the language verification method is comprehensive, which can effectively prevent the possibility of diverted goods; by using a variety of verification failure handling methods, the maintainability of the device in the later stage is guaranteed; by modifying the device through the License, only the corresponding program needs to be customized, and no hardware modification is required, which reduces the cost of modification and realizes the purpose of quickly shipping the modified product.
[0083] Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by means of software plus a necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases, the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. The computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes several instructions for causing a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present invention.
[0084] In this embodiment, a device diversion determination device is also provided. Figure 9 It is a structural block diagram of the device diversion determination device according to the embodiment of the present invention, asFigure 9 As shown in Figure 9 , the device includes:
[0085] A first acquisition module 902, configured to acquire a first license file, where the first license file is generated by a server based on target information of a target device and imported into the target device, and the target information includes at least first language information of the target device;
[0086] A first verification module 904, configured to verify the target device based on the first license file to obtain a verification result;
[0087] A first determination module 906, configured to determine whether the target device has been diverted based on the verification result.
[0088] In an optional embodiment, the above-mentioned first verification module 904 includes: a first parsing unit, configured to parse the first license file to obtain the first language information of the target device; a first verification unit, configured to verify the target device based on the first language information and the program language information of the target device to obtain the verification result.
[0089] In an optional embodiment, the above-mentioned first verification unit includes at least one of the following: a first verification subunit, configured to verify the target device based on the first language information and the program language information of the target device to obtain the verification result when upgrading the target device or starting the target device; a second verification subunit, configured to verify the target device based on the first language information and the program language information of the target device at a predetermined period to obtain the verification result.
[0090] In an optional embodiment, the above-mentioned first determination module 906 includes: a first determination unit, configured to determine that the target device has been diverted when the verification result indicates that the first language information is inconsistent with the program language information of the target device.
[0091] In an optional embodiment, the above-mentioned device further includes: a first processing module, configured to perform a predetermined process on the target device after determining that the target device has been diverted, where the predetermined process includes at least one of the following: stopping pulling the stream; displaying an OSD prompt on the screen; restarting the operation.
[0092] In an optional embodiment, the above-mentioned first license file includes: a first license file, wherein the first license file includes a first target string and first target information obtained by encoding and encrypting the batch information of the target device and the serial number information of the target device included in the target information; a second license file, wherein the second license file includes a second target string and second target information obtained by encoding and encrypting the first language information included in the target information.
[0093] This embodiment also provides a device for determining equipment modification. Figure 10 is a structural block diagram of a determination device according to an embodiment of the present invention, such as Figure 10 As shown, the device includes:
[0094] A second obtaining module 1002 is configured to obtain a second license file, wherein the second license file is generated by the server based on target information of the target device and imported into the target device, wherein the target information includes at least second language information, and the second language information is different from the current language information of the target device;
[0095] A second verification module 1004 is configured to, if it is determined that the program of the target device has been upgraded to a program matching the second language information, verify the target device based on the second license file to obtain a verification result;
[0096] The second determining module 1006 is configured to determine whether the target device has been successfully modified based on the verification result.
[0097] In an optional embodiment, the above-mentioned second verification module 1004 includes: a second parsing unit, used to parse the second license file to obtain the second language information of the target device; a second verification unit, used to verify the target device based on the second language information and the program language information of the target device to obtain the verification result.
[0098] In an optional embodiment, the second verification unit includes at least one of the following: a third verification subunit, configured to verify the target device based on the second language information and the program language information of the target device when the target device is upgraded or started, so as to obtain the verification result; and a fourth verification subunit, configured to verify the target device based on the second language information and the language information of the program of the target device according to a predetermined period, so as to obtain the verification result.
[0099] In an optional embodiment, the above-mentioned second determination module 1006 includes: a second determination unit, configured to determine that the target device has been successfully reformed when the verification result indicates that the second language information is consistent with the program language information of the target device.
[0100] In an optional embodiment, the above-mentioned second License file includes: a third license file, where the third license file includes a third target string and third target information obtained by encoding and encrypting the batch information of the target device and the serial number information of the target device included in the target information; a fourth license file, where the fourth license file includes a fourth target string and fourth target information obtained by encoding and encrypting the second language information included in the target information.
[0101] It should be noted that the above-mentioned various modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above-mentioned modules are all located in the same processor; or, the above-mentioned various modules are respectively located in different processors in any combination form.
[0102] An embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored, where the computer program is configured to execute the steps in any one of the above method embodiments when running.
[0103] In an exemplary embodiment, the above-mentioned computer-readable storage medium may include, but is not limited to: USB flash drives, read-only memories (ROM for short), random access memories (RAM for short), mobile hard disks, magnetic disks or optical disks, etc., various media that can store computer programs.
[0104] An embodiment of the present invention further provides an electronic device, including a memory and a processor, where a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0105] In an exemplary embodiment, the above-mentioned electronic device may further include a transmission device and an input / output device, where the transmission device is connected to the above-mentioned processor, and the input / output device is connected to the above-mentioned processor.
[0106] Specific examples in this embodiment may refer to the examples described in the above embodiments and exemplary embodiments, and will not be repeated here.
[0107] Obviously, those skilled in the art should understand that the above-mentioned modules or steps of the present invention can be implemented by a general-purpose computing device. They can be concentrated on a single computing device or distributed on a network composed of multiple computing devices. They can be implemented by program codes executable by the computing device. Thus, they can be stored in a storage device and executed by the computing device. And in some cases, the steps shown or described can be executed in a sequence different from that here, or they can be separately fabricated into individual integrated circuit modules, or multiple modules or steps among them can be fabricated into a single integrated circuit module to be implemented. In this way, the present invention is not limited to any specific combination of hardware and software.
[0108] The above are only the preferred embodiments of the present invention and are not used to limit the present invention. For those skilled in the art, the present invention can have various changes and modifications. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention shall be included within the protection scope of the present invention.
Claims
1. A method for determining device parallel import, characterized in that, Including: Obtain a first License file, where the first License file is generated by a server based on target information of a target device and imported into the target device, and the target information at least includes first language information of the target device; Verify the target device based on the first License file to obtain a verification result; Determine whether the target device has been diverted based on the verification result; The first License file includes: a first license file, where the first license file includes a first target string and first target information obtained by encoding and encrypting batch information of the target device and serial number information of the target device included in the target information; a second license file, where the second license file includes a second target string and second target information obtained by encoding and encrypting the first language information included in the target information; Verifying the target device based on the first License file to obtain a verification result includes: parsing the first License file to obtain the first language information of the target device; verifying the target device based on the first language information and the program language information of the target device to obtain the verification result.
2. The method according to claim 1, wherein Verifying the target device based on the first language information and the program language information of the target device to obtain the verification result includes at least one of the following: When upgrading the target device or starting the target device, verify the target device based on the first language information and the program language information of the target device to obtain the verification result; Verify the target device based on the first language information and the program language information of the target device at a predetermined period to obtain the verification result.
3. The method according to claim 1, characterized in that Determining whether the target device has been diverted based on the verification result includes: When the verification result indicates that the first language information and the program language information of the target device are inconsistent, determine that the target device has been diverted.
4. The method according to claim 3, wherein After determining that the target device has been diverted, the method further includes: Perform a predetermined process on the target device, where the predetermined process includes at least one of the following: Stop pulling the stream; display an OSD prompt on the screen; perform a restart operation.
5. A method for determining equipment restructuring, characterized in that, Including: Obtain a second License file, where the second License file is generated by a server based on target information of a target device and imported into the target device, and the target information at least includes second language information, and the second language information is different from the current language information of the target device; When it is determined that the program of the target device has been upgraded to a program matching the second language information, verify the target device based on the second License file to obtain a verification result; Determine whether the target device has been successfully reformed based on the verification result; The second License file includes: a third license file, where the third license file includes a third target string and third target information obtained by encoding and encrypting the batch information of the target device and the serial number information of the target device included in the target information; a fourth license file, where the fourth license file includes a fourth target string and fourth target information obtained by encoding and encrypting the second language information included in the target information. Performing verification on the target device based on the second License file to obtain a verification result includes: parsing the second License file to obtain the second language information of the target device; performing verification on the target device based on the second language information and the program language information of the target device to obtain the verification result.
6. The method according to claim 5, wherein Performing verification on the target device based on the second language information and the program language information of the target device to obtain the verification result includes at least one of the following: In the case of upgrading the target device or starting the target device, performing verification on the target device based on the second language information and the program language information of the target device to obtain the verification result; Performing verification on the target device based on the second language information and the language information of the program of the target device at a predetermined period to obtain the verification result.
7. The method according to claim 6, characterized in that, Determining whether the target device is successfully remanufactured based on the verification result includes: In the case where the verification result indicates that the second language information and the program language information of the target device are consistent, determining that the target device is successfully remanufactured.
8. A device for determining cross-regional sales of products, characterized in that, Includes: A first acquisition module, configured to acquire a first License file, where the first License file is generated by a server based on target information of a target device and imported into the target device, and where the target information at least includes the first language information of the target device; A first verification module, configured to perform verification on the target device based on the first License file to obtain a verification result; A first determination module, configured to determine whether the target device is diverted based on the verification result; Wherein, the first License file includes: a first license file, where the first license file includes a first target string and first target information obtained by encoding and encrypting the batch information of the target device and the serial number information of the target device included in the target information; a second license file, where the second license file includes a second target string and second target information obtained by encoding and encrypting the first language information included in the target information; The first verification module is further configured to parse the first License file to obtain the first language information of the target device; perform verification on the target device based on the first language information and the program language information of the target device to obtain the verification result.
9. A determining device for equipment restructuring, characterized in that, Includes: A second acquisition module, configured to acquire a second License file, where the second License file is generated by a server based on target information of a target device and imported into the target device, and the target information at least includes second language information, and the second language information is different from the language information of the current target device; A second verification module, configured to, when it is determined that the program of the target device has been upgraded to a program matching the second language information, verify the target device based on the second License file to obtain a verification result; A second determination module, configured to determine whether the target device has been successfully reformed based on the verification result; Wherein, the second License file includes: a third license file, where the third license file includes a third target string and third target information obtained by encoding and encrypting the batch information of the target device and the serial number information of the target device included in the target information; a fourth license file, where the fourth license file includes a fourth target string and fourth target information obtained by encoding and encrypting the second language information included in the target information; The second verification module is further configured to parse the second License file to obtain the second language information of the target device; verify the target device based on the second language information and the program language information of the target device to obtain the verification result.
10. A computer-readable storage medium, characterized in that, A computer program is stored in the computer-readable storage medium, where when the computer program is executed by a processor, the steps of the method described in any one of claims 1 to 4 or 5 - 7 are implemented.
11. An electronic device, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, When the processor executes the computer program, the steps of the method described in any one of claims 1 to 4 or 5 - 7 are implemented.
Citation Information
Patent Citations
Method and device for detecting commodity fleeing
CN115131037A