Information display method and device, wearable device and readable storage medium

文档序号:1963670 发布日期:2021-12-14 浏览:10次 中文

阅读说明:本技术 信息显示方法、装置、可穿戴设备和可读存储介质 (Information display method and device, wearable device and readable storage medium ) 是由 田胜杰 杜军红 葛振纲 于 2021-09-03 设计创作,主要内容包括:本申请提供一种信息显示方法、装置、可穿戴设备和可读存储介质,其中,该方法包括:响应于可穿戴设备的启动,获取显示装置当前时期的待显示信息,将待显示信息进行拆分,得到至少一帧显示数据,根据预设时间周期,将拆分得到的至少一帧显示数据通过串行外设接口发送至显示装置进行显示。该技术方案中,通过使用串行外设接口使控制器与显示装置连接,控制器能够通过串行外设接口实现数据快速传输,周期性的将一帧一帧的显示数据发送至显示装置进行显示,能够保障工作在视频模式的显示装置及时的接收到显示信息,保持显示装置上的信息显示,避免出现闪烁的情况,提高显示装置的显示效果。(The application provides an information display method, an information display device, a wearable device and a readable storage medium, wherein the method comprises the following steps: responding to the starting of the wearable device, obtaining information to be displayed of the display device in the current period, splitting the information to be displayed to obtain at least one frame of display data, and sending the at least one frame of display data obtained through splitting to the display device through the serial peripheral interface to be displayed according to a preset time period. In the technical scheme, the controller is connected with the display device through the serial peripheral interface, the controller can realize rapid data transmission through the serial peripheral interface, display data of one frame is periodically sent to the display device to be displayed, the display device working in a video mode can be guaranteed to timely receive display information, information display on the display device is kept, the situation of flicker is avoided, and the display effect of the display device is improved.)

1. An information display method is applied to wearable equipment, the wearable equipment comprises a display device and a main controller, the display device is in a video mode and does not carry a random access memory, the display device is connected with the main controller through a multi-bit serial peripheral interface, the multi-bit serial peripheral interface comprises at least four data communication interfaces, and the method comprises the following steps:

responding to the starting of the wearable equipment, and acquiring information to be displayed of the display device in the current period;

splitting the information to be displayed to obtain at least one frame of display data;

and according to a preset time period, sending the at least one frame of display data obtained by splitting to the display device through the at least four data communication interfaces for displaying.

2. The method according to claim 1, wherein the sending the at least one frame of split display data to the display device through the at least four data communication interfaces for displaying comprises:

acquiring line data contained in the at least one frame of display data;

sending a frame synchronization signal to the display device, wherein the frame synchronization signal is used for identifying the at least one frame of display data;

sending a first line synchronizing signal to the display device, wherein the first line synchronizing signal is used for indicating the display device to identify line data contained in the at least one frame of display data;

sending a second line synchronizing signal to the display device, wherein the second line synchronizing signal is used for identifying line data contained in the at least one frame of display data;

and sending the line data contained in the at least one frame of display data to the display device through the at least four data communication interfaces.

3. The method according to claim 1, wherein the multi-bit serial peripheral interface further comprises a chip select interface and a clock interface, and before the sending the at least one frame of split display data to the display device through the at least four data communication interfaces for displaying, further comprises:

and sending a chip selection signal to the display device through the chip selection interface, and sending a clock signal to the display device through the clock interface.

4. The method according to claim 1, wherein after the sending the at least one frame of split display data to the display device through the at least four data communication interfaces for displaying according to a preset time period, the method further comprises:

determining whether the information to be displayed in the next period of the display device changes or not according to the information to be displayed in the current period;

if so, acquiring information to be displayed of the display device in the next period, and splitting the information to be displayed to obtain at least one frame of display data;

and if not, sending the at least one frame of display data to the display device for display through the at least four data communication interfaces according to the preset time period.

5. The method according to claim 1, wherein the sending the at least one frame of split display data to the display device through the at least four data communication interfaces for displaying according to a preset time period includes:

acquiring the frame number of display data obtained by splitting the information to be displayed;

if the information to be displayed is split into one frame of display data, sending the frame of display data to the display device for displaying through the at least four data communication interfaces at intervals of the preset time period;

if the information to be displayed is split into more than two frames of display data, one frame of display data is sequentially selected from the more than two frames of display data at intervals of the preset time period and is sent to the display device through the at least four data communication interfaces to be displayed.

6. The method according to claim 1, wherein before sending the at least one frame of split display data to the display device through the at least four data communication interfaces for display according to a preset time period, the method further comprises:

acquiring the refresh times of a display screen of the display device per second;

and determining the preset time period according to the refresh times of the display screen per second.

7. The method of claim 1, wherein before generating the information to be displayed for the display device in response to the display device of the wearable apparatus being activated, further comprising:

initializing the multi-bit serial peripheral interface.

8. An information display device characterized by comprising:

the acquisition module is used for responding to the starting of the wearable equipment and acquiring information to be displayed of the display device in the current period;

the splitting module is used for splitting the information to be displayed to obtain at least one frame of display data;

and the sending module is used for sending the at least one frame of display data obtained by splitting to the display device for displaying through at least four data communication interfaces according to a preset time period.

9. A wearable device is characterized by comprising a main controller, a display device and a main controller, wherein the working mode of the display device is a video mode and does not carry a random access memory, and the display device is connected with the main controller through a multi-bit serial peripheral interface;

and the main controller is used for sending display data to the display device for displaying through the multi-bit serial peripheral interface.

10. The apparatus of claim 9, wherein said multi-bit serial peripheral interface comprises at least four data communication interfaces;

and the main controller sends the display data to the display device through the at least four data communication interfaces.

11. The apparatus of claim 10, wherein said multi-bit serial peripheral interface further comprises at least one chip select interface and at least one clock interface;

the main controller sends a chip selection signal to the display device through the at least one chip selection interface;

and the main controller sends a clock signal to the display device through the at least one clock interface.

12. The wearable device of claim 9, wherein the wearable device is a smart watch or a smart bracelet.

13. A readable storage medium having stored therein computer instructions for implementing the method of any one of claims 1-7 when executed by a host controller.

14. A program product comprising computer instructions, characterized in that the computer instructions, when executed by a main controller, implement the method of any one of claims 1-7.

Technical Field

The present application relates to the field of wearable device technologies, and in particular, to an information display method and apparatus, a wearable device, and a readable storage medium.

Background

The display screen used on the wearable device can work in two different modes, one mode is a command mode, the other mode is a video mode, an integrated storage space is needed inside the display screen when the display screen works in the command mode, a controller of the wearable device transmits content needing to be displayed to the storage space through a communication interface, and the display screen periodically reads information needing to be displayed from the storage space. The display screen works in a video mode, the storage space is not needed, and the controller needs to periodically and directly transmit information to be displayed to the display screen, so that the cost is reduced.

In the prior art, when a controller drives a display screen working in a video mode, in order to ensure a data transmission rate, a Mobile Industry Processor Interface (MIPI) is often used to transmit display data, and the controller periodically transmits display information to a display device through the MIPI Interface for display.

However, many low-cost controllers do not have a MIPI interface, and these controllers cannot perform data transmission with a display screen through the MIPI interface, and a conventional communication interface has a situation that the speed of data transmission is delayed in the process of displaying data transmission, so that the display screen operating in a video mode cannot receive display data in time, and a screen flickers.

Disclosure of Invention

The application provides an information display method, an information display device, wearable equipment and a readable storage medium, which are used for solving the problems that the existing display device working in a video mode is easy to flicker and poor in display effect.

In a first aspect, an embodiment of the present application provides a message display method applied to a wearable device, where the wearable device includes a display device and a main controller, where a working mode of the display device is a video mode, and the display device is connected to the main controller through a serial peripheral interface, and the method includes:

responding to the starting of the wearable equipment, and acquiring information to be displayed of the display device in the current period;

splitting the information to be displayed to obtain at least one frame of display data;

and according to a preset time period, sending the at least one frame of display data obtained by splitting to the display device through the serial peripheral interface for displaying.

In a possible design of the first aspect, the sending, to the display device through the serial peripheral interface, at least one frame of display data obtained by splitting to display includes:

acquiring line data contained in the at least one frame of display data;

sending a frame synchronization signal to the display device, wherein the frame synchronization signal is used for identifying the at least one frame of display data;

sending a first line synchronizing signal to the display device, wherein the first line synchronizing signal is used for indicating the display device to identify line data contained in the at least one frame of display data;

sending a second line synchronizing signal to the display device, wherein the second line synchronizing signal is used for identifying line data contained in the at least one frame of display data;

and transmitting the row data contained in the at least one frame of display data to the display device through the serial peripheral interface.

In another possible design of the first aspect, the serial peripheral interface is a multi-bit serial peripheral interface, the multi-bit serial peripheral interface includes at least four data communication interfaces, and the sending at least one frame of display data obtained by splitting to the display device through the multi-bit serial peripheral interface for display includes:

and sending at least one frame of display data obtained by splitting to the display device for displaying through the at least four data communication interfaces.

In yet another possible design of the first aspect, the multi-bit serial peripheral interface further includes a chip select interface and a clock interface, and before the at least one frame of display data obtained by splitting is sent to the display device through the serial peripheral interface for display, the method further includes:

and sending a chip selection signal to the display device through the chip selection interface, and sending a clock signal to the display device through the clock interface.

In another possible design of the first aspect, after the sending, according to a preset time period, the at least one frame of display data obtained by splitting to the display device through the serial peripheral interface for displaying, the method further includes:

determining whether the information to be displayed in the next period of the display device changes or not according to the information to be displayed in the current period;

if so, acquiring information to be displayed of the display device in the next period, and splitting the information to be displayed to obtain at least one frame of display data;

and if not, sending the at least one frame of display data to the display device through the serial peripheral interface for display according to the preset time period.

In another possible design of the first aspect, the sending, according to a preset time period, at least one frame of display data obtained by splitting to the display device through the serial peripheral interface for displaying includes:

acquiring the frame number of display data obtained by splitting the information to be displayed;

if the information to be displayed is split into one frame of display data, sending the frame of display data to the display device through the serial peripheral interface for displaying at intervals of the preset time period;

if the information to be displayed is split into more than two frames of display data, one frame of display data is sequentially selected from the more than two frames of display data at intervals of the preset time period and is sent to the display device through the serial peripheral interface to be displayed.

In yet another possible design of the first aspect, before sending, according to a preset time period, at least one frame of display data obtained by splitting to the display device through the serial peripheral interface for displaying, the method further includes:

acquiring the refresh times of a display screen of the display device per second;

and determining the preset time period according to the refresh times of the display screen per second.

In yet another possible design of the first aspect, before the generating, in response to the display device of the wearable apparatus being activated, information to be displayed of the display device, the method further includes:

and initializing the serial peripheral interface.

In a second aspect, an embodiment of the present application provides an information display apparatus, including:

the acquisition module is used for responding to the starting of the wearable equipment and acquiring the information to be displayed of the display device in the current period;

the splitting module is used for splitting the information to be displayed to obtain at least one frame of display data;

and the sending module is used for sending the at least one frame of display data obtained by splitting to the display device through the serial peripheral interface for displaying according to a preset time period.

In a third aspect, an embodiment of the present application provides a wearable device, including a main controller, a display device whose operating mode is a video mode, and a serial peripheral interface disposed on the main controller, where the display device is connected to the main controller through the serial peripheral interface;

the main controller is used for sending display data to the display device for displaying through the serial peripheral interface.

In one possible design of the third aspect, the serial peripheral interface is a multi-bit serial peripheral interface, and the multi-bit serial peripheral interface includes at least four data communication interfaces;

and the main controller sends the display data to the display device through the at least four data communication interfaces.

In another possible design of the third aspect, the multi-bit serial peripheral interface further includes at least one chip select interface and at least one clock interface;

the main controller sends a chip selection signal to the display device through the at least one chip selection interface;

and the main controller sends a clock signal to the display device through the at least one clock interface.

In yet another possible design of the third aspect, the wearable device is a smart watch or a smart bracelet.

In a fourth aspect, the present application provides a readable storage medium, in which computer instructions are stored, and when executed by a main controller, the computer instructions are used to implement the method as described above.

In a fifth aspect, the present application provides a program product, which includes computer instructions, when executed by a main controller, implement the method described above.

According to the information display method and device, the wearable device and the readable storage medium, the controller is connected with the display device through the serial peripheral interface, the controller can realize data fast transmission through the serial peripheral interface, the display data of one frame and one frame are periodically sent to the display device to be displayed, the display device working in a video mode can be guaranteed to timely receive display information, the flicker situation is avoided, and the display effect of the display device is improved.

Drawings

The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application;

fig. 1 is a scene schematic diagram of an information display method according to an embodiment of the present application;

fig. 2 is a schematic flowchart of a first embodiment of an information display method according to an embodiment of the present application;

fig. 3 is a schematic diagram of chip pins of a host controller according to an embodiment of the present disclosure;

fig. 4 is a schematic flowchart of a second embodiment of an information display method according to an embodiment of the present application;

fig. 5 is a schematic flowchart of a third embodiment of an information display method according to an embodiment of the present application;

fig. 6 is a schematic flowchart of a fourth embodiment of an information display method according to an embodiment of the present application;

fig. 7 is a schematic structural diagram of an information display device according to an embodiment of the present application;

fig. 8 is a system framework diagram of a wearable device provided in an embodiment of the present application.

With the above figures, there are shown specific embodiments of the present application, which will be described in more detail below. These drawings and written description are not intended to limit the scope of the inventive concepts in any manner, but rather to illustrate the inventive concepts to those skilled in the art by reference to specific embodiments.

Detailed Description

In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.

The terms referred to in this application are explained first:

serial peripheral interface:

serial Peripheral Interface (SPI) is a high-speed, full-duplex, synchronous communication bus, and occupies only four wires on the pins of the chip, saving the pins of the chip, and providing convenience for PCB layout, and due to the simple and easy-to-use characteristic, more and more chips integrate the communication protocol.

Multi-bit serial peripheral interface:

a Multi-bit Serial Peripheral Interface (MSPI) refers to a high-speed communication bus, and occupies a plurality of lines on a pin of a chip according to the number of bits thereof, for example, a four-bit Serial Peripheral communication Interface, which occupies six lines on a pin of a chip, four lines are data communication lines for data communication, and the other two lines are a chip selection line and a clock line.

Fig. 1 is a schematic view of a scene of an information display method provided in an embodiment of the present application, where the information display method may be applied to a wearable device, and as shown in fig. 1, the wearable device may be a smart watch 11, which includes a display screen disposed on a surface of a housing and a controller disposed inside the housing. When the user starts the smart watch, the display screen will also be lit and display information. Illustratively, the display screen may display a picture or three primary colors of RGB, etc.

In the actual life application, the display screen can work in a command mode or a video mode, when the display screen works in the command mode, a storage space is arranged in the display screen, the display screen directly obtains contents to be displayed from the internal storage space, the screen contents can be kept, and if the information to be displayed does not need to be changed, the controller does not need to periodically communicate with the display screen. When the display screen works in a video mode, the display screen is internally provided with no storage space, and no matter whether the information displayed by the display screen changes or not, the controller needs to periodically transmit the information to be displayed and some necessary control signals to the display screen, so that the real-time performance of data communication between the controller and the display screen needs to be guaranteed, and if the data transmission speed is low, the display screen can not timely acquire the information sent by the controller, so that the display screen flickers.

In the prior art, a display device of a wearable device basically works in a command mode, the wearable device needs to be additionally provided with a storage space, so that the production and manufacturing cost of the wearable device is increased, in other non-wearable devices, in order to enable a display screen to work in a video mode, a Mobile Industry Processor Interface (MIPI) with a high data transmission rate is mainly adopted, the display screen and a controller adopt the MIPI Interface for data communication, however, in the actual use process, a plurality of low-cost controllers are not provided with the MIPI Interface, the controllers cannot be adapted to the display screen and cannot use the MIPI Interface to complete data transmission, so that when a technician develops the low-cost wearable device, the selection of the controllers is limited, only the controller provided with the MIPI Interface can be selected, and the controller is limited by the existing chip supply amount, often the price is relatively higher, thereby increasing the production cost of the wearable device.

In view of the above problems, embodiments of the present application provide an information display method and apparatus, a wearable device, and a readable storage medium, where even a low-cost controller can use a serial peripheral interface to perform data communication with a display device, and the serial peripheral interface has more data communication lines, so that the data transmission speed is fast, and a display device operating in a video mode can timely receive data transmitted by the controller through the serial peripheral interface, thereby improving the display effect of the display device, and reducing the production cost of the wearable device.

The technical solution of the present application will be described in detail below with reference to specific examples. It should be noted that the following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.

Fig. 2 is a schematic flowchart of a first embodiment of an information display method provided in the present application, where the information display method may be applied to a wearable device, and the wearable device includes a display device and a main controller, where a working mode of the display device is a video mode, and the display device is connected to the main controller through a serial peripheral interface. As shown in fig. 2, the information display method specifically includes the following steps:

s201, responding to the starting of the wearable device, and acquiring information to be displayed of the display device in the current period.

For example, the wearable device may include a power supply system, and when the power supply system is turned on, the wearable device starts to operate, and at this time, both the controller and the display device start to operate. When the power supply system is closed, the wearable device stops running, and the controller and the display device stop working. Optionally, the wearable device may also include a key, such as a power system switch key, a user interaction key, and the like.

Illustratively, the Display device may include a Liquid Crystal Display (LCD).

When the wearable device is started, the information to be displayed of the display apparatus in the current period may be a start-up picture, such as a still image, or a dynamic video composed of multiple images.

For example, if the information to be displayed in the current period is a start-up picture, the start-up picture may be pre-stored in the memory, and when the wearable device is started, the controller directly obtains the pre-stored start-up picture from the memory as the information to be displayed in the current period of the display device.

S202, splitting information to be displayed to obtain at least one frame of display data.

In this embodiment, taking the information to be displayed as an example of a startup picture, when the wearable device is started, a display interface of the display device may display a still image or a dynamic video, where the video generally consists of a plurality of frame images.

When the controller splits the information to be displayed, if the information to be displayed is a still image, the split information is obtained by splitting the information to be displayed, and the display data of each frame are the same, namely the same image; if the information to be displayed is a dynamic video, each frame of display data obtained by splitting is different, namely different images.

For example, the information to be displayed may be split into 100 frames of display data, each frame of display data may be an image, and the 100 frames of display data may be the same image or different images.

And S203, according to a preset time period, sending at least one frame of display data obtained by splitting to a display device through a serial peripheral interface for displaying.

For example, the predetermined time period may be between 10 milliseconds and 100 milliseconds.

For example, taking 10 milliseconds as a preset time period, splitting information to be displayed to obtain 100 frames of display data as an example, after every 10 milliseconds, the controller sends one frame of display data to the display device through the serial peripheral interface for display, that is, the controller starts sending from the 1 st frame of display data, and sends the next frame of display data every 10 milliseconds until the sending of the 100 th frame of display data is completed, and at this time, the display device enters the next period and needs to display the information to be displayed in the next period.

For example, if each frame of display data obtained by splitting the information to be displayed is the same image, the controller may select any one frame of display data from 100 frames of display data, and send the selected frame of display data to the display device through the serial peripheral interface for displaying until the display device enters the next period.

For example, the serial peripheral interface in the embodiment of the present application may be a multi-bit serial peripheral interface MSPI or a single serial peripheral interface SPI.

According to the embodiment of the application, the display data are transmitted to the display device through the selected serial peripheral interface, the transmission rate of the data can be improved, the display device working in the video mode can timely receive the display data, the information display on the display screen is kept, the flickering condition of the display screen is avoided, and the display effect of the display device is improved.

In some embodiments, the step S203 may be specifically implemented by the following steps:

acquiring line data contained in at least one frame of display data;

sending a frame synchronization signal to a display device;

sending a first line synchronizing signal to a display device;

sending a second line synchronizing signal to the display device;

and transmitting the row data contained in the at least one frame of display data to the display device through the serial peripheral interface.

The frame synchronization signal is used for identifying at least one frame of display data, the first line synchronization signal is used for indicating the display device to identify line data contained in the at least one frame of display data, and the second line synchronization signal is used for identifying the line data contained in the at least one frame of display data.

In this embodiment, each frame of display data may include a plurality of line data, where the line data refers to data that should be displayed in each line on a display interface of the display device. The first line synchronizing signal and the second line synchronizing signal are used for realizing line synchronization and indicating which line the line data currently sent by the main controller of the display device belongs to.

For example, when a plurality of line data are included in each frame of display data, each line data may be sequentially transmitted to the display device according to a display order of each line data.

According to the embodiment of the application, frame synchronization and line synchronization are achieved through the frame synchronization signal and the line synchronization signal, so that the display device can accurately determine which frame the display data sent by the current main controller belongs to and which line the line data belongs to, and the display effect is improved.

Further, fig. 3 is a schematic diagram of chip pins of the main controller according to the embodiment of the present application, as shown in fig. 3, if the serial peripheral interface is a four-bit serial peripheral interface, that is, a multi-bit serial peripheral interface, and the four-bit serial peripheral interface includes four data communication interfaces LCD _ MSPI0_0 to LCD _ MSPI0_4, the step S203 "sends at least one frame of display data obtained by splitting to the display device through the serial peripheral interface for displaying" may specifically be implemented by the following steps:

and sending at least one frame of display data obtained by splitting to a display device for displaying through at least four data communication interfaces.

Illustratively, the multi-bit serial peripheral interface may also be an eight-bit or sixteen-bit serial peripheral interface, wherein the four-bit serial peripheral interface includes four data communication interfaces, the eight-bit serial peripheral interface includes eight data communication interfaces, and the sixteen-bit serial peripheral interface includes sixteen data communication interfaces.

In this embodiment, each data communication interface occupies one chip pin (i.e., pin 3, pin 5, pin 25, and pin 27) of the host controller, and the host controller is connected to the display device through these chip pins to transmit the display data to the display device for displaying.

According to the embodiment of the application, the serial peripheral interface is selected, the plurality of data communication interfaces of the serial peripheral interface can be used for sending the display data, the sending speed of the display data is increased, the situation that the display device cannot timely receive the display data and flickers is avoided, and the display effect is improved.

Further, in some embodiments, taking the four-bit serial peripheral interface shown in fig. 3 as an example, the four-bit serial peripheral interface further includes a chip select interface LCD _ MSPI0_ CE0 and a clock interface LCD _ MSPI0_ SCK, where the chip select interface LCD _ MSPI0_ CE0 occupies chip pin 4 of the host controller, and the clock interface LCD _ MSPI0_ SCK occupies chip pin 26 of the host controller. The information display method may further include the steps of:

and sending the chip selection signal to the display device through the chip selection interface, and sending the clock signal to the display device through the clock interface.

In this embodiment, the chip select signal is used to indicate whether the main controller selects the display device, and only when the chip select signal is a preset enable signal (e.g., high level or low level), the main controller can control the display device to perform an information display operation. The clock signal is used for timing, so that the display device and the main controller can synchronously operate to complete the transmission of display data.

According to the embodiment of the application, the chip selection interface and the clock interface are arranged, so that occupation of chip pins of the main controller can be reduced, and the chip pins of the main controller are saved.

In some embodiments, the information display method further includes the steps of:

determining whether the information to be displayed in the next period of the display device changes or not according to the information to be displayed in the current period;

if so, acquiring information to be displayed of the display device in the next period, and splitting the information to be displayed to obtain at least one frame of display data;

and if not, sending at least one frame of display data to the display device for display through the serial peripheral interface according to the preset time period.

In this embodiment, the content displayed by the display device may or may not change in each period, for example, taking the wearable device being powered on, the display device may display the same image or multiple images in consecutive time periods.

If the content displayed by the display device in the next period changes, the main controller needs to acquire the information to be displayed in the next period again and split the information to be displayed in the next period. If the content displayed by the display device in the next period is not changed, the main controller can continuously send the display data obtained by splitting in the current period to the display device through the serial peripheral interface for displaying.

According to the display device and the display method, the display information of the display device in each period is judged, when the display information of the display device in the next period is not changed, the display data obtained by splitting in the current period can be directly sent to the display device, and the processing efficiency of the display information is improved.

In some embodiments, the step S203 may be specifically implemented by the following steps:

acquiring the frame number of display data obtained by splitting information to be displayed;

if the information to be displayed is split into one frame of display data, the one frame of display data is sent to a display device through a serial peripheral interface for displaying at intervals of a preset time period;

if the information to be displayed is split into more than two frames of display data, one frame of display data is sequentially selected from the more than two frames of display data at intervals of a preset time period and is sent to the display device through the serial peripheral interface to be displayed.

In this embodiment, if the information to be displayed is split into only one frame of display data, the main controller sends the frame of display data to the display device through the serial peripheral interface at every interval of a preset time period for displaying, and if the information to be displayed is split into multiple frames of display data, the main controller needs to sort the frames of display data to determine the sequence of the frames of display data, and then sends one frame of display data to the display device through the serial peripheral interface at every interval of the preset time period for displaying according to the sequence of the frames of display data.

According to the display data sending method and device, the frame number of the display data obtained through splitting is determined, the main controller can conveniently send the display data in a corresponding mode according to the frame number of the display data, and the data sending efficiency is improved.

In some embodiments, the information display method further includes the steps of:

acquiring the refresh times of a display screen of a display device per second;

and determining a preset time period according to the refreshing times of the display screen per second.

In this embodiment, the main controller wants to send the display data to the display device through the serial peripheral interface in a cycle, so that the information to be displayed is maintained on the display device, wherein the preset time period is related to the number of times the screen is refreshed per second of the display screen.

For example, the two refresh intervals are preferably greater than 10 milliseconds and less than 100 milliseconds. If the refresh rate per second is less than 10, the display screen may flicker, and if the refresh rate per second is too high, the power consumption may increase.

The embodiment of the application determines the preset time period by utilizing the refreshing times of the display screen every second, and can ensure that the main controller can transmit a frame of display data to the display device when each preset time period comes, so that the display device is prevented from flickering, and meanwhile, the power consumption can be reduced.

In some embodiments, before the step S201, the information display method further includes the steps of:

initializing the serial peripheral interface.

In this embodiment, after the power supply system of the wearable device normally supplies power, the main controller needs to initialize the system and then starts up, initializes the serial peripheral interface, and meanwhile, the display device also needs to initialize.

Fig. 4 is a schematic flowchart of a second embodiment of an information display method provided in the embodiment of the present application, and as shown in fig. 4, the method includes the following steps:

s401, the main controller initializes the MSPI interface.

S402, initializing the display device.

S403, the main controller generates information to be displayed;

s404, the main controller sends the information to be displayed to the display device through the MSPI interface.

In this embodiment, the MSPI interface is a multi-bit serial peripheral interface, which occupies at least four chip pins of the main controller and is used as a data communication interface for transmitting information to be displayed by the display device.

Fig. 5 is a schematic flowchart of a third embodiment of an information display method provided in the embodiment of the present application, and as shown in fig. 5, the method includes the following steps:

and S501, sending information to be displayed to a display device.

S502, sending a frame of data to a display device through an MSPI interface;

s503, judging whether a preset time period is arranged;

s504, waiting.

In this embodiment, when the main controller needs to send the displayed information to the display device and keep the displayed information on the display device for displaying, it needs to send one frame of data to the display device at intervals of a preset time period. That is, after a frame of data is transmitted to the display device, it is necessary to wait for a predetermined period of time and then continue to transmit a frame of data to the display device.

Fig. 6 is a schematic flowchart of a fourth embodiment of an information display method provided in the embodiment of the present application, and as shown in fig. 6, the method includes the following steps:

s601, sending a frame synchronization signal through an MSPI interface;

s602, sending a line synchronization signal through an MSPI interface;

s603, sending row data through MSPI;

s604, judging whether the last row of data is sent;

and S605, finishing the transmission of one frame of data.

In this embodiment, when the main controller sends a frame of data to the display device through the MSPI interface, it needs to send a frame synchronization signal to the display device first to implement frame synchronization, then send a row synchronization signal to the display device to implement row synchronization, and finally send each row of data in the frame of data to the display device in sequence until the last row of data in the frame of data is sent completely, and then end sending the entire frame of data.

The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.

Fig. 7 is a schematic structural diagram of an information display device provided in an embodiment of the present application, and as shown in fig. 7, the information display device may be integrated in a wearable device. The information display device 70 includes an acquisition module 71, a splitting module 72, and a sending module 73.

The obtaining module 71 is configured to obtain information to be displayed of the display device in a current period in response to the start of the wearable device. The splitting module 72 is configured to split information to be displayed to obtain at least one frame of display data. The sending module 73 is configured to send at least one frame of display data obtained by splitting to the display device through the serial peripheral interface for displaying according to a preset time period.

In some embodiments, the sending module 73 may be specifically configured to:

acquiring line data contained in at least one frame of display data;

sending a frame synchronization signal to a display device, wherein the frame synchronization signal is used for identifying at least one frame of display data;

sending a first line synchronizing signal to the display device, wherein the first line synchronizing signal is used for indicating the display device to identify line data contained in at least one frame of display data;

sending a second line synchronizing signal to the display device, wherein the second line synchronizing signal is used for identifying line data contained in at least one frame of display data;

and transmitting the row data contained in the at least one frame of display data to the display device through the serial peripheral interface.

In some embodiments, if the serial peripheral interface is a multi-bit serial peripheral interface, for example, the multi-bit serial peripheral interface includes at least four data communication interfaces, the sending module may be specifically configured to:

and sending at least one frame of display data obtained by splitting to a display device for displaying through at least four data communication interfaces.

In some embodiments, if the multi-bit serial peripheral interface further includes a chip select interface and a clock interface, the sending module may be specifically configured to:

and sending the chip selection signal to the display device through the chip selection interface, and sending the clock signal to the display device through the clock interface.

In some embodiments, the information display device 70 further comprises a circulation module for:

determining whether the information to be displayed in the next period of the display device changes or not according to the information to be displayed in the current period;

if so, acquiring information to be displayed of the display device in the next period, and splitting the information to be displayed to obtain at least one frame of display data;

and if not, sending at least one frame of display data to the display device for display through the serial peripheral interface according to the preset time period.

In some embodiments, the sending module 73 may be specifically configured to:

acquiring the frame number of display data obtained by splitting information to be displayed;

if the information to be displayed is split into one frame of display data, the one frame of display data is sent to a display device through a serial peripheral interface for displaying at intervals of a preset time period;

if the information to be displayed is split into more than two frames of display data, one frame of display data is sequentially selected from the more than two frames of display data at intervals of a preset time period and is sent to the display device through the serial peripheral interface to be displayed.

In some embodiments, the information display device 70 further includes a time acquisition module configured to:

acquiring the refresh times of a display screen of a display device per second;

and determining a preset time period according to the refreshing times of the display screen per second.

In some embodiments, the information display device 70 further includes an initialization module for:

initializing the serial peripheral interface.

Fig. 8 is a system framework diagram of a wearable device provided in an embodiment of the present application, and as shown in fig. 8, the wearable device includes: a main controller 81, a display device 82 whose operation mode is a video mode, a communication bus 83, and a memory 84.

Wherein: the main controller 81 is provided with a serial peripheral interface, and the display device 82 communicates with the serial peripheral interface provided on the main controller 81 via a communication bus 83.

The main controller 81 is configured to send the display data to the display device through the serial peripheral interface for displaying.

The host controller 81 may be a central host controller, or an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement embodiments of the present invention. The wearable device comprises one or more main controllers which can be the same type of main controller, such as one or more CPUs; or may be a different type of host controller such as one or more CPUs and one or more ASICs.

And the memory is used for storing programs. The memory may comprise high speed RAM memory and may also include non-volatile memory, such as at least one disk memory.

The embodiment also provides a readable storage medium, wherein the readable storage medium stores computer instructions, and when the at least one main controller of the wearable device executes the computer instructions, the wearable device executes the information display method provided by the above various embodiments.

The present embodiments also provide a program product comprising computer instructions stored in a readable storage medium. The computer instructions may be read by at least one master controller of the wearable device from a readable storage medium, and execution of the computer program by the at least one master controller causes the wearable device to implement the message display methods provided by the various embodiments described above.

In the present application, "at least one" means one or more, "a plurality" means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone, wherein A and B can be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship; in the formula, the character "/" indicates that the preceding and following related objects are in a relationship of "division". "at least one of the following" or similar expressions refer to any combination of these items, including any combination of the singular or plural items. For example, at least one (one) of a, b, or c, may represent: a, b, c, a-b, a-c, b-c, or a-b-c, wherein a, b, c may be single or multiple.

It is to be understood that the various numerical references referred to in the embodiments of the present application are merely for convenience of description and distinction and are not intended to limit the scope of the embodiments of the present application. In the embodiment of the present application, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiment of the present application.

Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.

22页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:网络拓扑结构的获取方法、装置、电子设备及存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!