Utility model content
The purpose of this utility model is to provide a kind of Internet of Things TCP to consume read-write heads, the TCP consumption of the utility model
Read-write heads is simple to operation, read-write data are rapid, accuracy is high, data transfer is safe in time, improves IC card consumption management system
Work efficiency, to achieve these goals, the utility model uses following technique effect:
According to the one side of this hair utility model, there is provided a kind of Internet of Things TCP consumes read-write heads, including read-write mould
Block, display module, Keysheet module, memory module, TCP communication modules, central processing module and power module, the read-write mould
Block, display module, Keysheet module, memory module and TCP communication modules communicate with the central processing module connect respectively, described
Power module respectively with the module for reading and writing, display module, Keysheet module, memory module, TCP communication modules and central processing mould
Block is electrically connected.
The TCP communication modules include communication data processing unit, data bus interface unit, communication control unit, string
Line interface unit and data storage cell, the bus interface of the communication data processing unit pass through the data bus interface list
First to be communicated to connect with the communication control unit, the serial line interface of the communication data processing unit passes through the serial line interface list
It is first to be communicated to connect with the central processing module, data-interface and the data storage cell of the communication data processing unit
Communication connection.
The communication data processing unit is STM32 series monolithic processors, and the data bus interface unit is PCI
Data/address bus or SPI data/address bus, the data storage cell are the external memory storage of 128M-bit capacity.
The module for reading and writing includes radio frequency read/write circuit, radio frequency antenna matching circuit, antenna receiving circuit and antenna, described
Antenna passes sequentially through the antenna receiving circuit, radio frequency antenna matching circuit and the radio frequency read/write circuit and communicates to connect, described
The Read-write Catrol end of radio frequency read/write circuit is communicated to connect with the Read-write Catrol end of the central processing module.
The antenna-matching circuit include capacitance C9, capacitance C10, capacitance C11, capacitance C12, capacitance C13, capacitance C14,
Inductance L3 and inductance L4, one end of the inductance L3 are connected with one end of the antenna, the other end of the inductance L3 with it is described
One end connection of capacitance C13, one end with the capacitance C9, one end of capacitance C11 connect the other end of the capacitance C13 respectively
Connect, the other end of the capacitance C9 is sent out with the first of the radio frequency read/write circuit respectively by one end of the antenna receiving circuit
Penetrate end, the receiving terminal of radio frequency read/write circuit is connected with the voltage controling end of radio frequency read/write circuit, one end of the inductance L4 and institute
The other end connection of antenna is stated, the other end of the inductance L4 is connected with one end of the capacitance C14, and the capacitance C14's is another
One end with the capacitance C12, one end of capacitance C10 are connected respectively for one end, and the other end of the capacitance C10 is received by antenna
Second transmitting terminal of the other end of circuit respectively with the radio frequency read/write circuit is connected, the intermediate ends of the antenna, capacitance C11
The other end of the other end and capacitance C12 are connected with the power supply ground terminal of the radio frequency read/write circuit.
The radio frequency read/write circuit uses MF RC500 radio frequency read-write chips, and the antenna is circular or square antenna.
The antenna is circular for three circles, wherein, the circular a diameter of 1mm-1.5mm of first lap, the second circular diameter of circle
For 4mm-8mm, the 3rd circular a diameter of 12mm-15mm of circle.
The antenna is square, wherein, first lap square a length of 18mm, width 15mm;Second circle is square a length of
22mm, width 20mm;3rd circle square a length of 30mm, width 28mm.
The memory module is SDRAM, the one or more in NOR FLASH, SPI FLSH and NAND FLASH, described
Display module is LCD liquid crystal displays.
The TCP consumption read-write heads further includes SD/MMC card interfaces, and SD/MMC card interfaces lead to the central processing module
Letter connection, the central processing module is STM32 series monolithics.
In conclusion since the utility model employs above-mentioned technical proposal, the utility model has following technique effect:
(1), the utility model is a IC card TCP consumption readers based on ICP/IP protocol, supports complete series
Mifare read-write operations;It can easily realize that Ethernet (LAN, wide area network and outer net) accesses;And support TCP services
Device, TCP Client, selection Transmission Control Protocol are transmitted, and the advantage of network can be utilized to realize convenient networking, installation and remote read-write
Card;Therefore under the overall background of Internet of Things development, Network Smart Card Reader-Writer more meets the growth requirement of Internet of Things.
(2), the utility model is simple in structure, easy for operation, has a wide range of application, and low power dissipation design, improves
The digital independent distance of Mifare cards, reduces the use difficulty of Mifare cards, can be widely applied to each all-in-one campus card
System charging terminal.
(3), the TCP consumption read-write headses of the utility model are simple to operation, read-write data are rapid, accuracy is high, data transfer
Safety in time, realizes the intelligent management of consumption system, improves the work efficiency of IC card consumption management system.
Embodiment
For the purpose of this utility model, technical solution and advantage is more clearly understood, referring to the drawings and enumerate excellent
Embodiment is selected, the utility model is further described.However, it is necessary to illustrate, many details listed in specification
It is specific even without these just for the sake of making reader have a thorough explanation to the one or more aspects of the utility model
Details can also realize the utility model these aspect.
As shown in Figure 1, a kind of Internet of Things TCP consumption read-write heads according to the present utility model, including module for reading and writing, display mould
Block, Keysheet module, memory module, TCP communication modules, central processing module and power module, the module for reading and writing, display mould
Block, Keysheet module, memory module, TCP communication modules communicate with the central processing module connect respectively, the power module point
Do not connect electrically with the module for reading and writing, display module, Keysheet module, memory module, TCP communication modules and central processing module
Connect, the memory module is SDRAM, the one or more in NOR FLASH, SPI FLSH and NAND FLASH, memory module
The most original data of storage are goods for consumption data, such as the information such as name of the dish, dish numbering, dish valency, under user selects according to custom
Pull-type menu or set meal are made a reservation.Consumption read-write function is continuously made a reservation, after all menus all select, consumption
Machine-readable write can add up this total spending amount automatically according to dish valency, number, and user need to only swipe the card in induction zone and can complete to disappear
Take operation.Breakfast, Chinese meal, dinner, stoke of midnight are designed with respective counts keyboard when difference is eaten on consumption read-write heads, and consumption finishes
Afterwards, staff can be stored in historical record in IC card or on data storage in consumption read-write heads inquiry, and can be with
The effectively safety of the consumption information of protection user, at the same it is interference-free between multi-user information, the safety and effectiveness of data is improved,
Used memory module autgmentability is strong, can improve the memory space of data large capacity, and the TCP consumption read-write heads further includes
SD/MMC card interfaces, SD/MMC card interfaces are communicated to connect with the central processing module.The display module is LCD liquid crystals
Show device, the central processing module is STM32 series monolithics, and STM32 series monolithics are based on high-performance, low cost, low work(
The ARM Cortex-M kernels of the Embedded Application of consumption, while there is the peripheral hardware of one stream:Double 12 ADC of 1 μ s, 4 megabit per seconds
UART, the SPI of 18 megabit per seconds etc., showed in terms of power consumption and integrated level excellent.LCD liquid crystal is applied in utility model
Display completes display output function, in the amount of consumption and card of its IC card information for being mainly used for showing user or display IC card
Remaining sum, it is convenient to carry out man-machine interface interaction, improve display quality height and the interface of SCM system is simpler reliable, operation
It is more convenient and small, light-weight, low in energy consumption.In the utility model due to need record consumption read-write occur when
Between, therefore, the logical clock module using inside STM32 series monolithics carries out the number that record different people is consumed in different time
According to time cycle and the cost of program development can be greatly shortened;The Keysheet module provides input through keyboard to the user, so that real
The required function in current family or demand, microcontroller read union processing user operation instruction from data memory module, then
Operation result is fed back into user by man-machine interface display module, above-mentioned interaction realizes the basic training of consumption read-write heads
Energy.The power module is responsible for consuming the power management operation of read-write heads, and alternating current can be converted to rated voltage, and to standby electricity
Pond carries out discharge and recharge, and prompting during not enough power supply user to carry out data backup measure, the power modules such as standby shutdown can be in alternating current
Toggled between internal electric source, ensure that consumption read-write heads stablizes safe operation.
The TCP communication modules are provided towards connection, reliable byte stream service, when client and server or upper
Before machine is exchanging data with one another, it is necessary to first establish a TCP connection between the two parties, data could be transmitted afterwards, TCP provides time-out
Retransmit, abandon the functions such as repeated data, inspection data, flow control, ensure that data can pass to the other end from one end.In this practicality
In new, as shown in Fig. 2, the TCP communication modules include communication data processing unit, data bus interface unit, communication control
Unit, serial interface unit and data storage cell processed, the bus interface of the communication data processing unit pass through the data
Bus Interface Unit and the communication control unit communicate to connect, and the serial line interface of the communication data processing unit passes through described
Serial interface unit is communicated to connect with the central processing module, and the serial interface unit uses MAX232 serial line interfaces and institute
State central processing module to communicate, brushing card data is carried out so as to fulfill central processing module and the communication data processing unit
Exchange and upload, the data-interface of the communication data processing unit communicates to connect with the data storage cell.It is described logical
News data processing unit is STM32 series monolithic processors, and the data bus interface unit is pci data bus or SPI
Data/address bus, it is fairly simple using read-write mode during pci data bus, it is easy to control, and without the requirement in sequential, the communication
Control unit uses ENC28J60 ethernet communication control chips, its structure is small, and cost is low, and control is fairly simple, it uses SPI
Serial interface mode is communicated, and improves the versatility of communication control unit, and the data storage cell is 128M-bit capacity
External memory storage be used for interim storage data in memory communicating transmission operational process.
In the utility model, with reference to shown in Fig. 1 and Fig. 3, the module for reading and writing includes radio frequency read/write circuit, radio-frequency antenna
Match circuit, antenna receiving circuit and antenna, the antenna pass sequentially through the antenna receiving circuit, radio frequency antenna matching circuit
Communicated to connect with the radio frequency read/write circuit, the Read-write Catrol end of the radio frequency read/write circuit and the reading of the central processing module
Control terminal communication connection is write, in the utility model, the radio frequency read/write circuit uses MF RC500 radio frequency read-write chips, described
Antenna-matching circuit includes capacitance C9, capacitance C10, capacitance C11, capacitance C12, capacitance C13, capacitance C14, inductance L3 and inductance
L4, one end of the inductance L3 are connected with one end of the antenna, one end of the other end of the inductance L3 and the capacitance C13
Connection, one end with the capacitance C9, one end of capacitance C11 are connected the other end of the capacitance C13 respectively, the capacitance C9
The other end pass through one end of the antenna receiving circuit the first transmitting terminal TX1, radio frequency with the radio frequency read/write circuit respectively
The receiving terminal RX of read/write circuit is connected with the voltage controling end VMID of radio frequency read/write circuit, one end and the day of the inductance L4
The other end connection of line, the other end of the inductance L4 are connected with one end of the capacitance C14, the other end of the capacitance C14
One end with the capacitance C12, one end of capacitance C10 are connected respectively, and the other end of the capacitance C10 passes through antenna receiving circuit
The other end be connected respectively with the second transmitting terminal TX2 of the radio frequency read/write circuit, the intermediate ends of the antenna, capacitance C11
The other end of the other end and capacitance C12 are connected with the power supply ground terminal TVSS of the radio frequency read/write circuit, by using inductance L3 and
Inductance L4 carries out matching the receiving intensity for improving radio frequency induction signal with antenna, and passes through capacitance C9, capacitance C10, capacitance
C11, capacitance C12, capacitance C13, capacitance C14 are filtered processing.In the utility model, the radio frequency antenna matching circuit by
Inductance L1, inductance L2, capacitance C1, capacitance C2, capacitance C3, capacitance C4, capacitance C5, capacitance C6, capacitance C7, capacitance C8, resistance R1
Formed with resistance R2, as shown in Fig. 2, MF RC500 radio frequencies read-write chips and inductance L1, inductance L2, capacitance C1, capacitance C2, capacitance
The resonance circuit that C3, capacitance C4, capacitance C7 and capacitance C8 compositions are mutually matched, MF RC500 radio frequencies read-write chips and capacitance C5,
Hinder R1, resistance R2 and capacitance C6 compositions receive match circuit, the electricity of the RX pins for limiting MF RC500 radio frequency read-write chips
Pressure amplitude degree, optimum impedance matching is carried out to realize with frequency read/write.After signal activation MF RC500 radio frequencies read-write core is launched,
The MF RC500 radio frequencies read-write core card of response is modulated using the load of RF, and the radiofrequency signal of antenna is by antenna match
Reason is sent into the RX feet on MF RC500 radio frequencies read-write core, and RX feet receive radiofrequency signal and are sent to MF RC500 and signal is carried out
After demodulation process, send to I/O interfaces and read for central processing unit, the TTL levels that the TXD feet that central processing unit is read export are believed
Number, sent after MAX232 carries out level conversion to the reception pin RXD ends of central processing unit, so as to complete radiofrequency signal
Receive process.The antenna is circular or square antenna, and the antenna is circular for three circles, wherein, first lap is circular straight
Footpath is 1mm-1.5mm, the second circle circular a diameter of 4mm-8mm, the 3rd circular a diameter of 12mm-15mm of circle, so that should
Antenna forms tuning circuit with the antenna receiving circuit.When antenna resonant frequency is adjusted to 13.56MHz, the echo of antenna
It is lost as minimum, so as to be achieved and frequency read/write carries out optimum impedance matching.
As another embodiment of the utility model, the antenna is square, wherein, the square a length of 18mm of first lap,
Width is 15mm;Second circle square a length of 22mm, width 20mm;3rd square a length of 30mm, the width 28mm of circle, with realize with
Frequency read/write carries out optimum impedance matching.
In the utility model, as shown in figure 3, the antenna is used for the radiofrequency signal for sensing and obtaining RF IC card, institute
By filling in, receiving circuit is filtered the radiofrequency signal of acquisition and Signal Matching, the antenna receiving circuit can be effectively radio frequency
Antenna-matching circuit provides stable signal source, it is ensured that integrality of the information in reading process, improves radiofrequency signal
Stability and anti-interference, ensure the real effectiveness of data, the filtered read/write circuit of acquired radiofrequency signal is used for will
Radiofrequency signal is converted to low speed digital signal or low speed digital signal is converted to radiofrequency signal.In the utility model, radio frequency
Read/write circuit carries out wireless communication by antenna and IC card, realizes the read or write operation to data in IC card.The radio frequency
Read/write circuit has used the dedicated read-write process chip (MF RC500 radio frequencies read-write chip) of 1 Mifare card.It is one small-sized
Maximum operating distance up to 100mm Mifare read/write devices core devices, its function include modulation, demodulation, produce radio frequency
Signal, safety management and anticollision mechanism.Internal structure is divided into radio-frequency region and interface area:Radio-frequency region includes modem and electricity
Source power supply circuit, is directly connected with antenna, and interface area has the port being connected with microcontroller, also with the receipts being connected with radio-frequency region/
Send out device, the data buffer of 64 bytes, the E of 3 sets of initialization of register files of storage216 sets of PROM, storage only writing for key are deposited
Reservoir and progress confirm three times and the anticollision module and control unit of the processing of the encrypted cipher machine of data, anticollision.This is
The nucleus module of wireless communication, and the key interface chip of reader read-write Mifare cards are realized with RF IC card.Module work
When making, the aerial coil being connected with the dedicated Card Reader chip of Mifare cards (MF RC500) constantly sends out one group of fixation frequency
The electromagnetic wave (13.56MHz) of rate, when there is card close, has a LC series resonant circuit, its frequency and reader in IC card piece
Tranmitting frequency it is identical, so under the excitation of electromagnetic wave, LC resonance circuit produce resonance so that capacitance charging have electricity
Lotus.The capacitance other end in this LC series resonant circuit, is connected to the electronic pump of a unilateal conduction, by the electric charge in capacitance
The storage of another capacitor memory is sent to, when capacitor charging reaches 2V, this capacitance is just other circuits on card as power supply
Operating voltage is provided, data and the preservation that reader is sent are launched or received to data in card.
The above is only the preferred embodiment of the utility model, it is noted that for the common skill of the art
For art personnel, on the premise of the utility model principle is not departed from, some improvements and modifications can also be made, these improve and
Retouching also should be regarded as the scope of protection of the utility model.