Mutual detection method and system for port connection behaviors

By using the data center to perform mutual verification of port data between devices in the port connection detection system, the problems of port identification and connection verification in the existing technology are solved, and the reliability and rapid detection of correct connections between devices are achieved.

CN118625219APending Publication Date: 2024-09-10BEIJING XIANTONG HENGTAI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410785313.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-18
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

In port connection detection of multiple devices and multiple connection points, existing technology is difficult to achieve fast and reliable port identification and correct connection verification, making it difficult to objectively evaluate the connection status.

Method used

By detecting the connection status of each port between the first device and the second device, the port data is obtained and transmitted to the data center, and the data center performs mutual verification to generate a detection evaluation report to ensure correct connection between the devices.

Benefits of technology

It improves the reliability of correct connections between devices, enables quick perception of the connection behavior of ports between multiple devices and correct port detection, and improves the ability to objectively evaluate connections.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118625219A
    Figure CN118625219A
Patent Text Reader

Abstract

The invention discloses a mutual detection method and system for port connection behaviors, and the method comprises the steps: a first device detects the connection state of each port, obtains the data of a first port, connected with the first device, of a second device according to the connection state of the port, and transmits the data of the first port to a data center; the second device detects the connection state of each port, obtains second port data of connection between the first device and the second device according to the connection state of the port, and transmits the second port data to the data center; and the data center judges whether the second equipment is connected to a correct port of the first equipment according to the first port data and judges whether the first equipment is connected to a correct port of the second equipment according to the second port data, and if the two results are both yes, the first equipment and the second equipment are correctly connected, and a detection evaluation report is generated. According to the method, whether the devices are connected to the correct ports or not can be detected and mutually verified, and the reliability of mutual correct connection between the devices is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of port connection detection, and in particular to a mutual detection method and system for port connection behavior. Background Art

[0002] In the process of assembling models, building blocks, and cards, the identification of connections between different objects is basically based on subjective judgment. In terms of connection structure evaluation, a technical method of automatically sensing connections is needed to achieve objective evaluation of connections. Based on the drive of mathematical models: In the process of building physical models, the connections sensed by the model will drive the connections of mathematical models in the form of data, and realize the digital twin of the physical connection driving the mathematical model. The evaluation of some connections is achieved through circuits, electromagnetic coding, and optical coding, but the difficulty of implementation, the universality of implementation (arbitrary port identification), and the cost of implementation vary. In addition, in the case of perception of multiple devices and multiple connection points, how to improve the reliability of the mutual connection detection status is a problem that needs to be solved. Summary of the invention

[0003] In view of the defects in the prior art, the present invention provides a mutual detection method and system for port connection behavior, which can quickly sense the connection behavior of ports between multiple devices, and can detect and mutually verify whether the devices are connected to the correct ports, thereby improving the reliability of the correct connection between devices.

[0004] In a first aspect, the present invention provides a mutual detection method of port connection behavior, comprising:

[0005] The first device detects the connection status of each port, obtains first port data of the second device connected to the first device according to the connection status of the port, and transmits the first port data to the data center;

[0006] The second device detects the connection status of each port, obtains second port data of the connection between the first device and the second device according to the connection status of the port, and transmits the second port data to the data center;

[0007] The data center receives the first port data and the second port data, determines whether the second device is connected to the correct port of the first device based on the first port data, and determines whether the first device is connected to the correct port of the second device based on the second port data. If both results are yes, it means that the first device and the second device are correctly connected, and a detection evaluation report is generated.

[0008] In a second aspect, the present invention discloses a mutual detection system for port connection behavior, comprising: a first device, a second device, a data transmission module and a data center, wherein the first device and the second device have the same structure.

[0009] The first device is used to detect the connection status of each port, and obtain the first port data of the second device connected to the first device according to the connection status of the port, and transmit the first port data to the data center through the data transmission module;

[0010] The second device is used to detect the connection status of each port, obtain the second port data of the connection between the first device and the second device according to the connection status of the port, and transmit the second port data to the data center through the data transmission module;

[0011] The data transmission module is used for data transmission between the first device, the second device and the data center;

[0012] The data center is used to receive first port data and second port data, determine whether the second device is connected to the correct port of the first device based on the first port data, and determine whether the first device is connected to the correct port of the second device based on the second port data. If both results are yes, it means that the first device is correctly connected to the second device, and a detection evaluation report is generated.

[0013] Beneficial effects of the present invention:

[0014] The embodiments of the present invention provide a mutual detection method and system for port connection behavior, which can quickly sense the connection behavior of ports between multiple devices, and can detect and mutually verify whether the devices are connected to the correct ports, thereby improving the reliability of correct connection between devices. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following is a brief introduction to the drawings required for the specific embodiments or the description of the prior art. In all the drawings, similar elements or parts are generally identified by similar reference numerals. In the drawings, the elements or parts are not necessarily drawn according to the actual scale.

[0016] Figure 1 A flow chart of a mutual detection method of port connection behavior provided by a first embodiment of the present invention is shown;

[0017] Figure 2 A structural block diagram of a mutual detection system for port connection behaviors provided by another embodiment of the present invention is shown. DETAILED DESCRIPTION

[0018] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0019] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.

[0020] It should also be understood that the terms used in this specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the specification of the present invention and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.

[0021] It should be further understood that the term "and / or" used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0022] It should be noted that, unless otherwise specified, the technical terms or scientific terms used in this application should have the common meanings understood by those skilled in the art to which the present invention belongs.

[0023] like Figure 1 FIG. 1 is a flowchart of a method for mutual detection of port connection behaviors provided by a first embodiment of the present invention. The method comprises the following steps:

[0024] The first device detects the connection status of each port, obtains first port data of the second device connected to the first device according to the connection status of the port, and transmits the first port data to the data center;

[0025] The second device detects the connection status of each port, obtains second port data of the connection between the first device and the second device according to the connection status of the port, and transmits the second port data to the data center;

[0026] The data center receives the first port data and the second port data, determines whether the second device is connected to the correct port of the first device based on the first port data, and determines whether the first device is connected to the correct port of the second device based on the second port data. If both results are yes, it means that the first device and the second device are correctly connected, and a detection evaluation report is generated.

[0027] In this embodiment, the first device and the second device have the same structure. The first device detects the connection status of each port, and the specific method of obtaining the first port data of the second device connected to the first device according to the connection status of the port includes:

[0028] The main controller of the first device initializes the unconnected state of the port and records the initialization value of each port;

[0029] Acquire line connection data of each port in real time, and compare the data acquired by each port with the corresponding initialization value to obtain a comparison result, wherein the comparison result includes the same and different;

[0030] If the comparison result is the same, it means that the port is not connected;

[0031] If the comparison result is different, it means that the port is in a connected state, and the acquired data is analyzed with the preset data when the second device is connected to the port to obtain the first port data.

[0032] The specific method for the second device to detect the connection status of each port and obtain the second port data connecting the first device and the second device according to the connection status of the port includes:

[0033] The main controller of the second device initializes the unconnected state of the port and records the initialization value of each port;

[0034] Acquire line connection data of each port in real time, and compare the data acquired by each port with the corresponding initialization value to obtain a comparison result, wherein the comparison result includes the same and different;

[0035] If the comparison result is the same, it means that the port is not connected;

[0036] If the comparison result is different, it means that the port is in a connected state, and the acquired data is analyzed with the preset data when the first device is connected to the port to obtain the second port data.

[0037] In this embodiment, the specific method for obtaining the line connection data of each port in real time includes: the main controller obtains the line connection data of each port in real time through a single bus protocol or USART. The port is in a connected state, including being connected to an electrical connection device but not connected to a target device, and the data obtained at this time is a null value. The port is in a connected state, including being connected to an electrical connection device and connected to a target device through the electrical connection device, and the data obtained at this time is a port identification value of the target device. The electrical connection device is a socket with a touch compression contact.

[0038] When the main controller O1 has no external device connected, it can connect to any of its own ports portm through the internal line to detect its own port. The main controller is connected to a socket at a port portm. When the socket on portm is plugged in, the plug cuts off the connection between the main controller O1 and portm. At this time, the main controller O1 cannot read the ID of this portm. When portm is plugged in, the connection line of the main controller O1 to the plug is also connected. In this case, the main controller O1 cannot read its own port, nor can it read other IDs, but O1's connection point is extended to the connection line of the plug. When the other end of this plug is connected to the ID of portx of other main controller Ox, the main controller O1 will sense the new connection point. We build a graph model for this portm of the main controller O1. An edge has two vertices, namely VertexS and VertexD. The main controller O1 has n ports, and the edge of each port is called Edge. We take any port as portm, and its default edge is Edgem as an example for explanation.

[0039] During initialization: When the plug is not connected, the main controller O1 senses the ID of its own port. If there is an initialization instruction at this time, the sensed ID will be saved in -O1-Edgem:VertixS, and its ID is called IDs.

[0040] Runtime_No plug connected: At this time, the ID read by Q1-portm is the same as the initialization ID, and its value is IDs. At this time, -O1-Edgem{IDs,IDs}.

[0041] Runtime phase_Connect plug, target device not connected: At this time -O1-Edgem{IDs,null} or expressed as -O1-Edgem{IDs,0}.

[0042] Run phase_Connect plug: At this time -O1-Edgem{IDs, IDd}, IDd is expressed as the ID reading of the target port.

[0043] During the original establishment of the graph theory, the master controller will preset the IDs of the target device connected to the port and report them to the system, such as a database platform but not limited to a database. The system will establish the data structure of the device and port based on the data source. During the operation phase, the master controller will continuously update the data of the obtained port: -O1-Edgem:VertixS and -O1-Edgem:VertixD. By comparing the obtained data with the preset IDs of the target device connected to the port, it is determined whether the target device is connected to the correct port and the port data is obtained.

[0044] Take the example of the temperature reading and ID reading of DS18B20 with ESP8266 as the main controller, which can realize 7-channel. The main controller communicates with the DS18B20 temperature sensor and reads its unique 64-bit ROM ID through the single bus protocol or USART. The DS18B20 sensor has a unique 64-bit ROM ID, which can be used to distinguish DS18B20 sensors connected to different ports. The following is the basic principle of the main controller reading the ID of the DS18B20 sensor:

[0045] 1. Single bus communication: Just like reading temperature data, the main controller also communicates with the DS18B20 sensor through a single bus communication method. The data line (DQ) is used for both data transmission and power supply.

[0046] 2. Initialization: The main controller sends an initialization signal to the DS18B20 sensor, that is, sends a low-level pulse, then releases the data line and waits for the response of the DS18B20 sensor.

[0047] 3. Send the command to read ID: The main controller sends the command to read ID to the DS18B20 sensor. After receiving the command, the DS18B20 sensor prepares to send its 64-bit ROM ID.

[0048] 4. Read ID: After sending the read ID command, the main controller waits for a certain period of time and then starts to receive the 64-bit ROM ID data sent by the DS18B20 sensor. The DS18B20 sensor will send its unique ID to the main controller according to a certain protocol.

[0049] 5. Data analysis: After receiving the 64-bit ROM ID data sent by the DS18B20 sensor, the main controller performs corresponding analysis and processing to obtain the unique identification of the sensor.

[0050] By reading the unique ID of DS18B20, the main controller can identify the DS18B20 sensors connected to different ports, making it easy to distinguish and use them in the system. It can also determine whether different ports are correctly connected to the corresponding DS18B20 sensors.

[0051] In this embodiment, two wires and two plugs are used, and a socket with a cut-off function is used to realize the mutual detection and mutual verification of the connection between the first device (source device Os) and the second device (target device Od). The source device Os is connected to the source socket SocketS, and the target device Ox is connected to the target socket SocketD. The socket has a reed. When there is no plug, the connection point 1 and the connection point 2 of the socket are connected. The socket is deployed on a certain connection channel. When there is no plug inserted, the main controller is connected to the connection point 2 through the connection point 1 through the reed, and the main controller can read the identification value of the port. When the plug is inserted into the socket, connection point 1 and connection point 2 are disconnected by the plug, and the main controller cannot read the data of the port. Similarly, the plug is also inserted into the target device. At this time, the two ends of the cable are respectively inserted into the plug of the source device and the plug of the target device. There are two wires A and B in the cable. One end of wire A is connected to the plug of the source device, and the other end of wire A is connected to the plug of the target device, so that the main controller of the source device can obtain the data of the port connected to the target device. One end of wire B is connected to the plug of the target device, and the other end of wire B is connected to the plug of the source device, so that the main controller of the target device can obtain the port data connected to the source device, realizing the port detection of the source device on the connected target device, and also realizing the port detection of the target device on the connected source device. The source device and the target device send the detected port data to the data center respectively. The data center compares the port data of the two to determine whether their connection is correct, and finally obtains the detection evaluation report. The target device can be multiple devices.

[0052] In this embodiment, the source device can identify the port to which the target device is connected, and the target device can also identify the port to which the source device is connected, and send the identification result to the data center. The data center compares and analyzes the identification results of the two to determine whether the source device is correctly connected to the target device and whether the target device is correctly connected to the source device, perform mutual detection and verification, and generate a detection evaluation report.

[0053] The invention provides a mutual detection method of port connection behavior, which can quickly sense the connection behavior of ports between multiple devices, and can detect and mutually verify whether the devices are connected to the correct ports, thereby improving the reliability of the correct connection between the devices.

[0054] In the first embodiment described above, a method for mutual detection of port connection behavior is provided. Correspondingly, the present application also provides a system for mutual detection of port connection behavior. Figure 2, which is a structural block diagram of a mutual detection system for port connection behavior provided by the second embodiment of the present invention. Since the device embodiment is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. The device embodiment described below is only illustrative.

[0055] like Figure 2 As shown, a structural block diagram of a mutual detection system for port connection behavior provided by another embodiment of the present invention is shown, the system includes: a first device, a second device, a data transmission module and a data center, the structures of the first device and the second device are the same, the first device is used to detect the connection status of each port, and obtain the first port data of the second device connected to the first device according to the connection status of the port, and transmit the first port data to the data center through the data transmission module; the second device is used to detect the connection status of each port, obtain the second port data of the first device connected to the second device according to the connection status of the port, and transmit the second port data to the data center through the data transmission module; the data transmission module is used for data transmission between the first device, the second device and the data center; the data center is used to receive the first port data and the second port data, judge whether the second device is connected to the correct port of the first device according to the first port data, and judge whether the first device is connected to the correct port of the second device according to the second port data. If both results are yes, it means that the first device and the second device are correctly connected, and a detection evaluation report is generated.

[0056] The first device includes a main controller, which includes an initialization module, a comparison module and an analysis module. The initialization module is used to initialize the unconnected state of the port and record the initialization value of each port; the comparison module is used to obtain the line connection data of each port in real time, and compare the data obtained from each port with the corresponding initialization value to obtain a comparison result. If the comparison results are the same, it means that the port is in an unconnected state, and if the comparison results are different, it means that the port is in a connected state; the analysis module is used to analyze the obtained data with the preset data when the target device is connected to the port when the port is in a connected state to obtain the first port data.

[0057] Among them, the port is in a connected state, including being connected to an electrical connection device but not connected to a target device, and the data obtained at this time is a null value. The port is in a connected state, including being connected to an electrical connection device and connected to a target device through the electrical connection device, and the data obtained at this time is the port identification number of the target device.

[0058] The comparison module obtains the line connection data of each port in real time through the single bus protocol or USART mode.

[0059] The embodiment of the present invention provides a mutual detection system for port connection behavior, which can quickly sense the connection behavior of ports between multiple devices, and can detect and mutually verify whether the devices are connected to the correct ports, thereby improving the reliability of the correct connection between the devices.

[0060] In the several embodiments provided in the present application, it should be understood that the disclosed methods and systems can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, or it can be an electrical, mechanical or other form of connection.

[0061] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents. These modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present invention, and they should all be included in the scope of the claims and specification of the present invention.

Claims

1. A mutual detection method for port connection behavior, characterized in that: include: The first device detects the connection status of each port, obtains first port data of the second device connected to the first device according to the connection status of the port, and transmits the first port data to the data center; The second device detects the connection status of each port, obtains second port data of the connection between the first device and the second device according to the connection status of the port, and transmits the second port data to the data center; The data center receives the first port data and the second port data, determines whether the second device is connected to the correct port of the first device based on the first port data, and determines whether the first device is connected to the correct port of the second device based on the second port data. If both results are yes, it means that the first device and the second device are correctly connected, and a detection evaluation report is generated.

2. The mutual detection method of port connection behavior according to claim 1, characterized in that: The specific method of the first device detecting the connection status of each port and acquiring the first port data of the second device connected to the first device according to the connection status of the port includes: The main controller of the first device initializes the unconnected state of the port and records the initialization value of each port; Acquire line connection data of each port in real time, and compare the data acquired by each port with the corresponding initialization value to obtain a comparison result, wherein the comparison result includes the same and different; If the comparison result is the same, it means that the port is not connected; If the comparison result is different, it means that the port is in a connected state, and the acquired data is analyzed with the preset data when the second device is connected to the port to obtain the first port data.

3. The mutual detection method of port connection behavior as claimed in claim 2, characterized in that: The specific method in which the second device detects the connection status of each port and obtains the second port data connecting the first device and the second device according to the connection status of the port includes: The main controller of the second device initializes the unconnected state of the port and records the initialization value of each port; Acquire line connection data of each port in real time, and compare the data acquired by each port with the corresponding initialization value to obtain a comparison result, wherein the comparison result includes the same and different; If the comparison result is the same, it means that the port is not connected; If the comparison result is different, it means that the port is in a connected state, and the acquired data is analyzed with the preset data when the first device is connected to the port to obtain the second port data.

4. The mutual detection method of port connection behavior according to claim 2 or 3, characterized in that: The port being in a connected state includes being connected to an electrical connection device but not connected to a target device, and the data obtained at this time is a null value. The port being in a connected state also includes being connected to an electrical connection device and connected to a target device through the electrical connection device, and the data obtained is the port identification value of the target device.

5. The mutual detection method of port connection behavior according to claim 4, characterized in that: The specific method for obtaining the line connection data of each port in real time includes: obtaining the line connection data of each port in real time through a single bus protocol or a USART mode.

6. The mutual detection method of port connection behavior according to claim 4, characterized in that: The electrical connection device is a socket with touch compression contacts.

7. A mutual detection system for port connection behavior, characterized in that: include: A first device, a second device, a data transmission module and a data center, wherein the first device and the second device have the same structure, The first device is used to detect the connection status of each port, and obtain the first port data of the second device connected to the first device according to the connection status of the port, and transmit the first port data to the data center through the data transmission module; The second device is used to detect the connection status of each port, obtain the second port data of the connection between the first device and the second device according to the connection status of the port, and transmit the second port data to the data center through the data transmission module; The data transmission module is used for data transmission between the first device, the second device and the data center; The data center is used to receive first port data and second port data, determine whether the second device is connected to the correct port of the first device based on the first port data, and determine whether the first device is connected to the correct port of the second device based on the second port data. If both results are yes, it means that the first device is correctly connected to the second device, and a detection evaluation report is generated.

8. The mutual detection system of port connection behavior as claimed in claim 7, characterized in that: The first device includes a main controller, the main controller includes an initialization module, a comparison module and an analysis module, the initialization module is used to initialize the unconnected state of the port and record the initialization value of each port; The comparison module is used to obtain line connection data of each port in real time, and compare the data obtained by each port with the corresponding initialization value to obtain a comparison result. If the comparison results are the same, it means that the port is in an unconnected state, and if the comparison results are different, it means that the port is in a connected state; The analysis module is used for analyzing the acquired data and the preset data when the target device is connected to the port to obtain the first port data when the port is in the connected state.

9. The mutual detection system of port connection behavior as claimed in claim 8, characterized in that: The port being in a connected state includes being connected to an electrical connection device but not connected to a target device, and the data obtained at this time is a null value. The port being in a connected state includes being connected to an electrical connection device and connected to a target device through the electrical connection device, and the data obtained at this time is the port identification number of the target device.

10. The mutual detection system of port connection behavior according to claim 8, characterized in that: The comparison module obtains the line connection data of each port in real time through a single bus protocol or a USART mode.