Access control system based on CAN bus extension
By using CAN bus expansion technology and NFC readers and writers in the access control system, the shortcomings of the existing access control controller communication methods are solved, more efficient communication and flexible parameter configuration are achieved, and the cost and operational complexity are reduced.
Patent Information
- Application Number
- CN202323626841.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-28
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2033-12-28
AI Technical Summary
The communication methods of existing access control controllers have problems such as one-way transmission, low security, short distance, low real-time performance, and inflexible parameter configuration, resulting in high costs and cumbersome operations.
Using expansion technology based on CAN bus, real-time communication between the access control controller and the card reader is realized through CAN1 and CAN2 bus circuits, and the NFC reader is used for parameter configuration, which reduces wiring costs and configuration complexity.
It improves the real-time communication and authentication rate, simplifies the parameter configuration process, reduces deployment costs, and enhances device compatibility and scalability.
Smart Images

Figure CN221668328U
Abstract
Description
Technical Field
[0001] The utility model relates to the field of access control, in particular to an access control system based on CAN bus expansion. Background Art
[0002] Access control system is an important part of modern security management system, and is widely used in personnel control and regional control, such as residential areas, office buildings, hospitals, parks and other places. Access control system is generally composed of servers, routers, switches, communication networks, access control controllers, access control card readers, various verification devices, magnetic locks, push button switches, etc. Among them, the access control controller plays a connecting role in the access control system.
[0003] After years of development, access control controllers have been named based on "doors", such as single-door controllers, dual-door controllers, and four-door controllers. Currently, the communication methods between access control controllers and access card readers are mainly Wiegand communication and RS485 communication. Although Wiegand communication has the advantage of low circuit hardware cost, it has some disadvantages that cannot be ignored: (1) Wiegand communication can only transmit in one direction and requires an independent feedback signal to output the authentication result; (2) Each access card reader needs to be connected to a Wiegand communication interface separately, which increases the wiring cost; (3) Wiegand communication uses the Wiegand standard format to transmit data, which is plain text transmission and has low security; (4) Wiegand communication has a short distance, with a theoretical value of less than 100 meters. Compared with the above problems, RS485 communication can make up for the shortcomings of Wiegand communication in the access control system, but RS485 communication is half-duplex communication, and the communication is initiated by the host and responded by the slave. It is heavily dependent on the host and the communication real-time performance is low. Moreover, the current expansion method between access controllers mostly uses RS485 bus expansion, which will lead to a series of problems such as large data communication delay, signal feedback delay, access control delay, etc. The access controller parameter configuration is usually modified by searching the terminal on the network. This method requires statistics of the access controller serial number, MAC address, installation location and other parameters in advance to distinguish different controllers. If the access controller parameters are configured in advance and then installed according to the configured parameters, the deployment method is inflexible and the operation is cumbersome. The above problems have brought great troubles to the access control industry, increasing costs while also hindering the development of the industry. Utility Model Content
[0004] Purpose of the utility model: In order to solve the problems existing in the prior art, the utility model provides an access control system based on CAN bus expansion with lower deployment cost and more flexible parameter configuration.
[0005] Technical solution: The access control system based on CAN bus expansion of the present invention includes multiple access control controllers, multiple card readers, multiple switches, multiple routers, servers and clients. Each access control controller includes an access control board and an access control business board. Multiple card readers are electrically connected to the access control controller after networking through the CAN2 bus circuit on the access control board. Multiple access control controllers are networked through the CAN1 bus on the access control board. Multiple access control controllers are then electrically connected to the switch through Ethernet. Multiple switches are electrically connected to multiple routers through Ethernet. The server deploying the access control system is electrically connected to the router through Ethernet, and the client is electrically connected to the router through Ethernet.
[0006] The card reader reads the card data and transmits it to the access control board via the CAN2 bus circuit local area network for data preprocessing. The access control board transmits the processed data to the access control business board to complete the authentication function. The access control business board sends a message to the access control board to execute the magnetic lock unlocking function, and the access control board feeds back the card reader authentication result.
[0007] Furthermore, the access control board and the access service board are electrically connected by a plug-in connector, and the access service board is used to realize data communication and run the access service software, and the functions of the access service software include authority authentication, record uploading, and user authority storage;
[0008] The access control board includes a CAN1 bus circuit, a CAN2 bus circuit, an MCU circuit, an Ethernet circuit, a USB interface circuit, a TF card circuit, a door button detection circuit, a door status detection circuit, an auxiliary input detection circuit, an auxiliary output circuit, a lock control circuit and a rotary switch;
[0009] The CAN1 bus circuit is electrically connected to the CPU of the access control board or the MCU of the access control board through a rotary switch, and is used for networking between access control controllers;
[0010] The MCU circuit, Ethernet circuit, USB interface circuit, and TF card circuit are respectively connected to the access control service board; the door button detection circuit is connected to the MCU circuit;
[0011] One end of the CAN2 bus circuit is electrically connected to the MCU of the access control board, and the other end is electrically connected to the card reader, forming a communication local area network between the access controller and the card reader, which is used for real-time authentication of the access controller;
[0012] The Ethernet circuit is used for data communication between the access control server and the access control controller to complete permission downloading, record uploading, time synchronization, and abnormal event alarm;
[0013] The USB interface circuit is used for debugging the access control service board;
[0014] The TF card circuit is bidirectionally electrically connected to the CPU on the access control service board, and is mainly used for access control controller data storage and operating system burning;
[0015] After the lock control circuit is electrically connected to the electric lock, it is electrically connected to the MCU circuit to form a magnetic lock control circuit of the access control system for door control;
[0016] The door button detection circuit is electrically connected to the exit button and is used to trigger the control relay of the corresponding magnetic lock to complete the control of the corresponding door;
[0017] The auxiliary input detection circuit and the auxiliary output circuit are electrically connected to the MCU circuit respectively, and are used for fire linkage, sound and light alarm, human body detection, and monitoring capture.
[0018] Furthermore, the access control service board includes a CPU, a RAM, a ROM, a power management module, a first access control service board connector, and a second access control service board connector; wherein the CPU is bidirectionally connected to the MCU circuit, the RAM is used for the operation of the access control controller operating system and the access control service software; the ROM is used for storing the access control controller configuration data and the access control service data; the power management module provides the required power for each module;
[0019] The first access control business board connector is connected to the Ethernet circuit, and the second access control business board connector is bidirectionally electrically connected to the TF card circuit.
[0020] Furthermore, when the access controller is used as a host, the CAN1 bus circuit is electrically connected to the CPU on the access control service board; when the access controller is used as an extended slave, the CAN1 bus circuit is electrically connected to the MCU circuit on the access control board.
[0021] Further, the CAN1 bus circuit includes: a first transceiver circuit, a first resistor, a second resistor, a third resistor, a fourth resistor, a seventh resistor and a ninth resistor connected to the first transceiver circuit, a first light-emitting diode, and a third light-emitting diode; the positive electrode of the first light-emitting diode is connected to the power supply, and the negative electrode is connected to the first pin of the seventh resistor; the positive electrode of the third light-emitting diode is connected to the power supply, and the negative electrode is connected to the first pin of the ninth resistor;
[0022] In the first transceiver circuit, the D pin of the first transceiver interface chip is connected to the CAN-TX pin of the CPU through the first resistor, and the R pin is connected to the CAN-RX pin of the CPU through the second resistor, forming the CAN1 controller circuit of the CPU; the D pin of the first transceiver interface chip is connected to the CAN1-TX pin of the MCU through the third resistor, and the R pin is connected to the CAN1-RX pin of the MCU through the fourth resistor, forming the CAN1 controller circuit of the MCU; the VCC pin of the first transceiver interface chip is connected to the power supply and the first capacitor; the positive electrode of the first light-emitting diode is connected to the power supply, and the negative electrode is connected to the first pin of the seventh resistor, The second pin of the seventh resistor is connected to the R pin of the first transceiver interface chip to form a data receiving indication circuit, and the first light-emitting diode flashes to display whether the data is transmitted; the positive electrode of the third light-emitting diode is connected to the power supply, and the negative electrode is connected to the first pin of the ninth resistor, and the second pin of the ninth resistor is connected to the D pin of the first transceiver interface chip to form a data sending indication circuit, and the third light-emitting diode flashes to display whether the data is transmitted; the RS pin of the first transceiver interface chip is connected to the first pin of the twelfth resistor, and the second pin of the twelfth resistor is connected to the ground wire, which is used to set the communication rate of the first transceiver interface chip to high speed; the first transceiver interface The CANH pin of the chip is respectively connected to the first pin of the fifteenth resistor and the first pin of the first resettable fuse, and the second pin of the first resettable fuse is connected to the first pin of the first discharge tube to form an H line; the CANL pin of the first transceiver interface chip is respectively connected to the first pin of the sixteenth resistor and the first pin of the second resettable fuse, and the second pin of the second resettable fuse is connected to the first pin of the second discharge tube to form an L line, and the H line and the L line constitute a communication device end circuit; the LBK pin of the first transceiver interface chip is connected to the first pin of the eleventh resistor, and the second pin of the eleventh resistor is respectively connected to the fifteenth resistor. The second pin of the resistor, the second pin of the sixteenth resistor, and the first pin of the third capacitor are connected, and the second pin of the third capacitor is connected to the ground line, forming a voltage divider circuit of the first transceiver interface chip and adapting the working voltage; the first pin of the first transient protection diode is connected to the CANL pin of the first transceiver interface chip, the second pin is connected to the CANH pin of the first transceiver interface chip, and the third pin is connected to the ground line, forming an electrostatic protection circuit; the first pin of the first discharge tube is connected to the first resettable fuse, and the second pin is connected to the ground line, and the first pin of the second discharge tube is connected to the second resettable fuse, and the second pin is connected to the ground line, forming a transient protection circuit;
[0023] The CAN2 bus circuit includes: a second transceiver circuit, a fifth resistor, a sixth resistor, an eighth resistor and a tenth resistor connected to the second transceiver circuit, a second light-emitting diode, and a fourth light-emitting diode; the positive electrode of the second light-emitting diode is connected to the power supply, and the negative electrode is connected to the first pin of the eighth resistor; the positive electrode of the fourth light-emitting diode is connected to the power supply, and the negative electrode is connected to the first pin of the tenth resistor; the second transceiver circuit has the same circuit structure as the first transceiver circuit, wherein the D pin of the second transceiver interface chip is connected to the CAN2-TX pin of the MCU through the fifth resistor, and the R pin is connected to the CAN2-RX pin of the MCU through the sixth resistor; the positive electrode of the second light-emitting diode is connected to the power supply, the negative electrode is connected to the first pin of the eighth resistor, and the second pin of the eighth resistor is connected to the R pin of the second transceiver interface chip, forming a receiving data indication circuit, and the second light-emitting diode flashes to display whether the data is transmitted; the positive electrode of the fourth light-emitting diode is connected to the power supply, the negative electrode is connected to the first pin of the tenth resistor, and the second pin of the tenth resistor is connected to the D pin of the second transceiver interface chip, forming a sending data indication circuit, and the fourth light-emitting diode flashes to display whether the data is transmitted.
[0024] Furthermore, the card reader is an NFC reader / writer, which uses near field communication for data exchange and executes the operation of modifying the configuration parameters of the access control controller.
[0025] The beneficial effects of the utility model are as follows:
[0026] 1. The present invention electrically connects a multi-channel card reader to an access control board through a CAN2 bus. When the card reader identifies the data to be authenticated, it can actively initiate communication and transmit the data to be authenticated to the access control board in real time. Compared with the traditional access control system, the access control system electrically connecting a multi-channel card reader to an access control board through a CAN2 bus has the beneficial effects of higher real-time performance and faster authentication rate.
[0027] 2. The present invention electrically connects the card reader to the access control board through the CAN2 bus, and the card reader can actively initiate communication with the access control board. Fill in the parameters to be configured in the mobile phone APP, exchange data with the card reader through the mobile phone NFC, transmit the data to the access control board through the CAN2 bus via the card reader, and then transmit it to the access control business board by the access control board to finally complete the parameter configuration; compared with the traditional access control system, there is no need to do a lot of parameter configuration work in the early stage of construction, just fit the mobile phone and the card reader together to complete the parameter configuration of the access control controller; making the parameter configuration of the access control controller more flexible and more convenient;
[0028] 3. The present invention forms a local area network to control the magnetic lock by means of CAN1 bus expansion. Through CAN1 bus expansion, in a scenario with a large number of doors in a small area, only one access controller with an access control service board is required to complete the data communication between the access controller and the server in the CAN1 local area network. This deployment method greatly reduces the number of access control service boards and further saves the deployment cost of the access control system.
[0029] 4. The present invention is electrically connected to the authentication device through the CAN2 bus. The CAN2 bus is a local area network bus. A large number of devices with CAN communication interfaces can be connected to the local area network. Through the CAN2 bus, the authentication device can be an RFID card reader, a password keyboard, a QR code reader, a fingerprint reader, a face reader, etc. Compared with the traditional access control system, the access control controller can be connected to a large number of authentication devices without any changes in the circuit and structure, which further improves the device compatibility of the access control controller;
[0030] 5. The access controller in the present invention is composed of an access control board and an access business board. The access business board and the access control board are quickly electrically connected through a plug-in connector. According to the complexity of the access business, the access business board that meets the business needs can be quickly adapted without any circuit and structural changes. The access controller in the present invention has CAN1 and CAN2 buses, which can adapt to a large number of devices, further enriching the extensibility of the access controller. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 This is the hardware architecture diagram of the access control controller in this utility model;
[0032] Figure 2 It is a topological diagram of the utility model;
[0033] Figure 3 It is the CAN1 bus circuit of the utility model;
[0034] Figure 4 This is a CAN2 bus circuit of the utility model. DETAILED DESCRIPTION
[0035] The technical solution of the utility model is described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0036] like Figure 1 The figure shows an access controller based on CAN bus expansion, which is mainly composed of two parts: an access control board 100 and an access business board 200.
[0037] The access control board 100 includes a CAN1 bus circuit 106, a CAN2 bus circuit 107, an MCU circuit 112, an Ethernet circuit, a USB interface circuit, a TF card circuit 105, a door button detection circuit 109, a lock control circuit 111, a door state detection circuit 114, an auxiliary input detection circuit 108, an auxiliary output circuit 110, etc.
[0038] The access control business board 200 includes CPU 203, RAM 204, ROM 205, power management, a first access control business board connector 201, and a second access control business board connector 202. RAM 204 is used for the operation of the access control controller operating system and the access control business software; ROM 205 is used to store the access control controller configuration data and the access control business data; the power management module provides the required power for each module. The function of the access control business board 200 is data communication and running the access control business software. The functions of the access control business software include authority authentication, record uploading, user authority storage, etc. The access control board 100 and the access control business board 200 are electrically connected by a plug-in connector. This design can adapt to the access control business board of different scene application requirements, further increasing the hardware scalability of the access control controller.
[0039] The CAN1 bus circuit 106 selects to electrically connect the CPU 203 of the access control board or the MCU 112 of the access control board through the rotary switch 113, and is used for networking between access control controllers. When the access control controller is used as a host, the CAN1 bus circuit 106 is electrically connected to the CPU 203 of the access control board. When the access control controller is used as an extended slave, the CAN1 bus circuit 106 is electrically connected to the MCU 112 of the access control board. In a scenario where there are many doors in a small area, a local area network can be formed to control the magnetic lock by means of bus expansion of the CAN1 bus circuit 106. Through the bus expansion of the CAN1 bus circuit 106, only one access control controller with an access control board is required to complete the data communication between the access control controller and the server in the CAN1 bus circuit 106 local area network. This deployment method greatly reduces the number of access control business boards and further saves the deployment cost of the access control system.
[0040] The CAN2 bus circuit 107 is electrically connected to the MCU 112 of the access control board, and the CAN2 bus circuit 107 is electrically connected to the card reader 400, forming a communication local area network between the access control controller and the card reader, which is used for real-time authentication of the access control controller. The CAN2 bus circuit 107 belongs to the control local area network, and all devices in the local area network are hosts. The card reader obtains the data to be verified, and the data is transmitted to the access control controller in real time through the CAN2 bus circuit 107 to complete the card number authentication. The access control controller adopts a compatibility design and can adapt to a variety of verification devices, such as card readers, password keyboards, fingerprint readers, QR code readers, face recognizers, etc., which greatly increases the hardware scalability of the access control controller.
[0041] The card reader 400 is an NFC reader / writer, which uses near field communication for data exchange and performs the operation of modifying the configuration parameters of the access controller. The pre-edited configuration parameters are written into the access controller through the NFC reader / writer by using the NFC communication function of the mobile phone, so as to achieve the purpose of quickly configuring the parameters of the access controller. In the implementation of the access control system, the method of writing the parameters of the access controller through the NFC card reader can not only enable the access controller to quickly establish communication with the access control server, but also avoid the cumbersome process of configuring the parameters of the access controller. The method of configuring the parameters of the access controller through NFC greatly improves the flexibility of the parameter configuration of the access controller.
[0042] The Ethernet circuit is composed of a bidirectional electrical connection between the RJ45 connector 101, the PHY chip 102, and the MAC controller of the CPU 203. The Ethernet circuit is used for data communication between the access control server and the access control controller, and completes functions such as permission download, record upload, time synchronization, and abnormal event alarm.
[0043] The USB interface circuit is composed of a USB connector 103, a USB to UART circuit 104, and a UART bidirectional electrical connection of the CPU 203, and is used for debugging the access control service board.
[0044] The TF card circuit 105 is bidirectionally electrically connected to the CPU 203 and is mainly used for access controller data storage and operating system burning.
[0045] After the lock control circuit 111 is electrically connected to the magnetic lock 301 , it is electrically connected to the MCU 112 of the access control board to form a magnetic lock control circuit of the access control system for door control.
[0046] The door button detection circuit 109 is electrically connected to the exit button and is used to trigger the control relay of the corresponding magnetic lock to complete the control of the corresponding door.
[0047] The auxiliary input detection circuit 108 and the auxiliary output circuit 110 are electrically connected to the MCU 112 respectively, and are used for applications such as fire linkage, sound and light alarm, human body detection, and monitoring capture.
[0048] Access control system topology Figure 2The access control system is composed of multiple card readers 400 that are networked through the CAN2 bus circuit 107 and electrically connected to the access control controller 300, multiple access control controllers 300 that are networked through the CAN1 bus circuit 106, multiple access control controllers 300 equipped with access control service boards 200 that are electrically connected to the switch 600 through Ethernet, multiple switches 600 and multiple routers 700 that are electrically connected through Ethernet, a server 800 that deploys the access control system and each router 700 that is electrically connected through Ethernet, and a client 900 and the router 700 that are electrically connected through Ethernet. The working process of the access control controller is: the card reader 400 reads the card 500 data, and transmits it to the access control board 100 through the CAN2 bus circuit 107 local area network for data preprocessing, and then the access control board 100 transmits the processed data to the access control business board 200 to complete the authentication function, and then the access control business board 200 sends a message to the access control board 100 to execute the magnetic lock unlocking function, and finally the access control board 100 feeds back the authentication result of the card reader 400.
[0049] The preferred CAN1 bus circuit is as follows Figure 3As shown, the CAN1 bus circuit 106 includes: a first transceiver circuit, a first resistor R1, a second resistor R2, a third resistor R3, a fourth resistor R4, a seventh resistor R7 and a ninth resistor R9 connected to the first transceiver circuit, a first light-emitting diode D1, and a third light-emitting diode D3; the positive electrode of the first light-emitting diode D1 is connected to the power supply, and the negative electrode is connected to the first pin of the seventh resistor R7; the positive electrode of the third light-emitting diode D3 is connected to the power supply, and the negative electrode is connected to the first pin of the ninth resistor R9. The first implementation method is that the D pin of the first transceiver interface chip U1 in the first transceiver circuit is connected to the first pin of the first resistor R1, and the second pin of the first resistor R1 is connected to the CAN-TX pin of CPU203; the R pin of the first transceiver interface chip U1 is connected to the first pin of the second resistor R2, and the second pin of the second resistor R2 is connected to the CAN-RX pin of CPU203. The above circuit structure constitutes the CAN1 controller circuit of CPU203. The second implementation is that the D pin of the first transceiver interface chip U1 is connected to the first pin of the third resistor R3, and the second pin of the third resistor R3 is connected to the CAN1-TX pin of the MCU112; the R pin of the first transceiver interface chip U1 is connected to the first pin of the fourth resistor R4, and the second pin of the fourth resistor R4 is connected to the CAN1-RX pin of the MCU112, and the above circuit structure constitutes the CAN1 controller circuit of the MCU112. The VCC pin of the first transceiver interface chip U1 is connected to the 3V power supply and the first capacitor C1; the positive electrode of the first light-emitting diode D1 is connected to the 3V power supply, and the negative electrode is connected to the first pin of the seventh resistor R7, and the second pin of the seventh resistor R7 is connected to the R pin of the first transceiver interface chip U1, forming a receiving data indication circuit, and the first light-emitting diode D1 flashes to display whether the data is transmitted. The positive electrode of the third light-emitting diode D3 is connected to the 3V power supply, and the negative electrode is connected to the first pin of the ninth resistor R9. The second pin of the ninth resistor R9 is connected to the D pin of the first transceiver interface chip U1, forming a data transmission schematic circuit, and the third light-emitting diode D3 flashes to display whether the data is transmitted. The RS pin of the first transceiver interface chip U1 is connected to the first pin of the twelfth resistor R12, and the second pin of the twelfth resistor R12 is connected to the GND ground line, which is used to set the communication rate of the first transceiver interface chip U1 to high speed.The CANH pin of the first transceiver interface chip U1 is respectively connected to the first pin of the fifteenth resistor R15 and the first pin of the first resettable fuse PPTC1, and the second pin of the first resettable fuse PPTC1 is connected to the first pin of the first discharge tube G1, forming the H line of the CAN1 bus circuit communication; the CANL pin of the first transceiver interface chip U1 is respectively connected to the first pin of the sixteenth resistor R16 and the first pin of the second resettable fuse PPTC2, and the second pin of the second resettable fuse PPTC2 is connected to the first pin of the second discharge tube G2, forming the L line of the CAN1 bus circuit communication; the H line and the L line constitute the communication device end circuit of the CAN1 bus circuit. The LBK pin of the first transceiver interface chip U1 is connected to the first pin of the eleventh resistor R11, the second pin of the eleventh resistor R11 is connected to the second pin of the fifteenth resistor R15, the second pin of the sixteenth resistor R16, and the first pin of the third capacitor C3, and the second pin of the third capacitor C3 is connected to the GND ground wire, forming a voltage divider circuit of the first transceiver interface chip U1 and adapting the working voltage. The first pin of the first transient protection diode E1 is connected to the CANL pin of the first transceiver interface chip U1, the second pin is connected to the CANH pin of the first transceiver interface chip U1, and the third pin is connected to the GND ground wire, forming an electrostatic protection circuit of the CAN1 bus circuit communication interface. The first pin of the first discharge tube G1 is connected to the first self-recovery fuse PPTC1, and the second pin is connected to the EGNG ground wire; the first pin of the second discharge tube G2 is connected to the second self-recovery fuse PPTC2, and the second pin is connected to the EGNG ground wire; the above devices constitute a transient protection circuit for CAN1 bus circuit communication. In summary, the CAN1 bus circuit 106 has the functions of electrostatic protection, transient protection, overvoltage protection, lightning protection, etc.
[0050] The preferred CAN2 bus circuit is as follows Figure 4As shown, the CAN2 bus circuit 107 includes: a second transceiver circuit, a fifth resistor R5, a sixth resistor R6, an eighth resistor R8 and a tenth resistor R10 connected to the second transceiver circuit, a second light-emitting diode D2, and a fourth light-emitting diode D3; the positive electrode of the second light-emitting diode D2 is connected to the power supply, and the negative electrode is connected to the first pin of the eighth resistor R8; the positive electrode of the fourth light-emitting diode D4 is connected to the power supply, and the negative electrode is connected to the first pin of the tenth resistor R10; the circuit structure of the second transceiver circuit is the same as that of the first transceiver circuit. The VCC pin of the second transceiver interface chip U2 in the second transceiver circuit is connected to the 3V power supply and the second capacitor C2. The D pin of the second transceiver interface chip U2 is connected to the first pin of the fifth resistor R5, and the second pin of the fifth resistor R5 is connected to the CAN2-TX pin of the MCU112; the R pin of the second transceiver interface chip U2 is connected to the first pin of the sixth resistor R6, and the second pin of the sixth resistor R6 is connected to the CAN2-RX pin of the MCU112; the above circuit structure constitutes the CAN2 controller circuit of the MCU112. The positive electrode of the second light-emitting diode D2 is connected to the 3V power supply, the negative electrode is connected to the first pin of the eighth resistor R8, and the second pin of the eighth resistor R8 is connected to the R pin of the second transceiver interface chip U2, forming a receiving data indication circuit, and the second light-emitting diode D2 flashes to display whether the data is transmitted. The positive electrode of the fourth light-emitting diode D4 is connected to the 3V power supply, the negative electrode is connected to the first pin of the tenth resistor R10, and the second pin of the tenth resistor R10 is connected to the D pin of the second transceiver interface chip U2, forming a sending data indication circuit, and the fourth light-emitting diode D4 flashes to display whether the data is transmitted. The RS pin of the second transceiver interface chip U2 is connected to the first pin of the fourteenth resistor R14, and the second pin of the fourteenth resistor R14 is connected to the GND ground line, which is used to set the communication rate of the second transceiver interface chip U2 to high speed. The CANH pin of the second transceiver interface chip U2 is respectively connected to the first pin of the seventeenth resistor R17 and the first pin of the third resettable fuse PPTC3, and the second pin of the third resettable fuse PPTC3 is connected to the first pin of the third discharge tube G3, forming the H line of the CAN2 bus circuit communication; the CANL pin of the second transceiver interface chip U2 is respectively connected to the first pin of the eighteenth resistor R18 and the first pin of the fourth resettable fuse PPTC4, and the second pin of the fourth resettable fuse PPTC4 is connected to the first pin of the fourth discharge tube G4, forming the L line of the CAN2 bus circuit communication; the H line and the L line constitute the communication device end circuit of the CAN2 bus circuit. The LBK pin of the second transceiver interface chip U2 is connected to the first pin of the thirteenth resistor R13, the second pin of the thirteenth resistor R13 is respectively connected to the second pin of the seventeenth resistor R17, the second pin of the eighteenth resistor R18, and the first pin of the fourth capacitor C4, and the second pin of the fourth capacitor C4 is connected to the GND ground line, forming a voltage divider circuit of the second transceiver interface chip U2 and adapting the working voltage.The first pin of the second transient protection diode E2 is connected to the CANL pin of the second transceiver interface chip U2, the second pin is connected to the CANH pin of the second transceiver interface chip U2, and the third pin is connected to the GND ground wire, forming an electrostatic protection circuit for the CAN2 bus circuit communication interface. The first pin of the third discharge tube G3 is connected to the third self-recovery fuse PPTC3, and the second pin is connected to the EGNG ground wire; the first pin of the fourth discharge tube G4 is connected to the fourth self-recovery fuse PPTC4, and the second pin is connected to the EGNG ground wire; the above devices constitute a transient protection circuit for CAN2 bus circuit communication. In summary, the CAN2 bus circuit 107 has functions such as electrostatic protection, transient protection, overvoltage protection, and lightning protection.
[0051] The access controller can be configured with parameters. The specific operation process is as follows: 1) Turn on the NFC function of the mobile phone; 2) Enable the access controller parameter configuration tool in the mobile phone; 3) The mobile phone interacts with the card reader to read the access controller parameters; 4) Modify the parameters and save them; 5) Write the configured parameters to the access controller through the card reader. Through the above steps, the access controller parameters can be quickly configured.
[0052] The above are only preferred embodiments of the present invention. It should be understood that the present invention is not limited to the form disclosed herein and should not be regarded as excluding other embodiments. It can be used in various other combinations, modifications and environments, and can be modified within the scope of the above conception through the above teachings or the technology or knowledge in the relevant field. The changes and modifications made by those skilled in the art shall be within the scope of protection of the present invention if they do not deviate from the spirit and scope of the present invention.
Claims
1. A door access control system based on CAN bus expansion, characterized in that: The invention comprises a plurality of access controllers (300), a plurality of card readers (400), a plurality of switches (600), a plurality of routers (700), a server (800) and a client (900), each access controller (300) comprises an access control board (100) and an access service board (200), a plurality of card readers (400) are electrically connected to the access controller (300) after being networked via a CAN2 bus circuit (107) on the access control board (100), and a plurality of access controllers (300) are electrically connected to the access controller (300) after being networked. The access controller (300) is networked via the CAN1 bus (106) on the access control panel (100), and multiple access controllers (300) are electrically connected to the switch (600) via Ethernet, multiple switches (600) are electrically connected to multiple routers (700) via Ethernet, a server (800) deploying the access control system is electrically connected to the router (700) via Ethernet, and a client (900) is electrically connected to the router (700) via Ethernet; The card reader (400) reads the data of the card (500), and transmits the data to the access control board (100) via the CAN2 bus circuit local area network for data preprocessing. The access control board (100) transmits the processed data to the access control service board (200) to complete the authentication function. The access control service board (200) sends a message to the access control board (100) to execute the function of unlocking the magnetic lock, and the access control board feeds back the authentication result to the card reader (400).
2. The access control system based on CAN bus expansion according to claim 1 is characterized in that: The access control board (100) and the access service board (200) are electrically connected by a plug-in connector; The access control panel (100) comprises a CAN1 bus circuit (106), a CAN2 bus circuit (107), an MCU circuit (112), an Ethernet circuit, a USB interface circuit, a TF card circuit (105), a door button detection circuit (109), a door state detection circuit (114), an auxiliary input detection circuit (108), an auxiliary output circuit (110), a lock control circuit (111) and a rotary switch (113); The CAN1 bus circuit (106) is electrically connected to the CPU (203) of the access control board or the MCU (112) of the access control board through a rotary switch (113), and is used for networking between access control controllers; The MCU circuit (112), Ethernet circuit, USB interface circuit, and TF card circuit (105) are respectively connected to the access control service board (200); the door button detection circuit (109) is connected to the MCU circuit (112); One end of the CAN2 bus circuit (107) is electrically connected to the MCU (112) of the access control board, and the other end is electrically connected to the card reader (400), forming a communication local area network between the access control controller and the card reader, which is used for real-time authentication of the access control controller; The Ethernet circuit is used for data communication between the access control server and the access control controller to complete permission downloading, record uploading, time synchronization, and abnormal event alarm; The USB interface circuit is used for debugging the access control service board; The TF card circuit (105) is bidirectionally electrically connected to the CPU (203) on the access control service board (200), and is mainly used for access control controller data storage and operating system burning; After the lock control circuit (111) is electrically connected to the electric lock (301), it is electrically connected to the MCU circuit (112) to form a magnetic lock control circuit of the access control system for door control; The door button detection circuit (109) is electrically connected to the exit button and is used to trigger the control relay of the corresponding magnetic lock to complete the control of the corresponding door; The auxiliary input detection circuit (108) and the auxiliary output circuit (110) are respectively electrically connected to the MCU circuit (112) and are used for fire linkage, sound and light alarm, human body detection, and monitoring capture.
3. The access control system based on CAN bus expansion according to claim 2 is characterized in that: The access control service board (200) comprises a CPU (203), a RAM (204), a ROM (205), a power management module, a first access control service board connector (201), and a second access control service board connector (202); wherein the CPU (203) is bidirectionally connected to the MCU circuit (112); the RAM (204) is used for running the access control controller operating system and the access control service software; the ROM (205) is used for storing access control controller configuration data and access control service data; and the power management module provides the required power for each module; The first access control business board connector (201) is connected to the Ethernet circuit, and the second access control business board connector (202) is bidirectionally electrically connected to the TF card circuit.
4. The access control system based on CAN bus expansion according to claim 2 is characterized in that: When the access controller is used as a host, the CAN1 bus circuit (106) is electrically connected to the CPU (203) on the access control service board (200); when the access controller is used as an extended slave, the CAN1 bus circuit (106) is electrically connected to the MCU circuit (112) on the access control board (100).
5. The access control system based on CAN bus expansion according to claim 1 is characterized in that: The CAN1 bus circuit (106) comprises: a first transceiver circuit, a first resistor (R1), a second resistor (R2), a third resistor (R3), a fourth resistor (R4), a seventh resistor (R7) and a ninth resistor (R9) connected to the first transceiver circuit, a first light-emitting diode (D1), and a third light-emitting diode (D3); the first light-emitting diode (D1) has an anode connected to a power supply, and a cathode connected to a first pin of the seventh resistor (R7); the third light-emitting diode (D3) has an anode connected to a power supply, and a cathode connected to a first pin of the ninth resistor (R9); In the first transceiver circuit, the D pin of the first transceiver interface chip (U1) is connected to the CAN-TX pin of the CPU (203) through a first resistor (R1), and the R pin is connected to the CAN-RX pin of the CPU (203) through a second resistor (R2), forming a CAN1 controller circuit of the CPU (203); the D pin of the first transceiver interface chip (U1) is connected to the CAN1-TX pin of the MCU (112) through a third resistor (R3), and the R pin is connected to the CAN1-RX pin of the MCU (112) through a fourth resistor (R4), forming a CAN1 controller circuit of the MCU (112); the VCC pin of the first transceiver interface chip (U1) is connected to a power supply and a first capacitor (C1); the first light emitting diode The positive electrode of the diode (D1) is connected to the power supply, the negative electrode is connected to the first pin of the seventh resistor (R7), the second pin of the seventh resistor (R7) is connected to the R pin of the first transceiver interface chip (U1), forming a data receiving indication circuit, and the first light emitting diode (D1) flashes to display whether the data is transmitted; the positive electrode of the third light emitting diode (D3) is connected to the power supply, the negative electrode is connected to the first pin of the ninth resistor (R9), the second pin of the ninth resistor (R9) is connected to the D pin of the first transceiver interface chip (U1), forming a data sending indication circuit, and the third light emitting diode (D3) flashes to display whether the data is transmitted; the RS pin of the first transceiver interface chip (U1) is connected to the first pin of the twelfth resistor (R12), the twelfth resistor ( The second pin of the first transceiver interface chip (U1) is connected to the ground wire, and is used to set the communication rate of the first transceiver interface chip (U1) to high speed; the CANH pin of the first transceiver interface chip (U1) is respectively connected to the first pin of the fifteenth resistor (R15) and the first pin of the first resettable fuse (PPTC1), and the second pin of the first resettable fuse (PPTC1) is connected to the first pin of the first discharge tube (G1), forming an H circuit; the CANL pin of the first transceiver interface chip (U1) is respectively connected to the first pin of the sixteenth resistor (R16) and the first pin of the second resettable fuse (PPTC2), and the second pin of the second resettable fuse (PPTC2) is connected to the first pin of the second discharge tube (G2), forming an L circuit, The H line and the L line constitute a communication device end circuit; the LBK pin of the first transceiver interface chip (U1) is connected to the first pin of the eleventh resistor (R11), the second pin of the eleventh resistor (R11) is respectively connected to the second pin of the fifteenth resistor (R15), the second pin of the sixteenth resistor (R16), and the first pin of the third capacitor (C3), the second pin of the third capacitor (C3) is connected to the ground line, forming a voltage divider circuit of the first transceiver interface chip (U1) and adapting the working voltage; the first pin of the first transient protection diode (E1) is connected to the CANL pin of the first transceiver interface chip (U1), the second pin is connected to the CANH pin of the first transceiver interface chip (U1), and the third pin is connected to the ground line, forming an electrostatic protection circuit;The first pin of the first discharge tube (G1) is connected to the first resettable fuse (PPTC1), and the second pin is connected to the ground wire; the first pin of the second discharge tube (G2) is connected to the second resettable fuse (PPTC2), and the second pin is connected to the ground wire, forming a transient protection circuit; The CAN2 bus circuit (107) comprises: a second transceiver circuit, a fifth resistor (R5), a sixth resistor (R6), an eighth resistor (R8) and a tenth resistor (R10) connected to the second transceiver circuit, a second light-emitting diode (D2), and a fourth light-emitting diode (D3); the second light-emitting diode (D2) has a positive electrode connected to a power supply, and a negative electrode connected to a first pin of the eighth resistor (R8); the fourth light-emitting diode (D4) has a positive electrode connected to a power supply, and a negative electrode connected to a first pin of the tenth resistor (R10); the second transceiver circuit has the same circuit structure as the first transceiver circuit, wherein the D pin of the second transceiver interface chip (U2) is connected to the CAN2-TX pin of the MCU (112) via the fifth resistor (R5), and the R The pin is connected to the CAN2-RX pin of the MCU (112) through a sixth resistor (R6); the positive electrode of the second light-emitting diode (D2) is connected to the power supply, the negative electrode is connected to the first pin of the eighth resistor (R8), the second pin of the eighth resistor (R8) is connected to the R pin of the second transceiver interface chip (U2), forming a data receiving indication circuit, and the second light-emitting diode (D2) flashes to display whether data is transmitted; the positive electrode of the fourth light-emitting diode (D4) is connected to the power supply, the negative electrode is connected to the first pin of the tenth resistor (R10), the second pin of the tenth resistor (R10) is connected to the D pin of the second transceiver interface chip (U2), forming a data sending indication circuit, and the fourth light-emitting diode (D4) flashes to display whether data is transmitted.
6. The access control system based on CAN bus expansion according to any one of claims 1 to 5, characterized in that: The card reader (400) is an NFC reader / writer, which uses near field communication to perform data exchange and execute the operation of modifying the configuration parameters of the access control controller.
