CN105509806B - Detection method and device - Google Patents
Detection method and device Download PDFInfo
- Publication number
- CN105509806B CN105509806B CN201510882077.0A CN201510882077A CN105509806B CN 105509806 B CN105509806 B CN 105509806B CN 201510882077 A CN201510882077 A CN 201510882077A CN 105509806 B CN105509806 B CN 105509806B
- Authority
- CN
- China
- Prior art keywords
- devices
- environment
- same
- same time
- environmental factors
- 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.)
- Active
Links
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01D—MEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
- G01D21/00—Measuring or testing not otherwise provided for
- G01D21/02—Measuring two or more variables by means not covered by a single other subclass
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Air Conditioning Control Device (AREA)
Abstract
本公开是关于检测方法及装置。该方法包括:获取各设备所处环境的环境因素在同一时间段的检测值;根据所述检测值,确定所述各设备中处于同一环境的设备。本实施例中,可以根据设备所处环境的例如温度、湿度等环境因素的检测值,来判断设备是否处于同一环境。例如,如果空调和加湿器是在同一个房间内,那么在同一时间段内,关于温度、湿度的检测值应该一致,如果不一致,那么认为这两个设备不在同一个房间内。因此,本公开可以通过设备所处环境的环境因素的检测值,更有效的检测和判断多个设备是否处于同一环境。
The present disclosure relates to detection methods and devices. The method includes: acquiring detection values of environmental factors in the environment where each device is located in the same time period; and determining devices in the same environment among the devices according to the detection values. In this embodiment, it may be determined whether the devices are in the same environment according to detected values of environmental factors such as temperature and humidity in the environment where the devices are located. For example, if the air conditioner and the humidifier are in the same room, then during the same time period, the detected values of temperature and humidity should be consistent, if not, then the two devices are considered not to be in the same room. Therefore, the present disclosure can more effectively detect and judge whether multiple devices are in the same environment through detection values of environmental factors of the environment in which the devices are located.
Description
技术领域technical field
本公开涉及检测技术领域,尤其涉及检测方法及装置。The present disclosure relates to the technical field of detection, in particular to a detection method and device.
背景技术Background technique
随着智能家居技术的不断发展,越来越多的用户使用智能家居设备融入到平时的生活、学习、工作等。例如空调、加湿器、空气净化器、空调、手机、平板电脑等。当有多个智能设备时,用户需要对它们进行管理和控制。例如,如何知道这些设备的位置是一个亟待解决的问题。With the continuous development of smart home technology, more and more users use smart home devices to integrate into their daily life, study and work. Such as air conditioners, humidifiers, air purifiers, air conditioners, mobile phones, tablet computers, etc. When there are multiple smart devices, users need to manage and control them. For example, how to know the location of these devices is an urgent problem to be solved.
发明内容Contents of the invention
本公开实施例提供一种检测方法及装置。所述技术方案如下:Embodiments of the present disclosure provide a detection method and device. Described technical scheme is as follows:
根据本公开实施例的第一方面,提供一种检测方法,包括:According to a first aspect of an embodiment of the present disclosure, a detection method is provided, including:
获取各设备所处环境的环境因素在同一时间段的检测值;Obtain the detection value of the environmental factors in the environment where each device is located in the same time period;
根据所述检测值,确定所述各设备中处于同一环境的设备。According to the detection value, the devices in the same environment among the devices are determined.
可选的,所述环境因素包括以下一项或多项:温度、湿度、海拔、气压和空气密度。Optionally, the environmental factors include one or more of the following: temperature, humidity, altitude, air pressure and air density.
可选的,所述获取各设备所处环境的环境因素在同一时间段的检测值,包括:Optionally, the acquisition of detection values of environmental factors of the environment where each device is located in the same time period includes:
获取各设备所处环境的环境因素在同一时间段内、以预设频率获得的检测值。The detected values of the environmental factors of the environment where each device is located are acquired at a preset frequency within the same time period.
可选的,所述获取各设备所处环境的环境因素在同一时间段的检测值,包括:Optionally, the acquisition of detection values of environmental factors of the environment where each device is located in the same time period includes:
利用各设备的传感器,获取各设备所处环境的环境因素在同一时间段内的检测值。The sensors of each device are used to obtain the detected values of the environmental factors of the environment where each device is located in the same time period.
可选的,所述根据所述检测值,确定所述各设备中处于同一环境的设备,包括:Optionally, the determining the devices in the same environment among the devices according to the detection value includes:
将所述各设备中的检测值变化趋势一致的设备,确定为处于同一环境的设备。Among the devices, the devices whose detection value variation trends are consistent are determined as devices in the same environment.
可选的,所述将所述各设备中的检测值变化趋势一致的设备,确定为处于同一环境的设备,包括:Optionally, the determination of the devices whose detection values have the same changing trend among the devices as the devices in the same environment includes:
将所述各设备中的检测值变化趋势的差距小于预设阈值的设备,确定为处于同一环境的设备。A device whose variation trend of detected values among the devices has a difference smaller than a preset threshold is determined as a device in the same environment.
可选的,所述根据所述检测值,确定所述各设备中处于同一环境的设备,包括:Optionally, the determining the devices in the same environment among the devices according to the detection value includes:
将所述各设备中的、在同一时间段的相同时间点的检测值均相等的设备,确定为处于同一环境的设备。Among the devices, the devices whose detection values are equal at the same time point in the same time period are determined as devices in the same environment.
根据本公开实施例的第二方面,提供一种检测装置,包括:According to a second aspect of an embodiment of the present disclosure, a detection device is provided, including:
获取模块,用于获取各设备所处环境的环境因素在同一时间段的检测值;An acquisition module, configured to acquire the detected values of environmental factors in the environment where each device is located in the same time period;
确定模块,用于根据所述获取模块获取的所述检测值,确定所述各设备中处于同一环境的设备。A determining module, configured to determine the devices in the same environment among the devices according to the detection value obtained by the obtaining module.
可选的,所述环境因素包括以下一项或多项:温度、湿度、海拔、气压和空气密度。Optionally, the environmental factors include one or more of the following: temperature, humidity, altitude, air pressure and air density.
可选的,所述获取模块,用于获取各设备所处环境的环境因素在同一时间段内、以预设频率获得的检测值。Optionally, the acquisition module is configured to acquire detection values of environmental factors of the environment where each device is located within the same time period and at a preset frequency.
可选的,所述获取模块,用于利用各设备的传感器,获取各设备所处环境的环境因素在同一时间段内的检测值。Optionally, the acquisition module is configured to use the sensors of each device to acquire detection values of environmental factors in the environment where each device is located within the same time period.
可选的,所述确定模块,包括:Optionally, the determination module includes:
第一确定子模块,用于将所述各设备中的检测值变化趋势一致的设备,确定为处于同一环境的设备。The first determining sub-module is configured to determine, among the devices, devices whose detected value variation trends are consistent as devices in the same environment.
可选的,所述第一确定子模块用于,将所述各设备中的检测值变化趋势的差距小于预设阈值的设备,确定为处于同一环境的设备。Optionally, the first determining submodule is configured to determine, among the devices, a device whose variation trend of detected values is smaller than a preset threshold as a device in the same environment.
可选的,所述确定模块,包括:Optionally, the determination module includes:
第二确定子模块,用于将所述各设备中的、在同一时间段的相同时间点的检测值均相等的设备,确定为处于同一环境的设备。The second determining submodule is configured to determine, among the devices, devices whose detection values are equal at the same time point in the same time period as devices in the same environment.
根据本公开实施例的第三方面,提供一种检测装置,包括:According to a third aspect of an embodiment of the present disclosure, a detection device is provided, including:
处理器;processor;
用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;
其中,所述处理器被配置为:Wherein, the processor is configured as:
获取各设备所处环境的环境因素在同一时间段的检测值;Obtain the detection value of the environmental factors in the environment where each device is located in the same time period;
根据所述检测值,确定所述各设备中处于同一环境的设备。According to the detection value, the devices in the same environment among the devices are determined.
本公开的实施例提供的技术方案可以包括以下有益效果:The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:
上述技术方案,终端设备可以根据设备所处环境的例如温度、湿度等环境因素的检测值,来判断设备是否处于同一环境。例如,如果空调和加湿器是在同一个房间内,那么在同一时间段内,关于温度、湿度的检测值应该一致,如果不一致,那么认为这两个设备不在同一个房间内。因此,本公开可以通过设备所处环境的环境因素的检测值,更有效的检测和判断多个设备是否处于同一环境。In the above technical solution, the terminal device can determine whether the devices are in the same environment according to the detected values of environmental factors such as temperature and humidity in the environment where the devices are located. For example, if the air conditioner and the humidifier are in the same room, then during the same time period, the detected values of temperature and humidity should be consistent, if not, then the two devices are not considered to be in the same room. Therefore, the present disclosure can more effectively detect and judge whether multiple devices are in the same environment through detection values of environmental factors of the environment in which the devices are located.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description serve to explain the principles of the disclosure.
图1是根据一示例性实施例示出的检测方法的流程图。Fig. 1 is a flow chart of a detection method according to an exemplary embodiment.
图2是根据另一示例性实施例示出的检测方法的流程图。Fig. 2 is a flow chart of a detection method according to another exemplary embodiment.
图3是根据另一示例性实施例示出的检测方法的流程图。Fig. 3 is a flow chart of a detection method according to another exemplary embodiment.
图4是根据一示例性实施例示出的设备1和设备2的温度检测值的曲线图。Fig. 4 is a graph showing temperature detection values of device 1 and device 2 according to an exemplary embodiment.
图5是根据一示例性实施例示出的检测装置的框图。Fig. 5 is a block diagram of a detection device according to an exemplary embodiment.
图6是根据另一示例性实施例示出的检测装置的框图。Fig. 6 is a block diagram of a detection device according to another exemplary embodiment.
图7是根据另一示例性实施例示出的检测装置的框图。Fig. 7 is a block diagram of a detection device according to another exemplary embodiment.
图8是根据一示例性实施例示出的用于检测的装置的框图。Fig. 8 is a block diagram of a detection device according to an exemplary embodiment.
具体实施方式detailed description
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present disclosure as recited in the appended claims.
本公开实施例提供的技术方案,涉及终端设备,例如可以包括智能手机、平板电脑、笔记本电脑等。The technical solutions provided by the embodiments of the present disclosure relate to terminal devices, which may include, for example, smart phones, tablet computers, notebook computers, and the like.
图1是根据一示例性实施例示出的一种检测方法的流程图,如图1所示,检测方法用于终端设备中,包括以下步骤S11-S13:Fig. 1 is a flow chart of a detection method according to an exemplary embodiment. As shown in Fig. 1, the detection method is used in a terminal device and includes the following steps S11-S13:
在步骤S11中,获取各设备所处环境的环境因素在同一时间段的检测值。In step S11, the detected values of the environmental factors of the environment where each device is located in the same time period are acquired.
其中,设备是指各种具有能够检测环境因素的传感器的家用电器,例如加湿器,空气净化器,空调等设备,也可以是指具有能够检测环境因素的传感器的终端设备,包括智能手机、平板电脑、笔记本电脑等。环境因素可以包括以下一项或多项:温度、湿度、海拔、气压和空气密度。Among them, equipment refers to various household appliances with sensors capable of detecting environmental factors, such as humidifiers, air purifiers, air conditioners and other equipment, and may also refer to terminal equipment with sensors capable of detecting environmental factors, including smart phones, tablets, etc. Computers, laptops, etc. Environmental factors can include one or more of the following: temperature, humidity, altitude, air pressure, and air density.
在步骤S12中,根据所述检测值,确定所述各设备中处于同一环境的设备。In step S12, according to the detection value, determine the devices in the same environment among the devices.
本实施例中,终端设备可以根据设备所处环境的例如温度、湿度等环境因素的检测值,来判断设备是否处于同一环境。例如,如果空调和加湿器是在同一个房间内,那么在同一时间段内,关于温度、湿度的检测值应该一致,如果不一致,那么认为这两个设备不在同一个房间内。因此,本公开可以通过设备所处环境的环境因素的检测值,更有效的检测和判断多个设备是否处于同一环境。In this embodiment, the terminal device may determine whether the devices are in the same environment according to detected values of environmental factors such as temperature and humidity in the environment where the devices are located. For example, if the air conditioner and the humidifier are in the same room, then during the same time period, the detected values of temperature and humidity should be consistent, if not, then the two devices are not considered to be in the same room. Therefore, the present disclosure can more effectively detect and judge whether multiple devices are in the same environment through detection values of environmental factors of the environment in which the devices are located.
图2是根据另一示例性实施例示出的一种检测方法的流程图,如图2所示,在另一个实施例中,检测方法包括以下步骤:Fig. 2 is a flow chart of a detection method shown according to another exemplary embodiment. As shown in Fig. 2, in another embodiment, the detection method includes the following steps:
在步骤S21中,获取多个设备所处环境的环境因素在同一时间段内、以预设频率获得的检测值。In step S21, the detection values of the environmental factors of the environment where the multiple devices are located are acquired at a preset frequency within the same time period.
在本公开的其他实施例中,可以利用各设备的传感器获取各设备所处环境的环境因素的检测值。例如,可以利用空调的温度传感器获取空调所处环境的温度的检测值;利用空气净化器的温度传感器获取空气净化器所处环境的温度的检测值;利用手机的温度传感器获取手机所处环境的温度的检测值。In other embodiments of the present disclosure, the sensors of each device may be used to acquire detection values of environmental factors of the environment where each device is located. For example, the temperature sensor of the air conditioner can be used to obtain the detection value of the temperature of the environment where the air conditioner is located; the temperature sensor of the air purifier is used to obtain the detection value of the temperature of the environment where the air purifier is located; The detection value of the temperature.
例如在本实施例中,同时以每10分钟获取一次的频率持续获取多个设备的温度的检测值。For example, in this embodiment, temperature detection values of multiple devices are continuously acquired at a frequency of once every 10 minutes.
在本公开的其他实施例中,也可以获取设备预先已经测量并存储的某一时间段的检测值。例如,可以在晚上7点(用户空闲)时,分别获取设备1、设备2在上午9点至12点的温度的检测值。In other embodiments of the present disclosure, the detection value of a certain period of time that has been measured and stored by the device in advance may also be acquired. For example, at 7 o'clock in the evening (the user is idle), the temperature detection values of the device 1 and the device 2 from 9:00 am to 12:00 am can be acquired respectively.
在步骤S22中,判断多个设备中,是否存在同一时间段的相同时间点的检测值均相等的设备;若是,执行步骤S23;若否,则结束。In step S22, it is judged whether among the plurality of devices, there is a device with the same detected value at the same time point in the same time period; if yes, execute step S23; if not, end.
在步骤S23中,将同一时间段的相同时间点的检测值均相等的设备确定为处于同一环境的设备。In step S23, devices whose detection values at the same time point in the same time period are all equal are determined as devices in the same environment.
在该实施例中,是将多个设备中,检测值完全一致的设备确认为处于同一环境的设备。In this embodiment, among the plurality of devices, the devices whose detection values are completely consistent are identified as devices in the same environment.
图3是根据另一示例性实施例示出的一种检测方法的流程图,如图3所示,在另一个实施例中,检测方法包括以下步骤:Fig. 3 is a flow chart of a detection method shown according to another exemplary embodiment. As shown in Fig. 3, in another embodiment, the detection method includes the following steps:
在步骤S31中,获取多个设备所处环境的环境因素在同一时间段内、以预设频率获得的检测值。In step S31, the detection values of the environmental factors of the environment in which the multiple devices are located are acquired at a preset frequency within the same time period.
在步骤S32中,判断多个设备中是否存在变化趋势一致的设备;若是,执行步骤S33;若否,则结束。In step S32, it is judged whether there is a device with the same change trend among the plurality of devices; if yes, execute step S33; if not, end.
在步骤S32中,例如,可以将获取的检测值,以时间为横轴、测量值为纵轴,分别将每个设备的检测值绘制成曲线图。将设备之间的曲线图进行比较,判断这些设备的曲线图的变化趋势是否一致。In step S32, for example, the acquired detection values may be plotted as a graph with time as the horizontal axis and measured value as the vertical axis, respectively, for each device. Compare the graphs between devices to determine whether the changing trends of the graphs of these devices are consistent.
此外,在本公开的另一个实施例中,考虑到设备之间的测量值可能存在误差,可以容忍设备之间的检测值的变化趋势之间存在一定的差距。例如,图4所示为示例性的设备1和设备2的温度检测值的曲线图。如图4所示,设备1对所处环境的温度的检测值的变化趋势如标识为“设备1”的曲线所示,设备2对所处环境的温度的检测值的变化趋势如标识为“设备2”的曲线所示。从图中可见,两条曲线的变化趋势是基本一致的,除了在时间点9:00、11:00和14:00时,检测值有较小的差距。因此,可以设置一个预设阈值,只要两个设备之间的变化趋势之间的误差是小于该预设阈值时,就可以认为这两个设备的变化趋势是一致的。可以将相同时间点的检测值之间的差距的最大值作为变化趋势之间的差距。在图4中,时间点9:00、11:00和14:00处检测值之间的差距均为0.5℃,因此,可以认为设备1和设备2的变化趋势之间的差距为0.5℃。In addition, in another embodiment of the present disclosure, considering that there may be errors in the measured values between devices, a certain gap between the variation trends of the detected values between devices can be tolerated. For example, FIG. 4 is a graph showing exemplary temperature detection values of device 1 and device 2 . As shown in Figure 4, the change trend of the detected value of the temperature of the environment where the device 1 is located is shown in the curve marked as "device 1", and the change trend of the detected value of the temperature of the device 2 is marked as " Device 2” is shown in the curve. It can be seen from the figure that the changing trends of the two curves are basically the same, except that there are small gaps in the detection values at the time points of 9:00, 11:00 and 14:00. Therefore, a preset threshold can be set, and as long as the error between the variation trends of the two devices is smaller than the preset threshold, the variation trends of the two devices can be considered to be consistent. The maximum value of the gap between detection values at the same time point can be used as the gap between the changing trends. In Figure 4, the gaps between the detected values at time points 9:00, 11:00 and 14:00 are all 0.5°C, therefore, it can be considered that the gap between the variation trends of equipment 1 and equipment 2 is 0.5°C.
在步骤S33中,将变化趋势一致的设备确定为处于同一环境的设备。In step S33, devices with the same change trend are determined as devices in the same environment.
本实施例中,终端设备通过判断检测值的变化趋势是否一致来确定设备是否处于同一环境中。In this embodiment, the terminal device determines whether the devices are in the same environment by judging whether the change trends of the detected values are consistent.
下述为本公开装置实施例,可以用于执行本公开方法实施例。The following are device embodiments of the present disclosure, which can be used to implement the method embodiments of the present disclosure.
图5是根据一示例性实施例示出的一种检测装置的框图,该装置可以通过软件、硬件或者两者的结合实现成为电子设备的部分或者全部。如图5所示,该检测装置包括:Fig. 5 is a block diagram showing a detection device according to an exemplary embodiment, and the device may be implemented as part or all of an electronic device through software, hardware or a combination of the two. As shown in Figure 5, the detection device includes:
获取模块51,被配置为获取各设备所处环境的环境因素在同一时间段的检测值;The acquisition module 51 is configured to acquire the detected values of the environmental factors of the environment where each device is located in the same time period;
其中,设备是指各种具有能够检测环境因素的传感器的家用电器,例如加湿器,空气净化器,空调等设备,也可以是指具有能够检测环境因素的传感器的终端设备,包括智能手机、平板电脑、笔记本电脑等。Among them, equipment refers to various household appliances with sensors capable of detecting environmental factors, such as humidifiers, air purifiers, air conditioners and other equipment, and may also refer to terminal equipment with sensors capable of detecting environmental factors, including smart phones, tablets, etc. Computers, laptops, etc.
确定模块52,被配置为根据所述获取模块51获取的所述检测值,确定所述各设备中处于同一环境的设备。The determination module 52 is configured to determine, according to the detection value obtained by the acquisition module 51 , the devices in the same environment among the devices.
本实施例中,终端设备可以根据设备所处环境的例如温度、湿度等环境因素的检测值,来判断设备是否处于同一环境。例如,如果空调和加湿器是在同一个房间内,那么在同一时间段内,关于温度、湿度的检测值应该一致,如果不一致,那么认为这两个设备不在同一个房间内。因此,本公开可以通过设备所处环境的环境因素的检测值,更有效的检测和判断多个设备是否处于同一环境。In this embodiment, the terminal device may determine whether the devices are in the same environment according to detected values of environmental factors such as temperature and humidity in the environment where the devices are located. For example, if the air conditioner and the humidifier are in the same room, then during the same time period, the detected values of temperature and humidity should be consistent, if not, then the two devices are not considered to be in the same room. Therefore, the present disclosure can more effectively detect and judge whether multiple devices are in the same environment through detection values of environmental factors of the environment in which the devices are located.
在本公开的另一个实施例中,所述环境因素包括以下一项或多项:温度、湿度、海拔、气压和空气密度。In another embodiment of the present disclosure, the environmental factors include one or more of the following: temperature, humidity, altitude, air pressure and air density.
在本公开的另一个实施例中,所述获取模块51,被配置为获取各设备所处环境的环境因素在同一时间段内、以预设频率获得的检测值。In another embodiment of the present disclosure, the acquisition module 51 is configured to acquire detection values of environmental factors of the environment where each device is located within the same time period and at a preset frequency.
例如,同时以每10分钟获取一次的频率持续获取多个设备的温度的检测值。For example, the detected values of the temperatures of multiple devices are continuously acquired at a frequency of once every 10 minutes at the same time.
在本公开的其他实施例中,也可以获取设备预先已经测量并存储的某一时间段的检测值。例如,可以在晚上7点(用户空闲)时,分别获取设备1、设备2在上午9点至12点每10分钟检测一次获得的温度的检测值。In other embodiments of the present disclosure, the detection value of a certain period of time that has been measured and stored by the device in advance may also be acquired. For example, at 7 o'clock in the evening (the user is idle), the temperature detection values obtained by detecting the temperature of the device 1 and the device 2 every 10 minutes from 9:00 am to 12:00 am can be obtained respectively.
在本公开的另一个实施例中,所述获取模块51,被配置为利用各设备的传感器,获取各设备所处环境的环境因素在同一时间段内的检测值。In another embodiment of the present disclosure, the acquisition module 51 is configured to use the sensors of each device to acquire detection values of environmental factors of the environment where each device is located within the same time period.
例如,可以利用空调的温度传感器获取空调所处环境的温度的检测值;利用空气净化器的温度传感器获取空气净化器所处环境的温度的检测值;利用手机的温度传感器获取手机所处环境的温度的检测值。For example, the temperature sensor of the air conditioner can be used to obtain the detection value of the temperature of the environment where the air conditioner is located; the temperature sensor of the air purifier is used to obtain the detection value of the temperature of the environment where the air purifier is located; The detection value of the temperature.
图6是根据另一示例性实施例示出的一种检测装置的框图,如图6所示,在另一个实施例中,所述确定模块52,包括Fig. 6 is a block diagram of a detection device according to another exemplary embodiment, as shown in Fig. 6, in another embodiment, the determination module 52 includes
第一确定子模块521,被配置为将所述各设备中的所述获取模块51获取的检测值变化趋势一致的设备,确定为处于同一环境的设备。The first determination sub-module 521 is configured to determine, among the devices, the devices whose detection values acquired by the acquisition module 51 have the same variation trend as devices in the same environment.
可以将获取的检测值,以时间为横轴、测量值为纵轴,分别将每个设备的检测值绘制成曲线图。将设备之间的曲线图进行比较,判断这些设备的曲线图的变化趋势是否一致。The obtained detected values can be plotted into a graph with time as the horizontal axis and measured value as the vertical axis, respectively. Compare the graphs between devices to determine whether the changing trends of the graphs of these devices are consistent.
在本公开的另一个实施例中,所述第一确定子模块521用于,将所述各设备中的所述获取模块51获取的检测值变化趋势的差距小于预设阈值的设备,确定为处于同一环境的设备。In another embodiment of the present disclosure, the first determination sub-module 521 is configured to determine the equipment whose variation trend of the detection value acquired by the acquisition module 51 in each equipment is smaller than a preset threshold value as devices in the same environment.
考虑到设备之间的测量值可能存在误差,可以容忍设备之间的检测值的变化趋势之间存在一定的差距。例如,图4所示为示例性的设备1和设备2的温度检测值的曲线图。如图4所示,设备1对所处环境的温度的检测值的变化趋势如标识为“设备1”的曲线所示,设备2对所处环境的温度的检测值的变化趋势如标识为“设备2”的曲线所示。从图中可见,两条曲线的变化趋势是基本一致的,除了在时间点9:00、11:00和14:00时,检测值有较小的差距。因此,可以设置一个预设阈值,只要两个设备之间的变化趋势之间的误差是小于该预设阈值时,就可以认为这两个设备的变化趋势是一致的。可以将相同时间点的检测值之间的差距的最大值作为变化趋势之间的差距。在图4中,时间点9:00、11:00和14:00处检测值之间的差距均为0.5℃,因此,可以认为设备1和设备2的变化趋势之间的差距为0.5℃。Considering that there may be errors in the measured values between the devices, a certain gap between the variation trends of the detected values between the devices can be tolerated. For example, FIG. 4 is a graph showing exemplary temperature detection values of device 1 and device 2 . As shown in Figure 4, the change trend of the detected value of the temperature of the environment where the device 1 is located is shown in the curve marked as "device 1", and the change trend of the detected value of the temperature of the device 2 is marked as " Device 2” is shown in the curve. It can be seen from the figure that the changing trends of the two curves are basically the same, except that there are small gaps in the detection values at the time points of 9:00, 11:00 and 14:00. Therefore, a preset threshold can be set, and as long as the error between the variation trends of the two devices is smaller than the preset threshold, the variation trends of the two devices can be considered to be consistent. The maximum value of the gap between detection values at the same time point can be used as the gap between the changing trends. In Figure 4, the gaps between the detected values at time points 9:00, 11:00 and 14:00 are all 0.5°C, therefore, it can be considered that the gap between the variation trends of equipment 1 and equipment 2 is 0.5°C.
图7是根据另一示例性实施例示出的一种检测装置的框图,如图7所示,在本公开的另一个实施例中,所述确定模块52,包括:Fig. 7 is a block diagram of a detection device according to another exemplary embodiment. As shown in Fig. 7, in another embodiment of the present disclosure, the determination module 52 includes:
第二确定子模块522,用于将所述各设备中的、在同一时间段的相同时间点的所述获取模块51获取的检测值均相等的设备,确定为处于同一环境的设备。The second determination sub-module 522 is configured to determine, among the devices, the devices whose detection values acquired by the acquisition module 51 at the same time point in the same period of time are equal, as devices in the same environment.
本公开还提供一种检测装置,包括:The present disclosure also provides a detection device, comprising:
处理器;processor;
被配置为存储处理器可执行指令的存储器;memory configured to store processor-executable instructions;
其中,所述处理器被配置为:Wherein, the processor is configured as:
获取各设备所处环境的环境因素在同一时间段的检测值;Obtain the detection value of the environmental factors in the environment where each device is located in the same time period;
根据所述检测值,确定所述各设备中处于同一环境的设备。According to the detection value, the devices in the same environment among the devices are determined.
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the foregoing embodiments, the specific manner in which each module executes operations has been described in detail in the embodiments related to the method, and will not be described in detail here.
图8是根据一示例性实施例示出的一种用于检测的装置800的框图。例如,装置800可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。Fig. 8 is a block diagram of a detection device 800 according to an exemplary embodiment. For example, the apparatus 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.
参照图8,装置800可以包括以下一个或多个组件:处理组件802,存储器804,电源组件806,多媒体组件808,音频组件810,输入/输出(I/O)的接口812,传感器组件814,以及通信组件816。8, device 800 may include one or more of the following components: a processing component 802, a memory 804, a power supply component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and communication component 816 .
处理组件802通常控制装置800的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件802可以包括一个或多个处理器820来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件802可以包括一个或多个模块,便于处理组件802和其他组件之间的交互。例如,处理组件802可以包括多媒体模块,以方便多媒体组件808和处理组件802之间的交互。The processing component 802 generally controls the overall operations of the device 800, such as those associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above method. Additionally, processing component 802 may include one or more modules that facilitate interaction between processing component 802 and other components. For example, processing component 802 may include a multimedia module to facilitate interaction between multimedia component 808 and processing component 802 .
存储器804被配置为存储各种类型的数据以支持在设备800的操作。这些数据的示例包括用于在装置800上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器804可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。The memory 804 is configured to store various types of data to support operations at the device 800 . Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, and the like. The memory 804 can be implemented by any type of volatile or non-volatile storage device or their combination, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk.
电力组件806为装置800的各种组件提供电力。电力组件806可以包括电源管理系统,一个或多个电源,及其他与为装置800生成、管理和分配电力相关联的组件。Power component 806 provides power to various components of device 800 . Power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for device 800 .
多媒体组件808包括在所述装置800和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件808包括一个前置摄像头和/或后置摄像头。当设备800处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。The multimedia component 808 includes a screen that provides an output interface between the device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may not only sense a boundary of a touch or swipe action, but also detect duration and pressure associated with the touch or swipe action. In some embodiments, the multimedia component 808 includes a front camera and/or a rear camera. When the device 800 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capability.
音频组件810被配置为输出和/或输入音频信号。例如,音频组件810包括一个麦克风(MIC),当装置800处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器804或经由通信组件816发送。在一些实施例中,音频组件810还包括一个扬声器,用于输出音频信号。The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a microphone (MIC) configured to receive external audio signals when the device 800 is in operation modes, such as call mode, recording mode and voice recognition mode. Received audio signals may be further stored in memory 804 or sent via communication component 816 . In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.
I/O接口812为处理组件802和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 812 provides an interface between the processing component 802 and a peripheral interface module, which may be a keyboard, a click wheel, a button, and the like. These buttons may include, but are not limited to: a home button, volume buttons, start button, and lock button.
传感器组件814包括一个或多个传感器,用于为装置800提供各个方面的状态评估。例如,传感器组件814可以检测到设备800的打开/关闭状态,组件的相对定位,例如所述组件为装置800的显示器和小键盘,传感器组件814还可以检测装置800或装置800一个组件的位置改变,用户与装置800接触的存在或不存在,装置800方位或加速/减速和装置800的温度变化。传感器组件814可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件814还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件814还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。Sensor assembly 814 includes one or more sensors for providing status assessments of various aspects of device 800 . For example, the sensor component 814 can detect the open/closed state of the device 800, the relative positioning of components, such as the display and keypad of the device 800, and the sensor component 814 can also detect a change in the position of the device 800 or a component of the device 800 , the presence or absence of user contact with the device 800 , the device 800 orientation or acceleration/deceleration and the temperature change of the device 800 . Sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. Sensor assembly 814 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.
通信组件816被配置为便于装置800和其他设备之间有线或无线方式的通信。装置800可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信部件816经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信部件816还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。The communication component 816 is configured to facilitate wired or wireless communication between the apparatus 800 and other devices. The device 800 can access wireless networks based on communication standards, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wide Band (UWB) technology, Bluetooth (BT) technology and other technologies.
在示例性实施例中,装置800可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment, apparatus 800 may be programmed by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A gate array (FPGA), controller, microcontroller, microprocessor or other electronic component implementation for performing the methods described above.
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器804,上述指令可由装置800的处理器820执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as the memory 804 including instructions, which can be executed by the processor 820 of the device 800 to implement the above method. For example, the non-transitory computer readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.
一种非临时性计算机可读存储介质,当所述存储介质中的指令由移动终端的处理器执行时,使得移动终端能够执行一种检测方法,所述方法包括:A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of the mobile terminal, the mobile terminal is enabled to perform a detection method, the method comprising:
获取各设备所处环境的环境因素在同一时间段的检测值;Obtain the detection value of the environmental factors in the environment where each device is located in the same time period;
根据所述检测值,确定所述各设备中处于同一环境的设备。According to the detection value, the devices in the same environment among the devices are determined.
可选的,所述环境因素包括以下一项或多项:温度、湿度、海拔、气压和空气密度。Optionally, the environmental factors include one or more of the following: temperature, humidity, altitude, air pressure and air density.
可选的,所述获取各设备所处环境的环境因素在同一时间段的检测值,包括:Optionally, the acquisition of detection values of environmental factors in the environment where each device is located in the same time period includes:
获取各设备所处环境的环境因素在同一时间段内、以预设频率获得的检测值。The detected values of the environmental factors of the environment where each device is located are acquired at a preset frequency within the same time period.
可选的,所述获取各设备所处环境的环境因素在同一时间段的检测值,包括:Optionally, the acquisition of detection values of environmental factors of the environment where each device is located in the same time period includes:
利用各设备的传感器,获取各设备所处环境的环境因素在同一时间段内的检测值。The sensors of each device are used to obtain the detected values of the environmental factors of the environment where each device is located in the same time period.
可选的,所述根据所述检测值,确定所述各设备中处于同一环境的设备,包括:Optionally, the determining the devices in the same environment among the devices according to the detection value includes:
将所述各设备中的检测值变化趋势一致的设备,确定为处于同一环境的设备。Among the devices, the devices whose detection value variation trends are consistent are determined as devices in the same environment.
可选的,所述将所述各设备中的检测值变化趋势一致的设备,确定为处于同一环境的设备,包括:Optionally, the determination of the devices whose detection values have the same changing trend among the devices as the devices in the same environment includes:
将所述各设备中的检测值变化趋势的差距小于预设阈值的设备,确定为处于同一环境的设备。A device whose variation trend of detected values among the devices has a difference smaller than a preset threshold is determined as a device in the same environment.
可选的,所述根据所述检测值,确定所述各设备中处于同一环境的设备,包括:Optionally, the determining the devices in the same environment among the devices according to the detection value includes:
将所述各设备中的、在同一时间段的相同时间点的检测值均相等的设备,确定为处于同一环境的设备。Among the devices, the devices whose detection values are equal at the same time point in the same time period are determined as devices in the same environment.
本领域技术人员在考虑说明书及实践这里公开的公开后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Other embodiments of the present disclosure will be readily apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any modification, use or adaptation of the present disclosure, and these modifications, uses or adaptations follow the general principles of the present disclosure and include common knowledge or conventional technical means in the technical field not disclosed in the present disclosure . The specification and examples are to be considered exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It should be understood that the present disclosure is not limited to the precise constructions which have been described above and shown in the drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (11)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510882077.0A CN105509806B (en) | 2015-12-03 | 2015-12-03 | Detection method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510882077.0A CN105509806B (en) | 2015-12-03 | 2015-12-03 | Detection method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105509806A CN105509806A (en) | 2016-04-20 |
CN105509806B true CN105509806B (en) | 2017-12-08 |
Family
ID=55717958
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510882077.0A Active CN105509806B (en) | 2015-12-03 | 2015-12-03 | Detection method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105509806B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108259230A (en) * | 2017-12-26 | 2018-07-06 | 北京毫米科技有限公司 | It is a kind of based on shared environment perception method |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103189717A (en) * | 2010-09-17 | 2013-07-03 | 高通股份有限公司 | Indoor positioning using pressure sensors |
CN103245343A (en) * | 2012-02-07 | 2013-08-14 | 联想(北京)有限公司 | Relative positioning method and device |
CA2877763A1 (en) * | 2012-06-26 | 2014-01-03 | The Governing Council Of The University Of Toronto | System, method and computer program for dynamic generation of a radio map |
CN103644905A (en) * | 2013-12-18 | 2014-03-19 | 上海交通大学 | Situation-related indoor positioning method and system |
CN104080168A (en) * | 2014-07-07 | 2014-10-01 | 百度在线网络技术(北京)有限公司 | Location method and device |
CN104237846A (en) * | 2014-04-28 | 2014-12-24 | 上海大学 | Autonomous moving object indoor three-dimensional positioning and tracking system and method |
US20150016472A1 (en) * | 2003-01-07 | 2015-01-15 | Id8 Group R2 Studios, Inc. | Legacy device bridge for residential or non-residential networks |
CN104764480A (en) * | 2015-03-10 | 2015-07-08 | 广东小天才科技有限公司 | Method and device for judging movement from indoor to outdoor |
CN104977006A (en) * | 2015-08-11 | 2015-10-14 | 北京纳尔信通科技有限公司 | Indoor positioning method based on fuzzy theory and multi-sensor fusion |
-
2015
- 2015-12-03 CN CN201510882077.0A patent/CN105509806B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150016472A1 (en) * | 2003-01-07 | 2015-01-15 | Id8 Group R2 Studios, Inc. | Legacy device bridge for residential or non-residential networks |
CN103189717A (en) * | 2010-09-17 | 2013-07-03 | 高通股份有限公司 | Indoor positioning using pressure sensors |
CN103245343A (en) * | 2012-02-07 | 2013-08-14 | 联想(北京)有限公司 | Relative positioning method and device |
CA2877763A1 (en) * | 2012-06-26 | 2014-01-03 | The Governing Council Of The University Of Toronto | System, method and computer program for dynamic generation of a radio map |
CN103644905A (en) * | 2013-12-18 | 2014-03-19 | 上海交通大学 | Situation-related indoor positioning method and system |
CN104237846A (en) * | 2014-04-28 | 2014-12-24 | 上海大学 | Autonomous moving object indoor three-dimensional positioning and tracking system and method |
CN104080168A (en) * | 2014-07-07 | 2014-10-01 | 百度在线网络技术(北京)有限公司 | Location method and device |
CN104764480A (en) * | 2015-03-10 | 2015-07-08 | 广东小天才科技有限公司 | Method and device for judging movement from indoor to outdoor |
CN104977006A (en) * | 2015-08-11 | 2015-10-14 | 北京纳尔信通科技有限公司 | Indoor positioning method based on fuzzy theory and multi-sensor fusion |
Also Published As
Publication number | Publication date |
---|---|
CN105509806A (en) | 2016-04-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2017071068A1 (en) | Application program switching method, apparatus and device | |
CN106970754A (en) | The method and device of screenshotss processing | |
WO2017028425A1 (en) | Energy-saving mode activation method and device | |
CN106202194A (en) | The storage method and device of screenshot picture | |
CN106548764A (en) | Screen brightness control method and device | |
CN106331338A (en) | Volume adjustment method and device | |
CN107608561A (en) | Touch-screen control method and device | |
CN106766022A (en) | sensor control method and device | |
CN107197441A (en) | The operating mode control method and device of intelligent home device | |
CN105868709B (en) | Method and device for closing fingerprint identification function | |
CN108538258B (en) | Method and device for adjusting backlight current and display equipment | |
CN107102772A (en) | Touch control method and device | |
CN106201310A (en) | The display packing of notification message, device and terminal | |
CN105827489A (en) | Intelligent household electrical appliance control method and device and intelligent household electrical appliance | |
CN106547216A (en) | The method and device of intelligent scene trigger condition is set | |
CN107783715A (en) | Using startup method and device | |
CN106708519A (en) | Operation control adding method and device | |
CN107529699A (en) | Control method of electronic device and device | |
CN106775228A (en) | The operating method and device of icon | |
CN107368280A (en) | Method for controlling volume, device and the interactive voice equipment of interactive voice | |
CN112148149A (en) | Touch screen control method, touch screen control device and storage medium | |
CN106921545A (en) | The sharing method of appliance information, device and terminal | |
CN106919302B (en) | Operation control method and device of mobile terminal | |
CN106775240B (en) | Application program triggering method, device and terminal | |
CN105912202A (en) | Application sharing method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |