Device and method for expanding identity card of rail transit reader-writer
By designing an expansion board on the rail transit reader and writer to connect it with the ID card module, information interaction is achieved, and the problem that the rail transit reader and writer cannot read identity information is solved, and the function of reading and decrypting ID card information is realized.
Patent Information
- Application Number
- CN202411942369.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-27
- Publication Date
- 2025-04-25
AI Technical Summary
Existing rail transit readers cannot read identity information and cannot read subway ticket card information and ID card information at the same time.
By designing an expansion board, the rail transit reader and writer are connected to the ID card module to realize information interaction, so that the rail transit reader and writer can read and decrypt ID card information, and upload the decrypted information to the industrial control machine.
It realizes that the rail transit reader and writer can not only read the traffic ticket card information, but also read and decrypt the ID card information, solving the problem that the reader and writer cannot read the identity information.
Smart Images

Figure CN119886175A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of ID card information expansion reading, and in particular to a device and method for extending an ID card by a rail transit reader / writer. Background Art
[0002] When existing rail transit reads ID card information, it reads the ID card data through the ID card reader connected to the industrial computer, and then sends the data to the ID card module in the ID card reader for decryption, and finally obtains the decrypted ID card information to realize the reading of the ID card information. Figure 1 As shown in the figure, the relationship diagram of the existing ID card reader and rail transit reader is shown. The industrial computer is connected to the two readers through two serial ports. The rail transit reader is used to read various ticket information of the subway; the ID card reader is used to read the ID card information. The two readers are independent and have no connection with each other. The rail transit reader cannot read the identity information. Therefore, the rail transit reader can realize the reading of various ticket information of the subway and the identity information at the same time, which is an information reading method that needs to be realized urgently. Summary of the invention
[0003] The purpose of this application is to provide a device and method for expanding an ID card with a rail transit reader / writer. By setting an expansion board, the original rail transit reader / writer can be connected to the ID card module used for decrypting ID card information to achieve information interaction between the two, so that the original rail transit reader / writer can read the transportation ticket information through its own radio frequency unit, and can also read the ID card information.
[0004] To achieve the above objectives, this application provides the following solutions:
[0005] In a first aspect, the present application provides a device for extending an ID card using a rail transit reader / writer, the device for extending an ID card using a rail transit reader / writer comprising: a rail transit reader / writer, an expansion board, and an ID card module;
[0006] The rail transit reader is used to collect transportation ticket information and identity card information, upload the transportation ticket information to the industrial computer, transmit the identity card information to the identity card module through the expansion board for decryption, and upload the decrypted identity card information decrypted by the identity card module to the industrial computer;
[0007] The ID card module is used to decrypt the ID card information collected by the rail transit reader / writer to obtain the decrypted ID card information, and transmit the decrypted ID card information to the rail transit reader / writer through the expansion board;
[0008] The expansion board is connected to the rail transit reader / writer and the identity card module respectively, and is used to realize the transmission and forwarding of identity information between the rail transit reader / writer and the identity card module.
[0009] Optionally, the rail transit reader / writer includes a processor, a radio frequency unit and a crystal oscillator connected to the processor;
[0010] The radio frequency unit is used to collect the traffic ticket information and the identity card information according to the clock frequency provided by the crystal oscillator unit, and transmit the traffic ticket information and the identity card information to the processor;
[0011] The processor is used to set the clock frequency of the crystal oscillator, receive the transportation ticket information and the identity card information, upload the transportation ticket information to the industrial computer, transmit the identity card information to the identity card module through the expansion board for decryption, and upload the decrypted identity card information decrypted by the identity card module to the industrial computer.
[0012] Optionally, the expansion board and the ID card module are integrated into the rail transit reader / writer.
[0013] Optionally, the expansion board includes a USB connector chip and a USB control chip;
[0014] The pin D- and the pin D+ of the USB connector chip are respectively connected to the pin AC8 / USB0-DM and the pin AD8 / USB0-DP of the processing chip of the rail transit reader / writer;
[0015] The pin VBUS of the USB connector chip is grounded through a first capacitor; two ends of the first capacitor are connected in parallel with a second capacitor;
[0016] The pin VBUS of the USB connector chip is also grounded through a first resistor and a second resistor connected in series;
[0017] The pin ID of the USB connector chip is connected to a 3.3V voltage; the pin G1 and the pin G2 of the USB connector chip are grounded;
[0018] The pin VBUS of the USB connector chip is connected to the output end of the first diode, and the pin GND of the USB connector chip is connected to the input end of the first diode; the pin GND of the USB connector chip is also grounded;
[0019] The first diode is also connected in parallel with a first diode group, a second diode group and a third diode group; the first diode group, the second diode group and the third diode group each include two second diodes connected in series;
[0020] The pin D- of the USB connector chip is connected to the line between the two second diodes in the first diode group;
[0021] The pin D+ of the USB connector chip is connected to the line between the two second diodes in the second diode group;
[0022] The pin ID of the USB connector chip is connected to the line between the two second diodes in the third diode group;
[0023] The pin ID and the pin GND of the USB connector chip are connected to the pin DMU and the pin DPU of the USB control chip;
[0024] The pin DP2 and the pin DP1 of the USB control chip are respectively connected to the USB communication pin and the ground pin of the corresponding chip of the ID card module;
[0025] The pin XO of the USB control chip is grounded through a third capacitor; the pin XIN of the USB control chip is grounded through a fourth capacitor; the pin XO of the USB control chip is also connected to the first end of the crystal oscillator unit, the pin XIN of the USB control chip is also connected to the third end of the crystal oscillator unit, and the second end and the fourth end of the crystal oscillator unit are grounded;
[0026] The pin GND of the USB control chip is grounded; the pin VDD33 of the USB control chip is connected to a 3.3V power supply; the pin VDD33 of the USB control chip is also grounded through a fifth capacitor;
[0027] The pin OVCUR# of the USB control chip is connected to a 3.3V power supply through a first resistor;
[0028] The pin VDD33-O of the USB control chip is connected to a 3.3V power supply; the pin VDD33-O of the USB control chip is also grounded through a sixth capacitor;
[0029] The pin VDD5 of the USB control chip is connected to a 5V power supply through a magnetic bead; the pin VDD5 of the USB control chip is also grounded through a seventh capacitor; the seventh capacitor is connected to an eighth capacitor;
[0030] The pin PSELF of the USB control chip is connected to a 3.3V power supply through a second resistor;
[0031] The pin RESETn of the USB control chip is connected to a 3.3V power supply through a third resistor;
[0032] Pin DM3, pin DP3, pin DM2 and pin DM1 of the USB control chip are respectively connected to pin AA10 / USB2_DM, pin AB10 / USB2_DP, pin AC9 / USB1_DM and pin AD9 / USB1_DP of the processing chip of the rail transit reader / writer.
[0033] Optionally, the USB connector chip adopts a 920-154A2021Y10103 USB connector; and the USB control chip adopts a CH334U USB control chip.
[0034] In a second aspect, the present application provides an information reading method of a device for extending an ID card using a rail transit reader / writer as described in any one of the above, the information reading method comprising:
[0035] Use rail transit readers to collect transportation ticket information and ID card information;
[0036] Using a rail transit reader / writer to upload the transportation ticket information to an industrial computer;
[0037] Decrypting the ID card information collected by the rail transit reader / writer by using the ID card module to obtain decrypted ID card information, and transmitting the decrypted ID card information to the rail transit reader / writer through the expansion board;
[0038] The rail transit reader / writer is used to upload the decrypted ID card information decrypted by the ID card module to the industrial computer.
[0039] According to the specific embodiments provided in this application, this application discloses the following technical effects:
[0040] The present application provides a device and method for extending an ID card with a rail transit reader / writer. By setting an expansion board, the original rail transit reader / writer can be connected to an ID card module for decrypting ID card information to achieve information interaction between the two, so that the original rail transit reader / writer can read the transportation ticket information through its own radio frequency unit, and can also read the ID card information, and transmit the ID card information to the ID card module through the expansion board, and the ID card module decrypts the ID card, and then transmits the decrypted ID card information to the rail transit reader / writer through the expansion board, and the rail transit reader / writer uploads the decrypted ID card information to the industrial computer. In the present application, based on the original rail transit reader / writer and the ID card module, an expansion board is designed to realize the function that the original rail transit reader / writer can also read the ID card information. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0042] Figure 1 Schematic diagram of the relationship between the existing ID card reader and rail transit reader provided for this application;
[0043] Figure 2 A schematic diagram of the hardware structure of an existing rail transit reader / writer provided in Example 1 of the present application;
[0044] Figure 3 A schematic diagram of the structure of a device for extending an ID card through a rail transit reader / writer provided in Example 1 of the present application;
[0045] Figure 4 A schematic diagram of part of the circuit principle of the existing rail transit reader / writer provided in Example 1 of the present application;
[0046] Figure 5 A schematic diagram of part of the circuit principle of the existing rail transit reader / writer provided in Example 1 of the present application;
[0047] Figure 6 A schematic diagram of a portion of the circuit principles of the expansion board provided in Example 1 of the present application;
[0048] Figure 7 A schematic diagram of a portion of the circuit principles of the expansion board provided in Example 1 of the present application;
[0049] Figure 8 A flowchart of an information reading method of a device based on a rail transit reader-writer to extend an ID card provided in Example 2 of the present application. DETAILED DESCRIPTION
[0050] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0051] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, the present application is further described in detail below with reference to the accompanying drawings and specific implementation methods.
[0052] Example 1
[0053] like Figure 1As shown, the rail transit reader is used to read the transportation ticket information, and the ID card reader is used to read the ID card information. The ID card reader is integrated with an ID card module for decrypting the read ID card information. The information read by the two independent readers is finally uploaded to the industrial computer. Figure 2 As shown, it is a schematic diagram of the structure of the existing rail transit reader. Figure 2 In the present invention, the daemon is equivalent to a watchdog design that combines hardware and software, so that the reader program is always running. The peripheral circuit mainly processes constant voltage and voltage stabilization circuits to prevent excessive current from damaging the circuit board; it also has a hard reset function. SAM means security authentication module, which is a key card for installing rail transit tickets. Since the existing rail transit reader can only read transportation ticket information, it cannot read ID card information. The present invention mainly solves the problem that the rail transit reader cannot read ID card information. By designing an expansion board for the reader interface, the rail transit reader and the ID card module are integrated, and the ID card module is integrated into the rail transit reader to form a unified product, rather than externally connecting the ID card module (for example, the external method is to directly connect the ID card module to the USB hardware interface of the reader, but in this case, the ID card module cannot share the radio frequency unit of the reader, and it is necessary to separately connect the radio frequency antenna on the basis of the ID card module), so that the ID card module is a circuit component inside the rail transit reader. In this regard, based on the interface of the existing rail transit reader and the existing interface of the ID card module, an expansion board is designed to realize the interaction between the two, and the radio frequency reading function of the rail transit reader and the decryption function of the ID card module are borrowed to realize the information transmission between the two functions using the expansion board. Based on this, this embodiment provides a device for expanding the ID card of the rail transit reader, such as Figure 3 As shown, it includes: rail transit reader / writer, expansion board and ID card module.
[0054] The rail transit reader / writer is used to collect transportation ticket information and identity card information, upload the transportation ticket information to the industrial computer, transmit the identity card information to the identity card module through the expansion board for decryption, and upload the decrypted identity card information decrypted by the identity card module to the industrial computer.
[0055] The ID card module is used to decrypt the ID card information collected by the rail transit reader / writer to obtain the decrypted ID card information, and transmit the decrypted ID card information to the rail transit reader / writer through the expansion board.
[0056] The expansion board is connected to the rail transit reader and the ID card module by flat cables, and is used to transmit and forward identity information between the rail transit reader and the ID card module with the shared radio frequency function of the rail transit reader. Figure 3 The micro-processing chip in the rail transit reader collects ID card information by sharing the radio frequency antenna with the main chip of the rail transit reader, and transmits the ID card information to the ID card module for decryption.
[0057] like Figure 3 As shown, Figure 3 The structure outlined in bold is the relevant structure for realizing the reading and decryption of the ID card information. The rail transit reader / writer includes a processor (corresponding to Figure 3 The reader processor chip in the processor adopts the embedded Linux operating system), and the radio frequency unit connected to the processor (corresponding to Figure 3 RF 1, antenna A, RF 2 and antenna B) and crystal oscillator.
[0058] The radio frequency unit is used to collect the traffic ticket information and the identity card information according to the clock frequency provided by the crystal oscillator unit, and transmit the traffic ticket information and the identity card information to the processor;
[0059] The processor is used to set the clock frequency of the crystal oscillator, receive the transportation ticket information and the identity card information, upload the transportation ticket information to the industrial computer, transmit the identity card information to the identity card module through the expansion board for decryption, and upload the decrypted identity card information decrypted by the identity card module to the industrial computer.
[0060] The RF chip is connected to the rail transit reader processor chip. The flat cable led out from the rail transit reader processor chip is connected to the expansion board through the flat cable. The expansion board is connected to the ID card module through the flat cable. The ID card module needs to be applied to the RF antenna. Through the design of the expansion board, the RF function of the reader is connected to the ID card module, so that the ID card module can directly use the RF antenna of the reader without independently setting up an additional RF antenna. The expansion board is used to meet the core control of the rail transit reader processor chip, the control of the RF chip, and the USB communication with the ID card module. Some interfaces of the flat cable use USB protocol communication.
[0061] The expansion board has a programmable chip with a computing function. The computing function here refers to the programmable chip that is mainly responsible for data forwarding and sharing the radio frequency unit with the reader to provide radio frequency functions to the ID card module. It not only realizes forwarding, but also has computing and business processing capabilities. For example, this programmable chip is used to realize the docking between the processing chip of the rail transit reader and the ID card module, and a program needs to be written for business processing to achieve docking. The expansion board is used to connect the rail transit reader processor chip, the radio frequency chip and the ID card module. The USB protocol of some interfaces in the connection cable of the expansion board is used to realize USB protocol communication with the ID card module. The expansion board sends commands to the ID card module through the USB protocol (which can be understood as data transmission), and transmits the ID card information read by the radio frequency chip to the ID card module for decryption, and then transmits the decrypted ID card information to the industrial computer through the rail transit reader processor chip.
[0062] The ID card module is a small ID card module that can be placed in the rail transit reader. It is a module with special instructions. The design adopts USB protocol communication. When designing the industrial computer circuit, a special interface for USB communication is reserved. The ID card module consists of an ID card encryption and decryption chip and an auxiliary circuit. It is connected to the expansion board and is used for USB protocol communication with the expansion board. The ID card information obtained from the radio frequency is transmitted to the ID card module through the USB protocol for decryption.
[0063] Figure 3 In the , each part of the rail transit reader is the same as the original structure, such as Figure 3 The "VGA display, memory, hard disk, network, serial port, power supply, SAM, USB interface, peripheral circuit" shown in the figure are just the original ones, and the radio frequency unit is also used to read the ID card information.
[0064] In order to integrate the ticket card reading function and the ID card reading function into one product, the present application integrates the expansion board and the ID card module into the interior of the rail transit reader / writer.
[0065] In this embodiment, based on the structure of the existing rail transit reader, an expansion board is designed, and the ID card module is designed into the rail transit reader to realize the ID card reading and decryption functions. When the ID card information is read, the antenna and radio frequency of the rail transit reader are shared. The present invention is based on the existing circuit interface of the rail transit reader, and the circuit design and software implementation of the expansion board of the ID card module. Based on the computing and communication capabilities of the core chip of the expansion board, the overall circuit design is carried out, that is, the ID card module is quickly connected to the rail transit reader. There is both circuit design and program development of circuit chips (mainly to realize the functions of data transmission and forwarding and sharing radio frequency antennas), and the part of communication and radio frequency connection with the ID card module is developed. Through the overall design of the expansion board circuit connected to the ID card module and the development of the program on the expansion board (to realize communication and radio frequency connection with the reader and the ID card module), the data transmission between the radio frequency of the rail transit reader and the ID card module is realized. Based on the circuit design of the domestic chip, under the conditions of existing software and hardware, the ID card module is added to the rail transit reader through the design of the circuit to form an integrated product, which can realize the reading of transportation ticket information and the reading of ID card information.
[0066] The following is a design process for a rail transit reader to expand the ID card device:
[0067] Step 1: Lead out the existing rail transit reader and writer, and connect the expansion board to achieve the connection with the ID card module. At this time, the ID card module is connected to the expansion board through the wiring. Figure 4 and Figure 5 As shown, it is a schematic diagram of the baseboard circuit of the existing rail transit reader / writer. The present application connects the available pins in the processing chip of the existing rail transit reader / writer to the relevant pins of the expansion board. Figure 4 , pins A33 and A35 and Figure 6 Pins 2 and 3 in are connected; Figure 4 Pins A54, A66, A68, and A70 in the PCB correspond to the power supply; Figure 4 Pins A27 and A29 in the device correspond to the USB interface; Figure 5 Pins C7, C9, C11, C13, C15, C17, C19, C21 in SAM Figure 5 Pins C33, C35, C37, C39, C41, C43, C45, C47, C49, C51, C53, and C55 correspond to radio frequency.
[0068] Step 2: Based on the expansion board and ID card module in step 1, design the circuit and program the chip of the expansion board; Figure 6 and Figure 7 As shown, what is shown is the circuit schematic diagram of the expansion board. Figure 6The figure shows the pin connection relationship between the expansion board and the main chip of the reader. Figure 6 Pins 2 and 3 in Figure 4 Pins A33 and A35 are connected to each other. Figure 7 It reflects the connection relationship between the expansion board and the ID card module, and the connection relationship between the expansion board and the USB converter pin on the reader main chip. Figure 7 Pin 9 and pin 11 in the ID card module connect the USB communication and ground. Figure 7 Pin 15, Pin 16 and Figure 6 Connect pins 4 and 5 of . Figure 7 Pin 6, Pin 7, Pin 8, Pin 10 and Figure 4 Pin 27, pin 29, pin 39, and pin 41 are connected.
[0069] The expansion board includes a USB connector chip (such as Figure 6 920-154A2021Y10103USB connector) and USB control chip (such as Figure 7 CH334U USB control chip shown).
[0070] The pins D- and D+ of the USB connector chip are respectively connected to the pins AC8 / USB0-DM ( Figure 4 Pin A33) and pin AD8 / USB0-DP ( Figure 4 pin A35).
[0071] The pin VBUS of the USB connector chip is connected to the USB chip through a first capacitor ( Figure 6 The first capacitor is connected to ground via a second capacitor ( Figure 6 C94 in ).
[0072] The pin VBUS of the USB connector chip is also connected in series with a first resistor ( Figure 6 R110 in the Figure 6 R111 in ground.
[0073] The pin ID of the USB connector chip is connected to a 3.3V voltage; the pin G1 and the pin G2 of the USB connector chip are grounded;
[0074] The pin VBUS of the USB connector chip is connected to the output end of the first diode ( Figure 6 The pin GND of the USB connector chip is connected to the input end of the first diode ( Figure 6 The end labeled 2 in D10); the pin GND of the USB connector chip is also grounded.
[0075] The first diode is also connected in parallel with a first diode group, a second diode group and a third diode group; the first diode group, the second diode group and the third diode group each include two second diodes connected in series.
[0076] The pin D- of the USB connector chip is connected to the line between the two second diodes in the first diode group ( Figure 6 The end labeled 6 in D10).
[0077] The pin D+ of the USB connector chip is connected to the line between the two second diodes in the second diode group ( Figure 6 The end marked with 1 in D10).
[0078] The pin ID of the USB connector chip is connected to the line between the two second diodes in the third diode group ( Figure 6 The end marked with 3 in D10).
[0079] The pin ID and the pin GND of the USB connector chip are connected to the pin DMU and the pin DPU of the USB control chip.
[0080] The pin DP2 and the pin DP1 of the USB control chip are respectively connected to the USB communication pin and the ground pin of the corresponding chip of the ID card module.
[0081] The pin XO of the USB control chip is connected to the USB controller by a third capacitor ( Figure 7 C88 in the USB control chip is grounded; the pin XIN of the USB control chip is connected to the ground through the fourth capacitor ( Figure 7 C89 in the USB control chip is grounded; the pin XO of the USB control chip is also connected to the first end of the crystal oscillator unit Y5, the pin XIN of the USB control chip is also connected to the third end of the crystal oscillator unit, and the second and fourth ends of the crystal oscillator unit are grounded.
[0082] The pin GND of the USB control chip is grounded; the pin VDD33 of the USB control chip is connected to a 3.3V power supply; the pin VDD33 of the USB control chip is also connected to a 3.3V power supply through a fifth capacitor ( Figure 7 C92 in is grounded.
[0083] The pin OVCUR# of the USB control chip is connected to the USB port through a third resistor ( Figure 7 R217 in the figure is connected to a 3.3V power supply.
[0084] The pin VDD33-O of the USB control chip is connected to a 3.3V power supply; the pin VDD33-O of the USB control chip is also connected to a 3.3V power supply through a sixth capacitor ( Figure 7C87 in ground.
[0085] The pin VDD5 of the USB control chip is connected to the Figure 7 FB6 in the USB control chip) is connected to a 5V power supply; the pin VDD5 of the USB control chip is also connected to a 5V power supply through a seventh capacitor ( Figure 7 C90 in the grounding; the seventh capacitor is connected to the eighth capacitor ( Figure 7 C91 in ).
[0086] The pin PSELF of the USB control chip is connected to the USB controller by a fourth resistor ( Figure 7 R105 in the figure is connected to a 3.3V power supply.
[0087] The pin RESETn of the USB control chip is connected to the USB controller by a fifth resistor ( Figure 7 R106 in the figure is connected to a 3.3V power supply.
[0088] The USB control chip pin DM3 (corresponding to Figure 7 Pin 6 in the DP3 pin (corresponding to Figure 7 Pin 7 in the Figure 7 Pin 8 in the Figure 7 Pin 10 in the rail transit reader is connected to the pin AA10 / USB2_DM (corresponding to the pin 10 of the processing chip of the rail transit reader Figure 4 Pin A27 in the USB2_DP), pin AB10 / USB2_DP (corresponding to Figure 4 Pin A29 in the USB1_DM pin) and AC9 / USB1_DM (corresponding to Figure 4 pin A39) and pin AD9 / USB1_DP (corresponding to Figure 4 pin A41 in the PCB).
[0089] Step 3: Based on the expansion board in step 2, connect the ID card module, and finally get the device of rail transit reader-writer to expand the ID card.
[0090] Step 4: Based on step 3, the application of the rail transit reader runs on the core processor of the reader. When the application reads the ID card, it first turns on the RF chip to read the ID card information, temporarily saves the read ID card information, and then transmits the read ID card information to the expansion board through the cable (USB protocol). The expansion board is then connected to the ID card module through the cable (USB protocol), and the ID card information read by the RF is transmitted to the ID card module for decryption. The decrypted information of the ID card module is then transmitted to the expansion board through the cable (USB protocol), and then fed back to the application of the rail transit reader to realize the decryption of the ID card information.
[0091] Among them, the first step mentioned above is to design an expansion board based on the interface of the existing rail transit reader / writer to realize the transmission of radio frequency data.
[0092] The rail transit reader uses an embedded ARM chip, which supports the Linux operating system. The Linux system is cut and downloaded into the ARM chip to develop drivers for each module. The ID card module is an external module. Combined with the pins of the rail transit reader ARM chip, the integrated design of the ID card module is designed, that is, an expansion board is designed, and the ID card module is regarded as a part of the reader, which is a module inside the reader.
[0093] The second step mentioned above is to design an expansion board according to the interface of the ID card module to realize the transmission of the ID card module data;
[0094] According to the USB interface of the ID card module itself, the circuit design is carried out. Through the circuit of the expansion board, the USB protocol, RF signal and other lines are led out from the core chip of the rail transit reader to the wiring, which is used to establish the channel of RF and USB protocol, and provide the necessary operating conditions for the ID card module to work. The ID card module itself has the function of decryption. According to the input required by the ID card module, the rail transit reader is cut and the interface driver is developed. The interface driver development has the characteristics of customized class development and optimization.
[0095] The third step is to develop the program for the expansion board, and based on the chip on the expansion board, realize the transmission of rail transit reader data and ID card encryption and decryption data.
[0096] Based on the software and hardware of the existing rail transit reader and writer, this application leads out a cable to connect the expansion board on the basis of the rail transit reader and writer to realize the connection required by the ID card module. The USB protocol communication signal and the radio frequency signal are mainly led out from the available pins of the main chip of the rail transit reader and writer to the expansion board. The application software of the rail transit reader and writer runs on the main chip of the rail transit reader and writer. The application software reads the ID card information of the ID card entity through the radio frequency driver, and sends the ID card information to the ID card module by communicating with the expansion board using the USB protocol. The ID card module transmits the decrypted information to the application software through the USB protocol of the expansion board, and the application software obtains the decrypted ID card information. By calling the ID card module interface and the radio frequency interface. The original ciphertext data of the ID card read by the radio frequency is sent to the ID card module through the expansion board, and the read ID card information is decrypted. After the ID card module decrypts the ID card information, the decrypted identity certificate is returned to the rail transit reader and writer through the expansion board.
[0097] The overall hardware and software framework of the rail transit reader-writer device for extending ID cards is divided into five levels. Data and instructions are transmitted between each level through embedded operating systems, chip drivers and unified interfaces, as follows:
[0098] Hardware layer: mainly includes rail transit reader hardware and expansion boards (circuit diagram design, component welding, various connectors, antenna feeders, antenna boards, etc.).
[0099] Operating system layer: mainly includes the design of peripheral circuits based on ARM chips and the tailoring of embedded Linux systems to meet the functional needs of the system.
[0100] Driver layer: mainly includes related hardware drivers and functional module drivers, and provides other chips for calling through packaged standard intermediate interfaces.
[0101] Unified interface layer: mainly includes related RF drivers and serial port module drivers, provides other module calls through encapsulated standard intermediate interfaces, and is developed in C / C++ language.
[0102] Application software layer: the final implementation of business processing logic. Each business module is relatively independent, which makes it easy to deploy and expand business processing modules. It is developed in C language, which allows for rapid expansion and customization of new business applications.
[0103] An optional implementation method, an alternative solution for a rail transit reader-writer device for extending an ID card in this embodiment: the ID card module is connected to the industrial computer using USB protocol communication (wire), and the industrial computer transmits the ID card information read by the rail transit reader-writer to the ID card module for decryption to realize the reading of the ID card information. That is, the industrial computer connects the rail transit reader-writer and the ID card module, and the industrial computer interacts between the two to realize the data transmission from the read identity information to the ID card module.
[0104] Example 2
[0105] This embodiment provides a method for reading information of a device for extending an ID card using a rail transit reader / writer as described in Embodiment 1. Figure 8 As shown, the information reading method includes:
[0106] S1: Use rail transit reader / writer to collect transportation ticket information and ID card information.
[0107] S2: Use the rail transit reader to upload the transportation ticket information to the industrial computer.
[0108] S3: Using the rail transit reader / writer, the ID card information is transmitted to the ID card module through the expansion board.
[0109] S4: using the ID card module to decrypt the ID card information collected by the rail transit reader / writer to obtain decrypted ID card information, and transmitting the decrypted ID card information to the rail transit reader / writer through the expansion board.
[0110] S5: Use the rail transit reader to upload the decrypted ID card information decrypted by the ID card module to the industrial computer.
[0111] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0112] This article uses specific examples to illustrate the principles and implementation methods of this application. The description of the above embodiments is only used to help understand the method and core ideas of this application. At the same time, for those skilled in the art, according to the ideas of this application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting this application.
Claims
1. A device for extending ID card of rail transit reader / writer, characterized in that: The device for extending the ID card of the rail transit reader / writer comprises: a rail transit reader / writer, an expansion board and an ID card module; The rail transit reader is used to collect transportation ticket information and identity card information, upload the transportation ticket information to the industrial computer, transmit the identity card information to the identity card module through the expansion board for decryption, and upload the decrypted identity card information decrypted by the identity card module to the industrial computer; The ID card module is used to decrypt the ID card information collected by the rail transit reader / writer to obtain the decrypted ID card information, and transmit the decrypted ID card information to the rail transit reader / writer through the expansion board; The expansion board is connected to the rail transit reader and the ID card module respectively by flat cables, and is used to transmit and forward identity information between the rail transit reader and the ID card module with the shared radio frequency function of the rail transit reader.
2. The device for extending ID card of rail transit reader-writer according to claim 1, characterized in that: The rail transit reader / writer includes a processor, a radio frequency unit and a crystal oscillator connected to the processor; The radio frequency unit is used to collect the traffic ticket information and the identity card information according to the clock frequency provided by the crystal oscillator unit, and transmit the traffic ticket information and the identity card information to the processor; The processor is used to set the clock frequency of the crystal oscillator, receive the transportation ticket information and the identity card information, upload the transportation ticket information to the industrial computer, transmit the identity card information to the identity card module through the expansion board for decryption, and upload the decrypted identity card information decrypted by the identity card module to the industrial computer.
3. The device for extending ID card of rail transit reader / writer according to claim 1, characterized in that: The expansion board and the ID card module are integrated into the rail transit reader / writer.
4. The device for extending ID card of rail transit reader-writer according to claim 1, characterized in that: The expansion board includes a USB connector chip and a USB control chip; The pin D- and the pin D+ of the USB connector chip are respectively connected to the pin AC8 / USB0-DM and the pin AD8 / USB0-DP of the processing chip of the rail transit reader / writer; The pin VBUS of the USB connector chip is grounded through a first capacitor; two ends of the first capacitor are connected in parallel with a second capacitor; The pin VBUS of the USB connector chip is also grounded through a first resistor and a second resistor connected in series; The pin ID of the USB connector chip is connected to a 3.3V voltage; the pin G1 and the pin G2 of the USB connector chip are grounded; The pin VBUS of the USB connector chip is connected to the output end of the first diode, and the pin GND of the USB connector chip is connected to the input end of the first diode; the pin GND of the USB connector chip is also grounded; The first diode is also connected in parallel with a first diode group, a second diode group and a third diode group; the first diode group, the second diode group and the third diode group each include two second diodes connected in series; The pin D- of the USB connector chip is connected to the line between the two second diodes in the first diode group; The pin D+ of the USB connector chip is connected to the line between the two second diodes in the second diode group; The pin ID of the USB connector chip is connected to the line between the two second diodes in the third diode group; The pin ID and the pin GND of the USB connector chip are connected to the pin DMU and the pin DPU of the USB control chip; The pin DP2 and the pin DP1 of the USB control chip are respectively connected to the USB communication pin and the ground pin of the corresponding chip of the ID card module; The pin XO of the USB control chip is grounded through a third capacitor; the pin XIN of the USB control chip is grounded through a fourth capacitor; the pin XO of the USB control chip is also connected to the first end of the crystal oscillator unit, the pin XIN of the USB control chip is also connected to the third end of the crystal oscillator unit, and the second end and the fourth end of the crystal oscillator unit are grounded; The pin GND of the USB control chip is grounded; the pin VDD33 of the USB control chip is connected to a 3.3V power supply; the pin VDD33 of the USB control chip is also grounded through a fifth capacitor; The pin OVCUR# of the USB control chip is connected to a 3.3V power supply through a first resistor; The pin VDD33-O of the USB control chip is connected to a 3.3V power supply; the pin VDD33-O of the USB control chip is also grounded through a sixth capacitor; The pin VDD5 of the USB control chip is connected to a 5V power supply through a magnetic bead; the pin VDD5 of the USB control chip is also grounded through a seventh capacitor; the seventh capacitor is connected to an eighth capacitor; The pin PSELF of the USB control chip is connected to a 3.3V power supply through a second resistor; The pin RESETn of the USB control chip is connected to a 3.3V power supply through a third resistor; Pin DM3, pin DP3, pin DM2 and pin DM1 of the USB control chip are respectively connected to pin AA10 / USB2_DM, pin AB10 / USB2_DP, pin AC9 / USB1_DM and pin AD9 / USB1_DP of the processing chip of the rail transit reader / writer.
5. The device for extending ID card of rail transit reader / writer according to claim 4, characterized in that: The USB connector chip adopts 920-154A2021Y10103 USB connector; the USB control chip adopts CH334U USB control chip.
6. A method for reading information based on the device for extending ID card of rail transit reader-writer according to any one of claims 1 to 5, characterized in that: The information reading method comprises: Use rail transit readers to collect transportation ticket information and ID card information; Using a rail transit reader / writer to upload the transportation ticket information to an industrial computer; The ID card information is transmitted to the ID card module via the expansion board using the rail transit reader / writer; Decrypting the ID card information collected by the rail transit reader / writer by using the ID card module to obtain decrypted ID card information, and transmitting the decrypted ID card information to the rail transit reader / writer through the expansion board; The rail transit reader / writer is used to upload the decrypted ID card information decrypted by the ID card module to the industrial computer.