A kind of payment device of prepaying meter and payment methods
Technical field
The present invention relates to a kind of prepaying meter, especially relate to a kind of payment device and payment methods of prepaying meter.
Background technology
Existing prepaying meter generally is to adopt each user to hold a sheet smart card, smart card is paid the fees in management organization supplement with money, and the smart card after will supplementing with money then inserts in the gauging table, just can realize the function of paying and using.As on April 2nd, 2003 disclosed No. 01132699.9 Chinese invention patent a kind of method of utilizing smart card and smart card ammeter to realize electric charge payment is disclosed, its step comprises: the management of power use mechanism main frame that carries out communication with the commercial networks main frame is set, operation smart card ammeter management system; Described smart card ammeter management system generates the master control card when initial the installation, be used for storing initial total key; Generate each smart card master card by this initial total key; The subscriber card distribution master card and the rechargeable card master card that wherein generate are used for the subscriber card initialization is purchased with the distribution subscriber card and to supplementing with money of subscriber card; The user is to the application of described management of power use mechanism, and the intelligent object ammeter is installed by described management of power use mechanism in the user power utilization position, and user profile is imported host data base; The rechargeable card master card is transferred to marketing organization and is generated rechargeable card and electricity is purchased in the paying of subscriber card supplemented with money; Subscriber card writes purchasing electric weight the intelligent object of ammeter when inserting ammeter.This invention is owing to adopt smart card as the media of purchasing electricity, realized purchasing separating of electricity and the management of power use.But this way of paying must be held the user by the user and be snapped into management of power use mechanism and pay and to purchase electricity when purchasing electricity, often convenient inadequately during operation, in particular cases also can influence user's operate as normal.In similar water meter, gas meter, this situation also all is similar.
Summary of the invention
Technical matters to be solved by this invention provides a kind of simple to operation, payment device and payment methods that can user friendly greatly prepaying meter.
The present invention solves the problems of the technologies described above the technical scheme that is adopted: a kind of payment device of prepaying meter, comprise marketing system main frame and the control module that is arranged in the gauging table with management organization's host communication, it also comprises the communication device that carries out communication with the marketing system main frame, described communication device and described gauging table are provided with the communication means that the affirmation information that described marketing system main frame is sent is imported described control module, the memory device socket that is connected with described control module on described communication means comprises information storing device and is arranged on described gauging table, the affirmation information that the described marketing system main frame of described storage device records sends, and by described memory device socket confirmation is imported in the described control module.
Described communication device is a mobile phone, and described mobile phone and described gauging table are provided with the communication means that the affirmation information that described marketing system main frame is sent is imported described control module.
Described memory device is the SIM card of described mobile phone, described memory device socket is the SIM card socket, described SIM card writes down the affirmation information that described marketing system main frame sends, and by described SIM card socket confirmation is imported in the described control module.
A kind of payment methods of using the prepaying meter of above-mentioned payment device, the paying step is: 1. described communication device and described marketing system main frame carry out communication, send gauging table registration account number; 2. described marketing system main frame and described management organization host communication, gauging table registration account number is carried out safety certification, obtain the counterpart keys of this gauging table, and behind authentication success, send the paying information of encrypting to described marketing system main frame with log-in password by described communication device; 3. described marketing system main frame tackles charge information to carry out generating confirmation after the business processing; 4. described marketing system main frame is encrypted the back to confirmation and is sent to described communication device; 5. described storage device records encrypted validation information is input to encrypted validation information in the described gauging table by described memory device socket then and deciphers, and the affirmation information after will deciphering is then imported described control module.
Compared with prior art, the invention has the advantages that the intelligence paying network and Key Tpe and the authentication method that utilize prior art, and use communication device to come the alternate user smart card, the agency that need not to hold when needs are paid pays the fees, and can utilize communication device to select suitable way of paying to finish whole payment procedure easily; And the information storing device of communication device and signal emission interface etc. are existing equipment, do not need to increase extra facility and cost again; Use technology of the present invention, can not be subjected to the restriction of smart card, any communication device all can be finished, and greatly facilitates the user; Communication means be on the communication device the signal emission interface be arranged on gauging table on be connected with control module the signal receiving interface time, can realize the two-way authentication between gauging table and the marketing system main frame, and production process key at random, and owing to the process key of purchasing electricity is all inequality at every turn, so confidentiality is stronger.
Description of drawings
Fig. 1 is a structural representation of the present invention;
Fig. 2 is the socket circuit diagram of the gauging table of the embodiment of the invention one;
Fig. 3 is the infrared interface circuit diagram of the gauging table of the embodiment of the invention two.
Embodiment
Embodiment describes in further detail the present invention below in conjunction with accompanying drawing.
In actual use, gauging table comprises electric energy meter, gas meter, water meter etc., and communication device also can be selected mobile phone, laptop computer, PC or PDA.Be that example is described only below with electric energy meter and mobile phone.
Embodiment one: a kind of payment device of prepaying meter, comprise marketing system main frame 2 and the electric charge payment control module 4 that is arranged in the gauging table 3 with main frame 1 communication of management of power use mechanism, it also comprises the mobile phone 5 that carries out communication with marketing system main frame 2, gauging table 3 is provided with the SIM card socket 7 that is connected with electric charge payment control module 4, realize paying by following step and purchase: 1. carry out communication, input need the to pay registration account number of the gauging table 3 of purchasing electricity by mobile phone 5 and marketing system main frame 2; 2. marketing system main frame 2 and main frame 1 communication of electrical management mechanism, gauging table registration account number is carried out safety certification, obtain the counterpart keys of the gauging table that prestores, marketing system main frame 2 prompting mobile phones 5 are selected the electric weight that Payment Methods are bought to be needed behind authentication success, by the purchase electrical information of mobile phone 5 inputs with the log-in password encryption; 3. marketing system main frame 2 carries out generating affirmation sale of electricity information after the business processing to purchasing electrical information after confirming successful payment; 4. 2 pairs in marketing system main frame is confirmed to send to mobile phone 5 after the sale of electricity information encryption; 5. mobile phone 5 receives the encrypted validation sale of electricity information that marketing system main frame 2 sends, and be recorded on the SIM card 6, the SIM card 6 of mobile phone 5 is taken out the SIM card socket 7 that inserts gauging table 3 just encrypted validation sale of electricity information input gauging table 3 can be decrypted, in the affirmation sale of electricity information input electric charge payment control module 4 after will deciphering then.The SIM card 6 of the mobile phone 5 here is actually and has replaced user intelligence debit card, but different be not need to pay to outlet again to purchase.
As shown in Figure 2, chip S3C2410 is the control chip of system, utilize its I/O port pinout to link to each other with the SIM card socket, be used for from the SIM card 6 that is inserted into SIM card socket 7 reading of data and and hand over and write data in the SIM card 6, the effect of chip 74HC74 and chip 74HC08 is controlled exactly and suitable clock signal is provided for chip EASM, and chip EASM provides the enciphering/deciphering function for system.Reading of data in the SIM card 6 of elder generation of system from be inserted into SIM card socket 7, again these data are delivered among the chip EASM and be decrypted, obtain data, do corresponding operating according to the data that obtained, and then give earlier and encrypt the acquisition enciphered data among the chip EASM writing data in the SIM card 6, again enciphered data is write in the SIM card 6.
Embodiment two: a kind of payment device of prepaying meter, comprise marketing system main frame 2 and the electric charge payment control module 4 that is arranged in the gauging table 3 with main frame 1 communication of management of power use mechanism, it also comprises the mobile phone 5 that carries out communication with marketing system main frame 2, the infrared receiving interface 9 that is connected with electric charge payment control module 4 that is provided with on the gauging table 3, purchase by following step realization paying: 1. mobile phone 5 carries out communication with marketing system main frame 2, mobile phone 5 is set up communication between marketing system main frame 2 and the gauging table 3 by the infrared receiving interface 9 on infrared emission interface 8 and the gauging table 3, and gauging table 3 sends gauging tables registration accounts to marketing system main frame 2; 2. marketing system main frame 2 and main frame 1 communication of electrical management mechanism, carry out the bidirectional safe authentication by marketing system main frame 2 and gauging table 3, obtain the process key of this transaction behind the authentication success, to purchase electrical information by mobile phone 5 and send to gauging table 3,3 pairs of gauging tables are purchased electrical information and are carried out digital signature, and purchasing after will signing with the process key of this transaction sends to mobile phone 5 after electrical information is encrypted to ciphertext; 3. mobile phone 5 sends ciphertexts to marketing system main frame 2, and 2 pairs of decrypt ciphertext of marketing system main frame are gone forward side by side after the line number word signature is proved to be successful, and carries out generating after the business processing and confirms sale of electricity information purchasing electrical information; 4. 2 pairs in marketing system main frame confirms that sale of electricity information carries out digital signature, and the affirmation sale of electricity information encryption after will signing with the process key of this transaction becomes ciphertext to send to gauging table 3; 5. 3 pairs of ciphertexts of gauging table are decrypted and digital signature authentication, and the affirmation sale of electricity information after will deciphering then is input in the electric charge payment control module 4.
As shown in Figure 3, chip EASM provides the enciphering/deciphering function for system, the effect of chip 74HC74 and chip 74HC08 is controlled exactly and suitable clock signal is provided for chip EASM, chip S3C2410 is the system control chip of gauging table, chip HDSL3208 be Hewlett-Packard Corporation produce to support IrDA1.0 the infrared receiving/transmission chip of low-power consumption from 9.6KB/S to 115.2KB/S, TXD in the UART2 port of the TXD pin of chip HDSL3208 and RXD pin and chip S3C2410 links to each other with the RXD pin, because this port of chip S3C2410 has the IrDA1.0 of support function, utilize the data of the UART2 port acceptance of chip S3C2410 from infrared chip HDSL3208, utilize the EASM chip to be decrypted computing again and obtain data, do respective handling according to the gained data system, the data that needs are sent send the EASM chip earlier to, by its encryption, again data encrypted is sent to HDSL3208 by the UART2 port and send by agreement IrDA1.0.
In the foregoing description, the SIM card 6 of mobile phone 5 can substitute with STK card and the memory device such as USB flash disk that is connected with the USB interface or the data line interface of mobile phone.
And infrared emission interface 8 and infrared receiving interface 9 also can wait to substitute with the blue tooth interface on mobile phone 5 and the gauging table 3, NFC interface and data line interface.