Noise detection method and device, equipment and storage medium
By sending detection trigger messages to multiple devices to be detected in the PLC circuit and automatically detecting their noise signals, the low efficiency and high cost problems caused by manual participation in the prior art are solved, and efficient noise detection is achieved.
Patent Information
- Application Number
- CN202311580203.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-22
- Publication Date
- 2025-05-23
AI Technical Summary
In the prior art, detecting noise generated by external devices in PLC circuits requires manual participation, resulting in low detection efficiency and high labor cost.
Automatic detection is achieved by sending detection trigger messages to multiple target devices to be detected, instructing them to perform noise signal detection within a specific time and obtaining their noise information.
Noise information of multiple target devices to be detected without manual participation can be obtained, which improves detection efficiency and reduces labor costs.
Smart Images

Figure CN120034215A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a noise detection method, device, equipment and storage medium. Background Art
[0002] PLC (Power Line Communication) is a carrier communication method that uses power lines as a medium to transmit data. It has the advantages of simple networking, no need for rewiring, and relatively low cost. It can be applied to device communications in scenarios such as whole-house smart control systems. Some external devices of the PLC device in the PLC circuit will generate large noise during use, and these noises will reduce the communication success rate of the PLC device in the PLC circuit. Among them, the external devices include lamps, motors, etc. Therefore, it is necessary to detect the noise generated by the external devices of the PLC device in the PLC circuit during use, and process the external devices that generate large noise during use based on the noise detection results, thereby improving the communication success rate of the PLC device.
[0003] In the prior art, a detection tool supporting the PLC device can be set near the PLC device, and the detection tool receives the signal when the external device is turned on and the signal when the external device is turned off, and the signals received by the detection tool are manually analyzed to determine the noise generated when the external device is turned on. However, this method requires manual participation and has low detection efficiency. Summary of the invention
[0004] In view of this, the present application provides a noise detection method, apparatus, device and storage medium, so as to solve the problem in the prior art that human intervention is required to detect the noise generated by the external device of the PLC device in the PLC circuit.
[0005] In a first aspect, an embodiment of the present application provides a noise detection method, which is applied to a first device, and the method includes:
[0006] Sending a detection trigger message to m target devices to be detected; the detection trigger message is used to instruct the m target devices to be detected to perform noise signal detection within corresponding detection times respectively; the detection trigger message includes the detection time corresponding to the target device to be detected; m is an integer greater than 1; different target devices to be detected have different corresponding detection times;
[0007] Acquire noise information of the m target devices to be detected; wherein the noise information of the target devices to be detected is used to characterize the noise intensity detected by the target devices to be detected.
[0008] In a possible implementation manner of the first aspect, the noise information includes noise power information.
[0009] In a possible implementation manner of the first aspect, before sending the detection trigger message to the m target devices to be detected, the method further includes:
[0010] Acquire a signal quality parameter of the device to be detected; the signal quality parameter is a parameter used to characterize the communication quality between the device to be detected and the first device;
[0011] Based on the signal quality parameter of the device to be detected, a device to be detected whose signal quality parameter is less than a signal quality threshold is determined as a target device to be detected.
[0012] In a possible implementation manner of the first aspect, the device to be detected includes a device that establishes a power line carrier communication connection with the first device.
[0013] In a possible implementation manner of the first aspect, the detection trigger message includes a noise detection time period; and the detection times corresponding to the m target devices to be detected are within the noise detection time period.
[0014] In a possible implementation manner of the first aspect, acquiring the noise information of the m target devices to be detected includes: receiving noise information sent by the m target devices to be detected.
[0015] In a possible implementation of the first aspect, the detection trigger message is also used to instruct m devices to be detected to send corresponding noise information at corresponding sending times; the detection trigger message includes the sending time corresponding to the target device to be detected; and the sending times of different target devices to be detected are different.
[0016] In a possible implementation manner of the first aspect, the method further includes: feeding back noise information of the m target devices to be detected to a user.
[0017] In a possible implementation manner of the first aspect, feeding back the noise information of the m target devices to be detected to a user includes:
[0018] The noise information of the m target devices to be detected is sorted, and the sorted noise information of the m target devices to be detected is fed back to the user.
[0019] In a possible implementation manner of the first aspect, before sending the detection trigger message to the m target devices to be detected, the method further includes:
[0020] Receive noise detection instructions.
[0021] In a second aspect, an embodiment of the present application provides a noise detection method, which is applied to a device to be detected, and the method includes:
[0022] Obtaining a detection trigger message; the detection trigger message includes a detection time;
[0023] Based on the detection trigger message, the external device is turned on and the noise signal is collected within the detection time, and the external device is turned off at other times; wherein the other times are times outside the detection time;
[0024] Based on the noise signal, noise information is determined.
[0025] In a possible implementation manner of the second aspect, the detection trigger message includes a noise detection time period, the detection time is within the noise detection time period, and the other time is other time within the noise detection time period except the detection time.
[0026] In a possible implementation manner of the second aspect, the method further includes: shutting down a communication function within the noise detection time period.
[0027] In a possible implementation manner of the second aspect, the method further includes: after the noise detection time period ends, enabling a communication function, and sending the noise information to the first device.
[0028] In a possible implementation manner of the second aspect, the detection trigger message includes a sending time; and the sending the noise information to the first device includes: sending the noise information to the first device at the sending time.
[0029] In a possible implementation manner of the second aspect, the noise information includes noise power information.
[0030] In a third aspect, an embodiment of the present application provides a noise detection device, including:
[0031] A sending unit, used to send a detection trigger message to m target devices to be detected; the detection trigger message is used to instruct the m target devices to be detected to perform noise signal detection within corresponding detection times respectively; the detection trigger message includes the detection time corresponding to the target device to be detected; m is an integer greater than 1; different target devices to be detected have different corresponding detection times;
[0032] An acquisition unit is used to acquire noise information of the m target devices to be detected; wherein the noise information of the target devices to be detected is used to characterize the noise intensity detected by the target devices to be detected.
[0033] In a fourth aspect, an embodiment of the present application provides a noise detection device, including:
[0034] An acquisition unit, configured to acquire a detection trigger message; the detection trigger message includes a detection time;
[0035] A processing unit, configured to, based on the detection trigger message, turn on the external device and collect the noise signal within the detection time, and turn off the external device at other times; wherein the other times are times outside the detection time;
[0036] The processing unit is further configured to determine noise information based on the noise signal.
[0037] In a fifth aspect, an embodiment of the present application provides an electronic device, comprising a memory for storing computer program instructions and a processor for executing the program instructions, wherein, when the computer program instructions are executed by the processor, the electronic device is triggered to execute the method described in any one of the first aspect or the method described in any one of the second aspect.
[0038] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored program, wherein when the program is running, the device where the computer-readable storage medium is located is controlled to execute the method described in any one of the first aspects or to execute the method described in any one of the second aspects.
[0039] Adopting the scheme provided in the embodiment of the present application, a detection trigger message is sent to m target devices to be detected; the detection trigger message is used to instruct the m target devices to be detected to detect noise signals within the corresponding detection time respectively; the detection trigger message includes the detection time corresponding to the target device to be detected; m is an integer greater than 1; the detection time corresponding to different target devices to be detected is different; the noise information of the m target devices to be detected is obtained; wherein the noise information of the target devices to be detected is used to characterize the noise intensity detected by the target devices to be detected. In the embodiment of the present application, after sending a detection trigger message to the m target devices to be detected, the m target devices to be detected detect noise signals within the corresponding detection time, and the first device can obtain the noise information of the m target devices to be detected. In this way, obtaining the noise information of the m target devices to be detected does not require manual participation, which can improve detection efficiency and reduce labor costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0041] Figure 1 A schematic diagram of a noise detection method according to an embodiment of the present invention;
[0042] Figure 2A flowchart of a noise detection method provided in an embodiment of the present application;
[0043] Figure 3 A flowchart of another noise detection method provided in an embodiment of the present application;
[0044] Figure 4 A flowchart of another noise detection method provided in an embodiment of the present application;
[0045] Figure 5 A flowchart of another noise detection method provided in an embodiment of the present application;
[0046] Figure 6 A flowchart of another noise detection method provided in an embodiment of the present application;
[0047] Figure 7 A schematic diagram of another noise detection method provided in an embodiment of the present application;
[0048] Figure 8 A schematic diagram of another noise detection method provided in an embodiment of the present application;
[0049] Fig. 9 A schematic diagram of the structure of a noise detection device provided in an embodiment of the present application;
[0050] Fig.10 A schematic diagram of the structure of another noise detection device provided in an embodiment of the present application;
[0051] Fig.11 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0052] In order to better understand the technical solution of the present application, the embodiments of the present application are described in detail below with reference to the accompanying drawings.
[0053] It should be clear that the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0054] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present application. The singular forms "a", "said" and "the" used in the embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.
[0055] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0056] PLC technology is a carrier communication method that uses power lines as a medium to transmit data. It has the advantages of simple networking, no need for rewiring, and relatively low cost. It can be applied to device communication in scenarios such as whole-house intelligent control systems. Some external devices of PLC devices in PLC circuits will generate large noise during use, which will reduce the communication success rate of PLC devices in PLC circuits. Among them, external devices include lights, motors, etc.
[0057] For example, Figure 1 As shown, in the whole-house intelligent control system, the PLC device and the intelligent host are connected and communicated through power lines, and the external devices such as the dining room lights, balcony lights, and living room lights are connected to the corresponding PLC devices. The user can control the intelligent host by operating the control screen, and the PLC device controls the corresponding external devices after receiving instructions from the intelligent host. If the dining room light generates a lot of noise during use, the noise generated by the dining room light will affect the power lines near the dining room light when the dining room light is in use, thereby causing the communication through these power lines to fail. For example, the communication between the intelligent host and the PLC device corresponding to the balcony light fails, that is, the balcony light is out of control.
[0058] Therefore, it is necessary to detect the noise generated by the external devices of the PLC device in the PLC circuit during use, and process the external devices that generate relatively large noise during use based on the noise detection result, so as to improve the communication success rate of the PLC device.
[0059] In the prior art, a detection tool supporting the PLC device can be set near the PLC device. The detection tool receives the signal when the external device is turned on and the signal when the external device is turned off. The signals received by the detection tool are manually analyzed to determine the noise generated when the external device is turned on. However, this method requires manual participation, and there is a certain technical threshold for using the detection tool, with high labor costs and low detection efficiency.
[0060] In view of the above problems, the embodiments of the present application provide a noise detection method, device, equipment and storage medium, which send a detection trigger message to m target devices to be detected; the detection trigger message is used to instruct the m target devices to be detected to detect noise signals respectively within the corresponding detection time; the detection trigger message includes the detection time corresponding to the target device to be detected; m is an integer greater than 1; the detection times corresponding to different target devices to be detected are different; obtain the noise information of the m target devices to be detected; wherein, the noise information of the target device to be detected is used to characterize the noise intensity detected by the target device to be detected. In the embodiments of the present application, after sending the detection trigger message to the m target devices to be detected, the m target devices to be detected detect noise signals within the corresponding detection time, and the first device can obtain the noise information of the m target devices to be detected. In this way, obtaining the noise information of the m target devices to be detected does not require manual participation, which can improve the detection efficiency and reduce the labor cost. The following will be described in detail.
[0061] See Figure 2 , which is a schematic flowchart of a noise detection method provided by an embodiment of the present application. The method is applied to a first device, as Figure 2 shown, the method includes:
[0062] Step S201, send a detection trigger message to m target devices to be detected.
[0063] Among them, the detection trigger message is used to instruct the m target devices to be detected to detect noise signals respectively within the corresponding detection time; the detection trigger message includes the detection time corresponding to the target device to be detected; m is an integer greater than 1; the detection times corresponding to different target devices to be detected are different.
[0064] In the embodiments of the present application, when it is necessary to obtain the noise information of the m target devices to be detected, the first device sends a detection trigger message to the m target devices to be detected, and the detection trigger message can instruct the m target devices to be detected to detect noise signals within the corresponding detection time.
[0065] In order to avoid interference to the detection of noise signals by other target devices to be detected when the target device to be detected detects noise signals, different target devices to be detected detect noise signals within different detection times, that is, the detection times corresponding to different target devices to be detected are different.
[0066] In some embodiments, for each of the m target devices to be detected, the first device sends a detection trigger message including the detection time corresponding to the target device to be detected to the target device to be detected. That is, a detection trigger message including the detection time corresponding to the first target device to be detected is sent to the first target device to be detected, a detection trigger message including the detection time corresponding to the second target device to be detected is sent to the second target device to be detected, ..., a detection trigger message including the detection time corresponding to the mth target device to be detected is sent to the mth target device to be detected.
[0067] Alternatively, in some embodiments, the detection trigger message sent by the first device may include the detection times corresponding to the m target devices to be detected. The first device may send a detection trigger message including the detection times corresponding to the m target devices to be detected to each target device to be detected, or the first device may send a detection trigger message including the detection times corresponding to the m target devices to be detected to some of the target devices to be detected, and these target devices to be detected forward the detection trigger message to other target devices to be detected.
[0068] Step S202: Obtain noise information of m target devices to be detected.
[0069] The noise information of the target device to be detected is used to characterize the noise intensity detected by the target device to be detected.
[0070] In the embodiment of the present application, after sending a detection trigger message to the m target devices to be detected, the m target devices to be detected perform noise signal detection within the corresponding detection time, and the first device can obtain the noise information of the m target devices to be detected. In this way, obtaining the noise information of the m target devices to be detected does not require manual participation, which can improve detection efficiency and reduce labor costs.
[0071] In some embodiments, the first device may obtain corresponding noise information from m target devices to be detected.
[0072] As a possible implementation manner, the noise information includes noise power information.
[0073] In the embodiment of the present application, the noise power information may represent the noise intensity detected by the target device to be detected. The noise power information may be the power value of the noise signal in the signal detected by the target device to be detected.
[0074] As a possible implementation manner, the detection trigger message includes a noise detection time period.
[0075] The detection times corresponding to the m target devices to be detected are within the noise detection time period.
[0076] In an embodiment of the present application, the m target devices to be detected detect noise signals according to corresponding detection times within the noise detection time period. The noise detection time period may include a start time and an end time of the noise detection time period, and the detection times corresponding to the m target devices to be detected are after the start time of the noise detection time period and before the end time of the noise detection time period.
[0077] As a possible implementation manner, step S202 includes: receiving noise information sent by m target devices to be detected.
[0078] In an embodiment of the present application, after detecting the noise signal, the m target devices to be detected may send the noise information to the first device, and the first device may receive the noise information sent by the m target devices to be detected.
[0079] As a possible implementation manner, the detection trigger message is also used to instruct the m devices to be detected to send corresponding noise information at corresponding sending times.
[0080] The detection trigger message includes the sending time corresponding to the target device to be detected; the sending time of different target devices to be detected is different.
[0081] In an embodiment of the present application, the detection trigger message may include the corresponding sending time of the target device to be detected, indicating that m devices to be detected send corresponding noise information at the corresponding sending time.
[0082] In order to avoid the loss of noise information sent by the target device to be detected, different target devices to be detected send corresponding noise information at different times, that is, different target devices to be detected have different corresponding sending times.
[0083] As a possible implementation, refer to Figure 3 As shown, before step S201, it also includes:
[0084] Step S203: receiving a noise detection instruction.
[0085] In an embodiment of the present application, the first device may send a detection trigger message to m target devices to be detected in response to a noise detection instruction, and obtain noise information of the m target devices to be detected.
[0086] As a possible implementation, refer to Figure 3 As shown, before step S201, it also includes:
[0087] Step S204: Acquire the signal quality parameter of the device to be detected.
[0088] The signal quality parameter is a parameter used to characterize the communication quality between the device to be detected and the first device.
[0089] In the embodiment of the present application, when the first device and the device to be detected are communicating, the signal quality parameter of the device to be detected can be recorded in the first device. After receiving the noise detection instruction, the first device can obtain the signal quality parameter of the device to be detected.
[0090] In some embodiments, the first device communicates with a management node in the device to be detected, and the management node communicates with the corresponding device to be detected. The signal quality parameter of the device to be detected may be a signal-to-noise ratio of a signal of the device to be detected received by the management node. The signal quality parameter of the management node in the device to be detected may be a signal-to-noise ratio of a signal of the management node received by the first device.
[0091] Step S205: Based on the signal quality parameters of the devices to be detected, a device to be detected whose signal quality parameter is less than a signal quality threshold is determined as a target device to be detected.
[0092] In the embodiment of the present application, in order to improve the efficiency of obtaining noise information, a device to be detected that meets certain conditions can be determined as a target device to be detected. If the signal quality parameter of the device to be detected is less than the signal quality threshold, it means that the device to be detected is greatly affected by noise, and the device to be detected can be determined as a target device to be detected.
[0093] As a possible implementation manner, the device to be detected includes a device that establishes a power line carrier communication connection with the first device.
[0094] In the embodiment of the present application, the device to be detected may be a device that establishes a power line carrier communication connection with the first device. For example, the device to be detected may be a PLC device, and the first device may be a control device of the PLC device.
[0095] As a possible implementation, refer to Figure 3 As shown, the method also includes:
[0096] Step S206: Feedback the noise information of the m target devices to be detected to the user.
[0097] In the embodiment of the present application, in order to enable the user to know the noise information of the m target devices to be detected, after obtaining the noise information of the m target devices to be detected, the first device can feed back the noise information of the target devices to be detected to the user.
[0098] In some embodiments, the first device may feed back the noise information of the m target devices to be detected to the software (APP) of the user's terminal device.
[0099] Alternatively, in some embodiments, the first device may feed back the noise information of the m target devices to be detected to the user by voice broadcasting, displaying on a screen, or the like.
[0100] As a possible implementation manner, noise information of m target devices to be detected is sorted, and the sorted noise information of the m target devices to be detected is fed back to the user.
[0101] In an embodiment of the present application, in order to facilitate the user to determine the noise interference device based on the noise information of the m target devices to be detected, the noise information of the m target devices to be detected can be sorted, and the sorted noise information of the m target devices to be detected can be fed back to the user.
[0102] In some embodiments, assuming that the noise information is noise power information, the noise power information of the m target devices to be detected may be sorted in descending order of noise power.
[0103] See also Figure 3 , is a flow chart of a noise detection method provided in an embodiment of the present application, wherein the method is applied to a first device, such as Figure 3 As shown, the method includes:
[0104] Step S203: receiving a noise detection instruction.
[0105] Step S204: Acquire the signal quality parameter of the device to be detected.
[0106] Step S205: Based on the signal quality parameters of the devices to be detected, a device to be detected whose signal quality parameter is less than a signal quality threshold is determined as a target device to be detected.
[0107] Step S201: Send a detection trigger message to m target devices to be detected.
[0108] Step S202: Obtain noise information of m target devices to be detected.
[0109] Step S206: Feedback the noise information of the m target devices to be detected to the user.
[0110] See also Figure 4 , is a flow chart of a noise detection method provided in an embodiment of the present application, and the method is applied to a device to be detected. Figure 4 As shown, the method includes:
[0111] Step S401: Obtain a detection trigger message.
[0112] The detection trigger message includes the detection time.
[0113] In an embodiment of the present application, after the first device sends a detection trigger message, the device to be detected can obtain the detection trigger message, and the detection trigger message includes a detection time.
[0114] Step S402: based on the detection trigger message, the external device is turned on and the noise signal is collected within the detection time, and the external device is turned off at other times.
[0115] Among them, other time refers to time outside the detection time.
[0116] In an embodiment of the present application, the device to be detected turns on the external device and collects the noise signal within the detection time, so that the noise generated by the external device when it is turned on can be collected.
[0117] In order to prevent the external device from affecting the noise signal collected by other devices to be detected, the device to be detected turns off the external device at times other than the detection time.
[0118] As a possible implementation manner, the detection trigger message includes the noise detection time period, the detection time is within the noise detection time period, and the other time is other time within the noise detection time period except the detection time.
[0119] In an embodiment of the present application, the detection time of each device to be detected is within the noise detection time period, and the device to be detected turns off the external device at other times except the detection time within the noise detection time period, that is, the external device is turned off during the detection time of other devices to be detected, thereby avoiding the external device from affecting the noise detection of other devices to be detected.
[0120] Step S403: Determine noise information based on the noise signal.
[0121] In the embodiment of the present application, after acquiring the noise signal, the device to be detected can determine the noise information based on the noise signal.
[0122] As a possible implementation manner, the noise information includes noise power information.
[0123] In the embodiment of the present application, the noise power information may represent the noise intensity detected by the device to be detected, and the device to be detected may determine the noise power information based on the noise signal.
[0124] In some embodiments, the device to be detected may obtain a time domain signal containing noise, perform Fourier transform on the time domain signal, obtain a frequency domain signal containing noise, and determine the power information of the frequency domain signal of the target frequency band as the noise power information, wherein the target frequency band may be a frequency band used for communication. In some embodiments, the power information of the frequency domain signal of the target frequency band and the frequency band whose frequency difference with the target frequency band is less than a threshold may be determined as the noise power information.
[0125] As a possible implementation, refer to Figure 5 As shown, the method also includes:
[0126] Step S404: shut down the communication function during the noise detection period.
[0127] In an embodiment of the present application, the device to be detected turns off the communication function during the noise detection time period and stops communicating with other devices to be detected and the first device, so as to avoid interference of the communication with the collection of noise information of the device to be detected.
[0128] As a possible implementation, refer to Figure 5 As shown, the method also includes:
[0129] Step S405: After the noise detection time period ends, the communication function is enabled, and noise information is sent to the first device.
[0130] In the embodiment of the present application, after the noise detection time period ends, the device to be detected has determined the noise information and no longer collects noise signals. At this time, the communication function can be turned on and the noise information can be sent to the first device.
[0131] As a possible implementation manner, the detection trigger message includes a sending time. Sending the noise information to the first device includes: sending the noise information to the first device at the sending time.
[0132] In an embodiment of the present application, the device to be detected may send noise information to the first device at the sending time indicated in the detection trigger message.
[0133] See also Figure 5 , is a flow chart of a noise detection method provided in an embodiment of the present application, and the method is applied to a device to be detected. Figure 5 As shown, the method includes:
[0134] Step S401: Obtain a detection trigger message.
[0135] Step S402: based on the detection trigger message, the external device is turned on and the noise signal is collected within the detection time, and the external device is turned off at other times.
[0136] Step S404: shut down the communication function during the noise detection period.
[0137] Step S403: Determine noise information based on the noise signal.
[0138] Step S405: After the noise detection time period ends, the communication function is enabled, and noise information is sent to the first device.
[0139] See also Figure 6 , is a flow chart of a noise detection method provided in an embodiment of the present application. Figure 6 As shown, the method includes:
[0140] Step S601: The first device receives a noise detection instruction.
[0141] Please refer to step S203 for details, which will not be described again here.
[0142] Step S602: The first device obtains a signal quality parameter of the device to be detected.
[0143] Please refer to step S204 for details, which will not be described again here.
[0144] Step S603: The first device determines, based on the signal quality parameters of the devices to be detected, the devices to be detected whose signal quality parameters are less than a signal quality threshold as target devices to be detected.
[0145] For details, please refer to step S205, which will not be described again here.
[0146] Step S604: The first device sends a detection trigger message to m target devices to be detected.
[0147] Please refer to step S201 for details, which will not be described again here.
[0148] Step S605: m target devices to be detected obtain a detection trigger message.
[0149] For details, please refer to step S401, which will not be described again here.
[0150] Step S606 : Based on the detection trigger message, the m target devices to be detected turn on corresponding external devices and collect noise signals within the corresponding detection time, and turn off the corresponding external devices at other times.
[0151] Please refer to step S402 for details, which will not be described again here.
[0152] Step S607: The m target devices to be detected turn off their communication functions during the noise detection time period.
[0153] Please refer to step S404 for details, which will not be described again here.
[0154] Step S608: The m target devices to be detected determine noise information based on the noise signal.
[0155] For details, please refer to step S403, which will not be described again here.
[0156] Step S609: After the noise detection time period ends, the m target devices to be detected turn on the communication function and send noise information to the first device.
[0157] For details, please refer to step S405, which will not be described again here.
[0158] Step S610: The first device receives noise messages sent by m target detection devices.
[0159] Please refer to step S202 for details, which will not be described again here.
[0160] Step S611: The first device feeds back the noise information of the m target devices to be detected to the user.
[0161] For details, please refer to step S206, which will not be described in detail here.
[0162] For example, Figure 7 As shown, the first device can be a smart host in the PLC link of the whole house smart system, and the device to be detected can be a PLC device in the PLC link of the whole house smart system. The smart host is connected and communicated with the device to be detected and the control panel through power lines, and the external devices of the device to be detected are lamp 1, lamp 2, lamp 3 and curtain motor.
[0163] For example, assuming that m=4, the first device sends a detection trigger message to four target devices to be detected, and the four target devices to be detected are respectively the first target device to be detected, the second target device to be detected, the third target device to be detected, and the fourth target device to be detected. Figure 8 As shown, the detection times corresponding to the four target devices to be detected are different, and the detection times corresponding to the four target devices to be detected are all within the noise detection time period. For each of the four target devices to be detected, after obtaining the detection trigger message, the corresponding external device is turned on and the noise signal is collected within the corresponding detection time, and the corresponding external device is turned off and the noise signal is collected at other times except the corresponding detection time within the noise detection time period; based on the noise signal, the noise information is determined; the communication function is turned off within the noise detection time period, and after the noise detection time period ends, the communication function is turned on and the noise information is sent to the first device. Among them, the sending time of the first target device to be detected is T1, the sending time of the second target device to be detected is T2, the sending time of the third target device to be detected is T3, and the sending time of the fourth target device to be detected is T4.
[0164] refer to Fig. 9 , is a schematic diagram of the structure of a noise detection device provided in an embodiment of the present application. Fig.10 As shown, the device comprises:
[0165] The sending unit 901 is used to send a detection trigger message to m target devices to be detected; the detection trigger message is used to instruct the m target devices to be detected to perform noise signal detection within corresponding detection times respectively; the detection trigger message includes the detection time corresponding to the target device to be detected; m is an integer greater than 1; different target devices to be detected have different corresponding detection times;
[0166] The acquisition unit 902 is used to acquire noise information of m target devices to be detected; wherein the noise information of the target devices to be detected is used to characterize the noise intensity detected by the target devices to be detected.
[0167] As a possible implementation manner, the noise information includes noise power information.
[0168] As a possible implementation method, the sending unit 901 is also used to obtain a signal quality parameter of the device to be detected; the signal quality parameter is a parameter used to characterize the communication quality between the device to be detected and the first device; based on the signal quality parameter of the device to be detected, the device to be detected whose signal quality parameter is less than the signal quality threshold is determined as the target device to be detected.
[0169] As a possible implementation manner, the device to be detected includes a device that establishes a power line carrier communication connection with the first device.
[0170] As a possible implementation manner, the detection trigger message includes a noise detection time period; and the detection times corresponding to the m target devices to be detected are within the noise detection time period.
[0171] As a possible implementation manner, the acquisition unit 902 is specifically configured to receive noise information sent by m target devices to be detected.
[0172] As a possible implementation, the detection trigger message is also used to instruct m devices to be detected to send corresponding noise information at corresponding sending times; the detection trigger message includes the sending time corresponding to the target device to be detected; and different target devices to be detected have different sending times.
[0173] As a possible implementation manner, the acquisition unit 902 is further configured to feed back the noise information of the m target devices to be detected to the user.
[0174] As a possible implementation manner, the acquisition unit 902 is specifically configured to sort the noise information of the m target devices to be detected, and feed back the sorted noise information of the m target devices to be detected to the user.
[0175] refer to Fig.10 , is a schematic diagram of the structure of a noise detection device provided in an embodiment of the present application. Fig.10 As shown, the device comprises:
[0176] The acquisition unit 1001 is used to acquire a detection trigger message; the detection trigger message includes a detection time;
[0177] The processing unit 1002 is used to turn on the external device and collect the noise signal within the detection time based on the detection trigger message, and turn off the external device at other times; wherein the other time is the time outside the detection time;
[0178] The processing unit 1002 is further configured to determine noise information based on the noise signal.
[0179] As a possible implementation manner, the detection trigger message includes the noise detection time period, the detection time is within the noise detection time period, and the other time is other time within the noise detection time period except the detection time.
[0180] As a possible implementation manner, the processing unit 1002 is further configured to shut down the communication function during the noise detection time period.
[0181] As a possible implementation manner, the processing unit 1002 is further configured to enable a communication function after the noise detection time period ends, and send noise information to the first device.
[0182] As a possible implementation manner, the detection trigger message includes a sending time; the processing unit 1002 is specifically configured to send the noise information to the first device at the sending time.
[0183] As a possible implementation manner, the noise information includes noise power information.
[0184] Corresponding to the above embodiments, the present application also provides an electronic device. Fig.11 A schematic diagram of the structure of an electronic device provided in an embodiment of the present invention, the electronic device 1100 may include: a processor 1101, a memory 1102 and a communication unit 1103. These components communicate through one or more buses. Those skilled in the art can understand that the structure of the electronic device shown in the figure does not constitute a limitation on the embodiment of the present invention, it can be a bus structure or a star structure, and can also include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0185] The communication unit 1103 is used to establish a communication channel so that the electronic device can communicate with other devices, receive user data sent by other devices or send user data to other devices.
[0186] The processor 1101 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire electronic device. It runs or executes software programs and / or modules stored in the memory 1102, and calls data stored in the memory to perform various functions of the electronic device and / or process data. The processor can be composed of an integrated circuit (IC), for example, it can be composed of a single packaged IC, or it can be composed of multiple packaged ICs with the same or different functions. For example, the processor 1101 can include only a central processing unit (CPU). In an embodiment of the present invention, the CPU can be a single computing core or multiple computing cores.
[0187] The memory 1102 is used to store the execution instructions of the processor 1101. The memory 1102 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0188] When the execution instructions in the memory 1102 are executed by the processor 1101, the electronic device 1100 can execute Figure 3 or Figure 5 Some or all of the steps in the illustrated embodiments.
[0189] In a specific implementation, the present invention further provides a computer storage medium, wherein the computer storage medium may store a program, and when the program is executed, the program may include some or all of the steps in each embodiment of the noise detection method provided by the present invention. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0190] Those skilled in the art can clearly understand that the technology in the embodiments of the present invention can be implemented by means of software plus a necessary general hardware platform. Based on this understanding, the technical solution in the embodiments of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a disk, an optical disk, etc., and includes a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention or some parts of the embodiments.
[0191] In this specification, the same or similar parts between the various embodiments can be referred to each other. In particular, for the device embodiment and the terminal embodiment, since they are basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description in the method embodiment.
Claims
1. A noise detection method, It is characterized in that Applied to a first device, the method includes: Sending a detection trigger message to m target devices to be detected; the detection trigger message is used to instruct the m target devices to be detected to perform noise signal detection within corresponding detection times respectively; the detection trigger message includes the detection time corresponding to the target device to be detected; m is an integer greater than 1; different target devices to be detected have different corresponding detection times; Acquire noise information of the m target devices to be detected; wherein the noise information of the target devices to be detected is used to characterize the noise intensity detected by the target devices to be detected.
2. The method according to claim 1, It is characterized in that The noise information includes noise power information.
3. The method according to claim 1 or 2, It is characterized in that Before sending the detection trigger message to the m target devices to be detected, the method further includes: Acquire a signal quality parameter of the device to be detected; the signal quality parameter is a parameter used to characterize the communication quality between the device to be detected and the first device; Based on the signal quality parameter of the device to be detected, a device to be detected whose signal quality parameter is less than a signal quality threshold is determined as a target device to be detected.
4. The method according to claim 3, It is characterized in that The device to be detected includes a device that establishes a power line carrier communication connection with the first device.
5. The method according to any one of claims 1 to 4, It is characterized in that The detection trigger message includes a noise detection time period; and the detection times corresponding to the m target devices to be detected are within the noise detection time period.
6. The method according to claim 1, It is characterized in that The acquiring the noise information of the m target devices to be detected includes: receiving the noise information sent by the m target devices to be detected.
7. The method according to claim 6, It is characterized in that The detection trigger message is also used to instruct m devices to be detected to send corresponding noise information at corresponding sending times; the detection trigger message includes the sending time corresponding to the target device to be detected; The sending time of different target devices to be detected is different.
8. The method according to claims 1-7, It is characterized in that Also includes: The noise information of the m target devices to be detected is fed back to the user.
9. The method according to claim 8, It is characterized in that Feeding back the noise information of the m target devices to be detected to the user includes: The noise information of the m target devices to be detected is sorted, and the sorted noise information of the m target devices to be detected is fed back to the user.
10. A noise detection method, It is characterized in that Applied to the device to be detected, the method comprises: Obtaining a detection trigger message; the detection trigger message includes a detection time; Based on the detection trigger message, the external device is turned on and the noise signal is collected within the detection time, and the external device is turned off at other times; wherein the other times are times outside the detection time; Based on the noise signal, noise information is determined.
11. The method according to claim 10, It is characterized in that The detection trigger message includes a noise detection time period, the detection time is within the noise detection time period, and the other time is other time within the noise detection time period except the detection time.
12. The method according to claim 11, It is characterized in that Also includes: The communication function is turned off during the noise detection period.
13. The method according to claim 12, It is characterized in that Also includes: After the noise detection time period ends, the communication function is enabled, and the noise information is sent to the first device.
14. The method according to claim 13, It is characterized in that The detection trigger message includes a sending time; and sending the noise information to the first device includes: sending the noise information to the first device at the sending time.
15. The method according to any one of claims 8 to 14, It is characterized in that The noise information includes noise power information.
16. A noise detection device, It is characterized in that include: A sending unit, used to send a detection trigger message to m target devices to be detected; The detection trigger message is used to instruct the m target devices to be detected to perform noise signal detection within corresponding detection times respectively; the detection trigger message includes the detection time corresponding to the target device to be detected; m is an integer greater than 1; Different target devices to be tested have different corresponding detection times; An acquisition unit is used to acquire noise information of the m target devices to be detected; wherein the noise information of the target devices to be detected is used to characterize the noise intensity detected by the target devices to be detected.
17. A noise detection device, It is characterized in that include: An acquisition unit, used for acquiring a detection trigger message; The detection trigger message includes a detection time; A processing unit, configured to, based on the detection trigger message, turn on the external device and collect the noise signal within the detection time, and turn off the external device at other times; wherein the other times are times outside the detection time; The processing unit is further configured to determine noise information based on the noise signal.
18. An electronic device, It is characterized in that It comprises a memory for storing computer program instructions and a processor for executing the program instructions, wherein when the computer program instructions are executed by the processor, the electronic device is triggered to execute the method described in any one of claims 1 to 9 or to execute the method described in any one of claims 10 to 15.
19. A computer-readable storage medium, It is characterized in that The computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the method according to any one of claims 1 to 9 or to execute the method according to any one of claims 10 to 15.