CN108924990B - WeChat applet-based LED lamp control system and connection method thereof - Google Patents

WeChat applet-based LED lamp control system and connection method thereof Download PDF

Info

Publication number
CN108924990B
CN108924990B CN201810511285.3A CN201810511285A CN108924990B CN 108924990 B CN108924990 B CN 108924990B CN 201810511285 A CN201810511285 A CN 201810511285A CN 108924990 B CN108924990 B CN 108924990B
Authority
CN
China
Prior art keywords
led lamp
led
lamp control
small program
module
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
Application number
CN201810511285.3A
Other languages
Chinese (zh)
Other versions
CN108924990A (en
Inventor
马雄华
钟艳花
朱德洪
李胜光
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jiangmen Yomband Co ltd
Original Assignee
Jiangmen Yomband Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Jiangmen Yomband Co ltd filed Critical Jiangmen Yomband Co ltd
Priority to CN201810511285.3A priority Critical patent/CN108924990B/en
Publication of CN108924990A publication Critical patent/CN108924990A/en
Application granted granted Critical
Publication of CN108924990B publication Critical patent/CN108924990B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B45/00Circuit arrangements for operating light-emitting diodes [LED]
    • H05B45/10Controlling the intensity of the light
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • H04L51/046Interoperability with other network applications or services

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)
  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

The invention discloses an LED lamp control system based on a WeChat small program and a connection method thereof, comprising an LED lamp main body and an LED lamp control small program based on a WeChat platform, the LED lamp main body comprises an LED driving module, an MCU for controlling the LED lamp main body, a wireless connection module for connecting with an intelligent mobile terminal and a two-dimensional code containing information for generating the LED lamp control small program, the two-dimensional code is arranged on the outer surface of the LED lamp main body, the wireless connection module, the MCU and the LED driving module are sequentially connected, the LED lamp control small program controls the LED lamp main body through the wireless connection module, the invention takes the small program of the WeChat platform as an entrance, a user can realize the control of the surrounding LED lamps by scanning the two-dimensional code through a mobile terminal, therefore, the user does not need to download respective APPs to the LED lamps of different manufacturers, and the operation is convenient.

Description

WeChat applet-based LED lamp control system and connection method thereof
Technical Field
The invention relates to the technical field of LED lamp control, in particular to an LED lamp control system based on a WeChat small program and a connection method thereof.
Background
At present, wireless control intelligent LED lamps basically need to be controlled by APP of corresponding manufacturers installed through mobile equipment (mobile phones, panels and the like), or each LED lamp is controlled by an independent remote controller, and some manufacturers also provide WeChat public numbers or WeChat service number entries, but need to register and pair and bind the equipment. When the intelligent LED lamps of a plurality of manufacturers need to be controlled, a user may need to install a plurality of APPs or pay attention to public numbers of different manufacturers, the operation is very troublesome, and the user experience is poor.
Disclosure of Invention
In order to solve the above problems, the present invention provides a general intelligent LED lamp control system, which uses a small program developed by a WeChat platform as an entry, and realizes control of intelligent LED lamps of different manufacturers in a wireless connection range on the small program interface.
The technical scheme adopted by the invention for solving the problems is as follows:
the utility model provides a LED lamp control system based on believe applet a little, includes LED lamp main part and based on believe the LED lamp accuse applet a little, LED lamp main part includes LED drive module, is used for control the MCU of LED lamp main part, be used for the wireless connection module who is connected with intelligent Mobile terminal and contain the generation the two-dimensional code of the information of LED lamp accuse applet, the two-dimensional code set up in the surface of LED lamp main part, wireless connection module, MCU and LED drive module connects gradually, the LED lamp accuse applet passes through wireless connection module control LED lamp main part.
Further, the wireless connection module is a Bluetooth module.
Further, the LED lamp body also comprises a storage module used for storing a device ID used for distinguishing the type of the LED lamp and a password used as a connection password, and the storage module is connected with the MCU.
Further, the MCU and the wireless connection module are integrated on a single circuit board as a control module, and the interface of the control module and external connection comprises: the LED driving module comprises a power interface used for connecting a power supply and an LED driving interface used for transmitting a control instruction to the LED driving module, wherein the power interface is connected with an external power supply, and the LED driving interface is used as a control end to be connected with the LED driving module.
A connecting method applied to the LED lamp control system based on the WeChat applet is characterized in that one or more LED lamp main bodies are arranged in a wireless connection range of an intelligent terminal, and the connecting method comprises the following steps:
the LED lamp control small program is opened on the intelligent mobile terminal by scanning the two-dimension code or the LED lamp control small program is directly opened in a WeChat interface of the intelligent mobile terminal;
displaying all the LED lamp main bodies which can be connected within a wireless connection range on the LED lamp control small program;
the LED lamp control small program performs communication authentication with one of the LED lamp main bodies in the wireless connection range, the equipment ID and the password of the LED lamp main body connected currently are verified, and if the verification fails, the communication authentication of the step is repeated;
after the communication authentication is passed, a wireless connection module in the LED lamp body establishes formal connection with the intelligent mobile terminal, and returns a token for communication to the intelligent mobile terminal;
and the LED lamp control small program generates an LED control interface and displays the LED control interface on the intelligent mobile terminal.
Further, when the intelligent mobile terminal is in communication authentication with the LED lamp main body, the LED lamp control applet generates a form page for inputting the main body device ID and the password of the LED lamp and displays the form page on the intelligent mobile terminal.
Further, the LED lamp control small program sends an instruction to the MCU through the wireless connection module, the instruction comprises a detection instruction and a control instruction, the MCU returns response information to the LED lamp control small program after receiving the instruction, and when the LED lamp control small program does not receive the response information after sending the control instruction for more than preset time, a prompt that the equipment is out of control is displayed on the intelligent mobile terminal.
Further, the LED control interface of the LED lamp control applet includes a first view including a slider for adjusting brightness, a brightness view displaying current brightness, and an option button for entering a second view, and a second view including an information area for displaying information of the currently connected LED lamp main body and a function area including a reset button, which are graphical, and a second menu as a secondary menu of the first view.
The invention has the beneficial effects that: according to the invention, the control module consisting of the wireless connection module and the MCU is added in the traditional LED lamp, the two-dimensional code comprising the LED lamp control small program is arranged on the outer surface of the LED lamp, the small program of the WeChat platform is taken as an entrance, and a user can control the surrounding LED lamps by scanning the two-dimensional code through the mobile terminal, so that the LED lamps of different manufacturers do not need to download respective APP or pay attention to public numbers, all the LED lamps can be controlled in a small program interface, and the operation of the user is convenient.
Drawings
The invention is further illustrated by the following figures and examples.
FIG. 1 is a connection block diagram of an LED lamp control system of the present invention;
FIG. 2 is a flow chart of the connection of the LED lamp control system of the present invention;
FIG. 3 is a schematic interface view of a first view of the present invention;
fig. 4 is a schematic interface view of a second view of the present invention.
Detailed Description
Referring to fig. 1, an LED lamp control system based on a WeChat applet comprises an LED lamp main body and an LED lamp applet based on a WeChat platform, wherein the LED lamp main body comprises an LED driving module, an MCU for controlling the LED lamp main body, a wireless connection module for connecting with an intelligent mobile terminal, and a two-dimensional code containing information for generating the LED lamp applet, in this embodiment, the wireless connection module is a bluetooth module, the two-dimensional code is disposed on an outer surface of the LED lamp main body as a code scanning inlet, the MCU and the wireless connection module are integrated on a single circuit board as a control module, an interface for connecting the control module and the outside includes a power interface for connecting a power supply and an LED driving interface for transmitting a control instruction to the LED driving module, the power interface on the control module is connected with an external power supply, and the LED driving interface is connected with the LED driving module as a control end, meanwhile, an external power supply also serves as a power supply end of the LED driving module and is connected with the LED driving module, the wireless connection module, the MCU and the LED driving module are sequentially connected, the LED lamp body further comprises a storage module used for storing equipment ID used for distinguishing LED lamp types and passwords used as connection passwords, and the storage module is connected with the MCU.
Referring to fig. 3 and 4, the MCU receives a control instruction from the LED lamp control applet through the wireless module, so as to control the LED driving module, that is, control the operating mode of the lamp bead on the LED lamp main body; the control mode of the MCU comprises brightness adjustment, switch adjustment, state reset and the like, accordingly, an LED control interface of the LED lamp control small program comprises a graphical first view and a second view serving as a secondary menu of the first view, the first view comprises a sliding bar for adjusting brightness, a brightness view for displaying the current brightness and an option button for entering the second view, and the second view comprises an information area for displaying the information of the LED lamp main body which is connected currently and a function area containing a reset key; specifically, the sliding strip of the first view comprises two endpoints of 'dark' and 'bright', the two endpoints are arranged from left to right, real-time brightness adjustment is realized by sliding a sliding block between the two endpoints on a screen, a window which is used for displaying the current brightness percentage figure and follows the sliding block is arranged right above the sliding block, the brightness view is a major arc with the current brightness percentage figure displayed in the center, equal-length line segments towards the center of the major arc are uniformly arranged on the major arc along an arc path, and the color of the equal-length line segments along the arc path is gradually changed in color; the brightness view is arranged above the sliding strip; the information area of the second view includes a device name, an identification code (device ID), and a password, and the function area includes five buttons of "device reset", "factory reset", "delete", "save", and "return".
Referring to fig. 2, a connection method applied to the above-mentioned WeChat applet-based LED lamp control system, where there are one or more LED lamp bodies in a wireless connection range of an intelligent mobile terminal, includes the following steps:
s1, the LED lamp control small program is opened on the intelligent mobile terminal by scanning the two-dimension code or the LED lamp control small program is directly opened in a WeChat interface of the intelligent mobile terminal;
s2, detecting whether the Bluetooth adapter on the intelligent mobile terminal is activated, if yes, entering the step S3, if not, prompting to turn on the Bluetooth adapter on the intelligent mobile terminal, monitoring the on-off state of the Bluetooth adapter, and repeating the step S2 when the on-off state changes;
s3, displaying all the LED lamp bodies which can be connected in the wireless connection range on the LED lamp control small program, and displaying the LED lamp bodies on the LED lamp control small program in a list form;
s4, the LED lamp control small program performs communication authentication with one of the LED lamp main bodies in the wireless connection range, the equipment ID and the password of the LED lamp main body which is connected at present are verified, the reference value of the equipment ID is set in the LED lamp control small program, the comparison value of the equipment ID is sent to the LED lamp control small program by the storage module for comparison, and the equipment ID is verified when the equipment IDs are consistent (namely the types of the LED lamps are consistent); the reference value of the password is arranged in the storage module, the comparison value of the password is sent by the LED lamp control small program for comparison, and when the passwords are consistent, the password verification is passed;
s5, after the communication authentication is passed, the wireless connection module in the LED lamp main body establishes formal connection with the intelligent mobile terminal, and returns a token for communication to the intelligent mobile terminal, and the LED lamp control applet simultaneously sends an instruction and the token to control the LED lamp main body;
s6, storing the MAC address of the wireless connection module, the equipment ID and the password of the LED lamp main body in the LED lamp control small program, and displaying the equipment name;
and S7, the LED lamp control small program generates an LED control interface and displays the LED control interface on the intelligent mobile terminal.
In the above step S4 and step S5, during and after the wireless connection is established, the LED light control applet sends an instruction, including a control instruction and a verification instruction, to the MCU through the wireless connection module, the MCU returns a response message to the LED light control applet after receiving the instruction, and when the response message cannot be received after the LED light control applet sends the control instruction for more than a preset time, the LED light control applet displays a prompt that the device is out of control on the smart mobile terminal. The preset time is 1 minute in this embodiment.
In the step S4, when the smart mobile terminal performs communication authentication with the LED lamp main body, if the information of the selected LED lamp main body is not stored in the LED lamp control applet according to the method in the step S6 (that is, the LED lamp main body is connected to the LED lamp control applet for the first time), the LED lamp control applet generates a form page for inputting a device ID and a password and displays the form page on the smart mobile terminal, and when the information passes the authentication, the smart mobile terminal may perform the next operation, and when the information does not pass the authentication, the form page is displayed again; if the information of the selected LED lamp main body is already stored in the LED lamp control applet (i.e., not connected for the first time) as in step S6, the verification is performed in the background by skipping the form page, and if the verification is successful, the next operation is performed, and if the verification is not successful, the form page is displayed.
In order to solve the problem that lamps of different manufacturers need to be controlled and operated on different interfaces, a control module composed of a wireless connection module and an MCU is added in a traditional LED lamp, a two-dimensional code which generates an LED lamp control applet and current LED lamp control information is arranged on the outer surface of the LED lamp, a user opens the LED lamp control applet by scanning the two-dimensional code or directly opens the LED lamp control applet on the interface of the used applet, the LED lamp in a wireless connection range can be controlled after the two-dimensional code information is obtained, frequent switching of apps or other interfaces is not needed to control different LED lamps, and therefore user experience is good, and the LED lamp control system is very convenient to use.
The above description is only a preferred embodiment of the present invention, and the present invention is not limited to the above embodiment, and the present invention shall fall within the protection scope of the present invention as long as the technical effects of the present invention are achieved by the same means.

Claims (5)

1. The utility model provides a LED lamp control system based on little letter applet which characterized in that: the LED lamp control system comprises an LED lamp main body and an LED lamp control small program based on a WeChat platform, wherein the LED lamp main body comprises an LED driving module, an MCU (microprogrammed control Unit) for controlling the LED lamp main body, a wireless connection module for connecting with an intelligent mobile terminal and a two-dimensional code containing information for generating the LED lamp control small program, the two-dimensional code is arranged on the outer surface of the LED lamp main body, the wireless connection module, the MCU and the LED driving module are sequentially connected, and the LED lamp control small program controls the LED lamp main body through the wireless connection module; the wireless connection module is a Bluetooth module; the LED lamp body also comprises a storage module used for storing equipment ID used for distinguishing LED lamp types and passwords used as connection passwords, and the storage module is connected with the MCU; the MCU with the wireless connection module is integrated in a single circuit board as a control module, and the interface of the control module and external connection comprises: the LED driving module comprises a power interface used for connecting a power supply and an LED driving interface used for transmitting a control instruction to the LED driving module, wherein the power interface is connected with an external power supply, and the LED driving interface is used as a control end to be connected with the LED driving module.
2. A connection method applied to the WeChat applet-based LED lamp control system of claim 1, wherein there are one or more LED lamp bodies in a wireless connection range of an intelligent mobile terminal, the connection method comprises the following steps:
the LED lamp control small program is opened on the intelligent mobile terminal by scanning the two-dimension code or the LED lamp control small program is directly opened in a WeChat interface of the intelligent mobile terminal; displaying all the LED lamp main bodies which can be connected within a wireless connection range on the LED lamp control small program;
the LED lamp control small program performs communication authentication with one of the LED lamp main bodies in the wireless connection range, the equipment ID and the password of the LED lamp main body connected currently are verified, and if the verification fails, the communication authentication of the step is repeated;
after the communication authentication is passed, a wireless connection module in the LED lamp body establishes formal connection with the intelligent mobile terminal, and returns a token for communication to the intelligent mobile terminal;
and the LED lamp control small program generates an LED control interface and displays the LED control interface on the intelligent mobile terminal.
3. A method of connecting according to claim 2, characterized in that: when the intelligent mobile terminal is in communication authentication with the LED lamp main body, the LED lamp control small program generates a form page for inputting the equipment ID and the password of the LED lamp main body and displays the form page on the intelligent mobile terminal.
4. A method of connecting according to claim 2, characterized in that: the LED lamp control small program sends an instruction to the MCU through the wireless connection module, the instruction comprises a detection instruction and a control instruction, the MCU returns response information to the LED lamp control small program after receiving the instruction, and when the LED lamp control small program does not receive the response information after sending the control instruction for more than preset time, a prompt that the equipment is out of control is displayed on the intelligent mobile terminal.
5. A method of connecting according to claim 2, characterized in that: the LED control interface of the LED lamp control small program comprises a first graphical view and a second graphical view serving as a secondary menu of the first graphical view, the first graphical view comprises a sliding bar used for adjusting brightness, a brightness view used for displaying the current brightness and an option button used for entering the second graphical view, and the second graphical view comprises an information area used for displaying information of the LED lamp main body connected currently and a function area containing a reset key.
CN201810511285.3A 2018-05-24 2018-05-24 WeChat applet-based LED lamp control system and connection method thereof Active CN108924990B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810511285.3A CN108924990B (en) 2018-05-24 2018-05-24 WeChat applet-based LED lamp control system and connection method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810511285.3A CN108924990B (en) 2018-05-24 2018-05-24 WeChat applet-based LED lamp control system and connection method thereof

Publications (2)

Publication Number Publication Date
CN108924990A CN108924990A (en) 2018-11-30
CN108924990B true CN108924990B (en) 2020-12-11

Family

ID=64403990

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810511285.3A Active CN108924990B (en) 2018-05-24 2018-05-24 WeChat applet-based LED lamp control system and connection method thereof

Country Status (1)

Country Link
CN (1) CN108924990B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110460596A (en) * 2019-08-06 2019-11-15 王鑫 Lighting system and implementation method are controlled based on the remote speech of wechat small routine and OneNet
CN112165751B (en) * 2020-08-20 2022-07-12 安徽极光照明工程有限公司 WeChat applet-based light control system
CN112330944A (en) * 2020-11-02 2021-02-05 深圳市爱尚智联科技有限公司 WeChat applet Bluetooth BLE communication-based screen-free electric appliance control method and system
CN114286484B (en) * 2022-01-05 2022-11-22 池州睿成微电子有限公司 Multifunctional Bluetooth lamp band controller

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106325119A (en) * 2015-07-02 2017-01-11 艾体威尔电子技术(北京)有限公司 Method of man-machine interactive control device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN204392618U (en) * 2013-09-13 2015-06-10 北京澄通光电股份有限公司 Based on the application system of the convenient control intelligent lighting terminal of Quick Response Code
CN105163414A (en) * 2014-06-13 2015-12-16 上海仪电控股(集团)公司 Intelligent illumination system control method based on two dimension code and Web application
CN105208712A (en) * 2014-06-30 2015-12-30 深圳市冠泰实业有限公司 Intelligent control method of LED lamp driving power supply
CN106102223A (en) * 2016-06-16 2016-11-09 中山市欧日光电科技有限公司 A kind of Intelligent lamp control system based on Quick Response Code scanning technique
CN106054739B (en) * 2016-07-15 2019-03-01 横店集团得邦照明股份有限公司 A kind of intelligence control system and its implementation illuminated and security protection combines
CN107360454A (en) * 2017-06-28 2017-11-17 百视通网络电视技术发展有限责任公司 A kind of tv remote control system and method based on mobile terminal wechat small routine

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106325119A (en) * 2015-07-02 2017-01-11 艾体威尔电子技术(北京)有限公司 Method of man-machine interactive control device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张小龙首次全面阐述小程序,定档1月9日上线(内附演讲全文);微信公开课;《微信:https://mp.weixin.qq.com/s/RlLkcMMhAisBSzqIJuTetg》;20161228;第1-12页 *

Also Published As

Publication number Publication date
CN108924990A (en) 2018-11-30

Similar Documents

Publication Publication Date Title
CN108924990B (en) WeChat applet-based LED lamp control system and connection method thereof
CN106416143B (en) Apparatus control method and device
CN105392251B (en) A kind of methods, devices and systems of management intelligent lamp
CN106878917A (en) The transfer control method of information, system, terminal and data acquisition unit
CN108475504A (en) Communication device
CN104461290A (en) Photographing control method and device
CN107113328A (en) Control device and its control method and integrated control system
CN105589761A (en) Method and apparatus for implementing terminal control and mobile terminal
CN103873905A (en) Television control system and television control method
CN104820631A (en) Presentation method and presentation apparatus of state of external device, and user terminal
CN110126972A (en) Authorize matching method
CN100387079C (en) Dynamic back lighting method for mobile communication terminal
CN108769767A (en) Television terminal control method, equipment and computer readable storage medium
KR20060078831A (en) Mobile communication terminal with remote control and its operating method
CN105246098B (en) Routing device connection method and device
CN109167770B (en) Method for outputting networking authentication information, networking method, networking device and storage medium
CN112804395B (en) Terminal automatic screen-projection connection method and system
CN107179872A (en) Display methods, display device, terminal and the computer-readable recording medium of keyboard
CN111245689B (en) Intelligent bathroom system based on convergence gateway and control method thereof
CN108925016A (en) State display method, device and the computer readable storage medium of intelligent electric lamp
CN104847178A (en) Multiple coded lock system having mist spray function and control method thereof
JP4342394B2 (en) Mobile communication terminal device, external terminal device, and wireless communication system switching method
CN105099768B (en) The networking reminding method and device of electronic equipment
CN106341780A (en) Intelligent terminal remote control system and method based on vehicle-mounted Bluetooth
CN105070014A (en) RF4CE-based universal learning remote controller, and universal learning remote control method

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
GR01 Patent grant
GR01 Patent grant