CN113297864B - Address setting device and method for entrance guard card reader - Google Patents

Address setting device and method for entrance guard card reader Download PDF

Info

Publication number
CN113297864B
CN113297864B CN202110551986.1A CN202110551986A CN113297864B CN 113297864 B CN113297864 B CN 113297864B CN 202110551986 A CN202110551986 A CN 202110551986A CN 113297864 B CN113297864 B CN 113297864B
Authority
CN
China
Prior art keywords
address
card reader
light emitting
emitting diodes
port
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.)
Active
Application number
CN202110551986.1A
Other languages
Chinese (zh)
Other versions
CN113297864A (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.)
Shanghai Yixiong Electronics Co ltd
Original Assignee
Shanghai Yixiong Electronics 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 Shanghai Yixiong Electronics Co ltd filed Critical Shanghai Yixiong Electronics Co ltd
Priority to CN202110551986.1A priority Critical patent/CN113297864B/en
Publication of CN113297864A publication Critical patent/CN113297864A/en
Application granted granted Critical
Publication of CN113297864B publication Critical patent/CN113297864B/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
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/10009Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves
    • G06K7/10366Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves the interrogation device being adapted for miscellaneous applications
    • G06K7/10415Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves the interrogation device being adapted for miscellaneous applications the interrogation device being fixed in its position, such as an access control device for reading wireless access cards, or a wireless ATM
    • G06K7/10425Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves the interrogation device being adapted for miscellaneous applications the interrogation device being fixed in its position, such as an access control device for reading wireless access cards, or a wireless ATM the interrogation device being arranged for interrogation of record carriers passing by the interrogation device
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/20Individual registration on entry or exit involving the use of a pass
    • G07C9/28Individual registration on entry or exit involving the use of a pass the pass enabling tracking or indicating presence
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/20Individual registration on entry or exit involving the use of a pass
    • G07C9/29Individual registration on entry or exit involving the use of a pass the pass containing active electronic elements, e.g. smartcards

Abstract

The invention relates to an address setting device and method of an access card reader, wherein the device comprises a singlechip, the singlechip comprises a setting I/O port for entering an address setting state, and the singlechip is connected with an anti-disassembly switch and a plurality of light emitting diodes; the set I/O port is grounded, the access control card reader enters an address setting state, the anti-disassembly switch is used for setting an address, and the plurality of light emitting diodes are used for displaying the currently set address; the I/O port is disconnected, the entrance guard card reader is in a non-address setting state, and the anti-disassembly switch is used for anti-disassembly alarm. The device has the waterproof and dustproof performances because only one I/O port and a plurality of light emitting diodes are added in the card reader.

Description

Address setting device and method for entrance guard card reader
Technical Field
The invention relates to the field of card readers, in particular to an address setting device and method of an access card reader.
Background
Because the card reader can be used in a severe environment, high requirements on water resistance and dust resistance are met. The existing entrance guard card readers in the market generally adopt a method of setting an additional dial switch to realize address setting, however, the dial switch is generally not waterproof, and the dial switch is arranged on a glue filling surface on the back surface of a plastic shell of the card reader, so that the formed card reader is not waterproof, if the card reader is waterproof, the dial switch which is waterproof needs to be purchased, the cost is higher, and the card reader formed by the dial switch cannot necessarily meet the dustproof requirement. Therefore, in the prior art, the problem that the address setting is high in cost and waterproof and dustproof is realized by utilizing the dial switch is solved, and the invention provides an address setting device and method of an access card reader.
Disclosure of Invention
The invention aims to provide an address setting method and device for an access card reader, which are used for realizing bus address allocation of the access card reader under the condition of ensuring water resistance and dust prevention.
In order to achieve the above object, the present invention provides the following solutions:
an address setting device of an access card reader, the device comprises a singlechip;
the singlechip comprises a setting I/O port for entering an address setting state, and is connected with the anti-disassembly switch and a plurality of light emitting diodes;
the set I/O port is grounded, the access control card reader enters an address setting state, the anti-disassembly switch is used for setting an address, and the plurality of light emitting diodes are used for displaying the currently set address;
the set I/O port is grounded and disconnected, the entrance guard card reader is in a non-address setting state, and the anti-disassembly switch is used for anti-disassembly alarm.
The invention also provides an address setting method of the access card reader, which comprises the following steps:
when the I/O port is grounded, the anti-disassembly switch is pressed to enable the plurality of light emitting diodes to emit light to display the set address of the access control card reader.
According to the specific embodiment provided by the invention, the invention discloses the following technical effects:
the invention only adds one setting I/O port and a plurality of light emitting diodes on the basis of the original card reader, judges the setting state through the grounding or ungrounded of the setting I/O port, enters the address setting state when the setting I/O port is grounded, realizes address rotation by utilizing the pressing and releasing processes of the original anti-dismantling switch of the card reader, and displays the current address by utilizing the on and off of the light emitting diodes. According to the method, the I/O port and the light emitting diodes are added in the card reader, so that the waterproof and dustproof performances of the original card reader are not affected.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are needed in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic structural diagram of an address setting device of an access card reader according to embodiment 1 of the present invention;
fig. 2 is a schematic view of a light emitting form of a diode in an address setting device of an access card reader according to embodiment 1 of the present invention;
fig. 3 is a flowchart of a method for pressing the anti-disassembly switch to make a plurality of light emitting diodes illuminate to display the set address of the access card reader according to embodiment 2 of the present invention.
Symbol description: 1-a singlechip; 2-setting an I/O port; 3-an anti-disassembly switch; 4-light emitting diode.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The invention aims to provide an address setting device and method for an access control card reader capable of preventing water and dust.
In order that the above-recited objects, features and advantages of the present invention will become more readily apparent, a more particular description of the invention will be rendered by reference to the appended drawings and appended detailed description.
Example 1
A plurality of devices are connected under the bus of the server, and when the server communicates with the devices (readers) under the bus thereof, it is necessary to acquire the address of the reader below, and therefore, each reader needs to set an address, which is set individually for each reader. For example, when the server is connected with 5 card readers, the addresses of the 5 card readers are different, if the addresses of the two card readers are the same (for example, the addresses are all the 3 rd addresses), when the server communicates with the card readers with the 3 rd addresses, the two card readers with the 3 rd addresses send instruction information to the server at the same time, so that the instructions sent by the two card readers are mixed together, the server cannot recognize the instructions, and accordingly faults occur.
It should be noted that, when the card reader is installed/initialized once, the address of the card reader is fixedly stored in the memory of the card reader. Therefore, the subsequent server does not need to set an address when communicating with the card reader.
Based on the above, this embodiment provides an address setting device of an access card reader, referring to fig. 1, the device includes a single chip microcomputer 1;
the singlechip 1 comprises a setting I/O port 2 for entering an address setting state, and the singlechip 1 is connected with the anti-disassembly switch 3 and a plurality of light emitting diodes 4;
the set I/O port 2 may be defined by an original I/O port of the single-chip microcomputer 1, or may be set by adding a set I/O port 2 to the single-chip microcomputer 1.
The I/O port 2 is grounded, the access control card reader enters an address setting state, the anti-disassembly switch 3 is used for setting an address, and the LEDs 4 are used for displaying the currently set address;
the I/O port 2 is disconnected, the entrance guard card reader is in a non-address setting state, and the anti-disassembly switch 3 is used for anti-disassembly alarm.
It should be noted that, the premise of the anti-disassembly switch 3 for adjusting address setting is to set the I/O port 2 to be short-circuited with the ground, and if not short-circuited, the anti-disassembly switch 3 has an anti-disassembly alarm function. The principle of the anti-disassembly alarm is that the anti-disassembly switch 3 is provided with a base and a switch button, the button is in a conducting state when pressed down, and is in a disconnecting state when loosened. The card reader is arranged on the wall, after the card reader is arranged on the wall, a switch button of the card reader is abutted against the wall and is in a conducting state, when the equipment is detached from the wall, the button is loosened, the connection is in a disconnecting state, and the card reader alarms.
In this embodiment, the number of the corresponding light emitting diodes 4 may be set according to the number of addresses of the card reader, where the relationship between the number of the light emitting diodes 4 and the number of addresses of the card reader to be set is: address number=2 Number of light emitting diodes
The form of the display address of the plurality of light emitting diodes 4 may be selected as an address set to emit light in a binary form. Please refer to fig. 2 in detail.
For example, when the number of addresses of the card reader to be set is 4, the number of light emitting diodes 4 is required to beThe addresses of the 2 and 4 card readers are respectively: 0,1,2 and 3. The plurality of leds 4 emit light in binary form to display the set address, and when the last led 4 of the 2 leds 4 is on and the rest leds 4 are off, the address displayed by the leds 4 is 1, namely: 2 0 =1. When the last LED 4 of the 2 LEDs 4 is on and the rest of the LEDs 4 are off, the LED 4 displays an address of 2, namely: 2 1 =2. When the 2 leds 4 are fully lit, the leds 4 display an address of 3, i.e.: 2 0 +2 1 =3. The address value represented by each LED is marked by the corresponding LED, the address of the card reader is equal to the marked value of the lighted LED, and the identification is very simple.
The card reader address setting device provided by the implementation is simple in structure, and the cost of the address setting device installed on the card reader relative to the existing purchase waterproof dial switch is low because only one setting I/O port 2 and a plurality of light emitting diodes 4 are added on the basis of the original card reader. Because the added light emitting diodes 4 are arranged inside the card reader, compared with the prior art that a setting mode of a dial switch is added on a glue filling surface outside the plastic shell of the card reader, the address setting device of the card reader in the embodiment has the performance of water resistance and dust resistance.
Example 2
The embodiment provides an address setting method of an access card reader, which comprises the following steps:
when the I/O port 2 is grounded, the anti-disassembly switch 3 is pressed to enable the light emitting diodes 4 to emit light to display the set address of the entrance guard card reader.
Wherein, whether the set I/O port 2 is grounded or not is judged by the singlechip 1.
In the setting address of the access control card reader in this embodiment: minimum address=0, maximum address=2 Number of light emitting diodes -1。
When the number of the light emitting diodes 4 is 4, the formula is as follows: maximum address=2 Number of light emitting diodes 4 -1 it is known that the maximum address is 15That is, when the 4 light emitting diodes 4 are fully lit, there are: 2 0 +2 1 +2 2 +2 3 =15。
Optionally, as shown in fig. 3, when the I/O port 2 is set to be grounded, the step of pressing the anti-disassembly switch 3 to make the plurality of light emitting diodes 4 emit light to display the set address of the access card reader includes:
s11, grounding the set I/O port 2, triggering the anti-disassembly switch 3, and enabling the current set address displayed by the plurality of light emitting diodes 4 to be 0;
it should be noted that, only during initialization, the set I/O,2 is grounded, the current address displayed by the plurality of light emitting diodes 4 is 0, and when the address is set, checking whether the set address is correct, the set I/O port 2 is grounded, and the address displayed by the plurality of light emitting diodes 4 is the address of the card reader set last time.
The operation program is triggered, the short circuit is triggered, and when the short circuit is generated, the operation program displays the current address and receives the key signal of the anti-disassembly switch 3.
When the current address is set to 0, a plurality of leds 4 are in an all-off state, such as the state of the first row of leds 4 in fig. 2.
S12, pressing the anti-disassembly switch 3 according to the address of the access card reader to be set, so that a plurality of light emitting diodes 4 emit light according to the pressing times of the anti-disassembly switch 3 to display the set address;
in this embodiment, the relationship between the number of times of pressing the anti-detachment switch 3 and the address displayed by the light emitting diode 4 may be set such that, when the anti-detachment switch 3 is pressed once, the addresses displayed by the light emitting diodes 4 are increased by one until the light emitting diodes 4 display the address to be set, the anti-detachment switch 3 is stopped being pressed, and the connection between the setting I/O port 2 and the ground is disconnected.
When the addresses displayed by the light emitting diodes 4 are the maximum addresses, the anti-disassembly switch 3 is pressed once again, and the addresses displayed by the light emitting diodes 4 are the minimum addresses.
Considering that in actual operation, the operation error causes that the anti-disassembly switch 3 is pressed once more, at this time, the anti-disassembly switch 3 can be pressed towards the display address which is the maximum display address, when the display address is the maximum address, the anti-disassembly switch 3 is pressed once more, the display address returns to the minimum address 0, and then the anti-disassembly switch 3 is pressed according to the address which is required to be set.
S13, disconnecting the connection between the set I/O port 2 and the ground, and storing the currently set address by the singlechip 1.
The short circuit is triggered once from short circuit to non-short circuit, so when the short circuit is disconnected from short circuit, the key is not responded any more, and the singlechip 1 stores the currently set address.
The address setting method of the conventional card reader needs to install a dial switch, and because the dial switch is easy to dial by mistake, one more dial or one less dial is needed to be calculated, misoperation is easy to occur, and under the condition of misoperation, whether data are correct cannot be ensured, so that data are unsafe. According to the card reader address setting method provided by the embodiment, after the I/O port 2 is short-circuited with the ground, the card reader address setting method can be used only by pressing the anti-disassembly switch 3, so that misoperation is unlikely to occur, and data safety is guaranteed.
In the present specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different point from other embodiments, and identical and similar parts between the embodiments are all enough to refer to each other.
The principles and embodiments of the present invention have been described herein with reference to specific examples, the description of which is intended only to assist in understanding the methods of the present invention and the core ideas thereof; also, it is within the scope of the present invention to be modified by those of ordinary skill in the art in light of the present teachings. In view of the foregoing, this description should not be construed as limiting the invention.

Claims (7)

1. An address setting device of an access card reader is characterized by comprising a singlechip;
the singlechip comprises a setting I/O port for entering an address setting state, and is connected with the anti-disassembly switch and a plurality of light emitting diodes;
the set I/O port is grounded, the access control card reader enters an address setting state, the anti-disassembly switch is used for setting an address, and the plurality of light emitting diodes are used for displaying the currently set address;
the I/O port is disconnected, the entrance guard card reader is in a non-address setting state, and the anti-disassembly switch is used for anti-disassembly alarm;
the address setting device comprises the following steps when in specific application:
when the I/O port is grounded, the anti-disassembly switch is pressed to enable the plurality of light emitting diodes to emit light to display the set address of the access control card reader, and the method specifically comprises the following steps:
grounding the set I/O port, triggering the anti-disassembly switch, and enabling the current set address displayed by a plurality of light emitting diodes to be 0;
pressing the anti-disassembly switch according to the address of the access card reader to be set, so that a plurality of light emitting diodes emit light according to the pressing times of the anti-disassembly switch to display the set address; specifically, each time the anti-disassembly switch is pressed, the addresses displayed by the light emitting diodes are increased by one, and the pressing of the anti-disassembly switch is stopped until the light emitting diodes display the addresses required to be set;
and disconnecting the connection between the set I/O port and the ground, and storing the currently set address by the singlechip.
2. The device according to claim 1, wherein the number of light emitting diodes is related to the number of addresses of the card reader to be set by: address number=2 Number of light emitting diodes
3. The device of claim 1, wherein a number of the leds emit light in binary form to display a set address.
4. The apparatus of claim 1, wherein whether the set I/O port is grounded is determined by a single chip microcomputer.
5. The apparatus of claim 1, wherein the access card reader is configured to: minimum address=0, maximum address=2 Number of light emitting diodes -1。
6. The apparatus of claim 1, wherein a number of the leds are in an all-off state when the currently set address is 0.
7. The device of claim 4, wherein when the address displayed by the plurality of leds is the maximum address, the tamper switch is pressed once again, and the address displayed by the plurality of leds is the minimum address.
CN202110551986.1A 2021-05-20 2021-05-20 Address setting device and method for entrance guard card reader Active CN113297864B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110551986.1A CN113297864B (en) 2021-05-20 2021-05-20 Address setting device and method for entrance guard card reader

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110551986.1A CN113297864B (en) 2021-05-20 2021-05-20 Address setting device and method for entrance guard card reader

Publications (2)

Publication Number Publication Date
CN113297864A CN113297864A (en) 2021-08-24
CN113297864B true CN113297864B (en) 2024-03-08

Family

ID=77323058

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110551986.1A Active CN113297864B (en) 2021-05-20 2021-05-20 Address setting device and method for entrance guard card reader

Country Status (1)

Country Link
CN (1) CN113297864B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1804962A (en) * 2006-01-18 2006-07-19 韦韧丝 Address code controlled LED display system and its control method
CN201464848U (en) * 2009-06-18 2010-05-12 重庆大学 Energy-saving intelligent manager for students' study room
CN206400558U (en) * 2016-11-28 2017-08-11 深圳市华智创科智能科技有限公司 Card reader and gate control system
CN209460611U (en) * 2019-03-06 2019-10-01 铠龙东方汽车有限公司 A kind of address code setting circuit

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1804962A (en) * 2006-01-18 2006-07-19 韦韧丝 Address code controlled LED display system and its control method
CN201464848U (en) * 2009-06-18 2010-05-12 重庆大学 Energy-saving intelligent manager for students' study room
CN206400558U (en) * 2016-11-28 2017-08-11 深圳市华智创科智能科技有限公司 Card reader and gate control system
CN209460611U (en) * 2019-03-06 2019-10-01 铠龙东方汽车有限公司 A kind of address code setting circuit

Also Published As

Publication number Publication date
CN113297864A (en) 2021-08-24

Similar Documents

Publication Publication Date Title
US5519832A (en) Method and apparatus for displaying module diagnostic results
US5327435A (en) Method for testing a processor module in a computer system
CN1952909A (en) Method and system for showing error of computer
CN103747031A (en) LED display screen fault network monitor system
US8935451B2 (en) Network card detecting circuit
CN102236378A (en) Method of monitoring connection status of an electronic device and related electronic device
CN108845763A (en) A kind of system and method for managing disk state concentratedly
WO2020134340A1 (en) Hard drive extension system and electronic device
CN113297864B (en) Address setting device and method for entrance guard card reader
US7439868B2 (en) Drive circuit for driving indicator in computer system
CN113915942B (en) Refrigerator and WiFi module working state detection method
CN211653795U (en) Tamper pin extension circuit and POS machine
CN106683604A (en) LED display and key detection multiplexing circuit
CN111352787B (en) GPU topology connection detection method, device, equipment and storage medium
CN113687707A (en) Power supply voltage control device of mainboard and server
CN103123799A (en) Rate indication circuit, rigid disk backboard and electronic device
US20050257095A1 (en) Apparatus and method for detecting and indicating faults on a motherboard
TW550996B (en) Circuit board with protection function and method for protecting circuit board
CN111005892B (en) Adaptive fan circuit, system, electronic equipment and fan detection method
US7225328B2 (en) Maintenance terminal of disk array device
CN114500217A (en) Information interaction and alarm device
CN112035304A (en) Plug-in detection method and server system
US8510477B2 (en) Protocol resolution device and method employing the same
CN111338911A (en) Server hard disk indicator lamp control system and control method thereof
JPS61181227A (en) Power supply voltage supervisory device

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