CN110535962A - Method of data synchronization, device, equipment and storage medium based on authenticating device - Google Patents

Method of data synchronization, device, equipment and storage medium based on authenticating device Download PDF

Info

Publication number
CN110535962A
CN110535962A CN201910828364.1A CN201910828364A CN110535962A CN 110535962 A CN110535962 A CN 110535962A CN 201910828364 A CN201910828364 A CN 201910828364A CN 110535962 A CN110535962 A CN 110535962A
Authority
CN
China
Prior art keywords
data
card
synchronized
legal
write
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.)
Granted
Application number
CN201910828364.1A
Other languages
Chinese (zh)
Other versions
CN110535962B (en
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.)
Hitachi Building Technology Guangzhou Co Ltd
Original Assignee
Hitachi Building Technology Guangzhou 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 Hitachi Building Technology Guangzhou Co Ltd filed Critical Hitachi Building Technology Guangzhou Co Ltd
Priority to CN201910828364.1A priority Critical patent/CN110535962B/en
Publication of CN110535962A publication Critical patent/CN110535962A/en
Application granted granted Critical
Publication of CN110535962B publication Critical patent/CN110535962B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K17/00Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
    • G06K17/0022Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisious for transferring data to distant stations, e.g. from a sensing device
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Storage Device Security (AREA)
  • Time Recorders, Dirve Recorders, Access Control (AREA)

Abstract

The embodiment of the invention discloses a kind of method of data synchronization based on authenticating device, device, equipment and storage mediums, this method comprises: when detecting card, the user right data in the card are obtained, and judge whether the card is legal card based on the user right data;When the card is legal card, check whether the legal card is stored with the first data to be synchronized;If the legal card is stored with the first data to be synchronized, the described first data to be synchronized are stored to target authentication equipment.The embodiment of the present invention may be implemented in do not increase any hardware cost in the case where, it is realized by the legal card in user hand synchronous to the data of target authentication equipment, and the mobility using user, when user accesses different authenticating devices, it realizes synchronous to the batch data of all authenticating devices in goal systems belonging to target authentication equipment, the workload that related management personnel can be substantially reduced as a result, effectively improves related management efficiency.

Description

Method of data synchronization, device, equipment and storage medium based on authenticating device
Technical field
The present embodiments relate to data synchronization technology field more particularly to a kind of data sides of synchronization based on authenticating device Method, device, equipment and storage medium.
Background technique
It is used to deposit using the memory space for having 1K~4K on most universal, widest standard gate inhibition card on the market at present The permissions data etc. for storing up holder, using this characteristic of card, in the same flogic system (the same cell, same storied building Or same floor) in set up multiple authenticating devices (such as elevator card reader), pass through certification card, i.e., reading card on data And parsed, card and the permission of holder can be obtained, carries out card without authenticating device is connected to administrative center And the certification of holder's permission.
Certain memory space can be generally had inside authenticating device, for storing swipe the card record, black and white lists management etc., and Since each authenticating device is independent, (what each authenticating device showed is offline topological structure, i.e., each authenticating device is only Vertical to complete certification, there is no any physical connections between each other), therefore, between each authenticating device can not carry out data it is autonomous, Real-time synchronization.Currently, in the off-line integrated circuits such as gate inhibition, elevator (Integrated Circuit, IC) card system, it is each to authenticate The synchronous method of data is carried out between equipment, and there are mainly two types of:
1, successively each target authentication equipment is carried out by upper computer software or other external equipments (such as handheld device) Data update operation, to realize that each device data is synchronous.
2, distribution one or more has the management card of data to be synchronized, successively carries out the behaviour that swipes the card to each authenticating device Make, during swiping the card, data to be synchronized are sequentially transmitted in each authenticating device.
The above-mentioned method of data synchronization about authenticating device, its shortcoming is that, need (such as Property Mgmt Dept, card issuing side Door, enterprise and institution management department etc.) data simultaneously operating successively is carried out to each authenticating device, increase the work of related management personnel It measures, affects related management efficiency.
Summary of the invention
The embodiment of the present invention provides a kind of method of data synchronization based on authenticating device, device, equipment and storage medium, with It realizes in the case where not increasing any hardware cost, using the mobility of user, is realized by the legal card in user hand It is synchronous to the data of target authentication equipment.
In a first aspect, the embodiment of the invention provides a kind of method of data synchronization based on authenticating device, this method comprises:
When detecting card, the user right data in the card are obtained, and judge based on the user right data Whether the card is legal card;
When the card is legal card, check whether the legal card is stored with the first data to be synchronized;
If the legal card is stored with the first data to be synchronized, the described first data to be synchronized are stored to target and are recognized Demonstrate,prove equipment.
Second aspect, the embodiment of the invention also provides a kind of data synchronization unit based on authenticating device, the device packets It includes:
Card detection module when for detecting card, obtains the user right data in the card, and based on described User right data judge whether the card is legal card;
First checks module, for when the card is legal card, checking whether the legal card is stored with the One data to be synchronized;
Data memory module, if the first data to be synchronized are stored with for the legal card, by described first to same Step data is stored to target authentication equipment.
The third aspect, the embodiment of the invention also provides a kind of authenticating device, which includes:
One or more processors;
Storage device, for storing one or more programs;
One or more of programs are executed by one or more of processors, so that one or more of processors Realize the method for data synchronization based on authenticating device as described in first aspect of the embodiment of the present invention.
Fourth aspect, the embodiment of the invention also provides a kind of computer readable storage mediums, are stored thereon with computer Program, when the computer program is executed by processor realize as described in first aspect of the embodiment of the present invention based on authenticating device Method of data synchronization.
The embodiment of the present invention is realized in the case where not increasing any hardware cost, passes through the legal card in user hand It completes to synchronize the data of target authentication equipment, and using the mobility of user, when user accesses different authenticating devices, It realizes and the batch data of all authenticating devices in goal systems belonging to target authentication equipment is synchronized, greatly reduce as a result, The workload of related management personnel effectively increases related management efficiency.
Detailed description of the invention
Fig. 1 is a kind of flow diagram for method of data synchronization based on authenticating device that the embodiment of the present invention one provides;
Fig. 2 is a kind of flow diagram of method of data synchronization based on authenticating device provided by Embodiment 2 of the present invention;
Fig. 3 is a kind of application schematic diagram of method of data synchronization based on authenticating device provided by Embodiment 2 of the present invention;
Fig. 4 is a kind of flow diagram for method of data synchronization based on authenticating device that the embodiment of the present invention three provides;
Fig. 5 is a kind of structural schematic diagram for data synchronization unit based on authenticating device that the embodiment of the present invention four provides;
Fig. 6 is a kind of structural schematic diagram for authenticating device that the embodiment of the present invention five provides.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining the present invention rather than limiting the invention.In addition, in the absence of conflict, this The feature in embodiment and embodiment in invention can be combined with each other.It also should be noted that for ease of description, it is attached Only the parts related to the present invention are shown in figure rather than entire infrastructure.
Embodiment one
Fig. 1 is a kind of flow diagram for method of data synchronization based on authenticating device that the embodiment of the present invention one provides Flow chart, the present embodiment are applicable in the case where not increasing any hardware cost, real by the legal card in user hand Now to the data syn-chronization situation of target authentication equipment, this method can by being executed based on the data synchronization unit of authenticating device, The device can be realized by way of software and/or hardware, and can be integrated in authenticating device.
It is understood that can be deposited in the same goal systems (such as same cell, same storied building or same floor) In multiple authenticating devices, each authenticating device has certain memory space, for storing swipe the card record, black and white lists management Etc. data, these data can be updated with the access of user.For same goal systems, respectively authenticated in goal systems Data in equipment are general, but since the corresponding access user of different authentication equipment is often not exactly the same, different Data in authenticating device are also not exactly the same, use it is thereby possible to will appear the same user in A authenticating device for white list Family, and situations such as be black list user in B authenticating device, this can seriously reduce user experience and related service and management water It is quasi-.Therefore, realizing and the data in same goal systems between each authenticating device is kept to synchronize is particularly important;However target system Each authenticating device is all often that complete independently authenticates in system, between each other not any physical connection, this makes target system It cannot achieve autonomous, the real-time synchronization of data in system between each authenticating device.
It is a primary object of the present invention to utilize the existing read-write capability of authenticating device, when certification any in goal systems is set When standby generation data to be synchronized, generated data to be synchronized are written to any access authenticating device by the authenticating device Legitimate user (user i.e. in the goal systems) card in, later utilize user mobility, when the legitimate user visit When asking other authenticating devices in goal systems, the data to be synchronized are read by other authenticating devices, is achieved in and is not increasing In the case where adding any hardware cost, complete synchronous to the data of authenticating device each in goal systems.
It should be noted that the authenticating device for being used to execute data simultaneously operating is determined as mesh in the embodiment of the present invention Authenticating device is marked, therefore, the target authentication equipment can be determined as to holding for the method for data synchronization based on authenticating device Row main body, and system belonging to the target authentication equipment is determined as goal systems.
As shown in Figure 1, the method for data synchronization provided in this embodiment based on authenticating device, specifically comprises the following steps:
S101, when detecting card, the user right data in the card are obtained, and be based on the user right data Judge whether the card is legal card.
Wherein, the user right data can refer to by card issuing side (such as administration departments, enterprise and institution management department Deng) it is that card user opens and allows to enter and leave goal systems (such as cell, building, floor, room, gate inhibition's pipe in elevator region Reason system) right of access when, the data that are written in the card.The legal card can be understood as having described in discrepancy The card of the right of access of goal systems.
Optionally, this step can read the data in the card, and right by target authentication equipment when detecting card The data are parsed, and the user right data are analytically obtained in resulting data, later, are based on the user right Data judge whether the card is legal card.
Optionally, target authentication equipment is after obtaining the user right data, by the user right data with it is described Preset rights database is compared in authenticating device, if the user right data are being included in the rights database In, then the card is determined as legal card.
Optionally, target authentication equipment, according to the user right data, determines after obtaining the user right data Whether the user of the card is legitimate user in the goal systems;If the user of the card is in the goal systems Legitimate user, it is determined that the card be legal card.
S102, when the card is legal card, check whether the legal card is stored with the first data to be synchronized.
Wherein, the described first data to be synchronized refer to that (target authentication is set by other any authenticating devices in goal systems Authenticating device other than standby) it is written in the legal card and is not synchronized to the data to be synchronized in target authentication equipment.Institute State data to be synchronized be understood that it is described to be written to by any authenticating device (including target authentication equipment) in goal systems The data in all authenticating devices in legal card and in not synchronous goal systems.
It is understood that by the legal card by the first data to be synchronized be synchronized to target authentication equipment it Before, need first to determine the described first data to be synchronized whether are stored in the legal card, at this time, in fact it could happen that the case where Have, there are data to be synchronized, but the data to be synchronized have been synchronized in target authentication equipment, Huo Zhesuo in the legal card It states and does not have data to be synchronized in legal card, both of these case belongs to that the legal card is not stored the first number to be synchronized According to the case where;It is described only when being stored with the data to be synchronized not being synchronized in target authentication equipment in the legal card Legal card is just stored with the first data to be synchronized.
Optionally, the legal card is equipped with data synchronization zone, and target authentication equipment obtains in the data synchronization zone The corresponding more new information of storing data carries out the target update information in the more new information and the target authentication equipment pair Than obtaining comparing result, being based on the comparing result, determine whether the storing data is the first data to be synchronized.Wherein, institute State data synchronization zone refer to be set in the legal card dedicated for storage goal systems in each authenticating device to same The storage region of step data.
Optionally, the corresponding more new packets of the storing data contain versions of data number and/or temporal information.Wherein, institute Stating versions of data number can be the more new version number established when updating the storing data every time for the storing data, described Versions of data number changes with the update order of the storing data, and such as versions of data number is secondary with the update of the storing data The increase of sequence and increase.The temporal information can indicate the renewal time of storing data, such as can be and the storing data is written When time data etc..Correspondingly, if the versions of data number in the more new information is greater than the number in the target update information According to version number, and/or, the temporal information in the more new information is later than the temporal information in the target update information, then will The storing data is determined as the first data to be synchronized.
If S103, the legal card are stored with the first data to be synchronized, by the described first data to be synchronized store to Target authentication equipment.
It is understood that being read when target authentication equipment confirms that the legal card is stored with the first data to be synchronized It takes and stores the described first data to be synchronized to target authentication equipment, it is to be synchronized to described first that target authentication equipment can be realized The synchronization of data.
The embodiment of the present invention may be implemented in do not increase any hardware cost in the case where, pass through the legal card in user hand It completes to synchronize the data of target authentication equipment, and using the mobility of user, when user accesses different authenticating devices, It realizes and the batch data of all authenticating devices in goal systems belonging to target authentication equipment is synchronized, greatly reduce as a result, The workload of related management personnel effectively increases related management efficiency.
Further, as an alternative embodiment of the present embodiment one, the present embodiment one is to be synchronized by described first Data are synchronized to after target authentication equipment, and also optimization includes:
Obtain the corresponding device flag position data of the described first data to be synchronized;
Determine whether the described first data to be synchronized have been synchronized in goal systems according to device flag position data All authenticating devices, the goal systems are system belonging to the target authentication equipment;
If first data to be synchronized have been synchronized to all authenticating devices in goal systems, by described first to same Step data is deleted from legal card.
Wherein, device flag position data are for indicating that all authenticating devices are to be synchronized to described first in goal systems The data syn-chronization situation of data.
Optionally, after authenticating device any in goal systems completion synchronizes the data of the described first data to be synchronized, The authenticating device is written in the legal card with corresponding identification information, optionally, by the legal card with Home position corresponding with the authenticating device can be such as " 1 " by the corresponding flag bit set of the authenticating device, so that Each authenticating device in goal systems has a corresponding flag bit in the legal card.When corresponding flag bit is When " 1 ", indicate that the synchronization to the described first data to be synchronized is completed in corresponding authenticating device;When corresponding flag bit is " 0 " When, indicate that corresponding authenticating device does not complete the synchronization to the described first data to be synchronized also.
It is understood that all identification informations constitute device flag position corresponding with the described first data to be synchronized Data can determine whether in goal systems which authenticating device has been completed to described by obtaining device flag position data i.e. The synchronization of first data to be synchronized, which authenticating device do not complete the synchronization to the described first data to be synchronized also;And when described It, can be by the described first data to be synchronized from legal when first data to be synchronized have been synchronized to all authenticating devices in goal systems It is deleted in card, to discharge the memory space that the described first data to be synchronized occupy in the legal card.
Optionally, before the corresponding device flag position data of the data to be synchronized of acquisition described first, further includes:
The corresponding identification information of the target authentication equipment is written in the legal card, to update described first to same The corresponding device flag position data of step data.
It is understood that being will be described due to obtaining the corresponding device flag position data of first data to be synchronized First data to be synchronized are synchronized to after target authentication equipment, at this point, target authentication equipment is in the data of the device flag position Corresponding identification information may also have not enough time to update, therefore, according to device flag position data determine described first to It, can be only according to mesh in the data of the device flag position when whether synchrodata has been synchronized to all authenticating devices in goal systems The corresponding identification information of authenticating device other than mark authenticating device is judged.This optinal plan be obtain described first to Before the corresponding device flag position data of synchrodata, the corresponding identification information of target authentication equipment is written to the conjunction in time In method card, with the target authentication equipment corresponding identification information in the data of the device flag position that timely updates.
Embodiment two
Fig. 2 is a kind of flow diagram of method of data synchronization based on authenticating device provided by Embodiment 2 of the present invention, The present embodiment advanced optimizes on the basis of example 1.The present embodiment described will judge institute based on the user right data State whether card is legal card, be embodied as: according to the user right data, determining whether the user of the card is institute State the legitimate user in goal systems;If the user of the card is the legitimate user in the goal systems, it is determined that described Card is legal card.
Also after checking whether the legal card is stored with the first data to be synchronized, optimization increases the present embodiment: Check whether the target authentication equipment is stored with the second data to be synchronized;If the target authentication equipment is stored with second to same Described second data to be synchronized are then written in the legal card by step data.
As shown in Fig. 2, the method for data synchronization provided in this embodiment based on authenticating device, specifically comprises the following steps:
S201, when detecting card, the user right data in the card are obtained.
S202, according to the user right data, determine whether the user of the card is conjunction in the goal systems Method user;If so, executing S203;Otherwise, end operation.
S203, determine that the card is legal card.
S204, check whether the legal card is stored with the first data to be synchronized;If so, then executing S205;Otherwise, it holds Row S210.
S205, the described first data to be synchronized are stored to target authentication equipment.
S206, the corresponding identification information of the target authentication equipment is written in the legal card, to update described The corresponding device flag position data of one data to be synchronized.
S207, the corresponding device flag position data of the data to be synchronized of acquisition described first.
S208, determine whether the described first data to be synchronized have been synchronized to goal systems according to device flag position data In all authenticating devices;If so, executing S209;Otherwise, S210 is executed.
S209, the described first data to be synchronized are deleted from legal card.
S210, check whether the target authentication equipment is stored with the second data to be synchronized;If so, then executing S211;It is no Then, end operation.
Wherein, the described second data to be synchronized refer to by target authentication equipment generate it is to be synchronized into goal systems other The data to be synchronized of authenticating device.
S211, the described second data to be synchronized are written in the legal card, and end operation.
It is understood that target authentication equipment can also generate to be synchronized as one of the authenticating device in goal systems Data therefore, can be to be synchronized by described second when checking the target authentication equipment and being stored with the second data to be synchronized Data are written in the legal card, to utilize the mobility of user, when user passes through the legal card access target system When other authenticating devices in system, the described second data to be synchronized can be synchronized to other authenticating devices, specific synchronizing process with The target authentication equipment is identical to the synchronizing process of the described first data to be synchronized.
Fig. 3 is a kind of application schematic diagram of method of data synchronization based on authenticating device provided by Embodiment 2 of the present invention, Illustratively, as shown in figure 3, the method for data synchronization process based on authenticating device of this application example offer is as follows:
(1) new data (such as writing data blocks D1, data block D2, data block D3) is written in equipment 1;
(2) user A, user the B normal swipe at equipment 1 respectively carry the data block D1 in equipment 1 in user's A card, The data block D2 in equipment 1 is carried in user's B card;
(3) user A, user B go equipment 2 respectively, swipe the card in equipment 3, and data block D1, D2 of carrying is updated to equipment 2, in equipment 3;
(4) user A, user B go equipment 1 to swipe the card, and carry data block D3 respectively next times, they go equipment 2 respectively, set It swipes the card at standby 3, and the data block D3 of carrying is updated into equipment 2, equipment 3;
(5) so far, the data of all equipment have synchronized, and the residual data in subscriber card is removed.
The embodiment of the present invention may be implemented in do not increase any hardware cost in the case where, pass through the legal card in user hand It completes to synchronize the data of target authentication equipment, and using the mobility of user, when user accesses different authenticating devices, It realizes and the batch data of all authenticating devices in goal systems belonging to target authentication equipment is synchronized, greatly reduce as a result, The workload of related management personnel effectively increases related management efficiency.
Embodiment three
Fig. 4 is a kind of flow diagram for method of data synchronization based on authenticating device that the embodiment of the present invention three provides, The present embodiment advanced optimizes on the basis of example 2.The present embodiment checks whether the legal card is stored with for described First data to be synchronized, are embodied as: obtaining the corresponding more new information of storing data in the data synchronization zone;By described in more New information is compared with the target update information in the target authentication equipment, obtains comparing result;It is tied based on the comparison Fruit determines whether the storing data is the first data to be synchronized.
The present embodiment is also stored by the described first data to be synchronized to before target authentication equipment, and optimization increases: from The described first data to be synchronized are read in the legal card;The first data to be synchronized read are verified;If verification Pass through, then executes the step of storing the described first data to be synchronized to target authentication equipment;Otherwise, first read is abandoned Data to be synchronized.
It is to be synchronized by described second if the target authentication equipment is also stored with the second data to be synchronized by the present embodiment Data are written in the legal card, are embodied as: if the target authentication equipment is stored with the second data to be synchronized, really The capability value of free storage in the fixed legal card;Target is determined according to the capability value and preset charge time information Data volume is written;It chooses data volume and is no more than corresponding second data to be synchronized of target write-in data volume, and selection is arrived The second data to be synchronized be written in the free storage.
As shown in figure 4, the method for data synchronization provided in this embodiment based on authenticating device, specifically comprises the following steps:
S301, when detecting card, the user right data in the card are obtained.
S302, according to the user right data, determine whether the user of the card is conjunction in the goal systems Method user;If so, executing S303;Otherwise, end operation.
S303, determine that the card is legal card.
S304, the legal card are equipped with data synchronization zone, and the storing data obtained in the data synchronization zone is corresponding More new information.
Optionally, the corresponding more new packets of the storing data contain versions of data number and/or temporal information.
S305, the more new information and the target update information in the target authentication equipment are compared, is obtained pair Compare result.
S306, it is based on the comparing result, determines whether the storing data is the first data to be synchronized;If so, holding Row S307;Otherwise, end operation.
S307, the described first data to be synchronized are read from the legal card.
S308, the first data to be synchronized read are verified.
It should be noted that when carrying out data interaction between target authentication equipment and the legal card, using mark Quasi-, general card read-write protocol.If for example, radio frequency identification (Radio Frequency Identification, RFID) block, be then Radio Transfer Protocol ISO14443;It is then the read-write protocol ISO7816 of standard if Contact Type Ic Card.Tool Volume data transformat can be defined in specific implementation by user.
Optionally, the first data to be synchronized read are verified based on the data transmission format pre-established.Its In, the data transmission format may include that target authentication equipment and the data of the legal card completion data transmission are long Degree, the data length can be determined based on preset charge time information, when the charge time information can be user card punching, Most short effective recognition time of the target authentication equipment to the legal card.
S309, judge whether verification passes through, if verification passes through, execute S310;Otherwise S311 is executed.
S310, the described first data to be synchronized are stored to target authentication equipment, and executes S312.
The first data to be synchronized that S311, discarding are read, and return and execute S307.
S312, the corresponding identification information of the target authentication equipment is written in the legal card, to update described The corresponding device flag position data of one data to be synchronized.
S313, the corresponding device flag position data of the data to be synchronized of acquisition described first.
S314, determine whether the described first data to be synchronized have been synchronized to goal systems according to device flag position data In all authenticating devices;If so, executing S315;Otherwise, S316 is executed
S315, the described first data to be synchronized are deleted from legal card, and executes S316.
S316, check whether the target authentication equipment is stored with the second data to be synchronized;If so, then executing S317;It is no Then, end operation.
S317, the capability value for determining free storage in the legal card.
Wherein, the free storage refers to be unappropriated data synchronization zone in the legal card;Optionally, institute Stating free storage can also refer to that other than data synchronization zone unappropriated memory block in the legal card.
Optionally, when the capability value of free storage in the legal card is 0, check in the legal card whether Data can be cleared up by having;If so, data can be cleared up described in then removing;Otherwise, end operation.
S318, determine that data volume is written in target according to the capability value and preset charge time information.
Wherein, when the charge time information can be user card punching, target authentication equipment to the legal card most Short effective recognition time, the target write-in data volume refers to be determined according to the capability value and preset charge time information The legal card currently allow be written maximum amount of data.
Optionally, described to determine that data volume is written in target according to the capability value and preset charge time information, it can be excellent Turn to following steps S31~S34:
S31, the first write-in data volume is determined based on the capability value, and determine that second writes based on the charge time information Enter data volume.
Wherein, the first write-in data volume can be understood as working as according to the legal card determined by the capability value The preceding maximum amount of data for allowing to be written, optionally, the value of the first write-in data volume are equal to the capability value.
The second write-in data volume can be understood as according to the legal card determined by the charge time information Currently allow the maximum amount of data being written, optionally, the value of the second write-in data volume is equal to the target authentication equipment pair Most short effective recognition time of the legal card and the target authentication equipment read the minimum data of the legal card The product of rate.
S32, the first write-in data volume is compared with the second write-in data volume.
If S33, the first write-in data volume are less than the second write-in data volume, by the first write-in data volume It is determined as target write-in data volume.
If S34, the first write-in data volume are greater than or equal to the second write-in data volume, described second is written Data volume is determined as target write-in data volume.
It is understood that by comparing the first write-in data volume and the second write-in data volume, and choose in the two Smaller value, as target be written data volume, thus can guarantee target authentication equipment be written to the data in the legal card Measure it is not too large, will not be too many because of write-in quantity both without departing from the capability value of free storage in the legal card Cause Data writing time longer, so that the user card punching time lower than the time needed for data interaction, i.e. transmission failure is led Cause data imperfect.
S319, data volume the second data to be synchronized corresponding no more than target write-in data volume are chosen, and will chosen To the second data to be synchronized be written in the free storage.
It is understood that the target write-in data volume is according to the capability value and preset charge time information institute The determining legal card currently allows the maximum amount of data being written, but in practical interactive process, legal described in write-once The target write-in data volume is often not achieved in the data volume of card, and reason is: 1) data of the described second data to be synchronized Amount may inherently be less than the target and data volume is written;2) target authentication equipment and the interactive process of the legal card may Include simultaneously multiple processing tasks, when multiple tasks are unable to parallel processing, or even if can be with parallel processing when, entire interaction Time needed for process is often the time for being greater than the second data to be synchronized of target authentication equipment write-in target write-in data volume 's;At this point, target authentication equipment is actually available to write the second data to be synchronized to guarantee efficiently accomplishing for entire interactive process Entering to the legal card for task handles the time, it may be possible to which the second data to be synchronized less than write-in target write-in data volume arrive Time needed for the legal card, i.e., the corresponding writable data volume of reality is less than the target write-in data volume. Therefore, target authentication equipment chooses data volume the second number to be synchronized corresponding no more than target write-in data volume in this step According to, and the choose second data to be synchronized are written in the free storage.
The embodiment of the present invention may be implemented in do not increase any hardware cost in the case where, pass through the legal card in user hand It completes to synchronize the data of target authentication equipment, and using the mobility of user, when user accesses different authenticating devices, It realizes and the batch data of all authenticating devices in goal systems belonging to target authentication equipment is synchronized, greatly reduce as a result, The workload of related management personnel effectively increases related management efficiency.
Example IV
Fig. 5 is a kind of structural representation for data synchronization unit based on authenticating device that the embodiment of the present invention four provides Figure, the present embodiment are applicable in the case where not increasing any hardware cost, pass through the legal card realization pair in user hand The data syn-chronization situation of target authentication equipment, the device can be specifically included by software and or hardware realization: card detects mould Block 401, first checks module 402, data memory module 403.Wherein,
Card detection module 401 when for detecting card, obtains the user right data in the card, and be based on The user right data judge whether the card is legal card;
First checks module 402, for checking whether the legal card is stored with when the card is legal card First data to be synchronized;
Data memory module 403, if being stored with the first data to be synchronized for the legal card, by described first to Synchrodata is stored to target authentication equipment.
On the basis of the various embodiments described above, the data synchronization unit, further includes:
Mark obtains module, for obtaining institute after the described first data to be synchronized are synchronized to target authentication equipment State the corresponding device flag position data of the first data to be synchronized;
Synchronous determining module, for determining the described first data to be synchronized whether together according to device flag position data All authenticating devices into goal systems are walked, the goal systems is system belonging to the target authentication equipment;
Data removing module is set if being synchronized to all certifications in goal systems for the described first data to be synchronized It is standby, then the described first data to be synchronized are deleted from legal card.
On the basis of the various embodiments described above, the data synchronization unit, further includes:
Indicate update module, is used for before the corresponding device flag position data of the data to be synchronized of acquisition described first, it will The corresponding identification information of the target authentication equipment is written in the legal card, corresponding to update the described first data to be synchronized Device flag position data.
On the basis of the various embodiments described above, the card detection module 401, comprising:
User's determination unit, for determining whether the user of the card is the mesh according to the user right data Legitimate user in mark system;
Legal determination unit, if the user for the card is the legitimate user in the goal systems, it is determined that institute Stating card is legal card.
On the basis of the various embodiments described above, the legal card is equipped with data synchronization zone, and described first checks module 402, comprising:
Acquiring unit is updated, for obtaining the corresponding more new information of storing data in the data synchronization zone;
Comparison unit is updated, for carrying out the target update information in the more new information and the target authentication equipment Comparison, obtains comparing result;
Data determination unit determines whether the storing data is the first number to be synchronized for being based on the comparing result According to.
On the basis of the various embodiments described above, the corresponding more new packets of the storing data containing versions of data number and/or Temporal information.
On the basis of the various embodiments described above, the data synchronization unit, further includes:
Data read module, for storing by the described first data to be synchronized to before target authentication equipment, from described The described first data to be synchronized are read in legal card;
Data check module, for being verified to the first data to be synchronized read;
Checking treatment module, if passing through for verifying, execution stores the described first data to be synchronized to target authentication The step of equipment;Otherwise, first read data to be synchronized are abandoned.
On the basis of the various embodiments described above, the data synchronization unit, further includes:
Second checks module, for checking after checking whether the legal card is stored with the first data to be synchronized Whether the target authentication equipment is stored with the second data to be synchronized;
Capacity determining module, if being stored with the second data to be synchronized for the target authentication equipment, it is determined that the conjunction The capability value of free storage in method card;
Determining module is written, for determining that data are written in target according to the capability value and preset charge time information Amount;
Data write. module, for choosing data volume the second number to be synchronized corresponding no more than target write-in data volume According to, and the choose second data to be synchronized are written in the free storage.
On the basis of the various embodiments described above, said write determining module, comprising:
Determination unit is written, for determining the first write-in data volume based on the capability value, and is based on the charge time Information determines the second write-in data volume;
Comparing unit is written, for the first write-in data volume to be compared with the second write-in data volume;
First determination unit will be described if being less than the second write-in data volume for the first write-in data volume First write-in data volume is determined as target write-in data volume;
Second determination unit, if being greater than or equal to the second write-in data volume for the first write-in data volume, The second write-in data volume is determined as target write-in data volume.
Any embodiment of the present invention can be performed in data synchronization unit based on authenticating device provided by the embodiment of the present invention The provided method of data synchronization based on authenticating device has the corresponding functional module of execution method and beneficial effect.
Embodiment five
Fig. 6 is a kind of structural schematic diagram for authenticating device that the embodiment of the present invention five provides, as shown in fig. 6, the certification is set Standby includes processor 50, memory 51, input unit 52 and output device 53;The number of processor 50 in equipment/terminal/server It measures and can be one or more, in Fig. 6 by taking a processor 50 as an example;Processor 50, storage in equipment/terminal/server Device 51, input unit 52 and output device 53 can be connected by bus or other modes, to be connected as by bus in Fig. 6 Example.
Memory 51 is used as a kind of computer readable storage medium, can be used for storing software program, journey can be performed in computer Sequence and module, such as the corresponding program instruction of the method for data synchronization based on authenticating device/module (example in the embodiment of the present invention Such as, the card detection module 401, first in the data synchronization unit based on authenticating device checks module 402, data memory module 403).Software program, instruction and the module that processor 50 is stored in memory 51 by operation, thereby executing the certification The various function application and data processing of equipment realize the above-mentioned method of data synchronization based on authenticating device.
Memory 51 can mainly include storing program area and storage data area, wherein storing program area can store operation system Application program needed for system, at least one function;Storage data area, which can be stored, uses created data etc. according to terminal.This Outside, memory 51 may include high-speed random access memory, can also include nonvolatile memory, for example, at least a magnetic Disk storage device, flush memory device or other non-volatile solid state memory parts.In some instances, memory 51 can be further Including the memory remotely located relative to processor 50, these remote memories can by network connection to equipment/terminal/ Server.The example of above-mentioned network includes but is not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
Input unit 52 can be used for receiving the number or character information of input, and generate the user with the authenticating device Setting and the related key signals input of function control.Output device 53 may include that display screen etc. shows equipment.
Embodiment six
The embodiment of the present invention six also provides a kind of storage medium comprising computer executable instructions, and the computer can be held Row instruction by computer processor when being executed for executing a kind of method of data synchronization based on authenticating device, this method packet It includes:
When detecting card, the user right data in the card are obtained, and judge based on the user right data Whether the card is legal card;
When the card is legal card, check whether the legal card is stored with the first data to be synchronized;
If the legal card is stored with the first data to be synchronized, the described first data to be synchronized are stored to target and are recognized Demonstrate,prove equipment.
Certainly, a kind of storage medium comprising computer executable instructions, computer provided by the embodiment of the present invention The method operation that executable instruction is not limited to the described above, can also be performed provided by any embodiment of the present invention based on certification Relevant operation in the method for data synchronization of equipment.
By the description above with respect to embodiment, it is apparent to those skilled in the art that, the present invention It can be realized by software and required common hardware, naturally it is also possible to which by hardware realization, but in many cases, the former is more Good embodiment.Based on this understanding, technical solution of the present invention substantially in other words contributes to the prior art Part can be embodied in the form of software products, which can store in computer readable storage medium In, floppy disk, read-only memory (Read-Only Memory, ROM), random access memory (Random such as computer Access Memory, RAM), flash memory (FLASH), hard disk or CD etc., including some instructions are with so that a computer is set Standby (can be personal computer, server or the network equipment etc.) executes method described in each embodiment of the present invention.
It is worth noting that, in the embodiment of the above-mentioned data synchronization unit based on authenticating device, included each list Member and module are only divided according to the functional logic, but are not limited to the above division, as long as can be realized corresponding Function;In addition, the specific name of each functional unit is also only for convenience of distinguishing each other, it is not intended to restrict the invention Protection scope.
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.

Claims (12)

1. a kind of method of data synchronization based on authenticating device characterized by comprising
When detecting card, the user right data in the card are obtained, and based on described in user right data judgement Whether card is legal card;
When the card is legal card, check whether the legal card is stored with the first data to be synchronized;
If the legal card is stored with the first data to be synchronized, the described first data to be synchronized are stored to target authentication and are set It is standby.
2. method of data synchronization according to claim 1, which is characterized in that be synchronized to by the described first data to be synchronized After target authentication equipment, further includes:
Obtain the corresponding device flag position data of the described first data to be synchronized;
It is all in goal systems to determine whether the described first data to be synchronized have been synchronized to according to device flag position data Authenticating device, the goal systems are system belonging to the target authentication equipment;
If first data to be synchronized have been synchronized to all authenticating devices in goal systems, by the described first number to be synchronized It is deleted according to from legal card.
3. method of data synchronization according to claim 2, which is characterized in that obtaining, the described first data to be synchronized are corresponding Device flag position data before, further includes:
The corresponding identification information of the target authentication equipment is written in the legal card, to update the described first number to be synchronized According to corresponding device flag position data.
4. method of data synchronization according to claim 2, which is characterized in that described to be judged based on the user right data Whether the card is legal card, comprising:
According to the user right data, determine whether the user of the card is legitimate user in the goal systems;
If the user of the card is the legitimate user in the goal systems, it is determined that the card is legal card.
5. method of data synchronization according to claim 1, which is characterized in that the legal card is equipped with data synchronization zone, It is described to check whether the legal card is stored with the first data to be synchronized, comprising:
Obtain the corresponding more new information of storing data in the data synchronization zone;
The more new information and the target update information in the target authentication equipment are compared, comparing result is obtained;
Based on the comparing result, determine whether the storing data is the first data to be synchronized.
6. method of data synchronization according to claim 5, which is characterized in that the corresponding more new packets of the storing data Containing versions of data number and/or temporal information.
7. method of data synchronization according to claim 1, which is characterized in that by the described first data to be synchronized store to Before target authentication equipment, further includes:
The described first data to be synchronized are read from the legal card;
The first data to be synchronized read are verified;
If verification passes through, the step of storing the described first data to be synchronized to target authentication equipment is executed;Otherwise, it abandons and reads First got data to be synchronized.
8. method of data synchronization according to claim 1-7, which is characterized in that be in the inspection legal card It is no to be stored with after the first data to be synchronized, further includes:
Check whether the target authentication equipment is stored with the second data to be synchronized;
If the target authentication equipment is stored with the second data to be synchronized, it is determined that the appearance of free storage in the legal card Magnitude;
Determine that data volume is written in target according to the capability value and preset charge time information;
Choose data volume and be no more than corresponding second data to be synchronized of target write-in data volume, and by choose second to Synchrodata is written in the free storage.
9. method of data synchronization according to claim 8, which is characterized in that described according to the capability value and preset brush Card temporal information determines that data volume is written in target, comprising:
The first write-in data volume is determined based on the capability value, and the second write-in data are determined based on the charge time information Amount;
The first write-in data volume is compared with the second write-in data volume;
If the first write-in data volume is less than the second write-in data volume, the first write-in data volume is determined as mesh Mark write-in data volume;
It is if the first write-in data volume is greater than or equal to the second write-in data volume, the second write-in data volume is true It is set to target write-in data volume.
10. a kind of data synchronization unit based on authenticating device characterized by comprising
Card detection module when for detecting card, obtains the user right data in the card, and be based on the user Permissions data judges whether the card is legal card;
First checks module, for when the card is legal card, check the legal card whether be stored with first to Synchrodata;
Data memory module, if being stored with the first data to be synchronized for the legal card, by the described first number to be synchronized According to storing to target authentication equipment.
11. a kind of authenticating device characterized by comprising
One or more processors;
Storage device, for storing one or more programs;
One or more of programs are executed by one or more of processors, so that one or more of processors are realized Such as the described in any item method of data synchronization based on authenticating device of claim 1-9.
12. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program Such as claim 1-9 described in any item method of data synchronization based on authenticating device are realized when being executed by processor.
CN201910828364.1A 2019-09-03 2019-09-03 Data synchronization method, device, equipment and storage medium based on authentication equipment Active CN110535962B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910828364.1A CN110535962B (en) 2019-09-03 2019-09-03 Data synchronization method, device, equipment and storage medium based on authentication equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910828364.1A CN110535962B (en) 2019-09-03 2019-09-03 Data synchronization method, device, equipment and storage medium based on authentication equipment

Publications (2)

Publication Number Publication Date
CN110535962A true CN110535962A (en) 2019-12-03
CN110535962B CN110535962B (en) 2022-02-25

Family

ID=68666586

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910828364.1A Active CN110535962B (en) 2019-09-03 2019-09-03 Data synchronization method, device, equipment and storage medium based on authentication equipment

Country Status (1)

Country Link
CN (1) CN110535962B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112037383A (en) * 2020-09-08 2020-12-04 北京紫光安芯科技有限公司 Intelligent door lock and permission determination method and application system thereof
CN113487284A (en) * 2021-07-13 2021-10-08 上海瓶钵信息科技有限公司 Equipment life cycle management method in equipment rental scene

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101154281A (en) * 2006-09-30 2008-04-02 联想(北京)有限公司 Method and mobile device for migrating finance data in smart card
CN103546294A (en) * 2013-10-10 2014-01-29 小米科技有限责任公司 Entrance guard authorization method, entrance guard authorization device and entrance guard authorization equipment
CN104933797A (en) * 2015-06-30 2015-09-23 武汉天喻信息产业股份有限公司 Intelligent card access control system and method based on dynamic token
CN105939380A (en) * 2016-05-25 2016-09-14 北京小米移动软件有限公司 Data synchronization method and apparatus, router and intelligent hardware device
CN107170080A (en) * 2017-05-02 2017-09-15 广州盛炬智能科技有限公司 A kind of synchronous code encryption device and method for gate control system
CN107358674A (en) * 2017-05-24 2017-11-17 上海意静信息科技有限公司 A kind of method of two-way offline inspection and maintenance
CN107680222A (en) * 2017-09-30 2018-02-09 克立司帝控制系统(上海)有限公司 Central-controlled door access control system and method based on distributed data base
CN109003373A (en) * 2018-08-22 2018-12-14 高新兴科技集团股份有限公司 Intelligent entrance guard card right management method, device, computer storage medium and equipment
CN109712304A (en) * 2019-03-06 2019-05-03 深圳市极客动力科技有限公司 Based on sound wave/speech communication two-way interactive gate inhibition's lock control method and system
CN109741499A (en) * 2018-12-29 2019-05-10 深圳市多度科技有限公司 The updating method of user information and device of door access machine

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101154281A (en) * 2006-09-30 2008-04-02 联想(北京)有限公司 Method and mobile device for migrating finance data in smart card
CN103546294A (en) * 2013-10-10 2014-01-29 小米科技有限责任公司 Entrance guard authorization method, entrance guard authorization device and entrance guard authorization equipment
CN104933797A (en) * 2015-06-30 2015-09-23 武汉天喻信息产业股份有限公司 Intelligent card access control system and method based on dynamic token
CN105939380A (en) * 2016-05-25 2016-09-14 北京小米移动软件有限公司 Data synchronization method and apparatus, router and intelligent hardware device
CN107170080A (en) * 2017-05-02 2017-09-15 广州盛炬智能科技有限公司 A kind of synchronous code encryption device and method for gate control system
CN107358674A (en) * 2017-05-24 2017-11-17 上海意静信息科技有限公司 A kind of method of two-way offline inspection and maintenance
CN107680222A (en) * 2017-09-30 2018-02-09 克立司帝控制系统(上海)有限公司 Central-controlled door access control system and method based on distributed data base
CN109003373A (en) * 2018-08-22 2018-12-14 高新兴科技集团股份有限公司 Intelligent entrance guard card right management method, device, computer storage medium and equipment
CN109741499A (en) * 2018-12-29 2019-05-10 深圳市多度科技有限公司 The updating method of user information and device of door access machine
CN109712304A (en) * 2019-03-06 2019-05-03 深圳市极客动力科技有限公司 Based on sound wave/speech communication two-way interactive gate inhibition's lock control method and system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112037383A (en) * 2020-09-08 2020-12-04 北京紫光安芯科技有限公司 Intelligent door lock and permission determination method and application system thereof
CN113487284A (en) * 2021-07-13 2021-10-08 上海瓶钵信息科技有限公司 Equipment life cycle management method in equipment rental scene
CN113487284B (en) * 2021-07-13 2022-11-08 上海瓶钵信息科技有限公司 Equipment life cycle management method in equipment lease scene

Also Published As

Publication number Publication date
CN110535962B (en) 2022-02-25

Similar Documents

Publication Publication Date Title
CN102426594B (en) Method and system for operating database
US9280365B2 (en) Systems and methods for managing configuration data at disconnected remote devices
CN109213900B (en) Data modification method, device, equipment and medium for block chain
CN110401655A (en) Access control right management system based on user and role
CN108846752A (en) Data processing method, system, block platform chain and readable storage medium storing program for executing
CN109523659B (en) Guest room check-in method, device, server and storage medium
CN104240342A (en) Access control method and device
CN103679886B (en) Internet door control system
CN104240013A (en) Door access control method and door access control platform
CN103295296B (en) Method for controlling access control system by utilizing embedded motherboard and embedded motherboard
US9736155B2 (en) System, method, and apparatus for authentication
CN103544749A (en) Cloud control access control management system and authentication method thereof
CN110177088A (en) A kind of temporary identity authentication method, apparatus and system
CN110535962A (en) Method of data synchronization, device, equipment and storage medium based on authenticating device
CN106716968A (en) Account management method, device and account management system
CN109194651A (en) A kind of identity identifying method, device, equipment and storage medium
CN102017546B (en) Discontinuous access management method using waiting ticket for resource allocation control, waiting ticket management method, and resource allocation control method
CN105635168A (en) Off-line transaction device and security key using method thereof
CN110110874A (en) A kind of meeting room sharing method
CN108650289A (en) A kind of method and apparatus of the management data based on block chain
CN110599653A (en) Access control unlocking method, device and storage medium
JP2009098767A (en) Entrance/exit management system and entrance/exit management method
CN107346257A (en) A kind of implementation method and device for turning JTAG renewal FPGA programs based on Shen prestige server USB
US20090140843A1 (en) Method for providing radio frequency identification application interface and system thereof
CN109005167A (en) A kind of processing method of authentication data, device, server and storage medium

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
GR01 Patent grant
GR01 Patent grant