Function control method, function control device and storage medium

Determining the location of the device and executing preset actions through the intelligent spatial semantic map solves the problem of intelligent control between IoT devices and realizes intelligent interaction and efficient function control between devices.

CN112860826BActive Publication Date: 2024-09-06BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110057893.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-01-15
Publication Date
2024-09-06
Estimated Expiration
2041-01-15

AI Technical Summary

Technical Problem

In the process of interconnection and interoperability of Internet of Things (IoT) devices, there is a lack of intelligent control and manual operation by users is required, resulting in insufficient intelligence in the interconnection and interoperability between devices.

Method used

Determine the location of the device through an intelligent spatial semantic map and identify devices capable of performing specific functions, execute preset actions to achieve functional control between devices, and determine the location and functional capabilities of the device using methods such as image feature matching, acoustic information, and microwave information.

Benefits of technology

It realizes intelligent interaction and function control between devices, and improves the efficiency and intelligence level of interconnection and interoperability between devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112860826B
    Figure CN112860826B
Patent Text Reader

Abstract

The present disclosure relates to a function control method, a function control device and a storage medium. The function control method is applied to a first device, the first device is configured with an intelligent space semantic map, and the function control method includes: determining a first position of the first device in the intelligent space semantic map; based on the first position, determining a second device in the intelligent space semantic map, the second device having the ability to perform a first function; and performing a preset action to enable the second device to perform the first function. Through the present disclosure, intelligent interaction between devices can be realized to achieve function control of the target device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to function control technology, and in particular to a function control method, a function control device and a storage medium. Background Art

[0002] With the development of technology, the Internet of Things (IoT) can realize the interconnection and interoperability of devices.

[0003] However, in the process of achieving device interconnection, users are often required to manually operate to control the functions between devices, which is not intelligent enough.

[0004] Therefore, finding a solution that can achieve intelligent interconnection between various devices has become a hot topic in current research. Summary of the invention

[0005] In order to overcome the problems existing in the related art, the present disclosure provides a function control method, a function control device and a storage medium.

[0006] According to a first aspect of an embodiment of the present disclosure, there is provided a function control method, including:

[0007] Determine a first position of the first device in the smart space semantic map; based on the first position, determine a second device in the smart space semantic map, wherein the second device has the ability to perform a first function; and perform a preset action to enable the second device to perform the first function.

[0008] In some embodiments, determining the first position of the first device in the smart space semantic map includes: acquiring a first image; determining a first sample image from a plurality of pre-stored sample images, wherein features of the first sample image match features of the first image; and determining the first position of the first device in the smart space semantic map based on the area position represented by the first sample image.

[0009] In some embodiments, determining the first position of the first device in the smart space semantic map includes: in response to the area position represented by the first sample image being one, determining the area position represented by the first sample image as the first position of the first device in the smart space semantic map; in response to the area position represented by the first sample image being multiple, acquiring a second image, determining a second sample image from a plurality of pre-stored sample images, and determining the first position of the first device in the smart space semantic map based on the area position represented by the second sample image, wherein features of the second sample image match features of the second image and are different from those of the first sample image.

[0010] In some implementations, determining a first position of the first device in the smart space semantic map includes:

[0011] Obtain location information of the first device sent by a third device, the location information being determined by the third device in response to receiving a location determination instruction triggered at the location of the first device, the location determination instruction including a sound instruction and / or a microwave instruction; based on the location information, determine the first location of the first device in the semantic map of the smart space.

[0012] In some embodiments, determining the second device in the smart space semantic map includes: determining a sub-area corresponding to the first location; in response to the presence of a target operating device capable of performing the first function in the sub-area corresponding to the first location, determining the target operating device as the second device.

[0013] In some embodiments, determining a second device in the smart space semantic map includes: determining a sub-area corresponding to the first position; in response to the presence of multiple target operation devices capable of performing the first function in the sub-area corresponding to the first position, based on the first position and the target operation of the first device, determining a second position within the sub-area, and determining the target operation device at the second position as the second device.

[0014] In some embodiments, determining a second position within the sub-area includes: in response to detecting a change in the motion trajectory of the first device, determining a direction of the changed trajectory of the first device; and using a position in the smart space semantic map that is determined in the direction of the changed trajectory of the first device and is provided with the target operating device as the second position.

[0015] In some embodiments, determining the sub-region corresponding to the first position includes: determining the sub-region to which the first position belongs as the sub-region corresponding to the first position, and / or determining other sub-regions different from the sub-region to which the first position belongs as the sub-region corresponding to the first position.

[0016] According to a second aspect of an embodiment of the present disclosure, there is provided a function control device, including:

[0017] A determination unit is used to determine a first position of the first device in the smart space semantic map, and based on the first position, determine a second device in the smart space semantic map, wherein the second device has the ability to perform a first function; an execution unit is used to execute a preset action so that the second device performs the first function.

[0018] In some implementations, the first device pre-stores a plurality of sample images representing locations of different regions in a smart space semantic map; the determining unit determines the first position of the first device in the smart space semantic map in the following manner:

[0019] Acquire a first image; determine a first sample image from a plurality of pre-stored sample images, wherein features of the first sample image match features of the first image; and determine a first position of the first device in the smart space semantic map based on a region position represented by the first sample image.

[0020] In some implementations, the determining unit determines the first position of the first device in the smart space semantic map based on the area position represented by the first sample image in the following manner:

[0021] In response to the regional position represented by the first sample image being one, the regional position represented by the first sample image is determined as the first position of the first device in the smart space semantic map; in response to the regional position represented by the first sample image being multiple, a second image is acquired, and a second sample image is determined from multiple pre-stored sample images, and based on the regional position represented by the second sample image, the first position of the first device in the smart space semantic map is determined, and features of the second sample image match features of the second image and are different from those of the first sample image.

[0022] In some implementations, the determining unit determines the first position of the first device in the smart space semantic map in the following manner:

[0023] Obtain location information of the first device sent by a third device, the location information being determined by the third device in response to receiving a location determination instruction triggered at the location of the first device, the location determination instruction including a sound instruction and / or a microwave instruction; based on the location information, determine the first location of the first device in the semantic map of the smart space.

[0024] In some embodiments, the smart space semantic map includes sub-areas for distinguishing multiple different spatial locations; the determination unit determines the second device in the smart space semantic map based on the first location in the following manner: determining the sub-area corresponding to the first location; in response to the presence of a target operating device capable of performing the first function in the sub-area corresponding to the first location, determining the target operating device as the second device.

[0025] In some embodiments, the smart space semantic map includes sub-areas for distinguishing multiple different spatial locations; the determination unit determines the second device in the smart space semantic map based on the first location in the following manner: determine the sub-area corresponding to the first location; in response to the presence of multiple target operation devices capable of performing the first function in the sub-area corresponding to the first location, based on the first location and the target operation of the first device, determine a second location within the sub-area, and determine the target operation device at the second location as the second device.

[0026] In some implementations, the target operation includes a change in a motion trajectory, and the determining unit determines a second position in the sub-area based on the first position and the target operation of the first device in the following manner:

[0027] In response to detecting that the motion trajectory of the first device has changed, determining the direction of the changed trajectory of the first device; and setting the position of the target operating device in the smart space semantic map, which is determined in the direction of the changed trajectory of the first device, as the second position.

[0028] In some embodiments, the smart space semantic map includes sub-regions for distinguishing a plurality of different spatial locations; the determining unit determines the sub-region corresponding to the first location in the following manner:

[0029] The subregion to which the first position belongs is determined as the subregion corresponding to the first position, and / or another subregion different from the subregion to which the first position belongs is determined as the subregion corresponding to the first position.

[0030] According to a third aspect of an embodiment of the present disclosure, there is provided a function control device, including:

[0031] a processor; a memory for storing instructions executable by the processor;

[0032] The processor is configured to: execute the function control method described in the first aspect or any one of the implementations of the first aspect.

[0033] According to the fourth aspect of the embodiments of the present disclosure, a non-temporary computer-readable storage medium is provided. When the instructions in the storage medium are executed by the processor of the mobile terminal, the mobile terminal can execute the function control method described in the first aspect or any one of the embodiments of the first aspect.

[0034] The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects: determining a first position of a first device in a smart space semantic map; determining a second device in the smart space semantic map based on the first position, the second device having the ability to perform a first function; and executing a preset action to enable the second device to perform the first function. The present disclosure can determine the control of a functional operation device based on a smart space semantic map, realize intelligent interaction between devices, and achieve a better functional control effect.

[0035] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0037] Figure 1 The figure is a flow chart of a function control method according to an exemplary embodiment.

[0038] Figure 2 The present invention is a flow chart of a method for determining a first position of a first device in a smart space semantic map according to an exemplary embodiment.

[0039] Figure 3 The present invention is a flowchart of another method for determining a first position of a first device in a smart space semantic map according to an exemplary embodiment.

[0040] Figure 4 It is a flow chart of a method for determining a first position based on a third device in a smart space semantic map according to an exemplary embodiment.

[0041] Figure 5 It is a flow chart of a method for determining a second device based on a first position in a smart space semantic map according to an exemplary embodiment.

[0042] Figure 6 The diagram is a schematic diagram of a scenario showing a method for controlling a function of a sub-area based on a first position according to an exemplary embodiment.

[0043] Figure 7 The diagram is a schematic diagram of a scenario showing a method for controlling a function based on the existence of a single device in an area according to an exemplary embodiment.

[0044] Figure 8 The diagram is a schematic diagram of a scenario showing a method for controlling a function based on the presence of multiple devices in an area according to an exemplary embodiment.

[0045] Fig. 9The present invention is a flow chart of a method for determining a second position in a smart space semantic map based on a motion trajectory of a first device according to an exemplary embodiment.

[0046] Fig.10 The present invention is a schematic diagram of a scenario for determining a second position in a smart space semantic map based on a motion trajectory of a first device according to an exemplary embodiment.

[0047] Fig.11 The diagram is a schematic diagram of a scenario showing a method for controlling functions based on multiple devices in an area according to an exemplary embodiment.

[0048] Fig.12 The diagram is a schematic diagram of another scenario showing a function control method based on multiple devices in an area according to an exemplary embodiment.

[0049] Fig.13 The figure is a block diagram of a function control device according to an exemplary embodiment.

[0050] Fig.14 It is a block diagram of a device for function control according to an exemplary embodiment. DETAILED DESCRIPTION

[0051] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0052] The function control method provided by the embodiment of the present disclosure can be applied to interactive control scenarios between IoT devices, where the IoT device can be a smart terminal or a smart home device.

[0053] In the function control method provided in the present disclosure, the smart control semantic map can be a pre-established map, in which the specific locations of all devices in a preset space (for example, a house with multiple rooms) and the positional relationship between different devices can be set.

[0054] In the function control method provided in the present disclosure, the device that performs function control and interaction can be configured with an intelligent space semantic map. It is understandable that the specific location of all devices in a preset space (for example, a house with multiple rooms) and the positional relationship between different devices are set in the intelligent space semantic map. Taking a house with multiple rooms as an example, the location information of any device can be obtained through the map, and the location information may include the room, the location in the room, etc. In the map, based on the positional relationship between different devices, the location of other devices can be determined by the location of any device.

[0055] In the function control method provided by the embodiment of the present disclosure, the location of the device is determined by the intelligent space semantic map, and by determining the location of the device, the device that performs the corresponding function is determined in the intelligent space semantic map, so as to control the device to perform the corresponding function.

[0056] For the convenience of description in the embodiment of the present disclosure, the device that performs functional control on other devices is referred to as the first device, the device that executes the corresponding function is referred to as the second device, the function that triggers the execution of the second device is referred to as the first function, and the position of the first device in the semantic map of the smart space is referred to as the first position.

[0057] Figure 1 is a flow chart of a function control method according to an exemplary embodiment. Figure 1 As shown, the function control method can be applied to the first device, including the following steps.

[0058] In step S11, a first position of a first device in a smart space semantic map is determined.

[0059] In the disclosed embodiment, the first device is configured with a smart space semantic map, so the first position can be understood as the position of the first device in the smart space semantic map. Among them, the first position of the first device in the smart space semantic map can be determined by the user device based on the information included in the smart space semantic map. For example, the first device can determine the first position based on communication with other devices, or the first device can determine the first position by combining the collected surrounding environment information with the smart space semantic map.

[0060] In step S12, based on the first location, a second device is determined in the smart space semantic map, and the second device has the ability to perform the first function.

[0061] In the embodiment of the present disclosure, the smart space semantic map includes a device that the first device needs to perform functional control on, so in the embodiment of the present disclosure, a second device capable of performing the first function can be determined in the smart space semantic map. It can be understood that there can be one or more devices capable of performing the first function in the smart space semantic map.

[0062] In step S13, a preset action is executed to enable the second device to execute the first function.

[0063] In the embodiment of the present disclosure, the preset action can be understood as an operation that triggers the second device to execute the first function, and can also be an operation instruction.

[0064] The function control method applied to the first device involved in the embodiment of the present disclosure determines the second device for function operation control based on the position of the first device in the intelligent space semantic map, and executes a preset action to enable the second device to perform the corresponding function. There is no need for the user to select the second device on the first device, and intelligent interactive control of the function control between the first device and the second device can be achieved.

[0065] The following embodiments of the present disclosure illustrate the function control method involved in the above embodiments in combination with practical applications.

[0066] The disclosed embodiment first describes the first function executed by the second device. The first function may be a function that the first device can execute, or a function that the first device cannot execute but the second device can execute. For example, when the first device is a mobile phone and the second device is a television, the first function is a video playback function, then both the mobile phone and the television can execute the video playback function. For another example, when the first device is a mobile phone and the second device is a television, the first function is a screen projection function, the mobile phone has the function of triggering the execution of screen projection but does not have the function of receiving screen projection instructions for playback, but the television has the function of receiving and executing screen projection playback instructions.

[0067] Among them, the embodiment of the present disclosure does not specifically limit the first function executed by the function control between the first device and / or the second device. For example, it can be one or a combination of the screen projection function, the music playback function and the video playback function.

[0068] The following embodiment of the present disclosure describes the implementation process of determining the first position of the first device in the smart space semantic map.

[0069] In the disclosed embodiment, determining the first position of the first device in the smart space semantic map can be, on the one hand, in response to the first device being triggered to perform the first function, determining the first position of the first device in the smart space semantic map in advance. On the other hand, it can also be in response to the first device being triggered to perform the first function, determining the first position of the first device in the smart space semantic map.

[0070] Among them, in response to the first device being triggered to execute the first function, it can be triggered to execute the first function in response to the terminal network environment switching. For example, the first device is a mobile phone, and it can be triggered to execute the first function when the user enters home and the mobile phone connects to the home hotspot. For another example, it can also be triggered to execute the first function by the user performing a function operation on the mobile phone, such as triggering the execution of the screen projection function or triggering the playback of music, video and other functions.

[0071] In one implementation of the disclosed embodiment, determining the first position of the first device in the smart space semantic map may be obtained through visual information, wherein the visual information may be understood as image information obtained by image acquisition by an image acquisition device such as a camera.

[0072] In one embodiment, the first device may pre-store image information representing different regional locations in the smart space semantic map, for example, multiple sample images. The image information representing different regional locations in the smart space semantic map may be pre-stored in the memory of the first device, or may be pre-stored in a cloud server associated with the first device. When determining the first position of the first device in the smart space semantic map, the first device may obtain an image of the current surrounding environment, and perform feature matching based on the obtained image and the pre-stored sample images to determine the first position of the first device in the smart space semantic map.

[0073] For the convenience of description in the embodiments of the present disclosure, the image captured by the first device may be referred to as a first image.

[0074] Figure 2 The present invention is a flow chart of a method for determining a first position of a first device in a smart space semantic map according to an exemplary embodiment.

[0075] In step S21, a first image is acquired.

[0076] In the disclosed embodiment, the first device may be a first image acquired by an image acquisition device equipped by the first device itself, or may be a first image acquired by other means. For example, a mobile phone may be used as the first device, and the first image may be acquired by taking a photo with any camera of the mobile phone. Alternatively, the first device may acquire the first image with the assistance of other devices. For example, the first device may communicate with a device having an image acquisition function, such as a surveillance camera in a room, to acquire the first image acquired by other devices.

[0077] It can be understood that the first image acquired in the embodiment of the present disclosure is an image collected by the first device at the current position and used to match the sample image at the corresponding position in the smart space semantic map.

[0078] For example, Fig.10 As shown, the smart space semantic map includes rooms such as living room, bedroom (second bedroom, master bedroom), bathroom, study, etc., and stores sample images (bed, sofa, white wall, etc.) corresponding to the living room, bedroom (second bedroom, master bedroom), bathroom, study, etc. If the current location of the first device is the living room, the first image obtained should be a sample image corresponding to the living room in the smart space semantic map, such as white wall, sofa, etc.

[0079] In step S22, a first sample image is determined from a plurality of pre-stored sample images.

[0080] In the disclosed embodiment, the first sample image can be understood as a sample image whose features in the smart space semantic map match the features of the first image. For example, if the first image obtained is an image including a sofa, the first sample image can be understood as an image of a sofa used to represent a living room in the smart semantic map.

[0081] In some possible implementations, the pixel distribution of the first image and the sample image may be analyzed by, for example, an image feature matching algorithm, and the sample image with the highest similarity may be determined as the first sample image.

[0082] In step S23, based on the area position represented by the first sample image, a first position of the first device in the smart space semantic map is determined.

[0083] In the disclosed embodiment, the pre-stored sample images represent the regional location. For example, a sample image including image information such as a white wall and a bed in a bedroom represents the regional location of a bedroom. A sample image including image information such as a white wall, a sofa, a TV, and a coffee table in a living room represents the regional location of a living room.

[0084] In the embodiment of the present disclosure, after determining the first sample image matching the first image feature, the position of the first device in the smart space semantic map can be determined based on the regional position represented by the first sample image. For example, if the first image obtained is an image including a sofa, and the matched first sample image is an image of a sofa representing a living room, then the first position of the first device in the smart space semantic map can be determined to be the living room.

[0085] In the disclosed embodiment, the number of first sample images matching the first image feature may be one or more. The area positions represented by the first sample images matching the first image feature may be one or more. For example, the area positions such as the living room and the bedroom include white walls. If the first sample image is an image including white walls, the area position represented by the first sample image includes the bedroom and the living room, and at this time, it will be necessary to further combine other sample images to determine the first position.

[0086] Figure 3 The present invention is a flow chart of a method for determining a first position of a first device in a smart space semantic map according to an exemplary embodiment.

[0087] In step S231, in response to the fact that the area position represented by the first sample image is one, the area position represented by the first sample image is determined as the first position of the first device in the smart space semantic map.

[0088] Among them, the area position represented by the first sample image is one, and the area position can be directly determined as the first position of the first device in the smart space semantic map.

[0089] In step S232, in response to the fact that the first sample image represents multiple area positions, a second image is acquired.

[0090] When the first sample image represents multiple regional positions, it means that the image features of the first image cannot accurately determine the first position. In the embodiment of the present disclosure, when the first sample image represents multiple regional positions, other images different from the first image may be acquired, hereinafter referred to as second images, and the first position may be further determined based on the second images.

[0091] In step S233, a second sample image is determined from a plurality of pre-stored sample images, and based on the area position represented by the second sample image, a first position of the first device in the smart space semantic map is determined.

[0092] The second sample image is a sample image whose image features in the sample image of the intelligent space semantic map match the features of the second image, and the second sample image is different from the first sample image.

[0093] In the disclosed embodiment, the second image is an image taken at a different orientation from the first image. By taking the first image and the second image at different orientations at the shooting point, the unique area position represented by the matched sample images is screened out as the first position of the first device in the smart space semantic map. For example, the first image may be taken by the front camera of a mobile phone. When the first image cannot determine the first position of the first device in the smart space semantic map, the rear camera of the mobile phone is controlled to be turned on to take the second image, and the obtained first and second images are compared with their respective sample images, and the common unique solution of the area position represented by the first image and the second image is used as the first position of the first device in the smart space semantic map.

[0094] In another implementation of the disclosed embodiment, the first position of the first device in the smart space semantic map can be determined by acoustic information and / or microwave information. The acoustic information can be understood as a sound signal emitted by the first device or the user, or a sound wave signal emitted by the first device, and the first position of the first device in the smart space semantic map is determined based on the sound source positioning and sound wave positioning of the sound or sound wave signal. The microwave information can be understood as a wireless signal emitted by a router, etc., or as a pulse positioning signal sent by the first device including a UWB module, etc.

[0095] In the embodiment of the present disclosure, when the first position of the first device in the smart space semantic map is determined based on acoustic information and / or microwave information, other devices (hereinafter referred to as third devices) may assist the first device in determining the first position.

[0096] Figure 4 It is a flow chart of a method for determining a first position based on a third device in a smart space semantic map according to an exemplary embodiment.

[0097] In step S31, the location information of the first device sent by the third device is obtained.

[0098] In the embodiment of the present disclosure, the third device may determine the location information in response to receiving a location determination instruction triggered at the location of the first device, and send the location information to the first device. The first device receives the location information sent by the third device. The location determination instruction that triggers the third device to determine the location information at the location of the first device may include a sound instruction and / or a microwave instruction. For example, the location determination instruction may be the sound of music, video, etc. played on the first device, the location determination instruction may also be a voice control instruction issued by a user using the first device, or a sound wave signal emitted by the first device, or a microwave signal emitted by the first device.

[0099] In the embodiment of the present disclosure, the location information determined by the third device may be timestamp information of receiving the location determination instruction.

[0100] In step S32, based on the location information, a first location of the first device in the smart space semantic map is determined.

[0101] In the embodiment of the present disclosure, when determining the first position of the first device in the smart space semantic map based on the position information, the first position of the first device in the smart space semantic map can be determined based on the speed of sound and propagation timestamp, or the microwave propagation speed and timestamp.

[0102] In the embodiment of the present disclosure, the first position of the first device in the semantic map of the smart space can be determined by means of the above-mentioned visual information, acoustic information, and microwave information, and then the second device that needs to be functionally controlled can be further determined based on the first position.

[0103] Figure 5 It is a flow chart of a method for determining a second device based on a first position in a smart space semantic map according to an exemplary embodiment.

[0104] In step S41, a sub-region corresponding to the first position is determined.

[0105] In the disclosed embodiment, the intelligent space semantic map includes sub-regions for distinguishing a plurality of different spatial positions, so when determining the sub-region corresponding to the first position, on the one hand, the sub-region to which the first position belongs may be determined as the sub-region corresponding to the first position. On the other hand, other sub-regions different from the sub-region to which the first position belongs may also be determined as the sub-region corresponding to the first position.

[0106] In one example, when the first device in the embodiment of the present disclosure determines that there is a second device that needs to be controlled in the sub-area corresponding to the first position, the sub-area to which the first position belongs can be directly determined as the sub-area corresponding to the first position. When the first device in the embodiment of the present disclosure determines that there is no second device that needs to be controlled in the sub-area corresponding to the first position, other sub-areas different from the sub-area to which the first position belongs can be determined as the sub-area corresponding to the first position. For example, Figure 6 As shown, if the first device needs to perform a humidification function, the sub-area corresponding to the first position of the room area where the humidifier W is located can be selected. If the first device needs to perform a music playing function, the room area where the speakers U1 and U2 are located can be selected as the sub-area corresponding to the first position.

[0107] In step S42a, in response to the presence of a target operating device capable of executing the first function in the sub-area corresponding to the first position, the target operating device is used as the second device.

[0108] In the embodiment of the present disclosure, in response to the presence of a target operating device capable of executing the first function in the sub-area corresponding to the first position, the target operating device is used as the second device. Figure 7 As shown, when the terminal in the living room needs to execute the music playing function and there is only one speaker in the living room, the speaker in the living room is directly determined as the second device to play music.

[0109] In step S42b, in response to the presence of multiple target operating devices capable of performing the first function in the sub-area corresponding to the first position, based on the first position and the target operation of the first device, a second position is determined in the sub-area, and the target operating device at the second position is determined as the second device.

[0110] In the embodiment of the present disclosure, when determining the second device, the granularity of the position can be determined based on the device that needs to perform the functional operation and needs to be controlled.

[0111] In one example, if there are multiple target operating devices in the current area, and the first device only needs to determine one second device, the only second device can be determined by narrowing the sub-area corresponding to the first position. Figure 8 As shown, when the terminal in the living room needs to perform the screen projection function and there are two TVs A and B in the living room, the sub-area can be reduced and TV B, which is closer to the first device, can be determined as the second device for screen projection.

[0112] In the embodiment of the present disclosure, when determining the second device for control, the second position may be determined within the sub-area based on the first position and the target operation of the first device.

[0113] Fig. 9 The present invention is a flow chart of a method for determining a second position in a smart space semantic map based on a motion trajectory of a first device according to an exemplary embodiment.

[0114] In step S51, in response to detecting that the motion trajectory of the first device has changed, the direction of the changed trajectory of the first device is determined.

[0115] In step S52, a position in the smart space semantic map that is determined in the direction of the trajectory after the first device changes and is set with a target operating device is used as a second position.

[0116] In one embodiment, the change in the trajectory of the first device may include an operation of the first device pointing to a target operating device. When the operation of the first device pointing to a target operating device is detected, the position of the first device after the position change relative to the position of the first device in a pre-established map can be determined. In one example, the first device is currently located 3 meters southwest of the second device, and the first device is waved in the southwest direction at the current position to point to the target operating device. Combined with the position of the second device in the smart space semantic map, and the positional relationship information of each device in the smart space semantic map, the second device can determine the target operating device at the position corresponding to the position in the smart space semantic map.

[0117] In another embodiment, the change in the trajectory of the first device may also include the operation of the first device being moved and approaching the target operating device. In one example, when it is detected that the first device is moved and approaching the target operation, the position of the first device after the position change relative to the position of the first device in the pre-established map can be determined. In one example, the first device is currently located 3 meters southwest of the second device, and the first device is carried by the user along the southwest direction to approach / approach the target operating device at the current position. During the application process, the target operating device can be determined in combination with the position of the second device in the smart space semantic map and the target operation of the first device.

[0118] In the function control method provided by the embodiment of the present disclosure, when determining the second device, on the one hand, in the case of coarse granularity, such as projecting the screen to the only TV in the living room, the second device (TV) that the user intends to control can be directly determined by the user's current general location information (the living room corresponding to the first location). On the other hand, when the granularity requirement is high, when the user device points to the device to be connected, it is also necessary to track the movement trajectory of the user device (such as sensors such as gyroscopes). For example Fig.10 In the figure, the first position of the user's first device is position P2 in the living room. It is determined that there are multiple second devices in the living room (indicated by circles in the figure). The user's direction A can be known through the user's movement. Then, through position P2 and direction A, the second device that the user intends to control can be determined, and the device that the user is trying to control can be retrieved from the smart space semantic map.

[0119] Furthermore, in the embodiment of the present disclosure, the number of the second devices that perform the first function may be one or more.

[0120] In some possible implementations, if only one second device is needed to perform the first function, a unique second device may be determined. Figure 7 As shown, when the mobile phone needs to execute the music playing function, a speaker is determined to play audio.

[0121] In another example, when the first function to be executed requires multiple second devices, it can be determined that the multiple second devices jointly execute the first function. Fig.11 As shown, when the mobile phone needs to execute the music playing function, four speakers are controlled to play music together at the same time.

[0122] In another example, when the first function to be executed requires multiple second devices, the multiple second devices may execute the same function, such as Fig.11 As shown, four speakers play music together. When the first function to be executed requires multiple second devices, the multiple second devices can be executing multiple different functions. Fig.12 As shown, the TV is installed with a component capable of playing audio, and there are two other external speakers in the area. In one implementation of the embodiment of the present disclosure, when the mobile phone needs to execute the video playback function, the TV is controlled to play images and audio at the same time. It can also be that when the mobile phone needs to execute the video playback function, the TV is controlled to play images and the external speakers are controlled to play audio. Among them, it can also be that when multiple first functions need to be executed, multiple second devices are determined to execute the first function. For example, when the mobile phone needs to execute the "K song" function, it can control the TV to play the picture, control the smart watch to play the lyrics and subtitles, and control the external speakers to play audio.

[0123] Based on the same concept, an embodiment of the present disclosure also provides a function control device.

[0124] It is understandable that the function control device provided by the embodiment of the present disclosure includes hardware structures and / or software modules corresponding to the execution of each function in order to realize the above functions. In combination with the units and algorithm steps of each example disclosed in the embodiment of the present disclosure, the embodiment of the present disclosure can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the technical solution of the embodiment of the present disclosure.

[0125] Fig.13 is a block diagram of a function control device according to an exemplary embodiment. Fig.13 , the device 100 includes a determining unit 101 and an executing unit 102.

[0126] The determining unit 101 is used to determine a first position of a first device in the smart space semantic map, and based on the first position, determine a second device in the smart space semantic map, the second device having the ability to perform the first function. The executing unit 102 is used to execute a preset action to enable the second device to perform the first function.

[0127] In one implementation, the first device pre-stores a plurality of sample images representing different regional positions in the smart space semantic map, and the determination unit 101 determines the first position of the first device in the smart space semantic map in the following manner:

[0128] Acquire a first image. Determine a first sample image from a plurality of pre-stored sample images, wherein features of the first sample image match features of the first image. Determine a first position of the first device in the smart space semantic map based on a region position represented by the first sample image.

[0129] In one implementation, the determining unit 101 determines the first position of the first device in the smart space semantic map based on the area position represented by the first sample image in the following manner:

[0130] In response to the regional position represented by the first sample image being one, the regional position represented by the first sample image is determined as the first position of the first device in the smart space semantic map. In response to the regional position represented by the first sample image being multiple, a second image is acquired, and a second sample image is determined from a plurality of pre-stored sample images, and based on the regional position represented by the second sample image, the first position of the first device in the smart space semantic map is determined, and the features of the second sample image match the features of the second image and are different from the first sample image.

[0131] In one implementation, the determining unit 101 determines the first position of the first device in the smart space semantic map in the following manner:

[0132] Acquire location information of the first device sent by the third device, the location information being determined by the third device in response to receiving a location determination instruction triggered at the location of the first device, the location determination instruction including a sound instruction and / or a microwave instruction. Based on the location information, determine a first location of the first device in the smart space semantic map.

[0133] In one implementation, the smart space semantic map includes sub-areas for distinguishing a plurality of different spatial locations; the determination unit 101 determines the second device in the smart space semantic map based on the first location in the following manner:

[0134] The sub-region corresponding to the first position is determined. In response to the existence of a target operating device capable of executing the first function in the sub-region corresponding to the first position, the target operating device is determined as the second device.

[0135] In one implementation, the smart space semantic map includes sub-areas for distinguishing a plurality of different spatial locations; the determination unit 101 determines the second device in the smart space semantic map based on the first location in the following manner:

[0136] In response to the presence of multiple target operation devices capable of performing the first function in the sub-region corresponding to the first position, a second position is determined in the sub-region based on the first position and the target operation of the first device, and the target operation device at the second position is determined as the second device.

[0137] In one embodiment, the target operation includes a change in the motion trajectory, and the determination unit 101 determines the second position in the sub-area based on the first position and the target operation of the first device in the following manner: in response to detecting a change in the motion trajectory of the first device, determining the direction of the changed trajectory of the first device. The position in the smart space semantic map that is determined to be in the direction of the changed trajectory of the first device and is provided with the target operation device is used as the second position.

[0138] In one embodiment, the intelligent space semantic map includes sub-areas for distinguishing multiple different spatial locations, and the determination unit 101 determines the sub-area corresponding to the first position in the following manner: the sub-area to which the first position belongs is determined as the sub-area corresponding to the first position, and / or other sub-areas different from the sub-area to which the first position belongs are determined as the sub-area corresponding to the first position.

[0139] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0140] Fig.14 2 is a block diagram of a device 200 for function control according to an exemplary embodiment. For example, the device 200 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0141] Reference Fig.14 , the device 200 may include one or more of the following components: a processing component 202 , a memory 204 , a power component 206 , a multimedia component 208 , an audio component 210 , an input / output (I / O) interface 212 , a sensor component 214 , and a communication component 216 .

[0142] The processing component 202 generally controls the overall operation of the device 200, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 202 may include one or more processors 220 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 202 may include one or more modules to facilitate the selection between the processing component 202 and other components. For example, the processing component 202 may include a multimedia module to facilitate the selection between the multimedia component 208 and the processing component 202.

[0143] The memory 204 is configured to store various types of data to support operations on the device 200. Examples of such data include instructions for any application or method operating on the device 200, contact data, phone book data, messages, pictures, videos, etc. The memory 204 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0144] The power component 206 provides power to the various components of the device 200. The power component 206 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 200.

[0145] The multimedia component 208 includes a screen that provides an output interface between the device 200 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 208 includes a front camera and / or a rear camera. When the device 200 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0146] The audio component 210 is configured to output and / or input audio signals. For example, the audio component 210 includes a microphone (MIC), and when the device 200 is in an operation mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 204 or sent via the communication component 216. In some embodiments, the audio component 210 also includes a speaker for outputting audio signals.

[0147] I / O interface 212 provides an interface between processing component 202 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0148] The sensor assembly 214 includes one or more sensors for providing various aspects of the status assessment of the device 200. For example, the sensor assembly 214 can detect the open / closed state of the device 200, the relative selection of components, such as the display and keypad of the device 200, the sensor assembly 214 can also detect the position change of the device 200 or a component of the device 200, the presence or absence of user contact with the device 200, the orientation or acceleration / deceleration of the device 200 and the temperature change of the device 200. The sensor assembly 214 can include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 214 can also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 214 can also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.

[0149] The communication component 216 is configured to facilitate wired or wireless communication between the device 200 and other devices. The device 200 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 216 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 216 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0150] In an exemplary embodiment, the apparatus 200 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above method.

[0151] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 204 including instructions, and the instructions can be executed by the processor 220 of the device 200 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0152] It is to be understood that in the present disclosure, "plurality" refers to two or more than two, and other quantifiers are similar. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. The singular forms "a", "the" and "the" are also intended to include plural forms, unless the context clearly indicates other meanings.

[0153] It is further understood that the terms "first", "second", etc. are used to describe various information, but such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other, and do not indicate a specific order or degree of importance. In fact, the expressions "first", "second", etc. can be used interchangeably. For example, without departing from the scope of the present disclosure, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as the first information.

[0154] It can be further understood that, unless otherwise specified, “connection” includes a direct connection without other components between the two, and also includes an indirect connection with other components between the two.

[0155] It is further understood that, although the operations are described in a specific order in the drawings in the embodiments of the present disclosure, it should not be understood as requiring the operations to be performed in the specific order shown or in a serial order, or requiring the execution of all the operations shown to obtain the desired results. In certain environments, multitasking and parallel processing may be advantageous.

[0156] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0157] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A function control method, characterized in that: Applied to a first device, the first device being configured with an intelligent space semantic map, the method comprising: Determining a first position of the first device in the smart space semantic map; Based on the first location, determining a second device in the smart space semantic map, the second device having the ability to perform the first function; Executing a preset action, where the preset action is an operation or an operation instruction that triggers the second device to execute the first function, without the user having to select the second device on the first device, so that the second device executes the first function; The intelligent space semantic map includes sub-areas for distinguishing a plurality of different spatial locations; The determining, based on the first position, a second device in the smart space semantic map includes: determining a sub-region corresponding to the first position; In response to the presence of multiple target operating devices capable of executing the first function in the sub-area corresponding to the first position, and the first device needs to determine a unique second device, the sub-area corresponding to the first position is reduced to determine a unique second device.

2. The function control method according to claim 1, characterized in that: The first device pre-stores a plurality of sample images representing different area locations in the smart space semantic map; Determining a first position of the first device in the smart space semantic map includes: acquiring a first image; Determine a first sample image from a plurality of pre-stored sample images, wherein features of the first sample image match features of the first image; Based on the area position represented by the first sample image, a first position of the first device in the smart space semantic map is determined.

3. The function control method according to claim 2, characterized in that: Determining a first position of the first device in the smart space semantic map based on the area position represented by the first sample image includes: In response to the region position represented by the first sample image being one, determining the region position represented by the first sample image as the first position of the first device in the smart space semantic map; In response to the first sample image representing a plurality of regional positions, a second image is acquired, and A second sample image is determined from a plurality of pre-stored sample images, and based on the area position represented by the second sample image, a first position of the first device in the smart space semantic map is determined, wherein features of the second sample image match features of the second image and are different from those of the first sample image.

4. The function control method according to claim 1, characterized in that: Determining a first position of the first device in the smart space semantic map includes: Acquire location information of the first device sent by a third device, where the location information is determined by the third device in response to receiving a location determination instruction triggered at the location of the first device, where the location determination instruction includes a sound instruction and / or a microwave instruction; Based on the location information, a first location of the first device in the smart space semantic map is determined.

5. The function control method according to claim 1, characterized in that: The method further comprises: In response to the presence of a target operating device capable of executing the first function in the sub-area corresponding to the first position, the target operating device is determined to be the second device.

6. The function control method according to claim 1, characterized in that: The method further comprises: In response to the presence of multiple target operating devices capable of performing the first function in the sub-area corresponding to the first position, a second position is determined in the sub-area based on the first position and the target operation of the first device, and the target operating device at the second position is determined as a second device.

7. The function control method according to claim 6, characterized in that: The target operation includes a change in a motion trajectory, and determining a second position in the sub-area based on the first position and the target operation of the first device includes: In response to detecting that the motion trajectory of the first device changes, determining a direction of the changed trajectory of the first device; The position in the smart space semantic map that is determined in the direction of the trajectory of the first device after the change and at which the target operating device is set is used as the second position.

8. The function control method according to any one of claims 5 to 7, characterized in that: The intelligent space semantic map includes sub-areas for distinguishing a plurality of different spatial locations; Determining a sub-region corresponding to the first position includes: The subregion to which the first position belongs is determined as the subregion corresponding to the first position, and / or another subregion different from the subregion to which the first position belongs is determined as the subregion corresponding to the first position.

9. A function control device, characterized in that: Applied to a first device, the first device is configured with an intelligent space semantic map, including: a determining unit, configured to determine a first position of the first device in the smart space semantic map, and based on the first position, determine a second device in the smart space semantic map, wherein the second device has the ability to perform a first function; an execution unit, configured to execute a preset action, wherein the preset action is an operation or an operation instruction that triggers the second device to execute the first function, so that the second device executes the first function without the user selecting the second device on the first device; The intelligent space semantic map includes sub-areas for distinguishing a plurality of different spatial locations; The determining unit determines the second device in the smart space semantic map based on the first location in the following manner: determining a sub-region corresponding to the first position; In response to the presence of multiple target operating devices capable of performing the first function in the sub-area corresponding to the first position, a second position is determined in the sub-area based on the first position and the target operation of the first device, and the target operating device at the second position is determined as a second device.

10. The function control device according to claim 9, characterized in that: The first device pre-stores a plurality of sample images representing different area locations in the smart space semantic map; The determining unit determines the first position of the first device in the smart space semantic map in the following manner: acquiring a first image; Determine a first sample image from a plurality of pre-stored sample images, wherein features of the first sample image match features of the first image; Based on the area position represented by the first sample image, a first position of the first device in the smart space semantic map is determined.

11. The function control device according to claim 10, characterized in that: The determining unit determines the first position of the first device in the smart space semantic map based on the area position represented by the first sample image in the following manner: In response to the region position represented by the first sample image being one, determining the region position represented by the first sample image as the first position of the first device in the smart space semantic map; In response to the first sample image representing a plurality of regional positions, a second image is acquired, and A second sample image is determined from a plurality of pre-stored sample images, and based on the area position represented by the second sample image, a first position of the first device in the smart space semantic map is determined, wherein features of the second sample image match features of the second image and are different from those of the first sample image.

12. The function control device according to claim 9, characterized in that: The determining unit determines the first position of the first device in the smart space semantic map in the following manner: Acquire location information of the first device sent by a third device, where the location information is determined by the third device in response to receiving a location determination instruction triggered at the location of the first device, where the location determination instruction includes a sound instruction and / or a microwave instruction; Based on the location information, a first location of the first device in the smart space semantic map is determined.

13. The function control device according to claim 9, characterized in that: The determining unit is further configured to: In response to the presence of a target operating device capable of executing the first function in the sub-area corresponding to the first position, the target operating device is determined to be the second device.

14. The function control device according to claim 9, characterized in that: The determining unit is further configured to: In response to the presence of multiple target operating devices capable of performing the first function in the sub-area corresponding to the first position, a second position is determined in the sub-area based on the first position and the target operation of the first device, and the target operating device at the second position is determined as a second device.

15. The function control device according to claim 14, characterized in that: The target operation includes a change in the motion trajectory, and the determining unit determines a second position in the sub-area based on the first position and the target operation of the first device in the following manner: In response to detecting that the motion trajectory of the first device changes, determining a direction of the changed trajectory of the first device; The position in the smart space semantic map that is determined in the direction of the trajectory of the first device after the change and at which the target operating device is set is used as the second position.

16. The function control device according to any one of claims 13 to 15, characterized in that: The intelligent space semantic map includes sub-areas for distinguishing a plurality of different spatial locations; The determining unit determines the sub-region corresponding to the first position in the following manner: The subregion to which the first position belongs is determined as the subregion corresponding to the first position, and / or another subregion different from the subregion to which the first position belongs is determined as the subregion corresponding to the first position.

17. A function control device, characterized in that: include: processor; a memory for storing processor-executable instructions; Wherein, the processor is configured to: execute the function control method described in any one of claims 1 to 8.

18. A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor, enables a mobile terminal to execute the function control method according to any one of claims 1 to 8.