Control Method and Device of Lamp, Storage Medium and Electronic Device
By obtaining the identification code of smart lamps and establishing a USB physical connection, the problem of intelligent lamps and multimedia display devices interdependent on the performance of routing equipment is solved, achieving efficient and stable communication and reducing latency.
Patent Information
- Application Number
- CN202210225910.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-07
- Publication Date
- 2025-05-27
- Estimated Expiration
- 2042-03-07
AI Technical Summary
The interaction between smart lamps and multimedia display devices is excessively dependent on the performance of routing equipment, resulting in large changes in communication quality during frequent interactions and lack of effective solutions.
By obtaining feedback information of the target lamp, it determines its identification code, and establishes a communication connection based on the code. Use universal serial bus (USB) for physical connection, reduce dependence on routing devices, and associate it with the communication interface of the lamp through the message port of the multimedia display device to achieve efficient communication.
It realizes efficient and stable communication when the lamps and multimedia display devices frequently interact, reduces communication delay, avoids channel congestion, and improves overall communication efficiency and stability.
Smart Images

Figure CN114698200B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of Internet of Things, and in particular, to a control method and device for a lamp, a storage medium, and an electronic device. Background Art
[0002] In the Internet of Things smart home, a TV can establish a connection with a smart lamp through wireless communication methods such as Wifi and Bluetooth. Currently, most smart lamps are connected to the TV through Wifi. The smart lamp connected through Wifi needs to connect the lamp and the TV to the same router for local area network communication. This forms a dependence on the communication function of the router, and the communication efficiency and stability of the lamp and the TV depend on the performance of the router. That is to say, frequent interaction between the lamp and the TV is likely to cause channel congestion, resulting in slow message transmission.
[0003] How to improve the communication efficiency and stability between the lamp and the TV has become an urgent problem to be solved.
[0004] In view of the problems in the related art that the interaction between the lamp and the multimedia display device overly depends on the performance of the routing device, and the communication quality changes greatly when the lamp and the multimedia display device interact frequently, no effective solution has been proposed yet. Summary of the Invention
[0005] Embodiments of the present invention provide a control method and device for a lamp, a storage medium, and an electronic device, so as to at least solve the problems in the related art that the interaction between the lamp and the multimedia display device overly depends on the performance of the routing device, and the communication quality changes greatly when the lamp and the multimedia display device interact frequently.
[0006] According to an embodiment of the embodiments of the present invention, a control method for a lamp is provided, including: when obtaining lamp information fed back by a target lamp, determining an identification code of the target lamp corresponding to the lamp information; establishing a communication connection with the target lamp according to the communication permission corresponding to the identification code, and determining a first communication interface of a multimedia display device corresponding to the communication connection; associating the first communication interface with a message port of the multimedia display device, where the message port includes at least one of the following: a first message port for the multimedia display device to send messages, a second message port for the multimedia display device to receive messages; when there is message content to be sent in the message port, sending control information corresponding to the message content to the target lamp through the first communication interface, where the control information is used to control the display change of the target lamp.
[0007] In an exemplary embodiment, before determining the identification code of the target lamp corresponding to the lamp information obtained from the target lamp, the above method further includes: determining that there is a physical connection of a Universal Serial Bus between the multimedia display device and the target lamp; in the case where the physical connection is valid, sending a discovery message to the target lamp, where the discovery message is used to indicate that the target lamp has a physical connection with the multimedia display device; receiving the lamp information fed back by the target lamp according to the discovery message.
[0008] In an exemplary embodiment, before establishing a communication connection with the target lamp according to the communication permission corresponding to the identification code, the above method further includes: obtaining preset authorization parameters in the multimedia display device, where the preset authorization parameters are a set of target identification codes that are allowed to communicate with the multimedia display device; in the case where there is a matching item of the identification code in the preset authorization parameters, determining that the multimedia display device corresponding to the identification code has the communication permission to communicate with the multimedia display device, and sending a first indication message for establishing a communication connection to the target lamp; in the case where there is no matching item of the identification code in the preset authorization parameters, suspending the establishment of the communication connection between the multimedia display device and the target lamp, and displaying a second indication message for requesting communication permission on the display interface of the multimedia display device.
[0009] In an exemplary embodiment, in the case where there is no matching item of the identification code in the preset authorization parameters, after suspending the establishment of the communication connection between the multimedia display device and the target lamp and displaying a second indication message for requesting communication permission on the display interface of the multimedia display device, the above method further includes: receiving a confirmation message of the target object on the multimedia display device; in the case where the confirmation message indicates authorizing the target lamp to establish a communication connection, sending a first indication message for establishing a communication connection to the target lamp.
[0010] In an exemplary embodiment, determining the first communication interface of the communication connection corresponding to the multimedia display device includes: in the case where it is determined that a communication connection is successfully established between the multimedia display device and the target lamp, obtaining the connection interface for physically connecting the multimedia display device and the target lamp using a Universal Serial Bus; using the connection interface as the first communication interface of the communication connection corresponding to the multimedia display device, where the first communication interface is used to transmit the control information of the multimedia display device to the target lamp in real time.
[0011] In an exemplary embodiment, associating a first communication interface with a message port of a multimedia display device includes: when it is determined that there is information interaction on the first communication interface of the multimedia display device, looking up the message change record of the message port on the multimedia display device before the information interaction; when the time value between the message change record and the information interaction is less than a preset threshold, binding the message port to the first communication interface to complete the association between the first communication interface and the message port of the multimedia display device.
[0012] In an exemplary embodiment, when there is message content in the message port, after sending control information to a target lamp through the first communication interface, the method further includes: listening for the response result of the target lamp to the control information; determining the display change of the target lamp based on the response result, and when there are differences in the display changes, determining that the control information is successfully sent.
[0013] According to another embodiment of the embodiments of the present invention, there is also provided a control device for a lamp, including: a determination module, configured to determine the identification code of the target lamp corresponding to the lamp information when obtaining the lamp information fed back by the target lamp; a connection module, configured to establish a communication connection with the target lamp according to the communication permission corresponding to the identification code, and determine the first communication interface of the multimedia display device corresponding to the communication connection; a port module, configured to associate the first communication interface with the message port of the multimedia display device, where the message port includes at least one of the following: a first message port for the multimedia display device to send messages, a second message port for the multimedia display device to receive messages; a sending module, configured to send control information corresponding to the message content to the target lamp through the first communication interface when there is message content to be sent in the message port, where the control information is used to control the display change of the target lamp.
[0014] In an exemplary embodiment, the above device further includes: a discovery module, configured to determine that there is a physical connection of a universal serial bus between the multimedia display device and the target lamp; when the physical connection is valid, sending a discovery message to the target lamp, where the discovery message is used to indicate that the target lamp is physically connected to the multimedia display device; receiving the lamp information fed back by the target lamp according to the discovery message.
[0015] In an exemplary embodiment, the above-mentioned device further includes: an authorization module, configured to obtain preset authorization parameters in the multimedia display device, where the preset authorization parameters are a set of target identification codes that are allowed to communicate with the multimedia display device; when there is a matching item of the identification code in the preset authorization parameters, determine that the multimedia display device corresponding to the identification code has the communication permission to communicate with the multimedia display device, and send a first instruction message for establishing a communication connection to the target lamp; when there is no matching item of the identification code in the preset authorization parameters, suspend the establishment of the communication connection between the multimedia display device and the target lamp, and display a second instruction message for requesting communication permission on the display interface of the multimedia display device.
[0016] In an exemplary embodiment, the above-mentioned authorization module further includes: a confirmation unit, configured to receive the confirmation information of the target object on the multimedia display device; when the confirmation information indicates authorizing the target lamp to establish a communication connection, send a first instruction message for establishing a communication connection to the target lamp.
[0017] In an exemplary embodiment, the above-mentioned connection module is further configured to, when it is determined that a communication connection is successfully established between the multimedia display device and the target lamp, obtain the connection interface for physically connecting the multimedia display device and the target lamp using a universal serial bus; use the connection interface as the first communication interface corresponding to the communication connection of the multimedia display device, where the first communication interface is used to transmit the control information of the multimedia display device to the target lamp in real time.
[0018] In an exemplary embodiment, the above-mentioned port module is further configured to, when it is determined that there is information interaction on the first communication interface of the multimedia display device, search for the message change record of the message port on the multimedia display device before the information interaction; when the time value between the message change record and the information interaction is less than a preset threshold, bind the message port to the first communication interface to complete the association between the first communication interface and the message port of the multimedia display device.
[0019] In an exemplary embodiment, the above-mentioned device further includes: a monitoring module, configured to monitor the response result of the target lamp to the control information; determine the display change of the target lamp based on the response result, and determine that the control information is successfully sent when there are differences in the display changes.
[0020] According to another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium, in which a computer program is stored, where the computer program is set to execute the above-mentioned lamp control method when running.
[0021] According to another aspect of the embodiments of the present invention, an electronic device is further provided, including a memory, a processor, and a computer program stored on the memory and executable on the processor. Wherein, the processor executes the above-mentioned control method of the lamp through the computer program.
[0022] In the embodiments of the present invention, when the lamp information fed back by the target lamp is obtained, the identification code of the target lamp corresponding to the lamp information is determined; a communication connection is established with the target lamp according to the communication permission corresponding to the identification code, and the first communication interface of the multimedia display device corresponding to the communication connection is determined; the first communication interface is associated with the message port of the multimedia display device, where the message port includes at least one of the following: the first message port for the multimedia display device to send messages, the second message port for the multimedia display device to receive messages; when there is message content to be sent in the message port, control information corresponding to the message content is sent to the target lamp through the first communication interface, where the control information is used to control the display change of the target lamp, that is, the multimedia display device passes the communication authentication with the target lamp, and binds the message port of the multimedia display device to the first communication interface existing between the multimedia display device and the target lamp, so that when there is message content to be sent in the message port of the multimedia display device, the target lamp will change the display according to the message content. By adopting the above technical solutions, the problems in the related art that the interaction between the lamp and the multimedia display device overly depends on the performance of the routing device and the communication quality changes greatly when the lamp and the multimedia display device interact frequently are solved. Through the embodiments of the present invention, efficient and stable communication can be achieved when the lamp and the multimedia display device interact frequently, and the communication delay is low, and it is not easy to have channel congestion when interacting frequently. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] The drawings described herein are used to provide a further understanding of the present invention, and constitute a part of this application. The schematic embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation to the present invention. In the drawings:
[0024] Figure 1 is the hardware structure block diagram of the multimedia display device of a control method of a lamp according to an embodiment of the present invention;
[0025] Figure 2 is the flowchart of the control method of the lamp according to the embodiment of the present invention;
[0026] Figure 3 is the interaction schematic diagram of a communication method between an intelligent lamp and a TV provided by an optional embodiment of the present invention;
[0027] Figure 4 is the structure schematic diagram of a lighting control system provided by an optional embodiment of the present invention;
[0028] Figure 5 It is a schematic flowchart of the light interaction between a lamp and a TV according to an alternative embodiment of the present invention;
[0029] Figure 6 It is a structural block diagram of a control device for a lamp according to an embodiment of the present invention. Detailed implementation manners
[0030] In order to enable those skilled in the art to better understand the solution of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without making creative efforts shall fall within the protection scope of the present invention.
[0031] It should be noted that the terms "first", "second", etc. in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and do not necessarily need to be used to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products, or devices.
[0032] The method embodiments provided by the embodiments of the present application can be executed in a multimedia display device or a similar computing device. Taking running on a multimedia display device as an example, Figure 1 It is a hardware structural block diagram of a multimedia display device for a control method of a lamp according to an embodiment of the present invention. As Figure 1 shown, the multimedia display device may include one or more ( Figure 1 only one is shown in the figure) processors 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data. In an exemplary embodiment, the above-mentioned multimedia display device may further include a transmission device 106 for communication functions and an input / output device 108. Those of ordinary skill in the art can understand that Figure 1 the structure shown in the figure is only schematic and does not limit the structure of the above-mentioned multimedia display device. For example, the multimedia display device may further include more or fewer components than those shown in Figure 1 the figure, or have the same asFigure 1 equivalent functions shown or more Figure 1 different configurations with more functions than those shown.
[0033] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the control method of the lighting fixture in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, the above method is implemented. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memories. In some instances, the memory 104 may further include a memory remotely provided with respect to the processor 102, and these remote memories can be connected to the multimedia display device through a network. Examples of the above network include but are not limited to the Internet, intranet, local area network, mobile communication network, and combinations thereof.
[0034] The transmission device 106 is used to receive or send data via a network. Specific examples of the above network may include a wireless network provided by a communication provider of the multimedia display device. In one instance, the transmission device 106 includes a network adapter (abbreviated as NIC), which can be connected to other network devices through a base station and thus can communicate with the Internet. In one instance, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0035] In this embodiment, a control method for a lighting fixture is provided, which is applied to the above multimedia display device. Figure 2 It is a flowchart of the control method for the lighting fixture according to the embodiment of the present invention, and the process includes the following steps:
[0036] Step S202, when the lighting fixture information fed back by the target lighting fixture is obtained, determine the identification code of the target lighting fixture corresponding to the lighting fixture information;
[0037] Optionally, the above identification code may be the manufacturer identification corresponding to the target lighting fixture, and may also include the product identification of the target lighting fixture. Further, it may also be the coding information used to uniquely identify the target lighting fixture. Through the above identification, the device information of the target lighting fixture can be confirmed to determine whether the target lighting fixture supports message linkage prompts with the multimedia display device. Regarding this, the present invention does not make excessive limitations.
[0038] Step S204, establish a communication connection with the target lighting fixture according to the communication permission corresponding to the identification code, and determine the first communication interface of the multimedia display device corresponding to the communication connection;
[0039] Step S206: Associate the first communication interface with the message port of the multimedia display device, where the message port includes at least one of the following: a first message port for the multimedia display device to send messages, and a second message port for the multimedia display device to receive messages.
[0040] Step S208: When there is message content to be sent in the message port, send control information corresponding to the message content to the target lamp through the first communication interface, where the control information is used to control the display change of the target lamp.
[0041] It can be understood that the above message content to be sent is a push message generated by the communication and interaction between other device terminals and the multimedia display device. Displaying the push message on the multimedia display device improves the interaction effect between devices and enhances the usage experience of the target object. Further, in combination with the message content to be sent, control information corresponding to the message content is sent to the target lamp through the first communication interface, and the target lamp is linked to change its display according to the push message, so that when the target object is not in the front display area of the multimedia display device, the type of push message existing on the multimedia display device can be known from the side, and the priority level of the push message can be judged according to the light display of the target lamp, thereby improving the timely processing efficiency of the push message.
[0042] Through the above steps, in the case of obtaining the lamp information fed back by the target lamp, determine the identification code of the target lamp corresponding to the lamp information; establish a communication connection with the target lamp according to the communication permission corresponding to the identification code, and determine the first communication interface of the multimedia display device corresponding to the communication connection; associate the first communication interface with the message port of the multimedia display device, where the message port includes at least one of the following: the first message port for the multimedia display device to send messages, the second message port for the multimedia display device to receive messages; in the case where there is a message content to be sent in the message port, send control information corresponding to the message content to the target lamp through the first communication interface, where the control information is used to control the display change of the target lamp, that is, the multimedia display device performs communication authentication with the target lamp, and binds the message port of the multimedia display device to the first communication interface existing between the multimedia display device and the target lamp, so that when there is a message content to be sent in the message port of the multimedia display device, the target lamp will change the display according to the message content. By adopting the above technical solution, the problems in the related art that the interaction between the lamp and the multimedia display device overly relies on the performance of the routing device and the communication quality changes greatly when the lamp and the multimedia display device interact frequently are solved. Through the embodiments of the present invention, efficient and stable communication can be achieved when the lamp and the multimedia display device interact frequently, and the communication delay is low, and it is not easy to have channel congestion when interacting frequently.
[0043] In an exemplary embodiment, before determining the identification code of the target lamp corresponding to the lamp information in the case of obtaining the lamp information fed back by the target lamp, the above method further includes: determining that there is a physical connection of a universal serial bus between the multimedia display device and the target lamp; in the case where the physical connection is valid, send a discovery message to the target lamp, where the discovery message is used to indicate that the target lamp is physically connected to the multimedia display device; receive the lamp information fed back by the target lamp according to the discovery message.
[0044] Simply put, the communication in the related art overly relies on the wireless interaction between the lamp and the TV (equivalent to the multimedia display device in the embodiments of the present invention) through the router. When there are too many push messages on the TV side and abnormal situations such as channel delay occur in the router itself, the normal interaction efficiency between the lamp and the TV will be affected. In the present invention, the target lamp and the multimedia display device are directly connected through the universal serial bus, and after the connection, the target lamp is verified according to the feedback information of the target lamp to determine whether it is a lamp that can perform push message reminder display.
[0045] In an exemplary embodiment, before establishing a communication connection with a target lamp according to the communication permission corresponding to the identification code, the method further includes: obtaining preset authorization parameters in a multimedia display device, where the preset authorization parameters are a set of target identification codes that are allowed to communicate with the multimedia display device; in the case where there is a matching item of the identification code in the preset authorization parameters, determining that the multimedia display device corresponding to the identification code has the communication permission to communicate with the multimedia display device, and sending a first indication message for establishing a communication connection to the target lamp; in the case where there is no matching item of the identification code in the preset authorization parameters, suspending the establishment of the communication connection between the multimedia display device and the target lamp, and displaying a second indication message for requesting communication permission on the display interface of the multimedia display device.
[0046] In an exemplary embodiment, in the case where there is no matching item of the identification code in the preset authorization parameters, after suspending the establishment of the communication connection between the multimedia display device and the target lamp and displaying a second indication message for requesting communication permission on the display interface of the multimedia display device, the method further includes: receiving a confirmation message of a target object on the multimedia display device; in the case where the confirmation message indicates authorizing the target lamp to establish a communication connection, sending a first indication message for establishing a communication connection to the target lamp.
[0047] For example, an Android TV (equivalent to the multimedia display device in the present invention) searches for all USB lamps or monitors USB insertion events to obtain devices; according to the vendor id and product id of the USB device, it determines whether it is a smart lamp; determines whether the lamp has communication permission, and if not, requests device communication permission; finds the communication interface through the USB device; establishes a connection between the Android TV device and the USB lamp; that is, after establishing a physical connection between the TV and the lamp, it is also necessary to verify the communication permission after the connection to ensure the communication security between the lamp for communication connection and the TV.
[0048] In an exemplary embodiment, determining a first communication interface corresponding to the communication connection for the multimedia display device includes: in the case where it is determined that a communication connection is successfully established between the multimedia display device and the target lamp, obtaining a connection interface for physically connecting the multimedia display device and the target lamp using a universal serial bus; using the connection interface as the first communication interface corresponding to the communication connection for the multimedia display device, where the first communication interface is used to transmit control information of the multimedia display device to the target lamp in real time.
[0049] For example, when an external user sends a video call request to the smart TV, the main control module of the smart TV receives this message push through the smart TV server, and transmits this message to the main control module of the smart lighting fixture through USB communication. The smart lighting fixture adopts a running horse lamp effect (brightness / color temperature / switch, etc. can be configured) according to the preset mode. When the video call is answered or hung up, the smart TV transmits the message to the smart lighting fixture again to turn off the lamp effect. That is, in order to ensure the secure transmission of information, it is necessary to determine a corresponding dedicated communication interface for the control information to ensure the consistency of the communication connection.
[0050] In an exemplary embodiment, associating the first communication interface with the message port of the multimedia display device includes: when it is determined that there is information interaction on the first communication interface of the multimedia display device, searching for the message change record of the message port on the multimedia display device before the information interaction; when the time value between the message change record and the information interaction is less than a preset threshold, binding the message port to the first communication interface to complete the association between the first communication interface and the message port of the multimedia display device.
[0051] Briefly, in order to control the communication delay between the multimedia display device and the target lighting fixture within a certain range, after determining the first communication interface for the user to send the control message, it is also necessary to determine the time difference between the time point when the control information is sent using the first communication interface and the corresponding time of the message port for the multimedia display device to obtain the message content. Subsequently, when the multimedia device uses the first communication interface to send the control information corresponding to the message content to the target lighting fixture, the corresponding delay time meets the preset communication requirements. After confirmation, the association between the first communication interface and the message port of the multimedia display device is established, so that as long as there is corresponding message content in the message port, it can be directly sent to the target lighting fixture for display reminder.
[0052] In an exemplary embodiment, after sending the control information to the target lighting fixture through the first communication interface when there is message content in the message port, the method further includes: listening to the response result of the target lighting fixture to the control information; determining the display change of the target lighting fixture based on the response result, and determining that the control information is successfully sent when there are differences in the display changes.
[0053] In other words, in order to ensure the display effect of the control information corresponding to the message content on the target lighting fixture, and send a prompt message to the target object using the multimedia display device when the control information fails to be displayed successfully, the multimedia display device can also listen to the display result of the target lighting fixture to the control information, determine that the lighting display of the target lighting fixture has changed according to the control information, and ensure the display effect of the control information on the target lighting fixture.
[0054] To better understand the process of the above-mentioned method for controlling a lamp, the following further describes the implementation method flow of the control of the above-mentioned lamp in combination with optional embodiments, but it is not used to limit the technical solutions of the embodiments of the present invention.
[0055] As an optional implementation manner, Figure 3 FIG. 5 is an interaction schematic diagram of a communication method between an intelligent lamp and a TV provided by an optional embodiment of the present invention. The intelligent lamp is a USB lamp. Through this USB method, efficient and stable communication between the TV and the intelligent lamp is realized, and the TV frequently sends data to the intelligent lamp end. The method includes the following steps:
[0056] Step 1: The TV end obtains a USB device; for example, the Android TV end searches for all USB lamps or listens for USB insertion events to obtain the device;
[0057] Step 2: Obtain the device information returned by the USB lamp or the USB device;
[0058] Step 3: Determine whether it is a preset intelligent lamp according to the manufacturer id and product id of the USB device;
[0059] Step 4: Determine that the TV end is physically connected to the preset intelligent lamp;
[0060] Step 5: Request communication permission; determine whether the lamp has communication permission. If not, it is necessary to request device communication permission;
[0061] Step 6: The permission is passed; find the communication interface through the USB device;
[0062] Step 7: Establish a connection; that is, establish a connection between the Android TV device and the USB lamp;
[0063] Step 8: The connection is successful;
[0064] Step 9: Obtain the message sending port and the message receiving port; specifically, find the message sending port through the communication interface; find the message receiving port through the communication interface;
[0065] Step 10: After the connection is completed, the TV end and the USB device communicate; return the port information;
[0066] Step 11: Send a message using the sending port; that is, send a message through the message sending port;
[0067] Step 12: The lamp changes the color or color temperature according to the obtained message;
[0068] Step 13: The lamp responds and displays OK (that is, response Ok). Specifically, listen for the message returned by the lamp through the message receiving port to determine whether the message is sent successfully;
[0069] It should be noted that the above device connected via USB has more stable connectivity. Sending data frequently via USB is more efficient. It avoids the high latency problem caused by channel congestion of Wi-Fi and Bluetooth products. The smart lamp obtains the scene mode of the smart TV via USB, and the interaction between the TV and the lamp is good and the latency is low.
[0070] As another alternative implementation, the smart lamp communicates with the smart TV via the USB communication protocol, and the TV authorizes relevant permissions, so that the lamp can identify and obtain data from the TV side, identify smart scenes such as standby and power-on, children's mode, video call reminder, movie viewing, voice interaction, etc., and set different lighting effects according to different scenes. Various lighting effects can be personalized configured. To solve the technical problems in the prior art that it can only synchronize the screen of the playback device and the color of the lamp, cannot identify the application or status currently being used by the smart TV, has poor interactivity with the content, and cannot meet the actual lighting effect requirements of users.
[0071] Optionally, Figure 4 It is a schematic structural diagram of a lighting control system according to an optional embodiment of the present invention. It consists of three parts: a TV server, a TV main control module, and a lamp main control module; Figure 5 It is a schematic flowchart of the lighting interaction between the lamp and the TV according to an optional embodiment of the present invention; it includes the following steps:
[0072] Step S502, the smart lamp is connected to the smart TV through the USB interface;
[0073] Step S504, the TV main control module in the smart TV identifies the smart lamp and grants relevant communication permissions;
[0074] Step S506, when the smart TV opens / closes an application or receives a message push from the server, the smart TV transmits the relevant message to the smart lamp through the USB communication protocol;
[0075] Optionally, taking the video call and standby state of the smart TV as an example, the lighting control method of the smart lamp specifically includes the following steps:
[0076] 1. During a video call: When an external user sends a video call request to the smart TV, the smart TV main control module receives this message push through the smart TV server and transmits this message to the smart lamp main control module through USB communication. The smart lamp adopts a running light effect (brightness / color temperature / switch, etc. can be configured) according to the preset mode.
[0077] 2. When the TV is in standby: When the smart TV is put into standby via the remote control, the main control module of the smart TV transmits this message to the main control module of the smart lighting fixture through USB communication. The smart lighting fixture adopts a breathing light effect (brightness / color temperature / switch / color, etc. can be configured) according to the preset mode.
[0078] Step S508: The main control module in the smart lighting fixture adopts the corresponding lighting effect based on the message received from the smart TV according to the locally preset specific event trigger information / TV status trigger information.
[0079] Optionally, after the lighting fixture displays the corresponding lighting effect, in the scenario of a video call: When the video call is answered or hung up, the smart TV transmits a message to the smart lighting fixture again to turn off the light effect. In the scenario of the TV being in standby, when the smart TV is turned on via the remote control, the smart TV transmits a message to the smart lighting fixture again to turn off the light effect.
[0080] Through the above embodiments, by using the USB connection method, the communication efficiency and stability between the lighting fixture and the TV are improved. The TV frequently sends data to the smart lighting fixture end. The smart lighting fixture communicates with the smart TV through the USB communication protocol, and the TV authorizes relevant permissions, so that the lighting fixture can identify the data in the message port from the TV end. For example, intelligent scenarios such as standby and startup, children's mode, video call reminder, movie viewing, and voice interaction can be used to set different lighting effects according to different scenarios. Various lighting effects can be personalized configured, enabling users to quickly confirm the current usage scenario of the TV according to the lighting when not watching the TV, so that the smart lighting fixture can identify the application or status currently being used by the smart TV, meeting the actual lighting effect requirements of users.
[0081] Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by means of software plus a necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disc), including several instructions for causing a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods of the various embodiments of the present invention.
[0082] Figure 6 is a structural block diagram of a control system of a lighting fixture according to an embodiment of the present invention; as Figure 6 shown, it includes:
[0083] A determination module 62, configured to determine an identification code of the target lamp corresponding to the lamp information when the lamp information fed back by the target lamp is obtained;
[0084] A connection module 64, configured to establish a communication connection with the target lamp according to the communication permission corresponding to the identification code, and determine a first communication interface of a multimedia display device corresponding to the communication connection;
[0085] A port module 66, configured to associate the first communication interface with a message port of the multimedia display device, where the message port includes at least one of the following: a first message port for the multimedia display device to send messages, and a second message port for the multimedia display device to receive messages;
[0086] A sending module 68, configured to send control information corresponding to the message content to the target lamp through the first communication interface when there is message content to be sent in the message port, where the control information is used to control the display change of the target lamp.
[0087] Through the above modules, when the lamp information fed back by the target lamp is obtained, the identification code of the target lamp corresponding to the lamp information is determined; a communication connection is established with the target lamp according to the communication permission corresponding to the identification code, and a first communication interface of the multimedia display device corresponding to the communication connection is determined; the first communication interface is associated with the message port of the multimedia display device, where the message port includes at least one of the following: a first message port for the multimedia display device to send messages, and a second message port for the multimedia display device to receive messages; when there is message content to be sent in the message port, control information corresponding to the message content is sent to the target lamp through the first communication interface, where the control information is used to control the display change of the target lamp, that is, the multimedia display device performs communication authentication with the target lamp, and binds the message port of the multimedia display device to the first communication interface existing between the multimedia display device and the target lamp, so that when there is message content to be sent in the message port of the multimedia display device, the target lamp will change its display according to the message content. By adopting the above technical solution, the problems in the related art that the interaction between the lamp and the multimedia display device overly relies on the performance of the routing device and the communication quality changes greatly when the lamp and the multimedia display device interact frequently are solved. Through the embodiments of the present invention, efficient and stable communication can be achieved when the lamp and the multimedia display device interact frequently, and the communication delay is low, and channel congestion is not likely to occur when interacting frequently.
[0088] In an exemplary embodiment, the above-mentioned device further includes: a discovery module, configured to determine that there is a physical connection of a Universal Serial Bus between the multimedia display device and the target lamp; when the physical connection is valid, send a discovery message to the target lamp, where the discovery message is used to indicate that the target lamp has a physical connection with the multimedia display device; receive the lamp information fed back by the target lamp according to the discovery message.
[0089] In an exemplary embodiment, the above-mentioned device further includes: an authorization module, configured to obtain preset authorization parameters in the multimedia display device, where the preset authorization parameters are a set of target identification codes allowed to communicate with the multimedia display device; when there is a matching item of the identification code in the preset authorization parameters, determine that the multimedia display device corresponding to the identification code has the communication permission to communicate with the multimedia display device, and send a first indication message for establishing a communication connection to the target lamp; when there is no matching item of the identification code in the preset authorization parameters, suspend the establishment of the communication connection between the multimedia display device and the target lamp, and display a second indication message for requesting communication permission on the display interface of the multimedia display device.
[0090] In an exemplary embodiment, the above-mentioned authorization module further includes: a confirmation unit, configured to receive the confirmation information of the target object on the multimedia display device; when the confirmation information indicates authorizing the target lamp to establish a communication connection, send a first indication message for establishing a communication connection to the target lamp.
[0091] In an exemplary embodiment, the above-mentioned connection module is further configured to, when it is determined that a communication connection is successfully established between the multimedia display device and the target lamp, obtain the connection interface for physically connecting the multimedia display device and the target lamp using the Universal Serial Bus; use the connection interface as the first communication interface corresponding to the communication connection of the multimedia display device, where the first communication interface is used to transmit the control information of the multimedia display device to the target lamp in real time.
[0092] In an exemplary embodiment, the above-mentioned port module is further configured to, when it is determined that there is information interaction on the first communication interface of the multimedia display device, search for the message change record of the message port on the multimedia display device before the information interaction; when the time value between the message change record and the information interaction is less than a preset threshold, bind the message port to the first communication interface to complete the association between the first communication interface and the message port of the multimedia display device.
[0093] In an exemplary embodiment, the above-mentioned device further includes: a monitoring module, configured to monitor the response result of the target lamp to the control information; determine the display change of the target lamp based on the response result, and determine that the control information is successfully sent when there are differences in the display changes.
[0094] An embodiment of the present invention further provides a storage medium, which includes a stored program. When the program runs, it executes the method of any one of the above.
[0095] Optionally, in this embodiment, the storage medium may be set to store program code for performing the following steps:
[0096] S1. When the lamp information fed back by the target lamp is obtained, determine the identification code of the target lamp corresponding to the lamp information;
[0097] S2. Establish a communication connection with the target lamp according to the communication permission corresponding to the identification code, and determine the first communication interface of the multimedia display device corresponding to the communication connection;
[0098] S3. Associate the first communication interface with the message port of the multimedia display device, where the message port includes at least one of the following: the first message port for the multimedia display device to send messages, and the second message port for the multimedia display device to receive messages;
[0099] S4. When there is message content to be sent in the message port, send control information corresponding to the message content to the target lamp through the first communication interface, where the control information is used to control the display change of the target lamp.
[0100] An embodiment of the present invention further provides an electronic device, including a memory and a processor. A computer program is stored in the memory, and the processor is set to run the computer program to execute the steps in any one of the above method embodiments.
[0101] Optionally, the above electronic device may further include a transmission device and an input / output device, where the transmission device is connected to the above processor, and the input / output device is connected to the above processor.
[0102] Optionally, in this embodiment, the above processor may be set to execute the following steps through a computer program:
[0103] S1. When the lamp information fed back by the target lamp is obtained, determine the identification code of the target lamp corresponding to the lamp information;
[0104] S2. Establish a communication connection with the target lamp according to the communication permission corresponding to the identification code, and determine the first communication interface of the multimedia display device corresponding to the communication connection;
[0105] S3. Associate the first communication interface with the message port of the multimedia display device, where the message port includes at least one of the following: a first message port for the multimedia display device to send messages, and a second message port for the multimedia display device to receive messages.
[0106] S4. When there is message content to be sent in the message port, send control information corresponding to the message content to the target lamp through the first communication interface, where the control information is used to control the display change of the target lamp.
[0107] Optionally, in this embodiment, the above storage medium may include, but is not limited to: USB flash drive, read-only memory (ROM for short), random access memory (RAM for short), mobile hard disk, magnetic disk or optical disc, etc., various media that can store program codes.
[0108] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and will not be repeated here.
[0109] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device. They can be concentrated on a single computing device or distributed on a network composed of multiple computing devices. Optionally, they can be implemented by program codes executable by the computing device, so that they can be stored in the storage device and executed by the computing device. And in some cases, the steps shown or described can be executed in a different order from here, or they can be separately made into individual integrated circuit modules, or multiple modules or steps of them can be made into a single integrated circuit module to implement. Thus, the present invention is not limited to any specific combination of hardware and software.
[0110] The above are only the preferred embodiments of the present invention and are not used to limit the present invention. For those skilled in the art, the present invention can have various changes and modifications. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A control method for a lighting fixture, characterized in that, it includes: When obtaining the lighting fixture information fed back by the target lighting fixture, determining the identification code of the target lighting fixture corresponding to the lighting fixture information; Establishing a communication connection with the target lighting fixture according to the communication permission corresponding to the identification code, and determining the first communication interface of the multimedia display device corresponding to the communication connection; Associating the first communication interface with the message port of the multimedia display device, where the message port includes at least one of the following: the first message port for the multimedia display device to send messages, the second message port for the multimedia display device to receive messages; When there is message content to be sent in the message port, sending control information corresponding to the message content to the target lighting fixture through the first communication interface, where the control information is used to control the display change of the target lighting fixture; Among them, determining the first communication interface of the multimedia display device corresponding to the communication connection includes: when it is determined that a communication connection is successfully established between the multimedia display device and the target lighting fixture, obtaining the connection interface for physically connecting the multimedia display device and the target lighting fixture using a universal serial bus; Using the connection interface as the first communication interface of the multimedia display device corresponding to the communication connection, where the first communication interface is used to transmit the control information of the multimedia display device to the target lighting fixture in real time.
2. The control method for a lighting fixture according to claim 1, characterized in that, Before determining the identification code of the target lighting fixture corresponding to the lighting fixture information when obtaining the lighting fixture information fed back by the target lighting fixture, the method further includes: Determining that there is a physical connection of a universal serial bus between the multimedia display device and the target lighting fixture; When the physical connection is valid, sending a discovery message to the target lighting fixture, where the discovery message is used to indicate that the target lighting fixture has been physically connected to the multimedia display device; Receiving the lighting fixture information fed back by the target lighting fixture according to the discovery message.
3. The control method for a lighting fixture according to claim 1, characterized in that, Before establishing a communication connection with the target lighting fixture according to the communication permission corresponding to the identification code, the method further includes: Obtaining the preset authorization parameters in the multimedia display device, where the preset authorization parameters are a set of target identification codes allowed to communicate with the multimedia display device; When there is a matching item of the identification code in the preset authorization parameters, determining that the multimedia display device corresponding to the identification code has the communication permission to communicate with the multimedia display device, and sending the first indication information for establishing a communication connection to the target lighting fixture; when there is no matching item of the identification code in the preset authorization parameters, pausing the establishment of the communication connection between the multimedia display device and the target lighting fixture, and displaying the second indication information requesting communication permission on the display interface of the multimedia display device.
4. The control method for a lighting fixture according to claim 3, characterized in that, In the case that there is no matching item of the identification code in the preset authorization parameters, the establishment of the communication connection between the multimedia display device and the target lamp is suspended, and after the second indication information requesting communication permission is displayed on the display interface of the multimedia display device, the method further includes: receiving the confirmation information of the target object on the multimedia display device; In the case that the confirmation information indicates authorizing the establishment of a communication connection with the target lamp, sending a first indication information for establishing a communication connection to the target lamp.
5. The control method of a lamp according to claim 1, wherein, Associating the first communication interface with the message port of the multimedia display device includes: When it is determined that there is information interaction on the first communication interface of the multimedia display device, searching for the message change record of the message port on the multimedia display device before the information interaction; When the time value between the message change record and the information interaction is less than a preset threshold, binding the message port to the first communication interface to complete the association between the first communication interface and the message port of the multimedia display device.
6. The control method of a lamp according to claim 1, wherein, After the control information is sent to the target lamp through the first communication interface when there is message content in the message port, the method further includes: Listening for the response result of the target lamp to the control information; Determining the display change of the target lamp based on the response result, and determining that the control information is successfully sent when there are differences in the display changes.
7. A control device for a lamp, wherein, It includes: A determination module, configured to determine the identification code of the target lamp corresponding to the lamp information when obtaining the lamp information fed back by the target lamp; A connection module, configured to establish a communication connection with the target lamp according to the communication permission corresponding to the identification code, and determine the first communication interface of the multimedia display device corresponding to the communication connection; A port module, configured to associate the first communication interface with the message port of the multimedia display device, where the message port includes at least one of the following: a first message port for the multimedia display device to send messages, a second message port for the multimedia display device to receive messages; A sending module, configured to send control information corresponding to the message content to the target lamp through the first communication interface when there is message content to be sent in the message port, where the control information is used to control the display change of the target lamp; The connection module is further configured to obtain the connection interface for physically connecting the multimedia display device and the target lamp using a universal serial bus when it is determined that the communication connection between the multimedia display device and the target lamp is successfully established; using the connection interface as the first communication interface of the multimedia display device corresponding to the communication connection, where the first communication interface is used to transmit the control information of the multimedia display device to the target lamp in real time.
8. A computer-readable storage medium, characterized in that, the computer-readable storage medium includes a stored program, wherein the program, when running, executes the method described in any one of claims 1 to 6 above.
9. An electronic device, comprising a memory and a processor, characterized in that, a computer program is stored in the memory, and the processor is configured to execute the method described in any one of claims 1 to 6 through the computer program.
Citation Information
Patent Citations
Intelligent bulb control system and control method
CN105979672A
Method for establishing an authorized communication between a physical object and a communication device enabling a write access
US20150215320A1