Intelligent lamp control method and system and lamp

文档序号:1300864 发布日期:2020-08-07 浏览:4次 中文

阅读说明:本技术 一种灯具智能控制方法和系统以及灯具 (Intelligent lamp control method and system and lamp ) 是由 刘铁 姚亮亮 袁子明 余久平 刘鹏飞 陈栋 于 2020-04-20 设计创作,主要内容包括:本发明公开了一种灯具智能控制方法和系统以及灯具,可实现用户通过客户端来指令控制灯具,并最终将控制指令呈现给其他用户,实现用户间信息交流。该方法包括:灯具接收第一客户端发送的路由器的网络名称和密码,连接到路由器,通过路由器连接到服务器;灯具接收服务器转发的控制指令,并对其进行处理,利用处理后的信息,控制灯具变换,该控制指令由第二客户端发送至服务器。(The invention discloses a lamp intelligent control method and system and a lamp, which can realize that a user instructs to control the lamp through a client, and finally presents a control instruction to other users to realize information exchange among the users. The method comprises the following steps: the lamp receives a network name and a password of the router sent by the first client, is connected to the router, and is connected to the server through the router; the lamp receives and processes the control instruction forwarded by the server, the lamp is controlled to be changed by using the processed information, and the control instruction is sent to the server by the second client.)

1. An intelligent control method for a lamp is characterized by comprising the following steps:

the lamp receives a network name and a password of the router sent by the first client, is connected to the router, and is connected to the server through the router;

the lamp receives and processes the control instruction forwarded by the server, the lamp is controlled to be changed by using the processed information, and the control instruction is sent to the server by the second client.

2. The intelligent lamp control method according to claim 1, wherein the method for receiving the control command forwarded by the server and processing the control command comprises:

and processing the received control command by adopting a specified information conversion mode so as to convert the control command into a conversion parameter of the light.

3. The intelligent lamp control method according to claim 2, wherein the method for processing the received control command in the specified information conversion manner comprises:

and converting each dot/stroke combination of Morse code characters into conversion parameters of lamplight, including long-bright, short-bright and off-bright changes.

4. A light intelligent control system, comprising:

the network connection module is used for receiving the network name and the password sent by the first client, connecting the network name and the password to the router and connecting the network name and the password to the server through the router;

and the information processing module is used for receiving the control instruction forwarded by the server, processing the control instruction, controlling the lamp to be converted by utilizing the processed information, and sending the control instruction to the server by the second client.

5. The intelligent light fixture control system of claim 4, wherein the information processing module is further configured to:

and processing the received control command by adopting a specified information conversion mode so as to convert the control command into a conversion parameter of the light.

6. The intelligent light fixture control system of claim 5, wherein the information processing module is further configured to:

and converting each dot/stroke combination of Morse code characters into conversion parameters of lamplight, including long-bright, short-bright and off-bright changes.

7. A lamp, characterized in that the intelligent lamp control system of any one of claims 4 to 6 is provided.

Technical Field

The invention relates to the technical field of lamp control, in particular to an intelligent lamp control method and system and a lamp.

Background

Lamps such as a desk lamp are commonly used home appliances, and conventional lamps can adjust the brightness, color temperature, and the like of light by using buttons, knobs, and the like on the desk lamp.

In implementing the present invention, the inventors propose a more novel way to control the luminaire to improve the user experience.

Disclosure of Invention

In view of this, the invention provides a method and a system for intelligently controlling a lamp and a lamp, which can realize that a user instructs to control the lamp through a client, and finally present a message to other users, thereby realizing information exchange between users.

The invention provides an intelligent control method for a lamp, which has the specific implementation scheme that:

an intelligent control method for a lamp, the method comprising:

the lamp receives a network name and a password of the router sent by the first client, is connected to the router, and is connected to the server through the router;

the lamp receives and processes the control instruction forwarded by the server, the lamp is controlled to be changed by using the processed information, and the control instruction is sent to the server by the second client.

The invention provides an intelligent lamp control system, which has the specific implementation scheme that:

the network connection module is used for receiving the network name and the password sent by the first client, connecting the network name and the password to the router and connecting the network name and the password to the server through the router;

and the information processing module is used for receiving the control instruction forwarded by the server, processing the control instruction, controlling the lamp to be converted by utilizing the processed information, and sending the control instruction to the server by the second client.

The invention further provides a lamp which is provided with the intelligent lamp control system.

According to the intelligent lamp control method, the connection between the lamp and the network is established, the control instruction sent by the second client can be received through the server and processed into the control codes such as Morse code and the like to control the lamp to change light, so that the message is displayed, and the user can remotely control the lamp through the client.

Drawings

For purposes of illustration and not limitation, the present invention will now be described in accordance with its preferred embodiments, particularly with reference to the accompanying drawings, in which:

fig. 1 is a flowchart of a method for intelligently controlling a lamp according to the present embodiment;

fig. 2 is a structural diagram of an intelligent control system of a lamp according to the present embodiment.

Detailed Description

The invention is further described with reference to the following figures and examples.

In order to overcome the defects in the prior art, the embodiment provides an intelligent lamp control method, which includes establishing connection between a lamp and a network, obtaining account information authorized by a first client to a second client through a server, receiving a message control instruction sent by the second client through the server, processing the message control instruction into morse codes, controlling the lamp to convert light by using the morse codes, displaying a message, displaying the message control instruction of the second client as the first client, and realizing information communication of a user.

Specifically, the intelligent control method for a lamp provided by this embodiment is applied to a lamp, as shown in fig. 1, and includes the following steps:

s101, receiving the network name and the password of the router sent by the first client, connecting to the router, connecting to the server through the router, and feeding back the connection state to the first client by the server.

Specifically, the specific implementation manner of step 101 is as follows:

s101-1, determining that a lamp to be accessed currently exists by the first client, and determining a network name and an access password of a currently accessible wireless router by searching a wireless network signal.

S101-2, the first client sends the network name and the access password of the wireless router to the lamp.

S101-3, receiving the network name and the access password of the wireless router sent by the first client.

S101-4, accessing the router represented by the network name by using the received network name and the access password of the router.

S101-5, connecting to a server through a router, and feeding back the connection state to be a first client by the server.

According to the embodiment, the accessible wireless router is searched through the first client, and then the lamp is accessed into the wireless router, so that the lamp can be conveniently controlled subsequently.

S102, the server acquires account information authorized by the first client to the second client.

Specifically, the specific implementation manner of step 102 is as follows:

s102-1, a server receives first state information representing a first client when the first client is in an authorization receiving mode;

s102-2, the server receives second state information which represents a second client and is sent when the second client is in an authorization application mode;

s102-3, the server judges whether the first state information and the second state information jointly meet preset authorization conditions;

s102-4, if the first state information and the second state information meet the preset authorization condition, the server conducts account authorization on an account corresponding to a second client specified by the first client.

In this embodiment, the first status information and the second status information may be both status parameters that the first client and the second client are in an information sending state.

In this embodiment, if the first state information and the second state information jointly satisfy the preset authorization condition, the server performs account authorization on an account corresponding to the second client specified by the first client.

The account corresponding to the designated second client may be various types of accounts, such as a shopping account, a use account of a video website, a lecture account, a wechat account, and the like.

The account corresponding to the designated second client may be an account that needs to be authorized according to user default or according to user input.

And S103, receiving a control instruction forwarded by the server, sending the control instruction to the server by the second client, processing the control instruction, and controlling the lamp to be changed by using the processed information.

The user logs in the first client through the second client, the lamp control instruction is sent to the server, the server forwards the received lamp control instruction to the lamp equipment, the lamp equipment processes the received control instruction into lamp control information, and the lamp is controlled to be changed through the obtained lamp control information, so that the lamp control is realized.

Specifically, in step 103, the specific implementation process of processing the received control instruction is as follows:

and processing the received control command by adopting a specified information conversion mode, and converting the received control command into a conversion parameter of the light.

In this embodiment, the specified information transformation mode may be morse code, or other code, or a user-defined transformation mode.

Specifically, the method for processing the received control command by using the morse code conversion method includes:

according to the dot/dash combination of each character, the character is converted into the changes of long on/short on/off of the light, and the like.

In this embodiment, the receivable control commands may be short english or numeric abbreviations. For example, a control command of "the user sleeps" sent by the second client is received, and the control command is converted into "G2B (abbreviation of go to bed)" morse code. In addition to the preset phrases, the control commands may also be short messages consisting of a small number of english or numbers.

And S104, feeding the received control instruction back to the server, and forwarding the control instruction to the first client by the server for presentation.

In this embodiment, after receiving the control instruction sent by the second client and forwarded by the server, the server feeds back the received control instruction to the server, and forwards the control instruction to the first client, so that the message content will be displayed on the first client.

Specifically, the specific implementation manner of step 104 is as follows:

and generating information to be presented, sending the information to the server, and forwarding the information to the first client by the server, so that the information to be presented is presented to the user of the first client.

According to the intelligent control method for the lamp, connection between the lamp and a network is established, account information authorized by a first client to a second client is obtained, a message control instruction sent by the second client can be received through a server and processed into Morse codes, the lamp is controlled by the Morse codes to change light, and therefore the message is displayed, the user can control the lamp through the instruction of the client, the message control instruction of the second client is displayed as the first client, and information communication of the user is achieved.

The embodiment further provides an intelligent control system for a lamp, which is disposed in the lamp, as shown in fig. 2, the system 20 includes a network connection module, an information processing module, and an information presenting module, wherein:

the network connection module is used for receiving the network name and the password of the router sent by the first client, connecting the network connection module to the router, connecting the network connection module to the server through the router, and feeding back the connection state to the first client by the server.

And the information processing module is used for receiving the control instruction forwarded by the server, sending the control instruction to the server by the second client, processing the control instruction, and controlling the lamp conversion by using the processed information.

And the information presentation module is used for feeding the received control instruction back to the server, and forwarding the control instruction to the first client by the server.

In this embodiment, the network connection module receives a network name and a password of the router sent by the first client, and connects to the router, and the specific implementation manner is as follows:

and receiving the network name and the access password of the wireless router sent by the first client.

And accessing the router represented by the network name by using the received network name and access password of the router.

The intelligent terminal is connected to the server through the router, the server sends a connection success instruction to the first client, and the intelligent terminal is connected with the lamp.

According to the embodiment, the accessible wireless router is searched through the first client, and then the lamp is accessed into the wireless router, so that the lamp can be conveniently controlled subsequently.

In this embodiment, the information processing module processes the received control instruction, and the specific implementation manner is as follows:

and processing the received control command by adopting a specified information conversion mode, and converting the received control command into a conversion parameter of the light.

In this embodiment, the specified information transformation mode may be morse code, or other code, or a user-defined transformation mode.

Specifically, the method for processing the received control command by using the morse code conversion method includes:

according to the dot/dash combination of each character, the character is converted into the changes of long on/short on/off of the light, and the like.

In this embodiment, the information presentation module includes a generation module and a message presentation module; wherein the content of the first and second substances,

the generating module is used for generating the information to be presented and sending the information to be presented to the information presenting module;

and the message presenting module is used for sending the message to the server, and forwarding the message to the first client by the server so as to present the message to the user of the first client.

According to the intelligent lamp control system provided by the embodiment, firstly, connection between a lamp and a network is established through a network connection module, account information authorized by a first client to a second client is obtained through an account authorization module, a voice control instruction transmitted by the second client and forwarded by a server is received, the voice control instruction is processed into Morse codes through an information processing module, the lamp is controlled to convert light through the Morse codes, and therefore messages are displayed, the control of the user on the lamp through the instruction of the client can be achieved, and finally the messages of the second client are displayed on the first client through the information display module, so that the information communication of the user is achieved.

The above-described embodiments should not be construed as limiting the scope of the invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions can occur, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

7页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种基于GPRS的施工现场照明智能控制系统

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!