Control method and device, electronic equipment and storage medium
By acquiring and analyzing the sensor data and status information of the electronic device and determining control instructions, quick control of the electronic device is realized, and the complexity of input instructions in the prior art is solved.
Patent Information
- Application Number
- CN202310861789.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-13
- Publication Date
- 2025-01-14
AI Technical Summary
Existing electronic devices need to pass various combinations and complex operations when entering instructions, and cannot meet the needs of quick input.
By acquiring real-time data of multiple sensors within a set time period and real-time status information of electronic devices, analyzing to determine control instructions, and controlling the electronic devices based on the instructions, fast command input is achieved.
The commands can be quickly entered without complex operations, improving the control efficiency of electronic devices.
Smart Images

Figure CN119316515A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to electronic device control technology, and more particularly to a control method, device, electronic device, and storage medium. Background Art
[0002] At present, electronic devices are widely used in people's lives, such as smart phones or tablet computers. Compared with traditional computers that input signals through keyboards or mice, there are many ways to input signals to electronic devices such as smart phones or tablet computers, such as gestures, sounds or controls, through which corresponding instructions can be input to the electronic devices. However, as the functions of applications in electronic devices become increasingly complex, the types of instructions that need to be input to electronic devices are also increasing. Various combinations and complex operations are required to input instructions to electronic devices, which cannot meet the current demand for quick input of instructions to control electronic devices. Summary of the invention
[0003] The present disclosure provides a control method, an apparatus, an electronic device and a storage medium, which can more quickly input commands to an electronic device to achieve control of the electronic device.
[0004] In a first aspect, an embodiment of the present disclosure provides a control method, including:
[0005] Acquire real-time data of multiple sensors on an electronic device within a set time period and real-time status information of the electronic device;
[0006] Analyze the real-time data to obtain analysis results of the real-time data;
[0007] Determining control instructions corresponding to the real-time status information and the analysis results;
[0008] Based on the control instruction, the electronic device is controlled.
[0009] In a second aspect, an embodiment of the present disclosure further provides a control device, the device comprising:
[0010] An acquisition module, used to acquire real-time data of multiple sensors on an electronic device within a set time period and real-time status information of the electronic device;
[0011] An analysis module, used to analyze the real-time data to obtain analysis results of the real-time data;
[0012] A determination module, used to determine a control instruction corresponding to the real-time status information and the analysis result;
[0013] The control module is used to control the electronic device based on the control instruction.
[0014] In a third aspect, an embodiment of the present disclosure further provides an electronic device, the electronic device comprising:
[0015] one or more processing devices;
[0016] a storage device for storing one or more programs,
[0017] When the one or more programs are executed by the one or more processing devices, the one or more processing devices implement the control method provided by the embodiment of the present disclosure.
[0018] In a fourth aspect, an embodiment of the present disclosure further provides a storage medium containing computer executable instructions, which, when executed by a computer processor, are used to execute the control method provided by an embodiment of the present disclosure.
[0019] The disclosed embodiments provide a control method, device, electronic device and storage medium, the method comprising: obtaining real-time data of multiple sensors on the electronic device within a set time period and real-time status information of the electronic device; analyzing the real-time data to obtain analysis results of the real-time data; determining control instructions corresponding to the real-time status information and analysis results; and controlling the electronic device based on the control instructions. The above technical solution does not need to realize the input of instructions of the electronic device through various combinations and complex operations, but can determine the corresponding control instructions through the real-time data of multiple sensors on the electronic device within a set time period and the real-time status information of the electronic device, and control the electronic device based on the determined control instructions, which can more quickly input instructions of the electronic device to realize the control of the electronic device. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.
[0021] Figure 1 is a flow chart of a control method provided by an embodiment of the present disclosure;
[0022] Figure 2 is a flow chart of another control method provided by an embodiment of the present disclosure;
[0023] Figure 3 is a structural schematic diagram of a control device provided by an embodiment of the present disclosure;
[0024] Figure 4 It is a structural schematic diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0025] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0026] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0027] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.
[0028] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0029] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0030] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0031] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.
[0032] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.
[0033] As an optional but non-limiting implementation, in response to receiving an active request from the user, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0034] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet the relevant laws and regulations may also be applied to the implementation of the present disclosure.
[0035] It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and relevant provisions.
[0036] It should be noted that the acquisition, storage, use, and processing of real-time data of multiple sensors on electronic devices and real-time status information of electronic devices involved in the present disclosure have all been authorized by the user and comply with relevant provisions of national laws and regulations. They can be used only to determine control instructions and control the electronic devices based on the determined control instructions.
[0037] Figure 1 is a flow chart of a control method provided by an embodiment of the present disclosure. The embodiment of the present disclosure is applicable to the case of controlling an electronic device. The method can be executed by a control device, which can be implemented in the form of software and / or hardware and integrated in the electronic device. Figure 1 As shown, the method includes:
[0038] S110: Acquire real-time data of multiple sensors on the electronic device within a set time period and real-time status information of the electronic device.
[0039] The electronic device may be a device such as a smart phone, a tablet computer or a laptop computer, and the multiple sensors on the electronic device may be sensors that can be integrated into the electronic device such as light sensors, distance sensors, gravity sensors and / or acceleration sensors, without specific limitation.
[0040] In one embodiment, a plurality of sensors on the electronic device is exemplarily described by taking a smart phone as an example:
[0041] Among them, the light sensor is a sensor that can adjust the brightness of the phone screen and the keyboard light according to the light environment in which the phone is located. The light sensor is usually located near the front camera of the phone. Through the light sensor, the phone can automatically turn off the keyboard light in a bright place and slightly increase the screen brightness, which can achieve energy saving while viewing the screen better; through the light sensor, the phone can automatically turn on the keyboard light in a dark place.
[0042] Among them, the distance sensor is a sensor that can sense the distance between the sensor itself and an object close to the sensor. The distance sensor is generally located on both sides of the mobile phone receiver or in the groove of the mobile phone receiver. When the user answers or makes a call, the distance sensor can be used to shrink the distance between the user's head and the distance sensor to a certain extent, and the notification screen background light will turn off, which can save electricity and prevent misoperation; the distance sensor can be used to increase the distance between the user's head and the distance sensor to a certain extent, and the notification screen background light will light up, which is convenient for user operation.
[0043] Among them, the gravity sensor is a sensor that can convert gravity changes into electrical signals based on the piezoelectric effect. The gravity sensor can be used in the intelligent switching of mobile phone horizontal and vertical screens, changing the orientation of photos, or gravity sensing games. The weight inside the gravity sensor and the piezoelectric sheet can be integrated together through the piezoelectric effect, and the horizontal direction is calculated by the voltage generated in two orthogonal directions.
[0044] Among them, the accelerometer is a sensor that measures the acceleration of the phone relative to a free fall. When the phone undergoes any physical movement in any direction, the sensor data will rise, and if the phone is stationary, the sensor data will become flat. The accelerometer can also determine the orientation of the device based on the three-axis coordinates, such as determining whether the phone is in portrait or landscape mode.
[0045] There is no limitation on the method of obtaining real-time data of multiple sensors on an electronic device within a set time period. For example, in order to monitor the value changes of multiple sensors, multiple listeners can be registered on the system side. The system will notify the listeners of the values of the current state within a certain frequency period, which is a passive acceptance behavior. The above method can be used to monitor light sensors, distance sensors, gravity sensors or acceleration sensors. When the listener successfully receives the sensor value changes transmitted by the system, it will store the transmitted values in time sequence. The stored content includes all data within the set time period. This part of data is the real-time data of the sensor within the set time period. Among them, real-time data can refer to the value changes of the sensor stored in time sequence within the set time period, that is, the set of values within the set time period from the current time to before the current time. The set time period can be the time period set for determining real-time data, which is not specifically limited.
[0046] The real-time status information of the electronic device may be information representing the real-time status of the electronic device itself or the external environment in which the electronic device is located, and the real-time status information of the electronic device is not limited.
[0047] In one embodiment, the real-time status information includes one or more of the following:
[0048] The lock screen status of the electronic device's screen;
[0049] Weather information of the environment where the electronic device is located;
[0050] The current time in the region where the electronic device is located;
[0051] The horizontal screen state of the application on the electronic device;
[0052] The foreground state of an application on a device.
[0053] There is no limitation on the method of obtaining the real-time status information of the electronic device. For example, through a system call, the lock screen status of the electronic device's screen can be obtained as locked or unlocked; through the weather interface of the cloud server, the weather information of the current environment of the electronic device can be obtained. The weather information can refer to information reflecting the weather conditions, such as sunny, rainy or cloudy, etc.; through the time network interface of the cloud server, the current time of the area to which the electronic device belongs can be obtained; through a system call, the horizontal screen status of the current application can be obtained as horizontal or not horizontal; through a system call, the foreground status of the current application can be obtained as foreground or not in the foreground.
[0054] S120: Analyze the real-time data to obtain analysis results of the real-time data.
[0055] Among them, the analysis results of real-time data may refer to the results obtained by analyzing the real-time data of multiple sensors, and the analysis results are not limited. For example, the analysis results may include but are not limited to the number of fluctuations in the value of the light sensor, the value change of the distance sensor, whether the electronic device detected by the gravity sensor is performing a flipping operation and / or whether the user of the electronic device detected by the acceleration sensor is in a walking state, wherein the flipping operation may be an operation of switching the screen between horizontal and vertical, and there is no specific limitation.
[0056] There is no limitation on the way of analyzing the real-time data to obtain the analysis result of the real-time data, such as comparing the real-time data of the light sensor with the set reference value of the light sensor to determine the number of fluctuations of the light sensor value; or comparing the real-time data of the acceleration sensor with the value range of the acceleration sensor set when the user of the electronic device is in a walking state to determine whether the user of the electronic device is in a walking state. There is no limitation on the reference value of the light sensor and the value range of the acceleration sensor, and they can be selected according to the actual application needs.
[0057] In one embodiment, when analyzing the real-time data and obtaining the analysis result of the real-time data, the real-time status information of the electronic device can also be combined. For example, different weather information included in the real-time status information of the electronic device can correspond to different set reference values of the light sensor; after obtaining the current real-time status information of the electronic device, the weather information included in the real-time status information can be determined, and then the reference value of the light sensor set corresponding to the weather information can be determined; the real-time data of the light sensor is compared with the finally determined reference value of the light sensor set, and then the analysis result of the real-time data is determined.
[0058] S130: Determine control instructions corresponding to the real-time status information and analysis results.
[0059] A control instruction may refer to an instruction for controlling an electronic device. Different control instructions corresponding to real-time status information and analysis results may be set in advance according to actual application needs, that is, matching rules between different real-time status information and analysis results and different control instructions may be set in advance. After determining the real-time status information and analysis results, control instructions matching the determined real-time status information and analysis results may be queried in the predetermined matching rules. The queried control instructions are the control instructions corresponding to the real-time status information and analysis results.
[0060] Among them, the matching rules of different real-time status information and analysis results with different control instructions can be determined as needed in actual applications, and the present disclosure does not limit this. For example, when the real-time status information indicates that the lock screen state of the screen of the electronic device is unlocked, the foreground state of the current application is foreground, the horizontal screen state of the current application is not horizontal, the current time is morning, the current weather is sunny, and the analysis result indicates that the fluctuation number of the value of the light sensor exceeds two times, the value of the distance sensor becomes 5, the gravity sensor detects that the electronic device has not been flipped, and the acceleration sensor detects that the user of the electronic device is not in a walking state, the control instruction matching the real-time status information and analysis results can instruct to display a pop-up window on the page of the electronic device. Among them, the value of the distance sensor becomes 5, which can indicate that the distance sensor detects that an object is approaching.
[0061] S140: Control the electronic device based on the control instruction.
[0062] Based on the control instruction, the way to control the electronic device is not limited. For example, based on the control instruction, the electronic device can be controlled to implement the operation indicated by the control instruction. For example, when the control instruction indicates to display a pop-up window on the page of the electronic device, a pop-up window is displayed on the page of the electronic device based on the control instruction; when the control instruction indicates to pop up a panel on the page of the electronic device, a panel is popped up on the page of the electronic device based on the control instruction; when the control instruction indicates to quickly open a certain page function in the electronic device, a certain page function is quickly opened in the electronic device based on the control instruction. Among them, the above-mentioned pages, pop-ups, panels or page functions are not limited, and can be set according to actual application needs.
[0063] The disclosed embodiments provide a control method, device, electronic device and storage medium, the method comprising: obtaining real-time data of multiple sensors on the electronic device within a set time period and real-time status information of the electronic device; analyzing the real-time data to obtain analysis results of the real-time data; determining control instructions corresponding to the real-time status information and analysis results; and controlling the electronic device based on the control instructions. The above technical solution does not need to realize the input of instructions of the electronic device through various combinations and complex operations, but can determine the corresponding control instructions through the real-time data of multiple sensors on the electronic device within a set time period and the real-time status information of the electronic device, and control the electronic device based on the determined control instructions, which can more quickly input instructions of the electronic device to realize the control of the electronic device.
[0064] Based on the above embodiment, a variant embodiment of the above embodiment is proposed. It should be noted that in order to make the description concise, only the differences from the above embodiment are described in the variant embodiment.
[0065] Figure 2 It is a flow chart of another control method provided by an embodiment of the present disclosure. The embodiment of the present disclosure is to analyze real-time data to obtain further refinement of the analysis results of real-time data, and to control electronic equipment based on control instructions.
[0066] like Figure 2 As shown, the method includes:
[0067] S201: Acquire real-time data of multiple sensors on an electronic device within a set time period and real-time status information of the electronic device.
[0068] S202: Determine the change information of the real-time data within a set time period.
[0069] The change information may refer to the information indicated by the change of the real-time value of the sensor within a set time period. There is no limitation on the change information. For example, the change information may include the number of light fluctuations, distance change information, flip change information and walking status information.
[0070] Among them, the number of light fluctuations may be the number of fluctuations of the light sensor within a set time length; the distance change information may be information indicating whether there is an object approaching the distance sensor within a set time length, and the distance change information may also be information indicating the change in the distance between the object and the distance sensor within a set time length; the flip change information may be information indicating whether the electronic device detected by the gravity sensor is performing a flip operation within a set time length; the walking state information may be information indicating whether the user of the electronic device detected by the acceleration sensor is in a walking state within a set time length.
[0071] There is no limitation on the method of determining the change information of the real-time data within the set time period, such as comparing the real-time data of the light sensor with the set reference value of the light sensor to determine the number of light fluctuations; comparing the real-time data of the distance sensor with the set numerical signal of the distance sensor to determine the distance change information; comparing the real-time data of the gravity sensor with the numerical range of the gravity sensor set when the electronic device is flipped to determine the flip change information; comparing the real-time data of the acceleration sensor with the numerical range of the acceleration sensor set when the user of the electronic device is in a walking state to determine the walking state information. Among them, there is no limitation on the set reference value of the light sensor, the set numerical signal of the distance sensor, the set numerical range of the gravity sensor and the set numerical range of the acceleration sensor, and they can be selected according to the actual application needs.
[0072] S203, determining the analysis result of the real-time data based on the change information, where the change information includes the number of light fluctuations, distance change information, flip change information and walking state information.
[0073] There is no limitation on the method of determining the analysis result of the real-time data based on the change information. For example, the change information can be directly determined as the analysis result of the real-time data. For another example, the change information can be further analyzed to obtain the analysis result of the real-time data. The method of further analysis can be determined according to actual needs.
[0074] In one embodiment, the change information is further analyzed to obtain the analysis result of the real-time data, which may be to compare the number of light fluctuations included in the change information with a set number threshold, and determine the comparison result as the analysis result of the real-time data. For example, when the number of light fluctuations is 5 and the set number threshold is 2, the comparison result may be that the number of light fluctuations is greater than 2, and the number of light fluctuations greater than 2 is determined as the analysis result of the real-time data. The set number threshold is not limited.
[0075] S204: Determine control instructions corresponding to the real-time status information and analysis results.
[0076] S205: Based on the control instruction, control the page elements of the application displayed on the electronic device.
[0077] Among them, the page element may refer to an element contained in the page of an application displayed by the electronic device. The page element may be a pop-up window, panel, graphic, menu or scroll bar in the page, etc., and is not specifically limited.
[0078] Based on the control instruction, the method of controlling the page elements of the application displayed on the electronic device is not limited. For example, the page elements of the application displayed on the electronic device are controlled by the operation indicated by the control instruction. For example, when the control instruction indicates that a pop-up window is displayed on the page of the electronic device, a pop-up window is displayed on the page of the electronic device based on the control instruction; when the control instruction indicates that a panel is popped up on the page of the electronic device, a panel is popped up on the page of the electronic device based on the control instruction. By controlling the page elements of the application through the control instruction, the interaction between the user and the electronic device can be realized.
[0079] A control method provided by an embodiment of the present disclosure includes: obtaining real-time data of multiple sensors on an electronic device within a set time period and real-time status information of the electronic device; determining change information of the real-time data within the set time period; determining analysis results of the real-time data based on the change information; determining control instructions corresponding to the real-time status information and the analysis results; and controlling page elements of the application displayed by the electronic device based on the control instructions. The above technical solution determines the change information of the real-time data by analyzing the real-time data, determines the analysis results based on the change information, and then determines the control instructions based on the real-time status information and the analysis results to control the page elements of the application displayed by the electronic device. That is, the method realizes the signal input of the user (i.e., the user) based on the sensor, and combines the analysis results of the real-time data and the real-time status information to jointly realize the input of the control instructions of the electronic device, and then realizes the control of the page elements through the input control instructions, thereby meeting the demand for quick input.
[0080] In one embodiment, the sensor includes a light sensor, and determining the change information of the real-time data within a set time period includes:
[0081] Determine the light reference value corresponding to the real-time status information;
[0082] Compare the real-time data within the set time with the light reference value to determine the number of light fluctuations within the set time;
[0083] Accordingly, based on the change information, the analysis results of the real-time data are determined, including:
[0084] The number of light fluctuations is determined as an analysis result of real-time data.
[0085] Multiple scenes can be determined by different time and weather information included in the real-time status information, and each scene can have a corresponding light reference value. For example, multiple scenes can be outdoors on a sunny day, outdoors on a rainy day, indoors at night with the lights on, or indoors at night with the lights off, etc., and the corresponding light reference value can be determined in different scenes according to actual application needs. Among them, the light reference value can be a benchmark for judging whether the value of the light sensor fluctuates, that is, the reference value of the light sensor in the above embodiment, and the value of the light sensor can fluctuate around the light reference value.
[0086] After obtaining the real-time status information of the current electronic device, the time and weather information included in the real-time status information can be determined, and then the scene corresponding to the time and weather information can be determined. According to the scene corresponding to the time and weather information, the light reference value corresponding to the real-time status information can be determined.
[0087] After determining the light reference value corresponding to the real-time status information, the real-time data within the set time period can be compared with the light reference value to determine the number of light fluctuations within the set time period. For example, the real-time data within the set time period is compared with the light reference value, and the data greater than the light reference value can be considered as a fluctuation of the light sensor; another example is to use the determined light reference value as the current baseline, and the value of any time node within the set time period will fluctuate around the baseline. When the amplitude of the fluctuation is greater than the preset amplitude threshold, it can be considered as a fluctuation of the light sensor, wherein the preset amplitude threshold is not limited.
[0088] After determining the number of light fluctuations within the set time period, the number of light fluctuations may be determined as an analysis result of the real-time data, the analysis result indicating the number of times the value of the light sensor fluctuates.
[0089] In one embodiment, the sensor includes a distance sensor, and determining the change information of the real-time data within a set time period includes:
[0090] Determine whether the distance between the object and the electronic device is less than a set distance based on the real-time data;
[0091] Based on the determined result, determining distance change information between the object and the electronic device;
[0092] Accordingly, based on the change information, the analysis results of the real-time data are determined, including:
[0093] The distance change information is determined as an analysis result of the real-time data.
[0094] The method for determining whether the distance between an object and an electronic device is less than a set distance based on real-time data is not limited. For example, if the numerical signal of the set distance sensor is 0, it indicates that the distance between the object and the electronic device is not less than the set distance, and if the numerical signal of the set distance sensor changes to 5, it indicates that the distance between the object and the electronic device is less than the set distance; the real-time data of the distance sensor is compared with the numerical signal of the set distance sensor. If the real-time data of the distance sensor is 0, it indicates that the distance between the object and the electronic device is not less than the set distance, and the distance change information indicates that no object is approaching the electronic device; the real-time data of the distance sensor is compared with the numerical signal of the set distance sensor. If the real-time data of the distance sensor changes to 5, it indicates that the distance between the object and the electronic device is less than the set distance, and the distance change information indicates that an object is approaching the electronic device.
[0095] After determining the distance change information between the object and the electronic device, the distance change information may be determined as an analysis result of the real-time data, where the analysis result indicates whether an object is approaching the electronic device.
[0096] In one embodiment, the sensor includes a gravity sensor, and determining the change information of the real-time data within a set time period includes:
[0097] Compare the real-time data within the set time period with the rollover threshold information to determine the rollover change information within the set time period;
[0098] Accordingly, based on the change information, the analysis results of the real-time data are determined, including:
[0099] The flip change information is determined as an analysis result of the real-time data, and the analysis result indicates whether the electronic device performs a flip operation.
[0100] Among them, the flip threshold information can be information about the numerical range of the gravity sensor set when indicating that the electronic device is performing a flip operation. The value of the gravity sensor within the numerical range indicates that the electronic device is performing a flip operation, otherwise the electronic device is not performing a flip operation. There is no specific limitation on the meaning of the flip threshold information.
[0101] The real-time data within a set time period is compared with the flip threshold information. If the value in the real-time data is within the value range indicated by the flip threshold information, it is determined that the flip change information within the set time period indicates that the electronic device is performing a flip operation; if the value in the real-time data is not within the value range indicated by the flip threshold information, it is determined that the flip change information within the set time period indicates that the electronic device is not performing a flip operation.
[0102] After determining the flip change information within the set time period, the flip change information can be determined as an analysis result of the real-time data, and the analysis result indicates whether the electronic device performs a flip operation.
[0103] In one embodiment, the sensor includes an acceleration sensor, and determining the change information of the real-time data within a set time period includes:
[0104] Compare the real-time data within a set time period with the walking state threshold information to determine the walking state information of the user of the electronic device;
[0105] Accordingly, based on the change information, the analysis results of the real-time data are determined, including:
[0106] The walking state information is determined as an analysis result of real-time data.
[0107] Among them, the walking state threshold information can be information indicating the value range of the acceleration sensor set when the user is in the walking state. When the value of the acceleration sensor is within the value range, it indicates that the user is in the walking state, otherwise the user is not in the walking state.
[0108] The real-time data within a set time period is compared with the walking status threshold information. If the value in the real-time data is within the value range indicated by the walking status threshold information, it is determined that the walking status information of the user of the electronic device within the set time period indicates that the user is in a walking state; if the value in the real-time data is not within the value range indicated by the walking status threshold information, it is determined that the walking status information of the user of the electronic device within the set time period indicates that the user is not in a walking state.
[0109] After the walking state information of the user of the electronic device is determined, the walking state information may be determined as an analysis result of the real-time data, the analysis result indicating whether the user of the electronic device is in a walking state.
[0110] In one embodiment, the analysis results of real-time data and the control instructions corresponding to the real-time status information are exemplified. Table 1 shows the control instructions corresponding to different analysis results and real-time status information. The present disclosure is not limited to the correspondence between the analysis results and real-time status information and the control instructions shown in Table 1.
[0111] Table 1 Control instructions corresponding to different analysis results and real-time status information
[0112]
[0113]
[0114] Among them, all the values in Table 1 represent the values within a "period of time", and the duration corresponding to the "period of time" can be customized without any specific limitation. The number of light sensor value fluctuations in Table 1 is the number of light fluctuations.
[0115] In one embodiment, the control instruction can also be directly determined based on the analysis results of the real-time data. For example, if the user's finger comes into close contact with the distance sensor and the light sensor and leaves quickly three times, it can be considered as a control instruction. If the user's finger comes into close contact with the sensor for a long time for a certain period of time, it can be considered as another control instruction, without specific limitation.
[0116] It should be noted that in the embodiments of the present disclosure, it is necessary to obtain real-time data of multiple sensors on the electronic device and real-time status information of the electronic device. The process of obtaining data and status information can be implemented through a continuous data and status information collection module; the acquired real-time data and real-time status information are regularly analyzed and processed through the instruction matching and processing module, and the corresponding control instructions are matched; after matching the corresponding control instructions, the control instructions are sent to the downstream instruction responder.
[0117] Figure 3 is a schematic diagram of the structure of a control device provided by an embodiment of the present disclosure, such as Figure 3As shown, the device includes: an acquisition module 301, an analysis module 302, a determination module 303 and a control module 304.
[0118] An acquisition module 301 is used to acquire real-time data of multiple sensors on an electronic device and real-time status information of the electronic device within a set time period;
[0119] The analysis module 302 is used to analyze the real-time data and obtain the analysis results of the real-time data;
[0120] A determination module 303, used to determine a control instruction corresponding to the real-time status information and the analysis result;
[0121] The control module 304 is used to control the electronic device based on the control instruction.
[0122] The technical solution provided by the embodiment of the present disclosure first obtains the real-time data of multiple sensors on the electronic device within a set time and the real-time status information of the electronic device through the acquisition module; then the real-time data is analyzed through the analysis module to obtain the analysis results of the real-time data; then the control instructions corresponding to the real-time status information and the analysis results are determined through the determination module; finally, the electronic device is controlled based on the control instructions through the control module. The above technical solution does not need to realize the input of the instructions of the electronic device through various combinations and complex operations, but can determine the corresponding control instructions through the real-time data of multiple sensors on the electronic device within a set time and the real-time status information of the electronic device, and control the electronic device based on the determined control instructions, which can more quickly input the instructions of the electronic device to realize the control of the electronic device.
[0123] In one embodiment, the analysis module 302 includes:
[0124] A change information determination module is used to determine the change information of real-time data within a set time period;
[0125] The analysis result determination module is used to determine the analysis result of the real-time data based on the change information, and the change information includes the number of light fluctuations, distance change information, flip change information and walking state information.
[0126] In one embodiment, the sensor includes a light sensor and a change information determination module, which is specifically used to:
[0127] Determine the light reference value corresponding to the real-time status information;
[0128] Compare the real-time data within the set time with the light reference value to determine the number of light fluctuations within the set time;
[0129] Accordingly, the analysis result determination module is specifically used for:
[0130] The number of light fluctuations is determined as an analysis result of real-time data.
[0131] In one embodiment, the sensor includes a distance sensor and a change information determination module, which is specifically used to:
[0132] Determine whether the distance between the object and the electronic device is less than a set distance based on the real-time data;
[0133] Based on the determined result, determining distance change information between the object and the electronic device;
[0134] Accordingly, the analysis result determination module is specifically used for:
[0135] The distance change information is determined as an analysis result of the real-time data.
[0136] In one embodiment, the sensor includes a gravity sensor, and the change information determination module is specifically used to:
[0137] Compare the real-time data within the set time period with the rollover threshold information to determine the rollover change information within the set time period;
[0138] Accordingly, the analysis result determination module is specifically used for:
[0139] The flip change information is determined as an analysis result of the real-time data, and the analysis result indicates whether the electronic device performs a flip operation.
[0140] In one embodiment, the sensor includes an acceleration sensor, and the change information determination module is specifically configured to:
[0141] Compare the real-time data within a set time period with the walking state threshold information to determine the walking state information of the user of the electronic device;
[0142] Accordingly, the analysis result determination module is specifically used for:
[0143] The walking state information is determined as an analysis result of real-time data.
[0144] In one embodiment, the control module 304 is specifically configured to:
[0145] Based on the control instruction, the page elements of the application displayed on the electronic device are controlled.
[0146] The control device provided in the embodiments of the present disclosure can execute the control method provided in any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of the execution method.
[0147] It is worth noting that the various units and modules included in the above-mentioned device are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the embodiments of the present disclosure.
[0148] Figure 4 Schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. Figure 4 , which shows an electronic device (eg, Figure 4 A schematic diagram of the structure of a terminal device or server in FIG. 400.
[0149] An electronic device provided by an embodiment of the present disclosure includes:
[0150] one or more processing devices;
[0151] a storage device for storing one or more programs,
[0152] When the one or more programs are executed by the one or more processing devices, the one or more processing devices implement the control method provided by the embodiment of the present disclosure.
[0153] The terminal devices in the embodiments of the present disclosure may include but are not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., as well as fixed terminals such as digital TVs, desktop computers, etc. Figure 4 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0154] like Figure 4 As shown, the electronic device 400 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 401, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 402 or a program loaded from a storage device 408 into a random access memory (RAM) 403. In the RAM 403, various programs and data required for the operation of the electronic device 400 are also stored. The processing device 401, the ROM 402, and the RAM 403 are connected to each other via a bus 404. An edit / output (I / O) interface 405 is also connected to the bus 404.
[0155] Typically, the following devices may be connected to the I / O interface 405: an input device 406 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 407 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 408 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 409. The communication device 409 may allow the electronic device 400 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 4 The electronic device 400 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.
[0156] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 409, or installed from the storage device 408, or installed from the ROM 402. When the computer program is executed by the processing device 401, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
[0157] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0158] The electronic device provided in the embodiment of the present disclosure and the control method provided in the above embodiment belong to the same inventive concept. The technical details not fully described in this embodiment can be referred to the above embodiment, and this embodiment has the same beneficial effects as the above embodiment.
[0159] The embodiments of the present disclosure provide a computer storage medium on which a computer program is stored. When the program is executed by a processor, the control method provided by the above embodiments is implemented.
[0160] It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the two.
[0161] The computer storage medium may be a storage medium of computer executable instructions, which, when executed by a computer processor, are used to perform the methods provided by the present disclosure.
[0162] Computer readable storage media may be, for example, but not limited to: electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or devices, or any combination thereof. More specific examples of computer readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate, or transmit a program used by or in combination with an instruction execution system, device, or device. The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to: wire, optical cable, RF (radio frequency), etc., or any suitable combination of the foregoing.
[0163] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0164] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0165] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: obtains real-time data of multiple sensors on the electronic device within a set time period and real-time status information of the electronic device; analyzes the real-time data to obtain analysis results of the real-time data; determines control instructions corresponding to the real-time status information and the analysis results; and controls the electronic device based on the control instructions.
[0166] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or combinations thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0167] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0168] The modules or units involved in the embodiments described in the present disclosure may be implemented by software or hardware. The name of a module or unit does not limit the unit itself in some cases. For example, an acquisition module may also be described as an "information acquisition module".
[0169] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0170] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0171] According to one or more embodiments of the present disclosure, Example 1 provides a control method, including:
[0172] Acquire real-time data of multiple sensors on an electronic device within a set time period and real-time status information of the electronic device;
[0173] Analyze the real-time data to obtain analysis results of the real-time data;
[0174] Determining control instructions corresponding to the real-time status information and the analysis results;
[0175] Based on the control instruction, the electronic device is controlled.
[0176] According to one or more embodiments of the present disclosure, Example 2 is based on the method described in Example 1,
[0177] The analyzing the real-time data to obtain the analysis result of the real-time data includes:
[0178] Determine the change information of the real-time data within the set time period;
[0179] Based on the change information, the analysis result of the real-time data is determined, and the change information includes the number of light fluctuations, distance change information, flip change information and walking state information.
[0180] According to one or more embodiments of the present disclosure, Example 3 is the method according to Example 2,
[0181] The sensor includes a light sensor, and the determining of the change information of the real-time data within the set time period includes:
[0182] Determine the light reference value corresponding to the real-time status information;
[0183] Compare the real-time data within the set time period with the light reference value to determine the number of light fluctuations within the set time period;
[0184] Accordingly, determining the analysis result of the real-time data based on the change information includes:
[0185] The number of light fluctuations is determined as an analysis result of the real-time data.
[0186] According to one or more embodiments of the present disclosure, Example 4 is the method according to Example 2,
[0187] The sensor includes a distance sensor, and the determining of the change information of the real-time data within the set time period includes:
[0188] Determining whether the distance between the object and the electronic device is less than a set distance based on the real-time data;
[0189] Based on the determined result, determining distance change information between the object and the electronic device;
[0190] Accordingly, determining the analysis result of the real-time data based on the change information includes:
[0191] The distance change information is determined as an analysis result of the real-time data.
[0192] According to one or more embodiments of the present disclosure, Example 5 is the method according to Example 2,
[0193] The sensor includes a gravity sensor, and the determining of the change information of the real-time data within the set time period includes:
[0194] Compare the real-time data within the set time period with the rollover threshold information to determine the rollover change information within the set time period;
[0195] Accordingly, determining the analysis result of the real-time data based on the change information includes:
[0196] The flip change information is determined as an analysis result of the real-time data, and the analysis result indicates whether the electronic device performs a flip operation.
[0197] According to one or more embodiments of the present disclosure, Example 6 is the method according to Example 2,
[0198] The sensor includes an acceleration sensor, and the determining of the change information of the real-time data within the set time period includes:
[0199] Comparing the real-time data within the set time period with the walking state threshold information to determine the walking state information of the user of the electronic device;
[0200] Accordingly, determining the analysis result of the real-time data based on the change information includes:
[0201] The walking state information is determined as the analysis result of the real-time data.
[0202] According to one or more embodiments of the present disclosure, Example 7 is the method according to Example 1,
[0203] The controlling the electronic device based on the control instruction includes:
[0204] Based on the control instruction, the page elements of the application displayed on the electronic device are controlled.
[0205] According to one or more embodiments of the present disclosure, Example 8 provides a control device, including:
[0206] An acquisition module, used to acquire real-time data of multiple sensors on an electronic device within a set time period and real-time status information of the electronic device;
[0207] An analysis module, used to analyze the real-time data to obtain analysis results of the real-time data;
[0208] A determination module, used to determine a control instruction corresponding to the real-time status information and the analysis result;
[0209] The control module is used to control the electronic device based on the control instruction.
[0210] According to one or more embodiments of the present disclosure, Example 9 provides an electronic device, the electronic device comprising:
[0211] one or more processing devices;
[0212] a storage device for storing one or more programs,
[0213] When the one or more programs are executed by the one or more processing devices, the one or more processing devices implement the control method provided by the embodiment of the present disclosure.
[0214] According to one or more embodiments of the present disclosure, Example 10 provides a storage medium containing computer executable instructions, which are used to execute the control method provided by the embodiment of the present disclosure when executed by a computer processor.
[0215] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.
[0216] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
[0217] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.
Claims
1. A control method, characterized in that: include: Acquire real-time data of multiple sensors on an electronic device within a set time period and real-time status information of the electronic device; Analyze the real-time data to obtain analysis results of the real-time data; Determining control instructions corresponding to the real-time status information and the analysis results; Based on the control instruction, the electronic device is controlled.
2. The method according to claim 1, characterized in that The analyzing the real-time data to obtain the analysis result of the real-time data includes: Determine the change information of the real-time data within the set time period; Based on the change information, the analysis result of the real-time data is determined, and the change information includes the number of light fluctuations, distance change information, flip change information and walking state information.
3. The method according to claim 2, characterized in that The sensor includes a light sensor, and the determining of the change information of the real-time data within the set time period includes: Determine the light reference value corresponding to the real-time status information; Compare the real-time data within the set time period with the light reference value to determine the number of light fluctuations within the set time period; Accordingly, determining the analysis result of the real-time data based on the change information includes: The number of light fluctuations is determined as an analysis result of the real-time data.
4. The method according to claim 2, characterized in that: The sensor includes a distance sensor, and the determining of the change information of the real-time data within the set time period includes: Determining whether the distance between the object and the electronic device is less than a set distance based on the real-time data; Based on the determined result, determining distance change information between the object and the electronic device; Accordingly, determining the analysis result of the real-time data based on the change information includes: The distance change information is determined as an analysis result of the real-time data.
5. The method according to claim 2, characterized in that: The sensor includes a gravity sensor, and the determining of the change information of the real-time data within the set time period includes: Compare the real-time data within the set time period with the rollover threshold information to determine the rollover change information within the set time period; Accordingly, determining the analysis result of the real-time data based on the change information includes: The flip change information is determined as an analysis result of the real-time data, and the analysis result indicates whether the electronic device performs a flip operation.
6. The method according to claim 2, characterized in that The sensor includes an acceleration sensor, and the determining of the change information of the real-time data within the set time period includes: Comparing the real-time data within the set time period with the walking state threshold information to determine the walking state information of the user of the electronic device; Accordingly, determining the analysis result of the real-time data based on the change information includes: The walking state information is determined as the analysis result of the real-time data.
7. The method according to claim 1, characterized in that The controlling the electronic device based on the control instruction includes: Based on the control instruction, the page elements of the application displayed on the electronic device are controlled.
8. A control device, characterized in that: include: An acquisition module, used to acquire real-time data of multiple sensors on an electronic device within a set time period and real-time status information of the electronic device; An analysis module, used to analyze the real-time data to obtain analysis results of the real-time data; A determination module, used to determine a control instruction corresponding to the real-time status information and the analysis result; The control module is used to control the electronic device based on the control instruction.
9. An electronic device, characterized in that: The electronic device comprises: one or more processing devices; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processing devices, the one or more processing devices implement the control method as described in any one of claims 1-7.
10. A storage medium comprising computer executable instructions, wherein the computer executable instructions are used to perform the control method according to any one of claims 1 to 7 when executed by a computer processor.