WO2021217540A1 - 通信链路的检测方法、装置、系统和可移动平台 - Google Patents

通信链路的检测方法、装置、系统和可移动平台 Download PDF

Info

Publication number
WO2021217540A1
WO2021217540A1 PCT/CN2020/087956 CN2020087956W WO2021217540A1 WO 2021217540 A1 WO2021217540 A1 WO 2021217540A1 CN 2020087956 W CN2020087956 W CN 2020087956W WO 2021217540 A1 WO2021217540 A1 WO 2021217540A1
Authority
WO
WIPO (PCT)
Prior art keywords
component
query request
sending
target component
status query
Prior art date
Application number
PCT/CN2020/087956
Other languages
English (en)
French (fr)
Inventor
解德鹏
Original Assignee
深圳市大疆创新科技有限公司
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 深圳市大疆创新科技有限公司 filed Critical 深圳市大疆创新科技有限公司
Priority to CN202080004404.1A priority Critical patent/CN112585927A/zh
Priority to PCT/CN2020/087956 priority patent/WO2021217540A1/zh
Publication of WO2021217540A1 publication Critical patent/WO2021217540A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/146Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/142Managing session states for stateless protocols; Signalling session states; State transitions; Keeping-state mechanisms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/562Brokering proxy services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/18Multiprotocol handlers, e.g. single devices capable of handling multiple protocols

Definitions

  • the embodiments of the present invention relate to the field of communication technologies, and in particular, to a method, device, system, and movable platform for detecting a communication link.
  • different communication protocols can correspond to different communication protocol interfaces, and different communication protocol interfaces can include: two-wire serial Bus I 2 C interface, serial peripheral SPI interface, serial interface, parallel interface, universal serial bus USB interface, controller area network CAN interface, mobile industry processor MIPI interface, high-speed serial computer expansion bus standard PCIE interface , Ethernet interface, modem interface and so on.
  • the embodiment of the present invention provides a method, device, system and movable platform for detecting a communication link.
  • the first aspect of the present invention is to provide a communication link detection method, including:
  • a status query request corresponding to the target component is generated, wherein the type of the communication protocol interface of the sending component is the same as the type of the communication protocol interface of the target component different;
  • the second aspect of the present invention is to provide a detection device for a communication link, the communication link includes at least a sending component and a target component communicatively connected with the sending component, and the detection device includes:
  • the first memory is used to store computer programs
  • the first processor is configured to run a computer program stored in the first memory to implement:
  • a status query request corresponding to the target component is generated, wherein the type of the communication protocol interface of the sending component is the same as the type of the communication protocol interface of the target component different;
  • the third aspect of the present invention is to provide a movable platform, including:
  • the communication link detection device of the third aspect described above is arranged on the body and used to detect the state of the communication link formed between the communication components of the movable platform.
  • the fourth aspect of the present invention is to provide a computer-readable storage medium, the storage medium is a computer-readable storage medium, the computer-readable storage medium stores program instructions, and the program instructions are used in the first aspect.
  • the fifth aspect of the present invention is to provide a communication link detection method, which is applied to an intermediate component, and the method includes:
  • the intermediate component receives a status query request sent by the sending component, where the status query request is used to query the working status of the communication link between the sending component and the target component;
  • the intermediate component determines the target identity of the target component corresponding to the status query request
  • the intermediate component transmits the status query request based on the target identity identifier, so as to send the status query request to the target component.
  • the sixth aspect of the present invention is to provide a communication link detection device, including:
  • the second memory is used to store computer programs
  • the second processor is configured to run a computer program stored in the second memory to implement:
  • the status query request is transmitted based on the target identity identifier, so as to send the status query request to the target component.
  • the seventh aspect of the present invention is to provide a movable platform, including:
  • the communication link detection device is arranged on the fuselage and is used to detect the state of the communication link formed between the communication components of the movable platform.
  • the eighth aspect of the present invention is to provide a computer-readable storage medium, the storage medium is a computer-readable storage medium, the computer-readable storage medium stores program instructions, and the program instructions are used in the fifth aspect.
  • the ninth aspect of the present invention is to provide a detection system for a communication link, the communication link at least including a sending component and a target component communicatively connected to the sending component, and the type of the communication protocol interface of the sending component is different from that of the target component.
  • the types of communication protocol interfaces of the target components are different, and the system includes:
  • the sending component is used to generate a status query request corresponding to the target component; send the status query request to the target component through an intermediate component; send the status query request based on the status query request according to whether the target component is received Query feedback information to determine the working status of the communication link between the sending component and the target component;
  • the intermediate component receives the status query request sent by the sending component through the receiving port, the status query request is used to query the working status of the communication link between the sending component and the target component, and pass the status query request through the Sending out via the sending port of the intermediate component, where the sending port is different from the receiving port of the intermediate component;
  • the target component is configured to receive the status query request through the intermediate component, generate query feedback information based on the status query request, and send the query feedback information to the sending component.
  • the technical solution provided by the embodiment of the present invention can determine the working status of the communication link between the sending component and the target component according to whether the query feedback information sent by the target component is received.
  • the implementation method is simple and effectively reduces the labor cost and The characteristics of time cost further improve the practicability of this method.
  • FIG. 1 is a schematic flowchart of a method for detecting a communication link according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of generating a status query request corresponding to the target component according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of a network structure of a protocol corresponding to a status query request provided by an embodiment of the present invention
  • FIG. 4 is a schematic diagram of the flow of generating a status query request corresponding to the target component in the embodiment of FIG. 2;
  • FIG. 5 is a schematic diagram of directly sending the status query request to the target component in an embodiment of the present invention.
  • FIG. 6 is a schematic diagram of sending the status query request to the target component through at least one intermediate component in an embodiment of the present invention
  • FIG. 7 is a schematic flowchart of sending the status query request to the target component through at least one intermediate component in an embodiment of the present invention
  • FIG. 8 is a schematic flow chart of the at least one intermediate component in FIG. 7 transmitting the status query request based on the second identity, so as to send the status query request to the target component;
  • FIG. 9 is a schematic flowchart of another communication link detection method provided by an embodiment of the present invention.
  • FIG. 10 is a schematic flowchart of determining the working status of the communication link between the sending component and the target component according to whether the query feedback information sent by the target component based on the status query request is received in FIG. 1 ;
  • FIG. 11 is a schematic flowchart of determining the working status of the communication link between the sending component and the target component based on the feedback duration in FIG. 10;
  • FIG. 12 is a schematic flowchart of yet another method for detecting a communication link according to an embodiment of the present invention.
  • FIG. 13 is a first schematic diagram of the connection of a communication link between a sending component and the target component according to an embodiment of the present invention
  • FIG. 14 is a second schematic diagram of the connection of the communication link between the sending component and the target component according to an embodiment of the present invention.
  • 15 is a schematic diagram 1 of the process of sending the status query request to the target component according to an embodiment of the present invention.
  • FIG. 16 is a second schematic diagram of the process of sending the status query request to the target component according to an embodiment of the present invention.
  • FIG. 17 is a schematic flowchart of another method for detecting a communication link according to an embodiment of the present invention.
  • 19 is a signaling interaction diagram 1 of a communication link detection method provided by an application embodiment of the present invention.
  • 20 is a signaling interaction diagram 2 of a communication link detection method provided by an application embodiment of the present invention.
  • 21 is a schematic structural diagram of a communication link detection system provided by an application embodiment of the present invention.
  • FIG. 22 is a first structural diagram of a communication link detection apparatus provided by an embodiment of the present invention.
  • FIG. 23 is a second schematic structural diagram of a communication link detection apparatus provided by an embodiment of the present invention.
  • 24 is a schematic structural diagram of a communication link detection system provided by an embodiment of the present invention.
  • 25 is a schematic structural diagram 1 of a movable platform provided by an embodiment of the present invention.
  • FIG. 26 is a second structural diagram of a movable platform provided by an embodiment of the present invention.
  • Different communication protocol interfaces can include: two-wire serial bus I2C interface, Serial peripherals SPI interface, serial interface, parallel interface, universal serial bus USB interface, controller area network CAN interface, mobile industry processor MIPI interface, high-speed serial computer expansion bus standard PCIE interface, Ethernet interface, modem modem interface and so on.
  • the existing first chip and second chip the first chip includes a two-wire serial bus I 2 C interface
  • the second chip includes a serial peripheral SPI interface
  • the communication protocol corresponding to the I 2 C interface is different, therefore, the aforementioned I 2 C interface and the SPI interface cannot directly communicate with each other.
  • the above-mentioned state detection process is not only cumbersome and complicated, but also greatly increases labor and time costs.
  • the above-mentioned implementation requires users to perform communication links between specific chip interfaces. Specific coding and debugging operations are highly customized and cannot be flexibly expanded, which reduces the quality and efficiency of state detection for communication links between different communication protocol interfaces.
  • this embodiment provides a communication link detection method, Device, system and mobile platform, the detection method can generate a status query request corresponding to the target component after the communication link is established between the sending component and the target component, and then send the status query request to the target component, and according to whether After receiving the query feedback information sent by the target component based on the status query request, the working status of the communication link between the sending component and the target component is determined.
  • the above-mentioned status query request can satisfy the pre-configured communication protocol, and the pre-configured communication protocol can realize the interconnection and intercommunication between multiple different communication protocol interfaces, which is convenient to realize the communication link between the different communication protocol interfaces.
  • Operations such as encoding, link debugging, etc., which simply and efficiently solve the complex problems of detecting and diagnosing communication links formed between multiple different communication protocol interfaces; and, the detection method in this embodiment also has The characteristics of simple implementation, good flexibility, and strong scalability have improved the practicability of the detection method.
  • FIG. 1 is a schematic flow chart of a method for detecting a communication link provided by an embodiment of the present invention; referring to FIG. 1, this embodiment provides a method for detecting a communication link, and the execution subject of the method may be a communication link.
  • the link detection device the detection device may refer to a sending component with a data transmission function, and it is understood that the sending component may be implemented as software or a combination of software and hardware.
  • the detection method of the communication link may include:
  • Step S101 After the communication link is established between the sending component and the target component, a status query request corresponding to the target component is generated, wherein the type of the communication protocol interface of the sending component is different from the type of the communication protocol interface of the target component.
  • Step S102 Send the status query request to the target component.
  • Step S103 Determine the working status of the communication link between the sending component and the target component according to whether the query feedback information sent by the target component based on the status query request is received.
  • Step S101 After the communication link is established between the sending component and the target component, a status query request corresponding to the target component is generated, wherein the type of the communication protocol interface of the sending component is different from the type of the communication protocol interface of the target component.
  • the sending component and the target component can respectively refer to a data unit with a data transmission function.
  • the above data unit can be implemented as software, for example: the sending component is the first application APP, and the target component is the second application. Program APP, a communication link can be established between the first APP and the second APP.
  • the aforementioned data unit may be implemented as hardware, for example: the sending component is the first chip, the target component is the second chip, and a communication link can be established between the first chip and the second chip.
  • the aforementioned data unit can be implemented as a combination of software and hardware.
  • the sending component is a first chip system, and the first chip system stores a software program for realizing the first function.
  • the target component is the second chip.
  • the second chip system stores a software level for realizing the second function, and a communication link can be established between the first chip system and the second chip system.
  • the above sending component and the target component can be in different manifestations, for example: the sending component can be implemented as a software manifestation, and the target component can be implemented as a hardware manifestation; or, the sending component can be implemented as a software manifestation, and the target component can be Realized as a combination of software and hardware.
  • the sending component and the target component can be any two different components in a group of components.
  • the aforementioned group of components can include multiple components, and the expression of multiple components can be based on different application scenarios and application requirements. Arbitrary configuration.
  • a set of components may include a control terminal, a drone's flight control system that is communicatively connected to the control terminal 1, a camera that is communicatively connected to the flight control system 1, a drone 1, and PTZ 1, the flight control system of the unmanned aerial vehicle that is communicatively connected with the control terminal 2, the camera 2, the unmanned aerial vehicle 1 and the PTZ 2 that are communicatively connected with the flight control system 2.
  • the control terminal may be a sending component
  • the target component may be a camera 1 that is communicatively connected with the flight control system 1.
  • the control terminal can query the status of the camera 1.
  • the flight control system 2 on the drone can be a sending component, and the target component can be a gimbal 1 set on the drone 1. In this embodiment, the flight control system 2 can query the status of the gimbal 1.
  • the camera 2 on the drone may also be a sending component, and the target component may be a control terminal. In this embodiment, the camera can query the status of the control terminal. In other words, by selecting any two components in a group of components as the sending component and the receiving component, any component in the group of components can query the status of another component, or can query the component to another component. The state of the communication link between.
  • a group of components can include a routing controller, a routing device that is in communication with the routing controller, and a network device corresponding to the routing device.
  • the routing controller can be the sending component, and the network device can be the target.
  • Component; or, the routing device can be a sending component, and the network device can be a target component; or, the network device can be a sending component, the routing controller can be a target component, and so on.
  • those skilled in the art can also arbitrarily configure the sending component and the target component according to different application scenarios and application requirements, which will not be repeated here.
  • those skilled in the art can configure the sending component and the target component according to the specific application requirements and design requirements, as long as it can ensure that a communication link can be established between the sending component and the target component, and the communication protocol interface of the sending component
  • the type can be different from the type of the communication protocol interface of the target component, and will not be repeated here.
  • the status query request can be a Ping command generated by using the improved Internet Control Messages Protocol (ICMP), and the generated Ping command does not depend on physical link.
  • ICMP Internet Control Messages Protocol
  • the Ping command can be used on a variety of different physical links.
  • the above-mentioned Ping command can be applied to: Universal Asynchronous Receiver/Transmitter (UART), Controller Area Network CAN, Two-wire serial bus I 2 C, universal serial bus USB, high-speed serial computer expansion bus standard PCIE, Ethernet, etc.
  • Step S102 Send the status query request to the target component.
  • the status query request may include the target component identifier corresponding to the target component. Therefore, after the status query request is obtained, the status query request can be analyzed and identified to obtain the target component identifier corresponding to the target component, and the status query request is sent to the target component based on the target component identifier corresponding to the target component. Make the target component can get the status query request. After the target component obtains the status query request, it can generate query feedback information according to the status query request, and can return the query feedback information to the sending component.
  • Step S103 Determine the working status of the communication link between the sending component and the target component according to whether the query feedback information sent by the target component based on the status query request is received.
  • the query feedback information can be sent to the sending component.
  • the sending component can receive the query feedback information. ; (2) The sending component cannot receive the query feedback information.
  • the working status of the communication link between the sending component and the target component can be determined based on whether the query feedback information is received. It can be understood that the above working status may include normal Status and abnormal status. Specifically, according to whether the query feedback information sent by the target component based on the status query request is received, determining the working status of the communication link between the sending component and the target component may include:
  • Step S1031 When the query feedback information is received, it is determined that the working state of the communication link is a normal state. or,
  • Step S1032 When the query feedback information is not received, it is determined that the working state of the communication link is an abnormal state.
  • the sending component when the sending component does not receive the query feedback information sent by the target component, it means that there is a failure in the communication link between the sending component and the target component. At this time, the target component cannot communicate based on the aforementioned communication link.
  • the query feedback information is transmitted to the sending component, and then it can be determined that the working state of the communication link between the sending component and the target component is an abnormal state.
  • the sending component receives the query feedback information sent by the target component, it means that the communication link between the sending component and the target component is operating normally. At this time, the target component can send the query feedback based on the above communication link. The information is transmitted to the sending component, and then it can be determined that the working state of the communication link between the sending component and the target component is normal.
  • a status query request corresponding to the target component is generated. Because the generated status query request can be based on the request information generated by a custom communication protocol, and the above custom communication protocol can realize the communication connection between the communication interfaces of different communication protocols, and then send the status query request to the target component , And determine the working status of the communication link between the sending component and the target component according to whether the query feedback information sent by the target component based on the status query request is received, where the query feedback information and the status query request can meet the preset communication protocol ,
  • the preset communication protocol can enable safe and stable data transmission between different communication protocol interfaces, thereby effectively realizing the query of the status of the communication link established through different communication protocol interfaces, and the method also It has the characteristics of simple implementation method and effective reduction of labor cost and time cost, which further improves the practicability of the method.
  • Figure 2 is a schematic diagram of a flow chart for generating a status query request corresponding to a target component according to an embodiment of the present invention; on the basis of the above-mentioned embodiment, referring to Fig.
  • the specific implementation of the status query request is not limited, and those skilled in the art can set it according to specific application requirements and design requirements.
  • the generation of the status query request corresponding to the target component in this embodiment may include:
  • Step S201 Obtain application layer data, network layer data, and data link layer data corresponding to the sending component and the target component.
  • Step S202 Generate a status query request corresponding to the target component based on the application layer data, the network layer data, and the data link layer data.
  • the status query request may be request information generated based on a preset communication protocol, where the preset communication protocol may be the Internet Messaging Control Protocol.
  • the status query request generated through the Internet Messaging Control Protocol may be a Ping request.
  • the preset communication protocol may correspond to an open system interconnection communication model (Open System Interconnection, OSI model for short).
  • OSI model corresponding to the preset communication protocol may include 7 layers: physical layer, data link layer , Network layer, transport layer, session layer, identification layer and application layer.
  • the network structure corresponding to the preset communication protocol can be simplified and customized.
  • the preset corresponding to the status query request in this embodiment Assuming that the communication protocol may only include the data link layer, the network layer, and the application layer, the status query request is generated through the preset communication protocol corresponding to the simplified network structure, which can effectively ensure the quality and efficiency of the status query request generation.
  • the preset communication protocol refers to a protocol above the link layer.
  • the application layer data and network corresponding to the sending component and the target component can be obtained.
  • the layer data may also include: the user can configure the application data that can realize the preset function according to the needs of the application scenario; the network layer data is used to enable each component to have the data forwarding function, that is, the routing data can be forwarded to the preset component and the preset Interface; data link layer data is used to implement operations such as data grouping, formatting senders, receivers, and data verification, so as to generate status query requests.
  • the data link layer data may include at least one of the following: frame data, data control information, where the frame data may refer to the content of the data to be transmitted, and the data control information includes restriction information for data transmission of the frame data;
  • the data control information may include at least one of the following: address information of the sending component, address information of the target component, and verification data. It is conceivable that the data control information may not only include the above-exemplified data. It can also be set according to specific application requirements and design requirements.
  • data control information can also include data synchronization information and flow control information, where data synchronization information is used to implement data synchronization operations on frame data, and flow control information is used for Limit the flow of frame data for data transmission.
  • the network layer is used to convert data link layer data into data packets, and the network layer data may include: data packets corresponding to frame data and data control information.
  • the application layer data can include at least one of the following: the first identity of the sending component, the second identity of the target component, application request data, and verification data.
  • the application request data mentioned above can vary with different application scenarios and applications. The requirements are different.
  • the application request data can be status request data, memory request data, load request data, etc.; the above verification data is used to verify the rationality of the status query request.
  • this embodiment does not limit the specific implementation methods for obtaining application layer data, network layer data, and data link layer data corresponding to the sending component and the target component, and can be set arbitrarily according to specific application requirements and application scenarios. For example: after the sending component and the target component are determined, the application layer data, network layer data and data link layer data can be generated based on the sending component and target component, the above application layer data, network layer data and data link layer data It can be stored in a preset interval, and application layer data, network layer data, and data link layer data corresponding to the sending component and the target component can be obtained by accessing the preset interval.
  • the aforementioned application layer data, network layer data, and data link layer data may be stored in a preset device, and the communication link detection device may send a data acquisition request to the preset device, so that the preset device can be obtained through data Request that the application layer data, network layer data, and data link layer data corresponding to the sending component and the target component be sent to the detection device of the communication link, so that the detection device of the communication link can stably obtain and send the component and the sending component.
  • Application layer data, network layer data and data link layer data corresponding to the target component may be stored in a preset device, and the communication link detection device may send a data acquisition request to the preset device, so that the preset device can be obtained through data Request that the application layer data, network layer data, and data link layer data corresponding to the sending component and the target component be sent to the detection device of the communication link, so that the detection device of the communication link can stably obtain and send the component and the sending component.
  • generating a status query request corresponding to the target component may include:
  • Step S401 Obtain the second identity of the target component.
  • Step S402 Generate a status query request based on the first identity, the second identity and the preset verification data of the sending component.
  • the second identity of the target component can be obtained, and then a status query request can be generated based on the first identity of the sending component, the second identity of the target component, and preset verification data.
  • the status query The request can detect the status information of the communication link between the target component and the sending component. For example, it can detect whether the operating state of the communication link between the target component and the sending component is a normal operating state.
  • the verification data may include preset characters, such as "0" and "1", which are used to identify whether the status query request is normal data.
  • the application layer data, network layer data, and data link layer data corresponding to the sending component and the target component are obtained, and then based on the application layer data, the network layer data, and the data link layer data, the data corresponding to the target component is generated.
  • the corresponding status query request effectively ensures the accuracy and reliability of the generation of the status query request, and further improves the stability and reliability of the method.
  • Sending the status query request to the target component may include: directly sending the status query request to the target component.
  • the sending component and the target component can establish a communication connection through the improved control protocol proposed by the present invention.
  • the sending component can directly send the status query request to the target component. This allows the target component to directly receive the status query request sent by the sending component.
  • sending the status query request to the target component may include: sending the status query request to the target component through at least one intermediate component.
  • the sending component can communicate with the target component through the Internet Message Control Protocol, an intermediate component, and the intermediate component can refer to a component unit with an information forwarding function, and the number of the aforementioned intermediate components can be one or Multiple.
  • the sending component can send the status query request to the intermediate component.
  • the intermediate component obtains the status query request, it can send the status query request to the target component so that the target component can receive the request sent by the intermediate component.
  • the status query request can communicate with the target component through the Internet Message Control Protocol, an intermediate component, and the intermediate component can refer to a component unit with an information forwarding function, and the number of the aforementioned intermediate components can be one or Multiple.
  • FIG. 7 is a schematic diagram of the process of sending a status query request to a target component through at least one intermediate component in an embodiment of the present invention; on the basis of the above-mentioned embodiment, referring to FIG.
  • the execution body of the communication link detection method can also include at least one intermediate component.
  • Component communication connection may include:
  • Step S701 Send a status query request to at least one intermediate component.
  • Step S702 At least one intermediate component determines the second identity of the target component corresponding to the status query request.
  • Step S703 At least one intermediate component transmits the status query request based on the second identity, so as to send the status query request to the target component.
  • the type of the communication protocol interface of the sending component, the communication protocol interface type of at least one intermediate component, and the type of the communication protocol interface of the target component are not exactly the same, that is, the type of the communication protocol interface of the sending component, the communication of at least one intermediate component
  • the protocol interface type is completely different from the communication protocol interface type of the target component; or, the communication protocol interface type of the sending component, the communication protocol interface type of at least one intermediate component, and the communication protocol interface type of the target component are partly the same.
  • the sending component After the sending component generates the status query request, in order to send the status query request to the target component, the sending component can send the status query request to at least one intermediate component. After the at least one intermediate component receives the status query request, it can request the status query Perform analysis and processing to determine the second identity of the target component corresponding to the status query request.
  • At least one intermediate component may transmit the status query request based on the second identity to send the status query request to the target component.
  • the at least one intermediate component in this embodiment transmits the status query request based on the second identity, so as to send the status query request to the target component, which may include:
  • Step S801 Compare the second identity with at least one third identity corresponding to at least one intermediate component.
  • Step S802 When at least one third identity is inconsistent with the second identity, the status query request is sent to other components through the sending port of the intermediate component, so as to finally send the status query request to the target component, where the sending port and The port through which the intermediate component receives the status query request is different; and, when the second identity is consistent with a third identity, the intermediate component corresponding to the third identity is determined as the target component.
  • At least one intermediate component obtains the second identity of the target component corresponding to the status query request
  • at least one third identity corresponding to the at least one intermediate component can be obtained, and then the second identity can be combined with At least one third identity is analyzed and compared.
  • the result of the analysis and comparison is that at least one third identity is inconsistent with the second identity, it means that at least one intermediate component corresponding to the at least one third identity is not a target component.
  • the sending port is different from the port through which the intermediate component receives the status query request, so that the status query request can be sent to the target component.
  • the result of the analysis and comparison is that the second identity is consistent with a third identity, it can be determined that the intermediate component corresponding to the third identity is the target component, so that the status query request is sent to the target component.
  • the sending component is component A
  • at least one intermediate component may include: component B, component C, and component D.
  • Component A, component B, component C, and component D are connected in sequence; wherein, component B corresponds to identity b, component C corresponds to identity c and component D corresponds to identity d.
  • the generated status query request may include the identity of the target component, assuming that the identity of the target component is identity c. After that, component A can send the status query request to component B.
  • component B After component B obtains the status query request, it can analyze and compare the identity b corresponding to component B with the identity of the target component, because the identity b and the identity The identifier c is inconsistent, which means that component B is not the target component corresponding to the status query request. At this time, component B can forward the status query request to component C. After component C obtains the status query request, component C can be The corresponding identity c is analyzed and compared with the identity of the target component. Since the identity c is consistent with the identity c included in the status query request, it indicates that component C is the target component corresponding to the status query request. At this time, It effectively realizes that component A sends the status query request to component C. After component C receives the status query request, component C does not need to transmit the status query request again.
  • the method in this embodiment may further include:
  • Step S803 Add a third identity to the status query request, and mark the component corresponding to the third identity as an intermediate component to record the transmission path of the status query request.
  • the at least one third identity is inconsistent with the second identity, it means that at least one intermediate component corresponding to the at least one third identity is not a target component.
  • the status query request passed
  • the sending component is component A
  • the intermediate component includes component B, component C, and component D
  • the target component is component E.
  • the status query request can be sent to component B.
  • the component B’s identity identifier b is inconsistent with the target component identifier, it can be based on the corresponding component B
  • the identity identifier b and the status query request generate a status query request 1.
  • the status query request 1 includes the identity identifier b for identifying the component B as an intermediate component, so that the status query request 1 can record the transmission path.
  • component B After component B obtains status query request 1, it can send status query request 1 to component C.
  • Component C can determine that component C’s identity c is inconsistent with the target component’s identity, and then can be based on component C’s identity. c and the status query request 1 generate the status query request 2.
  • the status query request 2 at this time includes the identity b for identifying component B as an intermediate component and the identity c for identifying component C as the intermediate component, so that The status query request 2 can record the transmission path.
  • the component C can send the status query request 2 to the component D.
  • the component D can determine that the identity d of the component D is inconsistent with the target component identity, and then can be based on the identity of the component D d and the status query request 2 generate a status query request 3.
  • the status query request 3 includes an identity identifier b for identifying component B as an intermediate component, an identity identifier c for identifying component C as an intermediate component, and
  • the identification component D is the identity d of the intermediate component, so that the status query request 3 can record the transmission path.
  • the component D After the component D obtains the status query request 3, it can send the status query request 3 to the component E. After the component E obtains the status query request, it can determine whether the identity identifier e of the component E is consistent with the target component identifier. The identity identifier e of is consistent with the target component identifier, thereby effectively realizing the transmission of the status query request to the target component.
  • the status query request is continued Transmission to send the status query request to the target component; or, when the second identity is consistent with a third identity, the intermediate component corresponding to the third identity is determined as the target component, thereby effectively ensuring
  • the sending component sends the status query request to the target component through at least one intermediate component, which further ensures the stability and reliability of the method.
  • FIG. 9 is a schematic flowchart of another communication link detection method provided by an embodiment of the present invention. on the basis of the foregoing embodiment, with continued reference to FIG. 9, the intermediate component corresponding to the third identity is After being determined as the target component, the target component in this embodiment can execute the following steps. That is, the execution subject in this embodiment can include the target component corresponding to the sending component. Specifically, the method can further include:
  • Step S901 The target component generates query feedback information corresponding to the status query request.
  • Step S902 Return the query feedback information to the sending component.
  • the target component can analyze and process the status query request to generate query feedback information corresponding to the status query request.
  • the query feedback information generated by the target component can be pre-configured and The preset feedback information corresponding to the status query request, or the content included in the query feedback information is the same as the content included in the status query request; or, the query feedback information can include the communication link between the sending component and the target component The component identity of at least one intermediate component in.
  • the target component when the status query request is the preset "01010101", after the target component receives the status query request, it can generate status feedback information based on the status query request.
  • the status feedback information can be "01111111”.
  • the content included in the status feedback information is the same as the content included in the status query request, that is, the status feedback information may be "01010101”.
  • the query feedback information may include the component identity of at least one intermediate component in the communication link between the sending component and the target component.
  • the status feedback information may be "01010101- 0110", the above-mentioned "0110” is the component identity of at least one intermediate component in the communication link between the sending component and the target component.
  • the target component After generating the status feedback information, the target component can return the query feedback information to the sending component, so that the sending component can detect the operating status of the communication link between the sending component and the target component based on whether the query feedback information is received, thereby effectively This guarantees the accuracy and reliability of the detection of the operating status of the communication link.
  • FIG. 10 is a schematic flowchart of determining the working status of the communication link between the sending component and the target component according to whether the query feedback information sent by the target component based on the status query request is received according to an embodiment of the present invention; implemented in any of the above Based on the example, referring to FIG. 10, this embodiment determines the working status of the communication link between the sending component and the target component according to whether the query feedback information sent by the target component based on the status query request is received.
  • the specific implementation method is not limited, and those skilled in the art can set according to specific application requirements and design requirements.
  • it is determined based on whether the query feedback information sent by the target component based on the status query request is received.
  • the working status of the communication link between the sending component and the target component may include:
  • Step S1001 When receiving the query feedback information, obtain the feedback duration corresponding to the query feedback information.
  • Step S1002 Determine the working state of the communication link between the sending component and the target component based on the feedback duration.
  • this embodiment does not limit the specific acquisition method of the feedback duration, and those skilled in the art can make any configuration according to specific application requirements and design requirements, for example: determine the sending corresponding to the status query request through a preset timer The time and the receiving time corresponding to the query feedback information, and then the sending time and the receiving time can be used to determine the feedback time corresponding to the query feedback information.
  • the sending timestamp corresponding to the status query request and the feedback timestamp corresponding to the query feedback information may be acquired, and the feedback duration corresponding to the query feedback information may be determined by the sending timestamp and the feedback timestamp.
  • the feedback duration can be analyzed and processed to determine the working status of the communication link between the sending component and the target component.
  • the determination of the working status of the communication link between the sending component and the target component based on the feedback duration in this embodiment may include:
  • Step S1101 Analyze and compare the feedback duration with a preset time threshold.
  • Step S1102 When the feedback duration is greater than the preset time threshold, it is determined that the delay state of the communication link is an abnormal state. or,
  • Step S1103 When the feedback duration is less than or equal to the preset time threshold, it is determined that the delay state of the communication link is a normal state.
  • the preset time threshold may be a pre-configured maximum time limit used to identify the communication link as a normal communication state.
  • This embodiment does not limit the specific data range, and those skilled in the art can according to specific application requirements and Set the design requirements, for example: the preset time threshold can be 15s, 25s, 30s, 45s or 1min, etc.
  • the feedback duration can be analyzed and compared with the preset time threshold. When the feedback duration is greater than the preset time threshold, it indicates that the delay time of the communication link between the sending component and the target component is relatively long. Long, it can be determined that the delay state of the communication link is an abnormal state. Or, when the feedback duration is less than or equal to the preset time threshold, it indicates that the delay time of the communication link between the sending component and the target component at this time is relatively short, and the delay state of the communication link can be determined to be a normal state.
  • the delay state of the communication link is an abnormal state, and when the feedback duration is less than or equal to the preset time threshold
  • the delay state of the communication link is determined to be the normal state, the working state of the communication link between the sending component and the target component is effectively determined based on the feedback duration, which further improves the accuracy and reliability of the method.
  • FIG. 12 is a schematic flowchart of another method for detecting a communication link provided by an embodiment of the present invention. on the basis of the above embodiment, referring to FIG. 12, the communication link between the sending component and the target component is determined After the working state of the road, the method in this embodiment may further include:
  • Step S1201 Determine the link type of the communication link between the sending component and the target component.
  • Step S1202 When the link type is a serial link and the working state of the communication link is a normal state, it is determined that the working state of the sub-communication link between all components included in the serial link is a normal state. or,
  • Step S1203 When the link type is a parallel link, a branch status query request corresponding to the parallel branch included in the parallel link is generated, and the communication link corresponding to the parallel branch is determined based on the branch status query request Whether the working status of the road is normal.
  • the communication link formed between the sending component and the target component may include multiple link types.
  • the communication link formed between the sending component and the target component may include at least one of the following: series link and parallel link link.
  • the link type of the communication link between the sending component and the target component can be analyzed and identified. Specifically, the number of input nodes and the number of output nodes for each component in the above communication link can be obtained, and the communication link between the sending component and the target component can be determined based on the number of input nodes and the number of output nodes. When the number of input nodes is greater than or equal to 2, the number of output nodes is greater than or equal to 2, it can be determined that the link type of the communication link between the sending component and the target component includes a parallel link. When the number of nodes is one and the number of output nodes is one, it can be determined that the link type of the communication link between the sending component and the target component includes a serial link.
  • the working status of the communication link can be detected based on the link type of the communication link between the sending component and the target component. Specifically, when the link type is a serial link and the working state of the communication link is a normal state, it can be determined that the working state of the sub-communication link between all components included in the serial link is a normal state.
  • a branch state query request corresponding to the parallel branch included in the parallel link is generated, where, The number of branch status query requests corresponds to the number of parallel branches included in the parallel link, and then, based on the branch status query request, it can be determined whether the working status of the communication link corresponding to the parallel branch is normal.
  • the multiple intermediate components may include intermediate component 1 and intermediate component 2, specifically, sending component, intermediate component 1,
  • the intermediate component 2 and the target component can form a serial link.
  • the multiple intermediate components may include the intermediate component 1, the intermediate component 2, the intermediate component 3, the intermediate component 4, the intermediate component 5, and the intermediate component.
  • the intermediate component 1 can form a parallel branch 1 between the sending component and the target component
  • the intermediate component 2 and the intermediate component 3 are connected in series to form a parallel branch 2 between the sending component and the target component.
  • the component 4, the intermediate component 5, and the intermediate component 6 are connected in series to form a parallel branch 3 between the sending component and the target component; that is, multiple parallel links are included between the sending component and the target component.
  • the branch status query request corresponding to the parallel branch included in the parallel link that is, the branch status query request corresponding to parallel branch 1 and the branch status query request corresponding to parallel branch 2 can be generated 2 and the branch status query request 3 corresponding to the parallel branch 3, and then the branch status query request 1, branch status query request 2 and branch status query request 3 generated above can be used to determine the location of the parallel branch. Whether the working status of the corresponding communication link is normal.
  • the branch status query request corresponding to the parallel branch included in the parallel link in order to improve the quality and efficiency of generating the branch status query request, it can be based on the corresponding parallel branch.
  • the node component generates a branch status query request, and the branch status query request at this time may include branch identification information corresponding to the parallel branch (identity identification of the node component included in the parallel branch).
  • a branch status query request 1 corresponding to the parallel branch 1 can be generated, and the branch status query request 1 may include The component identifier 1 corresponding to the intermediate component 1, and the component identifier 1 is used to identify the parallel branch 1.
  • the branch status query request 2 may include 2
  • the corresponding component identification 2 and the component identification 3 corresponding to the intermediate component 3 the above-mentioned component identification 2 and component identification 3 are used to identify the parallel branch 2.
  • a branch status query request 3 corresponding to the parallel branch 3 can be generated, and the branch status
  • the query request 3 may include a component identification 4 corresponding to the intermediate component 4, a component identification 5 corresponding to the intermediate component 5, a component identification 6 corresponding to the intermediate component 6, the above-mentioned component identification 4, component identification 5, and component identification 6 is used to identify parallel branch 3.
  • the sending component when the sending component receives the branch status feedback information sent by the target component based on the branch status query request 1, it can be determined that the working state of the parallel branch 1 between the sending component and the target component is a normal state; When the sending component does not receive the branch status feedback information sent by the target component based on the branch status query request 1, it can be determined that the working state of the parallel branch 1 between the sending component and the target component is an abnormal state.
  • the sending component receives the branch status feedback information sent by the target component based on the branch status query request 2, it can be determined that the working state of the parallel branch 2 between the sending component and the target component is normal.
  • the sending component does not receive the branch status feedback information sent by the target component based on the branch status query request 2, it can be determined that the working state of the parallel branch 2 between the sending component and the target component is an abnormal state.
  • the sending component When the sending component receives the branch status feedback information sent by the target component based on the branch status query request 3, it can be determined that the working state of the parallel branch 3 between the sending component and the target component is normal; When the branch status feedback information sent by the target component based on the branch status query request 3 is not received, it can be determined that the working state of the parallel branch 3 between the sending component and the target component is abnormal.
  • the branch when generating the branch status feedback information corresponding to the branch status query request, in order to improve the quality and efficiency of generating the branch status feedback information, the branch can be generated based on the component node corresponding to the parallel branch. Path status feedback information.
  • the branch status feedback information may include branch identification information (identities of component nodes included in the parallel branch) corresponding to the parallel branch.
  • the specific implementation of generating branch status feedback information is similar to the specific implementation of generating branch status query requests.
  • the branch identification information corresponding to the branch status query request can be determined first, based on the branch status query request.
  • the identification information generates corresponding branch state feedback information, and the branch state feedback information at this time may include branch identification information.
  • the serial link by determining the link type of the communication link between the sending component and the target component, when the link type is a serial link and the working state of the communication link is normal, the serial link can be determined
  • the working status of the sub-communication link between all the components included in is the normal state; or, when the link type is a parallel link, a branch status query corresponding to the parallel branch included in the parallel link is generated Request, and based on the branch status query request to determine whether the working status of the communication link corresponding to the parallel branch is normal, so as to effectively realize the different structure based on the link type of the communication link between the sending component and the target component.
  • the accuracy and reliability of the detection of the working status of the communication link further improves the accuracy and reliability of the method.
  • FIG. 15 is a schematic diagram 1 of the process of sending a status query request to a target component according to an embodiment of the present invention; on the basis of the above embodiment, referring to FIG. 15, this embodiment provides another state that can be realized
  • sending the status query request to the target component may include:
  • Step S1501 Obtain the sending frequency corresponding to the status query request.
  • Step S1502 Send the status query request to the target component based on the sending frequency.
  • the sending frequency corresponding to the status query request can be obtained, and then the status query request can be sent based on the sending frequency To the target component; that is, when the control sending component and the target component are running, it can obtain the pre-configured sending frequency corresponding to the status query request, and then the control sending component periodically sends the status query request to the target component according to the above sending frequency to detect The working status of the communication link between the sending component and the target component.
  • the detection further ensures the stable and reliable work of the sending component and the target component, and further improves the practicability of the method.
  • FIG 16 is a schematic diagram of the second process of sending a status query request to a target component according to an embodiment of the present invention; on the basis of the above embodiment, and continuing to refer to Figure 16, this embodiment provides another way of realizing the status The manner in which the query request is sent to the target component.
  • sending the status query request to the target component may include:
  • Step S1601 Obtain the sending format corresponding to the status query request.
  • Step S1602 Send the status query request to the target component based on the sending format.
  • the sending format corresponding to the status query request can be obtained, and then the sending format can be changed based on the above-defined sending format.
  • the status query request is sent to the target component, and then the sending component is controlled to send the status query request to the target component according to the above sending format, so that any type of target component can identify the status query request based on the limited sending format, thereby facilitating detection and sending The working status of the communication link between the component and the target component.
  • any type of target component can identify the status query request based on the limited sending format. Effectively realize the status detection of the communication link between the sending component and the target component based on the pre-configured sending format, thereby ensuring the stability and reliability of the detection of the working status of the communication link between the sending component and the target component .
  • Figure 17 is a schematic flow chart of a schematic flow chart of another communication link detection method provided by an embodiment of the present invention. on the basis of any of the above embodiments, with continued reference to Figure 17, the status query request includes When an application requests data, the method in this embodiment may further include:
  • Step S1701 Receive application feedback data sent by the target component based on the application request data.
  • Step S1702 Determine an application state corresponding to the target component based on the application feedback data.
  • the application request data may include at least one of the following: load occupation request, memory occupation request, and central processing unit CPU occupation request; correspondingly, the application status may include at least one of the following: load occupation information, memory occupation information, and central processing Processor CPU usage information.
  • the sending component sends application request data to the target component, after the target component obtains the application request data, it can generate application feedback information based on the application request data, and send the application feedback data to the sending component, so that the sending component can receive the target
  • the component sends application feedback data based on the application request data. After the sending component receives the application feedback data, it can determine the application state corresponding to the target component based on the application feedback data.
  • the sending component after the sending component sends a load occupation request to the target component, after the target component receives the load occupation request, it can generate load occupation information based on the load occupation request, and then can return the load occupation information to the sending component, so that the sending component can
  • the load occupancy information sent by the target component based on the load occupancy request is received, and the load occupancy status of the target component can be determined based on the load occupancy information, so that the user can obtain the load occupancy status of the target component in a timely and accurate manner. It is beneficial to adjust and schedule the running state between the sending component and the target component based on the load occupancy, so as to improve the quality and efficiency of data communication between the sending component and the target component.
  • the sending component after the sending component sends a memory occupation request to the target component, after the target component receives the memory occupation request, it can generate memory occupation information based on the memory occupation request, and then return the memory occupation information to the sending component, so that the sending component can Receives the memory occupancy information sent by the target component based on the memory occupancy request, and can determine the memory occupancy of the target component based on the memory occupancy information, so that the user can get the memory occupancy of the target component in a timely and accurate manner. It is beneficial to adjust and schedule the running state between the sending component and the target component based on the memory occupancy information, so as to improve the quality and efficiency of data communication between the sending component and the target component.
  • Example 3 After the sending component sends a request for CPU occupancy of the central processing unit to the target component, the target component can generate CPU occupancy information based on the request for CPU occupancy of the central processing unit and then return the CPU occupancy information after receiving the request for CPU occupancy of the central processing unit. To the sending component, so that the sending component can receive the CPU occupancy information sent by the target component based on the CPU occupancy request, so that the user can get the CPU occupancy information of the target component in a timely and accurate manner, which is conducive to sending the CPU occupancy information based on the CPU occupancy information.
  • the running status between the component and the target component is adjusted and scheduled to improve the quality and efficiency of data communication between the sending component and the target component.
  • FIG. 18 is a schematic flowchart of yet another method for detecting a communication link according to an embodiment of the present invention. referring to FIG. 18, this embodiment provides yet another method for detecting a communication link, and the execution subject of the method may It is a detection device for a communication link.
  • the detection device can be an intermediate component with data transmission function, that is, the detection method of the communication link can be applied to the intermediate component.
  • the intermediate component can be implemented as Software, or a combination of software and hardware.
  • the detection method of the communication link may include:
  • Step S1801 The intermediate component receives the status query request sent by the sending component, and the status query request is used to query the working status of the communication link between the sending component and the target component.
  • Step S1802 The intermediate component determines the target identity of the target component corresponding to the status query request.
  • Step S1803 The intermediate component transmits the status query request based on the target identity, so as to send the status query request to the target component.
  • the sending component can send the status query request to the intermediate component, so that the intermediate component can receive the status query request from the sending component.
  • Status query request sent.
  • the intermediate component After the intermediate component receives the status query request, it can analyze and process the status query request to determine the target identity of the target component corresponding to the status query request.
  • the intermediate component may transmit the status query request based on the target identity to send the status query request to the target component.
  • the intermediate component transmitting the status query request based on the target identity to send the status query request to the target component may include:
  • Step S18031 The intermediate component compares the target identity with the first identity corresponding to the intermediate component.
  • Step S18032 When the first identity is inconsistent with the target identity, the status query request is sent to other components through the sending port of the intermediate component, so that the status query request is finally sent to the target component, where the sending port and the intermediate component receive The port of the status query request is different; and, when the first identity is consistent with the target identity, the intermediate component corresponding to the first identity is determined as the target component.
  • the intermediate component after the intermediate component obtains the target identity of the target component corresponding to the status query request, it can obtain the first identity corresponding to the intermediate component, analyze and compare the first identity with the target identity, and analyze When the comparison result is that the first identity is inconsistent with the target identity, it means that the intermediate component corresponding to the first identity is not the target component.
  • you can continue to query the status The request is transmitted, that is, the status query request is sent to other components through the sending port of the intermediate component, and the other components may include other intermediate components or target components, so as to send the status query request to the target component.
  • the result of the analysis and comparison is that the first identity is consistent with the target identity, it is determined that the intermediate component corresponding to the first identity is the target component, so that the status query request is sent to the target component.
  • the sending component is component A
  • at least one intermediate component may include: component B, component C, and component D.
  • Component A, component B, component C, and component D are connected in sequence; wherein, component B corresponds to identity b, component C corresponds to identity c and component D corresponds to identity d.
  • the generated status query request may include the identity of the target component, assuming that the identity of the target component is identity c. After that, component A can send the status query request to component B.
  • component B After component B obtains the status query request, it can analyze and compare the identity b corresponding to component B with the identity of the target component, because the identity b and the identity The identifier c is inconsistent, which means that component B is not the target component corresponding to the status query request. At this time, component B can forward the status query request to component C. After component C obtains the status query request, component C can be The corresponding identity c is analyzed and compared with the identity of the target component. Since the identity c is consistent with the identity c included in the status query request, it indicates that component C is the target component corresponding to the status query request. At this time, It effectively realizes that component A sends the status query request to component C. After component C receives the status query request, component C does not need to transmit the status query request again.
  • the status query request is continuously transmitted to transfer the status
  • the query request is sent to the target component; or, when the target identity is consistent with the first identity, the intermediate component corresponding to the first identity is determined as the target component, thereby effectively realizing that the sending component can query the status
  • the request is sent to the target component, which further ensures the stability and reliability of the method.
  • the method in this embodiment may further include:
  • Step S1804 Add the first identity to the status query request, and mark the component corresponding to the first identity as an intermediate component to record the transmission path of the status query request.
  • the first identity When the first identity is inconsistent with the target identity, it means that the components corresponding to the first identity are not target components.
  • the status query request is generated , And when the intermediate component of the identity identifier that is different from the target identity is reached, the first identity can be added to the status query request, and the component corresponding to the first identity can be marked as the intermediate component.
  • the sending component is component A
  • the intermediate component includes component B, component C, and component D
  • the target component is component E.
  • the status query request can be sent to component B.
  • the component B’s identity identifier b is inconsistent with the target component identifier, it can be based on the corresponding component B
  • the identity identifier b and the status query request generate a status query request 1.
  • the status query request 1 includes the identity identifier b for identifying the component B as an intermediate component, so that the status query request 1 can record the transmission path.
  • component B After component B obtains status query request 1, it can send status query request 1 to component C.
  • Component C can determine that component C’s identity c is inconsistent with the target component’s identity, and then can be based on component C’s identity. c and the status query request 1 generate the status query request 2.
  • the status query request 2 at this time includes the identity b for identifying component B as an intermediate component and the identity c for identifying component C as the intermediate component, so that The status query request 2 can record the transmission path.
  • the component C can send the status query request 2 to the component D.
  • the component D can determine that the identity d of the component D is inconsistent with the target component identity, and then can be based on the identity of the component D d and the status query request 2 generate a status query request 3.
  • the status query request 3 includes an identity identifier b for identifying component B as an intermediate component, an identity identifier c for identifying component C as an intermediate component, and
  • the identification component D is the identity d of the intermediate component, so that the status query request 3 can record the transmission path.
  • the component D After the component D obtains the status query request 3, it can send the status query request 3 to the component E. After the component E obtains the status query request, it can determine whether the identity identifier e of the component E is consistent with the target component identifier. The identity identifier e of is consistent with the target component identifier, thereby effectively realizing the transmission of the status query request to the target component.
  • the method in this embodiment may further include:
  • Step S1901 Receive query feedback information sent by the target component, where the query feedback information includes the component identity of at least one intermediate component in the communication link between the sending component and the target component.
  • Step S1902 Transmit the query feedback information based on the component identity of the at least one intermediate component included in the query feedback information, so as to finally send the query feedback information to the sending component.
  • the target component can analyze and process the status query request and generate query feedback information corresponding to the status query request. Then the target component can send the query feedback information to the intermediate component, so that the intermediate component can receive the query feedback information sent by the target component, where the query feedback information can include the communication link between the sending component and the target component The component identity of at least one intermediate component in.
  • the query feedback information can be analyzed and processed to transmit the query feedback information based on the component identity of at least one intermediate component included in the query feedback information, so as to finally send the query feedback information to The sending component, and then the sending component can determine the working status of the communication link between the sending component and the target component according to whether the query feedback information sent by the target component based on the status query request is received.
  • the above “0110” is the component identity of at least one intermediate component in the communication link between the sending component and the target component.
  • the "0110” included in the above status feedback information can be analyzed and processed to determine that at least one intermediate component corresponding to the status feedback information includes the intermediate component 2 and the intermediate component 3, and then the The status feedback information is transmitted through the intermediate component 3 and the intermediate component 2 in turn, so that the target component sends the status feedback information to the sending component through the intermediate component 3 and the intermediate component 2, so that the query feedback information is finally sent to the sending component.
  • the above “0111” is the component identity of at least one intermediate component in the communication link between the sending component and the target component, and the status is obtained by the intermediate component
  • the "0111” included in the state feedback information can be analyzed and processed to determine that at least one intermediate component corresponding to the state feedback information includes intermediate component 4, intermediate component 5, and intermediate component 6, and then The status feedback information is transmitted through the intermediate component 4, the intermediate component 5, and the intermediate component 6 in turn, so that the target component sends the status feedback information to the sending component through the intermediate component 4, the intermediate component 5, and the intermediate component 6, so as to realize the query feedback
  • the information is finally sent to the sending component.
  • this application embodiment provides a communication link detection method.
  • the execution body of the detection method can be a communication link detection system.
  • the following uses the Internet Control Messages Protocol (ICMP) )
  • the generated Ping command (generally including at least 10-11 bytes) is taken as an example of the status query request.
  • the Ping instruction can be configured to meet the specific format of the preset communication protocol, and the above specific format that meets the preset communication protocol can realize the detection of the communication link. The system load, memory, and the operating status of the communication link are tested.
  • the detection system of the communication link may include:
  • the upper computer including personal computer PC, mobile terminal equipment or other embedded terminal equipment, is used as a sending component with data transmission function. Specifically, the upper computer can obtain application layer data corresponding to the sending component and the target component. Network layer data and data link layer data, and based on application layer data, network layer data, and data link layer data to generate status query requests (Ping instructions), and send the status query requests to other components at a preset frequency.
  • the preset frequency may include any one of the following: 1 time/s, 2 times/s, 3 times/s, 5 times/s, and so on.
  • other components can also actively generate status identification information used to identify the operating status of the component itself, and actively upload the status identification information to the host computer, so that the host computer can actively learn the operating status of other components.
  • the corresponding status identification information can also actively generate status identification information used to identify the operating status of the component itself, and actively upload the status identification information to the host computer, so that the host computer can actively learn the operating status of other components. The corresponding status identification information.
  • Other components may include: intermediate components and target components, which are used to receive the status query request sent by the host computer, and perform corresponding data transmission operations based on the status query request, or generate query feedback information corresponding to the status query request.
  • the intermediate component includes the first chip, the second chip, the third chip, the fourth chip, and the fifth chip that are sequentially connected to the host computer
  • the target component includes the sixth chip as an example.
  • the interfaces of the second chip can be connected through wireless links
  • the interfaces of the second chip and the interfaces of the third chip can be connected through PCIE
  • the interfaces of the third chip can be connected to the interfaces of the fourth chip.
  • the communication connection is carried out through USB
  • the interface of the fourth chip and the interface of the fifth chip can be communicated through CAN
  • the interface of the fifth chip and the interface of the sixth chip can be communicated through the serial port
  • the sixth A sensor is connected to the chip for communication, and the sensor is used to detect the operating state information of the sixth chip.
  • the first chip, the second chip, the third chip, the fourth chip, the fifth chip, and the sixth chip are included in the same device or device.
  • this embodiment includes the following steps:
  • Step 1 The sending component (host computer) obtains application layer data, network layer data and data link layer data corresponding to the sending component and the target component (sixth chip).
  • the application layer data may include at least one of the following: the first identity of the sending component, the second identity of the target component, application request data, and verification data.
  • the above application request data can vary with different application scenarios and applications. Requirements are different.
  • application request data can be status request data, memory request data, load request data, etc. That is, users can configure different application request data according to different application scenarios or different application requirements.
  • the aforementioned verification data is used to verify the rationality of the status query request.
  • Step 2 Generate a status query request based on application layer data, network layer data, and data link layer data.
  • the application layer data may include at least one of the following: the first identity of the sending component, the second identity of the target component, application request data, and verification data;
  • the data link layer data may include at least one of the following: frame Data, data control information, data control information includes at least one of the following: the address information of the sending component, the address information of the target component data control information, and the check data;
  • the network layer data may include: data corresponding to the frame data and the data control information data pack.
  • the generated status query request can include 10 to 11 bytes.
  • the first byte of information included in the generated status query request can be the sender's information, and the second byte of information can be the receiver.
  • the information and the third byte of information can be the sending sequence number identification, and the fourth byte of information can be the verification information.
  • Step 3 Send the status query request to the target component.
  • Step 4 The target component receives the status query request and generates query feedback information corresponding to the status query request.
  • Step 5 The target component sends the query feedback information to the sending component.
  • Step 6 The sending component determines the working status of the communication link between the sending component and the target component based on whether the query feedback information is received.
  • the sending component when the sending component receives the query feedback information, it can be determined that the working state of the communication link between the sending component and the target component is normal; when the sending component does not receive the query feedback information, it can be determined that the sending component The working state of the communication link with the target component is abnormal.
  • the sending component receives the query feedback information and determines the packet return time corresponding to the query feedback information, so as to determine whether the delay of the communication link is reasonable according to the packet return time.
  • the method in this embodiment includes the following steps:
  • Step 11 The sending component (host computer) obtains application layer data, network layer data and data link layer data corresponding to the sending component and the target component (sixth chip).
  • Step 12 Generate a status query request based on application layer data, network layer data, and data link layer data.
  • Step 13 Send the status query request to the intermediate component (including the first chip, the second chip, the third chip, the fourth chip, and the fifth chip).
  • Step 14 The intermediate component receives the status query request, and identifies whether the intermediate component is the target component.
  • the status query request is sent to the first chip so that the first chip receives the status query request, it can be identified whether the first chip is the target component, that is, it is determined whether the identity information of the first chip is in the status query request Whether the included identification information corresponding to the target component is the same, when the first chip is the target component, the query feedback information 1 corresponding to the status query request can be generated, and the generated query feedback information 1 can be sent to Send the component.
  • the status query request can continue to be transmitted, that is, the first chip can send the status query request to the second chip, and the second chip can identify the status query request after receiving the status query request.
  • the second chip is the target component
  • the query feedback information 2 corresponding to the status query request can be generated, and the generated query feedback information 2 can be sent to the sending component.
  • the second chip when the second chip is not the target component, it can continue to transmit the status query request, that is, the second chip can send the status query request to the third chip, and after the third chip receives the status query request, it can continue to transmit the status query request. Identify whether the third chip is the target component. When the third chip is the target component, the query feedback information 2 corresponding to the status query request can be generated, and the generated query feedback information 2 can be sent to the sending component.
  • Step 15 The sending component determines the working status of the communication link between the sending component and the target component based on whether the query feedback information 1 (query feedback information 2) is received.
  • the sending component when the sending component receives query feedback information 1 (query feedback information 2), it can be determined that the working state of the communication link between the sending component and the target component is normal; the sending component does not receive the query feedback information 1 (query feedback information 2), it can be determined that the working state of the communication link between the sending component and the target component is an abnormal state. Or, the sending component receives query feedback information 1 (query feedback information 2) and determines the packet return time corresponding to query feedback information 1 (query feedback information 2) to determine whether the communication link is delayed according to the packet return time Reasonable.
  • query feedback information 1 query feedback information 2
  • the sending component receives query feedback information 1 (query feedback information 2) and determines the packet return time corresponding to query feedback information 1 (query feedback information 2) to determine whether the communication link is delayed according to the packet return time Reasonable.
  • the communication link detection method provided by this application embodiment can simply and efficiently solve the complexity of detecting and diagnosing the operating status of each chip in the communication link detection system and the communication link between the chips in the related technology.
  • the problem, and the method also has the characteristics of simple implementation, good flexibility, and strong scalability, that is, the communication corresponding to the communication link between the detection systems of the communication link can be accurately detected through a simple status query request.
  • the state and the delay of the link facilitate the user to adjust or control the sending component and the target component in a timely and accurate manner, which effectively improves the stability and reliability of the method.
  • FIG. 22 is a schematic structural diagram 1 of a communication link detection device provided by an embodiment of the present invention. referring to FIG. 22, this embodiment provides a communication link detection device, and the communication link detection device The communication link detection method corresponding to the embodiment in FIG. 1 described above can be executed.
  • the communication link may include at least a sending component and a target component communicatively connected with the sending component, and the detection device includes:
  • the first memory 12 is used to store computer programs
  • the first processor 11 is configured to run a computer program stored in the first memory 12 to implement:
  • a status query request corresponding to the target component is generated, wherein the type of the communication protocol interface of the sending component is different from the type of the communication protocol interface of the target component;
  • the working status of the communication link between the sending component and the target component is determined.
  • the structure of the detection device of the communication link may further include a first communication interface 13 for the electronic device to communicate with other devices or a communication network.
  • the first processor 11 when the first processor 11 generates a status query request corresponding to the target component, the first processor 11 is configured to: obtain application layer data, network layer data, and data corresponding to the sending component and the target component Link layer data: Based on application layer data, network layer data, and data link layer data, a status query request corresponding to the target component is generated.
  • the application layer data includes at least one of the following: the first identity of the sending component, the second identity of the target component, application request data, and verification data;
  • the data link layer data may include at least one of the following: frame data, data control information, and the data control information includes at least one of the following: address information of the sending component, address information of the target component data control information, and check data;
  • the network layer data may include: data packets corresponding to frame data and data control information.
  • the first processor 11 when the first processor 11 generates a status query request corresponding to the target component, the first processor 11 is configured to: obtain the second identity of the target component; and based on the first identity and the first identity of the sending component 2. The identification and preset verification data are used to generate a status query request.
  • the first processor 11 when the first processor 11 sends the status query request to the target component, the first processor 11 is configured to: directly send the status query request to the target component; or, pass the status query request through at least one intermediate component Send to the target component.
  • the first processor 11 when the first processor 11 sends the status query request to the target component through at least one intermediate component, the first processor 11 is configured to: send the status query request to the at least one intermediate component, so that the at least one intermediate component The component determines the second identity of the target component corresponding to the status query request, and transmits the status query request based on the second identity to send the status query request to the target component, where the type of the communication protocol interface of the sending component The communication protocol interface type of at least one intermediate component and the communication protocol interface type of the target component are not exactly the same.
  • the at least one intermediate component when at least one intermediate component transmits the status query request based on the second identity to send the status query request to the target component, the at least one intermediate component is used to: combine the second identity with the at least one intermediate component The corresponding at least one third identity is compared; when the at least one third identity is inconsistent with the second identity, the status query request is sent to other components through the sending port of the intermediate component, so that the status query request is finally sent To the target component, where the sending port is different from the port used by the intermediate component to receive the status query request; and, when the second identity is consistent with a third identity, the intermediate component corresponding to the third identity is determined to be The target component.
  • the first processor 11 is further configured to: add the third identity to the status query request, and mark the component corresponding to the third identity as Intermediate component to record the transmission path of the status query request.
  • the first processor 11 is further configured to: the target component generates query feedback information corresponding to the status query request; Return to the sending component.
  • the content included in the query feedback information is the same as the content included in the status query request.
  • the query feedback information includes the component identity of at least one intermediate component in the communication link between the sending component and the target component.
  • the first processor 11 determines the working status of the communication link between the sending component and the target component according to whether it receives the query feedback information sent by the target component based on the status query request, the first processor 11 It is also used to: when the query feedback information is received, determine that the working state of the communication link is a normal state; or, when the query feedback information is not received, determine that the working state of the communication link is an abnormal state.
  • the first processor 11 determines the working status of the communication link between the sending component and the target component according to whether it receives the query feedback information sent by the target component based on the status query request, the first processor 11 It is also used for: when receiving the query feedback information, obtain the feedback duration corresponding to the query feedback information; based on the feedback duration, determine the working status of the communication link between the sending component and the target component.
  • the first processor 11 determines the working status of the communication link between the sending component and the target component based on the feedback duration
  • the first processor 11 is further configured to: compare the feedback duration with a preset time threshold. Analysis and comparison; when the feedback duration is greater than the preset time threshold, the delay state of the communication link is determined to be an abnormal state; or, when the feedback duration is less than or equal to the preset time threshold, the delay state of the communication link is determined to be a normal state .
  • the first processor 11 in this embodiment is further configured to: determine the status of the communication link between the sending component and the target component Link type; when the link type is a series link and the working state of the communication link is normal, it is determined that the working state of the sub-communication link between all components included in the series link is normal; and When the link type is a parallel link, a branch status query request corresponding to the parallel branch included in the parallel link is generated, and the communication link corresponding to the parallel branch is determined based on the branch status query request. Whether the working status is normal.
  • the number of branch status query requests corresponds to the number of parallel branches included in the parallel link.
  • the first processor 11 when the first processor 11 sends the status query request to the target component, the first processor 11 is also used to: obtain the sending frequency corresponding to the status query request; and send the status query request based on the sending frequency To the target component.
  • the first processor 11 when the first processor 11 sends the status query request to the target component, the first processor 11 is also used to: obtain the sending format corresponding to the status query request; based on the sending format, send the status query request To the target component.
  • the first processor 11 when application request data is included in the status query request, is further configured to: receive application feedback data sent by the target component based on the application request data; and determine that it corresponds to the target component based on the application feedback data. Application status.
  • the application request data includes at least one of the following: load occupation request, memory occupation request, and central processing unit CPU occupation request; correspondingly, the application status includes at least one of the following: load occupation information, memory occupation information, and central Processor CPU usage information.
  • the sending component and the target component are any two different components in a set of components.
  • the device shown in Fig. 22 can execute the methods of the embodiments shown in Figs. Description of the embodiment.
  • the implementation process and technical effects of this technical solution please refer to the description in the embodiments shown in FIG. 1 to FIG. 17 and FIG. 19 to FIG.
  • FIG. 23 is a second structural diagram of a communication link detection device provided by an embodiment of the present invention. referring to FIG. 23, this embodiment provides a communication link detection device, and the communication link detection device The communication link detection method corresponding to the embodiment in FIG. 18 described above can be executed.
  • the communication link may include at least a sending component and a target component communicatively connected with the sending component, and the detection device includes:
  • the second memory 22 is used to store computer programs
  • the second processor 21 is configured to run a computer program stored in the second memory 22 to implement:
  • the status query request is used to query the working status of the communication link between the sending component and the target component;
  • the status query request is transmitted based on the target identity to send the status query request to the target component.
  • the structure of the detection device of the communication link may further include a second communication interface 23 for the electronic device to communicate with other devices or a communication network.
  • the second processor 21 when the second processor 21 transmits the status query request based on the target identity to send the status query request to the target component, the second processor 21 is also used to: combine the target identity with the detection device location. The corresponding first identity is compared; when the first identity is inconsistent with the target identity, the status query request is sent to other components through the sending port of the detection device, so as to finally send the status query request to the target component, where: The sending port is different from the port through which the detection device receives the status query request; and, when the first identity is consistent with the target identity, the detection device corresponding to the first identity is determined as the target component.
  • the second processor 21 is further configured to: add the first identity to the status query request, and mark the component corresponding to the first identity as an intermediate component, Query the requested transmission path with the record status.
  • the second processor 21 is further configured to: receive query feedback information sent by the target component, and the query feedback information includes information between the sending component and the target component.
  • the component identity of at least one intermediate component in the communication link; the query feedback information is transmitted based on the component identity of the at least one intermediate component included in the query feedback information, so that the query feedback information is finally sent to the sending component.
  • the device shown in FIG. 23 can execute the method of the embodiment shown in FIG. 18-21.
  • the parts not described in detail in this embodiment please refer to the related description of the embodiment shown in FIG. 18-21.
  • the implementation process and technical effects of this technical solution refer to the description in the embodiment shown in FIG. 18-21, which will not be repeated here.
  • FIG. 24 is a schematic structural diagram of a communication link detection system provided by an embodiment of the present invention; as shown in FIG. 24, this embodiment provides a communication link detection system, wherein the communication link at least includes sending The target component 32 that the component 31 is communicatively connected with the sending component 31, the type of the communication protocol interface of the sending component 31 is different from the type of the communication protocol interface of the target component 32, the system includes:
  • the sending component 31 is used to generate a status query request corresponding to the target component 32; send the status query request to the target component 32 through the intermediate component 33; according to whether the query feedback information sent by the target component 32 based on the status query request is received, Determine the working status of the communication link between the sending component 31 and the target component 32;
  • the intermediate component 33 is used to receive the status query request sent by the sending component 31 through the receiving port.
  • the status query request is used to query the working status of the communication link between the sending component 31 and the target component 32, and pass the status query request through the intermediate component 33 Is sent out through the sending port, where the sending port is different from the receiving port of the intermediate component 33;
  • the target component 32 is configured to receive the status query request through the intermediate component 33, generate query feedback information based on the status query request, and send the query feedback information to the sending component 31.
  • the sending component 31 may include at least one of the following: a remote control, an unmanned aerial vehicle, a camera, a mobile Internet device, and a preset application APP;
  • the target component 32 may include at least one of the following: a remote control, a drone, a camera, a mobile Internet device, and a preset application APP.
  • the communication protocol of the above-mentioned target component 32 and the sending component 31 is different.
  • the system shown in Fig. 24 can execute the methods of the embodiments shown in Figs.
  • the implementation process and technical effects of this technical solution please refer to the description in the embodiment shown in FIG. 1 to FIG. 21, which will not be repeated here.
  • FIG. 25 is a schematic structural diagram 1 of a movable platform provided by an embodiment of the present invention; referring to FIG. 25, this embodiment provides a movable platform.
  • the movable platform may be a handheld phone, Hand-held gimbals, unmanned aerial vehicles, unmanned vehicles, unmanned ships, robots or self-driving cars, etc.
  • the movable platform may include:
  • the detection device 42 of the communication link in the embodiment of FIG. 22 described above is arranged on the body 41 and used to detect the state of the communication link formed between the communication components of the movable platform.
  • the communication component of the mobile platform may include at least one of the following: a remote control, a drone, a camera, a mobile Internet device, and a preset application APP.
  • Figure 26 is a second structural diagram of a mobile platform provided by an embodiment of the present invention. Referring to Figure 26, this embodiment provides a mobile platform. Human-machines, unmanned vehicles, unmanned ships, robots or self-driving cars, etc. Specifically, the movable platform may include:
  • the detection device 52 of the communication link in the embodiment of FIG. 23 described above is arranged on the body 51 and used to detect the state of the communication link formed between the communication components of the movable platform.
  • the communication component of the mobile platform may include at least one of the following: a remote control, a drone, a camera, a mobile Internet device, and a preset application APP.
  • the storage medium is a computer-readable storage medium.
  • the computer-readable storage medium stores program instructions. Corresponding to the detection method of the communication link in the embodiment.
  • Another aspect of this embodiment provides a computer-readable storage medium, the storage medium is a computer-readable storage medium, the computer-readable storage medium stores program instructions, and the program instructions are used to implement the embodiment corresponding to FIG. 18 above.
  • the technical solution provided by the embodiment of the present invention can determine the working status of the communication link between the sending component and the target component according to whether the query feedback information sent by the target component is received, wherein the query feedback information can satisfy the preset communication protocol .
  • the preset communication protocol can enable safe and stable data transmission between different communication protocol interfaces, thereby effectively realizing the query of the status of the communication link established through different communication protocol interfaces, and the method also It has the characteristics of simple implementation method and effective reduction of labor cost and time cost, which further improves the practicability of the method.
  • the disclosed related remote control device and method can be implemented in other ways.
  • the embodiments of the remote control device described above are merely illustrative.
  • the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units or components. It can be combined or integrated into another system, or some features can be ignored or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, remote control devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
  • the functional units in the various embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
  • the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium.
  • the technical solution of the present invention essentially or the part that contributes to the existing technology or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium.
  • the aforementioned storage media include: U disk, mobile hard disk, Read-Only Memory (ROM), Random Access Memory (RAM, Random Access Memory), magnetic disks or optical disks and other media that can store program codes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer And Data Communications (AREA)

Abstract

本申请实施例提供了一种通信链路的检测方法、装置、系统和可移动平台。方法包括:在发送组件与目标组件之间建立通信链路之后,生成与目标组件相对应的状态查询请求,发送组件的通信协议接口的类型与目标组件的通信协议接口的类型不同;将状态查询请求发送至目标组件;根据是否接收到目标组件基于状态查询请求所发送的查询反馈信息,确定发送组件与目标组件之间的通信链路的工作状态。本实施例提供的技术方案,可以根据是否接收到目标组件所发送的查询反馈信息,确定发送组件与目标组件之间的通信链路的工作状态,有效地实现了通过不同通信协议接口所建立的通信链路的状态进行查询,并且该方法还具有实现方式简单、灵活性好、扩展性强等特点。

Description

通信链路的检测方法、装置、系统和可移动平台 技术领域
本发明实施例涉及通信技术领域,尤其涉及一种通信链路的检测方法、装置、系统和可移动平台。
背景技术
随着通信技术的飞速发展,能够实现数据传输的通信协议越来越多,可以理解的是,不同的通信协议可以对应不同的通信协议接口,不同的通信协议接口可以包括:两线式串行总线I 2C接口、串行外设SPI接口、串行接口、并行接口、通用串行总线USB接口、控制器域网CAN接口、移动产业处理器MIPI接口、高速串行计算机扩展总线标准PCIE接口、以太网接口、调制解调器modem接口等等。
由于不同的通信协议接口所对应的通信协议不同,因此,不同通信协议接口之间不能直接通信连接。此时,在需要对不同的通信协议接口之间所构成的通信链路进行状态检测时,需要对不同的通信接口之间的通信链路进行编码、链路调试等操作。而上述的操作过程较为繁琐,并且也极大地提高了人力成本和时间成本。
发明内容
本发明实施例提供了一种通信链路的检测方法、装置、系统和可移动平台。
本发明的第一方面是为了提供一种通信链路的检测方法,包括:
在发送组件与目标组件之间建立通信链路之后,生成与所述目标组件相对应的状态查询请求,其中,所述发送组件的通信协议接口的类型与所述目标组件的通信协议接口的类型不同;
将所述状态查询请求发送至所述目标组件;
根据是否接收到所述目标组件基于所述状态查询请求所发送的查询反馈信息,确定所述发送组件与所述目标组件之间的通信链路的工作状态。
本发明的第二方面是为了提供一种通信链路的检测装置,所述通信链路至少包括发送组件和与所述发送组件通信连接的目标组件,所述检测装置包括:
第一存储器,用于存储计算机程序;
第一处理器,用于运行所述第一存储器中存储的计算机程序以实现:
在发送组件与目标组件之间建立通信链路之后,生成与所述目标组件相对应的状态查询请求,其中,所述发送组件的通信协议接口的类型与所述目标组件的通信协议接口的类型不同;
将所述状态查询请求发送至所述目标组件;
根据是否接收到所述目标组件基于所述状态查询请求所发送的查询反馈信息,确定所述发送组件与所述目标组件之间的通信链路的工作状态。
本发明的第三方面是为了提供一种可移动平台,包括:
机身;
上述第三方面所述的通信链路的检测装置,设置于所述机身上,用于对可移动平台的通信组件之间所形成的通信链路的状态进行检测。
本发明的第四方面是为了提供一种计算机可读存储介质,所述存储介质为计算机可读存储介质,该计算机可读存储介质中存储有程序指令,所述程序指令用于第一方面所述的通信链路的检测方法。
本发明的第五方面是为了提供一种通信链路的检测方法,应用于中间组件,所述方法包括:
所述中间组件接收发送组件发送的状态查询请求,所述状态查询请求用于查询所述发送组件与目标组件之间通信链路的工作状态;
所述中间组件确定与所述状态查询请求相对应的目标组件的目标身份标识;
所述中间组件基于所述目标身份标识对所述状态查询请求进行传输,以将所述状态查询请求发送至目标组件。
本发明的第六方面是为了提供一种通信链路的检测装置,包括:
第二存储器,用于存储计算机程序;
第二处理器,用于运行所述第二存储器中存储的计算机程序以实现:
接收发送组件发送的状态查询请求,所述状态查询请求用于查询所述发送组件与目标组件之间通信链路的工作状态;
确定与所述状态查询请求相对应的目标组件的目标身份标识;
基于所述目标身份标识对所述状态查询请求进行传输,以将所述状态查询请求发送至目标组件。
本发明的第七方面是为了提供一种可移动平台,包括:
机身;
上述第六方面所述的通信链路的检测装置,设置于所述机身上,用于对可移动平台的通信组件之间所形成的通信链路的状态进行检测。
本发明的第八方面是为了提供一种计算机可读存储介质,所述存储介质为计算机可读存储介质,该计算机可读存储介质中存储有程序指令,所述程序指令用于第五方面所述的通信链路的检测方法。
本发明的第九方面是为了提供一种通信链路的检测系统,所述通信链路至少包括发送组件与所述发送组件通信连接的目标组件,所述发送组件的通信协议接口的类型与所述目标组件的通信协议接口的类型不同,所述系统包括:
发送组件,用于生成与所述目标组件相对应的状态查询请求;将所述状态查询请求通过中间组件发送至所述目标组件;根据是否接收到所述目标组件基于所述状态查询请求所发送的查询反馈信息,确定所述发送组件与所述目标组件之间的通信链路的工作状态;
所述中间组件,通过接收端口接收发送组件发送的状态查询请求,所述状态查询请求用于查询所述发送组件与目标组件之间通信链路的工作状态,并将所述状态查询请求通过所述中间组件的发送端口发送出去,其中,所述发送端口与所述中间组件的接收端口不同;
所述目标组件,用于通过所述中间组件接收所述状态查询请求,并基于所述状态查询请求生成查询反馈信息,将所述查询反馈信息发送至所述发送组件。
本发明实施例提供的技术方案,可以根据是否接收到目标组件所发送的查询反馈信息,确定发送组件与目标组件之间的通信链路的工作状态,实现方式简单、有效地减少了人力成本和时间成本的特点,进一步提高了该方法的实用性。
附图说明
此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:
图1为本发明实施例提供的一种通信链路的检测方法的流程示意图;
图2为本发明实施例提供的生成与所述目标组件相对应的状态查询请求的流程示意图;
图3为本发明实施例提供的状态查询请求所对应协议的网络结构示意图;
图4为图2实施例中的生成与所述目标组件相对应的状态查询请求的流程示意图;
图5为本发明实施例中的将所述状态查询请求直接发送至所述目标组件的示意图;
图6为本发明实施例中的将所述状态查询请求通过至少一个中间组件发送至所述目标组件的示意图;
图7为本发明实施例中的将所述状态查询请求通过至少一个中间组件发送至所述目标组件的流程示意图;
图8为图7中的所述至少一个中间组件基于所述第二身份标识对所述状态查询请求进行传输,以将所述状态查询请求发送至目标组件的流程示意图;
图9为本发明实施例提供的另一种通信链路的检测方法的流程示意图;
图10为图1中的根据是否接收到所述目标组件基于所述状态查询请求所发送的查询反馈信息,确定所述发送组件与所述目标组件之间的通信链路的工作状态的流程示意图;
图11为图10中的基于所述反馈时长,确定所述发送组件与所述目标组件之间的通信链路的工作状态的流程示意图;
图12为本发明实施例提供的又一种通信链路的检测方法的流程示意图;
图13为本发明实施例提供的发送组件与所述目标组件之间的通信链路的连接示意图一;
图14为本发明实施例提供的发送组件与所述目标组件之间的通信链路的连接示意图二;
图15为本发明实施例提供的将所述状态查询请求发送至所述目标组件的流程示意图一;
图16为本发明实施例提供的将所述状态查询请求发送至所述目标组件的 流程示意图二;
图17为本发明实施例提供的又一种通信链路的检测方法的流程示意图;
图18为本发明实施例提供的再一种通信链路的检测方法的流程示意图;
图19为本发明应用实施例提供的一种通信链路的检测方法的信令交互图一;
图20为本发明应用实施例提供的一种通信链路的检测方法的信令交互图二;
图21为本发明应用实施例提供的一种通信链路的检测系统的结构示意图;
图22为本发明实施例提供的一种通信链路的检测装置的结构示意图一;
图23为本发明实施例提供的一种通信链路的检测装置的结构示意图二;
图24为本发明实施例提供的一种通信链路的检测系统的结构示意图;
图25为本发明实施例提供的一种可移动平台的结构示意图一;
图26为本发明实施例提供的一种可移动平台的结构示意图二。
具体实施方式
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
除非另有定义,本文所使用的所有的技术和科学术语与属于本发明的技术领域的技术人员通常理解的含义相同。本文中在本发明的说明书中所使用的术语只是为了描述具体的实施例的目的,不是旨在于限制本发明。
为了便于理解本实施例中通信链路的检测方法的实现过程,下面对相关技术进行简要说明:
随着通信技术的飞速发展,能够实现数据传输的通信协议越来越多,而不同的通信协议可以对应不同的通信协议接口,不同的通信协议接口可以包括:两线式串行总线I2C接口、串行外设SPI接口、串行接口、并行接口、通用串行总线USB接口、控制器域网CAN接口、移动产业处理器MIPI接口、高速串行计算机扩展总线标准PCIE接口、以太网接口、调制解调器modem接口等等。
由于不同的通信协议接口所对应的通信协议不同,因此,不同通信协议 接口之间不能直接通信连接。此时,在需要对不同的通信协议接口之间所构成的通信链路进行状态检测时,需要对不同的通信接口之间的通信链路进行编码、链路调试等操作。
举例来说,现有第一芯片和第二芯片,第一芯片包括两线式串行总线I 2C接口,第二芯片包括串行外设SPI接口,由于I 2C接口所对应的通信协议与SPI接口所对应的通信协议不同,因此,上述的I 2C接口与SPI接口无法直接通信连接。此时,为了能够对上述通信链路进行状态统计、通信故障诊断以及链路延时统计操作,需要人为地对I 2C接口和SPI接口之间的通信链路进行单独开发互联互通操作、调试处理,以实现对第一芯片与第二芯片之间通信链路的状态进行检测。
然而,上述的状态检测过程不仅操作过程较为繁琐、复杂度较高,并且,也极大地提高了人力成本和时间成本,此外,上述实现方式需要用户针对特定的芯片接口之间的通信链路进行特定的编码、调试操作,定制化强、无法灵活扩展,从而降低了对不同通信协议接口之间通信链路进行状态检测的质量和效率。
为了解决上述对不同的通信接口之间的通信链路进行状态统计、通信故障诊断以及链路延时统计等操作过程中所存在的缺点,本实施例提供了一种通信链路的检测方法、装置、系统和可移动平台,该检测方法可以在发送组件与目标组件之间建立通信链路之后,生成与目标组件相对应的状态查询请求,而后将状态查询请求发送至目标组件,并根据是否接收到目标组件基于状态查询请求所发送的查询反馈信息,确定发送组件与目标组件之间的通信链路的工作状态。
其中,上述的状态查询请求可以满足预先配置的通信协议,而预先配置的通信协议可以实现多个不同的通信协议接口之间进行互联互通,便于实现对不同通信协议接口之间的通信链路进行编码、链路调试等操作,从而简单高效解决了对多个不同通信协议接口之间所构成的通信链路进行检测及诊断操作所存在的复杂问题;并且,本实施例中的检测方法还具有实现方式简单、灵活性好、扩展性强等特点,从而提高了该检测方法的实用性。
下面结合附图,对本发明实施例中的实现方式进行详细说明。在各实施例之间不冲突的情况下,下述的实施例及实施例中的特征可以相互组合。
图1为本发明实施例提供的一种通信链路的检测方法的流程示意图;参考 附图1所示,本实施例提供了一种通信链路的检测方法,该方法的执行主体可以为通信链路的检测装置,该检测装置可以是指具有数据传输功能的发送组件,可以理解的是,该发送组件可以实现为软件、或者软件和硬件的组合。具体的,该通信链路的检测方法可以包括:
步骤S101:在发送组件与目标组件之间建立通信链路之后,生成与目标组件相对应的状态查询请求,其中,发送组件的通信协议接口的类型与目标组件的通信协议接口的类型不同。
步骤S102:将状态查询请求发送至目标组件。
步骤S103:根据是否接收到目标组件基于状态查询请求所发送的查询反馈信息,确定发送组件与目标组件之间的通信链路的工作状态。
下面对上述各个步骤的实现过程进行详细阐述:
步骤S101:在发送组件与目标组件之间建立通信链路之后,生成与目标组件相对应的状态查询请求,其中,发送组件的通信协议接口的类型与目标组件的通信协议接口的类型不同。
其中,发送组件和目标组件可以分别是指具有数据传输功能的数据单元,可以理解的是,上述的数据单元可以实现为软件,例如:发送组件为第一应用程序APP,目标组件为第二应用程序APP,第一APP和第二APP之间可以建立通信链路。或者,上述的数据单元可以实现为硬件,例如:发送组件为第一芯片,目标组件为第二芯片,而第一芯片与第二芯片之间可以建立通信链路。或者,上述的数据单元可以实现为软件与硬件的组合,例如:发送组件为第一芯片系统,第一芯片系统中存储有用于实现第一功能的软件程序,此时,目标组件为第二芯片系统,第二芯片系统中存储有用于实现第二功能的软件程度,而第一芯片系统与第二芯片系统之间可以建立通信链路。或者,上述的发送组件和目标组件可以为不同的表现形式,例如:发送组件可以实现为软件表现形式、目标组件可以实现为硬件表现形式;或者,发送组件可以实现为软件表现形式、目标组件可以实现为软件与硬件的组合表现形式。
此外,发送组件和目标组件可以为一组组件中的任意两个不同的组件,上述的一组组件中可以包括多个组件,而多个组件的表现形式可以基于不同的应用场景和应用需求进行任意配置。
举例来说,在无人机技术领域,一组组件可以包括控制终端、与控制终端通信连接的无人机的飞控系统1、与飞控系统1通信连接的相机1、无人机1 和云台1、与控制终端通信连接的无人机的飞控系统2、与飞控系统2通信连接的相机2、无人机1和云台2。此时,控制终端可以为发送组件,目标组件可以为与飞控系统1通信连接的相机1。在此实施方式中,控制终端可以查询相机1的状态。在另一实施方式中,无人机上的飞控系统2可以为发送组件,目标组件可以为设置于无人机1上的云台1。在此实施方式中,飞控系统2可以查询云台1的状态。在又一实施方式中,无人机上的相机2也可以为发送组件,目标组件可以为控制终端。在此实施方式中,相机可以查询控制终端的状态。也就是说,通过选择一组组件中的任意两个组件分别作为发送组件和接收组件,可以使得该组组件中的任意组件可以查询另一组件的状态,或者可以查询该组件至另一组件之间的通信链路的状态。
在网络设备技术领域,一组组件可以包括路由控制器、与路由控制器通信连接的路由设备、与路由设备相对应的网络设备,此时,路由控制器可以为发送组件,网络设备可以为目标组件;或者,路由设备可以为发送组件,网络设备可以为目标组件;或者,网络设备可以为发送组件,路由控制器可以为目标组件等等。当然的,本领域技术人员还可以根据不同的应用场景和应用需求任意配置发送组件和目标组件,在此不再赘述。
具体应用时,本领域技术人员可以根据具体的应用需求和设计需求来配置发送组件和目标组件,只要能够保证发送组件与目标组件之间能够建立通信链路,并且,发送组件的通信协议接口的类型与目标组件的通信协议接口的类型不同即可,在此不再赘述。
另外,在发送组件与目标组件之间建立通信链路之后,可以生成与目标组件相对应的状态查询请求,该状态查询请求用于查询发送组件与目标组件之间通信链路的运行状态。具体的,一种可实现的方式为,状态查询请求可以是利用改进后的因特网信报控制协议(Internet Control Messages Protocol,简称ICMP)而生成的Ping指令,所生成的Ping指令并不依赖于物理链路。也就是说,Ping指令可以在多种不同的物理链路上使用,例如,上述的Ping指令可以适用于:通用异步收发传输网(Universal Asynchronous Receiver/Transmitter,简称UART)、控制器域网CAN、两线式串行总线I 2C、通用串行总线USB、高速串行计算机扩展总线标准PCIE、以太网等等。
当然的,本领域技术人员还可以采用其他的方式生成与目标组件相对应的状态查询请求,只要能够保证对状态查询请求进行生成的准确可靠性即可, 在此不再赘述。
步骤S102:将状态查询请求发送至目标组件。
其中,状态查询请求中可以包括与目标组件相对应的目标组件标识。因此,在获取到状态查询请求之后,可以对状态查询请求进行分析识别,以获取与目标组件相对应的目标组件标识,基于目标组件所对应的目标组件标识将状态查询请求发送至目标组件,以使得目标组件可以获取到状态查询请求。在目标组件获取到状态查询请求之后,可以根据状态查询请求生成查询反馈信息,并可以将查询反馈信息返回至发送组件。
步骤S103:根据是否接收到目标组件基于状态查询请求所发送的查询反馈信息,确定发送组件与目标组件之间的通信链路的工作状态。
在目标组件基于状态查询请求生成查询反馈信息之后,可以将查询反馈信息发送至发送组件,对于发送组件和查询反馈信息而言,存在以下两种情况:(1)发送组件可以接收到查询反馈信息;(2)发送组件接收不到查询反馈信息。在确定发送组件是否接收到查询反馈信息之后,则可以基于上述是否接收到查询反馈信息来确定发送组件与目标组件之间通信链路的工作状态,可以理解的是,上述的工作状态可以包括正常状态和异常状态。具体的,根据是否接收到目标组件基于状态查询请求所发送的查询反馈信息,确定发送组件与目标组件之间的通信链路的工作状态可以包括:
步骤S1031:在接收到查询反馈信息时,确定通信链路的工作状态为正常状态。或者,
步骤S1032:在未接收到查询反馈信息时,确定通信链路的工作状态为异常状态。
具体的,在发送组件未接收到目标组件所发送的查询反馈信息时,则说明发送组件与目标组件之间的通信链路之间存在故障,此时,目标组件无法基于上述通信链路的将查询反馈信息传输至发送组件,进而可以确定发送组件与目标组件之间的通信链路的工作状态为异常状态。相类似的,在发送组件接收到目标组件所发送的查询反馈信息之后,则说明发送组件与目标组件之间的通信链路运行正常,此时,目标组件可以基于上述通信链路的将查询反馈信息传输至发送组件,进而可以确定发送组件与目标组件之间的通信链路的工作状态为正常状态。
当然的,本领域技术人员也可以采用其他的方式来实现根据是否接收到 目标组件基于状态查询请求所发送的查询反馈信息,确定发送组件与目标组件之间的通信链路的工作状态,只要能够保证对发送组件与目标组件之间的通信链路的工作状态进行准确有效地的识别即可,在此不再赘述。
本实施例提供的通信链路的检测方法,在发送组件与目标组件之间建立通信链路之后,通过生成与目标组件相对应的状态查询请求。由于所生成的状态查询请求可以是基于自定义通信协议所生成的请求信息,而上述的自定义通信协议可以实现不同通信协议的通信接口之间的通信连接,而后将状态查询请求发送至目标组件,并根据是否接收到目标组件基于状态查询请求所发送的查询反馈信息,确定发送组件与目标组件之间的通信链路的工作状态,其中,查询反馈信息和状态查询请求可以满足预设通信协议,该预设通信协议可以使得数据在不同的通信协议接口之间进行安全、稳定地数据传输,从而有效地实现了通过不同通信协议接口所建立的通信链路的状态进行查询,并且该方法还具有实现方式简单、有效地减少了人力成本和时间成本的特点,进一步提高了该方法的实用性。
图2为本发明实施例提供的生成与目标组件相对应的状态查询请求的流程示意图;在上述实施例的基础上,继续参考附图2所示,本实施例对于生成与目标组件相对应的状态查询请求的具体实现方式不做限定,本领域技术人员可以根据具体的应用需求和设计需求进行设置,较为优选的,本实施例中的生成与目标组件相对应的状态查询请求可以包括:
步骤S201:获取与发送组件和目标组件相对应的应用层数据、网络层数据和数据链路层数据。
步骤S202:基于应用层数据、网络层数据和数据链路层数据,生成与目标组件相对应的状态查询请求。
状态查询请求可以是基于预设通信协议所生成的请求信息,其中,预设通信协议可以为因特网信报控制协议,此时,通过因特网信报控制协议所生成的状态查询请求可以为Ping请求。另外,预设通信协议可以对应一开发式系统互联通信模型(Open System Interconnection,简称OSI模型),一般情况下,预设通信协议所对应的OSI模型可以包括7层:物理层、数据链路层、网络层、传输层、会话层、标识层和应用层。本实施例中,为了能够提高对状态查询请求进行生成的质量和效率,可以对预设通信协议所对应的网络结构进行简化和自定义操作,例如,本实施例中状态查询请求所对应的预设通 信协议可以仅包括数据链路层、网络层以及应用层,通过上述简化后的网络结构所对应的预设通信协议生成状态查询请求,可以有效地保证状态查询请求生成的质量和效率。其中,所述预设通信协议是指链路层以上的协议。
具体的,参考附图3所示,在状态查询请求所对应的网络结构包括:数据链路层、网络层和应用层时,则可以获取与发送组件和目标组件相对应的应用层数据、网络层数据和数据链路层数据,其中,应用层数据用于使得发送组件和目标组件可以支持状态查询请求所对应的指令,并且使得发送组件和目标组件可以具有数据发送和接收功能,此外,应用层数据中还可以包括:用户能够根据应用场景需求来配置可以实现预设功能的应用数据;网络层数据用于使得各个组件具有数据转发功能,即能够将路由数据转发至预设组件和预设接口;数据链路层数据用于实现数据组包、格式化发送者、接收者和数据校验等操作,从而可以生成状态查询请求。
而数据链路层数据可以包括以下至少之一:帧数据、数据控制信息,其中,帧数据可以是指待传输的数据内容,数据控制信息包括用于对帧数据进行数据传输的限制信息;具体的,数据控制信息可以包括以下至少之一:发送组件的地址信息、目标组件的地址信息、校验数据,可以想到的是,数据控制信息不仅仅可以包括上述所举例的数据,本领域技术人员还可以根据具体的应用需求和设计需求进行设置,例如:数据控制信息还可以包括数据同步信息、流量控制信息,其中,数据同步信息用于实现对帧数据进行数据同步操作,流量控制信息用于对帧数据进行数据传输的流量进行限定。网络层用于对数据链路层数据转换为数据包,该网络层数据可以包括:与帧数据和数据控制信息相对应的数据包。
此外,应用层数据可以包括以下至少之一:发送组件的第一身份标识、目标组件的第二身份标识、应用请求数据、校验数据,上述的应用请求数据可以随着不同的应用场景和应用需求而有所不同,例如,应用请求数据可以为状态请求数据、内存请求数据、负载请求数据等等;上述的校验数据用于实现对状态查询请求的合理性进行验证。
另外,本实施例对于获取与发送组件和目标组件相对应的应用层数据、网络层数据和数据链路层数据的具体实现方式不做限定,可以根据具体的应用需求和应用场景来进行任意设置,例如:在发送组件和目标组件确定后,即可以基于发送组件和目标组件生成应用层数据、网络层数据和数据链路层 数据,上述的应用层数据、网络层数据和数据链路层数据可以存储在预设区间内,通过访问预设区间可以获取到与发送组件和目标组件相对应的应用层数据、网络层数据和数据链路层数据。或者,上述的应用层数据、网络层数据和数据链路层数据可以存储在预设设备内,通信链路的检测装置可以向预设设备发送数据获取请求,以使预设设备可以通过数据获取请求将与发送组件和目标组件所对应的应用层数据、网络层数据和数据链路层数据发送至通信链路的检测装置,从而使得通信链路的检测装置可以稳定地获取到与发送组件和目标组件相对应的应用层数据、网络层数据和数据链路层数据。
当然的,本领域技术人员也可以采用其他的方式来获取与发送组件和目标组件相对应的应用层数据、网络层数据和数据链路层数据,只要能够保证对应用层数据、网络层数据和数据链路层数据进行获取的准确可靠性即可,在此不再赘述。
在获取到应用层数据、网络层数据和数据链路层数据之后,可以对应用层数据、网络层数据和数据链路层数据进行分析处理,以生成与目标组件相对应的状态查询请求。具体的,参考附图4所示,生成与目标组件相对应的状态查询请求可以包括:
步骤S401:获取目标组件的第二身份标识。
步骤S402:基于发送组件的第一身份标识、第二身份标识和预设的校验数据,生成状态查询请求。
在确定目标组件之后,可以获取目标组件的第二身份标识,而后可以基于发送组件的第一身份标识、目标组件的第二身份标识和预设的校验数据来生成状态查询请求,该状态查询请求可以检测目标组件与发送组件之间通信链路的状态信息,例如:可以检测目标组件与发送组件之间的通信链路的运行状态是否为正常运行状态。另外,校验数据可以包括预设字符,例如:“0”和“1”,用于标识状态查询请求是否为正常数据。
本实施例中,通过获取与发送组件和目标组件相对应的应用层数据、网络层数据和数据链路层数据,而后基于应用层数据、网络层数据和数据链路层数据生成与目标组件相对应的状态查询请求,有效地保证了对状态查询请求生成的准确可靠性,进一步提高了该方法使用的稳定可靠性。
在一些实例中,本实施例对于将状态查询请求发送至目标组件的具体实现方式不做限定,本领域技术人员可以根据具体的应用需求和设计需求进行 设置,其中,一种可实现的方式为,将状态查询请求发送至目标组件可以包括:将状态查询请求直接发送至目标组件。
具体的,参考附图5所示,发送组件与目标组件可以通过本发明提出的改进的控制协议建立通信连接,在生成状态查询请求之后,发送组件可以将状态查询请求直接发送至目标组件,以使得目标组件可以直接接收到发送组件所发送的状态查询请求。
此外,另一种可实现的方式为,将状态查询请求发送至目标组件可以包括:将状态查询请求通过至少一个中间组件发送至目标组件。
参考附图6所示,发送组件可以通过因特网信报控制协议、中间组件与目标组件通信连接,其中,中间组件可以是指具有信息转发功能的组件单元,上述中间组件的个数可以为一个或多个。在生成状态查询请求之后,发送组件可以将状态查询请求发送至中间组件,在中间组件获取到状态查询请求之后,可以将状态查询请求发送至目标组件,以使得目标组件可以接收到中间组件所发送的状态查询请求。
图7为本发明实施例中的将状态查询请求通过至少一个中间组件发送至目标组件的流程示意图;在上述实施例的基础上,继续参考附图7所示,在将状态查询请求通过至少一个中间组件发送至目标组件时,至少一个目标组件可以将状态查询请求转发至目标组件,此时,通信链路的检测方法的执行主体还可以包括至少一个中间组件,上述的至少一个中间组件与发送组件通信连接。具体的,本实施例中的将状态查询请求通过至少一个中间组件发送至目标组件可以包括:
步骤S701:将状态查询请求发送至至少一个中间组件。
步骤S702:至少一个中间组件确定与状态查询请求相对应的目标组件的第二身份标识。
步骤S703:至少一个中间组件基于第二身份标识对状态查询请求进行传输,以将状态查询请求发送至目标组件。
其中,发送组件的通信协议接口的类型、至少一个中间组件的通信协议接口类型、和目标组件的通信协议接口的类型不完全相同,即发送组件的通信协议接口的类型、至少一个中间组件的通信协议接口类型、和目标组件的通信协议接口的类型完全不同;或者,发送组件的通信协议接口的类型、至少一个中间组件的通信协议接口类型、和目标组件的通信协议接口的类型部 分相同。
在发送组件生成状态查询请求之后,为了将状态查询请求发送至目标组件,发送组件可以将状态查询请求发送至至少一个中间组件,在至少一个中间组件接收到状态查询请求之后,可以对状态查询请求进行分析处理,以确定与状态查询请求相对应的目标组件的第二身份标识。
在获取到目标组件的第二身份标识之后,至少一个中间组件可以基于第二身份标识对状态查询请求进行传输,以将状态查询请求发送至目标组件。具体的,参考附图8所示,本实施例中的至少一个中间组件基于第二身份标识对状态查询请求进行传输,以将状态查询请求发送至目标组件可以包括:
步骤S801:将第二身份标识与至少一个中间组件所对应的至少一个第三身份标识进行比较。
步骤S802:在至少一个第三身份标识与第二身份标识不一致时,则将状态查询请求通过中间组件的发送端口发送至其他组件,以将状态查询请求最终发送至目标组件,其中,发送端口与中间组件接收状态查询请求的端口不同;以及,在第二身份标识与一第三身份标识相一致时,则将与第三身份标识相对应的中间组件确定为目标组件。
具体的,在至少一个中间组件获取到与状态查询请求相对应的目标组件的第二身份标识之后,可以获取至少一个中间组件所对应的至少一个第三身份标识,而后可以将第二身份标识与至少一个第三身份标识进行分析比较,在分析比较结果为至少一个第三身份标识与第二身份标识不一致时,则说明至少一个第三身份标识所对应的至少一个中间组件均不是目标组件,此时,为了能够将状态查询请求发送至目标组件,则可以继续对状态查询请求进行传输,即将状态查询请求通过中间组件的发送端口发送至其他组件,以将状态查询请求最终发送至目标组件,可以理解的是,发送端口与中间组件接收状态查询请求的端口不同,从而可以实现将状态查询请求发送至目标组件。在分析比较结果为第二身份标识与一第三身份标识相一致时,则可以确定与第三身份标识相对应的中间组件即为目标组件,从而实现了将状态查询请求发送至目标组件。
举例来说,发送组件为组件A,至少一个中间组件可以包括:组件B、组件C和组件D,组件A、组件B、组件C和组件D依次连接;其中,组件B对应身份标识b、组件C对应身份标识c、组件D对应身份标识d,在组件A生成状态查询 请求之后,所生成的状态查询请求中可以包括目标组件的身份标识,假设目标组件的身份标识为身份标识c。之后,组件A可以将状态查询请求发送至组件B,在组件B获取到状态查询请求之后,可以将组件B所对应的身份标识b与目标组件的身份标识进行分析比较,由于身份标识b与身份标识c不一致,进而说明组件B并不是与状态查询请求所对应的目标组件,此时,组件B可以将状态查询请求转发至组件C,在组件C获取到状态查询请求之后,可以将组件C所对应的身份标识c与目标组件的身份标识进行分析比较,由于身份标识c与状态查询请求中包括的身份标识c相一致,进而说明组件C是与状态查询请求所对应的目标组件,此时,有效地实现了组件A将状态查询请求发送至组件C,在组件C接收到状态查询请求之后,组件C无需再次对状态查询请求进行传输。
在另一些实例中,在至少一个第三身份标识与第二身份标识不一致时,本实施例中的方法还可以包括:
步骤S803:在状态查询请求中加入第三身份标识,并标记第三身份标识对应的组件为中间组件,以记录状态查询请求的传输路径。
在至少一个第三身份标识与第二身份标识不一致时,则说明至少一个第三身份标识所对应的至少一个中间组件均不是目标组件,此时,为了能够使得用户及时了解到状态查询请求所通过的组件,在生成状态查询请求,且经过至与第二身份标识不同的身份标识的中间组件时,则可以在状态查询请求中加入第三身份标识,并标记第三身份标识对应的组件为中间组件。
举例来说,发送组件为组件A、中间组件包括组件B、组件C和组件D,目标组件为组件E,在组件A生成状态查询请求之后,可以将状态查询请求发送至组件B,在组件B接收到状态查询请求之后,可以判断状态查询请求中包括的目标组件标识与组件B的身份标识b是否一致,在组件B的身份标识b与目标组件标识不一致时,则可以基于组件B所对应的身份标识b和状态查询请求生成状态查询请求1,此时的状态查询请求1中包括用于标识组件B为中间组件的身份标识b,从而使得状态查询请求1可以记录传输路径。
相类似的,在组件B获取到状态查询请求1之后,可以将状态查询请求1发送至组件C,组件C可以确定组件C的身份标识c与目标组件标识不一致,进而可以基于组件C的身份标识c和状态查询请求1生成状态查询请求2,此时的状态查询请求2中包括用于标识组件B为中间组件的身份标识b、以及用于标识组件C为中间组件的身份标识c,从而使得状态查询请求2可以记录传输路径。
相类似的,在组件C获取到状态查询请求2之后,可以将状态查询请求2发送至组件D,组件D可以确定组件D的身份标识d与目标组件标识不一致,进而可以基于组件D的身份标识d和状态查询请求2生成状态查询请求3,此时的状态查询请求3中包括用于标识组件B为中间组件的身份标识b、用于标识组件C为中间组件的身份标识c、以及用于标识组件D为中间组件的身份标识d,从而使得状态查询请求3可以记录传输路径。
在组件D获取到状态查询请求3之后,可以将状态查询请求3发送至组件E,组件E获取到状态查询请求之后,可以判断组件E的身份标识e与目标组件标识是否一致,在确定组件E的身份标识e与目标组件标识相一致,从而有效地实现了将状态查询请求传输至目标组件。
本实施例中,通过将第二身份标识与至少一个中间组件所对应的至少一个第三身份标识进行比较,在至少一个第三身份标识与第二身份标识不一致时,则继续对状态查询请求进行传输,以将状态查询请求发送至目标组件;或者,在第二身份标识与一第三身份标识相一致时,则将与第三身份标识相对应的中间组件确定为目标组件,从而有效地保证了发送组件通过至少一个中间组件将状态查询请求发送至目标组件,进一步保证了该方法使用的稳定可靠性。
图9为本发明实施例提供的另一种通信链路的检测方法的流程示意图;在上述实施例的基础上,继续参考附图9所示,在将与第三身份标识相对应的中间组件确定为目标组件之后,本实施例中的目标组件可以执行以下步骤,即本实施例中的执行主体可以包括与发送组件相对应的目标组件,具体的,该方法还可以包括:
步骤S901:目标组件生成与状态查询请求相对应的查询反馈信息。
步骤S902:将查询反馈信息返回至发送组件。
在目标组件获取到状态查询请求之后,目标组件可以对状态查询请求进行分析处理,以生成与状态查询请求相对应的查询反馈信息,其中,目标组件所生成的查询反馈信息可以为预先配置的与状态查询请求相对应的预设反馈信息,或者,查询反馈信息所包括的内容与状态查询请求所包括的内容相同;或者,查询反馈信息中可以包括位于发送组件与目标组件之间的通信链路中的至少一个中间组件的组件身份标识。
举例来说,在状态查询请求为预设的“01010101”时,目标组件接收到 状态查询请求之后,可以基于状态查询请求生成状态反馈信息,具体的,一种可实现的方式为,基于预先配置的处理策略来确定与状态查询请求相对应的状态反馈信息,例如,状态反馈信息可以为“01111111”。或者,又一种可实现的方式为,状态反馈信息所包括的内容与状态查询请求所包括的内容相同,即状态反馈信息可以为“01010101”。或者,再一种可实现的方式为,查询反馈信息中可以包括位于发送组件与目标组件之间的通信链路中的至少一个中间组件的组件身份标识,例如,状态反馈信息可以为“01010101-0110”,上述的“0110”为位于发送组件与目标组件之间的通信链路中的至少一个中间组件的组件身份标识。
在生成状态反馈信息之后,目标组件可以将查询反馈信息返回至发送组件,以使得发送组件可以基于是否接收到查询反馈信息来检测发送组件与目标组件之间的通信链路的运行状态,从而有效地保证了对通信链路的运行状态进行检测的准确可靠性。
图10为本发明实施例提供的根据是否接收到目标组件基于状态查询请求所发送的查询反馈信息,确定发送组件与目标组件之间的通信链路的工作状态的流程示意图;在上述任意一个实施例中的基础上,参考附图10所示,本实施例对于根据是否接收到目标组件基于状态查询请求所发送的查询反馈信息,确定发送组件与目标组件之间的通信链路的工作状态的具体实现方式不做限定,本领域技术人员可以根据具体的应用需求和设计需求进行设置,较为优选的,本实施例中的根据是否接收到目标组件基于状态查询请求所发送的查询反馈信息,确定发送组件与目标组件之间的通信链路的工作状态可以包括:
步骤S1001:在接收到查询反馈信息时,获取与查询反馈信息相对应的反馈时长。
步骤S1002:基于反馈时长,确定发送组件与目标组件之间的通信链路的工作状态。
为了能够准确地识别出发送组件与目标组件之间通信链路的工作状态,在发送组件接收到查询反馈信息时,可以确定与查询反馈信息相对应的反馈时长。具体的,本实施例对于反馈时长的具体获取方式不做限定,本领域技术人员可以根据具体的应用需求和设计需求进行任意配置,例如:通过预设定时器确定与状态查询请求相对应的发送时间、以及与查询反馈信息相对应 的接收时间,而后可以通过发送时间和接收时间确定与查询反馈信息相对应的反馈时长。或者,可以获取与状态查询请求相对应的发送时间戳和与查询反馈信息相对应的反馈时间戳,通过发送时间戳和反馈时间戳来确定与查询反馈信息相对应的反馈时长。
当然的,本领域技术人员还可以采用其他的方式来获取与查询反馈信息相对应的反馈时长,只要能够保证对与查询反馈信息相对应的反馈时长进行获取的准确可靠性即可,在此不再赘述。
在获取到反馈时长之后,可以对反馈时长进行分析处理,以确定发送组件与目标组件之间的通信链路的工作状态。具体的,参考附图11所示,本实施例中的基于反馈时长,确定发送组件与目标组件之间的通信链路的工作状态可以包括:
步骤S1101:将反馈时长与预设时间阈值进行分析比较。
步骤S1102:在反馈时长大于预设时间阈值时,则确定通信链路的延迟状态为异常状态。或者,
步骤S1103:在反馈时长小于或等于预设时间阈值时,则确定通信链路的延迟状态为正常状态。
其中,预设时间阈值可以是预先配置的用于标识通信链路为正常通信状态的最大时间限值,本实施例对于其具体数据范围不做限定,本领域技术人员可以根据具体的应用需求和设计需求进行设置,例如:预设时间阈值可以为15s、25s、30s、45s或者1min等等。在获取到反馈时长之后,可以将反馈时长与预设时间阈值进行分析比较,在反馈时长大于预设时间阈值时,则说明此时的发送组件与目标组件之间的通信链路的延迟时间较长,进而可以确定通信链路的延迟状态为异常状态。或者,在反馈时长小于或等于预设时间阈值时,则说明此时的发送组件与目标组件之间的通信链路的延迟时间较短,进而可以确定通信链路的延迟状态为正常状态。
本实施例中,通过将反馈时长与预设时间阈值进行分析比较,在反馈时长大于预设时间阈值时,则确定通信链路的延迟状态为异常状态,在反馈时长小于或等于预设时间阈值时,则确定通信链路的延迟状态为正常状态,从而有效地实现了基于反馈时长确定发送组件与目标组件之间的通信链路的工作状态,进一步提高了该方法使用的准确可靠性。
图12为本发明实施例提供的又一种通信链路的检测方法的流程示意图; 在上述实施例的基础上,继续参考附图12所示,在确定发送组件与目标组件之间的通信链路的工作状态之后,本实施例中的方法还可以包括:
步骤S1201:确定发送组件与目标组件之间的通信链路的链路类型。
步骤S1202:在链路类型为串联链路、且通信链路的工作状态为正常状态时,则确定串联链路中包括的所有组件之间的子通信链路的工作状态为正常状态。或者,
步骤S1203:在链路类型为并联链路时,则生成与并联链路中包括的并联支路相对应的支路状态查询请求,并基于支路状态查询请求确定并联支路所对应的通信链路的工作状态是否正常。
其中,发送组件与目标组件之间所形成的通信链路可以包括多种链路类型,例如:发送组件与目标组件之间所形成的通信链路可以包括以下至少之一:串联链路和并联链路。
为了能够准确地确定发送组件与目标组件之间通信链路的工作状态,在获取到发送组件与目标组件之后,可以地发送组件与目标组件之间的通信链路的链路类型进行分析识别,具体的,可以获取到针对上述通信链路中的每个组件的输入节点个数和输出节点个数,基于输入节点个数和输出节点个数可以确定发送组件与目标组件之间的通信链路的链路类型;在输入节点个数大于或等于2、输出节点个数大于或等于2时,则可以确定发送组件与目标组件之间的通信链路的链路类型包括并联链路,在输入节点个数为1个、且输出节点个数为1个时,则可以确定发送组件与目标组件之间的通信链路的链路类型包括串联链路。
在确定发送组件与目标组件之间的通信链路的链路类型之后,则可以基于发送组件与目标组件之间的通信链路的链路类型对通信链路的工作状态进行检测。具体的,在链路类型为串联链路、且通信链路的工作状态为正常状态时,则可以确定串联链路中包括的所有组件之间的子通信链路的工作状态为正常状态。在链路类型为并联链路时,为了能够保证对每个并联链路的工作状态进行准确地识别,则生成与并联链路中包括的并联支路相对应的支路状态查询请求,其中,支路状态查询请求的个数与并联链路中所包括的并联支路的个数相对应,而后则可以基于支路状态查询请求确定并联支路所对应的通信链路的工作状态是否正常。
举例来说,参考附图13所示,在发送组件通过多个中间组件与目标组件 通信连接,多个中间组件可以包括中间组件1和中间组件2时,具体的,发送组件、中间组件1、中间组件2和目标组件可以形成一串联链路,在确定发送组件与目标组件之间的通信链路的链路类型为串联链路之后,在通信链路的工作状态为正常状态时,则说明该串联链路中所包括的发送组件与中间组件1之间、中间组件1与中间组件2之间、中间组件2与目标组件之间所形成的所有子通信链路的工作状态均为正常状态。
另外,参考附图14所示,在发送组件通过多个中间组件与目标组件通信连接,多个中间组件可以包括中间组件1、中间组件2、中间组件3、中间组件4、中间组件5和中间组件6时,具体的,中间组件1可以形成位于发送组件与目标组件之间的并联支路1,中间组件2与中间组件3串联形成位于发送组件与目标组件之间的并联支路2,中间组件4、中间组件5和中间组件6串联形成位于发送组件与目标组件之间的并联支路3;即发送组件和目标组件之间包括多个并联链路。
在确定发送组件与目标组件之间的通信链路的链路类型为并联链路时,为了能够保证对发送组件与目标组件之间通信链路的工作状态进行检测的准确可靠性,则可以生成与并联链路中包括的并联支路相对应的支路状态查询请求,即可以生成与并联支路1相对应的支路状态查询请求1、与并联支路2相对应的支路状态查询请求2以及与并联支路3相对应的支路状态查询请求3,而后可基于上述所生成的支路状态查询请求1、支路状态查询请求2和支路状态查询请求3来确定并联支路所对应的通信链路的工作状态是否正常。
需要注意的是,在生成与并联链路中包括的并联支路相对应的支路状态查询请求时,为了提高对支路状态查询请求进行生成的质量和效率,可以基于并联支路所对应的节点组件生成支路状态查询请求,此时的支路状态查询请求中可以包括与并联支路相对应的支路标识信息(并联支路所包括的节点组件的身份标识)。
如图14所示,对于发送组件与中间组件1所对应的并联支路1而言,可以生成与并联支路1相对应的支路状态查询请求1,该支路状态查询请求1可以包括与中间组件1相对应的组件标识1,该组件标识1用于标识并联支路1。对于发送组件、中间组件2和中间组件3所对应的并联支路2而言,可以生成与并联支路2相对应的支路状态查询请求2,该支路状态查询请求2可以包括与中间组件2相对应的组件标识2、与中间组件3相对应的组件标识3,该上述的组件标 识2和组件标识3用于标识并联支路2。相类似的,对于发送组件、中间组件4、中间组件5以及中间组件6所对应的并联支路3而言,可以生成与并联支路3相对应的支路状态查询请求3,该支路状态查询请求3可以包括与中间组件4相对应的组件标识4、与中间组件5相对应的组件标识5、与中间组件6相对应的组件标识6,上述的组件标识4、组件标识5和组件标识6用于标识并联支路3。
具体的,在发送组件接收到目标组件基于支路状态查询请求1所发送的支路状态反馈信息时,则可以确定位于发送组件与目标组件之间的并联支路1的工作状态为正常状态;在发送组件未接收到目标组件基于支路状态查询请求1所发送的支路状态反馈信息时,则可以确定位于发送组件与目标组件之间的并联支路1的工作状态为异常状态。
相类似的,在发送组件接收到目标组件基于支路状态查询请求2所发送的支路状态反馈信息时,则可以确定位于发送组件与目标组件之间的并联支路2的工作状态为正常状态;在发送组件未接收到目标组件基于支路状态查询请求2所发送的支路状态反馈信息时,则可以确定位于发送组件与目标组件之间的并联支路2的工作状态为异常状态。在发送组件接收到目标组件基于支路状态查询请求3所发送的支路状态反馈信息时,则可以确定位于发送组件与目标组件之间的并联支路3的工作状态为正常状态;在发送组件未接收到目标组件基于支路状态查询请求3所发送的支路状态反馈信息时,则可以确定位于发送组件与目标组件之间的并联支路3的工作状态为异常状态。
需要注意的是,在生成与支路状态查询请求相对应的支路状态反馈信息时,为了提高对支路状态反馈信息进行生成的质量和效率,可以基于并联支路所对应的组件节点生成支路状态反馈信息,此时的支路状态反馈信息中可以包括与并联支路相对应的支路标识信息(并联支路所包括的组件节点的身份标识)。其中,生成支路状态反馈信息的具体实现方式与生成支路状态查询请求的具体实现方式相类似,具体的,可以先确定与支路状态查询请求相对应的支路标识信息,基于该支路标识信息生成相对应的支路状态反馈信息,此时的支路状态反馈信息中可以包括支路标识信息。
本实施例中,通过确定发送组件与目标组件之间的通信链路的链路类型,在链路类型为串联链路、且通信链路的工作状态为正常状态时,则可以确定串联链路中包括的所有组件之间的子通信链路的工作状态为正常状态;或者,在链路类型为并联链路时,则生成与并联链路中包括的并联支路相对应的支 路状态查询请求,并基于支路状态查询请求确定并联支路所对应的通信链路的工作状态是否正常,从而有效地实现了基于发送组件与目标组件之间的通信链路的链路类型对不同结构的通信链路的工作状态进行检测的准确可靠性,进一步提高了该方法使用的准确可靠性。
图15为本发明实施例提供的将状态查询请求发送至目标组件的流程示意图一;在上述实施例的基础上,继续参考附图15所示,本实施例提供了另一种可实现将状态查询请求发送至目标组件的方式,具体的,将状态查询请求发送至目标组件可以包括:
步骤S1501:获取与状态查询请求相对应的发送频率。
步骤S1502:基于发送频率,将状态查询请求发送至目标组件。
在发送组件与目标组件之间建立通信链路之后,为了能够保证对通信链路进行检测的及时可靠性,可以获取与状态查询请求相对应的发送频率,而后可以基于发送频率将状态查询请求发送至目标组件;即控制发送组件与目标组件进行运行时,可以获取预先配置的与状态查询请求相对应的发送频率,而后控制发送组件按照上述的发送频率定期向目标组件发送状态查询请求,以检测发送组件与目标组件之间通信链路的工作状态。
本实施例中,通过获取与状态查询请求相对应的发送频率,而后基于发送频率将状态查询请求发送至目标组件,有效地实现了可以定期对发送组件与目标组件之间的通信链路进行定期检测,进而保证了发送组件与目标组件进行工作的稳定可靠性,进一步提高了该方法的实用性。
图16为本发明实施例提供的将状态查询请求发送至目标组件的流程示意图二;在上述实施例的基础上,继续参考附图16所示,本实施例提供了另一种可实现将状态查询请求发送至目标组件的方式,具体的,将状态查询请求发送至目标组件可以包括:
步骤S1601:获取与状态查询请求相对应的发送格式。
步骤S1602:基于发送格式,将状态查询请求发送至目标组件。
在发送组件与目标组件之间建立通信链路之后,为了能够保证对通信链路进行检测的及时可靠性,可以获取与状态查询请求相对应的发送格式,而后可以基于上述所限定的发送格式将状态查询请求发送至目标组件,而后控制发送组件按照上述的发送格式向目标组件发送状态查询请求,使得任意类型的目标组件均可以基于所限定的发送格式识别出状态查询请求,从而便于 实现检测发送组件与目标组件之间通信链路的工作状态。
本实施例中,通过获取与状态查询请求相对应的发送格式,而后基于发送格式将状态查询请求发送至目标组件,使得任意类型的目标组件均可以基于所限定的发送格式识别出状态查询请求,有效地实现了可以基于预先配置的发送格式对发送组件与目标组件之间的通信链路进行状态检测,进而保证了对发送组件与目标组件之间通信链路的工作状态进行检测的稳定可靠性。
图17为本发明实施例提供的又一种通信链路的检测方法的流程示意图的流程示意图;在上述任意一种实施例的基础上,继续参考附图17所示,在状态查询请求中包括应用请求数据时,本实施例中的方法还可以包括:
步骤S1701:接收目标组件基于应用请求数据所发送的应用反馈数据。
步骤S1702:基于应用反馈数据,确定与目标组件相对应的应用状态。
其中,应用请求数据可以包括以下至少之一:负载占用请求、内存占用请求、中央处理器CPU占用请求;相对应的,应用状态可以包括以下至少之一:负载占用信息、内存占用信息、中央处理器CPU占用信息。在发送组件向目标组件发送应用请求数据时,在目标组件获取到应用请求数据之后,可以基于应用请求数据生成应用反馈信息,并将应用反馈数据发送至发送组件,从而使得发送组件可以接收到目标组件基于应用请求数据所发送的应用反馈数据,在发送组件接收到应用反馈数据之后,则可以基于应用反馈数据来确定与目标组件相对应的应用状态。
举例1,在发送组件向目标组件发送负载占用请求之后,目标组件接收到负载占用请求之后,可以基于负载占用请求生成负载占用信息,而后可以将负载占用信息返回至发送组件,从而使得发送组件可以接收到目标组件基于负载占用请求所发送的负载占用信息,并可以基于负载占用信息确定目标组件所对应的负载占用情况,从而使得用户可以及时、准确地获取到目标组件的负载占用情况,这样有利于基于负载占用情况对发送组件与目标组件之间的运行状态进行调整和调度,以便提高发送组件与目标组件之间进行数据通信的质量和效率。
举例2,在发送组件向目标组件发送内存占用请求之后,目标组件接收到内存占用请求之后,可以基于内存占用请求生成内存占用信息,而后可以将内存占用信息返回至发送组件,从而使得发送组件可以接收到目标组件基于内存占用请求所发送的内存占用信息,并可以基于内存占用信息确定目标组 件所对应的内存占用情况,从而使得用户可以及时、准确地获取到目标组件的内存占用情况,这样有利于基于内存占用信息对发送组件与目标组件之间的运行状态进行调整和调度,以便提高发送组件与目标组件之间进行数据通信的质量和效率。
举例3,在发送组件向目标组件发送中央处理器CPU占用请求之后,目标组件接收到中央处理器CPU占用请求之后,可以基于中央处理器CPU占用请求生成CPU占用信息,而后可以将CPU占用信息返回至发送组件,从而使得发送组件可以接收到目标组件基于CPU占用请求所发送的CPU占用信息,从而使得用户可以及时、准确地获取到目标组件的CPU占用信息,这样有利于基于CPU占用信息对发送组件与目标组件之间的运行状态进行调整和调度,以便提高发送组件与目标组件之间进行数据通信的质量和效率。
图18为本发明实施例提供的再一种通信链路的检测方法的流程示意图;参考附图18所示,本实施例提供了再一种通信链路的检测方法,该方法的执行主体可以为通信链路的检测装置,具体应用时,该检测装置可以为具有数据传输功能的中间组件,即该通信链路的检测方法可以应用于中间组件,可以理解的是,该中间组件可以实现为软件、或者软件和硬件的组合。具体的,该通信链路的检测方法可以包括:
步骤S1801:中间组件接收发送组件发送的状态查询请求,状态查询请求用于查询发送组件与目标组件之间通信链路的工作状态。
步骤S1802:中间组件确定与状态查询请求相对应的目标组件的目标身份标识。
步骤S1803:中间组件基于目标身份标识对状态查询请求进行传输,以将状态查询请求发送至目标组件。
具体的,在发送组件生成用于查询发送组件与目标组件之间通信链路工作状态的状态查询请求之后,发送组件可以将状态查询请求发送至中间组件,从而使得中间组件可以接收到发送组件所发送的状态查询请求。在中间组件接收到状态查询请求之后,可以对状态查询请求进行分析处理,以确定与状态查询请求相对应的目标组件的目标身份标识。
在获取到目标组件的目标身份标识之后,中间组件可以基于目标身份标识对状态查询请求进行传输,以将状态查询请求发送至目标组件。具体的,中间组件基于目标身份标识对状态查询请求进行传输,以将状态查询请求发 送至目标组件可以包括:
步骤S18031:中间组件将目标身份标识与中间组件所对应的第一身份标识进行比较。
步骤S18032:在第一身份标识与目标身份标识不一致时,则将状态查询请求通过中间组件的发送端口发送至其他组件,以将状态查询请求最终发送至目标组件,其中,发送端口与中间组件接收状态查询请求的端口不同;以及,在第一身份标识与目标身份标识相一致时,则将与第一身份标识相对应的中间组件确定为目标组件。
具体的,在中间组件获取到与状态查询请求相对应的目标组件的目标身份标识之后,可以获取中间组件所对应的第一身份标识,将第一身份标识与目标身份标识进行分析比较,在分析比较结果为第一身份标识与目标身份标识不一致时,则说明该第一身份标识所对应的中间组件并非目标组件,此时,为了能够将状态查询请求发送至目标组件,则可以继续对状态查询请求进行传输,即将状态查询请求通过中间组件的发送端口发送至其他组件,其他组件可以包括其他的中间组件或者目标组件,以实现将状态查询请求发送至目标组件。在分析比较结果为第一身份标识与目标身份标识相一致时,在确定与第一身份标识相对应的中间组件即为目标组件,从而实现了将状态查询请求发送至目标组件。
举例来说,发送组件为组件A,至少一个中间组件可以包括:组件B、组件C和组件D,组件A、组件B、组件C和组件D依次连接;其中,组件B对应身份标识b、组件C对应身份标识c、组件D对应身份标识d,在组件A生成状态查询请求之后,所生成的状态查询请求中可以包括目标组件的身份标识,假设目标组件的身份标识为身份标识c。之后,组件A可以将状态查询请求发送至组件B,在组件B获取到状态查询请求之后,可以将组件B所对应的身份标识b与目标组件的身份标识进行分析比较,由于身份标识b与身份标识c不一致,进而说明组件B并不是与状态查询请求所对应的目标组件,此时,组件B可以将状态查询请求转发至组件C,在组件C获取到状态查询请求之后,可以将组件C所对应的身份标识c与目标组件的身份标识进行分析比较,由于身份标识c与状态查询请求中包括的身份标识c相一致,进而说明组件C是与状态查询请求所对应的目标组件,此时,有效地实现了组件A将状态查询请求发送至组件C,在组件C接收到状态查询请求之后,组件C无需再次对状态查询请求进行传输。
本实施例中,通过将目标组件的目标身份标识与中间组件所对应的第一身份标识进行比较,在第一身份标识与目标身份标识不一致时,则继续对状态查询请求进行传输,以将状态查询请求发送至目标组件;或者,在目标身份标识与第一身份标识相一致时,则将与第一身份标识相对应的中间组件确定为目标组件,从而有效地实现了发送组件可以将状态查询请求发送至目标组件,进一步保证了该方法使用的稳定可靠性。
在一些实例中,在第一身份标识与目标身份标识不一致时,本实施例中的方法还可以包括:
步骤S1804:在状态查询请求中加入第一身份标识,并标记第一身份标识对应的组件为中间组件,以记录状态查询请求的传输路径。
在第一身份标识与目标身份标识不一致时,则说明第一身份标识所对应的组件均不是目标组件,此时,为了能够使得用户及时了解到状态查询请求所通过的组件,在生成状态查询请求,且经过至与目标身份标识不同的身份标识的中间组件时,则可以在状态查询请求中加入第一身份标识,并标记第一身份标识对应的组件为中间组件。
举例来说,发送组件为组件A、中间组件包括组件B、组件C和组件D,目标组件为组件E,在组件A生成状态查询请求之后,可以将状态查询请求发送至组件B,在组件B接收到状态查询请求之后,可以判断状态查询请求中包括的目标组件标识与组件B的身份标识b是否一致,在组件B的身份标识b与目标组件标识不一致时,则可以基于组件B所对应的身份标识b和状态查询请求生成状态查询请求1,此时的状态查询请求1中包括用于标识组件B为中间组件的身份标识b,从而使得状态查询请求1可以记录传输路径。
相类似的,在组件B获取到状态查询请求1之后,可以将状态查询请求1发送至组件C,组件C可以确定组件C的身份标识c与目标组件标识不一致,进而可以基于组件C的身份标识c和状态查询请求1生成状态查询请求2,此时的状态查询请求2中包括用于标识组件B为中间组件的身份标识b、以及用于标识组件C为中间组件的身份标识c,从而使得状态查询请求2可以记录传输路径。
相类似的,在组件C获取到状态查询请求2之后,可以将状态查询请求2发送至组件D,组件D可以确定组件D的身份标识d与目标组件标识不一致,进而可以基于组件D的身份标识d和状态查询请求2生成状态查询请求3,此时的状态查询请求3中包括用于标识组件B为中间组件的身份标识b、用于标识组件C 为中间组件的身份标识c、以及用于标识组件D为中间组件的身份标识d,从而使得状态查询请求3可以记录传输路径。
在组件D获取到状态查询请求3之后,可以将状态查询请求3发送至组件E,组件E获取到状态查询请求之后,可以判断组件E的身份标识e与目标组件标识是否一致,在确定组件E的身份标识e与目标组件标识相一致,从而有效地实现了将状态查询请求传输至目标组件。
在又一些实例中,在第一身份标识与目标身份标识不一致时,本实施例中的方法还可以包括:
步骤S1901:接收目标组件所发送的查询反馈信息,查询反馈信息中包括位于发送组件与目标组件之间的通信链路中的至少一个中间组件的组件身份标识。
步骤S1902:基于查询反馈信息所包括的至少一个中间组件的组件身份标识对查询反馈信息进行传输,以将查询反馈信息最终发送至发送组件。
在中间组件将状态查询请求发送至目标组件之后,目标组件可以对状态查询请求进行分析处理,并生成与状态查询请求相对应的查询反馈信息。而后目标组件可以将查询反馈信息发送至中间组件,从而使得中间组件可以接收到目标组件所发送的查询反馈信息,其中,该查询反馈信息中可以包括位于发送组件与目标组件之间的通信链路中的至少一个中间组件的组件身份标识。
在获取到查询反馈信息之后,则可以对查询反馈信息进行分析处理,以基于查询反馈信息中所包括的至少一个中间组件的组件身份标识对查询反馈信息进行传输,以将查询反馈信息最终发送至发送组件,而后发送组件可以根据是否接收到目标组件基于状态查询请求所发送的查询反馈信息,确定发送组件与目标组件之间的通信链路的工作状态。
以图14所示,在状态反馈信息为“01010101-0110”时,上述的“0110”为位于发送组件与目标组件之间的通信链路中的至少一个中间组件的组件身份标识,在中间组件获取到状态反馈信息之后,可以对上述状态反馈信息中所包括的“0110”进行分析处理,以确定与该状态反馈信息所对应的至少一个中间组件包括中间组件2和中间组件3,而后可以将状态反馈信息依次通过中间组件3和中间组件2进行传输,以实现目标组件将状态反馈信息通过中间组件3、中间组件2发送至发送组件,从而实现将查询反馈信息最终发送至发 送组件。
再或者,在状态反馈信息为“01011101-0111”时,上述的“0111”为位于发送组件与目标组件之间的通信链路中的至少一个中间组件的组件身份标识,在中间组件获取到状态反馈信息之后,可以对上述状态反馈信息中所包括的“0111”进行分析处理,以确定与该状态反馈信息所对应的至少一个中间组件包括中间组件4、中间组件5和中间组件6,而后可以将状态反馈信息依次通过中间组件4、中间组件5和中间组件6进行传输,以实现目标组件将状态反馈信息通过中间组件4、中间组件5和中间组件6发送至发送组件,从而实现将查询反馈信息最终发送至发送组件。
具体应用时,本应用实施例提供了一种通信链路的检测方法,该检测方法的执行主体可以为通信链路的检测系统,下面以通过因特网信报控制协议(Internet Control Messages Protocol,简称ICMP)而生成的Ping指令(一般至少包括10-11个字节)作为状态查询请求为例进行说明。在通信链路的检测系统执行上述的通信链路检测方法时,可以将Ping指令配置为满足预设通信协议的特定格式,而上述满足预设通信协议的特定格式可以实现对通信链路的检测系统的负载、内存、通信链路的运行状态进行检测。
具体的,参考附图21所示,该通信链路的检测系统可以包括:
上位机,包括个人电脑PC、移动终端设备或其他嵌入式终端设备,用于作为具有数据传输功能的发送组件,具体的,该上位机可以获取与发送组件和目标组件相对应的应用层数据、网络层数据和数据链路层数据,并基于应用层数据、网络层数据和数据链路层数据来生成状态查询请求(Ping指令),并将状态查询请求按照预设频率发送至其他组件,其中,预设频率可以包括以下任意之一:1次/s、2次/s、3次/s或者5次/s等等。
在另一些实例中,其他组件也可以主动生成用于标识组件本身运行状态的状态标识信息,并将状态标识信息主动上传至上位机,以使得上位机可以主动获知到与其他组件的运行状态相对应的状态标识信息。
其他组件可以包括:中间组件和目标组件,用于接收上位机所发送的状态查询请求,并基于状态查询请求执行相应的数据传输操作、或者生成与状态查询请求相对应的查询反馈信息。
下面以中间组件包括与上位机依次连接的第一芯片、第二芯片、第三芯片、第四芯片和第五芯片,目标组件包括第六芯片为例进行说明,其中,第 一芯片的接口与第二芯片的接口之间可以通过无线链路进行通信连接,第二芯片的接口与第三芯片的接口之间可以通过PCIE进行通信连接,第三芯片的接口与第四芯片的接口之间可以通过USB进行通信连接,第四芯片的接口与第五芯片的接口之间可以通过CAN进行通信连接,第五芯片的接口与第六芯片的接口之间可以通过串口进行通信连接,并且,第六芯片通信连接有传感器,该传感器用于检测第六芯片的运行状态信息。在一实施方式中,第一芯片、第二芯片、第三芯片、第四芯片、第五芯片和第六芯片包括于同一设备或装置中。
具体的,基于上述所限定的通信链路的检测系统的结构,在通信链路的检测系统执行通信链路的检测方法时,一种可实现的方式,参考附图19所示,本实施例中的方法包括以下步骤:
步骤1:发送组件(上位机)获取与发送组件和目标组件(第六芯片)相对应的应用层数据、网络层数据和数据链路层数据。
其中,应用层数据可以包括以下至少之一:发送组件的第一身份标识、目标组件的第二身份标识、应用请求数据、校验数据,上述的应用请求数据可以随着不同的应用场景和应用需求而有所不同,例如,应用请求数据可以状态请求数据、内存请求数据、负载请求数据等等,即用户能够根据不同的应用场景或者不同的应用需求来配置不同的应用请求数据。上述的校验数据用于实现对状态查询请求的合理性进行验证。
步骤2:基于应用层数据、网络层数据和数据链路层数据生成状态查询请求。
具体的,应用层数据可以包括以下至少之一:发送组件的第一身份标识、目标组件的第二身份标识、应用请求数据、校验数据;数据链路层数据可以包括以下至少之一:帧数据、数据控制信息,数据控制信息包括以下至少之一:发送组件的地址信息、目标组件数据控制信息的地址信息、校验数据;网络层数据可以包括:与帧数据和数据控制信息相对应的数据包。一般情况下,所生成的状态查询请求可以包括10到11个字节,所生成的状态查询请求中包括的第一个字节信息可以为发送者信息、第二个字节信息可以为接收者信息、第三个字节信息可以为发送序号标识、第四个字节信息可以为校验信息。
可以理解的是,状态查询请求的具体格式内容并不限于上述所限定的格式内容,本领域技术人员可以根据具体的应用需求和设计需求进行设置,在 此不再赘述。
步骤3:将状态查询请求发送至目标组件。
步骤4:目标组件接收状态查询请求,并生成与状态查询请求相对应的查询反馈信息。
步骤5:目标组件将查询反馈信息发送至发送组件。
步骤6:发送组件基于是否接收到查询反馈信息确定发送组件与目标组件之间的通信链路的工作状态。
具体的,在发送组件接收到查询反馈信息时,则可以确定发送组件与目标组件之间的通信链路的工作状态为正常状态;在发送组件未接收到查询反馈信息时,则可以确定发送组件与目标组件之间的通信链路的工作状态为异常状态。或者,在发送组件接收到查询反馈信息、并确定与查询反馈信息相对应的回包时间,以根据回包时间判断通信链路的延迟是否合理。
另一种可实现的方式,参考附图20所示,本实施例中的方法包括以下步骤:
步骤11:发送组件(上位机)获取与发送组件和目标组件(第六芯片)相对应的应用层数据、网络层数据和数据链路层数据。
步骤12:基于应用层数据、网络层数据和数据链路层数据生成状态查询请求。
步骤13:将状态查询请求发送至中间组件(包括第一芯片、第二芯片、第三芯片、第四芯片、第五芯片)。
步骤14:中间组件接收到状态查询请求,识别该中间组件是否为目标组件。
具体的,在将状态查询请求发送至第一芯片、使得第一芯片接收到状态查询请求之后,可以识别该第一芯片是否为目标组件,即判断第一芯片的身份标识信息与状态查询请求中所包括的与目标组件相对应的身份标识信息是否相同,在第一芯片是目标组件时,则可以生成与状态查询请求相对应的查询反馈信息1,并将所生成的查询反馈信息1发送至发送组件。
或者,在第一芯片不是目标组件时,则可以继续对状态查询请求进行传输,即第一芯片可以将状态查询请求发送至第二芯片,在第二芯片接收到状态查询请求之后,可以识别该第二芯片是否为目标组件,在第二芯片是目标组件时,则可以生成与状态查询请求相对应的查询反馈信息2,并将所生成的 查询反馈信息2发送至发送组件。
相类似的,在第二芯片不是目标组件时,则可以继续对状态查询请求进行传输,即第二芯片可以将状态查询请求发送至第三芯片,在第三芯片接收到状态查询请求之后,可以识别该第三芯片是否为目标组件,在第三芯片是目标组件时,则可以生成与状态查询请求相对应的查询反馈信息2,并将所生成的查询反馈信息2发送至发送组件。
步骤15:发送组件基于是否接收到查询反馈信息1(查询反馈信息2)确定发送组件与目标组件之间的通信链路的工作状态。
具体的,在发送组件接收到查询反馈信息1(查询反馈信息2)时,则可以确定发送组件与目标组件之间的通信链路的工作状态为正常状态;在发送组件未接收到查询反馈信息1(查询反馈信息2)时,则可以确定发送组件与目标组件之间的通信链路的工作状态为异常状态。或者,在发送组件接收到查询反馈信息1(查询反馈信息2)、并确定与查询反馈信息1(查询反馈信息2)相对应的回包时间,以根据回包时间判断通信链路的延迟是否合理。
本应用实施例提供的通信链路的检测方法,能够简单、高效解决相关技术中对通信链路的检测系统中各个芯片及芯片之间的通信链路的运行状态进行检测及诊断所存在的复杂问题,并且还方法还具有实现方式简单、灵活性好、扩展性强等特点,即通过简单的状态查询请求即可准确地检测出通信链路的检测系统之间的通信链路所对应的通信状态及链路的延时情况,从而便于使得用户可以及时、准确地对发送组件和目标组件进行调整或控制,有效地提高了该方法使用的稳定可靠性。
图22为本发明实施例提供的一种通信链路的检测装置的结构示意图一;参考附图22所示,本实施例提供了一种通信链路的检测装置,该通信链路的检测装置可以执行上述图1实施例所对应的通信链路的检测方法。其中,通信链路至少可以包括发送组件和与发送组件通信连接的目标组件,检测装置包括:
第一存储器12,用于存储计算机程序;
第一处理器11,用于运行第一存储器12中存储的计算机程序以实现:
在发送组件与目标组件之间建立通信链路之后,生成与目标组件相对应的状态查询请求,其中,发送组件的通信协议接口的类型与目标组件的通信协议接口的类型不同;
将状态查询请求发送至目标组件;
根据是否接收到目标组件基于状态查询请求所发送的查询反馈信息,确定发送组件与目标组件之间的通信链路的工作状态。
其中,通信链路的检测装置的结构中还可以包括第一通信接口13,用于电子设备与其他设备或通信网络通信。
在一些实例中,在第一处理器11生成与目标组件相对应的状态查询请求时,第一处理器11用于:获取与发送组件和目标组件相对应的应用层数据、网络层数据和数据链路层数据;基于应用层数据、网络层数据和数据链路层数据,生成与目标组件相对应的状态查询请求。
在一些实例中,应用层数据包括以下至少之一:发送组件的第一身份标识、目标组件的第二身份标识、应用请求数据、校验数据;
数据链路层数据可以包括以下至少之一:帧数据、数据控制信息,所述数据控制信息包括以下至少之一:发送组件的地址信息、目标组件数据控制信息的地址信息、校验数据;
网络层数据可以包括:与帧数据和数据控制信息相对应的数据包。
在一些实例中,在第一处理器11生成与目标组件相对应的状态查询请求时,第一处理器11用于:获取目标组件的第二身份标识;基于发送组件的第一身份标识、第二身份标识和预设的校验数据,生成状态查询请求。
在一些实例中,在第一处理器11将状态查询请求发送至目标组件时,第一处理器11用于:将状态查询请求直接发送至目标组件;或者,将状态查询请求通过至少一个中间组件发送至目标组件。
在一些实例中,在第一处理器11将状态查询请求通过至少一个中间组件发送至目标组件时,第一处理器11用于:将状态查询请求发送至至少一个中间组件,以使至少一个中间组件确定与状态查询请求相对应的目标组件的第二身份标识,并基于第二身份标识对状态查询请求进行传输,以将状态查询请求发送至目标组件,其中,发送组件的通信协议接口的类型、至少一个中间组件的通信协议接口类型、和目标组件的通信协议接口的类型不完全相同。
在一些实例中,在至少一个中间组件基于第二身份标识对状态查询请求进行传输,以将状态查询请求发送至目标组件时,至少一个中间组件用于:将第二身份标识与至少一个中间组件所对应的至少一个第三身份标识进行比较;在至少一个第三身份标识与第二身份标识不一致时,则将状态查询请求 通过中间组件的发送端口发送至其他组件,以将状态查询请求最终发送至目标组件,其中,发送端口与中间组件接收状态查询请求的端口不同;以及,在第二身份标识与一第三身份标识相一致时,则将与第三身份标识相对应的中间组件确定为目标组件。
在一些实例中,在至少一个第三身份标识与第二身份标识不一致时,第一处理器11还用于:在状态查询请求中加入第三身份标识,并标记第三身份标识对应的组件为中间组件,以记录状态查询请求的传输路径。
在一些实例中,在将与第三身份标识相对应的中间组件确定为目标组件之后,第一处理器11还用于:目标组件生成与状态查询请求相对应的查询反馈信息;将查询反馈信息返回至发送组件。
在一些实例中,查询反馈信息所包括的内容与状态查询请求所包括的内容相同。
在一些实例中,查询反馈信息中包括位于发送组件与目标组件之间的通信链路中的至少一个中间组件的组件身份标识。
在一些实例中,在第一处理器11根据是否接收到目标组件基于状态查询请求所发送的查询反馈信息,确定发送组件与目标组件之间的通信链路的工作状态时,第一处理器11还用于:在接收到查询反馈信息时,确定通信链路的工作状态为正常状态;或者,在未接收到查询反馈信息时,确定通信链路的工作状态为异常状态。
在一些实例中,在第一处理器11根据是否接收到目标组件基于状态查询请求所发送的查询反馈信息,确定发送组件与目标组件之间的通信链路的工作状态时,第一处理器11还用于:在接收到查询反馈信息时,获取与查询反馈信息相对应的反馈时长;基于反馈时长,确定发送组件与目标组件之间的通信链路的工作状态。
在一些实例中,在第一处理器11基于反馈时长,确定发送组件与目标组件之间的通信链路的工作状态时,第一处理器11还用于:将反馈时长与预设时间阈值进行分析比较;在反馈时长大于预设时间阈值时,则确定通信链路的延迟状态为异常状态;或者,在反馈时长小于或等于预设时间阈值时,则确定通信链路的延迟状态为正常状态。
在一些实例中,在确定发送组件与目标组件之间的通信链路的工作状态之后,本实施例中的第一处理器11还用于:确定发送组件与目标组件之间的 通信链路的链路类型;在链路类型为串联链路、且通信链路的工作状态为正常状态时,则确定串联链路中包括的所有组件之间的子通信链路的工作状态为正常状态;以及,在链路类型为并联链路时,则生成与并联链路中包括的并联支路相对应的支路状态查询请求,并基于支路状态查询请求确定并联支路所对应的通信链路的工作状态是否正常。
在一些实例中,支路状态查询请求的个数与并联链路中所包括的并联支路的个数相对应。
在一些实例中,在第一处理器11将状态查询请求发送至目标组件时,第一处理器11还用于:获取与状态查询请求相对应的发送频率;基于发送频率,将状态查询请求发送至目标组件。
在一些实例中,在第一处理器11将状态查询请求发送至目标组件时,第一处理器11还用于:获取与状态查询请求相对应的发送格式;基于发送格式,将状态查询请求发送至目标组件。
在一些实例中,在状态查询请求中包括应用请求数据时,第一处理器11还用于:接收目标组件基于应用请求数据所发送的应用反馈数据;基于应用反馈数据,确定与目标组件相对应的应用状态。
在一些实例中,应用请求数据包括以下至少之一:负载占用请求、内存占用请求、中央处理器CPU占用请求;相对应的,应用状态包括以下至少之一:负载占用信息、内存占用信息、中央处理器CPU占用信息。
在一些实例中,发送组件和目标组件为一组组件中的任意两个不同的组件。
图22所示装置可以执行图1-图17、图19-图21所示实施例的方法,本实施例未详细描述的部分,可参考对图1-图17、图19-图21所示实施例的相关说明。该技术方案的执行过程和技术效果参见图1-图17、图19-图21所示实施例中的描述,在此不再赘述。
图23为本发明实施例提供的一种通信链路的检测装置的结构示意图二;参考附图23所示,本实施例提供了一种通信链路的检测装置,该通信链路的检测装置可以执行上述图18实施例所对应的通信链路的检测方法。其中,通信链路至少可以包括发送组件和与发送组件通信连接的目标组件,检测装置包括:
第二存储器22,用于存储计算机程序;
第二处理器21,用于运行第二存储器22中存储的计算机程序以实现:
接收发送组件发送的状态查询请求,状态查询请求用于查询发送组件与目标组件之间通信链路的工作状态;
确定与状态查询请求相对应的目标组件的目标身份标识;
基于目标身份标识对状态查询请求进行传输,以将状态查询请求发送至目标组件。
其中,通信链路的检测装置的结构中还可以包括第二通信接口23,用于电子设备与其他设备或通信网络通信。
在一些实例中,在第二处理器21基于目标身份标识对状态查询请求进行传输,以将状态查询请求发送至目标组件时,第二处理器21还用于:将目标身份标识与检测装置所对应的第一身份标识进行比较;在第一身份标识与目标身份标识不一致时,则将状态查询请求通过检测装置的发送端口发送至其他组件,以将状态查询请求最终发送至目标组件,其中,发送端口与检测装置接收状态查询请求的端口不同;以及,在第一身份标识与目标身份标识相一致时,则将与第一身份标识相对应的检测装置确定为目标组件。
在一些实例中,在第一身份标识与目标身份标识不一致时,第二处理器21还用于:在状态查询请求中加入第一身份标识,并标记第一身份标识对应的组件为中间组件,以记录状态查询请求的传输路径。
在一些实例中,在第一身份标识与目标身份标识不一致时,第二处理器21还用于:接收目标组件所发送的查询反馈信息,查询反馈信息中包括位于发送组件与目标组件之间的通信链路中的至少一个中间组件的组件身份标识;基于查询反馈信息所包括的至少一个中间组件的组件身份标识对查询反馈信息进行传输,以将查询反馈信息最终发送至发送组件。
图23所示装置可以执行图18-图21所示实施例的方法,本实施例未详细描述的部分,可参考对图18-图21所示实施例的相关说明。该技术方案的执行过程和技术效果参见图18-图21所示实施例中的描述,在此不再赘述。
图24为本发明实施例提供的一种通信链路的检测系统的结构示意图;参考附图24所示,本实施例提供了一种通信链路的检测系统,其中,通信链路至少包括发送组件31与发送组件31通信连接的目标组件32,发送组件31的通信协议接口的类型与目标组件32的通信协议接口的类型不同,系统包括:
发送组件31,用于生成与目标组件32相对应的状态查询请求;将状态查 询请求通过中间组件33发送至目标组件32;根据是否接收到目标组件32基于状态查询请求所发送的查询反馈信息,确定发送组件31与目标组件32之间的通信链路的工作状态;
中间组件33,用于通过接收端口接收发送组件31发送的状态查询请求,状态查询请求用于查询发送组件31与目标组件32之间通信链路的工作状态,并将状态查询请求通过中间组件33的发送端口发送出去,其中,发送端口与中间组件33的接收端口不同;
目标组件32,用于通过中间组件33接收状态查询请求,并基于状态查询请求生成查询反馈信息,将查询反馈信息发送至发送组件31。
在一些实例中,在通信链路的检测系统应用于无人机系统时,发送组件31可以包括以下至少之一:遥控器、无人机、相机、移动互联网设备、预设应用程序APP;相类似的,目标组件32可以包括以下至少之一:遥控器、无人机、相机、移动互联网设备、预设应用程序APP,上述的目标组件32与发送组件31的通信协议不同。
图24所示系统可以执行图1-图21所示实施例的方法,本实施例未详细描述的部分,可参考对图1-图21所示实施例的相关说明。该技术方案的执行过程和技术效果参见图1-图21所示实施例中的描述,在此不再赘述。
图25为本发明实施例提供的一种可移动平台的结构示意图一;参考附图25所示,本实施例提供了一种可移动平台,具体应用时,该可移动平台可以为手持电话、手持云台、无人机、无人车、无人船、机器人或自动驾驶汽车等,具体的,该可移动平台可以包括:
机身41;
上述图22实施例中的通信链路的检测装置42,设置于机身41上,用于对可移动平台的通信组件之间所形成的通信链路的状态进行检测。
其中,可移动平台的通信组件可以包括以下至少之一:遥控器、无人机、相机、移动互联网设备、预设应用程序APP。
图25所示可移动平的具体实现过程和实现原理与上述图22中通信链路的检测装置42的实现过程和实现原理相类似,具体可参见上述图22所示实施例中的描述,在此不再赘述。
图26为本发明实施例提供的一种可移动平台的结构示意图二,参考附图26所示,本实施例提供了一种可移动平台,可移动平台可以是手持电话、手 持云台、无人机、无人车、无人船、机器人或自动驾驶汽车等,具体的,该可移动平台可以包括:
机身51;
上述图23实施例中的通信链路的检测装置52,设置于机身51上,用于对可移动平台的通信组件之间所形成的通信链路的状态进行检测。
其中,可移动平台的通信组件可以包括以下至少之一:遥控器、无人机、相机、移动互联网设备、预设应用程序APP。
图25所示可移动平的具体实现过程和实现原理与上述图23中通信链路的检测装置52的实现过程和实现原理相类似,具体可参见上述图23所示实施例中的描述,在此不再赘述。
本实施例的另一方面提供了一种计算机可读存储介质,存储介质为计算机可读存储介质,该计算机可读存储介质中存储有程序指令,程序指令用于实现上述图1-图17所对应实施例中的通信链路的检测方法。
本实施例的另一方面提供了一种计算机可读存储介质,存储介质为计算机可读存储介质,该计算机可读存储介质中存储有程序指令,程序指令用于实现上述图18所对应实施例中的通信链路的检测方法。
本发明实施例提供的技术方案,可以根据是否接收到目标组件所发送的查询反馈信息,确定发送组件与目标组件之间的通信链路的工作状态,其中,查询反馈信息可以满足预设通信协议,该预设通信协议可以使得数据在不同的通信协议接口之间进行安全、稳定地数据传输,从而有效地实现了通过不同通信协议接口所建立的通信链路的状态进行查询,并且该方法还具有实现方式简单、有效地减少了人力成本和时间成本的特点,进一步提高了该方法的实用性。
以上各个实施例中的技术方案、技术特征在与本相冲突的情况下均可以单独,或者进行组合,只要未超出本领域技术人员的认知范围,均属于本申请保护范围内的等同实施例。
在本发明所提供的几个实施例中,应该理解到,所揭露的相关遥控装置和方法,可以通过其它的方式实现。例如,以上所描述的遥控装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以 集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,遥控装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得计算机处理器(processor)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁盘或者光盘等各种可以存储程序代码的介质。
以上所述仅为本发明的实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。
最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。

Claims (55)

  1. 一种通信链路的检测方法,其特征在于,包括:
    在发送组件与目标组件之间建立通信链路之后,生成与所述目标组件相对应的状态查询请求,其中,所述发送组件的通信协议接口的类型与所述目标组件的通信协议接口的类型不同;
    将所述状态查询请求发送至所述目标组件;
    根据是否接收到所述目标组件基于所述状态查询请求所发送的查询反馈信息,确定所述发送组件与所述目标组件之间的通信链路的工作状态。
  2. 根据权利要求1所述的方法,其特征在于,所述生成与所述目标组件相对应的状态查询请求,包括:
    获取与所述发送组件和目标组件相对应的应用层数据、网络层数据和数据链路层数据;
    基于所述应用层数据、网络层数据和所述数据链路层数据,生成与所述目标组件相对应的所述状态查询请求。
  3. 根据权利要求2所述的方法,其特征在于,
    所述应用层数据包括以下至少之一:发送组件的第一身份标识、目标组件的第二身份标识、应用请求数据、校验数据;
    所述数据链路层数据包括以下至少之一:帧数据、数据控制信息,所述数据控制信息包括以下至少之一:发送组件的地址信息、目标组件数据控制信息的地址信息、校验数据;
    所述网络层数据包括:与帧数据和数据控制信息相对应的数据包。
  4. 根据权利要求3所述的方法,其特征在于,所述生成与所述目标组件相对应的状态查询请求,包括:
    获取所述目标组件的第二身份标识;
    基于所述发送组件的第一身份标识、第二身份标识和预设的校验数据,生成所述状态查询请求。
  5. 根据权利要求1所述的方法,其特征在于,将所述状态查询请求发送至所述目标组件,包括:
    将所述状态查询请求直接发送至所述目标组件;或者,
    将所述状态查询请求通过至少一个中间组件发送至所述目标组件。
  6. 根据权利要求5所述的方法,其特征在于,将所述状态查询请求通过 至少一个中间组件发送至所述目标组件,包括:
    将所述状态查询请求发送至至少一个中间组件;
    所述至少一个中间组件确定与所述状态查询请求相对应的目标组件的第二身份标识;
    所述至少一个中间组件基于所述第二身份标识对所述状态查询请求进行传输,以将所述状态查询请求发送至目标组件;
    其中,所述发送组件的通信协议接口的类型、所述至少一个中间组件的通信协议接口类型、和所述目标组件的通信协议接口的类型不完全相同。
  7. 根据权利要求6所述的方法,其特征在于,所述至少一个中间组件基于所述第二身份标识对所述状态查询请求进行传输,以将所述状态查询请求发送至目标组件,包括:
    将所述第二身份标识与所述至少一个中间组件所对应的至少一个第三身份标识进行比较;
    在所述至少一个第三身份标识与所述第二身份标识不一致时,则将所述状态查询请求通过所述中间组件的发送端口发送至其他组件,以将所述状态查询请求最终发送至所述目标组件,其中,所述发送端口与所述中间组件接收所述状态查询请求的端口不同;以及,在所述第二身份标识与一第三身份标识相一致时,则将与所述第三身份标识相对应的中间组件确定为所述目标组件。
  8. 根据权利要求7所述的方法,其特征在于,在所述至少一个第三身份标识与所述第二身份标识不一致时,所述方法还包括:
    在所述状态查询请求中加入所述第三身份标识,并标记所述第三身份标识对应的组件为所述中间组件,以记录状态查询请求的传输路径。
  9. 根据权利要求7所述的方法,其特征在于,在将与所述第三身份标识相对应的中间组件确定为所述目标组件之后,所述方法还包括:
    所述目标组件生成与所述状态查询请求相对应的查询反馈信息;
    将所述查询反馈信息返回至所述发送组件。
  10. 根据权利要求9所述的方法,其特征在于,所述查询反馈信息所包括的内容与所述状态查询请求所包括的内容相同。
  11. 根据权利要求9所述的方法,其特征在于,所述查询反馈信息中包括位于所述发送组件与所述目标组件之间的通信链路中的至少一个中间组件的 组件身份标识。
  12. 根据权利要求1-11中任意一项所述的方法,其特征在于,根据是否接收到所述目标组件基于所述状态查询请求所发送的查询反馈信息,确定所述发送组件与所述目标组件之间的通信链路的工作状态,包括:
    在接收到所述查询反馈信息时,确定所述通信链路的工作状态为正常状态;或者,
    在未接收到所述查询反馈信息时,确定所述通信链路的工作状态为异常状态。
  13. 根据权利要求1-11中任意一项所述的方法,其特征在于,根据是否接收到所述目标组件基于所述状态查询请求所发送的查询反馈信息,确定所述发送组件与所述目标组件之间的通信链路的工作状态,包括:
    在接收到所述查询反馈信息时,获取与所述查询反馈信息相对应的反馈时长;
    基于所述反馈时长,确定所述发送组件与所述目标组件之间的通信链路的工作状态。
  14. 根据权利要求13所述的方法,其特征在于,基于所述反馈时长,确定所述发送组件与所述目标组件之间的通信链路的工作状态,包括:
    将所述反馈时长与预设时间阈值进行分析比较;
    在所述反馈时长大于所述预设时间阈值时,则确定所述通信链路的延迟状态为异常状态;或者,
    在所述反馈时长小于或等于所述预设时间阈值时,则确定所述通信链路的延迟状态为正常状态。
  15. 根据权利要求12所述的方法,其特征在于,在确定所述发送组件与所述目标组件之间的通信链路的工作状态之后,所述方法还包括:
    确定所述发送组件与所述目标组件之间的通信链路的链路类型;
    在所述链路类型为串联链路、且所述通信链路的工作状态为正常状态时,则确定所述串联链路中包括的所有组件之间的子通信链路的工作状态为正常状态;以及,
    在所述链路类型为并联链路时,则生成与所述并联链路中包括的并联支路相对应的支路状态查询请求,并基于所述支路状态查询请求确定所述并联支路所对应的通信链路的工作状态是否正常。
  16. 根据权利要求15所述的方法,其特征在于,所述支路状态查询请求的个数与所述并联链路中所包括的并联支路的个数相对应。
  17. 根据权利要求1-11中任意一项所述的方法,其特征在于,将所述状态查询请求发送至所述目标组件,包括:
    获取与所述状态查询请求相对应的发送频率;
    基于所述发送频率,将所述状态查询请求发送至所述目标组件。
  18. 根据权利要求1-11中任意一项所述的方法,其特征在于,将所述状态查询请求发送至所述目标组件,包括:
    获取与所述状态查询请求相对应的发送格式;
    基于所述发送格式,将所述状态查询请求发送至所述目标组件。
  19. 根据权利要求1-11中任意一项所述的方法,其特征在于,在所述状态查询请求中包括应用请求数据时,所述方法还包括:
    接收所述目标组件基于所述应用请求数据所发送的应用反馈数据;
    基于所述应用反馈数据,确定与所述目标组件相对应的应用状态。
  20. 根据权利要求19所述的方法,其特征在于,
    所述应用请求数据包括以下至少之一:负载占用请求、内存占用请求、中央处理器CPU占用请求;
    相对应的,所述应用状态包括以下至少之一:负载占用信息、内存占用信息、中央处理器CPU占用信息。
  21. 根据权利要求1-11中任意一项所述的方法,其特征在于,所述发送组件和所述目标组件为一组组件中的任意两个不同的组件。
  22. 一种通信链路的检测方法,其特征在于,应用于中间组件,所述方法包括:
    所述中间组件接收发送组件发送的状态查询请求,所述状态查询请求用于查询所述发送组件与目标组件之间通信链路的工作状态;
    所述中间组件确定与所述状态查询请求相对应的目标组件的目标身份标识;
    所述中间组件基于所述目标身份标识对所述状态查询请求进行传输,以将所述状态查询请求发送至目标组件。
  23. 根据权利要求22所述的方法,其特征在于,所述中间组件基于所述目标身份标识对所述状态查询请求进行传输,以将所述状态查询请求发送至 目标组件,包括:
    所述中间组件将所述目标身份标识与所述中间组件所对应的第一身份标识进行比较;
    在所述第一身份标识与所述目标身份标识不一致时,则将所述状态查询请求通过所述中间组件的发送端口发送至其他组件,以将所述状态查询请求最终发送至所述目标组件,其中,所述发送端口与所述中间组件接收所述状态查询请求的端口不同;以及,
    在所述第一身份标识与目标身份标识相一致时,则将与所述第一身份标识相对应的中间组件确定为所述目标组件。
  24. 根据权利要求23所述的方法,其特征在于,在所述第一身份标识与所述目标身份标识不一致时,所述方法还包括:
    在所述状态查询请求中加入所述第一身份标识,并标记所述第一身份标识对应的组件为所述中间组件,以记录状态查询请求的传输路径。
  25. 根据权利要求23所述的方法,其特征在于,在所述第一身份标识与所述目标身份标识不一致时,所述方法还包括:
    接收所述目标组件所发送的查询反馈信息,所述查询反馈信息中包括位于所述发送组件与所述目标组件之间的通信链路中的至少一个中间组件的组件身份标识;
    基于所述查询反馈信息所包括的至少一个中间组件的组件身份标识对所述查询反馈信息进行传输,以将所述查询反馈信息最终发送至所述发送组件。
  26. 一种通信链路的检测装置,其特征在于,所述通信链路至少包括发送组件和与所述发送组件通信连接的目标组件,所述检测装置包括:
    第一存储器,用于存储计算机程序;
    第一处理器,用于运行所述第一存储器中存储的计算机程序以实现:
    在发送组件与目标组件之间建立通信链路之后,生成与所述目标组件相对应的状态查询请求,其中,所述发送组件的通信协议接口的类型与所述目标组件的通信协议接口的类型不同;
    将所述状态查询请求发送至所述目标组件;
    根据是否接收到所述目标组件基于所述状态查询请求所发送的查询反馈信息,确定所述发送组件与所述目标组件之间的通信链路的工作状态。
  27. 根据权利要求26所述的检测装置,其特征在于,在所述第一处理器 生成与所述目标组件相对应的状态查询请求时,所述第一处理器用于:
    获取与所述发送组件和目标组件相对应的应用层数据、网络层数据和数据链路层数据;
    基于所述应用层数据、网络层数据和所述数据链路层数据,生成与所述目标组件相对应的所述状态查询请求。
  28. 根据权利要求27所述的检测装置,其特征在于,
    所述应用层数据包括以下至少之一:发送组件的第一身份标识、目标组件的第二身份标识、应用请求数据、校验数据;
    所述数据链路层数据包括以下至少之一:帧数据、数据控制信息,所述数据控制信息包括以下至少之一:发送组件的地址信息、目标组件的地址信息、校验数据;
    所述网络层数据包括:与帧数据和数据控制信息相对应的数据包。
  29. 根据权利要求28所述的检测装置,其特征在于,在所述第一处理器生成与所述目标组件相对应的状态查询请求时,所述第一处理器用于:
    获取所述目标组件的第二身份标识;
    基于所述发送组件的第一身份标识、第二身份标识和预设的校验数据,生成所述状态查询请求。
  30. 根据权利要求26所述的检测装置,其特征在于,在所述第一处理器将所述状态查询请求发送至所述目标组件时,所述第一处理器用于:
    将所述状态查询请求直接发送至所述目标组件;或者,
    将所述状态查询请求通过至少一个中间组件发送至所述目标组件。
  31. 根据权利要求30所述的检测装置,其特征在于,在所述第一处理器将所述状态查询请求通过至少一个中间组件发送至所述目标组件时,所述第一处理器用于:
    将所述状态查询请求发送至至少一个中间组件,以使所述至少一个中间组件确定与所述状态查询请求相对应的目标组件的第二身份标识,并基于所述第二身份标识对所述状态查询请求进行传输,以将所述状态查询请求发送至目标组件;其中,所述检测装置的通信协议接口的类型、所述至少一个中间组件的通信协议接口类型、和所述目标组件的通信协议接口的类型不完全相同。
  32. 根据权利要求31所述的检测装置,其特征在于,在所述至少一个中 间组件基于所述第二身份标识对所述状态查询请求进行传输,以将所述状态查询请求发送至目标组件时,所述至少一个中间组件用于:
    将所述第二身份标识与所述至少一个中间组件所对应的至少一个第三身份标识进行比较;
    在所述至少一个第三身份标识与所述第二身份标识不一致时,则将所述状态查询请求通过所述中间组件的发送端口发送至其他组件,以将所述状态查询请求最终发送至所述目标组件,其中,所述发送端口与所述中间组件接收所述状态查询请求的端口不同;以及
    在所述第二身份标识与一第三身份标识相一致时,则将与所述第三身份标识相对应的中间组件确定为所述目标组件。
  33. 根据权利要求32所述的检测装置,其特征在于,在所述至少一个第三身份标识与所述第二身份标识不一致时,所述第一处理器还用于:
    在所述状态查询请求中加入所述第三身份标识,并标记所述第三身份标识对应的组件为所述中间组件,以记录状态查询请求的传输路径。
  34. 根据权利要求32所述的检测装置,其特征在于,在将与所述第三身份标识相对应的中间组件确定为所述目标组件之后,所述第一处理器还用于:
    所述目标组件生成与所述状态查询请求相对应的查询反馈信息;
    将所述查询反馈信息返回至所述发送组件。
  35. 根据权利要求34所述的检测装置,其特征在于,所述查询反馈信息所包括的内容与所述状态查询请求所包括的内容相同。
  36. 根据权利要求34所述的检测装置,其特征在于,所述查询反馈信息中包括位于所述发送组件与所述目标组件之间的通信链路中的至少一个中间组件的组件身份标识。
  37. 根据权利要求26-36中任意一项所述的检测装置,其特征在于,在所述第一处理器根据是否接收到所述目标组件基于所述状态查询请求所发送的查询反馈信息,确定所述发送组件与所述目标组件之间的通信链路的工作状态时,所述第一处理器还用于:
    在接收到所述查询反馈信息时,确定所述通信链路的工作状态为正常状态;或者,
    在未接收到所述查询反馈信息时,确定所述通信链路的工作状态为异常状态。
  38. 根据权利要求26-36中任意一项所述的检测装置,其特征在于,在所述第一处理器根据是否接收到所述目标组件基于所述状态查询请求所发送的查询反馈信息,确定所述发送组件与所述目标组件之间的通信链路的工作状态时,所述第一处理器还用于:
    在接收到所述查询反馈信息时,获取与所述查询反馈信息相对应的反馈时长;
    基于所述反馈时长,确定所述发送组件与所述目标组件之间的通信链路的工作状态。
  39. 根据权利要求38所述的检测装置,其特征在于,在所述第一处理器基于所述反馈时长,确定所述发送组件与所述目标组件之间的通信链路的工作状态时,所述第一处理器还用于:
    将所述反馈时长与预设时间阈值进行分析比较;
    在所述反馈时长大于所述预设时间阈值时,则确定所述通信链路的延迟状态为异常状态;或者,
    在所述反馈时长小于或等于所述预设时间阈值时,则确定所述通信链路的延迟状态为正常状态。
  40. 根据权利要求37所述的检测装置,其特征在于,在确定所述发送组件与所述目标组件之间的通信链路的工作状态之后,所述第一处理器还用于:
    确定所述发送组件与所述目标组件之间的通信链路的链路类型;
    在所述链路类型为串联链路、且所述通信链路的工作状态为正常状态时,则确定所述串联链路中包括的所有组件之间的子通信链路的工作状态为正常状态;以及,
    在所述链路类型为并联链路时,则生成与所述并联链路中包括的并联支路相对应的支路状态查询请求,并基于所述支路状态查询请求确定所述并联支路所对应的通信链路的工作状态是否正常。
  41. 根据权利要求40所述的检测装置,其特征在于,所述支路状态查询请求的个数与所述并联链路中所包括的并联支路的个数相对应。
  42. 根据权利要求26-36中任意一项所述的检测装置,其特征在于,在所述第一处理器将所述状态查询请求发送至所述目标组件时,所述第一处理器还用于:
    获取与所述状态查询请求相对应的发送频率;
    基于所述发送频率,将所述状态查询请求发送至所述目标组件。
  43. 根据权利要求26-36中任意一项所述的检测装置,其特征在于,在所述第一处理器将所述状态查询请求发送至所述目标组件时,所述第一处理器还用于:
    获取与所述状态查询请求相对应的发送格式;
    基于所述发送格式,将所述状态查询请求发送至所述目标组件。
  44. 根据权利要求26-36中任意一项所述的检测装置,其特征在于,在所述状态查询请求中包括应用请求数据时,所述第一处理器还用于:
    接收所述目标组件基于所述应用请求数据所发送的应用反馈数据;
    基于所述应用反馈数据,确定与所述目标组件相对应的应用状态。
  45. 根据权利要求44所述的检测装置,其特征在于,
    所述应用请求数据包括以下至少之一:负载占用请求、内存占用请求、中央第一处理器CPU占用请求;
    相对应的,所述应用状态包括以下至少之一:负载占用信息、内存占用信息、中央第一处理器CPU占用信息。
  46. 根据权利要求26-36中任意一项所述的检测装置,其特征在于,所述发送组件和所述目标组件为一组组件中的任意两个不同的组件。
  47. 一种通信链路的检测装置,其特征在于,包括:
    第二存储器,用于存储计算机程序;
    第二处理器,用于运行所述第二存储器中存储的计算机程序以实现:
    接收发送组件发送的状态查询请求,所述状态查询请求用于查询所述发送组件与目标组件之间通信链路的工作状态;
    确定与所述状态查询请求相对应的目标组件的目标身份标识;
    基于所述目标身份标识对所述状态查询请求进行传输,以将所述状态查询请求发送至目标组件。
  48. 根据权利要求47所述的检测装置,其特征在于,在所述第二处理器基于所述目标身份标识对所述状态查询请求进行传输,以将所述状态查询请求发送至目标组件时,所述第二处理器还用于:
    将所述目标身份标识与所述检测装置所对应的第一身份标识进行比较;
    在所述第一身份标识与所述目标身份标识不一致时,则将所述状态查询请求通过所述检测装置的发送端口发送至其他组件,以将所述状态查询请求 最终发送至所述目标组件,其中,所述发送端口与所述检测装置接收所述状态查询请求的端口不同;以及,
    在所述第一身份标识与目标身份标识相一致时,则将与所述第一身份标识相对应的中间组件确定为所述目标组件。
  49. 根据权利要求48所述的检测装置,其特征在于,在所述第一身份标识与所述目标身份标识不一致时,所述第二处理器还用于:
    在所述状态查询请求中加入所述第一身份标识,并标记所述第一身份标识对应的组件为所述中间组件,以记录状态查询请求的传输路径。
  50. 根据权利要求48所述的检测装置,其特征在于,在所述第一身份标识与所述目标身份标识不一致时,所述第二处理器还用于:
    接收所述目标组件所发送的查询反馈信息,所述查询反馈信息中包括位于所述发送组件与所述目标组件之间的通信链路中的至少一个中间组件的组件身份标识;
    基于所述查询反馈信息所包括的至少一个中间组件的组件身份标识对所述查询反馈信息进行传输,以将所述查询反馈信息最终发送至所述发送组件。
  51. 一种通信链路的检测系统,其特征在于,所述通信链路至少包括发送组件与所述发送组件通信连接的目标组件,所述发送组件的通信协议接口的类型与所述目标组件的通信协议接口的类型不同,所述系统包括:
    发送组件,用于生成与所述目标组件相对应的状态查询请求;将所述状态查询请求通过中间组件发送至所述目标组件;根据是否接收到所述目标组件基于所述状态查询请求所发送的查询反馈信息,确定所述发送组件与所述目标组件之间的通信链路的工作状态;
    所述中间组件,用于通过接收端口接收所述发送组件发送的状态查询请求,所述状态查询请求用于查询所述发送组件与目标组件之间通信链路的工作状态,并将所述状态查询请求通过所述中间组件的发送端口发送出去,其中,所述发送端口与所述中间组件的接收端口不同;
    所述目标组件,用于通过所述中间组件接收所述状态查询请求,并基于所述状态查询请求生成查询反馈信息,将所述查询反馈信息发送至所述发送组件。
  52. 一种可移动平台,其特征在于,包括:
    机身;
    权利要求26-46中任意一项所述的通信链路的检测装置,设置于所述机身上,用于对可移动平台的通信组件之间所形成的通信链路的状态进行检测。
  53. 一种可移动平台,其特征在于,包括:
    机身;
    权利要求47-50中任意一项所述的通信链路的检测装置,设置于所述机身上,用于对可移动平台的通信组件之间所形成的通信链路的状态进行检测。
  54. 一种计算机可读存储介质,其特征在于,所述存储介质为计算机可读存储介质,该计算机可读存储介质中存储有程序指令,所述程序指令用于实现权利要求1-21中任意一项所述的通信链路的检测方法。
  55. 一种计算机可读存储介质,其特征在于,所述存储介质为计算机可读存储介质,该计算机可读存储介质中存储有程序指令,所述程序指令用于实现权利要求22-25中任意一项所述的通信链路的检测方法。
PCT/CN2020/087956 2020-04-30 2020-04-30 通信链路的检测方法、装置、系统和可移动平台 WO2021217540A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202080004404.1A CN112585927A (zh) 2020-04-30 2020-04-30 通信链路的检测方法、装置、系统和可移动平台
PCT/CN2020/087956 WO2021217540A1 (zh) 2020-04-30 2020-04-30 通信链路的检测方法、装置、系统和可移动平台

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/087956 WO2021217540A1 (zh) 2020-04-30 2020-04-30 通信链路的检测方法、装置、系统和可移动平台

Publications (1)

Publication Number Publication Date
WO2021217540A1 true WO2021217540A1 (zh) 2021-11-04

Family

ID=75145426

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/087956 WO2021217540A1 (zh) 2020-04-30 2020-04-30 通信链路的检测方法、装置、系统和可移动平台

Country Status (2)

Country Link
CN (1) CN112585927A (zh)
WO (1) WO2021217540A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115134266A (zh) * 2022-05-31 2022-09-30 西安北方华创微电子装备有限公司 数据上传方法、数据接收方法和半导体工艺设备

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115208782A (zh) * 2021-04-08 2022-10-18 中兴通讯股份有限公司 链路状态测试方法及其装置、计算机可读存储介质
CN114594714B (zh) * 2022-03-23 2024-04-12 苏州佳祺仕科技股份有限公司 一种设备控制方法、装置、设备及存储介质
CN115002207B (zh) * 2022-05-27 2024-02-23 三一智矿科技有限公司 信息通信方法及系统

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101030898A (zh) * 2006-01-30 2007-09-05 丛林网络公司 确定目标网络装置的未编号接口的连通状态
CN101977128A (zh) * 2010-09-14 2011-02-16 中兴通讯股份有限公司 用于通讯设备的接口检测方法和装置
CN102236340A (zh) * 2010-04-26 2011-11-09 北大方正集团有限公司 一种多设备管理方法和装置
CN105516078A (zh) * 2014-10-01 2016-04-20 Ls产电株式会社 协议转换器
US20170208134A1 (en) * 2016-01-19 2017-07-20 Comcast Cable Communications, Llc Connection Manager
CN107528746A (zh) * 2016-06-21 2017-12-29 丛林网络公司 通信方法和源网络设备

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101030898A (zh) * 2006-01-30 2007-09-05 丛林网络公司 确定目标网络装置的未编号接口的连通状态
CN102236340A (zh) * 2010-04-26 2011-11-09 北大方正集团有限公司 一种多设备管理方法和装置
CN101977128A (zh) * 2010-09-14 2011-02-16 中兴通讯股份有限公司 用于通讯设备的接口检测方法和装置
CN105516078A (zh) * 2014-10-01 2016-04-20 Ls产电株式会社 协议转换器
US20170208134A1 (en) * 2016-01-19 2017-07-20 Comcast Cable Communications, Llc Connection Manager
CN107528746A (zh) * 2016-06-21 2017-12-29 丛林网络公司 通信方法和源网络设备

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115134266A (zh) * 2022-05-31 2022-09-30 西安北方华创微电子装备有限公司 数据上传方法、数据接收方法和半导体工艺设备

Also Published As

Publication number Publication date
CN112585927A (zh) 2021-03-30

Similar Documents

Publication Publication Date Title
WO2021217540A1 (zh) 通信链路的检测方法、装置、系统和可移动平台
US8149866B2 (en) System and method for filtering communications at a network interface controller
US9197490B2 (en) System and method for providing remote management of a switching device
US20010047460A1 (en) Remote copy system of storage systems connected to fibre network
CN112291293B (zh) 任务处理方法、相关设备及计算机存储介质
CN107819659B (zh) 一种基于spi的智能级联通信网络
CN112838940B (zh) 一种网络控制器框架和数据处理方法
WO2023207326A1 (zh) 感知服务处理方法及计算机设备
CN105591912A (zh) 一种转发路径的选择方法和装置
WO2021078202A1 (zh) 飞行器时间同步系统及方法
CN103166971A (zh) 一种多路复用串口协议转换器
CN111490893A (zh) 一种网络转发模型的建立方法、装置及系统
CN105141603A (zh) 通信数据传输方法及系统
CN106534178A (zh) RapidIO网络通用套接字的实现系统及方法
CN113259268A (zh) 一种支持冗余架构的网口与串口数据转发网关及方法
US7389469B2 (en) Bus systems, apparatuses, and methods of operating a bus
CN110971533B (zh) 用于数据通信的方法、服务器装置、客户端装置和介质
JP2018510538A (ja) ネットワーク共有実施方法及び装置
CN106559236B (zh) 业务板的设备资源管理方法、装置、主控板及框式设备
CN107911372B (zh) 一种基于逻辑器件实现串口设备接入以太网的方法和装置
US20150350014A1 (en) Networking implementation using a converged high speed input/output fabric technology
CN106304241B (zh) 一种数据传输方法、转发器及网关
US20180255157A1 (en) Network service chains using hardware logic devices in an information handling system
EP2300925B1 (en) System to connect a serial scsi array controller to a storage area network
US11190941B2 (en) Traffic and threat classification for short-range wireless channels

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20933493

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20933493

Country of ref document: EP

Kind code of ref document: A1