CN109769029B - Communication connection method based on electricity consumption information acquisition system and terminal equipment - Google Patents

Communication connection method based on electricity consumption information acquisition system and terminal equipment Download PDF

Info

Publication number
CN109769029B
CN109769029B CN201910102921.1A CN201910102921A CN109769029B CN 109769029 B CN109769029 B CN 109769029B CN 201910102921 A CN201910102921 A CN 201910102921A CN 109769029 B CN109769029 B CN 109769029B
Authority
CN
China
Prior art keywords
control server
acquisition terminal
acquisition
server
terminal
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
CN201910102921.1A
Other languages
Chinese (zh)
Other versions
CN109769029A (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.)
State Grid Corp of China SGCC
Information and Telecommunication Branch of State Grid Hebei Electric Power Co Ltd
Original Assignee
State Grid Corp of China SGCC
Information and Telecommunication Branch of State Grid Hebei Electric Power 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 State Grid Corp of China SGCC, Information and Telecommunication Branch of State Grid Hebei Electric Power Co Ltd filed Critical State Grid Corp of China SGCC
Priority to CN201910102921.1A priority Critical patent/CN109769029B/en
Publication of CN109769029A publication Critical patent/CN109769029A/en
Application granted granted Critical
Publication of CN109769029B publication Critical patent/CN109769029B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Small-Scale Networks (AREA)
  • Power Sources (AREA)

Abstract

The invention provides a communication connection method and terminal equipment based on a power consumption information acquisition system, wherein the method is applied to the power consumption information acquisition system and comprises a control server and a plurality of acquisition terminals, and aiming at any acquisition terminal, the control server sends keep-alive messages to the acquisition terminals according to a preset time interval; if the times of sending the keep-alive messages to the acquisition terminal by the control server reach preset times and the control server does not receive the reply messages sent by the acquisition terminal, the control server judges that the connection between the control server and the acquisition terminal is invalid; and the control server is disconnected with the acquisition terminal and clears the stored conversation of the acquisition terminal. According to the invention, the real-time monitoring of the acquisition terminal can be realized, on one hand, the acquisition terminal which is reconnected can be ensured to be on line in time, on the other hand, the load resource consumption is avoided, and the data of the front-end intelligent ammeter can be effectively delivered to the rear-end acquisition system in time, safely and efficiently.

Description

Communication connection method based on electricity consumption information acquisition system and terminal equipment
Technical Field
The invention belongs to the technical field of computers, and particularly relates to a communication connection method based on a power utilization information acquisition system and terminal equipment.
Background
The power consumer electricity utilization information acquisition system is a system for acquiring, processing and monitoring electricity utilization information of a user in real time, and realizes functions of automatic acquisition of the electricity utilization information, abnormal metering monitoring, electricity utilization quality monitoring, electricity utilization analysis and management, information publishing, distributed energy monitoring, information interaction of intelligent electric equipment and the like.
The power consumer electricity information acquisition system generally comprises a plurality of acquisition terminals, and the acquisition terminals are used for acquiring the electricity information of the power consumers. The link between the acquisition terminal and the server of the acquisition system comprises a wireless transmission link, the acquisition terminal is frequently disconnected and connected due to the instability of wireless transmission, signals between the acquisition terminal and the server are stable, and after the acquisition terminal is connected to the server again, because the session connection established before disconnection of the acquisition terminal still exists in the aging time, the acquisition terminal can conflict with the session established before the connection of the acquisition terminal is connected again, so that the acquisition terminal can not be connected to the server in time, and the real-time performance and the accuracy of the acquisition information are seriously influenced.
Disclosure of Invention
In view of this, embodiments of the present invention provide a communication connection method and a terminal device based on an electricity consumption information acquisition system, so as to solve the problem in the prior art that a connection cannot be reestablished in time after an acquisition terminal is disconnected.
The first aspect of the embodiment of the invention provides a communication connection method based on a power consumption information acquisition system, which is applied to the power consumption information acquisition system, wherein the power consumption information acquisition system comprises a control server and a plurality of acquisition terminals, and the method comprises the following steps:
aiming at any acquisition terminal in the plurality of acquisition terminals, the control server sends a keep-alive message to the acquisition terminal according to a preset time interval;
if the times of sending the keep-alive messages to the acquisition terminal by the control server reach preset times and the control server does not receive the reply messages sent by the acquisition terminal, the control server judges that the connection between the control server and the acquisition terminal is invalid;
and the control server is disconnected with the acquisition terminal, and the session of the acquisition terminal stored on the control server is cleared.
A second aspect of embodiments of the present invention provides a computer-readable storage medium storing computer-readable instructions, which when executed by a processor implement the steps of:
aiming at any acquisition terminal in a plurality of acquisition terminals, the control server sends a keep-alive message to the acquisition terminal according to a preset time interval;
if the times of sending the keep-alive messages to the acquisition terminal by the control server reach preset times and the control server does not receive the reply messages sent by the acquisition terminal, the control server judges that the connection between the control server and the acquisition terminal is invalid;
and the control server is disconnected with the acquisition terminal, and the session of the acquisition terminal stored on the control server is cleared.
A third aspect of the embodiments of the present invention provides a terminal device, including a memory, a processor, and computer-readable instructions stored in the memory and executable on the processor, where the processor executes the computer-readable instructions to implement the following steps:
aiming at any acquisition terminal in a plurality of acquisition terminals, the control server sends a keep-alive message to the acquisition terminal according to a preset time interval;
if the times of sending the keep-alive messages to the acquisition terminal by the control server reach preset times and the control server does not receive the reply messages sent by the acquisition terminal, the control server judges that the connection between the control server and the acquisition terminal is invalid;
and the control server is disconnected with the acquisition terminal, and the session of the acquisition terminal stored on the control server is cleared.
The invention provides a communication connection method and terminal equipment based on a power consumption information acquisition system, wherein the method is applied to the power consumption information acquisition system and comprises a control server and a plurality of acquisition terminals, and aiming at any acquisition terminal, the control server sends keep-alive messages to the acquisition terminals according to a preset time interval; if the times of sending the keep-alive messages to the acquisition terminal by the control server reach preset times and the control server does not receive the reply messages sent by the acquisition terminal, the control server judges that the connection between the control server and the acquisition terminal is invalid; and the control server is disconnected with the acquisition terminal and clears the stored conversation of the acquisition terminal. According to the invention, the real-time monitoring of the acquisition terminal can be realized, on one hand, the acquisition terminal which is reconnected can be ensured to be on line in time, on the other hand, the load resource consumption is avoided, and the data of the front-end intelligent ammeter can be effectively delivered to the rear-end acquisition system in time, safely and efficiently.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic flowchart of a communication connection method based on a power consumption information acquisition system according to an embodiment of the present invention;
fig. 2 is a schematic diagram of an electricity consumption information collecting system according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of another communication connection method based on a power consumption information acquisition system according to an embodiment of the present invention;
fig. 4 is a block diagram of a communication connection device based on a power consumption information acquisition system according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a communication connection terminal device based on an electricity consumption information acquisition system according to an embodiment of the present invention.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
In order to explain the technical means of the present invention, the following description will be given by way of specific examples.
The embodiment of the invention provides a communication connection method based on a power utilization information acquisition system. With reference to fig. 1, the method comprises:
s101, aiming at any acquisition terminal in a plurality of acquisition terminals, the control server sends keep-alive messages to the acquisition terminals according to a preset time interval.
The method is applied to a power consumption information acquisition system as shown in fig. 2, and the power consumption information acquisition system comprises a control server and a plurality of acquisition terminals. Aiming at any acquisition terminal, the control server sends keep-alive messages, namely keep-alive messages, to the acquisition terminal at preset time intervals.
S102, if the times of sending the keep-alive messages to the acquisition terminal by the control server reach preset times and the control server does not receive the reply messages sent by the acquisition terminal, the control server judges that the connection between the control server and the acquisition terminal is invalid.
When the times of sending the keep-alive messages to the acquisition terminal by the control server reach the preset times and the reply messages sent by the acquisition terminal are still not received, the control server judges that the acquisition terminal is inactivated, and the connection between the acquisition terminal and the control server is failed.
S103, the control server disconnects with the acquisition terminal, and eliminates the session of the acquisition terminal stored in the control server.
After determining that the acquisition terminal is disconnected, the control server disconnects the connection with the acquisition terminal and clears the session of the acquisition terminal stored on the control server. When the connection between the acquisition terminal and the control server is reestablished, the problem that the acquisition terminal cannot be connected with the control server again in time because the control server still stores the session message established before the acquisition terminal is disconnected is solved, and meanwhile, the problem that the acquisition terminal still occupies the resources of the control server after the connection is disconnected is solved.
Further, after the control server disconnects the connection with the acquisition terminal and clears the session of the acquisition terminal stored on the control server, the method further includes:
the control server issues alarm information, the alarm information comprises identification information of the acquisition terminal, and the alarm information is used for indicating the disconnection between the acquisition terminal and the control server.
Further, when the network connection between the disconnected acquisition terminal and the control server is restored to normal and a session needs to be reestablished, the method further includes:
the control server receives a session request message sent by the acquisition terminal, wherein the session request message contains identification information of the acquisition terminal; the control server judges whether the control server stores the session corresponding to the identification information of the acquisition terminal according to the identification information of the acquisition terminal; and if the control server judges that the session corresponding to the identification information of the acquisition terminal is not stored, the control server sends a response message to the acquisition terminal to indicate the acquisition terminal to establish session connection with the control server.
The invention provides a communication connection method based on a power consumption information acquisition system, which is applied to the power consumption information acquisition system and comprises a control server and a plurality of acquisition terminals, wherein the control server sends keep-alive messages to the acquisition terminals according to a preset time interval aiming at any acquisition terminal; if the times of sending the keep-alive messages to the acquisition terminal by the control server reach preset times and the control server does not receive the reply messages sent by the acquisition terminal, the control server judges that the connection between the control server and the acquisition terminal is invalid; and the control server is disconnected with the acquisition terminal and clears the stored conversation of the acquisition terminal. According to the invention, the real-time monitoring of the acquisition terminal can be realized, on one hand, the acquisition terminal which is reconnected can be ensured to be on line in time, on the other hand, the load resource consumption is avoided, and the data of the front-end intelligent ammeter can be effectively delivered to the rear-end acquisition system in time, safely and efficiently.
With reference to fig. 3, an embodiment of the present invention further provides a method for communication connection based on an electricity consumption information acquisition system, where the method includes:
s301, the control server receives data processing requests sent by the plurality of acquisition terminals, wherein the data processing requests are used for requesting to process the data acquired by the acquisition terminals aiming at the data processing requests sent by any acquisition terminal.
As shown in fig. 2, the electricity consumption information collecting system further includes a plurality of front servers for processing data collected by the collecting terminal. Optionally, the control server forms a cluster with all the connected front-end servers, virtualizes a plurality of front-end servers as one server, presents all the front-end servers in the cluster to the mass acquisition terminal by using one virtual IP address, simplifies the configuration amount of the acquisition terminal, and allows the acquisition terminal to send a data request to the virtual IP address, and the control server receives a data processing request sent by the acquisition terminal.
S302, aiming at any data processing request, the control server sends the data processing request to one or more selected front-end servers so as to instruct the one or more selected front-end servers to process the data corresponding to the data processing request.
Specifically, this step can be implemented by two methods:
the first method comprises the following steps: the control server sends request messages to all the connected front-end servers; and the control server takes all the prepositive servers which send response messages to the control server as selected prepositive servers and sends the data processing request to the selected prepositive servers.
The second method comprises the following steps: the control server acquires the number of data processing requests currently corresponding to each front-end server; the control server selects the front-end server with the minimum number of the data processing requests corresponding to the current time as the selected front-end server; and the control server sends the data processing request to the selected front-end server.
Further, in order to improve the reliability of the front-end servers, the control server performs various health checks on each front-end server, specifically, for any front-end server, the control server checks the network connection state of the front-end server through a control message protocol ICMP at preset time intervals, checks the state of an operating system of the front-end server through a transmission control protocol TCP, and checks the state of an application layer of the front-end server through a hypertext transmission protocol to obtain the health state of the front-end server; and if the front-end server fails, the control server sends out alarm information, wherein the alarm information comprises identification information of the failed front-end server, and when calculation task allocation is carried out, the calculation tasks are allocated to one or more other selected front-end servers except the failed front-end server.
Optionally, the control server detects the health state of the front-end server once every 10 to 30 seconds, any layer of one front-end server fails, if the control server detects that the front-end server is overtime and has no response, the control server does not allocate the data processing request of the acquisition terminal to the failed server any more, and sends an alarm, and a new data processing request is allocated to the front-end server normally working in the cluster according to the two scheduling algorithms shown in step S302.
Further, after the failed front-end server is repaired, the control server can automatically find that the front-end server is restored to be normal through health check, and after a new data processing request is received, the data processing request is sent to the front-end server which is restored to be normal according to the two scheduling algorithms shown in the step S302, so that the data acquired by the acquisition terminal can be processed in real time.
The embodiment of the invention provides a communication connection method based on an electricity consumption information acquisition system, which is characterized in that a scheduling algorithm is established, and data acquired by an acquisition terminal is distributed to one or more front servers in a front server cluster, so that the processing efficiency of the data acquired by the acquisition terminal is improved, and the effect of system load balancing is achieved.
Fig. 4 is a schematic diagram of a communication connection device based on a power consumption information acquisition system according to an embodiment of the present invention, and with reference to fig. 4, the device includes: a transmitting unit 41, a judging unit 42, and a clearing unit 43;
for any one of the multiple acquisition terminals, the sending unit 41 sends a keep-alive message to the acquisition terminal according to a preset time interval;
if the number of times that the sending unit 41 sends the keep-alive messages to the acquisition terminals reaches a preset number of times and the communication connection device does not receive the reply messages sent by the acquisition terminals, the determining unit 42 determines that the connection between the acquisition terminals is failed;
the clearing unit 43 disconnects the connection with the acquisition terminal and clears the session of the acquisition terminal stored on the communication connection device.
Optionally, the apparatus further includes a publishing unit 44, configured to publish alarm information, where the alarm information includes identification information of the acquisition terminal, and the alarm information is used to indicate that the acquisition terminal is disconnected from the control server.
Optionally, the apparatus further includes a receiving unit 45, configured to receive a session request message sent by the acquisition terminal, where the session request message includes identification information of the acquisition terminal;
the judging unit 42 judges whether the session corresponding to the identification information of the acquisition terminal is stored in the control server according to the identification information of the acquisition terminal;
if the determining unit 42 determines that the session corresponding to the identification information of the collecting terminal is not stored, the sending unit 41 sends a response message to the collecting terminal to instruct the collecting terminal to establish a session connection with the control server.
Optionally, the power consumption information acquisition system further includes a plurality of front servers, and the receiving unit 45 is further configured to receive acquisition data sent by the plurality of acquisition terminals, where, for a data processing request sent by any acquisition terminal, the data processing request is used to request to process data acquired by the acquisition terminals;
for any data processing request, the sending unit 41 sends the data processing request to one or more selected front-end servers to instruct the one or more selected front-end servers to process the data corresponding to the data processing request.
Optionally, the sending unit 41 is further configured to: and sending a request message to all the connected front-end servers, taking all the front-end servers sending response messages to the control server as selected front-end servers, and sending the data processing request to the selected front-end servers.
Optionally, the sending unit 41 is further configured to: acquiring the quantity of data processing requests currently corresponding to each connected front-end server, selecting the front-end server with the minimum quantity of the data processing requests currently corresponding to the front-end server as the selected front-end server, and sending the data processing requests to the selected front-end server.
Optionally, the sending unit 41 is further configured to: for any pre-server, checking the network connection state of the pre-server through a control message protocol ICMP (Internet control protocol) at preset time intervals, checking the state of an operating system of the pre-server through a transmission control protocol TCP (Transmission control protocol), and checking the state of an application layer of the pre-server through a hypertext transfer protocol to obtain the health state of the pre-server;
if the pre-server fails, the issuing unit 44 sends an alarm message, where the alarm message includes identification information of the failed pre-server, and when performing calculation task allocation, the sending unit 41 allocates the calculation task to one or more selected pre-servers except the failed pre-server.
The invention provides a communication connection device based on a power consumption information acquisition system, which is applied to the power consumption information acquisition system and is a control server, wherein the control server sends keep-alive messages to acquisition terminals according to a preset time interval aiming at any acquisition terminal; if the times of sending the keep-alive messages to the acquisition terminal by the control server reach preset times and the control server does not receive the reply messages sent by the acquisition terminal, the control server judges that the connection between the control server and the acquisition terminal is invalid; and the control server is disconnected with the acquisition terminal and clears the stored conversation of the acquisition terminal. According to the invention, the real-time monitoring of the acquisition terminal can be realized, on one hand, the acquisition terminal which is reconnected can be ensured to be on line in time, on the other hand, the load resource consumption is avoided, and the data of the front-end intelligent ammeter can be effectively delivered to the rear-end acquisition system in time, safely and efficiently.
Fig. 5 is a schematic diagram of a terminal device according to an embodiment of the present invention. As shown in fig. 5, the terminal device 5 of this embodiment includes: a processor 50, a memory 51 and a computer program 52 stored in said memory 51 and executable on said processor 50, for example a communication connection program based on a power consumption information acquisition system. When the processor 50 executes the computer program 52, the steps in each of the above embodiments of the communication connection method based on the electricity consumption information collection system, such as the steps 101 to 103 shown in fig. 1, are implemented. Alternatively, the processor 50, when executing the computer program 52, implements the functions of the modules/units in the above-mentioned device embodiments, such as the functions of the modules 41 to 45 shown in fig. 4.
Illustratively, the computer program 52 may be partitioned into one or more modules/units that are stored in the memory 51 and executed by the processor 50 to implement the present invention. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution process of the computer program 52 in the terminal device 5.
The terminal device 5 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The terminal device may include, but is not limited to, a processor 50, a memory 51. Those skilled in the art will appreciate that fig. 5 is merely an example of a terminal device 5 and does not constitute a limitation of terminal device 5 and may include more or fewer components than shown, or some components may be combined, or different components, e.g., the terminal device may also include input-output devices, network access devices, buses, etc.
The Processor 50 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 51 may be an internal storage unit of the terminal device 5, such as a hard disk or a memory of the terminal device 5. The memory 51 may also be an external storage device of the terminal device 5, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the terminal device 5. Further, the memory 51 may also include both an internal storage unit and an external storage device of the terminal device 5. The memory 51 is used for storing the computer program and other programs and data required by the terminal device. The memory 51 may also be used to temporarily store data that has been output or is to be output.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the steps of the communication connection method based on the power consumption information acquisition system according to any of the above embodiments are implemented.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (7)

1. A communication connection method based on a power utilization information acquisition system is characterized in that the method is applied to the power utilization information acquisition system, the power utilization information acquisition system comprises a control server and a plurality of acquisition terminals, and the method comprises the following steps:
aiming at any acquisition terminal in the plurality of acquisition terminals, the control server sends a keep-alive message to the acquisition terminal according to a preset time interval;
if the times of sending the keep-alive messages to the acquisition terminal by the control server reach preset times and the control server does not receive the reply messages sent by the acquisition terminal, the control server judges that the connection between the control server and the acquisition terminal is invalid;
the control server disconnects the connection with the acquisition terminal, and clears the session of the acquisition terminal stored on the control server;
after the control server disconnects the connection with the acquisition terminal and clears the session of the acquisition terminal stored on the control server, the method further comprises the following steps:
the control server receives a session request message sent by the acquisition terminal, wherein the session request message contains identification information of the acquisition terminal;
the control server judges whether the control server stores the session corresponding to the identification information of the acquisition terminal according to the identification information of the acquisition terminal;
if the control server judges that the session corresponding to the identification information of the acquisition terminal is not stored, the control server sends a response message to the acquisition terminal to indicate the acquisition terminal to establish session connection with the control server;
the electricity consumption information acquisition system further comprises a plurality of front servers, the control server is connected with the plurality of front servers, and the method further comprises the following steps:
the control server receives data processing requests sent by the plurality of acquisition terminals, wherein the data processing requests are used for requesting to process the data acquired by the acquisition terminals aiming at the data processing requests sent by any acquisition terminal;
aiming at any data processing request, the control server sends the data processing request to one or more selected front-end servers so as to instruct the one or more selected front-end servers to process the data corresponding to the data processing request;
the method further comprises the following steps:
aiming at any front server, the control server checks the network connection state of the front server through a control message protocol ICMP at intervals of a preset time, checks the state of an operating system of the front server through a transmission control protocol TCP, and checks the state of an application layer of the front server through a hypertext transfer protocol to obtain the health state of the front server;
and if the front-end server fails, the control server sends out alarm information, wherein the alarm information comprises identification information of the failed front-end server, and when calculation task allocation is carried out, the calculation tasks are allocated to one or more other selected front-end servers except the failed front-end server.
2. The power consumption information collection system-based communication connection method according to claim 1, wherein after the control server disconnects the connection with the collection terminal and clears the session of the collection terminal stored on the control server, the method further comprises:
the control server issues alarm information, the alarm information comprises identification information of the acquisition terminal, and the alarm information is used for indicating the disconnection between the acquisition terminal and the control server.
3. The power consumption information collection system-based communication connection method according to claim 1, wherein the sending of the data processing request to one or more selected front-end servers by the control server comprises:
the control server sends request messages to all the connected front-end servers;
and the control server takes all the prepositive servers which send response messages to the control server as selected prepositive servers and sends the data processing request to the selected prepositive servers.
4. The power consumption information collection system-based communication connection method according to claim 1, wherein the sending of the data processing request to one or more selected front-end servers by the control server comprises:
the control server acquires the number of data processing requests currently corresponding to each front-end server;
the control server selects the front-end server with the minimum number of the data processing requests corresponding to the current time as the selected front-end server;
and the control server sends the data processing request to the selected front-end server.
5. A communication connection device based on a power utilization information acquisition system is characterized by comprising: the device comprises a sending unit, a judging unit and a clearing unit;
aiming at any acquisition terminal in a plurality of acquisition terminals, the sending unit sends a keep-alive message to the acquisition terminal according to a preset time interval;
if the times of sending the keep-alive messages to the acquisition terminals by the sending unit reach preset times and the communication connection device does not receive the reply messages sent by the acquisition terminals, the judging unit judges that the connection between the acquisition terminals is invalid;
the clearing unit is used for disconnecting the acquisition terminal and clearing the session of the acquisition terminal stored on the communication connection device;
the device also includes: a receiving unit;
the receiving unit is used for receiving a session request message sent by the acquisition terminal, wherein the session request message contains identification information of the acquisition terminal;
the judging unit judges whether the control server stores the session corresponding to the identification information of the acquisition terminal according to the identification information of the acquisition terminal;
if the judging unit judges that the session corresponding to the identification information of the acquisition terminal is not stored, the sending unit sends a response message to the acquisition terminal to indicate the acquisition terminal to establish session connection with the control server;
the power utilization information acquisition system further comprises a plurality of front-end servers, and the receiving unit is further used for receiving the acquired data sent by the plurality of acquisition terminals, wherein the data processing request is used for requesting to process the data acquired by the acquisition terminals aiming at the data processing request sent by any acquisition terminal;
for any data processing request, the sending unit sends the data processing request to one or more selected front-end servers to instruct the one or more selected front-end servers to process the data corresponding to the data processing request;
the device also includes: a release unit;
the sending unit is further configured to: for any pre-server, checking the network connection state of the pre-server through a control message protocol ICMP (Internet control protocol) at preset time intervals, checking the state of an operating system of the pre-server through a transmission control protocol TCP (Transmission control protocol), and checking the state of an application layer of the pre-server through a hypertext transfer protocol to obtain the health state of the pre-server;
if the front-end server fails, the issuing unit sends out alarm information, the alarm information comprises identification information of the failed front-end server, and when calculation task allocation is carried out, the sending unit allocates the calculation tasks to one or more other selected front-end servers except the failed front-end server.
6. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 4.
7. A terminal device, characterized in that the terminal device comprises a memory, a processor, a computer program being stored on the memory and being executable on the processor, the processor implementing the steps of the method according to any of claims 1 to 4 when executing the computer program.
CN201910102921.1A 2019-02-01 2019-02-01 Communication connection method based on electricity consumption information acquisition system and terminal equipment Active CN109769029B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910102921.1A CN109769029B (en) 2019-02-01 2019-02-01 Communication connection method based on electricity consumption information acquisition system and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910102921.1A CN109769029B (en) 2019-02-01 2019-02-01 Communication connection method based on electricity consumption information acquisition system and terminal equipment

Publications (2)

Publication Number Publication Date
CN109769029A CN109769029A (en) 2019-05-17
CN109769029B true CN109769029B (en) 2022-02-01

Family

ID=66455961

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910102921.1A Active CN109769029B (en) 2019-02-01 2019-02-01 Communication connection method based on electricity consumption information acquisition system and terminal equipment

Country Status (1)

Country Link
CN (1) CN109769029B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110213106B (en) * 2019-06-06 2022-04-19 宁波三星医疗电气股份有限公司 Equipment information management method, device and system and electronic equipment
CN110912905A (en) * 2019-11-28 2020-03-24 云南电网有限责任公司电力科学研究院 Laboratory data acquisition system and method
CN112578222B (en) * 2020-11-27 2022-09-13 国网山东省电力公司济宁供电公司 Power distribution terminal off-line detection method, system and platform
CN115134211B (en) * 2021-03-23 2024-04-09 中移(上海)信息通信科技有限公司 Power equipment information processing method, intelligent terminal and server equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101242417A (en) * 2008-03-03 2008-08-13 中兴通讯股份有限公司 An IP reservation method and access server for access users
CN101778019A (en) * 2010-04-01 2010-07-14 杭州华三通信技术有限公司 Heartbeat detection message sending method and equipment
CN102088372A (en) * 2009-12-03 2011-06-08 大唐移动通信设备有限公司 Heartbeat detecting method, system and equipment
CN103825765A (en) * 2014-02-28 2014-05-28 杭州华三通信技术有限公司 Method and device for device state polling
CN104618255A (en) * 2014-12-29 2015-05-13 国家电网公司 Front acquiring service system and data processing method
CN105634872A (en) * 2016-01-26 2016-06-01 上海斐讯数据通信技术有限公司 Method, device and system for monitoring online and offline states of wireless access node
CN106817428A (en) * 2017-02-13 2017-06-09 浙江风向标科技有限公司 A kind of method and apparatus of offline inspection

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090271517A1 (en) * 2008-04-25 2009-10-29 Webmessenger, Inc. Method and apparatus for wireless device reconnection handling

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101242417A (en) * 2008-03-03 2008-08-13 中兴通讯股份有限公司 An IP reservation method and access server for access users
CN102088372A (en) * 2009-12-03 2011-06-08 大唐移动通信设备有限公司 Heartbeat detecting method, system and equipment
CN101778019A (en) * 2010-04-01 2010-07-14 杭州华三通信技术有限公司 Heartbeat detection message sending method and equipment
CN103825765A (en) * 2014-02-28 2014-05-28 杭州华三通信技术有限公司 Method and device for device state polling
CN104618255A (en) * 2014-12-29 2015-05-13 国家电网公司 Front acquiring service system and data processing method
CN105634872A (en) * 2016-01-26 2016-06-01 上海斐讯数据通信技术有限公司 Method, device and system for monitoring online and offline states of wireless access node
CN106817428A (en) * 2017-02-13 2017-06-09 浙江风向标科技有限公司 A kind of method and apparatus of offline inspection

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"基于ICMP的IP地址回收技术研究";顾成武;《电脑知识与技术》;20181031;第14卷(第29期);第1-2页 *

Also Published As

Publication number Publication date
CN109769029A (en) 2019-05-17

Similar Documents

Publication Publication Date Title
CN109769029B (en) Communication connection method based on electricity consumption information acquisition system and terminal equipment
JP2018045671A (en) Method and apparatus for scheduling cloud server
CN102316133B (en) Method and device for balancing load
CN110474975B (en) Heartbeat processing method and device of application program, electronic equipment and storage medium
CN105007337A (en) Cluster system load balancing method and system thereof
CN108712485A (en) A kind of resource subscription method and apparatus of internet of things equipment
US10621018B2 (en) Link optimization for callout request messages
CN107204875B (en) Data reporting link monitoring method and device, electronic equipment and storage medium
CN110858843A (en) Service request processing method and device and computer readable storage medium
CN112866394B (en) Load balancing method, device, system, computer equipment and storage medium
CN113885794B (en) Data access method and device based on multi-cloud storage, computer equipment and medium
CN111835578B (en) Information transmission management method, information transmission management apparatus, and readable storage medium
CN108718335A (en) A kind of load-balancing method, device, Web server and storage medium
CN109831474B (en) Keep-alive system, method, server and readable storage medium for http long connection
CN104125115B (en) A kind of log information transfer approach and device
CN110597631B (en) Resource management method, monitoring server, proxy server, and storage medium
WO2017165999A1 (en) Network service implementation method, service controller, and communication system
CN114553778B (en) Heartbeat control method and device, storage medium and electronic equipment
CN110474807B (en) Log processing method and device
CN112491583A (en) Data acquisition and analysis method and device
US20190196873A1 (en) Management device and management method
CN104135406B (en) A kind of monitoring data transfer approach and device
CN112118275A (en) Overload processing method, Internet of things platform and computer readable storage medium
CN115118473B (en) Data processing method, device, equipment and storage medium
CN108108243B (en) Resource sharing system and method

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