CN111683142B - Metering apparatus, metering method, and computer-readable storage medium - Google Patents

Metering apparatus, metering method, and computer-readable storage medium Download PDF

Info

Publication number
CN111683142B
CN111683142B CN202010510596.5A CN202010510596A CN111683142B CN 111683142 B CN111683142 B CN 111683142B CN 202010510596 A CN202010510596 A CN 202010510596A CN 111683142 B CN111683142 B CN 111683142B
Authority
CN
China
Prior art keywords
data
gateway
metering
gateways
interface
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
CN202010510596.5A
Other languages
Chinese (zh)
Other versions
CN111683142A (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.)
GD Midea Heating and Ventilating Equipment Co Ltd
Shanghai Meikong Smartt Building Co Ltd
Original Assignee
GD Midea Heating and Ventilating Equipment Co Ltd
Shanghai Meikong Smartt Building 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 GD Midea Heating and Ventilating Equipment Co Ltd, Shanghai Meikong Smartt Building Co Ltd filed Critical GD Midea Heating and Ventilating Equipment Co Ltd
Priority to CN202010510596.5A priority Critical patent/CN111683142B/en
Publication of CN111683142A publication Critical patent/CN111683142A/en
Application granted granted Critical
Publication of CN111683142B publication Critical patent/CN111683142B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07FCOIN-FREED OR LIKE APPARATUS
    • G07F15/00Coin-freed apparatus with meter-controlled dispensing of liquid, gas or electricity
    • G07F15/06Coin-freed apparatus with meter-controlled dispensing of liquid, gas or electricity with means for prepaying basic charges, e.g. rent for meters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/143Termination or inactivation of sessions, e.g. event-controlled end of session

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Arrangements For Transmission Of Measured Signals (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention provides a metering device, a metering method and a computer readable storage medium, the metering device comprises: at least two groups of metering elements, each group of metering elements in the at least two groups of metering elements has a group of metering data; each gateway in the at least two gateways acquires and stores a group of metering data. Through setting up a plurality of gateways for the measurement data on every group measurement spare is stored by different gateways, on the one hand, because separately store different gateways with measurement data, it is too much to have avoided a gateway storage data, cause the problem of gateway crash easily, on the other hand, because the measurement data storage of multiunit measurement spare is on different gateways, when a gateway breaks down, the user can carry out the work of charging to the measurement data of other gateway storages that do not break down, it will cause whole data to lose to have avoided a gateway crash, lead to the unable problem of carrying out the work of charging to air conditioning system of user.

Description

Metering apparatus, metering method, and computer-readable storage medium
Technical Field
The invention belongs to the field of air conditioners, and particularly relates to a metering device, a metering method and a computer readable storage medium.
Background
In the air conditioning field, the charging data of the air conditioning system can be uniformly sent to the gateway for gathering and storing, and when the gateway system breaks down or the gateway stops working unexpectedly, the charging work of the air conditioning system cannot be realized and a large amount of charging data is lost.
Disclosure of Invention
The present invention has been made to solve one of the technical problems occurring in the prior art or the related art.
To this end, a first aspect of the invention provides a metering device.
A second aspect of the invention is directed to a metering method.
A third aspect of the invention is directed to a computer-readable storage medium.
In view of this, according to a first aspect of the present invention, there is provided a metering device comprising: at least two groups of metering elements, each group of metering elements in the at least two groups of metering elements has a group of metering data; each gateway in the at least two gateways acquires and stores a set of metering data.
The metering device provided by the embodiment of the invention comprises at least two groups of metering elements and at least two gateways, wherein each group of metering elements is provided with one group of metering data, and each gateway can acquire and store one group of metering data. Through setting up a plurality of gateways for the measurement data on every group measurement spare is stored by different gateways, on the one hand, because separately store different gateways with measurement data, it is too much to have avoided a gateway storage data, cause the problem of gateway crash easily, on the other hand, because the measurement data storage of multiunit measurement spare is on different gateways, when a gateway breaks down, the user can carry out the work of charging to the measurement data of other gateway storages that do not break down, it will cause whole data to lose to have avoided a gateway crash, lead to the unable problem of carrying out the work of charging to air conditioning system of user. Based on this, the invention thoroughly solves the problems that the charging work of the air conditioner system can not be realized and a large amount of charging data is lost when the network relation system is crashed or the gateway stops working accidentally in the background technology.
In addition, according to the metering device in the above technical solution provided by the present invention, the following additional technical features may be further provided:
in one possible design, a gateway includes: the first data interface is connected with a group of metering components; the data processing module is connected with the first data interface and acquires a group of metering data through the first data interface; the second data interface is connected with the data processing module; and the data processing module sends a group of metering data to the storage module through the second data interface so that the storage module stores a group of metering data.
In the design, one gateway comprises a first data interface, a data processing module, a second data interface and a storage module, wherein the storage module is connected with the second data interface, the second data interface is connected with the data processing module, the data processing module is connected with the first data interface, and the first data interface is connected with the metering piece. Specifically, in the using process of the metering device, the data processing module acquires metering data on the metering piece through the first data interface, the data processing module transmits the metering data to the storage module through the second data interface after acquiring the metering data, and the storage module stores the metering data, so that a user can conveniently charge according to the metering data stored in the storage module. In addition, each gateway stores a group of metering data, namely, each storage module stores a group of metering data, so that the problem that the gateways are easy to crash due to excessive metering data stored in the storage modules is solved.
In one possible design, the data processing module includes: the data acquisition module acquires a group of metering data; and the data transmission module receives the group of metering data sent by the data acquisition module, and sends the group of metering data to the storage module.
In this design, the data processing module includes a data acquisition module and a data transmission module. The data acquisition module acquires metering data on the metering piece through the first data interface. After the data processing module acquires the metering data, the metering data is transmitted to the data transmission module, the data transmission module transmits the metering data to the storage module through the second data interface, and the storage module stores the metering data, so that a user can conveniently carry out charging work according to the metering data stored in the storage module. In addition, before the data transmission module transmits the metering data to the storage module, the data transmission module can process data processing work such as sorting, screening and sequencing on the data, so that the data amount needing to be stored is further reduced, and the problem that the metering data stored in the storage module is too much to cause gateway breakdown is avoided.
In one possible design, the metering device further comprises: an input device for receiving and transmitting input data; a gateway further comprising: a third data interface connected to the input device, a gateway receiving input data through the third data interface.
In this design, the metering device further comprises an input device, the gateway further comprises a first data interface, and the input device performs data transmission with the gateway through a third data interface. Specifically, when the charging operation is performed, the user inputs a data acquisition instruction through the input device, the data acquisition instruction is transmitted to the gateway through the third data interface, and after the gateway receives the data acquisition instruction of the user, the metering data stored in the storage module is transmitted to the user through the third data interface, so that the user can perform the charging operation. In addition, the user can also control the air conditioner through the input device, the user inputs a control command through the input device, and the air conditioner works according to the control command input by the user.
In one possible design, a gateway includes: and the fourth data interface is connected with the second data interface and the third data interface and respectively performs data transmission with the second data interface and the third data interface.
In this design, one gateway also includes a fourth data interface. Specifically, when the charging operation is performed, after the user inputs the data acquisition instruction through the input device, the metering data stored in the storage module is transmitted to the user through the second data interface, the fourth data interface and the third data interface in sequence, so that the user can perform the charging operation conveniently. In addition, when the user controls the air conditioner through the input device, a control instruction input by the user is transmitted to the data processing module through the third data interface, the fourth data interface and the second data interface in sequence, and the data processing module transmits the control instruction to the air conditioner through the first data interface, so that the air conditioner can execute the control instruction input by the user.
In one possible design, the data processing module further includes: and the control module receives input data and sends the input data to the at least two groups of metering parts.
In this design, the data processing module further includes a control module. When a user controls the metering piece through the input device, the user inputs a control instruction of the metering piece and transmits the control instruction to the control module through the third data interface, the fourth data interface and the second data interface in sequence, and the control module transmits the control instruction of the metering piece to the metering piece through the first data interface, so that the metering piece can execute the control instruction of the metering piece input by the user. The control module is arranged for transmitting a control instruction of a user to the metering piece, and a data transmission path between the metering piece and the storage module is separated from a data transmission path between the input device and the metering piece, so that multi-path data transmission is realized, and the data transmission speed is improved.
In one possible embodiment, any two of the at least two gateways implement data transmission via the fourth data interface. In the design, data transmission between any two gateways can be realized by realizing data transmission between any two gateways through the fourth data interface. Specifically, during charging, after the charging device is connected with any gateway through input, the metering data stored in other gateways can be directly acquired through the gateway which is successfully connected, and data acquisition is not required to be independently connected with each gateway, so that the efficiency of acquiring the metering data is improved.
According to a second aspect of the present invention, there is provided a metering method for the above metering apparatus, the metering method comprising: responding to the charging query instruction, and determining one gateway of at least two gateways as a main gateway; the method comprises the steps that first metering data stored by other gateways except a main gateway in at least two gateways are sent to the main gateway; the method comprises the steps of obtaining first metering data received by a main gateway and second metering data stored by the main gateway.
According to the metering method provided by the embodiment of the invention, at least one gateway of the two gateways is determined as the main gateway, the first metering data stored by other gateways except the main gateway are all sent to the main gateway, and a user can complete the charging work only by acquiring the second metering data stored by the main gateway and the first metering data received by the main gateway, and does not need to establish connection with each gateway independently to acquire data, so that the efficiency of acquiring the metering data by the user is improved, and the time of the charging work is further saved. In addition, because be provided with a plurality of gateways for the measurement data on every group measurement spare is stored by different gateways, on the one hand, because separately store the measurement data to different gateways, the problem of having avoided a gateway storage data too much, cause the gateway crash easily, on the other hand, because the measurement data storage of multiunit measurement spare is on different gateways, when a gateway breaks down, the user can carry out the work of charging to the measurement data of other gateway storages that do not break down, it will cause whole data to lose to have avoided a gateway crash, lead to the problem that the user can't carry out the work of charging to air conditioning system. Based on this, the invention thoroughly solves the problems that the charging work of the air conditioner system can not be realized and a large amount of charging data is lost when the network relation system is crashed or the gateway stops working accidentally in the background technology.
In one possible design, one gateway of the at least two gateways is determined to be a main gateway in response to the charging query instruction; the method comprises the following steps that first metering data stored by other gateways except a main gateway in at least two gateways are sent to the main gateway, and specifically comprises the following steps: establishing data connection of any two gateways in at least two gateways; acquiring a communication address of any gateway; determining any gateway as a main gateway according to the communication address; the other gateways of the at least two gateways, except the primary gateway, transmit the first metering data to the primary gateway.
In the design, data connection of any two gateways in at least two gateways is established, so that any one gateway can acquire the communication address of other gateways. Specifically, each gateway is matched with an independent gateway communication address, after a user inputs a gateway communication address, a gateway corresponding to the gateway communication address input by the user is determined as a main gateway, other gateways except the main gateway send first metering data stored in the gateways to the main gateway, and the user can obtain the metering data stored in any gateway only by determining the main gateway, so that the efficiency of the user for obtaining the metering data is improved, and the time of charging work is saved.
In one possible design, before the step of responding to the charging query instruction, the method further includes: responding to a communication address setting instruction, and acquiring a first communication address of each gateway in at least two gateways and a second communication address of a group of metering elements corresponding to each gateway; and sending the first communication address and the second communication address of other gateways except the first gateway in the at least two gateways to the first gateway.
In the design, a communication address setting instruction of a user is responded, so that a first communication address of each gateway and a second communication address of a group of metering elements corresponding to each gateway are stored on the first gateway. Specifically, when initial setting is performed, each of at least two gateways is set as a first gateway in sequence, so as to ensure that each gateway stores a first communication address of itself and a second communication address of a group of metering elements corresponding thereto, and also stores first communication addresses of other arbitrary gateways and second communication addresses of a group of metering elements corresponding to each gateway of other arbitrary gateways. By setting each gateway of the at least two gateways as a first gateway for storing the first communication address and the second communication address of other gateways except the first gateway in the at least two gateways, after a user determines a main gateway, the communication connection between any two gateways in the at least two gateways can be realized, the convenience of using the metering device by the user and the efficiency of acquiring metering data are improved, and the time of charging work is saved.
In one possible design, after the step of obtaining the first metering data received by the primary gateway and the second metering data stored by the primary gateway, the method further includes: and disconnecting the data connection of any two gateways in the at least two gateways.
In this design, after a user acquires first metering data received by the master gateway and second metering data stored by the master gateway, data connection between any two gateways may be disconnected immediately, or data connection between any two gateways may be disconnected after a preset time. By disconnecting the data connection between any two gateways after the data acquisition is finished, the data transmission between the gateways is realized only when the user acquires the metering data, and unnecessary data transmission between the gateways is avoided, so that the problems that the data stored in the gateways is too much, the gateways crash and the stability of the metering device are influenced are avoided.
According to a third aspect of the present invention, there is provided a computer-readable storage medium, on which a charging program is stored, and the charging program, when executed by a processor, implements the steps of the metering method in any of the above-mentioned aspects.
The computer-readable storage medium provided by the present invention stores a charging program, and the charging program, when executed by the processor, implements the steps of the metering method in any of the above technical solutions, so that the present invention has all the technical effects of the charging method, and is not described herein again.
Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
Drawings
The above and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
FIG. 1 shows a schematic structural view of a metering device according to an embodiment of the present invention;
FIG. 2 shows a schematic structural view of a metering device according to another embodiment of the present invention;
FIG. 3 shows a user login interface schematic of a metering device of one embodiment of the present invention;
FIG. 4 illustrates a schematic interface diagram of a metering device of one embodiment of the present invention to identify a primary gateway;
FIG. 5 illustrates a billing query interface diagram for one embodiment of the invention;
FIG. 6 illustrates a main interface diagram of one embodiment of the present invention;
FIG. 7 illustrates a device control interface diagram of one embodiment of the present invention;
FIG. 8 shows a flow diagram of a metering method of an embodiment of the present invention;
FIG. 9 shows a flow diagram of a metering method of another embodiment of the present invention;
FIG. 10 shows a flow diagram of a metering method of yet another embodiment of the present invention;
FIG. 11 shows a flow diagram of a metering method of yet another embodiment of the present invention.
Wherein, the correspondence between the reference numbers and the component names in fig. 1 to 2 is:
100 metering parts, 200 gateways, 202 a first data interface, 204 a data processing module, 206 a second data interface, 208 a storage module, 210 a data acquisition module, 212 a data sorting module, 214 a third data interface, 216 a fourth data interface, 218 a control module and 300 an input device.
Detailed Description
In order that the above objects, features and advantages of the present invention can be more clearly understood, a more particular description of the invention will be rendered by reference to the appended drawings. It should be noted that the embodiments and features of the embodiments of the present application may be combined with each other without conflict.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention, however, the present invention may be practiced in other ways than those specifically described herein, and therefore the scope of the present invention is not limited by the specific embodiments disclosed below.
A metering device and a metering method provided according to some embodiments of the present invention are described below with reference to fig. 1 to 11.
The first embodiment is as follows:
an embodiment of the first aspect of the present invention provides a metering device, as shown in fig. 1, including: at least two sets of metrology members 100, each metrology member 100 of the at least two sets of metrology members 100 having a set of metrology data; at least two gateways 200, each gateway 200 of the at least two gateways 200 obtaining and storing a set of metering data.
The metering device provided by the embodiment of the invention comprises at least two groups of metering elements 100 and at least two gateways 200, wherein each group of metering elements 100 has one group of metering data, and each gateway 200 can acquire and store one group of metering data. Through setting up a plurality of gateways 200, make the measurement data on every group measurement piece 100 store by different gateways 200, on the one hand, because separately store the measurement data to different gateways 200, avoided a gateway 200 to store data too much, cause the problem of gateway 200 collapse easily, on the other hand, because the measurement data storage of multiunit measurement piece 100 is on different gateways 200, when a gateway 200 breaks down, the user can carry out the work of charging to the measurement data that other gateways 200 that do not break down stored, avoided a gateway 200 collapse will cause whole data to lose, lead to the problem that the user can't carry out the work of charging to air conditioning system. Based on this, the invention thoroughly solves the problems that the charging work of the air conditioning system can not be realized and a large amount of charging data is lost when the gateway 200 system is crashed or the gateway 200 stops working accidentally in the background technology.
Example two:
on the basis of the above embodiment, as shown in fig. 2, a gateway 200 includes: a first data interface 202 connected to a set of metrology elements 100; the data processing module 204 is connected with the first data interface 202, and the data processing module 204 acquires a group of metering data through the first data interface 202; a second data interface 206 connected to the data processing module 204; and the storage module 208 is connected with the second data interface 206, and the data processing module 204 sends a set of metering data to the storage module 208 through the second data interface 206, so that the storage module 208 stores the set of metering data.
In this embodiment, in the use process of the metering device, the data processing module 204 acquires the metering data on the metering element 100 through the first data interface 202, the data processing module 204 sends the metering data to the storage module 208 through the second data interface 206 after acquiring the metering data, and the storage module 208 stores the metering data, so that the user can perform the charging operation according to the metering data stored in the storage module 208. In addition, since each gateway 200 stores a set of metering data, that is, each storage module 208 stores a set of metering data, the problem that the gateway 200 is easily crashed due to excessive metering data stored in the storage module 208 is avoided.
Further, as shown in fig. 2, the data processing module 204 includes: a data acquisition module 210 for acquiring a set of measurement data; and the data transmission module receives the set of metering data sent by the data acquisition module 210, and sends the set of metering data to the storage module 208.
In this embodiment, the data acquisition module 210 acquires metrology data on the metrology member 100 via the first data interface 202. After the data processing module 204 obtains the metering data, the metering data is transmitted to the data transmission module, the data transmission module transmits the metering data to the storage module 208 through the second data interface 206, and the storage module 208 stores the metering data, so that the user can perform the charging operation according to the metering data stored in the storage module 208. In addition, before the data transmission module transmits the metering data to the storage module 208, the data transmission module may perform data processing operations such as sorting, screening, and sequencing on the data, so as to further reduce the amount of data to be stored, and avoid the problem that the gateway 200 is easily crashed due to excessive metering data stored in the storage module 208.
Further, as shown in fig. 2, the metering device further includes: an input device 300 that receives and transmits input data; a gateway 200 further comprises: a third data interface 214 connected to the input device 300, and a gateway 200 receiving input data through the third data interface 214.
In this embodiment, the input device 300 communicates with a gateway 200 via the third data interface 214. Specifically, when the user performs the billing operation, the user inputs a data acquisition command through the input device 300, the data acquisition command is transmitted to the gateway 200 through the third data interface 214, and after receiving the data acquisition command from the user, the gateway 200 transmits the metering data stored in the storage module 208 to the user through the third data interface 214, so that the user performs the billing operation. As shown in fig. 7, the user may control the air conditioner through the input device 300, and the user inputs a control command through the input device 300, and the air conditioner operates according to the control command input by the user.
Example three:
on the basis of any of the above embodiments, as shown in fig. 2, a gateway 200 includes: and the fourth data interface 216 is connected with the second data interface 206 and the third data interface 214, and the fourth data interface 216 performs data transmission with the second data interface 206 and the third data interface 214 respectively. In this design, one gateway 200 also includes a fourth data interface 216.
In this embodiment, as shown in fig. 3, when performing charging operation, a user inputs a user name and a password through a login interface provided by the input device 300, after logging in, the user enters a main interface shown in fig. 7, after selecting a corresponding module on the main interface, the user may input an instruction to acquire metering data, after the user inputs the instruction to acquire metering data, the metering data stored in the storage module 208 is transmitted to the user sequentially through the second data interface 206, the fourth data interface 216, and the third data interface 214, and the user performs charging operation through a charging query interface shown in fig. 6. In addition, when the user controls the air conditioner through the input device 300, the control instruction input by the user is transmitted to the data processing module 204 through the third data interface 214, the fourth data interface 216 and the second data interface 206 in sequence, and the data processing module 204 transmits the control instruction to the air conditioner through the first data interface 202, so that the air conditioner can execute the control instruction input by the user.
Further, the data processing module 204 further includes: and a control module 218 that receives input data, wherein the control module 218 sends the input data to at least two metering elements 100.
In this embodiment, when the user controls the metering element 100 through the input device 300, the user inputs a control command of the metering element 100 and transmits the control command to the control module 218 through the third data interface 214, the fourth data interface 216 and the second data interface 206 in sequence, and the control module 218 transmits the control command of the metering element 100 to the metering element 100 through the first data interface 202, so that the metering element 100 executes the control command of the metering element 100 input by the user. The control module 218 is arranged for transmitting a control instruction of a user to the metering piece 100, so that a data transmission path between the metering piece 100 and the storage module 208 is separated from a data transmission path between the input device 300 and the metering piece 100, multi-path data transmission is realized, and the data transmission speed is improved.
Further, any two gateways 200 of the at least two gateways 200 implement data transmission through the fourth data interface 216. By implementing data transmission between any two gateways 200 of the at least two gateways 200 through the fourth data interface 216, data transmission between any two gateways 200 can be implemented. Specifically, during charging, after the charging device is connected to any one gateway 200 through input, the metering data stored in other gateways 200 can be directly acquired through the gateway 200 that is successfully connected, and it is not necessary to separately establish connection with each gateway 200 to acquire the data, so that the efficiency of acquiring the metering data is improved.
Example four:
in a second aspect of the present invention, there is provided a metering method for the metering device defined in any one of the above embodiments, as shown in fig. 8, the metering method includes:
step 102, responding to a charging query instruction, and determining one gateway of at least two gateways as a main gateway;
104, transmitting first metering data stored by other gateways except the main gateway in at least two gateways to the main gateway;
and step 106, acquiring the first metering data received by the main gateway and the second metering data stored by the main gateway.
According to the metering method provided by the embodiment of the invention, one gateway of at least two gateways is determined as the main gateway, the first metering data stored by other gateways except the main gateway are all sent to the main gateway, and a user can complete the charging work only by acquiring the second metering data stored by the main gateway and the first metering data received by the main gateway, and does not need to establish connection with each gateway independently to acquire data, so that the efficiency of acquiring the metering data by the user is improved, and the time of the charging work is further saved. In addition, because a plurality of gateways are arranged, metering data on each group of metering parts are stored by different gateways, on one hand, because the metering data are separately stored in different gateways, the problem that one gateway has too much stored data and is easy to cause gateway breakdown is avoided, on the other hand, because the metering data of a plurality of groups of metering parts are stored in different gateways, when one gateway breaks down, a user can charge for the metering data stored by other gateways which do not break down, and the problem that the user cannot charge for the air conditioning system due to the fact that the whole data are lost due to gateway breakdown is avoided. Based on this, the invention thoroughly solves the problems that the charging work of the air conditioner system can not be realized and a large amount of charging data is lost when the network relation system is crashed or the gateway stops working accidentally in the background technology.
Example five:
in one embodiment of the invention, one gateway of at least two gateways is determined to be a main gateway in response to the charging query instruction; the method for transmitting the first metering data stored by the other gateways except the main gateway in the at least two gateways to the main gateway specifically comprises the following steps: establishing data connection of any two gateways in at least two gateways; acquiring a communication address of any gateway; determining any gateway as a main gateway according to the communication address; the other gateways of the at least two gateways, except the primary gateway, transmit the first metering data to the primary gateway.
In one specific embodiment, as shown in fig. 9, the metering method includes:
step 202, establishing data connection of any two gateways in at least two gateways;
step 204, acquiring a communication address of any gateway; determining any gateway as a main gateway according to the communication address;
step 206, other gateways except the main gateway in the at least two gateways send the first metering data to the main gateway;
step 208, the first metering data received by the primary gateway and the second metering data stored by the primary gateway are obtained.
In this embodiment, by establishing data connection between any two gateways of the at least two gateways, any one gateway can acquire the communication address of the other gateway. Specifically, each gateway is matched with an independent gateway communication address, when a user inputs a gateway communication address through the interface shown in fig. 4, the gateway corresponding to the communication address input by the user is determined as the main gateway, and other gateways except the main gateway transmit the stored first metering data to the main gateway.
Example six:
in an embodiment of the present invention, before the step of responding to the charging inquiry command, the method further includes: responding to a communication address setting instruction, and acquiring a first communication address of each gateway in at least two gateways and a second communication address of a group of metering elements corresponding to each gateway; and sending the first communication address and the second communication address of other gateways except the first gateway in the at least two gateways to the first gateway.
In one specific embodiment, as shown in fig. 10, the metering method includes:
step 302, responding to a communication address setting instruction, and acquiring a first communication address of each gateway in at least two gateways and a second communication address of a group of metering elements corresponding to each gateway;
step 304, sending the first communication address and the second communication address of other gateways except the first gateway in at least two gateways to the first gateway;
step 306, responding to the charging query instruction, and determining one gateway of the at least two gateways as a main gateway;
step 308, sending first metering data stored by other gateways except the main gateway in the at least two gateways to the main gateway;
step 310, obtaining the first metering data received by the primary gateway and the second metering data stored by the primary gateway.
In the embodiment, the first communication address of each gateway and the second communication address of a group of metering elements corresponding to each gateway are stored on the first gateway by responding to the communication address setting instruction of the user. Specifically, when initial setting is performed, each of at least two gateways is set as a first gateway in sequence, so as to ensure that each gateway stores a first communication address of itself and a second communication address of a group of metering elements corresponding thereto, and also stores first communication addresses of other arbitrary gateways and second communication addresses of a group of metering elements corresponding to each gateway of other arbitrary gateways. By setting each gateway of the at least two gateways as a first gateway for storing the first communication address and the second communication address of other gateways except the first gateway in the at least two gateways, after a user determines a main gateway, the communication connection between any two gateways in the at least two gateways can be realized, the convenience of using the metering device and the efficiency of acquiring metering data by the user are improved, and the time of the charging work is saved.
Example seven:
in an embodiment of the present invention, after the step of acquiring the first metering data received by the primary gateway and the second metering data stored by the primary gateway, the method further includes: and disconnecting the data connection of any two gateways of the at least two gateways.
In one specific embodiment, as shown in fig. 11, the metering method includes:
step 402, responding to a communication address setting instruction, and acquiring a first communication address of each gateway in at least two gateways and a second communication address of a group of metering elements corresponding to each gateway;
step 404, sending the first communication address and the second communication address of other gateways except the first gateway in the at least two gateways to the first gateway;
step 406, responding to the charging query instruction, and determining that one gateway of the at least two gateways is a main gateway;
step 408, sending first metering data stored by other gateways except the main gateway in the at least two gateways to the main gateway;
step 410, acquiring first metering data received by a main gateway and second metering data stored by the main gateway;
step 412, disconnecting the data connection of any two gateways of the at least two gateways.
In this embodiment, as shown in fig. 5, after the user acquires the first metering data received by the primary gateway and the second metering data stored by the primary gateway, the data connection between any two gateways may be disconnected immediately, or the data connection between any two gateways may be disconnected after a preset time. Data connection between any two gateways is disconnected after data acquisition is finished, data transmission between the gateways is achieved only when a user acquires metering data, unnecessary data transmission between the gateways is avoided, data stored in the gateways are too much, gateway breakdown is caused, and stability of the metering device is affected.
Example eight:
in a third aspect of the present invention, a computer-readable storage medium is provided, where a charging program is stored on the computer-readable storage medium, and the charging program, when executed by a processor, implements the steps of the metering method in any one of the above embodiments.
The computer-readable storage medium provided by the present invention stores a charging program, and the charging program, when executed by the processor, implements the steps of the metering method in any of the above technical solutions, so that the present invention has all the technical effects of the charging method, and is not described herein again.
Example nine:
on the basis of any one of the above embodiments, the metering device comprises: the air conditioning system provides operation data of the system for the charging device, the input device is used for accessing internal systems of the at least two gateways to acquire the metering data stored by the gateways, and the at least two metering components are used for acquiring the metering data of the air conditioning system for charging.
Further, the at least two gateways comprise: a master gateway and a slave gateway. And the main gateway is responsible for carrying out overall statistics on all gateways in the metering device and outputting the UI interface and query data to the outside. Specifically, the master gateway receives a control instruction (the instruction includes but is not limited to gateway setting change, metering device topology, metering device inner end control and metering device activation) input by a user through an input device, and after receiving the control instruction, the master gateway issues the control instruction to a corresponding slave gateway according to the content of the control instruction and feeds back feedback information to the user through a UI (user interface) through the reply of the slave gateway; the master gateway receives a query instruction (the instruction includes but is not limited to gateway setting query, metering device topology query, metering device internal terminal information query and metering device activation state query) and issues the query instruction to a corresponding slave gateway below the master gateway, and after receiving the control instruction, the master gateway issues the query instruction to the corresponding slave gateway according to the content of the control instruction and feeds back feedback information to the user through a UI (user interface) through the reply of the slave gateway. After the slave gateway completes topology, the slave gateway performs conventional polling and charging query on the metering element connected with the slave gateway, and records the query result in the storage module. In general, the gateway is in a silent state, the master gateway does not actively interact with the slave gateway, and corresponding operation and reply are only performed when an inquiry or control instruction of the master gateway is received.
Furthermore, one gateway comprises a first data interface, a second data interface, a third data interface, a fourth data interface, a data processing and collecting module and a storage module.
The third data interface provides an operation interface for the terminal access of a user, and can be used for carrying out configuration, control, topology, query and the like related to the metering device. Furthermore, user interaction with the metering device is provided by the interface. After the interface obtains the operation of the user, the interface converts the operation into an HTTP external protocol of the metering device and issues the HTTP external protocol to a fourth data interface of the gateway.
The fourth data interface carries protocol analysis and instruction calling between any two gateways of the at least two gateways and between the gateway and the third data interface. The transmission protocol between any two gateways is an HTTP internal protocol, and the protocol between the gateways and the UI interface is an HTTP external protocol.
The second data interface is an interface of at least two gateways for processing charging, polling and other gateways to call the data processing and collecting module, and receives the call of the data processing and collecting module and the fourth data interface.
The data processing and collecting module is responsible for processing specific transaction operations such as charging, polling, setting, topology and the like, is connected with the storage module and the Modbus interface, and receives the call of the second data interface.
The storage module is used for storing information such as charging, operation records and user information.
The first data interface is used for communicating with the air conditioning system and converting a protocol of the air conditioning system.
At least two gateways in the metering device provided in the embodiments of the present invention adopt a distributed system, each gateway in the at least two gateways maintains an independent and loose organization architecture, and each gateway can independently operate (a master gateway only needs to perform topology once, that is, first communication address gateway information of other gateways except the master gateway in the at least two gateways and a second communication address of a group of metering components corresponding to each gateway are obtained, and then an off-line state can be maintained between any two gateways in the at least two gateways without affecting the charging operation), and only any two gateways in the at least two gateways need to be networked when performing query and control.
The reason why each of the at least two gateways can be independently operated is that the data processing module and the storage module of each gateway are independent metering devices, and only the tail ends of the metering pieces corresponding to the gateways are inquired and recorded. The whole metering device is not provided with a uniform storage module to collect and store data.
Primary gateway does not refer to a single gateway, and each gateway is accessible as a "primary gateway". The slave gateway is packaged into the master gateway which is communicated with the UI interface and any one of the at least two gateways through a sandwich structure of a third data interface, a fourth data interface and a second data interface.
The system disassembles the charging device and distributes the charging device on each identity equal gateway to realize the distributed layout of the system.
The metering device provided by the embodiment of the invention has the following beneficial effects:
first, the distributed layout can reduce the construction deployment of the system, the access between any two gateways of at least two gateways can be performed through the local area network, and the local area network between the buildings already exists quite universally under the current situation, and additional construction is not needed. Each gateway only needs to be connected with the corresponding metering piece and then output through the Ethernet or the wireless network.
Secondly, the distributed layout can reduce the risk of systematicness, in the traditional centralized layout, the storage module and the topological result are all centralized on one device (gateway, PC), and the stability of the metering device needs to be ensured through regular maintenance and backup, and the risk of data loss can be reduced under the condition that the metering device is damaged; and in such cases, the disruption to the data integrity of the entire metering device is substantial, if not completely, if the data is irreversibly destroyed or lost. In the metering device provided by the embodiment of the invention, because the storage module and the at least two gateways are distributed, if the metering data is unfortunately damaged, the influence is only limited on the damaged gateway, and the whole metering device cannot be affected.
Thirdly, another systematic risk reduction of the distributed layout is that the whole metering device can be operated independently in a long time offline, without relying on the scheduling of the whole metering device by the centralized master device. The whole metering device stops working under the condition that the main equipment is disconnected or shut down. In metering devices, long-term stable operation is important.
As shown in fig. 1, the metering device provided in the embodiment of the present invention is provided with at least two gateways 200 connected to an air conditioning system, and any two gateways 200 of the at least two gateways 200 are connected to each other through an ethernet or a wireless network; the metering device is connected to the air conditioning system via its own gateway 200 (bus protocols such as Modbus, CAN, bacnet).
As shown in fig. 2, each gateway 200 of the at least two gateways 200 performs external interactive communication through a third data interface 214, receives an instruction of the third data interface 214 or other gateways 200 through a fourth data interface 216, and calls and operates the data processing and collecting module through the second data interface 206.
The metering device provided by the embodiment of the invention has the following advantages:
firstly, at least two gateways adopt a distributed layout mode to realize decentralization, and a storage module and data storage operation of a metering piece are independent and offline, so that the metering device can run more stably and has simpler construction layout.
Secondly, the method of packaging the slave gateways into the master gateway through a sandwich structure of a third data interface, an external interface and a second data interface enables each slave gateway to be converted into the master gateway, enables the gateways to operate uniformly and does not add new hardware.
The charging device and the charging method provided by the embodiment of the invention reduce the hardware cost of the charging system, the structural complexity of the charging system, the construction difficulty of the charging system, the maintenance difficulty of the charging system and the use and access difficulty of the charging system.
In the present invention, the term "plurality" means two or more unless explicitly defined otherwise. The terms "mounted," "connected," "fixed," and the like are to be construed broadly, and for example, "connected" may be a fixed connection, a removable connection, or an integral connection; "coupled" may be direct or indirect through an intermediary. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
In the description herein, the description of the terms "one embodiment," "some embodiments," "specific embodiments," etc., 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, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (11)

1. A metering device, comprising:
at least two sets of metrology members, each of the at least two sets of metrology members having a set of metrology data;
at least two gateways, each of the at least two gateways acquiring and storing the set of metering data;
the gateway comprises a fourth data interface, any two gateways of the at least two gateways realize data transmission through the fourth data interface, the data transmission between any two gateways can be realized, and metering data stored on other gateways can be acquired through the gateway;
each gateway stores a first communication address of the gateway and a second communication address of a group of metering elements corresponding to the gateway, and stores first communication addresses of any other gateways and second communication addresses of a group of metering elements corresponding to each gateway in any other gateways.
2. The metering device of claim 1, wherein the one gateway further comprises:
the first data interface is connected with the group of metering components;
the data processing module is connected with the first data interface and acquires the group of metering data through the first data interface;
the second data interface is connected with the data processing module;
and the data processing module sends the group of metering data to the storage module through the second data interface so that the storage module stores the group of metering data.
3. The metering device of claim 2, wherein the data processing module comprises:
a data acquisition module for acquiring the set of metering data;
and the data transmission module is used for receiving the group of metering data sent by the data acquisition module, and sending the group of metering data to the storage module.
4. The metering device of claim 2, further comprising:
an input device for receiving and transmitting input data;
said one gateway further comprises:
and the third data interface is connected with the input device, and the gateway receives the input data through the third data interface.
5. The metering device of claim 4, wherein the fourth data interface is connected to the second data interface and the third data interface, and the fourth data interface performs data transmission with the second data interface and the third data interface respectively.
6. The metering device of claim 5, wherein the data processing module further comprises:
and the control module receives the input data and sends the input data to the at least two metering components.
7. A metering method for a metering device according to any one of claims 1 to 6, the metering method comprising:
responding to the charging query instruction, and determining one gateway of at least two gateways as a main gateway;
sending first metering data stored by other gateways except the main gateway in at least two gateways to the main gateway;
and acquiring the first metering data received by the main gateway and the second metering data stored by the main gateway.
8. The metering method of claim 7, wherein in response to the charging query, determining one of the at least two gateways to be a primary gateway; the step of sending the first metering data stored by the other gateways except the master gateway to the master gateway includes:
establishing data connection of any two gateways in the at least two gateways;
acquiring a communication address of any gateway;
determining any gateway as the main gateway according to the communication address;
and other gateways except the main gateway in the at least two gateways send the first metering data to the main gateway.
9. The metering method according to claim 7,
before the step of responding to the charging inquiry command, the method further comprises the following steps:
responding to a communication address setting instruction, and acquiring a first communication address of each gateway of the at least two gateways and a second communication address of a group of metering elements corresponding to each gateway;
and sending the first communication address and the second communication address of the other gateways except the first gateway in the at least two gateways to the first gateway.
10. The metering method of claim 8, wherein the step of obtaining the first metering data received by the primary gateway and the second metering data stored by the primary gateway is followed by the step of:
and disconnecting the data connection of any two gateways of the at least two gateways.
11. A computer-readable storage medium, characterized in that a charging program is stored on the computer-readable storage medium, which, when executed by a processor, carries out the steps of the metering method according to any one of claims 7 to 10.
CN202010510596.5A 2020-06-08 2020-06-08 Metering apparatus, metering method, and computer-readable storage medium Active CN111683142B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010510596.5A CN111683142B (en) 2020-06-08 2020-06-08 Metering apparatus, metering method, and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010510596.5A CN111683142B (en) 2020-06-08 2020-06-08 Metering apparatus, metering method, and computer-readable storage medium

Publications (2)

Publication Number Publication Date
CN111683142A CN111683142A (en) 2020-09-18
CN111683142B true CN111683142B (en) 2023-02-21

Family

ID=72435495

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010510596.5A Active CN111683142B (en) 2020-06-08 2020-06-08 Metering apparatus, metering method, and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN111683142B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114666208B (en) * 2022-03-30 2024-04-12 杭州中天微系统有限公司 Gateway system, node management method, electronic device, and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102325190A (en) * 2011-09-19 2012-01-18 郑州春泉暖通节能设备有限公司 Central air-conditioner charging data transmission network and manager
CN202206429U (en) * 2011-09-19 2012-04-25 郑州春泉暖通节能设备有限公司 Central air-conditioning charging data transmission network and manager
CN102539860A (en) * 2011-12-23 2012-07-04 青岛海尔空调电子有限公司 Multiple on-line electricity measuring method, multiple on-line electricity measuring system and electric equipment unit system
CN104811375A (en) * 2015-05-08 2015-07-29 三星电子(中国)研发中心 Smart home gateway and networking method thereof
CN106023444A (en) * 2016-05-13 2016-10-12 珠海格力电器股份有限公司 Charge-by-household system of air conditioners
CN106094754A (en) * 2016-07-12 2016-11-09 腾讯科技(深圳)有限公司 Apparatus control system, method and device
CN205719014U (en) * 2016-06-20 2016-11-23 珠海格力电器股份有限公司 Air conditioning charging system
CN110224872A (en) * 2019-06-21 2019-09-10 上海东土远景工业科技有限公司 A kind of communication means, device and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070299749A1 (en) * 2006-06-22 2007-12-27 Sybase 365, Inc. System and Method for Commodity Consumption Monitoring and Management

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102325190A (en) * 2011-09-19 2012-01-18 郑州春泉暖通节能设备有限公司 Central air-conditioner charging data transmission network and manager
CN202206429U (en) * 2011-09-19 2012-04-25 郑州春泉暖通节能设备有限公司 Central air-conditioning charging data transmission network and manager
CN102539860A (en) * 2011-12-23 2012-07-04 青岛海尔空调电子有限公司 Multiple on-line electricity measuring method, multiple on-line electricity measuring system and electric equipment unit system
CN104811375A (en) * 2015-05-08 2015-07-29 三星电子(中国)研发中心 Smart home gateway and networking method thereof
CN106023444A (en) * 2016-05-13 2016-10-12 珠海格力电器股份有限公司 Charge-by-household system of air conditioners
CN205719014U (en) * 2016-06-20 2016-11-23 珠海格力电器股份有限公司 Air conditioning charging system
CN106094754A (en) * 2016-07-12 2016-11-09 腾讯科技(深圳)有限公司 Apparatus control system, method and device
CN110224872A (en) * 2019-06-21 2019-09-10 上海东土远景工业科技有限公司 A kind of communication means, device and storage medium

Also Published As

Publication number Publication date
CN111683142A (en) 2020-09-18

Similar Documents

Publication Publication Date Title
CN108847979B (en) Self-adaptive configuration system and method based on SCADA
US4982325A (en) Applications processor module for interfacing to a database system
CN104486146A (en) Communication method for testing console and testing equipment
CN112055096A (en) Method and device for automatically setting communication address of equipment
CN109067633B (en) Power management system and method based on Ethernet daisy chain communication network topology
CN111683142B (en) Metering apparatus, metering method, and computer-readable storage medium
CN111865745A (en) Non-delay polling method and system for automatically identifying slave equipment
CN107453954A (en) A kind of Networked E-Journals method, system and equipment
CN103200067A (en) Dynamic virtual LANs to segregate data
EP2852094A1 (en) A system for remotely controlling and/or monitoring power distribution units or sensor units in a data centre
JP2004306200A (en) Robot control system
CN111221265A (en) Bus information extraction device of rudder system in loop and semi-physical simulation method
CN114443488A (en) ARINC664 network configuration testing framework construction method
CN114760318A (en) Edge calculation management method and system
CN213817812U (en) Test service system based on Router OS is built
Xu et al. Profibus automation technology and its application in DP slave development
CN112260894B (en) CAN bus network system performance test platform and use method
CN113873043A (en) Team digital management system
CN106304241A (en) A kind of data transmission method, transponder and gateway
KR20010055482A (en) Converting Method of Managing Operation from service management system to Switching Command in a Integrated Network
JP2002163164A (en) Multi-protocol corresponding agent system
CN111740864A (en) Out-of-band network port switching management method and system
CN117956012A (en) Generalized intelligent component networking transmission system
CN113037573B (en) Network management system and method
Kabitzsch et al. A toolset for stress test in field bus systems

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
TA01 Transfer of patent application right

Effective date of registration: 20210207

Address after: Room C, 14th floor, 309 Tanggu Road, Hongkou District, Shanghai 200080

Applicant after: Shanghai Meikong Intelligent Building Co.,Ltd.

Applicant after: GD MIDEA HEATING & VENTILATING EQUIPMENT Co.,Ltd.

Address before: 528311 Industrial Road, Penglai Road, Beijiao Town, Shunde District, Guangdong, Foshan

Applicant before: GD MIDEA HEATING & VENTILATING EQUIPMENT Co.,Ltd.

Applicant before: MIDEA GROUP Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant