Device control method and apparatus, electronic device, and computer-readable storage medium
By detecting and broadcasting interactive feature information, the best device response is selected, solving the problem of multiple devices responding simultaneously and improving the interactive experience of smart devices.
Patent Information
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2025-06-30
- Publication Date
- 2026-03-12
AI Technical Summary
In multi-brand smart devices, the same wake word leads to multiple devices responding simultaneously, resulting in wasted resources and high power consumption.
By detecting device interaction information, generating and broadcasting interaction feature information, receiving interaction feature information from other devices, determining the response result based on the interaction feature information, and controlling the response of the current device.
It enables the selection of the best device response in multi-device scenarios, reducing resource waste and improving the interactive experience. It is applicable to both network-connected and unconnected devices.
Smart Images

Figure CN2025106194_12032026_PF_FP_ABST
Abstract
Description
Device control method and device, electronic device, and computer-readable storage medium
[0001] The present application claims priority to the Chinese patent application No. 202411247954.2, filed on September 6, 2024, entitled "Device control method and device, electronic device, and computer-readable storage medium", the entire contents of which are incorporated herein by reference. TECHNICAL FIELD
[0002] Embodiments of the present application relate to the field of intelligent devices, in particular to a device control method and device, electronic device, and computer-readable storage medium. BACKGROUND
[0003] With the development of intelligent devices, the types of household intelligent devices are gradually diversified. For example, intelligent devices suitable for households include televisions, refrigerators, air conditioners, washing machines, etc. With the improvement of intelligence, voice wake-up devices and device control have become a common device control method. TECHNICAL PROBLEM
[0004] However, with the development of brands, a brand merchant can produce multiple types of intelligent devices, and multiple intelligent devices of the same merchant have the same wake-up word. Therefore, when a user wakes up a device, there is a "one call, multiple responses" situation. However, simultaneous wake-up of multiple devices is usually not the user's intention, and simultaneous wake-up and response of multiple devices also have the problems of resource waste and high power consumption. Therefore, how to select the best device from multiple devices to respond to the user's wake-up is a problem to be solved at present. TECHNICAL SOLUTION
[0005] Embodiments of the present application provide a device control method and device, electronic device, and computer-readable storage medium, which can realize selection of a responding device in a multi-device scenario and improve the interactive experience.
[0006] In a first aspect, the embodiments of the present application provide a device control method applied to a current device, the method comprising:
[0007] If device interaction information is detected, a first interaction feature information corresponding to the device interaction information is determined;
[0008] The first interaction feature information is broadcast to at least one interaction device within a communication range, and second interaction feature information broadcast by each interaction device is received, each second interaction feature information being determined by each interaction device according to the device interaction information;
[0009] A device response result is determined according to the first interaction feature information and each second interaction feature information;
[0010] control a response of the current device to the device interaction information according to the device response result;
[0011] At least one of the current device and the interaction devices is an uncommissioned device.
[0012] In a second aspect, the embodiments of the present application further provide a device control apparatus applied to a current device, comprising: a detection module configured to determine first interaction feature information corresponding to device interaction information if the device interaction information is detected; a communication module configured to broadcast the first interaction feature information to at least one interaction device within a communication range, and receive second interaction feature information broadcast by each interaction device, each second interaction feature information being determined by each interaction device according to the device interaction information;
[0013] a determination module configured to determine a device response result according to the first interaction feature information and the second interaction feature information;
[0014] a control module configured to control a response of the current device to the device interaction information according to the device response result;
[0015] At least one of the current device and the interaction devices is an uncommissioned device.
[0016] Optionally, in some embodiments of the present application, the device response result comprises responding to the device interaction information or not affecting the device interaction information, and the control module comprises:
[0017] a first control unit configured to respond to the device interaction information according to the device response result if the device response result is to respond to the device interaction information;
[0018] a second control unit configured to keep the current device in a current state if the device response result is not to respond to the device interaction information, wherein the current state indicates that the current device does not respond to the device interaction information.
[0019] In some embodiments of the present application, the determination module comprises:
[0020] a first determination unit configured to determine first detection time information corresponding to the first interaction feature information, and determine second detection time information corresponding to each second interaction feature information;
[0021] a second determination unit configured to determine target detection time information with the earliest time from the first detection time information and the second detection time information, the target detection time information being the time when the device interaction information is detected;
[0022] a third determination unit configured to determine the device response result according to the first interaction feature information and the second interaction feature information with the target detection time information as starting time information and according to a first preset time length.
[0023] In some embodiments of the present application, the device interaction information includes voice wake-up information, the third determination unit includes: a first determination sub-unit configured to extract a first sound pressure value from the first interaction feature information and extract second sound pressure values from the second interaction feature information, and determine the device response result according to the size of the first sound pressure value and each second sound pressure value; and / or a second determination sub-unit configured to extract a first signal-to-noise ratio value from the first interaction feature information and extract second signal-to-noise ratio values from the second interaction feature information, and determine the device response result according to the size of the first signal-to-noise ratio value and each second signal-to-noise ratio value. In some embodiments of the present application, the first determination sub-unit is specifically configured to:
[0024] If the first sound pressure value is greater than each second sound pressure value, the device interaction information is set as the device response result;
[0025] If the first sound pressure value is less than any one of the second sound pressure values, the device interaction information is set as the device response result;
[0026] If the first sound pressure value is equal to the maximum value of each second sound pressure value, the first physical address of the current device and the second physical address of the interaction device corresponding to the maximum value are obtained, and the device response result is determined according to the first physical address and the second physical address.
[0027] In some embodiments of the present application, the apparatus further includes a coordination module, and the coordination module includes:
[0028] The broadcasting unit is configured to broadcast, in response to a detection instruction, a first detection request information to at least one interaction device within a communication range, the interaction device including a networked device or a non-networked device;
[0029] The fourth determination unit is configured to determine detection result information for the first detection request information;
[0030] The fifth determination unit is configured to determine target synchronization information according to the detection result information, wherein the current device and each interaction device communicate through the target synchronization information;
[0031] The communication module includes:
[0032] The communication unit is configured to broadcast, through target channel information in the target synchronization information, the first interaction feature information to at least one interaction device within the communication range, and receive, through the target channel information, the second interaction feature information broadcast by each interaction device.
[0033] In some embodiments of the present application, the fifth determination unit includes:
[0034] The third determining subunit is configured to: if the detection result information indicates that the first target interaction device in the at least one interaction device feeds back the first detection response information for the first detection request information, extract target synchronization information from the first detection response information;
[0035] The fourth determining subunit is configured to: if the detection result information indicates that none of the at least one interaction device feeds back the first detection response information for the first detection request information, generate the target synchronization information according to the networking state of the current device, broadcast a conflict detection request information to the at least one interaction device, determine detection result information for the conflict detection request information, and update the target synchronization information according to the detection result information.
[0036] In some embodiments of the present application, the fourth determining subunit is specifically configured to:
[0037] If the detection result information indicates that the second target interaction device in the at least one interaction device feeds back the conflict detection response information for the conflict detection request information, determine a priority comparison result of the current device and the second target interaction device according to the conflict detection response information.
[0038] If the priority comparison result indicates that the priority of the current device is higher, keep the target synchronization information generated according to the default communication channel information unchanged.
[0039] If the priority comparison result indicates that the priority of the current device is lower, extract peer synchronization information from the conflict detection response information, and update the target synchronization information according to the peer synchronization information.
[0040] If the detection result information indicates that none of the at least one interaction device feeds back the conflict detection response information for the conflict detection request information, keep the target synchronization information generated according to the default communication channel information unchanged.
[0041] In some embodiments of the present application, the fourth determining subunit is specifically configured to:
[0042] If the networking state of the current device is not in the network, generate the target synchronization information according to the default communication channel information of the current device; if the networking state of the current device is in the network, generate the target synchronization information according to the communication channel of the router connected by the current device.
[0043] In some embodiments of the present application, the coordination module further comprises:
[0044] The switching unit is configured to, if the current device is a device that has been configured for networking and the router to which the current device is connected switches the communication channel to another communication channel, switch the current device to the other communication channel as well, wherein each interactive device scans and switches to the other communication channel of the router.
[0045] In some embodiments of the present application, the coordination module further includes an analysis unit, and the analysis unit includes:
[0046] The extraction sub-unit is configured to, if the second probe request information broadcast by the third target interactive device among the at least one interactive device is received, extract the communication channel information from the second probe request information.
[0047] The first analysis sub-unit is configured to, if the communication channel information is inconsistent with the default communication channel information of the current device, cancel the reply to the second probe request information.
[0048] The second analysis sub-unit is configured to, if the communication channel information is consistent with the default communication channel information of the current device, generate second probe response information for the probe request information, and send the second probe response information to the third target interactive device, wherein the third target interactive device communicates according to the target synchronization information in the second probe response information.
[0049] In some embodiments of the present application, the third target interactive device includes at least one of an interactive device that is powered on again after power failure, an interactive device whose connected router is replaced after being configured for networking, an interactive device whose connected router's service set identifier is changed after being configured for networking, an interactive device whose connected router is powered on again after power failure, or an interactive device that is reconfigured for networking.
[0050] In a third aspect, the embodiments of the present application further provide an electronic device, which includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, and the computer program is executed by the processor to implement the steps in the device control method described above.
[0051] In a fourth aspect, the embodiments of the present application further provide a computer readable storage medium, which stores a computer program, and the computer program is executed by the processor to implement the steps in the device control method described above.
[0052] In a fifth aspect, an embodiment of the present application further provides a computer program product or computer program, which comprises computer instructions stored in a computer readable storage medium. A processor of a computer device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions to enable the computer device to perform the method provided in various optional implementation manners of the embodiments of the present application. Advantages
[0053] To sum up, if the current device detects the device interaction information, the current device determines the first interaction feature information corresponding to the device interaction information, broadcasts the first interaction feature information to at least one interaction device in a communication range, receives second interaction feature information broadcast by each interaction device, each second interaction feature information is determined by each interaction device according to the device interaction information, determines a device response result according to the first interaction feature information and each second interaction feature information, and controls the response of the current device to the device interaction information according to the device response result, wherein at least one of the current device and each interaction device is an uncommissioned device.
[0054] According to the first interaction feature information generated by itself and the second interaction feature information received from other interaction devices, and according to the first interaction feature information and each second interaction feature information to determine a device response result, and then according to the device response result to control the response of the current device, it is determined whether the current device is suitable for responding according to the interaction feature information of each device, and the control of whether the current device responds to the device interaction information is realized.
[0055] According to the comparison of the interaction feature information of each device and the received interaction feature information of other devices, each device performs response control, so as to realize the screening of the responding device in the multi-device scenario, reduce the number of responding devices and reduce resource waste, and also screen the device meeting the user's expectation based on the interaction feature information, and improve the interaction experience.
[0056] Since at least one of the current device and each interaction device can be an uncommissioned device, the responding device screening scheme in the multi-device scenario of the embodiments of the present application is suitable for the screening of uncommissioned devices, that is, the device for responding finally screened can be a commissioned device or an uncommissioned device, which improves the diversity of device processing, and more devices participating in the screening are more likely to screen the device meeting the user's interaction demand, thereby improving the interaction experience. BRIEF DESCRIPTION OF DRAWINGS
[0057] In order to more clearly illustrate the technical solutions in the present application, the drawings needed in the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application, and all other drawings obtained by those skilled in the art without creative effort based on these drawings are within the scope of the present application.
[0058] Fig. 1 is a schematic diagram of a scene in which a current device executes a device control method according to an embodiment of the present application;
[0059] Fig. 2 is a flowchart of a device control method according to an embodiment of the present application;
[0060] Fig. 3 is a schematic diagram of user-device interaction according to an embodiment of the present application;
[0061] Fig. 4 is a schematic diagram of analysis of selection of a response device according to an embodiment of the present application;
[0062] Fig. 5 is an interaction diagram of determination of target synchronization information by multiple devices according to an embodiment of the present application;
[0063] Fig. 6 is a schematic diagram of synchronization of target synchronization information according to an embodiment of the present application;
[0064] Fig. 7 is a schematic diagram of channel switching according to an embodiment of the present application;
[0065] Fig. 8 is a flowchart of determination of a coordinator and target synchronization information after a third target interaction device acting as a coordinator is powered on again according to an embodiment of the present application;
[0066] Fig. 9 is another schematic diagram of a device control apparatus according to an embodiment of the present application;
[0067] Fig. 10 is a schematic diagram of an electronic device according to an embodiment of the present application. Embodiments of the present application
[0068] The technical solutions in the present application will be described in detail below with reference to the drawings in the present application. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of the present application.
[0069] The embodiments of the present application provide a device control method, apparatus, electronic device and computer readable storage medium. Specifically, the embodiments of the present application provide a device control apparatus suitable for an electronic device (current device), which includes a terminal device, including but not limited to a mobile phone, a tablet, a television, a computer, an air conditioner, a refrigerator, a washing machine, a smart lamp, a smart curtain and a smart floor cleaning robot, etc.
[0070] Specifically, refer to FIG. 1, which is a schematic diagram of a scenario in which a current device executes a device control method according to an embodiment of the present application. The specific execution process of the device control method is as follows:
[0071] If the current device 10 detects device interaction information, it determines first interaction feature information corresponding to the device interaction information, broadcasts the first interaction feature information to at least one interaction device within a communication range, receives second interaction feature information broadcast by each interaction device, each second interaction feature information being determined by each interaction device according to the device interaction information, determines a device response result according to the first interaction feature information and each second interaction feature information, and controls the response of the current device to the device interaction information according to the device response result.
[0072] In the embodiment of the present application, at least one of the current device and each interaction device is a non-commissioning device.
[0073] In the embodiment of the present application, the device interaction information includes voice information. For example, if a user wakes up a device by a voice wake-up word, the voice wake-up word is the device interaction information. Correspondingly, the first interaction feature information is the sound pressure information or signal-to-noise ratio information of the voice wake-up word collected by the current device. Similarly, the second interaction feature information is the sound pressure information or signal-to-noise ratio information of the voice wake-up word collected by the interaction device.
[0074] In an actual scenario, if a user wakes up a device by a voice wake-up word, each device in the scenario generates corresponding interaction feature information according to the collected voice wake-up word. For example, a device far away from the user generates a low sound pressure value, and a device close to the user generates a high sound pressure value.
[0075] In summary, the embodiment of the present application determines a device response result according to the first interaction feature information generated by itself and the second interaction feature information received from other interaction devices, and controls the response of the current device according to the device response result, thereby determining whether the current device is suitable for responding according to the interaction feature information of each device, and controlling whether the current device responds to the device interaction information.
[0076] Each device compares its own interaction feature information with the interaction feature information received from other devices and controls the response, thereby screening the responding devices in a multiple-device scenario, reducing the number of responding devices and resource waste, and selecting a device meeting the user's expectation based on the interaction feature information, thereby improving the interaction experience.
[0077] Wherein, since at least one of the current device and each interaction device can be a non-networking device, the response device screening scheme in the multi-device scenario of the embodiments of the present application is suitable for screening of non-networking devices, that is, the device screened for responding finally can be a networking device or a non-networking device, which improves the diversity of device processing, and more devices participating in screening makes it easier to screen devices meeting the user interaction requirements, thereby improving the interaction experience.
[0078] The following will be described in detail respectively. It should be noted that the description order of the following embodiments is not limited as the priority order of the embodiments.
[0079] Please refer to FIG. 2, which is a flowchart of the device control method provided by the embodiments of the present application. Although the logical order is shown in the flowchart, in some cases, the steps shown or described can be performed in an order different from that shown in the figure. Specifically, the specific flow of the device control method is as follows:
[0080] 101, if the device interaction information is detected, determining the first interaction feature information corresponding to the device interaction information.
[0081] Wherein, the device interaction information refers to the information of the user interaction with the device, for example, the device interaction information can be voice information, interaction signals (such as remote control signals sent by a remote controller), vibration audio information (such as audio generated by knocking to control the device, such as waking up the device), and other information that can be recognized by the device and generate corresponding processing, for example, the device interaction information can be any information that can wake up the device.
[0082] Wherein, the embodiments of the present application take the device interaction information as an example of voice information, and other types of information or signals can be understood by reference.
[0083] Wherein, the component for detecting the device interaction information can be a related detection module, for example, a voice detection module is used to identify and detect voice information.
[0084] It can be understood that the first interaction feature information is the feature information corresponding to the device interaction information, which reflects the characteristics of the device interaction information, for example, the first interaction feature information can include the sound pressure value information and the signal-to-noise ratio information corresponding to the device interaction information (voice information).
[0085] 102, broadcasting the first interaction feature information to at least one interaction device within the communication range, and receiving the second interaction feature information broadcast by each interaction device, each second interaction feature information being determined by each interaction device according to the device interaction information.
[0086] It can be understood that the communication range refers to the range of the broadcast. The range of the broadcast can be determined according to the actual transmission distance of the broadcast, or can be obtained according to the user's setting. For example, the user controls the communication range in a certain area according to the demand for wake-up response. Generally, the user only has the demand for wake-up and response for the device nearby, and therefore, the user can set a small communication range to reduce the broadcast range, reduce the number of devices for parameter processing, and reduce resource waste.
[0087] The second interaction feature information is determined by each interaction device for the voice information collected by each interaction device. The second interaction feature information is the same type of information as the first interaction feature information, that is, the second interaction feature information can also be sound pressure value information or signal-to-noise ratio information, etc. Since the clarity, sound pressure, and time of the collected voice information differ due to the different distances from the user, the first interaction feature information of the current device differs from the second interaction feature information of each interaction device.
[0088] 103. Determine a device response result according to the first interaction feature information and each second interaction feature information.
[0089] It can be understood that, by comparing the first interaction feature information and each second interaction feature information, the advantages and disadvantages or the suitability of the current device and each interaction device in response can be analyzed, and then the device response result for the current device can be obtained, thereby improving the accuracy of the device response result.
[0090] 104. Control the response of the current device to the device interaction information according to the device response result.
[0091] It can be understood that different device response results reflect the response of the current device to the device interaction information. For example, if the device response result indicates that the device interaction information is responded to, the current device is controlled to respond to the device interaction information. If the device response result indicates that the device interaction information is not responded to, the current device is controlled not to respond to the device interaction information, that is, the current state of the device is kept unchanged.
[0092] It should be emphasized that in the embodiments of the present application, at least one of the current device and each interaction device is a non-networking device. That is, the scheme of selecting a response device from multiple devices in the embodiments of the present application supports the selection of a non-networking device. For example, the user's home includes a networking device and a non-networking device. After the user is woken up by voice, the device control method based on the present scheme can select a target device from the networking device and the non-networking device for response. Correspondingly, the target device can be a networking device or a non-networking device.
[0093] In summary, the embodiments of the present application generate the first interaction feature information and receive the second interaction feature information of other interaction devices, and determine the device response result according to the first interaction feature information and each second interaction feature information, and then control the response of the current device according to the device response result, so as to determine whether the current device is suitable for responding according to the interaction feature information of each device, and to control whether the current device responds to the device interaction information.
[0094] Among them, each device responds to the comparison of its own interaction feature information and the received interaction feature information of other devices, so as to realize the screening of the responding device in the multi-device scene, reduce the number of responding devices and reduce resource waste, and also screen the device meeting the user's expectation based on the interaction feature information, and improve the interaction experience.
[0095] Among them, since at least one of the current device and each interaction device can be a device that has not been configured, the responding device screening scheme in the multi-device scene of the embodiments of the present application is suitable for screening the device that has not been configured, that is, the device for responding obtained through the final screening can be a device that has been configured or a device that has not been configured, which improves the diversity of device processing, and more devices participating in the screening are more likely to screen the device meeting the user's interaction demand, thereby improving the interaction experience.
[0096] Optionally, since the purpose of the embodiments of the present application is to select the device for responding from multiple devices, for a single device, for example, for the current device, the device response result of the current device can include one of responding to the device interaction information and not responding to the device interaction information, that is, in some embodiments of the present application, the device response result includes responding to the device interaction information or not affecting the device interaction information, and the step of "controlling the response of the current device to the device interaction information according to the device response result" includes:
[0097] If the device response result is to respond to the device interaction information, the device interaction information is responded to according to the device response result.
[0098] If the device response result is not to respond to the device interaction information, the current device is kept in the current state, wherein the current state indicates that the current device does not respond to the device interaction information.
[0099] Correspondingly, the current device makes a control result of whether to respond according to the device response result, and completes the control processing of responding or not responding by the current device itself. It can be understood that each interactive device also compares the interaction characteristic information of itself and the interaction characteristic information sent by other devices received, obtains the device response result of each interactive device itself, and then each interactive device makes a control processing of whether to respond according to the device response result of itself. Then, the current device and the responding devices in each interactive device are screened, wherein the current device and each interactive device form a plurality of devices. For example, please refer to FIG. 3, which is a schematic diagram of user-device interaction provided by an embodiment of the present application. When the user (Actor) wakes up the device by voice "XiaoT XiaoT", the device 1, the device 2 and the device 3 in the scene are all woken up by the voice "XiaoT XiaoT", and correspondingly, the device 1, the device 2 and the device 3 broadcast their own interaction characteristic information to each other, so that the device 1 not only generates the first interaction characteristic information for itself, but also receives the second interaction characteristic information of the device 2 and the device 3. Then, the device 1 can make a choice according to the first interaction characteristic information and the two second interaction characteristic information, determine the device response result of the device 1 itself, and then control the response of the device 1 itself to the voice "XiaoT XiaoT" according to the device response result, that is, if the device response result is to respond to the voice "XiaoT XiaoT", the device 1 responds to the voice "XiaoT XiaoT", otherwise, if the device response result is not to respond to the voice "XiaoT XiaoT", the device 1 keeps the current state or exits the wake-up state, that is, the device 1 does not respond to the voice "XiaoT XiaoT" at this time. Similarly, the device 2 and the device 3 also receive the interaction characteristic information of the other two devices, and make a choice of whether to respond to the voice "XiaoT XiaoT".
[0100] It should be noted that since each device contains the interaction characteristic information of itself and the other two devices, the interaction characteristic information used for analysis by each device is consistent, so the result of decision-making by each device based on the interaction characteristic information should be consistent, that is, the target device or the final device for responding from the plurality of devices. In the embodiment of the present application, only the response of the device itself is decided for each device, for example, for the device 1, if the device response result of the device 1 is to respond to the voice "XiaoT XiaoT" for wake-up, the device response result of the device 2 and the device 3 is not to respond to the voice "XiaoT XiaoT" for wake-up.
[0101] It can be understood that in a feasible implementation mode, the user can also set more than one device to respond, for example, two devices are selected from multiple devices to respond to the user's voice wake-up, such as selecting device 1 and device 2, or device 1 and 3, or device 2 and 3 from device 1, device 2 and device 3 to respond to the user's voice wake-up. Optionally, since the device needs to respond within a short time to respond to the user's interaction demand, the device for responding needs to be screened within a short time, that is, optionally, in some embodiments of the present application, the step of "determining the device response result according to the first interaction feature information and each second interaction feature information" comprises:
[0102] determining first detection time information corresponding to the first interaction feature information, and determining second detection time information corresponding to each second interaction feature information;
[0103] determining target detection time information with the earliest time from the first detection time information and each second detection time information, which detects the device interaction information;
[0104] determining the device response result according to the first interaction feature information and each second interaction feature information with the target detection time information as the starting time information and according to the first preset time length.
[0105] Among them, the first detection time information is the time information of the current device detecting the device interaction information, and the second detection time information is the time information of the interaction device detecting the device interaction information. It can be understood that the target detection time information is the time information of the current device and each interaction device detecting the device interaction information first, for example, if the detection time information is timestamp information, the target detection time information is the earliest timestamp information of the current device and each interaction device detecting the device interaction information.
[0106] The first preset time length limits the time length for screening out the response device, so as to avoid long-time selection decision making and make the user's wake-up voice not get feedback for a long time. For example, please refer to FIG. 4, which is an analysis diagram of selecting a response device provided in the embodiments of the present application, wherein the detection time information of device 1, device 2, device 3 and device 4 detecting or identifying the device interaction information is shown. In FIG. 4, the first preset time length is taken as 200 ms for example, wherein in FIG. 4, device 1 identifies the device interaction information first, and device 2, device 3 and device 4 identify the device interaction information successively later. In the embodiments of the present application, the target detection time information (i.e. the time information of device 1 identifying the device interaction information in the embodiments of the present application) of the earliest wake-up is taken as the starting point, and the wake-up devices within 200 ms are selected, i.e. device 1, device 2 and device 3 are selected, and the target device for responding to the device interaction information is selected. Since the time of device 4 identifying the device interaction information is later than 200 ms after the target detection time information, device 4 does not belong to one of the multiple devices for selecting the response device, i.e. device 4 does not participate in the final selection process.
[0107] Optionally, the device interaction information is taken as the voice wake-up information in the embodiments of the present application, and the interaction feature information can include the sound pressure value information or the signal-to-noise ratio information, i.e. in some embodiments of the present application, the device interaction information includes the voice wake-up information, and the step of "determining the device response result according to the first interaction feature information and each second interaction feature information" includes:
[0108] extracting a first sound pressure value from the first interaction feature information and a second sound pressure value from the second interaction feature information, and determining the device response result according to the size of the first sound pressure value and each second sound pressure value; and / or,
[0109] extracting a first signal-to-noise ratio value from the first interaction feature information and a second signal-to-noise ratio value from the second interaction feature information, and determining the device response result according to the size of the first signal-to-noise ratio value and each second signal-to-noise ratio value.
[0110] The sound pressure value and the signal-to-noise ratio value can both reflect the distance of each device (including the current device and each interactive device) from the user, and therefore, determining the device response result based on the sound pressure value and the signal-to-noise ratio value helps to filter out the device closest to the user as the responding device, that is, in line with the user's interactive habits. For example, the user is more inclined to interact with the device nearby or closest to the user. For example, when the user wants to control a certain device, the user usually walks to the vicinity of the device and then controls the device through voice wake-up. Or the sound pressure value also helps to filter out the device located in front of the user's face. For example, the sound pressure of different sound source output angles differs when the voice propagates, and the device for responding obtained based on the larger sound pressure value also helps to filter out the device corresponding to the front of the user, in line with the user's habits. For example, when the user wants to control a certain device, the user usually issues a voice wake-up word or control voice towards the device.
[0111] Specifically, the step of "determining the device response result according to the size of the first sound pressure value and each second sound pressure value" includes: if the first sound pressure value is greater than each second sound pressure value, setting the non-response device interaction information as the device response result.
[0112] If the first sound pressure value is less than any one of the second sound pressure values, the non-response device interaction information is set as the device response result.
[0113] If the first sound pressure value is equal to the maximum value of each second sound pressure value, the first physical address of the current device and the second physical address of the interactive device corresponding to the maximum value are obtained, and the device response result is determined according to the first physical address and the second physical address. It can be understood that when the sound pressure values are consistent or close, the device for responding can be filtered out according to the physical address, for example, the device with a smaller or larger physical address is used as the device for responding, and therefore, the device response result can be obtained according to whether to respond. In the embodiments of the present application, the size of the physical address refers to the size of the digital sequence number corresponding to the physical address. For example, if the first digital sequence number corresponding to the first physical address is greater than the second digital sequence number corresponding to the second physical address, the non-response device interaction information is set as the device response result, and if the first digital sequence number corresponding to the first physical address is less than the second digital sequence number corresponding to the second physical address, the response device interaction information is set as the device response result.
[0114] In the embodiments of the present application, the wake-up and response selection operations are performed on the non-network-configured device. In order to ensure that the devices can broadcast their respective interaction characteristic information after being woken up, the channels for broadcasting the interaction characteristic information need to be negotiated in advance among the devices, so that the devices can broadcast the interaction characteristic information based on the negotiated channels after being woken up. The negotiation process can be implemented by broadcasting a probe request. In some embodiments of the present application, before the step of broadcasting the first interaction characteristic information to at least one interaction device in the communication range and receiving the second interaction characteristic information broadcast by the interaction device, the method further includes:
[0115] In response to the probe instruction, broadcasting the first probe request information to at least one interaction device in the communication range, the interaction device including a network-configured device or a non-network-configured device;
[0116] Determining the probe result information for the first probe request information;
[0117] Determining the target synchronization information according to the probe result information, wherein the current device and the interaction device communicate through the target synchronization information;
[0118] Broadcasting the first interaction characteristic information to at least one interaction device in the communication range, and receiving the second interaction characteristic information broadcast by the interaction device, including:
[0119] Broadcasting the first interaction characteristic information to at least one interaction device in the communication range through the target channel information in the target synchronization information, and receiving the second interaction characteristic information broadcast by the interaction device through the target channel information.
[0120] It should be noted that in the embodiments of the present application, the target synchronization information includes the target channel information determined by negotiation, and based on the target channel information, the first interaction characteristic information can be broadcast to the interaction device in the communication range and the second interaction characteristic information broadcast by the interaction device can be received.
[0121] In the embodiments of the present application, the negotiation process of the non-network-configured device needs to be satisfied, so the receiving and transmitting process of the probe request of the non-network-configured device needs to be satisfied. The embodiments of the present application take the current device and the interaction device as the wireless network (wifi) device as an example, and the probe request receiving and transmitting process needs to be implemented by using the management frame in the wireless network.
[0122] Wherein, even if the non-networking device can send and receive the probe request through the management frame, but if the transceiving device is not on the same channel, it cannot return the probe response to the probe request, thus the transceiving devices cannot negotiate the channel, and further cannot determine the target synchronization information, i.e., cannot determine the target negotiation information, therefore, in the embodiments of the present application, the target synchronization information needs to be determined according to the probe result information of the first probe request information broadcasted by the current device.
[0123] Correspondingly, if the first probe response information returned for the first probe request information is received, the target synchronization information containing the target channel information is extracted from the first probe response information, i.e., in some embodiments of the present application, the step of "determining the target synchronization information according to the probe result information" comprises:
[0124] If the probe result information indicates that the first probe response information for the first probe request information fed back by the first target interactive device of the at least one interactive device is received, the target synchronization information is extracted from the first probe response information;
[0125] If the probe result information indicates that the first probe response information for the first probe request information fed back by any interactive device of the at least one interactive device is not received, the target synchronization information is generated according to the networking state of the current device, at the same time, the conflict detection request information is broadcasted to the at least one interactive device, the detection result information for the conflict detection request information is determined, and the target synchronization information is updated according to the detection result information.
[0126] Wherein, the first probe response information is a reply to the first probe request information, if the first target interactive device feeds back the first probe response information for the first probe request information, it indicates that the first target interactive device has determined a target channel information for broadcasting the interactive feature information, thus, the target synchronization information can be generated according to the target channel information contained in the first probe response information, and the current device is switched to the target channel corresponding to the target channel information, so as to perform broadcast communication with the first target interactive device.
[0127] Wherein, if the first probe response information for the first probe request information fed back by any interactive device is not received, it can be determined that at this time no target channel information for broadcasting the interactive feature information is determined in the plurality of devices, and a preliminary target synchronization information is temporarily determined according to the networking state of the self.
[0128] Wherein, in the embodiments of the present application, the probe request information comprises user identification information and device physical address information. The probe response information comprises target channel information, if the first target interactive device is a networked device, the probe response information further comprises the service set identification information (SSID) of the router.
[0129] In order to ensure that the target synchronization information corresponding to the plurality of devices in the scene is consistent, i.e., the target channel information is consistent, conflict detection of whether the channels are consistent needs to be performed to determine the unique target channel information in the plurality of devices through the conflict detection, i.e., in some embodiments of the present application, the step of "updating the target synchronization information according to the detection result information" includes:
[0130] If the detection result information indicates that the conflict detection response information of the second target interactive device in the at least one interactive device is detected in response to the conflict detection request information, a priority comparison result of the current device and the second target interactive device is determined according to the conflict detection response information;
[0131] If the priority comparison result indicates that the priority of the current device is higher, the target synchronization information generated according to the default communication channel information is kept unchanged;
[0132] If the priority comparison result indicates that the priority of the current device is lower, the peer synchronization information is extracted from the conflict detection response information, and the target synchronization information is updated according to the peer synchronization information;
[0133] If the detection result information indicates that no conflict detection response information of any interactive device in the at least one interactive device is detected in response to the conflict detection request information, the target synchronization information generated according to the default communication channel information is kept unchanged.
[0134] In the conflict detection response information is a feedback to the conflict detection request information, in the embodiments of the present application, the conflict detection response information includes conflict detection frame information, and the conflict detection response information includes conflict response frame information. If the conflict detection response information is fed back, it indicates that there is a channel inconsistency, and therefore, whether to update the target synchronization information can be determined according to the priority comparison result of the current device and the second target interactive device, in the embodiments of the present application, the priority of the device can be determined according to whether the device is networked, for example, the priority of the networked device is higher than that of the non-networked device, and the priority of the device with a smaller digital serial number corresponding to the physical address is higher.
[0135] If no feedback conflict detection response information is received, it indicates that there is no inconsistent channel, and therefore, the current target channel can be kept unchanged, i.e., the current target synchronization information is kept unchanged.
[0136] In the embodiments of the present application, the channel negotiation of the coordinator is taken as an example for illustration. Referring to FIG. 5, which is an interaction diagram for multiple devices to determine target synchronization information according to the embodiments of the present application, specifically, the interaction process for devices 1, 2, 3 and 4 to determine target synchronization information through four stages is shown in FIG. 5, wherein the first stage, the second stage, the third stage and the fourth stage are as follows:
[0137] The first stage: the user starts the multi-device wake-up function of each device (also referred to as starting the multi-device interaction switch). Specifically, the user discovers the surrounding devices through the applet, connects to the devices through Bluetooth, and then opens the multi-device wake-up function, sends the function opening instruction (user identifier, timestamp) to the device, and the device stores the user identifier (userid) in the flash memory.
[0138] The second stage: detecting the coordinator. Specifically, after the multi-device wake-up function is opened, the timer starts counting for 10 seconds, and the probe request information (probe req frame containing the user identifier and the device physical address) is broadcasted every 1 second. The non-networked device sends the probe request information on all channels, and the networked device sends the probe request information on a single channel.
[0139] If the probe response information (probe resp frame) with the reply of the coordinator is received, the channel is switched to the group of the coordinator by default, wherein the probe resp frame contains the target channel information (channel) and the router ssid information, that is, the device is switched to the channel corresponding to the target channel information.
[0140] The third stage: the probe timeout stage. Specifically, if the probe req probe does not find the coordinator, the device changes to the coordinator by default after 10 seconds of timeout.
[0141] That is, if the probe response information with the reply of the coordinator is not received, the target channel information is determined according to the networking state of the device, and the channel corresponding to the target channel information is switched. For example, the networked device and the non-networked coordinator are not on the same channel, and the coordinator does not reply. Wherein, if the networking state is networking, the channel information of the router is taken as the target channel information, that is, the channel consistent with the channel of the router is switched, and if the networking state is non-networking, the default channel information is taken as the target channel information, that is, the channel corresponding to the default channel information is switched, for example, the default channel is channel 6.
[0142] The fourth stage: conflict detection. Specifically, when the device just becomes a coordinator, the coordinator sends a conflict detection request information (conflict detection frame) every 1 minute for 10 minutes (to prevent multiple devices from becoming coordinators due to packet loss). After 10 minutes, the un-networked coordinator sends a conflict detection frame every 5 minutes on all channels to find other networked devices with the same userid.
[0143] In the conflict detection process, if the priority of the other device is higher (for example, the other device is a networked device), the coordinator actively becomes a sub-device. Specifically, the device receiving the conflict detection request information (conflict detection frame) determines the priority of the other device and itself, and determines whether it is suitable to continue as a coordinator. If it is suitable to continue as a coordinator, it continues as a coordinator and feeds back a conflict detection response information (conflict response frame), and tells the other device to become a sub-device. The other device receiving the conflict detection response information becomes a sub-device. If it is determined that it is not suitable to continue as a coordinator, it becomes a sub-device and feeds back a conflict detection response information, and tells the other device to become a coordinator. The other device receiving the conflict detection response information continues as a coordinator.
[0144] As shown in FIG. 5, devices 1 and 2 are set as coordinators in the third stage because they do not detect a coordinator in the second stage (i.e., device 4, the main reason for not detecting a coordinator is that the channels of devices 1 and 2 and the coordinator are inconsistent, so the coordinator does not feed back a detection response information after receiving the detection request information broadcast by devices 1 and 2). In the fourth stage, they are switched to sub-devices of device 4 through the processing of the conflict detection request information and the conflict detection response information. In FIG. 5, device 3 is directly a sub-device of the coordinator because its channel is consistent with that of the coordinator, so device 3 receives the detection response information fed back by the coordinator.
[0145] After determining the coordinator in the multiple devices through the detection request information and the conflict detection request information (wherein the coordinator is one of the devices, usually a device with a higher priority), the coordinator broadcasts its target synchronization information, so that each device switches to the target channel corresponding to the target synchronization information, so that the channels used by each device to broadcast the interactive feature information are consistent, i.e., each device can broadcast its first interactive feature information to each device, and can also receive the second interactive feature information broadcast by other devices through broadcasting.
[0146] As shown in FIG. 6, FIG. 6 is a schematic diagram of the synchronization target synchronization information provided in the embodiments of the present application, and FIG. 6 shows a case of two coordinators on the left and right sides, wherein the coordinator on the left side broadcasts the target synchronization information to each sub device, and the coordinator on the right side also broadcasts the target synchronization information to each sub device (not shown in FIG. 6).
[0147] In particular, after the device is called a coordinator, the device needs to broadcast the conflict detection request information to other devices in the scene, to determine whether to switch from the coordinator to the sub device according to whether the conflict detection response information is received in response to the conflict detection request information and according to the specific content of the received conflict detection response information. As shown in FIG. 6, the coordinator on the left side and the coordinator on the right side interact with each other through the conflict detection request information and the conflict detection response information, and since the coordinator on the left side is a device that is not yet configured (not yet connected to the network), the priority of the coordinator on the left side is lower than that of the coordinator on the right side. Therefore, after the interaction of the conflict detection request information and the conflict detection response information, the coordinator on the left side is switched to the sub device, and immediately sends an instruction to update the target synchronization information to the sub device, to support the sub device to update the target synchronization information. If the final coordinator is a device that is already connected to the network, such as the coordinator on the right side in FIG. 6, the sub device also needs to save the service set identification information (SSID) of the connected router.
[0148] Subsequently, the coordinator on the right side periodically broadcasts the target synchronization information to the sub devices (including the sub device switched by the coordinator on the left side), such as broadcasting the target channel information of the router connected by the coordinator on the right side.
[0149] Optionally, in the embodiments of the present application, if the coordinator is a device that is already connected to the network, and the channel of the router connected by the coordinator is switched, the coordinator needs to reconnect to the new channel of the router after the channel is switched, and at this time, since each sub device cannot receive the target synchronization information broadcast by the coordinator, the sub device is called an orphan device. Therefore, the sub device can scan the router through the SSID and switch to the new channel of the router. As shown in FIG. 7, FIG. 7 is a schematic diagram of channel switching provided in the embodiments of the present application, and after the channel of the router is switched, the coordinator that is already connected to the network and each sub device are switched to the new channel of the router. Subsequently, the coordinator still periodically broadcasts the target synchronization information.
[0150] Optionally, in some embodiments of the present application, after the step of “generating the target synchronization information according to the network connection state of the current device”, the method further includes:
[0151] If the current device is a networked device, and the router to which the current device is connected switches to another communication channel, the current device is also switched to the other communication channel, and each interactive device scans and switches to the other communication channel of the router. Referring to FIG. 7, at this time, the current device is the networked coordinator in FIG. 7, and the router switches to channel 11, and then the coordinator and each sub-device are switched to channel 11.
[0152] If the current device is a coordinator, after receiving the second probe request information broadcast by the third target interactive device, whether to reply to the second probe response information is determined according to the consistency of the channels, if the channels are consistent, the second probe response information is replied, and if the channels are inconsistent, the probe response information is not replied.
[0153] If the current device is a coordinator, after receiving the second probe request information broadcast by the third target interactive device, whether to reply to the second probe response information is determined according to the consistency of the channels, if the channels are consistent, the second probe response information is replied, and if the channels are inconsistent, the probe response information is not replied.
[0154] The third target interactive device (coordinator) broadcasts target synchronization information to the sub-device 1 and the sub-device 2;
[0155] If the coordinator is powered off, the sub-device 1 and the sub-device 2 cannot obtain the target synchronization information, i.e., the heartbeat timeout becomes an isolated point device, and then the sub-device 1 and the sub-device 2 scan the router respectively and switch to the channel of the router, if the heartbeat is timed out again after switching, it is called an initial device;
[0156] After the sub-device 1 and the sub-device 2 are called initial devices, the sub-device 1 and the sub-device 2 broadcast probe request information respectively, and after receiving the probe response information of the other party, the sub-device 1 and the sub-device 2 become coordinators respectively;
[0157] Then, the sub-device 1 and the sub-device 2 perform conflict detection to determine that the sub-device 1 is a coordinator, and the sub-device 2 is switched from a coordinator to a sub-device.
[0158] If the third target interactive device is re-powered, the third target interactive device broadcasts the probe request information, and if no probe response information is received, the third target interactive device becomes the coordinator, and performs the collision detection with the sub-device 1 (which is the coordinator at this time), determines that the third target interactive device is the final coordinator, and switches the sub-device 1 from the coordinator to the sub-device. At this time, the sub-device 1 immediately sends the information indicating the switching of the channel to the sub-device 2.
[0159] If the third target interactive device is re-powered and reconnects to the router, the third target interactive device broadcasts the probe request information and receives the probe response information returned by the sub-device 1, and then the third target interactive device becomes the sub-device. Since the third target interactive device is the coordinator in the first place, the sub-device 1 (which is the coordinator at this time) performs the collision detection with the third target interactive device, determines that the third target interactive device is the final coordinator, and switches the sub-device 1 from the coordinator to the sub-device. At this time, the sub-device 1 immediately sends the information indicating the switching of the channel to the sub-device 2.
[0160] Subsequently, the third target interactive device (the coordinator) periodically broadcasts the target synchronization information to the sub-device 1 and the sub-device 2.
[0161] That is, in the embodiments of the present application, after the step of "updating the target synchronization information according to the detection result information", the method further includes:
[0162] If the second probe request information broadcasted by the third target interactive device among the at least one interactive device is received, the communication channel information is extracted from the second probe request information;
[0163] If the communication channel information is inconsistent with the default communication channel information of the current device, the second probe request information is cancelled;
[0164] If the communication channel information is consistent with the default communication channel information of the current device, the second probe response information for the probe request information is generated, and the second probe response information is sent to the third target interactive device, wherein the third target interactive device communicates according to the target synchronization information in the second probe response information;
[0165] The third target interaction device includes at least one of the following: an interaction device that is powered off and then powered on again, an interaction device whose router that has been connected and configured is replaced, an interaction device whose service set identifier of the router that has been connected and configured is changed, an interaction device whose router that has been connected and configured is powered off and then powered on again, or an interaction device that is reconfigured.
[0166] That is, if the current device becomes an initial device or the multi-device interaction switch is turned on, the detection instruction is triggered, and the process of determining the coordinator and the target synchronization information is started. That is, in some embodiments of the present application, the detection instruction is generated by the current device after the multi-device interaction switch is turned on, or is generated after the current device becomes an initial device, wherein the initial device refers to a device that cannot receive the target synchronization information broadcast by the interaction device.
[0167] In summary, the embodiments of the present application determine the device response result according to the first interaction feature information generated by itself and the second interaction feature information received from other interaction devices, and then control the response of the current device according to the device response result, so as to determine whether the current device is suitable for responding according to the interaction feature information of each device, and to control whether the current device responds to the device interaction information.
[0168] Each device responds to the comparison of its own interaction feature information and the interaction feature information received from other devices, so as to realize the selection of the responding device in the multi-device scenario, reduce the number of responding devices and waste of resources, and also select the device that meets the user's expectation based on the interaction feature information, thereby improving the interaction experience.
[0169] Since at least one of the current device and each interaction device can be an unconfigured device, the responding device selection scheme in the multi-device scenario of the embodiments of the present application is suitable for the selection of unconfigured devices, that is, the device selected for responding can be a configured device or an unconfigured device, thereby improving the diversity of device processing, and more devices participating in the selection are more likely to select a device that meets the user's interaction demand, thereby improving the interaction experience.
[0170] The sound pressure value or the signal-to-noise ratio is used to improve the accuracy of selecting the responding device in the multi-device scenario.
[0171] The negotiation of the channels of the devices before the wake-up device helps the devices to exchange the interaction feature information through the negotiated channels when the wake-up device is woken up.
[0172] To better implement the device control method, the application further provides a device control apparatus based on the device control method. The meanings of the terms are the same as those in the device control method, and the specific implementation details can be referred to the description of the method embodiments.
[0173] Referring to FIG. 9, FIG. 9 is a structural schematic diagram of the device control apparatus according to an embodiment of the application. The device control apparatus can specifically include:
[0174] The detection module 301 is configured to determine first interaction feature information corresponding to the device interaction information if the device interaction information is detected.
[0175] The communication module 302 is configured to broadcast the first interaction feature information to at least one interaction device within a communication range, and receive second interaction feature information broadcast by each interaction device, wherein each second interaction feature information is determined by each interaction device according to the device interaction information.
[0176] The determination module 303 is configured to determine a device response result according to the first interaction feature information and the second interaction feature information.
[0177] The control module 304 is configured to control the response of the current device to the device interaction information according to the device response result.
[0178] The current device and at least one of the interaction devices are non-network configuration devices.
[0179] Optionally, in some embodiments of the application, the device response result includes responding to the device interaction information or not affecting the device interaction information, and the control module 304 includes:
[0180] The first control unit is configured to respond to the device interaction information according to the device response result if the device response result is to respond to the device interaction information.
[0181] The second control unit is configured to keep the current device in a current state if the device response result is not to respond to the device interaction information, wherein the current state indicates that the current device does not respond to the device interaction information.
[0182] In some embodiments of the application, the determination module 303 includes:
[0183] The first determination unit is configured to determine first detection time information corresponding to the first interaction feature information, and determine second detection time information corresponding to each second interaction feature information.
[0184] The second determining unit is configured to determine, from the first detection time information and each second detection time information, target detection time information in which a time of detecting the device interaction information is earliest.
[0185] The third determining unit is configured to determine, according to the first interaction feature information and each second interaction feature information, the device response result by taking the target detection time information as starting time information and according to a first preset time length.
[0186] In some embodiments of the present application, the device interaction information includes voice wake-up information, and the third determining unit includes: a first determining sub-unit, configured to extract a first sound pressure value from the first interaction feature information, and extract a second sound pressure value from the second interaction feature information, and determine the device response result according to the size of the first sound pressure value and each second sound pressure value; and / or a second determining sub-unit, configured to extract a first signal-to-noise ratio value from the first interaction feature information, and extract a second signal-to-noise ratio value from the second interaction feature information, and determine the device response result according to the size of the first signal-to-noise ratio value and each second signal-to-noise ratio value. In some embodiments of the present application, the first determining sub-unit is specifically configured to:
[0187] If the first sound pressure value is greater than each second sound pressure value, the response device interaction information is set as the device response result.
[0188] If the first sound pressure value is less than any one of the second sound pressure values, the non-response device interaction information is set as the device response result.
[0189] If the first sound pressure value is equal to the maximum value of each second sound pressure value, the first physical address of the current device and the second physical address of the interaction device corresponding to the maximum value are obtained, and the device response result is determined according to the first physical address and the second physical address.
[0190] In some embodiments of the present application, the apparatus further includes a coordination module, and the coordination module includes:
[0191] The broadcasting unit is configured to broadcast, in response to a detection instruction, the first detection request information to at least one interaction device within a communication range, the interaction device including a network-onboarding device or a network-non-onboarding device.
[0192] The fourth determining unit is configured to determine detection result information corresponding to the first detection request information.
[0193] The fifth determining unit is configured to determine target synchronization information according to the detection result information, wherein the current device and each interaction device communicate through the target synchronization information.
[0194] The communication module 302 includes:
[0195] The communication unit is configured to broadcast the first interaction feature information to at least one interactive device in a communication range through target channel information in the target synchronization information, and receive second interaction feature information broadcast by each interactive device through the target channel information.
[0196] In some embodiments of the present application, the fifth determination unit comprises:
[0197] The third determination sub-unit is configured to extract the target synchronization information from the first detection response information if the detection result information indicates that the first target interactive device in the at least one interactive device feeds back the first detection response information to the first detection request information.
[0198] The fourth determination sub-unit is configured to generate the target synchronization information according to the networking state of the current device, broadcast a conflict detection request information to the at least one interactive device, determine detection result information to the conflict detection request information, and update the target synchronization information according to the detection result information if the detection result information indicates that no first detection response information to the first detection request information is fed back by any interactive device in the at least one interactive device.
[0199] In some embodiments of the present application, the fourth determination sub-unit is specifically configured to:
[0200] If the detection result information indicates that the second target interactive device in the at least one interactive device feeds back the conflict detection response information to the conflict detection request information, the priority comparison result of the current device and the second target interactive device is determined according to the conflict detection response information.
[0201] If the priority comparison result indicates that the priority of the current device is higher, the target synchronization information generated according to the default communication channel information is kept unchanged.
[0202] If the priority comparison result indicates that the priority of the current device is lower, the peer synchronization information is extracted from the conflict detection response information, and the target synchronization information is updated according to the peer synchronization information.
[0203] If the detection result information indicates that no conflict detection response information to the conflict detection request information is fed back by any interactive device in the at least one interactive device, the target synchronization information generated according to the default communication channel information is kept unchanged.
[0204] In some embodiments of the present application, the fourth determination sub-unit is specifically configured to:
[0205] If the networking state of the current device is not in the network, the target synchronization information is generated according to the default communication channel information of the current device; if the networking state of the current device is in the network, the target synchronization information is generated according to the communication channel of the router connected by the current device.
[0206] wherein, in some embodiments of the present application, the coordination module further comprises:
[0207] a switching unit, configured to, if the current device is a commissioned device and the router connected by the current device switches the communication channel to another communication channel, switch the current device to the other communication channel as well, wherein each interactive device scans and switches to the other communication channel of the router.
[0208] wherein, in some embodiments of the present application, the coordination module further comprises an analysis unit, the analysis unit comprising:
[0209] an extraction sub-unit, configured to, if the second probe request information broadcast by the third target interactive device among the at least one interactive device is received, extract the communication channel information from the second probe request information;
[0210] a first analysis sub-unit, configured to, if the communication channel information is inconsistent with the default communication channel information of the current device, cancel the reply to the second probe request information;
[0211] a second analysis sub-unit, configured to, if the communication channel information is consistent with the default communication channel information of the current device, generate second probe response information for the probe request information, and send the second probe response information to the third target interactive device, wherein the third target interactive device communicates according to the target synchronization information in the second probe response information;
[0212] wherein, the third target interactive device comprises at least one of an interactive device that is powered off and then powered on again, an interactive device whose connected router is replaced after being commissioned, an interactive device whose service set identifier of the connected router is changed after being commissioned, an interactive device whose connected router is powered off and then powered on again after being commissioned, or an interactive device that is re-commissioned. In some embodiments of the present application, the probe instruction is generated by the current device after the multi-device interaction switch is turned on, or is generated after the current device becomes an initial device, wherein the initial device refers to a device that cannot receive the target synchronization information broadcast by the interactive device.
[0213] The embodiment of the present application first determines the first interaction feature information corresponding to the device interaction information if the detection module 301 detects the device interaction information, then the communication module 302 broadcasts the first interaction feature information to at least one interaction device in the communication range, and receives the second interaction feature information broadcast by each interaction device, each second interaction feature information is determined by each interaction device according to the device interaction information, then the determination module 303 determines the device response result according to the first interaction feature information and each second interaction feature information, and then the control module 304 controls the response of the current device to the device interaction information according to the device response result; wherein at least one of the current device and each interaction device is an unconfigured network device. Wherein, the embodiment of the present application generates the first interaction feature information and receives the second interaction feature information of other interaction devices, and determines the device response result according to the first interaction feature information and each second interaction feature information, and then controls the response of the current device according to the device response result, determines whether the current device is suitable for responding according to the interaction feature information of each device, and controls whether the current device responds to the device interaction information.
[0214] Wherein, each device compares its own interaction feature information with the received interaction feature information of other devices and controls the response, so as to realize the screening of the responding device in the multi-device scene, reduce the number of responding devices and reduce resource waste, and also screen the device meeting the user's expectation based on the interaction feature information, and improve the interaction experience.
[0215] Wherein, since at least one of the current device and each interaction device can be an unconfigured network device, the responding device screening scheme in the multi-device scene of the embodiment of the present application is suitable for the screening of unconfigured network devices, that is, the device for responding finally screened can be a configured network device or an unconfigured network device, which improves the diversity of device processing, and more devices participating in the screening are more likely to screen the device meeting the user's interaction demand, thereby improving the interaction experience.
[0216] In addition, the present application also provides an electronic device, as shown in FIG. 10, which shows the structure schematic diagram of the electronic device related to the present application, in particular:
[0217] The electronic device can include a processor 401 with one or more processing cores, a memory 402 with one or more computer readable storage media, a power supply 403, and an input unit 404, etc. Those skilled in the art can understand that the electronic device structure shown in FIG. 10 does not constitute a limitation on the electronic device, and can include more or fewer components than the illustration, or combine certain components, or different component arrangements. Among them:
[0218] The processor 401 is the control center of the electronic device, connects each part of the entire electronic device by various interfaces and lines, executes various functions of the electronic device and processes data by running or executing software programs and / or modules stored in the memory 402 and calling data stored in the memory 402, thereby monitoring the entire electronic device. Optionally, the processor 401 can include one or more processing cores; preferably, the processor 401 can integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface and application programs, etc., and the modem processor mainly processes wireless communication. It can be understood that the above-mentioned modem processor can also not be integrated into the processor 401. The memory 402 can be used to store software programs and modules, and the processor 401 executes various function applications and data processing by running the software programs and modules stored in the memory 402. The memory 402 can mainly include a program storage area and a data storage area, wherein the program storage area can store the operating system, at least one application program required by the function (such as sound playing function, image playing function, etc.) and the like; the data storage area can store data created according to the use of the electronic device and the like. In addition, the memory 402 can include a high-speed random access memory, and can also include a non-volatile memory, for example, at least one magnetic disk storage device, flash memory device, or other volatile solid-state memory device. Accordingly, the memory 402 can also include a memory controller to provide the processor 401 with access to the memory 402.
[0219] The electronic device also includes a power supply 403 for supplying power to each component, and preferably, the power supply 403 can be logically connected to the processor 401 through a power management system, so as to realize the functions of managing charging, discharging and power consumption management through the power management system. The power supply 403 can also include one or more than one direct current or alternating current power supply, a recharging system, a power supply device debugging circuit, a power supply converter or inverter, a power supply state indicator and any other components.
[0220] The electronic device can also include an input unit 404, which can be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control. Although not shown, the electronic device can also include a display unit, etc., which will not be described here. Specifically, in the embodiment, the processor 401 in the electronic device will load the executable file corresponding to the process of one or more than one application program into the memory 402 according to the following instructions, and run the application program stored in the memory 402 by the processor 401, thereby realizing the steps in any device control method provided by the embodiments of the application.
[0221] The current device of the embodiment of the present application determines the first interaction feature information corresponding to the device interaction information if the device interaction information is detected, broadcasts the first interaction feature information to at least one interaction device in the communication range, receives the second interaction feature information broadcast by each interaction device, each second interaction feature information is determined by each interaction device according to the device interaction information, determines the device response result according to the first interaction feature information and each second interaction feature information, and controls the response of the current device to the device interaction information according to the device response result.
[0222] Among them, the embodiment of the present application determines the device response result according to the first interaction feature information generated by itself and the second interaction feature information received by other interaction devices, and then controls the response of the current device according to the device response result, so as to determine whether the current device is suitable for responding according to the interaction feature information of each device, and to control whether the current device responds to the device interaction information.
[0223] Among them, each device responds according to the comparison of its own interaction feature information and the received interaction feature information of other devices, so as to realize the screening of the responding device in the multi-device scene, reduce the number of responding devices and reduce resource waste, and also select the device meeting the user's expectation based on the interaction feature information, and improve the interaction experience.
[0224] Among them, since at least one of the current device and each interaction device can be a device that has not been configured, the responding device screening scheme in the multi-device scene of the embodiment of the present application is suitable for the screening of the device that has not been configured, that is, the device for responding finally screened can be a device that has been configured or a device that has not been configured, which improves the diversity of device processing, and more devices participating in the screening are more likely to screen the device meeting the user's interaction demand, and improve the interaction experience.
[0225] The specific implementation of each operation can be referred to the foregoing embodiments, which will not be described here.
[0226] Those skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructions, or by instructions controlling related hardware, which can be stored in a computer readable storage medium and loaded and executed by a processor.
[0227] Therefore, the present application provides a computer readable storage medium, which stores a computer program capable of being loaded by a processor to execute the steps in any device control method provided by the present application.
[0228] The specific implementation of the above operations can refer to the foregoing embodiments, which will not be described here again.
[0229] The computer readable storage medium can include a read only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0230] Due to the instructions stored in the computer readable storage medium, the steps in any of the device control methods provided by the present application can be executed, and thus the beneficial effects that can be achieved by any of the device control methods provided by the present application can be achieved. Details are described in the foregoing embodiments, which will not be described here again.
[0231] The device control method, the device, the electronic device and the computer readable storage medium provided by the present application are described in detail above, and the principle and implementation manner of the present application are described by applying specific examples in the present application. The foregoing embodiment is only used to help understand the method of the present application and its core idea; meanwhile, for those skilled in the art, according to the idea of the present application, the specific implementation manner and application range will be changed, and the content of the specification should not be understood as the limitation of the present application.
[0232] It should be noted that in the specific embodiments of the present application, the data related to the user identifier, the device physical address, the device interaction information (voice information), the time information, the interaction feature information (sound pressure value or signal-to-noise ratio), the device networking state, the service set identifier of the router, etc. When the foregoing embodiments of the present application are applied to specific products or technologies, the user's permission or consent needs to be obtained, and the collection, use and processing of related data need to comply with relevant laws, regulations and standards of relevant countries and regions.
Claims
1. A device control method in which, Applied to a current device, the method comprises: If device interaction information is detected, determining first interaction feature information corresponding to the device interaction information; Broadcasting the first interaction feature information to at least one interaction device within a communication range, and receiving second interaction feature information broadcast by each of the interaction devices, each of the second interaction feature information being determined by each of the interaction devices according to the device interaction information; Determining a device response result according to the first interaction feature information and each of the second interaction feature information; Controlling the response of the current device to the device interaction information according to the device response result; Wherein, at least one of the current device and each of the interaction devices is a non-networking device.
2. The device control method according to claim 1, wherein The device response result includes responding to the device interaction information or not affecting the device interaction information, and the controlling the response of the current device to the device interaction information according to the device response result comprises: If the device response result is to respond to the device interaction information, responding to the device interaction information according to the device response result; If the device response result is not to respond to the device interaction information, keeping the current device in a current state, wherein the current state indicates that the current device does not respond to the device interaction information.
3. The device control method according to claim 1, wherein The determining a device response result according to the first interaction feature information and each of the second interaction feature information comprises: Determining first detection time information corresponding to the first interaction feature information, and determining second detection time information corresponding to each of the second interaction feature information; Determining target detection time information with the earliest time from the first detection time information and each of the second detection time information, which detects the device interaction information; Taking the target detection time information as the starting time information, determining a device response result according to the first interaction feature information and each of the second interaction feature information within a first preset time length.
4. The device control method according to claim 3, wherein The device interaction information includes voice wake-up information, and the determining a device response result according to the first interaction feature information and each of the second interaction feature information comprises: Extracting a first sound pressure value from the first interaction feature information, and extracting a second sound pressure value from the second interaction feature information, and determining a device response result according to the size of the first sound pressure value and each of the second sound pressure value.
5. The device control method according to claim 3, wherein The device interaction information includes voice wake-up information, and the determining a device response result according to the first interaction feature information and each of the second interaction feature information comprises: Extracting a first signal-to-noise ratio value from the first interaction feature information, and extracting a second signal-to-noise ratio value from the second interaction feature information, and determining a device response result according to the size of the first signal-to-noise ratio value and each of the second signal-to-noise ratio value.
6. The device control method according to claim 4, wherein The determining a device response result according to the size of the first sound pressure value and each of the second sound pressure value comprises: If the first sound pressure value is greater than each of the second sound pressure value, the device response result is set to respond to the device interaction information; setting the device response result as the no-response-to-device-interaction information if the first sound pressure value is less than any of the second sound pressure values; if the first sound pressure value is equal to the maximum of the second sound pressure values, obtaining a first physical address of the current device and a second physical address of an interaction device corresponding to the maximum, and determining a device response result according to the first physical address and the second physical address.
7. The device control method according to claim 1, wherein Before the method further comprises: broadcasting first detection request information to at least one interaction device within a communication range in response to a detection instruction, the interaction device including a networked device or a non-networked device; determining detection result information for the first detection request information; determining target synchronization information according to the detection result information, wherein the current device and each of the interaction devices communicate through the target synchronization information.
8. The device control method according to claim 7, wherein The broadcasting of the first interaction feature information to at least one interaction device within a communication range, and the receiving of second interaction feature information broadcast by each of the interaction devices, comprises: broadcasting the first interaction feature information to at least one interaction device within a communication range through target channel information in the target synchronization information, and receiving second interaction feature information broadcast by each of the interaction devices through the target channel information.
9. The device control method according to claim 8, wherein The determining of the target synchronization information according to the detection result information comprises: if the detection result information represents that first detection response information for the first detection request information is received from a first target interaction device in the at least one interaction device, extracting target synchronization information from the first detection response information; if the detection result information represents that no first detection response information for the first detection request information is received from any interaction device in the at least one interaction device, generating target synchronization information according to a networking state of the current device, broadcasting conflict detection request information to the at least one interaction device, determining detection result information for the conflict detection request information, and updating the target synchronization information according to the detection result information.
10. The device control method according to claim 9, wherein The updating of the target synchronization information according to the detection result information comprises: if the detection result information represents that conflict detection response information for the conflict detection request information is detected from a second target interaction device in the at least one interaction device, determining a priority comparison result of the current device and the second target interaction device according to the conflict detection response information; if the priority comparison result represents that the priority of the current device is higher, keeping the target synchronization information generated according to the default communication channel information unchanged; if the priority comparison result represents that the priority of the current device is lower, extracting peer synchronization information from the conflict detection response information, and updating the target synchronization information according to the peer synchronization information; If the detection result information represents that no conflict detection response information for the conflict detection request information is fed back by any of the at least one interactive device, the target synchronization information generated according to the default communication channel information of the current device is kept unchanged.
11. The device control method according to claim 9, wherein The target synchronization information generated according to the networking state of the current device comprises: If the networking state of the current device is not in the network configuration, the target synchronization information is generated according to the default communication channel information of the current device; If the networking state of the current device is in the network configuration, the target synchronization information is generated according to the communication channel of the router connected by the current device.
12. The device control method according to claim 9, wherein After the target synchronization information is generated according to the networking state of the current device, the method further comprises: If the current device is in the network configuration, and the communication channel of the router connected by the current device is switched to another communication channel, the current device is also switched to the other communication channel, wherein each interactive device scans and switches to the other communication channel of the router.
13. The device control method according to claim 9, wherein After the target synchronization information is updated according to the detection result information, the method further comprises: If the second probe request information broadcast by a third target interactive device of the at least one interactive device is received, the communication channel information is extracted from the second probe request information; If the communication channel information is inconsistent with the default communication channel information of the current device, the second probe request information is cancelled; If the communication channel information is consistent with the default communication channel information of the current device, the second probe response information for the probe request information is generated, and the second probe response information is sent to the third target interactive device, wherein the third target interactive device communicates according to the target synchronization information in the second probe response information; The third target interactive device comprises at least one of the following: an interactive device that is powered off and then powered on, an interactive device whose connected router is replaced after being in the network configuration, an interactive device whose service set identification of the connected router is changed after being in the network configuration, an interactive device whose connected router is powered off and then powered on after being in the network configuration, or an interactive device that is reconfigured in the network.
14. The device control method according to claim 8, wherein The probe instruction is generated by the current device after the multi-device interactive switch is turned on, or is generated by the current device after the current device becomes an initial device, wherein the initial device refers to a device that cannot receive the target synchronization information broadcast by the interactive device.
15. The device control method according to claim 12, wherein The method further comprises: if the current device is a coordinator, after receiving the second probe request information broadcast by the interactive device of the third target interactive device, if the channels are consistent, the second probe response information is replied, and if the channels are inconsistent, the probe response information is not replied.
16. An apparatus control device, wherein, The device is applied to a current device, and comprises: The detection module is configured to determine the first interactive feature information corresponding to the device interaction information if the device interaction information is detected. The communication module is configured to broadcast the first interaction feature information to at least one interaction device within a communication range, and receive second interaction feature information broadcast by each of the interaction devices, wherein each of the second interaction feature information is determined by each of the interaction devices according to the device interaction information; The determination module is configured to determine a device response result according to the first interaction feature information and each of the second interaction feature information; The control module is configured to control a response of the current device to the device interaction information according to the device response result. The current device and at least one of the interaction devices are non-network configuration devices.
17. The device control apparatus of claim 16, wherein, The device response result includes responding to the device interaction information or not affecting the device interaction information, and the control of the response of the current device to the device interaction information according to the device response result includes: If the device response result is to respond to the device interaction information, the current device responds to the device interaction information according to the device response result; If the device response result is not to respond to the device interaction information, the current device remains in a current state, wherein the current state indicates that the current device does not respond to the device interaction information.
18. The device control apparatus of claim 16, wherein, The determination of the device response result according to the first interaction feature information and each of the second interaction feature information includes: determining first detection time information corresponding to the first interaction feature information, and determining second detection time information corresponding to each of the second interaction feature information; determining target detection time information with the earliest time of detecting the device interaction information from the first detection time information and each of the second detection time information; determining the device response result according to the first interaction feature information and each of the second interaction feature information with the target detection time information as starting time information and according to a first preset time length.
19. An electronic device, comprising: The computer readable storage medium stores a computer program, and the computer program is executed by the processor to implement the steps in the device control method according to any one of claims 1-15.
20. A computer readable storage medium, wherein, The computer readable storage medium stores a computer program, and the computer program is executed by the processor to implement the steps in the device control method according to any one of claims 1-15.
Citation Information
Patent Citations
Terminal device, awakening method and device thereof and computer readable storage medium
CN113096658A
Judgment method for multi-device voice control, computer device and readable storage medium
CN114863925A
Distributed voice response method and device, electronic equipment and storage medium
CN115294978A
Equipment control method and device, electronic equipment and computer readable storage medium
CN119252238A
Information processing apparatus, information processing method, and non-transitory computer readable medium
US20190089552A1