Prepaid radio frequency card and electric energy meter data interaction process detection device and detection method
By providing a prepaid RF card and an electric energy meter data interaction process detection device, simulating the data interaction process between the RF card and the electric energy meter, detecting abnormal states that occur during the reading and writing process of the electric energy meter and the electric frequency card, the existing technology is solved. Effective detection of problems achieves the effect of data synchronization and dispute avoidance.
Patent Information
- Application Number
- CN201811519521.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2018-12-12
- Publication Date
- 2025-02-11
- Estimated Expiration
- 2038-12-12
AI Technical Summary
The prior art cannot effectively detect abnormal states of electricity meters and radio frequency cards during reading and writing, resulting in inconsistency in data and causing customer disputes and data errors.
Provide a process detection device for data interaction between prepaid RF card and power meter, including a controller module, a data communication module, a host computer, a radio frequency card reader and a reset signal generation module, and when data interaction between the radio frequency card and the power meter is simulated, The power meter restart process, record the data before and after the data, compare and detect abnormal states.
It can simply and reliably detect abnormal states that occur during data interaction between the power meter and the radio frequency card, ensure data synchronization, avoid customer disputes and data errors, have good applicability and low cost.
Smart Images

Figure CN109344934B_ABST
Abstract
Description
Technical Field
[0001] The invention specifically relates to a device and method for detecting the data interaction process between a prepaid radio frequency card and an electric energy meter. Background Art
[0002] With the development of economy and technology and the improvement of people's living standards, electric energy has become an indispensable secondary energy metering component in people's production and life, bringing endless convenience to people's production and life.
[0003] The electric energy meter is an important metering component in the power system, which plays an important role in measuring electric energy and realizing fee control functions. As an advanced fee control terminal, the smart electric energy meter with radio frequency card uses advanced contactless card carrier as the carrier of electricity fee, which is an effective means of rapid information exchange.
[0004] The data processed by the RFID card smart energy meter during operation needs to be saved in the EEPROM and FLASH of the energy meter, and the information also needs to be transmitted back to the RFID card. The data of the RFID card needs to be consistent with the electricity purchase information in the energy meter. If the data between the energy meter and the RFID card are inconsistent, it will lead to serious problems such as customer disputes and data errors. Therefore, data synchronization between the RFID card and the energy meter is an important requirement between the two.
[0005] According to statistics from the RF card application process, the RF card is easily disturbed by external high frequency during high-speed reading and writing, which may cause reset. When the energy meter is reading and writing and exchanging data with the RF card, if the energy meter fails or resets, it may also cause the data between the energy meter and the RF card to be out of sync. Therefore, it is an important step for the energy meter and the RF card to detect abnormal conditions during the reading and writing process, so as to detect the data synchronization between the energy meter and the RF card before leaving the factory.
[0006] However, currently there is basically no mature detection equipment, no relevant detection process and detection requirements for abnormal conditions that occur during the reading and writing process of electricity meters and radio frequency cards. Therefore, it is currently impossible to detect abnormal conditions that occur during the reading and writing process of electricity meters and radio frequency cards, which poses corresponding hidden dangers to the electricity meters and radio frequency cards leaving the factory. Summary of the invention
[0007] One of the purposes of the present invention is to provide a simple and reliable device for detecting the data interaction process between a prepaid radio frequency card and an electric energy meter, which can simulate and detect abnormal conditions occurring during the data interaction between the electric energy meter and the radio frequency card.
[0008] A second object of the present invention is to provide a detection method for the device for detecting the data interaction process between the prepaid radio frequency card and the electric energy meter.
[0009] The device for detecting the data interaction process between a prepaid radio frequency card and an electric energy meter provided by the present invention comprises a controller module, a data communication module, a host computer, a radio frequency card reader / writer and a reset signal generating module; the data communication module and the reset signal generating module are connected to the controller module, the host computer is simultaneously connected to the data communication module and the electric energy meter, the radio frequency card reader / writer is connected to the host computer, and the reset signal generating module is connected to the electric energy meter; the controller module is connected to and communicates with the host computer through the data communication module; the host computer is connected to and communicates with the radio frequency card reader / writer through a communication bus, and at the same time, the host computer is connected to and communicates with the electric energy meter through the communication bus; the controller module generates a reset signal through the reset signal generating module and resets the electric energy meter.
[0010] The data communication module includes an isolation circuit and a level conversion circuit; the isolation circuit and the level conversion circuit are connected in series; the communication signal output by the controller module is electrically isolated by the isolation circuit, and then converted into a communication level signal by the level conversion circuit, connected to the host computer and communicates with the host computer.
[0011] The isolation circuit is an isolation circuit composed of an isolation chip of model number ADUM5241.
[0012] The level conversion circuit is a circuit composed of a power level conversion chip of model MAX232.
[0013] The reset signal generating module comprises a plurality of identical reset signal generating circuits; the reset signal generating circuit comprises a reset input pull-up resistor, a reset isolation optocoupler and a reset output pull-up resistor; a reset signal outputted by the controller module is connected to one input end of the reset isolation optocoupler, and the other input end of the reset isolation optocoupler is connected to the positive pole of the power supply through the reset input pull-up resistor; one output end of the reset isolation optocoupler is connected to the positive pole of the power supply through the reset output pull-up resistor, and the other output end of the reset isolation optocoupler directly outputs the final reset signal and is connected to the electric energy meter.
[0014] The host computer is connected to the radio frequency card reader through a communication bus and performs data communication. Specifically, the host computer is connected to the radio frequency card reader through a CAN bus, an RS485 bus or a wireless communication bus and performs data communication.
[0015] The host computer is connected to the electric energy meter via a communication bus and performs data communication. Specifically, the host computer is connected to the electric energy meter via a CAN bus, an RS485 bus or a wireless communication bus and performs data communication.
[0016] The present invention also provides a detection method of the device for detecting the data interaction process between the prepaid radio frequency card and the electric energy meter, comprising the following steps:
[0017] S1. The host computer is connected to the RFID card reader through the communication bus and inputs the test data; the RFID card is located on one side of the electric energy meter, and the host computer is connected to the RFID card reader through the serial port; the RFID card is within 5CM to the left of the card reading position of the electric energy meter, and the electric energy meter reads and writes the RFID card state controlled by the switch, and the host computer and the electric energy meter can read and write the RFID card in order;
[0018] S2. The host computer communicates with the controller module through the data communication module, and controls the controller module to generate a reset signal for the energy meter through the reset signal generating module;
[0019] S3. Swipe the radio frequency card on the energy meter, and the controller module generates an energy meter reset signal through the reset signal generating module and controls the energy meter to reset;
[0020] S4. After the RFID card is swiped, the host computer obtains and records the internal data of the electric energy meter through the communication bus;
[0021] S5. The RFID card reader swipes the RFID card and obtains the data after the RFID card is swiped on the energy meter, and uploads the data to the host computer through the communication bus. The host computer parses, records, and determines the rationality of the uploaded data;
[0022] S6. The host computer changes the test data and repeats steps S1 to S5 until the preset number of times is reached;
[0023] S7. The host computer detects the data interaction process between the prepaid radio frequency card and the electric energy meter based on the test data recorded in the above steps, the data inside the electric energy meter, and the data after the radio frequency card is swiped, and determines whether the process data conforms to the design process and logic.
[0024] The device and method for detecting the data interaction process between the prepaid radio frequency card and the electric energy meter provided by the present invention simulate the process of restarting the electric energy meter when the radio frequency card and the electric energy meter perform data interaction through a reliable circuit design, and simultaneously record and compare the data before and after the radio frequency card and the electric energy meter perform data interaction. Therefore, the present invention can simulate and detect abnormal states occurring during the data interaction process between the electric energy meter and the radio frequency card, and the present invention is simple and reliable, has good applicability, and is low in cost. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 It is a functional module diagram of the device of the present invention.
[0026] Figure 2 The present invention is a schematic diagram of the circuit principles of the data communication module, the reset signal generating module and the controller module of the device.
[0027] Figure 3 The present invention is a method flow chart of the method. DETAILED DESCRIPTION
[0028] like Figure 1 The functional module diagram of the device of the present invention is shown as follows: the data interaction process detection device of the prepaid radio frequency card and the electric energy meter provided by the present invention comprises a controller module, a data communication module, a host computer, a radio frequency card reader and a reset signal generating module; the data communication module and the reset signal generating module are connected to the controller module, the host computer is simultaneously connected to the data communication module and the electric energy meter, the radio frequency card reader is connected to the host computer, and the reset signal generating module is connected to the electric energy meter; the controller module is connected to and communicates with the host computer through the data communication module; the host computer is connected to and communicates with the radio frequency card reader through a communication bus, and at the same time, the host computer is connected to and communicates with the electric energy meter through the communication bus; the controller module generates a reset signal through the reset signal generating module and resets the electric energy meter.
[0029] Among them, the data communication module includes an isolation circuit and a level conversion circuit; the isolation circuit and the level conversion circuit are connected in series; the communication signal output by the controller module is electrically isolated by the isolation circuit, and then converted into a communication level signal by the level conversion circuit, connected to the host computer and communicates with the host computer. The host computer is connected to the radio frequency card reader through the communication bus and performs data communication, specifically, the host computer is connected to the radio frequency card reader through the CAN bus, RS485 bus or wireless communication bus and performs data communication. The host computer is connected to the electric energy meter through the communication bus and performs data communication, specifically, the host computer is connected to the electric energy meter through the CAN bus, RS485 bus or wireless communication bus and performs data communication.
[0030] The working process of the device of the present invention is roughly as follows:
[0031] The host computer writes the first test data to the RFID card through the RFID card reader;
[0032] The radio frequency card is swiped at the electric energy meter;
[0033] When the RFID card is swiped on the electric energy meter (i.e., when the RFID card and the electric energy meter are exchanging data), the host computer communicates with the controller module through the data communication module, so that the controller module generates a reset signal, and outputs the reset signal to the electric energy meter through the reset signal generating module, so that the electric energy meter is reset;
[0034] The RFID card is swiped at the electric energy meter;
[0035] The RFID card goes to the RFID card reader to read data, and the RFID card reader reads the first RFID card data of the RFID card and uploads it to the host computer;
[0036] The host computer reads the first electric energy meter data after the first card swiping is completed through the communication bus;
[0037] The host computer modifies the test data and repeats the above steps until the preset number of times N is reached;
[0038] After the test is completed, the host computer records the first to Nth test data, the first to Nth radio frequency card data and the first to Nth electric energy meter data; at this time, the staff can program the host computer to automatically compare, analyze and judge the above-mentioned recorded data, so as to realize the detection of the interaction process between the prepaid radio frequency card and the electric energy meter data; or the staff can also judge and detect the interaction process between the prepaid radio frequency card and the electric energy meter data according to the above-mentioned recorded data.
[0039] like Figure 2 The diagram shows the circuit principle of the data communication module, reset signal generating module and controller module of the device of the present invention: in the figure, the isolation circuit is an isolation circuit composed of an isolation chip of model ADUM5241; the level conversion circuit is a circuit composed of a power level conversion chip of model MAX232; and the MCU is the controller module.
[0040] The ground line of the controller module is directly connected to the ground signal DGND; the communication pin RX of the controller module is used as a data receiving pin and connected to the 2nd pin of the isolation chip; the communication pin TX of the controller module is used as a data sending pin and connected to the 3rd pin of the isolation chip; the 1st pin of the isolation chip is connected to the power signal DVCC, the 4th pin is grounded, the 7th pin is used as the isolation pin corresponding to the 2nd pin and directly connected to the 9th pin of the power level conversion chip, the 6th pin is used as the isolation pin corresponding to the 3rd pin and directly connected to the 10th pin of the power level conversion chip, and the 8th pin of the isolation chip is directly connected to the 16th pin of the power level conversion chip for the power signal 232VCC, and the 5th pin of the isolation chip is directly connected to the 15th pin of the power level conversion chip for the ground; and the 7th pin of the power level conversion chip is used as the pin corresponding to the 10th pin and connected to the 232TX L signal of the 232 communication pin of the host computer, and the 8th pin of the power level conversion chip is used as the pin corresponding to the 9th pin and connected to the 232RX L signal of the 232 communication pin of the host computer, and the GND pin of the 232 communication pin of the host computer is also connected to the ground signal (the ground signal of the power level conversion chip). When the controller module communicates with the host computer, the data output by the controller module is first electrically isolated by U604, and then converted into a 232-level signal of the host computer through chip U603 and output to the host computer; similarly, the data of the 232-level signal output by the host computer is converted into a low-voltage signal by U603, and then electrically isolated by U604 and sent to the controller module.
[0041] In addition, the two output pins P01 and P02 of the controller module output two reset signals, which are output to the electric energy meter through two identical reset signal generating circuits; wherein, one reset signal generating circuit includes a reset input pull-up resistor (R804 or R802), a reset isolation optocoupler (U801 or U802) and a reset output pull-up resistor (R801 or R803); one reset signal output by the controller module is connected to one input end of the reset isolation optocoupler, and the other input end of the reset isolation optocoupler is connected to the positive pole of the power supply through the reset input pull-up resistor; one output end of the reset isolation optocoupler is connected to the positive pole of the power supply through the reset output pull-up resistor, and the other output end of the reset isolation optocoupler directly outputs the final reset signal (Meter_Reset1 or Meter_Reset2) and is connected to the electric energy meter; the reason for outputting two reset signals is to reset the metering module and the control module in the electric energy meter respectively. When the controller module outputs a reset signal P01 of low level, the primary side of the optocoupler is turned on, and the secondary side of the optocoupler is turned on at the same time. At this time, the Meter_Reset1 signal is pulled up to the power signal (high level) and output to the electric energy meter.
[0042] like Figure 3 The method flow chart of the method of the present invention is shown as follows: the detection method of the device for detecting the data interaction process between the prepaid radio frequency card and the electric energy meter provided by the present invention comprises the following steps:
[0043] S1. The host computer is connected to the RFID card reader through the communication bus and inputs the test data; the RFID card is located on one side of the electric energy meter, and the host computer is connected to the RFID card reader through the serial port; the RFID card is within 5CM to the left of the card reading position of the electric energy meter, and the electric energy meter reads and writes the RFID card state controlled by the switch, and the host computer and the electric energy meter can read and write the RFID card in order;
[0044] S2. The host computer communicates with the controller module through the data communication module, and controls the controller module to generate a reset signal for the energy meter through the reset signal generating module;
[0045] S3. Swipe the radio frequency card on the energy meter, and the controller module generates an energy meter reset signal through the reset signal generating module and controls the energy meter to reset;
[0046] S4. After the RFID card is swiped, the host computer obtains and records the internal data of the electric energy meter through the communication bus;
[0047] S5. The RFID card reader swipes the RFID card and obtains the data after the RFID card is swiped on the energy meter, and uploads the data to the host computer through the communication bus. The host computer records, analyzes, and determines the rationality of the uploaded data;
[0048] S6. The host computer changes the test data and repeats steps S1 to S5 until the preset number of times is reached;
[0049] S7. The host computer detects the data interaction process between the prepaid radio frequency card and the electric energy meter based on the test data recorded in the above steps, the data inside the electric energy meter, and the data after the radio frequency card is swiped.
Claims
1. A device for detecting the data interaction process between a prepaid radio frequency card and an electric energy meter, characterized in that It includes a controller module, a data communication module, a host computer, a radio frequency card reader and a reset signal generating module; the data communication module and the reset signal generating module are connected to the controller module, the host computer is simultaneously connected to the data communication module and the electric energy meter, the radio frequency card reader is connected to the host computer, and the reset signal generating module is connected to the electric energy meter; the controller module is connected to and communicates with the host computer through the data communication module; the host computer is connected to and communicates with the radio frequency card reader through a communication bus, and at the same time, the host computer is connected to and communicates with the electric energy meter through the communication bus; the controller module generates a reset signal through the reset signal generating module and resets the electric energy meter; The data communication module includes an isolation circuit and a level conversion circuit; the isolation circuit and the level conversion circuit are connected in series; the communication signal output by the controller module is electrically isolated by the isolation circuit, and then converted into a communication level signal by the level conversion circuit, connected to the host computer and communicates with the host computer; the isolation circuit is an isolation circuit composed of an isolation chip of model ADUM5241; the level conversion circuit is a circuit composed of a power level conversion chip of model MAX232; the reset signal generating module includes several identical reset signal generating circuits; the reset signal generating circuit includes a reset input pull-up resistor, a reset isolation optocoupler and a reset output pull-up resistor; one reset signal output by the controller module is connected to one input end of the reset isolation optocoupler, and the other input end of the reset isolation optocoupler is connected to the positive pole of the power supply through the reset input pull-up resistor; one output end of the reset isolation optocoupler is connected to the positive pole of the power supply through the reset output pull-up resistor, and the other output end of the reset isolation optocoupler directly outputs the final reset signal and is connected to the electric energy meter; The detection method of the prepaid radio frequency card and electric energy meter data interaction process detection device comprises the following steps: S1. The host computer is connected to the RFID card reader through the communication bus and inputs the test data; S2. The host computer communicates with the controller module through the data communication module, and controls the controller module to generate a reset signal for the energy meter through the reset signal generating module; S3. Swipe the radio frequency card on the energy meter, and the controller module generates an energy meter reset signal through the reset signal generating module and controls the energy meter to reset; S4. After the RFID card is swiped, the host computer obtains and records the internal data of the electric energy meter through the communication bus; S5. The RFID card reader swipes the RFID card and obtains the data of the RFID card after the RFID card is swiped at the energy meter, and uploads the data to the host computer through the communication bus, and the host computer records the uploaded data; S6. The host computer changes the test data and repeats steps S1 to S5 until the preset number of times is reached; S7. The host computer detects the data interaction process between the prepaid radio frequency card and the electric energy meter based on the test data recorded in the above steps, the data inside the electric energy meter, and the data after the radio frequency card is swiped.
2. The device for detecting the data interaction process between the prepaid radio frequency card and the electric energy meter according to claim 1 is characterized in that The host computer is connected to the radio frequency card reader through a communication bus and performs data communication. Specifically, the host computer is connected to the radio frequency card reader through a CAN bus, an RS485 bus or a wireless communication bus and performs data communication.
3. The device for detecting the data interaction process between the prepaid radio frequency card and the electric energy meter according to claim 1 is characterized in that The host computer is connected to the electric energy meter via a communication bus and performs data communication. Specifically, the host computer is connected to the electric energy meter via a CAN bus, an RS485 bus or a wireless communication bus and performs data communication.
Citation Information
Patent Citations
A half automatic checkout device for detecting bimodulus takes accuse electric energy meter expense accuse function
CN204904449U
Single -phase electric energy meter calibrating installation and single -phase electric energy meter credible test platform that resets
CN205067714U
Prepayment radio frequency card and electric energy meter data interaction process detection device
CN208954124U