CN111479370A - Electronic equipment, control method of atmosphere lamp of electronic equipment and computer storage medium - Google Patents

Electronic equipment, control method of atmosphere lamp of electronic equipment and computer storage medium Download PDF

Info

Publication number
CN111479370A
CN111479370A CN202010245153.8A CN202010245153A CN111479370A CN 111479370 A CN111479370 A CN 111479370A CN 202010245153 A CN202010245153 A CN 202010245153A CN 111479370 A CN111479370 A CN 111479370A
Authority
CN
China
Prior art keywords
control
ambient light
electronic device
system clock
driver
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010245153.8A
Other languages
Chinese (zh)
Inventor
王坤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202010245153.8A priority Critical patent/CN111479370A/en
Publication of CN111479370A publication Critical patent/CN111479370A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/21Combinations with auxiliary equipment, e.g. with clocks or memoranda pads
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • H04M1/72415User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories for remote control of appliances
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Landscapes

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

Abstract

本申请主要是涉及电子设备及其氛围灯的控制方法、计算机存储介质,控制方法包括:获取氛围灯的控制指令;响应于控制指令,调用电子设备的系统时钟;将控制指令调制成系统时钟的函数,以形成相应的控制模型;利用控制模型对氛围灯的驱动器进行控制,以使得氛围灯按照控制模型发光。本申请另辟蹊径地在获取氛围灯的控制指令之后,调用电子设备的系统时钟,并将控制指令调制成系统时钟的函数,以对氛围灯的驱动器进行控制,从而使得氛围灯在系统时钟的周期内执行控制指令而发光,以对氛围灯的发光作精细化控制,进而在保持氛围灯的亮度的情况下,改善氛围灯的控制精确性,增加用户的体验好感度。

Figure 202010245153

The present application mainly relates to an electronic device and a control method for an ambient light, and a computer storage medium. The control method includes: obtaining a control instruction for the ambient light; invoking the system clock of the electronic device in response to the control instruction; modulating the control instruction into a system clock function to form a corresponding control model; use the control model to control the driver of the ambient light, so that the ambient light emits light according to the control model. In this application, after acquiring the control command of the ambient light, the system clock of the electronic device is called, and the control command is modulated into a function of the system clock to control the driver of the ambient light, so that the ambient light is within the cycle of the system clock. Execute the control instructions to emit light, so as to finely control the lighting of the ambient light, and then while maintaining the brightness of the ambient light, the control accuracy of the ambient light is improved, and the user's experience favorability is increased.

Figure 202010245153

Description

电子设备及其氛围灯的控制方法、计算机存储介质Electronic device and its control method for ambient light, and computer storage medium

技术领域technical field

本申请涉及电子设备的技术领域,具体是涉及电子设备及其氛围灯的控制方法、计算机存储介质。The present application relates to the technical field of electronic equipment, and in particular, to electronic equipment, a control method for an ambient light thereof, and a computer storage medium.

背景技术Background technique

随着电子设备的不断普及,电子设备已经成为人们日常生活中不可或缺的社交、娱乐工具,人们对于电子设备的要求也越来越高。对于手机这类电子设备而言,用户已经不再局限于单调的使用方式,而是希望在播放音乐、玩游戏、拍照等使用场景下能够营造一种灯光效果。With the continuous popularization of electronic equipment, electronic equipment has become an indispensable social and entertainment tool in people's daily life, and people's requirements for electronic equipment are getting higher and higher. For electronic devices such as mobile phones, users are no longer limited to monotonous usage, but hope to create a lighting effect in usage scenarios such as playing music, playing games, and taking pictures.

发明内容SUMMARY OF THE INVENTION

本申请实施例提供了一种应用于电子设备的氛围灯的控制方法,其中,该控制方法包括:获取氛围灯的控制指令;响应于控制指令,调用电子设备的系统时钟;将控制指令调制成系统时钟的函数,以形成相应的控制模型;利用控制模型对氛围灯的驱动器进行控制,以使得氛围灯按照控制模型发光。An embodiment of the present application provides a control method for an ambient light applied to an electronic device, wherein the control method includes: acquiring a control instruction for the ambient light; invoking a system clock of the electronic device in response to the control instruction; and modulating the control instruction into a A function of the system clock to form a corresponding control model; the driver of the ambient light is controlled by the control model, so that the ambient light emits light according to the control model.

本申请实施例还提供了一种电子设备,其中,该电子设备包括:获取模块,用于获取氛围灯的控制指令;调用模块,用于响应于控制指令,调用电子设备的系统时钟;调制模块,用于将控制指令调制成系统时钟的函数,以形成相应的控制模型;控制模块,用于利用控制模型对氛围灯的驱动器进行控制,以使得氛围灯按照控制模型发光。The embodiment of the present application also provides an electronic device, wherein the electronic device includes: an acquisition module for acquiring a control instruction of the ambient light; a calling module for invoking a system clock of the electronic device in response to the control instruction; a modulation module , which is used to modulate the control command into a function of the system clock to form a corresponding control model; the control module is used to control the driver of the ambient light by using the control model, so that the ambient light emits light according to the control model.

本申请实施例还提供了一种电子设备,其中,该电子设备包括氛围灯、处理器和存储器,氛围灯集成有驱动器,驱动器、存储器与处理器耦接;其中,存储器用于存储计算机程序,处理器在工作时执行计算机程序以实现上述实施例所述的控制方法。The embodiment of the present application also provides an electronic device, wherein the electronic device includes an ambient light, a processor and a memory, the ambient light is integrated with a driver, and the driver and the memory are coupled to the processor; wherein, the memory is used to store a computer program, The processor executes the computer program during operation to implement the control methods described in the above embodiments.

本申请实施例又提供了一种计算机存储介质,其上存储有计算机程序,其中,该计算机程序能够被处理器执行以实现上述实施例所述的控制方法。Embodiments of the present application further provide a computer storage medium on which a computer program is stored, where the computer program can be executed by a processor to implement the control method described in the foregoing embodiments.

本申请的有益效果是:本申请提供的控制方法在获取氛围灯的控制指令之后,调用电子设备的系统时钟,并将控制指令调制成系统时钟的函数,以对氛围灯的驱动器进行控制,从而使得氛围灯在系统时钟的周期内执行控制指令而发光,以对氛围灯的发光作精细化控制,进而在保持氛围灯的亮度的情况下,改善氛围灯的控制精确性,增加用户的体验好感度。The beneficial effects of the present application are: the control method provided by the present application calls the system clock of the electronic device after acquiring the control command of the ambient light, and modulates the control command into a function of the system clock to control the driver of the ambient light, thereby The ambient light is made to emit light by executing the control command within the cycle of the system clock, so as to finely control the lighting of the ambient light, thereby improving the control accuracy of the ambient light while maintaining the brightness of the ambient light, and increasing the user experience. Sensitivity.

附图说明Description of drawings

为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the drawings that are used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without any creative effort.

图1是本申请提供的用于电子设备的氛围灯的控制方法一实施例的流程示意图;1 is a schematic flowchart of an embodiment of a method for controlling an ambient light for an electronic device provided by the present application;

图2是本申请提供的用于电子设备的氛围灯的控制方法另一实施例的流程示意图;2 is a schematic flowchart of another embodiment of a control method for an ambient light for an electronic device provided by the present application;

图3是本申请提供的电子设备一实施例的结构示意图;3 is a schematic structural diagram of an embodiment of an electronic device provided by the present application;

图4是本申请提供的电子设备另一实施例的结构示意图;4 is a schematic structural diagram of another embodiment of an electronic device provided by the present application;

图5是图4中电子设备一整机的结构示意图;Fig. 5 is the structural representation of a complete machine of electronic equipment in Fig. 4;

图6是图4中电子设备另一整机的结构示意图;6 is a schematic structural diagram of another complete machine of the electronic device in FIG. 4;

图7是本申请提供的计算机存储介质一实施例的结构示意图。FIG. 7 is a schematic structural diagram of an embodiment of a computer storage medium provided by the present application.

具体实施方式Detailed ways

下面结合附图和实施例,对本申请作进一步的详细描述。特别指出的是,以下实施例仅用于说明本申请,但不对本申请的范围进行限定。同样的,以下实施例仅为本申请的部分实施例而非全部实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本申请保护的范围。The present application will be further described in detail below with reference to the accompanying drawings and embodiments. It is particularly pointed out that the following examples are only used to illustrate the present application, but do not limit the scope of the present application. Similarly, the following embodiments are only some of the embodiments of the present application, but not all of the embodiments, and all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present application.

本申请中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。本领域技术人员显式地和隐式地理解的是,本申请所描述的实施例可以与其它实施例相结合。Reference in this application to an "embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. It is explicitly and implicitly understood by those skilled in the art that the embodiments described in this application may be combined with other embodiments.

本申请的发明人经过长期的研究发现:对于手机这类电子设备而言,厂商为了丰富用户的使用体验,一般会在电子设备上装设氛围灯,以在播放音乐、玩游戏、拍照等使用场景下营造一种灯光效果。相关技术中,为了营造上述的灯光效果,主要有两种控制氛围灯的方案:其一,一个驱动器控制多个氛围灯;其二,多个驱动器分别一对一地控制多个氛围灯。其中,第一种方案的优劣在于:氛围灯便于控制,能够保持更好的一致性;但是因为多个氛围灯共用一个驱动器,容易造成驱动器的负载能力不足,导致氛围灯的灯效亮度不够。第二种方案的优劣在于:由于每一个氛围灯均具有一个单独的驱动器,使得每一个氛围灯均能够获得足够大的电流,从而能够有效地氛围灯的灯效亮度不够的问题;但是因为驱动器的制备工艺可能会存在差异,容易造成多个驱动器的时钟存在误差,那么在一些需要持续灯效的使用场景下,驱动器的时钟误差(累积到一定程度之后)会导致灯效不同步,进而影响用户的体验好感度。为此,本申请提出了如下实施例。After long-term research, the inventor of the present application has found that for electronic devices such as mobile phones, manufacturers generally install ambient lights on electronic devices in order to enrich the user experience, so as to play music, play games, take pictures and other usage scenarios. Create a lighting effect. In the related art, in order to create the above-mentioned lighting effect, there are mainly two solutions for controlling ambient lights: one, one driver controls multiple ambient lights; second, multiple drivers control multiple ambient lights one-to-one. Among them, the advantages and disadvantages of the first solution are: the ambient light is easy to control and can maintain better consistency; however, because multiple ambient lights share one driver, it is easy to cause insufficient load capacity of the driver, resulting in insufficient lighting effect brightness of the ambient light. . The pros and cons of the second solution are: since each ambient light has a separate driver, each ambient light can obtain a sufficiently large current, so as to effectively solve the problem of insufficient brightness of the ambient light; but because There may be differences in the preparation process of the driver, which may easily cause errors in the clocks of multiple drivers. In some usage scenarios that require continuous lighting effects, the clock errors of the drivers (after accumulating to a certain extent) will cause the lighting effects to be out of sync, and then Affect the user's experience favorability. To this end, the present application proposes the following embodiments.

参阅图1,图1是本申请提供的用于电子设备的氛围灯的控制方法一实施例的流程示意图。该控制方法包括:Referring to FIG. 1 , FIG. 1 is a schematic flowchart of an embodiment of a method for controlling an ambient light for an electronic device provided by the present application. The control method includes:

S101:获取氛围灯的控制指令。S101: Obtain a control instruction of the ambient light.

本实施例中,控制指令主要是用于在用户与电子设备进行交互的过程中,将用户对氛围灯的使用需求转化成电子设备能够识别的程序语言。其中,用户对氛围灯的使用需求可以是长亮、闪烁、跳动、滚动等;而电子设备则可以将上述使用需求以程序语言的形式进行存储,并可以根据用户的具体使用需求(也即是对应的控制指令)进行相应的调用,继而控制氛围灯按照既定的规则工作以实现上述的使用需求,从而实现两者的交互过程。In this embodiment, the control instruction is mainly used to convert the user's requirement for using the ambient light into a program language that can be recognized by the electronic device during the interaction between the user and the electronic device. Among them, the user's needs for the use of the ambient light can be long-lasting, flashing, beating, scrolling, etc.; and the electronic device can store the above-mentioned use needs in the form of a program language, and can be based on the user's specific use needs (that is, Corresponding control instructions) to make corresponding calls, and then control the ambient light to work according to the established rules to achieve the above-mentioned use requirements, so as to realize the interaction process between the two.

在一些实施方式中,电子设备的应用程序(Application,简称:APP)中可以设置有对应于氛围灯的功能选项。其中,应用程序可以是游戏类、摄影美图类、音乐电台类等,功能选项可以对应于氛围灯的长亮、闪烁、跳动、滚动等,以便于用户将应用程序与氛围灯配合使用。此时,氛围灯可以设置于电子设备。进一步地,当用户开启应用程序,并选择相应的功能选项之后,电子设备的处理器(也即是驱动层面)可以获取来自应用程序(也即是应用层面)的关于氛围灯的控制指令,继而执行该控制指令。In some embodiments, an application program (Application, APP for short) of the electronic device may be provided with function options corresponding to the ambient light. Among them, the application can be games, photography pictures, music radio, etc., and the function options can correspond to the long-on, flashing, jumping, scrolling, etc. of the ambient light, so that the user can use the application with the ambient light. At this time, the ambient light can be installed in the electronic device. Further, when the user opens the application and selects the corresponding function option, the processor of the electronic device (that is, the driver level) can obtain the control instructions about the ambient light from the application (that is, the application level), and then Execute the control command.

在其它一些实施方式中,电子设备还可以与其它诸如智能手表的穿戴设备通过WiFi、蓝牙等通信方式进行交互。此时,氛围灯可以设置于电子设备。进一步地,当用户佩戴智能手表之后,智能手表可以监测用户的脑电、心电、眼点、肌电、呼吸、脉搏、血氧饱和度等生命体征,该生命体征可以用于评估用户的当前状态,并生成相应的控制指令。其中,该控制指令可以包括关于氛围灯的控制指令、关于音乐类型的控制指令中的至少一种,以使得两者配合使用。此时,电子设备可以获取来自智能手表的关于氛围灯和关于音乐类型的控制指令,继而执行该控制指令。In some other embodiments, the electronic device may also interact with other wearable devices such as smart watches through WiFi, Bluetooth and other communication means. At this time, the ambient light can be installed in the electronic device. Further, when the user wears the smart watch, the smart watch can monitor the user's EEG, ECG, eye point, EMG, respiration, pulse, blood oxygen saturation and other vital signs, which can be used to evaluate the user's current status. state and generate corresponding control instructions. Wherein, the control instruction may include at least one of a control instruction related to the ambient light and a control instruction related to the type of music, so that the two can be used together. At this time, the electronic device can acquire the control instructions about the ambient light and the type of music from the smart watch, and then execute the control instructions.

在其它另一些实施方式中,电子设备还可以与其它诸如智能音箱的家电设备通过WiFi、蓝牙等通信方式进行交互。此时,氛围灯可以设置于智能音箱。进一步地,当用户通过电子设备的应用程序选择相应的功能选项之后,电子设备的处理器(也即是驱动层面)可以获取来自应用程序(也即是应用层面)的关于氛围灯的控制指令,继而将该控制指令发送给智能音箱,使之执行该控制指令。In other embodiments, the electronic device may also interact with other home appliances such as smart speakers through WiFi, Bluetooth and other communication means. At this time, the ambient light can be set on the smart speaker. Further, after the user selects the corresponding function option through the application program of the electronic device, the processor of the electronic device (that is, the driver level) can obtain the control instructions about the ambient light from the application program (that is, the application level), Then, the control command is sent to the smart speaker to execute the control command.

进一步地,控制指令除了对应于氛围灯的长亮、闪烁、跳动、滚动等使用需求之外,还可以包括开始、定时、循环、延时、停止等控制方式,以便于用户对氛围灯进行相应的控制。其中,控制指令可以以数组的形式传输,以增加控制指令这类数据在传输过程中的整体性,并降低其它数据传输对控制指令的干扰。Further, in addition to corresponding to the usage requirements of the ambient light such as long on, flickering, beating, rolling, etc., the control command may also include control methods such as start, timing, cycle, delay, and stop, so as to facilitate the user to respond to the ambient light. control. Among them, the control command can be transmitted in the form of an array, so as to increase the integrity of the data such as the control command in the transmission process, and reduce the interference of other data transmission on the control command.

S102:响应于控制指令,调用电子设备的系统时钟。S102: In response to the control instruction, call the system clock of the electronic device.

一般地,时钟对于电子设备而言是至关重要的,它是电子设备内各个电子元器件及结构件协同工作的节拍。Generally, a clock is very important to an electronic device, and it is the rhythm at which various electronic components and structural components in the electronic device work together.

本实施例中,电子设备的系统时钟可以是其处理器(Central Processing Unit,CPU)的时钟。随着科技的发展,电子设备的系统时钟还可以是其系统级芯片(System onChip,SoC)的时钟。其中,系统级芯片上一般都集成有多个诸如CPU、串口、DRAM(DynamicRandom Access Memory,动态随机存取存储器)控制器、GPIO(General Purpose InputOutput,通用型之输入输出)等电子元器件,SoC的时钟可以用来协调其内部的电子元器件。基于此,处理器的时钟或SoC的时钟往往被称为系统时钟。与此对应的,氛围灯、显示屏等电子元器件的驱动器的时钟往往被称为外设时钟。相较于外设时钟,系统时钟往往具有更高的精确度。In this embodiment, the system clock of the electronic device may be the clock of its processor (Central Processing Unit, CPU). With the development of science and technology, the system clock of an electronic device may also be the clock of its system-on-chip (SoC). Among them, the system-on-chip generally integrates multiple electronic components such as CPU, serial port, DRAM (Dynamic Random Access Memory) controller, GPIO (General Purpose Input Output, general-purpose input and output) and other electronic components, SoC The clock can be used to coordinate its internal electronic components. Based on this, the processor's clock or the SoC's clock is often referred to as the system clock. Correspondingly, the clocks of drivers of electronic components such as ambient lights and display screens are often referred to as peripheral clocks. System clocks tend to be more precise than peripheral clocks.

基于上述的详细描述,用户通过电子设备上的应用程序生成相应的控制指令之后,电子设备的处理器响应于该控制指令,并调用电子设备的系统时钟(具体可以是处理器的时钟),以便于进行后续的处理。如此设置,可以增加氛围灯的控制的精确性。Based on the above detailed description, after the user generates the corresponding control command through the application program on the electronic device, the processor of the electronic device responds to the control command and calls the system clock of the electronic device (specifically, the clock of the processor), so that for subsequent processing. In this way, the control accuracy of the ambient light can be increased.

S103:将控制指令调制成系统时钟的函数,以形成相应的控制模型。S103: Modulate the control instruction into a function of the system clock to form a corresponding control model.

不论是氛围灯的长亮、闪烁、跳动、滚动等使用需求,还是氛围灯的开始、定时、循环、延时、停止等控制方式,都是跟时间有关的参数。换句话说,如果氛围灯不在一定的时间参数下工作,那么上述的使用需求和控制方式都是毫无意义的。因此,电子设备的处理器在获取氛围灯的控制指令,并调用其系统时钟之后,会将控制指令调制成系统时钟的函数,以形成相应的控制模型。Whether it is the use requirements of the ambient light, such as long-term lighting, flickering, beating, rolling, etc., or the control methods of the ambient light such as start, timing, cycle, delay, and stop, they are all time-related parameters. In other words, if the ambient light does not work under certain time parameters, then the above usage requirements and control methods are meaningless. Therefore, after the processor of the electronic device obtains the control command of the ambient light and calls its system clock, it modulates the control command into a function of the system clock to form a corresponding control model.

进一步地,控制模型可以包括氛围灯的光效颜色、光效模式和光效节奏。其中,光效颜色可以对应于红、橙、黄、绿、青、蓝、紫中的任意一种及其组合,光效模式可以对应于长亮、闪烁、跳动、滚动中的任意一种及其组合,光效节奏可以对应于开始、定时、循环、延时、停止中的任意一种及其组合。Further, the control model may include the light effect color, light effect mode and light effect rhythm of the ambient light. Among them, the light effect color can correspond to any one of red, orange, yellow, green, cyan, blue, and purple and its combination, and the light effect mode can correspond to any one of long bright, flashing, beating, rolling, and Its combination, the light effect rhythm can correspond to any one of start, timing, loop, delay, stop and its combination.

需要说明的是,为了增加控制指令这类数据在传输过程中的整体性,并降低其它数据传输对控制指令的干扰,控制指令可以以数组的形式传输。因此,处理器(也即是驱动层面)获取来自应用程序(也即是应用层面)的关于氛围灯的控制指令之后,可以对数组形式的控制指令进行分解,以获得氛围灯对应的发光点序号、光效颜色、光效组合和光效频率,继而将氛围灯对应的发光点序号、光效颜色、光效组合和光效频率调制成系统时钟的函数,从而形成相应的控制模型。其中,发光点序号主要是在氛围灯的数量为多个时对其进行排序,以使得多个氛围灯在时钟周期内按照既定的顺序发光。显然,当氛围灯的数量为一个时,氛围灯自身进行循环。It should be noted that, in order to increase the integrity of data such as control commands in the transmission process, and reduce the interference of other data transmissions on the control commands, the control commands may be transmitted in the form of an array. Therefore, after the processor (that is, the driver level) obtains the control instructions about the ambient light from the application (that is, the application level), it can decompose the control instructions in the form of an array to obtain the sequence number of the light-emitting point corresponding to the ambient light. , light effect color, light effect combination and light effect frequency, and then modulate the luminous point number, light effect color, light effect combination and light effect frequency corresponding to the ambient light into a function of the system clock to form a corresponding control model. Wherein, the sequence numbers of the light-emitting points are mainly used to sort the ambient lights when there are multiple ambient lights, so that the multiple ambient lights emit light in a predetermined order within the clock cycle. Obviously, when the number of ambient lights is one, the ambient lights cycle by themselves.

S104:利用控制模型对氛围灯的驱动器进行控制,以使得氛围灯按照控制模型发光。S104: Use the control model to control the driver of the ambient light, so that the ambient light emits light according to the control model.

基于上述的详细描述,控制模型与系统时钟有关,以使得氛围灯在时钟周期内执行相应的控制指令,从而按照一定的规律发光,进而实现相应的灯光效果。进一步地,为了便于控制氛围灯,氛围灯一般都会耦接一个驱动器。其中,驱动器通电则氛围灯发光,驱动器断电则氛围灯熄灭;驱动器流过的电流大则氛围灯发出的光强,驱动器流过的电流小则氛围灯发出的光弱。显然,驱动器相当于氛围灯的一个开关;驱动器的开启、关闭、电流强弱在时钟周期内按照一定的规律变化,即可实现相应的灯光效果。因此,步骤S104的执行,实质上是在系统时钟的周期内,控制驱动器的开启、关闭和电能大小。Based on the above detailed description, the control model is related to the system clock, so that the ambient light executes the corresponding control command within the clock cycle, so as to emit light according to a certain rule, thereby realizing the corresponding lighting effect. Further, in order to facilitate the control of the ambient light, the ambient light is generally coupled to a driver. Among them, when the driver is powered on, the ambient light is illuminated, and when the driver is powered off, the ambient light is off; if the current flowing through the driver is large, the light emitted by the ambient light is strong, and the current flowing through the driver is small, the light emitted by the ambient light is weak. Obviously, the driver is equivalent to a switch of the ambient light; the opening, closing, and current intensity of the driver change according to a certain law within the clock cycle, and the corresponding lighting effect can be realized. Therefore, the execution of step S104 is essentially to control the turn-on, turn-off and power level of the driver within the period of the system clock.

进一步地,为了使得氛围灯能够发光不同颜色的光,氛围灯一般会集成阵列式排布的RGB像素单元。因此,驱动器还可以进一步对RGB像素单元进行控制,以使得氛围灯发出的光线能够基于三原色原理混色而成相应的颜色。Further, in order to enable the ambient light to emit light of different colors, the ambient light generally integrates RGB pixel units arranged in an array. Therefore, the driver can further control the RGB pixel unit, so that the light emitted by the ambient light can be mixed into corresponding colors based on the principle of three primary colors.

综上,本实施例另辟蹊径地在获取氛围灯的控制指令之后,调用电子设备的系统时钟,并将控制指令调制成系统时钟的函数,以对氛围灯的驱动器进行控制,从而使得氛围灯在系统时钟的周期内执行控制指令而发光,以对氛围灯的发光作精细化控制,进而在保持氛围灯的亮度的情况下,改善氛围灯的控制精确性,增加用户的体验好感度。To sum up, in this embodiment, after acquiring the control command of the ambient light, the system clock of the electronic device is called, and the control command is modulated into a function of the system clock, so as to control the driver of the ambient light, so that the ambient light is in the system. The control command is executed to emit light within the cycle of the clock, so as to finely control the lighting of the ambient light, thereby improving the control accuracy of the ambient light while maintaining the brightness of the ambient light, and increasing the user's experience favorability.

参阅图2,图2是本申请提供的用于电子设备的氛围灯的控制方法另一实施例的流程示意图。该控制方法包括:Referring to FIG. 2 , FIG. 2 is a schematic flowchart of another embodiment of a control method for an ambient light for an electronic device provided by the present application. The control method includes:

S201:获取氛围灯的控制指令;其中,氛围灯的数量为多个。S201: Acquire a control instruction of the ambient light; wherein, the number of the ambient light is multiple.

本实施例中,控制指令主要是用于在用户与电子设备进行交互的过程中,将用户对氛围灯的使用需求转化成电子设备能够识别的程序语言。其中,用户对氛围灯的使用需求可以是长亮、闪烁、跳动、滚动等;而电子设备则可以将上述使用需求以程序语言的形式进行存储,并可以根据用户的具体使用需求(也即是对应的控制指令)进行相应的调用,继而控制氛围灯按照既定的规则工作以实现上述的使用需求,从而实现两者的交互过程。In this embodiment, the control instruction is mainly used to convert the user's requirement for using the ambient light into a program language that can be recognized by the electronic device during the interaction between the user and the electronic device. Among them, the user's needs for the use of the ambient light can be long-lasting, flashing, beating, scrolling, etc.; and the electronic device can store the above-mentioned use needs in the form of a program language, and can be based on the user's specific use needs (that is, Corresponding control instructions) to make corresponding calls, and then control the ambient light to work according to the established rules to achieve the above-mentioned use requirements, so as to realize the interaction process between the two.

进一步地,控制指令除了对应于氛围灯的长亮、闪烁、跳动、滚动等使用需求之外,还可以包括开始、定时、循环、延时、停止等控制方式,以便于用户对氛围灯进行相应的控制。其中,控制指令可以以数组的形式传输,以增加控制指令这类数据在传输过程中的整体性,并降低其它数据传输对控制指令的干扰。Further, in addition to corresponding to the usage requirements of the ambient light such as long on, flickering, beating, rolling, etc., the control command may also include control methods such as start, timing, cycle, delay, and stop, so as to facilitate the user to respond to the ambient light. control. Among them, the control command can be transmitted in the form of an array, so as to increase the integrity of the data such as the control command in the transmission process, and reduce the interference of other data transmission on the control command.

需要说明的是,多个氛围灯可以设置于电子设备,并可以排布呈直线形、圆形、方形等形状,以使得多个氛围灯能够配合使用,进而为用户带来更加丰富的灯光效果。It should be noted that multiple ambient lights can be installed on electronic devices, and can be arranged in shapes such as straight lines, circles, squares, etc., so that multiple ambient lights can be used together, thereby bringing more abundant lighting effects to users. .

S202:响应于控制指令,调用电子设备的系统时钟。S202: In response to the control instruction, call the system clock of the electronic device.

本实施例中,电子设备的系统时钟可以是其处理器的时钟。随着科技的发展,电子设备的系统时钟还可以是其SoC的时钟。其中,SoC上一般都集成有多个诸如CPU、串口、DRAM控制器、GPIO等电子元器件,SoC的时钟可以用来协调其内部的电子元器件。基于此,处理器的时钟或SoC的时钟往往被称为系统时钟。与此对应的,氛围灯、显示屏等电子元器件的驱动器的时钟往往被称为外设时钟。相较于外设时钟,系统时钟往往具有更高的精确度。In this embodiment, the system clock of the electronic device may be the clock of its processor. With the development of technology, the system clock of an electronic device can also be the clock of its SoC. Among them, a number of electronic components such as CPU, serial port, DRAM controller, and GPIO are generally integrated on the SoC. The clock of the SoC can be used to coordinate its internal electronic components. Based on this, the processor's clock or the SoC's clock is often referred to as the system clock. Correspondingly, the clocks of drivers of electronic components such as ambient lights and display screens are often referred to as peripheral clocks. System clocks tend to be more precise than peripheral clocks.

基于上述的详细描述,用户通过电子设备上的应用程序生成相应的控制指令之后,电子设备的处理器响应于该控制指令,并调用电子设备的系统时钟(具体可以是处理器的时钟),以便于进行后续的处理。如此设置,可以增加氛围灯的控制的精确性。Based on the above detailed description, after the user generates the corresponding control command through the application program on the electronic device, the processor of the electronic device responds to the control command and calls the system clock of the electronic device (specifically, the clock of the processor), so that for subsequent processing. In this way, the control accuracy of the ambient light can be increased.

S203:将控制指令调制成系统时钟的函数,以形成相应的控制模型。S203: Modulate the control instruction into a function of the system clock to form a corresponding control model.

不论是氛围灯的长亮、闪烁、跳动、滚动等使用需求,还是氛围灯的开始、定时、循环、延时、停止等控制方式,都是跟时间有关的参数。换句话说,如果氛围灯不在一定的时间参数下工作,那么上述的使用需求和控制方式都是毫无意义的。尤其是在氛围灯的数量为多个的情况下,如果没有一个相对统一的时钟系统对多个氛围灯的工作进行协调,可能会因为多个氛围灯的工作存在误差而致使灯效不同步,进而影响用户的体验好感度。因此,电子设备的处理器在获取氛围灯的控制指令,并调用其系统时钟之后,会将控制指令调制成系统时钟的函数,以形成相应的控制模型。Whether it is the use requirements of the ambient light, such as long-term lighting, flickering, beating, rolling, etc., or the control methods of the ambient light such as start, timing, cycle, delay, and stop, they are all time-related parameters. In other words, if the ambient light does not work under certain time parameters, then the above usage requirements and control methods are meaningless. Especially in the case of multiple ambient lights, if there is no relatively unified clock system to coordinate the work of multiple ambient lights, the lighting effects may be out of sync due to errors in the work of multiple ambient lights. This in turn affects the user experience. Therefore, after the processor of the electronic device obtains the control command of the ambient light and calls its system clock, it modulates the control command into a function of the system clock to form a corresponding control model.

进一步地,控制模型可以包括氛围灯的光效颜色、光效模式和光效节奏。其中,光效颜色可以对应于红、橙、黄、绿、青、蓝、紫中的任意一种及其组合,光效模式可以对应于长亮、闪烁、跳动、滚动中的任意一种及其组合,光效节奏可以对应于开始、定时、循环、延时、停止中的任意一种及其组合。Further, the control model may include the light effect color, light effect mode and light effect rhythm of the ambient light. Among them, the light effect color can correspond to any one of red, orange, yellow, green, cyan, blue, and purple and its combination, and the light effect mode can correspond to any one of long bright, flashing, beating, rolling, and Its combination, the light effect rhythm can correspond to any one of start, timing, loop, delay, stop and its combination.

需要说明的是,为了增加控制指令这类数据在传输过程中的整体性,并降低其它数据传输对控制指令的干扰,控制指令可以以数组的形式传输。因此,处理器(也即是驱动层面)获取来自应用程序(也即是应用层面)的关于氛围灯的控制指令之后,可以对数组形式的控制指令进行分解,以获得氛围灯对应的发光点序号、光效颜色、光效组合和光效频率,继而将氛围灯对应的发光点序号、光效颜色、光效组合和光效频率调制成系统时钟的函数,从而形成相应的控制模型。其中,发光点序号主要是在氛围灯的数量为多个时对其进行排序,以使得多个氛围灯在时钟周期内按照既定的顺序发光。It should be noted that, in order to increase the integrity of data such as control commands in the transmission process, and reduce the interference of other data transmissions on the control commands, the control commands may be transmitted in the form of an array. Therefore, after the processor (that is, the driver level) obtains the control instructions about the ambient light from the application (that is, the application level), it can decompose the control instructions in the form of an array to obtain the sequence number of the light-emitting point corresponding to the ambient light. , light effect color, light effect combination and light effect frequency, and then modulate the luminous point number, light effect color, light effect combination and light effect frequency corresponding to the ambient light into a function of the system clock to form a corresponding control model. Wherein, the sequence numbers of the light-emitting points are mainly used to sort the ambient lights when there are multiple ambient lights, so that the multiple ambient lights emit light in a predetermined order within the clock cycle.

S204:利用控制模型对多个氛围灯的驱动器分别进行控制,以使得多个氛围灯按照控制模型发光;其中,每一氛围灯均分别对应设置有一个驱动器。S204: Use the control model to control the drivers of the plurality of ambient lights respectively, so that the plurality of ambient lights emit light according to the control model; wherein, each ambient light is provided with a corresponding driver.

基于上述的详细描述,控制模型与系统时钟有关,以使得多个氛围灯在时钟周期内执行相应的控制指令,从而按照一定的规律发光,进而实现相应的灯光效果。进一步地,为了便于控制多个氛围灯,并使得每一个氛围灯都能够获得足够大的电能,可以给每一个氛围灯均分别耦接一个驱动器。此时,驱动器相当于氛围灯的一个开关,每一个氛围灯的发光与否,发出的光线的强弱均可以单独地进行控制,以使得多个驱动器的开启、关闭、电流强弱能够在时钟周期内按照一定的规律变化,即可实现相应的灯光效果。其中,由于控制模型是基于系统时钟生成的,使得多个驱动器能够在一个相对统一的时钟系统下分别对多个氛围灯的工作进行协调,从而能够降低多个氛围灯的工作存在误差的风险,增加多个氛围灯的灯效的一致性,进而改善用户的体验好感度。因此,步骤S204的执行,实质上是在系统时钟的周期内,分别控制多个驱动器的开启、关闭和电能大小。Based on the above detailed description, the control model is related to the system clock, so that a plurality of ambient lights execute corresponding control instructions within a clock cycle, so as to emit light according to a certain rule, thereby realizing corresponding lighting effects. Further, in order to facilitate the control of a plurality of ambient lights and enable each ambient light to obtain sufficient power, a driver may be separately coupled to each ambient light. At this time, the driver is equivalent to a switch of the ambient light, and the intensity of the light emitted by each ambient light can be individually controlled, so that the on, off, and current strength of multiple drivers can be controlled at the clock. The corresponding lighting effect can be achieved by changing according to a certain rule in the cycle. Among them, since the control model is generated based on the system clock, multiple drivers can coordinate the work of multiple ambient lights under a relatively unified clock system, thereby reducing the risk of errors in the work of multiple ambient lights. Increase the consistency of the lighting effects of multiple ambient lights, thereby improving the user's experience favorability. Therefore, the execution of step S204 is essentially to control the turn-on, turn-off and power levels of the multiple drivers respectively within the period of the system clock.

进一步地,为了使得氛围灯能够发光不同颜色的光,氛围灯一般会集成阵列式排布的RGB像素单元。因此,驱动器还可以进一步对RGB像素单元进行控制,以使得氛围灯发出的光线能够基于三原色原理混色而成相应的颜色。Further, in order to enable the ambient light to emit light of different colors, the ambient light generally integrates RGB pixel units arranged in an array. Therefore, the driver can further control the RGB pixel unit, so that the light emitted by the ambient light can be mixed into corresponding colors based on the principle of three primary colors.

综上,本实施例另辟蹊径地在获取氛围灯的控制指令之后,调用电子设备的系统时钟,并将控制指令调制成系统时钟的函数,以使得多个驱动器能够在一个相对统一的时钟系统下分别对多个氛围灯的工作进行协调,从而使得多个氛围灯在系统时钟的周期内能够更加同步地执行控制指令而发光。如此设置,既使得每一个氛围灯均能够获取足够大的电能,以保证多个氛围灯的亮度;又使得每一个氛围灯的驱动器均能够在电子设备的系统时钟下协调工作,以保证多个氛围灯的灯效的一致性,进而改善用户的体验好感度。特别是在需要长时间、不间断使用多个氛围灯的情况下,如此设置能够获取更好的灯效。To sum up, this embodiment takes a different approach to call the system clock of the electronic device after acquiring the control command of the ambient light, and modulate the control command into a function of the system clock, so that multiple drivers can be separately operated under a relatively unified clock system. Coordinate the work of multiple ambient lights, so that multiple ambient lights can execute control instructions more synchronously in the cycle of the system clock to emit light. This setting not only enables each ambient light to obtain enough power to ensure the brightness of multiple ambient lights, but also enables the drivers of each ambient light to work in coordination under the system clock of the electronic device to ensure multiple ambient lights. The consistency of the lighting effect of the ambient light, thereby improving the user's experience favorability. Especially in the case where multiple ambient lights need to be used for a long time and continuously, this setting can obtain better lighting effects.

参阅图3,图3是本申请提供的电子设备一实施例的结构示意图。Referring to FIG. 3 , FIG. 3 is a schematic structural diagram of an embodiment of an electronic device provided by the present application.

本实施例的电子设备30可以包括获取模块31、调用模块32、调制模块33和控制模块34。其中,获取模块31主要是用于获取氛围灯的控制指令;调用模块32主要是用于响应于控制指令,调用电子设备的系统时钟;调制模块33主要是用于将控制指令调制成系统时钟的函数,以形成相应的控制模型;控制模块34主要是用于利用控制模型对氛围灯的驱动器进行控制,以使得氛围灯按照控制模型发光。The electronic device 30 in this embodiment may include an acquisition module 31 , a call module 32 , a modulation module 33 and a control module 34 . Among them, the acquisition module 31 is mainly used to acquire the control instructions of the ambient light; the calling module 32 is mainly used to call the system clock of the electronic device in response to the control instructions; the modulation module 33 is mainly used to modulate the control instructions into the system clock. function to form a corresponding control model; the control module 34 is mainly used to control the driver of the ambient light by using the control model, so that the ambient light emits light according to the control model.

需要说明的是,本实施例的电子设备30是基于上述任一管理方法实施例的一虚拟终端,其实施原理和步骤类似,在此不再赘述。It should be noted that the electronic device 30 in this embodiment is a virtual terminal based on any of the above management method embodiments, and its implementation principles and steps are similar, which will not be repeated here.

共同参阅图4及图5,图4是本申请提供的电子设备另一实施例的结构示意图,图5是图4中电子设备一整机的结构示意图,图6是图4中电子设备另一整机的结构示意图。Referring to FIG. 4 and FIG. 5 together, FIG. 4 is a schematic structural diagram of another embodiment of the electronic device provided by the present application, FIG. 5 is a structural schematic diagram of a complete electronic device in FIG. 4 , and FIG. 6 is another electronic device in FIG. 4 Schematic diagram Schematic diagram of the structure of the whole machine.

本申请实施例中,电子设备40可以是手机、平板电脑、笔记本电脑、可穿戴设备等便携装置。其中,本实施例以电子设备40为手机为例进行示例性的说明。In this embodiment of the present application, the electronic device 40 may be a portable device such as a mobile phone, a tablet computer, a notebook computer, and a wearable device. In this embodiment, the electronic device 40 is a mobile phone as an example for illustrative description.

电子设备40可以包括氛围灯41、处理器42、存储器43、射频电路44、输入单元45、显示单元46、摄像头模组47和电源48。其中,氛围灯41可以集成有驱动器411和RGB像素单元412,驱动器411用于控制氛围灯41(具体为RGB像素单元412)进行发光,并使得RGB像素单元412基于三原色原理混色成不同的颜色。进一步地,驱动器411、存储器43、射频电路44、输入单元45、显示单元46、摄像头模组47可以通过诸如数据总线与处理器42耦接。The electronic device 40 may include an ambient light 41 , a processor 42 , a memory 43 , a radio frequency circuit 44 , an input unit 45 , a display unit 46 , a camera module 47 and a power supply 48 . The ambient light 41 may be integrated with a driver 411 and an RGB pixel unit 412, and the driver 411 is used to control the ambient light 41 (specifically, the RGB pixel unit 412) to emit light, and make the RGB pixel unit 412 mix colors into different colors based on the principle of three primary colors. Further, the driver 411, the memory 43, the radio frequency circuit 44, the input unit 45, the display unit 46, and the camera module 47 can be coupled to the processor 42 through, for example, a data bus.

需要说明的是,如果氛围灯41的数量为多个,那么每一个氛围灯41均可以集成一个驱动器412,且每一个驱动器412均可以通过诸如数据总线与处理器42耦接,以使得多个驱动器412能够在一个相对统一的时钟系统下分别对多个氛围灯41(具体为多个对应的RGB像素单元412)的工作进行协调,从而使得多个氛围灯41在系统时钟的周期内能够更加同步地执行控制指令而发光。It should be noted that if the number of ambient lights 41 is multiple, then each ambient light 41 may integrate a driver 412, and each driver 412 may be coupled to the processor 42 through, for example, a data bus, so that multiple The driver 412 can coordinate the work of the plurality of ambient lights 41 (specifically, a plurality of corresponding RGB pixel units 412 ) under a relatively unified clock system, so that the plurality of ambient lights 41 can be more efficient in the period of the system clock. The control command is executed synchronously to emit light.

本实施例中,射频电路44可以用于收发信号,以便于与其它电子设备进行交互;输入单元45可以用于供用户输入信息,具体可以包括触控面板451、操作按键452等;显示单元46用于显示画面,以便于指示用户进行相应的输入操作,具体可以包括显示面板461等;摄像头模组47可以用于拍照、录像、身份识别等;电源48则可以用于为电子设备40中的各个电子元器件、结构件等提供电能。In this embodiment, the radio frequency circuit 44 can be used to send and receive signals so as to facilitate interaction with other electronic devices; the input unit 45 can be used for the user to input information, and specifically can include a touch panel 451, operation buttons 452, etc.; the display unit 46 It is used to display the screen, so as to instruct the user to perform corresponding input operations, which may specifically include the display panel 461, etc.; the camera module 47 can be used for taking pictures, video recording, identification, etc.; Various electronic components, structural parts, etc. provide electrical energy.

进一步地,存储器43用于存储计算机程序,处理器42在工作时执行计算机程序以实现如下方法步骤:Further, the memory 43 is used to store the computer program, and the processor 42 executes the computer program during operation to realize the following method steps:

获取氛围灯的控制指令;响应于控制指令,调用电子设备的系统时钟;将控制指令调制成系统时钟的函数,以形成相应的控制模型;利用控制模型对氛围灯的驱动器进行控制,以使得氛围灯按照控制模型发光。Obtain the control command of the ambient light; in response to the control command, call the system clock of the electronic device; modulate the control command into a function of the system clock to form a corresponding control model; use the control model to control the driver of the ambient light to make the atmosphere The lamps emit light according to the control model.

需要说明的是,本实施例的电子设备40是基于上述任一方法实施例的一实体终端,其实施原理和步骤类似,在此不再赘述。因此,计算机程序在被处理器42执行时,还可以实现上述任一实施例中的其它方法步骤,在此不再赘述。It should be noted that the electronic device 40 in this embodiment is a physical terminal based on any of the above method embodiments, and its implementation principles and steps are similar, which will not be repeated here. Therefore, when the computer program is executed by the processor 42, other method steps in any of the foregoing embodiments may also be implemented, which will not be repeated here.

在一些实施方式中,如图5所示,氛围灯41可以与摄像头模组47配合使用。其中,摄像头模组47可以是升降式摄像头,氛围灯41可以设置于摄像头模组47,以在用户使用摄像头模组47时,氛围灯41可以随之从电子设备40内伸出,也即是两者可以共用同一升降机构。进一步地,摄像头模组47的数量可以为一个,氛围灯41的数量可以为三个。此时,氛围灯41既可以在阴天、天黑等使用环境下起到补光的作用,又可以在延时自拍、录制视频等使用模式下起到提醒的作用。In some embodiments, as shown in FIG. 5 , the ambient light 41 can be used in conjunction with the camera module 47 . The camera module 47 may be a lift-type camera, and the ambient light 41 may be disposed on the camera module 47, so that when the user uses the camera module 47, the ambient light 41 can protrude from the electronic device 40 accordingly, that is, Both can share the same lifting mechanism. Further, the number of camera modules 47 may be one, and the number of ambient lights 41 may be three. At this time, the ambient light 41 can not only play a role of supplementary light in use environments such as cloudy days and dark days, but also play a role of reminding in use modes such as time-lapse Selfie and video recording.

在其它一些实施方式中,如图6所示,氛围灯41可以与摄像头模组47配合使用。其中,摄像头模组47可以是屏下式摄像头,氛围灯41邻近摄像头模组47设置。进一步地,摄像头模组47的数量可以为两个,氛围灯41的数量可以为一个,它们可以线性排布。此时,氛围灯41既可以在阴天、天黑等使用环境下起到补光的作用,又可以在延时自拍、录制视频等使用模式下起到提醒的作用。In other embodiments, as shown in FIG. 6 , the ambient light 41 can be used in conjunction with the camera module 47 . The camera module 47 may be an under-screen camera, and the ambient light 41 is disposed adjacent to the camera module 47 . Further, the number of camera modules 47 may be two, and the number of ambient lights 41 may be one, and they may be arranged linearly. At this time, the ambient light 41 can not only play a role of supplementary light in use environments such as cloudy days and dark days, but also play a role of reminding in use modes such as time-lapse Selfie and video recording.

在其它另一些实施方式中,氛围灯41还可以与电子设备40上安装的游戏类、音乐电台类等应用程序配合使用,以在用户玩游戏、播放音乐等使用场景下营造一种灯光效果,从而增加用户对电子设备40的体验好感度。In other other implementations, the ambient light 41 can also be used in conjunction with applications such as games and music stations installed on the electronic device 40 to create a lighting effect when the user is playing games, playing music, etc. Thereby, the user's favorable feeling for the experience of the electronic device 40 is increased.

参阅图7,图7是本申请提供的计算机存储介质一实施例的结构示意图。Referring to FIG. 7 , FIG. 7 is a schematic structural diagram of an embodiment of a computer storage medium provided by the present application.

本实施例的计算机存储介质70用于存储计算机程序71,计算机程序71能够被处理器执行以实现如下方法步骤:The computer storage medium 70 of this embodiment is used to store a computer program 71, and the computer program 71 can be executed by a processor to implement the following method steps:

获取氛围灯的控制指令;响应于控制指令,调用电子设备的系统时钟;将控制指令调制成系统时钟的函数,以形成相应的控制模型;利用控制模型对氛围灯的驱动器进行控制,以使得氛围灯按照控制模型发光。Obtain the control command of the ambient light; in response to the control command, call the system clock of the electronic device; modulate the control command into a function of the system clock to form a corresponding control model; use the control model to control the driver of the ambient light to make the atmosphere The lamp emits light according to the control model.

需要说明的是,本实施例的计算机程序71所执行的方法步骤是基于上述任一方法实施例的,其实施原理和步骤类似。因此,计算机程序71在被处理器执行时,还可以实现上述任一实施例中的其它方法步骤,在此不再赘述。It should be noted that the method steps executed by the computer program 71 in this embodiment are based on any of the above method embodiments, and the implementation principles and steps are similar. Therefore, when the computer program 71 is executed by the processor, other method steps in any of the foregoing embodiments may also be implemented, which will not be repeated here.

本申请的实施例以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本申请各个实施方式所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。When the embodiments of the present application are implemented in the form of software functional units and are sold or used as independent products, they may be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the present application can be embodied in the form of software products in essence, or the parts that contribute to the prior art, or all or part of the technical solutions, and the computer software products are stored in a storage medium , including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, Read-Only Memory (ROM, Read-Only Memory), Random Access Memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes .

以上所述仅为本申请的部分实施例,并非因此限制本申请的保护范围,凡是利用本申请说明书及附图内容所作的等效装置或等效流程变换,或直接或间接运用在其它相关的技术领域,均同理包括在本申请的专利保护范围内。The above descriptions are only part of the embodiments of the present application, which are not intended to limit the protection scope of the present application. Any equivalent device or equivalent process transformation made by using the contents of the description and drawings of the present application, or directly or indirectly applied to other related The technical field is similarly included in the scope of patent protection of this application.

Claims (10)

1. A control method of an atmosphere lamp applied to an electronic device is characterized by comprising the following steps:
acquiring a control instruction of the atmosphere lamp;
responding to the control instruction, and calling a system clock of the electronic equipment;
modulating the control instruction into a function of the system clock to form a corresponding control model;
and controlling a driver of the atmosphere lamp by using the control model so that the atmosphere lamp emits light according to the control model.
2. The control method according to claim 1, wherein the number of the atmosphere lamps is plural, each atmosphere lamp is provided with a driver, and the drivers of the atmosphere lamps are controlled by the control model.
3. The control method according to claim 1, wherein the control model comprises light effect colors, light effect patterns and light effect cadences of the ambience lamps.
4. The control method of claim 1, wherein the step of controlling the driver of the ambience lamp using the control model comprises:
and controlling the opening, closing and power of the driver in the period of the system clock.
5. The control method of claim 1, wherein the control instructions are transmitted in an array and include start, timing, loop, delay, stop.
6. The method of claim 5, wherein the step of modulating the control commands as a function of the system clock is preceded by the step of:
and decomposing the control instruction to obtain the luminous point serial number, the luminous effect color, the luminous effect combination and the luminous effect frequency corresponding to the atmosphere lamp.
7. An electronic device, characterized in that the electronic device comprises:
the acquisition module is used for acquiring a control instruction of the atmosphere lamp;
the calling module is used for calling a system clock of the electronic equipment in response to the control instruction;
the modulation module is used for modulating the control instruction into a function of the system clock so as to form a corresponding control model;
and the control module is used for controlling the driver of the atmosphere lamp by utilizing the control model so that the atmosphere lamp emits light according to the control model.
8. An electronic device comprising an ambience lamp integrated with a driver, a processor, and a memory, the driver, the memory coupled with the processor;
wherein the memory is adapted to store a computer program which, when executed by the processor, is adapted to carry out the control method of any one of claims 1-6.
9. The electronic device of claim 8, further comprising a camera module, wherein the ambience light is used in combination with the camera module.
10. A computer storage medium having a computer program stored thereon, the computer program being executable by a processor to implement the control method of any one of claims 1 to 6.
CN202010245153.8A 2020-03-31 2020-03-31 Electronic equipment, control method of atmosphere lamp of electronic equipment and computer storage medium Pending CN111479370A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010245153.8A CN111479370A (en) 2020-03-31 2020-03-31 Electronic equipment, control method of atmosphere lamp of electronic equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010245153.8A CN111479370A (en) 2020-03-31 2020-03-31 Electronic equipment, control method of atmosphere lamp of electronic equipment and computer storage medium

Publications (1)

Publication Number Publication Date
CN111479370A true CN111479370A (en) 2020-07-31

Family

ID=71749334

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010245153.8A Pending CN111479370A (en) 2020-03-31 2020-03-31 Electronic equipment, control method of atmosphere lamp of electronic equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN111479370A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022028571A1 (en) * 2020-08-07 2022-02-10 广州小鹏汽车科技有限公司 Control method and device for atmosphere lamp, and vehicle and storage medium
CN114040548A (en) * 2021-10-29 2022-02-11 广西世纪创新显示电子有限公司 Lighting effect control method and related equipment of gaming display
CN114339372A (en) * 2022-01-04 2022-04-12 海信视像科技股份有限公司 Display device and control method
CN114355804A (en) * 2021-12-20 2022-04-15 广西世纪创新显示电子有限公司 Control method of eye-protection lamp, eye-protection lamp and computer storage medium
CN115604887A (en) * 2022-09-19 2023-01-13 联想(北京)有限公司(Cn) Atmosphere lamp group control method, control console and device

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060017409A1 (en) * 2004-07-09 2006-01-26 Hon Hai Precision Industry Co., Ltd. System and method for controlling luminance of an LED lamp
TW201125434A (en) * 2010-01-11 2011-07-16 Foxconn Tech Co Ltd Lamp control system
US20110292011A1 (en) * 2010-05-31 2011-12-01 Anapass Inc. Pll, display using the same, and method for timing controller to generate clock using the same
CN103676955A (en) * 2013-12-19 2014-03-26 北京航空航天大学 Satellite autonomous orbit control system for achieving distributed formation flight
CN105813264A (en) * 2016-04-21 2016-07-27 鹤壁市华美电气有限公司 Rhythm atmosphere lamp
CN106652858A (en) * 2016-09-29 2017-05-10 福州大学 Automatic detection system and method for compatibility anomaly of display
CN107226021A (en) * 2017-06-28 2017-10-03 上海均诺电子有限公司 Vehicle atmosphere lamp control method and system
CN108495402A (en) * 2018-02-26 2018-09-04 广东小天才科技有限公司 Method and device for adjusting microphone atmosphere lamp, microphone and storage medium
CN108777901A (en) * 2018-07-24 2018-11-09 中山市德马汽车零部件有限公司 A control circuit device for a multi-mode ambient light control system
CN208273307U (en) * 2018-06-25 2018-12-21 东莞仙童电子有限公司 A kind of synchronous control circuit for master lighting effect
CN109451150A (en) * 2018-10-22 2019-03-08 南昌黑鲨科技有限公司 Lamp imitates control method, control unit, intelligent terminal and computer readable storage medium
CN110177414A (en) * 2019-04-29 2019-08-27 努比亚技术有限公司 A kind of lamp light control method, wearable device and computer readable storage medium
CN110933170A (en) * 2019-11-29 2020-03-27 广东科徕尼智能科技有限公司 Multi-device linkage control method and device of ZigBee gateway and storage medium

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060017409A1 (en) * 2004-07-09 2006-01-26 Hon Hai Precision Industry Co., Ltd. System and method for controlling luminance of an LED lamp
TW201125434A (en) * 2010-01-11 2011-07-16 Foxconn Tech Co Ltd Lamp control system
US20110292011A1 (en) * 2010-05-31 2011-12-01 Anapass Inc. Pll, display using the same, and method for timing controller to generate clock using the same
CN102412835A (en) * 2010-05-31 2012-04-11 安纳帕斯股份有限公司 Pll, display using the same, and method for timing controller to generate clock using the same
CN103676955A (en) * 2013-12-19 2014-03-26 北京航空航天大学 Satellite autonomous orbit control system for achieving distributed formation flight
CN105813264A (en) * 2016-04-21 2016-07-27 鹤壁市华美电气有限公司 Rhythm atmosphere lamp
CN106652858A (en) * 2016-09-29 2017-05-10 福州大学 Automatic detection system and method for compatibility anomaly of display
CN107226021A (en) * 2017-06-28 2017-10-03 上海均诺电子有限公司 Vehicle atmosphere lamp control method and system
CN108495402A (en) * 2018-02-26 2018-09-04 广东小天才科技有限公司 Method and device for adjusting microphone atmosphere lamp, microphone and storage medium
CN208273307U (en) * 2018-06-25 2018-12-21 东莞仙童电子有限公司 A kind of synchronous control circuit for master lighting effect
CN108777901A (en) * 2018-07-24 2018-11-09 中山市德马汽车零部件有限公司 A control circuit device for a multi-mode ambient light control system
CN109451150A (en) * 2018-10-22 2019-03-08 南昌黑鲨科技有限公司 Lamp imitates control method, control unit, intelligent terminal and computer readable storage medium
CN110177414A (en) * 2019-04-29 2019-08-27 努比亚技术有限公司 A kind of lamp light control method, wearable device and computer readable storage medium
CN110933170A (en) * 2019-11-29 2020-03-27 广东科徕尼智能科技有限公司 Multi-device linkage control method and device of ZigBee gateway and storage medium

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022028571A1 (en) * 2020-08-07 2022-02-10 广州小鹏汽车科技有限公司 Control method and device for atmosphere lamp, and vehicle and storage medium
CN114040548A (en) * 2021-10-29 2022-02-11 广西世纪创新显示电子有限公司 Lighting effect control method and related equipment of gaming display
CN114355804A (en) * 2021-12-20 2022-04-15 广西世纪创新显示电子有限公司 Control method of eye-protection lamp, eye-protection lamp and computer storage medium
CN114339372A (en) * 2022-01-04 2022-04-12 海信视像科技股份有限公司 Display device and control method
CN114339372B (en) * 2022-01-04 2024-05-28 海信视像科技股份有限公司 Display equipment and control method
CN115604887A (en) * 2022-09-19 2023-01-13 联想(北京)有限公司(Cn) Atmosphere lamp group control method, control console and device

Similar Documents

Publication Publication Date Title
CN111479370A (en) Electronic equipment, control method of atmosphere lamp of electronic equipment and computer storage medium
EP4432786A1 (en) Lamp strip control method, lamp strip system, electronic device, and storage medium
US9826591B2 (en) Button backlight processing method and apparatus and terminal device
CN114340102B (en) Light strip control method, device, display device, system and storage medium
US20130241432A1 (en) Light-emitting device, method of controlling light-emitting device, and program
CN111869330B (en) Rendering dynamic light scenes based on one or more light settings
CN114521036A (en) Lighting control method, device, device end, and computer-readable storage medium
CN104918310A (en) Mobile terminal with rapid power saving function and rapid power saving method thereof
CN108200475A (en) Control method, smart machine and the computer readable storage medium of breath light
CN105162952B (en) A kind of application affairs based reminding method and intelligent terminal
CN117425255B (en) Indoor lighting lamp, lamp efficiency configuration method, device and equipment
CN111511082B (en) Lamp effect control method, device, equipment and medium
CN108681408A (en) A kind of method and bluetooth keyboard for realizing that bluetooth keyboard is connect with game of mobile terminal
CN108513395A (en) A kind of LED intelligent dimmings toning control device
CN103763811B (en) Light source dynamically changes the method for control, terminal and controller
CN108377594B (en) Driving method and driving device for indicator light of mobile equipment and mobile equipment
CN114743520B (en) Mini-LED self-adaptive dimming method, device, equipment and medium
CN106028011A (en) New type portable smart projection bracelet
CN207298511U (en) The desk lamp of information prompting function
CN108377593A (en) Method, device and system for controlling lighting, earphone and computer readable storage medium
CN107770924B (en) Control system and control method for kinetic energy Bluetooth lamp belt clothes
CN101737762B (en) Portable electronic device and control method of light source thereof
CN210405734U (en) Touch type light color-changing control system
CN118234091A (en) Light display control method, control device, electronic equipment, system and computer readable storage medium
JP2010114884A (en) Mobile electronic apparatus and method of controlling light

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200731

RJ01 Rejection of invention patent application after publication