Data communication method, device, electronic equipment and storage medium

文档序号:1957204 发布日期:2021-12-10 浏览:19次 中文

阅读说明:本技术 数据通信方法、装置、电子设备及存储介质 (Data communication method, device, electronic equipment and storage medium ) 是由 俞一帆 于 2021-09-10 设计创作,主要内容包括:本申请提供一种数据通信方法、装置、电子设备及存储介质,涉及通信技术领域。该方法可以应用于联网监控设备,联网监控设备与联网设备通信连接,联网监控设备包括主无线通信终端和至少一个备用无线通信终端,该数据通信方法包括:若确定主无线通信链路通信异常,则向联网设备发送告警信号;接收联网设备根据告警信号发送的告警报文,并通过备用无线通信终端将告警报文转发给控制设备,以使控制设备根据告警报文生成第一控制指令并通过备用无线通信终端将第一控制指令转发给联网设备,应用该方法,可以在主无线通信链路通信异常时,继续使用备用无线通信链路实现控制设备与联网设备之间的通信,提高数据通信链路的可靠性。(The application provides a data communication method, a data communication device, electronic equipment and a storage medium, and relates to the technical field of communication. The method can be applied to a networked monitoring device which is in communication connection with the networked monitoring device, the networked monitoring device comprises a main wireless communication terminal and at least one standby wireless communication terminal, and the data communication method comprises the following steps: if the main wireless communication link is determined to be abnormal in communication, sending an alarm signal to the networking equipment; the method can continuously use the standby wireless communication link to realize the communication between the control equipment and the networking equipment when the communication of the main wireless communication link is abnormal, and improve the reliability of the data communication link.)

1. A data communication method applied to a networked monitoring device, wherein the networked monitoring device is in communication connection with the networked device, the networked monitoring device comprises a main wireless communication terminal and at least one standby wireless communication terminal, the main wireless communication terminal establishes a main wireless communication link with a main base station, each standby wireless communication terminal establishes a standby wireless communication link with a corresponding standby base station, the main wireless communication terminal can be in communication connection with a control device through the main base station, and each standby wireless communication terminal can be in communication connection with the control device through the corresponding standby base station, the data communication method comprises:

if the main wireless communication link is determined to be abnormal in communication, sending an alarm signal to the networking equipment;

and receiving an alarm message sent by the networking equipment according to the alarm signal, and forwarding the alarm message to the control equipment through the standby wireless communication terminal so that the control equipment generates a first control instruction according to the alarm message and forwards the first control instruction to the networking equipment through the standby wireless communication terminal, wherein the first control instruction is used for instructing the networking equipment to execute a first preset action, and the alarm message comprises an identifier of the main wireless communication terminal.

2. The method of claim 1, further comprising:

if the main wireless communication link is determined to be in normal communication, sending an alarm release signal to the networking equipment;

receiving an alarm removing message sent by the networking equipment according to the alarm removing signal, and forwarding the alarm removing message to the control equipment through the standby wireless communication terminal, so that the control equipment generates a second control instruction according to the alarm removing message and forwards the second control instruction to the networking equipment through the main wireless communication terminal, wherein the alarm removing message comprises an identifier of the main wireless communication terminal, and the second control instruction is used for indicating the networking equipment to execute a second preset action.

3. The method according to claim 1 or 2, characterized in that the method further comprises:

monitoring communication data of the main wireless communication link in unit time;

and determining whether the communication of the main wireless communication link is normal or not according to the communication data and a preset trigger condition.

4. The method of claim 3, wherein the communication data comprises at least one of: the number of control commands sent by the control equipment and the quality parameters of the wireless link sent by the main wireless communication terminal.

5. A data communication method applied to a networking device, the networking device being in communication connection with a networking monitoring device, the networking monitoring device including a main wireless communication terminal and at least one standby wireless communication terminal, the main wireless communication terminal establishing a main wireless communication link with a main base station, each of the standby wireless communication terminals establishing a standby wireless communication link with a corresponding standby base station, and the main wireless communication terminal being in communication connection with a control device through the main base station, each of the standby wireless communication terminals being in communication connection with the control device through the corresponding standby base station, the data communication method comprising:

receiving an alarm signal sent by the networking monitoring equipment after the main wireless communication link is determined to be abnormal in communication;

generating an alarm message according to the alarm signal, and sending the alarm message to the networked monitoring equipment so that the networked monitoring equipment sends the alarm message to the control equipment through the standby wireless communication terminal, wherein the alarm message comprises an identifier of the main wireless communication terminal;

receiving a first control instruction sent by the control equipment through the standby wireless communication terminal according to the alarm message;

and executing a first preset action according to the first control instruction.

6. The method of claim 5, further comprising:

receiving an alarm release signal sent by the networking monitoring equipment after the main wireless communication link is determined to be normal in communication;

generating an alarm removing message according to the alarm removing signal, and sending the alarm removing message to the networked monitoring equipment so that the networked monitoring equipment sends the alarm removing message to the control equipment through the standby wireless communication terminal, wherein the alarm removing message comprises an identifier of the main wireless communication terminal;

receiving a second control instruction sent by the control equipment through at least one standby wireless communication terminal according to the alarm release message;

and executing a second preset action according to the second control instruction.

7. The method according to claim 5 or 6, wherein whether the primary wireless communication link communication is normal or not is determined by the networked monitoring device by monitoring communication data of the primary wireless communication link in a unit time and a preset trigger condition.

8. The method of claim 7, wherein the communication data comprises at least one of: the number of control commands sent by the control equipment and the quality parameters of the wireless link sent by the main wireless communication terminal.

9. An electronic device, comprising: a processor, a storage medium and a bus, the storage medium storing machine-readable instructions executable by the processor, the processor and the storage medium communicating via the bus when the electronic device is operating, the processor executing the machine-readable instructions to perform the steps of the data communication method according to any one of claims 1 to 7.

10. A computer-readable storage medium, having stored thereon a computer program for performing, when executed by a processor, the steps of the data communication method according to any one of claims 1 to 7.

Technical Field

The present application relates to the field of communications technologies, and in particular, to a data communication method and apparatus, an electronic device, and a storage medium.

Background

With the rapid development of computer, communication and network technologies, wireless sensor networks have been developed, industrial wireless networks are developed from emerging wireless sensor networks, have the characteristics of low cost, low energy consumption, high flexibility, strong expansibility and the like, and become another industrial network networking technology following the field bus technology.

Currently, when an industrial wireless network is deployed for communication, data interaction between networking devices can be performed through a wireless access base station.

It can be seen that the existing data communication method is relatively simple, and if a wireless access base station in an industrial wireless network fails, communication among networking devices is interrupted, so that the existing data communication method has the problem of poor reliability.

Disclosure of Invention

An object of the present invention is to provide a data communication method, an apparatus, an electronic device and a storage medium, which can improve reliability of a data communication link.

In order to achieve the above purpose, the technical solutions adopted in the embodiments of the present application are as follows:

in a first aspect, the present invention provides a data communication method, applied to a networked monitoring device, where the networked monitoring device is in communication connection with a networked device, the networked monitoring device includes a main wireless communication terminal and at least one standby wireless communication terminal, the main wireless communication terminal establishes a main wireless communication link with a main base station, each standby wireless communication terminal establishes a standby wireless communication link with a corresponding standby base station, the main wireless communication terminal can be in communication connection with a control device through the main base station, and each standby wireless communication terminal can be in communication connection with the control device through the corresponding standby base station, the data communication method includes:

if the main wireless communication link is determined to be abnormal in communication, sending an alarm signal to the networking equipment;

and receiving an alarm message sent by the networking equipment according to the alarm signal, and forwarding the alarm message to the control equipment through the standby wireless communication terminal so that the control equipment generates a first control instruction according to the alarm message and forwards the first control instruction to the networking equipment through the standby wireless communication terminal, wherein the first control instruction is used for instructing the networking equipment to execute a first preset action, and the alarm message comprises an identifier of the main wireless communication terminal.

In an alternative embodiment, the method further comprises:

if the main wireless communication link is determined to be in normal communication, sending an alarm release signal to the networking equipment;

receiving an alarm removing message sent by the networking equipment according to the alarm removing signal, and forwarding the alarm removing message to the control equipment through the standby wireless communication terminal, so that the control equipment generates a second control instruction according to the alarm removing message and forwards the second control instruction to the networking equipment through the main wireless communication terminal, wherein the alarm removing message comprises an identifier of the main wireless communication terminal, and the second control instruction is used for indicating the networking equipment to execute a second preset action.

In an alternative embodiment, the method further comprises:

monitoring communication data of the main wireless communication link in unit time;

and determining whether the communication of the main wireless communication link is normal or not according to the communication data and a preset trigger condition.

In an alternative embodiment, the communication data comprises at least one of: the number of control commands sent by the control equipment and the quality parameters of the wireless link sent by the main wireless communication terminal.

In a second aspect, the present invention provides a data communication method, applied to a networking device, where the networking device is in communication connection with a networking monitoring device, the networking monitoring device includes a main wireless communication terminal and at least one standby wireless communication terminal, the main wireless communication terminal establishes a main wireless communication link with a main base station, each standby wireless communication terminal establishes a standby wireless communication link with a corresponding standby base station, and the main wireless communication terminal can be in communication connection with a control device through the main base station, and each standby wireless communication terminal can be in communication connection with the control device through the corresponding standby base station, the data communication method includes:

receiving an alarm signal sent by the networking monitoring equipment after the main wireless communication link is determined to be abnormal in communication;

generating an alarm message according to the alarm signal, and sending the alarm message to the networked monitoring equipment so that the networked monitoring equipment sends the alarm message to the control equipment through the standby wireless communication terminal, wherein the alarm message comprises an identifier of the main wireless communication terminal;

receiving a first control instruction sent by the control equipment through the standby wireless communication terminal according to the alarm message;

and executing a first preset action according to the first control instruction.

In an alternative embodiment, the method further comprises:

receiving an alarm release signal sent by the networking monitoring equipment after the main wireless communication link is determined to be normal in communication;

generating an alarm removing message according to the alarm removing signal, and sending the alarm removing message to the networked monitoring equipment so that the networked monitoring equipment sends the alarm removing message to the control equipment through the standby wireless communication terminal, wherein the alarm removing message comprises an identifier of the main wireless communication terminal;

receiving a second control instruction sent by the control equipment through at least one standby wireless communication terminal according to the alarm release message;

and executing a second preset action according to the second control instruction.

In an optional embodiment, whether the communication of the primary wireless communication link is normal or not is determined by the networked monitoring device through monitoring communication data of the primary wireless communication link in unit time and preset trigger conditions.

In an alternative embodiment, the communication data comprises at least one of: the number of control commands sent by the control equipment and the quality parameters of the wireless link sent by the main wireless communication terminal.

In a third aspect, the present invention provides a data communication apparatus, applied to a networked monitoring device, where the networked monitoring device is in communication connection with a networked device, the networked monitoring device includes a main wireless communication terminal and at least one standby wireless communication terminal, the main wireless communication terminal establishes a main wireless communication link with a main base station, each standby wireless communication terminal establishes a standby wireless communication link with a corresponding standby base station, the main wireless communication terminal can be in communication connection with a control device through the main base station, and each standby wireless communication terminal can be in communication connection with the control device through the corresponding standby base station, the data communication apparatus includes:

the sending module is used for sending an alarm signal to the networking equipment if the main wireless communication link is determined to be abnormal in communication;

and the forwarding module is used for receiving an alarm message sent by the networking equipment according to the alarm signal and forwarding the alarm message to the control equipment through the standby wireless communication terminal, so that the control equipment generates a first control instruction according to the alarm message and forwards the first control instruction to the networking equipment through the standby wireless communication terminal, the first control instruction is used for indicating the networking equipment to execute a first preset action, and the alarm message comprises an identifier of the main wireless communication terminal.

In an alternative embodiment, the data communication device comprises: the first removing module is used for sending an alarm removing signal to the networking equipment if the main wireless communication link is determined to be normal in communication;

receiving an alarm removing message sent by the networking equipment according to the alarm removing signal, and forwarding the alarm removing message to the control equipment through the standby wireless communication terminal, so that the control equipment generates a second control instruction according to the alarm removing message and forwards the second control instruction to the networking equipment through the main wireless communication terminal, wherein the alarm removing message comprises an identifier of the main wireless communication terminal, and the second control instruction is used for indicating the networking equipment to execute a second preset action.

In an optional embodiment, the sending module is further configured to monitor communication data of the primary wireless communication link in unit time;

and determining whether the communication of the main wireless communication link is normal or not according to the communication data and a preset trigger condition.

In an alternative embodiment, the communication data comprises at least one of: the number of control commands sent by the control equipment and the quality parameters of the wireless link sent by the main wireless communication terminal.

In a fourth aspect, the present invention provides a data communication apparatus, applied to a networking device, where the networking device is in communication connection with a networking monitoring device, the networking monitoring device includes a main wireless communication terminal and at least one standby wireless communication terminal, the main wireless communication terminal establishes a main wireless communication link with a main base station, each standby wireless communication terminal establishes a standby wireless communication link with a corresponding standby base station, and the main wireless communication terminal can be in communication connection with a control device through the main base station, and each standby wireless communication terminal can be in communication connection with the control device through the corresponding standby base station, the data communication apparatus includes:

the first receiving module is used for receiving an alarm signal sent by the networking monitoring equipment after the main wireless communication link is determined to be abnormal in communication;

a sending module, configured to generate an alarm message according to the alarm signal, and send the alarm message to the networked monitoring device, so that the networked monitoring device sends the alarm message to the control device through the standby wireless communication terminal, where the alarm message includes an identifier of the main wireless communication terminal;

the second receiving module is used for receiving a first control instruction sent by the control equipment through the standby wireless communication terminal according to the alarm message;

and the execution module is used for executing a first preset action according to the first control instruction.

In an optional embodiment, the data communication apparatus further includes a second release module, configured to receive an alarm release signal sent by the networked monitoring device after determining that the communication of the primary wireless communication link is normal;

generating an alarm removing message according to the alarm removing signal, and sending the alarm removing message to the networked monitoring equipment so that the networked monitoring equipment sends the alarm removing message to the control equipment through the standby wireless communication terminal, wherein the alarm removing message comprises an identifier of the main wireless communication terminal;

receiving a second control instruction sent by the control equipment through at least one standby wireless communication terminal according to the alarm release message;

and executing a second preset action according to the second control instruction.

In an optional embodiment, whether the communication of the primary wireless communication link is normal or not is determined by the networked monitoring device through monitoring communication data of the primary wireless communication link in unit time and preset trigger conditions.

In an alternative embodiment, the communication data comprises at least one of: the number of control commands sent by the control equipment and the quality parameters of the wireless link sent by the main wireless communication terminal.

In a fourth aspect, the present invention provides an electronic device comprising: the data communication method comprises a processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, when an electronic device runs, the processor and the storage medium are communicated through the bus, and the processor executes the machine-readable instructions to execute the steps of the data communication method according to any one of the preceding implementation modes.

In a fifth aspect, the present invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the data communication method according to any of the preceding embodiments.

The beneficial effect of this application is:

according to the data communication method, the data communication device, the electronic equipment and the storage medium, when the communication of the main wireless communication link is abnormal, the standby wireless communication link can be continuously used for realizing the communication between the control equipment and the networking equipment, and the reliability of the data communication link is improved. Of course, if there is communication between the networked devices, normal communication between the networked devices can also be ensured by applying the data communication method provided in the embodiment of the present application.

Drawings

In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.

Fig. 1 is a schematic diagram of a network architecture suitable for use in the method provided by the embodiment of the present application;

fig. 2 is a schematic flowchart of a data communication method according to an embodiment of the present application;

fig. 3 is a schematic flow chart of another data communication method according to an embodiment of the present application;

fig. 4 is a schematic flowchart of another data communication method according to an embodiment of the present application;

fig. 5 is a schematic flow chart of another data communication method according to an embodiment of the present application;

fig. 6 is a schematic flowchart of another data communication method according to an embodiment of the present application;

fig. 7 is a schematic functional block diagram of a data communication device according to an embodiment of the present application;

fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present application.

Detailed Description

In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations.

Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.

It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.

A Device Level Ring (DLR), which is a Ring network composed of multiple Ethernet/IP devices, can be regarded as an industrial network technology, and is applied to an automated embedded terminal Device, such as an Input/Output (I/O) interface module and a Programmable Logic Controller (PLC), so that the Ethernet Ring topology is applied to the Device Level, which is different from a common network or a switch Level Ring topology, and the DLR technology can increase the flexibility of the Device Level network and optimize the operation of the Device.

Currently, when applying the DLR network technology to an industrial network, the industrial network generally forms two independent ring networks by two different sets of network cables, and two ethernet cards are generally installed on networking devices that support the DLR function and allocate IP addresses of different network segments, the networking devices are connected to the industrial network by the two network cards through separate network cables, and when one of the network cables connected to a certain device is disconnected, all the networking devices can still normally communicate based on the other ring network. The built-in diagnosis function of the DLR can quickly diagnose fault points and shorten the average maintenance time, so that when the DLR monitors that the looped network is damaged, standby routing data can be provided, and the network can be quickly repaired. It can be seen that the existing technology mainly applies DLR network technology to industrial wired networks.

However, with the rapid development of computer, communication and network technologies, wireless sensor networks have been developed, industrial wireless networks are developed from emerging wireless sensor networks, have the characteristics of low cost, low energy consumption, high flexibility, strong expansibility and the like, become another industrial networking technology following field bus technology, have complex industrial field environment and special requirements for industrial application, and face the problems of communication real-time performance, reliability, safety, anti-interference capability and the like. Therefore, the simple data communication mode of data interaction between the existing networking devices through the wireless access base station cannot meet the requirements of industrial application, and the problem that communication between the networking devices is interrupted if the wireless access base station in the industrial wireless network fails exists.

In view of the above, the embodiments of the present application provide a data communication method, which may be applied to a networked monitoring device, the networked monitoring device is in communication connection with the networked device, the networked monitoring device includes a main wireless communication terminal and at least one standby wireless communication terminal, the main wireless communication terminal establishes a main wireless communication link with a main base station, each standby wireless communication terminal establishes a standby wireless communication link with a corresponding standby base station, and the main wireless communication terminal may be in communication connection with a control device through the main base station, and each standby wireless communication terminal may be in communication connection with the control device through the corresponding standby base station, by which communication between the control device and the networked device may be continuously achieved by using the standby wireless communication link when communication of the main wireless communication link is abnormal, reliability of the data communication link may be improved, and the data communication method may be applied to various wireless communication scenarios, such as, but not limited to, industrial application scenarios, etc.

Fig. 1 is a schematic diagram of a network architecture suitable for the method provided in the embodiment of the present application. As shown in fig. 1, the network architecture may include: networked monitoring device 110, networked device 120, primary base station 210, first backup base station 220, second backup base station 230, and control device 300, wherein networked monitoring device 110 is communicatively coupled to networked device 120, and networked monitoring device 110 may include: the wireless communication system comprises a main wireless communication terminal A, a first standby wireless communication terminal B1 and a second standby wireless communication terminal B2, wherein the main wireless communication terminal A establishes a main wireless communication link _ A with the main base station 210, the first standby wireless communication terminal B1 establishes a first standby wireless communication link _ B1 with the first standby base station 220, the second standby wireless communication terminal B2 establishes a second standby wireless communication link _ B2 with the second standby base station 230, the main wireless communication terminal A can be in communication connection with the control device 300 through the main base station 210, the first standby wireless communication terminal B1 can be in communication connection with the control device 300 through the first standby base station 220, and the second standby wireless communication terminal B2 can be in communication connection with the control device 300 through the second standby base station 230. Based on the network architecture, the data communication method provided by the embodiment of the application can continuously use the standby wireless communication link to realize the communication among the control equipment, the networking equipment and the networking equipment when the communication of the main wireless communication link is abnormal, so that the reliability of the data communication link is improved.

Alternatively, the primary wireless communication link and the at least one backup wireless communication link may be indifferent communication links, that is, the primary wireless communication link _ a, the first backup wireless communication link _ B1, and the second backup wireless communication link _ B2 may be indifferent communication links, or the communication performance of the primary wireless communication link _ a is better than that of each backup wireless communication link (link _ B1, link _ B2). Of course, according to the actual application scenario, the communication performance of each standby wireless communication link may be set to have a certain difference, which is not limited herein.

In some embodiments, the networked monitoring device may also be built in the networked device, and communicate through a preset communication interface, where the setting mode of the networked monitoring device is not limited, and the networked monitoring device may be flexibly set according to an actual application scenario. In addition, it should be further noted that, the number of the networking devices in the network architecture is not limited herein, and the networking devices may include one or more networking devices, and when the networking devices include a plurality of networking devices, the plurality of networking devices may be undifferentiated networking devices, each networking device may refer to the connection mode in fig. 1 described above and be in communication connection with the control device, and of course, according to an actual application scenario, the networking devices may also perform data communication through corresponding base stations.

Fig. 2 is a schematic flowchart of a data communication method according to an embodiment of the present application. The method may be applied to the networking monitoring device in the network architecture, where the networking monitoring device may include at least one standby wireless communication terminal, as shown in fig. 1, and may include two, of course, the application does not limit the number of the standby wireless communication terminals and the number of the corresponding standby base stations, and the method may be flexibly set according to an actual application scenario, as shown in fig. 2, and the data communication method may include:

s101, if the main wireless communication link is determined to be abnormal in communication, an alarm signal is sent to the networking equipment.

The network architecture can show that the control device can send a control instruction to the master wireless communication terminal in the networking monitoring device through the master base station, and after receiving the control instruction, the master wireless communication terminal of the networking monitoring device can forward the control instruction to the networking device through the master wireless communication terminal, so that the control instruction sent by the control device can be forwarded to the networking device.

Optionally, the control instruction issued by the control device may include: control commands generated inside the control device, control commands transmitted from other network-connected devices, communication data, and the like, but are not limited thereto. Optionally, the above networking device may include: programmable Logic Controller (PLC), wireless sensor, etc., and optionally, taking PLC as an example, the PLC may be externally connected to other devices, for example, which may include but are not limited to: motors, servo drives, etc.

In some embodiments, whether the main wireless communication link is normally communicated or not may be determined by monitoring communication data of the main wireless communication link, and if it is determined that the communication is abnormal, it indicates that the communication of the main wireless communication link is interrupted, at this time, the control device may not successfully issue the control instruction sent to the networking device through the main wireless communication link, and in this case, the networking monitoring device may send an alarm signal to the networking device, so that the networking device may know the communication status of the main wireless communication link. Alternatively, the communication abnormality may be caused by a failure of the main base station, such as a power-off of the main base station, and the like, which is not limited herein.

S102, receiving an alarm message sent by the networking equipment according to the alarm signal, and forwarding the alarm message to the control equipment through the standby wireless communication terminal, so that the control equipment generates a first control instruction according to the alarm message and forwards the first control instruction to the networking equipment through the standby wireless communication terminal, wherein the first control instruction is used for indicating the networking equipment to execute a first preset action, and the alarm message comprises an identifier of the main wireless communication terminal.

After the networking equipment receives the alarm signal sent by the networking monitoring equipment, an alarm message can be generated according to the alarm signal, the alarm message can comprise an identifier of a main wireless communication terminal, and after the networking monitoring equipment receives the alarm message, the alarm message can be forwarded to the control equipment through a standby wireless communication terminal. Optionally, if the communication performance of the main wireless communication terminal is better than that of each standby wireless communication link, the first preset action may be an avoidance action of controlling the networking device to stop operating, reducing the operating speed, and the like, so as to avoid communication delay caused by a poor communication link when the standby wireless communication link is used for communication.

Optionally, when the networked monitoring device includes a plurality of standby wireless communication terminals, a plurality of standby wireless communication links exist between the networked monitoring device and the control device, optionally, the control device may select one or more standby wireless communication terminals from the plurality of standby wireless communication terminals to forward the first control instruction to the networked device, where, according to an actual application scenario, the control device may determine the one or more standby wireless communication terminals according to a preset selection algorithm, for example, may determine the one or more standby wireless communication terminals by using a random selection algorithm, which is not limited herein. In addition, it should be noted that, referring to the foregoing related description about the DLR technology, the implementability of the data communication method provided by the embodiment of the present application may be ensured.

In summary, an embodiment of the present application provides a data communication method, which may be applied to a networking monitoring device, where the networking monitoring device is in communication connection with the networking device, the networking monitoring device includes a main wireless communication terminal and at least one standby wireless communication terminal, the main wireless communication terminal establishes a main wireless communication link with a main base station, each standby wireless communication terminal establishes a standby wireless communication link with a corresponding standby base station, and the main wireless communication terminal may be in communication connection with a control device through the main base station, and each standby wireless communication terminal may be in communication connection with the control device through the corresponding standby base station, the data communication method includes: if the main wireless communication link is determined to be abnormal in communication, sending an alarm signal to the networking equipment; the method comprises the steps of receiving an alarm message sent by the networking equipment according to an alarm signal, and forwarding the alarm message to the control equipment through the standby wireless communication terminal so that the control equipment generates a first control instruction according to the alarm message and forwards the first control instruction to the networking equipment through the standby wireless communication terminal, wherein the first control instruction is used for indicating the networking equipment to execute a first preset action, and the alarm message comprises an identifier of the main wireless communication terminal. Of course, if there is communication between the networked devices, normal communication between the networked devices can also be ensured by applying the data communication method provided in the embodiment of the present application.

Fig. 3 is a flowchart illustrating another data communication method according to an embodiment of the present application. Optionally, as shown in fig. 3, the method further includes:

s201, if the main wireless communication link is determined to be normal in communication, sending an alarm removing signal to the networking equipment.

It can be understood that, if the communication performance of the main wireless communication link is better than that of each standby wireless communication link, after the main wireless communication link is in normal communication, the networking monitoring device may send an alarm release signal to the networking device, so that the networking device may know the communication condition of the main wireless communication link.

S202, receiving an alarm removing message sent by the networking equipment according to the alarm removing signal, and forwarding the alarm removing message to the control equipment through the standby wireless communication terminal, so that the control equipment generates a second control instruction according to the alarm removing message and forwards the second control instruction to the networking equipment through the main wireless communication terminal, wherein the alarm removing message comprises an identifier of the main wireless communication terminal, and the second control instruction is used for indicating the networking equipment to execute a second preset action.

The networking device can generate an alarm release message to be sent to the networking monitoring device after receiving the alarm release signal, the alarm release message can include an identifier of the main wireless communication terminal, the networking monitoring device can forward the alarm release message to the control device through the standby wireless communication terminal after receiving the alarm release message, the control device can know that the main wireless communication link is normal in communication according to the identifier of the main wireless communication terminal carried in the alarm release message and generate a second control instruction, at the moment, the generated second control instruction can be forwarded to the networking device through the main wireless communication terminal, the second control instruction can be used for instructing the networking device to execute a second preset action, and optionally, the second preset action can be a normal working action of controlling the networking device to normally operate, working at a preset operation speed and the like, may vary from networked device to networked device.

By applying the embodiment of the application, when the main wireless communication link is recovered to be normal, the communication between the control equipment and the networking equipment can be realized by using the main wireless communication link in time, and the data communication can be ensured by adopting a high-quality main wireless transmission link.

In some embodiments, the networked monitoring device may include a variety of communication interfaces, such as an Input/Output (I/O) interface, an ethernet interface, and so forth; the networking device may also include a variety of communication interfaces such as an Input/Output (I/O) interface, an ethernet interface, and so forth. Optionally, the networked monitoring device and the networked device may be communicatively connected through an Input/Output (I/O) interface, or may be communicatively connected through an ethernet interface, which is not limited herein. Referring to the foregoing section, the networked monitoring device may send an alarm signal to the networked device through the self-contained general I/O interface, and after receiving the alarm signal, the networked device may send an alarm message to the networked monitoring device through the self-contained ethernet interface.

Fig. 4 is a flowchart illustrating another data communication method according to an embodiment of the present application. Optionally, as shown in fig. 4, the method further includes:

s301, monitoring communication data of the main wireless communication link in unit time.

S302, determining whether the communication of the main wireless communication link is normal or not according to the communication data and a preset trigger condition.

Optionally, the networked monitoring device may obtain the communication data of the main wireless communication link in unit time through the control device, or may obtain the communication data of the main wireless communication link in unit time through the main wireless terminal, which is not limited herein, and may obtain the communication data in different manners according to an actual application scenario. And judging whether the communication data accords with a preset trigger condition or not for the acquired communication data, if so, considering that the communication of the main wireless communication link is normal, and otherwise, considering that the communication of the main wireless communication link is abnormal. If the main wireless communication link is determined to be abnormal in communication, the communication can be performed by referring to the steps of S101 and S102; if it is determined that the main wireless communication link is switched from abnormal communication to normal communication, the communication may be performed by referring to the steps of S201 and S202, which is not described herein again. Optionally, if the communication data of the main wireless communication link in the last unit time does not meet the preset trigger condition, and the communication data of the main wireless communication link in the current unit time meets the preset trigger condition, it may be determined that the main wireless communication link is switched from abnormal communication to normal communication.

Optionally, the communication data includes at least one of: the number of control commands sent by the control equipment and the quality parameters of the wireless link sent by the main wireless communication terminal.

Optionally, the communication data comprises: when the number of the control instructions sent by the control device is less than or equal to a preset threshold, the preset trigger condition may include: and the preset number threshold of the control instructions sent by the control equipment in unit time. When determining whether the communication of the main wireless communication link is normal, it may be determined whether the number T _ n of the control instructions received from the control device in the unit time is smaller than the preset number threshold T _ h, and if so, it may be determined that the number of the control instructions received from the control device in the unit time is smaller, which may be caused by the interruption of the main wireless communication link.

Optionally, the networked monitoring device includes a master wireless communication terminal, and during the communication process, the master wireless communication terminal may also send the wireless link quality parameter of the master wireless communication link to the networked monitoring device, where the wireless link quality parameter of the master wireless communication link may include but is not limited to: the Signal strength (RSSI), the Signal-to-Noise Ratio (SNR), the reception Rate (PDR), the Bit Error Rate (BER), the Link Quality Indicator (LQI), and the like, but are not limited thereto. Correspondingly, the preset trigger condition may include, but is not limited to: the RSSI threshold, SNR threshold, PDR threshold, BER threshold, LQI threshold, etc., are not limited herein. Based on the relevant threshold, it may further determine whether the communication of the primary wireless communication link is normal, and the determination process may refer to a process in which the communication data includes the number of control instructions sent by the control device, which is not described herein again.

Of course, it should be noted that the preset trigger condition may be configured by itself according to an actual application scenario, and optionally, when the preset trigger condition includes a preset threshold, values of the preset thresholds may also be configured, which is not limited herein.

Fig. 5 is a schematic flow chart of another data communication method provided in this embodiment of the present application, which may be applied to a networking device in the network architecture, and the networking device and the networking monitoring device may be communicatively connected, as referred to in the relevant portions, for example, the networking device and the networking monitoring device may be communicatively connected through an Input/Output (I/O) interface, or may be communicatively connected through an ethernet interface, which is not limited herein. When the method is applied to networking equipment, the data communication method can comprise the following steps:

s401, receiving an alarm signal sent by the networking monitoring equipment after the communication abnormality of the main wireless communication link is determined.

S402, generating an alarm message according to the alarm signal, and sending the alarm message to the networked monitoring equipment so that the networked monitoring equipment sends the alarm message to the control equipment through the standby wireless communication terminal, wherein the alarm message comprises the identification of the main wireless communication terminal.

S403, receiving a first control instruction sent by the control device through the standby wireless communication terminal according to the alarm message.

S404, executing a first preset action according to the first control instruction.

The networking equipment can receive an alarm signal sent by the networking monitoring equipment after determining that the communication of the main wireless communication link is abnormal, generate an alarm message according to the alarm signal, wherein the generated alarm message can comprise an identifier of the main wireless communication terminal and send the alarm message to the networking monitoring equipment, and the networking monitoring equipment can send the alarm message to the control equipment through the standby wireless communication terminal after receiving the alarm message; it can be understood that, for the control device, the control device may know that the primary wireless communication link is abnormal in communication according to the identifier of the primary wireless communication terminal carried in the alarm packet, and generate a first control instruction, where the generated first control instruction may be sent to the networking device through the standby wireless communication terminal, and the networking device may execute a first preset action after receiving the first control instruction.

As can be seen from the foregoing description, if the communication performance of the primary wireless communication terminal is better than that of each of the standby wireless communication links, the first preset action may be an avoiding action such as controlling the networking device to stop operating and reducing the operating speed, so as to avoid situations such as communication delay caused by a poor communication link when the standby wireless communication link is used for communication.

In summary, by applying the embodiment of the present application, when the communication of the primary wireless communication link is abnormal, the standby wireless communication link can be continuously used to realize the communication between the control device and the networking device, thereby improving the reliability of the data communication link. Of course, if there is communication between the networked devices, normal communication between the networked devices can also be ensured by applying the data communication method provided in the embodiment of the present application.

Fig. 6 is a flowchart illustrating another data communication method according to an embodiment of the present application. Optionally, as shown in fig. 6, the method further includes:

s501, receiving an alarm release signal sent by the networking monitoring equipment after the communication of the main wireless communication link is determined to be normal.

S502, generating an alarm removing message according to the alarm removing signal, and sending the alarm removing message to the networked monitoring equipment so that the networked monitoring equipment sends the alarm removing message to the control equipment through the standby wireless communication terminal, wherein the alarm removing message comprises the identification of the main wireless communication terminal.

S503, receiving a second control instruction sent by the control equipment through at least one standby wireless communication terminal according to the alarm release message.

And S504, executing a second preset action according to the second control instruction.

Referring to the foregoing description of steps S201 and S202, the networking device may receive an alarm release signal sent by the networking monitoring device after determining that the communication of the main wireless communication link is normal, generate an alarm release message according to the alarm release signal, send the generated alarm release message to the networking monitoring device, the networking monitoring device may send the alarm release message to the control device through the standby wireless communication terminal, and the control device may know that the communication of the main wireless communication link is normal according to the identifier of the main wireless communication terminal carried in the alarm release message, and generate a second control instruction, at this time, the generated second control instruction may be forwarded to the networking device through the main wireless communication terminal. Optionally, if the communication performance of the main wireless communication link is better than the communication performance of each backup wireless communication link, the second preset action may be a normal operation action of controlling the networking device to operate normally, operating at a preset operation speed, and the like, so that when the networking device performs data communication by using a high-quality main wireless transmission link, the communication delay may be reduced, and the control accuracy may be improved.

Optionally, whether the communication of the main wireless communication link is normal or not is determined by the networked monitoring device by monitoring the communication data of the main wireless communication link in unit time and preset trigger conditions.

Optionally, the communication data comprises at least one of: the number of control commands sent by the control equipment and the quality parameters of the wireless link sent by the main wireless communication terminal.

For the description of this part, reference may be made to the related contents mentioned above, and the description of this application is not repeated herein.

Fig. 7 is a schematic diagram of functional modules of a data communication apparatus according to an embodiment of the present application, where the apparatus may be applied to a networked monitoring device, the networked monitoring device is communicatively connected to the networked device, the networked monitoring device includes a main wireless communication terminal and at least one standby wireless communication terminal, the main wireless communication terminal establishes a main wireless communication link with a main base station, each standby wireless communication terminal establishes a standby wireless communication link with a corresponding standby base station, and the main wireless communication terminal may be communicatively connected to a control device through the main base station, and each standby wireless communication terminal may be communicatively connected to the control device through the corresponding standby base station, the basic principle and the technical effects of the apparatus are the same as those of the corresponding method embodiment, and for the sake of brief description, no mention part in this embodiment, reference is made to the corresponding contents of the method embodiments. As shown in fig. 7, the data communication apparatus 400 may include:

a sending module 410, configured to send an alarm signal to the networking device if it is determined that the communication of the primary wireless communication link is abnormal;

a forwarding module 420, configured to receive an alarm packet sent by the networking device according to the alarm signal, and forward the alarm packet to the control device through the standby wireless communication terminal, so that the control device generates a first control instruction according to the alarm packet and forwards the first control instruction to the networking device through the standby wireless communication terminal, where the first control instruction is used to instruct the networking device to execute a first preset action, and the alarm packet includes an identifier of the main wireless communication terminal.

In an alternative embodiment, the data communication device comprises: the first removing module is used for sending an alarm removing signal to the networking equipment if the main wireless communication link is determined to be normal in communication;

receiving an alarm removing message sent by the networking equipment according to the alarm removing signal, and forwarding the alarm removing message to the control equipment through the standby wireless communication terminal, so that the control equipment generates a second control instruction according to the alarm removing message and forwards the second control instruction to the networking equipment through the main wireless communication terminal, wherein the alarm removing message comprises an identifier of the main wireless communication terminal, and the second control instruction is used for indicating the networking equipment to execute a second preset action.

In an optional embodiment, the sending module 410 is further configured to monitor communication data of the primary wireless communication link in a unit time;

and determining whether the communication of the main wireless communication link is normal or not according to the communication data and a preset trigger condition.

In an alternative embodiment, the communication data comprises at least one of: the number of control commands sent by the control equipment and the quality parameters of the wireless link sent by the main wireless communication terminal.

Optionally, an embodiment of the present application further provides a data communication apparatus, applied to a networking device, where the networking device is in communication connection with a networking monitoring device, the networking monitoring device includes a main wireless communication terminal and at least one standby wireless communication terminal, where the main wireless communication terminal establishes a main wireless communication link with a main base station, each standby wireless communication terminal establishes a standby wireless communication link with a corresponding standby base station, and the main wireless communication terminal can be in communication connection with a control device through the main base station, and each standby wireless communication terminal can be in communication connection with the control device through the corresponding standby base station, the data communication apparatus includes:

the first receiving module is used for receiving an alarm signal sent by the networking monitoring equipment after the main wireless communication link is determined to be abnormal in communication;

a sending module, configured to generate an alarm message according to the alarm signal, and send the alarm message to the networked monitoring device, so that the networked monitoring device sends the alarm message to the control device through the standby wireless communication terminal, where the alarm message includes an identifier of the main wireless communication terminal;

the second receiving module is used for receiving a first control instruction sent by the control equipment through the standby wireless communication terminal according to the alarm message;

and the execution module is used for executing a first preset action according to the first control instruction.

In an optional embodiment, the data communication apparatus further includes a second release module, configured to receive an alarm release signal sent by the networked monitoring device after determining that the communication of the primary wireless communication link is normal;

generating an alarm removing message according to the alarm removing signal, and sending the alarm removing message to the networked monitoring equipment so that the networked monitoring equipment sends the alarm removing message to the control equipment through the standby wireless communication terminal, wherein the alarm removing message comprises an identifier of the main wireless communication terminal;

receiving a second control instruction sent by the control equipment through at least one standby wireless communication terminal according to the alarm release message;

and executing a second preset action according to the second control instruction.

In an optional embodiment, whether the communication of the primary wireless communication link is normal or not is determined by the networked monitoring device through monitoring communication data of the primary wireless communication link in unit time and preset trigger conditions.

In an alternative embodiment, the communication data comprises at least one of: the number of control commands sent by the control equipment and the quality parameters of the wireless link sent by the main wireless communication terminal.

The above-mentioned apparatus is used for executing the method provided by the foregoing embodiment, and the implementation principle and technical effect are similar, which are not described herein again.

These above modules may be one or more integrated circuits configured to implement the above methods, such as: one or more Application Specific Integrated Circuits (ASICs), or one or more microprocessors, or one or more Field Programmable Gate Arrays (FPGAs), etc. For another example, when one of the above modules is implemented in the form of a Processing element scheduler code, the Processing element may be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor capable of calling program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).

Fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present application, where the electronic device may be the foregoing networked monitoring device or networked device. As shown in fig. 8, the electronic device may include: a processor 510, a storage medium 520, and a bus 530, the storage medium 520 storing machine-readable instructions executable by the processor 510, the processor 510 communicating with the storage medium 520 via the bus 530 when the electronic device is operating, the processor 510 executing the machine-readable instructions to perform the steps of the above-described method embodiments. The specific implementation and technical effects are similar, and are not described herein again.

Optionally, the present application further provides a storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the computer program performs the steps of the above method embodiments. The specific implementation and technical effects are similar, and are not described herein again.

In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of a unit is merely a logical division, and an actual implementation may have another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.

Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.

In addition, functional units in the embodiments of the present application 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, or in a form of hardware plus a software functional unit.

The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods according to the embodiments of the present application. 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.

It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application. It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

21页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:室分小区故障检测方法、装置、服务器及存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!