A chip, verification device, chip verification method and chip verification system
By pre-stored and directly reading the chip UID number and first data in the chip, and using the preset interface for verification, the high-cost and long-time verification problems caused by multiple devices in the existing technology are solved, and efficient chip verification is achieved. .
Patent Information
- Application Number
- CN202110585228.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-05-27
- Publication Date
- 2024-08-13
- Estimated Expiration
- 2041-05-27
AI Technical Summary
The existing technology requires the use of multiple verification devices when verifying chips, resulting in high verification costs and long time-consuming, and the chips need to be transferred between different machines, which increases the complexity and time of the verification process.
By pre-storing the complete chip UID number and first data into the first address of the chip, using the preset interface to directly read from the address and sending it to the verification device, the traditional reading method of multiple devices is avoided, and the A single device completes the verification of the chip UID number and the first data, and performs verification of the second data after the first data verification is successful.
It reduces verification costs, shortens verification time, avoids the transfer of chips between different machines, and improves verification efficiency.
Smart Images

Figure CN113239342B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of electronic devices, and in particular to a chip verification method, device, equipment and computer-readable storage medium. Background Art
[0002] With the development of integrated circuit technology, electronic devices tend to be smaller and more functional. Therefore, multiple chips are often integrated on an electronic device, and the electronic device implements various functions through these integrated chips. In order to ensure the normal operation of each chip, the chip needs to be verified.
[0003] The prior art requires the use of multiple verification devices when verifying a chip, resulting in high verification costs. In addition, the chip needs to be transferred between different machines, which takes a long time to verify. Summary of the invention
[0004] The present application provides a chip, a verification device, a chip verification method and a chip verification system, which solve the technical problems in the prior art that when verifying a chip, multiple verification devices need to be used, the verification cost is high, and the chip needs to be transferred between different machines, resulting in a long verification time.
[0005] In view of this, the first aspect of the present application provides a chip verification method, comprising:
[0006] When the first verification instruction sent by the verification device is obtained, the chip UID number and the first data stored in the first address are obtained;
[0007] Send the chip UID number and the first data to the verification device through a preset interface, so that the verification device performs verification corresponding to the first verification instruction according to the chip UID number and the first data;
[0008] When the verification result corresponding to the first verification instruction is verification success, obtaining a second verification instruction sent by the verification device;
[0009] Run the second data corresponding to the second verification instruction to perform verification corresponding to the second verification instruction.
[0010] Optionally, the preset interface is a soft programming interface.
[0011] Optionally, sending the chip UID number and the first data to the verification device through a preset interface so that the verification device performs verification corresponding to the first verification instruction according to the chip UID number and the first data, specifically includes:
[0012] Sending the chip UID number and the first data to the verification device through a preset interface, so that the verification device compares whether the chip UID number and the first data match;
[0013] Determine whether the chip UID number and the first data match successfully, if so, obtain the running instruction of the first data sent by the verification device, otherwise output verification failure;
[0014] The first data is run and a first run result is sent to the verification device, so that the verification device obtains a verification result corresponding to the first verification instruction according to the first run result.
[0015] Optionally, executing the second data corresponding to the second verification instruction to perform verification corresponding to the second verification instruction specifically includes:
[0016] Erasing the first data, and saving the second data corresponding to the second verification instruction to a second address;
[0017] When the execution instruction of the second data is obtained, a function jump is performed through the second address to execute the second data;
[0018] The second operation result corresponding to the second data is sent to the verification device, so that the verification device obtains the verification result corresponding to the second verification instruction according to the second operation result.
[0019] Optionally, the method further comprises:
[0020] After the verification corresponding to the second verification instruction is completed, the second data is erased and the first data is stored in the first address.
[0021] A second aspect of the present application provides a chip verification method, comprising:
[0022] Sending a first verification instruction to the chip, so that the chip obtains the chip UID number and the first data stored in the first address;
[0023] Receiving the chip UID number and the first data through a preset interface;
[0024] Perform verification corresponding to the first verification instruction according to the chip UID number and the first data;
[0025] When the verification result corresponding to the first verification instruction is verification success, a second verification instruction is sent to the chip, so that the chip runs the second data corresponding to the second verification instruction to perform verification corresponding to the second verification instruction.
[0026] Optionally, the preset interface is a soft programming interface.
[0027] A third aspect of the present application provides a chip, including:
[0028] A first acquisition unit, configured to acquire the chip UID number and the first data stored in the first address when acquiring the first verification instruction sent by the verification device;
[0029] A sending unit, configured to send the chip UID number and the first data to the verification device through a preset interface, so that the verification device performs verification corresponding to the first verification instruction according to the chip UID number and the first data;
[0030] A second obtaining unit, configured to obtain a second verification instruction sent by the verification device when the verification result corresponding to the first verification instruction is verification success;
[0031] An operating unit is used to operate the second data corresponding to the second verification instruction to perform the verification corresponding to the second verification instruction.
[0032] A fourth aspect of the present application provides a verification device, including:
[0033] A first sending unit, used for sending a first verification instruction to the chip, so that the chip obtains the chip UID number and the first data stored in the first address;
[0034] A receiving unit, used for receiving the chip UID number and the first data through a preset interface;
[0035] A verification unit, configured to perform verification corresponding to the first verification instruction according to the chip UID number and the first data;
[0036] The second sending unit is used to send a second verification instruction to the chip when the verification result corresponding to the first verification instruction is successful, so that the chip runs the second data corresponding to the second verification instruction to perform the verification corresponding to the second verification instruction.
[0037] A fifth aspect of the present application provides a chip verification system, comprising: the chip described in the third aspect and the verification device described in the fourth aspect;
[0038] The verification device is used to send a first verification instruction to the chip, so that the chip obtains the chip UID number and the first data stored in the first address;
[0039] The chip is used to send the chip UID number and the first data to the verification device through a preset interface, so that the verification device performs verification corresponding to the first verification instruction according to the chip UID number and the first data;
[0040] The verification device is further configured to send a second verification instruction to the chip when the verification result corresponding to the first verification instruction is successful, so that the chip runs the second data corresponding to the second verification instruction to perform verification corresponding to the second verification instruction.
[0041] It can be seen from the above technical methods that this application has the following advantages:
[0042] Based on the technical problems mentioned above, the applicant discovered after studying the prior art that the verification of the chip is divided into two parts: the verification of the first data and the verification of the second data. The first data is bound to the chip UID number, and the first data is verified through the chip UID number and the first data. However, since the data in the chip UID number is divided into several blocks, different data blocks need to be read by different verification devices for verification. Similarly, the first data also requires multiple verification devices to be read and verified. This results in the use of multiple verification devices, which makes the verification cost higher and the verification time longer.
[0043] Therefore, in the present application, the complete chip UID number and the first data are pre-stored in the first address in the chip. When the chip receives the first verification instruction sent by the verification device, the traditional reading method is no longer used, but the chip UID number and the first data are directly obtained from the first address. At this time, the chip UID number and the first data are no longer traditional data blocks, but complete data. In this way, the complete chip UID number and the first data can be obtained without using multiple verification devices to verify the first data, and after the first data verification is successful, the second data is verified. This solves the technical problems of the prior art that when verifying the chip, multiple verification devices need to be used, the verification cost is high, and the chip needs to be transferred between different machines, and the verification takes a long time. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the technical methods in the embodiments of the present application, the drawings required for use in the description of the embodiments 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 any creative labor.
[0045] Figure 1 This is a flow chart of a first embodiment of a chip verification method in an embodiment of the present application;
[0046] Figure 2 This is a flow chart of a second embodiment of a chip verification method in the embodiments of the present application;
[0047] Figure 3A schematic diagram of a flow chart of a chip verification method in an embodiment of the present application;
[0048] Figure 4 This is a schematic diagram of the structure of a chip in an embodiment of the present application;
[0049] Figure 5 This is a schematic diagram of the structure of an embodiment of a verification device in an embodiment of the present application;
[0050] Figure 6 This is a schematic diagram of the structure of an embodiment of a chip verification system in an embodiment of the present application;
[0051] Figure 7 This is an information interaction diagram of a chip verification system during a chip verification process in an embodiment of the present application. DETAILED DESCRIPTION
[0052] The embodiments of the present application provide a chip, a verification device, a chip verification method and a chip verification system, which solve the technical problems in the prior art that when verifying a chip, multiple verification devices need to be used, the verification cost is high, and the chip needs to be transferred between different machines, resulting in a long verification time.
[0053] It should be understood that this application is applied to chip verification system, please refer to Figure 6 , Figure 6 FIG. 1 is a schematic diagram of a chip verification system according to an embodiment of the present application. Figure 6 As shown, the chip verification system includes: a chip and a verification device, and the verification device performs command control on the chip so that the chip performs corresponding operations and completes the verification of the chip. It can be understood that the above verification system can be used for chip verification in imaging devices such as printers, copiers, fax machines and multi-function printers. For chip verification in other electronic devices, the design in this application can also be referred to, and the specifics will not be limited or repeated one by one.
[0054] In order to enable those skilled in the art to better understand the method of the present application, the technical method in the embodiment of the present application will be clearly and completely described below in conjunction with the drawings in the embodiment of the present application. Obviously, the described embodiment is only a part of the embodiment 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 this field without creative work are within the scope of protection of this application.
[0055] This application designs a chip verification method, which can be executed by the chip in the above chip verification system. Figure 1 , Figure 1 It is a flowchart of the first embodiment of the chip verification method applied to the chip side in the embodiments of the present application.
[0056] A chip verification method in this embodiment includes:
[0057] Step 101: When a first verification instruction sent by a verification device is obtained, a chip UID number and first data stored in a first address are obtained.
[0058] In one embodiment, when the verification system is used for chip verification in an imaging device, the verification device may be a central control unit or a corresponding host computer in the imaging device, that is, the chip in the imaging device is verified by the host computer / central control unit. It is understandable that the chip in this embodiment may be a consumable chip of the imaging device, and the consumable chip is used to store imaging box data such as imaging box model, imaging box version, imaging material color, imaging material capacity, imaging date, and remaining amount of imaging material.
[0059] Since the consumable chip is replaceably installed in the imaging box, and the imaging box is replaceably installed in the imaging device. After the imaging box with the consumable chip is installed in the imaging device, the imaging device reads the imaging box data recorded in the consumable chip to determine whether the imaging box is suitable for the imaging device. Only after verifying that the imaging box matches the imaging device, the imaging device starts to communicate with the consumable chip to perform the imaging operation.
[0060] It should be noted that the chip UID number is different for each chip and is factory-fixed and cannot be modified. The inherent data of the first data chip contains some data that is bound to the UID number. If the UID number is different, this part of the data will be different. As mentioned above in this application, in order to enable a verification device to obtain the complete UID number and the first data, the complete chip UID number and the first data are pre-stored in the first address in the chip, and the chip UID number and the first data can be directly read from the first address.
[0061] It is understandable that generally a chip will carry factory data when it leaves the factory, and the factory data includes the complete chip UID number and first data of the chip. Therefore, the chip UID number and first data stored in the first address can be obtained from the factory data when the chip leaves the factory.
[0062] Step 102: Send the chip UID number and the first data to the verification device through the preset interface, so that the verification device performs verification corresponding to the first verification instruction according to the chip UID number and the first data.
[0063] After the chip reads its own chip UID number and the first data, it transmits the chip UID number and the first data to the verification device through the preset interface. Since the chip UID and the first data are read from the first address in this embodiment, the traditional data reading method is changed. The data reading interface in the traditional data reading method is fixed, and only the data read by the traditional method can be transmitted through the interface. Therefore, in order to successfully transmit the chip UID number and the first data to the verification device in this embodiment, the traditional data reading interface is no longer used, but a preset interface is used.
[0064] Step 103: When the verification result corresponding to the first verification instruction is successful, obtain a second verification instruction sent by the verification device.
[0065] When the verification device verifies the chip, it includes verification of the first data and verification of the second data. Generally, the first data is verified first and then the second data, and the second data is verified after the first data verification is successful. When verifying the first data, if the first data verification fails, the verification is directly exited. Therefore, in this embodiment, the verification process of the second data is started only after the verification result corresponding to the first verification instruction is successful (that is, the first data verification is successful), and the second verification instruction is obtained.
[0066] Step 104: Run the second data corresponding to the second verification instruction to perform verification corresponding to the second verification instruction.
[0067] It is understandable that the second data is data written in the middle of chip communication (ie, program data). Therefore, after obtaining the second verification instruction, the second data corresponding to the second verification instruction is executed to perform the verification corresponding to the second verification instruction.
[0068] In this embodiment, the complete chip UID number and the first data are pre-stored in the first address in the chip. When the chip receives the first verification instruction sent by the verification device, the traditional reading method is no longer used, but the chip UID number and the first data are directly obtained from the first address. At this time, the chip UID number and the first data are no longer traditional data blocks, but complete data. In this way, the complete chip UID number and the first data can be obtained without using multiple verification devices to verify the first data, and after the first data verification is successful, the second data is verified. This solves the technical problems of the prior art that when verifying the chip, multiple verification devices need to be used, the verification cost is high, and the chip needs to be transferred between different machines, and the verification takes a long time.
[0069] The above is Example 1 of a chip verification method provided in an embodiment of the present application, and the following is Example 2 of a chip verification method provided in an embodiment of the present application. It can be understood that the chip verification method in Example 2 is also applied to the chip side.
[0070] See also Figure 2 , Figure 2 It is a flowchart of Embodiment 2 of the chip verification method applied to the chip side in the embodiments of the present application.
[0071] A chip verification method in this embodiment includes:
[0072] Step 201: When a first verification instruction sent by a verification device is obtained, a chip UID number and first data stored in a first address are obtained.
[0073] It should be noted that step 201 is the same as the description of step 101 in the first embodiment. For details, please refer to the above description and will not be repeated here.
[0074] Step 202: Send the chip UID number and the first data to the verification device through a preset interface, so that the verification device compares whether the chip UID number and the first data match.
[0075] It is understandable that, in one implementation, the above-mentioned preset interface may be a soft programming interface, which is a data transmission interface in a software system.
[0076] Step 203, determine whether the chip UID number and the first data match successfully, if so, execute the subsequent steps, otherwise output verification failure.
[0077] The verification of the first data includes two sub-parts, whether the first data matches the chip UID number and whether the first data runs correctly. The above verification is also performed sequentially during the specific verification. Only when the first data matches the chip UID number successfully, the subsequent operation verification of the first data is performed. Otherwise, the chip verification fails and the chip verification process is stopped.
[0078] Step 204: Obtain the operation instruction of the first data sent by the verification device.
[0079] Step 205: execute the first data and send the first execution result to the verification device, so that the verification device obtains the verification result corresponding to the first verification instruction according to the first execution result.
[0080] After the verification device obtains the first operation result corresponding to the first data, it determines whether the first operation result is a successful operation. If the operation is successful, it means that the first data matches the chip UID number and can be successfully executed, and the verification result corresponding to the first verification instruction is determined to be a successful verification. If the operation is unsuccessful, it means that although the first data matches the chip UID number, it cannot be successfully executed, and the verification result corresponding to the first verification instruction is determined to be a failed verification.
[0081] Step 206: When the verification result corresponding to the first verification instruction is successful, obtain a second verification instruction sent by the verification device.
[0082] It should be noted that step 206 is the same as the description of step 103 in the first embodiment. For details, please refer to the above description and will not be repeated here.
[0083] Step 207: Erase the first data, and save the second data corresponding to the second verification instruction to the second address.
[0084] Since the chip UID number and the first data are inherent data of the chip and always exist in the chip, the data can be read directly when verifying the first data. The second data is program data written in the middle of communication. The second data does not exist in the chip before data communication. To verify the second data, the second data needs to be written into the chip. Therefore, the first data is erased at this time and the second data is saved to the second address (i.e., the second data is written).
[0085] Step 208: When the execution instruction of the second data is obtained, a function jump is performed through the second address to execute the second data.
[0086] The second data is program data, so the verification of the second data is achieved through program operation, that is, if the second data is successfully run, it means that the second data verification is successful, and if it is not successfully run, it means that the second data verification fails. Correspondingly, since the second data is saved to the second address, when the second data is run, the function jump is directly performed based on the second address to achieve the purpose of starting the second data.
[0087] Step 209: Send the second operation result corresponding to the second data to the verification device, so that the verification device obtains the verification result corresponding to the second verification instruction according to the second operation result.
[0088] Step 210: After the verification corresponding to the second verification instruction is completed, the second data is erased and the first data is stored in the first address.
[0089] After the verification of the second data is completed, the previously erased first data needs to be written into the chip, so the second data is erased and the first data is stored to the first address.
[0090] In this embodiment, the complete chip UID number and the first data are pre-stored in the first address in the chip. When the chip receives the first verification instruction sent by the verification device, the traditional reading method is no longer used, but the chip UID number and the first data are directly obtained from the first address. At this time, the chip UID number and the first data are no longer traditional data blocks, but complete data. In this way, the complete chip UID number and the first data can be obtained without using multiple verification devices to verify the first data, and after the first data verification is successful, the second data is verified. This solves the technical problems of the prior art that when verifying the chip, multiple verification devices need to be used, the verification cost is high, and the chip needs to be transferred between different machines, and the verification takes a long time.
[0091] The present application also provides a chip verification method applied to the verification device side. Figure 3 , Figure 3 Schematic diagram of a flow chart of an embodiment of a chip verification method applied to a verification device in an embodiment of the present application.
[0092] A chip verification method in this embodiment includes:
[0093] Step 301: Send a first verification instruction to the chip, so that the chip obtains the chip UID number and first data stored in the first address.
[0094] Step 302: Receive the chip UID number and first data through a preset interface.
[0095] It is understandable that the preset interface includes but is not limited to a soft programming interface.
[0096] Step 303: Perform verification corresponding to the first verification instruction according to the chip UID number and the first data.
[0097] Step 304: When the verification result corresponding to the first verification instruction is successful, send a second verification instruction to the chip, so that the chip runs the second data corresponding to the second verification instruction to perform verification corresponding to the second verification instruction.
[0098] It can be understood that the specific implementation of the chip verification method steps in this embodiment can refer to the description in the above two embodiments, and will not be repeated here.
[0099] In this embodiment, the complete chip UID number and the first data are pre-stored in the first address in the chip. When the chip receives the first verification instruction sent by the verification device, the traditional reading method is no longer used, but the chip UID number and the first data are directly obtained from the first address. At this time, the chip UID number and the first data are no longer traditional data blocks, but complete data. In this way, the complete chip UID number and the first data can be obtained without using multiple verification devices to verify the first data, and after the first data verification is successful, the second data is verified. This solves the technical problems of the prior art that when verifying the chip, multiple verification devices need to be used, the verification cost is high, and the chip needs to be transferred between different machines, and the verification takes a long time.
[0100] The present application also provides a chip embodiment, see Figure 4 , Figure 4 Schematic diagram of the structure of the chip in the embodiment of the present application.
[0101] The chip in this embodiment includes:
[0102] The first acquisition unit 401 is used to acquire the chip UID number and the first data stored in the first address when acquiring the first verification instruction sent by the verification device;
[0103] The sending unit 402 is used to send the chip UID number and the first data to the verification device through the preset interface, so that the verification device performs verification corresponding to the first verification instruction according to the chip UID number and the first data;
[0104] The second acquisition unit 403 is used to acquire a second verification instruction sent by the verification device when the verification result corresponding to the first verification instruction is verification success;
[0105] The running unit 404 is used to run the second data corresponding to the second verification instruction to perform the verification corresponding to the second verification instruction.
[0106] Furthermore, the preset interface in this embodiment is a soft programming interface.
[0107] Further, the sending unit 402 specifically includes:
[0108] A sending subunit, used to send the chip UID number and the first data to the verification device through a preset interface, so that the verification device compares whether the chip UID number and the first data match;
[0109] A judgment subunit, used to judge whether the chip UID number and the first data match successfully, if so, obtain the operation instruction of the first data sent by the verification device, otherwise output verification failure;
[0110] The running unit is used to run the first data and send the first running result to the verification device, so that the verification device obtains the verification result corresponding to the first verification instruction according to the first running result.
[0111] Furthermore, the operation unit 404 specifically includes:
[0112] an erasing subunit, configured to erase the first data and save the second data corresponding to the second verification instruction to a second address;
[0113] A jump subunit, configured to perform a function jump through a second address to execute the second data when an execution instruction of the second data is obtained;
[0114] The sending subunit is used to send the second operation result corresponding to the second data to the verification device, so that the verification device obtains the verification result corresponding to the second verification instruction according to the second operation result.
[0115] Furthermore, the chip in this embodiment also includes:
[0116] The erasing unit is used to erase the second data and store the first data to the first address after completing the verification corresponding to the second verification instruction.
[0117] It can be understood that the specific implementation of the chip in this embodiment can refer to the description in the above-mentioned chip verification method embodiment on the chip side, and will not be repeated here.
[0118] In this embodiment, the complete chip UID number and the first data are pre-stored in the first address in the chip. When the chip receives the first verification instruction sent by the verification device, the traditional reading method is no longer used, but the chip UID number and the first data are directly obtained from the first address. At this time, the chip UID number and the first data are no longer traditional data blocks, but complete data. In this way, the complete chip UID number and the first data can be obtained without using multiple verification devices to verify the first data, and after the first data verification is successful, the second data is verified. This solves the technical problems of the prior art that when verifying the chip, multiple verification devices need to be used, the verification cost is high, and the chip needs to be transferred between different machines, and the verification takes a long time.
[0119] The present application also provides an embodiment of a verification device, see Figure 5 , Figure 5 Schematic diagram of the structure of the verification device in the embodiment of the present application.
[0120] The verification device in this embodiment includes:
[0121] The first sending unit 501 is used to send a first verification instruction to the chip, so that the chip obtains the chip UID number and the first data stored in the first address;
[0122] The receiving unit 502 is used to receive the chip UID number and the first data through a preset interface;
[0123] The verification unit 503 is used to perform verification corresponding to the first verification instruction according to the chip UID number and the first data;
[0124] The second sending unit 504 is used to send a second verification instruction to the chip when the verification result corresponding to the first verification instruction is verification success, so that the chip runs the second data corresponding to the second verification instruction to perform verification corresponding to the second verification instruction.
[0125] Furthermore, the preset interface in this embodiment is a soft programming interface.
[0126] It can be understood that the specific implementation of the verification device in this embodiment can refer to the description in the above-mentioned chip verification method embodiment on the chip side, and will not be repeated here.
[0127] In this embodiment, the complete chip UID number and the first data are pre-stored in the first address in the chip. When the chip receives the first verification instruction sent by the verification device, the traditional reading method is no longer used, but the chip UID number and the first data are directly obtained from the first address. At this time, the chip UID number and the first data are no longer traditional data blocks, but complete data. In this way, the complete chip UID number and the first data can be obtained without using multiple verification devices to verify the first data, and after the first data verification is successful, the second data is verified. This solves the technical problems of the prior art that when verifying the chip, multiple verification devices need to be used, the verification cost is high, and the chip needs to be transferred between different machines, and the verification takes a long time.
[0128] The present application also provides an embodiment of a chip verification system. Figure 6 , Figure 6 Schematic diagram of the structure of the chip verification system in the embodiment of the present application.
[0129] The chip verification system in this embodiment includes: the chip 601 and the verification device 602 in the above-mentioned embodiment;
[0130] The verification device 602 is used to send a first verification instruction to the chip 601, so that the chip 601 obtains the chip UID number and the first data stored in the first address;
[0131] Chip 601 is used to send the chip UID number and the first data to the verification device through a preset interface, so that the verification device 602 performs verification corresponding to the first verification instruction according to the chip UID number and the first data;
[0132] The verification device 602 is further configured to send a second verification instruction to the chip 601 when the verification result corresponding to the first verification instruction is successful, so that the chip 601 runs the second data corresponding to the second verification instruction to perform verification corresponding to the second verification instruction.
[0133] To facilitate the explanation of the working principle of the chip verification system in this embodiment, please refer to Figure 7 , Figure 7 FIG7 is an information interaction diagram of a chip verification system in a chip verification process in an embodiment of the present application, which specifically includes the following steps:
[0134] Step 701: The verification device sends a first verification instruction to the chip.
[0135] Step 702: The chip obtains the chip UID number and the first data stored in the first address.
[0136] Step 703: The chip sends the chip UID number and the first data to the verification device through a preset interface.
[0137] Step 704: The verification device performs verification corresponding to the first verification instruction according to the chip UID number and the first data.
[0138] Step 705: When the verification result corresponding to the first verification instruction is verification success, the verification device sends a second verification instruction to the chip, otherwise it outputs verification failure.
[0139] Step 706: The chip runs the second data corresponding to the second verification instruction to perform verification corresponding to the second verification instruction.
[0140] Step 707: After completing the verification corresponding to the second verification instruction, the chip erases the second data and stores the first data to the first address.
[0141] In this embodiment, the complete chip UID number and the first data are pre-stored in the first address in the chip. When the chip receives the first verification instruction sent by the verification device, the traditional reading method is no longer used, but the chip UID number and the first data are directly obtained from the first address. At this time, the chip UID number and the first data are no longer traditional data blocks, but complete data. In this way, the complete chip UID number and the first data can be obtained without using multiple verification devices to verify the first data, and after the first data verification is successful, the second data is verified. This solves the technical problems of the prior art that when verifying the chip, multiple verification devices need to be used, the verification cost is high, and the chip needs to be transferred between different machines, and the verification takes a long time.
[0142] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0143] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein, for example. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0144] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0145] In the several embodiments provided in the present application, it should be understood that the disclosed systems, commodity loading servers and methods can be implemented in other ways. For example, the commodity loading server embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the commodity loading server or unit can be electrical, mechanical or other forms.
[0146] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0147] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0148] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (full name in English: Read-Only Memory, English abbreviation: ROM), random access memory (full name in English: Random Access Memory, English abbreviation: RAM), disk or optical disk and other media that can store program codes.
[0149] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A chip verification method, characterized in that: include: When the first verification instruction sent by the verification device is obtained, the chip UID number and the first data stored in the first address are obtained; Send the chip UID number and the first data to the verification device through a preset interface, so that the verification device performs verification corresponding to the first verification instruction according to the chip UID number and the first data; When the verification result corresponding to the first verification instruction is verification success, obtaining a second verification instruction sent by the verification device; Running the second data corresponding to the second verification instruction to perform verification corresponding to the second verification instruction; Sending the chip UID number and the first data to the verification device through the preset interface so that the verification device performs verification corresponding to the first verification instruction according to the chip UID number and the first data, specifically includes: Sending the chip UID number and the first data to the verification device through a preset interface, so that the verification device compares whether the chip UID number and the first data match; Determine whether the chip UID number and the first data match successfully, if so, obtain the running instruction of the first data sent by the verification device, otherwise output verification failure; Running the first data and sending a first running result to the verification device, so that the verification device obtains a verification result corresponding to the first verification instruction according to the first running result; The running of the second data corresponding to the second verification instruction to perform the verification corresponding to the second verification instruction specifically includes: erasing the first data and saving the second data corresponding to the second verification instruction to a second address; when the running instruction of the second data is obtained, performing a function jump through the second address to run the second data; sending the second running result corresponding to the second data to the verification device, so that the verification device obtains the verification result corresponding to the second verification instruction according to the second running result; When the verification corresponding to the second verification instruction is completed, the second data is erased and the first data is stored in the first address.
2. The chip verification method according to claim 1, characterized in that: The preset interface is a soft programming interface.
3. A chip, characterized in that: include: A first acquisition unit, configured to acquire the chip UID number and the first data stored in the first address when acquiring the first verification instruction sent by the verification device; A sending unit, used for sending the chip UID number and the first data to the verification device through a preset interface, so that the verification device performs verification corresponding to the first verification instruction according to the chip UID number and the first data; A second obtaining unit, configured to obtain a second verification instruction sent by the verification device when the verification result corresponding to the first verification instruction is verification success; an operating unit, configured to operate the second data corresponding to the second verification instruction to perform verification corresponding to the second verification instruction; The step of sending the chip UID number and the first data to the verification device through the preset interface so that the verification device performs verification corresponding to the first verification instruction according to the chip UID number and the first data specifically includes: Sending the chip UID number and the first data to the verification device through a preset interface, so that the verification device compares whether the chip UID number and the first data match; Determine whether the chip UID number and the first data match successfully, if so, obtain the running instruction of the first data sent by the verification device, otherwise output verification failure; Running the first data and sending a first running result to the verification device, so that the verification device obtains a verification result corresponding to the first verification instruction according to the first running result; The running of the second data corresponding to the second verification instruction to perform the verification corresponding to the second verification instruction specifically includes: erasing the first data and saving the second data corresponding to the second verification instruction to a second address; when the running instruction of the second data is obtained, performing a function jump through the second address to run the second data; sending the second running result corresponding to the second data to the verification device, so that the verification device obtains the verification result corresponding to the second verification instruction according to the second running result; When the verification corresponding to the second verification instruction is completed, the second data is erased and the first data is stored in the first address.
4. A verification device, characterized in that: include: A first sending unit, used for sending a first verification instruction to the chip, so that the chip obtains the chip UID number and the first data stored in the first address; A receiving unit, used for receiving the chip UID number and the first data through a preset interface; A verification unit, configured to perform verification corresponding to the first verification instruction according to the chip UID number and the first data; A second sending unit is used to send a second verification instruction to the chip when the verification result corresponding to the first verification instruction is verification success, so that the chip runs the second data corresponding to the second verification instruction to perform the verification corresponding to the second verification instruction; The step of receiving the chip UID number and the first data to the verification device through a preset interface and performing verification corresponding to the first verification instruction according to the chip UID number and the first data specifically includes: Accepting the chip UID number and the first data through a preset interface, and comparing whether the chip UID number and the first data match; Determine whether the chip UID number and the first data match successfully, if so, send the running instruction of the first data, otherwise output verification failure; receiving a first operation result obtained by executing the first data, so as to obtain a verification result corresponding to the first verification instruction according to the first operation result; The running of the second data corresponding to the second verification instruction to perform the verification corresponding to the second verification instruction specifically includes: erasing the first data and saving the second data corresponding to the second verification instruction to a second address; when the running instruction of the second data is obtained, performing a function jump through the second address to run the second data; sending the second running result corresponding to the second data to the verification device, so that the verification device obtains the verification result corresponding to the second verification instruction according to the second running result; When the verification corresponding to the second verification instruction is completed, the second data is erased and the first data is stored in the first address.
5. A chip verification system, characterized in that: include: The chip as claimed in claim 3 and the verification device as claimed in claim 4; The verification device is used to send a first verification instruction to the chip, so that the chip obtains the chip UID number and the first data stored in the first address; The chip is used to send the chip UID number and the first data to the verification device through a preset interface, so that the verification device performs verification corresponding to the first verification instruction according to the chip UID number and the first data; The step of sending the chip UID number and the first data to the verification device through the preset interface so that the verification device performs verification corresponding to the first verification instruction according to the chip UID number and the first data specifically includes: Sending the chip UID number and the first data to the verification device through a preset interface, so that the verification device compares whether the chip UID number and the first data match; Determine whether the chip UID number and the first data match successfully, if so, obtain the running instruction of the first data sent by the verification device, otherwise output verification failure; Running the first data and sending a first running result to the verification device, so that the verification device obtains a verification result corresponding to the first verification instruction according to the first running result; The running of the second data corresponding to the second verification instruction to perform the verification corresponding to the second verification instruction specifically includes: erasing the first data and saving the second data corresponding to the second verification instruction to a second address; when the running instruction of the second data is obtained, performing a function jump through the second address to run the second data; sending the second running result corresponding to the second data to the verification device, so that the verification device obtains the verification result corresponding to the second verification instruction according to the second running result; Wherein, after completing the verification corresponding to the second verification instruction, erasing the second data and storing the first data to the first address; The verification device is further configured to send a second verification instruction to the chip when the verification result corresponding to the first verification instruction is successful, so that the chip runs the second data corresponding to the second verification instruction to perform verification corresponding to the second verification instruction.
Citation Information
Patent Citations
Radio frequency chip, consumable material container, data writing method and verifying method
CN101894285A
