CN103581446B - A kind of profile switching method and electric terminal - Google Patents
A kind of profile switching method and electric terminal Download PDFInfo
- Publication number
- CN103581446B CN103581446B CN201310610200.4A CN201310610200A CN103581446B CN 103581446 B CN103581446 B CN 103581446B CN 201310610200 A CN201310610200 A CN 201310610200A CN 103581446 B CN103581446 B CN 103581446B
- Authority
- CN
- China
- Prior art keywords
- frequency
- value
- scene mode
- feature
- mode
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 24
- 238000007619 statistical method Methods 0.000 claims abstract description 15
- 239000000284 extract Substances 0.000 claims abstract description 5
- 238000004458 analytical method Methods 0.000 claims description 7
- 238000000611 regression analysis Methods 0.000 claims description 7
- 238000004364 calculation method Methods 0.000 claims description 6
- 238000007405 data analysis Methods 0.000 claims description 6
- 238000005259 measurement Methods 0.000 claims 1
- 230000000694 effects Effects 0.000 abstract description 6
- 238000002604 ultrasonography Methods 0.000 abstract 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000001228 spectrum Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Landscapes
- Telephone Function (AREA)
Abstract
一种情景模式切换方法及电子终端,该电子终端上配置有超声波传感器,所述方法的步骤包括:预设与各情景模式惟一对应的特征参照值和/或特征参照范围并储存;所述超声波传感器发射预定义频段的超声波脉冲束,同时接收经反射的返回波;提取返回波的频率数据,并对所述频率数据进行统计分析,获取统计特征值;将所述统计特征值与预设的特征参照值或特征参照范围进行匹配,若匹配成功,则切换至相应的情景模式。本发明通过利用超声波的多普勒效应自动检测周围环境的可监控范围内的物体的活动情况,自动识别应用场合并实时调节电子终端至适当的情景模式,人性化、智能化程度高,而且操作准确可靠。
A scene mode switching method and an electronic terminal, the electronic terminal is equipped with an ultrasonic sensor, the steps of the method include: preset and store a characteristic reference value and/or a characteristic reference range uniquely corresponding to each scene mode; The sensor emits an ultrasonic pulse beam of a predefined frequency band and receives the reflected return wave at the same time; extracts the frequency data of the return wave, and performs statistical analysis on the frequency data to obtain statistical characteristic values; compares the statistical characteristic value with the preset The feature reference value or the feature reference range is matched, and if the match is successful, then switch to the corresponding scene mode. The invention automatically detects the activities of objects within the monitorable range of the surrounding environment by using the Doppler effect of ultrasound, automatically identifies the application occasion and adjusts the electronic terminal to an appropriate scene mode in real time, which is humanized and intelligent, and easy to operate. Accurate and reliable.
Description
技术领域 technical field
本发明涉及电子设备技术领域,尤其涉及一种情景模式切换方法及电子终端。 The invention relates to the technical field of electronic equipment, in particular to a scene mode switching method and an electronic terminal.
背景技术 Background technique
目前,手机尤其是智能手机已广泛地应用,而且在人们的日常生活和工作中占据了重要的地位。它作为信息交流的工具,在给人们带来方便的同时,相应地也带来了一些烦恼,比如在会议、商务洽谈等较为安静的公众场合突然接收到来电,铃声大作,或者搁置的手机把整个会议桌震动得嗡嗡作响,因此干扰了他人,造成尴尬;又比如在休息的时候被来电或者信息铃声所烦扰,影响了用户甚至他人的作息。为此,软件工程师在手机中定义了多种不同模式,通过切换至不同的模式可适应各种使用场景,以避免上述困扰。但目前手机模式的切换基本上都需要用户自行手动切换,当用户进入不同的场合时,需要记得实施切换模式这一操作,但现代社会的快节奏,使人们往往忙得忘记了这一细节,因而造成很多尴尬。因此,人们尤为期望有一种自动地适应手机的使用场合从而对情景模式进行自动切换的方法。 At present, mobile phones, especially smart phones, have been widely used, and occupy an important position in people's daily life and work. As a tool for information exchange, it not only brings convenience to people, but also brings some troubles correspondingly, such as suddenly receiving incoming calls in relatively quiet public places such as conferences and business negotiations, ringing loudly, or leaving mobile phones on hold. The entire conference table vibrates and buzzes, which disturbs others and causes embarrassment; another example is when you are disturbed by incoming calls or message ringtones during a break, which affects the work and rest of users and even others. To this end, software engineers have defined a variety of different modes in the mobile phone, which can be adapted to various usage scenarios by switching to different modes, so as to avoid the above-mentioned troubles. But at present, the switching of mobile phone modes basically requires the user to switch manually. When the user enters a different occasion, he needs to remember to implement the operation of switching modes. However, the fast pace of modern society makes people often forget this detail. This caused a lot of embarrassment. Therefore, it is particularly desirable to have a method for automatically switching scene modes by automatically adapting to the usage occasion of the mobile phone.
发明内容 Contents of the invention
为了克服上述所指的现有技术中的不足之处,本发明提供一种情景模式切换方法及电子终端,以实现自动调整情景模式,避免突然而至的来电或接收信息等动作发出的提醒信号打扰用户或他人。 In order to overcome the deficiencies in the prior art referred to above, the present invention provides a scene mode switching method and an electronic terminal, so as to automatically adjust the scene mode and avoid reminder signals sent by sudden incoming calls or receiving information. disturb the user or others.
本发明是通过以下技术方案实现的: The present invention is achieved through the following technical solutions:
一种电子终端的情景模式切换方法,该电子终端上配置有超声波传感器,所述方法的步骤包括: A method for switching scene modes of an electronic terminal, the electronic terminal is equipped with an ultrasonic sensor, and the steps of the method include:
S1、预设与各情景模式惟一对应的特征参照值和/或特征参照范围并储存; S1. Preset and store the characteristic reference value and/or characteristic reference range uniquely corresponding to each scene mode;
S2、所述超声波传感器发射预定义频段的超声波脉冲束,同时接收经反射的返回波; S2. The ultrasonic sensor transmits an ultrasonic pulse beam of a predefined frequency band, and simultaneously receives reflected return waves;
S3、提取返回波的频率数据,并对所述频率数据进行统计分析,获取统计特征值; S3. Extract frequency data of the return wave, and perform statistical analysis on the frequency data to obtain statistical feature values;
S4、将所述统计特征值与预设的特征参照值或特征参照范围进行匹配,若匹配成功,则切换至相应的情景模式。 S4. Match the statistical feature value with a preset feature reference value or feature reference range, and switch to a corresponding scene mode if the matching is successful.
所述步骤S1之后,步骤S2之前还包括:S0、检测到与铃音或震动提醒功能相关联的事件,触发情景模式自动切换功能,开启超声波传感器。 After the step S1 and before the step S2, the method further includes: S0, detecting an event associated with the ring tone or vibration reminder function, triggering the scene mode automatic switching function, and turning on the ultrasonic sensor.
进一步地,所述步骤S2中超声波传感器随机地向N个方向发射预定义频段和振幅的超声波脉冲束,N为大于零的自然数。 Further, in the step S2, the ultrasonic sensor randomly transmits ultrasonic pulse beams with predefined frequency bands and amplitudes in N directions, where N is a natural number greater than zero.
步骤S3中对所述频率数据进行统计分析包括进行均值计算、方差分析及回归分析,所述统计特征值包括频率实测值、频率均值和频率方差。 Statistical analysis of the frequency data in step S3 includes mean value calculation, variance analysis and regression analysis, and the statistical feature values include measured frequency values, frequency mean values and frequency variances.
所述步骤S4中的匹配成功是指各项统计特征值中的之一与对应的特征参照值或特征参照范围匹配成功,或者各项统计特征值均与对应的特征参照值或特征参照范围匹配成功。 The matching success in the step S4 means that one of the statistical feature values matches the corresponding feature reference value or feature reference range successfully, or each statistical feature value matches the corresponding feature reference value or feature reference range success.
进一步地,所述步骤S4包括: Further, the step S4 includes:
S41、将所述统计特征值与预设的特征参照值进行匹配,若匹配成功,则切换至相应的情景模式,否则执行步骤S42; S41. Match the statistical characteristic value with the preset characteristic reference value. If the matching is successful, switch to the corresponding scenario mode, otherwise execute step S42;
S42、将所述统计特征值与预设的特征参照范围进行匹配,若匹配成功,则切换至相应的情景模式。 S42. Match the statistical feature value with a preset feature reference range, and switch to a corresponding scenario mode if the matching is successful.
较佳地,所述步骤S4包括: Preferably, said step S4 includes:
S41、将统计得到的频率方差与各情景模式的特征参照值进行匹配,若该频率方差与一特征参照值相同,则切换至相应情景模式,否则执行步骤S42; S41. Match the statistically obtained frequency variance with the feature reference value of each scene mode, if the frequency variance is the same as a feature reference value, switch to the corresponding scene mode, otherwise execute step S42;
S42、将所述频率方差与各情景模式的特征参照范围进行匹配,若该频率方差在一特征参照范围以内,则切换至相应情景模式。 S42. Match the frequency variance with the feature reference range of each scenario mode, and switch to the corresponding scenario mode if the frequency variance is within a feature reference range.
本情景模式切换方法中的情景模式包括标准模式、会议模式、户外模式、睡眠模式、飞行模式中的一种或两种以上。 The scene modes in the scene mode switching method include one or more of standard mode, conference mode, outdoor mode, sleep mode and flight mode.
本发明还提供了一种电子终端,该电子终端上配置有超声波传感器,包括: The present invention also provides an electronic terminal, which is equipped with an ultrasonic sensor, including:
参数设定模块,用于预设与各情景模式惟一对应的特征参照值和/或特征参照范围并储存; The parameter setting module is used to preset and store the characteristic reference value and/or characteristic reference range uniquely corresponding to each scene mode;
信号收发模块,用于发射预定义频段的超声波脉冲束,同时接收经反射的返回波; The signal transceiver module is used to transmit the ultrasonic pulse beam of the predefined frequency band and receive the reflected return wave at the same time;
数据分析模块,用于提取返回波的频率数据,并对所述频率数据进行统计分析,获取统计特征值; The data analysis module is used to extract the frequency data of the return wave, and perform statistical analysis on the frequency data to obtain statistical feature values;
切换模块,用于将所述统计特征值与预设的特征参照值或特征参照范围进行匹配,若匹配成功,则切换至相应的情景模式。 The switching module is used to match the statistical feature value with the preset feature reference value or feature reference range, and switch to the corresponding scene mode if the matching is successful.
数据分析模块用于对所述频率数据进行统计分析包括进行均值计算、方差分析及回归分析,所述统计特征值包括频率实测值、频率均值和频率方差。 The data analysis module is used to perform statistical analysis on the frequency data, including mean value calculation, variance analysis and regression analysis, and the statistical characteristic value includes frequency measured value, frequency mean value and frequency variance.
与现有技术相比,本发明为用户提供了更为方便精准的情景模式切换方式,基于超声波传感器,通过利用超声波的多普勒效应准确地自动检测周围环境的可监控范围内的人体或物体的活动情况,自动识别应用场合并实时调节电子终端至适当的情景模式,从而避免突然而至的来电或接收信息等程序发出的提醒信号打扰用户及他人;人性化、智能化程度高,而且操作准确可靠。 Compared with the prior art, the present invention provides users with a more convenient and accurate scene mode switching method, based on the ultrasonic sensor, by using the Doppler effect of ultrasonic to accurately and automatically detect the human body or objects within the monitorable range of the surrounding environment activities, automatically identify the application and adjust the electronic terminal to an appropriate scene mode in real time, so as to avoid the reminder signal from the program such as a sudden incoming call or receiving information from disturbing the user and others; the degree of humanization and intelligence is high, and the operation Accurate and reliable.
附图说明 Description of drawings
附图1为本发明一种实施例的情景模式切换方法的实现流程示意图; Accompanying drawing 1 is the realization flowchart of the scene mode switching method of an embodiment of the present invention;
附图2为本发明一种实施例的电子终端的构成框架图。 Figure 2 is a frame diagram of an electronic terminal according to an embodiment of the present invention.
具体实施方式 detailed description
为了便于本领域技术人员的理解,下面结合附图对本发明作进一步的描述。 In order to facilitate the understanding of those skilled in the art, the present invention will be further described below in conjunction with the accompanying drawings.
一种电子终端的情景模式切换方法,该电子终端上配置有超声波传感器,所述方法的步骤包括: A method for switching scene modes of an electronic terminal, the electronic terminal is equipped with an ultrasonic sensor, and the steps of the method include:
S1、预设与各情景模式惟一对应的特征参照值和/或特征参照范围并储存; S1. Preset and store the characteristic reference value and/or characteristic reference range uniquely corresponding to each scene mode;
S2、所述超声波传感器发射预定义频段的超声波脉冲束,同时接收经反射的返回波; S2. The ultrasonic sensor transmits an ultrasonic pulse beam of a predefined frequency band, and simultaneously receives reflected return waves;
S3、提取返回波的频率数据,并对所述频率数据进行统计分析,获取统计特征值; S3. Extract frequency data of the return wave, and perform statistical analysis on the frequency data to obtain statistical feature values;
S4、将所述统计特征值与预设的特征参照值或特征参照范围进行匹配,若匹配成功,则切换至相应的情景模式。 S4. Match the statistical feature value with a preset feature reference value or feature reference range, and switch to a corresponding scene mode if the matching is successful.
本发明的原理是利用声波的多普勒效应,通过超声波传感器判断当前用户所在环境,其判断方法是预先设置情景模式对应的环境参数,通过超声波传感器发出超声波,然后接收一定范围内(如10米范围)的返回波,分析返回波的频谱信息,据此确定对应的情景模式。比如,在午休时周围所有物体都处于静止状态,返回波的频率基本不变,识别为睡眠模式,此时将来电或短信提醒作静音处理。 The principle of the present invention is to use the Doppler effect of sound waves to judge the current environment of the user through the ultrasonic sensor. Range) return wave, analyze the spectrum information of the return wave, and determine the corresponding scene mode accordingly. For example, during a lunch break, all objects around are in a static state, and the frequency of the return wave is basically unchanged, and it is recognized as a sleep mode. At this time, the incoming call or text message reminder is muted.
在本发明中,所述情景模式可包括标准模式、会议模式、户外模式、睡眠模式、飞行模式中的一种或两种以上。在步骤S1中,预先设置与每一情景模式惟一对应的特征参照值或特征参照范围,所述特征参照值或特征参照范围是作为频率实测值、频率均值和频率方差等统计数据的参考。 In the present invention, the scene mode may include one or more of standard mode, conference mode, outdoor mode, sleep mode and flight mode. In step S1, a feature reference value or feature reference range uniquely corresponding to each scene mode is preset, and the feature reference value or feature reference range is used as a reference for statistical data such as frequency measured value, frequency mean value, and frequency variance.
在所述步骤S1之后,步骤S2之前还包括:S0、检测到与铃音或震动提醒功能相关联的事件,触发情景模式自动切换功能,开启超声波传感器。为了节省电源,在一般情况下手机是设定为默认情景模式的,只有当来电,接收信息等需要与用户交互并且通过铃音或震动提醒影响目前用户所在环境时,比如接收到来电或者短信息时,才触发情景模式自动切换功能。 After the step S1, but before the step S2, it also includes: S0, detecting an event associated with the ring tone or vibration reminder function, triggering the scene mode automatic switching function, and turning on the ultrasonic sensor. In order to save power, the mobile phone is generally set to the default scene mode, only when incoming calls, receiving messages, etc. need to interact with the user and affect the current user's environment through ringtones or vibration reminders, such as receiving incoming calls or short messages , the scene mode automatic switching function will be triggered.
在所述步骤S2中,超声波传感器向电子终端所在的立体空间随机地朝N个方向发射预定义频段和振幅的超声波脉冲束,N为大于零的自然数,较佳地,N可以自定义。发出的超声波脉冲束遇到物体后,就会被反射返回,并被接收。如果超声波遇到静止的物体,则会以原来的频率返回,如果遇到运动的物体,超声波将会发生多普勒效应,即物体远离超声波发射源,则返回波频率会降低,如果物体靠近超声波发射源,则返回波频率会升高。据此,通过分析返回波的频率数据,可以判断当前环境的物体或者人体是处于静止或者远离或者靠近的状态。 In the step S2, the ultrasonic sensor randomly transmits ultrasonic pulse beams with predefined frequency bands and amplitudes in N directions to the three-dimensional space where the electronic terminal is located. N is a natural number greater than zero. Preferably, N can be customized. After the emitted ultrasonic pulse beam encounters an object, it will be reflected back and received. If the ultrasonic wave encounters a stationary object, it will return at the original frequency. If it encounters a moving object, the ultrasonic wave will undergo the Doppler effect, that is, the object is far away from the ultrasonic source, and the return wave frequency will decrease. If the object is close to the ultrasonic wave source, the return wave frequency will increase. Accordingly, by analyzing the frequency data of the return wave, it can be judged whether the object or the human body in the current environment is in a state of being stationary or far away or approaching.
在所述步骤S2中,超声波传感器同时接收一定范围内反射回来的超声波。该超声波传感器的超声波接收范围可以通过调整超声波的强度来确定。根据超声波随着传播的距离的变长振幅变小的特性,可以通过设置超声波脉冲束的振幅大小来确定需要监测的环境范围大小。 In the step S2, the ultrasonic sensor simultaneously receives ultrasonic waves reflected within a certain range. The ultrasonic receiving range of the ultrasonic sensor can be determined by adjusting the intensity of ultrasonic waves. According to the characteristic that the amplitude of ultrasonic waves becomes smaller as the distance of propagation increases, the size of the environment to be monitored can be determined by setting the amplitude of the ultrasonic pulse beam.
在所述步骤S3中,电子终端提取反射回来的超声波特性,尤其是频率数据,并对各个方向的返回波的频率数据做数学统计,包括随机变量、均值、方差分析,回归分析等。较佳地,步骤S3中对所述频率数据进行统计分析包括进行均值计算、方差分析及回归分析,所述统计特征值包括频率实测值、频率均值和频率方差。 In the step S3, the electronic terminal extracts the characteristics of the reflected ultrasonic waves, especially the frequency data, and performs mathematical statistics on the frequency data of the returned waves in various directions, including random variables, mean values, variance analysis, and regression analysis. Preferably, performing statistical analysis on the frequency data in step S3 includes performing mean value calculation, variance analysis and regression analysis, and the statistical feature values include measured frequency values, frequency mean values and frequency variances.
在步骤S4中,根据步骤S3中的统计分析结果与系统预置的参考数据的匹配结果,确定电子终端所处环境和适宜的情景模式。较佳地,系统预置的参考数据分两部分,一部分是各情景模式对应的固定的特征参照值,另一个是各情景模式预定义的特征参照范围。在步骤S4中,所述匹配成功是指各项统计特征值中的之一与对应的特征参照值或特征参照范围匹配成功,或者各项统计特征值均与对应的特征参照值或特征参照范围匹配成功。在本方法的一种实施例中,如果能与系统预置的特征参照值的某一项匹配成功,则切换至该特征参照值对应的情景模式;如果不能匹配,则继续将各项统计特征值的与预定义的特征参照范围进行匹配,确定相应情景模式。比如,如果各个方向返回波的频率实测值都是固定的发射波频率,而且理想情况下,频率方差为零,则判断此时的环境是处在一个安静场所,推断可能周围人们都在睡眠中,或者是在会议中,此时若频率实测值或者频率方差与会议模式的特征参照值相同,则自动设置情景模式为会议模式,在会议模式中关闭震动及铃音提示功能以避免干扰他人;如果统计得到的各方向的返回波的频率方差较大,匹配特征参照值失败,说明频率数据分散,并且相差较大,则可以判断电子终端是处于在人多的户外,若频率方差刚好在户外模式的特征参照范围内,这时设置情景模式为户外模式,以手机为例,在户外模式中手机可设置为通过震动并以最大音量铃音提醒用户。 In step S4, according to the matching result of the statistical analysis result in step S3 and the reference data preset by the system, the environment in which the electronic terminal is located and a suitable scene mode are determined. Preferably, the reference data preset by the system is divided into two parts, one part is the fixed feature reference value corresponding to each scene mode, and the other is the predefined feature reference range of each scene mode. In step S4, the matching success means that one of the statistical feature values matches the corresponding feature reference value or feature reference range successfully, or each statistical feature value matches the corresponding feature reference value or feature reference range The match was successful. In one embodiment of the method, if it can be successfully matched with a certain item of the system preset feature reference value, then switch to the scene mode corresponding to the feature reference value; The value is matched with the predefined feature reference range to determine the corresponding scenario mode. For example, if the measured values of the frequencies of the return waves in all directions are fixed transmit wave frequencies, and ideally, the frequency variance is zero, then it is judged that the environment at this time is in a quiet place, and it may be inferred that people around are sleeping , or in a meeting, if the measured frequency value or the frequency variance is the same as the characteristic reference value of the meeting mode, the scene mode will be automatically set to the meeting mode, and the vibration and ringtone reminder functions will be turned off in the meeting mode to avoid disturbing others; If the statistically obtained frequency variance of the return waves in each direction is large and the matching feature reference value fails, it means that the frequency data is scattered and the difference is large. It can be judged that the electronic terminal is located outdoors with many people. If the frequency variance is just outside The characteristics of the mode are within the reference range. At this time, the scene mode is set as the outdoor mode. Taking a mobile phone as an example, in the outdoor mode, the mobile phone can be set to vibrate and alert the user with a ring tone at the maximum volume.
在本方法的一种实施例中,所述步骤S4包括: In an embodiment of the method, the step S4 includes:
S41、将所述统计特征值与预设的特征参照值进行匹配,若匹配成功,则切换至相应的情景模式,否则执行步骤S42; S41. Match the statistical characteristic value with the preset characteristic reference value. If the matching is successful, switch to the corresponding scenario mode, otherwise execute step S42;
S42、将所述统计特征值与预设的特征参照范围进行匹配,若匹配成功,则切换至相应的情景模式。 S42. Match the statistical feature value with a preset feature reference range, and switch to a corresponding scenario mode if the matching is successful.
由于频率方差可以较为直观地反映频率的变动情况,因此较佳地,所述步骤S4包括: Since the frequency variance can more intuitively reflect the variation of the frequency, preferably, the step S4 includes:
S41、将统计得到的频率方差与各情景模式的特征参照值进行匹配,若该频率方差与一特征参照值相同,则切换至相应情景模式,否则执行步骤S42; S41. Match the statistically obtained frequency variance with the feature reference value of each scene mode, if the frequency variance is the same as a feature reference value, switch to the corresponding scene mode, otherwise execute step S42;
S42、将所述频率方差与各情景模式的特征参照范围进行匹配,若该频率方差在一特征参照范围以内,则切换至相应情景模式。 S42. Match the frequency variance with the feature reference range of each scenario mode, and switch to the corresponding scenario mode if the frequency variance is within a feature reference range.
具体地,如附图1所示,以智能手机为例,本发明还提供了一种实施例的情景模式切换方法的实现流程,其步骤包括: Specifically, as shown in FIG. 1 , taking a smart phone as an example, the present invention also provides an implementation process of a scene mode switching method in an embodiment, the steps of which include:
S101、预设与各情景模式惟一对应的特征参照值和特征参照范围并储存; S101. Preset and store the characteristic reference value and characteristic reference range uniquely corresponding to each scene mode;
S102、检测到与铃音或震动提醒功能相关联的事件; S102. Detecting an event associated with the ring tone or vibration reminder function;
S103、触发情景模式自动切换功能,开启超声波传感器; S103, triggering the scene mode automatic switching function, and turning on the ultrasonic sensor;
S104、超声波传感器发射预定义频段的超声波脉冲束及接收经反射的返回波; S104. The ultrasonic sensor transmits an ultrasonic pulse beam of a predefined frequency band and receives reflected return waves;
S105、提取返回波的频率数据; S105, extracting the frequency data of the return wave;
S106、对所述频率数据进行统计分析,获取统计特征值; S106. Perform statistical analysis on the frequency data to obtain statistical feature values;
S107、将所述统计特征值与预设的特征参照值进行匹配; S107. Match the statistical feature value with a preset feature reference value;
S108、判断是否匹配成功,若是,则执行步骤S111,否则执行步骤S109; S108, judging whether the matching is successful, if so, execute step S111, otherwise execute step S109;
S109、将所述统计特征值与预设的特征参照范围进行匹配; S109. Match the statistical feature value with a preset feature reference range;
S110、判断是否匹配成功,若是,则执行步骤S111,否则返回步骤S104; S110, judging whether the matching is successful, if so, execute step S111, otherwise return to step S104;
S111、切换至相应情景模式。 S111. Switch to a corresponding scene mode.
本发明还提供了一种电子终端,该电子终端上配置有超声波传感器,包括: The present invention also provides an electronic terminal, which is equipped with an ultrasonic sensor, including:
参数设定模块21,用于预设与各情景模式惟一对应的特征参照值和/或特征参照范围并储存; The parameter setting module 21 is used to preset and store the characteristic reference value and/or characteristic reference range uniquely corresponding to each scene mode;
信号收发模块22,用于发射预定义频段的超声波脉冲束,同时接收经反射的返回波; The signal transceiving module 22 is used to transmit the ultrasonic pulse beam of the predefined frequency band, and simultaneously receive the reflected return wave;
数据分析模块23,用于提取返回波的频率数据,并对所述频率数据进行统计分析,获取统计特征值; The data analysis module 23 is used to extract the frequency data of the return wave, and perform statistical analysis on the frequency data to obtain statistical feature values;
切换模块24,用于将所述统计特征值与预设的特征参照值或特征参照范围进行匹配,若匹配成功,则切换至相应的情景模式。 The switching module 24 is configured to match the statistical feature value with a preset feature reference value or feature reference range, and switch to a corresponding scene mode if the matching is successful.
本电子终端预置的情景模式包括标准模式、会议模式、户外模式、睡眠模式、飞行模式中的一种或两种以上。 The preset scene modes of the electronic terminal include one or more of standard mode, conference mode, outdoor mode, sleep mode and flight mode.
所述电子终端还包括一启动模块20,用于检测到与铃音或震动提醒功能相关联的事件后,触发情景模式自动切换功能,开启超声波传感器。 The electronic terminal also includes a starting module 20, configured to trigger the scene mode automatic switching function and turn on the ultrasonic sensor after detecting an event associated with the ring tone or vibration reminder function.
进一步地,所述信号收发模块22用于发射超声波脉冲束是指用于随机地向N个方向发射预定义频段和振幅的超声波脉冲束,N为大于零的自然数。 Further, the signal transceiving module 22 used to transmit ultrasonic pulse beams means to randomly transmit ultrasonic pulse beams with predefined frequency bands and amplitudes in N directions, where N is a natural number greater than zero.
数据分析模块23用于对所述频率数据进行统计分析包括进行均值计算、方差分析及回归分析,所述统计特征值包括频率实测值、频率均值和频率方差。 The data analysis module 23 is used to perform statistical analysis on the frequency data, including mean value calculation, variance analysis and regression analysis, and the statistical characteristic values include frequency measured values, frequency mean values and frequency variances.
所述匹配成功是指各项统计特征值中的之一与对应的特征参照值或特征参照范围匹配成功,或者各项统计特征值均与对应的特征参照值或特征参照范围匹配成功。 The successful matching means that one of the statistical characteristic values matches the corresponding characteristic reference value or characteristic reference range successfully, or each statistical characteristic value matches successfully with the corresponding characteristic reference value or characteristic reference range.
在本发明的一种实施例中,所述切换模块24包括: In one embodiment of the present invention, the switching module 24 includes:
定值匹配单元241,用于将所述统计特征值与预设的特征参照值进行匹配,若匹配成功,则切换至相应的情景模式,否则启动范围匹配单元; The fixed value matching unit 241 is used to match the statistical feature value with the preset feature reference value, if the matching is successful, then switch to the corresponding scene mode, otherwise start the range matching unit;
范围匹配单元242,用于将所述统计特征值与预设的特征参照范围进行匹配,若匹配成功,则切换至相应的情景模式。 The range matching unit 242 is configured to match the statistical feature value with a preset feature reference range, and switch to a corresponding scene mode if the matching is successful.
较佳地,所述切换模块包括: Preferably, the switching module includes:
定值匹配单元,用于将统计得到的频率方差与各情景模式的特征参照值进行匹配,若该频率方差与一特征参照值相同,则切换至相应情景模式,否则启动范围匹配单元; The fixed value matching unit is used to match the statistically obtained frequency variance with the feature reference value of each scene mode, if the frequency variance is the same as a feature reference value, then switch to the corresponding scene mode, otherwise start the range matching unit;
范围匹配单元,用于将所述频率方差与各情景模式的特征参照范围进行匹配,若该频率方差在一特征参照范围以内,则切换至相应情景模式。 The range matching unit is configured to match the frequency variance with the feature reference range of each scenario mode, and switch to the corresponding scenario mode if the frequency variance is within a feature reference range.
以上内容是结合具体的优选方式对本发明所作的进一步详细说明,不应认定本发明的具体实施只局限于以上说明。对于本技术领域的技术人员而言,在不脱离本发明构思的前提下,还可以作出若干简单推演或替换,均应视为由本发明所提交的权利要求确定的保护范围之内。 The above content is a further detailed description of the present invention in combination with specific preferred modes, and it should not be deemed that the specific implementation of the present invention is limited to the above description. For those skilled in the art, without departing from the concept of the present invention, some simple deductions or substitutions can be made, which should be considered within the protection scope determined by the claims submitted in the present invention.
Claims (6)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310610200.4A CN103581446B (en) | 2013-11-27 | 2013-11-27 | A kind of profile switching method and electric terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310610200.4A CN103581446B (en) | 2013-11-27 | 2013-11-27 | A kind of profile switching method and electric terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103581446A CN103581446A (en) | 2014-02-12 |
CN103581446B true CN103581446B (en) | 2016-02-03 |
Family
ID=50052330
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310610200.4A Expired - Fee Related CN103581446B (en) | 2013-11-27 | 2013-11-27 | A kind of profile switching method and electric terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103581446B (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104219386B (en) * | 2014-08-28 | 2018-04-27 | 深圳市金立通信设备有限公司 | A kind of terminal |
CN104219387B (en) * | 2014-08-28 | 2018-04-27 | 深圳市金立通信设备有限公司 | A kind of automatic switching method of contextual model |
CN106027363A (en) * | 2016-04-27 | 2016-10-12 | 乐视控股(北京)有限公司 | Message processing method and device |
CN106843707A (en) * | 2017-02-28 | 2017-06-13 | 惠州Tcl移动通信有限公司 | The display control method and system of a kind of dual display mode terminal |
CN107277260A (en) * | 2017-07-07 | 2017-10-20 | 珠海格力电器股份有限公司 | Contextual model adjusting method and device and mobile terminal |
CN108226880B (en) * | 2017-12-29 | 2021-11-02 | 努比亚技术有限公司 | Method and device for preventing interference in ultrasonic distance detection and storage medium |
CN109782236B (en) * | 2019-02-27 | 2020-11-27 | 珠海格力电器股份有限公司 | Method and device for shielding data interaction by microwave radar |
CN114384528A (en) * | 2022-01-20 | 2022-04-22 | 南京英锐创电子科技有限公司 | Ultrasonic ranging method, device, computer equipment, storage medium and product |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1617058A (en) * | 2004-10-08 | 2005-05-18 | 于家新 | Intelligent controller and electric appliance with intelligent controller and control method |
CN101312600A (en) * | 2007-05-22 | 2008-11-26 | 鸿富锦精密工业(深圳)有限公司 | Volume regulating apparatus and automatic volume regulating method |
CN101938559A (en) * | 2010-09-01 | 2011-01-05 | 北京中星微电子有限公司 | Terminal control method, terminal control device and terminal |
CN203104586U (en) * | 2013-03-14 | 2013-07-31 | 浪潮乐金数字移动通信有限公司 | Mobile communication terminal for realizing induction mute function |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006279378A (en) * | 2005-03-29 | 2006-10-12 | Hitachi Software Eng Co Ltd | Automatic mode switching system for mobile communication apparatus and mobile communication apparatus |
-
2013
- 2013-11-27 CN CN201310610200.4A patent/CN103581446B/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1617058A (en) * | 2004-10-08 | 2005-05-18 | 于家新 | Intelligent controller and electric appliance with intelligent controller and control method |
CN101312600A (en) * | 2007-05-22 | 2008-11-26 | 鸿富锦精密工业(深圳)有限公司 | Volume regulating apparatus and automatic volume regulating method |
CN101938559A (en) * | 2010-09-01 | 2011-01-05 | 北京中星微电子有限公司 | Terminal control method, terminal control device and terminal |
CN203104586U (en) * | 2013-03-14 | 2013-07-31 | 浪潮乐金数字移动通信有限公司 | Mobile communication terminal for realizing induction mute function |
Also Published As
Publication number | Publication date |
---|---|
CN103581446A (en) | 2014-02-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103581446B (en) | A kind of profile switching method and electric terminal | |
KR102667645B1 (en) | Apparatus and method for providing a notification by interworking a plurality of electronic devices | |
EP2959667B1 (en) | Method and apparatus for notifying missed events | |
CN107465803B (en) | An intelligent reminder method, terminal, wearable device and system | |
CN102158597B (en) | A kind of electromagnetic radiation prompting system for communication terminal and method | |
EP2824897A1 (en) | Mobile terminal and abnormal call processing method therefor | |
US9706321B2 (en) | Electronic device including modifiable output parameter | |
US9667284B1 (en) | Method, device, and system for identifying a howling source and suppressing howling | |
CN105120057B (en) | Alarm clock control method and device | |
EP3127310B1 (en) | Method for controlling an electronic device by human tremor detection | |
US20210144495A1 (en) | Microphone Hole Blockage Detection Method, Microphone Hole Blockage Detection Device, and First Wireless Earphone | |
US11069332B2 (en) | Interference generation | |
CN107105099B (en) | A mobile terminal alarm method, device and electronic equipment | |
CN106357348B (en) | Adjust the method and device of ultrasonic wave transmission power | |
CN106488413A (en) | Notification message reminder method and mobile terminal | |
CN105187668B (en) | Method, device and mobile terminal for reminding unread information of mobile terminal system | |
CN113138557B (en) | Household equipment control method and device and storage medium | |
CN106131773A (en) | A kind of method and device finding electronic equipment | |
EP3142342B1 (en) | Generating adaptive notification | |
CN105912114A (en) | Method and device for adjusting vibration level of mobile terminal | |
US11270572B2 (en) | System and method for alerting a user to the presence of environmental sounds | |
CN112312310B (en) | Dangerous equipment reminding method and device, terminal equipment and storage medium | |
CA2799048C (en) | Electronic device including modifiable output parameter | |
CN110751771A (en) | Door body abnormity warning method and related product | |
CN109547611B (en) | Mobile phone finger ring support, and alarm system and alarm method adopting support |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address | ||
CP03 | Change of name, title or address |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan Town, Guangdong province 523860 usha Beach Road Dongguan City, No. 18 Guangdong Oupo Mobile Communication Co Ltd Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20160203 |