CN112185093A - Automatic framing meter reading method, equipment and device - Google Patents

Automatic framing meter reading method, equipment and device Download PDF

Info

Publication number
CN112185093A
CN112185093A CN202011051257.1A CN202011051257A CN112185093A CN 112185093 A CN112185093 A CN 112185093A CN 202011051257 A CN202011051257 A CN 202011051257A CN 112185093 A CN112185093 A CN 112185093A
Authority
CN
China
Prior art keywords
meter reading
command
meter
instrument
remote server
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.)
Granted
Application number
CN202011051257.1A
Other languages
Chinese (zh)
Other versions
CN112185093B (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

Images

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

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Arrangements For Transmission Of Measured Signals (AREA)
  • Selective Calling Equipment (AREA)

Abstract

The application relates to a meter reading method, equipment and a device for automatic framing. The meter reading method for automatically framing comprises the following steps: receiving a data packet transmitted by a remote server; the data packet comprises meter information, a command identifier, a command parameter and a meter address; retrieving the protocol library according to the instrument information to obtain a protocol group corresponding to the instrument information; acquiring a command template in a protocol group according to the command identifier; and 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. By the method, the corresponding command can be automatically generated only by configuring necessary parameters such as the meter information, the command identifier, the command parameter and the meter address in the data packet through the remote server. By the meter reading method, the meter reading equipment can be directly applied to the meter reading fields of water, electricity, heat energy and the like. Under the condition of not needing to recode, the meter reading action can still be realized by directly replacing the meter.

Description

Automatic framing meter reading method, equipment and device
Technical Field
The application relates to the technical field of instruments and meters, in particular to a meter reading method, meter reading equipment and a meter reading device capable of automatically framing.
Background
With the widespread use of instruments and meters, various different types of instruments are installed in various building facilities for collecting data such as consumption meters and gas consumption. For each meter, meter reading equipment is generally adopted to extract data in the meter at present.
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 above, it is necessary to provide a meter reading method, a meter reading device, and an apparatus for automatically framing, which can improve 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:
receiving a data packet transmitted by a remote server; the data packet comprises meter information, a command identifier, a command parameter and a meter address;
retrieving the protocol library according to the instrument information to obtain a protocol group corresponding to the instrument information;
acquiring a command template in a protocol group according to the command identifier;
and 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 following steps:
acquiring reply data transmitted by the instrument, and analyzing the reply data;
and transmitting the analysis result obtained by analysis to a remote server.
In one embodiment, the parsing result includes parameters of the target location in the reply data;
the step of analyzing the reply data comprises the following steps:
acquiring a reply template of a control instruction;
and extracting parameters of the target position in the reply data according to the reply template.
On one hand, the embodiment of the invention also provides a meter reading method for automatic framing, 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 meter information, a command identifier, a command parameter and a meter address;
receiving a data packet transmitted by a remote server by meter reading equipment;
the meter reading equipment retrieves 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;
and the meter reading equipment processes the specific command template, the command parameter and the instrument address, generates a control instruction and outputs the control instruction to the corresponding instrument.
On one hand, 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 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 the uplink interface.
In one embodiment, the power supply circuit is connected with the controller. The power supply circuit comprises a voltage transformation circuit, a rectification circuit and a voltage stabilizing circuit;
one end of the voltage transformation circuit is used for connecting 220V commercial power, and the other end of the voltage 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 meter information, a command identifier, a command parameter and a meter 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 the 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 following steps:
the acquisition module is used for acquiring reply data transmitted by the instrument and analyzing and processing 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, on which a computer program is stored, where the computer program, when executed by a controller, implements the steps of any one of the above methods.
One of the above technical solutions has the following advantages and beneficial effects:
the application provides an automatic framing meter reading method, which comprises the following steps: receiving a data packet transmitted by a remote server; the data packet comprises meter information, a command identifier, a command parameter and a meter address; retrieving the protocol library according to the instrument information to obtain a protocol group corresponding to the instrument information; acquiring a command template in a protocol group according to the command identifier; and 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. By the method, the corresponding command can be automatically generated only by configuring necessary parameters such as the meter information, the command identifier, the command parameter and the meter address in the data packet through the remote server. By the meter reading method, the meter reading equipment can be directly applied to the meter reading fields of water, electricity, heat energy and the like. In the traditional meter reading equipment, only a single type of meter can be read. If the type of the meter needs to be converted, that is, the type of the meter connected with the meter reading equipment changes, the worker is often required to further encode the meter reading equipment. And if the meter reading method for automatically framing is adopted, the meter reading action can be realized by directly replacing the meter without recoding. Furthermore, the meter reading equipment adopts the automatic framing meter reading method provided by the application, so that the simultaneous meter reading of one meter reading equipment corresponding to various meters can be realized.
Drawings
The foregoing and other objects, features and advantages of the application will be apparent from the following more particular description of preferred embodiments of the application, as illustrated in the accompanying drawings. Like reference numerals refer to like parts throughout the drawings, and the drawings are not intended to be drawn to scale in actual dimensions, emphasis instead being placed upon illustrating the subject matter of the present application.
FIG. 1 is a first schematic flow chart diagram illustrating a meter reading method for automatic framing in one embodiment;
FIG. 2 is a second schematic flow chart diagram illustrating a method for meter reading with automatic framing in one embodiment;
FIG. 3 is a flowchart illustrating the steps of parsing reply data according to one embodiment;
FIG. 4 is a third schematic flow chart diagram illustrating a meter reading method for automatic framing 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 embodiment of an automatic framing meter reading device;
FIG. 7 is a second schematic structural diagram of an embodiment of an automatic framing meter reading device;
FIG. 8 is a block diagram of an embodiment of an apparatus for meter reading with automatic framing.
Detailed Description
To facilitate an understanding of the present application, the present application will now be described more fully with reference to the accompanying drawings. Embodiments of the present application are set forth in the accompanying drawings. This application may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth 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 present 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 "connection" in the following embodiments is to be understood as "electrical connection", "communication connection", and the like if the connected circuits, modules, units, and the like have communication of electrical signals or data with each other.
As used herein, the singular forms "a", "an" and "the" may include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises/comprising," "includes" or "including," etc., specify the presence of stated features, integers, steps, operations, components, parts, or combinations thereof, but do not preclude the presence or addition of one or more other features, integers, steps, operations, components, parts, or combinations thereof.
At present, the common meter integration mode in China is to write protocols into a system one by one through software coding in a hard coding mode, and then to call different protocols to communicate each time through the system, so that each protocol is integrated, a plurality of system codes need to be added, and the version numbers of the system and the software need to be upgraded. Software code maintenance is extremely complex, and the time consumption of the integration protocol is long. The automatic framing meter reading method provided by the application 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 meter information, a command identifier, a command parameter and a meter address;
specifically, the data packets transmitted by the remote server may be received by any means in the art. For example: the data packet transmitted by the remote server can be acquired through the Ethernet uplink interface. The data packet includes meter information, command identification, command parameters, and a meter address. The meter information includes a type of the meter; the command identification is the identification of different commands in the protocol library; the command parameters include various types of parameters, such as a command for controlling a valve, and the input parameter is "open or closed". The command to write the dose, the parameter is the "dose value". A command to write a particular parameter, such as the CT ratio of the meter, is the specific CT ratio value. S120, retrieving the protocol library according to the instrument information to obtain a protocol group corresponding to the instrument information;
specifically, any retrieval means in the field can be adopted to obtain the protocol group corresponding to the meter information. The meter for each specific signal has a protocol group, which includes various commands such as a command for inquiring meter data, 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 in the remote server, which avoids performing a large amount of calculations in the remote server. In one specific example, the step S120 may be executed in a meter reading device.
S130, acquiring a command template in the protocol group according to the command identifier;
in particular, the command identification may find a corresponding command template. It should be noted that the command template needs to be filled with specific information to form a real meter command, for example, the valve control command is "DB 0505 + meter address + 167855 + valve status parameter + CRC check + DD", as long as the meter address "010203" and the valve status parameter "01" are filled, and then the CRC check "a 8 CF" is calculated, which forms a complete command "DB 050501020316785501 a8CF DD". In one specific example, the step of S130 may be executed in a meter reading device.
And S140, processing the specific command template, the command parameter and the instrument address, generating a control instruction and outputting the control instruction to the corresponding instrument. In one specific example, the step of S140 may be executed in a meter reading device.
Specifically, command parameters and a meter address are filled in a specific command template, and a control instruction is generated. The control instructions may include instructions to query parameters, instruct actions, and the like.
According to the automatic framing meter reading method, the corresponding command can be automatically generated only by configuring necessary parameters such as the meter information, the command identification, the command parameters and the meter address in the data packet through the remote server. By the meter reading method, the meter reading equipment can be directly applied to the meter reading fields of water, electricity, heat energy and the like. In the traditional meter reading equipment, only a single type of meter can be read. If the type of the meter needs to be converted, that is, the type of the meter connected with the meter reading equipment changes, the worker is often required to further encode the meter reading equipment. And if the meter reading method for automatically framing is adopted, the meter reading action can be realized by directly replacing the meter without recoding. Furthermore, the meter reading equipment adopts the automatic framing meter reading method provided by the application, so that the simultaneous meter reading of one meter reading equipment corresponding to various meters can be realized.
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 meter information, a command identifier, a command parameter and a meter address;
s220, retrieving 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;
and S240, processing the specific command template, the command parameter and the instrument address, generating a control instruction and outputting the control instruction to the corresponding instrument.
Further comprising the steps of:
s250, acquiring reply data transmitted by the instrument, and analyzing 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 the analysis is 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, acquiring a reply template of the control instruction;
and S320, extracting the 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 complex data. In one specific example, the data packet sent by the remote server is the "{" meter model ": "a certain electric meter", "meter address": "010203", "command number": "valve opening command", "command parameter": "01" } ", and the information is composed into a complete command" DB 050501020316785501A 8CF DD "to be sent to the meter through the process. The meter replies a reply similar to "DB 05AC DD", and the meter reading device queries a reply module of the command, such as "DB 05+ success flag (AA is success) + DD", and parses through the template, and then replies to the software platform "{" result ": "success". In another specific example, if a meter reading instruction is generated, a corresponding value is resolved if a reply is received. For example, a parsing template such as "DB 05+ four bytes of data (hexadecimal data) + DD" when "DB 0501020304 DD" is received, will reply to the remote server "{" value "by parsing the reply: "16909060"}".
In an embodiment, as shown in fig. 4, an automatic framing meter reading method is provided, and is applied to a meter reading system, where the meter reading system includes a remote server and a meter reading device connected to the remote server; the method comprises the following steps:
s410, the remote server acquires an input data packet; the data packet comprises meter information, a command identifier, a command parameter and a meter address;
specifically, the remote server obtains an input data packet, which may be input through the terminal. The terminal can comprise a computer terminal and a mobile phone terminal. Specifically, the terminal includes an input device and a display; the display is used for displaying the set value of the input parameter. The display may include any surface, or other implement that is 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, receiving a data packet transmitted by a remote server by meter reading equipment;
specifically, the meter reading device may receive the data packet by any means in the field. For example: data transmission may be via the uplink interface.
S430, the meter reading equipment retrieves the protocol library according to the instrument information to obtain a protocol group corresponding to the instrument information;
specifically, the meter reading device retrieves the meter information in a carried protocol library 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 protocol library only needs to be issued once. Meanwhile, the protocol of the novel instrument can be updated regularly. It should be noted that, a memory may be included in the meter reading device for storing the protocol library.
S440, the meter reading equipment acquires a command template in the protocol group according to the command identifier;
and S450, the meter reading equipment processes the specific command template, the command parameter and the instrument address, generates a control instruction and outputs the control instruction to the corresponding instrument.
According to the automatic framing meter reading method, the remote server and the meter reading equipment are separately subjected to different steps. Specifically, the meter reading equipment executes complex steps of retrieval, analysis and the like, and the situation that calculation power is concentrated in a remote server is avoided. The staff inputs the meter information, the command identification, the command parameter and the meter address to the remote server through the terminal, and the meter reading equipment arranged at each meter receives the data packet containing the data and automatically generates a control instruction to output the control instruction to the meter. And the controller acquires the analysis result of the instrument reply data to finish the meter reading action. The whole meter reading process does not need to enter the field, and the meter reading efficiency is high. Simultaneously, the meter reading equipment provided by the application can be used for reading meters of different types, so that the cost is further reduced.
It should be understood that although the various steps in the flow charts of fig. 1-4 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 1-4 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other 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 downstream interfaces; each downlink serial port is connected with the controller and is used for connecting 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 transmit a query 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 a controller. The RS485 interface is an industrial personal computer interface, and a digital communication network using the RS485 interface can effectively transmit signals under the remote condition and the environment with large electronic noise. The M-Bus interface is specially designed for a data Bus for transmitting information of a consumption measuring instrument and a counter, has strong loading capacity, can realize transparent data transmission or convert the data into an MODBUS protocol, and can be easily butted with field equipment.
Optionally, the type of the controller is not limited, and may be set according to an actual application, for example, the controller may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also a Digital Signal Processor (DSP), an 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 component, etc., as long as it can receive data from a remote server and transmit corresponding control instructions. In one particular example, the controller includes an MCU chip.
The controller performs the following steps: receiving a data packet transmitted by a remote server; the data packet comprises meter information, a command identifier, a command parameter and a meter address; retrieving the protocol library according to the instrument information to obtain a protocol group corresponding to the instrument information; acquiring a command template in a protocol group according to the command identifier; and 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.
Control also performs the following steps: acquiring reply data transmitted by the instrument, and analyzing the reply data; and transmitting the analysis result obtained by analysis to a remote server.
The controller also performs the steps of: acquiring a reply template of a 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 by connecting a plurality of downlink serial ports, and the types of the meters are not limited. Meanwhile, the controller can perform protocol query on the storage device in which the protocol library is stored. Therefore, under the condition of using in meter reading equipment, the communication protocol can be inquired through the instruction transmitted by the remote server, and the data transmission of the instrument is realized based on the communication protocol, so that the meter reading action of different instruments is realized. In a traditional meter reading device, an automatic meter reading device can only read a specific meter, for example, if the type of a water meter or an electric meter needs to be changed, a fixed code writing mode is required to be programmed on site so as to read meters of different types, different quantities and different addresses at the same time, a large amount of manpower is wasted, and the automatic meter reading device is inefficient and easy to make mistakes. Compared with the prior art can only read the meter to the meter of single type, the meter reading equipment that this application provided can long-range operation, and it is efficient to read the meter. Simultaneously, the meter reading equipment provided by the application can be used for reading meters of different types, so that the cost is further reduced.
In one embodiment, as shown in fig. 6, the system further includes an uplink interface;
the controller is connected with the remote server through the 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 downstream interfaces; each downlink serial port is connected with the controller and is used for connecting 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 the uplink interface.
The power supply circuit is connected with the controller. The power supply circuit comprises a voltage transformation circuit, a rectification circuit and a voltage stabilizing circuit;
one end of the voltage transformation circuit is used for connecting 220V commercial power, and the other end of the voltage 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 that converts a 220V mains voltage into a 24V mains voltage. The rectifying circuit is used for converting alternating current into direct current. The voltage stabilizing circuit is any power supply circuit in the field, which 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 supply circuit is connected with the controller. Specifically, the standby power supply circuit is used for supplying power to components such as a controller and the like under the condition that the mains supply is unstable or the mains supply is powered off. In one embodiment, the backup power circuit includes a battery; the storage battery is connected with the controller and is used for connecting 220V commercial power. Specifically, in daily work, a storage battery of the standby power supply circuit is connected with 220V mains supply to store electric energy. When the commercial power is in the power loss process, the storage battery releases the stored electric energy to supply power for elements such as a controller and the like. Furthermore, the device also comprises an electric energy management module, wherein the electric energy management module is used for connecting the 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 cell is used as a standby power supply to supply power to equipment such as a controller, an uplink interface, a downlink interface and storage equipment. Energy conservation, 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 meter information, a command identifier, a command parameter and a meter 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 the 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 and processing 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 obtaining 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 limitations of the meter reading method for automatic framing, and details are not described here. All or part of the modules in the meter reading device for automatic framing can be realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a controller in the computer device, or can be stored in a memory in the computer device in a software form, so that the controller can call and execute operations corresponding to the modules.
In one embodiment, a computer readable storage medium is provided, having a computer program stored thereon, the computer program, when executed by a controller, implementing the steps of:
receiving a data packet transmitted by a remote server; the data packet comprises meter information, a command identifier, a command parameter and a meter address;
retrieving the protocol library according to the instrument information to obtain a protocol group corresponding to the instrument information;
acquiring a command template in a protocol group according to the command identifier;
and 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 step of parsing the reply data further implements the following steps when executed by the controller:
acquiring a reply template of a control instruction;
and extracting parameters of the target position in the reply data according to the reply template.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware related to control instructions instructed by a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, the computer program can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile 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), Rambus DRAM (RDRAM), and interface DRAM (DRDRAM).
In the description herein, references to the description of "some embodiments," "other embodiments," "desired embodiments," etc., mean 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, a schematic description of the above terminology may not necessarily refer to the same embodiment or example.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A meter reading method for automatic framing is characterized by comprising the following steps:
receiving a data packet transmitted by a remote server; the data packet comprises meter information, a command identifier, a command parameter and a meter address;
retrieving 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;
and processing the specific command template, the command parameters and the instrument address, generating a control instruction and outputting the control instruction to a corresponding instrument.
2. The method of automatically framing a meter reading as claimed in claim 1, further comprising the steps of:
acquiring reply data transmitted by the instrument, and analyzing and processing the reply data;
and transmitting the analysis result obtained by analysis to the remote server.
3. The method of automatically framing a meter reading according to claim 2, wherein the parsing result includes parameters of a target position in the reply data;
the step of analyzing the reply data comprises the following steps:
acquiring a reply template of the control instruction;
and extracting parameters of the target position in the reply data according to the reply template.
4. The meter reading method for automatic framing 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 following steps:
the remote server acquires an input data packet; the data packet comprises meter information, a command identifier, a command parameter and a meter address;
receiving a data packet transmitted by a remote server by meter reading equipment;
the meter reading equipment retrieves 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;
and the meter reading equipment processes the specific command template, the command parameter and the instrument address, generates a control instruction and outputs the control instruction to a corresponding instrument.
5. The meter reading equipment capable of automatically framing is characterized by comprising a controller and a plurality of downlink interfaces; each downlink serial port is connected with the controller and is used for connecting an instrument;
the controller performs the steps of the method of any one of claims 1 to 3.
6. The automatic framing meter reading device of claim 5, further comprising an upstream interface;
the controller is connected with the remote server through the uplink interface.
7. The meter reading device of claim 5, further comprising a power supply circuit connected to the controller; the power supply circuit comprises a voltage transformation circuit, a rectification circuit and a voltage stabilizing circuit;
one end of the voltage transformation circuit is used for connecting 220V mains supply, and the other end of the voltage 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.
8. 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 meter information, a command identifier, a command parameter and a meter address;
the retrieval module is used for retrieving a 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 the 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.
9. The automatic framing meter reading device of claim 8, further comprising:
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.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a controller, carries out the steps of the method according to any one of claims 1 to 3.
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 true CN112185093A (en) 2021-01-05
CN112185093B 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 (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030058129A1 (en) * 2001-09-25 2003-03-27 Lg Electronics Inc. Automatic meter reading system and method using telephone line
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

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030058129A1 (en) * 2001-09-25 2003-03-27 Lg Electronics Inc. Automatic meter reading system and method using telephone line
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
CN112185093B (en) 2024-03-22

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
CN110071577B (en) Transformer substation monitoring information acceptance method and system
CN111768608B (en) Data transmission method and device based on double-core intelligent electric meter and computer equipment
CN104281678A (en) Intelligent moonlet state monitoring system
CN111625583B (en) Business data processing method and device, computer equipment and storage medium
CN106849348A (en) A kind of intelligent power distribution equipment and intelligent power distribution method for platform area charging pile
CN115623358A (en) Meter reading method, meter reading device and meter reading system
CN112185093B (en) Meter reading method, equipment and device for automatic framing
CN111611255B (en) Equipment energy consumption energy-saving management method and device, terminal equipment and storage medium
CN116471302A (en) Remote dynamic configuration method of electric power acquisition system
CN112015813A (en) Data sharing method, system and device of power distribution network and computer equipment
CN114240035B (en) Switching equipment low-power consumption control method and switching device based on service awareness
CN106342297B (en) A kind of satellite modeling method with stand-alone device modeling
CN105551215A (en) Method for concentrated reading of heat meter data
Gomes et al. Microgrid demonstration gateway for players communication and load monitoring and management
CN207472457U (en) Wireless remote transmission pressure sensor based on NB-IOT
CN206210098U (en) Multiple types automatic data collection device based on GPRS
CN105553625A (en) Remote channel message compression method and system for electricity consumption collection system
CN212782281U (en) Meter reading equipment and meter reading system
CN112422382A (en) Configuration method and device of power utilization mode, storage medium and electronic device
CN110992671A (en) Ammeter address forwarding method, device and system and electronic equipment
CN216351852U (en) Distributed data acquisition system based on cascade bus
TW201638862A (en) Customer energy control method based on an automatic demand response protocol
CN114944052B (en) Automatic test method and system for meter reading stability of electricity acquisition terminal
He et al. Research on Photovoltaic Inverter Monitoring System Based on Cloud Service

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