Lamp control method and device based on power line carrier communication
The power carrier communication controller converts Bluetooth or Wi-Fi signals into wired signals, realizing separate control of the lamp, solving the problem of personalized control in the existing technology, improving control efficiency and saving equipment costs.
Patent Information
- Application Number
- CN202510891249.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-27
- Publication Date
- 2025-08-26
AI Technical Summary
The prior art cannot personalize the control of individual lamps in the same group of lines, resulting in the inflexible control of lighting equipment.
The power carrier communication controller receives Bluetooth, Wi-Fi or infrared signals and converts them into wired signals to achieve separate control of the target lamp, and efficient personalized control is carried out in combination with terminal equipment or remote control.
Accurate control of a single lamp is achieved, avoiding the problem of wireless signals being inaccessible and saving the installation cost of the control equipment.
Smart Images

Figure CN120547744A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of intelligent control technology, and in particular relates to a lamp control method and device based on power line carrier communication. Background Art
[0002] Currently, lighting equipment in a group consists of several lamps connected in parallel. To perform control operations such as turning on and off, adjusting color temperature, and adjusting brightness, the PLC can simultaneously control all lamps in the group after receiving wireless control signals. However, due to the diverse lighting scenarios in reality, this approach cannot control individual lamps in the same group. Summary of the Invention
[0003] The embodiments of the present application provide a lamp control method and device based on power line carrier communication, which can perform more efficient and personalized control of lighting equipment as much as possible.
[0004] In a first aspect, an embodiment of the present application provides a lamp control method based on power line carrier communication, which is applied to a power line carrier communication controller, and the power line carrier communication controller is used to control the lighting device. The method includes:
[0005] receiving a first control signal, the first control signal including a Bluetooth signal, a Wireless Fidelity (Wi-Fi) signal, or an infrared signal related to a control command, the first control signal including a target identifier, the target identifier including any one or more of a plurality of identifiers, the plurality of identifiers corresponding one-to-one to a plurality of lamps included in the lighting device;
[0006] Performing signal conversion on the first control signal to obtain a second control signal, where the second control signal is a wired electrical signal related to the control command;
[0007] According to the second control signal, the target lamp is controlled, where the target lamp is a lamp corresponding to the target identifier among the multiple lamps.
[0008] In a second aspect, an embodiment of the present application provides a lighting control device, including:
[0009] a receiving module, configured to receive a first control signal, the first control signal including a Bluetooth signal, a Wireless Fidelity (Wi-Fi) signal, or an infrared signal associated with a control command, the first control signal including a target identifier, the target identifier including any one or more of a plurality of identifiers, the plurality of identifiers corresponding one-to-one to a plurality of lamps included in the lighting device;
[0010] a conversion module, configured to convert the first control signal into a second control signal, where the second control signal is a wired electrical signal related to the control command;
[0011] The control module is configured to control a target lamp according to a second control signal, where the target lamp is a lamp corresponding to the target identifier among the plurality of lamps.
[0012] In a third aspect, an embodiment of the present application provides a control system, which includes a power carrier communication controller, a terminal device and a lighting device. The power carrier communication controller is used to implement the lighting control method based on power carrier communication described in any one of the first aspects above.
[0013] In a fourth aspect, an embodiment of the present application provides a control device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the lamp control method based on power carrier communication described in any one of the above-mentioned first aspects is implemented.
[0014] The control device may be the above-mentioned power carrier communication controller.
[0015] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the lamp control method based on power carrier communication described in any one of the above-mentioned first aspects is implemented.
[0016] In a sixth aspect, an embodiment of the present application provides a computer program product. When the computer program product is run on a control device, the control device executes the lamp control method based on power carrier communication described in any one of the first aspects above.
[0017] It can be understood that the beneficial effects of the second to sixth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here.
[0018] Compared with the prior art, the embodiments of the present application have the following beneficial effects:
[0019] The power carrier communication controller can receive Bluetooth signals or Wi-Fi signals related to control commands from terminal devices, or receive infrared signals related to control commands from remote controls. The control commands include target identifiers, and convert the aforementioned Bluetooth signals, Wi-Fi signals or infrared signals to obtain wired electrical signals related to the control commands. In this way, the target lamps corresponding to the target identifiers can be individually controlled through the wired electrical signals related to the control commands. Moreover, more efficient and personalized control of lighting equipment in landscape lighting can be achieved by combining the terminal device or remote control with the power carrier communication controller, avoiding the situation where wireless signals cannot reach the lighting equipment and saving the equipment installation cost for controlling different lighting equipment. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the embodiments or descriptions of the prior art. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0021] Figure 1 This is a flow chart of a lamp control method based on power line carrier communication provided by an embodiment of the present application;
[0022] Figure 2 This is a schematic diagram of an application scenario provided by an embodiment of the present application;
[0023] Figure 3 This is a schematic diagram of an application scenario provided by an embodiment of the present application;
[0024] Figure 4 This is a schematic diagram of an application scenario provided by an embodiment of the present application;
[0025] Figure 5 This is a flow chart of a lamp control method based on power line carrier communication provided by an embodiment of the present application;
[0026] Figure 6 This is a flow chart of a lamp control method based on power line carrier communication provided by an embodiment of the present application;
[0027] Figure 7 This is a flow chart of a lamp control method based on power line carrier communication provided by an embodiment of the present application;
[0028] Figure 8 This is a flow chart of a lamp control method based on power line carrier communication provided by an embodiment of the present application;
[0029] Figure 9 is a schematic diagram of a power line carrier communication controller provided in one embodiment of the present application;
[0030] Figure 10 It is a structural diagram of the lighting control device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0031] In the following description, specific details such as specific system structures and techniques are provided for purposes of illustration rather than limitation to facilitate a thorough understanding of the embodiments of the present application. However, it will be apparent to those skilled in the art that the present application may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to avoid obscuring the description of the present application with unnecessary detail.
[0032] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or collections thereof.
[0033] It will also be understood that the term "and / or" used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
[0034] As used in this specification and the appended claims, the term "if" can be interpreted as "when" or "upon" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "upon determination" or "in response to determining" or "upon detection of [described condition or event]" or "in response to detecting [described condition or event]," depending on the context.
[0035] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0036] References to "one embodiment" or "some embodiments" in this specification mean that a particular feature, structure, or characteristic described in conjunction with that embodiment is included in one or more embodiments of the present application. Thus, phrases such as "in one embodiment," "in some embodiments," "in other embodiments," and "in other embodiments" appearing in various places in this specification do not necessarily refer to the same embodiment, but rather mean "one or more but not all embodiments," unless otherwise specifically emphasized. The terms "including," "comprising," "having," and variations thereof all mean "including but not limited to," unless otherwise specifically emphasized.
[0037] To facilitate understanding, some of the examples given are provided for reference to the description of concepts related to the embodiments of the present application.
[0038] 1. Power line carrier (PLC) controller
[0039] Power line communication (PLC) is a technology that uses power lines as a transmission medium to transmit data or signals. It is commonly used in power system communications, automation, and remote control. A PLC controller is a device that uses PLC technology to communicate.
[0040] 2. Heartbeat packet
[0041] A heartbeat packet is a mechanism used in network communications to maintain connections and detect device or service availability. The core function of a heartbeat packet is to periodically send small data packets to confirm the online status and connection validity of both communicating parties.
[0042] The present application provides a lamp control method and device based on power carrier communication. The lamp control method based on power carrier communication can be implemented through a power carrier communication PLC controller and is applied to lighting scenes of factories, shopping malls, parking lots, and courtyard landscape lighting. The lighting scenes of the landscape lighting may include lighting scenes in low-voltage restricted situations such as lighting fixtures under water or in an underground state.
[0043] Among them, the power carrier communication controller and the lighting equipment can be connected through the power line, and the power carrier communication controller and the terminal equipment can be connected through Bluetooth (bluetooth technology, BT), wireless fidelity (wireless fidelity, Wi-Fi) and other methods. The terminal equipment can control the lighting equipment through the power carrier communication controller.
[0044] The lighting device may include multiple lamps, or the lighting device may include multiple groups of lamps, each group of lamps including multiple lamps. The embodiment of the present application does not limit the number of lamps included in the lighting device.
[0045] The terminal device can be a mobile phone, a tablet computer, a wearable device, an in-vehicle device, an augmented reality (AR) / virtual reality (VR) device, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), or the like. The embodiments of the present application do not limit the specific type of the terminal device.
[0046] For example, the terminal device is a mobile phone. The mobile phone may include a processor, a communication module, a display screen, a camera, a sensor, internal memory, a USB port, an external memory port, a charging management module, a power management module, and a battery. The communication module may include a wireless communication module, which may include a Wi-Fi module and a Bluetooth module. Those skilled in the art will appreciate that the aforementioned mobile phone structure does not limit the mobile phone and may include more or fewer components, or combinations of certain components, or different component arrangements.
[0047] In addition, although not shown, the mobile phone may also include a speaker, a microphone, etc., which will not be described in detail here.
[0048] Based on the above scenario description, the following describes in detail a lamp control method based on power line carrier communication provided by an embodiment of the present application in combination with a power line carrier communication controller.
[0049] See also Figure 1 , Figure 1 FIG1 shows a flow chart of a lamp control method based on power line carrier communication provided by an embodiment of the present application. Figure 1 As shown, the lamp control method based on power line carrier communication provided by this application may include:
[0050] S101: Receive a first control signal.
[0051] The first control signal is a control signal used to control the lighting device through the power carrier communication controller.
[0052] In some embodiments, the first control signal may be sent by the terminal device.
[0053] Among them, the terminal device can communicate with the power carrier communication controller based on forms such as application (APP), web page, official account or mini program in the application, so as to control the lighting equipment through the power carrier communication controller.
[0054] The following description takes the example of a terminal device including an intelligent control APP. The intelligent control APP of the terminal device can display an adding interface, wherein the adding interface is used to add lamps, add power carrier communication controllers, display the addition status of lamps, and display the addition status of power carrier communication controllers. The present application does not limit the specific implementation method of the adding interface. In some embodiments, the adding interface includes an identification of each lamp, which is used to trigger the display of a control interface for controlling the lamp. The control interface may include a control control, which is used to trigger the control of the lamp. The present application does not limit the specific implementation method of the control interface. The present application does not limit the specific implementation method of the control control.
[0055] The user can control the lamp based on the control interface. When receiving an operation on the control control in the control interface, the terminal device can send a first control signal to the power carrier communication controller, and the power carrier communication controller can receive the first control signal sent by the terminal device.
[0056] The first control signal includes a Bluetooth signal or a Wi-Fi signal related to the control command.
[0057] If the terminal device is connected to the power carrier communication controller via Bluetooth, the terminal device may transmit the first control signal via the Bluetooth module. In this case, the first control signal is a Bluetooth signal related to the control command.
[0058] If the terminal device is connected to the power carrier communication controller via Wi-Fi, the terminal device may transmit the first control signal via the Wi-Fi module. In this case, the first control signal is a Wi-Fi signal related to the control command.
[0059] In other embodiments, the first control signal may be sent by an infrared remote controller. The infrared remote controller may include a physical button for triggering control of the lamp. If the first control signal is sent by the infrared remote controller, the first control signal is an infrared signal associated with the control command.
[0060] The control command includes a brightness adjustment command, a color temperature adjustment command, an on command or a off command.
[0061] In the case where the first control signal comes from a terminal device, the control controls may include a brightness adjustment sub-control, a color temperature adjustment sub-control, and an on / off control.
[0062] When the terminal device receives an operation on the brightness adjustment sub-control, it can send a Bluetooth signal or Wi-Fi signal related to the brightness adjustment command to the power carrier communication controller. The brightness adjustment sub-control can be in the form of a brightness adjustment bar, and the operation on the brightness adjustment sub-control can be an operation of dragging the brightness adjustment bar. The specific implementation method of the brightness adjustment sub-control is not limited in this embodiment of the application.
[0063] When the terminal device receives an operation on the color temperature adjustment subcontrol, it can send a Bluetooth signal or Wi-Fi signal related to the color temperature adjustment command to the power carrier communication controller. The color temperature adjustment subcontrol can be in the form of a color temperature adjustment bar, and the operation on the color temperature adjustment subcontrol can be an operation of dragging the color temperature adjustment bar. The specific implementation method of the brightness adjustment subcontrol is not limited in this embodiment of the application.
[0064] When the terminal device receives an operation to turn on / off the control, it can send a Bluetooth signal or Wi-Fi signal related to the turn on / off command to the power carrier communication controller. The operation to turn on / off the control can be a single click, long press, or double click operation. The specific implementation method of the turn on / off control is not limited in this embodiment of the application.
[0065] In the case where the first control signal comes from an infrared remote controller, the physical buttons in the infrared remote controller may include a plurality of brightness adjustment buttons, a color temperature control button, and an on / off button.
[0066] When the infrared remote controller receives an operation on the brightness adjustment button, it can send an infrared signal related to the brightness adjustment command to the power carrier communication controller. When the infrared remote controller receives an operation on the color temperature adjustment button, it can send an infrared signal related to the color temperature adjustment command to the power carrier communication controller. When the infrared remote controller receives an operation on the on / off button, it can send an infrared signal related to the on / off command to the power carrier communication controller.
[0067] It should be noted that if the infrared remote controller is to control any one of the multiple lamps, it is necessary to point toward the lamp and operate the physical buttons on the infrared remote controller.
[0068] The first control signal includes a target identifier, which is a unique identifier of the lamp to be controlled.
[0069] The lighting device includes a plurality of lamps, each lamp has a corresponding identifier, the plurality of identifiers respectively correspond to the plurality of lamps included in the lighting device, and the target identifier includes any one or more of the plurality of identifiers.
[0070] For example, the lighting device includes 10 lamps, each of which has a corresponding identifier, that is, the number of identifiers is also 10, and the target identifier is the identifier of the lamp to be controlled among the 10 lamps.
[0071] In some embodiments, each of the multiple identifiers is an address code, the target identifier is any one of the multiple address codes, and the address code is a media access control (MAC) address.
[0072] Optionally, the lighting device includes multiple groups of lamps, the target identifier includes any one or more of multiple group identifiers (any group identifier may include the identifier of each lamp in the group), and the multiple group identifiers correspond one-to-one to the multiple groups of lamps included in the lighting device, and each group of lamps in the multiple groups includes one or more lamps.
[0073] For example, the lighting equipment includes two groups of lamps, namely Group A and Group B. Group A includes three lamps, and Group B includes five lamps. The two groups of lamps correspond one-to-one to the two group identifiers respectively.
[0074] Among them, the group identifier of group A can be the group name of group A, and the group identifier of group B can be the group name of group B. This application does not limit the specific implementation method of the group identifier of each group of lamps in multiple groups of lamps.
[0075] Each of the plurality of groups of lamps is pre-grouped by the terminal device. In conjunction with the above description, the terminal device includes an adding interface, which is further used to "add" multiple lamps and group each lamp.
[0076] In some embodiments, the terminal device can add each lamp in the add interface based on the MAC address of each lamp (see the description of S203 below for details), display the icon of each lamp in the add interface, and group the lamps based on user operations in the add interface (for example, dragging the icon of one lamp to the icon of another lamp to group the two lamps into a lamp group). Each lamp group can also be named. This application does not specifically limit the method for adding lamps to the terminal device, as well as the grouping and naming methods.
[0077] S102: Convert the first control signal into a second control signal, where the second control signal is a wired electrical signal related to the control command.
[0078] It should be understood that different devices support different types of signal inputs depending on the connection method. A power line carrier communication controller is connected to each lamp in a lighting fixture via a power line. While the lighting fixture cannot receive wireless signals such as Bluetooth, Wi-Fi, or infrared, it can receive wired electrical signals. Wired electrical signals are less susceptible to external interference than wireless signals and can provide more stable and reliable control.
[0079] Based on this, the power carrier communication controller can convert the first control signal into a wired electrical signal, which is also the second control signal. This signal conversion allows modern wireless control technologies (such as Bluetooth and Wi-Fi) to seamlessly integrate with traditional wired control systems, thereby improving the overall compatibility and functionality of the system.
[0080] S103: Control the target lamp according to the second control signal.
[0081] The target lamp is a lamp corresponding to the target identifier among the multiple lamps.
[0082] For example, the lighting equipment includes 10 lamps, namely lamp 1, lamp 2, lamp 3, lamp 4, lamp 5, lamp 6, lamp 7, lamp 8, lamp 9, and lamp 10, and the target identifier is the identifier of lamp 1, then the target lamp is lamp 1.
[0083] like Figure 2 As shown, when the target lamp is lamp 1, lamp 1 executes the control command, while lamps 2 through 10 do not. If the control command is to turn on, lamp 1 receives the control command and turns on, while lamps 2 through 10 do not receive the control command and do not turn on.
[0084] As the control command corresponding to the second control signal is different, the type of control performed by the power carrier communication controller on the target lamp is different. This application does not specifically limit the type of control command and the type of control performed on the target lamp.
[0085] If the control command is a brightness adjustment command, the power carrier communication controller controls the brightness of the target lamp according to the brightness indicated by the brightness adjustment command.
[0086] If the control command is a color temperature adjustment command, the power carrier communication controller controls the color temperature of the target lamp according to the color temperature indicated by the color temperature adjustment command.
[0087] If the control command is an on command, the power carrier communication controller controls the target lamp to turn on according to the on command.
[0088] If the control command is a shut-down command, the power carrier communication controller controls the target lamp to shut down according to the shut-down command.
[0089] Optionally, the target lamps are one or more groups of lamps corresponding to the target identifiers in the multiple groups of lamps.
[0090] For example, the lighting equipment includes two groups of lamps, Group A and Group B. Group A includes three lamps: Lamp 1, Lamp 2, and Lamp 3. Group B includes three lamps: Lamp 4, Lamp 5, and Lamp 6. The two groups of lamps correspond one-to-one with the two group identifiers. If the target identifier is the group identifier of Group A, then the target lamps are all the lamps in Group A.
[0091] like Figure 3 As shown in the figure, when the target lamps are all lamps in group A, all lamps in group A execute the control command, while all lamps in group B do not execute the control command. If the control command is to turn on, all lamps in group A receive the control command and turn on, while all lamps in group B do not receive the control command and do not execute the command, and all lamps in group B do not turn on.
[0092] In the embodiment of this application, Figure 4As shown, the power carrier communication controller can receive a Bluetooth signal or Wi-Fi signal related to the control command from the terminal device, or receive an infrared signal related to the control command from the remote control. The control command includes a target identifier, and converts the aforementioned Bluetooth signal, Wi-Fi signal or infrared signal to obtain a wired electrical signal related to the control command. In this way, the target lamp corresponding to the target identifier can be individually controlled by the wired electrical signal related to the control command. Moreover, the terminal device or remote control can be combined with the power carrier communication controller to achieve more efficient and personalized control of the lighting equipment in the landscape lighting, avoiding the situation where the wireless signal cannot reach the lighting equipment, and saving the equipment installation cost for controlling different lighting equipment.
[0093] based on Figure 1 In the description of the illustrated embodiment, the identifier of each lamp can be an address code, the target identifier is any one of multiple address codes, the address code is a MAC address, and the power carrier communication controller can request each lamp to send an address code to the power carrier communication controller when powered on. The power carrier communication controller can send the address code to the terminal device, and the terminal device can add each lamp according to the address code and perform naming, grouping, control, etc.
[0094] Next, combine Figure 5 , which introduces in detail the specific implementation process of the lighting control method based on power carrier communication of this application.
[0095] See also Figure 5 , Figure 5 FIG1 shows a flow chart of a lamp control method based on power line carrier communication provided by an embodiment of the present application. Figure 5 As shown, the lamp control method based on power line carrier communication provided by this application includes:
[0096] S201. When the power carrier communication controller is powered on, an addressing command is sent to a plurality of lamps.
[0097] The power carrier communication controller being powered on can be understood as the power carrier communication controller being powered on and started. When the power carrier communication controller is powered on and started, the power carrier communication controller can start to execute the steps to be executed.
[0098] The addressing command is used to instruct the lighting fixture to send the lighting fixture identification to the power carrier communication controller.
[0099] For example, the lighting device includes 10 lamps. When the power carrier communication controller is powered on, an addressing command may be sent to all 10 lamps, so that all 10 lamps send their respective identifications to the power carrier communication controller.
[0100] S202: Receive a plurality of identification information, where the plurality of identification information includes an identification of each lamp in a plurality of lamps.
[0101] For example, the lighting equipment includes 10 lamps, namely lamp 1, lamp 2, lamp 3, lamp 4, lamp 5, lamp 6, lamp 7, lamp 8, lamp 9, and lamp 10. The number of multiple identification information is 10, and the 10 identification information include: the identification of lamp 1, the identification of lamp 2, the identification of lamp 3, the identification of lamp 4, the identification of lamp 5, the identification of lamp 6, the identification of lamp 7, the identification of lamp 8, the identification of lamp 9, and the identification of lamp 10.
[0102] After receiving a plurality of identification information, the power carrier communication controller may record the plurality of identification information and compile the plurality of identification information. The compilation may generate an operation for processing the request.
[0103] It should be noted that if Figure 6 As shown, each lamp may also include a decoding module and an encoding module. When each lamp receives an addressing command, the decoding module can restore the physical signal corresponding to the addressing command into a logical instruction, and the encoding module can convert the aforementioned logical instruction into a physical signal recognizable by the lamp, so that the lamp can return identification information to the power carrier communication controller according to the physical signal.
[0104] In addition, for the above control commands, the lamp can also process the control commands through the decoding module and the encoding module, and notify the power driver module in the lamp to execute the control commands.
[0105] S203: Send a processing request to the terminal device, where the processing request includes multiple identification information.
[0106] The processing request is used to request the terminal device to associate multiple lamps according to multiple identification information.
[0107] The terminal device associates multiple lamps according to multiple identification information, which can be understood as "adding" multiple lamps according to the multiple identification information.
[0108] In some embodiments, after the terminal device receives multiple identification information, for each identification information, the terminal device's smart control APP can notify the user whether to add a lamp through a pop-up window or other means. The pop-up window may include a confirmation control. When an operation on the confirmation control is received, the lamp corresponding to the identification information can be added to the above-mentioned addition interface.
[0109] Therefore, after adding each lamp in the control interface, the terminal device can also name and group each lamp. In this way, the terminal device can subsequently control each lamp through the power carrier communication controller based on the naming and grouping.
[0110] In an embodiment of the present application, when the power carrier communication controller is powered on, an addressing command can be sent to multiple lamps, so that each lamp sends identification information to the power carrier communication controller. After receiving multiple identification information, the power carrier communication controller can send multiple identification information to the terminal device. In this way, the terminal device does not need to perform operations such as scanning the code for each lamp or receiving the identification information of each lamp manually entered by the user in the terminal device. The identification information of each lamp can be obtained according to the addressing operation of the power carrier communication controller. In this way, the process of the terminal device obtaining the identification information of each lamp can be simplified, the accuracy and reliability of the terminal device in obtaining the identification information of each lamp can be improved, and the efficiency of the terminal device in obtaining the identification information of each lamp can be improved.
[0111] based on Figure 1 According to the description of the embodiment shown, the embodiment of the present application can also allow the power carrier communication controller to send commands to multiple lamps when the power carrier communication controller is powered on. If there are lamps among multiple lamps that do not return a response message, it can be reported to the terminal device so that the terminal device reminds the user, and the user can view the reported lamps based on the reminder of the terminal device.
[0112] Next, combine Figure 7 , which introduces in detail the specific implementation process of the lighting control method based on power carrier communication of this application.
[0113] See also Figure 7 , Figure 7 FIG1 shows a flow chart of a lamp control method based on power line carrier communication provided by an embodiment of the present application. Figure 7 As shown, the lamp control method based on power line carrier communication provided by this application includes:
[0114] S301: Periodically send a first command to a plurality of lamps according to a preset period.
[0115] The duration of the preset cycle is pre-set. For example, if the duration of the preset cycle is 1 hour, the power carrier communication controller may send the first command to the plurality of lamps every 1 hour.
[0116] The first command is used to make the lamp return a response message. The first command can be a heartbeat packet, which usually uses a null data frame. The null data frame refers to a data packet whose data portion does not carry any actual valid information.
[0117] Thus, the power carrier communication controller can detect the connection status between the power carrier communication controller and each of the multiple lamps through the first command, to prevent the connection between the connected lamp and the power carrier communication controller from being interrupted due to lamp damage, power outage or other reasons, and the power carrier communication controller cannot be informed in time.
[0118] S302: Receive multiple response messages.
[0119] The response message is a response message of the first command.
[0120] For any one of the multiple lamps, after receiving the first command, any one of the lamps may return a response message to the power carrier communication controller.
[0121] It should be noted that the multiple response messages may include response messages returned by each of the multiple lamps, or may include response messages returned by some of the multiple lamps.
[0122] S303: If the multiple response messages do not include the response message returned by the first lamp, send an abnormal message to the terminal device.
[0123] The first lamp is any one of the multiple lamps.
[0124] For example, the lighting equipment includes 10 lamps, namely lamp 1, lamp 2, lamp 3, lamp 4, lamp 5, lamp 6, lamp 7, lamp 8, lamp 9, and lamp 10. If multiple response messages include response messages of lamp 1, lamp 2, lamp 4, lamp 5, lamp 6, lamp 7, lamp 8, lamp 9, and lamp 10, the first lamp is lamp 3.
[0125] The abnormality message is used to notify the terminal device to display abnormal information of the lamp, and the abnormality information can notify the abnormality of the first lamp in the form of numbers, text, etc. This application does not specifically limit the display type of the abnormality information.
[0126] For example, the terminal device indicates through the number 303 that the connection between the power carrier communication controller and any lamp is abnormal. The abnormal information may be the number: 303, indicating that there is an abnormal connection between the lamp and the power carrier communication controller.
[0127] For another example, the abnormal information may be text: There is an abnormality in the connection between the lamp and the power carrier communication controller.
[0128] Therefore, when the terminal device receives abnormal information, it can display the abnormal information, so that the user can determine that there is an abnormal connection between the lamp and the power carrier communication controller through the abnormal information. In this way, multiple lamps can be checked to determine the lamp with an abnormal connection with the power carrier communication controller.
[0129] In some embodiments, the exception message includes an identification of the first luminaire.
[0130] Based on the description of S202 , the power carrier communication controller includes the identification of each lamp. Based on this, the abnormal message sent by the power carrier communication controller to the terminal device can include the identification of the first lamp.
[0131] For example, the terminal device indicates through the number 303 that the connection between the power carrier communication controller and any lamp is abnormal, and the abnormal information may be the number: 303-3, indicating that the connection between the power carrier communication controller and lamp 3 is abnormal.
[0132] For another example, the abnormal information may be text: The connection between the power carrier communication controller and the lamp 3 is abnormal.
[0133] Therefore, when the terminal device receives the abnormal information, it can display the abnormal information, so that the user can determine the abnormal connection between the power carrier communication controller and the first lamp through the abnormal information, and can check the first lamp in time.
[0134] In an embodiment of the present application, the power carrier communication controller can periodically send a first command to multiple lamps according to a preset cycle. After each lamp receives the first command, it can return a response message. That is to say, the power carrier communication controller can detect whether there is a lamp with an abnormal connection with the power carrier communication controller through the first command. If so, the power carrier communication controller can send an abnormal message to the terminal device, so that the terminal device can display abnormal information, so that the user can determine that there is an abnormal connection between the lamp and the power carrier communication controller through the abnormal information. Multiple lamps can be checked to determine the lamp with an abnormal connection with the power carrier communication controller.
[0135] Based on the above description, the power carrier communication controller may further include a reset button, which is used to delete all information related to the terminal device and restore the factory settings.
[0136] Next, combine Figure 8 , which introduces in detail the specific implementation process of the lighting control method based on power carrier communication of this application.
[0137] See also Figure 8 , Figure 8 FIG1 shows a flow chart of a lamp control method based on power line carrier communication provided by an embodiment of the present application. Figure 8 As shown, the lamp control method based on power line carrier communication provided by this application includes:
[0138] S401: Receive a first account and a first password.
[0139] The first account is an account used to associate the terminal device with the power carrier communication controller, and the first password is a password used to associate the terminal device with the power carrier communication controller.
[0140] In some embodiments, the power carrier communication controller can be associated with the terminal device in a manner similar to Bluetooth pairing / Wi-Fi connection: the power carrier communication controller can send a wireless signal (2.4G wireless signal, similar to the signal sent by a router) in real time, and the terminal device can receive the wireless signal. Based on the wireless signal, the scanning interface of the terminal device's smart control APP can display the first account of the power carrier communication controller corresponding to the wireless signal. In this way, based on the operation of the first account (such as click, double-click, long press), the terminal device can display the password setting interface. Based on the operation on the password setting interface, the user can set a first password for the power carrier communication controller.
[0141] Based on this, the terminal device can send the first account and the first password to the power carrier communication controller, so that the power carrier communication controller can receive the first account and the first password. When the power carrier communication controller receives the first account and the first password, the association between the terminal device and the power carrier communication controller is completed.
[0142] S402: When an operation on a reset button is received, all information related to the terminal device is deleted, including the first account.
[0143] The reset button can be Figure 9 This application does not limit the specific implementation of the reset button.
[0144] The operation on the reset button can be a long press, a double press, or a single press. This application does not specifically limit the operation on the reset button.
[0145] When the reset button is pressed, the power carrier communication controller may delete all information related to the terminal device, so that the power carrier communication controller returns to an initial state, ie, a state in which the power carrier communication controller has no password.
[0146] In addition, when receiving the operation of the reset button, the power carrier communication controller can also control the control parameters of each of the multiple lamps to the initial state, that is, the state in which the power carrier communication controller controls each of the multiple lamps for the first time.
[0147] The control parameters include color temperature parameters and brightness parameters.
[0148] For example, in the initial state, the control parameters of the lamp 2 include: the brightness of the lamp 2 is 50%, and the color temperature of the lamp 2 is 4000K.
[0149] S403: Execute the operation of receiving the associated message again.
[0150] Among them, S403 and Figure 8 The implementation of S401 in the illustrated embodiment is similar and will not be described again here.
[0151] In an embodiment of the present application, a reset button is provided on the power carrier communication controller. When the reset button is operated, the power carrier communication controller can delete all information related to the terminal device, so that the terminal device is associated with the power carrier communication controller again, and the power carrier communication controller obtains a new password, so that the terminal device can control the power carrier communication controller again, avoiding the situation where the user cannot control the power carrier communication controller through the terminal device again because he forgets the account password.
[0152] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0153] Corresponding to the lamp control method based on power carrier communication in the above embodiment, Figure 10 A structural block diagram of a lamp control device provided in an embodiment of the present application is shown. For ease of explanation, only the parts related to the embodiment of the present application are shown.
[0154] Reference Figure 10 , the lighting control device comprises:
[0155] A receiving module 501 is configured to receive a first control signal, the first control signal including a Bluetooth signal, a Wi-Fi signal, or an infrared signal related to a control command, the first control signal including a target identifier, the target identifier including any one or more of a plurality of identifiers, the plurality of identifiers corresponding one-to-one to a plurality of lamps included in the lighting device;
[0156] The conversion module 502 is configured to convert the first control signal into a second control signal, where the second control signal is a wired electrical signal related to the control command.
[0157] The control module 502 is configured to control a target lamp according to a second control signal, where the target lamp is a lamp corresponding to the target identifier among the plurality of lamps.
[0158] In some embodiments, the lamp control device may further include a sending module, which is specifically used to: send addressing commands to multiple lamps when the power carrier communication controller is powered on, and the addressing commands are used to instruct the lamps to send the lamp identification to the power carrier communication controller; in some embodiments, the receiving module 501 is specifically used to: receive multiple identification information, and the multiple identification information includes the identification of each lamp in the multiple lamps; in some embodiments, the sending module is specifically used to: send a processing request to the terminal device, and the processing request includes multiple identification information, and the processing request is used to request the terminal device to associate multiple lamps according to the multiple identification information.
[0159] In some embodiments, the sending module is specifically used to: periodically send a first command to multiple lamps according to a preset period; in some embodiments, the receiving module 501 is specifically used to: receive multiple response messages, where the response messages are response messages to the first command; in some embodiments, the sending module is specifically used to: send an exception message to the terminal device if the multiple response messages do not include a response message returned by the first lamp, where the first lamp is any one of the multiple lamps, and the exception message is used to notify the terminal device to display abnormal information about the lamp.
[0160] In some embodiments, the power carrier communication controller has a reset button; the receiving module 501 is specifically used to:
[0161] Receive an association message, the association message includes a first account and a first password, and the association message is used to associate the terminal device with the power carrier communication controller through the first account and the first password; when an operation is performed on the reset button, delete all information related to the terminal device, all information including the first account and the first password; and perform the operation of receiving the association message again.
[0162] In some embodiments, each of the multiple identifiers is an address code, the target identifier is any one of the multiple address codes, and the address code is an Internet Protocol IP address.
[0163] In some embodiments, the control command includes a brightness adjustment command, a color temperature adjustment command, an on command, or a off command.
[0164] In some embodiments, the lighting device includes multiple groups of lamps, the target identifier includes any one or more of the multiple group identifiers, the multiple group identifiers correspond one-to-one to the multiple groups of lamps included in the lighting device, each group of the multiple groups of lamps includes one or more lamps, each group of the multiple groups of lamps is pre-grouped by the terminal device, and the target lamp is one or more groups of lamps corresponding to the target identifier in the multiple groups of lamps.
[0165] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of this application. Their specific functions and technical effects can be found in the method embodiment section and will not be repeated here.
[0166] Those skilled in the art can clearly understand that, for the convenience and brevity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0167] An embodiment of the present application also provides a control device, which includes: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, wherein the processor implements the steps of any of the above-mentioned method embodiments when executing the computer program.
[0168] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned various method embodiments can be implemented.
[0169] An embodiment of the present application provides a computer program product. When the computer program product is run on a control device, the control device can implement the steps in the above-mentioned method embodiments when the computer program product is executed.
[0170] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by a processor, it can implement the steps of the above-mentioned various method embodiments. Among them, the computer program includes computer program code, which can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium can at least include: any entity or device that can carry the computer program code to the camera / terminal device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunications signal and a software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk.
[0171] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant description of other embodiments.
[0172] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0173] In the embodiments provided in this application, it should be understood that the disclosed devices / network equipment and methods can be implemented in other ways. For example, the device / network equipment embodiments described above are merely illustrative. For example, the division of the modules or units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0174] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.
[0175] The above-described embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present application, and should all be included in the scope of protection of the present application.
Claims
1. A lamp control method based on power carrier communication, characterized in that: Applied to a power carrier communication controller, the power carrier communication controller is used to control lighting equipment for landscape lighting, the method comprising: receiving a first control signal, the first control signal including a Bluetooth signal, a Wireless Fidelity (Wi-Fi) signal, or an infrared signal related to a control command, the first control signal including a target identifier, the target identifier including any one or more of a plurality of identifiers, the plurality of identifiers corresponding one-to-one to a plurality of lamps included in the lighting device; performing signal conversion on the first control signal to obtain a second control signal, where the second control signal is a wired electrical signal related to the control command; According to the second control signal, a target lamp is controlled, where the target lamp is a lamp corresponding to the target identifier among the multiple lamps.
2. The method according to claim 1, wherein The method further comprises: When the power carrier communication controller is powered on, an addressing command is sent to each of the plurality of lamps, wherein the addressing command is used to instruct the lamps to send identifications of the lamps to the power carrier communication controller; receiving a plurality of identification information, wherein the plurality of identification information includes an identification of each lamp in the plurality of lamps; A processing request is sent to a terminal device, where the processing request includes a plurality of identification information, and the processing request is used to request the terminal device to associate the plurality of lamps according to the plurality of identification information.
3. The method according to claim 1, wherein The method further comprises: Periodically sending a first command to the plurality of lamps according to a preset period; receiving a plurality of response messages, where the response messages are response messages to the first command; If the multiple response messages do not include a response message returned by the first lamp, an exception message is sent to the terminal device, where the first lamp is any one of the multiple lamps, and the exception message is used to notify the terminal device to display lamp exception information.
4. The method according to claim 1, wherein The power carrier communication controller has a reset button; the method further includes: receiving a first account and a first password, wherein the first account is an account used to associate a terminal device with the power carrier communication controller, and the first password is a password used to associate the terminal device with the power carrier communication controller; Upon receiving an operation on the reset button, deleting all information related to the terminal device, the all information including the first password; The operation of receiving the associated message is performed again.
5. The method according to any one of claims 1 to 4, characterized in that Each of the multiple identifiers is an address code, the target identifier is any one of the multiple address codes, and the address code is a media access control MAC address.
6. The method according to any one of claims 1 to 4, characterized in that The control command includes a brightness adjustment command, a color temperature adjustment command, an on command or a off command.
7. The method according to any one of claims 1 to 4, characterized in that The lighting device includes multiple groups of lamps, the target identifier includes any one or more of the multiple group identifiers, the multiple group identifiers correspond one-to-one to the multiple groups of lamps, each group of the multiple groups of lamps includes one or more lamps, each group of the multiple groups of lamps is pre-grouped by the terminal device, and the target lamps are one or more groups of lamps corresponding to the target identifier in the multiple groups of lamps.
8. A lighting control device, characterized in that: include: a receiving module, configured to receive a first control signal, the first control signal including a Bluetooth signal, a Wireless Fidelity (Wi-Fi) signal, or an infrared signal related to a control command, the first control signal including a target identifier, the target identifier including any one or more of a plurality of identifiers, the plurality of identifiers corresponding one-to-one to a plurality of lamps included in the lighting device; a conversion module, configured to perform signal conversion on the first control signal to obtain a second control signal, where the second control signal is a wired electrical signal related to the control command; The control module is configured to control a target lamp according to the second control signal, where the target lamp is a lamp corresponding to the target identifier among the plurality of lamps.
9. A control device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the method according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.