A device control method, device, system and electronic device
By detecting the user's location and determining the appropriate device resources when receiving the interactive request from the smart device, the problem that the user cannot answer in time is solved and the user experience is improved.
Patent Information
- Application Number
- CN202111536322.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-15
- Publication Date
- 2025-06-17
- Estimated Expiration
- 2041-12-15
AI Technical Summary
The problem that users cannot answer in time because they are not near a device, especially when smart devices are distributed in different locations in the home.
When receiving an interaction request sent by any associated device in the preset area, the target position of the target object is detected, the first candidate device and its hardware resources are determined, and the target device and the target resource are determined in the device for responding to the interaction request.
It realizes that the associated device near the user responds to the interactive request sent by any associated device in the preset area, so that the user can receive the interactive request in a timely manner and respond, and improves the user experience.
Smart Images

Figure CN114201301B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of device control, and particularly to a device control method, apparatus, system, and electronic device. Background Art
[0002] With the development of technology and the improvement of people's living standards, the types and quantities of intelligent devices in each household are increasing, such as mobile phones, computers, refrigerators, washing machines, and air conditioners. Various intelligent devices are often distributed at different locations in the household. For example, the computer is placed in the study, and the refrigerator is placed in the kitchen, etc., thus bringing convenience to people's daily lives. However, in the actual use process, there are often situations where the user cannot respond in time because they are not near a certain device. For example, when the washing machine finishes washing and gives a clothes-hanging reminder, the user is not beside the washing machine and cannot receive the reminder in time. Or, when the user is cooking in the kitchen and the mobile phone placed in the living room receives a call, the user cannot answer it in time. Summary of the Invention
[0003] The purpose of the embodiments of this application is to provide a device control method, apparatus, system, and electronic device to solve the problem that the user cannot respond in time because they are not near a certain device.
[0004] The specific technical solutions are as follows:
[0005] In a first aspect, a device control method is provided, and the method includes:
[0006] When receiving an interaction request sent by any associated device within a preset area, detecting the target position of the target object within the preset area;
[0007] Among multiple associated devices, determining a first candidate device based on the target position, and determining the hardware resources corresponding to the first candidate device;
[0008] Among the first candidate devices, determining a target device and the target resources corresponding to the target device based on the interaction request and the hardware resources corresponding to the first candidate device, where the target resources are used to implement the function corresponding to the interaction request;
[0009] Responding to the interaction request by using the target device and the target resources corresponding to the target device.
[0010] Optionally, the step of determining a target device and the target resources corresponding to the target device based on the interaction request and the hardware resources corresponding to the first candidate device among the first candidate devices includes:
[0011] Determining the target function corresponding to the interaction request;
[0012] Among the hardware resources corresponding to the first candidate device, determine the candidate resources corresponding to the target function;
[0013] Determine the first candidate device corresponding to the candidate resources as the second candidate device;
[0014] Determine the target device among the second candidate devices, and use the candidate resources corresponding to the target device as the target resources.
[0015] Optionally, the determining the target device among the second candidate devices includes:
[0016] For each of the second candidate devices, determine the number of times the candidate resources corresponding to the second candidate device are invoked;
[0017] Determine the second candidate device with the most invocations as the target device.
[0018] Optionally, the determining the target device among the second candidate devices includes:
[0019] For each of the second candidate devices, determine the distance between the second candidate device and the target location;
[0020] Determine the second candidate device with the shortest distance as the target device.
[0021] Optionally, the determining the target device among the second candidate devices includes:
[0022] For each of the second candidate devices, generate selection information corresponding to the second candidate device;
[0023] Determine a display device among the associated devices, and use the display device to display the selection information;
[0024] When receiving the confirmation information corresponding to the selection information returned by the display device, determine the second candidate device corresponding to the confirmation information as the target device.
[0025] Optionally, the determining the first candidate device based on the target location among multiple associated devices includes:
[0026] Determine the target area corresponding to the target location within the preset area;
[0027] For multiple associated devices, determine the first device location where the associated device is located;
[0028] Determine the associated device whose first device location is within the target area as the first candidate device.
[0029] Optionally, detecting the target position of the target object in the preset area includes:
[0030] Determining a detection device among a plurality of the associated devices corresponding to the preset area;
[0031] For each of the detection devices, obtaining the picture taken by the detection device;
[0032] Determining the picture with the target object as the target picture, and determining the detection device corresponding to the target picture as the target detection device;
[0033] Determining the second device position where the target detection device is located, and determining the relative position of the target object relative to the target detection device based on the target picture;
[0034] Determining the target position where the target object is located based on the second device position and the relative position.
[0035] In a second aspect, a device control device is provided, and the device includes:
[0036] A detection module, configured to detect the target position of the target object in the preset area when receiving an interaction request sent by any associated device in the preset area;
[0037] A first determination module, configured to determine a first candidate device based on the target position among a plurality of the associated devices, and determine the hardware resources corresponding to the first candidate device;
[0038] A second determination module, configured to determine a target device and the target resources corresponding to the target device in the first candidate device, where the target resources are used to implement the function corresponding to the interaction request;
[0039] A response module, configured to respond to the interaction request by using the target device and the target resources corresponding to the target device.
[0040] Optionally, the second determination module is specifically configured to:
[0041] Determine the target function corresponding to the interaction request;
[0042] Determine the candidate resources corresponding to the target function in the hardware resources corresponding to the first candidate device;
[0043] Determine the first candidate device corresponding to the candidate resources as the second candidate device;
[0044] Determine the target device among the second candidate devices, and use the candidate resources corresponding to the target device as the target resources.
[0045] Optionally, the second determination module is further configured to:
[0046] For each of the second candidate devices, determine the number of times the candidate resources corresponding to the second candidate device are invoked;
[0047] Determine the second candidate device with the most invocations as the target device.
[0048] Optionally, the second determination module is further configured to:
[0049] For each of the second candidate devices, determine the distance between the second candidate device and the target location;
[0050] Determine the second candidate device with the shortest distance as the target device.
[0051] Optionally, the second determination module is further configured to:
[0052] For each of the second candidate devices, generate selection information corresponding to the second candidate device;
[0053] Determine a display device among the associated devices, and use the display device to display the selection information;
[0054] When receiving the determination information corresponding to the selection information returned by the display device, determine the second candidate device corresponding to the determination information as the target device.
[0055] Optionally, the first determination module is specifically configured to:
[0056] Determine a target area corresponding to the target location within the preset area;
[0057] For multiple associated devices, determine the first device location where the associated devices are located;
[0058] Determine the associated devices whose first device location is within the target area as the first candidate devices.
[0059] Optionally, the detection module is specifically configured to:
[0060] Determine a detection device among the multiple associated devices corresponding to the preset area;
[0061] For each detection device, obtain the picture taken by the detection device;
[0062] Determine the screen where the target object exists as the target screen, and determine the detection device corresponding to the target screen as the target detection device;
[0063] Determine the second device position where the target detection device is located, and determine the relative position of the target object relative to the target detection device based on the target screen;
[0064] Determine the target position where the target object is located based on the second device position and the relative position.
[0065] In a third aspect, a device control system is provided, and the system includes: a control device and a plurality of associated devices,
[0066] The plurality of associated devices are configured to send interaction requests to the control device;
[0067] The control device is configured to detect the target position where the target object is located in the preset area when receiving an interaction request sent by any associated device in the preset area; determine a first candidate device based on the target position among the plurality of associated devices, and determine the hardware resources corresponding to the first candidate device; among the first candidate devices, determine a target device and the target resources corresponding to the target device based on the interaction request and the hardware resources corresponding to the first candidate device, where the target resources are used to implement the function corresponding to the interaction request; use the target device and the target resources corresponding to the target device to respond to the interaction request.
[0068] In a fourth aspect, an electronic device is provided, including a processor, a communication interface, a memory, and a communication bus. Among them, the processor, the communication interface, and the memory complete communication with each other through the communication bus;
[0069] The memory is used to store a computer program;
[0070] The processor is configured to implement the method steps of any one of the first aspect when executing the program stored on the memory.
[0071] In a fifth aspect, a computer-readable storage medium is provided, characterized in that the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps of any one of the first aspect are implemented.
[0072] In a sixth aspect, a computer program product including instructions is provided, and when it runs on a computer, it causes the computer to execute the device control method described above.
[0073] Advantageous effects of the embodiments of this application:
[0074] Embodiments of the present application provide a device control method, apparatus, system, and electronic device. In the present application, when an interaction request sent by any associated device within a preset area is received, the target position of the target object is detected within the preset area; then, among multiple associated devices, a first candidate device is determined based on the target position, and the hardware resources corresponding to the first candidate device are determined; then, among the first candidate devices, a target device and the target resources corresponding to the target device are determined based on the interaction request and the hardware resources corresponding to the first candidate device, where the target resources are used to implement the function corresponding to the interaction request; finally, the interaction request is responded to by using the target device and the target resources corresponding to the target device.
[0075] Through the present application, when an interaction request sent by a device is received, a target device and corresponding target resources are determined according to the interaction request and the position where the target object is located, and then, the interaction request is responded to by using the target resources corresponding to the target device, so as to realize that an interaction request sent by any associated device within a preset area is responded to by an associated device near the user, facilitating the user to receive the interaction request in a timely manner and respond thereto, and improving the user experience.
[0076] Of course, it is not necessary for any product or method implementing the present application to achieve all the above-mentioned advantages simultaneously. BRIEF DESCRIPTION OF THE DRAWINGS
[0077] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, other drawings can also be obtained based on these drawings without creative efforts.
[0078] Figure 1 It is a flowchart of a device control method provided by an embodiment of the present application;
[0079] Figure 2 It is a schematic diagram of a scenario of a device control method provided by an embodiment of the present application;
[0080] Figure 3 It is a schematic diagram of a scenario of another device control method provided by an embodiment of the present application;
[0081] Figure 4 It is a flowchart of a device control method provided by another embodiment of the present application;
[0082] Figure 5 It is a flowchart of a device control method provided by another embodiment of the present application;
[0083] Figure 6Flowchart of a device control method provided by another embodiment of the present application;
[0084] Figure 7 Structural schematic diagram of a device control device provided by an embodiment of the present application;
[0085] Figure 8 Structural schematic diagram of an electronic device provided by an embodiment of the present application. Detailed implementation manners
[0086] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
[0087] Since various intelligent devices are often distributed at different positions in the home, during actual use, there are often situations where the user is not near a certain device and cannot respond in time. For this reason, the embodiments of the present application provide a device control method.
[0088] Next, a device control method provided by the embodiments of the present application will be described in detail in conjunction with the specific implementation manners. As Figure 1 shown, the specific steps are as follows:
[0089] S101, when receiving an interaction request sent by any associated device within a preset area, detect the target position where the target object is located within the preset area.
[0090] In the embodiments of the present application, the preset area is within the coverage of the local area network, and the associated device can be an intelligent device interconnected through the local area network within the preset area. Specifically, device interconnection can be realized based on the HIVE (data warehouse tool) project or HarmonyOS.
[0091] For example, when realizing device interconnection based on the HIVE project, device discovery is completed through the mdns (Multicast DNS) protocol. After obtaining the device IP, communication can be carried out with the device. During the communication process, the device reports the hardware resources it contains, thereby completing registration and realizing the interconnection and interoperability of the hardware resources between devices. Among them, the hardware resources are used to realize the specific functions of the device. For example, the video playback hardware resources of a TV can realize the function of playing video, and the audio playback hardware resources can realize the function of playing audio. As Figure 2 shown, the refrigerator, range hood, washing machine, and mobile phone each report the hardware resources they contain, complete registration, and thus realize interconnection.
[0092] The device control method provided by the embodiments of the present application can be applied to a central control device in a preset area. After the intelligent devices and the central control device in the preset area are powered on, they join the home local area network to establish interconnection and interoperability. As Figure 3 shown, the associated devices (such as Figure 3 the mobile phone, smart TV, smart washing machine, etc. in
[0093] in the preset area can be controlled through the central control device, and the hardware resources of the associated devices can be invoked.
[0094] Furthermore, the target object can be a user. When an associated device needs to convey information to the target object or requires the target object to perform a responsive operation, it will send an interaction request to the central control device. For example, when the washing machine needs to remind the user that "the laundry is completed", or when a call comes in on the mobile phone, an interaction request can be sent to the central control device, or when no response operation from the user is received within a specified time, an interaction request can be sent to the central control device.
[0095] S102. Among the multiple associated devices, determine a first candidate device based on the target position, and determine the hardware resources corresponding to the first candidate device.
[0096] In the embodiments of the present application, a first candidate device can be determined among multiple associated devices according to the target position, and further, the hardware resources included in the first candidate device can be determined.
[0097] As an implementation manner, the associated device whose distance from the target position is less than a preset distance threshold can be determined as the first candidate device. Through this solution, the associated device near the user can be determined as the first candidate device, ensuring that the user can perceive the status of the first candidate device.
[0098] As another implementation manner, the first candidate device can be determined through the following steps:
[0099] Step 1, determine a target area corresponding to the target position in the preset area.
[0100] Step 2, for the multiple associated devices, determine the first device position where the associated device is located.
[0101] Step 3, determine the associated device whose first device position is within the target area as the first candidate device.
[0102] In this embodiment, a target area corresponding to the target position can be determined within a preset area. For multiple associated devices, a first device position where the associated devices are located is determined, and the associated devices whose first device position is within the target area are determined as first candidate devices.
[0103] For example, the preset area is a family house, and the house can be divided into a bedroom, a living room, a dining room, a kitchen, and a bathroom according to the layout. When the target area corresponding to the target position where the user is located is determined to be the living room, the associated devices located in the living room are determined as first candidate devices. Through this solution, the associated devices in the same area as the user can be determined as first candidate devices, ensuring that the user can perceive the status of the first candidate devices.
[0104] S103. Among the first candidate devices, based on the interaction request and the hardware resources corresponding to the first candidate devices, determine a target device and the target resources corresponding to the target device, where the target resources are used to implement the function corresponding to the interaction request.
[0105] S104. Use the target device and the target resources corresponding to the target device to respond to the interaction request.
[0106] In the embodiments of the present application, the target resources are used to implement the function corresponding to the interaction request. Specifically, based on the interaction request and the hardware resources corresponding to the first candidate devices, a target device and the target resources corresponding to the target device can be determined among the first candidate devices, and then the target device and the target resources corresponding to the target device are used to respond to the interaction request.
[0107] In the embodiments of the present application, when an interaction request sent by a device is received, a target device and corresponding target resources are determined according to the interaction request and the location of the target object. Then, the target resources corresponding to the target device are used to respond to the interaction request, so as to implement the response to the interaction request sent by any associated device within the preset area through the associated devices near the user, facilitating the user to receive the interaction request in time and respond, and improving the user experience.
[0108] In another embodiment of the present application, as Figure 4 shown, step S103 may include the following steps:
[0109] S401. Determine the target function corresponding to the interaction request.
[0110] S402. Among the hardware resources corresponding to the first candidate devices, determine the candidate resources corresponding to the target function.
[0111] S403. Determine the first candidate device corresponding to the candidate resources as the second candidate device.
[0112] S404. Determine the target device among the second candidate devices, and use the candidate resources corresponding to the target device as the target resources.
[0113] In the embodiments of the present application, first, determine the target function required to respond to the interaction request. For example, if the content of the interaction request is a video call, the required target function is the video call function. Further, among the hardware resources corresponding to the first candidate devices, determine the candidate resources corresponding to the target function, and determine the first candidate devices corresponding to the candidate resources as the second candidate devices. Among them, the candidate resources corresponding to the target function can be one or more. For example, the hardware resources corresponding to the video call function are video playback resources, video capture resources, audio playback resources, and audio capture resources.
[0114] Further, determine the target device among the second candidate devices, and use the candidate resources corresponding to the target device as the target resources. Among them, the target device can be a single device or a combination of multiple devices. For example, when implementing the video call function, it can be achieved using a mobile phone; it can also be achieved using a combination of a TV and a home camera: using the TV to play the video and audio sent by the peer device, and using the home camera to capture the video and audio of the user.
[0115] Through this solution, it can be ensured that the determined target device and the target resources corresponding to the target device can implement the target function corresponding to the interaction request.
[0116] As an implementation manner, a device can be randomly selected from the second candidate devices as the target device. This implementation manner does not require complex calculations and is simple and efficient.
[0117] As an implementation manner, the target device can also be determined through the following steps:
[0118] Step 1, for each of the second candidate devices, determine the number of times the candidate resources corresponding to the second candidate device are invoked;
[0119] Step 2, determine the second candidate device with the most invocations as the target device.
[0120] In this implementation manner, determine the number of times each second candidate device invokes the candidate resources it contains, and determine the second candidate device with the most invocations as the target device. For example, the second candidate devices include a refrigerator and a range hood, and the candidate resource is the video playback resource. Among them, the playback resource of the refrigerator is invoked 7 times, and the playback resource of the range hood is invoked 8 times. Then, determine the range hood as the target device and the playback resource of the range hood as the target resource. Through this solution, the devices and hardware resources commonly used by users can be selected as the target device and the target resources, which conforms to the user's usage habits and improves the user experience.
[0121] As an implementation method, the target device may also be determined by the following steps:
[0122] Step 1: for each of the second candidate devices, determine the distance between the second candidate device and the target location;
[0123] Step 2: determine the second candidate device that is closest to the target device.
[0124] In this implementation, the distance between each second candidate device and the target location of the user can be determined, and the second candidate device closest to the user can be determined as the target device. Through this solution, the device closest to the user can be determined as the target device, which is convenient for the user to use.
[0125] As an implementation method, the target device may also be determined by the following steps:
[0126] Step 1: for each of the second candidate devices, generate selection information corresponding to the second candidate device;
[0127] Step 2, determining a display device from the associated devices, and using the display device to display the selected information;
[0128] Step three: upon receiving confirmation information corresponding to the selection information returned by the display device, determining the second candidate device corresponding to the confirmation information as the target device.
[0129] In this implementation, selection information corresponding to each second candidate device can be generated, and a display device for displaying the selection information can be determined among the candidate devices, wherein a device having a display function and being closest to the user can be used as a display device, and the display device can be a combination of one device or a plurality of devices, which is used to display the selection information to the user and receive confirmation information input by the user for the selection information. When confirmation information corresponding to the selection information is received from the display device, the second candidate device corresponding to the confirmation information is determined as the target device. Through this solution, the target device can be determined based on the user's selection, so that the determined target device is more in line with the user's wishes, thereby improving the user experience.
[0130] In another embodiment of the present application, Figure 5 As shown, the S101 may include the following steps:
[0131] S501: Determine a detection device from a plurality of associated devices corresponding to the preset area.
[0132] S502: For each of the detection devices, obtain a picture taken by the detection device.
[0133] S503. Determine the screen where the target object exists as the target screen, and determine the detection device corresponding to the target screen as the target detection device.
[0134] S504. Determine the second device position where the target detection device is located, and determine the relative position of the target object relative to the target detection device based on the target screen.
[0135] S505. Determine the target position where the target object is located based on the second device position and the relative position.
[0136] In the embodiment of the present application, among multiple associated devices corresponding to a preset area, a device with a detection function is determined as a detection device, such as a camera with a video capture function. Obtain the screens captured by each detection device, determine the screen where the target object exists as the target screen, and determine the detection device that detects the target screen as the target detection device. Then, determine the second device position where the target detection device is located according to the information during device registration, and determine the relative position of the target object relative to the target detection device based on the target screen. Finally, determine the target position where the target object is located based on the second device position and the relative position.
[0137] Further, multiple detection devices can be controlled to perform detection simultaneously to improve the detection speed, or multiple detection devices can be controlled to perform detection sequentially. When the target object is detected, the detection is stopped to reduce the computational amount during the detection process.
[0138] Further, the detection device can use Object Detection to determine the target object, and then determine the position of the target object.
[0139] Through this solution, a detection device with a detection function can be determined among the associated devices, and then the detection device is used to detect the target position where the target object is located, without additionally setting a detection device, reducing costs. Moreover, this solution can determine the position of the target object through the relative position between the target object and the target detection device, and the determination process is simple and efficient.
[0140] Optionally, taking the example that the mobile phone receives a WeChat video request, the embodiment of the present application also provides a processing flow of the device control method, as Figure 6 shown, and the specific steps are as follows.
[0141] S601. When the mobile phone receives a WeChat video, initiate a WeChat video call request to the central control device;
[0142] S602. The central control device controls a device with recognition ability to perform target recognition, so as to determine the position where the target object is located.
[0143] S603. The central control device determines a suitable device to complete the WeChat call reminder according to the user's location, and provides the hardware resources for WeChat video calls.
[0144] Through this solution, the mobile phone can receive a WeChat video call request through a device near the user, facilitating the user to respond in a timely manner.
[0145] Based on the same technical concept, the embodiment of the present application also provides a device control device, as Figure 7 shown. The device includes:
[0146] A detection module 701, configured to detect the target position of the target object in the preset area when receiving an interaction request sent by any associated device in the preset area;
[0147] A first determination module 702, configured to determine a first candidate device based on the target position among the multiple associated devices, and determine the hardware resources corresponding to the first candidate device;
[0148] A second determination module 703, configured to determine a target device and the target resources corresponding to the target device based on the interaction request and the hardware resources corresponding to the first candidate device among the first candidate devices, where the target resources are used to implement the function corresponding to the interaction request;
[0149] A response module 704, configured to use the target device and the target resources corresponding to the target device to respond to the interaction request.
[0150] Optionally, the second determination module is specifically configured to:
[0151] Determine the target function corresponding to the interaction request;
[0152] Among the hardware resources corresponding to the first candidate device, determine the candidate resources corresponding to the target function;
[0153] Determine the first candidate device corresponding to the candidate resources as the second candidate device;
[0154] Determine the target device among the second candidate devices, and use the candidate resources corresponding to the target device as the target resources.
[0155] Optionally, the second determination module is further configured to:
[0156] For each of the second candidate devices, determine the number of times the candidate resources corresponding to the second candidate device are called;
[0157] Determine the second candidate device with the most call times as the target device.
[0158] Optionally, the second determination module is further configured to:
[0159] For each of the second candidate devices, determine the distance between the second candidate device and the target location;
[0160] Determine the second candidate device with the shortest distance as the target device.
[0161] Optionally, the second determination module is further configured to:
[0162] For each of the second candidate devices, generate selection information corresponding to the second candidate device;
[0163] Determine a display device among the associated devices, and use the display device to display the selection information;
[0164] When receiving the determination information corresponding to the selection information returned by the display device, determine the second candidate device corresponding to the determination information as the target device.
[0165] Optionally, the first determination module is specifically configured to:
[0166] Determine a target area corresponding to the target location within the preset area;
[0167] For multiple associated devices, determine a first device location where the associated device is located;
[0168] Determine the associated device whose first device location is within the target area as the first candidate device.
[0169] Optionally, the detection module is specifically configured to:
[0170] Determine a detection device among multiple associated devices corresponding to the preset area;
[0171] For each detection device, obtain an image captured by the detection device;
[0172] Determine the image in which the target object exists as the target image, and determine the detection device corresponding to the target image as the target detection device;
[0173] Determine a second device location where the target detection device is located, and based on the target image, determine a relative position of the target object with respect to the target detection device;
[0174] Based on the second device location and the relative position, determine the target location where the target object is located.
[0175] Based on the same inventive concept, an embodiment of the present application further provides an electronic device, such as Figure 8 shown, which includes a processor 111, a communication interface 112, a memory 113, and a communication bus 114. Among them, the processor 111, the communication interface 112, and the memory 113 complete mutual communication through the communication bus 114.
[0176] The memory 113 is used to store a computer program;
[0177] When the processor 111 is used to execute the program stored on the memory 113, the following steps are implemented:
[0178] When an interaction request sent by any associated device within a preset area is received, detect the target position of the target object within the preset area;
[0179] Among multiple said associated devices, determine a first candidate device based on the target position, and determine the hardware resources corresponding to the first candidate device;
[0180] Among the first candidate devices, determine a target device and the target resources corresponding to the target device based on the interaction request and the hardware resources corresponding to the first candidate device, and the target resources are used to implement the function corresponding to the interaction request;
[0181] Use the target device and the target resources corresponding to the target device to respond to the interaction request.
[0182] The communication bus mentioned in the above electronic device may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. This communication bus can be divided into an address bus, a data bus, a control bus, etc. For the sake of convenience of representation, only a thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0183] The communication interface is used for communication between the above electronic device and other devices.
[0184] The memory may include a Random Access Memory (RAM), or may also include a Non-Volatile Memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located far from the aforementioned processor.
[0185] The above-mentioned processor may be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0186] In another embodiment provided by the present application, a computer-readable storage medium is further provided. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of any of the above-mentioned device control methods are implemented.
[0187] In another embodiment provided by the present application, a computer program product including instructions is further provided. When it runs on a computer, the computer is caused to execute any of the device control methods in the above-mentioned embodiments.
[0188] In the above-mentioned embodiments, it can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in the embodiments of the present application are generated in whole or in part. The computer may be a general-purpose computer, a dedicated computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center in a wired manner (such as coaxial cable, optical fiber, Digital Subscriber Line (DSL)) or a wireless manner (such as infrared, wireless, microwave, etc.). The computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server or data center that includes one or more integrated available media. The available medium may be a magnetic medium (such as a floppy disk, a hard disk, a magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a Solid State Disk (SSD)).
[0189] It should be noted that in this document, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprising", "including" or any other variant thereof are intended to cover non-exclusive inclusion, such that a process, method, article or device comprising a series of elements not only includes those elements but also includes other elements not expressly listed, or elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "comprising an..." does not exclude the presence of additional identical elements in the process, method, article or device comprising said element.
[0190] The above are only specific embodiments of the present application, enabling those skilled in the art to understand or implement the present application. Various modifications to these embodiments will be obvious to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to these embodiments shown herein, but rather will conform to the widest scope consistent with the principles and novel features claimed herein.
Claims
1. A device control method, characterized in that, The method includes: When an interaction request sent by any associated device within a preset area is received, detecting a target position where a target object is located within the preset area; Among multiple associated devices, determining a first candidate device based on the target position and determining the hardware resources corresponding to the first candidate device; Among the first candidate devices, determining a target device and the target resources corresponding to the target device based on the interaction request and the hardware resources corresponding to the first candidate device, where the target resources are used to implement the function corresponding to the interaction request; The step of determining a target device and the target resources corresponding to the target device among the first candidate devices based on the interaction request and the hardware resources corresponding to the first candidate device includes: Determining the target function corresponding to the interaction request; Among the hardware resources corresponding to the first candidate device, determining candidate resources corresponding to the target function; Determining the first candidate device corresponding to the candidate resources as a second candidate device; Determining the target device among the second candidate devices and using the candidate resources corresponding to the target device as the target resources; The step of determining the target device among the second candidate devices includes: For each second candidate device, determining the number of times the candidate resources corresponding to the second candidate device are invoked; Determining the second candidate device with the most invocations as the target device; Responding to the interaction request by using the target device and the target resources corresponding to the target device.
2. The method according to claim 1, characterized in that, The step of determining the target device among the second candidate devices includes: For each second candidate device, determining the distance between the second candidate device and the target position; Determining the second candidate device with the shortest distance as the target device.
3. The method according to claim 1, characterized in that, The step of determining the target device among the second candidate devices includes: For each second candidate device, generating selection information corresponding to the second candidate device; Determining a display device among the associated devices and using the display device to display the selection information; When receiving confirmation information corresponding to the selection information returned by the display device, determining the second candidate device corresponding to the confirmation information as the target device.
4. The method according to claim 1, characterized in that, The step of determining a first candidate device based on the target position among multiple associated devices includes: Determining a target area corresponding to the target position within the preset area; For multiple associated devices, determining a first device position where the associated device is located; Determining the associated devices whose first device positions are within the target area as the first candidate devices.
5. The method according to claim 1, characterized in that, The step of detecting the target position where the target object is located within the preset area includes: Determining a detection device among multiple associated devices corresponding to the preset area; For each detection device, obtaining the picture taken by the detection device; Determining the picture in which the target object exists as a target picture and determining the detection device corresponding to the target picture as a target detection device; Determine the second device position where the target detection device is located, and determine the relative position of the target object relative to the target detection device based on the target screen; Determine the target position where the target object is located based on the second device position and the relative position.
6. A device control device, characterized in that, The device includes: A detection module, configured to detect the target position where the target object is located in the preset area when receiving an interaction request sent by any associated device in the preset area; A first determination module, configured to determine a first candidate device based on the target position among multiple associated devices, and determine the hardware resources corresponding to the first candidate device; A second determination module, configured to determine a target device and the target resources corresponding to the target device in the first candidate device, where the target resources are used to implement the function corresponding to the interaction request; the determining the target device and the target resources corresponding to the target device in the first candidate device based on the interaction request and the hardware resources corresponding to the first candidate device includes: determining the target function corresponding to the interaction request; determining the candidate resources corresponding to the target function in the hardware resources corresponding to the first candidate device; determining the first candidate device corresponding to the candidate resources as the second candidate device; determining the target device in the second candidate device, and using the candidate resources corresponding to the target device as the target resources; the determining the target device in the second candidate device includes: for each second candidate device, determining the number of times the candidate resources corresponding to the second candidate device are called; determining the second candidate device with the most calls as the target device; A response module, configured to use the target device and the target resources corresponding to the target device to respond to the interaction request.
7. A device control system, characterized in that, The system includes: a control device and multiple associated devices, Multiple associated devices, configured to send interaction requests to the control device; The control device is configured to detect the target position of the target object within the preset area when receiving an interaction request sent by any associated device within the preset area; determine a first candidate device based on the target position among multiple associated devices, and determine the hardware resources corresponding to the first candidate device; based on the interaction request and the hardware resources corresponding to the first candidate device, determine a target device and the target resources corresponding to the target device, where the target resources are used to implement the function corresponding to the interaction request. Based on the interaction request and the hardware resources corresponding to the first candidate device, determining the target device and the target resources corresponding to the target device includes: determining the target function corresponding to the interaction request; determining the candidate resources corresponding to the target function among the hardware resources corresponding to the first candidate device; determining the first candidate device corresponding to the candidate resources as the second candidate device; determining the target device among the second candidate devices, and taking the candidate resources corresponding to the target device as the target resources; using the target device and the target resources corresponding to the target device to respond to the interaction request. Determining the target device among the second candidate devices includes: for each second candidate device, determining the number of times the candidate resources corresponding to the second candidate device are called; determining the second candidate device with the most call times as the target device.
8. An electronic device, characterized in that, It includes a processor, a communication interface, a memory, and a communication bus. Among them, the processor, the communication interface, and the memory communicate with each other through the communication bus. The memory is used to store computer programs. The processor is configured to implement the method steps described in any one of claims 1-5 when executing the programs stored on the memory.
Citation Information
Patent Citations
System, device and method for information tips by intelligent household equipment
CN105225457A