CN114690659A - Window control method, device, control equipment and storage medium - Google Patents
Window control method, device, control equipment and storage medium Download PDFInfo
- Publication number
- CN114690659A CN114690659A CN202210413721.XA CN202210413721A CN114690659A CN 114690659 A CN114690659 A CN 114690659A CN 202210413721 A CN202210413721 A CN 202210413721A CN 114690659 A CN114690659 A CN 114690659A
- Authority
- CN
- China
- Prior art keywords
- window
- unit
- control strategy
- state
- control
- 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.)
- Withdrawn
Links
- 238000000034 method Methods 0.000 title claims abstract description 58
- 238000011217 control strategy Methods 0.000 claims abstract description 104
- 238000013500 data storage Methods 0.000 claims description 3
- 230000008859 change Effects 0.000 claims description 2
- 230000000694 effects Effects 0.000 abstract description 8
- 230000006870 function Effects 0.000 description 8
- 238000010586 diagram Methods 0.000 description 7
- 238000012545 processing Methods 0.000 description 4
- 230000001360 synchronised effect Effects 0.000 description 4
- WSFSSNUMVMOOMR-UHFFFAOYSA-N Formaldehyde Chemical compound O=C WSFSSNUMVMOOMR-UHFFFAOYSA-N 0.000 description 3
- 230000000903 blocking effect Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000000737 periodic effect Effects 0.000 description 2
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 201000001098 delayed sleep phase syndrome Diseases 0.000 description 1
- 208000033921 delayed sleep phase type circadian rhythm sleep disease Diseases 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 235000019645 odor Nutrition 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 230000035943 smell Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000009423 ventilation Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B15/00—Systems controlled by a computer
- G05B15/02—Systems controlled by a computer electric
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/418—Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM]
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/20—Pc systems
- G05B2219/26—Pc applications
- G05B2219/2642—Domotique, domestic, home control, automation, smart house
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Automation & Control Theory (AREA)
- Manufacturing & Machinery (AREA)
- Quality & Reliability (AREA)
- Power-Operated Mechanisms For Wings (AREA)
Abstract
Description
技术领域technical field
本发明实施例涉及智能家具技术领域,尤其涉及一种窗户的控制方法、装置、控制设备及存储介质。Embodiments of the present invention relate to the technical field of smart furniture, and in particular, to a control method, device, control device, and storage medium for a window.
背景技术Background technique
现代生活中,智能家具受到越来越多的认可,由于它的便利、高效、简单、易操作等优点被广泛应用。对于窗户的自动开闭需求,也受到大家的关注。In modern life, smart furniture is more and more recognized, and it is widely used due to its convenience, efficiency, simplicity, and easy operation. The demand for automatic opening and closing of windows has also attracted everyone's attention.
尤其面对新装修的房子,通常有异味,需要打开窗户进行通风,以去甲醛、除异味。然而,新装修的房子通常无人看守,那么当下雨时,很有可能因开窗而淋湿屋内墙体、家具等,造成经济损失。Especially in the face of newly renovated houses, there are usually peculiar smells, and it is necessary to open the windows for ventilation to remove formaldehyde and odors. However, the newly renovated houses are usually unattended, so when it rains, it is very likely that the walls and furniture inside the house will get wet due to the opening of the windows, causing economic losses.
对此,如何实现窗户的自动开闭成为亟待解决的技术问题。In this regard, how to realize the automatic opening and closing of windows has become an urgent technical problem to be solved.
发明内容SUMMARY OF THE INVENTION
鉴于此,为解决上述窗户无法自动开闭的技术问题,本发明实施例提供一种窗户的控制方法、装置、控制设备及存储介质。In view of this, in order to solve the technical problem that the window cannot be automatically opened and closed, embodiments of the present invention provide a control method, device, control device and storage medium for a window.
第一方面,本发明实施例提供一种窗户的控制方法,包括:In a first aspect, an embodiment of the present invention provides a method for controlling a window, including:
通过第一单元接收第二单元发送的光束,确定所述第一单元对所述光束的接收状态;Receive the light beam sent by the second unit through the first unit, and determine the receiving state of the light beam by the first unit;
根据所述接收状态确定窗外的天气状况;determining the weather condition outside the window according to the receiving state;
根据所述天气状况确定所述窗户的控制策略,以通过所述控制策略对所述窗户的状态进行控制。A control strategy of the window is determined according to the weather condition, so as to control the state of the window through the control strategy.
在一个可能的实施方式中,所述接收状态,包括:In a possible implementation, the receiving state includes:
完全接收状态和未完全接收状态;fully received state and incompletely received state;
所述根据所述接收状态确定窗外的天气状况,包括:The determining of the weather conditions outside the window according to the receiving state includes:
在所述接收状态为完全接收状态时,确定所述窗外的天气状况为天气良好;When the receiving state is the complete receiving state, determine that the weather condition outside the window is good weather;
在所述接收状态为未完全接收状态时,确定所述窗外的天气状况为下雨。When the receiving state is the incomplete receiving state, it is determined that the weather condition outside the window is rain.
在一个可能的实施方式中,所述根据所述天气状况确定所述窗户的控制策略,包括:In a possible implementation manner, the determining the control strategy of the window according to the weather condition includes:
在所述天气状况为天气良好时,确定所述窗户的控制策略为第一控制策略;When the weather condition is good weather, determining that the control strategy of the window is the first control strategy;
在所述天气状况为下雨时,确定所述窗户的控制策略为第二控制策略。When the weather condition is rain, the control strategy of the window is determined to be the second control strategy.
在一个可能的实施方式中,所述通过所述控制策略对所述窗户的状态进行控制,包括:In a possible implementation manner, the controlling the state of the window through the control strategy includes:
在确定所述窗户的控制策略为所述第一控制策略时,控制所述窗户开启;When it is determined that the control strategy of the window is the first control strategy, controlling the window to open;
在确定所述窗户的控制策略为所述第二控制策略时,控制所述窗户闭合。When it is determined that the control strategy of the window is the second control strategy, the window is controlled to be closed.
在一个可能的实施方式中,所述方法还包括:In a possible implementation, the method further includes:
在检测到所述接收状态从完全接收状态变更为未完全接收状态时,将所述窗户的控制策略从所述第一控制策略切换至所述第二控制策略;When detecting that the receiving state is changed from the fully receiving state to the incompletely receiving state, switching the control strategy of the window from the first control strategy to the second control strategy;
在检测到所述接收状态从未完全接收状态变更为完全接收状态时,将所述窗户的控制策略从所述第二控制策略切换至所述第一控制策略。The control strategy of the window is switched from the second control strategy to the first control strategy when it is detected that the receiving state changes from the incomplete receiving state to the fully receiving state.
在一个可能的实施方式中,所述第一单元和所述第二单元对应设置于窗户的同一侧;或者,所述第一单元和所述第二单元对应设置于窗户的不同侧。In a possible implementation manner, the first unit and the second unit are correspondingly disposed on the same side of the window; or, the first unit and the second unit are correspondingly disposed on different sides of the window.
在一个可能的实施方式中,所述方法还包括:In a possible implementation, the method further includes:
在检测到所述接收状态发生改变时,将所述窗户的状态数据和对应的时间数据上传至服务器,进行数据存储;所述时间数据用于记录所述窗户的状态发生改变时的时间信息。When it is detected that the receiving state changes, the state data of the window and the corresponding time data are uploaded to the server for data storage; the time data is used to record the time information when the state of the window changes.
在一个可能的实施方式中,所述方法还包括:In a possible implementation, the method further includes:
通过移动终端设备查看所述窗户的历史状态信息。View the historical state information of the window through the mobile terminal device.
第二方面,本发明实施例提供一种窗户的控制装置,包括:In a second aspect, an embodiment of the present invention provides a control device for a window, including:
接收模块,用于通过第一单元接收第二单元发送的光束,确定所述第一单元对所述光束的接收状态;a receiving module, configured to receive the light beam sent by the second unit through the first unit, and determine the receiving state of the light beam by the first unit;
确定模块,用于根据所述接收状态确定窗外的天气状况;a determining module, configured to determine the weather condition outside the window according to the receiving state;
控制模块,用于根据所述天气状况确定所述窗户的控制策略,以通过所述控制策略对所述窗户的状态进行控制。The control module is configured to determine a control strategy of the window according to the weather condition, so as to control the state of the window through the control strategy.
第三方面,本发明实施例提供一种控制设备,包括:处理器和存储器,所述处理器用于执行所述存储器中存储的窗户的控制程序,以实现第一方面中任一所述的窗户的控制方法。In a third aspect, an embodiment of the present invention provides a control device, including: a processor and a memory, where the processor is configured to execute a window control program stored in the memory, so as to implement any one of the windows in the first aspect control method.
第四方面,本发明实施例提供一种存储介质,所述存储介质存储有一个或者多个程序,所述一个或者多个程序可被一个或者多个处理器执行,以实现第一方面中任一所述的窗户的控制方法。In a fourth aspect, an embodiment of the present invention provides a storage medium, where the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement any one of the first aspect. A control method of the window.
本发明实施例提供的一种窗户的控制方法、装置、控制设备及存储介质,通过第一单元接收第二单元发送的光束,确定所述第一单元对所述光束的接收状态;由此可以获得当前第一单元对光束的接收状态。根据所述接收状态确定窗外的天气状况;根据所述天气状况确定所述窗户的控制策略,以通过所述控制策略对所述窗户的状态进行控制。通过获取第一单元的接收状态,来确定天气状况,由天气状况来确定对窗户的控制策略,从而完成对窗户的控制操作。由本方案,可以实现窗户自动开闭的效果。In a window control method, device, control device, and storage medium provided by the embodiments of the present invention, the light beam sent by the second unit is received by the first unit, and the receiving state of the light beam by the first unit is determined; Obtain the current receiving state of the light beam by the first unit. The weather condition outside the window is determined according to the received state; the control strategy of the window is determined according to the weather condition, so as to control the state of the window through the control strategy. The weather condition is determined by acquiring the receiving state of the first unit, and the control strategy for the window is determined by the weather condition, thereby completing the control operation for the window. With this solution, the effect of automatic opening and closing of windows can be realized.
附图说明Description of drawings
图1为本发明提供的一种窗户的控制方法的应用场景示意图;1 is a schematic diagram of an application scenario of a control method for a window provided by the present invention;
图2为本发明实施例提供的一种窗户的控制方法的流程示意图;2 is a schematic flowchart of a method for controlling a window according to an embodiment of the present invention;
图3为本发明实施例提供的另一种窗户的控制方法的流程示意图;3 is a schematic flowchart of another method for controlling a window according to an embodiment of the present invention;
图4为本发明实施例提供的一种窗户的控制装置的结构示意图;4 is a schematic structural diagram of a control device for a window according to an embodiment of the present invention;
图5为本发明实施例提供的一种控制设备的结构示意图。FIG. 5 is a schematic structural diagram of a control device according to an embodiment of the present invention.
具体实施方式Detailed ways
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purposes, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments These are some embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
图1为本发明提供的一种窗户的控制方法的应用场景示意图。如图1所示应用场景中包括:第一单元11、第二单元12、窗户13、服务器14和移动终端15。FIG. 1 is a schematic diagram of an application scenario of a method for controlling a window provided by the present invention. As shown in FIG. 1 , the application scenario includes: a
其中,第二单元12可以是一种特定光源发生器,用于生成光束并对外发送。这里所说的光束可以是但不限于是红外线光束、白炽灯光束、紫外线光束等。第一单元11可以具有光束接收功能。Wherein, the
在一示例性应用场景中,将光源发生器12和光接收器11对应设置于窗户13的同一侧,以使得光接收器11能够接收到由光源发生器12发出的光束。优选的,将光源发生器12和光接收器11对应设置于窗户13的外侧。In an exemplary application scenario, the
其中,第一单元和第二单元可以设置于窗户同一侧的上下位置,距离以使第二单元发出的光束能够覆盖整个窗户,并且根据光的直线传播,在第二单元的对侧设置第一单元,可以实现第一单元对第二单元发送的光束完全接收。本发明对第一单元和第二单元的具体位置不做具体限定,以能够满足第一单元完全接收到第二单元发送的光束为准,都在本发明的保护范围内。Wherein, the first unit and the second unit can be arranged at the upper and lower positions on the same side of the window, the distance is so that the light beam emitted by the second unit can cover the entire window, and according to the straight line propagation of the light, the first unit is arranged on the opposite side of the second unit. unit, so that the first unit can completely receive the light beam sent by the second unit. The present invention does not specifically limit the specific positions of the first unit and the second unit, as long as the first unit can completely receive the light beam sent by the second unit, it is within the protection scope of the present invention.
在另一示例应用场景中,将光源发生器12和光接收器11对应设置于窗户13的不同侧。In another example application scenario, the
可选地,本发明对第一单元和第二单元的具体位置还可以是位于窗户的两侧。在窗户的一侧设置有第一单元,窗户的另一侧设置有第二单元,通过窗户一侧的第二单元发出的光束能够覆盖整个窗户,相对于第二单元位置第一单元可以实现对第二单元发出的光束完全接受。例如,窗户的内侧设置有光束发送器,窗户的外侧位置,相对于光束发送器能够覆盖整个窗户的位置,通过光的直线传播,光接收器可以接收到光束发送器发出的光束。当有雨水附着在窗户上时,通过水滴介质,改变光的折射率的原因,导致光接收器不能完全接受到光束发送器的光束。Optionally, the specific positions of the first unit and the second unit in the present invention may also be located on both sides of the window. A first unit is arranged on one side of the window, and a second unit is arranged on the other side of the window. The light beam emitted by the second unit on one side of the window can cover the entire window, and the first unit can realize the alignment with respect to the position of the second unit. The beam emitted by the second unit is fully accepted. For example, the inner side of the window is provided with a beam transmitter, and the position of the outer side of the window, relative to the position where the beam transmitter can cover the entire window, through the straight line propagation of light, the light receiver can receive the beam emitted by the beam transmitter. When there is rainwater attached to the window, the reason for changing the refractive index of light through the water droplet medium causes the light receiver to not fully receive the light beam from the light beam transmitter.
在该应用场景中,第一单元和第二单元可以是两个独立的装置,也可以集成在同一装置中,本发明实施例对此不做限制。In this application scenario, the first unit and the second unit may be two independent devices, or may be integrated in the same device, which is not limited in this embodiment of the present invention.
可选地,本发明中的第一单元和第二单元可以是同一个装置,即,这个装置同时具有发送光束和接收光束的功能,可以通过将装置设置在窗户的外侧,通过第二单元表征的光束发送模块发送光束,通过光的直线传播,将光束发送到窗户后,经过光的反射作用,将光束反射到装置的第一单元表征的接收模块,通过接收光束确定天气状况,当下雨时,通过雨滴附着在窗户上,影响光的反射,从而影响光的接收效果,导致表征光接收器的第一单元不能完全接收到光束,进而判断目前的天气状况。Optionally, the first unit and the second unit in the present invention can be the same device, that is, the device has the function of sending light beams and receiving light beams at the same time, which can be characterized by the second unit by arranging the device outside the window The beam sending module of the device transmits the beam through the straight line propagation of the light. After the beam is sent to the window, after the reflection of the light, the beam is reflected to the receiving module represented by the first unit of the device, and the weather condition is determined by receiving the beam. When it rains , through the raindrops attached to the window, it affects the reflection of light, thereby affecting the receiving effect of light, so that the first unit representing the light receiver cannot fully receive the light beam, and then judge the current weather conditions.
图1所示应用场景中,服务器14和光接收器11、窗户13,以及移动终端15分别通信连接。其中,服务器14可用于接收光接收器11发送的信息、以及控制窗户13的状态,以及将窗户13的状态发送至移动终端15等。In the application scenario shown in FIG. 1 , the
当光接收器11接收到由光源发生器发出的光束时,判断当前的天气状态良好,控制窗户13打开。当光接收器11不能完全接收到光源发生器12发出的光束时,控制窗户13关闭。并将光接收器11对窗户13的状态数据上传给服务器14,以及服务器14将窗户13的状态数据发送至移动终端15。由此,可以完成对窗户的控制,实现了窗户自动开闭的效果。When the
为便于对本发明实施例的理解,下面将结合附图以具体实施例做进一步的解释说明,实施例并不构成对本发明实施例的限定。In order to facilitate the understanding of the embodiments of the present invention, further explanation will be given below with specific embodiments in conjunction with the accompanying drawings, and the embodiments do not constitute limitations to the embodiments of the present invention.
图2为本发明实施例提供的一种窗户的控制方法的流程示意图。本发明实施例用以说明窗户的控制方法的具体实现,但具体实现步骤只表示一种可能的实现方式,而不是全部的实现方式。FIG. 2 is a schematic flowchart of a method for controlling a window according to an embodiment of the present invention. The embodiments of the present invention are used to describe the specific implementation of the window control method, but the specific implementation steps only represent one possible implementation manner, rather than all the implementation manners.
根据图2提供的示例,本发明实施例提供的一种窗户的控制方法,包括:According to the example provided in FIG. 2 , a method for controlling a window provided by an embodiment of the present invention includes:
S201、通过第一单元接收第二单元发送的光束,确定第一单元对光束的接收状态。S201. Receive the light beam sent by the second unit through the first unit, and determine the receiving state of the light beam by the first unit.
上述第一单元可以为图1中所示例的光接收器12,第二单元可以为图1中所示例的光源发生器11。由图1中的相关描述可知,第一单元和第二单元可以对应设置于窗户的同一侧,使得第一单元能够接收到第二单元发送的光束。The above-mentioned first unit may be the
其中,第一单元和第二单元可以设置于窗户同一侧的上下位置,距离以使第二单元发出的光束能够覆盖整个窗户,并且根据光的直线传播,在第二单元的对侧设置第一单元,可以实现第一单元对第二单元发送的光束完全接收。本发明对第一单元和第二单元的具体位置不做具体限定,以能够满足第一单元完全接收到第二单元发送的光束为准,都在本发明的保护范围内。Wherein, the first unit and the second unit can be arranged at the upper and lower positions on the same side of the window, the distance is so that the light beam emitted by the second unit can cover the entire window, and according to the straight line propagation of the light, the first unit is arranged on the opposite side of the second unit. unit, so that the first unit can completely receive the light beam sent by the second unit. The present invention does not specifically limit the specific positions of the first unit and the second unit, as long as the first unit can completely receive the light beam sent by the second unit, it is within the protection scope of the present invention.
其中,接收状态可以理解为通过光接收器对光束的接收情况。可以是但不限于是反应接收到的光束受障碍物的遮挡时,接收器对光束获取的多少、时间的长短、亮度参数等信息。Among them, the receiving state can be understood as the receiving condition of the light beam by the optical receiver. It can be, but is not limited to, the information that the receiver obtains from the light beam, the length of time, the brightness parameter, etc. when the received light beam is blocked by an obstacle.
可选地,第二单元发送的光束可以是但不限于是连续的光束、非连续的光束、周期性的光束、明暗间隔的光束等。Optionally, the light beams sent by the second unit may be, but are not limited to, continuous light beams, discontinuous light beams, periodic light beams, light and dark spaced light beams, and the like.
在一实施例中,第二单元可周期性地对外发送光束,例如第二单元可以每隔5分钟,则对外发送一次光束。In one embodiment, the second unit may periodically send the light beam to the outside, for example, the second unit may send the light beam to the outside every 5 minutes.
上述接收状态可包括:完全接收状态、未完全接收状态,用来表征对光束的接收情况。The above-mentioned receiving state may include: a complete receiving state and an incomplete receiving state, which are used to represent the receiving condition of the light beam.
可选地,第一单元和第二单元对应设置于窗户的外侧、内外两侧或设置于同一装置上。Optionally, the first unit and the second unit are correspondingly disposed on the outer side, the inner and outer sides of the window, or on the same device.
S202、根据接收状态确定窗外的天气状况。S202. Determine the weather condition outside the window according to the receiving state.
在实践中,当天气良好时,根据光的直线传播,和预先设置第一单元和第二单元在窗户同一侧,可能是上下侧。因此,第一单元和第二单元之间并无遮挡,第一单元能够完全接收到第二单元发送的光束,也即第一单元对光束的接收状态为完全接收状态。而当天气下雨时,由于雨水附着在窗户外侧,导致第一单元和第二单元之间存在遮挡物,阻挡了第二单元发送的光束的路径,导致第一单元并不能够完全接收到第二单元发送的光束,也即第一单元对光束的接收状态为未完全接收状态。由此可见,窗外的天气状况和第一单元对光束的接收状态之间存在联系。In practice, when the weather is good, the first unit and the second unit are pre-set on the same side of the window, possibly the upper and lower sides, according to the straight line spread of light. Therefore, there is no obstruction between the first unit and the second unit, and the first unit can completely receive the light beam sent by the second unit, that is, the receiving state of the light beam by the first unit is a fully receiving state. When it rains, because the rain adheres to the outside of the window, there is a blocker between the first unit and the second unit, which blocks the path of the light beam sent by the second unit, so that the first unit cannot fully receive the first unit. The light beam sent by the second unit, that is, the receiving state of the light beam received by the first unit is an incomplete receiving state. It can be seen that there is a connection between the weather conditions outside the window and the receiving state of the light beam by the first unit.
基于此,本发明实施例中,根据第一单元对光束的接收状态确定窗外的天气状况。具体的,在第一单元对光束的接收状态为完全接收状态时,确定窗外的天气状况为天气良好;在第一单元对光束的接收状态为未完全接收状态时,确定窗外的天气状况为下雨。Based on this, in the embodiment of the present invention, the weather condition outside the window is determined according to the receiving state of the light beam by the first unit. Specifically, when the receiving state of the light beam by the first unit is a fully receiving state, it is determined that the weather condition outside the window is good weather; when the receiving state of the first unit receiving the light beam is an incomplete receiving state, it is determined that the weather condition outside the window is low rain.
S203、根据天气状况确定窗户的控制策略,以通过控制策略对窗户的状态进行控制。S203. Determine the control strategy of the window according to the weather condition, so as to control the state of the window through the control strategy.
其中,控制策略可以理解为针对不同的天气状况,对窗户做出相应的控制手段。Among them, the control strategy can be understood as making corresponding control means for the windows according to different weather conditions.
由S203的描述可见,本发明实施例中,能够根据窗外的天气状况来确定窗户的控制策略,从而实现根据窗外的天气状况来对窗户的状态进行控制。这里窗户的状态包括开启和关闭。It can be seen from the description of S203 that, in the embodiment of the present invention, the control strategy of the window can be determined according to the weather condition outside the window, so that the state of the window can be controlled according to the weather condition outside the window. The state of the window here includes open and closed.
本发明实施例提供的一种窗户的控制方法,通过第一单元接收第二单元发送的光束,确定第一单元对光束的接收状态,第一单元和第二单元对应设置于窗户的同一侧,根据接收状态确定窗外的天气状况;根据天气状况确定窗户的控制策略,以通过控制策略对窗户的状态进行控制。由此,可以实现根据天气状况来控制窗户的状态,实现窗户的自动开闭。An embodiment of the present invention provides a control method for a window. The first unit receives the light beam sent by the second unit to determine the receiving state of the light beam by the first unit. The first unit and the second unit are correspondingly arranged on the same side of the window, The weather condition outside the window is determined according to the receiving state; the control strategy of the window is determined according to the weather condition, so as to control the state of the window through the control strategy. Thereby, the state of the window can be controlled according to the weather conditions, and the automatic opening and closing of the window can be realized.
图3为本发明实施例提供的另一种窗户的控制方法的流程示意图。图3是在上述一种实施例的基础上进行介绍的。根据图3所示内容,窗户的控制方法具体包括:FIG. 3 is a schematic flowchart of another method for controlling a window according to an embodiment of the present invention. FIG. 3 is introduced on the basis of the above-mentioned embodiment. According to the content shown in Figure 3, the control method of the window specifically includes:
S301、通过第一单元接收第二单元发送的光束,确定第一单元对光束的接收状态。S301. Receive the light beam sent by the second unit through the first unit, and determine the receiving state of the light beam by the first unit.
在窗户的同一侧安装有第一单元和第二单元。第一单元可以是但不限于具有接收光源信息功能的设备、处理器设备、接收器等,第二单元可以是但不限于一种发光光源、发光器等,用于生成指定的光束并发送出去。这里所说的光束可以是但不限于是红外线光束、白炽灯光束、紫外线光束等。这里说的窗户的同一侧可以理解为窗户的外侧或内侧。A first unit and a second unit are mounted on the same side of the window. The first unit can be, but is not limited to, a device, processor device, receiver, etc. with the function of receiving light source information, and the second unit can be, but is not limited to, a light-emitting light source, illuminator, etc., used to generate a specified light beam and send it out . The light beams mentioned here can be, but are not limited to, infrared light beams, incandescent light beams, ultraviolet light beams, and the like. The same side of the window mentioned here can be understood as the outside or inside of the window.
可选地,第二单元发送的光束可以是但不限于是连续的光束、非连续的光束、周期性的光束、明暗间隔的光束等。Optionally, the light beams sent by the second unit may be, but are not limited to, continuous light beams, discontinuous light beams, periodic light beams, light and dark spaced light beams, and the like.
在一实施例中,第二单元可周期性地对外发送光束,例如第二单元可以每隔5分钟,则对外发送一次光束。In one embodiment, the second unit may periodically send the light beam to the outside, for example, the second unit may send the light beam to the outside every 5 minutes.
进一步地,确定第一单元对第二单元所发送光束的接收状态。这里的接收状态可以理解为第一单元接收由第二单元发送的光束的情况,包括:完全接收状态和未完全接收状态。Further, the receiving state of the light beam sent by the first unit to the second unit is determined. The receiving state here can be understood as a situation in which the first unit receives the light beam sent by the second unit, including: a fully received state and an incompletely received state.
其中,第一单元和第二单元可以对应设置于窗户的同一侧,使得第一单元能够接收到第二单元发送的光束。Wherein, the first unit and the second unit may be correspondingly disposed on the same side of the window, so that the first unit can receive the light beam sent by the second unit.
其中,第一单元和第二单元可以设置于窗户同一侧的上下位置,距离以使第二单元发出的光束能够覆盖整个窗户,并且根据光的直线传播,在第二单元的对侧设置第一单元,可以实现第一单元对第二单元发送的光束完全接收。本发明对第一单元和第二单元的具体位置不做具体限定,以能够满足第一单元完全接收到第二单元发送的光束为准,都在本发明的保护范围内。Wherein, the first unit and the second unit can be arranged at the upper and lower positions on the same side of the window, the distance is so that the light beam emitted by the second unit can cover the entire window, and according to the straight line propagation of the light, the first unit is arranged on the opposite side of the second unit. unit, so that the first unit can completely receive the light beam sent by the second unit. The present invention does not specifically limit the specific positions of the first unit and the second unit, as long as the first unit can completely receive the light beam sent by the second unit, it is within the protection scope of the present invention.
可选地,本发明对第一单元和第二单元的具体位置还可以是位于窗户的两侧。在窗户的一侧设置有第一单元,窗户的另一侧设置有第二单元,通过窗户一侧的第二单元发出的光束能够覆盖整个窗户,相对于第二单元位置第一单元可以实现对第二单元发出的光束完全接受。例如,窗户的内侧设置有光束发送器,窗户的外侧位置,相对于光束发送器能够覆盖整个窗户的位置,通过光的直线传播,光接收器可以接收到光束发送器发出的光束。当有雨水附着在窗户上时,通过水滴介质,改变光的折射率的原因,导致光接收器不能完全接受到光束发送器的光束。Optionally, the specific positions of the first unit and the second unit in the present invention may also be located on both sides of the window. A first unit is arranged on one side of the window, and a second unit is arranged on the other side of the window. The light beam emitted by the second unit on one side of the window can cover the entire window, and the first unit can realize the alignment with respect to the position of the second unit. The beam emitted by the second unit is fully accepted. For example, the inner side of the window is provided with a beam transmitter, and the position of the outer side of the window, relative to the position where the beam transmitter can cover the entire window, through the straight line propagation of light, the light receiver can receive the beam emitted by the beam transmitter. When there is rainwater attached to the window, the reason for changing the refractive index of light through the water droplet medium causes the light receiver to not fully receive the light beam from the light beam transmitter.
可选地,本发明中的第一单元和第二单元可以是同一个装置,即,这个装置同时具有发送光束和接收光束的功能,可以通过将装置设置在窗户的外侧,通过第二单元表征的光束发送模块发送光束,通过光的直线传播,将光束发送到窗户后,经过光的反射作用,将光束反射到装置的第一单元表征的接收模块,通过接收光束确定天气状况,当下雨时,经过雨滴附着在窗户上,影响光的反射,从而影响光的接收效果,导致表征光接收器的第一单元不能完全接收到光束,进而判断目前的天气状况。Optionally, the first unit and the second unit in the present invention can be the same device, that is, the device has the function of sending light beams and receiving light beams at the same time, which can be characterized by the second unit by arranging the device outside the window The beam sending module of the device transmits the beam through the straight line propagation of the light. After the beam is sent to the window, after the reflection of the light, the beam is reflected to the receiving module represented by the first unit of the device, and the weather condition is determined by receiving the beam. When it rains , after raindrops are attached to the window, it affects the reflection of light, thereby affecting the receiving effect of light, so that the first unit representing the light receiver cannot fully receive the light beam, and then judge the current weather conditions.
S302、在接收状态为完全接收状态时,确定窗外的天气状况为天气良好。S302. When the receiving state is the complete receiving state, determine that the weather condition outside the window is good weather.
S303、在接收状态为未完全接收状态时,确定窗外的天气状况为下雨。S303. When the receiving state is the incomplete receiving state, determine that the weather condition outside the window is rain.
通过第一单元得到对光束的接收状态为完全接收状态时,可以确定窗外的天气状况为天气良好。通过第一单元得到对光束的接收状态为未完全接收状态时,可以确定窗外的天气状况为下雨。When it is obtained through the first unit that the receiving state of the light beam is a complete receiving state, it can be determined that the weather condition outside the window is good weather. When it is obtained through the first unit that the receiving state of the light beam is an incomplete receiving state, it can be determined that the weather condition outside the window is rain.
由此,可以根据第一单元对光束的接收状态确定窗外的天气状况。Thus, the weather condition outside the window can be determined according to the receiving state of the light beam by the first unit.
S304、在天气状况为天气良好时,确定窗户的控制策略为第一控制策略。S304. When the weather condition is good weather, determine the control strategy of the window as the first control strategy.
S305、在天气状况为下雨时,确定窗户的控制策略为第二控制策略。S305. When the weather condition is rain, determine the control strategy of the window as the second control strategy.
其中,第一控制策略可以理解为天气良好时,对窗户的控制手段,例如可以是控制窗户开启。第二控制策略可以理解为下雨时,对窗户的另一种控制手段,例如可以是控制窗户闭合。Wherein, the first control strategy can be understood as a means of controlling the window when the weather is good, for example, controlling the opening of the window. The second control strategy can be understood as another control means for the window when it rains, for example, it can be controlled to close the window.
进一步地,通过第一单元对光束的接收状态的不同,得到对应的天气状况。在第一单元对光束为完全接收状态时,确定窗外为天气良好,进而确定对窗户的控制策略为第一控制策略。在第一单元对光束为未完全接收状态时,确定窗外为下雨,进而确定对窗户的控制策略为第二控制策略。完成对窗户的控制。Further, the corresponding weather conditions are obtained through the difference in the receiving state of the light beam by the first unit. When the first unit is in a state of completely receiving the light beam, it is determined that the weather outside the window is good, and then the control strategy for the window is determined as the first control strategy. When the light beam is not fully received by the first unit, it is determined that it is raining outside the window, and then the control strategy for the window is determined as the second control strategy. Complete control of the window.
在一种可能的实施方式中,当发光器发送光束至接收器时,根据接收器对光束的接收状态确定对应的天气状况。当接收器能够完全接收光束时,判断窗外天气为天气良好,确定窗户的控制手段为第一控制策略。当接收器未完全接收光束时,判断窗外天气为下雨,进而确定窗户的控制手段为第二控制策略。In a possible implementation, when the light emitter sends the light beam to the receiver, the corresponding weather condition is determined according to the receiving state of the light beam by the receiver. When the receiver can fully receive the light beam, it is judged that the weather outside the window is good weather, and the control method of the window is determined as the first control strategy. When the receiver does not fully receive the light beam, it is judged that the weather outside the window is raining, and then the control method of the window is determined as the second control strategy.
S306、在确定窗户的控制策略为第一控制策略时,控制窗户开启。S306, when it is determined that the control strategy of the window is the first control strategy, control the window to open.
S307、在确定窗户的控制策略为第二控制策略时,控制窗户闭合。S307, when it is determined that the control strategy of the window is the second control strategy, control the window to be closed.
在第一单元对光束为完全接收状态时,确定窗外为天气良好,进而确定对窗户的控制策略为第一控制策略,对窗户执行开启控制。在第一单元对光束为未完全接收状态时,确定窗外为下雨,进而确定对窗户的控制策略为第二控制策略,对窗户执行闭合控制。由此,实现了根据天气状况自动控制窗户。When the first unit is in a state of completely receiving the light beam, it is determined that the weather outside the window is good, and then the control strategy for the window is determined as the first control strategy, and the opening control is performed for the window. When the light beam is not fully received by the first unit, it is determined that it is raining outside the window, and then the control strategy for the window is determined as the second control strategy, and the closing control is performed for the window. Thereby, automatic control of the windows according to weather conditions is achieved.
在一种可能的实施方式中,当发光器发送光束至接收器时,根据接收器对光束的接收状态确定对应的天气状况。当接收器能够完全接收光束时,判断窗外天气为天气良好,确定窗户的控制手段为第一控制策略,并对窗户进行开启操作。当接收器未完全接收光束时,判断窗外天气为下雨,进而确定窗户的控制手段为第二控制策略,并对窗户进行闭合操作。In a possible implementation, when the light emitter sends the light beam to the receiver, the corresponding weather condition is determined according to the receiving state of the light beam by the receiver. When the receiver can fully receive the light beam, it is judged that the weather outside the window is good weather, the control method of the window is determined as the first control strategy, and the window is opened. When the receiver does not fully receive the light beam, it is judged that the weather outside the window is rain, and then the control method of the window is determined as the second control strategy, and the window is closed.
S308、在检测到接收状态从完全接收状态变更为未完全接收状态时,将窗户的控制策略从第一控制策略切换至第二控制策略。S308. When it is detected that the receiving state is changed from the fully receiving state to the incompletely receiving state, switch the control strategy of the window from the first control strategy to the second control strategy.
S309、在检测到接收状态从未完全接收状态变更为完全接收状态时,将窗户的控制策略从第二控制策略切换至第一控制策略。S309 , when it is detected that the receiving state is changed from the incomplete receiving state to the fully receiving state, switch the control strategy of the window from the second control strategy to the first control strategy.
进一步地,在第一单元对光束为完全接收状态时,确定窗外为天气良好,进而确定对窗户的控制策略为第一控制策略。在第一单元对光束为未完全接收状态时,确定窗外为下雨,进而确定对窗户的控制策略为第二控制策略。在检测到接收状态从完全接收状态变更为未完全接收状态时,将窗户的控制策略从第一控制策略切换至第二控制策略。类似的,在检测到接收状态从未完全接收状态变更为完全接收状态时,将窗户的控制策略从第二控制策略切换至第一控制策略。由此,实现了根据天气状况自动控制窗户。Further, when the first unit is in a state of completely receiving the light beam, it is determined that the weather outside the window is good, and then the control strategy for the window is determined as the first control strategy. When the light beam is not fully received by the first unit, it is determined that it is raining outside the window, and then the control strategy for the window is determined as the second control strategy. When it is detected that the receiving state is changed from the fully received state to the incompletely received state, the control strategy of the window is switched from the first control strategy to the second control strategy. Similarly, when it is detected that the receiving state changes from the incomplete receiving state to the fully receiving state, the control strategy of the window is switched from the second control strategy to the first control strategy. Thereby, automatic control of the windows according to weather conditions is achieved.
在一种可能的实施方式中,通过接收器接收到的光束,使得窗户保持开启状态。由于接收器和光发生器安装在窗户的外侧,并且可以设置接收器和广发生器的相对位置为窗户同一侧的上下两个方位,保证光发生器发出的光束能够覆盖整个窗面。当窗外下雨时,大量雨滴落到窗户上,或是直接进入屋内时,雨滴经过接收器和光发生器,阻挡了光束向接收器方向发送,可能部分阻挡光束,也可能完全遮挡光束。接收器因为接收不到光束,会判断出对应的天气为下雨,然后控制窗户由开启改为关闭。相同的,当天气良好时,阻挡光束的障碍物消失了,接收器可以完全接受到光束时,会判断天气状况为良好,控制窗户的状态从闭合变至开启,完成对窗户的自动开闭操作。In one possible implementation, the light beam received by the receiver keeps the window open. Since the receiver and the light generator are installed on the outside of the window, and the relative positions of the receiver and the wide generator can be set as the upper and lower orientations on the same side of the window, it is ensured that the light beam emitted by the light generator can cover the entire window surface. When it rains outside the window, a large number of raindrops fall on the window, or directly enter the house, the raindrops pass through the receiver and the light generator, blocking the beam from being sent to the receiver, which may partially block the beam or completely block the beam. Because the receiver cannot receive the light beam, it will judge that the corresponding weather is raining, and then control the window from opening to closing. Similarly, when the weather is good, the obstacle blocking the beam disappears, and the receiver can fully receive the beam, it will judge the weather condition as good, control the state of the window from closed to open, and complete the automatic opening and closing operation of the window. .
S310、在检测到接收状态发生改变时,将窗户的状态数据和对应的时间数据上传至服务器,进行数据存储。S310. When it is detected that the receiving state has changed, upload the state data of the window and the corresponding time data to the server for data storage.
其中,时间数据用于记录窗户的状态发生改变时的时间信息。Among them, the time data is used to record the time information when the state of the window changes.
S311、通过移动终端设备查看窗户的历史状态信息。S311. View historical state information of the window through a mobile terminal device.
其中,窗户的状态数据可以理解为窗户的开启状态和窗户的闭合状态。历史状态信息可以理解为窗户的状态发生改变的数据信息。Among them, the state data of the window can be understood as the open state of the window and the closed state of the window. The historical state information can be understood as the data information that the state of the window has changed.
进一步地,通过第一单元的接收状态的不同,对窗户进行不同的控制。在窗户的状态每次发生改变时,通过第一单元上将状态改变的信息和对应的时间数据上传至服务器,进行存储,方面通过移动终端设备查看窗户的状态数据。Further, the windows are controlled differently according to the different receiving states of the first unit. Every time the state of the window changes, the information of the state change and the corresponding time data are uploaded to the server through the first unit for storage, and the state data of the window can be viewed through the mobile terminal device.
这里所说的移动终端设备可以是但不限于是手机、笔记本等设备。用户可以通过手机上的应用软件时时查看窗户的状态信息。The mobile terminal device mentioned here may be, but is not limited to, a mobile phone, a notebook, and other devices. The user can check the status information of the window from time to time through the application software on the mobile phone.
在一种可能的实施方式中,当发光器发送光束至接收器时,根据接收器对光束的接收状态确定对应的天气状况。当接收器能够完全接收光束时,判断窗外天气为天气良好,确定窗户的控制手段为第一控制策略,并对窗户进行开启操作。当接收器未完全接收光束时,判断窗外天气为下雨,进而确定窗户的控制手段为第二控制策略,并对窗户进行闭合操作。在检测到接收器从完全接收状态变更为未完全接收状态时,判断窗外天气由天气良好变化为下雨,将窗户的控制策略从第一控制策略切换至第二控制策略,对窗户进行由开启变为闭合的操作。在检测到接收器从未完全接收状态变更为完全接收状态时,判断窗外天气由下雨变化为天气良好,将窗户的控制策略从第二控制策略切换至第一控制策略,窗户由开启状态变为闭合状态。同时将窗户的状态数据上传至服务器,方面用户在应用软件上查看窗户的历史状态信息。从而完成了对窗户的控制。由此,可以实现根据天气状况自动控制窗户。In a possible implementation, when the light emitter sends the light beam to the receiver, the corresponding weather condition is determined according to the receiving state of the light beam by the receiver. When the receiver can fully receive the light beam, it is judged that the weather outside the window is good weather, the control method of the window is determined as the first control strategy, and the window is opened. When the receiver does not fully receive the light beam, it is judged that the weather outside the window is rain, and then the control method of the window is determined as the second control strategy, and the window is closed. When it is detected that the receiver changes from the fully receiving state to the incomplete receiving state, it is judged that the weather outside the window has changed from good weather to rainy, and the control strategy of the window is switched from the first control strategy to the second control strategy, and the window is opened by becomes a closed operation. When it is detected that the receiver has changed from an incomplete reception state to a complete reception state, it is determined that the weather outside the window has changed from rainy to good weather, and the control strategy of the window is switched from the second control strategy to the first control strategy, and the window is changed from the open state to the open state. is closed. At the same time, the state data of the window is uploaded to the server, and the user can view the historical state information of the window on the application software. This completes the control of the window. Thereby, it is possible to automatically control the windows according to the weather conditions.
本发明实施例提供的窗户的控制方法,通过第一单元接收第二单元发送的光束后,确定了对应的接收状态。通过不同的接收状态,控制窗户的开启和闭合,实现了对窗户的自动控制,进而实现了窗户的自动开闭的效果。In the window control method provided by the embodiment of the present invention, after receiving the light beam sent by the second unit through the first unit, the corresponding receiving state is determined. Through different receiving states, the opening and closing of the window is controlled, and the automatic control of the window is realized, thereby realizing the effect of automatic opening and closing of the window.
图4为本发明实施例提供的一种窗户的控制装置的结构示意图。如图4提供的示图,窗户的控制装置包括:FIG. 4 is a schematic structural diagram of a window control device according to an embodiment of the present invention. As shown in Figure 4, the controls for the window include:
接收模块41,用于通过第一单元接收第二单元发送的光束,确定第一单元对光束的接收状态;The receiving
确定模块42,用于根据接收状态确定窗外的天气状况;A
控制模块43,用于根据天气状况确定窗户的控制策略,以通过控制策略对窗户的状态进行控制。The
本实施例提供的窗户的控制装置可以是如图4中所示的窗户的控制装置,可执行如图2-3中窗户的控制方法的所有步骤,进而实现图2-3所示窗户的控制方法的技术效果,具体请参照图2-3相关描述,为简洁描述,在此不作赘述。The window control device provided in this embodiment may be the window control device shown in FIG. 4 , and can execute all steps of the window control method shown in FIG. 2-3 , thereby realizing the control of the window shown in FIG. 2-3 . For the technical effect of the method, please refer to the relevant descriptions in FIGS. 2-3 for details. For the sake of brevity, detailed descriptions are omitted here.
图5为本发明实施例提供的一种控制设备的结构示意图,图5所示的控制设备500包括:至少一个处理器501、存储器502、至少一个网络接口504和其他用户接口503。控制设备500中的各个组件通过总线系统505耦合在一起。可理解,总线系统505用于实现这些组件之间的连接通信。总线系统505除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图5中将各种总线都标为总线系统505。FIG. 5 is a schematic structural diagram of a control device according to an embodiment of the present invention. The
其中,用户接口503可以包括显示器、键盘或者点击设备(例如,鼠标,轨迹球(trackball)、触感板或者触摸屏等。Among them, the
可以理解,本发明实施例中的存储器502可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data RateSDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synch link DRAM,SLDRAM)和直接内存总线随机存取存储器(DirectRambus RAM,DRRAM)。本文描述的存储器502旨在包括但不限于这些和任意其它适合类型的存储器。It can be understood that the
在一些实施方式中,存储器502存储了如下的元素,可执行单元或者数据结构,或者他们的子集,或者他们的扩展集:操作系统5021和应用程序5022。In some embodiments,
其中,操作系统5021,包含各种系统程序,例如框架层、核心库层、驱动层等,用于实现各种基础业务以及处理基于硬件的任务。应用程序5022,包含各种应用程序,例如媒体播放器(Media Player)、浏览器(Browser)等,用于实现各种应用业务。实现本发明实施例方法的程序可以包含在应用程序5022中。The
在本发明实施例中,通过调用存储器502存储的程序或指令,具体的,可以是应用程序5022中存储的程序或指令,处理器501用于执行各方法实施例所提供的方法步骤,例如包括:In this embodiment of the present invention, by calling the program or instruction stored in the
通过第一单元接收第二单元发送的光束,确定第一单元对光束的接收状态;根据接收状态确定窗外的天气状况;根据天气状况确定窗户的控制策略,以通过控制策略对窗户的状态进行控制。Receive the light beam sent by the second unit through the first unit, and determine the receiving state of the light beam by the first unit; determine the weather condition outside the window according to the receiving state; determine the control strategy of the window according to the weather condition, so as to control the state of the window through the control strategy .
上述本发明实施例揭示的方法可以应用于处理器501中,或者由处理器501实现。处理器501可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器501中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器501可以是通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(FieldProgrammable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本发明实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件单元组合执行完成。软件单元可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器502,处理器501读取存储器502中的信息,结合其硬件完成上述方法的步骤。The methods disclosed in the above embodiments of the present invention may be applied to the
可以理解的是,本文描述的这些实施例可以用硬件、软件、固件、中间件、微码或其组合来实现。对于硬件实现,处理单元可以实现在一个或多个专用集成电路(ApplicationSpecific Integrated Circuits,ASIC)、数字信号处理器(Digital Signal Processing,DSP)、数字信号处理设备(DSPDevice,DSPD)、可编程逻辑设备(Programmable LogicDevice,PLD)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、通用处理器、控制器、微控制器、微处理器、用于执行本申请所述功能的其它电子单元或其组合中。It will be appreciated that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit may be implemented in one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDevices, DSPDs), programmable logic devices (Programmable Logic Device, PLD), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), general purpose processor, controller, microcontroller, microprocessor, other electronic unit for performing the functions described in this application or in its combination.
对于软件实现,可通过执行本文所述功能的单元来实现本文所述的技术。软件代码可存储在存储器中并通过处理器执行。存储器可以在处理器中或在处理器外部实现。For a software implementation, the techniques described herein may be implemented by means of units that perform the functions described herein. Software codes may be stored in memory and executed by a processor. The memory can be implemented in the processor or external to the processor.
本实施例提供的控制设备可以是如图5中所示的控制设备,可执行如图2-3中窗户的控制方法的所有步骤,进而实现图2-3所示窗户的控制方法的技术效果,具体请参照图2-3相关描述,为简洁描述,在此不作赘述。The control device provided in this embodiment may be the control device shown in FIG. 5 , and can execute all steps of the window control method shown in FIG. 2-3 , thereby achieving the technical effect of the window control method shown in FIG. 2-3 . , please refer to the relevant descriptions in FIGS. 2-3 for details. For the sake of brevity, details are not repeated here.
本发明实施例还提供了一种存储介质(计算机可读存储介质)。这里的存储介质存储有一个或者多个程序。其中,存储介质可以包括易失性存储器,例如随机存取存储器;存储器也可以包括非易失性存储器,例如只读存储器、快闪存储器、硬盘或固态硬盘;存储器还可以包括上述种类的存储器的组合。The embodiment of the present invention also provides a storage medium (computer-readable storage medium). The storage medium here stores one or more programs. Wherein, the storage medium may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as read-only memory, flash memory, hard disk or solid-state hard disk; the memory may also include the above-mentioned types of memory. combination.
当存储介质中一个或者多个程序可被一个或者多个处理器执行,以实现上述在控制设备侧执行的窗户的控制方法。When one or more programs in the storage medium can be executed by one or more processors, so as to realize the above-mentioned control method of the window executed on the side of the control device.
所述处理器用于执行存储器中存储的控制程序,以实现以下在控制设备侧执行的窗户的控制方法的步骤:The processor is used to execute the control program stored in the memory to realize the following steps of the control method of the window executed on the side of the control device:
通过第一单元接收第二单元发送的光束,确定第一单元对光束的接收状态;根据接收状态确定窗外的天气状况;根据天气状况确定窗户的控制策略,以通过控制策略对窗户的状态进行控制。The light beam sent by the second unit is received by the first unit, and the receiving state of the light beam by the first unit is determined; the weather condition outside the window is determined according to the receiving state; the control strategy of the window is determined according to the weather condition, so as to control the state of the window through the control strategy .
专业人员应该还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Professionals should be further aware that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. Interchangeability, the above description has generally described the components and steps of each example in terms of function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of the present invention.
结合本文中所公开的实施例描述的方法或算法的步骤可以用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。The steps of a method or algorithm described in connection with the embodiments disclosed herein may be implemented in hardware, a software module executed by a processor, or a combination of the two. The software module can be placed in random access memory (RAM), internal memory, read only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other in the technical field. in any other known form of storage medium.
以上所述的具体实施方式,对本发明的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上所述仅为本发明的具体实施方式而已,并不用于限定本发明的保护范围,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The specific embodiments described above further describe the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above descriptions are only specific embodiments of the present invention and are not intended to limit the scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.
Claims (11)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210413721.XA CN114690659A (en) | 2022-04-19 | 2022-04-19 | Window control method, device, control equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210413721.XA CN114690659A (en) | 2022-04-19 | 2022-04-19 | Window control method, device, control equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114690659A true CN114690659A (en) | 2022-07-01 |
Family
ID=82142472
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210413721.XA Withdrawn CN114690659A (en) | 2022-04-19 | 2022-04-19 | Window control method, device, control equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114690659A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104060911A (en) * | 2013-03-19 | 2014-09-24 | 福特全球技术公司 | Rain Onset Detection Glazing Auto-close |
CN204984068U (en) * | 2015-09-23 | 2016-01-20 | 华南理工大学 | Real -time supervision weather conditions realize automatic switch's window device |
CN106088914A (en) * | 2016-06-17 | 2016-11-09 | 美的集团股份有限公司 | Indoor intelligent window control method and server |
CN210049763U (en) * | 2018-11-01 | 2020-02-11 | 李娜 | Intelligent sliding window |
CN111255333A (en) * | 2020-03-03 | 2020-06-09 | 杨童舒 | Rainfall sensing intelligent window and control method |
CN111457561A (en) * | 2020-03-26 | 2020-07-28 | 青岛海尔空调器有限总公司 | Window control method and system based on air conditioner |
-
2022
- 2022-04-19 CN CN202210413721.XA patent/CN114690659A/en not_active Withdrawn
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104060911A (en) * | 2013-03-19 | 2014-09-24 | 福特全球技术公司 | Rain Onset Detection Glazing Auto-close |
CN204984068U (en) * | 2015-09-23 | 2016-01-20 | 华南理工大学 | Real -time supervision weather conditions realize automatic switch's window device |
CN106088914A (en) * | 2016-06-17 | 2016-11-09 | 美的集团股份有限公司 | Indoor intelligent window control method and server |
CN210049763U (en) * | 2018-11-01 | 2020-02-11 | 李娜 | Intelligent sliding window |
CN111255333A (en) * | 2020-03-03 | 2020-06-09 | 杨童舒 | Rainfall sensing intelligent window and control method |
CN111457561A (en) * | 2020-03-26 | 2020-07-28 | 青岛海尔空调器有限总公司 | Window control method and system based on air conditioner |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107294793A (en) | Replacement method, device, equipment and the storage medium of intelligent home device | |
US12152797B2 (en) | Control method, air conditioner, and computer readable storage medium | |
CN111965991B (en) | Authority adjusting method and device of intelligent control switch, intelligent control switch and storage medium | |
CN105824663A (en) | Background application cleaning method and mobile terminal | |
CN116146077B (en) | Intelligent window system control method, intelligent window system and computer equipment | |
CN114690659A (en) | Window control method, device, control equipment and storage medium | |
WO2022228530A1 (en) | Method and apparatus for simulating environment outside vehicle, storage medium and terminal device | |
WO2021248785A1 (en) | Memory clean-up method, smart terminal, and readable storage medium | |
CN116195871B (en) | Curtain transmittance adjustment method, device and smart curtain | |
CN110087168B (en) | Audio reverberation processing method, device, equipment and storage medium | |
CN110138452B (en) | A data transmission method and system based on the indicator light of the Internet of Things device | |
EP4213447B1 (en) | Preventing or limiting control of a first lighting system by a second lighting system | |
WO2023237113A1 (en) | Control method and apparatus for air conditioning device, and device, medium and program product | |
US20220346208A1 (en) | Determining an alternative position for a lighting device for improving an auxiliary function | |
CN112995264A (en) | Method, apparatus, storage medium, and program product for preventing data from being deleted by mistake | |
CN105022264B (en) | A kind of control method and smartwatch of smartwatch | |
CN113923832B (en) | Control method and related equipment thereof | |
CN114280951B (en) | Control method and device for intelligent household equipment and storage medium | |
CN111526650B (en) | Method and device for controlling equipment to enter different working modes | |
CN116424213B (en) | Control method, device and equipment for vehicle indoor lamp and storage medium | |
CN210381406U (en) | Dance hall intelligent lighting remote monitering system | |
CN118963161A (en) | Control method of intelligent device, intelligent device and storage medium | |
WO2022161284A1 (en) | Application subscription method, device and medium | |
CN118427113A (en) | Memory management method, device, equipment and storage medium | |
KR100576020B1 (en) | How to save IoT-SD data in mobile communication terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WW01 | Invention patent application withdrawn after publication | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20220701 |