CN111367766A - Method, device and equipment for determining connection relation between monitoring host and equipment - Google Patents

Method, device and equipment for determining connection relation between monitoring host and equipment Download PDF

Info

Publication number
CN111367766A
CN111367766A CN202010191143.0A CN202010191143A CN111367766A CN 111367766 A CN111367766 A CN 111367766A CN 202010191143 A CN202010191143 A CN 202010191143A CN 111367766 A CN111367766 A CN 111367766A
Authority
CN
China
Prior art keywords
monitoring host
determining
communication address
response information
communication
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010191143.0A
Other languages
Chinese (zh)
Inventor
梅永攀
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Invt Power Sytem Shenzhen Co ltd
Original Assignee
Invt Power Sytem Shenzhen Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Invt Power Sytem Shenzhen Co ltd filed Critical Invt Power Sytem Shenzhen Co ltd
Priority to CN202010191143.0A priority Critical patent/CN111367766A/en
Publication of CN111367766A publication Critical patent/CN111367766A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3051Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computing Systems (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer And Data Communications (AREA)

Abstract

The application discloses a method, a device, equipment and a computer readable storage medium for determining a connection relation between a monitoring host and equipment, wherein the method is applied to the monitoring host and comprises the following steps: presetting a communication protocol between each device and each other; determining a target communication address from a plurality of communication addresses corresponding to the communication bus, and sending a request frame to the target communication address; if the returned response information is received, analyzing the response information to obtain the equipment type, recording the target communication address and the equipment type, determining a target communication address from the rest communication addresses, and executing the step of sending a request frame to the target communication address; and if the returned response information is not received, executing the step of determining a target communication address from the rest communication addresses. According to the technical scheme, the connection relation between the monitoring host and each device can be automatically determined, manual intervention is not needed, and therefore the determination efficiency of the connection relation between the monitoring host and the devices can be improved.

Description

Method, device and equipment for determining connection relation between monitoring host and equipment
Technical Field
The present disclosure relates to the field of dynamic environment monitoring technologies, and in particular, to a method, an apparatus, a device, and a computer-readable storage medium for determining a connection relationship between a monitoring host and the monitoring host.
Background
In order to ensure safe operation of a data center machine room, a large number of external devices such as temperature and humidity, water immersion, a UPS (uninterruptible power supply), an air conditioner, a fan, and power distribution need to be installed in the data center machine room, and these devices need to be added to a monitoring system and connected to a monitoring host. In order to facilitate communication between the monitoring host and each connected device and implement data monitoring, it is necessary to determine a connection relationship between the monitoring host and the device.
At present, a commonly used method for determining a connection relationship between a monitoring host and a device is as follows: the engineer arrives in the machine room where the equipment and the communication line are installed, searches all the equipment connected with the monitoring host along the communication line, and inputs the searched equipment into the monitoring system through a human-computer interaction interface, so that the monitoring host can know the connection relation between the monitoring host and each piece of equipment. However, since a part of the communication lines is hidden for the sake of appearance when the equipment is installed, an engineer is required to find the hidden communication lines when the connection relationship is determined, and in addition, since some equipment is connected to various places (such as temperature and humidity equipment) on the roof, the engineer is considerably time-consuming and labor-consuming to find when the connection relationship is determined.
In summary, how to improve the efficiency of determining the connection relationship between the monitoring host and the device is a technical problem to be solved urgently by those skilled in the art.
Disclosure of Invention
In view of the above, an object of the present application is to provide a method, an apparatus, a device, and a computer-readable storage medium for determining a connection relationship between a monitoring host and a device, so as to improve the efficiency of determining the connection relationship between the monitoring host and the device.
In order to achieve the above purpose, the present application provides the following technical solutions:
a method for determining the connection relation between a monitoring host and equipment is applied to the monitoring host and comprises the following steps:
presetting a communication protocol between each device and each other; the monitoring host is connected with each device by adopting a communication bus;
when a search command is received, determining a target communication address from a plurality of communication addresses corresponding to the communication bus, and sending a request frame to the target communication address; the request frame comprises a first function code corresponding to the determined equipment type;
if response information returned by the target communication address is received, analyzing the response information to obtain an equipment type, recording the target communication address and the equipment type, determining a target communication address from the rest communication addresses, and executing the step of sending a request frame to the target communication address until all the communication addresses are polled;
and if the response information returned by the target communication address is not received, executing the step of determining one target communication address from the rest communication addresses.
Preferably, before parsing the response information, the method further includes:
and checking the received response information, and if the response information passes the checking, executing the step of analyzing the response information.
Preferably, the request frame further includes a check code used by the device to check the request frame.
Preferably, when the request frame further includes a second function code corresponding to a hardware version and a software version included in the determination device, the method further includes, when parsing the response information:
and analyzing the response information to obtain a hardware version and a software version contained in the equipment, and recording the hardware version and the software version contained in the equipment.
Preferably, the determining a target communication address from the communication addresses corresponding to the communication bus includes:
and determining the target communication address according to the arrangement sequence of the communication addresses.
Preferably, the communication bus is an RS485 communication bus.
Preferably, the communication protocol is a Modbus protocol.
A connection relation determining device between a monitoring host and equipment is applied to the monitoring host and comprises the following components:
the pre-agreement module is used for pre-agreeing communication protocols between the equipment and the equipment; the monitoring host is connected with each device by adopting a communication bus;
the device comprises a sending module, a searching module and a sending module, wherein the sending module is used for determining a target communication address from a plurality of communication addresses corresponding to the communication bus and sending a request frame to the target communication address when receiving a searching command; the request frame comprises a first function code corresponding to the determined equipment type;
a recording module, configured to, if response information returned by the target communication address is received, parse the response information to obtain a device type, record the target communication address and the device type, determine a target communication address from remaining communication addresses, and perform the step of sending a request frame to the target communication address until all communication addresses are polled;
and the execution module is used for executing the step of determining a target communication address from the rest communication addresses if the response information returned by the target communication address is not received.
A device for determining the connection relationship between a monitoring host and a device comprises:
a memory for storing a computer program;
a processor, configured to implement the steps of the method for determining a connection relationship between a monitoring host and a device according to any one of the above descriptions when the computer program is executed.
A computer-readable storage medium, having a computer program stored thereon, which, when being executed by a processor, implements the steps of the method for determining a connection relationship between a monitoring host and a device according to any one of the above.
The application provides a method, a device, equipment and a computer readable storage medium for determining a connection relation between a monitoring host and equipment, wherein the method is applied to the monitoring host and comprises the following steps: presetting a communication protocol between each device and each other; the monitoring host is connected with each device by adopting a communication bus; when a search command is received, determining a target communication address from a plurality of communication addresses corresponding to a communication bus, and sending a request frame to the target communication address; the request frame comprises a first function code corresponding to the determined equipment type; if response information returned by the target communication address is received, analyzing the response information to obtain the equipment type, recording the target communication address and the equipment type, determining a target communication address from the rest communication addresses, and executing the step of sending a request frame to the target communication address until all the communication addresses are polled; and if the response information returned by the target communication address is not received, executing the step of determining one target communication address from the rest communication addresses.
According to the technical scheme, after the communication protocol between the monitoring host and each device is defined in advance and the search command is received, the request frame containing the first function code for determining the device type can be sent to the plurality of communication addresses corresponding to the communication bus in a polling mode, if the response information sent by the corresponding communication address is received, the response information is analyzed, and the communication address and the device type are recorded, so that the connection relationship between the monitoring host and each device can be automatically determined, the connection relationship between the monitoring host and each device does not need to be determined manually by searching the device along the communication line, and the determination efficiency of the connection relationship between the monitoring host and each device is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a method for determining a connection relationship between a monitoring host and a device according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of an apparatus for determining a connection relationship between a monitoring host and a device according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of a device for determining a connection relationship between a monitoring host and a device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1, which shows a flowchart of a method for determining a connection relationship between a monitoring host and a device provided in an embodiment of the present application, a method for determining a connection relationship between a monitoring host and a device provided in an embodiment of the present application is applied to a monitoring host, and may include:
s11: presetting a communication protocol between each device and each other; the monitoring host is connected with each device by adopting a communication bus.
When the connection relation between the monitoring host and the equipment is determined, a communication protocol between the monitoring host and each equipment is defined in advance, so that the monitoring host and each equipment can communicate with each other through the communication protocol defined in advance.
The monitoring host and the devices are connected by adopting communication buses, each communication bus can be connected with a plurality of communication devices (including the monitoring host and the devices), and each communication device has different communication addresses.
S12: when a search command is received, determining a target communication address from a plurality of communication addresses corresponding to the communication bus;
s13: sending a request frame to a target communication address; the request frame includes a first function code corresponding to the determined device type.
When the monitoring host receives the search command, a target communication address can be determined from a plurality of communication addresses corresponding to the communication addresses, and a request frame can be sent to the target communication address, wherein the request frame comprises a first function code corresponding to the determined device type.
The relationship table between the function code and the function corresponding to the function code may be stored in advance on both the monitoring host and the device, so that the monitoring host may determine the function code that should be included in the request frame sent according to the relationship table, and the device may determine the function of the function code included in the request frame according to the relationship table after receiving the request frame.
S14: and if response information returned by the target communication address is received, analyzing the response information to obtain the equipment type, and recording the target communication address and the equipment type.
If the target communication address has the device, the device sends response information corresponding to the request frame to the monitoring host according to a pre-agreed communication protocol, that is, if the monitoring host receives the response information returned by the target communication address, the device exists in the target communication.
After receiving the response information returned by the target communication address, the monitoring host may analyze the response information to obtain the device type (temperature and humidity device, air conditioner, fan, etc.) of the device in which the target communication address exists, and may record and store the target communication address and the analyzed device type to automatically determine the connection relationship between the monitoring host and the device, and then, execute step S15.
If no device exists in the target communication address, the monitoring host does not receive the response information returned by the target communication address, and in this case, step S15 may be executed, that is, if the response information returned by the target communication address is not received, step S15 is directly executed.
In order to further improve the efficiency of determining the connection relationship between the monitoring host and the device, the monitoring host may determine whether response information returned by the target communication address is received within a preset time period, that is, if response information returned by the target communication address is received within the preset time period, the monitoring host may analyze the response information and record the target communication address and the device type, and then execute step S15, and if response information returned by the target communication address is not received within the preset time period, the monitoring host may directly execute step S15, so as to avoid the occurrence of a situation of waiting for the response information for a long time, thereby improving the efficiency of determining the connection relationship between the monitoring host and the device. The preset time length may be about 100 milliseconds, and may be specifically determined according to the length of the communication bus and the transmission rate of the request frame and the response information.
S15: determining a target communication address from the remaining communication addresses and returning to execute step S13;
s16: and finishing polling all communication addresses.
After the last target communication address is processed, a target communication address may be determined from the remaining communication addresses corresponding to the communication bus, and the process returns to step S13, where a request frame is sent to the newly determined target communication address to determine whether a device exists in the target communication address.
Repeating the steps of determining the target communication address and sending the request frame to the target communication address until all the communication addresses are polled, namely all the communication addresses are used as the target communication addresses and the request frame is sent to the target communication address, so as to determine which communication addresses do not have equipment and which communication addresses have equipment and acquire the corresponding equipment types, so as to determine the connection relation between the monitoring host and the equipment, and further enable the monitoring host to collect data and send commands according to the connection relation between the monitoring host and the equipment in the subsequent monitoring process.
Because this application can realize the affirmation of the relation of connection between monitoring host computer and equipment automatically, and need not the artificial communication line of the engineer and look for, and need not the engineer after confirming and carry out artificial addition of equipment, consequently, can improve the efficiency and the accuracy of confirming of the relation of connection between monitoring host computer and equipment, and can reduce the manpower and material resources cost that the affirmation spent.
According to the technical scheme, after the communication protocol between the monitoring host and each device is defined in advance and the search command is received, the request frame containing the first function code for determining the device type can be sent to the plurality of communication addresses corresponding to the communication bus in a polling mode, if the response information sent by the corresponding communication address is received, the response information is analyzed, and the communication address and the device type are recorded, so that the connection relationship between the monitoring host and each device can be automatically determined, the connection relationship between the monitoring host and each device does not need to be determined manually by searching the device along the communication line, and the determination efficiency of the connection relationship between the monitoring host and each device is improved.
The method for determining the connection relationship between the monitoring host and the device provided by the embodiment of the application, before analyzing the response information, may further include:
and checking the received response information, and if the received response information passes the checking, executing a step of analyzing the response information.
Before analyzing the response information to obtain the device type, the received response information can be verified, if the verification is passed, the step of analyzing the response information is executed to obtain the device type, and if the verification is not passed, the step of analyzing the response information is not executed to prevent the condition that the obtained device type is inaccurate due to misjudgment and misanalysis, so that the accuracy of determining the connection relationship between the monitoring host and the device is improved.
According to the method for determining the connection relationship between the monitoring host and the device provided by the embodiment of the application, the request frame may further include a check code used by the device for checking the request frame.
In this application, the request frame sent by the monitoring host may further include a check code for checking the request frame.
After the device in the target communication address receives the request frame sent by the monitoring host, the check code can be checked firstly, if the check is passed, response information corresponding to the request frame can be sent to the monitoring host, and if the check is not passed, the response information is not sent to the monitoring host, so that the condition that the request frame is in a problem and the device still returns the response information is avoided, and the accuracy of determining the connection relationship between the monitoring host and the device is improved.
In the method for determining a connection relationship between a monitoring host and a device provided in an embodiment of the present application, when a request frame further includes a second function code corresponding to a hardware version and a software version included in the determination device, when analyzing response information, the method further includes:
and analyzing the response information to obtain the hardware version and the software version contained in the equipment, and recording the hardware version and the software version contained in the equipment.
When the request frame generated by the monitoring host further includes the second function code corresponding to the hardware version and the software version included in the determined device, the device may include the hardware version and the software version included in the device in the response information while returning the response information, and at this time, when the monitoring host analyzes the response information, the hardware version and the software version included in the device may be obtained through analysis of the response information, and the hardware version and the software version included in the device may be recorded, specifically, the hardware version and the software version may be recorded together with the communication address and the device type, so that the monitoring host monitors the device, and queries related information of the device connected to the monitoring host, and the device is maintained when the device fails according to the information.
In the method for determining a connection relationship between a monitoring host and a device provided in an embodiment of the present application, determining a target communication address from communication addresses corresponding to a communication bus may include:
the target communication addresses are determined in the order of arrangement of the communication addresses.
When the target communication address is determined from the communication addresses corresponding to the communication bus, the target communication address can be determined according to the arrangement sequence of the communication addresses, and specifically, the target communication address can be determined according to the sequence of the numerical values of the communication addresses from small to large or from large to small, so that the situation that the communication address is omitted when the connection relationship between the monitoring host and the equipment is determined through the communication addresses is avoided as much as possible, and the accuracy of determining the connection relationship is improved.
According to the method for determining the connection relation between the monitoring host and the monitoring equipment, the communication bus is an RS485 communication bus.
In the application, a communication bus used for connecting the monitoring host and the devices may be specifically an RS485 communication bus, which may connect 32 RS485 communication devices on one communication bus, each communication device has a different communication address, and the devices are in a master-slave relationship, that is, only one monitoring host on one RS485 communication bus is used as a master device, and the other communication devices are slave devices, each communication is initiated by the master device, each slave device receives a request frame sent by the master device, compares the communication address in the request frame with the communication address of itself, and if the communication addresses are consistent, the request of the monitoring host is responded, and if the communication addresses are inconsistent, the response is not performed.
According to the method for determining the connection relation between the monitoring host and the monitoring equipment, the communication protocol is the Modbus protocol.
In this application, the monitoring host and each device may communicate using a Modbus protocol, and for the protocol, in order to implement the connection relationship determination, a function code may be defined for the device search in the request frame: 0x41 (for implementing device search), and the device may return a plurality of registers, each register corresponding to a 16-bit value, the values in these registers constituting response information, where register 1 may be used to correspond to a save device type (e.g., if the value is 1, it indicates a temperature and humidity device); the register 2 can be used for correspondingly storing hardware version information of the equipment; the register 3 can be used for correspondingly storing software version information of the equipment; the registers 4 may be used to correspondingly store check codes to facilitate the monitoring host checking … … the response information so that the monitoring host, upon receiving the register returned by the device according to the Modbus protocol, may parse the corresponding register to know which communication addresses exist for the device, what the type of device is, what the hardware version and software version of the device are.
A device for determining a connection relationship between a monitoring host and a device provided in an embodiment of the present application is applied to a monitoring host, and refer to fig. 2, which shows a schematic structural diagram of the device for determining a connection relationship between a monitoring host and a device provided in an embodiment of the present application, and may include:
a pre-agreement module 21, configured to pre-agree a communication protocol with each device; the monitoring host is connected with each device by adopting a communication bus;
a sending module 22, configured to determine a target communication address from a plurality of communication addresses corresponding to the communication bus when receiving the search command, and send a request frame to the target communication address; the request frame comprises a first function code corresponding to the determined equipment type;
a recording module 23, configured to, if response information returned by the target communication address is received, parse the response information to obtain a device type, record the target communication address and the device type, determine a target communication address from the remaining communication addresses, and perform a step of sending a request frame to the target communication address until all communication addresses are polled;
and the execution module 24 is configured to, if a response message returned by the target communication address is not received, execute a step of determining a target communication address from the remaining communication addresses.
The device for determining the connection relationship between the monitoring host and the device provided by the embodiment of the application may further include:
and the verification module is used for verifying the received response information before analyzing the response information, and executing the step of analyzing the response information if the verification is passed.
According to the device for determining the connection relationship between the monitoring host and the device provided by the embodiment of the application, the request frame may further include a check code used by the device for checking the request frame.
The device for determining the connection relationship between the monitoring host and the device provided by the embodiment of the application may further include:
and the analysis module is used for analyzing the response information to obtain the hardware version and the software version contained in the equipment and recording the hardware version and the software version contained in the equipment when the request frame can also comprise a second function code corresponding to the hardware version and the software version contained in the equipment.
In an embodiment of the present application, the sending module 22 may include:
and the determining unit is used for determining the target communication addresses according to the arrangement sequence of the communication addresses.
According to the equipment for determining the connection relation between the monitoring host and the equipment, the communication bus is an RS485 communication bus.
According to the equipment for determining the connection relation between the monitoring host and the equipment, the communication protocol is the Modbus protocol.
An embodiment of the present application further provides a device for determining a connection relationship between a monitoring host and a device, refer to fig. 3, which shows a schematic structural diagram of the device for determining a connection relationship between a monitoring host and a device, provided in the embodiment of the present application, and the device may include:
a memory 31 for storing a computer program;
a processor 32 for implementing the following steps when executing the computer program stored in the memory 31;
presetting a communication protocol between each device and each other; the monitoring host is connected with each device by adopting a communication bus; when a search command is received, determining a target communication address from a plurality of communication addresses corresponding to a communication bus, and sending a request frame to the target communication address; the request frame comprises a first function code corresponding to the determined equipment type; if response information returned by the target communication address is received, analyzing the response information to obtain the equipment type, recording the target communication address and the equipment type, determining a target communication address from the rest communication addresses, and executing the step of sending a request frame to the target communication address until all the communication addresses are polled; and if the response information returned by the target communication address is not received, executing the step of determining one target communication address from the rest communication addresses.
The computer-readable storage medium provided in the embodiments of the present application stores a computer program thereon, and when executed by a processor, the computer program can implement the following steps:
presetting a communication protocol between each device and each other; the monitoring host is connected with each device by adopting a communication bus; when a search command is received, determining a target communication address from a plurality of communication addresses corresponding to a communication bus, and sending a request frame to the target communication address; the request frame comprises a first function code corresponding to the determined equipment type; if response information returned by the target communication address is received, analyzing the response information to obtain the equipment type, recording the target communication address and the equipment type, determining a target communication address from the rest communication addresses, and executing the step of sending a request frame to the target communication address until all the communication addresses are polled; and if the response information returned by the target communication address is not received, executing the step of determining one target communication address from the rest communication addresses.
For a description of a relevant part in the apparatus, the device, and the computer-readable storage medium for determining a connection relationship between a monitoring host and a device provided in the embodiment of the present application, reference may be made to a detailed description of a corresponding part in the method for determining a connection relationship between a monitoring host and a device provided in the embodiment of the present application, and details are not repeated here.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Furthermore, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include elements inherent in the list. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element. In addition, parts of the above technical solutions provided in the embodiments of the present application, which are consistent with the implementation principles of corresponding technical solutions in the prior art, are not described in detail so as to avoid redundant description.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A method for determining the connection relationship between a monitoring host and equipment is applied to the monitoring host and comprises the following steps:
presetting a communication protocol between each device and each other; the monitoring host is connected with each device by adopting a communication bus;
when a search command is received, determining a target communication address from a plurality of communication addresses corresponding to the communication bus, and sending a request frame to the target communication address; the request frame comprises a first function code corresponding to the determined equipment type;
if response information returned by the target communication address is received, analyzing the response information to obtain an equipment type, recording the target communication address and the equipment type, determining a target communication address from the rest communication addresses, and executing the step of sending a request frame to the target communication address until all the communication addresses are polled;
and if the response information returned by the target communication address is not received, executing the step of determining one target communication address from the rest communication addresses.
2. The method according to claim 1, further comprising, before parsing the response information:
and checking the received response information, and if the response information passes the checking, executing the step of analyzing the response information.
3. The method according to claim 2, wherein the request frame further includes a check code used by the device to check the request frame.
4. The method according to claim 1, wherein when the request frame further includes a second function code corresponding to a hardware version and a software version included in the determination device, the method further includes, when parsing the response information:
and analyzing the response information to obtain a hardware version and a software version contained in the equipment, and recording the hardware version and the software version contained in the equipment.
5. The method for determining the connection relationship between the monitoring host and the device according to claim 1, wherein determining the target communication address from the communication addresses corresponding to the communication bus comprises:
and determining the target communication address according to the arrangement sequence of the communication addresses.
6. The method for determining the connection relationship between the monitoring host and the equipment as claimed in any one of claims 1 to 5, wherein the communication bus is an RS485 communication bus.
7. The method as claimed in claim 6, wherein the communication protocol is Modbus protocol.
8. A connection relation confirming device between a monitoring host and equipment is characterized in that the device is applied to the monitoring host and comprises the following components:
the pre-agreement module is used for pre-agreeing communication protocols between the equipment and the equipment; the monitoring host is connected with each device by adopting a communication bus;
the device comprises a sending module, a searching module and a sending module, wherein the sending module is used for determining a target communication address from a plurality of communication addresses corresponding to the communication bus and sending a request frame to the target communication address when receiving a searching command; the request frame comprises a first function code corresponding to the determined equipment type;
a recording module, configured to, if response information returned by the target communication address is received, parse the response information to obtain a device type, record the target communication address and the device type, determine a target communication address from remaining communication addresses, and perform the step of sending a request frame to the target communication address until all communication addresses are polled;
and the execution module is used for executing the step of determining a target communication address from the rest communication addresses if the response information returned by the target communication address is not received.
9. A device for determining a connection relationship between a monitoring host and a device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the method for determining a connection relationship between a monitoring host and a device according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps of the method for determining a connection relationship between a monitoring host and a device according to any one of claims 1 to 7.
CN202010191143.0A 2020-03-18 2020-03-18 Method, device and equipment for determining connection relation between monitoring host and equipment Pending CN111367766A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010191143.0A CN111367766A (en) 2020-03-18 2020-03-18 Method, device and equipment for determining connection relation between monitoring host and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010191143.0A CN111367766A (en) 2020-03-18 2020-03-18 Method, device and equipment for determining connection relation between monitoring host and equipment

Publications (1)

Publication Number Publication Date
CN111367766A true CN111367766A (en) 2020-07-03

Family

ID=71208989

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010191143.0A Pending CN111367766A (en) 2020-03-18 2020-03-18 Method, device and equipment for determining connection relation between monitoring host and equipment

Country Status (1)

Country Link
CN (1) CN111367766A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113824626A (en) * 2021-09-24 2021-12-21 广东科瑞德电气科技有限公司 Communication management method for preventing information interaction loss
CN115543172A (en) * 2022-11-23 2022-12-30 天津华宁电子有限公司 Integrated mine-road man-machine interface display control method and system for scraper conveyor
CN117201229A (en) * 2023-11-07 2023-12-08 横川机器人(深圳)有限公司 Communication method, system and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015184866A1 (en) * 2014-10-29 2015-12-10 中兴通讯股份有限公司 Monitoring method and device, and first monitoring unit in power source system
CN110134036A (en) * 2019-04-26 2019-08-16 深圳市龙控智能技术有限公司 A kind of method, monitoring system and the storage medium of serial port data acquisition poll
CN110456725A (en) * 2019-07-04 2019-11-15 烽台科技(北京)有限公司 A kind of monitoring method of PLC device, device and intelligent terminal
CN110795292A (en) * 2019-09-27 2020-02-14 苏州浪潮智能科技有限公司 Detection method, device, equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015184866A1 (en) * 2014-10-29 2015-12-10 中兴通讯股份有限公司 Monitoring method and device, and first monitoring unit in power source system
CN110134036A (en) * 2019-04-26 2019-08-16 深圳市龙控智能技术有限公司 A kind of method, monitoring system and the storage medium of serial port data acquisition poll
CN110456725A (en) * 2019-07-04 2019-11-15 烽台科技(北京)有限公司 A kind of monitoring method of PLC device, device and intelligent terminal
CN110795292A (en) * 2019-09-27 2020-02-14 苏州浪潮智能科技有限公司 Detection method, device, equipment and storage medium

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113824626A (en) * 2021-09-24 2021-12-21 广东科瑞德电气科技有限公司 Communication management method for preventing information interaction loss
CN113824626B (en) * 2021-09-24 2023-12-22 广东科瑞德电气科技有限公司 Communication management method for preventing information interaction loss
CN115543172A (en) * 2022-11-23 2022-12-30 天津华宁电子有限公司 Integrated mine-road man-machine interface display control method and system for scraper conveyor
CN115543172B (en) * 2022-11-23 2023-03-14 天津华宁电子有限公司 Integrated mine-road man-machine interface display control method and system for scraper conveyor
CN117201229A (en) * 2023-11-07 2023-12-08 横川机器人(深圳)有限公司 Communication method, system and storage medium
CN117201229B (en) * 2023-11-07 2024-02-20 横川机器人(深圳)有限公司 Communication method, system and storage medium

Similar Documents

Publication Publication Date Title
CN108427705B (en) Electronic device, distributed system log query method and storage medium
CN111367766A (en) Method, device and equipment for determining connection relation between monitoring host and equipment
CN110489391B (en) Data processing method and related equipment
CN110069572B (en) HIVE task scheduling method, device, equipment and storage medium based on big data platform
CN109361562B (en) Automatic testing method based on associated network equipment access
CN110474896B (en) Data communication method based on Modbus protocol standard and related equipment
CN110399267B (en) PCIE (peripheral component interface express) equipment monitoring method, system and equipment of server and readable storage medium
CN111416821A (en) Internet of things equipment information acquisition method, system and device
WO2015120687A1 (en) Method and apparatus for diagnosing and solving mobile terminal fault
CN113672451B (en) BMC service detection method, device, equipment and readable storage medium
CN105183575A (en) Processor fault diagnosis method, device and system
CN111352779A (en) On-off test method of AC power supply of MOC card and related assembly
CN112529223A (en) Equipment fault repair method and device, server and storage medium
CN111338951A (en) Wireless intelligent household appliance detection method and system
CN114185571A (en) Firmware upgrading method and device of CPLD, terminal and readable storage medium
CN111124828A (en) Data processing method, device, equipment and storage medium
JPH0887423A (en) Trouble measure support system for software tool
CN113179181B (en) Data acquisition method, device and system, data processing device and electronic equipment
CN115098342A (en) System log collection method, system, terminal and storage medium
CN113849135A (en) Log access method and device and server
CN115080507A (en) Vehicle fault snapshot data storage method, system, equipment and storage medium
CN111679943A (en) Server test system
CN111324374B (en) Application program registration method and device based on application performance management system
CN112667512A (en) Data drive test method, device, equipment and computer readable storage medium
CN111752815A (en) Log capture method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination