Equipment production test control method, equipment and storage medium
By using the target key generated by the server in the production test terminal to decrypt the device tag, the problem of device identity leakage risk is solved, the efficient and secure testing process of device information is achieved, and the security of device identity is ensured.
Patent Information
- Application Number
- CN202110978643.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-25
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2041-08-25
AI Technical Summary
During the process of developing products with suppliers, the disclosure of device identity identification leads to the risk of information leakage and affects the security of device information.
By reading the device tag on the target device at the production test terminal, and decrypting the device tag with the generated target key after the server is verified and passed, the device identity identification is obtained. If the device identity identification is legal, establish a wireless connection and execute the test process, and then the device identity identification is completed. Identify the device to avoid directly exposing the device identity.
It improves the security of device information, ensures that only the server-verified production test terminal can obtain the device identity identification, reduces the risk of information leakage, and improves the convenience and reliability of testing.
Smart Images

Figure CN113742704B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of equipment information security technology, and in particular to an equipment production test control method, device, electronic equipment, system and storage medium. Background Art
[0002] Currently, when companies cooperate with suppliers to develop products, they are usually required to disclose information such as device identity documents (IDs) to suppliers, which leads to risks such as device information leakage. Summary of the invention
[0003] The main purpose of this application is to provide a device production test control method, device, electronic device, system and storage medium, which can solve the problem of risk of leakage of device identity during the development process and improve the security of device information.
[0004] To achieve the above-mentioned purpose, the first aspect of the present application provides a device production test control method, the method comprising:
[0005] Read the device tag on the target device;
[0006] After the production test terminal passes the verification by the server according to the device production information of the multiple devices to be tested, the target key is obtained from the server, and the device tag is decrypted using the target key to obtain the device identity of the target device, wherein the target key is generated by the server according to the device production information of the multiple devices to be tested using a preset key generation algorithm;
[0007] If the device identity of the target device exists in the device identity list and is not used, establish a wireless connection with the target device and execute a test process on the target device, wherein the device identity list is obtained from the server and includes the device identities of the multiple devices to be tested;
[0008] If the test process for the target device passes, the device identity is written into the target device.
[0009] Optionally, after the production test terminal verifies the device production information of the plurality of devices to be tested through the server, obtaining the target key from the server includes:
[0010] Receiving input device production information of the plurality of devices to be tested;
[0011] Generate a first key using the preset key generation algorithm according to the device production information of the multiple devices to be tested and the second random number;
[0012] Encrypting the device production information of the plurality of devices to be tested using a preset encryption algorithm and the first key as a key to generate device encryption information;
[0013] Sending a verification request to a server, the verification request including the device encryption information and the second random number, so that the server generates a third key using the preset key generation algorithm according to the device production information of the input multiple devices to be tested and the second random number, and uses the third key to decrypt and verify the device encryption information;
[0014] In a case where the verification request is passed, receiving key information from the server, the key information including the target key encrypted using the third key;
[0015] The target key is obtained by decrypting using the first key.
[0016] Optionally, establishing a wireless connection with the target device and executing a test process on the target device includes:
[0017] Monitor the broadcast signal of the selected device within the communication range, obtain the signal strength of the broadcast signal, and obtain the product information of the selected device;
[0018] searching for a candidate device with the largest signal strength and whose product information matches the product information of the target device as the target device, and establishing a wireless connection with the target device;
[0019] The functional parameters of the target device are read through the wireless connection to determine whether the functional parameters of the target device are normal.
[0020] Optionally, after executing the test process on the target device, the method further includes:
[0021] Mark the device identity of the target device as produced, and obtain the physical address of the target device;
[0022] The device identity and the physical address of the target device are encrypted using the target key and then synchronized to the server.
[0023] To achieve the above-mentioned purpose, the second aspect of the present application provides another device production test control method, which is applied to a server, comprising:
[0024] Acquire device production information of multiple devices to be tested, and generate a target key using a preset key generation algorithm according to the device production information of the multiple devices to be tested and a first random number;
[0025] receiving a verification request sent by a production test terminal, the verification request including device encryption information and the second random number, the device encryption information being obtained by the production test terminal using a preset encryption algorithm and a first key as a key to encrypt device production information of a plurality of devices to be tested input into the production test terminal, the first key being generated by the production test terminal using the preset key generation algorithm according to the device production information of the plurality of devices to be tested and the second random number;
[0026] Generate a third key using the preset key generation algorithm according to the device production information of the multiple devices to be tested and the second random number, and use the third key to decrypt and verify the device encryption information;
[0027] If the verification is successful, key information is sent to the production test terminal, where the key information includes the target key encrypted by using the third key.
[0028] Optionally, the method further comprises:
[0029] Generate device identities of the multiple devices to be tested according to the device production information and a preset device identity generation algorithm to obtain a device identity list;
[0030] Send the device identity list to the production test terminal.
[0031] Optionally, the method further comprises:
[0032] The device identities of the multiple devices to be tested are encrypted using the target key and a preset encryption algorithm to obtain ciphertexts corresponding to the device identities of the multiple devices to be tested. The ciphertexts are used to be printed into device labels, and the device labels are used to be posted on each device to be tested.
[0033] To achieve the above-mentioned purpose, the third aspect of the present application provides another equipment production test control method, which is applied to an acceptance terminal, comprising:
[0034] Read the equipment tag of the equipment to be accepted;
[0035] Obtain a target key from a server, use the target key to decrypt the device tag, and obtain the device identity of the device to be accepted, wherein the target key is generated by the server using a preset key generation algorithm according to device production information of multiple devices to be tested;
[0036] Obtaining a physical address corresponding to the device identity of the device to be accepted from the server, and determining whether the obtained physical address is consistent with the physical address broadcast by the device to be accepted;
[0037] If they are consistent, the server is reported to be accepted; if they are inconsistent, the physical address abnormality information is reported to the server, and the physical address abnormality information is used by the server to mark the device identity of the device to be accepted as abnormal.
[0038] Optionally, after reading the device tag of the device to be accepted, the method includes:
[0039] Sending the device tag of the device to be accepted to the server, so that the server determines whether the device tag of the device to be accepted is used;
[0040] If so, trigger the step of obtaining the physical address corresponding to the device identity of the device to be accepted from the server; if not, receive abnormal information sent by the server, and the abnormal information indicates that the device tag of the device to be accepted is not used.
[0041] To achieve the above-mentioned purpose, the fourth aspect of the present application provides a production test terminal, including:
[0042] A reading module, used to read the device tag on the target device;
[0043] A communication module, configured to obtain a target key from the server after the production test terminal passes verification according to the device production information of the multiple devices to be tested by the server, wherein the target key is generated by the server according to the device production information of the multiple devices to be tested using a preset key generation algorithm;
[0044] A decryption module, used to decrypt the device tag using the target key to obtain the device identity of the target device;
[0045] A testing module, configured to establish a wireless connection with the target device and execute a test process on the target device if the device identity of the target device exists in the device identity list and is not used, wherein the device identity list is obtained from the server and includes the device identities of the multiple devices to be tested;
[0046] The writing module is used to write the device identity into the target device if the test process for the target device passes.
[0047] A fifth aspect of the present application provides a server, including:
[0048] An acquisition module, used to acquire device production information of multiple devices to be tested;
[0049] A generating module, configured to generate a target key using a preset key generating algorithm according to the device production information of the plurality of devices to be tested and the first random number;
[0050] a communication module, configured to receive a verification request sent by a production test terminal, the verification request including device encryption information and the second random number, the device encryption information being obtained by the production test terminal using a preset encryption algorithm with a first key as a key to encrypt device production information of a plurality of devices to be tested input into the production test terminal, the first key being generated by the production test terminal using the preset key generation algorithm according to the device production information of the plurality of devices to be tested and the second random number;
[0051] The generating module is further configured to generate a third key using the preset key generating algorithm according to the device production information of the plurality of devices to be tested and the second random number;
[0052] A verification module, used to decrypt and verify the device encrypted information using the third key;
[0053] The communication module is further configured to, if the verification is successful, send key information to the production test terminal, where the key information includes the target key encrypted using the third key.
[0054] A sixth aspect of the present application provides an acceptance terminal, including:
[0055] A reading module, used to read the equipment tag of the equipment to be accepted;
[0056] An acquisition module, used for acquiring a target key from a server;
[0057] A decryption module, used to decrypt the device tag using the target key to obtain the device identity of the device to be accepted, wherein the target key is generated by the server using a preset key generation algorithm according to device production information of multiple devices to be tested;
[0058] The acquisition module is further used to acquire the physical address corresponding to the device identity of the device to be accepted from the server, and determine whether the acquired physical address is consistent with the physical address broadcast by the device to be accepted;
[0059] A reporting module is used to report to the server that the acceptance is qualified if the obtained physical address is consistent with the physical address broadcast by the device to be accepted; if the obtained physical address is inconsistent with the physical address broadcast by the device to be accepted, report physical address abnormality information to the server, and the physical address abnormality information is used by the server to mark the device identity of the device to be accepted as abnormal.
[0060] To achieve the above-mentioned purpose, the seventh aspect of the present application provides a production test system, which includes the production test terminal as described in the fourth aspect, and the server as described in the fifth aspect, the production test terminal as described in the fourth aspect is used to execute the method as described in the first aspect, and the server as described in the fifth aspect is used to execute the method as described in the second aspect.
[0061] Optionally, the production test system further includes an acceptance terminal as described in the sixth aspect, and the acceptance terminal as described in the sixth aspect is used to execute the method as described in the third aspect.
[0062] To achieve the above-mentioned objectives, the eighth aspect of the present application provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the processor executes the various steps of the method described in the first aspect, or executes the various steps of the method described in the second aspect, or executes the various steps of the method described in the third aspect.
[0063] In a ninth aspect of the present application, there is provided an electronic device comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the first aspect, the second aspect or the third aspect and any possible implementation method thereof.
[0064] The embodiments of the present application have the following beneficial effects:
[0065] The present application provides a device production test control method, which is applied to a production test terminal, by reading the device tag on the target device; after the production test terminal passes the verification by the server according to the device production information of multiple devices to be tested, the target key is obtained from the server, the device tag is decrypted using the target key, and the device identity of the target device is obtained, and the target key is generated by the server according to the device production information of the multiple devices to be tested using a preset key generation algorithm; if the device identity of the target device exists in the device identity list and is not used, a wireless connection is established with the target device, and a test process is performed on the target device, the device identity list is obtained from the server and contains the device identities of the multiple devices to be tested; if the test process of the target device is passed, the device identity is written into the target device. Only the legitimate production test terminal verified by the server can obtain the device identity, which improves security. The production test terminal can connect to the target device and write the device identity, read the device production information, which is more convenient, efficient and reliable. In the test phase, the public device tag can be decrypted by the key provided by the server to obtain the device identity, and the device is judged whether it is legal, without directly disclosing the device identity, which further improves security and avoids the leakage of the device identity. BRIEF DESCRIPTION OF THE DRAWINGS
[0066] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0067] in:
[0068] Figure 1 A schematic diagram of a flow chart of a device production test control method provided in an embodiment of the present application;
[0069] Figure 2 A flow chart of another device production test control method provided in an embodiment of the present application;
[0070] Figure 3 A schematic diagram of a server processing flow provided in an embodiment of the present application;
[0071] Figure 4 A flowchart of another device production test control method provided in an embodiment of the present application;
[0072] Figure 5 A schematic diagram of an interactive process of a device production test control method provided in an embodiment of the present application;
[0073] Figure 6 A schematic diagram of the structure of a production test terminal provided in an embodiment of the present application;
[0074] Figure 7 A schematic diagram of the structure of a server provided in an embodiment of the present application;
[0075] Figure 8 A schematic diagram of the structure of an acceptance terminal provided in an embodiment of the present application;
[0076] Fig. 9 A schematic diagram of the structure of a production test system provided in an embodiment of the present application;
[0077] Fig.10 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0078] In order to enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0079] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.
[0080] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0081] The device identification (ID) mentioned in the embodiments of the present application is a unique code used to identify different devices and is a kind of identification of the device. Each device has a different device ID, which is usually written into the device during the device production test (production test) link.
[0082] The embodiments of the present application are described below in conjunction with the drawings in the embodiments of the present application.
[0083] See also Figure 1 , is a flow chart of a device production test control method in an embodiment of the present application, which method can be applied to a production test terminal, including:
[0084] 101. Read the device tag on the target device.
[0085] The production test terminal in the embodiment of the present application is used to perform production tests on the device to be tested, and the production test terminal can interact with the server to obtain and report information. The production test terminal first reads the device label on the device to be tested, specifically, the device label can be identified by obtaining image recognition through a camera or scanning a code (barcode, QR code), etc., which is not limited here.
[0086] The target device may be any device to be tested. The device label may be generated by a server. The device label is obtained by encrypting the device identity. The staff may display the device label on the corresponding device to be tested by printing a label or the like.
[0087] 102. After the production test terminal verifies the device production information of the multiple devices to be tested by the server, it obtains the target key from the server, uses the target key to decrypt the device label, and obtains the device identity of the target device. The target key is generated by the server using a preset key generation algorithm based on the device production information of the multiple devices to be tested and the first random number.
[0088] Specifically, the server can generate a target key using a preset key generation algorithm based on the device production information of the device to be tested and the first random number. The target key will be stored in the server as the decryption key for the device label of the batch. The production test terminal needs to be verified by the server before obtaining the target key. Specifically, after verification based on the device production information of multiple devices to be tested, the production test terminal can obtain the target key from the server for decryption of the device label of the batch. The device production information of the device to be tested may include product information, supplier information, and batch information. The product information may include product type, product model and other product related information.
[0089] A key is a parameter, which is a parameter in an algorithm for converting plaintext into ciphertext or ciphertext into plaintext. There can be many types of keys, for example, an Advanced Encryption Standard (AES) key. In practical applications, the corresponding type of key can be selected according to specific needs, which will not be elaborated here.
[0090] Optionally, after the production test terminal verifies the device production information of the multiple devices to be tested through the server, obtaining the target key from the server includes:
[0091] Receiving input device production information of the plurality of devices to be tested;
[0092] Generate a first key using the preset key generation algorithm according to the device production information of the plurality of devices to be tested and the second random number;
[0093] Encrypting the device production information of the plurality of devices to be tested using a preset encryption algorithm with the first key as a key to generate device encryption information;
[0094] Sending a verification request to a server, the verification request including the device encryption information and the second random number, so that the server generates a third key using the preset key generation algorithm according to the device production information of the input multiple devices to be tested and the second random number, and uses the third key to decrypt and verify the device encryption information;
[0095] In the case that the verification request is passed, receiving key information from the server, the key information including the target key encrypted by using the third key;
[0096] The target key is obtained by decrypting using the first key.
[0097] Specifically, the device production information of the device to be tested can also be entered into the production test terminal. After the production test terminal receives the input device production information of multiple devices to be tested, it can generate a first key K1 based on the device production information of multiple devices to be tested and the second random number using a preset key generation algorithm, and then use a preset encryption algorithm, such as AES-128 encryption algorithm (128-bit advanced encryption algorithm), to encrypt the device production information of the multiple devices to be tested with the first key K1 as the key to generate device encryption information. Optionally, a 32-byte fixed string can be used to generate the device encryption information, wherein the string can be a fixed bit, or a product inventory holding unit (SKU), product information of the same batch, etc., which is not limited here. Afterwards, a verification request is sent to the server, which includes the device encryption information and the second random number. The server can generate a third key based on the input device production information of multiple devices to be tested and the second random number using a preset key generation algorithm to verify the first key K1; if the verification is correct, the first key K1 and the third key are actually the same value, and if they are not the same, the verification fails.
[0098] After the above verification request is passed, the server can send key information to the production test terminal, that is, the target key K encrypted by the third key, and the production test terminal can obtain the target key K by decrypting with the first key K1. In the embodiment of the present application, a suitable key generation algorithm can be selected as needed, such as a method of calculating a hash value using a fixed string of preset bytes, product, supplier, batch information, and a random number of preset bytes, which is not limited in the embodiment of the present application. Optionally, the server can also verify the device information of the production test terminal itself in the verification request to verify the identity of the production test terminal and further improve security.
[0099] Optionally, the above step of obtaining the target key from the server may be performed before step 101 , and the present application does not limit the execution order of step 101 and step 102 .
[0100] After obtaining the target key K, the device tag can be decrypted using the target key K to obtain the device ID (device identity of the target device) corresponding to the current device tag. Step 103 can be performed to authenticate the target device.
[0101] 103. If the device identity of the target device exists in the device identity list and is not used, establish a wireless connection with the target device and execute a test process on the target device. The device identity list is obtained from the server and includes the device identities of the multiple devices to be tested.
[0102] In an embodiment of the present application, the server generates device identities of multiple devices to be tested through input device production information and a preset device identity generation algorithm, and the device identity list includes the device identities of the multiple devices to be tested and is stored in the server.
[0103] Optionally, after the production test terminal obtains the target key K, it can also pull the device identity list of the batch from the server and save it.
[0104] Specifically, the production test terminal can determine whether the device identity of the target device exists in the above device identity list and is not used. If so, it means that the device tag information is legal, and the target device belongs to the devices to be tested in this batch. Step 103 can be executed, that is, for the target device with legal device tag information, a wireless connection can be established with the target device, and the test process can be executed on the target device, and various parameters of the target device can be read for detection and evaluation. After the test process passes, the device ID can be written. Step 104 can be executed after the test process passes.
[0105] If the device identity of the target device does not exist in the device identity list or the device identity of the target device is used, it means that the device tag information is illegal and the target device does not belong to the devices to be tested in this batch. Step 103 may not be performed and a prompt message may be output.
[0106] 104. If the test process for the target device passes, write the device identity into the target device.
[0107] In an optional implementation, the above step 104 includes:
[0108] 41. Monitor the broadcast signal of the selected device within the communication range, obtain the signal strength of the broadcast signal, and obtain the product information of the selected device;
[0109] 42. Searching for a candidate device with the largest signal strength and whose product information matches the product information of the target device as the target device, and establishing a wireless connection with the target device;
[0110] 43. Read the functional parameters of the target device through the wireless connection to determine whether the functional parameters of the target device are normal.
[0111] Specifically, the production test terminal can monitor the broadcast signals of devices within the communication range (referred to as selected devices here), such as WiFi, Bluetooth and other signals, find the device with the strongest signal that matches the product information of the currently obtained target device, connect to it, and execute the production test process to read the functional parameters of the device, such as the physical address (Media Access ControlAddress), received signal strength (Received Signal Strength Indication, RSSI) and test communication rate and other parameters, which are not limited here.
[0112] The production test terminal can verify the functional parameters of the device according to the preset test rules. If the functional parameters of the device are normal, the production test terminal can write the device ID of the target device into the device. The production test terminal can output the test results of the target device.
[0113] Optionally, after step 104, the method further includes:
[0114] Mark the device identity of the target device as produced, and obtain the physical address of the target device;
[0115] The target key is used to encrypt the device identity and the physical address of the target device, and then synchronized to the server.
[0116] After the test process of the target device passes, the production test terminal can mark the device ID as produced, and obtain the physical address of the target device, and can bind and store the device ID and physical address of the target device, and can store them locally together with the production test data in the test process. Optionally, if the network is normal, the production test terminal can encrypt the locally cached produced device ID and the physical address bound to the device ID with the target key and then synchronize them to the server for storage.
[0117] At present, when the company cooperates with suppliers to develop products, due to the network environment of factory production, network fluctuations may occur, resulting in the inability to synchronize the device ID and device production information with the server, thereby reducing production efficiency. In the embodiment of the present application, when network fluctuations occur, the production test terminal can cache production test information and synchronize it to the server after the network is unobstructed, avoiding abnormal connection to the server and reducing production efficiency, which is more efficient.
[0118] On the other hand, suppliers require companies to provide public device IDs and other information, which leads to risks such as device information leakage. The present application provides a device production test control method, which is applied to the production test terminal, by reading the device label on the target device; after the production test terminal passes the verification of the device production information of multiple devices to be tested by the server, the target key is obtained from the server, and the device label is decrypted using the target key to obtain the device identity of the target device. The target key is generated by the server according to the device production information of the multiple devices to be tested using a preset key generation algorithm; if the device identity of the target device exists in the device identity list and is not used, a wireless connection is established with the target device, and a test process is executed on the target device. The device identity list is obtained from the server and contains the device identities of the multiple devices to be tested; if the test process of the target device is passed, the device identity is written into the target device. Only legitimate production test terminals verified by the server can obtain the device identity, connect to the target device and write the device identity, and read the device production information, which is more convenient, efficient and reliable. During the testing phase, the public device label can be decrypted using the key provided by the server to obtain the device identity, and whether the device is legal can be judged. There is no need to directly disclose the device identity, which further improves security and avoids the leakage of the device identity.
[0119] See also Figure 2 , is a flow chart of another device production test control method provided in an embodiment of the present application, which can be applied to a server, including:
[0120] 201. Obtain device production information of multiple devices to be tested, and generate a target key using a preset key generation algorithm according to the device production information of the multiple devices to be tested and a first random number.
[0121] 202. Receive a verification request sent by a production test terminal, where the verification request includes device encryption information and the second random number, where the device encryption information is obtained by the production test terminal using a preset encryption algorithm and a first key as a key to encrypt device production information of multiple devices to be tested input into the production test terminal, where the first key is generated by the production test terminal using the preset key generation algorithm according to the device production information of the multiple devices to be tested and the second random number.
[0122] 203. Generate a third key using the preset key generation algorithm according to the device production information of the plurality of devices to be tested and the second random number, and use the third key to decrypt and verify the device encryption information.
[0123] 204. If the verification is successful, send key information to the production test terminal, where the key information includes the target key encrypted by using the first key.
[0124] Optionally, the method further includes:
[0125] The device identities of the plurality of devices to be tested are generated according to the device production information and a preset device identity generation algorithm to obtain a device identity list; and the device identity list is sent to the production test terminal.
[0126] Optionally, the method further includes:
[0127] The device identities of the multiple devices to be tested are encrypted using the target key and a preset encryption algorithm to obtain ciphertexts corresponding to the device identities of the multiple devices to be tested. The ciphertexts are printed into device labels, which are then affixed to each device to be tested.
[0128] Among them, the above steps 201 to 204 can refer to Figure 1 The detailed description of the steps executed by the server in the illustrated embodiment will not be repeated here.
[0129] For details, see Figure 3 A schematic diagram of a server processing flow is shown in FIG. Figure 3 As shown, the equipment production information of multiple devices to be tested: product information, supplier information and batch information are input into the server, and the server generates a target key using a preset key generation algorithm A according to the equipment production information of the multiple devices to be tested and a first random number, and generates a plurality of equipment IDs of the devices to be tested using a preset equipment ID generation algorithm B according to the equipment production information of the multiple devices to be tested, and then uses the target key to encrypt the equipment IDs of the multiple devices to be tested through a preset encryption algorithm, and outputs the equipment ID ciphertext of each device to be tested, which can be provided to the factory to be printed into an equipment label and posted on the corresponding device.
[0130] See also Figure 4 , is a flow chart of another device production test control method provided in an embodiment of the present application, which method can be applied to an acceptance terminal, including:
[0131] 401. Read the device tag of the device to be accepted.
[0132] The acceptance terminal in the embodiment of the present application can identify the device tag and communicate with the server to accept the device to be accepted. The acceptance stage is mainly to accept the equipment with normal production and to recycle the device ID of abnormal production or unused equipment to prevent the abnormal production or unused device ID from being used by the factory to produce counterfeit equipment.
[0133] Specifically, the acceptance terminal can obtain image recognition through a camera or scan a code (barcode, QR code) to identify the device label, and there is no restriction here.
[0134] 402. Obtain a target key from a server, use the target key to decrypt the device tag, and obtain the device identity of the device to be accepted. The target key is generated by the server using a preset key generation algorithm according to device production information of multiple devices to be tested.
[0135] The method for the acceptance terminal to obtain the target key from the server is similar to that of the production test terminal. Figure 1 The specific description of step 102 is not repeated here.
[0136] 403. Obtain a physical address corresponding to the device identity of the device to be accepted from the server, and determine whether the obtained physical address is consistent with the physical address broadcast by the device to be accepted.
[0137] If the acquired physical address is consistent with the physical address broadcast by the device to be accepted, step 404 may be executed; if not, step 405 may be executed.
[0138] 404. Report acceptance status to the above server.
[0139] 405. Report the physical address exception information to the server. The physical address exception information is used by the server to mark the device identity of the device to be accepted as abnormal.
[0140] Specifically, when accepting the equipment, the equipment tag is read using an acceptance terminal (such as a wireless barcode scanner). The acceptance terminal can detect whether the MAC address corresponding to the device ID obtained from the server is consistent with the MAC address broadcast by the current device. If they are consistent, the acceptance is qualified, otherwise the acceptance fails.
[0141] If the acceptance terminal fails the acceptance, the physical address abnormality information can be reported to the server, so that the server marks the device identity of the device to be accepted as abnormal.
[0142] In an optional implementation, the acceptance terminal may receive the MAC address broadcast by the device in advance, i.e., first receive the MAC address broadcast by the device, and then execute step 403 to obtain the physical address corresponding to the device identity identifier of the device to be accepted from the server for judgment. This embodiment of the present application does not impose any restrictions on this.
[0143] Optionally, the acceptance terminal may not execute steps 402-405, that is, the decryption operation may not be performed at the acceptance terminal. Instead, the acceptance terminal directly sends the acquired device tag of the device to be accepted to the server, which decrypts the tag and determines the MAC address corresponding to the device tag. The server then feeds back the address to the acceptance terminal, which verifies the result.
[0144] Optionally, the production test terminal and the acceptance terminal in the embodiment of the present application may be the same terminal; the production test terminal and the acceptance terminal may also not be the same terminal, that is, after the entire test is completed and put into storage, the acceptance terminal completes the acceptance. At this time, the acceptance terminal is a portable tool, which is convenient for flexible operation.
[0145] In an optional implementation, after the above step 401, the above method includes:
[0146] Sending the device tag of the device to be accepted to the server, so that the server determines whether the device tag of the device to be accepted is used;
[0147] If so, trigger the step of obtaining the physical address corresponding to the device identity of the device to be accepted from the server; if not, receive the abnormal information sent by the server, and the abnormal information indicates that the device tag of the device to be accepted is not used.
[0148] At the end of the acceptance of products in the same batch, the server can count and check the number of equipment labels, and send the acceptance statistics of the batch to the acceptance terminal, which may include the total equipment production, the number of abnormal equipment, abnormal equipment information, remaining (unused) equipment label information, etc. If there are omissions, the number of abnormal or missing equipment and the abnormal or missing equipment labels (corresponding equipment ID) can be displayed on the acceptance terminal. After confirmation by the acceptance personnel, the server can recycle these equipment IDs to prevent the ID from being used by other manufacturers, thereby avoiding the leakage of equipment IDs.
[0149] See also Figure 5 , Figure 5 A schematic diagram of an interactive process of a device production test control method provided in an embodiment of the present application, such as Figure 5 As shown, the method includes:
[0150] 501. The server obtains device production information of multiple devices to be tested, and generates a target key using a preset key generation algorithm according to the device production information of the multiple devices to be tested and a first random number;
[0151] 502. The production test terminal reads the device tag on the target device;
[0152] 503. The production test terminal receives the input device production information of the plurality of devices to be tested, and generates a first key by using the preset key generation algorithm according to the device production information of the plurality of devices to be tested and the second random number;
[0153] 504. The production test terminal encrypts the device production information of the plurality of devices to be tested by using a preset encryption algorithm and taking the first key as a key to generate device encryption information;
[0154] 505. The production test terminal sends a verification request to the server, where the verification request includes the device encryption information and the second random number.
[0155] 506. The server generates a third key according to the device production information of the plurality of devices to be tested and the second random number using the preset key generation algorithm, and uses the third key to decrypt and verify the device encryption information;
[0156] 507. If the verification is successful, the server sends key information to the production test terminal, where the key information includes the target key encrypted by the third key.
[0157] 508. The production test terminal uses the first key to decrypt and obtain the target key, and uses the target key to decrypt the device label to obtain the device identity of the target device.
[0158] 509. If the device identity of the target device exists in the device identity list and is not used, the production test terminal establishes a wireless connection with the target device and executes a test process on the target device. The device identity list is obtained from the server and includes the device identities of the multiple devices to be tested.
[0159] 510. If the test process of the target device passes, the production test terminal writes the device identity into the target device;
[0160] 511. The production test terminal marks the device identity of the target device as produced, and obtains the physical address of the target device;
[0161] 512. The production test terminal uses the target key to encrypt the device identity and the physical address of the target device, and then synchronizes them to the server.
[0162] The steps performed by the production test terminal and the server can be referred to respectively. Figure 1 and Figure 2 The corresponding description in the illustrated embodiment will not be repeated here.
[0163] In the later stage of equipment production, the production test terminal is still uncertain about the physical address of the equipment to be tested; in the production test stage, it is necessary to establish a binding relationship between the equipment ID and the physical address, but the equipment ID information does not want to be leaked. If the equipment ID is leaked, multiple identical equipment IDs can be copied and other physical addresses can be used. The embodiment of the present application provides a safe, fast and efficient production test control method. It is only necessary to enter the equipment production information such as the supplier, batch, product information of multiple equipment to be tested during the first production. The subsequent production can automatically write the equipment ID, obtain the equipment production status, and synchronize data to the server. In the embodiment of the present application, the technician no longer needs to operate the computer to trigger the production test process and write the equipment ID. The production test terminal can automatically obtain the equipment ID information, connect the equipment, write the equipment ID, and read the equipment production information. Among them, the equipment labels provided to suppliers or factories are encrypted, and there is no need to directly disclose the equipment ID. It is safer and more reliable to cooperate with the production test terminal to conduct equipment production testing.
[0164] Based on the description of the above device production test control method embodiment, the present application embodiment also discloses a production test terminal, see Figure 6 , the production test terminal 600 includes:
[0165] A reading module 610, configured to read a device tag on a target device;
[0166] The communication module 620 is used to obtain the target key from the server after the production test terminal verifies the device production information of the multiple devices to be tested by the server, where the target key is generated by the server using a preset key generation algorithm based on the device production information of the multiple devices to be tested;
[0167] A decryption module 630 is used to decrypt the device tag using the target key to obtain the device identity of the target device;
[0168] A testing module 640 is configured to establish a wireless connection with the target device and execute a test process on the target device if the device identity of the target device exists in the device identity list and is not used, wherein the device identity list is obtained from the server and includes the device identities of the multiple devices to be tested;
[0169] The writing module 650 is used to write the device identity into the target device if the test process for the target device passes.
[0170] The present application also discloses a server. Figure 7 , the server 700 includes:
[0171] An acquisition module 710 is used to acquire device production information of multiple devices to be tested;
[0172] A generating module 720, configured to generate a target key using a preset key generation algorithm according to the device production information of the plurality of devices to be tested and the first random number;
[0173] The communication module 730 is used to receive a verification request sent by the production test terminal, where the verification request includes device encryption information and the second random number, where the device encryption information is obtained by the production test terminal using a preset encryption algorithm with a first key as a key to encrypt device production information of multiple devices to be tested input into the production test terminal, where the first key is generated by the production test terminal using the preset key generation algorithm according to the device production information of the multiple devices to be tested and the second random number;
[0174] The generation module 720 is further configured to generate a third key using the preset key generation algorithm according to the device production information of the plurality of devices to be tested and the second random number;
[0175] Verification module 740, used to decrypt and verify the device encrypted information using the third key;
[0176] The communication module 730 is further configured to, if the verification is successful, send key information to the production test terminal, where the key information includes the target key encrypted using the third key.
[0177] The present application also discloses an acceptance terminal. Figure 8 , the acceptance terminal 800 includes:
[0178] A reading module 810 is used to read the device tag of the device to be accepted;
[0179] An acquisition module 820 is used to acquire a target key from a server;
[0180] A decryption module 830 is used to decrypt the device tag using the target key to obtain the device identity of the device to be accepted, wherein the target key is generated by the server using a preset key generation algorithm according to device production information of multiple devices to be tested;
[0181] The acquisition module 820 is further used to acquire the physical address corresponding to the device identity of the device to be accepted from the server, and determine whether the acquired physical address is consistent with the physical address broadcasted by the device to be accepted;
[0182] The reporting module 840 is used to report to the server that the acceptance is qualified if the above-mentioned physical address obtained is consistent with the physical address broadcasted by the above-mentioned device to be accepted; if the above-mentioned physical address obtained is inconsistent with the physical address broadcasted by the above-mentioned device to be accepted, report the physical address abnormality information to the above-mentioned server. The above-mentioned physical address abnormality information is used by the above-mentioned server to mark the device identity of the above-mentioned device to be accepted as abnormal.
[0183] Understandably, this involves Figure 6 , Figure 7 and Figure 8 The relevant contents of each module in the above method embodiment have been described in detail. For details, please refer to the contents in the method embodiment, which will not be repeated here.
[0184] Based on the description of the above device embodiment, the present application embodiment also discloses a production test system, such as Fig. 9 As shown, the production test system 900 includes a server 910, a production test terminal 920 and an acceptance terminal 930. The server 910, the production test terminal 920 and the acceptance terminal 930 can refer to Figure 6-Figure 8 The description in the illustrated embodiment will not be repeated here.
[0185] The embodiment of the present application provides a safe, fast and efficient production test control method. It only needs to enter the equipment production information such as supplier, batch, product information, etc. during the first production. The subsequent production can automatically write the equipment ID, obtain the equipment production status, and synchronize data to the server. In the embodiment of the present application, the technicians no longer need to operate the computer to trigger the production test process and write the equipment ID. The production test terminal can automatically obtain the equipment ID information, connect the equipment, write the equipment ID, and read the equipment production information. Among them, only the legitimate production test terminal verified by the server can obtain the equipment identity. The equipment labels provided to suppliers or factories are encrypted. There is no need to directly disclose the equipment ID. It is safer and more reliable to cooperate with the production test terminal to perform equipment production testing.
[0186] Fig.10 FIG. 1 shows an internal structure diagram of an electronic device in an embodiment. The electronic device is specifically a production test terminal, a server or an acceptance terminal. Fig.10 As shown, the electronic device includes a processor, a memory and a network interface connected via a system bus. The memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the electronic device stores an operating system and may also store a computer program. When the computer program is executed by the processor, the processor may implement each step in the above method embodiment. The internal memory may also store a computer program. When the computer program is executed by the processor, the processor may implement each step in the above method embodiment. Those skilled in the art will understand that Fig.10The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the electronic device to which the scheme of the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0187] In one embodiment, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the steps performed by the production test terminal, server or acceptance terminal in the above method embodiment are executed.
[0188] In one embodiment, a computer-readable storage medium is proposed, storing a computer program. When the computer program is executed by a processor, the processor executes the steps executed by the production test terminal in the above method embodiment, or the processor executes the steps executed by the server in the above method embodiment, or the processor executes the steps executed by the acceptance terminal in the above method embodiment.
[0189] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0190] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0191] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A device production test control method, It is characterized in that Applied to a production test terminal, the method includes: Read the device tag on the target device; After the production test terminal passes the verification by the server according to the device production information of the multiple devices to be tested, the target key is obtained from the server, and the device tag is decrypted using the target key to obtain the device identity of the target device, wherein the target key is generated by the server according to the device production information of the multiple devices to be tested using a preset key generation algorithm; If the device identity of the target device exists in the device identity list and is not used, establish a wireless connection with the target device and execute a test process on the target device, wherein the device identity list is obtained from the server and includes the device identities of the multiple devices to be tested; If the test process for the target device passes, writing the device identity into the target device; After the production test terminal verifies the device production information of the plurality of devices to be tested through the server, obtaining the target key from the server includes: Receiving input device production information of the plurality of devices to be tested; Generate a first key using the preset key generation algorithm according to the device production information of the multiple devices to be tested and the second random number; Encrypting the device production information of the plurality of devices to be tested using a preset encryption algorithm and the first key as a key to generate device encryption information; Sending a verification request to a server, the verification request including the device encryption information and the second random number, so that the server generates a third key using the preset key generation algorithm according to the device production information of the input multiple devices to be tested and the second random number, and uses the third key to decrypt and verify the device encryption information; In a case where the verification request is passed, receiving key information from the server, the key information including the target key encrypted using the third key; The target key is obtained by decrypting using the first key.
2. The method according to claim 1, It is characterized in that After executing the test process on the target device, the method further includes: Mark the device identity of the target device as produced, and obtain the physical address of the target device; The device identity and the physical address of the target device are encrypted using the target key and then synchronized to the server.
3. A device production test control method, applied to a server, It is characterized in that The method comprises: Acquire device production information of multiple devices to be tested, and generate a target key using a preset key generation algorithm according to the device production information of the multiple devices to be tested and a first random number; receiving a verification request sent by a production test terminal, the verification request including device encryption information and a second random number, the device encryption information being obtained by the production test terminal using a preset encryption algorithm and a first key as a key to encrypt device production information of a plurality of devices to be tested input into the production test terminal, the first key being generated by the production test terminal using the preset key generation algorithm according to the device production information of the plurality of devices to be tested and the second random number; Generate a third key using the preset key generation algorithm according to the device production information of the multiple devices to be tested and the second random number, and use the third key to decrypt and verify the device encryption information; If the verification is successful, key information is sent to the production test terminal, where the key information includes the target key encrypted by using the third key.
4. The method according to claim 3, It is characterized in that The method further comprises: Generate device identities of the multiple devices to be tested according to the device production information and a preset device identity generation algorithm to obtain a device identity list; Send the device identity list to the production test terminal.
5. The method according to claim 4, It is characterized in that The method further comprises: The device identities of the multiple devices to be tested are encrypted using the target key and a preset encryption algorithm to obtain ciphertexts corresponding to the device identities of the multiple devices to be tested. The ciphertexts are used to be printed into device labels, and the device labels are used to be posted on each device to be tested.
6. A production test terminal, It is characterized in that include: A reading module, used to read the device tag on the target device; A communication module, configured to obtain a target key from the server after the production test terminal passes verification according to the device production information of the multiple devices to be tested by the server, wherein the target key is generated by the server according to the device production information of the multiple devices to be tested using a preset key generation algorithm; A decryption module, used to decrypt the device tag using the target key to obtain the device identity of the target device; A testing module, configured to establish a wireless connection with the target device and execute a test process on the target device if the device identity of the target device exists in the device identity list and is not used, wherein the device identity list is obtained from the server and includes the device identities of the multiple devices to be tested; A writing module, used for writing the device identity into the target device if the test process of the target device passes; The communication module is specifically used for: Receiving input device production information of the plurality of devices to be tested; Generate a first key using the preset key generation algorithm according to the device production information of the multiple devices to be tested and the second random number; Encrypting the device production information of the plurality of devices to be tested using a preset encryption algorithm and the first key as a key to generate device encryption information; Sending a verification request to a server, the verification request including the device encryption information and the second random number, so that the server generates a third key using the preset key generation algorithm according to the device production information of the input multiple devices to be tested and the second random number, and uses the third key to decrypt and verify the device encryption information; In a case where the verification request is passed, receiving key information from the server, the key information including the target key encrypted using the third key; The target key is obtained by decrypting using the first key.
7. A server, It is characterized in that include: An acquisition module, used to acquire device production information of multiple devices to be tested; A generating module, configured to generate a target key using a preset key generating algorithm according to the device production information of the plurality of devices to be tested and the first random number; a communication module, configured to receive a verification request sent by a production test terminal, the verification request including device encryption information and a second random number, the device encryption information being obtained by the production test terminal using a preset encryption algorithm with a first key as a key to encrypt device production information of a plurality of devices to be tested input into the production test terminal, the first key being generated by the production test terminal using the preset key generation algorithm according to the device production information of the plurality of devices to be tested and the second random number; The generating module is further configured to generate a third key using the preset key generating algorithm according to the device production information of the plurality of devices to be tested and the second random number; A verification module, used to decrypt and verify the device encrypted information using the third key; The communication module is further configured to, if the verification is successful, send key information to the production test terminal, where the key information includes the target key encrypted using the third key.
8. A computer-readable storage medium storing a computer program, It is characterized in that When the computer program is executed by a processor, the processor is caused to perform the steps of the method according to claim 1 or 2 or any one of claims 3-5.
9. An electronic device comprising a memory and a processor, It is characterized in that The memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the method according to claim 1 or 2 or any one of claims 3-5.
