Background technology
Existing reading-card type measuring instrument (as ammeter, water meter, gas meter, flow meter) needs a kind of data exchange ways in order to finish and extraneous exchanges data (as supplement with money process and data check meter process).For this reason, many producers adopt logical encrypt radio-frequency card or read-only radio-frequency card mode to realize described exchanges data.The logical encrypt radio-frequency card adopts user's setting code mode to carry out safety certification, in case password is stolen, has no security and can say.Read-only radio-frequency card mode adopts computing machine to generate ID number, system is encrypted with ID number, but lacks security certificate algorithm with the corresponding data card of read-only radio-frequency card card table controller, is replicated easily, and security of system is still not high.Because the data security of these schemes can't be guaranteed, and in fact exists great hidden danger.In case the data security of system goes wrong, reading-card type measuring instrument data can appear distorting, problem such as illegally supplement with money.
In order to address the above problem, the producer that has adopts integral type CPU card mode in communication plan, a CPU card table controller is set in each reading-card type measuring instrument, because the CPU card itself contains security certificate algorithm, be difficult for being replicated, so safer with respect to logical encrypt radio-frequency card and read-only radio-frequency card mode.Described integral type CPU card mode is divided into contact type CPU card and radio frequency CPU card mode.
In the contact type CPU card mode, communication mode between CPU card table controller and the CPU card is a contact, finish data interaction by the CPU card being inserted CPU card table controller, this kind mode is used widely in the ammeter industry, but its interface is vulnerable to attack, the card corrosion-vulnerable.
Radio frequency CPU card mode is because CPU card and CPU card table controller carry out data interaction by radiofrequency signal, not directly contact, so avoided the above-mentioned shortcoming of contact type CPU card mode, existing radio frequency CPU card table controller is arranged in the reading-card type measuring instrument, mainly comprise the radio frequency unit, control module and the interface unit that connect successively, wherein, radio frequency unit is used for that to stick into line data mutual and export interaction data to control module with CPU; Control module is used to connect radio frequency unit and interface unit, and finishes mutual data interaction; Interface unit is used for carrying out data interaction between reading-card type measuring instrument and control module.
But, above-mentioned radio frequency CPU card mode need be with CPU card table controller as within each reading-card type measuring instrument, because CPU card table controller size is bigger, and the space is limited in the reading-card type measuring instrument, so be installed in the reading-card type measuring instruments such as ammeter, water meter CPU card table controller comparatively difficult.Some producers adopt the means such as structure composition that increase reading-card type measuring instrument shell, change reading-card type measuring instrument to change reading-card type measuring instrument volume so that radio frequency CPU card table controller to be installed in order to realize radio frequency CPU card mode.These schemes have improved the difficulty of product development virtually, have increased cost, and the development of unfavorable product is promoted.In addition, because the CPU card table controller in the radio frequency CPU card mode need adopt radio-frequency module (radio-frequency (RF) base station) to carry out read-write operation, and the price of radio-frequency module is because the complicacy of its principle, always than higher, if adopt the mode that a CPU card table controller is installed in the reading-card type measuring instrument, manufacturer and user are difficult to break through the bottleneck of price.
The utility model content
At defective and deficiency that prior art exists, the utility model provides a kind of Seperated Radio Frequency Cpu Card Table Control Device, can reduce system cost and maintenance difficulties when a plurality of reading-card type measuring instruments are controlled.
In order to reach the foregoing invention purpose, the utility model Seperated Radio Frequency Cpu Card Table Control Device, comprise the radio frequency unit, control module and the interface unit that connect successively, wherein, radio frequency unit is used for sticking into line data with CPU and exports control module to alternately and with interaction data; Control module is used to connect radio frequency unit and interface unit, and finishes mutual data interaction; Interface unit is used for carrying out data interaction between reading-card type measuring instrument and control module, described interface unit is used for carrying out data interaction with at least more than one reading-card type measuring instrument; Between described radio frequency unit and control module, also comprise a recognition unit, be used at least more than one CPU is sticked into row identification, and block pairing reading-card type measuring instrument by control module and interface unit and this and carry out data interaction.
Concrete, radio frequency unit comprises:
Radio-frequency antenna: link to each other with the radio frequency read-write chip, received RF CPU card data forwarding is given the radio frequency read-write chip, and the data forwarding that the received RF read-write chip sends is to radio frequency CPU card;
Radio frequency read-write chip: read the radio frequency CPU card data that radio-frequency antenna is received, this radio frequency CPU card data are sent to recognition unit, and receive the data that recognition unit sends, these data are sent to radio-frequency antenna.
In the above-mentioned Seperated Radio Frequency Cpu Card Table Control Device, described reading-card type measuring instrument is ammeter, water meter, gas meter, flow meter.
Further, described control module comprises:
Central processing unit: link to each other with recognition unit, the information interaction between radio frequency CPU card and the reading-card type measuring instrument is managed;
Commutation circuit: control end is connected on the central processing unit, an input/output terminal links to each other with interface unit, another input/output terminal links to each other with central processing unit and outside communication bus of checking meter respectively, and selection one tunnel is connected with interface unit between communication bus that this commutation circuit is used for externally checking meter and the Seperated Radio Frequency Cpu Card Table Control Device;
As preferably, also be connected with a display module that shows radio frequency CPU card data on the described central processing unit.
In addition, above-mentioned Seperated Radio Frequency Cpu Card Table Control Device also comprises:
Security module: described security module links to each other with central processing unit, is used for the data from radio frequency CPU card and reading-card type measuring instrument are added, decipher, and safety certification.
Preferably, described security module adopts the embedded-type security control module.
As a supplement, recognition unit is specially the identification of CPU card: recognition unit obtains and the corresponding reading-card type measuring instrument of described radio frequency CPU card by reading the data in the radio frequency CPU card.
As a supplement, be used for the interface unit that carries out data interaction with at least more than one reading-card type measuring instrument, be connected with a plurality of reading-card type measuring instruments by 485 buses.
Device described in the utility model is controlled a plurality of reading-card type measuring instruments with a radio frequency CPU card table controller, with respect to the existing radio frequency CPU card table controller that can only control a reading-card type measuring instrument, has significantly reduced cost and system maintenance difficulty.
Embodiment
The utility model is described in further detail below in conjunction with accompanying drawing:
The utility model Seperated Radio Frequency Cpu Card Table Control Device is applicable to existing various reading-card type measuring instrument (as ammeter, water meter, gas meter, flow meter), is example with the ammeter below, narrates.
As shown in Figure 5, the utility model Seperated Radio Frequency Cpu Card Table Control Device comprises the radio frequency unit, control module and the interface unit that connect successively, and wherein, radio frequency unit is used for sticking into line data with CPU and exports control module to alternately and with interaction data; Control module is used to connect radio frequency unit and interface unit, and finishes mutual data interaction; Interface unit is used for carrying out data interaction between reading-card type measuring instrument and control module, radio frequency CPU card table controller is arranged on outside the reading-card type measuring instrument, and described interface unit is used for carrying out data interaction with at least more than one reading-card type measuring instrument; Between described radio frequency unit and control module, also comprise a recognition unit, be used at least more than one CPU is sticked into row identification, and block pairing reading-card type measuring instrument by control module and interface unit and this and carry out data interaction.
As shown in Figure 1, above-mentioned radio frequency unit comprises:
Radio frequency read-write chip: read the radio-frequency card data that radio-frequency antenna is received, these radio-frequency card data are sent to recognition unit, and receive the data that recognition unit sends, these data are sent to radio-frequency antenna;
Radio-frequency antenna: link to each other with the radio frequency read-write chip, received RF card data forwarding is given the radio frequency read-write chip, and the data forwarding that the received RF read-write chip sends is to radio-frequency card.
Above-mentioned control module comprises: central processing unit, security module and commutation circuit,
Wherein, central processing unit: link to each other with recognition unit, security module, commutation circuit respectively, be used for overall control to Seperated Radio Frequency Cpu Card Table Control Device; Recognition unit: be connected between central processing unit and the radio frequency read-write chip, be used at least more than one CPU is sticked into row identification.
Security module (ESAM is the embedded-type security control module): link to each other with central processing unit, be used for carrying out safety certification with data card;
Commutation circuit: an input/output terminal links to each other with interface unit, another input/output terminal links to each other with central processing unit with the communication bus of checking meter in the outside respectively, the control end of described commutation circuit links to each other with central processing unit, select one the tunnel to be connected the selector switch that is in the nature an alternative of this commutation circuit between communication bus that this commutation circuit is used for externally checking meter and the central processing unit with interface unit.
Interface unit: an end links to each other with the communication bus of reading-card type measuring instrument, and an end links to each other with commutation circuit, is used for interface signal and handles.
Recognition unit: be used at least more than one CPU is sticked into row identification, can carry out its function by central processing unit in actual applications, the function of recognition unit is just carried out by central processing unit in the present embodiment.
As to further improvement of the utility model, can also connect a display module on the central processing unit, in order to show radio frequency CPU card data.
Above technical scheme generally all adopt the means of 485 communication buses as ammeter and extraneous communication, and 485 communication buses is used the control that is subjected to outside integrated reading device based on present ammeter design.Bus is in the non-working time in the most of the time, and an extraordinary external interface is provided for this reason.Simultaneously, the one-to-multiple characteristics of 485 communication buses can make us be very easy to realize the technical scheme of a plurality of ammeters of radio frequency CPU card table controller band.In a floor or an area of installing ammeter concentratedly, can realize the radio frequency CPU card of a plurality of ammeters is operated with a radio frequency CPU card table controller fully.
485 communication interfaces that the utility model utilizes above-mentioned ammeter to carry, adopt the ammeter method for designing of minimum system, realize to concentrate a radio frequency CPU card table controller, the work such as check meter of the mode of carrying out communication respectively with each ammeter, ammeter payment, the data of carrying out radio frequency CPU card.
Ammeter separates with radio frequency CPU card table controller in the present embodiment, and the mode of 485 communication buses that employing table tool self has is finished the communication of table tool and radio frequency CPU card table controller, realizes the supplementing with money and checking meter ammeter of radio frequency CPU card.Radio frequency CPU card table controller has the module interface of read-write radio frequency CPU card, can realize the read-write operation with radio frequency CPU card, simultaneously, also has 485 communication interface, can carry out data communication with ammeter, the radio frequency CPU card ammeter corresponding with it connected, finish the function of exchanges data.
Because 485 communication buses have the function of multi computer communication, therefore a radio frequency CPU card table controller can carry out communication with a plurality of ammeters, on system architecture, 485 communication buses that will belong to the ammeter of this radio frequency CPU card table controller link together, directly utilize intrinsic electric table number of system or user number address parameter as certain ammeter of identification, radio frequency CPU card table controller can be called out the ammeter that needs operation, finishes the operating process of radio frequency CPU card and this ammeter.
Among Fig. 1, ammeter M1 to MN represents a plurality of ammeters, links together by 485 communication buses, and theoretically, the quantity of connection is unrestricted, owing to the restriction of physical condition, is generally less than 128 ammeters in the practical application.
Introduce the idiographic flow of present embodiment below, wherein, commutation circuit adopts 4053 chips (as shown in Figure 2), and the radio frequency read-write chip adopts RC522 chip (as shown in Figure 3), and radio-frequency antenna as shown in Figure 4.
Whether the radio frequency read-write chip has radio frequency CPU clamping close-range shot CPU card table controller frequently by the continuous search of radio-frequency antenna.When not having radio frequency CPU clamping close-range shot frequency CPU card table controller, radio frequency CPU card table controller is in the normal state, central processing unit control commutation circuit disconnects the communication loop of received RF CPU card and interface unit, 485 buses of being checked meter in the outside link to each other with interface unit, and then link to each other with 485 communication buses, like this, when 485 bus requirementses of checking meter when the outside and each ammeter carry out exchanges data, can normally carry out.
When the user wishes for oneself ammeter payment, this user with oneself in advance the radio frequency CPU card (purchasing electric rechargeable card) of the value of substituting the bad for the good near radio frequency CPU card table controller, the radio frequency read-write chip detects radio frequency CPU card by radio-frequency antenna, central processing unit starts security module by the radio frequency unit of radio-frequency antenna and radio frequency read-write chip composition and the safety certification that radio frequency CPU sticks into capable handshaking type, after safety certification is passed through, the radio frequency read-write chip reads the data of radio frequency CPU card by radio-frequency antenna, data with described radio frequency CPU card send to recognition unit again, recognition unit obtains from the data of this radio frequency CPU card and corresponding electric table number or the user number of this radio frequency CPU card, and should the electricity table number or user number send to central processing unit together with the data of radio frequency CPU card, central processing unit calls security module the data of described radio frequency CPU card is encrypted, outside 485 communication buses of checking meter of central processing unit control commutation circuit cut-out are connected with interface unit, then central processing unit is linked to each other with interface unit, the data of the radio frequency CPU card after central processing unit will be encrypted by 485 communication buses of interface unit and ammeter successively send to and the corresponding ammeter of radio frequency CPU card, after described ammeter is received the data of radio frequency CPU card of encryption, the security module that starts in the ammeter is decrypted, afterwards, feedback data is handled and generated to ammeter to the data of described radio frequency CPU card, after the security module of described ammeter feedback data in ammeter encrypted, 485 communication buses and interface unit by ammeter sends to central processing unit successively, after communication finishes, central processing unit control commutation circuit cut-out central processing unit is connected with interface unit, then 485 communication buses that checked meter in the outside link to each other with interface, central processing unit starts security module once more described ammeter feedback data is decrypted, afterwards, central processing unit is passed to recognition unit with the ammeter feedback data, behind the corresponding relation of recognition unit identification ammeter and radio frequency CPU card, the ammeter feedback data is sent to the radio frequency read-write chip, and the radio frequency read-write chip sends to corresponding radio frequency CPU card by radio-frequency antenna with described ammeter feedback data.The user understands the information in the radio frequency CPU card for convenience, it is also conceivable that on the central processing unit and connect a display module that shows radio frequency CPU card data, when central processing unit obtains the data of radio frequency CPU card, the information of the radio frequency CPU card that will supplement with money in last demonstration shows the information of supplementing the radio frequency CPU card that finishes with money after supplementing with money.
In the present embodiment, commutation circuit adopts 4053 chips, it connects as shown in Figure 2, the A line of the A line of central processing unit and outside 485 communication buses of checking meter is connected to 12 of 4953 chips, 13 pins, the B line of the B line of central processing unit and outside 485 communication buses of checking meter is connected to 2 of 4953 chips, 1 pin, 14 of 4053 chips, 15 pins are connected to the A line and the B line of 485 communication buses by interface unit, the control end 9 of 4053 chips, 10,11 pins are connected on the central processing unit, during use, central processing unit passes through to 9 of 4053 chips, 10,11 pins send signal controlling 4053 chips and switch between central processing unit and outside 485 communication buses of checking meter and lead up to interface unit and be connected to the A line and the B line of 485 communication buses.
The radio frequency read-write chip adopts the RC522 chip, its structure as shown in Figure 3,24 pins are data line, link to each other with the IO interface of recognition unit, carry out data interaction with recognition unit, 31 pins are control end, controlled by recognition unit, and recognition unit is by the duty of 31 pins control RC522 chip.
Radio-frequency antenna as shown in Figure 4, the A line connects 9 pins of RC522 chip, receive the data that the RC522 chip sends to radio frequency CPU card, the B line connects 7 pins of RC522 chip, the D line connects 8 pins of RC522 chip, B line and D line send the data of the radio frequency CPU card transmission that receives respectively to the RC522 chip, the C line connects ground wire.
By above scheme, the utility model utilizes the thought of split type ammeter, concentrates the radio-frequency card module for reading and writing, and the method for carrying out communication respectively with ammeter has solved the contradiction of radio frequency CPU card ammeter in application effectively.Compare with the integral type radio frequency CPU card mode of an existing radio frequency CPU of ammeter card table controller, reduced cost, simplify the structure.
Here it is to be noted, what provide above is preferred embodiment of the present utility model, the utility model can also be enumerated much other embodiment, is not limited to ammeter such as the object of implementing, and can also be water meter, natural gas meter and other reading-card type measuring instrument.Embodiment can also be to check meter or other need stick into the content of line operate with radio frequency CPU except supplementing with money, each functional part also is not limited to top given model, such as, commutation circuit not only can be used 4053 chips, all can carry out the controlled selecting arrangement that circuit is selected also can to use relay or even controlled selector switch etc., the radio frequency read-write chip also not necessarily adopts the RC522 chip, the chip of other radio frequency realized read-write capability commonly used such as available FM1702 replaces, in like manner, radio-frequency antenna also is not limited to the structure that provides among the embodiment, central processing unit and security module can be Embedded also can right and wrong Embedded, in a word, all available components and parts that other can realize said function of all components and parts in the present embodiment are replaced.The embodiment that has replaced objective for implementation and components and parts is embodiment of the present utility model equally, can think the distortion to preferred embodiment, does not here give unnecessary details.