CN114691617A - Intelligent terminal data compression redundancy-prevention interaction method and device and related components - Google Patents

Intelligent terminal data compression redundancy-prevention interaction method and device and related components Download PDF

Info

Publication number
CN114691617A
CN114691617A CN202210324609.9A CN202210324609A CN114691617A CN 114691617 A CN114691617 A CN 114691617A CN 202210324609 A CN202210324609 A CN 202210324609A CN 114691617 A CN114691617 A CN 114691617A
Authority
CN
China
Prior art keywords
data
header
intelligent terminal
cloud
local
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210324609.9A
Other languages
Chinese (zh)
Inventor
刘顺
陈伟财
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Haiwda Smartech Co ltd
Original Assignee
Shenzhen Haiwda Smartech Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Haiwda Smartech Co ltd filed Critical Shenzhen Haiwda Smartech Co ltd
Priority to CN202210324609.9A priority Critical patent/CN114691617A/en
Publication of CN114691617A publication Critical patent/CN114691617A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/162Delete operations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/174Redundancy elimination performed by the file system
    • G06F16/1744Redundancy elimination performed by the file system using compression, e.g. sparse files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/109Time management, e.g. calendars, reminders, meetings or time accounting
    • G06Q10/1091Recording time for administrative or management purposes

Abstract

The invention discloses a method and a device for preventing redundant interaction in data compression of an intelligent terminal and related components. The method comprises the steps of obtaining a unique code of a card end, and encrypting the unique code through an encryption algorithm to generate a corresponding character string key; checking the unique header rule value with a local header index total library rule base; if yes, compressing the header identification to obtain a compressed mark code; the compressed tag codes are quickly compared with a local database, if the compressed tag codes are hit, corresponding local data are extracted, if the compressed tag codes are not hit, the corresponding data are inquired from the cloud according to the header identification, and the data returned by the cloud are received; and acquiring update data issued by the cloud according to a timing mechanism, wherein the update data is data deleted by the cloud from target data locally stored in another intelligent terminal. The method can improve the safety of the intelligent terminal, improve the response timeliness of the data, optimize the local database of each intelligent terminal and avoid the situation of redundant data removal.

Description

Intelligent terminal data compression redundancy-prevention interaction method and device and related components
Technical Field
The invention relates to the field of data processing, in particular to a method and a device for preventing redundancy interaction in data compression of an intelligent terminal and a related component.
Background
With the development of science and technology and the arrival of the digital era, basic information of employees is stored by using small intelligent terminal equipment such as attendance terminals/consumption terminals, and the employees perform identity authentication with the intelligent terminal equipment through IC (integrated circuit) cards/CPU (central processing unit) cards/NFC handheld equipment and the like, so that functions such as entrance guard unlocking and the like are realized.
However, data stored in the intelligent terminal device is limited, and in a scene where the number of users exceeds the effective number of terminal storage, for example, in a large company or a factory, in the face of employee information of hundreds of thousands of employees, the phenomena of invalid card swiping caused by no hit, communication congestion caused by continuous source return query of data, local low-frequency useless data redundancy and the like exist.
Disclosure of Invention
The invention aims to provide a data compression and redundancy prevention interaction method and device for an intelligent terminal and related components, and aims to solve the problems that the existing intelligent terminal is easy to have card swiping invalidity and data redundancy storage.
In order to solve the technical problems, the invention is realized by the following technical scheme: the method for preventing the data compression and the redundancy interaction of the intelligent terminal comprises the following steps:
acquiring a unique code of a card end, and encrypting the unique code through an encryption algorithm to generate a corresponding character string key, wherein the character string key comprises: a unique header rule value and a header identification;
checking the unique header rule value with a local header index total library rule base;
if the unique header rule value accords with a local header index total library rule base, compressing the header identification to obtain a compressed marker code;
rapidly comparing the compressed tag codes with a local database, if the compressed tag codes are hit, extracting corresponding local data, and if the compressed tag codes are not hit, inquiring corresponding data from a cloud according to the header identification, and receiving data returned by the cloud;
and obtaining update data issued by the cloud according to a timing mechanism and updating the data, wherein the update data is data deleted by the cloud from target data locally stored in another intelligent terminal.
In addition, another technical problem to be solved by the present invention is to provide an intelligent terminal data compression anti-redundancy interaction device, which includes:
the encryption unit is used for acquiring a unique code of a card end, and encrypting the unique code through an encryption algorithm to generate a corresponding character string key, wherein the character string key comprises: a unique header rule value and a header identification;
the checking unit is used for checking the unique header rule value and a local header index total library rule base;
the compression unit is used for compressing the header identification to obtain a compressed marker code if the unique header rule value conforms to a local header index total library rule base;
the query unit is used for rapidly comparing the compressed tag codes with a local database, extracting corresponding local data if the compressed tag codes are hit, querying corresponding data from a cloud according to the header identification if the compressed tag codes are not hit, and receiving data returned by the cloud;
the updating unit is used for acquiring updating data issued by the cloud according to a timing mechanism, wherein the updating data is data deleted by the cloud from target data locally stored in another intelligent terminal.
In addition, an embodiment of the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the intelligent terminal data compression anti-redundancy interaction method according to the first aspect when executing the computer program.
In addition, an embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor is caused to execute the intelligent terminal data compression anti-redundancy interaction method according to the first aspect.
The embodiment of the invention discloses a method, a device and related components for preventing redundancy interaction in data compression of an intelligent terminal, wherein the method comprises the following steps: obtaining a unique code of a card end, encrypting the unique code through an encryption algorithm to generate a corresponding character string key, wherein the character string key comprises: a unique header rule value and a header identification; checking the unique header rule value with a local header index total library rule base; if the unique header rule value accords with a local header index total library rule base, compressing the header identification to obtain a compressed marker code; the compressed tag codes are quickly compared with a local database, if the compressed tag codes are hit, corresponding local data are extracted, if the compressed tag codes are not hit, corresponding data are inquired from a cloud end according to the header identification, and data returned by the cloud end are received; and obtaining update data issued by the cloud according to a timing mechanism and updating the data, wherein the update data is data deleted by the cloud from target data locally stored in another intelligent terminal. The method has the advantages that the first aspect carries out algorithm encryption on the unique code of the card end, so that the safety of the intelligent terminal can be improved, and the situation of being utilized by a third party is reduced; in the second aspect, the compressed marking codes are compared in the local database, so that the comparison efficiency can be effectively improved, the normal reading and accessing of data are ensured, and the response timeliness of the data is ensured; and in the third aspect, the cloud end is utilized to update data of each intelligent terminal, the local database of each intelligent terminal is optimized, and the situation of redundant data removal is avoided.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a data compression anti-redundancy interaction method for an intelligent terminal according to an embodiment of the present invention;
fig. 2 is a schematic block diagram of an intelligent terminal data compression redundancy prevention interaction device according to an embodiment of the present invention;
FIG. 3 is a schematic block diagram of a computer device provided by an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated 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.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
Referring to fig. 1, fig. 1 is a schematic flowchart of a data compression anti-redundancy interaction method for an intelligent terminal according to an embodiment of the present invention;
as shown in fig. 1, the method includes steps S101 to S105.
S101, obtaining a unique code of a card end, and encrypting the unique code through an encryption algorithm to generate a corresponding character string key, wherein the character string key comprises: a unique header rule value and a header identification;
s102, checking the unique header rule value with a local header index total library rule base;
s103, if the unique header rule value accords with a local header index total library rule base, compressing the header identification to obtain a compressed mark code;
s104, rapidly comparing the compressed tag codes with a local database, extracting corresponding local data if the compressed tag codes are hit, inquiring corresponding data from a cloud according to the header identification if the compressed tag codes are not hit, and receiving data returned by the cloud;
and S105, obtaining update data issued by the cloud according to a timing mechanism and updating the data, wherein the update data is data deleted by the cloud from target data locally stored in another intelligent terminal.
In the present embodiment, the card end includes, but is not limited to, an IC card/CPU card/NFC handheld device.
In a specific use scene, a user brings an IC (integrated circuit) card/CPU (central processing unit) card/NFC (near field communication) handheld device close to an intelligent terminal to swipe a card, the intelligent terminal firstly acquires a unique code of a card end, then encrypts the unique code by using an encryption algorithm to generate a character string key corresponding to the card end, then verifies the character string key based on a pre-constructed local header index master rule base, if the verification fails, the card end is a non-system authorization card, prompt information such as authentication failure is displayed on a display screen of the intelligent terminal, and if the verification succeeds, the card end is a system authorization card, the header identification is firstly compressed to obtain a compressed mark code, and it needs to be stated that the application provides that the number of character strings in the header identification can be effectively reduced by compressing the header identification, so that the retrieval efficiency is improved; and then the intelligent terminal quickly compares the compressed tag codes with the local database, if the compressed tag codes are hit, the basic information of the card end is stored in the local database, the basic information of the card end can be directly called from the local database and displayed on a display screen of the intelligent terminal, and if the compressed tag codes are not hit, the basic information of the card end is not stored in the local database, so that the basic information of the card end needs to be called from a cloud end and displayed on the display screen of the intelligent terminal.
Meanwhile, in order to reduce the occurrence of data redundancy, a timing mechanism is established in advance, for example, in a case of "10: 00-11: 00 "," 14: 00-16: 30 "," 00: 00-04: 00' and other non-busy hours, the cloud automatically sends update data to the intelligent terminal, for example, the cloud updates data to the intelligent terminal A and also updates data to the intelligent terminal B, and the difference is that target data to be stored is stored in the intelligent terminal A, and the target data originally stored in the intelligent terminal B is deleted, so that the target data can only be stored in one intelligent terminal, local data of the intelligent terminal B is optimized, and redundant data of the intelligent terminal B is reduced.
For example, the C card end originally bound with the a intelligent terminal is reset to be bound with the B intelligent terminal, the cloud end can issue different data updating requests to the a intelligent terminal and the B intelligent terminal respectively, specifically, an deleting requirement for deleting the basic information of the C card end is issued to the a intelligent terminal, the a intelligent terminal deletes the basic information originally stored in the local database of the a intelligent terminal based on the deleting requirement, and updates the local database of the a intelligent terminal, the cloud end can issue the basic information of the C card end to the B intelligent terminal, the B intelligent terminal receives the basic information of the C card end, stores and updates the local database of the B intelligent terminal, and meanwhile, the cloud end can update the data version information of the intelligent terminal.
According to the method and the device, the first aspect carries out algorithm encryption on the unique code of the card end, so that the safety of the intelligent terminal can be improved, and the situation of being utilized by a third party is reduced; according to the second aspect of the application, the compressed mark codes are compared in the local database, so that the comparison efficiency can be effectively improved, the normal reading and accessing of data are ensured, and the response timeliness of the data is ensured; according to the third aspect of the application, the cloud end is used for updating data of each intelligent terminal, the local database of each intelligent terminal is optimized, and the situation of redundant data removal is avoided.
In a specific embodiment, the string key further includes: the method comprises the steps of obtaining the equipment number of the intelligent terminal and updating verification information, wherein the updating verification information comprises an updating record used for recording the updating information and verification information used for verifying a local model of the intelligent terminal.
In this embodiment, the index tag mechanism is established in advance in the cloud or the background: "index summary table: device number library: non-local data: local data: update mechanism ".
The index summary table is used for recording each piece of data, establishing a total index table rule, and conforming to an encryption Key rule of an HMAC-SHA256 algorithm, for example, the encryption Key is 1B2C 3D: 123456, i.e., encryption Key, consists of encryption rules + range of business user data start numbers (1-99999999), it should be noted that the encryption Key is unique for each business or plant.
The equipment number library is used for establishing an intelligent terminal and' non-local data: local data: the update mechanism "corresponds the equipment serial number library one to quickly match data information and data calling, recording and the like, and specifically, the equipment serial number library stores n unique codes corresponding to the card terminals.
Wherein, the non-local data is mainly used for storing local non-high frequency data (redundant data);
the local data is mainly used for storing local high-frequency data;
wherein, the updating mechanism is to update the local data model according to a 'timing mechanism', and record the relevant iteration version number by incremental 0.1, such as: a1.1: used for recording the version number of the index summary table, and the version number of the next time is A1.2; b1.1: for recording the update mechanism version number, the next version number is B1.2.
In addition, according to the application, a data compression redundancy-prevention operation model is pre-built in a local database of the intelligent terminal, the data compression redundancy-prevention operation model is used for storing a header index total database rule base table, local header base table data and high-frequency user data (an L2 queue in a Two queue cache), and specifically, the data compression redundancy-prevention operation model is as follows: "intelligent terminal equipment number: header index master library rule base table: local header table data: update mechanism ", it should be noted that the local header table data is the stored user basic data. According to the data compression anti-redundancy operation model, the intelligent terminal can be matched with data information quickly through the data compression anti-redundancy operation model, and therefore the user experience comfort is improved.
In a specific embodiment, the step S101 includes the following steps:
s10, obtaining the unique code of the card end, and encrypting the unique code by using the target key based on the HMAC-SHA256 encryption algorithm to generate a character string key.
In this embodiment, after obtaining the unique code of the card end, the smart terminal inputs the unique code into the data compression redundancy prevention operation model, and the data compression redundancy prevention operation model encrypts the unique code by using the target key based on the HMAC-SHA256 encryption algorithm to generate a 32-bit character string key, for example, the unique code of the card end is HWD 0000000010001: HWDABC000ABC0ABC, then the string key obtained after encryption processing 32 is as follows: "789 fdmfd k92jg819, 3mf123m8, fjis, 2340", it should be noted that "789 fdmfd k92jg 819" represents a unique header rule value, "3 mf123m 8" represents a header identifier, "fjis" represents an intelligent terminal device number, and "2340" represents update check information for checking whether the local compression model of the "fjis" intelligent terminal is the latest version.
It should be noted that if the card end and the fjis intelligent terminal are to be unbound, 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 becomes 789fdmfd k92jg819, 3mf123M8, fjis, 2340 "and" 789fdmfd k92jg819, 3mf123M8, M, 2341 ", which represents that the card end and the M intelligent terminal are bound together, at this time, the cloud sends a deletion request for deleting the basic information of the card end to the fjis intelligent terminal according to a timing mechanism, and updates the local database of the fjis intelligent terminal, and simultaneously issues the basic information of the card end to the M intelligent terminal, and the M intelligent terminal receives the basic information of the card end, stores the basic information, and updates its own local data. It should be noted that, in the present application, each time the unique code is updated, 1 is added to the update verification information, that is, "2340" is changed to "2341" as shown above, that is, the cloud records information for each update, so as to manage version updates.
In step S102, by determining whether the unique header rule value "789 fdmfd k92jg 819" is within the range allowed by the local header index total library rule base, if the unique header rule value is within the running range, it is determined that the check is passed, otherwise, the check is not passed.
In a specific embodiment, the step S103 includes the following steps:
s20, traversing the local header index total library rule base, judging whether the local header index total library rule base has a target rule value which is the same as the unique header rule value, if not, executing the step S21, and if so, executing the step S22;
s21, ending and outputting a verification result;
and S22, based on the HMAC-SHA256 encryption algorithm, encrypting the header identification by using the target key to generate a compressed marker code.
In this embodiment, the data compression redundancy prevention operation model firstly checks the 32-bit string key and the local table header index total library rule base, specifically as follows: extracting a unique header rule value '789 fdmfdk92jg 818' in the 32-bit string key, judging whether the unique header rule value exists in a local header index total library rule base, if so, indicating that the card end is a system authorization card, checking the card end to be passed, outputting an operation set to be { tube }, if not, indicating that the card end is a non-system authorization card, checking the card end to be not passed, outputting the operation set to be { false }, and stopping the operation.
In the case of passing the verification, the present application encrypts the header identifier with the target key again based on the HMAC-SHA256 encryption algorithm to generate a compressed tag code, for example, the header identifier "3 mf123m 8" is encrypted to be compressed into a 4-bit compressed tag code "oaA 1", and the 4-bit compressed tag code can improve the retrieval efficiency by more than one time compared with the header identifier of 8-bit characters.
In a specific embodiment, the step S104 includes the following steps:
s30, performing range matching on the compressed tag code and a local database, if the compressed tag code is in the matching range, executing a step S31, and if the compressed tag code is not in the matching range, executing a step S32;
s31, reading the header of the card end, and positioning, extracting and outputting corresponding local data based on the header of the card end;
s32, reading the header of the card end, sending query information to a cloud end, enabling the cloud end to retrieve a cloud end database based on the header of the card end in the query information and return corresponding data, and enabling the intelligent terminal to receive and output the data returned by the cloud end.
In this embodiment, the local database of the smart terminal is traversed, whether "oaA 1" exists in the local database is determined, if "oaA 1" exists, it indicates that the local database has the basic information of the card end, and therefore the output operation set is { tube, oaA1, 1}, the header of the card end, for example, 0aa0, is read, and the output operation set is { tube, oaA1, 1, 0aa0}, then 0 th aa0 th data in an L2 queue (LRU queue) of the local database (Two Queues cache) is quickly located and extracted, and the 3525 th aa0 th data is displayed on the display screen of the smart terminal.
It should be noted that the query information of the application includes the header of the card end + the device number of the intelligent terminal + the version number, and the cloud locates the data corresponding to the header of the card end quickly, finds the device number table of the intelligent terminal, then issues the corresponding data to the intelligent terminal, and simultaneously updates the version number synchronously.
If the "oaA 1" does not exist, it indicates that the local database does not have the basic information of the card end, and therefore data needs to be requested from the cloud, and the specific process is as follows: the intelligent terminal obtains the header of the card end and sends query information to the cloud end, the cloud end retrieves in a cloud end database based on the header 0aa0 of the card end after receiving the query information, returns retrieved data to the intelligent terminal, and the intelligent terminal receives the data and then displays the data on a display screen.
In a specific embodiment, the step S31 includes the following steps:
s40, reading the head of the card end, positioning and extracting corresponding local data from the L2 queue of the local cache based on the head of the card end, and synchronously updating the L2 queue sequencing.
It should be noted that the data compression redundancy prevention operation model is built based on a Two queue cache algorithm, and comprises an L1 queue (FIFO queue) and an L2 queue (LRU queue), when data is accessed for the first time, the Two queue cache algorithm caches the data in the FIFO queue, and if the data is not accessed again in the FIFO queue, the data is finally eliminated according to the FIFO rule; if the data is accessed again in the FIFO queue, moving the data to the head of the LRU queue; if the data is accessed again at the LRU queue, the data is moved to the head of the LRU queue, and the data at the tail of the LRU queue is eliminated, thereby reducing the situation of data redundancy.
Since the local database is stored in the header "0 aa 0" of the card end, it indicates that the basic information of the card end is already stored in the L2 queue, so the intelligent terminal only needs to find the 0aa0 th data in the L2 queue.
In a specific embodiment, the step S32 includes the following steps:
s50, reading the header of the card end, sending query information to a cloud according to the header of the card end, enabling the cloud to decrypt the header of the card end, retrieving in a cloud database and returning corresponding data;
and S51, the intelligent terminal receives and outputs the data returned by the cloud end, and updates the queue sequencing of the L1 cached locally.
In this embodiment, since the local database does not have the header "0 aa 0" of the card end, it indicates that the local database does not store the basic information of the card end before, and the output operation set is { future, oaA1, 0, 0aa0}, the intelligent terminal needs to send query information to the cloud, the cloud decrypts the header "0 aa 0" of the card end based on the query information, retrieves the cloud database by using the decrypted data, extracts and sends the retrieved data to the intelligent terminal, and the intelligent terminal stores the data in the L1 queue and displays the data on the display screen after receiving the data, and updates the L1 queue.
The embodiment of the invention also provides an intelligent terminal data compression redundancy prevention interaction device, which is used for executing any embodiment of the intelligent terminal data compression redundancy prevention interaction method. Specifically, please refer to fig. 2, wherein fig. 2 is a schematic block diagram of an intelligent terminal data compression redundancy prevention interaction apparatus according to an embodiment of the present invention.
As shown in fig. 2, the intelligent terminal data compression anti-redundancy interaction apparatus 500 includes:
an encryption unit 501, configured to obtain a unique code of a card end, and encrypt the unique code by using an encryption algorithm to generate a corresponding string key, where the string key includes: a unique header rule value and a header identification;
a checking unit 502, configured to check the unique header rule value with a local header index total library rule base;
a compressing unit 503, configured to compress the header identifier to obtain a compressed tag code if the unique header rule value matches a local header index total library rule base;
the query unit 504 is configured to quickly compare the compressed tag codes with a local database, extract corresponding local data if the compressed tag codes are hit, query corresponding data to a cloud according to the header identifier if the compressed tag codes are not hit, and receive data returned by the cloud;
the updating unit 505 is configured to obtain update data issued by the cloud according to a timing mechanism, where the update data is data deleted by the cloud from target data locally stored in another intelligent terminal.
The first aspect of the device encrypts the unique code of the card end by an algorithm, so that the safety of the intelligent terminal can be improved, and the situation of utilization by a third party is reduced; according to the second aspect of the application, the compressed mark codes are compared in the local database, so that the comparison efficiency can be effectively improved, the normal reading and accessing of data are ensured, and the response timeliness of the data is ensured; in the third aspect of the application, the cloud end is used for updating data of each intelligent terminal, the local database of each intelligent terminal is optimized, and the situation of redundant data removal is avoided.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The intelligent terminal data compression redundancy-prevention interaction device can be implemented in the form of a computer program, and the computer program can be run on a computer device as shown in fig. 3.
Referring to fig. 3, fig. 3 is a schematic block diagram of a computer device according to an embodiment of the present invention. The computer device 1100 is a server, and the server may be an independent server or a server cluster including a plurality of servers.
Referring to fig. 3, the computer device 1100 includes a processor 1102, memory and network interface 1105 connected by a system bus 1101, where the memory may include non-volatile storage media 1103 and internal memory 1104.
The non-volatile storage medium 1103 may store an operating system 11031 and computer programs 11032. The computer program 11032, when executed, may cause the processor 1102 to perform an intelligent terminal data compression anti-redundancy interaction method.
The processor 1102 is configured to provide computing and control capabilities that support the operation of the overall computing device 1100.
The internal memory 1104 provides an environment for running the computer program 11032 in the non-volatile storage medium 1103, and when the computer program 11032 is executed by the processor 1102, the processor 1102 may enable the processor 1102 to execute the intelligent terminal data compression anti-redundancy interaction method.
The network interface 1105 is used for network communications, such as to provide for the transmission of data information. Those skilled in the art will appreciate that the configuration shown in fig. 3 is a block diagram of only a portion of the configuration associated with aspects of the present invention and is not intended to limit the computing device 1100 to which aspects of the present invention may be applied, and that a particular computing device 1100 may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
Those skilled in the art will appreciate that the embodiment of a computer device illustrated in fig. 3 does not constitute a limitation on the specific construction of the computer device, and in other embodiments a computer device may include more or fewer components than those illustrated, or some components may be combined, or a different arrangement of components. For example, in some embodiments, the computer device may only include a memory and a processor, and in such embodiments, the structures and functions of the memory and the processor are consistent with those of the embodiment shown in fig. 3, and are not described herein again.
It should be understood that, in the present embodiment, the Processor 1102 may be a Central Processing Unit (CPU), and the Processor 1102 may also be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field-Programmable Gate arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, etc. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
In another embodiment of the invention, a computer-readable storage medium is provided. The computer readable storage medium may be a non-volatile computer readable storage medium. The computer readable storage medium stores a computer program, wherein the computer program, when executed by a processor, implements the intelligent terminal data compression anti-redundancy interaction method of the embodiments of the present invention.
The storage medium is an entity and non-transitory storage medium, and may be various entity storage media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, or an optical disk.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses, devices and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
While the invention has been described with reference to specific embodiments, the invention is not limited thereto, and various equivalent modifications and substitutions can be easily made by those skilled in the art within the technical scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. An intelligent terminal data compression redundancy-prevention interaction method is applied to an intelligent terminal and is characterized by comprising the following steps:
obtaining a unique code of a card end, encrypting the unique code through an encryption algorithm to generate a corresponding character string key, wherein the character string key comprises: a unique header rule value and a header identification;
checking the unique header rule value with a local header index total library rule base;
if the unique header rule value accords with a local header index total library rule base, compressing the header identification to obtain a compressed marker code;
the compressed tag codes are quickly compared with a local database, if the compressed tag codes are hit, corresponding local data are extracted, if the compressed tag codes are not hit, corresponding data are inquired from a cloud end according to the header identification, and data returned by the cloud end are received;
and obtaining update data issued by the cloud according to a timing mechanism and updating the data, wherein the update data is data deleted by the cloud from target data locally stored in another intelligent terminal.
2. The intelligent terminal data compression redundancy-prevention interaction method as claimed in claim 1, wherein the obtaining of the unique code of the card end, the encrypting of the unique code by the encryption algorithm to generate the corresponding string key, comprises:
and acquiring a unique code of the card end, and encrypting the unique code by using a target key based on an HMAC-SHA256 encryption algorithm to generate a character string key.
3. The intelligent terminal data compression redundancy-prevention interaction method of claim 1, wherein the checking the unique header rule value against a local header index total library rule base, and if the unique header rule value conforms to the local header index total library rule base, compressing the header identifier to obtain a compressed tag code comprises:
traversing the local header index master rule base, judging whether the local header index master rule base has a target rule value which is the same as the unique header rule value, if not, ending and outputting a verification result; and if the header identifier exists, based on an HMAC-SHA256 encryption algorithm, encrypting the header identifier by using the target key to generate a compressed marker code.
4. The intelligent terminal data compression redundancy-prevention interaction method according to claim 3, wherein the fast comparison of the compression tag codes with a local database is performed, if the compression tag codes are hit, corresponding local data are extracted, if the compression tag codes are not hit, corresponding data are inquired from a cloud according to the header identifier, and data returned by the cloud are received, and the method comprises the following steps:
performing range matching on the compressed tag code and a local database, reading a header of the card end if the compressed tag code is in the matching range, and positioning, extracting and outputting corresponding local data based on the header of the card end;
and if the compressed mark code is not in the matching range, reading the header of the card end, sending query information to a cloud end, enabling the cloud end to retrieve a cloud end database based on the header of the card end in the query information and return corresponding data, and enabling the intelligent terminal to receive and output the data returned by the cloud end.
5. The intelligent terminal data compression redundancy-prevention interaction method according to claim 4, wherein the reading of the header of the card end, and based on the header of the card end, positioning, extracting and outputting corresponding local data comprises:
and reading the head of the card end, positioning and extracting corresponding local data from an L2 queue of a local cache based on the head of the card end, and synchronously updating the L2 queue sequencing.
6. The intelligent terminal data compression redundancy-prevention interaction method of claim 4, wherein the reading of the header of the card end and the sending of query information to a cloud end, the cloud end retrieving a cloud end database based on the header of the card end in the query information and returning corresponding data, and the intelligent terminal receiving and outputting the data returned by the cloud end comprises:
reading the header of the card end, sending query information to a cloud according to the header of the card end, enabling the cloud to decrypt the header of the card end, retrieving the header in a cloud database and returning corresponding data;
and the intelligent terminal receives and outputs the data returned by the cloud end, and simultaneously updates the queue sequencing of the L1 cached locally.
7. The intelligent terminal data compression redundancy-prevention interaction method according to claim 1, wherein the string key further comprises: the method comprises the steps of obtaining the equipment number of the intelligent terminal and updating verification information, wherein the updating verification information comprises an updating record used for recording the updating information and verification information used for verifying a local model of the intelligent terminal.
8. The utility model provides an intelligent terminal data compression prevents redundant interaction device which characterized in that includes:
the encryption unit is used for acquiring a unique code of a card end and encrypting the unique code through an encryption algorithm to generate a corresponding character string key, wherein the character string key comprises: a unique header rule value and a header identification;
the checking unit is used for checking the unique header rule value and a local header index total library rule base;
the compression unit is used for compressing the header identification to obtain a compressed marker code if the unique header rule value conforms to a local header index total library rule base;
the query unit is used for rapidly comparing the compressed tag codes with a local database, extracting corresponding local data if the compressed tag codes are hit, querying corresponding data from a cloud according to the header identification if the compressed tag codes are not hit, and receiving data returned by the cloud;
the updating unit is used for acquiring updating data issued by the cloud according to a timing mechanism, wherein the updating data is data deleted by the cloud from target data locally stored in another intelligent terminal.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the intelligent terminal data compression anti-redundancy interaction method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when executed by a processor, causes the processor to execute the intelligent terminal data compression redundancy prevention interaction method according to any one of claims 1 to 7.
CN202210324609.9A 2022-03-29 2022-03-29 Intelligent terminal data compression redundancy-prevention interaction method and device and related components Pending CN114691617A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210324609.9A CN114691617A (en) 2022-03-29 2022-03-29 Intelligent terminal data compression redundancy-prevention interaction method and device and related components

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210324609.9A CN114691617A (en) 2022-03-29 2022-03-29 Intelligent terminal data compression redundancy-prevention interaction method and device and related components

Publications (1)

Publication Number Publication Date
CN114691617A true CN114691617A (en) 2022-07-01

Family

ID=82140367

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210324609.9A Pending CN114691617A (en) 2022-03-29 2022-03-29 Intelligent terminal data compression redundancy-prevention interaction method and device and related components

Country Status (1)

Country Link
CN (1) CN114691617A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116132021A (en) * 2023-04-04 2023-05-16 深圳市聚力得电子股份有限公司 Method for sending card swiping data of card swiping device
CN116701380A (en) * 2023-08-02 2023-09-05 长扬科技(北京)股份有限公司 Method and device for clearing redundant data based on Openstack

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116132021A (en) * 2023-04-04 2023-05-16 深圳市聚力得电子股份有限公司 Method for sending card swiping data of card swiping device
CN116132021B (en) * 2023-04-04 2023-06-16 深圳市聚力得电子股份有限公司 Method for sending card swiping data of card swiping device
CN116701380A (en) * 2023-08-02 2023-09-05 长扬科技(北京)股份有限公司 Method and device for clearing redundant data based on Openstack
CN116701380B (en) * 2023-08-02 2023-10-27 长扬科技(北京)股份有限公司 Method and device for clearing redundant data based on Openstack

Similar Documents

Publication Publication Date Title
CN109791591B (en) Method and system for identity and credential protection and verification via blockchain
WO2019205380A1 (en) Electronic device, blockchain-based data processing method and program, and computer storage medium
CN114691617A (en) Intelligent terminal data compression redundancy-prevention interaction method and device and related components
CN109815746B (en) Data tamper-proofing method and system based on block chain technology
CN111274268A (en) Internet of things data transmission method, device, medium and electronic equipment
CN108881261B (en) Service authentication method and system based on block chain technology in container environment
CN111488626A (en) Data processing method, device, equipment and medium based on block chain
CN111651779B (en) Privacy protection method for encrypted image retrieval in block chain
CN112468409A (en) Access control method, device, computer equipment and storage medium
CN108108633B (en) Data file and access method, device and equipment thereof
CN112445783A (en) Method, device and server for updating database
US11394748B2 (en) Authentication method for anonymous account and server
US20230144072A1 (en) Data storage server and client devices for securely storing data
CN111831744A (en) DAPP on-chain data retrieval system, method and medium
CN111291001A (en) Reading method and device of computer file, computer system and storage medium
CN108241732B (en) Electronic device, information processing method, and storage medium
US11947522B2 (en) Method and system for pruning blocks from blockchains for data retention and storage scalability purposes
CN115935414A (en) Block chain based data verification method and device, electronic equipment and storage medium
CN114519360A (en) Data reading and writing method, login method and device of business system and computer equipment
JP2015061267A (en) Key generation control device and key generation storage system
CN110995440B (en) Work history confirming method, device, equipment and storage medium
KR101913013B1 (en) System and method for gs1 based thing information searching service
CN110032834B (en) System authorization control method, terminal equipment and storage medium
CN112732789A (en) Searchable encryption method based on block chain and electronic equipment
KR20150145814A (en) Namecard management system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination