Communication quality detection method, electronic equipment and system
By transmitting interference signals using the interference line while the twisted pair is idle and analyzing the received information, the problem of low detection efficiency in the existing technology is solved, and real-time detection and improvement of twisted pair communication quality is achieved.
Patent Information
- Application Number
- CN202410867428.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-01
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2044-07-01
AI Technical Summary
In existing technologies, twisted-pair communication quality testing requires specialized equipment, has low testing efficiency, cannot be performed in real time, and cannot be conducted during use.
By interfering with the twisted pair cable when it is idle, and then using an interference line to transmit an interference signal to interfere with the twisted pair cable, the received information is obtained for communication quality analysis. This includes generating and transmitting test signals to simulate the data transmission process, and combining environmental data to modulate the interference signal.
It enables periodic communication quality testing during twisted-pair cable usage, improving testing efficiency and allowing for rapid assessment of communication quality in idle states, thus ensuring reliable data transmission.
Smart Images

Figure CN118399993B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a communication quality detection method, electronic equipment and system. Background Art
[0002] A twisted pair cable consists of two copper wires with an insulating protective layer. The two insulated copper wires are twisted together at a certain density to form a twisted pair cable. The radio waves radiated by each wire during transmission will be offset by the radio waves emitted by the other wire, thereby reducing signal interference. Twisted pair cables can be widely used in communication lines to improve the reliability of signal transmission.
[0003] Currently, the communication quality of twisted pair cables can be tested by electromagnetic radiation or network analyzers. However, these methods require the use of special testing equipment, have low detection efficiency, and cannot perform real-time detection of communication quality during the use of twisted pair cables. Summary of the invention
[0004] The embodiments of the present application provide a communication quality detection method, electronic device, and system, which can detect the communication quality of a twisted pair cable during use, and effectively improve the detection efficiency of the communication quality of the twisted pair cable.
[0005] The technical solution of the embodiment of the present application is implemented as follows:
[0006] In a first aspect, an embodiment of the present application provides a communication quality detection method, the method comprising:
[0007] When the twisted pair is in an idle state and the time interval from the last communication quality detection reaches a preset time interval, a first interference signal is transmitted through the interference line to interfere with the communication of the twisted pair in the idle state;
[0008] Acquire first reception information of a first communication module connected to the output end of the twisted pair cable, and perform communication quality analysis and processing based on the first reception information to obtain a communication quality analysis result of the twisted pair cable; wherein the first reception information represents information received by the first communication module through the disturbed twisted pair cable.
[0009] In this embodiment, the processor in the first electronic device can perform communication quality detection on the twisted pair when the twisted pair is in an idle state and the time interval from the last communication quality detection reaches a preset time interval; when performing the communication quality detection, the interference line can be used to transmit a first interference signal to interfere with the twisted pair in the idle state, and then the relevant information sent by the interfered twisted pair to the first communication module can be used to determine the communication quality of the twisted pair. In this way, regular communication quality detection can be implemented during the use of the twisted pair, effectively improving the detection efficiency of the communication quality of the twisted pair.
[0010] In some embodiments of the present application, the analyzing and processing of the communication quality based on the first received information to obtain the communication quality analysis result of the twisted pair includes:
[0011] When analyzing and processing the communication quality based on the first received information, and the first analysis result is that the communication of the twisted pair in an idle state is abnormal, a test signal is sent to the first communication module through the twisted pair, and the process of transmitting the test signal through the twisted pair is interfered with through the interference line; wherein the test signal represents the data transmitted by the simulated twisted pair in a transmission state;
[0012] Acquire second reception information of the first communication module, and determine the communication quality analysis result based on the second reception information and the test signal; wherein the second reception information represents data received by the first communication module due to interference in the process of receiving the test signal through the twisted pair.
[0013] In this embodiment, when it is determined through the first received information that the communication of the twisted pair in the idle state is interfered with by the first interference signal and an abnormality occurs, it is also necessary to determine whether the twisted pair also has an abnormality after being interfered with during the data transmission process; the first electronic device can send a test signal to the first communication module through the twisted pair to simulate the data transmission process, and the test signal is the simulated data transmitted through the twisted pair, and at the same time, the process of transmitting the test signal through the twisted pair is interfered with through the interference line, so that the communication quality analysis result is determined by analyzing the second received information received by the first communication module, thereby enabling effective detection of the communication quality of the twisted pair during data transmission.
[0014] In some embodiments of the present application, the method further includes:
[0015] When the signal potential difference corresponding to the first received information is greater than the preset potential difference, and the first received information is the same as the first interference signal, the first analysis result is determined to be that there is an abnormality in the communication of the twisted pair in the idle state; otherwise, the first analysis result is determined to be that there is no abnormality in the communication of the twisted pair in the idle state.
[0016] In this embodiment, when using the first received information to determine whether there is an abnormality in the communication of the twisted pair in the idle state, it is determined based on comparing the signal potential difference corresponding to the first received information and the preset potential difference. If it is greater than the preset potential difference, and the first received information is the same as the first interference signal, it means that an interference signal has been received, and it can be determined that there is an abnormality. If it is less than or equal to the preset potential difference, and / or the first received information is different from the first interference signal, it means that no interference signal has been received, and it can be determined that there is no abnormality.
[0017] In some embodiments of the present application, determining the communication quality analysis result based on the second received information and the test signal includes:
[0018] In a case where the second received information is different from the test signal, determining that the communication quality analysis result is that the communication quality of the twisted pair does not meet the preset quality requirement;
[0019] In a case where the second received information is identical to the test signal, it is determined that the communication quality analysis result is that the communication quality of the twisted pair meets a preset quality requirement.
[0020] In this embodiment, when using the second received information and the test signal to determine the communication quality analysis result, the second received information and the test signal can be compared. If the second received information and the test signal are different, it means that the twisted pair cable was interfered with during the transmission of the test signal, so that the second received information received by the first communication module is different from the test signal. Therefore, it can be determined that the communication quality of the twisted pair cable does not meet the preset quality requirements; correspondingly, if the second received information and the test signal are the same, it means that the twisted pair cable was not interfered with during the transmission of the test signal. Therefore, it can be determined that the communication quality of the twisted pair cable meets the preset quality requirements, thereby enabling the communication quality of the twisted pair cable to be effectively detected during data transmission.
[0021] In some embodiments of the present application, the transmitting the first interference signal through the interference line includes:
[0022] Sending a first instruction to an interference generator connected to an input end of the interference line, so that the interference generator generates the first interference signal in response to the first instruction, and sends the first interference signal to an interference receiver through the interference line;
[0023] Accordingly, the process of interfering with the test signal transmitted by the twisted pair through the interference line includes:
[0024] A second instruction is sent to the interference generator so that the interference generator generates a second interference signal in response to the second instruction, and sends the second interference signal to the interference receiver through the interference line; wherein the second interference signal is used to interfere with the process of transmitting the test signal through the twisted pair line.
[0025] In this embodiment, an interference generator is deployed in the first electronic device, so that a first instruction can be sent to the interference generator, causing the interference generator to generate a first interference signal and transmit the first interference signal to an interference receiver through an interference line; a second instruction can also be sent to the interference generator, causing the interference generator to generate a second interference signal and transmit it to the interference receiver through the interference line; thereby, the generation and transmission of interference signals are achieved, effective detection of the twisted pair communication quality is achieved, and the intelligence of the first electronic device is improved.
[0026] In some embodiments of the present application, sending a test signal to the first communication module through the twisted pair includes:
[0027] A third instruction is sent to a second communication module connected to the input end of the twisted pair, so that the second communication module generates the test signal in response to the third instruction and sends the test signal to the first communication module through the twisted pair.
[0028] In this embodiment, by deploying a second communication module in the first electronic device, the second communication module can be used to generate a test signal to simulate the data transmission process of the twisted pair cable, thereby effectively detecting the communication quality of the twisted pair cable and improving the intelligence of the first electronic device.
[0029] In some embodiments of the present application, the method further includes:
[0030] Receiving environmental data sent by a sensor; wherein the environmental data is used to measure the state of the environment in which the twisted pair is currently located;
[0031] determining a first modulation parameter and a second modulation parameter according to the environmental data;
[0032] The first modulation parameter and the second modulation parameter are sent to an interference generator, so that the interference generator performs signal modulation based on the first modulation parameter to obtain the first interference signal, and performs signal modulation based on the second modulation parameter to obtain the second interference signal.
[0033] In this embodiment, the state of the current environment of the twisted pair can also be measured by receiving environmental data sent by the sensor, and the modulation parameters of the interference signal can be determined accordingly, including a first modulation parameter for modulating the first interference signal and a second modulation parameter for modulating the second interference signal. The corresponding interference signal can be determined according to the current environment to achieve autonomous modulation of the interference signal.
[0034] In some embodiments of the present application, after sending the first modulation parameter and the second modulation parameter to the interference generator so that the interference generator performs signal modulation based on the first modulation parameter to obtain the first interference signal, and performs signal modulation based on the second modulation parameter to obtain the second interference signal, the method further includes:
[0035] Acquire a first parameter and a second parameter sent by an interference receiver; wherein the first parameter represents a parameter obtained by the interference receiver after analyzing the waveform of the received first interference signal, and the second parameter represents a parameter obtained by the interference receiver after analyzing the waveform of the received second interference signal;
[0036] Whether to re-modulate the first interference signal is determined according to the first parameter, and whether to re-modulate the second interference signal is determined according to the second parameter.
[0037] In this embodiment, by analyzing the first parameter and the second parameter sent by the interference receiver, it can be determined whether the first interference signal and / or the second interference signal needs to be re-modulated, thereby achieving effective detection of the interference signal.
[0038] In some embodiments of the present application, determining whether to re-modulate the first interference signal according to the first parameter, and determining whether to re-modulate the second interference signal according to the second parameter, includes:
[0039] Acquire first difference information between the first parameter and the first modulation parameter, and second difference information between the second parameter and the second modulation parameter;
[0040] When the first difference information is greater than a first preset difference, determining to re-modulate the first interference signal;
[0041] When the second difference information is greater than a second preset difference, it is determined to re-modulate the second interference signal.
[0042] In this embodiment, by obtaining first difference information between the first parameter and the first modulation parameter, and comparing the first difference information with the first preset difference, it is determined whether the first interference signal needs to be re-modulated; and obtaining second difference information between the second parameter and the second modulation parameter, and comparing the second difference information with the second preset difference, it is determined whether the second interference signal needs to be re-modulated. The modulation process of the interference signal can be accurately controlled to improve the intelligence of the first electronic device.
[0043] In some embodiments of the present application, the method further includes:
[0044] In the case of determining to remodulate the first interference signal, adjusting the first modulation parameter to obtain a third modulation parameter, and sending the third modulation parameter to the interference generator, so that the interference generator performs modulation based on the third modulation parameter to obtain an adjusted first interference signal;
[0045] In the case of determining to remodulate the second interference signal, the second modulation parameter is adjusted to obtain a fourth modulation parameter, and the fourth modulation parameter is sent to the interference generator so that the interference generator performs modulation based on the fourth modulation parameter to obtain the adjusted second interference signal.
[0046] In this embodiment, if it is determined that the first interference signal needs to be remodulated, the third modulation parameter obtained after adjustment can be sent to the interference generator to remodulate the adjusted first interference signal; if it is determined that the second interference signal needs to be remodulated, the fourth modulation parameter obtained after adjustment can be sent to the interference generator to remodulate the adjusted second interference signal, thereby achieving accurate modulation of the interference signal, thereby improving the detection effect of twisted pair communication quality detection.
[0047] In a second aspect, an embodiment of the present application provides a first electronic device, including a processor;
[0048] The processor is used to transmit a first interference signal through an interference line when the twisted pair is in the idle state and the time interval from the last communication quality detection reaches a preset time interval, so as to interfere with the communication of the twisted pair in the idle state; and obtain first reception information of a first communication module connected to the output end of the twisted pair, and perform communication quality analysis based on the first reception information to obtain a communication quality analysis result of the twisted pair;
[0049] The first received information represents information received by the first communication module through the disturbed twisted pair.
[0050] In this embodiment, the processor in the first electronic device can perform communication quality detection on the twisted pair when the twisted pair is in an idle state and the time interval from the last communication quality detection reaches a preset time interval; when performing the communication quality detection, the interference line can be used to transmit a first interference signal to interfere with the twisted pair in the idle state, and then the relevant information sent by the interfered twisted pair to the first communication module can be used to determine the communication quality of the twisted pair. In this way, regular communication quality detection can be implemented during the use of the twisted pair, effectively improving the detection efficiency of the communication quality of the twisted pair.
[0051] In a third aspect, an embodiment of the present application provides a communication quality detection system, including a first electronic device, a twisted pair, an interference line, and a second electronic device; the twisted pair and the interference line are both connected between the first electronic device and the second electronic device; wherein the first electronic device includes a processor; the second electronic device includes a first communication module, and an output end of the twisted pair is connected to the first communication module;
[0052] The processor is used to transmit a first interference signal through the interference line when the twisted pair is in an idle state and the time interval from the last communication quality detection reaches a preset time interval, so as to interfere with the communication of the twisted pair in the idle state; and obtain first reception information of the first communication module, and perform communication quality analysis and processing based on the first reception information to obtain a communication quality analysis result of the twisted pair; wherein the first reception information represents information received by the first communication module through the interfered twisted pair.
[0053] In this embodiment, a twisted pair and an interference line are connected between the first electronic device and the second electronic device. The processor in the first electronic device can perform a communication quality test on the twisted pair when the twisted pair is in an idle state and the time interval from the last communication quality test reaches a preset time interval. When performing the communication quality test, the interference line can be used to transmit a first interference signal to interfere with the twisted pair in the idle state, and then the relevant information sent by the interfered twisted pair to the first communication module can be used to determine the communication quality of the twisted pair. In this way, regular communication quality tests can be implemented during the use of the twisted pair, effectively improving the detection efficiency of the communication quality of the twisted pair. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below.The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present application.
[0055] Figure 1Schematic diagram of the implementation process of the communication quality detection method proposed in the embodiment of the present application Figure 1 ;
[0056] Figure 2 A schematic diagram of a signal waveform of a twisted pair in an idle state proposed in an embodiment of the present application;
[0057] Figure 3 A schematic diagram of the waveform of the first interference signal proposed in an embodiment of the present application;
[0058] Figure 4 A schematic diagram of the waveform of a test signal proposed in an embodiment of the present application;
[0059] Figure 5 A schematic diagram of the waveform of the second interference signal proposed in an embodiment of the present application;
[0060] Figure 6 A schematic diagram of the relationship between the signal strength of the interference signal and the wiring spacing proposed in the embodiment of the present application;
[0061] Figure 7 A schematic diagram of the composition structure of the first electronic device proposed in the embodiment of the present application Figure 1 ;
[0062] Figure 8 A schematic diagram of the composition structure of the first electronic device proposed in the embodiment of the present application Figure 2 ;
[0063] Fig. 9 The structure diagram of the communication quality detection system proposed in the embodiment of the present application is as follows: Figure 1 ;
[0064] Fig.10 The structure diagram of the communication quality detection system proposed in the embodiment of the present application is as follows: Figure 2 ;
[0065] Fig.11 Schematic diagram of the implementation process of the communication quality detection method proposed in the embodiment of the present application Figure 2 ;
[0066] Fig.12 Schematic diagram of the implementation process of the communication quality detection method proposed in the embodiment of the present application Figure 3 . DETAILED DESCRIPTION
[0067] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. It is understood that the specific embodiments described herein are only used to explain the related applications, rather than to limit the applications. It should also be noted that, for ease of description, only the parts related to the related applications are shown in the drawings.
[0068] Twisted pair cable is the most commonly used transmission medium in an integrated wiring project. It consists of two insulated copper wires twisted together at a certain density. The radio waves radiated by each wire during transmission will be offset by the radio waves emitted by the other wire, which can effectively reduce the degree of signal interference. Twisted pair cable is widely used in communication lines and can improve the reliability of signal transmission.
[0069] Currently, the communication quality of twisted pair cables can be tested through electromagnetic radiation or network analyzers; however, these methods require the use of special testing equipment, which is usually large and takes a long time to test. The detection efficiency is low, and it is also impossible to perform real-time detection of communication quality during the use of twisted pair cables.
[0070] In order to solve the problems existing in the current communication quality detection method, the embodiment of the present application provides a communication quality detection method, electronic device and system. The processor of the first electronic device can transmit a first interference signal through an interference line when the twisted pair is in an idle state and the time interval from the last communication quality detection reaches a preset time interval, so as to interfere with the communication of the twisted pair in the idle state; obtain first reception information of a first communication module connected to the output end of the twisted pair, and analyze and process the communication quality based on the first reception information to obtain a communication quality analysis result of the twisted pair; wherein the first reception information represents the information received by the first communication module through the interfered twisted pair; thereby, the communication quality of the twisted pair during use can be detected, and the detection efficiency of the communication quality of the twisted pair can be effectively improved.
[0071] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
[0072] The description of the equipment and system in the embodiments of the present application is similar to the description of the method embodiments described below, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the equipment embodiments and system embodiments, please refer to the description of the method embodiments of the present application for understanding.
[0073] An embodiment of the present application provides a communication quality detection method, such as Figure 1 As shown, the communication quality detection method of the processor in the first electronic device may include the following steps:
[0074] Step 101: When the twisted pair is in an idle state and the time interval from the last communication quality detection reaches a preset time interval, a first interference signal is transmitted through an interference line to interfere with the communication of the twisted pair in the idle state.
[0075] In an embodiment of the present application, when the twisted pair is in an idle state and the time interval from the last communication quality detection reaches a preset time interval, the processor of the first electronic device transmits a first interference signal through the interference line to interfere with the communication of the twisted pair in the idle state.
[0076] In an embodiment of the present application, the first electronic device may be any device that communicates with other devices via a twisted pair cable, and the first electronic device includes a processor; for example, the first electronic device may be a battery management unit (BMU) in a vehicle; wherein the battery management unit may monitor, control and protect the battery pack in real time to ensure efficient, safe and reliable operation of the battery system.
[0077] In the embodiments of the present application, the battery may be composed of one or more battery cells; the battery may be a battery cell. A battery cell refers to a basic unit that can realize the mutual conversion of chemical energy and electrical energy, and can be used to make a battery module or a battery pack, so as to supply power to an electrical device. A battery cell may be a secondary battery, which refers to a battery cell that can be continuously used by activating the active material by charging after the battery cell is discharged. The battery cell may be a lithium-ion battery, a sodium-ion battery, a sodium-lithium-ion battery, a lithium metal battery, a sodium metal battery, a lithium-sulfur battery, a magnesium-ion battery, a nickel-hydrogen battery, a nickel-cadmium battery, a lead-acid battery, etc., which is not limited in the embodiments of the present application.
[0078] In the embodiment of the present application, the battery may also be a single physical module including one or more battery cells to provide higher voltage and capacity. When there are multiple battery cells, the multiple battery cells are connected in series, in parallel or in hybrid connection through a busbar component.
[0079] In an embodiment of the present application, a first electronic device is connected to a twisted pair cable and an interference line, wherein the type of the twisted pair cable is not limited in this application, for example, the twisted pair cable may be a daisy chain structured cable, a Universal Serial Bus (USB), and a communication cable using the RS-485 standard, etc.; the interference line may be used to periodically transmit an interference signal to cause crosstalk to the twisted pair cable.
[0080] In the embodiment of the present application, the idle state means that there is no ongoing data transmission operation in the current twisted pair. For example, the idle state may be the idle state between when the processor finishes sending a frame of data using the twisted pair and when it starts sending the next frame of data.
[0081] In an embodiment of the present application, the time interval from the last communication quality detection execution indicates the time interval from the current time to the last communication quality detection execution; the preset time interval is not limited in this application, for example, the preset time interval may be 30 minutes.
[0082] In an embodiment of the present application, the first interference signal represents a signal that interferes with communication of the twisted pair in an idle state.
[0083] In some embodiments of the present application, when the processor transmits a first interference signal through an interference line, it can send a first instruction to an interference generator connected to the input end of the interference line, so that the interference generator responds to the first instruction, generates a first interference signal, and sends the first interference signal to the interference receiver through the interference line.
[0084] In an embodiment of the present application, the first electronic device may include an interference generator, which is connected to the processor; the interference generator can be used to generate an interference signal; the interference generator is not limited in this application, for example, the interference generator may be a microcontroller unit (MCU) with a controllable input / output (I / O) port, a system basis chip (SBC) or a modulation chip, etc.
[0085] In an embodiment of the present application, the first instruction is an instruction for instructing the interference generator to generate a first interference signal.
[0086] In an embodiment of the present application, a first electronic device can be connected to a second electronic device via a twisted pair cable and an interference line. The second electronic device is a device different from the first electronic device. The first electronic device and the second electronic device can communicate via the twisted pair cable. For example, the second electronic device can be a battery module control unit (Cell Module Control Unit, CMC); the second electronic device can include an interference receiver. The interference receiver can be any module with an analog signal acquisition function pin. The interference receiver can be used to receive interference signals transmitted or sent by the interference line.
[0087] Step 102, obtaining first received information of a first communication module connected to the output end of the twisted pair, and performing communication quality analysis based on the first received information to obtain a communication quality analysis result of the twisted pair; wherein the first received information represents information received by the first communication module through the disturbed twisted pair.
[0088] In an embodiment of the present application, when the twisted pair is in an idle state and the time interval from the last communication quality detection reaches a preset time interval, the processor transmits a first interference signal through the interference line to interfere with the communication of the twisted pair in the idle state. The processor can then obtain first reception information of a first communication module connected to the output end of the twisted pair, and perform communication quality analysis based on the first reception information to obtain a communication quality analysis result of the twisted pair; wherein the first reception information represents information received by the first communication module through the interfered twisted pair.
[0089] In an embodiment of the present application, the second electronic device may further include a first communication module, which is connected to the output end of the twisted pair cable; the first electronic device may further include a second communication module, which is connected to the input end of the twisted pair cable; the first communication module and the second communication module are connected via a twisted pair cable; wherein the first communication module and the second communication module may be any type of communication chip, for example, a daisy chain communication chip, a controller area network bus (CAN) communication chip, etc.
[0090] In some embodiments of the present application, when the processor performs communication quality analysis based on the first received information to obtain a communication quality analysis result of the twisted pair, the processor may perform communication quality analysis based on the first received information, and when the first analysis result obtained is that there is an abnormality in the communication of the twisted pair in an idle state, send a test signal to the first communication module through the twisted pair, and interfere with the process of transmitting the test signal through the twisted pair through the interference line; wherein the test signal represents the data transmitted by the simulated twisted pair in the transmission state; and then obtain the second received information of the first communication module, and determine the communication quality analysis result based on the second received information and the test signal; wherein the second received information represents the data received by the first communication module due to interference from the second interference signal in the process of receiving the test signal through the twisted pair.
[0091] In the embodiment of the present application, the abnormality in the communication of the twisted pair in the idle state means that the twisted pair in the current environment is interfered by the interference signal when not transmitting data.
[0092] In an embodiment of the present application, communication quality detection is mainly used to determine the communication quality of the twisted pair during data transmission, that is, during use; when the twisted pair is not transmitting data, that is, the power consumption in the idle state is lower than the power consumption during data transmission. If the first analysis result is that there is no abnormality in the communication of the twisted pair in the idle state, then the communication quality of the twisted pair will not be affected by the interference of interference signals during data transmission; but if the first analysis result is that there is an abnormality in the communication of the twisted pair in the idle state, it can be verified whether the twisted pair is still interfered by interference signals in the data transmission state, thereby determining the communication quality of the twisted pair.
[0093] In some embodiments of the present application, when the processor interferes with the process of transmitting a test signal through a twisted pair cable through an interference line, the processor may send a second instruction to the interference generator, so that the interference generator responds to the second instruction, generates a second interference signal, and sends the second interference signal to the interference receiver through the interference line; wherein the second interference signal is used to interfere with the process of transmitting a test signal through the twisted pair cable.
[0094] In some embodiments of the present application, when the processor sends a test signal to the first communication module via a twisted pair, it can send a third instruction to a second communication module connected to the input end of the twisted pair, so that the second communication module responds to the third instruction, generates a test signal, and sends the test signal to the first communication module via the twisted pair.
[0095] Exemplarily, the test signal may be 1010101010, that is, the simulated data sent to the first communication module through the twisted pair is 1010101010.
[0096] In some embodiments of the present application, the signal strength of the second interference signal may be greater than the signal strength of the first interference signal.
[0097] In some embodiments of the present application, the processor may determine that the first analysis result is that there is an abnormality in the communication of the twisted pair in the idle state when the signal potential difference corresponding to the first received information is greater than a preset potential difference and the first received information is the same as the first interference signal; otherwise, the processor may determine that the first analysis result is that there is no abnormality in the communication of the twisted pair in the idle state.
[0098] In an embodiment of the present application, the first received information received through the twisted pair is a differential signal, and the signal potential difference is the voltage difference between the signals transmitted by the two wires of the twisted pair; when the twisted pair is in an idle state and the communication is normal, the signal potential difference corresponding to the first received information is less than or equal to the preset potential difference, and the signal voltage of the first received information is expressed as a dominant level. For example, the signal waveform of the twisted pair in the idle state can be as follows: Figure 2As shown in FIG. 1 , it can be seen that the signal potential difference corresponding to the signal waveform of the twisted pair in the idle state is 0. At this time, the first interference signal can be used to interfere with the twisted pair in the idle state. For example, the first interference signal can be a signal including n data bits, and the waveform of the first interference signal can be as follows: Figure 3 As shown; further, when it is detected that the signal potential difference corresponding to the first received information exceeds the preset potential difference, that is, the first received information includes a non-dominant level, and the first received information has the same waveform as the first interference signal, it can be determined that there is an abnormality at present.
[0099] In some embodiments of the present application, the value of the preset potential difference is not limited in the present application. For example, the preset potential difference is 1.3V. When it is detected that the signal potential difference corresponding to the first received information exceeds 1.3V, it is determined that a non-dominant level is detected.
[0100] In some embodiments of the present application, when the processor determines the communication quality analysis result based on the second received information and the test signal, it can, if the second received information is different from the test signal, determine that the communication quality analysis result is that the communication quality of the twisted pair does not meet the preset quality requirements; and if the second received information is the same as the test signal, determine that the communication quality analysis result is that the communication quality of the twisted pair meets the preset quality requirements.
[0101] For example, Figure 4 The figure shows a schematic diagram of the waveform of the test signal, and the test signal can be 10101010; Figure 5 Shown is a schematic diagram of the waveform of the second interference signal, which can be used to interfere with the process of twisted pair cable transmitting a test signal; if the second received information is 10010010, which is different from the test signal, it means that the twisted pair cable cannot transmit data correctly due to interference from the interference signal during the process of transmitting the test signal. At this time, it can be determined that the communication quality of the twisted pair cable does not meet the preset quality requirements.
[0102] In the embodiments of the present application, the preset quality requirement represents the requirement for reliable communication of the twisted pair; when the communication quality of the twisted pair meets the preset quality requirement, it indicates that the communication of the twisted pair is reliable, that is, the twisted pair can accurately transmit data in the current environment.
[0103] In an embodiment of the present application, when the communication quality analysis result shows that the communication quality of the twisted pair does not meet the preset quality requirements, the processor may perform an alarm process.
[0104] In some embodiments of the present application, the form of alarm processing is not limited in the present application. For example, the processor can send alarm indication information to the alarm to instruct the alarm to sound an alarm.
[0105] In an embodiment of the present application, when the communication quality analysis result shows that the communication quality of the twisted pair does not meet the preset quality requirements, it can be determined that there is a communication anomaly in the twisted pair. Data transmission based on the twisted pair in this abnormal state will result in erroneous data transmission, that is, the current communication is unreliable, and therefore an alarm is used to provide a prompt.
[0106] In some embodiments of the present application, when the communication quality analysis result shows that the communication quality of the twisted pair does not meet the preset quality requirements, the processor may further generate fault information, wherein the fault information may be used to indicate that a communication abnormality currently exists in the twisted pair.
[0107] In an embodiment of the present application, the communication quality detection method of the processor may further include the following steps:
[0108] Step 201: Receive environmental data sent by a sensor; wherein the environmental data is used to measure the state of the environment in which the twisted pair cable is currently located.
[0109] In an embodiment of the present application, the processor may also receive environmental data sent by a sensor; wherein the environmental data is used to measure the state of the environment in which the twisted pair cable is currently located.
[0110] In an embodiment of the present application, the environmental data may be data of the environment in which the first electronic device, the twisted pair, and the interference line are located; for example, if the first electronic device is a battery management unit in a vehicle, the environmental data may be relevant data for measuring the state of the environment in which the battery management unit, the twisted pair, and the interference line are currently located, for example, the environmental data may include at least one of temperature, air pressure, and humidity.
[0111] Exemplarily, the first electronic device is a battery management unit in a vehicle, and the environmental data may be the temperature and humidity of the battery and a printed circuit board assembly (PCBA).
[0112] In an embodiment of the present application, the sensor is connected to the processor, and the sensor can collect environmental data in real time, and the processor can receive the environmental data sent by the sensor; for example, the sensor can be a sensor in a vehicle that can be used to detect temperature and air pressure.
[0113] Step 202: Determine a first modulation parameter and a second modulation parameter according to environmental data.
[0114] In an embodiment of the present application, after receiving the environmental data sent by the sensor, the processor may also determine the first modulation parameter and the second modulation parameter according to the environmental data.
[0115] In an embodiment of the present application, the processor can use environmental data to determine the modulation parameters in the current environment, including a first modulation parameter and a second modulation parameter; wherein the first modulation parameter can be used to perform signal modulation to obtain a first interference signal; and the second modulation parameter can be used to perform signal modulation to obtain a second interference signal.
[0116] In an embodiment of the present application, the modulation parameters may include at least one of the parameters such as modulation mode, amplitude, frequency, phase and period; wherein, the modulation mode is not limited in this application, for example, it may include amplitude modulation (AM), frequency modulation (FM), phase modulation (PM) and orthogonal amplitude modulation (QAM), etc., which can be selected according to the load conditions, transmission distance and cost in the actual application scenario.
[0117] In some embodiments of the present application, modulation parameters can also be determined based on wiring information and environmental information; wherein the wiring information includes wiring spacing information and wiring length information, the wiring spacing information represents the spacing information between the twisted pair and the interference line, and the wiring length information represents the length information of the twisted pair and the interference line.
[0118] In some embodiments of the present application, the signal strength required for the interference signal can be determined based on the wiring information, so that the modulation parameters can be determined based on the signal strength required for the interference signal. For example, parameters such as amplitude and frequency can be determined based on the signal strength.
[0119] In the embodiments of the present application, the signal strength required for the interference signal is related to the actual wiring conditions. Generally, the signal strength required for the interference signal is directly proportional to the wiring spacing and the wiring length. For example, the relationship between the signal strength and the wiring spacing can be expressed as E=A×n×d, where E represents the signal strength, A is a constant, n is a propagation factor, and d is the wiring spacing. The propagation factor can be determined according to the state of the transmission environment. In other words, the larger the wiring spacing, the higher the signal strength of the interference signal required, such as Figure 6 As shown, the required signal strength E of the interference signal is proportional to the wiring spacing d.
[0120] Exemplarily, the processor can determine the signal strength required for the interference signal based on the wiring information and environmental information, and determine that the modulation method is amplitude modulation, and the amplitude is proportional to the signal strength, which can be expressed as A=k×E, where k is the proportional coefficient, which can be obtained through experiments; E represents the signal strength; thus, the amplitude in the modulation parameters can be determined based on the signal strength.
[0121] In some embodiments of the present application, since the second interference signal is used to interfere with the twisted pair in the analog data transmission state, and the first interference signal is used to interfere with the twisted pair when no data is transmitted, the signal strength of the second interference signal is greater than the signal strength of the first interference signal.
[0122] Step 203: Send the first modulation parameter and the second modulation parameter to the interference generator, so that the interference generator performs signal modulation based on the first modulation parameter to obtain a first interference signal, and performs signal modulation based on the second modulation parameter to obtain a second interference signal.
[0123] In an embodiment of the present application, after determining the first modulation parameter and the second modulation parameter based on the environmental data, the processor may also send the first modulation parameter and the second modulation parameter to the interference generator, so that the interference generator performs signal modulation based on the first modulation parameter to obtain a first interference signal, and performs signal modulation based on the second modulation parameter to obtain a second interference signal.
[0124] In an embodiment of the present application, after the processor sends the first modulation parameter and the second modulation parameter to the interference generator so that the interference generator performs signal modulation based on the first modulation parameter to obtain the first interference signal, and performs signal modulation based on the second modulation parameter to obtain the second interference signal, that is, after step 203, the processor may further include the following steps:
[0125] Step 204, obtaining a first parameter and a second parameter sent by the interference receiver; wherein the first parameter represents a parameter obtained after the interference receiver analyzes the waveform of the received first interference signal, and the second parameter represents a parameter obtained after the interference receiver analyzes the waveform of the received second interference signal.
[0126] In an embodiment of the present application, after the processor sends the first modulation parameter and the second modulation parameter to the interference generator so that the interference generator performs signal modulation based on the first modulation parameter to obtain the first interference signal, and performs signal modulation based on the second modulation parameter to obtain the second interference signal, the processor can also obtain the first parameter and the second parameter sent by the interference receiver; wherein the first parameter represents the parameter obtained by the interference receiver after analyzing the waveform of the received first interference signal, and the second parameter represents the parameter obtained by the interference receiver after analyzing the waveform of the received second interference signal.
[0127] Exemplarily, the first parameter may include parameters such as amplitude, frequency, phase, etc. obtained by analyzing the waveform of the first interference signal, and the second parameter may include parameters such as amplitude, frequency, phase, etc. obtained by analyzing the waveform of the second interference signal.
[0128] Step 205: Determine whether to re-modulate the first interference signal according to the first parameter, and determine whether to re-modulate the second interference signal according to the second parameter.
[0129] In an embodiment of the present application, after acquiring the first parameter and the second parameter sent by the interference receiver, the processor can determine whether to remodulate the first interference signal according to the first parameter, and determine whether to remodulate the second interference signal according to the second parameter.
[0130] In some embodiments of the present application, when the processor determines whether to remodulate the first interference signal based on the first parameter and determines whether to remodulate the second interference signal based on the second parameter, the processor can obtain first difference information between the first parameter and the first modulation parameter, and second difference information between the second parameter and the second modulation parameter; and then, when the first difference information is greater than the first preset difference, determine to remodulate the first interference signal; and when the second difference information is greater than the second preset difference, determine to remodulate the second interference signal.
[0131] In an embodiment of the present application, when obtaining the first difference information between the first parameter and the first modulation parameter, the difference between each parameter in the first parameter and the corresponding parameter in the first modulation parameter can be determined respectively; when obtaining the second difference information between the second parameter and the second modulation parameter, the difference between each parameter in the second parameter and the corresponding parameter in the second modulation parameter can be determined respectively.
[0132] Exemplarily, the first difference may include an amplitude difference, where the amplitude in the first parameter is A and the amplitude in the first modulation parameter is B, then the amplitude difference may be A-B; the first difference may also include a frequency difference, where the frequency in the first parameter is C and the frequency in the first modulation parameter is D, then the frequency difference may be C-D.
[0133] In an embodiment of the present application, the first preset difference value may include a value used to measure the degree of difference between the first parameter and each parameter in the first modulation parameter; the second preset difference value may include a value used to measure the degree of difference between the second parameter and each parameter in the second modulation parameter.
[0134] Exemplarily, the first preset difference may include a preset difference a1 and a preset difference b1, wherein the preset difference a1 is used to measure the difference between the amplitude of the first parameter and the first modulation parameter, and the preset difference b1 is used to measure the difference between the frequency of the first parameter and the first modulation parameter.
[0135] In some embodiments of the present application, when the difference between the first parameter and any one of the first modulation parameters is greater than the corresponding first preset difference, it can be determined that the first interference signal is remodulated; when the difference between the second parameter and any one of the second modulation parameters is greater than the corresponding second preset difference, it can be determined that the second interference signal is remodulated.
[0136] Exemplarily, the difference between the amplitude in the first parameter and the first modulation parameter is A﹣B. If A﹣B﹥a1, that is, the difference in amplitude is greater than the preset difference corresponding to the amplitude in the first preset difference, it can be determined that the first interference signal is remodulated.
[0137] In some embodiments of the present application, the processor may also adjust the first modulation parameter to obtain a third modulation parameter when determining to remodulate the first interference signal, and send the third modulation parameter to the interference generator so that the interference generator performs modulation based on the third modulation parameter to obtain the adjusted first interference signal.
[0138] In some embodiments of the present application, the processor may also adjust the second modulation parameter to obtain a fourth modulation parameter when determining to remodulate the second interference signal, and send the fourth modulation parameter to the interference generator so that the interference generator performs modulation based on the fourth modulation parameter to obtain an adjusted second interference signal.
[0139] In an embodiment of the present application, under certain circumstances, the interference signal may also be interfered with, so that the interference signal received by the interference receiver is inconsistent with the interference signal required by the modulation parameters; for example, in some strong electromagnetic interference environments, the interference signal and the modulation parameters may not match; and when remodulating the interference signal, a modulation signal that has good anti-interference performance in a strong electromagnetic interference environment may be selected to adjust the first modulation parameter or the second modulation parameter.
[0140] The embodiment of the present application provides a signal quality detection method, in which a processor in a first electronic device can transmit a first interference signal through an interference line when the twisted pair is in an idle state and the time interval from the last communication quality detection reaches a preset time interval, so as to interfere with the communication of the twisted pair in the idle state; then obtain first reception information of a first communication module connected to the output end of the twisted pair, and perform communication quality analysis and processing based on the first reception information to obtain a communication quality analysis result of the twisted pair; it can be seen that the processor in the first electronic device can perform communication quality detection on the twisted pair when the twisted pair is in an idle state and the time interval from the last communication quality detection reaches a preset time interval; when performing communication quality detection, the first interference signal can be transmitted through the interference line to interfere with the twisted pair in the idle state, and then the relevant information sent by the interfered twisted pair to the first communication module can be used to determine the communication quality of the twisted pair, thereby achieving regular communication quality detection during the use of the twisted pair, and effectively improving the detection efficiency of the communication quality of the twisted pair.
[0141] Based on the above embodiment, in another embodiment of the present application, a first electronic device is provided, such as Figure 7 As shown, the first electronic device 1 may include a processor 11 , an interference generator 12 , and a second communication module 13 ; the interference generator 12 and the second communication module 13 are both connected to the processor 11 .
[0142] In an embodiment of the present application, the first electronic device may be any device that communicates with other devices via a twisted pair, and the first electronic device includes a processor; for example, the first electronic device may be a battery management unit in a vehicle.
[0143] Exemplarily, the first electronic device may be a battery management unit in a vehicle.
[0144] The processor 11 can be used to transmit a first interference signal through an interference line when the twisted pair is in an idle state and the time interval from the last communication quality detection reaches a preset time interval, so as to interfere with the communication of the twisted pair in the idle state; and obtain first reception information of a first communication module connected to the output end of the twisted pair, and perform communication quality analysis based on the first reception information to obtain a communication quality analysis result of the twisted pair; wherein the first reception information represents information received by the first communication module through the interfered twisted pair.
[0145] In the embodiments of the present application, the type of twisted pair cables is not limited in this application. For example, the twisted pair cables may be daisy chain cables, USB cables, and communication cables using the RS-485 standard, etc. The interference line may be used to periodically transmit interference signals to cause crosstalk to the twisted pair cables.
[0146] In the embodiment of the present application, the idle state means that there is no ongoing data transmission operation in the current twisted pair. For example, the idle state may be the idle state between when the processor finishes sending a frame of data using the twisted pair and when it starts sending the next frame of data.
[0147] In the embodiment of the present application, the time interval for performing communication quality detection means the time interval from the current time to the last time the communication quality detection was performed.
[0148] In some embodiments of the present application, the processor 11 may be a central processing unit (CPU).
[0149] In an embodiment of the present application, the interference generator 12 is connected to the processor 11; the interference generator 12 can be used to generate an interference signal; the interference generator is not limited in this application, for example, the interference generator 12 can be an MCU, SBC or modulation chip with a controllable I / O port.
[0150] In an embodiment of the present application, the second communication module 13 is connected to the input end of the twisted pair cable; the first communication module and the second communication module are connected through a twisted pair cable; wherein the first communication module and the second communication module can be any type of communication chip, for example, a daisy chain communication chip, a CAN communication chip, etc.
[0151] In an embodiment of the present application, the second electronic device may include a first communication module and an interference receiver; the first communication module is connected to the output end of the twisted pair.
[0152] In an embodiment of the present application, the interference receiver may be any chip having an analog signal acquisition function pin, and the interference receiver may be used to receive interference signals transmitted or sent by an interference line.
[0153] In an embodiment of the present application, the first electronic device can be connected to the second electronic device via a twisted pair and an interference line. The second electronic device is a device different from the first electronic device. The first electronic device and the second electronic device can communicate via the twisted pair.
[0154] In some embodiments of the present application, the processor 11 can also be used to perform communication quality analysis based on the first received information, and when the first analysis result obtained is that there is an abnormality in the communication of the twisted pair in an idle state, send a test signal to the first communication module through the twisted pair, and interfere with the process of transmitting the test signal through the twisted pair through the interference line; and obtain second received information of the first communication module, and determine the communication quality analysis result based on the second received information and the test signal.
[0155] The test signal represents data transmitted by the simulated twisted pair in a transmission state; the second reception information represents data received by the first communication module when it is interfered by the second interference signal during the process of receiving the test signal through the twisted pair.
[0156] In some embodiments of the present application, the processor 11 can also be used to determine that the first analysis result is that there is an abnormality in the communication of the twisted pair in the idle state when the signal potential difference corresponding to the first received information is greater than a preset potential difference and the first received information is the same as the first interference signal; otherwise, determine that the first analysis result is that there is no abnormality in the communication of the twisted pair in the idle state.
[0157] In some embodiments of the present application, the processor 11 can also be used to determine, when the second received information is different from the test signal, that the communication quality analysis result is that the communication quality of the twisted pair does not meet the preset quality requirements; and when the second received information is the same as the test signal, determine that the communication quality analysis result is that the communication quality of the twisted pair meets the preset quality requirements.
[0158] In some embodiments of the present application, the processor 11 may also be configured to perform alarm processing when the communication quality analysis result indicates that the communication quality of the twisted pair does not meet preset quality requirements.
[0159] The interference generator 12 can be used to generate a first interference signal in response to a first instruction of the processor, and send the first interference signal to an interference receiver through an interference line; and to generate a second interference signal in response to a second instruction of the processor and send the second interference signal to the interference receiver through an interference line; wherein the second interference signal is used to interfere with the process of transmitting a test signal in a twisted pair cable.
[0160] The second communication module 13 may be configured to generate a test signal in response to a third instruction of the processor, and send the test signal to the first communication module via the twisted pair.
[0161] In some embodiments of the present application, the processor 11 can also be used to receive environmental data sent by a sensor; wherein the environmental data is used to measure the state of the environment in which the twisted pair is currently located; determine a first modulation parameter and a second modulation parameter based on the environmental data; send the first modulation parameter and the second modulation parameter to the interference generator, so that the interference generator performs signal modulation based on the first modulation parameter to obtain a first interference signal, and performs signal modulation based on the second modulation parameter to obtain a second interference signal.
[0162] In some embodiments of the present application, the processor 11 can also be used to obtain the first parameter and the second parameter sent by the interference receiver after sending the first modulation parameter and the second modulation parameter to the interference generator so that the interference generator performs signal modulation based on the first modulation parameter to obtain the first interference signal, and performs signal modulation based on the second modulation parameter to obtain the second interference signal; wherein the first parameter represents the parameter obtained by the interference receiver after analyzing the waveform of the received first interference signal, and the second parameter represents the parameter obtained by the interference receiver after analyzing the waveform of the received second interference signal; and determine whether to re-modulate the first interference signal according to the first parameter, and determine whether to re-modulate the second interference signal according to the second parameter.
[0163] In some embodiments of the present application, the processor 11 can also be used to obtain first difference information between the first parameter and the first modulation parameter, and second difference information between the second parameter and the second modulation parameter; when the first difference information is greater than the first preset difference, determine to remodulate the first interference signal; when the second difference information is greater than the second preset difference, determine to remodulate the second interference signal.
[0164] In some embodiments of the present application, the processor 11 can also be used to adjust the first modulation parameter to obtain a third modulation parameter when determining to remodulate the first interference signal, and send the third modulation parameter to the interference generator, so that the interference generator modulates based on the third modulation parameter to obtain the adjusted first interference signal; and adjust the second modulation parameter to obtain a fourth modulation parameter when determining to remodulate the second interference signal, and send the fourth modulation parameter to the interference generator, so that the interference generator modulates based on the fourth modulation parameter to obtain the adjusted second interference signal.
[0165] In the embodiments of the present application, Figure 8 A schematic diagram of the composition structure of the first electronic device proposed in the embodiment of the present application Figure 2 ,like Figure 8 As shown, the first electronic device 1 proposed in the embodiment of the present application may also include a memory 14 storing executable instructions of the processor 11; further, the first electronic device 1 may also include a communication interface 15, and a bus 16 for connecting the processor 11, the memory 14 and the communication interface 15.
[0166] It is understandable that for different devices, the electronic device used to implement the above-mentioned processor function can also be other, and the embodiments of the present application do not specifically limit it. The first electronic device 1 can also include a memory 14, which can be connected to the processor 11, wherein the memory 14 is used to store executable program code, the program code includes computer operation instructions, and the memory 14 may include a high-speed RAM memory, and may also include a non-volatile memory, for example, at least two disk memories.
[0167] In the embodiment of the present application, the bus 16 is used to connect the communication interface 15, the processor 11 and the memory 14, and the mutual communication between these devices.
[0168] In the embodiment of the present application, the memory 14 is used to store instructions and data.
[0169] In practical applications, the memory 14 may be a volatile memory, such as a random access memory (RAM); or a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD); or a combination of the above types of memory, and provide instructions and data to the processor 11.
[0170] In addition, each functional module in this embodiment can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above integrated unit can be implemented in the form of hardware or software functional modules.
[0171] If the integrated unit is implemented in the form of a software function module and is not sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this embodiment is essentially or the part that contributes to the prior art or the whole or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) or a processor to perform all or part of the steps of the method of this embodiment. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc., various media that can store program codes.
[0172] The embodiment of the present application provides a first electronic device, the first electronic device includes a processor; the processor is used to transmit a first interference signal through an interference line when the twisted pair is in an idle state and the time interval from the last communication quality detection reaches a preset time interval, so as to interfere with the communication of the twisted pair in the idle state; and obtain the first reception information of the first communication module connected to the output end of the twisted pair, and analyze and process the communication quality based on the first reception information to obtain the communication quality analysis result of the twisted pair; wherein the first reception information represents the information received by the first communication module through the disturbed twisted pair. It can be seen that the processor in the first electronic device can perform communication quality detection on the twisted pair when the twisted pair is in an idle state and the time interval from the last communication quality detection reaches a preset time interval; when performing communication quality detection, the first interference signal can be transmitted through the interference line to interfere with the twisted pair in the idle state, and then the relevant information sent by the disturbed twisted pair to the first communication module can be used to determine the communication quality of the twisted pair, thereby realizing regular communication quality detection in the process of using the twisted pair, and effectively improving the detection efficiency of the communication quality of the twisted pair.
[0173] Based on the above embodiment, in another embodiment of the present application, a communication quality detection system is provided, such as Fig. 9As shown, the communication quality detection system 0 may include a first electronic device 1, a twisted pair 2, an interference line 3 and a second electronic device 4; wherein the twisted pair 2 and the interference line 3 are both connected between the first electronic device 1 and the second electronic device 4.
[0174] In an embodiment of the present application, the first electronic device 1 may include a processor 11 , an interference generator 12 , and a second communication module 13 .
[0175] In an embodiment of the present application, the second electronic device 4 may include a first communication module 41 and an interference receiver 42 .
[0176] Exemplarily, the first electronic device may be a battery management unit in a vehicle, and the second electronic device may be a battery module control unit.
[0177] In an embodiment of the present application, a connector can be used to realize the twisted pair connection between the first communication module and the second communication module. After the twisted pair connection is completed using the connector, the remaining pins (PINs) in the connector can be used to complete the connection of the interference line, that is, the remaining pins in the connector can be used to complete the connection of the interference line between the interference generator and the interference receiver.
[0178] The processor 11 can be used to transmit a first interference signal through an interference line when the twisted pair is in an idle state and the time interval from the last communication quality detection reaches a preset time interval, so as to interfere with the communication of the twisted pair in the idle state; and obtain first reception information of a first communication module connected to the output end of the twisted pair, and perform communication quality analysis based on the first reception information to obtain a communication quality analysis result of the twisted pair; wherein the first reception information represents information received by the first communication module through the interfered twisted pair.
[0179] The interference generator 12 can be used to generate a first interference signal in response to a first instruction of the processor, and send the first interference signal to an interference receiver through an interference line; and to generate a second interference signal in response to a second instruction of the processor and send the second interference signal to the interference receiver through an interference line; wherein the second interference signal is used to interfere with the process of transmitting a test signal in a twisted pair cable.
[0180] The second communication module 13 is used to generate a test signal in response to the third instruction of the processor, and send the test signal to the first communication module through the twisted pair.
[0181] In some embodiments of the present application, the processor 11 can also be used to perform communication quality analysis based on the first received information, and when the first analysis result obtained is that there is an abnormality in the communication of the twisted pair in an idle state, send a test signal to the first communication module through the twisted pair, and interfere with the process of transmitting the test signal through the twisted pair through the interference line; and obtain second received information of the first communication module, and determine the communication quality analysis result based on the second received information and the test signal.
[0182] The test signal represents data transmitted by the simulated twisted pair in a transmission state; the second reception information represents data received by the first communication module when it is interfered by the second interference signal during the process of receiving the test signal through the twisted pair.
[0183] In some embodiments of the present application, the processor 11 can also be used to determine that the first analysis result is that there is an abnormality in the communication of the twisted pair in the idle state when the signal potential difference corresponding to the first received information is greater than a preset potential difference and the first received information is the same as the first interference signal; otherwise, determine that the first analysis result is that there is no abnormality in the communication of the twisted pair in the idle state.
[0184] In some embodiments of the present application, the processor 11 can also be used to determine, when the second received information is different from the test signal, that the communication quality analysis result is that the communication quality of the twisted pair does not meet the preset quality requirements; and when the second received information is the same as the test signal, determine that the communication quality analysis result is that the communication quality of the twisted pair meets the preset quality requirements.
[0185] In some embodiments of the present application, the processor 11 may also be configured to perform alarm processing when the communication quality analysis result indicates that the communication quality of the twisted pair does not meet preset quality requirements.
[0186] The interference generator 12 can be used to generate a first interference signal in response to a first instruction of the processor, and send the first interference signal to an interference receiver through an interference line; and to generate a second interference signal in response to a second instruction of the processor and send the second interference signal to the interference receiver through an interference line; wherein the second interference signal is used to interfere with the process of transmitting a test signal in a twisted pair cable.
[0187] The second communication module 13 may be configured to generate a test signal in response to a third instruction of the processor, and send the test signal to the first communication module via the twisted pair.
[0188] In some embodiments of the present application, the processor 11 can also be used to receive environmental data sent by a sensor; wherein the environmental data is used to measure the state of the environment in which the twisted pair is currently located; determine a first modulation parameter and a second modulation parameter based on the environmental data; send the first modulation parameter and the second modulation parameter to the interference generator, so that the interference generator performs signal modulation based on the first modulation parameter to obtain a first interference signal, and performs signal modulation based on the second modulation parameter to obtain a second interference signal.
[0189] In some embodiments of the present application, the processor 11 can also be used to obtain the first parameter and the second parameter sent by the interference receiver after sending the first modulation parameter and the second modulation parameter to the interference generator so that the interference generator performs signal modulation based on the first modulation parameter to obtain the first interference signal, and performs signal modulation based on the second modulation parameter to obtain the second interference signal; wherein the first parameter represents the parameter obtained by the interference receiver after analyzing the waveform of the received first interference signal, and the second parameter represents the parameter obtained by the interference receiver after analyzing the waveform of the received second interference signal; and determine whether to re-modulate the first interference signal according to the first parameter, and determine whether to re-modulate the second interference signal according to the second parameter.
[0190] The interference receiver 42 can be used to send a first parameter and a second parameter to the processor; wherein the first parameter represents a parameter obtained by the interference receiver after analyzing the waveform of the received first interference signal, and the second parameter represents a parameter obtained by the interference receiver after analyzing the waveform of the received second interference signal.
[0191] In some embodiments of the present application, the processor 11 can also be used to obtain first difference information between the first parameter and the first modulation parameter, and second difference information between the second parameter and the second modulation parameter; when the first difference information is greater than the first preset difference, determine to remodulate the first interference signal; when the second difference information is greater than the second preset difference, determine to remodulate the second interference signal.
[0192] In some embodiments of the present application, the processor 11 can also be used to adjust the first modulation parameter to obtain a third modulation parameter when determining to remodulate the first interference signal, and send the third modulation parameter to the interference generator, so that the interference generator modulates based on the third modulation parameter to obtain the adjusted first interference signal; and adjust the second modulation parameter to obtain a fourth modulation parameter when determining to remodulate the second interference signal, and send the fourth modulation parameter to the interference generator, so that the interference generator modulates based on the fourth modulation parameter to obtain the adjusted second interference signal.
[0193] An embodiment of the present application provides a communication quality detection system, including a first electronic device, a twisted pair, an interference line and a second electronic device; the twisted pair and the interference line are both connected between the first electronic device and the second electronic device; wherein the first electronic device includes a processor; the second electronic device includes a first communication module, and the output end of the twisted pair is connected to the first communication module; the processor is used to transmit a first interference signal through the interference line when the twisted pair is in an idle state and the time interval from the last communication quality detection reaches a preset time interval, so as to interfere with the communication of the twisted pair in the idle state; and obtain first reception information of the first communication module, and analyze and process the communication quality based on the first reception information to obtain a communication quality analysis result of the twisted pair; wherein the first reception information represents information received by the first communication module through the interfered twisted pair. It can be seen that a twisted pair and an interference line are connected between the first electronic device and the second electronic device. The processor in the first electronic device can perform communication quality detection on the twisted pair when the twisted pair is in an idle state and the time interval from the last communication quality detection reaches a preset time interval; when performing the communication quality detection, the interference line can be used to transmit a first interference signal to interfere with the twisted pair in the idle state, and then the relevant information sent by the interfered twisted pair to the first communication module can be used to determine the communication quality of the twisted pair. In this way, regular communication quality detection can be achieved during the use of the twisted pair, effectively improving the detection efficiency of the communication quality of the twisted pair.
[0194] Based on the above embodiment, in another embodiment of the present application, illustratively, as Fig.10 As shown, the communication quality detection system may include a processor 11 , an interference generator 12 , a second communication module 13 , a twisted pair 2 , an interference line 3 , a first communication module 41 and an interference receiver 42 .
[0195] The processor 11, the interference generator 12 and the second communication module 13 are devices in the first electronic device, and the first communication module 41 and the interference receiver 42 are devices in the second electronic device.
[0196] In an embodiment of the present application, an interference line is added to the twisted pair cable for periodic interference, thereby detecting the communication signal quality of the twisted pair cable; it is possible to monitor the communication quality of the twisted pair cable throughout its life cycle in different environments, such as strong electromagnetic interference sources, salt spray, high and low temperatures, high humidity, vibration, etc.
[0197] In an embodiment of the present application, the interference line can be used to send an interference source to cause crosstalk to the twisted pair cable. At this time, the twisted pair cable is in an idle state, and the interference line periodically transmits an interference signal. If a fault code from the crosstalk is detected at the receiving end of the twisted pair cable, it means that the transmission quality of the twisted pair cable is poor in the current environment, and it is necessary to verify the data transmission process by simulating the twisted pair cable again to determine the communication quality of the twisted pair cable in the data transmission state.
[0198] In the embodiments of the present application, the processor may be a central processing unit; the central processing unit, the interference generator, the interference receiver, and the communication module may utilize existing structures, such as MCU, SBC, etc., or additional corresponding modules may be added; the interference generator includes but is not limited to a device with a controllable I / O port, such as MCU, SBC, and some dedicated modulation chips, etc.; the interference receiver includes but is not limited to a chip with an analog signal acquisition function pin, and the communication module includes but is not limited to a daisy chain communication chip, a CAN communication chip, etc.
[0199] In an embodiment of the present application, if the twisted pair end is interfered by a first interference signal, the interference generator can control the sending of a second interference signal. If the twisted pair is also interfered by the second interference signal during the simulation of data transmission, it is judged that the communication quality of the twisted pair is poor and the communication is unreliable, and alarm processing can be performed.
[0200] For example, Fig.11 As shown, the communication quality detection method executed by the processor in the first electronic device may include the following steps:
[0201] Step 301: Determine whether the twisted pair is idle.
[0202] Step 302: Generate a first interference signal, and transmit the first interference signal through an interference line.
[0203] Step 303: Determine whether the first received information includes a non-dominant level.
[0204] In this embodiment, the twisted pair is in an idle state, and the signal receiving end of the twisted pair should normally be at a dominant level. If the receiving end receives a non-dominant level that is consistent with the first interference signal, it is determined to be an abnormal waveform.
[0205] Step 304: Generate a second interference signal and a test signal, and transmit the second interference signal through the interference line, and transmit the test signal through the twisted pair line.
[0206] Step 305: Determine whether the second received information is the same as the test signal.
[0207] In this embodiment, when the twisted pair cable is in a simulated data transmission state, the second reception information normally received by the signal receiving end of the twisted pair cable should be the same as the test signal. If they are different, it can be determined that the twisted pair cable communication is abnormal, that is, the communication quality of the twisted pair cable does not meet the preset quality requirements.
[0208] Step 306: Fault reporting.
[0209] Step 307: End the detection.
[0210] For example, Fig.12 As shown, the communication quality detection method executed by the processor in the first electronic device may further include the following steps:
[0211] Step 401: Acquire environmental data sent by a sensor.
[0212] Step 402: Determine modulation parameters according to environmental data.
[0213] Step 403: Send the modulation parameters to the interference generator, so that the interference generator modulates the interference signal according to the modulation parameters.
[0214] Step 404: Receive parameters sent by the interference receiver.
[0215] Step 405: Determine whether the interference signal received by the interference receiver matches the modulation parameter based on the parameter.
[0216] Step 406: Complete the modulation of the interference signal.
[0217] In this embodiment, the amplitude and period of the interference signal are adjustable; the strength, frequency, amplitude, etc. of the interference signal can be automatically adjusted according to different environments, such as different batteries, temperature and humidity of PCBA.
[0218] In this embodiment, the sensor can transmit data back to the processor, and the processor can evaluate the current working environment and output the modulation parameters of the required modulation signal. For example, if the processor determines that the current environment is in a poor state, the interference signal strength can be increased. The means of increasing the interference signal strength include but are not limited to increasing the amplitude and increasing the frequency.
[0219] In this embodiment, the signal strength required for the interference signal is related to the actual wiring conditions. Usually, the signal strength required for the interference signal is directly proportional to the wiring spacing and the wiring length. For example, the relationship between the signal strength and the wiring spacing can be expressed as E=A×n×d, where E represents the signal strength, A is a constant, n is the propagation factor, and d is the wiring spacing. The propagation factor can be determined based on the state of the transmission environment. In other words, the larger the wiring spacing, the higher the required signal strength of the interference signal. The modulation parameters, such as amplitude, frequency and other parameters, can be determined based on the determined signal strength required for the interference signal.
[0220] In this embodiment, the interference generator, such as the software design of the MCU, can be combined to automatically complete the modulation of the interference signal, and the modulation mode may include FM, AM, PM, etc.; taking AM as an example, the amplitude parameter is proportional to the waveform strength, that is, A=k×E, where k is the proportional coefficient, which can be obtained through experiments, and E represents the signal strength; the interference generator can perform waveform modulation by itself according to the modulation parameters output by the processor. The interference receiver can analyze the received interference signal and feed back the obtained interference signal parameters to the processor, which determines whether the waveform of the interference signal received by the interference receiver is consistent with the transmission waveform required by the modulation parameters. If not, the modulation parameters of the interference signal are adjusted to retransmit the interference signal.
[0221] Exemplarily, during the operation of the vehicle, the processor receives environmental data from the sensor, such as temperature and air pressure, so that the current environment can be judged based on the temperature and air pressure; if the temperature and air pressure are judged to exceed the set threshold, it can be determined that the current environment is poor, and the strength of the interference signal under the AM modulation mode is determined according to the environmental state, and then the amplitude, frequency, and phase of the interference signal are determined according to the determined signal strength of the interference signal. When the interference signal is transmitted, the interference receiver can analyze the amplitude, frequency, and phase of the received interference signal, and send this information to the processor, so that the processor determines whether these parameters are consistent with the modulation parameters, and if not, re-modulate and transmit.
[0222] In summary, the present application can realize self-inspection of twisted pair cable communication quality, and can perform real-time communication quality detection during the entire life cycle of the twisted pair cable. The first electronic device for realizing communication quality detection has a small size, a simple circuit design, and is convenient to use, thereby realizing automatic detection of twisted pair cable communication quality and effectively improving the detection efficiency of twisted pair cable communication quality.
[0223] The embodiment of the present application provides a communication quality detection method, in which a processor in a first electronic device can transmit a first interference signal through an interference line when the twisted pair is in an idle state and the time interval from the last communication quality detection reaches a preset time interval, so as to interfere with the communication of the twisted pair in the idle state; then obtain first reception information of a first communication module connected to the output end of the twisted pair, and perform communication quality analysis and processing based on the first reception information to obtain a communication quality analysis result of the twisted pair; it can be seen that the processor in the first electronic device can perform communication quality detection on the twisted pair when the twisted pair is in an idle state and the time interval from the last communication quality detection reaches a preset time interval; when performing communication quality detection, the first interference signal can be transmitted through the interference line to interfere with the twisted pair in the idle state, and then the relevant information sent by the interfered twisted pair to the first communication module can be used to determine the communication quality of the twisted pair, thereby achieving regular communication quality detection during the use of the twisted pair, and effectively improving the detection efficiency of the communication quality of the twisted pair.
[0224] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may take the form of hardware embodiments, software embodiments, or embodiments combining software and hardware. Moreover, the present application may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) containing computer-usable program codes.
[0225] The present application is described with reference to the implementation flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the process in the flowchart. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0226] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which is implemented in the implementation flow diagram. Figure 1A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0227] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operation steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for executing the steps in the flowchart. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0228] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application.
Claims
1. A communication quality detection method, It is characterized in that The method comprises: When the twisted pair is in an idle state and the time interval from the last communication quality detection reaches a preset time interval, a first interference signal is transmitted through the interference line to interfere with the communication of the twisted pair in the idle state; Acquire first receiving information of a first communication module connected to the output end of the twisted pair, and analyze and process the communication quality based on the first receiving information, and when the first analysis result is that there is an abnormality in the communication of the twisted pair in an idle state, send a test signal to the first communication module through the twisted pair, and interfere with the process of transmitting the test signal through the twisted pair through the interference line; wherein the test signal represents the data transmitted by the simulated twisted pair in a transmission state; wherein the first receiving information represents the information received by the first communication module through the disturbed twisted pair; Acquire second reception information of the first communication module, and determine a communication quality analysis result based on the second reception information and the test signal; wherein the second reception information represents data received by the first communication module due to interference in the process of receiving the test signal through the twisted pair.
2. The communication quality detection method according to claim 1, It is characterized in that The method further comprises: When the signal potential difference corresponding to the first received information is greater than the preset potential difference, and the first received information is the same as the first interference signal, the first analysis result is determined to be that there is an abnormality in the communication of the twisted pair in the idle state; otherwise, the first analysis result is determined to be that there is no abnormality in the communication of the twisted pair in the idle state.
3. The communication quality detection method according to claim 1, It is characterized in that The determining of the communication quality analysis result based on the second received information and the test signal comprises: In a case where the second received information is different from the test signal, determining that the communication quality analysis result is that the communication quality of the twisted pair does not meet the preset quality requirement; In a case where the second received information is identical to the test signal, it is determined that the communication quality analysis result is that the communication quality of the twisted pair meets the preset quality requirement.
4. The communication quality detection method according to claim 3, It is characterized in that The method further comprises: When the communication quality analysis result shows that the communication quality of the twisted pair does not meet the preset quality requirement, an alarm process is performed.
5. The communication quality detection method according to claim 1, It is characterized in that The transmitting the first interference signal through the interference line includes: Sending a first instruction to an interference generator connected to an input end of the interference line, so that the interference generator generates the first interference signal in response to the first instruction, and sends the first interference signal to an interference receiver through the interference line; Accordingly, the process of interfering with the test signal transmitted by the twisted pair through the interference line includes: A second instruction is sent to the interference generator so that the interference generator generates a second interference signal in response to the second instruction, and sends the second interference signal to the interference receiver through the interference line; wherein the second interference signal is used to interfere with the process of transmitting the test signal through the twisted pair line.
6. The communication quality detection method according to claim 1, It is characterized in that The sending a test signal to the first communication module through the twisted pair includes: A third instruction is sent to a second communication module connected to the input end of the twisted pair, so that the second communication module generates the test signal in response to the third instruction and sends the test signal to the first communication module through the twisted pair.
7. The communication quality detection method according to any one of claims 1 to 6, It is characterized in that The method further comprises: Receiving environmental data sent by a sensor; wherein the environmental data is used to measure the state of the environment in which the twisted pair is currently located; determining a first modulation parameter and a second modulation parameter according to the environmental data; The first modulation parameter and the second modulation parameter are sent to an interference generator, so that the interference generator performs signal modulation based on the first modulation parameter to obtain the first interference signal, and performs signal modulation based on the second modulation parameter to obtain a second interference signal.
8. The communication quality detection method according to claim 7, It is characterized in that After sending the first modulation parameter and the second modulation parameter to the interference generator so that the interference generator performs signal modulation based on the first modulation parameter to obtain the first interference signal, and performs signal modulation based on the second modulation parameter to obtain the second interference signal, the method further includes: Acquire a first parameter and a second parameter sent by an interference receiver; wherein the first parameter represents a parameter obtained by the interference receiver after analyzing the waveform of the received first interference signal, and the second parameter represents a parameter obtained by the interference receiver after analyzing the waveform of the received second interference signal; Whether to re-modulate the first interference signal is determined according to the first parameter, and whether to re-modulate the second interference signal is determined according to the second parameter.
9. The communication quality detection method according to claim 8, It is characterized in that The step of determining whether to re-modulate the first interference signal according to the first parameter, and determining whether to re-modulate the second interference signal according to the second parameter, comprises: Acquire first difference information between the first parameter and the first modulation parameter, and second difference information between the second parameter and the second modulation parameter; When the first difference information is greater than a first preset difference, determining to re-modulate the first interference signal; When the second difference information is greater than a second preset difference, it is determined to re-modulate the second interference signal.
10. The communication quality detection method according to claim 9, It is characterized in that The method further comprises: In the case of determining to remodulate the first interference signal, adjusting the first modulation parameter to obtain a third modulation parameter, and sending the third modulation parameter to the interference generator, so that the interference generator performs modulation based on the third modulation parameter to obtain an adjusted first interference signal; In the case of determining to remodulate the second interference signal, the second modulation parameter is adjusted to obtain a fourth modulation parameter, and the fourth modulation parameter is sent to the interference generator so that the interference generator performs modulation based on the fourth modulation parameter to obtain the adjusted second interference signal.
11. A first electronic device, It is characterized in that The first electronic device includes a processor; The processor is used to transmit a first interference signal through an interference line when the twisted pair is in an idle state and the time interval from the last communication quality detection reaches a preset time interval, so as to interfere with the communication of the twisted pair in the idle state; and obtain first reception information of a first communication module connected to the output end of the twisted pair, and analyze and process the communication quality based on the first reception information, and when the first analysis result obtained is that there is an abnormality in the communication of the twisted pair in the idle state, send a test signal to the first communication module through the twisted pair, and interfere with the process of transmitting the test signal through the twisted pair through the interference line; and obtain second reception information of the first communication module, and determine the communication quality analysis result based on the second reception information and the test signal; wherein the second reception information represents the data received by the first communication module due to interference in the process of receiving the test signal through the twisted pair; wherein the test signal represents the simulated data transmitted by the twisted pair in the transmission state; wherein the first reception information represents the information received by the first communication module through the disturbed twisted pair.
12. The first electronic device according to claim 11, It is characterized in that The first electronic device further includes an interference generator; the interference generator is connected to the processor; The interference generator is used to generate a first interference signal in response to a first instruction of the processor, and send the first interference signal to the interference receiver through the interference line; and to generate a second interference signal in response to a second instruction of the processor and send the second interference signal to the interference receiver through the interference line; wherein the second interference signal is used to interfere with the process of transmitting the test signal through the twisted pair cable.
13. The first electronic device according to claim 11 or 12, It is characterized in that The first electronic device further includes a second communication module; the second communication module is connected to the processor; The second communication module is used to generate a test signal in response to a third instruction of the processor, and send the test signal to the first communication module through the twisted pair.
14. A communication quality detection system, It is characterized in that The communication quality detection system comprises a first electronic device, a twisted pair, an interference line and a second electronic device; the twisted pair and the interference line are both connected between the first electronic device and the second electronic device; wherein the first electronic device comprises a processor; the second electronic device comprises a first communication module, and the output end of the twisted pair is connected to the first communication module; The processor is used to transmit a first interference signal through the interference line to interfere with the communication of the twisted pair in the idle state when the twisted pair is in an idle state and the time interval from the last communication quality detection reaches a preset time interval; and obtain first reception information of the first communication module, and analyze and process the communication quality based on the first reception information, and when the first analysis result obtained is that there is an abnormality in the communication of the twisted pair in the idle state, send a test signal to the first communication module through the twisted pair, and interfere with the process of transmitting the test signal through the twisted pair through the interference line; and obtain second reception information of the first communication module, and determine the communication quality analysis result based on the second reception information and the test signal; wherein the second reception information represents the data received by the first communication module due to interference in the process of receiving the test signal through the twisted pair; wherein the test signal represents the simulated data transmitted by the twisted pair in the transmission state; wherein the first reception information represents the information received by the first communication module through the disturbed twisted pair.
15. The communication quality detection system according to claim 14, It is characterized in that The first electronic device further includes an interference generator and a second communication module; the second electronic device further includes an interference receiver; The interference generator is used to generate a first interference signal in response to a first instruction of the processor, and send the first interference signal to the interference receiver through the interference line; and in response to a second instruction of the processor, generating a second interference signal and sending the second interference signal to the interference receiver through the interference line; wherein the second interference signal is used to interfere with the process of transmitting the test signal through the twisted pair line; The second communication module is used to generate a test signal in response to a third instruction of the processor, and send the test signal to the first communication module through the twisted pair.
16. The communication quality detection system according to claim 14 or 15, It is characterized in that An interference receiver is used to send a first parameter and a second parameter to the processor; wherein the first parameter represents a parameter obtained by the interference receiver after analyzing the waveform of the first interference signal received, and the second parameter represents a parameter obtained by the interference receiver after analyzing the waveform of the second interference signal received.
