CN110224872A - A kind of communication means, device and storage medium - Google Patents

A kind of communication means, device and storage medium Download PDF

Info

Publication number
CN110224872A
CN110224872A CN201910543027.8A CN201910543027A CN110224872A CN 110224872 A CN110224872 A CN 110224872A CN 201910543027 A CN201910543027 A CN 201910543027A CN 110224872 A CN110224872 A CN 110224872A
Authority
CN
China
Prior art keywords
terminal
terminal device
data
gateway
subset
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
CN201910543027.8A
Other languages
Chinese (zh)
Other versions
CN110224872B (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.)
Shanghai Dongtu Vision Industrial Technology Co Ltd
Kyland Technology Co Ltd
Original Assignee
Shanghai Dongtu Vision Industrial Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Dongtu Vision Industrial Technology Co Ltd filed Critical Shanghai Dongtu Vision Industrial Technology Co Ltd
Priority to CN201910543027.8A priority Critical patent/CN110224872B/en
Publication of CN110224872A publication Critical patent/CN110224872A/en
Application granted granted Critical
Publication of CN110224872B publication Critical patent/CN110224872B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/04Network management architectures or arrangements
    • H04L41/042Network management architectures or arrangements comprising distributed management centres cooperatively managing the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0663Performing the actions predefined by failover planning, e.g. switching to standby network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/12Network monitoring probes

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention discloses a kind of communication means, device and storage mediums, existing in the prior art when serial link breaks down to solve, the lower technical problem of the reliability of communication system data transmission.It include: by the main gateway device and standby gateway and N number of terminal device one serial network of composition in communication system, and main gateway device and standby gateway are respectively arranged to the head and the tail both ends of serial network, it allows main gateway device to acquire the data of N number of terminal device, obtains the first data set;Judge in the first data set whether include each terminal device in N number of terminal device data;If it has not, determining all terminal devices for not collecting data based on the terminal iidentification that data each in the first data set carry, first terminal subset is obtained;From the second data set that standby gateway is sent, the data of all terminal devices in second terminal subset are obtained, obtain third data set;Management equipment is sent by the first data set and third data set.

Description

A kind of communication means, device and storage medium
Technical field
The present invention relates to fields of communication technology, more particularly, to a kind of communication means, device and storage medium.
Background technique
It is the reliability of improve data transfer, it will usually to playing key work in communication system in field of communication technology Equipment carries out Redundancy Design.
Be the composition schematic diagram of a communication system for example, referring to Figure 1, the communication system by operational management platform pipe It manages equipment, primary gateway, standby gateway and 1~N platform terminal to constitute, between management equipment and primary gateway and primary gateway and standby net Closing between pipe is communicated by ICP/IP protocol, primary gateway and terminal 1, standby gateway and terminal 1 and terminal 1~end It is communicated between two neighboring terminal by MODBUS agreement in the N of end.
After primary gateway failures, the information of each terminal can be acquired by standby gateway and offer management equipment.But if between terminal Link failure (such as the link between connection terminal 2 and 3 disconnects), then will make primary gateway or standby gateway can not all collect therefore The information for hindering all terminals (i.e. 3~terminal N of terminal) after link (including terminal 3), to reduce entire communication system The reliability carried out data transmission.
In consideration of it, how improving the reliability of communication system data transmission when serial link breaks down, becoming one Technical problem urgently to be resolved.
Summary of the invention
The present invention provides a kind of communication means, device and storage medium, existing in the prior art serial to solve When link breaks down, the lower technical problem of the reliability of communication system data transmission.
In a first aspect, in order to solve the above technical problems, a kind of communication means provided in an embodiment of the present invention, is applied to communication Main gateway device in system, the communication system further include that management equipment, the standby gateway connecting with the main gateway device are set Standby, N number of terminal device, the main gateway device and the standby gateway and N number of terminal device form a serial net Network, the main gateway device and the standby gateway are respectively arranged at the head and the tail both ends of the serial network, the skill of this method Art scheme is as follows:
The data of N number of terminal device are acquired, the first data set is obtained;
Judge in first data set whether include each terminal device in N number of terminal device data;If It is no, based on the terminal iidentification that data each in first data set carry, determines all terminal devices for not collecting data, obtain Obtain first terminal subset;
From the second data set that the standby gateway is sent, the number of all terminal devices in second terminal subset is obtained According to acquisition third data set;Terminal device in the second terminal subset collects the institute of data for the standby gateway State the terminal device in first terminal subset, second data set include in the first terminal subset at least one terminal set Standby data;
The management equipment is sent by the main gateway device by first data set and the third data set, The management equipment is set to carry out data monitoring to N number of terminal device.
By forming a serial net by the main gateway device in communication system and for gateway and N number of terminal device Network, and main gateway device and standby gateway are respectively arranged to the head and the tail both ends of serial network, make main gateway device acquisition N number of The data of terminal device obtain the first data set;And judge in the first data set whether to include each terminal in N number of terminal device The data of equipment;If it has not, determining based on the terminal iidentification that data each in the first data set carry and all not collecting data Terminal device obtains first terminal subset;From the second data set that standby gateway is sent, institute in second terminal subset is obtained There are the data of terminal device, obtains third data set;Terminal device in second terminal subset is that standby gateway collects number According to first terminal subset in terminal device, the second data set includes the number of at least one terminal device in first terminal subset According to;Management equipment is sent by main gateway device by the first data set and third data set, sets management equipment to N number of terminal It is standby to carry out data monitoring.When the link in serial network breaks down, main gateway device can be sent from standby gateway the The data of the terminal device after fault point are obtained in two data sets, so as to effectively improve communication system data transmission Reliability.
Optionally, the method also includes:
The main gateway device sends configuration information to the standby gateway, and the configuration information is used to indicate described standby Gateway within a specified time carries out data acquisition to N number of terminal device;Or,
The main gateway device sends first message after obtaining the first terminal subset, to the standby gateway, The first message is used to indicate the standby gateway and carries out data acquisition to the terminal device in the first terminal subset.
Optionally, the data of N number of terminal device are acquired, the first data set is obtained, comprising:
To N number of terminal device poll one by one, it is often polled to a terminal device, acquires the number of counterpart terminal equipment According to, after the complete n-th terminal device of poll, acquisition first data set.
Optionally, first message is sent to the standby gateway, comprising:
If the total quantity of terminal device is greater than 1 in the first terminal subset, and if the end in the first terminal subset The position of end equipment is continuous, then sends the first information to the standby gateway;
If the total quantity of terminal device is greater than 1, and the terminal in the first terminal subset in the first terminal subset The position of equipment is discontinuous, it is determined that failure has occurred in the terminal device in the first terminal subset, by the first terminal Terminal device in subset is reported to the management equipment.
Optionally, first message is sent to the standby gateway, comprising:
If in the first terminal subset total quantity of terminal device be 1, and do not collect data terminal device be with The n-th terminal device of standby gateway connection, then send the first information to the standby gateway;
If the total quantity of terminal device is 1 in the first terminal subset, and the terminal device for not collecting data is not The n-th terminal device being connect with the standby gateway, it is determined that failure has occurred in the terminal device for not collecting data, and The equipment that failure has occurred is reported to the management equipment.
Optionally, it obtains in second terminal subset before the data of all terminal devices, comprising:
Judge in second data set whether the number comprising at least one terminal device in the first terminal subset According to;
If it is, be included in the first terminal subset so terminal device is configured to second terminal Collection;It is included in the first terminal subset simultaneously but is not included in the terminal device of the second terminal subset, determine and occur The terminal device of failure;
The terminal device that failure has occurred is reported to the management equipment.
Second aspect, the embodiment of the invention provides a kind of communication means, applied to the standby gateway in communication system, The communication system further includes management equipment, the main gateway device connecting with the standby gateway, N number of terminal device, described Main gateway device and the standby gateway and the N number of terminal device form a serial network, the main gateway device and The standby gateway is respectively arranged at the head and the tail both ends of the serial network, this method comprises:
The data of designated terminal equipment collection are acquired, the second data set is obtained;The designated terminal equipment collection is N number of end End equipment, or according to the terminal device for requiring progress data acquisition in the first information of main gateway device transmission;
Second data set is sent to the main gateway device.
Optionally, the data of designated terminal equipment collection are acquired, the second data set is obtained, comprising:
To the terminal device poll one by one that the designated terminal equipment is concentrated, it is often polled to a terminal device, acquisition pair The data for answering terminal device obtain second number after all terminal devices that the complete designated terminal equipment of poll is concentrated According to collection.
The third aspect, the embodiment of the present invention also provide a kind of communication device, comprising:
At least one processor, and
The memory being connect at least one described processor;
Wherein, the memory is stored with the instruction that can be executed by least one described processor, described at least one The instruction that device is stored by executing the memory is managed, the method as described in above-mentioned first aspect or second aspect is executed.
Fourth aspect, the embodiment of the present invention also provide a kind of computer readable storage medium, comprising:
The computer-readable recording medium storage has computer instruction, when the computer instruction is run on computers When, so that computer executes the method as described in above-mentioned first aspect or second aspect.
The technical solution in said one or multiple embodiments through the embodiment of the present invention, the embodiment of the present invention at least have There is following technical effect:
In embodiment provided by the invention, by by the main gateway device in communication system and for gateway and N A terminal device forms a serial network, and main gateway device and standby gateway are respectively arranged to the head and the tail two of serial network End allows main gateway device to acquire the data of N number of terminal device, obtains the first data set;And judge whether wrap in the first data set Include the data of each terminal device in N number of terminal device;If it has not, the terminal mark carried based on data each in the first data set Know, determine all terminal devices for not collecting data, obtains first terminal subset;The second data sent from standby gateway It concentrates, obtains the data of all terminal devices in second terminal subset, obtain third data set;Terminal in second terminal subset Equipment is that standby gateway collects the terminal device in the first terminal subset of data, and the second data set includes first terminal Concentrate the data of at least one terminal device;Management is sent by main gateway device for the first data set and third data set to set It is standby, so that management equipment is carried out data monitoring to N number of terminal device.When the link in serial network breaks down, primary gateway is set The standby data that the terminal device after fault point can be obtained from the second data set that standby gateway is sent, so as to effective Improve communication system data transmission reliability.
Detailed description of the invention
Fig. 1 is the composition schematic diagram of communication system in the prior art;
A kind of Fig. 2 connection schematic diagram of communication system provided in an embodiment of the present invention;
Fig. 3 is the flow chart for the communication means that main gateway device uses in communication system provided in an embodiment of the present invention;
Fig. 4 is the flow chart for the communication means that standby gateway uses in communication system provided in an embodiment of the present invention.
Specific embodiment
Implementation column of the present invention provides a kind of communication means, device and storage medium, with solve it is existing in the prior art When serial link breaks down, the lower technical problem of the reliability of communication system data transmission.
In order to solve the above technical problems, general thought is as follows for technical solution in the embodiment of the present application:
A kind of communication means is provided, applied to the main gateway device in communication system, which further includes that management is set Standby, standby gateway, N number of terminal device and interchanger, interchanger are connected to management equipment and main gateway device and standby gateway Between equipment, main gateway device and standby gateway and N number of terminal device form a serial network, main gateway device and standby net It closes equipment and is respectively arranged at the head and the tail both ends of serial network, this method comprises: acquiring the data of N number of terminal device, obtain first Data set;Judge in the first data set whether include each terminal device in N number of terminal device data;If it has not, based on the The terminal iidentification that each data carry in one data set determines all terminal devices for not collecting data, obtains first terminal Collection;From the second data set that standby gateway is sent, the data of all terminal devices in second terminal subset are obtained, obtain the Three data sets;Terminal device in second terminal subset is that standby gateway collects the terminal in the first terminal subset of data Equipment, the second data set include the data of at least one terminal device in first terminal subset;By the first data set and third number Management equipment is sent to by main gateway device according to collection, management equipment is made to carry out data monitoring to N number of terminal device.
Due in the above scheme, by by the main gateway device and standby gateway and N number of terminal in communication system Equipment forms a string of row networks, and main gateway device and standby gateway are respectively arranged to the head and the tail both ends of serial network, allows Main gateway device acquires the data of N number of terminal device, obtains the first data set;And judge in the first data set whether to include N number of The data of each terminal device in terminal device;If it has not, being determined based on the terminal iidentification that data each in the first data set carry All terminal devices for not collecting data obtain first terminal subset;From the second data set that standby gateway is sent, obtain The data of all terminal devices in second terminal subset are taken, third data set is obtained;Terminal device in second terminal subset is Standby gateway collects the terminal device in the first terminal subset of data, and the second data set includes that first terminal is concentrated to The data of a few terminal device;Management equipment is sent by main gateway device by the first data set and third data set, is made Management equipment carries out data monitoring to N number of terminal device.When the link in serial network breaks down, main gateway device can be from The data of the terminal device after fault point are obtained in the second data set that standby gateway is sent, so as to effectively improve The reliability of communication system data transmission.
In order to better understand the above technical scheme, below by attached drawing and specific embodiment to technical solution of the present invention It is described in detail, it should be understood that the specific features in the embodiment of the present invention and embodiment are to the detailed of technical solution of the present invention Thin explanation, rather than the restriction to technical solution of the present invention, in the absence of conflict, the embodiment of the present invention and embodiment In technical characteristic can be combined with each other.
The embodiment of the present invention provides a kind of communication means, applied to the main gateway device in communication system, please refer to Fig. 2 and Fig. 3, Fig. 2 are the connection schematic diagram of communication system provided in an embodiment of the present invention, and Fig. 3 is communication system provided in an embodiment of the present invention The flow chart for the communication means that main gateway device uses in system.
The communication system further includes management equipment, the standby gateway connecting with main gateway device, N number of terminal device, master Gateway and standby gateway can be connected to the network by interchanger, then carry out network company by interchanger and management equipment It connects, in addition to this, main gateway device and standby gateway and N number of terminal device also form a serial network (with master in Fig. 2 Link shown in A, the B of the end A, B of gateway to standby gateway is shown), main gateway device and standby gateway are set respectively It is placed in the head and the tail both ends of serial network.The treatment process of this method is as follows:
Step 301: acquiring the data of N number of terminal device, obtain the first data set.
Main gateway device and standby gateway are to have both data acquisition function, Serial Communication Function (as assisted using Modbus View communicated) and network communication (such as TCP/IP communication) function equipment, they pass through serial mode connect with terminal device, It carries out serial communication to carry out data acquisition to terminal device, and collected data is set by network communication and transmission to management It is standby, so that management equipment is carried out data monitoring to terminal device.
In the communication system, usually main gateway device is in running order, i.e., carries out data to N number of terminal device and adopt Collection, standby gateway are generally in standby mode, break down in main gateway device or main gateway device notifies standby gateway Just enter working condition when work.
The data that main gateway device acquires N number of terminal device can specifically be accomplished by the following way:
To N number of terminal device poll one by one, it is often polled to a terminal device, acquires the data of counterpart terminal equipment, After the complete n-th terminal device of poll, the first data set is obtained.
For example, N=8, then main gateway device is accessed since first terminal device, is accessed successfully by serial communication Data acquisition is carried out to first terminal device afterwards;After having accessed first terminal device, second terminal device is visited again, Data acquisition is carried out to second terminal device after accessing successfully, and so on, until having accessed the 8th terminal device, and The data of the 8th terminal device are acquired after accessing successfully.
It is to be appreciated that main gateway device access terminal device may succeed, it is also possible to it is unsuccessful, such as terminal device When breaking down, main gateway device cannot will successfully access the terminal device to break down, or when the chain in serial network Road is broken down (link between such as the 3rd terminal device and the 4th terminal device is disconnected), then main gateway device cannot access Terminal device (i.e. the 4th~the 8th terminal device) after fault point.Serial communication configuration is being carried out to main gateway device When, it is usually provided with main gateway device and accesses from first terminal device to n-th terminal device, and it is every to be provided with access The time-consuming duration of a terminal device, if not accessing successfully also, visits next terminal device after reaching time-consuming duration It asks, whether specific main gateway device access terminal device is successfully that the response of terminal device whether is received by main gateway device What information determined.
After obtaining the first data set, step 302 can be executed.
Step 302: judge in the first data set whether include each terminal device in N number of terminal device data;If It is no, it based on the terminal iidentification that data each in the first data set carry, determines all terminal devices for not collecting data, obtains the One terminal subset.
It, may be due to the failure of terminal device itself since main gateway device is when to N number of terminal device golden number according to acquisition Or link breaks down, and the data for the section terminating equipment that collect main gateway device can not in N number of terminal device, at this moment With regard to needing to carry out data acquisition to terminal device by standby gateway, main gateway device can be allowed standby by following two mode Gateway carries out data:
First way, main gateway device can be set before or after acquiring the data of N number of terminal device to standby gateway Preparation send configuration information, which is used to indicate standby gateway and within a specified time carries out data to N number of terminal device Acquisition.
For example, main gateway device sends configuration information to standby gateway, indicate that standby gateway exists in the configuration information Specified time is to carry out data acquisition to N number of terminal device in 3 minutes.Standby gateway sets N number of terminal according to configuration information Standby to carry out data acquisition, the mode that specific standby gateway carries out data acquisition to N number of terminal device is identical as main gateway device, Details are not described herein.
The second way, main gateway device can also send the to standby gateway after obtaining first terminal subset One message, the first message are used to indicate standby gateway and adopt to all terminal devices progress data in first terminal subset Collection.
If the total quantity of terminal device is greater than 1, and the position of the terminal device in first terminal subset in first terminal subset It sets continuously, then main gateway device sends the first information to standby gateway, makes standby gateway to the institute in first terminal subset There is terminal device to acquire into data.
Optionally, main gateway device sends the first information to standby gateway, comprising:
If the total quantity of terminal device is greater than 1, and the position of the terminal device in first terminal subset in first terminal subset It sets discontinuous, it is determined that failure has occurred in the terminal device in first terminal subset, by the terminal device in first terminal subset It is reported to management equipment, management equipment is made to carry out timely debugging of warning to user.
For example, it is assumed that N=8, the first data set includes data of first terminal device to the 6th terminal device.
Main gateway device judges the data that 6 terminal devices are only included in the first data set, and according to the first data The terminal iidentification for concentrating each data to carry, determines the data for not collecting the 7th and the 8th terminal device, and then by the 7th The set of a terminal device and the 8th terminal device composition is as first terminal subset.
Main gateway device judges that the total quantity of terminal device in first terminal subset is greater than 1, and in first terminal subset Terminal device position be it is continuous, main gateway device sends the first information to standby gateway at this time, allows standby gateway Data acquisition is carried out to all terminal devices in first terminal subset.Specifically judge the terminal device in first terminal subset Whether whether position is continuous, can continuously be determined by judging the number of the terminal device in first terminal subset.
Assuming that above-mentioned first data set includes that first terminal device is set to third terminal device and the 5th terminal The data of standby, the 6th terminal device, the 8th terminal device.Then first terminal subset includes the 4th terminal device and the 7th A terminal device, main gateway device may determine that the total quantity of terminal device in first terminal subset is greater than 1, but first terminal The position of terminal device in subset be it is discrete, at this time main gateway device determine the terminal device in first terminal subset send out Failure has been given birth to, and the terminal device in first terminal subset is reported to management equipment, management equipment is made to warn to user, has been excluded The failure of terminal device in first terminal subset.
It should be noted that if standby gateway is configured as carrying out data acquisition to N number of terminal device, then primary gateway Equipment is just not required to send the first information to standby gateway again.In embodiment provided by the invention, standby gateway is acquired Terminal device data composition collection be combined into the second data set.
Optionally, main gateway device sends the first information to standby gateway, comprising:
If the total quantity of terminal device is 1 in first terminal subset, and the terminal device for not collecting data is and standby net The n-th terminal device of equipment connection is closed, then sends the first information to standby gateway.
If in first terminal subset the total quantity of terminal device be 1, and the terminal device for not collecting data be not with it is standby The n-th terminal device of gateway connection, it is determined that failure has occurred in the terminal device for not collecting data, and will have occurred The equipment of failure is reported to management equipment.
For example, N=8, the first data set includes data of first terminal device to the 7th terminal device.
Main gateway device determines that first terminal subset is made of the 8th terminal device, and main gateway device judges that first is whole The total quantity of terminal device is 1 in extremal subset, and the terminal device in first terminal subset is the connect with standby gateway Eight terminal devices, main gateway device sends the first information to standby gateway at this time, indicates that standby gateway acquires the 8th The data of terminal device.
For another example, N=8, the first data set include first terminal device to third terminal device and the 5th to the The data of eight terminal devices.
Main gateway device determines that first terminal subset only has the 4th terminal device composition, then judges first terminal subset The total quantity of middle terminal device is 1, and the terminal device in first terminal subset is not the 8th connect with standby gateway Terminal device, main gateway device determines that failure has occurred in the 4th terminal device at this time, and the 4th terminal device is reported to pipe Manage equipment.
After obtaining first terminal subset, step 303 can be executed.
Step 303: from the second data set that standby gateway is sent, obtaining all terminal devices in second terminal subset Data, obtain third data set;Terminal device in second terminal subset is the first end that standby gateway collects data Terminal device in extremal subset, the second data set include the data of at least one terminal device in first terminal subset.
It obtains in second terminal subset before the data of all terminal devices, due to being configured as regardless of standby gateway The data for acquiring N number of terminal device, according further to the data of the terminal device in first information acquisition first terminal subset, standby net Closing equipment all may only collect the data of the section terminating equipment in first terminal subset, or even not acquire one first eventually The data of terminal device in extremal subset.
At this point, whether main gateway device needs to judge in the second data set to include that at least one of first terminal subset is whole The data of end equipment;If it is, all terminal devices being included in first terminal subset are configured to second terminal subset;Together When be included in first terminal subset but be not included in the terminal device of second terminal subset, determine that the terminal of failure, which has occurred, to be set It is standby;The terminal device that failure has occurred is reported to management equipment.
For example, it is assumed that N=8, first terminal subset is made of the 5th~8 terminal device, and the second data set is by the 6th~8 The data of terminal device form.
The device identification that main gateway device carries in the data according to the 6th~8 terminal device, judges the second data set In the data comprising at least one terminal device in first terminal subset, the 6th~8 terminal device is configured to second at this time Terminal subset, and obtain the third data set of the data composition of second terminal subset (i.e. the 6th~8 terminal device).It is main simultaneously Gateway determines that failure has occurred in the 5th terminal device according to first terminal subset and second terminal subset, by the 5th end End equipment is reported to management equipment, and management equipment is made to warn user, and user is made to exclude the event of the 5th terminal device in time Barrier.
After obtaining third data set, step 304 can be executed.
Step 304: management equipment being sent by gateway by the first data set and third data set, makes management equipment Data monitoring is carried out to N number of terminal device.
After the communication process of main gateway device is introduced in communication system, standby gateway will be led to below Letter process is introduced.
Fig. 4 is referred to, the stream for the communication means that standby gateway uses in the communication system improved for the embodiment of the present invention Cheng Tu.
Based on the same inventive concept, a kind of communication means is provided in one embodiment of the invention, applied in communication system Standby gateway, communication system further include management equipment, the main gateway device connecting with standby gateway, N number of terminal device, master Gateway and standby gateway can be connected to the network by interchanger, then carry out network company by interchanger and management equipment It connects, in addition to this, main gateway device and standby gateway and N number of terminal device also form a serial network, main gateway device The head and the tail both ends of serial network are respectively arranged at standby gateway, this method comprises:
Step 401: the data of acquisition designated terminal equipment collection obtain the second data set;Designated terminal equipment collection is N number of end End equipment, or according to the terminal device for requiring progress data acquisition in the first information of main gateway device transmission.
Specifically, the data of acquisition designated terminal equipment collection, obtain the second data set, comprising:
To the terminal device poll one by one that designated terminal equipment is concentrated, be often polled to a terminal device, acquire it is corresponding eventually The data of end equipment obtain the second data set after all terminal devices that the complete designated terminal equipment of poll is concentrated.
Due to the process of the data of standby gateway acquisition designated terminal equipment, N number of end is acquired with aforementioned main gateway device The process of end equipment is similar, therefore details are not described herein.
After obtaining the second data set, step 402 can be executed.
Step 402: the second data set is sent to main gateway device.
Since the communication process of standby gateway being described in detail in the embodiment of main gateway device, Therefore details are not described herein.
Based on the same inventive concept, it is provided in the embodiment of the present invention a kind of for communication device, comprising: at least one Device is managed, and
The memory being connect at least one described processor;
Wherein, the memory is stored with the instruction that can be executed by least one described processor, described at least one The instruction that device is stored by executing the memory is managed, the communication party of main gateway device as described above or standby gateway is executed Method.
Based on the same inventive concept, the embodiment of the present invention also mentions a kind of computer readable storage medium, comprising:
The computer-readable recording medium storage has computer instruction, when the computer instruction is run on computers When, so that computer executes the communication means of main gateway device as described above or standby gateway.
In embodiment provided by the invention, by by the main gateway device in communication system and for gateway and N A terminal device forms a serial network, and main gateway device and standby gateway are respectively arranged to the head and the tail two of serial network End allows main gateway device to acquire the data of N number of terminal device, obtains the first data set;And judge whether wrap in the first data set Include the data of each terminal device in N number of terminal device;If it has not, the terminal mark carried based on data each in the first data set Know, determine all terminal devices for not collecting data, obtains first terminal subset;The second data sent from standby gateway It concentrates, obtains the data of all terminal devices in second terminal subset, obtain third data set;Terminal in second terminal subset Equipment is that standby gateway collects the terminal device in the first terminal subset of data, and the second data set includes first terminal Concentrate the data of at least one terminal device;Management is sent by main gateway device for the first data set and third data set to set It is standby, so that management equipment is carried out data monitoring to N number of terminal device.When the link in serial network breaks down, primary gateway is set The standby data that the terminal device after fault point can be obtained from the second data set that standby gateway is sent, so as to effective Improve communication system data transmission reliability.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as the production of method, system or computer program Product.Therefore, in terms of the embodiment of the present invention can be used complete hardware embodiment, complete software embodiment or combine software and hardware Embodiment form.Moreover, it wherein includes computer available programs generation that the embodiment of the present invention, which can be used in one or more, The meter implemented in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of code The form of calculation machine program product.
The embodiment of the present invention be referring to according to the method for the embodiment of the present invention, equipment (system) and computer program product Flowchart and/or the block diagram describe.It should be understood that can be realized by computer program instructions in flowchart and/or the block diagram The combination of process and/or box in each flow and/or block and flowchart and/or the block diagram.It can provide these calculating Processing of the machine program instruction to general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices Device is to generate a machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute For realizing the function of being specified in one or more flows of the flowchart and/or one or more blocks of the block diagram Device.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.

Claims (10)

1. a kind of communication means, applied to the main gateway device in communication system, which is characterized in that the communication system further includes Management equipment, standby gateway, N number of terminal device, the main gateway device is connect with the standby gateway, and the major network Close equipment and the standby gateway and one serial network of N number of terminal device composition, the main gateway device and described Standby gateway is respectively arranged at the head and the tail both ends of the serial network, which comprises
The data of N number of terminal device are acquired, the first data set is obtained;
Judge in first data set whether include each terminal device in N number of terminal device data;If it has not, base The terminal iidentification that each data carry in first data set determines all terminal devices for not collecting data, obtains the One terminal subset;
From the second data set that the standby gateway is sent, the data of all terminal devices in second terminal subset are obtained, Obtain third data set;Terminal device in the second terminal subset is that the standby gateway collects described the of data The terminal device that one null terminator Null is concentrated, second data set includes at least one terminal device in the first terminal subset Data;
The management equipment is sent by the main gateway device by first data set and the third data set, makes institute It states management equipment and data monitoring is carried out to N number of terminal device.
2. communication means as described in claim 1, which is characterized in that further include:
The main gateway device sends configuration information to the standby gateway, and the configuration information is used to indicate the standby gateway Equipment within a specified time carries out data acquisition to N number of terminal device;Or,
The main gateway device sends first message after obtaining the first terminal subset, to the standby gateway, described First message is used to indicate the standby gateway and carries out data acquisition to the terminal device in the first terminal subset.
3. communication means as described in claim 1, which is characterized in that the data of acquisition N number of terminal device obtain first Data set, comprising:
To N number of terminal device poll one by one, it is often polled to a terminal device, acquires the data of counterpart terminal equipment, After the complete n-th terminal device of poll, first data set is obtained.
4. communication means as claimed in claim 2, which is characterized in that send first message to the standby gateway, comprising:
If the total quantity of terminal device is greater than 1, and the terminal device in the first terminal subset in the first terminal subset Position it is continuous, then send the first information to the standby gateway;
If the total quantity of terminal device is greater than 1, and the terminal device in the first terminal subset in the first terminal subset Position it is discontinuous, it is determined that failure has occurred in the terminal device in the first terminal subset, by the first terminal subset In terminal device be reported to the management equipment.
5. communication means as claimed in claim 2, which is characterized in that send first message to the standby gateway, comprising:
If the total quantity of terminal device is 1 in the first terminal subset, and the terminal device for not collecting data is and standby net The n-th terminal device of equipment connection is closed, then sends the first information to the standby gateway;
If the total quantity of terminal device is 1 in the first terminal subset, and the terminal device for not collecting data is not and institute State the n-th terminal device of standby gateway connection, it is determined that failure has occurred in the terminal device for not collecting data, and will hair The equipment for having given birth to failure is reported to the management equipment.
6. communication means as claimed in claim 5, which is characterized in that obtain the number of all terminal devices in second terminal subset According to before, comprising:
Judge in second data set whether the data comprising at least one terminal device in the first terminal subset;
If it is, be included in the first terminal subset so terminal device is configured to the second terminal subset;Together When be included in the first terminal subset but be not included in the terminal device of the second terminal subset, determination failure has occurred Terminal device;
The terminal device that failure has occurred is reported to the management equipment.
7. a kind of communication means, applied to the standby gateway in communication system, which is characterized in that the communication system further includes Management equipment, the main gateway device being connect with the standby gateway, N number of terminal device, the main gateway device and described standby Gateway and N number of terminal device form a serial network, the main gateway device and the standby gateway difference It is set to the head and the tail both ends of the serial network, which comprises
The data of designated terminal equipment collection are acquired, the second data set is obtained;The designated terminal equipment collection is that N number of terminal is set It is standby, or according to the terminal device for requiring progress data acquisition in the first information of main gateway device transmission;
Second data set is sent to the main gateway device.
8. communication means as claimed in claim 7, which is characterized in that the data of acquisition designated terminal equipment collection obtain second Data set, comprising:
To the terminal device poll one by one that the designated terminal equipment is concentrated, be often polled to a terminal device, acquire it is corresponding eventually The data of end equipment obtain second data set after all terminal devices that the complete designated terminal equipment of poll is concentrated.
9. a kind of communication device characterized by comprising
At least one processor, and
The memory being connect at least one described processor;
Wherein, the memory is stored with the instruction that can be executed by least one described processor, at least one described processor By executing the instruction of the memory storage, the method according to claim 1 is executed.
10. a kind of computer readable storage medium, it is characterised in that:
The computer-readable recording medium storage has computer instruction, when the computer instruction is run on computers, So that computer executes such as method of any of claims 1-8.
CN201910543027.8A 2019-06-21 2019-06-21 Communication method, device and storage medium Active CN110224872B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910543027.8A CN110224872B (en) 2019-06-21 2019-06-21 Communication method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910543027.8A CN110224872B (en) 2019-06-21 2019-06-21 Communication method, device and storage medium

Publications (2)

Publication Number Publication Date
CN110224872A true CN110224872A (en) 2019-09-10
CN110224872B CN110224872B (en) 2022-03-22

Family

ID=67814325

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910543027.8A Active CN110224872B (en) 2019-06-21 2019-06-21 Communication method, device and storage medium

Country Status (1)

Country Link
CN (1) CN110224872B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111683142A (en) * 2020-06-08 2020-09-18 广东美的暖通设备有限公司 Metering device, metering method, and computer-readable storage medium
CN113014405A (en) * 2019-12-19 2021-06-22 中兴通讯股份有限公司 Processing method of data acquisition instruction, SNMP proxy equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102064605A (en) * 2010-11-25 2011-05-18 深圳市科陆电子科技股份有限公司 Method for realizing mutual hot backup of electric energy acquisition systems
CN106846783A (en) * 2017-04-14 2017-06-13 光科技股份有限公司 A kind of electricity consumption acquisition method based on redundant bus, modularity terminal and system
CN108289050A (en) * 2018-01-25 2018-07-17 北京海智元科技有限公司 A kind of transmitter loop network control system and control method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102064605A (en) * 2010-11-25 2011-05-18 深圳市科陆电子科技股份有限公司 Method for realizing mutual hot backup of electric energy acquisition systems
CN106846783A (en) * 2017-04-14 2017-06-13 光科技股份有限公司 A kind of electricity consumption acquisition method based on redundant bus, modularity terminal and system
CN108289050A (en) * 2018-01-25 2018-07-17 北京海智元科技有限公司 A kind of transmitter loop network control system and control method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113014405A (en) * 2019-12-19 2021-06-22 中兴通讯股份有限公司 Processing method of data acquisition instruction, SNMP proxy equipment and storage medium
CN111683142A (en) * 2020-06-08 2020-09-18 广东美的暖通设备有限公司 Metering device, metering method, and computer-readable storage medium
CN111683142B (en) * 2020-06-08 2023-02-21 上海美控智慧建筑有限公司 Metering apparatus, metering method, and computer-readable storage medium

Also Published As

Publication number Publication date
CN110224872B (en) 2022-03-22

Similar Documents

Publication Publication Date Title
CN103532940B (en) network security detection method and device
CN108989136B (en) Business end-to-end performance monitoring method and device
CN105790990B (en) A kind of method and its system for supervising adapted telecommunication business
CN103441861B (en) A kind of data record generation method and device
CN108092854B (en) Test method and device for train-level Ethernet equipment based on IEC61375 protocol
CN104283780B (en) The method and apparatus for establishing data transfer path
CN102420765B (en) Method and device for determining physical link between switchboard and terminal
CN108039955A (en) A kind of electric power IMS network method for diagnosing faults and equipment
CN109947585A (en) The processing method and processing device of PCIE device failure
CN109104335A (en) A kind of industrial control equipment network attack test method and system
CN110224872A (en) A kind of communication means, device and storage medium
EP2807563A1 (en) Network debugging
CN104639386B (en) fault location system and method
CN105743699A (en) Fault early warning method and system for virtual environment
CN109753401A (en) Monitoring method, collection terminal, control end, monitoring system and device
CN108683528A (en) A kind of data transmission method, central server, server and data transmission system
CN106487598B (en) The more examples of isomery redundancy Snmp agreements realize system and its implementation
CN101252477B (en) Determining method and analyzing apparatus of network fault root
CN106060048A (en) Network resource access method and network resource access device
CN108494625A (en) A kind of analysis system on network performance evaluation
CN113542092A (en) Openstack-based automatic drainage method
CN100413248C (en) Improved method and system for carrying out charging based on flow
CN107769993A (en) Towards the data traffic monitoring method of power network big data distributed system
CN110896544B (en) Fault delimiting method and device
CN116302862A (en) Monitoring alarm method and system under micro-service architecture

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