RFID water meter verification and data writing device and method
Technical Field
The invention relates to the field of water meter production, in particular to a device and a method for verifying and writing data of an RFID water meter.
Background
According to the national regulation, the water meters used for trade settlement (that is, used for calculating the water consumption to collect the water fee) in the city range must be forcibly verified according to the regulation, and can be put into use after being qualified. With the shortage of water resources, the problem of accurate metering of tap water is more and more emphasized.
At present, some manufacturers read the reading of the water meter by using a machine vision technology through a fixed camera. The flow error of each meter is recorded by a paper recording card after the verification is finished, and the data is generally filed in a meter factory. Some water meter manufacturers can use two-dimensional codes or bar codes to mark water meter flow error information, but paper bar codes are extremely easy to damage in the environment close to water, and inquiry equipment needs to be networked in the whole process. Thus, whether the water plant or the ordinary user wants to check the flow error of the water meter is very difficult.
RFID (radio frequency identification) is a technology that uses radio frequency signals to achieve contactless information transfer by spatial coupling (alternating magnetic or electromagnetic fields) and achieves identification purposes by the transferred information. The method is widely applied to the technology of the Internet of things, and the user end is extended and expanded to any article for information exchange and communication.
Disclosure of Invention
Aiming at the defects of the prior art, the invention provides the RFID water meter verification and data writing device and the writing method, which can realize the function of writing data into the RFID label arranged in the water meter while detecting the flow error, so that the flow error can be inquired off-line at any time in the whole life cycle of the RFID water meter.
The purpose of the invention is realized by the following technology:
an RFID water meter verification and data writing device is characterized by comprising an RFID water meter, a water meter verification platform, a detection mechanism, a mobile device and an industrial personal computer;
the RFID water meter consists of a common water meter and a built-in RFID label;
the water meter calibration platform comprises a water supply device, pipelines, a guide rail bracket, an operation platform and pipe joints, wherein the guide rail bracket is arranged on the operation platform, the RFID water meters and the pipe joints are arranged on the guide rail bracket, the pipe joints and the RFID water meters are connected into the pipelines in a cross-serial connection mode, and two ends of the pipelines are also communicated with the water supply device;
the moving device is erected on the operating platform and comprises supports, a guide rod, a slide rail and a motor, the two supports are respectively fixed at two ends of the operating platform, two ends of the guide rod and two ends of the slide rail are respectively erected on the supports, and the motor can slide along the slide rail;
the detection mechanism comprises a table body, a camera and an RFID read-write device, the table body is sleeved on the guide rod, and the camera and the RFID read-write device are both arranged on the lower surface of the table body;
the industrial personal computer is used for controlling the rotation of the motor, further driving the camera and the RFID read-write device to move, and simultaneously controlling the RFID read-write device to read the information of the RFID water meter and control the camera to take a picture and perform corresponding data processing.
Preferably, two ends of the pipe joint are respectively fixedly provided with a C-shaped shielding case.
Preferably, the water meter verification platform further comprises sleeves located at two ends of the connector of the plurality of RFID water meters and the pipe joints, the sleeves are in threaded connection with the pipeline, and the pipe joints and the RFID water meters are pressed tightly by adjusting the thread sum distance.
Preferably, the detection mechanism further comprises a light source, the camera is arranged on one side of the lower surface of the detection mechanism, and the light source is arranged around the camera.
Preferably, the detection mechanism further comprises a telescopic rod, the RFID reading and writing device is connected to the table body through the telescopic rod, and the length of the telescopic rod can be adjusted to achieve the optimal reading and writing position of the RFID reading and writing device.
Preferably, the upper surface of the sliding rail of the moving device is provided with sawteeth, the base of the motor is fixed on the table body of the detection mechanism, and the detection mechanism is driven to move along the sliding rail through the engagement of the motor and the sliding rail.
An RFID water meter verification and data writing method, which is realized based on the device of any one of the claims, and comprises the following steps:
s1: the RFID water meter and the pipe joint to be detected are crosswise connected into a pipeline and are tightly pressed by a sleeve, the water supply device is opened to inject water into the pipeline and the RFID water meter until the air in the pipeline and the RFID water meter is emptied, and the industrial personal computer controls the detection structure to stay right above the initial positions of the RFID water meters;
s2: the RFID reading and writing device reads the unique identification code of the RFID water meter right below, and the industrial personal computer records the unique identification code and the uploading sequence thereof; simultaneously, the camera shoots dial plate images of the RFID water meter right below and transmits the dial plate images back to the industrial personal computer, and the industrial personal computer binds the first round images, the unique identification codes and the uploading sequence information of the RFID water meter;
s3: the industrial personal computer sends a forward movement instruction to move the detection structure to the position above the next RFID water meter;
s4: repeating S2 and S3 until all the RFID water meters are read, and stopping the detection structure right above the last positions of the RFID water meters;
s5: the water supply device injects water into the RFID water meter according to the verification standard with the specified pressure and the specified volume until the water injection is finished;
s6: the camera shoots the RFID water meter image right below again and transmits the image back to the industrial personal computer; the industrial personal computer finds information corresponding to the RFID water meter according to the uploading sequence and binds the second round of images, a first flow error is obtained through processing the first round of images and the second round of images and calculating the actual water injection volume, and the industrial personal computer controls the RFID reading and writing device to write the first flow error into the corresponding RFID water meter;
s7: the industrial personal computer sends a backward movement instruction to move the detection structure above the last RFID water meter;
s8: repeating S6 and S7 until all the RFID water meters finish writing, and at the moment, the detection structure stays right above the initial positions of the RFID water meters;
s9: and when other indexes of the RFID water meter need to be detected, the water supply device injects water into the RFID water meter again according to corresponding detection standards and specified pressure and volume. After the water injection is finished, the camera shoots and transmits a third round of image back to the industrial personal computer; the industrial personal computer finds information corresponding to the RFID water meter according to the uploading sequence and binds the third round of images, and a second flow error is obtained through processing the second round of images and the third round of images and calculating the actual water injection volume; the industrial personal computer controls the RFID read-write device to write a second flow error into the corresponding RFID water meter; then the industrial personal computer sends a forward movement instruction to move the detection structure to the position above the next RFID water meter; and repeating the process until all the RFID water meters finish writing, and stopping the detection structure right above the end positions of the RFID water meters at the moment.
S10: and repeating the steps until all the indexes to be detected are completely detected, and resetting the detection mechanism.
The invention has the beneficial effects that:
the invention applies the RFID technology to the water meter verification process, applies the radio frequency identification and machine vision technology, writes error data obtained by calculating the flow value read by the camera into the RFID label bound with the water meter, only uses one camera to obtain dial images of a plurality of RFID water meters through movement, and uses the RFID read-write device to write the flow error information of each water meter into the RFID water meters, thereby realizing the function of off-line inquiring the flow error at any time in the whole life cycle of the water meters.
Drawings
Fig. 1 is a schematic overall structure diagram of an RFID water meter verification and data writing device;
FIG. 2 is a front view of the RFID water meter verification and data writing apparatus;
FIG. 3 is a schematic diagram of a detection structure;
FIG. 4 is a schematic view of a mobile device;
FIG. 5 is a schematic view of a shield nozzle connection;
FIG. 6 is a flow chart of RFID water meter verification and data write-in;
in the figure, 1 is an RFID water meter, 2: water meter verification platform, 3: detection mechanism, 4: moving device, 5: industrial personal computer, 2-1: water supply device, 2-2: pipeline, 2-3: guide rail bracket, 2-4: sleeve, 2-5: operation panel, 2-6: pipe joint, 3-1: table body, 3-2: camera, 3-3: light source, 3-4: telescopic rod, 3-5: RFID read-write device, 4-1: support, 4-2: guide bar, 4-3: slide rail, 4-4: an electric motor.
Detailed Description
The present invention will be described in detail below with reference to the accompanying drawings and preferred embodiments, and the objects and effects of the present invention will become more apparent, and the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1-5, the RFID water meter verification and data writing device of the present invention includes an RFID water meter 1, a water meter verification platform 2, a detection mechanism 3, a mobile device 4, and an industrial personal computer 5;
the RFID water meter 1 consists of a common water meter and a built-in RFID label, and the RFID water meter is written with a unique identification code in the production process before being verified.
The water meter verification platform 2 has the function that a certain volume of water flows through a plurality of RFID water meters to be verified under given pressure, and comprises a water supply device 2-1, a pipeline 2-2, a guide rail bracket 2-3, an operation platform 2-5 and a pipe joint 2-6, wherein the guide rail bracket 2-3 is arranged on the operation platform 2-5, the pipe joint 2-6 and the RFID water meter 1 are arranged on the guide rail bracket 2-3, the pipe joints 2-6 and the RFID water meters 1 are connected into the pipeline 2-2 in a cross-serial mode, and two ends of the pipeline 2-2 are communicated with the water supply device 2-1.
The function of the detection mechanism 3 is: the RFID water meter reading detection device comprises a table body 3-1, a camera 3-2 and an RFID read-write device 3-5, wherein the table body 3-1 is sleeved on a guide rod 4-2, and the camera 3-2 and the RFID read-write device 3-5 are both arranged on the lower surface of the table body 3-1.
The functions of the mobile device are: the power device used as the detection structure comprises a moving detection structure, wherein the moving detection structure is erected on an operation table 2-5 and comprises a support 4-1, a guide rod 4-2, a slide rail 4-3 and a motor 4-4, the two supports 4-1 are respectively fixed at two ends of the operation table 2-5, two ends of the guide rod 4-2 and two ends of the slide rail 4-3 are respectively erected on the supports 4-1, sawteeth are arranged on the upper surface of the slide rail 4-3, a base of the motor 4-4 is fixed on a table body 3-1 of the detection mechanism 3, and the detection mechanism 3 is driven to move along the slide rail 4-3 through the meshing of the motor 4-4 and the slide rail 4-3.
The industrial personal computer 5 is used for controlling the rotation of the motor 4-4, further driving the camera 3-2 and the RFID read-write device 3-5 to move, simultaneously controlling the RFID read-write device 3-5 to read the unique identification code of the RFID water meter 1 and controlling the camera 3-2 to take a picture, and performing corresponding data processing.
In order to adapt to water meters with different sizes and ensure pipeline sealing, sleeves 2-4 are arranged at two tail ends of a plurality of connectors of the RFID water meters 1 and pipe joints 2-6, the sleeves 2-4 are in threaded connection with the pipelines 2-2, and the connectors of the pipe joints 2-6 and the RFID water meters 1 are compressed by adjusting the thread sum distance; the pipeline 2-2 is connected with the sleeve and then 2-4 is communicated with the water supply device 2-1 through the bottom surface of the operation platform.
In order to improve the fault-tolerant capability of the RFID read-write device and prevent the information of two RFID water meters from being read at one position, a C-shaped shielding cover is fixedly arranged at each of two ends of the pipe joints 2-6.
In order to make the shooting effect of the camera good, the detection mechanism 3 further comprises a light source 3-3, the camera 3-2 is arranged on one side of the lower surface of the detection mechanism 3, and the light source 3-3 is arranged around the camera 3-2.
In order to enable the position of the RFID reading and writing device to be adjustable and achieve the optimal reading and writing position when the identification code is read, the detection mechanism 3 further comprises a telescopic rod 3-4, and the RFID reading and writing device 3-5 is connected to the table body 3-1 through the telescopic rod 3-4.
As shown in fig. 6, a method for verifying and writing data into an RFID water meter includes the following steps:
s1: the RFID water meter 1 to be detected and the pipe joint 2-6 are connected into the pipeline 2-2 in a crossed mode and are compressed by the sleeve 2-4, the water supply device 2-1 is opened to inject water into the pipeline 2-2 and the RFID water meter 1 until air in the pipeline 2-2 and the RFID water meter 1 is exhausted, and the industrial personal computer 5 controls the detection structure 3 to stay right above the initial positions of the RFID water meters 1;
s2: the RFID read-write device 3-5 reads the unique identification code of the RFID water meter 1 right below, and the industrial personal computer 5 records the unique identification code and the uploading sequence thereof; simultaneously, the camera 3-2 shoots dial plate images of the RFID water meter 1 right below and transmits the dial plate images back to the industrial personal computer 5, and the industrial personal computer 5 binds the first round images, the unique identification codes and uploading sequence information of the RFID water meter 1;
s3: the industrial personal computer 5 sends a forward movement instruction to move the detection structure 3 to the position above the next RFID water meter 1;
s4: repeating S2 and S3 until all the RFID water meters 1 are read, and stopping the detection structure 3 right above the last positions of the RFID water meters 1 at the moment;
s5: the water supply device 2-1 injects water into the RFID water meter 1 according to the verification standard with the specified pressure and the specified volume until the water injection is finished;
s6: the camera 3-2 shoots the RFID water meter image right below again and transmits the image back to the industrial personal computer 5; the industrial personal computer 5 finds information corresponding to the RFID water meter 1 according to the uploading sequence and binds the second round of images, a first flow error is obtained through processing the first round of images and the second round of images and operation of actual water injection volume, and the industrial personal computer 5 controls the RFID read-write devices 3-5 to write the first flow error into the corresponding RFID water meter 1;
s7: the industrial personal computer 5 sends a backward movement instruction to move the detection structure 3 above the previous RFID water meter 1;
s8: repeating S6 and S7 until all the RFID water meters 1 are completely written, and at the moment, the detection structure 3 stays right above the initial positions of the RFID water meters 1;
s9: when other indexes of the RFID water meter 1 need to be checked, the water supply device 2-1 injects water into the RFID water meter 1 again according to corresponding checking standards and with specified pressure and specified volume. After the water injection is finished, the camera 3-2 shoots and transmits a third round of image back to the industrial personal computer 5; the industrial personal computer 5 finds information corresponding to the RFID water meter 1 according to the uploading sequence, binds the third round of images, and obtains a second flow error through processing the second round of images and the third round of images and calculating the actual water injection volume; the industrial personal computer 5 controls the RFID read-write devices 3-5 to write the second flow error into the corresponding RFID water meter 1; then the industrial personal computer 5 sends a forward movement instruction to move the detection structure 3 to the position above the next RFID water meter 1; the above process is repeated until all the RFID water meters 1 are completely written, and at this time, the detection structure 3 stays right above the last positions of the RFID water meters 1.
S10: and repeating the steps until all the indexes to be detected are completely detected, and resetting the detection mechanism.
It will be understood by those skilled in the art that the foregoing is only a preferred embodiment of the present invention, and is not intended to limit the invention, and although the invention has been described in detail with reference to the foregoing examples, it will be apparent to those skilled in the art that various changes in the form and details of the embodiments may be made and equivalents may be substituted for elements thereof. All modifications, equivalents and the like which come within the spirit and principle of the invention are intended to be included within the scope of the invention.