Electronic tag information processing method, device, system, and electronic device
By generating index information and comparing it with device data, the problem of low efficiency in electronic tag information processing was solved, achieving efficient and accurate electronic tag information management, and improving access performance and system resource utilization.
Patent Information
- Application Number
- CN202310351478.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-30
- Publication Date
- 2026-08-25
- Estimated Expiration
- 2043-03-30
AI Technical Summary
Existing technologies have low efficiency in processing electronic tag information, especially on frequently changing field replaceable unit devices, resulting in poor access performance.
By obtaining the mapping relationship between the attribute information and storage address of the electronic tag information to be processed, index information is generated. The index information is then used for processing, and combined with the actual data of the device for comparison and verification, efficient and accurate electronic tag information management is achieved.
It improved the access performance of electronic tag information, reduced CPU resource consumption, improved system resource utilization, and timely detected equipment replacement, thus avoiding information processing errors.
Smart Images

Figure CN116484888B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of electronic tag technology, and in particular to methods, apparatus, systems, electronic devices, and storage media for processing electronic tag information. Background Technology
[0002] Electronic tags, including Radio Frequency Identification (RFID), have largely replaced labels such as barcodes. To facilitate equipment management, electronic tag information, including manufacturer, production date, and equipment parameters, is typically stored in the equipment's non-volatile memory. However, in related technologies, for Field Replaceable Units (FRUs) such as power supplies, fans, and optical modules that are frequently replaced, accessing information by directly reading and writing to the non-volatile memory is time-consuming, impacting access performance and resulting in low efficiency in processing electronic tag information.
[0003] Currently, no effective solution has been proposed to address the low processing efficiency of electronic tag information in related technologies. Summary of the Invention
[0004] This application provides a method, apparatus, system, electronic device, and storage medium for processing electronic tag information, in order to at least solve the problem of low processing efficiency of electronic tag information in related technologies.
[0005] In a first aspect, embodiments of this application provide a method for processing electronic tag information, the method comprising:
[0006] Obtain the electronic tag information to be processed;
[0007] Based on the electronic tag information to be processed, obtain target attribute information for indicating the attributes of the electronic tag information to be processed, and a cache storage location for indicating the storage address of the target attribute information; generate index information based on the mapping relationship between the target attribute information and the cache storage location;
[0008] The electronic tag information to be processed is processed according to the index information to obtain the target electronic tag information.
[0009] In some embodiments, after processing the electronic tag information to be processed according to the index information to obtain the target electronic tag information, the method further includes:
[0010] Detect information access requests for the device under test;
[0011] In response to the detected information access request, the length information and location information corresponding to the target electronic tag information are determined according to the index information, and the current actual data of the device to be detected are obtained according to the length information and location information;
[0012] The actual data of the current device is compared with the information of the target electronic tag, and the device replacement result corresponding to the device to be tested is determined based on the comparison result.
[0013] In some embodiments, the method further includes:
[0014] If the comparison result indicates that the actual data of the current device matches the information of the target electronic tag, a first device replacement result is obtained to indicate that the device has not been replaced;
[0015] If the comparison result indicates that the actual data of the current device fails to match the target electronic tag information, a second device replacement result is obtained to indicate that the device has been replaced, and new electronic tag information is obtained based on the second device replacement result.
[0016] In some embodiments, the method further includes:
[0017] Target length information and target value information are obtained based on the electronic tag information to be processed; wherein, the target length information is used to indicate the byte length of the electronic tag information to be processed, and the target value information is used to indicate the tag data of the electronic tag information to be processed;
[0018] Based on the index information, the storage results of the target attribute information, the target length information, and the target numerical information are obtained, and the target electronic tag information is obtained based on the storage results.
[0019] In some embodiments, the method further includes:
[0020] Obtain the feature header information corresponding to the electronic tag information to be processed, and perform a first feature verification process based on the feature header information to obtain the total length information of the electronic tag information to be processed.
[0021] The tail feature information of the electronic tag information to be processed is calculated based on the total length information, and the target verification information is obtained based on the tail feature information;
[0022] The electronic tag information to be processed is subjected to a second feature verification process based on the target verification information to obtain a verification result. If the verification result indicates that the verification is successful, the target electronic tag information is obtained based on the index information.
[0023] In some embodiments, after performing a second feature verification process on the electronic tag information to be processed based on the target verification information to obtain the verification result, the method further includes:
[0024] If the verification result indicates that the verification failed, an error message is generated and sent to the terminal device or application to perform an error reporting operation.
[0025] Secondly, embodiments of this application provide an electronic tag information processing apparatus, the apparatus comprising: an acquisition module, an indexing module, and a processing module;
[0026] The acquisition module is used to acquire the electronic tag information to be processed;
[0027] The indexing module is used to obtain target attribute information indicating the attributes of the electronic tag information to be processed, and a cache storage location indicating the storage address of the target attribute information, based on the electronic tag information to be processed; and to generate index information based on the mapping relationship between the target attribute information and the cache storage location.
[0028] The processing module is used to process the electronic tag information to be processed according to the index information to obtain the target electronic tag information.
[0029] Thirdly, embodiments of this application provide an electronic tag information processing system, the system comprising: a reader device and a main control device; wherein, the main control device is connected to the reader device;
[0030] The reader device is used to acquire electronic tag information to be processed and send the electronic tag information to be processed to the main control device;
[0031] The main control device is used to execute the electronic tag information processing method as described in the first aspect above.
[0032] Fourthly, embodiments of this application provide an electronic device including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the electronic tag information processing method as described in the first aspect above.
[0033] Fifthly, embodiments of this application provide a storage medium storing a computer program thereon, which, when executed by a processor, implements the electronic tag information processing method as described in the first aspect above.
[0034] Compared to related technologies, the electronic tag information processing method, apparatus, system, electronic device, and storage medium provided in this application embodiment obtain electronic tag information to be processed; obtain target attribute information indicating the attributes of the electronic tag information to be processed, and a cache storage location indicating the storage address of the target attribute information, based on the electronic tag information to be processed; generate index information based on the mapping relationship between the target attribute information and the cache storage location; and process the electronic tag information to be processed based on the index information to obtain the target electronic tag information. This solves the problem of low processing efficiency of electronic tag information and realizes an efficient and accurate electronic tag information processing method.
[0035] Details of one or more embodiments of this application are set forth in the following drawings and description to make other features, objects and advantages of this application more readily apparent. Attached Figure Description
[0036] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:
[0037] Figure 1 This is a flowchart of a method for processing electronic tag information according to an embodiment of this application;
[0038] Figure 2 This is a flowchart of another method for processing electronic tag information according to an embodiment of this application;
[0039] Figure 3 This is a flowchart of a method for processing electronic tag information according to a preferred embodiment of this application;
[0040] Figure 4 This is a structural block diagram of an electronic tag information processing device according to an embodiment of this application;
[0041] Figure 5 This is a structural block diagram of an electronic tag information processing system according to an embodiment of this application;
[0042] Figure 6 This is a structural diagram of the internal structure of a computer device according to an embodiment of this application. Detailed Implementation
[0043] To make the objectives, technical solutions, and advantages of this application clearer, the application is described and illustrated below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the application. All other embodiments obtained by those skilled in the art based on the embodiments provided in this application without inventive effort are within the scope of protection of this application. Furthermore, it is understood that although the efforts made in such a development process may be complex and lengthy, for those skilled in the art related to the content disclosed in this application, modifications to design, manufacturing, or production based on the technical content disclosed in this application are merely conventional technical means and should not be construed as insufficient disclosure of the content of this application.
[0044] In this application, the reference to "embodiment" means that a specific feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment that is mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described in this application may be combined with other embodiments without conflict.
[0045] Unless otherwise defined, the technical or scientific terms used in this application shall have the ordinary meaning understood by one of ordinary skill in the art to which this application pertains. The terms “a,” “an,” “an,” “the,” and similar words used in this application do not indicate quantity limitation and may indicate singular or plural. The terms “comprising,” “including,” “having,” and any variations thereof used in this application are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or device that includes a series of steps or modules (units) is not limited to the listed steps or units, but may also include steps or units not listed, or may include other steps or units inherent to these processes, methods, products, or devices. The terms “connected,” “linked,” “coupled,” and similar words used in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. “Multiple” used in this application means two or more. “And / or” describes the relationship between related objects, indicating that three relationships may exist; for example, “A and / or B” can represent: A alone, A and B simultaneously, and B alone. The terms “first,” “second,” “third,” etc., used in this application are merely to distinguish similar objects and do not represent a specific ordering of the objects.
[0046] This embodiment provides a method for processing electronic tag information. Figure 1This is a flowchart of a method for processing electronic tag information according to an embodiment of this application, such as... Figure 1 As shown, the process includes the following steps:
[0047] Step S110: Obtain the electronic tag information to be processed.
[0048] The aforementioned electronic tag information to be processed refers to equipment-related information read by scanning devices such as electronic tag readers from the electronic tags carried on each FRU device, such as manufacturer, production date, part number, serial number, and equipment parameters.
[0049] Step S120: Obtain target attribute information for indicating the attributes of the electronic tag information to be processed, and cache storage location for indicating the storage address of the target attribute information, based on the electronic tag information to be processed; generate index information based on the mapping relationship between the target attribute information and the cache storage location.
[0050] Step S130: Process the electronic tag information to be processed according to the index information to obtain the target electronic tag information.
[0051] Furthermore, the above-mentioned method for processing electronic tag information also includes the following steps: obtaining target length information and target value information based on the electronic tag information to be processed; wherein, the target length information is used to indicate the byte length of the electronic tag information to be processed, and the target value information is used to indicate the tag data of the electronic tag information to be processed. Based on the index information, the storage result of the target attribute information, the target length information, and the target value information is obtained, and the target electronic tag information is obtained based on the storage result.
[0052] Specifically, through steps S120 to S130, after obtaining the electronic tag information to be processed, the electronic tag information to be processed can be verified first. If the verification passes, the tag-length-value (TLV) information corresponding to each type of electronic tag information to be processed is organized into array data according to a preset format. At the same time, the target attribute information of the electronic tag information to be processed, that is, the information used to indicate the tag or type attributes of the electronic tag information to be processed, is used as an index reference and saved in the cache space to be stored as the target electronic tag information. The index information is determined by the mapping relationship between the target attribute information and the cache storage location of the target attribute information. The cache storage location refers to the index of the storage array corresponding to the target attribute information. For example, the TLV organization format can be as shown in Table 1 below:
[0053] Table 1 TLV Organization Format
[0054]
[0055] Taking Table 1 above as an example, the various types of information in the electronic tag information to be processed are stored separately with fixed lengths: target attribute information, target length information, and target value information. The target attribute information T represents the identifier field of the corresponding electronic tag information; the target length information L informs the parsing program of the byte length of the subsequent value field; and the target value information V stores the actual data. The storage length of this target value information is set to the maximum possible length to avoid data overflow due to insufficient reserved storage space. Simultaneously, the offset of the first byte of the target attribute information T can also be stored with a fixed length. Through these steps, when accessing the electronic tag information of the FRU device later, the corresponding information content Value can be directly accessed and obtained using the index based on the Tag (or Type) value, effectively improving access performance. Furthermore, when writing the electronic tag to non-volatile memory, it is not necessary to operate on the entire electronic tag information; only the specified Tag (or Type) portion can be operated on, i.e., a length starting from its stored offset is modified, and the checksum at the end is updated.
[0056] Through the above steps S110 to S130, by obtaining the target attribute information of the electronic tag information to be processed and the cache storage location of the target attribute information, and establishing an index based on the target attribute information and the cache storage location, the access performance of the electronic tag information can be effectively improved, solving the problem of low processing efficiency of electronic tag information, and realizing an efficient and accurate electronic tag information processing method.
[0057] In some embodiments, a method for processing electronic tag information is provided. Figure 2 This is a flowchart of another method for processing electronic tag information according to an embodiment of this application, such as... Figure 2 As shown, the process includes Figure 1 All the steps shown, in addition to the following steps:
[0058] Step S210: Detect information access requests for the device under test.
[0059] The aforementioned devices under test refer to common FRU devices such as power supplies, fans, and optical modules. These FRU devices are frequently replaced in practical applications; and for cost and risk considerations, FRU devices are generally supplied by multiple vendors for backup. The aforementioned information access request refers to the request information used to instruct the reading and writing of electronic tag information of the device under test.
[0060] Step S220: In response to the detected information access request, determine the length information and location information corresponding to the target electronic tag information according to the index information, and obtain the current actual data of the device to be detected according to the length information and the location information.
[0061] In this embodiment, the detection of FRU device insertion / removal is achieved through a service-free monitoring-based passive cache refresh method, while ensuring data accuracy. Specifically, each time the electronic tag of the FRU device to be detected is accessed for reading or writing, the aforementioned information access request is detected, and a data self-verification refresh is initiated in response to the information access request. Specifically, taking Table 1 above as an example, in response to the aforementioned information access request, the corresponding Value, Length information, and Offset information can be directly obtained from the cache based on the index of the Tag (Type) value. Based on the obtained length information, position information, etc., a RealData method is initiated to read the total length information starting from Offset from the non-volatile memory of the FRU device to obtain the current actual data of the device; the total length information may include the Tag field length, the target length information Length, and the sum of the length field lengths.
[0062] Step S230: Compare the current actual data of the device with the information of the target electronic tag, and determine the device replacement result corresponding to the device to be tested based on the comparison result.
[0063] Specifically, by comparing the actual data of the current device with the target electronic tag information that has been cached in the software, the system determines whether the FRU device to be tested has been plugged in or replaced based on the comparison results, and finally obtains the corresponding device replacement result.
[0064] In related technologies, the electronic tag information of the aforementioned FRU devices under inspection is generally managed through software caching. This involves using software services to monitor the replacement status of the current FRU devices and refreshing the cached electronic tag information when a replacement occurs. Since this method does not directly manipulate the device's non-volatile memory but instead provides a software cache to mirror and save the electronic tag information in the non-volatile memory, upper-layer applications can use this cache to retrieve and modify data. Simultaneously, to ensure data consistency, both the data and the cache need to be synchronized during information writing, and the operating system (OS) service needs to be started to promptly detect FRU device replacement events and proactively trigger a full cache refresh. Therefore, the shorter the service's polling cycle and the more timely the detection of device replacement events, the greater the system resource consumption, which can affect the processing performance of critical and event-sensitive business processes, making it impossible to balance high system performance and high system resource utilization.
[0065] In this embodiment of the application, through steps S210 to S230, by responding to the access request each time the device's electronic tag information is read and the actual data of the current device read based on the index information is compared with the target electronic tag information already cached by the software, the insertion and removal of the FRU device can be detected in a timely and accurate manner based on the data comparison results without using system services to monitor the FRU device in real time. This effectively saves CPU resources, improves system resource utilization, and improves the processing efficiency of electronic tag information.
[0066] In some embodiments, the method for processing the above-mentioned electronic tag information further includes the following steps:
[0067] Step S231: If the comparison result indicates that the actual data of the current device matches the information of the target electronic tag, a first device replacement result is obtained to indicate that the device has not been replaced.
[0068] Step S232: If the comparison result indicates that the actual data of the current device fails to match the target electronic tag information, a second device replacement result is obtained to indicate that the device has been replaced, and new electronic tag information is obtained based on the second device replacement result.
[0069] In steps S231 to S232 above, if the actual data of the current device is detected to be the same as the cached target electronic tag information through the above embodiment, it means that the FRU device to be detected has not undergone a plug-in / plug-out event, that is, the electronic tag information of the device has not changed, and the currently cached electronic tag information can continue to be used; if the actual data of the current device is detected to be different from the target electronic tag information, it is considered that a device plug-in / plug-out event has occurred, and it is necessary to start refreshing the entire cached data, and then continue the subsequent operations based on the newly cached electronic tag information.
[0070] Through the above steps S231 to S232, when it is detected that the actual data of the current device fails to match the target electronic tag information, the cached data is refreshed in time to obtain the new electronic tag information, thereby realizing data synchronization and effectively avoiding the problem of information processing errors caused by failure to detect device replacement in time.
[0071] In some embodiments, the method for processing the above-mentioned electronic tag information further includes the following steps:
[0072] Step S101: Obtain the feature header information corresponding to the electronic tag information to be processed, and perform the first feature verification process based on the feature header information to obtain the total length information of the electronic tag information to be processed.
[0073] Specifically, the aforementioned electronic tag information to be processed can be cached according to the TLV specification. For example, Table 2 shows one TLV format, as shown in the table below:
[0074] Table 2. One TLV usage format
[0075]
[0076] In the table above, the electronic tag information content stored in the form of T-values, L-values, and V-values, as well as the tail verification information including the verification method, verification value length, and specific verification value, are all stored with a fixed length. The aforementioned feature header information generally includes characteristic strings (such as Tlvinfo), version information, total length information, etc. Taking Table 2 as an example, during the verification process, the feature header information of the electronic tag information to be processed is first subjected to necessary feature information verification. After successful verification, the corresponding total length information can be obtained.
[0077] Step S102: Calculate the tail feature information of the electronic tag information to be processed based on the total length information, and obtain the target verification information based on the tail feature information.
[0078] Step S103: Perform a second feature verification process on the electronic tag information to be processed according to the target verification information to obtain the verification result. If the verification result indicates that the verification is passed, obtain the target electronic tag information according to the index information.
[0079] In steps S102 to S103 above, the position of the tail verification information is first calculated based on the total length information obtained from the first verification, and the corresponding verification method, verification value and other verification-related information are extracted. The verification method includes Cyclic Redundancy Check (CRC) and Message-Digest Algorithm (MD5). Then, the electronic tag information to be processed is verified a second time based on the extracted verification-related information. After the verification is passed, the electronic tag information to be processed is organized into array data in the format shown in Table 1 according to the index structure determined in the above embodiment and saved to the cache space to obtain the above target electronic tag information.
[0080] Through steps S101 to S103 above, before organizing and storing the electronic tag information to be processed, the electronic tag information to be processed is first verified twice through feature header and tail verification information, thereby ensuring the reliability of the data.
[0081] In some embodiments, after performing a second feature verification on the electronic tag information to be processed based on the target verification information to obtain a verification result, the method for processing the electronic tag information further includes the following steps: if the verification result indicates a verification failure, generating error information and sending the error information to a terminal device or application for error reporting. The terminal device includes, but is not limited to, various personal computers or laptops. Specifically, in one embodiment, the terminal device can perform the above steps to obtain a verification result. At this time, the control device can send error information indicating a verification failure to its associated alarm application, which then runs an error reporting program based on the error information to promptly remind the user. In another embodiment, a server device, control chip, or other main control device (other than the terminal device) can also obtain the verification result indicating a verification failure. In this case, the main control device can send error information corresponding to the verification result to the terminal device for error reporting. It is understood that the error reporting operation can be performed by the terminal device or application in the form of sound and light or text information. Through the above embodiments, by feeding back error information to the terminal device or application to remind the user to handle the error in a timely manner, the error reporting method can remind the user to check the on-site equipment in a timely manner, effectively improving the accuracy and efficiency of electronic tag information management.
[0082] The embodiments of this application will be described in detail below with reference to practical application scenarios. Figure 3 This is a flowchart of a method for processing electronic tag information according to a preferred embodiment of this application, such as... Figure 3 As shown, the process includes the following steps:
[0083] Step S301: Initialize the cache. Specifically, verify the feature header and tail checks. If they pass, organize the electronic tag information according to the structure shown in Table 1 above; if they fail, report a verification error, and all field accesses will return failure.
[0084] In step S302, the upper-layer application calls the driver interface to access the corresponding fields of the electronic tag information; the corresponding fields can be fields such as manufacturer name and serial number; the subsequent steps take reading vendor_name as an example.
[0085] In step S303, the driver interface receives a request to access vendor_name and reads the Tag(Type), Length, Value, and Offset corresponding to vendor_name from the cache array.
[0086] Step S304: Access the content of the electronic tag information in the non-volatile memory of the device, starting from the Offset position and a specified length, to obtain RTTLV[vendor_name]; where the specified length is the sum of the length of the Tag(Type) field, the length of the Length field, and the length of the Length value; RT represents the realtime.
[0087] Step S305: Determine whether the RTTLV[vendor_name] and the cached data read in step S303 are consistent.
[0088] In step S306, if the judgment result of step S305 is negative, that is, the RTTLV[vendor_name] and the cached data content obtained in step S303 are inconsistent, then the data read this time is discarded, and the process returns to step S301 to continue repeating the process to refresh the cached data.
[0089] Step S307: If the judgment result of step S305 is yes, that is, RTTLV[vendor_name] and the cached data content obtained in step S303 are consistent, then the cached data is used for processing.
[0090] Taking the aforementioned FRU device under test, which uses a fan, as an example, the time to obtain relevant information when directly reading and writing to the device's non-volatile memory using commonly used related technologies is greater than 3 seconds. Therefore, when there are multiple FRU devices in the system, the read and write processing performance will be significantly affected. However, in this embodiment, through the above steps, the time to obtain fan-related information is 0.3 seconds, and the access performance is greatly improved. At the same time, without using a service to monitor plugging and unplugging events, and only triggering cache refresh through data self-verification after plugging and unplugging occurs, CPU resources are also effectively saved.
[0091] It should be noted that the steps shown in the above process or in the flowchart of the accompanying figures can be executed in a computer system such as a set of computer-executable instructions, and although a logical order is shown in the flowchart, in some cases the steps shown or described may be executed in a different order than that shown here.
[0092] This embodiment also provides an electronic tag information processing device for implementing the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the terms "module," "unit," "subunit," etc., can refer to a combination of software and / or hardware that performs a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.
[0093] Figure 3This is a structural block diagram of an electronic tag information processing device according to an embodiment of this application, such as... Figure 3 As shown, the device includes: an acquisition module 42, an indexing module 44, and a processing module 46; the acquisition module 42 is used to acquire electronic tag information to be processed; the indexing module 44 is used to acquire target attribute information indicating the attributes of the electronic tag information to be processed, and a cache storage location indicating the storage address of the target attribute information, based on the electronic tag information to be processed; the indexing module 44 generates index information based on the mapping relationship between the target attribute information and the cache storage location; the processing module 46 is used to process the electronic tag information to be processed based on the index information to obtain target electronic tag information.
[0094] Through the above embodiments, the target attribute information of the electronic tag information to be processed and the cache storage location of the target attribute information are obtained by the index module 44, and an index is established based on the target attribute information and the cache storage location, thereby effectively improving the access performance of the electronic tag information, solving the problem of low processing efficiency of electronic tag information, and realizing an efficient and accurate electronic tag information processing device.
[0095] In some embodiments, the above-mentioned electronic tag information processing device further includes a device detection module; the device detection module is used to detect information access requests for the device to be detected; in response to the detected information access request, the device detection module determines the length information and location information corresponding to the target electronic tag information according to the index information, and obtains the current actual data of the device to be detected according to the length information and the location information; the device detection module compares the current actual data of the device with the target electronic tag information, and determines the device replacement result corresponding to the device to be detected according to the comparison result.
[0096] In some embodiments, the device detection module is further configured to obtain a first device replacement result indicating that the device has not been replaced when the comparison result indicates that the actual data of the current device matches the target electronic tag information; and to obtain a second device replacement result indicating that the device has been replaced when the comparison result indicates that the actual data of the current device fails to match the target electronic tag information, and to obtain new electronic tag information based on the second device replacement result.
[0097] In some embodiments, the processing module 46 is further configured to obtain target length information and target value information based on the electronic tag information to be processed; wherein the target length information is used to indicate the byte length of the electronic tag information to be processed, and the target value information is used to indicate the tag data of the electronic tag information to be processed; the processing module 46 obtains the storage result of the target attribute information, the target length information and the target value information based on the index information, and obtains the target electronic tag information based on the storage result.
[0098] In some embodiments, the above-mentioned electronic tag information processing device further includes a verification module; the verification module is used to perform a first feature verification process based on the target attribute information to obtain the total length information of the electronic tag information to be processed; the verification module calculates the tail feature information of the electronic tag information to be processed based on the total length information, and obtains target verification information based on the tail feature information; the verification module performs a second feature verification process on the electronic tag information to be processed based on the target verification information to obtain a verification result, and if the verification result indicates that the verification is passed, obtains the target electronic tag information based on the index information.
[0099] In some embodiments, the above-mentioned electronic tag information processing device further includes an error reporting module; the error reporting module is used to generate error information and send the error information to a terminal device or application for error reporting when the verification result indicates that the verification has failed.
[0100] It should be noted that the above modules can be functional modules or program modules, and can be implemented through software or hardware. For modules implemented through hardware, the above modules can reside in the same processor; or the above modules can be located in different processors in any combination.
[0101] This embodiment also provides a system for processing electronic tag information. Figure 5 This is a structural block diagram of an electronic tag information processing system according to an embodiment of this application, such as... Figure 5As shown, the system includes a reader device 52 and a main control device 54; wherein, the main control device 54 is connected to the reader device 52; the reader device 52 is used to acquire electronic tag information to be processed and send the electronic tag information to be processed to the main control device 54; the main control device 54 is used to execute the steps as described in any of the above method embodiments. The reader device 52 may be a standalone RFID reader / writer or similar device, and may be communicatively connected to the main control device 54; alternatively, the reader device 52 may be integrated into the main control device 54. The main control device 54 includes, but is not limited to, various microcontrollers, chips, terminal devices, server devices, or other devices used to control the processing flow of the electronic tag information; the server device may be implemented using a standalone server or a server cluster composed of multiple servers.
[0102] Through the above embodiments, the main control device 54 obtains the target attribute information of the electronic tag information to be processed, as well as the cache storage location of the target attribute information, and establishes an index based on the target attribute information and the cache storage location, thereby effectively improving the access performance of the electronic tag information, solving the problem of low processing efficiency of electronic tag information, and realizing an efficient and accurate electronic tag information processing system.
[0103] This embodiment also provides a computer device, which may be a server. Figure 6 This is a structural diagram of the internal structure of a computer device according to an embodiment of this application, such as... Figure 6 As shown, the computer device includes a processor, memory, network interface, and database connected via a system bus. The processor provides computing and control capabilities. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores the operating system, computer programs, and the database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The database stores target electronic tag information. The network interface communicates with external terminals via a network connection. When the computer program is executed by the processor, it implements a method for processing electronic tag information.
[0104] Those skilled in the art will understand that Figure 6 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0105] This embodiment also provides an electronic device, including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.
[0106] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor and the input / output device is connected to the processor.
[0107] Optionally, in this embodiment, the processor can be configured to perform the following steps via a computer program:
[0108] S1, Obtain the electronic tag information to be processed.
[0109] S2, based on the electronic tag information to be processed, obtain target attribute information for indicating the attributes of the electronic tag information to be processed, and cache storage location for indicating the storage address of the target attribute information; generate index information based on the mapping relationship between the target attribute information and the cache storage location.
[0110] S3. Process the electronic tag information to be processed according to the index information to obtain the target electronic tag information.
[0111] It should be noted that the specific examples in this embodiment can refer to the examples described in the above embodiments and optional implementations, and will not be repeated here.
[0112] Furthermore, in conjunction with the electronic tag information processing methods in the above embodiments, this application embodiment can provide a storage medium for implementation. This storage medium stores a computer program; when executed by a processor, the computer program implements any of the electronic tag information processing methods in the above embodiments.
[0113] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), Rambus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0114] Those skilled in the art should understand that the technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments have been 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.
[0115] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the invention patent. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims.
Claims
1. A method for processing electronic tag information, characterized in that, The method includes: Obtain the electronic tag information to be processed; Based on the electronic tag information to be processed, target attribute information for indicating the attributes of the electronic tag information to be processed, and a cache storage location for indicating the storage address of the target attribute information are obtained; index information is generated based on the mapping relationship between the target attribute information and the cache storage location; the electronic tag information includes the target attribute information, target length information, and target numerical information; the target attribute information represents the identification field corresponding to the electronic tag information; the target length information is used to indicate the byte length of the electronic tag information to be processed, and the target numerical information is used to indicate the tag data of the electronic tag information to be processed; The electronic tag information to be processed is processed according to the index information to obtain target electronic tag information, which includes: obtaining the storage results of the target attribute information, the target length information and the target numerical information according to the index information, and obtaining the target electronic tag information based on the storage results.
2. The processing method according to claim 1, characterized in that, After processing the electronic tag information to be processed according to the index information to obtain the target electronic tag information, the method further includes: Detect information access requests for the device under test; In response to the detected information access request, the length information and location information corresponding to the target electronic tag information are determined according to the index information, and the current actual data of the device to be detected are obtained according to the length information and location information; The actual data of the current device is compared with the information of the target electronic tag, and the device replacement result corresponding to the device to be tested is determined based on the comparison result.
3. The processing method according to claim 2, characterized in that, The method further includes: If the comparison result indicates that the actual data of the current device matches the information of the target electronic tag, a first device replacement result is obtained to indicate that the device has not been replaced; If the comparison result indicates that the actual data of the current device fails to match the target electronic tag information, a second device replacement result is obtained to indicate that the device has been replaced, and new electronic tag information is obtained based on the second device replacement result.
4. The processing method according to claim 1, characterized in that, The method further includes: The target length information and target value information are obtained based on the electronic tag information to be processed.
5. The processing method according to any one of claims 1 to 4, characterized in that, The method further includes: Obtain the feature header information corresponding to the electronic tag information to be processed, and perform a first feature verification process based on the feature header information to obtain the total length information of the electronic tag information to be processed. The tail feature information of the electronic tag information to be processed is calculated based on the total length information, and the target verification information is obtained based on the tail feature information; The electronic tag information to be processed is subjected to a second feature verification process based on the target verification information to obtain a verification result. If the verification result indicates that the verification is successful, the target electronic tag information is obtained based on the index information.
6. The processing method according to claim 5, characterized in that, After performing a second feature verification process on the electronic tag information to be processed based on the target verification information to obtain the verification result, the method further includes: If the verification result indicates that the verification failed, an error message is generated and sent to the terminal device or application to perform an error reporting operation.
7. A device for processing electronic tag information, characterized in that, The device includes: an acquisition module, an indexing module, and a processing module; The acquisition module is used to acquire the electronic tag information to be processed; The indexing module is configured to obtain target attribute information indicating the attributes of the electronic tag information to be processed, and a cache storage location indicating the storage address of the target attribute information, based on the electronic tag information to be processed; generate index information according to the mapping relationship between the target attribute information and the cache storage location; the electronic tag information includes the target attribute information, target length information, and target numerical information; the target attribute information represents the identification field corresponding to the electronic tag information; the target length information is used to indicate the byte length of the electronic tag information to be processed, and the target numerical information is used to indicate the tag data of the electronic tag information to be processed; The processing module is used to process the electronic tag information to be processed according to the index information to obtain target electronic tag information, which includes: obtaining the storage results of the target attribute information, the target length information and the target numerical information according to the index information, and obtaining the target electronic tag information based on the storage results.
8. A system for processing electronic tag information, characterized in that, The system includes: a reader device and a main control device; wherein the main control device is connected to the reader device; The reader device is used to acquire electronic tag information to be processed and send the electronic tag information to be processed to the main control device; The main control device is used to execute the electronic tag information processing method as described in any one of claims 1 to 6.
9. An electronic device comprising a memory and a processor, characterized in that, The memory stores a computer program, and the processor is configured to run the computer program to perform the method for processing electronic tag information according to any one of claims 1 to 6.
10. A storage medium, characterized in that, The storage medium stores a computer program, wherein the computer program is configured to execute the method for processing electronic tag information according to any one of claims 1 to 6 when it is run.
Citation Information
Patent Citations
Server FRU information modification method, modification system and related device
CN109683970A
Detection and data processing method, system and equipment for vehicle-mounted electronic tag equipment
CN115190455A