CN111131536A - Efficient configuration method, device and system for communication address and electric meter - Google Patents

Efficient configuration method, device and system for communication address and electric meter Download PDF

Info

Publication number
CN111131536A
CN111131536A CN201911252452.8A CN201911252452A CN111131536A CN 111131536 A CN111131536 A CN 111131536A CN 201911252452 A CN201911252452 A CN 201911252452A CN 111131536 A CN111131536 A CN 111131536A
Authority
CN
China
Prior art keywords
timing
target terminal
data gateway
instruction
address
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
CN201911252452.8A
Other languages
Chinese (zh)
Other versions
CN111131536B (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.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
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 Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN201911252452.8A priority Critical patent/CN111131536B/en
Publication of CN111131536A publication Critical patent/CN111131536A/en
Application granted granted Critical
Publication of CN111131536B publication Critical patent/CN111131536B/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
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5076Update or notification mechanisms, e.g. DynDNS
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5038Address allocation for local use, e.g. in LAN or USB networks, or in a controller area network [CAN]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention provides a method, a device, a system and an electric meter for efficiently configuring a communication address, wherein the method comprises the following steps: when the target terminal is installed, executing timing operation; after the target terminals are sequentially installed and the target terminals are accessed to the communication bus, receiving a first instruction sent by a data gateway on the communication bus, wherein the first instruction is used for indicating the target terminals to stop timing operation; sending the timing parameters to a data gateway; and receiving the communication address configured by the data gateway. According to the invention, the target terminal is installed and starts to time; when a plurality of target terminals are sequentially installed and accessed into the communication bus, timing is stopped, so that each target terminal generates a timing parameter data gateway with difference to configure a communication address for each target terminal according to the difference of timing parameters, and the technical problems of high possibility of error and low efficiency in the related art by manually setting the communication address of the terminal are solved.

Description

Efficient configuration method, device and system for communication address and electric meter
Technical Field
The invention relates to the field of communication, in particular to a method, a device and a system for efficiently configuring a communication address and an electric meter.
Background
In the related technology, when an intelligent factory monitoring system is established, power consumption data of all switches in a low-voltage power distribution room in a factory need to be monitored, and the power consumption data of all switches are transmitted to a centralized monitoring platform, a common processing mode is that a communicable intelligent electric meter is installed under each switch, a corresponding communication address needs to be set before the communicable intelligent electric meter works, and the installation number of the intelligent electric meters in one low-voltage power distribution room is usually hundreds or even more; for realizing the switch one-to-one correspondence of smart electric meter data and its control, need install the power supply back at the ammeter, set up the communication address of ammeter one by one, the drawback of adopting such mode is: error setting is easy to generate; the workload is large, and a large amount of time is needed; and moreover, the communication parameter setting of the intelligent electric meter needs to be familiar to an installer, so that the requirements on the installer of the electric meter are high.
In view of the above technical problems in the related art, no effective solution has been proposed at present.
Disclosure of Invention
The embodiment of the invention provides a method, a device, a system and an electric meter for efficiently configuring a communication address, which are used for at least solving the technical problems that the communication address of a terminal is easy to be wrong and the efficiency is low through manual setting in the related technology.
According to an embodiment of the present invention, there is provided a method for efficiently configuring a communication address, including: when the target terminal is installed, executing timing operation; after a plurality of target terminals are sequentially installed and accessed into a communication bus, receiving a first instruction sent by a data gateway on the communication bus, wherein the first instruction is used for indicating the target terminals to stop timing operation; sending a timing parameter to the data gateway, wherein the data gateway is used for configuring a communication address for the target terminal according to the timing parameter; and receiving the communication address configured by the data gateway.
Optionally, the receiving the first instruction sent by the data gateway on the communication bus further includes: and receiving a notification, wherein the notification is that the data gateway starts to configure a communication address for the target terminal.
Optionally, the sending the timing parameter to the data gateway includes: stopping timing operation based on the first instruction, and generating the timing parameter, wherein the timing parameter represents a time difference between the start of timing by the target terminal and the reception of the first instruction; and sending the timing parameters to the data gateway through the communication bus.
Optionally, the receiving the communication address configured by the data gateway includes: after the data gateway completes configuration, receiving configuration information sent by the data gateway, wherein the configuration information comprises an address code and a first timing parameter associated with the address code.
Optionally, after receiving the configuration information sent by the data gateway, the method further includes: matching the timing parameter with the first timing parameter; and under the condition that the timing parameter is matched with the first timing parameter, the address code is used as the communication address of the target terminal.
Optionally, the executing the timing operation includes: powering up the timing module by starting an internal power supply module in the target terminal; and executing timing operation through the timing module.
According to an embodiment of the present invention, another method for efficiently configuring a communication address is provided, including: sending a first instruction to a target terminal through a communication bus, wherein the first instruction is used for indicating the target terminal to stop timing operation; receiving a timing parameter sent by the target terminal, wherein the timing parameter represents a time difference between the start of timing by the target terminal and the reception of the first instruction; and configuring a communication address for the target terminal according to the timing parameter.
Optionally, the sending the first instruction to the target terminal through the communication bus includes: after the installation of a plurality of target terminals is completed in sequence and the target terminals are accessed into the communication bus, the first instruction is sent to the target terminals, wherein the target terminals stop timing operation after receiving the first instruction, generate timing parameters and send the timing parameters to a data gateway, and the data gateway is arranged on the communication bus.
Optionally, the sending the first instruction to the target terminal further includes: and sending a notification to the target terminal, wherein the notification is that the data gateway starts to configure a communication address for the target terminal.
Optionally, configuring a communication address for the target terminal according to the timing parameter includes: and configuring address codes for the target terminals based on the sequence of the target terminals completing installation in sequence and the timing parameters.
Optionally, after the target terminal is configured with the address code based on the sequence in which the target terminal completes installation in sequence and the timing parameter, the method further includes: associating the timing parameter with the address code.
Optionally, after configuring a communication address for the target terminal according to the timing parameter, the method further includes: and sending the timing parameters and the communication addresses to the target terminal according to the sequence of the target terminal accessing the communication bus.
According to an embodiment of the present invention, there is also provided an apparatus for efficiently configuring a communication address, including: the execution module is used for executing timing operation when the target terminal is installed; the first receiving module is used for receiving a first instruction sent by a data gateway on a communication bus after a plurality of target terminals are sequentially installed and accessed to the communication bus, wherein the first instruction is used for indicating the target terminals to stop timing operation; the sending module is used for sending the timing parameters to the data gateway, wherein the data gateway is used for configuring the communication address of the target terminal according to the timing parameters; and the second receiving module is used for receiving the communication address configured by the data gateway.
Optionally, the first receiving module further includes: a first receiving unit, configured to receive a notification, where the notification is that the data gateway starts to configure a communication address for the target terminal.
Optionally, the sending module includes: a generating unit, configured to stop a timing operation based on the first instruction, and generate the timing parameter, where the timing parameter indicates a time difference between when the target terminal starts timing and when the target terminal receives the first instruction; and the sending unit is used for sending the timing parameters to the data gateway through the communication bus.
Optionally, the second receiving module includes: a second receiving unit, configured to receive configuration information sent by the data gateway after the data gateway completes configuration, where the configuration information includes an address code and a first timing parameter associated with the address code.
Optionally, the apparatus further comprises: the matching module is used for matching the timing parameter with the first timing parameter after receiving the configuration information sent by the data gateway; and the determining module is used for taking the address code as the communication address of the target terminal under the condition that the timing parameter is matched with the first timing parameter.
Optionally, the executing module includes: the starting unit is used for powering on the timing module by starting an internal power supply module in the target terminal; and the execution unit is used for executing timing operation through the timing module.
According to an embodiment of the present invention, there is also provided another apparatus for efficiently configuring a communication address, including: the system comprises a first sending module, a second sending module and a timing module, wherein the first sending module is used for sending a first instruction to a target terminal through a communication bus, and the first instruction is used for indicating the target terminal to stop timing operation; a receiving module, configured to receive a timing parameter sent by the target terminal, where the timing parameter indicates a time difference between when the target terminal starts timing and when the target terminal receives the first instruction; and the configuration module is used for configuring a communication address for the target terminal according to the timing parameter.
Optionally, the first sending module includes: the first sending unit is used for sending the first instruction to the target terminals after the target terminals are sequentially installed and access the communication bus, wherein the target terminals stop timing operation after receiving the first instruction, generate the timing parameters and send the timing parameters to the data gateway, and the data gateway is arranged on the communication bus.
Optionally, the first sending module further includes: and a second sending unit, configured to send a notification to the target terminal, where the notification is that the data gateway starts to configure a communication address for the target terminal.
Optionally, the configuration module includes: and the configuration unit is used for configuring address codes for the target terminals based on the sequence of the target terminals completing installation in sequence and the timing parameters.
Optionally, the apparatus further comprises: and the association module is used for associating the timing parameters with the address codes after the target terminal is configured with the address codes based on the sequence of the target terminal completing installation in sequence and the timing parameters.
Optionally, the apparatus further comprises: and the second sending module is used for sending the timing parameters and the communication addresses to the target terminal based on the sequence of the target terminal completing installation in sequence after the communication addresses are configured for the target terminal according to the timing parameters.
According to an embodiment of the present invention, there is also provided a system for efficiently configuring a communication address, including: the system comprises a plurality of target terminals and a data gateway, wherein the target terminals are connected with the data gateway through a communication bus, and each target terminal comprises: the execution module is used for executing timing operation when the target terminal is installed; the first receiving module is used for receiving a first instruction sent by a data gateway on a communication bus after a plurality of target terminals are sequentially installed and accessed to the communication bus, wherein the first instruction is used for indicating the target terminals to stop timing operation; the sending module is used for sending the timing parameters to the data gateway, wherein the data gateway is used for configuring the communication address of the target terminal according to the timing parameters; the second receiving module is used for receiving the communication address configured by the data gateway; the data gateway includes: the first sending module is used for sending a first instruction to the target terminal; a receiving module, configured to receive the timing parameter, where the timing parameter indicates a time difference between when the target terminal starts timing and when the target terminal receives the first instruction; and the configuration module is used for configuring a communication address for the target terminal according to the timing parameter.
According to another embodiment of the invention, an electric meter is further provided, and the electric meter comprises any one of the communication address configuration devices.
According to a further embodiment of the present invention, there is also provided a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
According to yet another embodiment of the present invention, there is also provided an electronic device, including a memory in which a computer program is stored and a processor configured to execute the computer program to perform the steps in any of the above method embodiments.
According to the invention, the target terminal is installed and starts to time; when a plurality of target terminals are sequentially installed and accessed into the communication bus, timing is stopped, each target terminal generates a timing parameter, each timing parameter is different due to different installation time of each target terminal, and a communication address is configured for each target terminal according to the difference of the timing parameters, so that the technical problems that the communication address of the terminal is easily set by people in the related art and the efficiency is low are solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a block diagram of a hardware structure in which a method for efficiently configuring a communication address according to an embodiment of the present invention is applied to a mobile terminal;
FIG. 2 is a flow chart of a method for efficient configuration of communication addresses according to an embodiment of the present invention;
FIG. 3 is a flow chart of another method for efficient configuration of communication addresses according to an embodiment of the invention;
FIG. 4 is a schematic diagram of an intelligent electricity meter and communication bus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a smart meter according to an embodiment of the present invention;
fig. 6 is a schematic diagram of a work flow of communication address assignment of the smart meter according to an embodiment of the present invention;
FIG. 7 is a block diagram of an apparatus for efficient configuration of communication addresses according to an embodiment of the present invention;
FIG. 8 is a block diagram of an alternative apparatus for efficient configuration of communication addresses in accordance with embodiments of the present invention;
fig. 9 is a block diagram of a system for efficiently configuring a communication address according to an embodiment of the present invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
Example 1
The method provided by the first embodiment of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Taking the operation on the mobile terminal as an example, fig. 1 is a block diagram of a hardware structure of the method for efficiently configuring a communication address applied to the mobile terminal according to the embodiment of the present invention. As shown in fig. 1, the mobile terminal may include one or more (only one shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, and optionally may also include a transmission device 106 for communication functions and an input-output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration, and does not limit the structure of the mobile terminal. For example, the mobile terminal may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
The memory 104 may be used to store computer programs, such as software programs and modules of application software, for example, a computer program corresponding to a method for efficiently configuring a communication address according to an embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer programs stored in the memory 104, thereby implementing the above-mentioned methods. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the mobile terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a Network adapter (NIC), which can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
The present invention provides a method for efficiently configuring a communication address, and fig. 2 is a flowchart of a method for efficiently configuring a communication address according to an embodiment of the present invention, as shown in fig. 2, the flowchart includes the following steps:
step S202, when the target terminal is installed, timing operation is executed;
the target terminal in this embodiment may be a smart meter, but is not limited thereto.
Step S204, after the installation of the target terminals is completed in sequence and the target terminals are accessed to the communication bus, receiving a first instruction sent by a data gateway on the communication bus, wherein the first instruction is used for indicating the target terminals to stop timing operation;
the communication mode of the communication bus in this embodiment may be a common communication mode such as RS485, CAN (Controller area network, TCP (Transmission Control Protocol), GPRS (General Packet Radio Service ), and the like.
Step S206, sending the timing parameters to a data gateway, wherein the data gateway is used for configuring a communication address for the target terminal according to the timing parameters;
step S208, receiving the communication address configured by the data gateway.
Optionally, the executing subject of the above steps may be a smart meter.
Through the steps, the target terminal is installed, and timing is started; when a plurality of target terminals are sequentially installed and accessed into the communication bus, timing is stopped, each target terminal generates a timing parameter, each timing parameter is different due to different installation time of each target terminal, and a communication address is configured for each target terminal according to the difference of the timing parameters, so that the technical problems that the communication address of the terminal is easily set by people in the related art and the efficiency is low are solved.
In one embodiment of the scheme, when all the electric meters are installed, the electric meters are connected to the communication bus; after all the electric meters are connected to the communication bus, all the electric meters complete power supply and receive a stop instruction (namely, the first instruction) from the data gateway.
In an optional embodiment of the present disclosure, receiving the first instruction sent by the data gateway on the communication bus further includes: and receiving a notification, wherein the notification is that the data gateway starts to configure a communication address for the target terminal. In this embodiment, after the target terminal receives the notification sent by the data gateway, it is determined that the data gateway needs to start allocating a communication address to the target terminal, and the electricity meter can send the timely parameter to the data gateway, so as to play a role in information prompt.
Optionally, sending the timing parameter to the data gateway includes: stopping timing operation based on the first instruction, and generating a timing parameter, wherein the timing parameter represents a time difference between the start of timing by the target terminal and the reception of the first instruction; and sending the timing parameters to the data gateway through a communication bus.
In an optional embodiment of the scheme, a function module for triggering timing by a key (or in a communication, vibration, plug and other modes) is added on the basis of a common electric meter, the timing function module starts timing when the electric meter is connected to a communication bus and supplies power, and after all the electric meters are installed and connected to the communication bus, all the electric meters finish supplying power; and stopping timing after receiving the stop instruction. Because the electric meters are installed in sequence, the time for starting timing of each electric meter is different, and the communication address allocation of the electric meters is completed on the basis of different time differences.
Optionally, receiving the communication address configured by the data gateway includes: after the data gateway completes configuration, configuration information sent by the data gateway is received, wherein the configuration information comprises an address code and a first timing parameter associated with the address code. In order to ensure that the communication address received by the target terminal corresponds to the target terminal, the data gateway not only needs to send the configured communication address to the target terminal, but also needs to send the timing parameter according to which the communication address is configured to the target terminal, so as to improve the accuracy of allocating the communication address.
Optionally, after receiving the configuration information sent by the data gateway, the method further includes: matching the timing parameter with the first timing parameter; and under the condition that the timing parameter is matched with the first timing parameter, the address code is used as the communication address of the target terminal.
In this embodiment, by matching the local timing parameter (i.e. the timing parameter) with the parameter sent from the data gateway (i.e. the first timing parameter), the communication address can be determined only if the local timing parameter is consistent with the parameter sent by the gateway; optionally, if the local timing parameter is consistent with the parameter sent by the gateway, an alarm message may be sent through the communication bus, and the number of the electric meter and the prompt of allocating an incorrect communication address are prompted.
Optionally, the performing the timing operation includes: powering up the timing module by starting an internal power supply module in the target terminal; and executing timing operation through the timing module. In this embodiment, the timing module is powered by the power supply module inside the electric meter, and optionally, the timing module is automatically triggered to execute timing operation in a key, jumper and other manners, so as to improve the efficiency of the whole process.
The present invention provides another efficient communication address configuration method, and fig. 3 is a flowchart of another efficient communication address configuration method according to an embodiment of the present invention, as shown in fig. 3, the flowchart includes the following steps:
step S302, a first instruction is sent to a target terminal through a communication bus, wherein the first instruction is used for indicating the target terminal to stop timing operation;
step S304, receiving a timing parameter sent by the target terminal, wherein the timing parameter represents a time difference between the start of timing by the target terminal and the reception of the first instruction;
and step S306, configuring a communication address for the target terminal according to the timing parameters.
Optionally, the main execution body of the above scheme is a data gateway.
In a scene of the scheme, when the intelligent communication electric meter acquires data, a user needs to set communication addresses one by one, and particularly in a plurality of use scenes such as a low-voltage power distribution room and the like, if the communication addresses of the intelligent communication electric meter need to be set in a manual mode in a one-to-one correspondence manner, huge time consumption is brought to the user, considerable workload is undoubtedly increased to the user, and professional quality requirements on the user are correspondingly improved; in addition, human setting is prone to errors. Through the embodiment, the data gateway automatically allocates the addresses by utilizing the timing function of the target terminal, so that the error rate and time consumption caused by manually setting the communication addresses of the electric meters one by one are avoided, the technical problems that the manual setting is easy to generate errors and has low efficiency are solved, and the working efficiency of users and the accuracy of setting the communication addresses are improved.
Optionally, sending the first instruction to the target terminal through the communication bus includes: after the installation of the target terminals is completed in sequence and the target terminals are accessed to the communication bus, a first instruction is sent to the target terminals, wherein the target terminals stop timing operation after receiving the first instruction, generate timing parameters and send the timing parameters to the data gateway, and the data gateway is arranged on the communication bus.
In an optional embodiment of the present disclosure, sending the first instruction to the target terminal further includes: and sending a notice to the target terminal, wherein the notice is that the data gateway starts to configure a communication address for the target terminal. In this embodiment, the data gateway informs the electric meter by sending a notification to the electric meter, and the data gateway starts to allocate a communication address to the electric meter, so that the electric meter sends the timing parameter in time, thereby playing a role of information prompt.
In an optional embodiment of the present disclosure, configuring a communication address for a target terminal according to a timing parameter includes: and configuring address codes for the target terminals based on the sequence of the target terminals completing installation in sequence and the timing parameters. In this embodiment, addresses are allocated according to the order in which each target terminal completes installation and the timing parameters, so that the target terminal and the data gateway can achieve a consensus, the two parties can conveniently coordinate with each other, and unnecessary workload is reduced.
Optionally, after configuring address codes for the target terminals based on the sequence in which the target terminals sequentially complete installation and the timing parameters, the method further includes: associating the timing parameter with the address code. In this embodiment, in order to ensure that the communication address received by the target terminal corresponds to the target terminal, after receiving the timing parameter and allocating a communication address according to the timing parameter, the data gateway associates the timing parameter with the communication address, so as to improve the accuracy of obtaining the communication address by the target terminal.
Optionally, after configuring the communication address for the target terminal according to the timing parameter, the method further includes: and sending the timing parameters and the communication addresses to the target terminal according to the sequence of the target terminal completing installation in sequence. In this embodiment, the timing parameters and the communication addresses are sent to the target terminal according to the sequence in which the target terminal completes installation in sequence, so that a consensus can be achieved between the target terminal and the data gateway, the two parties can conveniently coordinate with each other, and unnecessary workload is reduced.
The technical solution provided by the present invention is further described below with reference to a specific embodiment:
fig. 4 is a schematic structural diagram of a smart meter and a communication bus according to an embodiment of the present invention, and as shown in fig. 4, a data gateway is disposed on the communication bus, and in fig. 4, the smart meter 1, the smart meter 2, the smart meter 3, … …, and the smart meter n are counted into the communication bus. All the intelligent electric meters are connected to a communication bus, a data gateway is arranged on the bus and is responsible for data acquisition and analysis and assisting in completing address allocation, and the communication mode of the communication bus CAN be a common communication mode such as RS485, CAN, TCP and GPRS.
The internal structure of the intelligent electric meter is shown in fig. 5, fig. 5 is a schematic structural diagram of the intelligent electric meter provided according to the embodiment of the present invention, when the installation of the timing module is completed, the timing module is triggered in a manner of a key, a jumper, and the like, and continues to time until address allocation start information sent by the data gateway is received after the triggering, and records the timing parameters of the timing module itself; the internal power supply module is used for supplying power to the timing module before the system is completely installed and powered on; the electric quantity metering module is used for realizing the basic function of the electric meter for metering the electric quantity parameters; the communication module is in charge of carrying out data communication with the communication bus; the address request and distribution module is responsible for sending the timing module parameters to the data gateway through the communication module, receiving address distribution information sent by the data gateway, and setting addresses corresponding to the address request and distribution module as communication addresses.
Fig. 6 is a schematic diagram of a work flow of communication address assignment of the smart meter according to an embodiment of the present invention, as shown in fig. 6, including the following steps:
s601: the electric meter installation is completed, and when the first electric meter installation is completed (the electric meter installation is in a power-off environment);
s603: triggering the timing module to run, and triggering the timing function module in a key, jumper and other modes;
s605: all the electric meters are installed and connected to the communication bus, and all the electric meters are installed and connected to the communication bus according to the address numbering sequence (namely the preset sequence) in the S601 mode;
s607: the data gateway informs the start of address allocation, the system is powered on, the data gateway and all the intelligent electric meters start normal power supply work, and after the data gateway receives the notification of the start of address allocation, the electric meters wait for address allocation signals; the gateway sends information to the bus, informs all the intelligent electric meters of stopping the timing function modules, and at the moment, the address request and distribution module in each electric meter acquires timing parameters and sends the timing parameters to the communication bus through the communication module.
S609: each ammeter sends parameters acquired by the timing module through a communication bus, and the timing parameters are sent to the data gateway through the communication bus respectively;
s611: the data gateway receives and records timing parameters of all the electric meters on the bus;
s613: the data gateway distributes corresponding address numbers according to the size of the timing parameters, the data gateway receives the timing parameters of all the electric meters on the bus, when all the timing parameters of all the electric meters are completely sent, the timing parameters are sequenced, optionally, the number with the shortest timing time is 1 (or a settable initial address),
s615: the data gateway module sends the address allocation information to the communication bus, and the data gateway sends the address configuration information to the communication bus (the information comprises timing parameter information and address coding information);
s617: each ammeter receives address distribution information on the bus, and after an address distribution module recognizes address corresponding time as self information, the address distribution module records the corresponding address information as a self communication address;
s619: the intelligent electric meter uses the allocated address to carry out normal communication.
Through the process, the distribution of all the electric meter addresses is completed in a time sequence from small to large, the data gateway sends completion information after the distribution is completed, and the electric meter acquisition system starts to work normally.
Through the steps, when the target terminal is installed and starts to supply power, timing is carried out to obtain a timing parameter, the data gateway configures the corresponding communication address for the target terminal according to the timing parameter, automatic address allocation can be achieved, manual setting is not needed, and the technical problems that the communication address of the terminal is prone to error and low in efficiency due to manual setting in the related art are solved.
The timing function triggered at a specific time is added in the intelligent electric meter, the communication address of each electric meter is determined by the time difference of timing of each intelligent electric meter, the electric meters with the timing function are installed according to the address sequence during installation, and the fact that the electric meters are automatically arranged according to the serial numbers and the addresses after installation without manual operation is achieved.
Example 2
In this embodiment, an efficient configuration device for a communication address is further provided, and the device is used to implement the foregoing embodiments and preferred embodiments, which have already been described and are not described again. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 7 is a block diagram of an apparatus for efficiently configuring a communication address according to an embodiment of the present invention, as shown in fig. 7, the apparatus includes: an execution module 72, configured to execute a timing operation when the target terminal completes installation; a first receiving module 74, connected to the executing module 72, configured to receive a first instruction sent by a data gateway on a communication bus after the multiple target terminals are sequentially installed and access to the communication bus, where the first instruction is used to instruct the multiple target terminals to stop timing operation; a sending module 76, connected to the first receiving module 74, for sending the timing parameter to a data gateway, where the data gateway is configured to configure a communication address of the target terminal according to the timing parameter; and a second receiving module 78, connected to the sending module 76, for receiving the communication address configured by the data gateway.
Optionally, the first receiving module 74 further includes: the first receiving unit is used for receiving a notification, wherein the notification is that the data gateway starts to configure a communication address for the target terminal.
Optionally, the sending module 76 includes: the generating unit is used for stopping timing operation based on the first instruction and generating a timing parameter, wherein the timing parameter represents the time difference between the start of timing of the target terminal and the reception of the first instruction; and the sending unit is used for sending the timing parameters to the data gateway through the communication bus.
Optionally, the second receiving module 78 includes: and the second receiving unit is used for receiving the configuration information sent by the data gateway after the data gateway completes configuration, wherein the configuration information comprises an address code and a first timing parameter associated with the address code.
Optionally, the apparatus further comprises: the matching module is used for matching the timing parameter with the first timing parameter after receiving the configuration information sent by the data gateway; and the determining module is used for taking the address code as the communication address of the target terminal under the condition that the timing parameter is matched with the first timing parameter.
Optionally, the executing module 72 includes: the starting unit is used for electrifying the timing module by starting an internal power supply module in the target terminal; and the execution unit is used for executing the timing operation through the timing module.
Example 3
In this embodiment, another efficient communication address configuration device is further provided, and the device is used to implement the foregoing embodiments and preferred embodiments, which have already been described and are not described again. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
In this embodiment, another efficient configuration apparatus for communication addresses is further provided, and fig. 8 is a block diagram of another efficient configuration apparatus for communication addresses according to an embodiment of the present invention, as shown in fig. 8, the apparatus includes: the first sending module 82 is configured to send a first instruction to the target terminal through the communication bus, where the first instruction is used to instruct the target terminal to stop timing operation; a receiving module 84, connected to the first sending module 82, configured to receive a timing parameter sent by the target terminal, where the timing parameter indicates a time difference between when the target terminal starts timing and when the target terminal receives the first instruction; a configuration module 86, connected to the receiving module 84, for configuring a communication address for the target terminal according to the timing parameter.
Optionally, the first sending module 82 includes: the first sending unit is used for sending a first instruction to the target terminals after the target terminals are sequentially installed and the target terminals are accessed into the communication bus, wherein the target terminals stop timing operation after receiving the first instruction, generate timing parameters and send the timing parameters to the data gateway, and the data gateway is arranged on the communication bus.
Optionally, the first sending module 82 further includes: and the second sending unit is used for sending a notification to the target terminal, wherein the notification is that the data gateway starts to configure a communication address for the target terminal.
Optionally, the configuration module 86 includes: and the configuration unit is used for configuring address codes for the target terminals based on the sequence of the target terminals completing installation in sequence and the timing parameters.
Optionally, the apparatus further comprises: and the association module is used for associating the timing parameters with the address codes after the target terminal is configured with the address codes based on the sequence of the target terminal completing installation and the timing parameters in sequence.
Optionally, the apparatus further comprises: and the second sending module is used for sending the timing parameters and the communication addresses to the target terminal based on the sequence of the target terminal completing installation in sequence after the communication addresses are configured for the target terminal according to the timing parameters.
Example 4
According to another embodiment of the present invention, there is also provided a system for efficiently configuring a communication address, as shown in fig. 9, where fig. 9 is a block diagram of a system for efficiently configuring a communication address according to an embodiment of the present invention, the system including: a plurality of target terminals 90 and a data gateway 92, the plurality of target terminals 90 and the data gateway 92 are connected through a communication bus, wherein the target terminals 90 include: an execution module, configured to execute a timing operation when the target terminal 90 completes installation; a first receiving module, configured to receive a first instruction sent by a data gateway 92 on a communication bus 94 after a plurality of target terminals 90 are sequentially installed and the plurality of target terminals 90 access the communication bus 94, where the first instruction is used to instruct the plurality of target terminals 90 to stop timing operation; a sending module, configured to send the timing parameter to a data gateway 92, where the data gateway 92 is configured to configure a communication address of the target terminal according to the timing parameter; a second receiving module, configured to receive a communication address configured by the data gateway 92; a data gateway 92 comprising: the first sending module is used for sending a first instruction to the target terminal; the receiving module is used for receiving timing parameters, wherein the timing parameters represent the time difference between the time of starting timing of the target terminal and the time of receiving the first instruction; and the configuration module is used for configuring the communication address for the target terminal according to the timing parameter.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Example 5
Embodiments of the present invention also provide a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
Alternatively, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
s1, when the target terminal is installed, executing timing operation;
s2, after a plurality of target terminals are sequentially installed and accessed into a communication bus, receiving a first instruction sent by a data gateway on the communication bus, wherein the first instruction is used for indicating the target terminals to stop timing operation;
s3, sending timing parameters to the data gateway, wherein the data gateway is used for configuring a communication address for the target terminal according to the timing parameters;
and S4, receiving the communication address configured by the data gateway.
Alternatively, in another embodiment, the storage medium may be configured to store a computer program for performing the steps of:
s1, sending a first instruction to a target terminal through a communication bus, wherein the first instruction is used for indicating the target terminal to stop timing operation;
s2, receiving a timing parameter sent by the target terminal, wherein the timing parameter represents a time difference between the start of timing by the target terminal and the reception of the first instruction;
and S3, configuring a communication address for the target terminal according to the timing parameter.
Optionally, in this embodiment, the storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, when the target terminal is installed, executing timing operation;
s2, after a plurality of target terminals are sequentially installed and accessed into a communication bus, receiving a first instruction sent by a data gateway on the communication bus, wherein the first instruction is used for indicating the target terminals to stop timing operation;
s3, sending timing parameters to the data gateway, wherein the data gateway is used for configuring a communication address for the target terminal according to the timing parameters;
and S4, receiving the communication address configured by the data gateway.
Alternatively, in another embodiment, the processor may be configured to execute the following steps by a computer program:
s1, sending a first instruction to a target terminal through a communication bus, wherein the first instruction is used for indicating the target terminal to stop timing operation;
s2, receiving a timing parameter sent by the target terminal, wherein the timing parameter represents a time difference between the start of timing by the target terminal and the reception of the first instruction;
and S3, configuring a communication address for the target terminal according to the timing parameter.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
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 principle of the present invention should be included in the protection scope of the present invention.

Claims (19)

1. A method for configuring a communication address, comprising:
when the target terminal is installed, executing timing operation;
after a plurality of target terminals are sequentially installed and accessed into a communication bus, receiving a first instruction sent by a data gateway on the communication bus, wherein the first instruction is used for indicating the target terminals to stop timing operation;
sending a timing parameter to the data gateway, wherein the data gateway is used for configuring a communication address for the target terminal according to the timing parameter;
and receiving the communication address configured by the data gateway.
2. The method of claim 1, wherein receiving the first command sent by the data gateway on the communication bus further comprises:
and receiving a notification, wherein the notification is that the data gateway starts to configure a communication address for the target terminal.
3. The method of claim 1, wherein sending the timing parameters to the data gateway comprises:
stopping timing operation based on the first instruction, and generating the timing parameter, wherein the timing parameter represents a time difference between the start of timing by the target terminal and the reception of the first instruction;
and sending the timing parameters to the data gateway through the communication bus.
4. The method of claim 1, wherein receiving the configured address of the data gateway comprises:
after the data gateway completes configuration, receiving configuration information sent by the data gateway, wherein the configuration information comprises an address code and a first timing parameter associated with the address code.
5. The method of claim 4, wherein after receiving the configuration information sent by the data gateway, the method further comprises:
matching the timing parameter with the first timing parameter;
and under the condition that the timing parameter is matched with the first timing parameter, the address code is used as the communication address of the target terminal.
6. The method of claim 1, wherein the performing timing operations comprises:
powering up the timing module by starting an internal power supply module in the target terminal;
and executing timing operation through the timing module.
7. A method for configuring a communication address, comprising:
sending a first instruction to a target terminal through a communication bus, wherein the first instruction is used for indicating the target terminal to stop timing operation;
receiving a timing parameter sent by the target terminal, wherein the timing parameter represents a time difference between the start of timing by the target terminal and the reception of the first instruction;
and configuring a communication address for the target terminal according to the timing parameter.
8. The method of claim 7, wherein sending the first command to the target terminal over the communication bus comprises:
after the installation of a plurality of target terminals is completed in sequence and the target terminals are accessed into the communication bus, the first instruction is sent to the target terminals, wherein the target terminals stop timing operation after receiving the first instruction, generate timing parameters and send the timing parameters to a data gateway, and the data gateway is arranged on the communication bus.
9. The method of claim 7, wherein sending the first instruction to the target terminal further comprises:
and sending a notification to the target terminal, wherein the notification is that the data gateway starts to configure a communication address for the target terminal.
10. The method of claim 7, wherein configuring the destination terminal with a communication address according to the timing parameter comprises:
and configuring address codes for the target terminals based on the sequence of the target terminals completing installation in sequence and the timing parameters.
11. The method of claim 10, wherein after configuring address codes for the target terminals based on the order in which the target terminals sequentially complete installation and the timing parameters, the method further comprises:
associating the timing parameter with the address code.
12. The method of claim 7, wherein after configuring the destination terminal with a communication address according to the timing parameter, the method further comprises:
and sending the timing parameters and the communication addresses to the target terminal according to the sequence that the target terminal completes installation in sequence.
13. An apparatus for configuring a communication address, comprising:
the execution module is used for executing timing operation when the target terminal is installed;
the first receiving module is used for receiving a first instruction sent by a data gateway on a communication bus after a plurality of target terminals are sequentially installed and accessed to the communication bus, wherein the first instruction is used for indicating the target terminals to stop timing operation;
the sending module is used for sending the timing parameters to the data gateway, wherein the data gateway is used for configuring the communication address of the target terminal according to the timing parameters;
and the second receiving module is used for receiving the communication address configured by the data gateway.
14. The apparatus of claim 13, wherein the sending module comprises:
a generating unit, configured to stop a timing operation based on the first instruction, and generate the timing parameter, where the timing parameter indicates a time difference between when the target terminal starts to supply power and when the first instruction is received;
and the sending unit is used for sending the timing parameters to the data gateway through the communication bus.
15. An apparatus for configuring a communication address, comprising:
the system comprises a first sending module, a second sending module and a timing module, wherein the first sending module is used for sending a first instruction to a target terminal through a communication bus, and the first instruction is used for indicating the target terminal to stop timing operation;
a receiving module, configured to receive a timing parameter sent by the target terminal, where the timing parameter indicates a time difference between when the target terminal starts to supply power and when the first instruction is received;
and the configuration module is used for configuring a communication address for the target terminal according to the timing parameter.
16. The apparatus of claim 15, wherein the configuration module comprises:
and the configuration unit is used for configuring address codes for the target terminals based on the sequence of the target terminals completing installation in sequence and the timing parameters.
17. The apparatus of claim 16, further comprising:
and the association module is used for associating the timing parameters with the address codes after the target terminal is configured with the address codes based on the sequence of the target terminal completing installation in sequence and the timing parameters.
18. A system for configuring a communication address, comprising: a plurality of target terminals and a data gateway connected by a communication bus, wherein,
a target terminal, comprising: the execution module is used for executing timing operation when the target terminal is installed; the first receiving module is used for receiving a first instruction sent by a data gateway on a communication bus after a plurality of target terminals are sequentially installed and accessed to the communication bus, wherein the first instruction is used for indicating the target terminals to stop timing operation; the sending module is used for sending the timing parameters to the data gateway, wherein the data gateway is used for configuring the communication address of the target terminal according to the timing parameters; the second receiving module is used for receiving the communication address configured by the data gateway;
the data gateway includes: the first sending module is used for sending a first instruction to the target terminal; a receiving module, configured to receive the timing parameter, where the timing parameter indicates a time difference between when the target terminal starts timing and when the target terminal receives the first instruction; and the configuration module is used for configuring a communication address for the target terminal according to the timing parameter.
19. An electricity meter comprising the device of any one of claims 13-14.
CN201911252452.8A 2019-12-09 2019-12-09 Efficient configuration method, device and system for communication address and electric meter Active CN111131536B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911252452.8A CN111131536B (en) 2019-12-09 2019-12-09 Efficient configuration method, device and system for communication address and electric meter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911252452.8A CN111131536B (en) 2019-12-09 2019-12-09 Efficient configuration method, device and system for communication address and electric meter

Publications (2)

Publication Number Publication Date
CN111131536A true CN111131536A (en) 2020-05-08
CN111131536B CN111131536B (en) 2021-07-13

Family

ID=70497966

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911252452.8A Active CN111131536B (en) 2019-12-09 2019-12-09 Efficient configuration method, device and system for communication address and electric meter

Country Status (1)

Country Link
CN (1) CN111131536B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112017072A (en) * 2020-08-26 2020-12-01 阳光电源(上海)有限公司 Photovoltaic system, positioning method of devices in string, MLPE device and sequencing method of MLPE device
CN112510833A (en) * 2020-11-27 2021-03-16 珠海格力电器股份有限公司 Ammeter parameter configuration method, device and system
CN112511662A (en) * 2020-11-20 2021-03-16 珠海格力电器股份有限公司 System communication address generation and distribution method and device and air conditioning system
CN112017072B (en) * 2020-08-26 2024-05-14 阳光电源(上海)有限公司 Photovoltaic system, positioning method of equipment in string, MLPE equipment and sequencing method of MLPE equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101355593A (en) * 2008-09-23 2009-01-28 中国电信股份有限公司 Method for distributing IP address in wireless LAN and access equipment thereof
CN104079686A (en) * 2014-07-17 2014-10-01 福州瑞芯微电子有限公司 Setting method and distributing method for terminal equipment MAC address
CN105338129A (en) * 2015-11-11 2016-02-17 珠海格力电器股份有限公司 Automatic address dividing method, display terminal, and module terminal
CN105357714A (en) * 2015-09-24 2016-02-24 广东瑞德智能科技股份有限公司 Wireless electric appliance network and data communication method thereof
CN107135269A (en) * 2017-05-24 2017-09-05 深圳市杰云科技有限公司 A kind of method and system quickly numbered to cloud terminal
WO2018188447A1 (en) * 2017-04-13 2018-10-18 电信科学技术研究院有限公司 Ip address configuration method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101355593A (en) * 2008-09-23 2009-01-28 中国电信股份有限公司 Method for distributing IP address in wireless LAN and access equipment thereof
CN104079686A (en) * 2014-07-17 2014-10-01 福州瑞芯微电子有限公司 Setting method and distributing method for terminal equipment MAC address
CN105357714A (en) * 2015-09-24 2016-02-24 广东瑞德智能科技股份有限公司 Wireless electric appliance network and data communication method thereof
CN105338129A (en) * 2015-11-11 2016-02-17 珠海格力电器股份有限公司 Automatic address dividing method, display terminal, and module terminal
WO2018188447A1 (en) * 2017-04-13 2018-10-18 电信科学技术研究院有限公司 Ip address configuration method and device
CN107135269A (en) * 2017-05-24 2017-09-05 深圳市杰云科技有限公司 A kind of method and system quickly numbered to cloud terminal

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112017072A (en) * 2020-08-26 2020-12-01 阳光电源(上海)有限公司 Photovoltaic system, positioning method of devices in string, MLPE device and sequencing method of MLPE device
CN112017072B (en) * 2020-08-26 2024-05-14 阳光电源(上海)有限公司 Photovoltaic system, positioning method of equipment in string, MLPE equipment and sequencing method of MLPE equipment
CN112511662A (en) * 2020-11-20 2021-03-16 珠海格力电器股份有限公司 System communication address generation and distribution method and device and air conditioning system
CN112511662B (en) * 2020-11-20 2021-10-29 珠海格力电器股份有限公司 System communication address generation and distribution method and device and air conditioning system
CN112510833A (en) * 2020-11-27 2021-03-16 珠海格力电器股份有限公司 Ammeter parameter configuration method, device and system

Also Published As

Publication number Publication date
CN111131536B (en) 2021-07-13

Similar Documents

Publication Publication Date Title
EP3709432B1 (en) Battery pack and method for data transmission between battery pack and electronic device
CN111131536B (en) Efficient configuration method, device and system for communication address and electric meter
US11029941B2 (en) Electrical device and program update method thereof
CN102842939B (en) Battery management system and battery management method
CN111885144A (en) Equipment binding method and device
CN105141515A (en) Intelligent gateway
CN109142861A (en) The means of communication and device of intelligent electric meter, intelligent electric meter
CN113965904B (en) Device registration method, device and storage medium
CN110430574A (en) Terminal applies Activiation method, apparatus and system
CN107783773A (en) Firmware burning method and system
CN104331330A (en) Resource pool generation method and device
CN110535919B (en) Network access method and device of concentrator and power peak regulation system
CN110286603B (en) Method and device for sending indication information based on smart home operating system
CN114285692B (en) Communication control system, identity determination method, distribution method and equipment
CN111817820B (en) Equipment coding method and device and coding system based on two buses
CN106982156B (en) Priority setting method, device, communication system, equipment and readable storage medium storing program for executing
CN115080325A (en) PSU (power system unit) testing method, system, device and medium based on PDU (protocol data Unit)
CN103577291A (en) System and method for testing power failure of embedded system
CN110611589B (en) Control method and device of regional control system and air conditioning system
CN112367250A (en) Internet of things multi-protocol gateway
CN109640061A (en) A kind of meter copying device and system
CN109460305A (en) Use-case calling system and method, the first platform and the second platform
CN113949628B (en) Automatic equipment adding method and system
CN211063417U (en) Power supply system of meter reading equipment
CN115540358A (en) Water heater reservation processing method and device, storage medium and electronic device

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