CN104156189B - A kind of method and device of display screen switching at runtime display pattern - Google Patents
A kind of method and device of display screen switching at runtime display pattern Download PDFInfo
- Publication number
- CN104156189B CN104156189B CN201410390589.0A CN201410390589A CN104156189B CN 104156189 B CN104156189 B CN 104156189B CN 201410390589 A CN201410390589 A CN 201410390589A CN 104156189 B CN104156189 B CN 104156189B
- Authority
- CN
- China
- Prior art keywords
- display
- display screen
- mode
- flag bit
- command
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 45
- 238000004519 manufacturing process Methods 0.000 abstract description 10
- 239000000872 buffer Substances 0.000 description 5
- 230000005540 biological transmission Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Landscapes
- Control Of Indicators Other Than Cathode Ray Tubes (AREA)
Abstract
本发明属于显示屏技术领域,提供了一种显示屏动态切换显示模式的方法及装置。通过在支持视频模式和命令模式的显示屏中增加一个标志位,以所述标志位作为视频模式和命令模式之间切换的标识。在显示屏启动的过程中,首先在微内核LK中对显示屏进行初始化;在显示屏的初始化结束后,读取显示屏的标志位;最后根据所述标志位执行相应的显示模式;从而实现了通过读取标志位来动态切换显示屏的显示模式,使得同一型号显示屏在其中一种模式损坏时,可以自动切换到另一种显示模式,达到了对显示屏的合理利用,且降低了显示屏的生产成本。
The invention belongs to the technical field of display screens, and provides a method and a device for dynamically switching display modes of a display screen. By adding a flag bit to the display screen supporting the video mode and the command mode, the flag bit is used as a sign of switching between the video mode and the command mode. In the process of starting the display screen, at first the display screen is initialized in the microkernel LK; after the initialization of the display screen is completed, the flag bit of the display screen is read; finally, the corresponding display mode is executed according to the flag bit; thereby realizing In order to dynamically switch the display mode of the display screen by reading the flag bit, so that when one of the display modes of the same model is damaged, it can automatically switch to another display mode, which achieves a reasonable use of the display screen and reduces the The production cost of the display.
Description
技术领域technical field
本发明属于显示屏技术领域,尤其涉及一种显示屏动态切换显示模式的方法及装置。The invention belongs to the technical field of display screens, and in particular relates to a method and a device for dynamically switching display modes of a display screen.
背景技术Background technique
现有手机显示屏的显示模式一般为video模式和cmd模式。The display mode of the display screen of the existing mobile phone is generally a video mode and a cmd mode.
所述video模式,对应的中文名称为视频模式。在此模式下,手机不需要使用专用的数据信号来传输同步信息,控制信号和RGB数据是以报文的形式通过MIPI总线直接传输的,需要手机CPU持续不断地给显示屏传输刷新的数据。video模式的控制逻辑简单、成本低廉,但是功耗较大。The corresponding Chinese name of the video mode is video mode. In this mode, the mobile phone does not need to use a dedicated data signal to transmit synchronization information. The control signal and RGB data are directly transmitted through the MIPI bus in the form of a message, which requires the mobile phone CPU to continuously transmit refresh data to the display. The control logic of the video mode is simple and the cost is low, but the power consumption is relatively large.
所述cmd模式,对应的中文名称为命令模式。在此模式下,MIPI总线控制器使用显示命令报文来向显示屏发送像素流数据。显示屏至少有两个全帧长的帧缓冲器来存储所接收到的像素流数据。所述像素流数据存储在所述帧缓冲器后,显示屏的定时控制器将从所述帧缓冲器中读取数据,并自动地将所读取到的数据显示在屏幕上,而MIPI总线控制器不需要定期刷新显示屏。cmd模式的控制逻辑比较复杂,同时需要显示屏设有帧缓冲器,因此执行cmd模式的成本高昂,但其功耗低。The corresponding Chinese name of the cmd mode is command mode. In this mode, the MIPI bus controller uses display command messages to send pixel stream data to the display. The display has at least two full-frame-length frame buffers to store received pixel stream data. After the pixel stream data is stored in the frame buffer, the timing controller of the display screen will read the data from the frame buffer, and automatically display the read data on the screen, and the MIPI bus The controller does not need to refresh the display periodically. The control logic of the cmd mode is relatively complicated, and at the same time, the display screen needs to be provided with a frame buffer, so the cost of executing the cmd mode is high, but its power consumption is low.
然而,对于同一型号的手机显示屏,要么都设置成video模式,要么都设置成cmd模式,不能进行两种显示模式之间的切换;虽然有些型号的手机显示屏能够同时支持video模式和cmd模式,但是由于生产的工艺问题,容易导致其中一种模式不能正常工作时,因不能进行两种显示模式之间的切换,而使得整块显示屏必须报废,进而增加了生产的成本。However, for the same model of mobile phone displays, either they are all set to video mode or cmd mode, and switching between the two display modes cannot be performed; although some models of mobile phone displays can support video mode and cmd mode at the same time However, due to production process problems, it is easy to cause one of the modes to fail to work normally, because the switch between the two display modes cannot be performed, so that the entire display screen must be scrapped, thereby increasing the production cost.
发明内容Contents of the invention
本发明的目的在于提供一种显示屏动态切换显示模式的方法及装置,以实现同一型号的显示屏按需求工作在不同的显示模式下,以及降低显示屏生产成本。The object of the present invention is to provide a method and device for dynamically switching display modes of a display screen, so as to realize that the same type of display screen can work in different display modes as required, and reduce the production cost of the display screen.
本发明是这样实现的,一种显示屏动态切换显示模式的方法,所述方法包括:The present invention is achieved in this way, a method for dynamically switching display modes of a display screen, the method comprising:
在微内核LK中对显示屏进行初始化;Initialize the display screen in the microkernel LK;
在显示屏的初始化结束后,读取显示屏的标志位;After the initialization of the display screen is completed, read the flag bit of the display screen;
根据所述标志位执行相应的显示模式。Execute the corresponding display mode according to the flag bit.
进一步地,所述显示模式包括命令模式和视频模式;Further, the display mode includes a command mode and a video mode;
所述根据所述标志位执行相应的显示模式具体为:The execution of the corresponding display mode according to the flag bit is specifically:
判断所述标志位是否为预设值;judging whether the flag bit is a preset value;
若是,则按照命令模式接收待显示的数据,并显示所述待显示的数据;If so, then receive the data to be displayed according to the command mode, and display the data to be displayed;
若否,按照视频模式接收待显示的数据,并显示所述待显示的数据。If not, receive the data to be displayed according to the video mode, and display the data to be displayed.
进一步地,所述方法还包括:Further, the method also includes:
在显示屏的视频模式不可用时,设置显示屏的标志位为1,以使得显示屏在下一次启动时执行命令模式;在显示屏的命令模式不可用时,设置显示屏的标志位为0,以使得显示屏在下一次启动时执行视频模式;When the video mode of the display is not available, set the flag of the display to 1, so that the display will execute the command mode at the next startup; when the command mode of the display is not available, set the flag of the display to 0, so that The display performs video mode on the next boot;
或者or
在接收到对显示模式的设置指令时,根据用户输入的对显示屏显示模式的选择指令,设置显示屏的标志位为1或0,以使得显示屏在下一次启动时执行命令模式或视频模式。When receiving the setting command for the display mode, according to the selection command of the display mode input by the user, set the flag bit of the display screen to 1 or 0, so that the display screen will execute the command mode or video mode when it is started next time.
进一步地,所述在微内核LK中对显示屏进行初始化包括:Further, said initializing the display screen in the microkernel LK includes:
在微内核LK中对显示屏进行上电;Power on the display in the microkernel LK;
在显示屏上电完毕后,对显示屏进行复位;After the display is powered on, reset the display;
以及设置显示屏的MIPI时钟,以使得显示屏按照MIPI时钟传输数据。And set the MIPI clock of the display screen, so that the display screen transmits data according to the MIPI clock.
进一步地,所述根据所述标志位执行相应的显示模式之后还包括:Further, after executing the corresponding display mode according to the flag bit, it also includes:
检测剩余电量值;Detect the remaining power value;
在所述剩余电量值小于预设阈值时,设置显示屏的标志位为1,以使得显示屏在下一次启动时执行命令模式。When the remaining power value is less than the preset threshold, the flag bit of the display screen is set to 1, so that the display screen executes the command mode at the next startup.
本发明的第二方面,提供了一种显示屏动态切换显示模式的装置,所述装置包括:。A second aspect of the present invention provides a device for dynamically switching display modes of a display screen, the device comprising: .
初始化模块,用于在微内核LK中对显示屏进行初始化;The initialization module is used to initialize the display screen in the microkernel LK;
读取模块,用于在显示屏的初始化结束后,读取显示屏标志位;The reading module is used to read the flag bit of the display screen after the initialization of the display screen is completed;
执行模块,用于根据所述标志位执行相应的显示模式。An execution module, configured to execute a corresponding display mode according to the flag bit.
进一步地,所述显示模式包括命令模式和视频模式;Further, the display mode includes a command mode and a video mode;
所述执行模块具体用于:The execution module is specifically used for:
判断显示屏的标志位是否为预设值;Judging whether the flag bit of the display screen is a preset value;
若是,则按照命令模式接收待显示的数据,并显示所述待显示的数据;If so, then receive the data to be displayed according to the command mode, and display the data to be displayed;
否则,按照视频模式接收待显示的数据,并显示所述待显示的数据。Otherwise, receive the data to be displayed according to the video mode, and display the data to be displayed.
进一步地,所述装置还包括第一设置模块;所述第一设置模块用于:Further, the device also includes a first setting module; the first setting module is used for:
在显示屏的视频模式不可用时,设置显示屏的标志位为1,以使得显示屏在下一次启动时执行命令模式;在显示屏的命令模式不可用时,设置显示屏的标志位为0,以使得显示屏在下一次启动时执行视频模式;When the video mode of the display is not available, set the flag of the display to 1, so that the display will execute the command mode at the next startup; when the command mode of the display is not available, set the flag of the display to 0, so that The display performs video mode on the next boot;
或者or
在接收到对显示模式的设置指令时,根据用户输入的对显示屏显示模式的选择指令,设置显示屏的标志位为1或0,以使得显示屏在下一次启动时执行命令模式或视频模式。When receiving the setting command for the display mode, according to the selection command of the display mode input by the user, set the flag bit of the display screen to 1 or 0, so that the display screen will execute the command mode or video mode when it is started next time.
进一步地,所述初始化模块具体用于:Further, the initialization module is specifically used for:
在微内核LK中对显示屏进行上电;Power on the display in the microkernel LK;
在显示屏上电完毕后,对显示屏进行复位;After the display is powered on, reset the display;
以及设置显示屏的MIPI时钟,以使得显示屏按照MIPI时钟传输数据。And set the MIPI clock of the display screen, so that the display screen transmits data according to the MIPI clock.
进一步地,所述装置还包括Further, the device also includes
第二设置模块,用于检测剩余电量值;并在所述剩余电量值小于预设阈值时,设置显示屏的标志位为1,以使得显示屏在下一次启动时执行命令模式。The second setting module is used to detect the remaining power value; and when the remaining power value is less than a preset threshold, set the flag bit of the display screen to 1, so that the display screen will execute the command mode when it is started next time.
与现有技术相比,本发明通过在支持视频模式和命令模式的显示屏中增加一个标志位,以所述标志位作为视频模式和命令模式之间切换的标识。在显示屏启动的过程中,首先在微内核LK中对显示屏进行初始化;在显示屏的初始化结束后,读取显示屏的标志位;最后根据所述标志位执行相应的显示模式;从而实现了通过读取标志位来动态切换显示屏的显示模式,同一型号显示屏在其中一种模式损坏时,可以自动切换到另一种显示模式,达到了对显示屏的合理利用,并降低了显示屏的生产成本。Compared with the prior art, the present invention adds a flag bit to the display screen supporting the video mode and the command mode, and uses the flag bit as a sign of switching between the video mode and the command mode. In the process of starting the display screen, at first the display screen is initialized in the microkernel LK; after the initialization of the display screen ends, the flag bit of the display screen is read; finally, the corresponding display mode is executed according to the flag bit; thereby realizing In order to dynamically switch the display mode of the display screen by reading the flag bit, when one of the display modes of the same model is damaged, it can automatically switch to another display mode, which achieves a reasonable use of the display screen and reduces the display capacity. Screen production costs.
附图说明Description of drawings
图1是本发明实施例一提供的显示屏动态切换显示模式的方法的第一实现流程图;Fig. 1 is a first implementation flowchart of a method for dynamically switching display modes of a display screen provided by Embodiment 1 of the present invention;
图2是本发明实施例二提供的显示屏动态切换显示模式的方法的第二实现流程图;Fig. 2 is a second implementation flowchart of the method for dynamically switching display modes of a display screen provided by Embodiment 2 of the present invention;
图3是本发明实施例三提供的显示屏动态切换显示模式的装置的组成结构图。FIG. 3 is a structural diagram of a device for dynamically switching display modes of a display screen provided by Embodiment 3 of the present invention.
具体实施方式Detailed ways
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.
本发明通过在支持视频模式和命令模式的显示屏中增加一个标志位,以所述标志位作为视频模式和命令模式之间切换的标识。在显示屏启动的过程中,首先在微内核LK中对显示屏进行初始化;在显示屏的初始化结束后,读取显示屏的标志位;最后根据所述标志位执行相应的显示模式;从而实现了通过读取标志位来动态切换显示屏的显示模式,同一型号显示屏在其中一种显示模式损坏时,可以自动切换到另一种显示模式,达到了对显示屏的合理利用,并且降低了显示屏的生产成本。In the present invention, a flag bit is added to the display screen supporting the video mode and the command mode, and the flag bit is used as a mark for switching between the video mode and the command mode. In the process of starting the display screen, at first the display screen is initialized in the microkernel LK; after the initialization of the display screen ends, the flag bit of the display screen is read; finally, the corresponding display mode is executed according to the flag bit; thereby realizing In order to dynamically switch the display mode of the display screen by reading the flag bit, when one display mode of the same type of display screen is damaged, it can automatically switch to another display mode, which achieves a reasonable use of the display screen and reduces the The production cost of the display.
实施例一Embodiment one
图1示出了本发明实施例一提供的显示屏动态切换显示模式的方法的第一实现流程,为了便于说明,仅示出了与本放相关的部分。Fig. 1 shows the first implementation flow of the method for dynamically switching the display mode of the display screen provided by Embodiment 1 of the present invention. For the convenience of description, only the parts related to this amplifier are shown.
在本实施例中,所述方法应用于同时支持多种显示模式的显示屏,所述显示屏为智能终端显示屏,所述智能终端可以为手机、ipad、计算机等。In this embodiment, the method is applied to a display screen that simultaneously supports multiple display modes, and the display screen is a display screen of a smart terminal, and the smart terminal may be a mobile phone, an ipad, a computer, and the like.
如图1所示,所述方法包括:As shown in Figure 1, the method includes:
在步骤S101中,在微内核LK中对显示屏进行初始化。In step S101, the display screen is initialized in the microkernel LK.
在本实施例中,显示屏切换显示模式是在显示屏的启动过程中进行的。在显示屏的启动过程中,首先要在微内核LK中对显示屏进行初始化。所述初始化包括对显示屏进行上电、复位以及配置MIPI时钟。In this embodiment, the display mode switching of the display screen is performed during the start-up process of the display screen. During the startup process of the display screen, the display screen should be initialized in the microkernel LK at first. The initialization includes powering on and resetting the display screen and configuring the MIPI clock.
在步骤S102中,在显示屏的初始化结束后,读取显示屏的标志位。In step S102, after the initialization of the display screen is completed, the flag bit of the display screen is read.
在本实施例中,在显示屏的初始化过程结束后,由智能终端向显示屏发送命令读取显示屏的标志位寄存器上的值。所述标志位寄存器为显示屏的驱动IC里面增加的一个寄存器。每一个驱动IC的生产厂家,都可以增加一个这样的标志位寄存器;所述标志位寄存器的值可以在出厂的时候固定写好,也可以在使用的过程中动态设置。In this embodiment, after the initialization process of the display screen is completed, the smart terminal sends a command to the display screen to read the value on the flag register of the display screen. The flag bit register is a register added in the driver IC of the display screen. Each driver IC manufacturer can add such a flag register; the value of the flag register can be fixedly written when leaving the factory, or can be dynamically set during use.
作为本发明的一个实施示例,显示屏同时支持视频模式和命令模式,当显示屏需要以命令模式来接收并显示待显示的数据时,则设置标志位寄存器的值为1;当显示屏需要以视频模式来接收并显示待显示的数据时,设置标志位寄存器的值为0。As an implementation example of the present invention, the display screen supports video mode and command mode at the same time. When the display screen needs to receive and display data to be displayed in the command mode, the value of the flag bit register is set to 1; When using the video mode to receive and display the data to be displayed, set the value of the flag bit register to 0.
在步骤S103中,根据所述标志位执行相应的显示模式。In step S103, a corresponding display mode is executed according to the flag bit.
在本实施例中,在读取到的显示屏的标志位寄存器的值为1时,则以命令模式启动显示屏,接收并显示待显示的数据;在读取到的显示屏的标志位寄存器的值为0时,则以视频模式启动显示屏,接收并显示待显示的数据;从而实现了通过读取标志位来确定显示屏的显示模式。In this embodiment, when the value of the flag bit register of the read display screen is 1, then start the display screen with command mode, receive and display the data to be displayed; When the value of is 0, the display screen is started in video mode, and the data to be displayed is received and displayed; thus, the display mode of the display screen can be determined by reading the flag bit.
在显示屏启动过程中,若智能终端不能通过命令模式启动显示屏来接收并显示待显示的数据时(即命令模式不能正常工作时),则自动将所述标志位寄存器的值修改为0,以使得显示屏在下一次启动过程中以视频模式启动;若智能终端不能通过视频模式启动显示屏来接收并显示待显示的数据时(即视频模式不能正常工作时),则自动将所述标志位寄存器的值修改为1,以使得显示屏在下一次启动过程中以命令模式启动。通过设置标志位寄存器的值,动态切换显示屏的显示模式,使得同一型号的显示屏在其中一种模式损坏时,可以切换到另一种显示模式,达到了对显示屏的合理利用,解决了现有的支持多种显示模式的显示屏由于其中一种显示模式损坏后整个显示屏都要报废的问题,从而降低了显示屏的生产成本。During the start-up process of the display screen, if the intelligent terminal cannot start the display screen through the command mode to receive and display the data to be displayed (that is, when the command mode cannot work normally), the value of the flag bit register is automatically modified to 0, In order to make the display screen start in video mode during the next startup process; if the smart terminal cannot start the display screen in video mode to receive and display the data to be displayed (that is, when the video mode cannot work normally), the flag will be automatically set to The value of the register is modified to 1, so that the display will start in command mode during the next startup. By setting the value of the flag bit register, the display mode of the display screen can be dynamically switched, so that when one of the display modes of the same type of display screen is damaged, it can be switched to another display mode, which achieves a reasonable use of the display screen and solves the problem of The existing display screen supporting multiple display modes has the problem that the entire display screen will be scrapped if one of the display modes is damaged, thereby reducing the production cost of the display screen.
在本实施例中,通过在支持视频模式和命令模式的显示屏中增加一个标志位,以所述标志位作为视频模式和命令模式之间切换的标识。在显示屏启动的过程中,首先在微内核LK中对显示屏进行初始化;在显示屏的初始化结束后,读取显示屏的标志位;最后根据所述标志位执行相应的显示模式;从而实现了通过读取标志位来动态切换显示屏的显示模式,同一型号显示屏在其中一种显示模式损坏时,可以自动切换到另一种显示模式,达到了对显示屏的合理利用,并降低了显示屏的生产成本。In this embodiment, by adding a flag bit to the display screen supporting the video mode and the command mode, the flag bit is used as an indication of switching between the video mode and the command mode. In the process of starting the display screen, at first the display screen is initialized in the microkernel LK; after the initialization of the display screen ends, the flag bit of the display screen is read; finally, the corresponding display mode is executed according to the flag bit; thereby realizing In order to dynamically switch the display mode of the display screen by reading the flag bit, when one display mode of the same type of display screen is damaged, it can automatically switch to another display mode, which achieves a reasonable use of the display screen and reduces the The production cost of the display.
实施例二Embodiment two
图2是出了本发明实施例二提供的显示屏动态切换显示模式的方法的第二实现流程,为了便于说明,仅示出了与本发明相关的部分。FIG. 2 shows the second implementation flow of the method for dynamically switching display modes of the display screen provided by Embodiment 2 of the present invention. For the convenience of description, only the parts related to the present invention are shown.
在本实施例中,所述方法应用于同时支持多种显示模式的显示屏。所述显示模式包括视频模式和命令模式,所述显示屏为智能终端显示屏,所述智能终端优选为手机。In this embodiment, the method is applied to a display screen that simultaneously supports multiple display modes. The display mode includes a video mode and a command mode, and the display screen is a display screen of an intelligent terminal, and the intelligent terminal is preferably a mobile phone.
如图2所示,所述方法包括:As shown in Figure 2, the method includes:
在步骤S201中,在微内核LK中对显示屏进行初始化。In step S201, the display screen is initialized in the microkernel LK.
在本实施例中,显示屏切换显示模式是在显示屏的启动过程中进行的。在显示屏的启动过程中,首先要在微内核LK中对显示屏进行初始化。所述初始化包括对显示屏进行上电、复位以及配置MIPI时钟。现有的显示屏大部分是MIPI标准接口,MIPI是MobileIndustry Processor Interface的缩写,中文名称为移动产业处理器接口。显示屏需要有严格的时钟信号,需要在特定的时钟周期内完成特定数据的传输,因此需要为MIPI接口设置一个MIPI时钟,以使得显示屏按照所述MIPI时钟传输数据。所述MIPI时钟是通过往MDP中写寄存器来完成的。其中,MDP是mobile display process的缩写,是与显示相关的处理模块。In this embodiment, the display mode switching of the display screen is performed during the start-up process of the display screen. During the startup process of the display screen, the display screen should be initialized in the microkernel LK at first. The initialization includes powering on and resetting the display screen and configuring the MIPI clock. Most of the existing display screens are MIPI standard interfaces. MIPI is the abbreviation of Mobile Industry Processor Interface, and the Chinese name is Mobile Industry Processor Interface. The display screen needs a strict clock signal, and the transmission of specific data needs to be completed within a specific clock cycle. Therefore, it is necessary to set a MIPI clock for the MIPI interface, so that the display screen transmits data according to the MIPI clock. The MIPI clocking is accomplished by writing registers into the MDP. Among them, MDP is the abbreviation of mobile display process, which is a processing module related to display.
在步骤S202中,在显示屏的初始化结束后,读取显示屏的标志位。In step S202, after the initialization of the display screen is completed, the flag bit of the display screen is read.
在本实施例中,显示屏的初始化过程结束后,由智能终端向显示屏发送命令读取显示屏驱动IC中的标志位寄存器上的值。In this embodiment, after the initialization process of the display screen is completed, the smart terminal sends a command to the display screen to read the value of the flag bit register in the display screen driver IC.
在步骤S203中,判断显示屏的标志位是否为预设值。In step S203, it is determined whether the flag of the display screen is a preset value.
在本实施例中,设置命令模式为默认的显示模式,其对应的标志位为1,则以1作为标志位的预设值。判断显示屏的标志位是否为预设值,即判断是否以默认的显示模式启动显示屏。若是,则执行步骤S204;否则,执行步骤S205。In this embodiment, if the command mode is set as the default display mode and the corresponding flag bit is 1, then 1 is used as the default value of the flag bit. Judging whether the flag bit of the display screen is a preset value, that is, judging whether to start the display screen in a default display mode. If yes, execute step S204; otherwise, execute step S205.
在步骤S204中,按照命令模式接收待显示的数据,并显示所述待显示的数据。In step S204, the data to be displayed is received according to the command mode, and the data to be displayed is displayed.
在命令模式下,智能终端的CPU使用显示命令报文按照MIPI时钟向显示屏发送待显示的数据,显示屏接收所述待显示的数据,并存放在显示屏的帧缓冲器中,定期的从所述帧缓冲器中取出待显示的数据,并自动的将所取出的待显示数据显示在显示屏的屏幕上。In the command mode, the CPU of the intelligent terminal uses the display command message to send the data to be displayed to the display screen according to the MIPI clock. The data to be displayed is fetched from the frame buffer, and the fetched data to be displayed is automatically displayed on the screen of the display screen.
在步骤S205中,按照视频模式接收待显示的数据,并显示所述待显示的数据。In step S205, the data to be displayed is received according to the video mode, and the data to be displayed is displayed.
在视频模式下,智能终端的CPU持续不断地给显示屏刷新待显示的数据。显示屏持续不断地接收所述待显示的数据,并自动的将所述待显示的数据显示在显示屏的屏幕上。In the video mode, the CPU of the smart terminal continuously refreshes the data to be displayed on the display screen. The display screen continuously receives the data to be displayed, and automatically displays the data to be displayed on the screen of the display screen.
进一步地,为了方便用户对显示屏显示模式的修改,满足不同用户的需求,本实施例还包括:Further, in order to facilitate the user to modify the display mode of the display screen and meet the needs of different users, this embodiment also includes:
在显示屏的视频模式不可用时,设置显示屏的标志位为1,以使得显示屏在下一次启动时执行命令模式;在显示屏的命令模式不可用时,设置显示屏的标志位为0,以使得显示屏在下一次启动时执行视频模式;When the video mode of the display is not available, set the flag of the display to 1, so that the display will execute the command mode at the next startup; when the command mode of the display is not available, set the flag of the display to 0, so that The display performs video mode on the next boot;
或者or
在接收到对显示模式的设置指令时,根据用户输入的对显示屏显示模式的选择指令,设置显示屏的标志位为1或0,以使得显示屏在下一次启动时执行命令模式或视频模式。When receiving the setting command for the display mode, according to the selection command of the display mode input by the user, set the flag bit of the display screen to 1 or 0, so that the display screen will execute the command mode or video mode when it is started next time.
在显示屏启动过程中,若智能终端不能通过命令模式启动显示屏显示待显示的数据时(即命令模式不能正常工作时),则自动将所述标志位寄存器的值修改为0,以使得显示屏在下一次启动过程中以视频模式启动;若智能终端不能通过视频模式启动显示屏显示待显示的数据时(即视频模式不能正常工作时),则自动将所述标志位寄存器的值修改为1,以使得显示屏在下一次启动过程中以命令模式启动。During the start-up process of the display screen, if the intelligent terminal cannot start the display screen through the command mode to display the data to be displayed (that is, when the command mode cannot work normally), the value of the flag bit register is automatically modified to 0, so that the display The screen will start in video mode during the next startup process; if the smart terminal cannot start the display in video mode to display the data to be displayed (that is, when the video mode cannot work normally), the value of the flag bit register will be automatically modified to 1 , so that the display starts in command mode during the next boot sequence.
在实际应用中,可以预先设置一显示模式设置按钮、一视频模式选择按钮以及一命令模式选择按钮。在接收到用户通过点击所述显示模式设置按钮输入的对显示模式的设置指令时,根据用户点击命令模式选择按钮或者视频模式选择按钮而输入的对显示屏显示模式的选择指令,设置显示屏的标志位寄存器为1或0。In practical applications, a display mode setting button, a video mode selection button and a command mode selection button may be preset. When receiving the setting instruction to the display mode input by the user by clicking the display mode setting button, according to the selection instruction to the display mode input by the user clicking the command mode selection button or the video mode selection button, the setting of the display screen is set. Flag bit register is 1 or 0.
进一步地,由于命令模式相对于视频模式来说,其功耗较低,因此,为了节省手机的电量,在所述视频模式和命令模式都可使用时,所述根据所述标志位执行相应的显示模式之后还包括:Further, since the power consumption of the command mode is lower than that of the video mode, in order to save the power of the mobile phone, when both the video mode and the command mode are available, the corresponding flag bit is executed. After the display mode also include:
在步骤S206中,检测剩余电量值。In step S206, the remaining power value is detected.
检测手机的剩余电量值,并记录所检测到的剩余电量值。Detect the remaining power value of the mobile phone, and record the detected remaining power value.
在步骤S207中,在所述剩余电量值小于预设阈值时,设置显示屏的标志位为1,以使得显示屏在下一次启动时执行命令模式。In step S207, when the remaining power value is less than the preset threshold, the flag bit of the display screen is set to 1, so that the display screen executes the command mode at the next startup.
优选地,所述预设阈值为剩余电量为30%。在所述剩余电量值小于30%时,设置显示屏的标志位为1,控制显示屏进行重启,以使得显示屏在下一次启动中以命令模式来接收待显示的数据,以及显示所述待显示的数据。Preferably, the preset threshold is 30% of the remaining power. When the remaining power value is less than 30%, the flag bit of the display screen is set to 1, and the display screen is controlled to restart, so that the display screen receives the data to be displayed in command mode in the next startup, and displays the data to be displayed The data.
通过在支持视频模式和命令模式的显示屏中增加一个标志位,以所述标志位作为视频模式和命令模式之间切换的标识。在显示屏启动的过程中,首先在微内核LK中对显示屏进行初始化;在显示屏的初始化结束后,读取显示屏的标志位;最后根据所述标志位执行相应的显示模式;从而实现了通过读取标志位来动态切换显示屏的显示模式,同一型号显示屏在其中一种显示模式损坏时,可以自动切换到另一种显示模式,达到对显示屏的合理利用,并降低了显示屏的生产成本;进一步地,本实施例还可以在剩余电量值小于预设阈值时,自动设置显示屏的显示模式为命令模式,以使得显示屏在下一次启动时自动切换为命令模式,以降低手机的功耗。By adding a flag bit to the display screen supporting the video mode and the command mode, the flag bit is used as a sign of switching between the video mode and the command mode. In the process of starting the display screen, at first the display screen is initialized in the microkernel LK; after the initialization of the display screen ends, the flag bit of the display screen is read; finally, the corresponding display mode is executed according to the flag bit; thereby realizing In order to dynamically switch the display mode of the display screen by reading the flag bit, when one display mode of the same type of display screen is damaged, it can automatically switch to another display mode, so as to achieve a reasonable use of the display screen and reduce the display capacity. The production cost of the screen; further, this embodiment can also automatically set the display mode of the display screen to the command mode when the remaining power value is less than the preset threshold, so that the display screen will automatically switch to the command mode when it is started next time, so as to reduce power consumption of the mobile phone.
实施例三Embodiment Three
图3示出了本发明实施例三提供的显示屏动态切换显示模式的装置的组成结构。为了便于说明,仅示出了与本发明相关的部分。FIG. 3 shows the composition and structure of the device for dynamically switching display modes of a display screen provided by Embodiment 3 of the present invention. For ease of illustration, only the parts relevant to the present invention are shown.
如图3所示,所述装置包括:As shown in Figure 3, the device includes:
初始化模块31,用于在微内核LK中对显示屏进行初始化。The initialization module 31 is used to initialize the display screen in the microkernel LK.
进一步地,所述初始化模块31具体用于:Further, the initialization module 31 is specifically used for:
在微内核LK中对显示屏进行上电;Power on the display in the microkernel LK;
在显示屏上电完毕后,对显示屏进行复位;After the display is powered on, reset the display;
以及设置显示屏的MIPI时钟,以使得显示屏按照MIPI时钟传输数据。And set the MIPI clock of the display screen, so that the display screen transmits data according to the MIPI clock.
读取模块32,用于在显示屏的初始化结束后,读取显示屏的标志位。The reading module 32 is configured to read the flag bits of the display screen after the initialization of the display screen is completed.
执行模块33,用于根据所述标志位执行相应的显示模式。The execution module 33 is configured to execute a corresponding display mode according to the flag bit.
进一步地,所述显示模式包括命令模式和视频模式;Further, the display mode includes a command mode and a video mode;
所述执行模块33具体用于:The execution module 33 is specifically used for:
判断显示屏的标志位是否为预设值;Judging whether the flag bit of the display screen is a preset value;
若是,则按照命令模式接收待显示的数据,并显示所述待显示的数据;If so, then receive the data to be displayed according to the command mode, and display the data to be displayed;
否则,按照视频模式接收待显示的数据,并显示所述待显示的数据。Otherwise, receive the data to be displayed according to the video mode, and display the data to be displayed.
进一步地,为了提高显示屏的使用率,以及方便用户对显示屏显示模式的修改,满足不同用户的需求,所述装置还包括第一设置模块34;Further, in order to improve the utilization rate of the display screen and facilitate the user to modify the display mode of the display screen to meet the needs of different users, the device further includes a first setting module 34;
所述第一设置模块34用于:The first setting module 34 is used for:
在显示屏的视频模式不可用时,设置显示屏的标志位为1,以使得显示屏在下一次启动时执行命令模式;在显示屏的命令模式不可用时,设置显示屏的标志位为0,以使得显示屏在下一次启动时执行视频模式;When the video mode of the display is not available, set the flag of the display to 1, so that the display will execute the command mode at the next startup; when the command mode of the display is not available, set the flag of the display to 0, so that The display performs video mode on the next boot;
或者or
在接收到对显示模式的设置指令时,根据用户输入的对显示屏显示模式的选择指令,设置显示屏的标志位为1或0,以使得显示屏在下一次启动时执行命令模式或视频模式。When receiving the setting command for the display mode, according to the selection command of the display mode input by the user, set the flag bit of the display screen to 1 or 0, so that the display screen will execute the command mode or video mode when it is started next time.
进一步地,由于命令模式相对于视频模式来说,其功耗较低,因此,为了节省手机的电量,所述装置还包括Further, since the power consumption of the command mode is lower than that of the video mode, in order to save the power of the mobile phone, the device also includes
第二设置模块35,用于检测剩余电量值;并在所述剩余电量值小于预设阈值时,设置显示屏的标志位为1,以使得显示屏在下一次启动时执行命令模式。The second setting module 35 is used to detect the remaining power value; and when the remaining power value is less than a preset threshold, set the flag bit of the display screen to 1, so that the display screen will execute the command mode when it is started next time.
本实施例中,通过在支持视频模式和命令模式的显示屏中增加一个标志位,以所述标志位作为视频模式和命令模式之间切换的标识。在显示屏启动的过程中,首先在微内核LK中对显示屏进行初始化;在显示屏的初始化结束后,读取显示屏的标志位;最后根据所述标志位执行相应的显示模式;从而实现了通过读取标志位来动态切换显示屏的显示模式,同一型号显示屏在其中一种显示模式损坏时,可以自动切换到另一种显示模式,达到对显示屏的合理利用,并降低了显示屏的生产成本;进一步地,本实施例还可以在剩余电量值小于预设阈值时,自动设置显示屏的显示模式为命令模式,以使得显示屏在下一次启动时自动切换为命令模式,以降低手机的功耗。In this embodiment, by adding a flag bit to the display screen supporting the video mode and the command mode, the flag bit is used as an indication of switching between the video mode and the command mode. In the process of starting the display screen, at first the display screen is initialized in the microkernel LK; after the initialization of the display screen ends, the flag bit of the display screen is read; finally, the corresponding display mode is executed according to the flag bit; thereby realizing In order to dynamically switch the display mode of the display screen by reading the flag bit, when one display mode of the same type of display screen is damaged, it can automatically switch to another display mode, so as to achieve a reasonable use of the display screen and reduce the display capacity. The production cost of the screen; further, this embodiment can also automatically set the display mode of the display screen to the command mode when the remaining power value is less than the preset threshold, so that the display screen will automatically switch to the command mode when it is started next time, so as to reduce power consumption of the mobile phone.
本领域普通技术人员还可以理解,实现上述实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,所述的程序可以在存储于一计算机可读取存储介质中,所述的存储介质,包括ROM/RAM、磁盘、光盘等。Those of ordinary skill in the art can also understand that all or part of the steps in the method of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, so The storage medium mentioned above includes ROM/RAM, magnetic disk, optical disk, etc.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明。例如,各个模块只是按照功能逻辑进行划分的,但并不局限于上述的划分,只要能够实现相应的功能即可;另外,各功能模块的具体名称也只是为了便于相互区分,并不用于限制本发明的保护范围。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. For example, each module is only divided according to the functional logic, but it is not limited to the above-mentioned division, as long as the corresponding function can be realized; in addition, the specific names of each functional module are only for the convenience of distinguishing each other, and are not used to limit this protection scope of the invention.
凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。Any modifications, equivalent replacements and improvements made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410390589.0A CN104156189B (en) | 2014-08-08 | 2014-08-08 | A kind of method and device of display screen switching at runtime display pattern |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410390589.0A CN104156189B (en) | 2014-08-08 | 2014-08-08 | A kind of method and device of display screen switching at runtime display pattern |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104156189A CN104156189A (en) | 2014-11-19 |
CN104156189B true CN104156189B (en) | 2018-05-29 |
Family
ID=51881699
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410390589.0A Expired - Fee Related CN104156189B (en) | 2014-08-08 | 2014-08-08 | A kind of method and device of display screen switching at runtime display pattern |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104156189B (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104615399B (en) * | 2015-02-09 | 2018-08-17 | 上海与德通讯技术有限公司 | The transmission method and electronic device of display data |
US10694197B2 (en) | 2018-01-17 | 2020-06-23 | Qualcomm Incorporated | Composition based dynamic panel mode switch |
US10416808B2 (en) | 2018-01-17 | 2019-09-17 | Qualcomm Incorporated | Input event based dynamic panel mode switch |
CN109471517B (en) * | 2018-11-22 | 2021-06-15 | 努比亚技术有限公司 | Display processing method and device and computer readable storage medium |
CN112069097A (en) * | 2020-09-22 | 2020-12-11 | 禹创半导体(深圳)有限公司 | Protection method for MIPI multipoint or point-to-point transmission |
CN113552967A (en) * | 2021-06-24 | 2021-10-26 | 合肥松豪电子科技有限公司 | Touch panel TP frequency hopping scanning method applied to TDDI chip |
CN113490025A (en) * | 2021-08-03 | 2021-10-08 | Vidaa美国公司 | Display apparatus and electronic program guide display method |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101554047A (en) * | 2006-08-04 | 2009-10-07 | 先进微装置公司 | Video display mode control |
CN102982759A (en) * | 2011-09-02 | 2013-03-20 | 三星电子株式会社 | Display driver, operating method thereof, host for controlling the display driver, and system having the display driver and the host |
CN103123589A (en) * | 2013-02-28 | 2013-05-29 | 青岛海信移动通信技术股份有限公司 | Method and device of powerboot of mobile terminal |
CN103823546A (en) * | 2014-03-10 | 2014-05-28 | 联想(北京)有限公司 | Information control method and electronic equipment |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI453716B (en) * | 2011-08-19 | 2014-09-21 | Novatek Microelectronics Corp | Data transmission method and display driving system using the same |
-
2014
- 2014-08-08 CN CN201410390589.0A patent/CN104156189B/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101554047A (en) * | 2006-08-04 | 2009-10-07 | 先进微装置公司 | Video display mode control |
CN102982759A (en) * | 2011-09-02 | 2013-03-20 | 三星电子株式会社 | Display driver, operating method thereof, host for controlling the display driver, and system having the display driver and the host |
CN103123589A (en) * | 2013-02-28 | 2013-05-29 | 青岛海信移动通信技术股份有限公司 | Method and device of powerboot of mobile terminal |
CN103823546A (en) * | 2014-03-10 | 2014-05-28 | 联想(北京)有限公司 | Information control method and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN104156189A (en) | 2014-11-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104156189B (en) | A kind of method and device of display screen switching at runtime display pattern | |
TWI672685B (en) | Display driver and display system | |
CN109426525B (en) | A method and device for waking up from a sleep state of a computer | |
CN111937063B (en) | Electronic device and method for controlling output timing of signal | |
CN102122250B (en) | Computer system and operating system switching method thereof | |
KR101475797B1 (en) | Dynamic information adaptation for a computing device having multiple power modes | |
CN103106109B (en) | Mobile device and method for running two platform systems or application programs on mobile device | |
CN104123111B (en) | The display mode switching method and device of MIPI DSI | |
US10445104B2 (en) | Electronic device, method for controlling electronic device, and program | |
US8892935B2 (en) | Dynamic bus clock rate adjusting method and device | |
CN107851415A (en) | Display driving integrated circuit, display driving method and electronic device | |
CN110476138A (en) | The low power driving method of display and electronic equipment for executing this method | |
KR20160046620A (en) | Display driver circuit and display system | |
US8982158B2 (en) | Computer screen image displaying method, computer having a vertical display device, and computer program product | |
US20180120922A1 (en) | Reducing the power consumption of an information handling system capable of handling both dynamic and static display applications | |
CN103620521A (en) | Techniques for controlling power consumption of a system | |
CN112506745B (en) | Memory temperature reading method and device and computer readable storage medium | |
TWI479319B (en) | Dual operating system operation method and touch electronic device and computer readable storage medium with dual operating system | |
CN111381892B (en) | Data processing method, device, equipment and machine-readable medium | |
TWI806380B (en) | Wearable electronic device and control method thereof | |
CN102004541A (en) | Image display system and method | |
CN106484352B (en) | Method for setting display resolution of embedded system | |
CN112306558A (en) | Processing unit, processor, processing system, electronic device, and processing method | |
US20150123875A1 (en) | Power management device and method | |
KR20220156326A (en) | An electronic device that recognizes a touch and performs a display |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address | ||
CP03 | Change of name, title or address |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523841 usha Beach Road No. 18 Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20180529 |