Intelligent lamp control method and device, electronic equipment and storage medium
Patent Information
- Application Number
- CN202310324294.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-29
- Publication Date
- 2026-10-27
- Estimated Expiration
- 2043-03-29
AI Technical Summary
相关技术中,车载智能灯的控制大多都支持颜色、亮度、色温、工作模式等功能,但对车辆上装载的多个智能灯进行控制时,需要逐一设置各个智能灯的属性,既繁琐,又枯燥,并且容易出错
[0040]通过上述方式,响应于接收到第一智能灯的控制指令,若在车载终端的设备列表中查询到第二智能灯,则通过车载终端展示属性同步设置请求,其中第一智能灯和第二智能灯在设备列表中的设备类型相同,若接收到基于属性同步设置请求的确定指令,则对控制指令进行预处理,生成第一智能灯的第一属性控制参数,根据第一属性控制参数,确定第二智能灯的第二属性控制参数,根据第一属性控制参数控制第一智能灯,以及根据第二属性控制参数控制第二智能灯。从而在用户进行智能灯的属性调整时,同步调整设备列表中同一设备类型其他智能灯的属性,实现了车载终端中各个智能灯的同步设置,提升了智能灯的设置效率。
Smart Images

Figure CN117939752B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the technical field of equipment control, and in particular to a control method, device, electronic device, and storage medium for a smart lamp. Background Technology
[0002] With technological advancements, everyday devices are becoming increasingly intelligent, and their application scenarios are expanding. They are not only being used in home smart applications but also in vehicles. For example, home smart lights can achieve automatic control based on specific needs, and this intelligent technology can also be applied to vehicle smart lights. In related technologies, the control of in-vehicle smart lights mostly supports functions such as color, brightness, color temperature, and operating modes. However, controlling multiple smart lights installed in a vehicle requires setting the attributes of each individual light, which is tedious, repetitive, and prone to errors. Summary of the Invention
[0003] To overcome the problems existing in related technologies, this disclosure provides a control method, device, electronic device and storage medium for a smart lamp.
[0004] According to a first aspect of the present disclosure, a method for controlling a smart light is provided, applied to an in-vehicle terminal, the method comprising:
[0005] In response to receiving a control command for the first smart light, if a second smart light is found in the device list of the vehicle terminal, an attribute synchronization setting request is displayed through the vehicle terminal, wherein the first smart light and the second smart light have the same device type in the device list;
[0006] If a confirmation instruction based on the attribute synchronization setting request is received, the control instruction is preprocessed to generate the first attribute control parameters of the first smart light;
[0007] Based on the first attribute control parameter, determine the second attribute control parameter of the second smart light;
[0008] The first smart light is controlled according to the first attribute control parameter, and the second smart light is controlled according to the second attribute control parameter.
[0009] Optionally, determining the second attribute control parameters of the second smart light based on the first attribute control parameters includes:
[0010] Obtain the first model number and the second model number of the first smart lamp and the second smart lamp in the device list;
[0011] If the first model number matches the second model number, the first attribute control parameter is used as the second attribute control parameter.
[0012] If the first model number and the second model number do not match, the ambient mode of the vehicle terminal is determined according to the first attribute control parameter.
[0013] The second attribute control parameter of the second model number in the atmosphere mode is determined from a preset color mapping table, wherein the preset color mapping table includes a one-to-one correspondence between multiple model numbers, multiple atmosphere modes and multiple attribute control parameters.
[0014] Optionally, determining the ambient mode of the vehicle terminal based on the first attribute control parameter includes:
[0015] Based on the first attribute control parameters, determine multiple attribute parameters of the first smart lamp;
[0016] Based on the multiple attribute adjustment ranges in which the multiple attribute parameters are located, the atmosphere mode that matches the multiple attribute adjustment ranges is determined.
[0017] Optionally, the preprocessing of the control command to generate the first attribute control parameters of the first smart light includes:
[0018] Based on the control command, determine the adjustment intention of the first smart light;
[0019] Obtain the first attribute control parameters that are adapted to the adjustment intention.
[0020] Optionally, the method further includes:
[0021] Obtain the target device type of the first smart light;
[0022] Search the device list based on the target device type;
[0023] If other smart lights of the target device type exist in the device list, then the other smart light is determined to be the second smart light.
[0024] Optionally, the attribute control parameters include color control parameters, brightness control parameters, color temperature control parameters, and working mode parameters.
[0025] According to a second aspect of the present disclosure, a control device for a smart light is provided, applied to an in-vehicle terminal, the device comprising:
[0026] The display module is configured to respond to receiving a control command for a first smart light, and if a second smart light is found in the device list of the vehicle terminal, then display an attribute synchronization setting request through the vehicle terminal, wherein the first smart light and the second smart light have the same device type in the device list;
[0027] The generation module is configured to, if it receives a determination instruction based on the attribute synchronization setting request, preprocess the control instruction to generate the first attribute control parameters of the first smart lamp.
[0028] The determining module is configured to determine the second attribute control parameters of the second smart light based on the first attribute control parameters;
[0029] The execution module is configured to control the first smart light according to the first attribute control parameter, and to control the second smart light according to the second attribute control parameter.
[0030] Optionally, the determining module includes:
[0031] The acquisition submodule is configured to acquire the first model number and the second model number of the first smart lamp and the second smart lamp in the device list;
[0032] The first determination submodule is configured to use the first attribute control parameter as the second attribute control parameter when the first model number matches the second model number.
[0033] The second determination submodule is configured to determine the atmosphere mode of the vehicle terminal based on the first attribute control parameter when the first model number and the second model number do not match.
[0034] The determination submodule is configured to determine the second attribute control parameter of the second model number in the atmosphere mode from a preset color mapping table, wherein the preset color mapping table includes a one-to-one correspondence between multiple model numbers, multiple atmosphere modes and multiple attribute control parameters.
[0035] According to a third aspect of the present disclosure, an electronic device is provided, comprising:
[0036] A memory on which computer programs are stored;
[0037] A processor for executing the computer program in the memory to implement the steps of the method according to any one of the first aspects of this disclosure.
[0038] According to a fourth aspect of the present disclosure, a computer-readable storage medium is provided that stores computer program instructions thereon, which, when executed by a processor, implement the steps of the intelligent lamp control method provided in the first aspect of the present disclosure.
[0039] The technical solutions provided by the embodiments of this disclosure may include the following beneficial effects:
[0040] In response to receiving a control command from the first smart light, if a second smart light is found in the device list of the vehicle terminal, a request for attribute synchronization settings is displayed on the vehicle terminal. The first and second smart lights are of the same device type in the device list. If a confirmation command based on the attribute synchronization setting request is received, the control command is preprocessed to generate first attribute control parameters for the first smart light. Based on the first attribute control parameters, second attribute control parameters for the second smart light are determined. The first smart light is controlled according to the first attribute control parameters, and the second smart light is controlled according to the second attribute control parameters. Therefore, when the user adjusts the attributes of a smart light, the attributes of other smart lights of the same device type in the device list are simultaneously adjusted, achieving synchronized settings for all smart lights in the vehicle terminal and improving the efficiency of smart light settings.
[0041] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description
[0042] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.
[0043] Figure 1 This is a schematic diagram illustrating a control system for an intelligent light according to an exemplary embodiment.
[0044] Figure 2 This is a flowchart illustrating a control method for a smart lamp according to an exemplary embodiment.
[0045] Figure 3 This is an example diagram illustrating another method for controlling a smart light according to an exemplary embodiment.
[0046] Figure 4 This is a flowchart illustrating a method for determining attribute control parameters according to an exemplary embodiment.
[0047] Figure 5 This is a flowchart illustrating another method for controlling a smart light according to an exemplary embodiment.
[0048] Figure 6 This is a schematic diagram illustrating a control system for an intelligent light according to an exemplary embodiment.
[0049] Figure 7 This is a block diagram illustrating a control device for a smart lamp according to an exemplary embodiment.
[0050] Figure 8 This is a block diagram illustrating an electronic device according to an exemplary embodiment. Detailed Implementation
[0051] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.
[0052] It should be noted that all actions involving the acquisition of signals, information, or data in this disclosure are carried out in compliance with the relevant data protection laws and policies of the country where the location is situated, and with authorization from the owner of the relevant device.
[0053] Currently, the method for setting attributes for multiple smart lights simultaneously relies on cloud services. The cloud manages the multiple smart lights to form a smart light group. For example... Figure 1 This is a schematic diagram illustrating a control system for a smart light according to an exemplary embodiment, such as... Figure 1 As shown, before controlling the smart lights, a wireless communication connection needs to be established between the control terminal and the cloud service, as well as between the cloud service and smart lights 1 and 2. The cloud service receives control commands from the control terminal and, based on the ID information in the command, sends them to smart lights 1 and 2. Upon receiving the commands, smart lights 1 and 2 perform corresponding attribute controls. The control terminal can be a user's personal mobile phone, personal computer, or other user terminal device. The smart lights can change their attributes based on the control commands; for example, the brightness, color, and flashing frequency can be adjusted. Users set the attributes of the smart lights through the control terminal, which then sends the corresponding commands to the cloud service. The cloud service then distributes the control commands to multiple smart lights, enabling remote synchronous settings for multiple smart lights. However, this method has two problems: first, its application scenarios are limited, as the smart lights must maintain communication with the cloud service; second, it is costly, requiring continuous investment to operate the cloud service.
[0054] The technical solution of this application is mainly applied to the control of vehicle-mounted equipment. Due to the mobility of vehicles, vehicles may be unable to connect to the Internet while in motion, and it is impossible to guarantee that the vehicle and the cloud service maintain a constant communication connection, resulting in the inability to achieve wireless synchronous control on the vehicle.
[0055] In view of this, this proposal provides a method for controlling intelligent lights. Figure 2 This is a flowchart illustrating a control method for a smart light according to an exemplary embodiment, such as... Figure 2As shown, this method is used in an in-vehicle terminal and includes the following steps.
[0056] In step S101, in response to receiving the control command of the first smart light, if the second smart light is found in the device list of the vehicle terminal, the attribute synchronization setting request is displayed through the vehicle terminal, wherein the first smart light and the second smart light have the same device type in the device list.
[0057] It is worth mentioning that this embodiment is applied to an in-vehicle terminal, which is installed in the vehicle and connected to multiple devices. The in-vehicle terminal can control these devices, for example, it can serve as the vehicle's central control terminal. Users can send control commands to audio devices via the central control terminal to adjust their audio attributes. The in-vehicle terminal can connect to other devices in the vehicle wirelessly or via wired connections, allowing control of these devices by sending control commands. This communication method is unaffected by interference from other signals, ensuring that other devices can continuously receive control signals from the in-vehicle terminal.
[0058] When other devices establish a communication connection with the vehicle terminal, they report their device type to the terminal. Typically, this type is reported as a number, which the terminal stores in a device list. Users can then query the list to identify controllable devices. For example, when a smart light device connects to the vehicle terminal, it reports its model as "PKlight"; similarly, when an audio device connects, it reports its model as "AUTO." Different types of devices will report different model numbers upon connection. Device manufacturers can use established rules to name these model numbers, allowing the vehicle terminal to distinguish between different devices.
[0059] For example, in this embodiment, the user can send control signals to the corresponding device by operating the vehicle terminal. When the device is a smart light, the user can bring up the smart light control menu on the vehicle terminal according to their own needs, and send control commands to the smart light by touching the corresponding controls on the control menu. Typically, smart lights are auxiliary ambient lights without driving functions, mainly used to allow users to experience the current atmosphere through changes in light and shadow. Since multiple smart lights are set on the vehicle terminal, to avoid inconsistent lighting effects and light interference for the user, smart lights of the same type have the same attribute control parameters. Therefore, when the vehicle terminal receives a control command for the first smart light, it first searches the device list of the vehicle terminal for a second smart light of the same type as the first smart light. When it is determined that a second smart light of the same type as the first smart light exists in the device list of the vehicle terminal, an attribute synchronization setting request is displayed on the display device of the vehicle terminal. This synchronization setting request includes the basic device information of the second smart light, so that the user can determine whether to synchronize the setting of the second smart light based on this basic device information. Based on this attribute, the synchronization setting request will determine whether the user needs to synchronize the setting of a second smart light of the same type as the first smart light device based on control commands.
[0060] It should be noted that in this embodiment, the first smart light and the second smart light can be the same device installed in different locations on the vehicle. For example, the first smart light is a left microphone light, and the second smart light is a right microphone light. Alternatively, the first smart light and the second smart light can also be different types of devices with the same function. For example, the first smart light is a microphone light that can change its color and brightness according to the ambient audio in the vehicle environment, and its main function is to create a pleasant atmosphere for the vehicle. The second smart light can be an ambient light group with the same atmosphere-creating function. The vehicle terminal can categorize the microphone light and the ambient light as the same type of device based on the shared function of the first and second smart lights. Upon receiving a control command for the microphone light, when an ambient light of the same type as the microphone light is found in the device list of the vehicle terminal, a request for attribute synchronization settings based on the ambient light is displayed to the user through the display device of the vehicle terminal.
[0061] Optionally, in one implementation, the method further includes:
[0062] Obtain the target device type of the first smart light;
[0063] Search the device list based on the target device type;
[0064] If other smart lights of the target device type exist in the device list, then the other smart lights are identified as the second smart light.
[0065] For example, in this embodiment, after receiving the control command of the first smart light, the device type of the first smart light is detected to obtain the target device type of the first smart light. Based on the target device type, the corresponding device is queried in the device list of the vehicle terminal. When there are other smart lights of the target device type in the device list, the smart light is determined to be the second smart light.
[0066] In step S102, if a confirmation instruction based on an attribute synchronization setting request is received, the control instruction is preprocessed to generate the first attribute control parameters of the first smart lamp.
[0067] For example, a user requests an attribute synchronization setting to determine whether a second smart light needs to be synchronized based on the currently input control command. When the vehicle terminal receives a confirmation command for this attribute synchronization setting request, it preprocesses the user-input control command to generate the first attribute control parameters for the first smart light. These first attribute control parameters include the brightness, color, and on / off frequency information of the first smart light. Typically, the user's control command based on the first smart light is a touch command received from the corresponding display device on the vehicle terminal. The vehicle terminal preprocesses the received touch command in conjunction with the current control panel to generate the first attribute control parameters for the first smart light. For example, Figure 3 This is an example diagram illustrating another method for controlling a smart light according to an exemplary embodiment, such as... Figure 3 As shown, after the user performs a touch operation through the display device of the vehicle terminal, a control command is sent. The vehicle terminal preprocesses the received control command and generates multiple control commands. The vehicle terminal then sends the control commands to multiple smart lights, thereby realizing the synchronous setting of the smart lights.
[0068] Optionally, the attribute control parameters include color control parameters, brightness control parameters, color temperature control parameters, and working mode parameters.
[0069] It is worth mentioning that the smart light in this embodiment is an ambient light group that can enhance the atmosphere inside the vehicle. Therefore, the attribute control parameters of the smart light can be determined based on the control commands input by the user. Based on these attribute control parameters, the color control parameters, brightness control parameters, color temperature control parameters, and working mode parameters of the smart light can be adjusted to enhance the atmosphere in the vehicle space.
[0070] Alternatively, in another embodiment, step S102 above includes:
[0071] Based on the control commands, determine the adjustment intention of the first smart light;
[0072] Get and adjust the first attribute control parameters for intent adaptation.
[0073] For example, in this embodiment, a learning model can be configured in the vehicle terminal, and the control commands input by the user can be input into the learning model. The learning model can determine the user's adjustment intention based on the first smart light, and determine the matching first attribute control parameters based on the adjustment intention.
[0074] In step S103, the second attribute control parameters of the second smart lamp are determined based on the first attribute control parameters.
[0075] For example, in this embodiment, to achieve synchronized settings for the first smart light and the second smart light, it is necessary to synchronize the second attribute control parameters of the second smart light using the first attribute control parameters of the first smart light. For instance, when the first smart light and the second smart light are the same type of device, the second attribute control parameters of the first smart light can be directly used as the second attribute control parameters of the second smart light; when the first smart light and the second smart light are different types of devices with the same functional requirements, the user's control intention can be determined based on the first attribute control parameters, and the second attribute control parameters of the second smart light under the current control intention can be determined based on a mapping table, wherein the mapping table includes a one-to-one correspondence between multiple control intentions, multiple smart lights, and multiple attribute control parameters.
[0076] In step S104, the first smart light is controlled according to the first attribute control parameter, and the second smart light is controlled according to the second attribute control parameter.
[0077] For example, after determining the attribute control parameters of the smart light in the above manner, the attribute control parameters are sent to the corresponding smart light, thereby completing the attribute control of each smart light.
[0078] In response to receiving a control command from the first smart light, if a second smart light is found in the device list of the vehicle terminal, a request for attribute synchronization settings is displayed on the vehicle terminal. The first and second smart lights are of the same device type in the device list. If a confirmation command based on the attribute synchronization setting request is received, the control command is preprocessed to generate first attribute control parameters for the first smart light. Based on the first attribute control parameters, second attribute control parameters for the second smart light are determined. The first smart light is controlled according to the first attribute control parameters, and the second smart light is controlled according to the second attribute control parameters. Therefore, when the user adjusts the attributes of a smart light, the attributes of other smart lights of the same device type in the device list are simultaneously adjusted, achieving synchronized settings for all smart lights in the vehicle terminal and improving the efficiency of smart light settings.
[0079] Figure 4 This is a flowchart illustrating a method for determining attribute control parameters according to an exemplary embodiment, such as... Figure 4 As shown, step S103 above includes the following steps.
[0080] In step S201, the first model number and the second model number of the first smart lamp and the second smart lamp in the device list are obtained.
[0081] For example, in this embodiment, when the smart light is connected to the vehicle terminal, it reports the corresponding model number to the vehicle terminal. After determining the second smart light, which is the same as the first smart light, through the device type, it queries the device list to determine the first model number and the second model number of the first smart light. It is worth mentioning that the model number of the smart light not only records the device type information of the smart light, but also records the number information of the smart light. For example, when the first smart light is the left pickup light in the vehicle terminal, the first model number in the device list is "PKlightl01", where "PKlight" is the smart light type code of the pickup light in the vehicle terminal, and "l01" is the location code and number of the smart light. Correspondingly, when the second smart light is the right pickup light, the corresponding second model number is "PKlightr01"; when the second smart light is the ambient light in the vehicle terminal, the second model number in the device list is "AMlight a01", where "AMlight" is the smart light type code of the ambient light in the vehicle terminal, and "a01" is the location code and number of the ambient light.
[0082] In step S202, if the first model number matches the second model number, the first attribute control parameter is used as the second attribute control parameter.
[0083] For example, by comparing the first model number and the second model number, it is determined whether the first smart light and the second smart light are the same device installed at different locations on the vehicle terminal. Taking the above-mentioned pickup light and ambient light as examples, when the first smart light is the left pickup light and the second smart light is the right pickup light, the corresponding first model number is "PKlightl01" and the second model number is "PKlightr01". If "PKlight" matches in the model number, then the first attribute control parameter of the first smart light is synchronously set to the second attribute control parameter of the second smart light.
[0084] It is worth mentioning that the first smart light and the second smart light are the same type of device, including two situations: (1) the first smart light and the second smart light are the same type of device, for example, both the first smart light and the second smart light are microphone lights; (2) the first smart light and the second smart light are different types of devices, for example, the first smart light is a microphone light and the second smart light is an ambient light. Therefore, the synchronization process of the attribute control parameters is different for different situations. For example, when both the first smart light and the second smart light are microphone lights, after receiving the confirmation instruction for the synchronization setting request, it means that the user needs to synchronize the setting of the second smart light based on the relevant setting parameters of the first smart light. At this time, the initial attribute control parameters of the first smart light and the initial attribute control parameters of the second smart light may be different. Therefore, when receiving the confirmation instruction for the synchronization setting request, the first smart light first synchronizes its own initial attribute control parameters to the second smart light, so that the second smart light performs preliminary adjustment based on the initial attribute control parameters, so that the brightness, color, softness and other attributes of the second smart light are consistent with those of the first smart light. Then, based on the user's control commands, the first attribute control parameters of the first smart light are generated, and these first attribute control parameters are used as the second attribute control parameters of the second smart light. That is, after the first and second smart lights achieve initial synchronization, as long as the attribute of the first smart light changes, it will be directly synchronized and set for the second smart light. Therefore, at this time, the first attribute control parameter is a single attribute control parameter of the first smart light, such as a brightness change parameter or a color change parameter.
[0085] By using the above method, when a smart light receives a change in any attribute control parameter, it sends the changed attribute control parameter to other smart lights of the same type to synchronize the settings. This increases the synchronization efficiency of smart lights and enables them to respond quickly to user-operated settings.
[0086] In step S203, if the first model number and the second model number do not match, the ambient mode of the vehicle terminal is determined according to the first attribute control parameter.
[0087] For example, when the first model number and the second model number do not match, corresponding to the first smart light being a pickup light with the first model number "PKlightl01" in the example above, and the second smart light being an ambient light with the second model number "AMlight a01", the model numbers "PKlight" and "AMlight" do not match. In this case, the ambient mode of the current vehicle terminal is determined according to the first attribute control parameter of the first smart light.
[0088] Optionally, in one embodiment, step S203 above includes:
[0089] Based on the first attribute control parameters, determine multiple attribute parameters of the first smart light;
[0090] Based on the multiple attribute adjustment ranges in which multiple attribute parameters are located, determine the atmosphere mode that matches the multiple attribute adjustment ranges.
[0091] It's worth noting that when users adjust the smart lights, they might not consider the interplay between multiple attribute parameters corresponding to different ambient modes. For example, in soft mode, the brightness of the microphone light needs to be controlled within the first brightness range, the color is dark orange, and the corresponding softness needs to be controlled within the first softness range. However, typically, users only adjust one attribute parameter of the smart light. For instance, in a dark environment, users might increase the brightness and adjust the color to a darker tone. After receiving these brightness and color adjustment parameters, the in-vehicle terminal compares them with the adjustment parameters in preset ambient modes to determine the ambient mode that matches the current adjustment.
[0092] In step S204, the second attribute control parameter of the second model number in the atmosphere mode is determined from the preset color mapping table. The preset color mapping table includes a one-to-one correspondence between multiple model numbers, multiple atmosphere modes and multiple attribute control parameters.
[0093] It is worth mentioning that the in-vehicle terminal is equipped with a preset color mapping table. This preset color mapping table includes a one-to-one correspondence between multiple model numbers, multiple ambient modes, and multiple attribute control parameters. The model numbers of each smart light device are different in the preset color mapping table. Different attribute control parameters are set for different smart light devices according to the ambient mode. When the user determines the ambient mode to be adjusted based on the first attribute control parameter of the first smart light, the second attribute control parameter of the second smart light under that ambient mode is obtained according to the preset color mapping table. For example, if the first smart light is a pickup light and the second smart light is an ambient light, the attribute control parameters (color 1, brightness 1, softness 1) of the pickup light are determined through the above steps. Based on these attribute control parameters, if the user's current smart light adjustment intention is to adjust the smart light to a soothing mode, then the relevant attribute parameters (color 2, brightness 2, softness 2) of the ambient light under the soothing mode are determined based on the preset color mapping table. Among them, the preset color mapping table is used by vehicle control personnel to match the attribute parameters of the smart lights on the vehicle based on different atmosphere modes, so that the on / off status of each smart light matches the atmosphere mode, thereby giving users a better atmosphere experience.
[0094] It should be noted that when the first smart light and the second smart light are different types of devices of the same device type, for example, the first smart light is a microphone light and the second smart light is an ambient light, the synchronization process of the corresponding attribute control parameters is different from the parameter synchronization process for devices of the same type. For example, when determining the second attribute control parameters of the ambient light based on the first attribute control parameters of the microphone light, it is necessary to determine the desired atmosphere for the user based on the first attribute control parameters. Therefore, the first attribute control parameters at this time are all the attribute control parameters of the microphone light, including its color, brightness, and softness. After receiving these first attribute control parameters, the vehicle terminal determines the desired ambient mode for the user. After determining the target ambient mode, it synchronizes the second attribute control parameters of the ambient light under the target ambient mode to the ambient light by referring to a preset color mapping table. In other words, for different types of smart lights of the same device type, during attribute synchronization, the vehicle terminal needs to determine the second attribute control parameters of the second smart light based on all the attribute control parameters of the first smart light.
[0095] Using the above method, the same type of smart light can be set synchronously according to the attribute control parameters of the first smart light, and different types of smart lights can also be set synchronously, which improves the configuration efficiency of smart lights and gives users a better product experience.
[0096] Figure 5 This is a flowchart illustrating another method for controlling a smart light according to an exemplary embodiment, such as... Figure 5 As shown, the control method includes the following steps.
[0097] (1) The user opens the settings page of the smart light 1 and issues control commands to the smart light 1 based on the settings page;
[0098] (2) After receiving the control command, the vehicle terminal searches the device list to see if there are other smart lights of the same type based on the device type number of smart light 1 in the control command.
[0099] (3) When other smart lights exist, the attributes of smart light 1 will be synchronously set on the other smart lights;
[0100] (4) When the smart light 1 receives the attribute setting instruction in the settings page again, the setting attribute is directly synchronized to other smart lights.
[0101] For example, based on the same inventive concept, the present invention also provides a control system for a smart light. Figure 6 This is a schematic diagram illustrating a control system for a smart light according to an exemplary embodiment, such as... Figure 6 As shown, the system includes: a user, a control terminal, and smart light 1 and smart light 2.
[0102] Smart light 1 and smart light 2 establish communication connections with the control terminal. When the user controls the attributes of the smart lights, they select smart light 1 and smart light 2 that are set synchronously, and then the control terminal sends the control commands to smart light 1 and smart light 2 synchronously.
[0103] By using the above method, when a user adjusts the attributes of a smart light, the attributes of other smart lights of the same device type in the device list are adjusted simultaneously, realizing the synchronous setting of each smart light in the vehicle terminal and improving the setting efficiency of smart lights.
[0104] Figure 7 This is a block diagram illustrating a control device for a smart light according to an exemplary embodiment. (Refer to...) Figure 7 The device 100 includes: a display module 110, a generation module 120, a determination module 130, and an execution module 140.
[0105] The display module 110 is configured to respond to receiving a control command from the first smart light, and if the second smart light is found in the device list of the vehicle terminal, then display an attribute synchronization setting request through the vehicle terminal, wherein the first smart light and the second smart light have the same device type in the device list.
[0106] The generation module 120 is configured to preprocess the control command and generate the first attribute control parameters of the first smart light if it receives a determination command based on the attribute synchronization setting request.
[0107] The determining module 130 is configured to determine the second attribute control parameters of the second smart light based on the first attribute control parameters;
[0108] The execution module 140 is configured to control a first smart light according to a first attribute control parameter, and to control a second smart light according to a second attribute control parameter.
[0109] Optionally, the determining module 130 includes:
[0110] The acquisition submodule is configured to acquire the first model number and the second model number of the first smart light and the second smart light in the device list;
[0111] The first determination submodule is configured to use the first attribute control parameter as the second attribute control parameter when the first model number matches the second model number.
[0112] The second determination submodule is configured to determine the ambient mode of the vehicle terminal based on the first attribute control parameter when the first model number and the second model number do not match.
[0113] The determination submodule is configured to determine the second attribute control parameter of the second model number in the atmosphere mode from a preset color mapping table. The preset color mapping table includes a one-to-one correspondence between multiple model numbers, multiple atmosphere modes and multiple attribute control parameters.
[0114] Optionally, the second determination submodule is configured as follows:
[0115] Based on the first attribute control parameters, determine multiple attribute parameters of the first smart light;
[0116] Based on the multiple attribute adjustment ranges in which multiple attribute parameters are located, determine the atmosphere mode that matches the multiple attribute adjustment ranges.
[0117] Optionally, the generation module 120 is configured as follows:
[0118] Based on the control commands, determine the adjustment intention of the first smart light;
[0119] Get and adjust the first attribute control parameters for intent adaptation.
[0120] Optionally, the device 100 further includes a retrieval module configured to:
[0121] Obtain the target device type of the first smart light;
[0122] Search the device list based on the target device type;
[0123] If other smart lights of the target device type exist in the device list, then the other smart lights are identified as the second smart light.
[0124] Optionally, the attribute control parameters include color control parameters, brightness control parameters, color temperature control parameters, and working mode parameters.
[0125] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.
[0126] This disclosure also provides a computer-readable storage medium having computer program instructions stored thereon, which, when executed by a processor, implement the steps of the intelligent light control method provided in this disclosure.
[0127] Figure 8 This is a block diagram illustrating an electronic device 800 according to an exemplary embodiment. For example, device 800 may be an in-vehicle terminal, a computer, a digital broadcasting terminal, a messaging device, a game console, a tablet device, a medical device, a personal digital assistant, etc.
[0128] Reference Figure 8The device 800 may include one or more of the following components: processing component 802, memory 804, power supply component 806, multimedia component 808, audio component 810, input / output interface 812, sensor component 814, and communication component 816.
[0129] Processing component 802 typically controls the overall operation of device 800, such as operations associated with display, telephone calls, data communication, camera operation, and recording. Processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the aforementioned smart light control method. Furthermore, processing component 802 may include one or more modules to facilitate interaction between processing component 802 and other components. For example, processing component 802 may include a multimedia module to facilitate interaction between multimedia component 808 and processing component 802.
[0130] Memory 804 is configured to store various types of data to support the operation of device 800. Examples of this data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, etc. Memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.
[0131] Power supply component 806 provides power to various components of device 800. Power supply component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to device 800.
[0132] Multimedia component 808 includes a screen that provides an output interface between the device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of the touch or swipe action but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 808 includes a front-facing camera and / or a rear-facing camera. When the device 800 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or the rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
[0133] Audio component 810 is configured to output and / or input audio signals. For example, audio component 810 includes a microphone (MIC) configured to receive external audio signals when device 800 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 804 or transmitted via communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
[0134] Input / output interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.
[0135] Sensor assembly 814 includes one or more sensors for providing status assessments of various aspects of device 800. For example, sensor assembly 814 may detect the on / off state of device 800, the relative positioning of components such as the display and keypad of device 800, changes in the position of device 800 or a component of device 800, the presence or absence of user contact with device 800, the orientation or acceleration / deceleration of device 800, and temperature changes of device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 814 may also include an accelerometer, a gyroscope, a magnetometer, a pressure sensor, or a temperature sensor.
[0136] Communication component 816 is configured to facilitate wired or wireless communication between device 800 and other devices. Device 800 can access wireless networks based on communication standards, such as WiFi, 2G, or 3G, or combinations thereof. In one exemplary embodiment, communication component 816 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 816 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0137] In an exemplary embodiment, device 800 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above-described control method for the smart lamp.
[0138] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, which can be executed by a processor 820 of device 800 to complete the above-described intelligent light control method. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.
[0139] The aforementioned device can be a standalone electronic device or a part of a standalone electronic device. For example, in one embodiment, the device can be an integrated circuit (IC) or a chip, wherein the integrated circuit can be a single IC or a collection of multiple ICs. The chip can include, but is not limited to, the following types: GPU (Graphics Processing Unit), CPU (Central Processing Unit), FPGA (Field Programmable Gate Array), DSP (Digital Signal Processor), ASIC (Application Specific Integrated Circuit), and SoC (System on Chip). The aforementioned integrated circuit or chip can be used to execute executable instructions (or code) to implement the aforementioned smart light control method. These executable instructions can be stored in the integrated circuit or chip or obtained from other devices or equipment. For example, the integrated circuit or chip includes a processor, memory, and an interface for communicating with other devices. The executable instruction can be stored in the memory, and when the executable instruction is executed by the processor, it implements the above-mentioned intelligent light control method; or, the integrated circuit or chip can receive the executable instruction through the interface and transmit it to the processor for execution to implement the above-mentioned intelligent light control method.
[0140] In another exemplary embodiment, a computer program product is also provided, which includes a computer program executable by a programmable device, the computer program having a code portion for performing the above-described control method for a smart lamp when executed by the programmable device.
[0141] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of this disclosure. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.
[0142] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.
Claims
1. A method for controlling an intelligent light, characterized in that, Applied to vehicle-mounted terminals, the method includes: In response to receiving a control command for the first smart light, if a second smart light is found in the device list of the vehicle terminal, an attribute synchronization setting request is displayed through the vehicle terminal, wherein the first smart light and the second smart light have the same device type in the device list; If a confirmation instruction based on the attribute synchronization setting request is received, the control instruction is preprocessed to generate the first attribute control parameters of the first smart light; Based on the first attribute control parameter, determine the second attribute control parameter of the second smart light, including: obtaining the first model number and the second model number of the first smart light and the second smart light in the device list; if the first model number and the second model number match, use the first attribute control parameter as the second attribute control parameter; if the first model number and the second model number do not match, determine the ambient mode of the vehicle terminal based on the first attribute control parameter; determine the second attribute control parameter of the second model number in the ambient mode from a preset color mapping table, wherein the preset color mapping table includes a one-to-one correspondence between multiple model numbers, multiple ambient modes, and multiple attribute control parameters; The first smart light is controlled according to the first attribute control parameter, and the second smart light is controlled according to the second attribute control parameter.
2. The control method according to claim 1, characterized in that, Determining the ambient mode of the vehicle terminal based on the first attribute control parameter includes: Based on the first attribute control parameters, determine multiple attribute parameters of the first smart lamp; Based on the multiple attribute adjustment ranges in which the multiple attribute parameters are located, the atmosphere mode that matches the multiple attribute adjustment ranges is determined.
3. The control method according to claim 1, characterized in that, The step of preprocessing the control command to generate the first attribute control parameters of the first smart light includes: Based on the control command, determine the adjustment intention of the first smart light; Obtain the first attribute control parameters that are adapted to the adjustment intention.
4. The control method according to claim 1, characterized in that, The method further includes: Obtain the target device type of the first smart light; Search the device list based on the target device type; If other smart lights of the target device type exist in the device list, then the other smart light is determined to be the second smart light.
5. The control method according to any one of claims 1-4, characterized in that, The attribute control parameters include color control parameters, brightness control parameters, color temperature control parameters, and working mode parameters.
6. A control device for an intelligent light, characterized in that, The device, applied to an in-vehicle terminal, includes: The display module is configured to respond to receiving a control command from a first smart light, and if a second smart light is found in the device list of the vehicle terminal, then display an attribute synchronization setting request through the vehicle terminal, wherein the first smart light and the second smart light are of the same device type in the device list; The generation module is configured to, if it receives a determination instruction based on the attribute synchronization setting request, preprocess the control instruction to generate the first attribute control parameters of the first smart lamp. The determining module is configured to determine the second attribute control parameters of the second smart light based on the first attribute control parameters; The execution module is configured to control the first smart light according to the first attribute control parameter, and to control the second smart light according to the second attribute control parameter; The determining module includes: The acquisition submodule is configured to acquire the first model number and the second model number of the first smart lamp and the second smart lamp in the device list; The first determination submodule is configured to use the first attribute control parameter as the second attribute control parameter when the first model number matches the second model number. The second determination submodule is configured to determine the atmosphere mode of the vehicle terminal based on the first attribute control parameter when the first model number and the second model number do not match. The determination submodule is configured to determine the second attribute control parameter of the second model number in the atmosphere mode from a preset color mapping table, wherein the preset color mapping table includes a one-to-one correspondence between multiple model numbers, multiple atmosphere modes and multiple attribute control parameters.
7. An electronic device, characterized in that, include: A memory on which computer programs are stored; A processor for executing the computer program in the memory to implement the steps of the method according to any one of claims 1-5.
8. A computer-readable storage medium having computer program instructions stored thereon, characterized in that, When the program instructions are executed by the processor, they implement the steps of the method according to any one of claims 1-5.
Citation Information
Patent Citations
Internet of Things synchronous control method and device based on indoor positioning
CN112533162A
Atmosphere lamp control method and device, electronic equipment and storage medium
CN113709954A