CN110838199A - Access control card management method and device, computer equipment and storage medium - Google Patents

Access control card management method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN110838199A
CN110838199A CN201911098234.3A CN201911098234A CN110838199A CN 110838199 A CN110838199 A CN 110838199A CN 201911098234 A CN201911098234 A CN 201911098234A CN 110838199 A CN110838199 A CN 110838199A
Authority
CN
China
Prior art keywords
serial number
serial
preset
numbers
serial numbers
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
CN201911098234.3A
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.)
Tcl-Rogerland International Electrical (huizhou) Co Ltd
TCL Legrand International Electrical Huizhou Co Ltd
Original Assignee
Tcl-Rogerland International Electrical (huizhou) 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 Tcl-Rogerland International Electrical (huizhou) Co Ltd filed Critical Tcl-Rogerland International Electrical (huizhou) Co Ltd
Priority to CN201911098234.3A priority Critical patent/CN110838199A/en
Publication of CN110838199A publication Critical patent/CN110838199A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Lock And Its Accessories (AREA)

Abstract

The invention relates to a method, a device, computer equipment and a storage medium for managing access control cards, wherein the method comprises the steps of obtaining serial numbers of the access control cards; respectively acquiring serial numbers which are orderly arranged according to a preset rule according to each serial number, and writing the serial numbers into the storage areas of the corresponding access cards; acquiring a serial number to be detected; detecting whether the serial number to be detected is matched with a preset serial number or not; and when the serial number to be detected is matched with the preset serial number, sequentially comparing the serial number associated with the preset serial number with the serial number to be detected. The serial number of the access card is converted into serial numbers which are sequentially arranged according to a preset rule, the serial numbers are arranged in a size relationship, when the serial numbers of the access card are inquired, only the serial numbers which are associated with the preset serial numbers are required to be compared with the serial numbers to be detected, namely the serial numbers which are not associated with the preset serial numbers are not compared, the inquiry and comparison times are reduced, the data processing speed of the serial number of the access card is improved, and therefore the response speed of the access card is improved.

Description

Access control card management method and device, computer equipment and storage medium
Technical Field
The present invention relates to the field of access control system technologies, and in particular, to an access control card management method, an access control card management apparatus, a computer device, and a storage medium.
Background
Along with the development of social economy, the city appearance is changing day by day, and the resident has higher and higher requirements on comfort, safety and convenience of the living environment, and the vast majority of districts have realized closed management, and the access & exit has installed non-contact access control system, has improved the security of district promptly, has also saved the cost that the access & exit was equipped with security personnel.
When the community is very large or several communities commonly form a community, the resident population may exceed 10 ten thousand, and at this time, the common access control system cannot meet the requirement of so many card issuing. General manufacturers can request to customize large-capacity access control systems, and the requirements of card quantity are met by increasing the capacity of the memory chip. This will increase the cost of the product and delay the delivery of the product to the customer. On the other hand, even if the number of the issued cards is large, the card swiping door opening response is slow. Therefore, for the problem of small capacity of the conventional access card system, a non-contact IC card, such as a Mifare 1 radio frequency card, is usually used, each card has a globally unique 32-bit ID number, and has 16 sectors, each sector has an independent set of password and access control, and 4294967295 cards can be provided for use, which completely meets the use of communities with over 10 ten thousand resident people.
However, in each batch of cards of the Mifare 1 radio frequency cards, the ID numbers of the cards are not necessarily continuous, that is, the ID numbers of the same batch of cards do not have any rule, and when the cards are queried, deleted and judged, the serial numbers in the blacklist need to be compared one by one, so that the data processing speed of the Mifare 1 radio frequency card is slow, the response of the access control system to the Mifare 1 radio frequency card is seriously delayed, and the card swiping response speed of the access control system is slow.
Disclosure of Invention
Based on this, there is a need for providing an entrance guard card management method, apparatus, computer device and storage medium that improve response speed.
An access card management method, comprising: acquiring the serial number of each access control card; respectively acquiring serial numbers which are sequentially arranged according to a preset rule according to the serial numbers, and writing the serial numbers into corresponding storage areas of the access cards, wherein the serial number of each access card corresponds to one serial number; acquiring a serial number to be detected; detecting whether the serial number to be detected is matched with a preset serial number or not; and when the serial number to be detected is matched with the preset serial number, comparing the serial number associated with the preset serial number with the serial number to be detected in sequence.
In one embodiment, the obtaining serial numbers sequentially arranged according to a preset rule according to each serial number includes: respectively acquiring corresponding pre-recorded serial numbers according to the serial numbers; detecting whether the difference value of any two adjacent pre-recorded serial numbers is matched with a preset difference value or not; and when the difference value of any two adjacent pre-recorded serial numbers is matched with a preset difference value, setting the pre-recorded serial numbers as serial numbers corresponding to the serial numbers.
In one embodiment, the detecting whether the difference between any two adjacent pre-recorded stream numbers matches a preset difference includes: and detecting whether the difference value of any two adjacent pre-recorded stream numbers is greater than a preset difference value.
In one embodiment, the detecting whether the difference between any two adjacent pre-recorded stream numbers matches a preset difference comprises: detecting whether the difference value of any two adjacent prerecorded serial numbers is equal to 0; and when the difference value of any two adjacent pre-recorded serial numbers is equal to 0, re-acquiring the pre-recorded serial numbers.
In one embodiment, the detecting whether the difference between any two adjacent pre-recorded stream numbers matches a preset difference includes: and detecting whether the difference value of any two adjacent pre-recorded stream numbers is equal to a preset difference value.
In one embodiment, the obtaining the corresponding pre-recorded serial numbers according to the serial numbers respectively includes: acquiring the number of sequence bytes according to the serial number of the access control card; and acquiring the prerecorded stream number with the byte number smaller than the preset byte number.
In one embodiment, the detecting whether the serial number to be detected matches a preset serial number includes: detecting whether the serial number to be detected is larger than the preset serial number or not; when the serial number to be detected is matched with the preset serial number, comparing the serial number matched with the preset serial number with the serial number to be detected according to the sequence comprises: when the serial number to be detected is larger than the preset serial number, comparing the serial number larger than the preset serial number with the serial number to be detected in sequence.
The access control card management device comprises a reading module, a writing module and a processing module, wherein the reading module is used for acquiring the serial number of each access control card; the reading module is also used for acquiring the serial number to be detected; the processing module is used for respectively obtaining serial numbers which are orderly arranged according to a preset rule according to the serial numbers; the processing module is also used for detecting whether the serial number to be detected is matched with a preset serial number or not; the processing module is further used for sequentially comparing the serial number matched with the preset serial number with the serial number to be detected when the serial number to be detected is matched with the preset serial number; the writing module is used for writing the serial number into the corresponding storage area of the access control card.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program: acquiring the serial number of each access control card; respectively acquiring serial numbers which are sequentially arranged according to a preset rule according to the serial numbers, and writing the serial numbers into corresponding storage areas of the access cards, wherein the serial number of each access card corresponds to one serial number; acquiring a serial number to be detected; detecting whether the serial number to be detected is matched with a preset serial number or not; and when the serial number to be detected is matched with the preset serial number, comparing the serial number associated with the preset serial number with the serial number to be detected in sequence.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of: acquiring the serial number of each access control card; respectively acquiring serial numbers which are sequentially arranged according to a preset rule according to the serial numbers, and writing the serial numbers into corresponding storage areas of the access cards, wherein the serial number of each access card corresponds to one serial number; acquiring a serial number to be detected; detecting whether the serial number to be detected is matched with a preset serial number or not; and when the serial number to be detected is matched with the preset serial number, comparing the serial number associated with the preset serial number with the serial number to be detected in sequence.
According to the access control card management method, the access control card management device, the computer equipment and the storage medium, the serial number of the access control card is converted into serial numbers which are sequentially arranged according to the preset rule, so that the serial numbers are arranged in a size relation, when the serial numbers of the access control card are inquired, the serial numbers which are associated with the preset serial numbers are only required to be compared with the serial numbers to be detected, namely, the serial numbers which are not associated with the preset serial numbers are not compared, the inquiry comparison times are reduced, the data processing speed of the serial numbers of the access control card is improved, and the response speed of the access control card is improved.
Drawings
Fig. 1 is a flowchart of an access card management method according to an embodiment;
fig. 2 is a schematic structural diagram of an access card management device according to an embodiment;
FIG. 3 is an internal block diagram of a computer device according to an embodiment.
Detailed Description
To facilitate an understanding of the invention, the invention will now be described more fully with reference to the accompanying drawings. Preferred embodiments of the present invention are shown in the drawings. This invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete.
It will be understood that when an element is referred to as being "disposed on" another element, it can be directly on the other element or intervening elements may also be present. When an element is referred to as being "connected" to another element, it can be directly connected to the other element or intervening elements may also be present. The terms "vertical," "horizontal," "left," "right," and the like as used herein are for illustrative purposes only and do not represent the only embodiments.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. 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 herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
The invention relates to an access control card management method. In one embodiment, the method for managing the access card comprises the following steps: acquiring the serial number of each access control card; respectively acquiring serial numbers which are sequentially arranged according to a preset rule according to the serial numbers, and writing the serial numbers into corresponding storage areas of the access cards, wherein the serial number of each access card corresponds to one serial number; acquiring a serial number to be detected; detecting whether the serial number to be detected is matched with a preset serial number or not; and when the serial number to be detected is matched with the preset serial number, comparing the serial number associated with the preset serial number with the serial number to be detected in sequence. The serial number of the access card is changed into serial numbers which are sequentially arranged according to a preset rule, so that the serial numbers are arranged in a large-small relation, when the serial numbers of the access card are inquired, only the serial numbers which are associated with the preset serial numbers are required to be compared with the serial numbers to be detected, namely, the serial numbers which are not associated with the preset serial numbers are not compared, the inquiry comparison times are reduced, the data processing speed of the serial numbers of the access card is improved, and the response speed of the access card is improved.
Please refer to fig. 1, which is a flowchart illustrating a method for managing an access card according to an embodiment of the present invention. The access control card management method comprises the following steps: s100, acquiring serial numbers of all access control cards; s200, acquiring serial numbers which are sequentially arranged according to a preset rule according to the serial numbers, and writing the serial numbers into corresponding storage areas of the access cards, wherein the serial number of each access card corresponds to one serial number; s300, acquiring a serial number to be detected; s400, detecting whether the serial number to be detected is matched with a preset serial number or not; s500, when the serial number to be detected is matched with the preset serial number, comparing the serial number associated with the preset serial number with the serial number to be detected in sequence.
An access card management method includes some or all of the following steps.
S100: and acquiring the serial number of each access control card.
In this embodiment, the serial number of entrance guard card is the number that each entrance guard card is unique, and the serial number on each entrance guard card all is different, does not have the entrance guard card of the same serial number promptly. Due to the uniqueness of the serial number of the access card, the serial number of each access card is only required to be recorded once, namely, the serial number of the corresponding access card can be stored in the access card device through one-time recording operation of the serial number, and the occurrence of the repeated serial number is not considered. Moreover, the serial number is stored in a database, and the database containing the serial number may be independent of the access card management device, that is, the size of the serial number does not affect the memory size of the access card management device. In one embodiment, the serial number of the access card is acquired from a database through a wireless transmission system, and the database containing the serial number is a database in a server in a background. Moreover, the serial number is only used when the access card is authorized and cancelled, for example, when the access card needs to be authorized, the access card management device transmits the serial number and the serial number corresponding to the serial number to a database for storage, that is, the database contains the serial number, the serial number and the corresponding relationship between the serial number and the serial number; when the access control card needs to be cancelled, the access control card management device inquires a corresponding serial number in a database according to the acquired serial number, so that the serial number of the access control card needing to be cancelled is determined, and the access control card is convenient to cancel from the database. Like this, when initializing the access control card, before no access control card has been entered the database promptly, access control card management device passes through the serial number of access control card is convenient for confirm the quantity of access control card, is convenient for follow-up distribution correspond and the serial number of in proper order to the different access control cards. In one embodiment, the serial number of the access card is a 32-bit serial number of the Mifare 1 card, and the serial numbers of each batch of Mifare 1 cards are not necessarily continuous, that is, the serial numbers of each batch of Mifare 1 cards have no rule to follow.
S200: and respectively acquiring serial numbers which are orderly arranged according to a preset rule according to the serial numbers, and writing the serial numbers into the corresponding storage areas of the access cards, wherein the serial number of each access card corresponds to one serial number. In this embodiment, the serial number is the only sign of entrance guard's card, as entrance guard's authentication's document makes each the serial number corresponds to an entrance guard's card, moreover, an entrance guard's card corresponding two or a plurality of serial numbers can not appear, a serial number corresponding two or a plurality of entrance guard's cards also can not appear, promptly the serial number with the entrance guard's card is the one-to-one. The access control card management device can obtain the corresponding access control card according to the obtained serial number, and the serial number of the access control card is disordered and arranged, so that all the input serial numbers need to be compared when the serial number is used as a standard for query comparison, and the number of the compared serial numbers is too large. In order to solve the above problem, the serial numbers which are arranged in an unordered manner are arranged in an ordered manner, and the serial numbers which are arranged in an ordered manner according to a preset rule are respectively obtained according to the serial numbers, which indicates that the unordered serial numbers are arranged according to a certain rule, each serial number corresponds to one serial number, and all the serial numbers are arranged in a regular and ordered manner. Like this, carry out the permutation in order according to certain law at all serial numbers, no matter what serial number corresponds is which serial number, as long as guarantee the serial number with serial number one-to-one can carry out reordering to unordered serial number, makes the serial number by the serial number replaces to make unordered serial number arrange with orderly mode, be convenient for follow-up only need compare partial serial number when inquiring to the serial number that awaits measuring, thereby be convenient for follow-up comparison number of times of in-process of comparing, improved the data processing speed to the serial number of access card, thereby improved the response speed of access card. In other embodiments, the serial number and the serial number are stored in different components, for example, the serial number and the one-to-one correspondence relationship between the serial number and the serial number are stored in an external database, the serial number is stored in a storage area of the access card, and an abnormal serial number for comparing with the serial number to be detected is stored in the card reader, wherein, because the number of used access cards is large, the number of compared serial numbers is large, in order to reduce the occupancy rate of the memory space of the card reader, the number of used serial numbers which cannot be compared by query is relatively small, that is, the abnormal serial number is used as a judgment standard, and the number of times of query and comparison is further reduced, so as to further improve the data processing speed of the serial number of the access card, thereby further improving the response speed of the access control card. The card reader is internally provided with a chip with a data processing function, so that when an access control card is used for opening a gate, the serial number to be detected is compared with a preset serial number.
S300: and acquiring the serial number to be detected.
In this embodiment, when the serial number that awaits measuring is used for opening the gate for having the access control card, access control card management device acquires the serial number on this access control card, the serial number that awaits measuring is corresponding to a serial number equally, the serial number that awaits measuring and used serial number have the same type, promptly the serial number that awaits measuring belongs to authorized serial number, through right the acquisition of the serial number that awaits measuring, according to this characteristic of the orderly arrangement of serial number, it is convenient for follow-up quick right the inquiry of the serial number that awaits measuring is compared.
S400: and detecting whether the serial number to be detected is matched with a preset serial number or not.
In this embodiment, the preset serial number is a preset serial number in all serial numbers, and all serial numbers are orderly arranged according to a certain rule, so that all serial numbers have a front-back or size relationship, that is, the numerical values of the serial numbers are different, and thus the number of the serial numbers to be compared with the serial numbers to be detected is determined, that is, the number of the serial numbers to be compared is subsequently determined, and then the number of the serial numbers to be detected is subsequently reduced, so that the data processing speed of the serial number of the access card is increased, and the response speed of the access card is increased.
S500: when the serial number to be detected is matched with the preset serial number, comparing the serial number matched with the preset serial number with the serial number to be detected in sequence.
In this embodiment, the preset serial number divides all serial numbers into two parts, wherein one part is the serial number associated with the preset serial number, and the other part is the serial number not associated with the preset serial number. The serial number to be detected is matched with the preset serial number, the relevance between the serial number to be detected and the preset serial number is indicated, and the serial number to be detected belongs to the serial number relevant to the preset serial number. Therefore, the serial numbers needing to be inquired and compared only have serial numbers associated with the preset serial numbers, and the serial numbers not associated with the preset serial numbers do not need to be compared with the serial numbers to be detected, so that the inquiry and comparison times of the serial numbers to be detected improve the data processing speed of the serial numbers of the access cards, and the response speed of the access cards is improved.
In the above embodiment, the serial number is divided into two serial numbers, namely, a normal serial number and an abnormal serial number, that is, the normal serial number belongs to the serial numbers in the white list, and the query comparison result is the serial number in the access card which is used by most users and allowed to pass; and the abnormal serial number belongs to the serial numbers in the blacklist, the query comparison result is forbidden, and a small part of serial numbers in the forbidden cards are forbidden to pass. Because the quantity of normal serial numbers is more, adopt the mode of unusual serial number as the judgement condition, make the inquiry of the serial number that awaits measuring is compared the number of times and is reduced, has improved the data processing speed to the serial number of access control card to the response speed of access control card has been improved, and in addition, the unusual serial number that uses the quantity less for the quantity of the serial number that the storage was judged the condition reduces, thereby further reduces the number of times is compared in the inquiry of the serial number that awaits measuring, has further improved the data processing speed to the serial number of access control card, thereby further improved the response speed of access control card.
In one embodiment, the obtaining serial numbers sequentially arranged according to a preset rule according to each serial number includes: respectively acquiring corresponding pre-recorded serial numbers according to the serial numbers; detecting whether the difference value of any two adjacent pre-recorded serial numbers is matched with a preset difference value or not; and when the difference value of any two adjacent pre-recorded serial numbers is matched with a preset difference value, setting the pre-recorded serial numbers as serial numbers corresponding to the serial numbers. In this embodiment, to each before the entrance guard's card authorizes, this moment storage area in the entrance guard's card is the serial number that has not yet corresponded, moreover, because the serial number of entrance guard's card is unordered, different serial numbers need compare with the serial number on the entrance guard's card that awaits measuring one by one. In the access control card management device, corresponding pre-recorded serial numbers are respectively obtained according to the serial numbers, wherein the pre-recorded serial numbers are self-defined numerical values, and each access control card corresponds to a temporary pre-recorded serial number when authorized. Detecting whether the difference value of any two adjacent pre-recorded serial numbers is matched with a preset difference value or not, detecting the adjacent pre-recorded serial numbers, and conveniently determining the sequencing condition between the adjacent pre-recorded serial numbers, wherein when the difference value of any two adjacent pre-recorded serial numbers is matched with the preset difference value, the fact that any two adjacent pre-recorded serial numbers are different pre-recorded serial numbers is shown, and the pre-recorded serial numbers change according to a certain rule, namely, the pre-recorded serial numbers of each access control card are also arranged in order when authorized, so that all the pre-recorded serial numbers are arranged in order according to a preset rule. Like this, the prerecorded serial number will under the rule of range in order, the prerecorded serial number sets up to corresponding the serial number for the serial number of each entrance guard card is range in order, thereby makes the serial number of the unordered state of entrance guard card express with the serial number of ordered state, and then is convenient for follow-up according to the serial number inquires the comparison to the serial number that awaits measuring on the entrance guard card that awaits measuring.
In one embodiment, the detecting whether the difference between any two adjacent pre-recorded stream numbers matches a preset difference includes: and detecting whether the difference value of any two adjacent pre-recorded stream numbers is greater than a preset difference value. In this embodiment, the preset difference is a preset value, and the preset difference is used to distinguish a variation trend of the pre-recorded serial number, that is, the preset difference reflects a variation condition of the pre-recorded serial number. Because the prerecorded serial number is the data that have the sequence characteristic, adjacent two have the difference of size between the prerecorded serial number, for make the difference degree increase between the prerecorded serial number, will arbitrary two be adjacent the difference of prerecorded serial number with predetermine the difference and compare, make adjacent two numerical value difference between the prerecorded serial number increases, thereby make adjacent two the discrimination between the prerecorded serial number increases, has reduced adjacent two the prerecorded serial number similarity, has avoided adjacent two the prerecorded serial number has the condition of same numerical value.
In one embodiment, the detecting whether the difference between any two adjacent pre-recorded stream numbers matches a preset difference comprises: detecting whether the difference value of any two adjacent prerecorded serial numbers is equal to 0; and when the difference value of any two adjacent pre-recorded serial numbers is equal to 0, re-acquiring the pre-recorded serial numbers. In this embodiment, in this step, before detecting whether the difference between any two adjacent pre-recorded serial numbers matches a preset difference, before obtaining the difference between two adjacent pre-recorded serial numbers, it is necessary to determine the difference between the allocated pre-recorded serial numbers. When the difference between any two adjacent pre-recorded serial numbers is equal to 0, it indicates that the difference between the two adjacent pre-recorded serial numbers is 0, that is, it indicates that the similarity between the two adjacent pre-recorded serial numbers is 100%, that is, it indicates that at least two pre-recorded serial numbers are the same, and the pre-recorded serial numbers are in one-to-one correspondence with the serial numbers, and the same pre-recorded serial numbers cannot be applied to the serial numbers arranged in order, and at this time, the pre-recorded serial numbers need to be obtained again, so that the two adjacent pre-recorded serial numbers have a difference.
In one embodiment, the detecting whether the difference between any two adjacent prerecorded stream numbers is equal to 0 includes: and when the difference value of any two adjacent pre-recorded serial numbers is not equal to 0, setting the pre-recorded serial numbers as the serial numbers corresponding to the serial numbers. In this embodiment, the difference between any two adjacent pre-recorded serial numbers is not equal to 0 includes two cases, for example, the difference between any two adjacent pre-recorded serial numbers is greater than 0, which indicates that the numerical values of all the pre-recorded serial numbers are increased, so that all the pre-recorded serial numbers are ordered and arranged in an increasing manner; for another example, the difference between any two adjacent pre-recorded serial numbers is less than 0, which indicates that the numerical values of all the pre-recorded serial numbers are decreased, so that all the pre-recorded serial numbers are ordered in a decreasing manner. In one embodiment, the two ordered arrangements may be arranged according to an arithmetic or geometric series.
In one embodiment, the detecting whether the difference between any two adjacent pre-recorded stream numbers matches a preset difference includes: and detecting whether the difference value of any two adjacent pre-recorded stream numbers is equal to a preset difference value. In this embodiment, the preset difference is not 0, that is, any two adjacent pre-recorded serial numbers are different and arranged according to a certain rule. Detecting whether the difference value of any two adjacent prerecorded serial numbers is equal to a preset difference value or not, indicating that the prerecorded serial numbers are arranged in an equal ratio serial manner, namely, the difference value of each prerecorded serial number is equal to the difference value of the prerecorded serial numbers before and after the prerecorded serial number, so that the variation amplitudes of the prerecorded serial numbers are the same, for example, when the preset difference value is greater than 0, detecting whether the difference value of any two adjacent prerecorded serial numbers is equal to the preset difference value or not, namely, detecting whether the variation mode of the prerecorded serial numbers is an equal difference serial increasing mode or not, namely, detecting whether the tolerance of two adjacent prerecorded serial numbers is a positive value or not; for another example, when the preset difference is smaller than 0, it is detected whether the difference between any two adjacent pre-recorded serial numbers is equal to the preset difference, that is, whether the variation mode of the pre-recorded serial numbers is an equal-difference series decreasing mode is detected, that is, whether the tolerance of two adjacent pre-recorded serial numbers is a negative value is detected, and at this time, the initial pre-recorded serial number needs to be selected to have a larger value, so as to avoid the situation that the pre-recorded serial number has a negative value. Therefore, the change trend of the serial number is convenient to determine through judging the change trends of any two adjacent pre-recorded serial numbers, the condition of the serial number ordered arrangement is convenient to determine, and the serial numbers are ordered arrangement according to the mode of increasing or decreasing arithmetic progression.
In one embodiment, the obtaining serial numbers sequentially arranged according to a preset rule according to each serial number includes: respectively acquiring corresponding pre-recorded serial numbers according to the serial numbers; detecting whether the ratio of any two adjacent pre-recorded serial numbers is matched with a preset ratio or not; and when the ratio of any two adjacent pre-recorded serial numbers is matched with a preset ratio, setting the pre-recorded serial numbers as serial numbers corresponding to the serial numbers. In this embodiment, to each before the entrance guard's card authorizes, this moment storage area in the entrance guard's card is the serial number that has not yet corresponded, moreover, because the serial number of entrance guard's card is unordered, different serial numbers need compare with the serial number on the entrance guard's card that awaits measuring one by one. In the access control card management device, corresponding pre-recorded serial numbers are respectively obtained according to the serial numbers, wherein the pre-recorded serial numbers are self-defined numerical values, and each access control card corresponds to a temporary pre-recorded serial number when authorized. Detecting whether the ratio of any two adjacent pre-recorded serial numbers is matched with a preset ratio or not, detecting the adjacent pre-recorded serial numbers, and conveniently determining the sequencing condition between the adjacent pre-recorded serial numbers, wherein when the ratio of any two adjacent pre-recorded serial numbers is matched with the preset ratio, the condition that any two adjacent pre-recorded serial numbers are different pre-recorded serial numbers is shown, and the pre-recorded serial numbers change according to a certain rule, namely, the pre-recorded serial numbers of each access control card are also arranged in order when authorized, so that all the pre-recorded serial numbers are arranged in order according to a preset rule. Like this, the prerecorded serial number will under the rule of range in order, the prerecorded serial number sets up to corresponding the serial number for the serial number of each entrance guard card is range in order, thereby makes the serial number of the unordered state of entrance guard card express with the serial number of ordered state, and then is convenient for follow-up according to the serial number inquires the comparison to the serial number that awaits measuring on the entrance guard card that awaits measuring.
In one embodiment, the detecting whether the difference between any two adjacent pre-recorded stream numbers matches a preset ratio includes: and detecting whether the ratio of any two adjacent pre-recorded stream numbers is greater than a preset ratio. In this embodiment, the preset ratio is a preset value, and the preset ratio is used to distinguish a variation trend of the pre-recorded serial number, that is, the preset ratio reflects a variation condition of the pre-recorded serial number. Because the prerecorded serial numbers are data with ordered arrangement characteristics, and the number of the prerecorded serial numbers is divided into two adjacent prerecorded serial numbers, in order to increase the difference between the prerecorded serial numbers, the ratio of any two adjacent prerecorded serial numbers is compared with the preset ratio, so that the numerical value ratio between the adjacent two prerecorded serial numbers is increased, the discrimination between the adjacent two prerecorded serial numbers is increased, the similarity between the adjacent two prerecorded serial numbers is reduced, and the condition that the adjacent two prerecorded serial numbers have the same numerical value is avoided.
In one embodiment, the detecting whether the ratio of any two adjacent pre-recorded stream numbers matches a preset ratio includes: detecting whether the ratio of any two adjacent prerecorded serial numbers is equal to 1 or not; and when the ratio of any two adjacent pre-recorded serial numbers is equal to 1, re-acquiring the pre-recorded serial numbers. In this embodiment, before detecting whether the ratio of any two adjacent pre-recorded serial numbers matches a preset ratio, the difference between the allocated pre-recorded serial numbers needs to be determined before obtaining the ratio between the two adjacent pre-recorded serial numbers. When the ratio of any two adjacent pre-recorded serial numbers is equal to 1, it indicates that the difference between the two adjacent pre-recorded serial numbers is 0, that is, it indicates that the similarity between the two adjacent pre-recorded serial numbers is 100%, that is, it indicates that at least two pre-recorded serial numbers are the same, and the pre-recorded serial numbers are in one-to-one correspondence with the serial numbers, and the same pre-recorded serial numbers cannot be applied to the serial numbers arranged in order, and at this time, the pre-recorded serial numbers need to be obtained again, so that the two adjacent pre-recorded serial numbers have a difference.
In one embodiment, the detecting whether the ratio of any two adjacent prerecorded stream numbers is equal to 1 includes: and when the ratio of any two adjacent pre-recorded serial numbers is not equal to 1, setting the pre-recorded serial numbers as the serial numbers corresponding to the serial numbers. In this embodiment, the ratio of any two adjacent pre-recorded serial numbers not equal to 1 includes two cases, for example, the ratio of any two adjacent pre-recorded serial numbers is greater than 1, which indicates that the numerical values of all the pre-recorded serial numbers are increased, so that all the pre-recorded serial numbers are ordered and arranged in an increasing manner; for another example, the ratio of any two adjacent pre-recorded serial numbers is less than 1, which indicates that the numerical values of all the pre-recorded serial numbers are decreased, so that all the pre-recorded serial numbers are ordered in a decreasing manner. In one embodiment, the two ordered arrangements may be arranged in an equal ratio array.
In one embodiment, the detecting whether the ratio of any two adjacent pre-recorded stream numbers matches a preset ratio includes: and detecting whether the ratio of any two adjacent pre-recorded stream numbers is equal to a preset ratio or not. In this embodiment, the preset ratio is not 1, that is, any two adjacent prerecorded serial numbers are different and arranged according to a certain rule. Detecting whether the ratio of any two adjacent prerecorded serial numbers is equal to a preset ratio or not, which indicates that the prerecorded serial numbers are arranged in an equal ratio series mode, namely, the ratio of each prerecorded serial number to the prerecorded serial numbers before and after the prerecorded serial number is equal, so that the change amplitudes of the prerecorded serial numbers are the same, for example, when the preset ratio is greater than 1, detecting whether the ratio of any two adjacent prerecorded serial numbers is equal to the preset ratio or not, namely, detecting whether the change mode of the prerecorded serial numbers is an equal ratio series increasing mode or not, namely, detecting whether the common ratio of two adjacent prerecorded serial numbers is a positive value or not; for another example, when the preset ratio is smaller than 1, it is detected whether the ratio of any two adjacent pre-recorded stream numbers is equal to the preset ratio, that is, whether the change mode of the pre-recorded stream numbers is an equal-ratio-series decreasing mode is detected, that is, whether the common ratio of two adjacent pre-recorded stream numbers is a negative value is detected. Therefore, the change trend of the serial number is convenient to determine through judging the change trends of any two adjacent prerecorded serial numbers, the sequential arrangement condition of the serial numbers is convenient to determine, and the serial numbers are sequentially arranged in an increasing or decreasing geometric progression mode.
In one embodiment, the obtaining the corresponding pre-recorded serial numbers according to the serial numbers respectively includes: acquiring the number of sequence bytes according to the serial number of the access control card; and acquiring the prerecorded stream number with the byte number smaller than the preset byte number. In this embodiment, the serial number of each access card is 32-bit data, that is, the serial number is represented by 4 bytes, the number of bytes of the prerecorded serial number is the same as the number of bytes of the serial number, and the prerecorded serial number having the number of bytes smaller than the preset number of bytes is set as the serial number, so that the number of bytes of the serial number is smaller than the number of bytes of the serial number. When the operation of data query comparison is carried out, each bit of data is compared respectively, the number of bytes used finally is less than that of the serial number, the serial number is compared, the comparison number of the serial number compared with the serial number to be detected is reduced, the comparison time of the serial number to be detected and a single serial number is reduced, the data processing speed of the serial number of the access card is improved, and the response speed of the access card is improved.
In one embodiment, the detecting whether the serial number to be detected matches a preset serial number includes: detecting whether the serial number to be detected is larger than the preset serial number or not; when the serial number to be detected is matched with the preset serial number, comparing the serial number matched with the preset serial number with the serial number to be detected according to the sequence comprises: when the serial number to be detected is larger than the preset serial number, comparing the serial number larger than the preset serial number with the serial number to be detected in sequence. In this embodiment, the serial number used for comparing with the serial number to be detected is a serial number in a blacklist, that is, the serial number used for comparing with the serial number to be detected is an abnormal serial number, and the preset serial number is one of the serial numbers in a numerical range where the serial number in the blacklist is located, for example, the preset serial number includes one of the serial numbers in the blacklist, and as another example, the preset serial number includes one numerical value between two adjacent abnormal serial numbers in the blacklist. The serial numbers in the blacklist and the serial numbers in the white list jointly form all the serial numbers which are orderly arranged, so that the serial numbers in the blacklist which are used for being compared with the serial numbers to be detected are also orderly arranged, namely the serial numbers in the blacklist are orderly arranged according to the size relationship. The serial number that awaits measuring with when predetermineeing the serial number and comparing, can confirm according to the comparative result the serial number that awaits measuring with predetermine the size relation of serial number to the serial number that awaits measuring with the serial number that awaits measuring compares, for example, work as the serial number that awaits measuring is greater than when predetermineeing the serial number, has shown the serial number that awaits measuring is not less than predetermine the within range of serial number, has shown promptly the serial number that awaits measuring is located and is greater than predetermine the within range of serial number, will be greater than according to the preface this moment the serial number of predetermineeing the serial number with the serial number that awaits measuring compares. Like this, when inquiring the serial number of entrance guard's card, only need to be greater than predetermine the serial number with the serial number that awaits measuring compares can, promptly to being less than predetermine the serial number of serial number and not comparing, reduced the quantity that needs inquire the serial number of comparing to reduced the inquiry and compared the number of times, improved the data processing speed to the serial number of entrance guard's card, thereby improved the response speed of entrance guard's card.
In one embodiment, the detecting whether the serial number to be detected matches a preset serial number includes: detecting whether the serial number to be detected is smaller than the preset serial number or not; when the serial number to be detected is matched with the preset serial number, comparing the serial number matched with the preset serial number with the serial number to be detected according to the sequence comprises: when the serial number to be detected is smaller than the preset serial number, comparing the serial number smaller than the preset serial number with the serial number to be detected in sequence. In this embodiment, the serial number used for comparing with the serial number to be detected is a serial number in a blacklist, that is, the serial number used for comparing with the serial number to be detected is an abnormal serial number, and the preset serial number is one of the serial numbers in a numerical range where the serial number in the blacklist is located, for example, the preset serial number includes one of the serial numbers in the blacklist, and as another example, the preset serial number includes one numerical value between two adjacent abnormal serial numbers in the blacklist. The serial numbers in the blacklist and the serial numbers in the white list jointly form all the serial numbers which are orderly arranged, so that the serial numbers in the blacklist which are used for being compared with the serial numbers to be detected are also orderly arranged, namely the serial numbers in the blacklist are orderly arranged according to the size relationship. The serial number that awaits measuring with when predetermineeing the serial number and comparing, can confirm according to the comparative result the serial number that awaits measuring with predetermine the size relation of serial number to the serial number that awaits measuring with the serial number that awaits measuring compares, for example, work as the serial number that awaits measuring is less than when predetermineeing the serial number, has shown the serial number that awaits measuring is not being less than predetermine the within range of serial number, has shown promptly the serial number that awaits measuring is located and is less than predetermine the within range of serial number, will be less than according to the preface this moment predetermine the serial number of serial number with the serial number that awaits measuring compares. Like this, when inquiring the serial number of entrance guard's card, only need to be less than predetermine the serial number of serial number with the serial number that awaits measuring compares can, promptly to being less than predetermine the serial number of serial number and not comparing, reduced the quantity that needs inquire the serial number of comparing to reduce the inquiry and compared the number of times, improved the data processing speed to the serial number of entrance guard's card, thereby improved the response speed of entrance guard's card.
In one embodiment, the preset serial number is a serial number corresponding to a median value in a range where the serial number in the blacklist is located, so that the serial number compared with the serial number to be detected is quickly determined by a calculation method of bisection. Further, in one embodiment, after the comparison, the method for managing an access card further includes the steps of: and distributing the passing access control cards and/or opening the access control cards by adopting the passing access control cards.
In one embodiment, after writing the serial number into the corresponding storage area of the access card, the method further includes: and writing the card type, the effective time period, the resident address information and the door authority address corresponding to the serial number into a storage area of the access control card. The door authority address is used for acquiring door opening authority, the door opening authority information comprises openable authority and non-openable authority of doors in each cell, and whether a door through which the access control card is to pass can be judged according to the acquired door opening authority, for example, when the door opening authority is 1, the door is opened; for another example, when the door opening authority is 0, the door is kept closed.
It should be understood that, although the steps in the flowchart of fig. 1 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in the figures may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least some of the sub-steps or stages of other steps.
In one embodiment, an access card management device is implemented by using the access card management method described in any one of the above embodiments. In one embodiment, the access control card management device is provided with a functional module for realizing the access control card management method corresponding to each step. In one embodiment, as shown in fig. 2, there is provided an access card management apparatus 10, including a reading module 100, a writing module 200, and a processing module 300, where: the reading module 100 is configured to obtain a serial number of each access card; the reading module 100 is further configured to obtain a serial number to be detected; the processing module 300 is configured to obtain serial numbers sequentially arranged according to a preset rule according to each serial number; the processing module 300 is further configured to detect whether the serial number to be detected matches a preset serial number; the processing module 300 is further configured to, when the serial number to be detected matches the preset serial number, sequentially compare the serial number matching the preset serial number with the serial number to be detected; the writing module 200 is used for writing the serial number into the corresponding storage area of the access control card. In one embodiment, the reading module 100 includes a card reader, and the reading module 100 is configured to read a serial number of an access card and a serial number to be tested.
In one embodiment, the reading module 100 is configured to obtain a serial number of each access card. The serial number of entrance guard's card is the number that each entrance guard's card is unique, and the serial number on each entrance guard's card all is different, does not have the entrance guard's card of the same serial number promptly. Because the uniqueness of the serial number of the access card, the entry of the serial number of each access card only needs once, namely, the entry operation of the serial number is completed once by the reading module 100, and the corresponding serial number of the access card can be stored in the access card device without considering the occurrence of repeated serial numbers. Moreover, the serial number is stored in a database by the read module 100, and the database containing the serial number may be independent of the read module 100, i.e. the size of the serial number does not affect the memory size of the read module 100. In one embodiment, the serial number of the access card is acquired from a database through a wireless transmission system, and the database containing the serial number is a database in a server in a background. Moreover, the serial number is only used when the access card is authorized and revoked, for example, when the access card needs to be authorized, the reading module 100 respectively transmits the serial number to the database and the processing module 300, the serial number is stored in the database, the processing module 300 obtains the serial number corresponding to the serial number according to the serial number, and the processing module 300 transmits the corresponding relationship between the serial number and the serial number to the database for storage, that is, the database includes the serial number and the corresponding relationship between the serial number and the serial number; when the access control card needs to be cancelled, the access control card management device inquires a corresponding serial number in a database according to the acquired serial number, so that the serial number of the access control card needing to be cancelled is determined, and the access control card is convenient to cancel from the database. Thus, when the access control card is initialized, that is, before no access control card is recorded into the database, the reading module 100 is convenient to determine the number of the access control cards through the obtained serial number of the access control card, and is convenient to subsequently distribute the serial numbers which correspond to and are orderly arranged into different access control cards. In one embodiment, the serial number of the access card is a 32-bit serial number of the Mifare 1 card, and the serial numbers of each batch of Mifare 1 cards are not necessarily continuous, that is, the serial numbers of each batch of Mifare 1 cards have no rule to follow.
In one embodiment, the processing module 300 is configured to obtain serial numbers sequentially arranged according to a preset rule according to each serial number, and write the serial numbers into a corresponding storage area of the access cards, where the serial number of each access card corresponds to one serial number. In this embodiment, the serial number is the only sign of entrance guard's card, as entrance guard's authentication's document makes each the serial number corresponds to an entrance guard's card, moreover, an entrance guard's card corresponding two or a plurality of serial numbers can not appear, a serial number corresponding two or a plurality of entrance guard's cards also can not appear, promptly the serial number with the entrance guard's card is the one-to-one. The processing module 300 can obtain the corresponding access card according to the obtained serial number, and due to the fact that the serial number of the access card is in disordered arrangement, when the serial number is used as a standard for query comparison, all the entered serial numbers need to be compared, and the number of the compared serial numbers is too large. In order to solve the above problem, the serial numbers that are arranged in an unordered manner are arranged in an ordered manner, and the processing module 300 obtains the serial numbers that are arranged in an ordered manner according to a preset rule according to each serial number, which indicates that the processing module 300 arranges the unordered serial numbers according to a certain rule, each serial number corresponds to one serial number, and all the serial numbers are arranged in a regular and ordered manner. Like this, carry out the permutation in order according to certain law at all serial numbers, no matter what serial number corresponds is which serial number, as long as guarantee the serial number with serial number one-to-one can carry out reordering to unordered serial number, makes the serial number by the serial number replaces to make unordered serial number arrange with orderly mode, be convenient for follow-up only need compare partial serial number when inquiring to the serial number that awaits measuring, thereby be convenient for follow-up comparison number of times of in-process of comparing, improved the data processing speed to the serial number of access card, thereby improved the response speed of access card. In other embodiments, the serial number and the serial number are stored in different components, for example, the serial number and the one-to-one correspondence relationship between the serial number and the serial number are stored in an external database, the serial number is stored in a storage area of the access card, and an abnormal serial number for comparing with the serial number to be detected is stored in the card reader, wherein, because the number of used access cards is large, the number of compared serial numbers is large, in order to reduce the occupancy rate of the memory space of the card reader, the number of used serial numbers which cannot be compared by query is relatively small, that is, the abnormal serial number is used as a judgment standard, and the number of times of query and comparison is further reduced, so as to further improve the data processing speed of the serial number of the access card, thereby further improving the response speed of the access control card.
In one embodiment, the reading module 100 is configured to obtain a serial number to be tested. In this embodiment, when the serial number to be detected is used for opening the gate for the access control card, the reading module 100 acquires the serial number on the access control card, the serial number to be detected corresponds to a serial number, the serial number to be detected and the used serial number have the same type, that is, the serial number to be detected belongs to an authorized serial number, and the serial number to be detected is acquired through the reading module 100, so that the serial number to be detected is conveniently and quickly inquired and compared according to the characteristic of the ordered arrangement of the serial numbers.
In one embodiment, the processing module 300 is configured to detect whether the serial number to be detected matches a preset serial number. In this embodiment, the preset serial number is a preset serial number in all serial numbers, and all serial numbers are orderly arranged according to a certain rule, so that all serial numbers have a front-back or size relationship, that is, the numerical values of the serial numbers are different, and thus the number of the serial numbers to be compared with the serial numbers to be detected is determined, that is, the number of the serial numbers to be compared is subsequently determined, and then the number of the serial numbers to be detected is subsequently reduced, so that the data processing speed of the serial number of the access card is increased, and the response speed of the access card is increased.
In one embodiment, the processing module 300 is configured to compare the serial number matched with the preset serial number with the serial number to be detected in sequence when the serial number to be detected matches with the preset serial number. In this embodiment, the processing module 300 divides all serial numbers into two parts by the preset serial number, wherein one part is the serial number associated with the preset serial number, and the other part is the serial number not associated with the preset serial number. The serial number to be detected is matched with the preset serial number, the relevance between the serial number to be detected and the preset serial number is indicated, and the serial number to be detected belongs to the serial number relevant to the preset serial number. Therefore, the serial number which needs to be queried and compared by the processing module 300 only has the serial number associated with the preset serial number, and the serial number which does not have the association with the preset serial number does not need to be compared with the serial number to be tested, so that the query and comparison times of the serial number to be tested are increased, the data processing speed of the serial number of the access card is increased, and the response speed of the access card is increased.
In one embodiment, the processing module 300 is configured to obtain corresponding pre-recorded serial numbers according to the serial numbers; the processing module 300 is further configured to set the pre-recorded serial number as the serial number corresponding to the serial number when the difference between any two adjacent pre-recorded serial numbers matches a preset difference.
In one embodiment, the processing module 300 is configured to detect whether a difference between any two adjacent pre-recorded stream numbers is greater than a preset difference.
In one embodiment, the processing module 300 is configured to detect whether a difference between any two adjacent pre-recorded stream numbers is equal to 0; the processing module 300 is further configured to obtain the pre-recorded serial number again when the difference between any two adjacent pre-recorded serial numbers is equal to 0.
In one embodiment, the processing module 300 is configured to detect whether a difference between any two adjacent pre-recorded stream numbers is equal to a preset difference.
In one embodiment, the processing module 300 is configured to obtain the number of sequence bytes according to the serial number of the access card; the processing module 300 is further configured to obtain a prerecorded streaming number with a byte number smaller than a preset byte number.
In one embodiment, the processing module 300 is configured to detect whether the serial number to be detected is greater than the preset serial number; the processing module 300 is further configured to compare the serial number greater than the preset serial number with the serial number to be detected in sequence when the serial number to be detected is greater than the preset serial number.
Above-mentioned entrance guard's card management device, read module 100 and carry the serial number that obtains to processing module 300, processing module 300 changes the serial number of entrance guard's card into the serial number of arranging according to predetermineeing the rule in order, and be used for writing in the storage area of the entrance guard's card that corresponds with the serial number through writing in module 200, make the range that has big or small relation between each serial number, when inquiring about the serial number of entrance guard's card, only need with the serial number that predetermines the serial number relevance with the comparison of the serial number that awaits measuring can, do not compare with the serial number that predetermines the serial number not relevant promptly, the number of times is compared in the inquiry has been reduced, the data processing speed to the serial number of entrance guard's card has been improved, thereby the response speed of entrance guard's card has been improved
For specific limitations of the access card management device, reference may be made to the above limitations of the access card management method, which is not described herein again. All modules in the access control card management device can be completely or partially realized through software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 3. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer equipment is used for storing the serial number and the corresponding relation data of the serial number and the serial number. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method of access card management.
Those skilled in the art will appreciate that the architecture shown in fig. 3 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment thereof, there is provided a computer device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program: acquiring the serial number of each access control card; respectively acquiring serial numbers which are sequentially arranged according to a preset rule according to the serial numbers, and writing the serial numbers into corresponding storage areas of the access cards, wherein the serial number of each access card corresponds to one serial number; acquiring a serial number to be detected; detecting whether the serial number to be detected is matched with a preset serial number or not; and when the serial number to be detected is matched with the preset serial number, comparing the serial number associated with the preset serial number with the serial number to be detected in sequence.
In one embodiment thereof, a computer readable storage medium is provided, having stored thereon a computer program which, when executed by a processor, performs the steps of: acquiring the serial number of each access control card; respectively acquiring serial numbers which are sequentially arranged according to a preset rule according to the serial numbers, and writing the serial numbers into corresponding storage areas of the access cards, wherein the serial number of each access card corresponds to one serial number; acquiring a serial number to be detected; detecting whether the serial number to be detected is matched with a preset serial number or not; and when the serial number to be detected is matched with the preset serial number, comparing the serial number associated with the preset serial number with the serial number to be detected in sequence. It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. An access card management method, comprising:
acquiring the serial number of each access control card;
respectively acquiring serial numbers which are sequentially arranged according to a preset rule according to the serial numbers, and writing the serial numbers into corresponding storage areas of the access cards, wherein the serial number of each access card corresponds to one serial number;
acquiring a serial number to be detected;
detecting whether the serial number to be detected is matched with a preset serial number or not;
and when the serial number to be detected is matched with the preset serial number, comparing the serial number associated with the preset serial number with the serial number to be detected in sequence.
2. The method for managing the access card according to claim 1, wherein the step of respectively obtaining serial numbers which are sequentially arranged according to a preset rule according to the serial numbers comprises the steps of:
respectively acquiring corresponding pre-recorded serial numbers according to the serial numbers;
detecting whether the difference value of any two adjacent pre-recorded serial numbers is matched with a preset difference value or not;
and when the difference value of any two adjacent pre-recorded serial numbers is matched with a preset difference value, setting the pre-recorded serial numbers as serial numbers corresponding to the serial numbers.
3. The method for managing the access card according to claim 2, wherein the step of detecting whether the difference value between any two adjacent pre-recorded serial numbers is matched with a preset difference value comprises the steps of:
and detecting whether the difference value of any two adjacent pre-recorded stream numbers is greater than a preset difference value.
4. The method for managing the access card according to claim 2, wherein before detecting whether the difference between any two adjacent pre-recorded serial numbers matches a preset difference, the method comprises:
detecting whether the difference value of any two adjacent prerecorded serial numbers is equal to 0;
and when the difference value of any two adjacent pre-recorded serial numbers is equal to 0, re-acquiring the pre-recorded serial numbers.
5. The method for managing the access card according to claim 2, wherein the step of detecting whether the difference value between any two adjacent pre-recorded serial numbers is matched with a preset difference value comprises the steps of:
and detecting whether the difference value of any two adjacent pre-recorded stream numbers is equal to a preset difference value.
6. The method for managing the access card according to claim 2, wherein the step of respectively obtaining the corresponding pre-recorded serial numbers according to the serial numbers comprises:
acquiring the number of sequence bytes according to the serial number of the access control card;
and acquiring the prerecorded stream number with the byte number smaller than the preset byte number.
7. The method for managing the access card according to claim 1, wherein the detecting whether the serial number to be detected is matched with a preset serial number comprises:
detecting whether the serial number to be detected is larger than the preset serial number or not;
when the serial number to be detected is matched with the preset serial number, comparing the serial number matched with the preset serial number with the serial number to be detected according to the sequence comprises:
when the serial number to be detected is larger than the preset serial number, comparing the serial number larger than the preset serial number with the serial number to be detected in sequence.
8. An access card management device is characterized by comprising a reading module, a writing module and a processing module,
the reading module is used for acquiring the serial number of each access control card; the reading module is also used for acquiring the serial number to be detected;
the processing module is used for respectively obtaining serial numbers which are orderly arranged according to a preset rule according to the serial numbers; the processing module is also used for detecting whether the serial number to be detected is matched with a preset serial number or not; the processing module is further used for sequentially comparing the serial number matched with the preset serial number with the serial number to be detected when the serial number to be detected is matched with the preset serial number;
the writing module is used for writing the serial number into the corresponding storage area of the access control card.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of claims 1 to 7 are implemented when the computer program is executed by the processor.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN201911098234.3A 2019-11-12 2019-11-12 Access control card management method and device, computer equipment and storage medium Pending CN110838199A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911098234.3A CN110838199A (en) 2019-11-12 2019-11-12 Access control card management method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911098234.3A CN110838199A (en) 2019-11-12 2019-11-12 Access control card management method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN110838199A true CN110838199A (en) 2020-02-25

Family

ID=69576437

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911098234.3A Pending CN110838199A (en) 2019-11-12 2019-11-12 Access control card management method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110838199A (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030014372A1 (en) * 2000-08-04 2003-01-16 Wheeler Lynn Henry Trusted authentication digital signature (tads) system
CN101118599A (en) * 2006-07-31 2008-02-06 艾深特国际安全技术(深圳)有限公司 Certificates management method and system
CN101246607A (en) * 2007-02-13 2008-08-20 陈年 Digital authentication control method for access control system and access control system using the same
CN101286157A (en) * 2007-09-28 2008-10-15 深圳市天朗时代科技有限公司 File retrieval method and apparatus and time stream file processor
CN101493824A (en) * 2008-12-09 2009-07-29 北京中电飞华通信股份有限公司 Data retrieval method and device for database
CN106294633A (en) * 2016-07-30 2017-01-04 广东智慧电子信息产业股份有限公司 Step-by-step memory search method in all-purpose card equipment
CN108572958A (en) * 2017-03-07 2018-09-25 腾讯科技(深圳)有限公司 Data processing method and device
CN109040024A (en) * 2018-07-06 2018-12-18 广东微云科技股份有限公司 A kind of resource access right control method and system
CN109741506A (en) * 2019-02-28 2019-05-10 北京中金国信科技有限公司 A kind of method for unlocking, device and equipment
CN110019244A (en) * 2018-05-14 2019-07-16 网联清算有限公司 Data processing method, device and computer readable storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030014372A1 (en) * 2000-08-04 2003-01-16 Wheeler Lynn Henry Trusted authentication digital signature (tads) system
CN101118599A (en) * 2006-07-31 2008-02-06 艾深特国际安全技术(深圳)有限公司 Certificates management method and system
CN101246607A (en) * 2007-02-13 2008-08-20 陈年 Digital authentication control method for access control system and access control system using the same
CN101286157A (en) * 2007-09-28 2008-10-15 深圳市天朗时代科技有限公司 File retrieval method and apparatus and time stream file processor
CN101493824A (en) * 2008-12-09 2009-07-29 北京中电飞华通信股份有限公司 Data retrieval method and device for database
CN106294633A (en) * 2016-07-30 2017-01-04 广东智慧电子信息产业股份有限公司 Step-by-step memory search method in all-purpose card equipment
CN108572958A (en) * 2017-03-07 2018-09-25 腾讯科技(深圳)有限公司 Data processing method and device
CN110019244A (en) * 2018-05-14 2019-07-16 网联清算有限公司 Data processing method, device and computer readable storage medium
CN109040024A (en) * 2018-07-06 2018-12-18 广东微云科技股份有限公司 A kind of resource access right control method and system
CN109741506A (en) * 2019-02-28 2019-05-10 北京中金国信科技有限公司 A kind of method for unlocking, device and equipment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
张乃孝、樊文飞: "《数据结构简明教程》", 31 December 1987 *
郭明超、饶增仁: "校园射频IC卡电子交易系统的关键设计", 《兰州大学学报》 *

Similar Documents

Publication Publication Date Title
US9971898B2 (en) Method and system for providing anonymized data from a database
JPH05217035A (en) Microcircuit
JPH02210590A (en) Portable data carrier for storing and processing data
JPH087720B2 (en) Area access method for IC cards for multiple services
JPH11505355A (en) Data exchange system including portable data processing unit
JPH0259988A (en) Portable electronic device
JPH0440587A (en) Portable electronic equipment
TWI754811B (en) System for using device identification to identify via telecommunication server and method thereof
JP5548082B2 (en) Facility management system and method
US7363293B2 (en) Access control method and device in an embedded system
US10255429B2 (en) Setting an authorization level at enrollment
US8281150B2 (en) Smart card and access method thereof
WO1998013791A1 (en) Apparatus and method for personal identification
US10607195B2 (en) Facilitating selling and validating digital resources
CN110838199A (en) Access control card management method and device, computer equipment and storage medium
US20060288231A1 (en) Method of managing data in network system and a network system using the same
JPH04264688A (en) Method for approving password code of memory card
US20040172370A1 (en) Verfication of access compliance of subjects with objects in a data processing system with a security policy
CN112364307B (en) Software authorization method and related equipment
CN112597538A (en) Verifiable voting method and system based on block chain
US7806319B2 (en) System and method for protection of data contained in an integrated circuit
JP7363844B2 (en) How to manage access to secure elements and data objects
CN117407928B (en) Storage device, data protection method for storage device, computer apparatus, and medium
JPH0682344B2 (en) IC card
CN204883718U (en) Storage device with fingerprint identification function

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 516007 b1-b3 workshop, No.39 Hechang 6th Road East, Zhongkai high tech Zone, Huizhou City, Guangdong Province

Applicant after: Legrand intelligent electric (Huizhou) Co.,Ltd.

Address before: 516007 b1-b3 workshop, No.39 Hechang 6th Road East, Zhongkai high tech Zone, Huizhou City, Guangdong Province

Applicant before: TCL-LEGRAND INTERNATIONAL ELECTRICAL (HUIZHOU) Co.,Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200225