An intelligent terminal data compression anti-redundancy interaction method and device and related components

By encrypting the unique code on the card to generate a string key, and utilizing local and cloud data verification and update mechanisms, the problems of storage redundancy and invalid card swiping in smart terminal devices are solved, thereby improving data processing efficiency and security.

CN114691617BActive Publication Date: 2025-12-16SHENZHEN HAIWEIDA TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210324609.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-29
Publication Date
2025-12-16
Estimated Expiration
2042-03-29

AI Technical Summary

Technical Problem

In large companies or factories, when the number of employee information stored in smart terminal devices exceeds the effective storage capacity of the terminal, it can lead to invalid card swipes, data retrieval from the source, communication congestion, and data redundancy.

Method used

The unique code on the card is obtained and encrypted to generate a string key. The key is then verified using the local table header index and the rule base. The compressed tag code is compared with the local data. If no match is found, the cloud data is queried. The local data is also updated periodically to reduce redundancy.

Benefits of technology

It improves the security of smart terminals, enhances data comparison efficiency, ensures timely data response, optimizes data updates, and avoids data redundancy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114691617B_ABST
    Figure CN114691617B_ABST
Patent Text Reader

Abstract

The application discloses a kind of intelligent terminal data compression anti-redundancy interaction method, device and related components.The method includes obtaining the unique code of card end, and the corresponding string key is generated by encrypting unique code through encryption algorithm;Unique table header rule value is checked with local table header index total library rule library;If it is consistent, the table header mark is compressed, and the compressed mark code is obtained;Compressed mark code is compared quickly with local database, if it is hit, the corresponding local data is extracted, if it is not hit, corresponding data is queried to cloud according to table header mark, and the data returned by cloud is received;Update data issued by cloud according to timing mechanism is obtained, wherein, update data is the data deleted by cloud from another intelligent terminal local storage target data.The method can improve the security of intelligent terminal, and can improve the timeliness of data response, and can optimize the local database of each intelligent terminal, avoid the situation of data redundancy.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of data processing, in particular to an intelligent terminal data compression anti-redundancy interaction method and device and related components. BACKGROUND

[0002] At present, with the development of science and technology and the advent of the digital age, the basic information of employees is stored by using small intelligent terminal devices such as attendance terminals / consumption terminals, and employees perform identity authentication with the intelligent terminal devices through IC cards / CPU cards / NFC handheld devices, thereby realizing functions such as door unlocking.

[0003] However, the data stored by the intelligent terminal device is limited. In the scenario where the number of users exceeds the effective number of terminal storage, for example, in large companies or factories, there are tens of thousands of employee information, and there are phenomena such as no hit to cause card swiping invalid, and data constantly querying the source, causing communication congestion, and local low-frequency useless data redundancy. SUMMARY

[0004] The purpose of the present application is to provide an intelligent terminal data compression anti-redundancy interaction method and device and related components, which aims to solve the problem of invalid card swiping and storage data redundancy of existing intelligent terminals.

[0005] To solve the above technical problems, the purpose of the present application is achieved by the following technical scheme: an intelligent terminal data compression anti-redundancy interaction method is provided, which includes:

[0006] Obtain the unique code of the card terminal, encrypt the unique code by an encryption algorithm to generate a corresponding string key, wherein the string key includes a unique table header rule value and a table header identifier;

[0007] Verify the unique table header rule value with the local table header index total library rule library;

[0008] If the unique table header rule value conforms to the local table header index total library rule library, compress the table header identifier to obtain a compressed marker code;

[0009] Quickly compare the compressed marker code with the local database, if it hits, extract the corresponding local data, if it does not hit, query the corresponding data from the cloud according to the table header identifier, and receive the data returned by the cloud;

[0010] Obtain the update data issued by the cloud according to the timing mechanism and perform data update, wherein the update data is the data deleted by the cloud from the target data stored locally by another intelligent terminal.

[0011] In addition, the technical problem to be solved by the present application is also to provide an intelligent terminal data compression anti-redundancy interaction device, which includes:

[0012] An encryption unit is configured to obtain a unique code of a card end, encrypt the unique code by using an encryption algorithm to generate a corresponding string key, wherein the string key comprises a unique table header rule value and a table header identifier;

[0013] A checking unit is configured to check the unique table header rule value against a local table header index total library rule library;

[0014] A compression unit is configured to compress the table header identifier to obtain a compressed marker code if the unique table header rule value conforms to the local table header index total library rule library;

[0015] A querying unit is configured to quickly compare the compressed marker code with a local database, extract corresponding local data if a hit is obtained, and query corresponding data from a cloud end according to the table header identifier if a miss is obtained, and receive data returned by the cloud end;

[0016] An updating unit is configured to obtain update data issued by the cloud end according to a timing mechanism, wherein the update data is data deleted by the cloud end from target data stored locally by another intelligent terminal.

[0017] In addition, an embodiment of the present application further provides a computer device, which comprises a memory, a processor and a computer program stored in the memory and executable on the processor, and the processor implements the intelligent terminal data compression anti-redundancy interaction method of the first aspect when executing the computer program.

[0018] In addition, an embodiment of the present application further provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program, and the computer program causes the processor to execute the intelligent terminal data compression anti-redundancy interaction method of the first aspect when being executed by the processor.

[0019] The embodiment of the application discloses a kind of intelligent terminal data compression anti-redundancy interaction method, device and related components, wherein, method includes: obtaining the unique code of card end, the unique code is encrypted by encryption algorithm to generate corresponding string key, wherein, the string key includes: unique header rule value and header identifier;The unique header rule value is checked with local header index total library rule library;If the unique header rule value meets local header index total library rule library, then the header identifier is compressed, and compressed mark code is obtained;The compressed mark code is compared quickly with local database, if hit, then the corresponding local data is extracted, if not hit, then according to the header identifier, corresponding data is inquired to cloud, and the data returned by cloud is received;Update data issued by cloud according to timing mechanism is obtained and data is updated, wherein, the update data is the data deleted by another intelligent terminal local storage target data of cloud.The method first aspect is encrypted by algorithm to the unique code of card end, can improve the security of intelligent terminal, reduce the situation of being used by third party;Second aspect, the compressed mark code after compression is compared in local database, can effectively improve comparison efficiency, ensure that data is normally read and accessed, guarantee the timeliness of data response;Third aspect, data of each intelligent terminal is updated using cloud, optimizes the local database of each intelligent terminal, avoids the situation of data redundancy. BRIEF DESCRIPTION OF DRAWINGS

[0020] In order to more clearly illustrate the technical solutions of the embodiments of the application, the following will briefly introduce the drawings needed to be used in the embodiment description. Obviously, the drawings in the following description are some embodiments of the application, and for those skilled in the art, other drawings can also be obtained without creative labor.

[0021] Figure 1 The flowchart of the intelligent terminal data compression anti-redundancy interaction method provided by the embodiment of the application is shown.

[0022] Figure 2 The schematic block diagram of the intelligent terminal data compression anti-redundancy interaction device provided by the embodiment of the application is shown.

[0023] Figure 3 The schematic block diagram of the computer device provided by the embodiment of the application is shown. DETAILED DESCRIPTION

[0024] The technical solutions in the embodiments of the application will be described clearly and completely in the following with reference to the drawings in the embodiments of the application. Obviously, the described embodiments are some embodiments of the application, not all the embodiments. Based on the embodiments in the application, all other embodiments obtained by those skilled in the art without creative labor are within the protection scope of the application.

[0025] It should be understood that the terms "comprises" and "comprising," when used in this specification and the following claims, indicate the presence of the described features, integers, steps, operations, elements, and / or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof.

[0026] It should also be understood that the terms used in the specification of the application herein are only for the purpose of describing particular embodiments and do not intend to limit the application. As used in the specification of the application and the following claims, the singular forms "a," "an," and "the" are intended to include the plural forms unless the context clearly indicates otherwise.

[0027] It should be further understood that the term "and / or" used in the specification of the application and the following claims means any combination of one or more of the associated listed items and all possible combinations, and includes these combinations.

[0028] Please refer to Figure 1 , Figure 1 The flowchart of the intelligent terminal data compression anti-redundancy interaction method provided by the embodiment of the application is shown in the figure.

[0029] As Figure 1 shown, the method comprises steps S101-S105.

[0030] S101, obtain the unique code of the card end, and encrypt the unique code by an encryption algorithm to generate a corresponding string key, wherein the string key comprises a unique table header rule value and a table header identifier;

[0031] S102, check the unique table header rule value against the local table header index total library rule library;

[0032] S103, if the unique table header rule value conforms to the local table header index total library rule library, compress the table header identifier to obtain a compressed marker code;

[0033] S104, quickly compare the compressed marker code with the local database, if a hit is obtained, extract the corresponding local data, if no hit is obtained, query the corresponding data from the cloud according to the table header identifier, and receive the data returned by the cloud;

[0034] S105, obtain the update data issued by the cloud according to the timing mechanism and perform data update, wherein the update data is the data deleted by the cloud from the target data stored locally by another intelligent terminal.

[0035] In this embodiment, the card end includes but is not limited to an IC card, a CPU card, and an NFC handheld device.

[0036] In a specific use scenario, the user brings the IC card / CPU card / NFC handheld device close to the intelligent terminal to perform card swiping. The intelligent terminal first acquires the unique code of the card terminal, then encrypts the unique code by using an encryption algorithm to generate a string key corresponding to the card terminal, and then checks the string key based on a pre-constructed local table header index total rule library. If the check fails, it indicates that the card terminal is a non-system authorized card, and a prompt message such as "authentication failure" is displayed on the display screen of the intelligent terminal. If the check succeeds, it indicates that the card terminal is a system authorized card, and the table header identifier is compressed to obtain a compressed marker code. It should be noted that the compression of the table header identifier can effectively reduce the number of strings in the table header identifier, thereby improving the retrieval efficiency. Then the intelligent terminal performs a quick comparison between the compressed marker code and the local database. If a hit is found, it indicates that the local database stores the basic information of the card terminal, and the basic information of the card terminal can be directly called from the local database and displayed on the display screen of the intelligent terminal. If no hit is found, it indicates that the local database does not store the basic information of the card terminal, so the basic information of the card terminal needs to be retrieved from the cloud and displayed on the display screen of the intelligent terminal.

[0037] At the same time, in order to reduce the occurrence of data redundancy, a timing mechanism is established in advance, for example, in the non-busy meal time period of "10:00-11:00", "14:00-16:30", "00:00-04:00", etc., the cloud automatically issues update data to the intelligent terminal, for example, the cloud updates data to the A intelligent terminal, and also updates data to the B intelligent terminal. The difference is that the target data to be stored is stored in the A intelligent terminal, and the target data originally stored in the B intelligent terminal is deleted, so as to ensure that the target data can only be stored in one intelligent terminal, thereby optimizing the local data of the B intelligent terminal and reducing the redundant data of the B intelligent terminal.

[0038] For example, the C card terminal originally bound with the A intelligent terminal is reconfigured to be bound with the B intelligent terminal. The cloud will issue different data update requests to the A intelligent terminal and the B intelligent terminal, specifically, a deletion request to delete the basic information of the C card terminal is issued to the A intelligent terminal. Based on the deletion request, the A intelligent terminal deletes the basic information originally stored in the local database of the A intelligent terminal and updates its own local database. The cloud issues the basic information of the C card terminal to the B intelligent terminal. The B intelligent terminal receives and stores the basic information of the C card terminal and updates its own local database. At the same time, the cloud updates the data version information of the intelligent terminal.

[0039] The first aspect of the application encrypts the unique code of the card end by algorithm, which can improve the security of the intelligent terminal and reduce the occurrence of being used by a third party; the second aspect of the application compares the compressed mark code in the local database, which can effectively improve the comparison efficiency, ensure the normal reading and storage of data, and ensure the timeliness of data response; the third aspect of the application updates the data of each intelligent terminal by using the cloud, optimizes the local database of each intelligent terminal, and avoids the occurrence of data redundancy.

[0040] In a specific embodiment, the string key further includes a device number of the intelligent terminal and update check information, and the update check information includes update records for recording update information and check information for checking the local model of the intelligent terminal.

[0041] In the embodiment, the application pre-establishes an index tag mechanism in the cloud or background: "index total table: device number library: non-local data: local data: update mechanism".

[0042] The index total table is used to record each piece of data and establish a total index table rule, which conforms to the HMAC-SHA256 algorithm encryption Key rule, for example, the encryption Key is 1B2C3D: 123456, that is, the encryption Key is composed of the encryption rule + enterprise user data starting number range (1-99999999). It should be noted that the encryption Key of each enterprise or factory is unique.

[0043] The device number library is used to establish a one-to-one correspondence between the intelligent terminal and "non-local data: local data: update mechanism" device number library, so as to quickly match data information and data calling, recording, etc. Specifically, the device number library stores the unique code corresponding to n card ends.

[0044] The non-local data is mainly used to store local non-high-frequency data (redundant data);

[0045] The local data is mainly used to store local high-frequency data;

[0046] The update mechanism is used to update the local data model according to the "timing mechanism", and the incremental 0.1 is used to record the relevant iteration version number, for example: A1.1 is used to record the index total table version number, and the next version number is A1.2; B1.1 is used to record the update mechanism version number, and the next version number is B1.2.

[0047] In addition, the application pre-establishes a data compression anti-redundancy operation model in the local database of the intelligent terminal. The data compression anti-redundancy operation model is used to store a table header index total library rule library table, local table header library table data and high-frequency user data (L2 queue in Two Queues cache). Specifically, the data compression anti-redundancy operation model is "intelligent terminal device number: table header index total library rule library table: local table header library table data: update mechanism". It should be noted that the local table header library table data is the stored user basic data. The data compression anti-redundancy operation model enables the intelligent terminal to quickly match data information, thereby improving user experience comfort.

[0048] In one embodiment, the step S101 includes the following steps:

[0049] S10, obtain the unique code of the card end, and encrypt the unique code by using a target key based on an HMAC-SHA256 encryption algorithm to generate a string key.

[0050] In this embodiment, after obtaining the unique code of the card end, the intelligent terminal inputs the unique code into the data compression anti-redundancy operation model. The data compression anti-redundancy operation model encrypts the unique code by using a target key based on an HMAC-SHA256 encryption algorithm to generate a 32-bit string key. For example, if the unique code of the card end is HWD0000000010001: HWDABC000ABC0ABC, the 32-bit string key obtained after encryption is "789fdmfd k92jg819, 3mf123m8, fjis, 2340". It should be noted that "789fdmfd k92jg819" represents a unique table header rule value, "3mf123m8" represents a table header identifier, "fjis" represents an intelligent terminal device number, and "2340" represents update verification information, which is used to verify whether the local compression model of the "fjis" intelligent terminal is the latest version.

[0051] It should be noted that if the card end and the fjis smart terminal are to be unbonded, only the unique code needs to be changed in the background. The 32-bit string key generated after the encryption of the newly generated unique code will change from "789fdmfd k92jg819, 3mf123m8, fjis, 2340" to "789fdmfd k92jg819, 3mf123m8, M, 2341", which represents that the card end is bound with the M smart terminal. At this time, the cloud sends a deletion request to delete the basic information of the card end to the fjis smart terminal according to the timing mechanism, updates the local database of the fjis smart terminal, and issues the basic information of the card end to the M smart terminal. The M smart terminal receives the basic information of the card end and stores and updates the local data itself. It is worth noting that the application updates the unique code each time and increments the update check information by 1, that is, "2340" becomes "2341" as shown above. That is, the cloud records the information of each update to manage the version update well.

[0052] In step S102, it is judged whether the unique table header rule value "789fdmfd k92jg819" is within the range allowed by the local table header index total library rule library. If it is within the running range, it is determined that the check is passed, otherwise it is not passed.

[0053] In a specific embodiment, the step S103 includes the following steps:

[0054] S20, traverse the local table header index total library rule library, judge whether the local table header index total library rule library exists the target rule value same with the unique table header rule value, if not exists, execute step S21, if exists, execute step S22;

[0055] S21, end and output the check result;

[0056] S22, based on the HMAC-SHA256 encryption algorithm, encrypt the table header identifier by using the target key, to generate a compressed marker code.

[0057] In the embodiment, the data compression anti-redundancy operation model first checks the 32-bit string key and the local table header index total library rule library. The specific check is as follows: extract the unique table header rule value "789fdmfd k92jg818" in the 32-bit string key, judge whether the local table header index total library rule library exists the unique table header rule value, if exists, it means that the card end is a system authorized card, the check is passed, and the operation set is output as {true}, if not exists, it means that the card end is a non-system authorized card, the check is not passed, the operation set is output as {false}, and the operation is stopped.

[0058] In case of passing the verification, the application is based on the HMAC-SHA256 encryption algorithm again, and the table header identifier is encrypted by the target key to generate a compressed marker code, for example, the table header identifier "3mf123m8" is encrypted and compressed into a 4-bit compressed marker code "oaA1". Compared with the 8-bit character table header identifier, the 4-bit compressed marker code can improve the search efficiency by more than one time. It should be noted that the compressed marker code is preferably composed of application numbers and uppercase and lowercase letters.

[0059] In a specific embodiment, the step S104 includes the following steps:

[0060] S30, the compressed marker code is matched with the local database in range, if the compressed marker code is in the matching range, step S31 is executed, if the compressed marker code is not in the matching range, step S32 is executed;

[0061] S31, reading the table header of the card end, and positioning and extracting the corresponding local data based on the table header of the card end and outputting;

[0062] S32, reading the table header of the card end, and sending query information to the cloud end, so that the cloud end retrieves the cloud database based on the table header of the card end in the query information and returns the corresponding data, so that the smart terminal receives the data returned by the cloud end and outputs.

[0063] In this embodiment, the local database of the smart terminal is traversed to determine whether the local database exists "oaA1", if "oaA1" exists, it means that the local database exists the basic information of the card end, so the output operation set is {true, oaA1, 1}, and the table header of the card end is read, for example, 0aa0, and the output operation set is {true, oaA1, 1, 0aa0}, then the 0aa0 data in the L2 queue (LRU queue) of the local database (Two Queues cache) is quickly positioned and extracted, and the 0aa0 data is displayed on the display screen of the smart terminal.

[0064] It should be noted that the query information of the application includes the table header of the card end + the device number + the version number of the smart terminal, the cloud end quickly locates the data corresponding to the table header of the card end, finds the table where the device number of the smart terminal is located, and then issues the corresponding data to the smart terminal, while the cloud end synchronously updates the version number.

[0065] If there is no "oaA1", it indicates that the local database does not have the basic information of the card end, so it is necessary to request data from the cloud, and the specific process is as follows: the smart terminal obtains the table header of the card end, and sends query information to the cloud, the cloud receives the query information, and based on the table header "0aa0" of the card end, searches in the cloud database, and returns the searched data to the smart terminal, and the smart terminal displays the data on the display screen after receiving the data.

[0066] In a specific embodiment, the step S31 comprises the following steps:

[0067] S40, read the table header of the card end, and based on the table header of the card end, locate and extract the corresponding local data from the L2 queue of the local cache, and update the L2 queue order synchronously.

[0068] It should be noted that the data compression and redundancy prevention operation model of the present application is based on the Two Queues cache algorithm, including L1 queue (FIFO queue) and L2 queue (LRU queue). When the data is accessed for the first time, the Two Queues cache algorithm caches the data in the FIFO queue. If the data has not been accessed again in the FIFO queue, it will be eventually eliminated according to the FIFO rule; if the data is accessed again in the FIFO queue, the data will be moved to the head of the LRU queue; if the data is accessed again in the LRU queue, the data will be moved to the head of the LRU queue, and the data located at the tail of the LRU queue will be eliminated, thereby reducing the data redundancy.

[0069] Since the local database has the table header "0aa0" of the card end, it indicates that the basic information of the card end has been stored in the L2 queue, so the smart terminal only needs to find the 0aa0th data in the L2 queue.

[0070] In a specific embodiment, the step S32 comprises the following steps:

[0071] S50, read the table header of the card end, and according to the table header of the card end, send query information to the cloud, so that the cloud decrypts the table header of the card end, and searches in the cloud database and returns the corresponding data;

[0072] S51, the smart terminal receives the data returned by the cloud and outputs, and simultaneously updates the L1 queue order of the local cache.

[0073] In the embodiment, since the local database does not exist the card end table header "0aa0", it is indicated that the local database has not stored the basic information of the card end before, the output operation set is {true, oaA1, 0, 0aa0}, and the intelligent terminal needs to send the query information to the cloud end. The cloud end decrypts the table header "0aa0" of the card end based on the query information, retrieves the cloud end database by using the decrypted data, extracts the retrieved data and sends the data to the intelligent terminal. The intelligent terminal receives the data, stores the data into the L1 queue and displays the data on the display screen, and updates the L1 queue.

[0074] The embodiment of the application further provides an intelligent terminal data compression anti-redundancy interaction device, which is used for executing any embodiment of the foregoing intelligent terminal data compression anti-redundancy interaction method. Specifically, refer to Figure 2 , Figure 2 Fig. 1 is a schematic block diagram of an intelligent terminal data compression anti-redundancy interaction device provided by the embodiment of the application.

[0075] As shown in Figure 2 , the intelligent terminal data compression anti-redundancy interaction device 500 comprises:

[0076] An encryption unit 501 is configured to acquire a unique code of a card end, encrypt the unique code by using an encryption algorithm to generate a corresponding string key, and the string key comprises a unique table header rule value and a table header identifier.

[0077] A checking unit 502 is configured to check the unique table header rule value against a local table header index total library rule library.

[0078] A compression unit 503 is configured to compress the table header identifier to obtain a compressed marker code if the unique table header rule value conforms to the local table header index total library rule library.

[0079] A query unit 504 is configured to quickly compare the compressed marker code with a local database, extract corresponding local data if a hit is obtained, and query corresponding data from the cloud end according to the table header identifier if a miss is obtained, and receive data returned by the cloud end.

[0080] An updating unit 505 is configured to acquire updating data issued by the cloud end according to a timing mechanism, and the updating data is data deleted by the cloud end from target data stored locally by another intelligent terminal.

[0081] The device first aspect encrypts the unique code of the card end through an algorithm, which can improve the security of the intelligent terminal and reduce the occurrence of being used by a third party; the second aspect of the application compares the compressed mark code in the local database after compression, which can effectively improve the comparison efficiency, ensure the normal reading and storage of data, and ensure the timeliness of data response; the third aspect of the application updates the data of each intelligent terminal by using the cloud, optimizes the local database of each intelligent terminal, and avoids the occurrence of data redundancy.

[0082] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the device and unit described above can refer to the corresponding process in the foregoing method embodiments, which will not be described here.

[0083] The intelligent terminal data compression anti-redundancy interaction device described above can be realized in the form of a computer program, which can run on a computer device as shown in the drawings. Figure 3

[0084] Please refer to Figure 3 , Figure 3 is a schematic block diagram of a computer device provided by the embodiment of the application. The computer device 1100 is a server, which can be a stand-alone server or a server cluster composed of multiple servers.

[0085] Please refer to Figure 3 , the computer device 1100 includes a processor 1102, a memory and a network interface 1105 connected through a system bus 1101, wherein the memory can include a non-volatile storage medium 1103 and an internal memory 1104.

[0086] The non-volatile storage medium 1103 can store an operating system 11031 and a computer program 11032. The computer program 11032, when executed, can make the processor 1102 execute the intelligent terminal data compression anti-redundancy interaction method.

[0087] The processor 1102 is used to provide computing and control capabilities to support the operation of the entire computer device 1100.

[0088] The internal memory 1104 provides an environment for the running of the computer program 11032 in the non-volatile storage medium 1103. The computer program 11032, when executed by the processor 1102, can make the processor 1102 execute the intelligent terminal data compression anti-redundancy interaction method.

[0089] The network interface 1105 is used for network communication, such as providing transmission of data information, etc. Those skilled in the art can understand that Figure 3 ​The structure shown in the figure is only a block diagram of part of the structure related to the scheme of the present application, and does not constitute a limitation on the computer device 1100 to which the scheme of the present application is applied. Specifically, the computer device 1100 can include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0090] Those skilled in the art can understand that, Figure 3 The embodiment of the computer device shown in the figure does not constitute a limitation on the specific structure of the computer device. In other embodiments, the computer device can include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components. For example, in some embodiments, the computer device can only include a memory and a processor. In such embodiments, the structure and function of the memory and the processor are consistent with those of the memory 1104 and the processor 1102 shown in the embodiment, and will not be described here. Figure 3

[0091] It should be understood that, in the embodiments of the present application, the processor 1102 can be a central processing unit (CPU), and the processor 1102 can also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc.

[0092] In another embodiment of the present application, a computer readable storage medium is provided. The computer readable storage medium can be a non-volatile computer readable storage medium. The computer readable storage medium stores a computer program, wherein the computer program is executed by a processor to implement the intelligent terminal data compression anti-redundancy interaction method of the embodiment of the present application.

[0093] The storage medium is an entity, non-transient storage medium, for example, can be a U disk, a mobile hard disk, a read-only memory (ROM), a magnetic disk or an optical disk, etc. Various entity storage media that can store program codes.

[0094] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-mentioned device, apparatus and unit can refer to the corresponding process in the foregoing method embodiments, and will not be described here.

[0095] ​The above merely describes a specific embodiment of the present application, but the protection scope of the present application is not limited thereto, and any person skilled in the art can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present application, and these modifications or replacements should be encompassed in the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims

1. A method for intelligent terminal data compression and anti-redundancy interaction, applied to an intelligent terminal, characterized in that, The method comprises the following steps: obtaining a unique code of a card terminal, encrypting the unique code by using an encryption algorithm to generate a corresponding string key, wherein the string key comprises a unique table header rule value and a table header identifier; verifying the unique table header rule value with a local table header index total library rule library; if the unique table header rule value is consistent with the local table header index total library rule library, compressing the table header identifier to obtain a compressed marker code; quickly comparing the compressed marker code with a local database, if a hit is obtained, extracting corresponding local data, if a miss is obtained, querying corresponding data from the cloud according to the table header identifier, and receiving data returned by the cloud; obtaining update data issued by the cloud according to a timing mechanism and performing data update, wherein the update data is data deleted by the cloud from target data stored locally by another intelligent terminal; the step of quickly comparing the compressed marker code with the local database, if a hit is obtained, extracting corresponding local data, if a miss is obtained, querying corresponding data from the cloud according to the table header identifier, and receiving data returned by the cloud, comprises: range matching the compressed marker code with the local database, if the compressed marker code is within the matching range, reading the table header of the card terminal, and based on the table header of the card terminal, positioning and extracting corresponding local data and outputting; if the compressed marker code is not within the matching range, reading the table header of the card terminal, and sending query information to the cloud, so that the cloud searches the cloud database based on the table header of the card terminal in the query information and returns corresponding data, so that the intelligent terminal receives the data returned by the cloud and outputs.

2. The intelligent terminal data compression anti-redundancy interaction method according to claim 1, characterized in that, The step of obtaining the unique code of the card terminal, and encrypting the unique code by using an encryption algorithm to generate a corresponding string key, comprises: obtaining the unique code of the card terminal, and encrypting the unique code by using a target key based on an HMAC-SHA256 encryption algorithm to generate a string key.

3. The intelligent terminal data compression anti-redundancy interaction method according to claim 1, characterized in that, The step of verifying the unique table header rule value with the local table header index total library rule library, if the unique table header rule value is consistent with the local table header index total library rule library, compressing the table header identifier to obtain a compressed marker code, comprises: traversing the local table header index total library rule library to determine whether the local table header index total library rule library has a target rule value identical to the unique table header rule value, if not, ending and outputting a verification result; if yes, encrypting the table header identifier by using a target key based on an HMAC-SHA256 encryption algorithm to generate a compressed marker code.

4. The intelligent terminal data compression anti-redundancy interaction method according to claim 1, characterized in that, The step of reading the table header of the card terminal, and based on the table header of the card terminal, positioning and extracting corresponding local data and outputting, comprises: reading the table header of the card terminal, and based on the table header of the card terminal, positioning and extracting corresponding local data from a locally cached L2 queue, and synchronously updating the L2 queue sorting.

5. The intelligent terminal data compression anti-redundancy interaction method according to claim 1, characterized in that, The step of reading the table header of the card terminal, and sending query information to the cloud, so that the cloud searches the cloud database based on the table header of the card terminal in the query information and returns corresponding data, so that the intelligent terminal receives the data returned by the cloud and outputs, comprises: Read the card end table header, and according to the card end table header to send query information to the cloud, so that the cloud decrypts the card end table header, and searches in the cloud database and returns the corresponding data; The intelligent terminal receives the data returned by the cloud and outputs, and updates the local cached L1 queue sorting at the same time.

6. The intelligent terminal data compression anti-redundancy interaction method according to claim 1, characterized in that, The string key further includes a device number of the intelligent terminal and update check information, and the update check information includes update records for recording update information and check information for checking the local model of the intelligent terminal.

7. An intelligent terminal data compression anti-redundancy interaction device, characterized in that, Comprise: An encryption unit configured to obtain a unique code of a card end, encrypt the unique code through an encryption algorithm to generate a corresponding string key, wherein the string key includes a unique table header rule value and a table header identifier; A check unit configured to check the unique table header rule value against a local table header index total library rule library; A compression unit configured to compress the table header identifier to obtain a compressed marker code if the unique table header rule value conforms to the local table header index total library rule library; A query unit configured to quickly compare the compressed marker code with a local database, extract corresponding local data if a hit is obtained, and query corresponding data from the cloud according to the table header identifier if a miss is obtained, and receive data returned by the cloud; An update unit configured to obtain update data issued by the cloud according to a timing mechanism, wherein the update data is data deleted by the cloud from target data stored locally by another intelligent terminal; The quick comparison of the compressed marker code with the local database, the extraction of corresponding local data if a hit is obtained, and the query of corresponding data from the cloud according to the table header identifier if a miss is obtained, and the reception of data returned by the cloud, comprise: Range matching of the compressed marker code with the local database, reading the table header of the card end if the compressed marker code is within the matching range, and positioning and extracting corresponding local data based on the table header of the card end and outputting; If the compressed marker code is not within the matching range, reading the table header of the card end, sending query information to the cloud, so that the cloud searches the cloud database based on the table header of the card end in the query information and returns corresponding data, so that the intelligent terminal receives data returned by the cloud and outputs.

8. A computer device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, The processor implements the intelligent terminal data compression anti-redundancy interaction method of any one of claims 1 to 6 when executing the computer program.

9. A computer-readable storage medium, characterized in that, The computer readable storage medium stores a computer program, and the computer program causes the processor to execute the intelligent terminal data compression anti-redundancy interaction method of any one of claims 1 to 6 when the processor executes the computer program.

Citation Information

Patent Citations

  • Intelligent door lock identity authentication method and system, readable storage medium and mobile terminal

    CN109712278A

  • Network connection method and device, network equipment and storage medium

    CN112565199A