CN112185093B - Meter reading method, equipment and device for automatic framing - Google Patents

Meter reading method, equipment and device for automatic framing Download PDF

Info

Publication number
CN112185093B
CN112185093B CN202011051257.1A CN202011051257A CN112185093B CN 112185093 B CN112185093 B CN 112185093B CN 202011051257 A CN202011051257 A CN 202011051257A CN 112185093 B CN112185093 B CN 112185093B
Authority
CN
China
Prior art keywords
meter reading
command
instrument
remote server
meter
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011051257.1A
Other languages
Chinese (zh)
Other versions
CN112185093A (en
Inventor
毛祖宾
袁振宇
张振达
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Ake Technology Co ltd
Original Assignee
Guangdong Ake Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Ake Technology Co ltd filed Critical Guangdong Ake Technology Co ltd
Priority to CN202011051257.1A priority Critical patent/CN112185093B/en
Publication of CN112185093A publication Critical patent/CN112185093A/en
Application granted granted Critical
Publication of CN112185093B publication Critical patent/CN112185093B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C17/00Arrangements for transmitting signals characterised by the use of a wireless electrical link
    • G08C17/02Arrangements for transmitting signals characterised by the use of a wireless electrical link using a radio link
    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C19/00Electric signal transmission systems

Abstract

The application relates to a meter reading method, device and apparatus for automatic framing. The meter reading method for automatic framing comprises the following steps: receiving a data packet transmitted by a remote server; the data packet comprises instrument information, a command identifier, command parameters and an instrument address; searching the protocol library according to the instrument information to obtain a protocol group corresponding to the instrument information; acquiring a command template in the protocol group according to the command identifier; and processing the specific command template, the command parameters and the meter address, generating a control instruction and outputting the control instruction to the corresponding meter. By the method, the corresponding command can be automatically generated only by configuring necessary parameters, such as the instrument information, the command identifier, the command parameters and the instrument address in the data packet through the remote server. By the meter reading method, meter reading equipment can be directly applied to the meter reading fields of water, electricity, heat energy and the like. Under the condition of no need of recoding, meter reading action can still be realized by directly replacing the meter.

Description

Meter reading method, equipment and device for automatic framing
Technical Field
The application relates to the technical field of instruments and meters, in particular to a meter reading method, device and equipment capable of automatically framing.
Background
With the widespread use of instruments and meters, various different kinds of meters are installed in various building facilities for collecting data of usage meters, gas usage, and the like. For each instrument, meter reading equipment is generally adopted at present to extract data in the instrument.
In the implementation process, the inventor finds that at least the following problems exist in the conventional technology: the traditional meter reading method has low meter reading efficiency.
Disclosure of Invention
In view of the foregoing, it is desirable to provide an automatic framing meter reading method, apparatus and device capable of improving meter reading efficiency.
In order to achieve the above object, in one aspect, an embodiment of the present invention provides an automatic framing meter reading method, including the steps of:
receiving a data packet transmitted by a remote server; the data packet comprises instrument information, a command identifier, command parameters and an instrument address;
searching the protocol library according to the instrument information to obtain a protocol group corresponding to the instrument information;
acquiring a command template in the protocol group according to the command identifier;
and processing the specific command template, the command parameters and the meter address, generating a control instruction and outputting the control instruction to the corresponding meter.
In one embodiment, the method further comprises the steps of:
obtaining reply data transmitted by the instrument, and analyzing the reply data;
and transmitting an analysis result obtained by analysis to a remote server.
In one embodiment, the parsing result includes replying to parameters of the target location in the data;
the step of analyzing the reply data comprises the following steps:
obtaining a reply template of the control instruction;
and extracting parameters of the target position in the reply data according to the reply template.
On the one hand, the embodiment of the invention also provides an automatic framing meter reading method which is applied to a meter reading system, wherein the meter reading system comprises a remote server and meter reading equipment connected with the remote server; the method comprises the following steps:
the remote server acquires an input data packet; the data packet comprises instrument information, a command identifier, command parameters and an instrument address;
the meter reading equipment receives a data packet transmitted by a remote server;
the meter reading equipment searches the protocol library according to the instrument information to obtain a protocol group corresponding to the instrument information;
the meter reading equipment acquires a command template in the protocol group according to the command identifier;
the meter reading equipment processes the specific command template, the command parameters and the meter address, generates a control instruction and outputs the control instruction to the corresponding meter.
In one aspect, the embodiment of the invention also provides meter reading equipment for automatic framing, which comprises a controller and a plurality of downlink interfaces; each downlink serial port is connected with the controller and is used for connecting with the instrument;
the controller performs the steps of any of the methods described above.
In one embodiment, the system further comprises an uplink interface;
the controller is connected with the remote server through an uplink interface.
In one embodiment, the controller further comprises a power supply circuit connected to the controller. The power supply circuit comprises a voltage transformation circuit, a rectifying circuit and a voltage stabilizing circuit;
one end of the transformation circuit is used for being connected with 220V commercial power, and the other end of the transformation circuit is connected with one end of the rectification circuit; the other end of the rectifying circuit is connected with one end of the voltage stabilizing circuit; the other end of the voltage stabilizing circuit is connected with the controller.
In one aspect, an embodiment of the present invention provides an automatic framing meter reading device, including:
the receiving module is used for receiving the data packet transmitted by the remote server; the data packet comprises instrument information, a command identifier, command parameters and an instrument address;
the retrieval module is used for retrieving the protocol library according to the instrument information to obtain a protocol group corresponding to the instrument information;
the template acquisition module is used for acquiring a command template in the protocol group according to the command identifier;
and the processing module is used for processing the specific command template, the command parameters and the instrument address, generating a control instruction and outputting the control instruction to the corresponding instrument.
In one embodiment, the method further comprises:
the acquisition module is used for acquiring reply data transmitted by the instrument and analyzing the reply data;
and the transmission module is used for transmitting the analysis result obtained by analysis to the remote server.
In another aspect, an embodiment of the present invention further provides a computer readable storage medium having stored thereon a computer program, which when executed by a controller, implements the steps of any of the methods described above.
One of the above technical solutions has the following advantages and beneficial effects:
the meter reading method for automatic framing provided by the application comprises the following steps: receiving a data packet transmitted by a remote server; the data packet comprises instrument information, a command identifier, command parameters and an instrument address; searching the protocol library according to the instrument information to obtain a protocol group corresponding to the instrument information; acquiring a command template in the protocol group according to the command identifier; and processing the specific command template, the command parameters and the meter address, generating a control instruction and outputting the control instruction to the corresponding meter. By the method, the corresponding command can be automatically generated only by configuring necessary parameters, such as the instrument information, the command identifier, the command parameters and the instrument address in the data packet through the remote server. By the meter reading method, meter reading equipment can be directly applied to the meter reading fields of water, electricity, heat energy and the like. In conventional meter reading equipment, meter reading can only be performed on a single type of meter. If the type of the meter needs to be converted, that is, the type of the meter connected with the meter reading equipment is changed, the meter reading equipment is often required to be further encoded by a worker. If the meter reading method of automatic framing is adopted, meter reading action can still be realized by directly replacing the meter under the condition of no need of recoding. Furthermore, the meter reading equipment adopts the meter reading method of automatic framing, so that one meter reading equipment can perform simultaneous meter reading corresponding to various meters.
Drawings
The foregoing and other objects, features and advantages of the present application will be apparent from the more particular description of the preferred embodiments of the present application as illustrated in the accompanying drawings. Like reference numerals refer to like parts throughout the drawings, and the drawings are not intentionally drawn to scale on actual size or the like, emphasis instead being placed upon illustrating the subject matter of the present application.
FIG. 1 is a first schematic flow diagram of an automatic framing meter reading method in one embodiment;
FIG. 2 is a second schematic flow diagram of an automatic framing meter reading method in one embodiment;
FIG. 3 is a flowchart illustrating steps of parsing reply data according to one embodiment;
FIG. 4 is a third schematic flow diagram of an automatic framing meter reading method in one embodiment;
FIG. 5 is a first schematic structural diagram of an automatic framing meter reading device in one embodiment;
FIG. 6 is a second schematic structural diagram of an automatic framing meter reading device in one embodiment;
FIG. 7 is a second schematic structural diagram of an automatic framing meter reading device in one embodiment;
FIG. 8 is a block diagram of an automatic framing meter reading device in one embodiment.
Detailed Description
In order to facilitate an understanding of the present application, a more complete description of the present application will now be provided with reference to the relevant figures. Examples of the present application are given in the accompanying drawings. This application may, however, be embodied in many different forms and is not limited to the embodiments described herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein in the description of the application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application.
It is to be understood that in the following embodiments, "connected" is understood to mean "electrically connected", "communicatively connected", etc., if the connected circuits, modules, units, etc., have electrical or data transfer between them.
As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," and/or the like, specify the presence of stated features, integers, steps, operations, elements, components, or groups thereof, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, or groups thereof.
At present, the common instrument integration mode in China writes protocols into a system one by one through software codes in a hard coding mode, and then calls different protocols for communication through the system each time, so that each protocol integration needs to be added with a plurality of system codes and upgrade the system and software version numbers. The maintenance of the software code is extremely complex, and the time for integrating the protocol is long. The meter reading method for automatic framing can effectively solve the problems.
In one embodiment, as shown in fig. 1, there is provided an automatic framing meter reading method, including the steps of:
s110, receiving a data packet transmitted by a remote server; the data packet comprises instrument information, a command identifier, command parameters and an instrument address;
specifically, the data packets transmitted by the remote server may be received by any means known in the art. For example: the data packet transmitted by the remote server can be obtained through the Ethernet uplink interface. The data packet includes meter information, a command identification, command parameters, and a meter address. The meter information includes a type of meter; the command identifier is the identifier of different commands in the protocol library; the command parameters include various types of parameters, such as commands to control the valve, and the input parameters are "open or closed". The command to write a volume, the parameter is the "volume value". A command to write a specific parameter, such as the CT ratio of the meter, is a specific CT ratio value. S120, searching a protocol library according to the instrument information to obtain a protocol group corresponding to the instrument information;
specifically, any searching means in the field may be adopted to obtain a protocol group corresponding to the instrument information. The meter for each specific signal has a protocol group, which includes various commands such as a command for inquiring the data of the meter, a control command, a command for reading a certain parameter, and the like. It should be noted that, the step of obtaining the protocol group corresponding to the meter information is not performed at the remote server, so that a large amount of calculation is avoided at the remote server. In one specific example, step S120 may be run in a meter reading device.
S130, acquiring a command template in the protocol group according to the command identifier;
in particular, the command identifier may find a corresponding command template. It should be noted that, specific information needs to be filled in the command template to form a real instrument command, for example, the valve control command is "DB 05+instrument address+ 16 78 55 +valve status parameter+crc check+dd", and the valve status parameter "01" is filled in only the instrument address "01 02 03", and then the CRC check "A8 CF" is calculated, which forms a complete command "DB 05 05 0102 03 16 78 55 01A8CF DD". In one specific example, the step of S130 may be run in a meter reading device.
S140, processing the specific command template, the command parameters and the meter address, generating a control instruction and outputting the control instruction to the corresponding meter. In one specific example, the step of S140 may be run in a meter reading device.
Specifically, command parameters and meter addresses are filled into a specific command template, and control instructions are generated. The control instructions may include instructions to query parameters, instruct actions, and the like.
According to the meter reading method of the automatic framing, the corresponding command can be automatically generated only by configuring necessary parameters, such as the instrument information, the command identification, the command parameters and the instrument address in the data packet through the remote server. By the meter reading method, meter reading equipment can be directly applied to the meter reading fields of water, electricity, heat energy and the like. In conventional meter reading equipment, meter reading can only be performed on a single type of meter. If the type of the meter needs to be converted, that is, the type of the meter connected with the meter reading equipment is changed, the meter reading equipment is often required to be further encoded by a worker. If the meter reading method of automatic framing is adopted, meter reading action can still be realized by directly replacing the meter under the condition of no need of recoding. Furthermore, the meter reading equipment adopts the meter reading method of automatic framing, so that one meter reading equipment can perform simultaneous meter reading corresponding to various meters.
In one embodiment, as shown in fig. 2, there is provided an automatic framing meter reading method, including the steps of:
s210, receiving a data packet transmitted by a remote server; the data packet comprises instrument information, a command identifier, command parameters and an instrument address;
s220, searching the protocol library according to the instrument information to obtain a protocol group corresponding to the instrument information;
s230, acquiring a command template in the protocol group according to the command identifier;
s240, processing the specific command template, the command parameters and the meter address, generating a control instruction and outputting the control instruction to the corresponding meter.
The method also comprises the steps of:
s250, acquiring reply data transmitted by the instrument, and analyzing and processing the reply data;
specifically, the instrument receives the control instruction and executes the action of the control instruction, and returns reply data; and analyzing the reply data to obtain an analysis result.
And S260, transmitting the analysis result obtained by analysis to a remote server.
Specifically, the analysis result obtained by analysis is the data obtained by meter reading, and the analysis result is transmitted back to the remote server to complete the whole meter reading action.
In one embodiment, as shown in FIG. 3, the parsing result includes parameters of the target location in the reply data;
the step of analyzing the reply data comprises the following steps:
s310, obtaining a reply template of a control instruction;
s320, extracting parameters of the target position in the reply data according to the reply template.
Specifically, after the instrument executes the action according to the instruction, the returned data reply template corresponds to the instruction. The analysis result can be obtained only by extracting the parameters of the target position in the reply data. In one specific example, the data packets sent by the remote server are such "{" meter model ": "some electricity meter", "meter address": "01 02 03", "command number": "valve open command", "command parameter": "01" } "and these messages are sent to the meter by the above procedure to form a complete command" DB 05 05 0102 03 16 78 55 01A8CF DD ". The meter replies a reply similar to the reply of DB 05AC DD, the meter reading device can inquire about a reply module of the command, such as a reply module of DB 05 plus success mark (AA is successful) +DD, the reply is analyzed through a template, and then a software platform is replied with a result of { result }: "success" }. In another specific example, if a meter reading instruction is generated, a corresponding numerical value is analyzed after receiving the reply. For example, when "DB 05 0102 03 04DD" is received, there is "DB 05+four bytes of data (data is hexadecimal code) +dd", such a parsing template replies to the remote server "{" value ": "16909060"}".
In one embodiment, as shown in fig. 4, an automatic framing meter reading method is provided, and is applied to a meter reading system, wherein the meter reading system comprises a remote server and meter reading equipment connected with the remote server; the method comprises the following steps:
s410, the remote server acquires an input data packet; the data packet comprises instrument information, a command identifier, command parameters and an instrument address;
specifically, the remote server obtains an input data packet, which may be input through the terminal. The terminals may include computer terminals and mobile phone terminals. In particular, the terminal comprises an input device and a display; the display is used for displaying the set value of the input parameter. The display may include any plane, surface, or other means capable of causing the display of graphical or other visual information. Further, the display may include any type of projector that projects an image or visual information onto a flat or curved surface.
S420, the meter reading equipment receives a data packet transmitted by a remote server;
in particular, the meter reading device may receive the data packets by any means known in the art. For example: data transmission can be performed through an uplink interface.
S430, the meter reading equipment searches the protocol library according to the meter information to obtain a protocol group corresponding to the meter information;
specifically, the meter reading equipment searches the carried protocol library aiming at the instrument information to obtain a corresponding protocol group. It should be noted that, the protocol library may be stored in the meter reading device in advance, or may be issued by a remote server. Under the condition that the remote server issues the protocol library, the remote server only needs to issue once. Meanwhile, the protocol of the novel instrument can be updated regularly. It should be noted that the meter reading device may include a memory for storing the protocol library.
S440, the meter reading equipment acquires a command template in the protocol group according to the command identification;
s450, the meter reading equipment processes the specific command template, the command parameters and the meter address, generates a control instruction and outputs the control instruction to the corresponding meter.
According to the automatic framing meter reading method, the remote server and meter reading equipment are separated to carry out different steps. Specifically, the meter reading equipment executes complex steps such as searching, analyzing and the like, so that the concentration of calculation force in a remote server is avoided. The staff inputs instrument information, command identification, command parameters and instrument addresses to the remote server through the terminal, and meter reading equipment arranged at each instrument receives the data packet comprising the data and automatically generates a control instruction to output to the instrument. And the controller acquires an analysis result of the meter reply data to finish meter reading actions. The whole meter reading process does not need to enter the field, and the meter reading efficiency is high. Meanwhile, the meter reading equipment can meter a plurality of meters of different types, and the cost is further reduced.
It should be understood that, although the steps in the flowcharts of fig. 1-4 are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in fig. 1-4 may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor do the order in which the sub-steps or stages are performed necessarily occur sequentially, but may be performed alternately or alternately with at least a portion of the sub-steps or stages of other steps or steps.
In one embodiment, as shown in fig. 5, there is provided an automatic framing meter reading device, including a controller, and a plurality of downlink interfaces; each downlink serial port is connected with the controller and is used for connecting with the instrument;
the controller performs the steps of any of the methods described above.
The downlink interface is used for connecting the instrument to receive data on the instrument and transmitting an inquiry instruction of the controller. The downlink interface comprises any one or any combination of the following interfaces: an RS485 interface and an MBUS interface; and each RS485 interface and each MBUS interface are connected with the controller. The RS485 interface is an industrial personal computer interface, and a digital communication network using the RS485 interface can effectively transmit signals under a long-distance condition and an environment with large electronic noise. The M-Bus interface is an interface specially designed for a data Bus for transmitting information of a consumption measuring instrument and a counter, has strong load capacity, can realize transparent data transmission or conversion into a MODBUS protocol, and can easily complete the butt joint with field equipment.
Alternatively, the type of the controller is not limited, and may be set according to practical application, for example, may be a general-purpose processor including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), and the like; and may also be a Digital Signal Processor (DSP), application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc., so long as they are capable of receiving data from a remote server and transmitting corresponding control instructions. In one specific example, the controller includes an MCU chip.
The controller performs the steps of: receiving a data packet transmitted by a remote server; the data packet comprises instrument information, a command identifier, command parameters and an instrument address; searching the protocol library according to the instrument information to obtain a protocol group corresponding to the instrument information; acquiring a command template in the protocol group according to the command identifier; and processing the specific command template, the command parameters and the meter address, generating a control instruction and outputting the control instruction to the corresponding meter.
The control also performs the steps of: obtaining reply data transmitted by the instrument, and analyzing the reply data; and transmitting an analysis result obtained by analysis to a remote server.
The controller also performs the steps of: obtaining a reply template of the control instruction;
and extracting parameters of the target position in the reply data according to the reply template.
The meter reading equipment can be connected with a plurality of meters through being connected with a plurality of downlink serial ports, and the types of the meters are not limited. Meanwhile, the controller can perform protocol inquiry on the storage device stored with the protocol library. Based on the above, under the condition of using the meter reading equipment, the communication protocol can be queried through the instruction transmitted by the remote server, and the data transmission of the meter is realized based on the communication protocol, so that the meter reading action of different meters is realized. In the traditional meter reading equipment, an automatic meter reading device can only read a certain specific meter, for example, a water meter and an ammeter, if the type of meter reading needs to be changed, a programming and writing fixed code mode is needed on site to achieve the purposes of simultaneously reading meters with different types, different numbers and different addresses, a great deal of manpower is wasted, meanwhile, the efficiency is low, and errors are easy to occur. Compared with the prior art, only a single type of instrument can be subjected to meter reading, the meter reading equipment provided by the application can be remotely operated, and the meter reading efficiency is high. Meanwhile, the meter reading equipment can meter a plurality of meters of different types, and the cost is further reduced.
In one embodiment, as shown in fig. 6, the device further comprises an uplink interface;
the controller is connected with the remote server through an uplink interface.
Specifically, the uplink interface is an interface for outputting ethernet, and may also be an interface for uploading data.
In one embodiment, as shown in fig. 7, there is provided an automatic framing meter reading device, including a controller, and a plurality of downlink interfaces; each downlink serial port is connected with the controller and is used for connecting with the instrument;
the controller performs the steps of any of the methods described above.
The system also comprises an uplink interface;
the controller is connected with the remote server through an uplink interface.
The power supply circuit is connected with the controller. The power supply circuit comprises a voltage transformation circuit, a rectifying circuit and a voltage stabilizing circuit;
one end of the transformation circuit is used for being connected with 220V commercial power, and the other end of the transformation circuit is connected with one end of the rectification circuit; the other end of the rectifying circuit is connected with one end of the voltage stabilizing circuit; the other end of the voltage stabilizing circuit is connected with the controller.
Specifically, the voltage transformation circuit may be any circuit in the art for converting 220V of mains voltage into 24V. The rectification circuit is used for converting alternating current into direct current. The voltage stabilizing circuit is any power supply circuit in the field, and can still keep the output voltage basically unchanged when the input power grid voltage fluctuates or the load changes. The power supply circuit also comprises a standby power supply circuit; the standby power circuit is connected with the controller. Specifically, the standby power supply circuit is used for supplying power to components such as a controller when the commercial power is unstable or the commercial power is off. In one embodiment, the backup power circuit includes a battery; the storage battery is connected with the controller and is used for being connected with 220V commercial power. Specifically, in daily work, a storage battery of the standby power supply circuit is connected with 220V commercial power to store electric energy. In the process that the mains supply is in the power failure, the storage battery releases stored electric energy to supply power for components such as a controller. Further, the system can also comprise an electric energy management module, wherein the electric energy management module is used for connecting a storage battery. In one embodiment, the backup power circuit further comprises a solar cell; the solar cell is connected with the controller. Specifically, the solar battery is used as a standby power supply to supply power for the devices such as the controller, the uplink and downlink interfaces, the storage device and the like. Energy saving, environmental protection and good sustainability.
In one embodiment, as shown in fig. 8, an automatic framing meter reading device includes:
the receiving module is used for receiving the data packet transmitted by the remote server; the data packet comprises instrument information, a command identifier, command parameters and an instrument address;
the retrieval module is used for retrieving the protocol library according to the instrument information to obtain a protocol group corresponding to the instrument information;
the template acquisition module is used for acquiring a command template in the protocol group according to the command identifier;
and the processing module is used for processing the specific command template, the command parameters and the instrument address, generating a control instruction and outputting the control instruction to the corresponding instrument.
In a specific embodiment, the meter reading device for automatic framing further comprises:
the acquisition module is used for acquiring reply data transmitted by the instrument and analyzing the reply data;
and the transmission module is used for transmitting the analysis result obtained by analysis to the remote server.
In a specific embodiment, the acquisition module includes:
the reply module acquisition module is used for acquiring a reply template of the control instruction;
and the extraction module is used for extracting the parameters of the target position in the reply data according to the reply template.
For specific limitations of the meter reading device for automatic framing, reference may be made to the above limitation of the meter reading method for automatic framing, and no further description is given here. The above-mentioned modules in the meter reading device for automatic framing can be implemented in whole or in part by software, hardware and a combination thereof. The above modules may be embedded in hardware or independent of a controller in a computer device, or may be stored in software in a memory in the computer device, so that the controller may call and execute operations corresponding to the above modules.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a controller, performs the steps of:
receiving a data packet transmitted by a remote server; the data packet comprises instrument information, a command identifier, command parameters and an instrument address;
searching the protocol library according to the instrument information to obtain a protocol group corresponding to the instrument information;
acquiring a command template in the protocol group according to the command identifier;
and processing the specific command template, the command parameters and the meter address, generating a control instruction and outputting the control instruction to the corresponding meter.
In one embodiment, the step of parsing the reply data is performed by the controller further implementing the steps of:
obtaining a reply template of the control instruction;
and extracting parameters of the target position in the reply data according to the reply template.
Those skilled in the art will appreciate that implementing all or part of the above-described methods may be accomplished by hardware associated with control instructions as instructions by a computer program stored on a non-transitory computer-readable storage medium, which when executed, may comprise the steps of the above-described methods. Any reference to memory, storage, database, or other medium used in the various embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus dynamic random access memory (RDRAM), and interface dynamic random access memory (DRDRAM).
In the description of the present specification, reference to the terms "some embodiments," "other embodiments," "desired embodiments," and the like, means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, schematic descriptions of the above terms do not necessarily refer to the same embodiment or example.
The technical features of the above-described embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above-described embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples illustrate only a few embodiments of the invention, which are described in detail and are not to be construed as limiting the scope of the invention. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the invention, which are all within the scope of the invention. Accordingly, the scope of protection of the present invention is to be determined by the appended claims.

Claims (7)

1. An automatic framing meter reading method is characterized by comprising the following steps:
receiving a data packet transmitted by a remote server; the data packet comprises instrument information, a command identifier, command parameters and an instrument address;
searching a protocol library according to the instrument information to obtain a protocol group corresponding to the instrument information;
acquiring a command template in the protocol group according to the command identifier;
processing the command template, the command parameters and the instrument address, generating a control instruction and outputting the control instruction to a corresponding instrument;
obtaining reply data transmitted by the instrument, and analyzing the reply data;
transmitting an analysis result obtained by analysis to the remote server, wherein the analysis result comprises parameters of a target position in reply data; the step of analyzing the reply data comprises the following steps: obtaining a reply template of the control instruction; and extracting parameters of the target position in the reply data according to the reply template.
2. The automatic framing meter reading method is characterized by being applied to a meter reading system, wherein the meter reading system comprises a remote server and meter reading equipment connected with the remote server; the method comprises the steps of:
the remote server acquires an input data packet; the data packet comprises instrument information, a command identifier, command parameters and an instrument address;
the meter reading equipment receives a data packet transmitted by a remote server;
the meter reading equipment searches a protocol library according to the instrument information to obtain a protocol group corresponding to the instrument information;
the meter reading equipment acquires a command template in the protocol group according to the command identifier;
the meter reading equipment processes the command template, the command parameters and the instrument address, generates a control instruction and outputs the control instruction to the corresponding instrument;
the meter reading equipment acquires the reply data transmitted by the meter and analyzes the reply data;
the meter reading equipment transmits an analysis result obtained by analysis to the remote server, wherein the analysis result comprises parameters of a target position in reply data; the step of analyzing the reply data comprises the following steps: obtaining a reply template of the control instruction; and extracting parameters of the target position in the reply data according to the reply template.
3. An automatic framing meter reading device is characterized by comprising a controller and a plurality of downlink interfaces; each downlink interface is connected with the controller and is used for connecting with an instrument;
the controller performs the steps of the method of claim 1.
4. The automatic framing meter reading device of claim 3, further comprising an upstream interface;
the controller is connected with the remote server through the uplink interface.
5. A meter reading apparatus according to claim 3, further comprising a power supply circuit connected to the controller; the power supply circuit comprises a transformation circuit, a rectifying circuit and a voltage stabilizing circuit;
one end of the transformation circuit is used for being connected with 220V mains supply, and the other end of the transformation circuit is connected with one end of the rectification circuit; the other end of the rectifying circuit is connected with one end of the voltage stabilizing circuit; the other end of the voltage stabilizing circuit is connected with the controller.
6. An automatic framing meter reading device, comprising:
the receiving module is used for receiving the data packet transmitted by the remote server; the data packet comprises instrument information, a command identifier, command parameters and an instrument address;
the retrieval module is used for retrieving the protocol library according to the instrument information to obtain a protocol group corresponding to the instrument information;
the template acquisition module is used for acquiring a command template in the protocol group according to the command identifier;
the processing module is used for processing the command template, the command parameters and the instrument address, generating a control instruction and outputting the control instruction to a corresponding instrument;
the acquisition module is used for acquiring the reply data transmitted by the instrument and analyzing the reply data;
and the transmission module is used for transmitting the analysis result obtained by analysis to the remote server.
7. A computer readable storage medium having stored thereon a computer program, characterized in that the computer program when executed by a controller realizes the steps of the method of claim 1.
CN202011051257.1A 2020-09-29 2020-09-29 Meter reading method, equipment and device for automatic framing Active CN112185093B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011051257.1A CN112185093B (en) 2020-09-29 2020-09-29 Meter reading method, equipment and device for automatic framing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011051257.1A CN112185093B (en) 2020-09-29 2020-09-29 Meter reading method, equipment and device for automatic framing

Publications (2)

Publication Number Publication Date
CN112185093A CN112185093A (en) 2021-01-05
CN112185093B true CN112185093B (en) 2024-03-22

Family

ID=73946979

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011051257.1A Active CN112185093B (en) 2020-09-29 2020-09-29 Meter reading method, equipment and device for automatic framing

Country Status (1)

Country Link
CN (1) CN112185093B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101277299A (en) * 2008-05-13 2008-10-01 珠海中慧微电子有限公司 Protocol conversion system and protocol conversion process
CN102014118A (en) * 2010-08-13 2011-04-13 深圳市科陆电子科技股份有限公司 Method for reading multiple electric energy meters generally
CN102610085A (en) * 2012-03-27 2012-07-25 安徽南瑞继远软件有限公司 Infrared meter reading method compatible with multi protocols
CN106373279A (en) * 2016-08-28 2017-02-01 宁波金泉智能水表有限公司 Communication method for intelligent IC card water meter for multi-meter centralized reading system
CN106652415A (en) * 2016-12-30 2017-05-10 武汉盛帆智能科技有限公司 Processing method and device of protocol for concentrated reading of multiple meters
CN108064037A (en) * 2017-12-14 2018-05-22 北京中润远华科技有限公司 A kind of command analysis method and device based on near-field communication

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100452508B1 (en) * 2001-09-25 2004-10-12 엘지전자 주식회사 remote detecting equipment using CO-LINE and controlling method therefore

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101277299A (en) * 2008-05-13 2008-10-01 珠海中慧微电子有限公司 Protocol conversion system and protocol conversion process
CN102014118A (en) * 2010-08-13 2011-04-13 深圳市科陆电子科技股份有限公司 Method for reading multiple electric energy meters generally
CN102610085A (en) * 2012-03-27 2012-07-25 安徽南瑞继远软件有限公司 Infrared meter reading method compatible with multi protocols
CN106373279A (en) * 2016-08-28 2017-02-01 宁波金泉智能水表有限公司 Communication method for intelligent IC card water meter for multi-meter centralized reading system
CN106652415A (en) * 2016-12-30 2017-05-10 武汉盛帆智能科技有限公司 Processing method and device of protocol for concentrated reading of multiple meters
CN108064037A (en) * 2017-12-14 2018-05-22 北京中润远华科技有限公司 A kind of command analysis method and device based on near-field communication

Also Published As

Publication number Publication date
CN112185093A (en) 2021-01-05

Similar Documents

Publication Publication Date Title
CN109272733B (en) Multi-terminal multi-mode Internet of things communication terminal supporting multi-meter combined reading and meter reading method thereof
CN202794497U (en) On-site comprehensive detection equipment for electric energy information acquisition terminal
CN103792928A (en) Industrial field data collecting and analyzing system based on Modbus
CN104217566A (en) Intelligent meter searching method and system for type II collector
CN104281678A (en) Intelligent moonlet state monitoring system
CN204028668U (en) A kind of geothermal well Long-Distance Monitoring System About
CN115623358A (en) Meter reading method, meter reading device and meter reading system
CN112185093B (en) Meter reading method, equipment and device for automatic framing
CN101324989A (en) Automatic recognition technique of electrical energy meter in centralized meter reading system
CN206657474U (en) A kind of long-distance meter-reading system based on Internet of Things
CN111131344A (en) Method and system for transmitting and storing energy internet cloud platform data
CN110992671B (en) Ammeter address forwarding method, device and system and electronic equipment
CN107132391A (en) A kind of intelligent electric meter
CN210954687U (en) Oil and natural gas drilling and production platform monitoring system and wireless data acquisition box thereof
CN203242148U (en) Remote meter reading control system based on GPRS (General Packet Radio Service)
CN207472457U (en) Wireless remote transmission pressure sensor based on NB-IOT
CN201886612U (en) Double-connector concentrated data copying and forwarding component for concentrated data copying system
CN209746778U (en) M-Bus data acquisition module based on LoRaWan
CN206002223U (en) Network distribution transformer temperature monitoring system
CN105553625A (en) Remote channel message compression method and system for electricity consumption collection system
CN212782281U (en) Meter reading equipment and meter reading system
CN114944052B (en) Automatic test method and system for meter reading stability of electricity acquisition terminal
CN207439496U (en) Liquid level wireless sensor based on NB-IoT
CN211207123U (en) Measurement and control device based on narrow-band Internet of things NBIOT technology
CN207867528U (en) A kind of automatic recognition system for old-fashioned water meter

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant