Data transmission method and wearable device

By storing the data generated by the processing module in the smartwatch and then having it refreshed by the display module, the problem of frequent wake-ups of the processing module is solved, thus reducing power consumption and extending standby time.

CN115696522BActive Publication Date: 2026-01-02HONOR DEVICE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210879061.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-21
Publication Date
2026-01-02
Estimated Expiration
2041-07-21

AI Technical Summary

Technical Problem

When there is no data to send, the smartwatch's processing module frequently wakes up to detect the rising edge of the control signal, resulting in unnecessary power consumption, reduced standby time, and negatively impacting the user experience.

Method used

After the processing module generates the image content data, it stores it in the storage unit and is refreshed by the display module on the rising edge of the control signal. The data transmission frequency of the processing module and the display module is the same or similar to that of the display module to avoid the processing module waking up on every rising edge.

Benefits of technology

This reduces the number of invalid wake-ups of the processing module, lowers power consumption, increases the standby time of the smartwatch, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115696522B_ABST
    Figure CN115696522B_ABST
Patent Text Reader

Abstract

The application provides a data transmission method and a wearable device. After a processing module generates data of display content, the processing module can start to send data to a display module at any time, so that the display module stores the received data in a storage unit. The display module takes a rising edge of a control signal as a trigger condition, and performs self-refreshing according to the frequency of the control signal. The frequency at which the processing module sends data is consistent with or similar to the frequency at which the display module performs self-refreshing. In this way, the tearing effect of the display module in displaying content can be prevented, the processing module does not need to wake up at each rising edge, and the number of wake-up times of the processing module when no data is sent can be reduced, thereby reducing power consumption.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application of the original application with the application number 202110827557.2 and the filing date of July 21, 2021. The entire contents of the original application are incorporated herein by reference. TECHNICAL FIELD

[0002] The present application relates to the field of electronic technology, and in particular, to a data transmission method and a wearable device. BACKGROUND

[0003] With the continuous development of electronic technology, the functions that can be implemented by wearable devices such as smart watches are becoming more and more numerous, and the display effects are becoming more and more rich. For example, the processing module in the smart watch can be used to generate data of image content to be displayed, and send the data of the image content to the display module. The display module displays the image content on the display panel according to the received data, so that the user can watch the image content provided by the smart watch through the display panel.

[0004] In the prior art, in order to keep the processing module and the display module synchronized, the display module can generate a control signal and send it to the processing module, so that the display module displays the image content according to the rising edge time of the control signal, and at the same time, the processing module can also send the data of the image content to the display module according to the rising edge time of the control signal. And after the processing module completes the data sending operation, it can switch to a sleep state and wait for the next control signal rising edge to switch to a wake-up state.

[0005] With the prior art, the processing module needs to switch to a wake-up state after detecting the rising edge of each control signal when there is no data to be sent, which brings invalid power consumption, reduces the standby time of the smart watch as a whole, and affects the user experience of the smart watch. SUMMARY

[0006] The present application provides a data transmission method and a wearable device to solve the technical problem that the processing module of the smart watch is invalidly woken up at the rising edge of the control signal when there is no data to be sent, thereby increasing the standby time of the smart watch and improving the user experience.

[0007] The first aspect of the present application provides a data transmission method applied to a wearable device, the wearable device comprising a processing module and a display module, the method comprising: the processing module generating first data of first image content between a first time and a second time; the processing module sending the first data to the display module between the second time and a third time, so that the display module stores the first data in a storage unit after receiving the data; the display module obtaining second data from the storage unit between a fourth time and a fifth time, and displaying image content corresponding to the second data on a display panel; wherein a first time interval between the second time and the third time is the same as a second time interval between the fourth time and the fifth time, or the difference between the first time interval and the second time interval is less than a preset threshold.

[0008] In an embodiment of the first aspect of the present application, before the processing module generates the first data of the first image content, the method further comprises: the processing module switching from a sleep state to a wake-up state.

[0009] In an embodiment of the first aspect of the present application, after the processing module sends the first data to the display module, the method further comprises: the processing module switching from the wake-up state to the sleep state.

[0010] In an embodiment of the first aspect of the present application, before the processing module obtains the second data from the storage unit, the method further comprises: the display module detecting a first rising edge of a control signal.

[0011] In an embodiment of the first aspect of the present application, the second time is a time between the fourth time and the fifth time; or the second time is the same as the fourth time; or the second time is a time before a sixth time corresponding to a second rising edge after the first rising edge.

[0012] In an embodiment of the first aspect of the present application, a first frequency f1 corresponding to the first time interval is calculated by the following formula: f1=Width*Height*BitDepth / T / 2; wherein Width is the resolution of the display panel in the width direction, Height is the resolution of the display panel in the height direction, BitDepth is the display color depth of the display panel, and T is the second time interval.

[0013] In an embodiment of the first aspect of the present application, the method further comprises: when the display module switches from an off-screen state to an on-screen state, the display module calculates the first frequency f1 corresponding to the first time interval by the formula.

[0014] In an embodiment of the first aspect of the application, the method further comprises: when the target device in the wearable device is in the stop working state, the processing module sends the first data to the display module between the second time and the third time; when the target device is in the working state, the processing module sends the first data to the display module between the seventh time and the eighth time according to the rising edge of the detected control signal; and the time interval between the seventh time and the eighth time is less than the time interval between the second time and the third time.

[0015] In an embodiment of the first aspect of the application, the method further comprises: when the target application in the wearable device is in the stop working state, the processing module sends the first data to the display module between the second time and the third time; when the target application is in the working state, the processing module sends the first data to the display module between the seventh time and the eighth time according to the rising edge of the detected control signal; and the time interval between the seventh time and the eighth time is less than the time interval between the second time and the third time.

[0016] The second aspect of the application provides a wearable device, comprising: a processing module, configured to generate first data of first image content between a first time and a second time, and send the first data to a display module between the second time and a third time; a display module, configured to store the first data in a storage unit after receiving the first data, and acquire second data from the storage unit between a fourth time and a fifth time, and display image content corresponding to the second data on a display panel; and the first time interval of the second time and the third time is the same as the second time interval between the fourth time and the fifth time, or the difference between the first time interval and the second time interval is less than a preset threshold.

[0017] The third aspect of the application provides a terminal device, comprising: a processor and a memory; the memory stores computer execution instructions; and the processor executes the computer execution instructions stored in the memory, so that the processor executes the data transmission method of any one of the first aspect of the application.

[0018] The fourth aspect of the application provides a computer readable storage medium, and the computer readable storage medium stores computer execution instructions; when the processor executes the computer execution instructions, the data transmission method of any one of the first aspect of the application is realized.

[0019] The fifth aspect of the application provides a computer program product, comprising a computer program; when the computer program is executed by the processor, the data transmission method of any one of the first aspect of the application is realized.

[0020] In summary, the data transmission method and wearable device provided by the embodiments of the present application can start sending data to the display module at any time after the processing module generates the data of the display content, so that the display module stores the received data in the storage unit. The display module uses the rising edge of the control signal as a trigger condition, and performs self-refreshing according to the frequency of the control signal. The frequency of the data sent by the processing module is consistent with or close to the frequency of the self-refreshing of the display module, so that the data sent by the processing module and the self-refreshing of the display module are independent of each other. Although the reading and writing of the data in the same position are synchronized, the deviation of the sequence of the reading and the writing causes the display module to read the data before the update or the data after the update when reading the data according to the control signal, thereby preventing the tearing effect of the display content of the display module. In addition, the processing module does not need to send data according to the rising edge of the control signal, so it does not need to wake up at each rising edge. The processing module can also reduce the number of wake-up times when not sending data, thereby reducing power consumption. BRIEF DESCRIPTION OF DRAWINGS

[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings needed to be used in the embodiments or the prior art description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.

[0022] Figure 1 A structural schematic diagram of an electronic device is shown;

[0023] Figure 2 A schematic diagram of an application scenario of the present application is shown;

[0024] Figure 3 A structural schematic diagram of a smart watch provided by the present application is shown;

[0025] Figure 4 A schematic diagram of a display module displaying image content is shown;

[0026] Figure 5 A timing diagram of self-refreshing of a display module is shown;

[0027] Figure 6 A schematic diagram of a tearing effect of a display module is shown;

[0028] Figure 7 A timing diagram of processing data by a processing module and a display module according to a control signal is shown;

[0029] Figure 8A diagram illustrating a comparison between data stored in a GRAM and content displayed by a display panel;

[0030] Figure 9 A diagram illustrating a sleep timing of a processing module;

[0031] Figure 10 A diagram illustrating a flow of an embodiment of the data transmission method provided in the present application;

[0032] Figure 11 A diagram illustrating a timing of an embodiment of the data transmission method provided in the present application;

[0033] Figure 12 A diagram illustrating a comparison between data stored in a GRAM and content displayed by a display panel;

[0034] Figure 13 A diagram illustrating a timing of another embodiment of the data transmission method provided in the present application. DETAILED DESCRIPTION

[0035] Figure 1 A diagram illustrating a structure of an electronic device is shown.

[0036] The electronic device 100 can include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone interface 170D, a sensor module 180, a key 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 can include a pressure sensor 180A, a gyro sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0037] It can be understood that the structural schematic of the embodiments of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 can include more or fewer components than those shown, or combine certain components, or split certain components, or different arrangement of components. The components shown can be implemented in hardware, software, or a combination of software and hardware.

[0038] The processor 110 can include one or more processing units. For example, the processor 110 can include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units can be independent devices or integrated in one or more processors.

[0039] The controller can generate operation control signals according to instruction operation codes and timing signals, and complete the control of fetching and executing instructions.

[0040] The processor 110 can also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory can save instructions or data that have just been used or are used repeatedly by the processor 110. If the processor 110 needs to use the instructions or data again, it can directly call from the memory. This avoids repeated access and reduces the waiting time of the processor 110, thereby improving the efficiency of the system.

[0041] In some embodiments, the processor 110 can include one or more interfaces. The interfaces can include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0042] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 can include multiple sets of I2C buses. The processor 110 can be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces, respectively. For example, the processor 110 can be coupled to the touch sensor 180K through an I2C interface, so that the processor 110 and the touch sensor 180K communicate through the I2C bus interface, and realize the touch function of the electronic device 100.

[0043] The I2S interface can be used for audio communication. In some embodiments, the processor 110 can include multiple sets of I2S buses. The processor 110 can be coupled to the audio module 170 through the I2S bus, and realize the communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can deliver audio signals to the wireless communication module 160 through the I2S interface, and realize the function of answering the phone through the Bluetooth headset.

[0044] The PCM interface can also be used for audio communication, which samples, quantizes and encodes analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled through the PCM bus interface. In some embodiments, the audio module 170 can also deliver audio signals to the wireless communication module 160 through the PCM interface, and realize the function of answering the phone through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.

[0045] The UART interface is a universal serial bus for asynchronous communication. The bus can be a bidirectional communication bus. It converts data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is usually used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to realize the Bluetooth function. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 through the UART interface to realize the function of playing music through the Bluetooth headset.

[0046] The MIPI interface can be used to connect the processor 110 and peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc. In some embodiments, the processor 110 and the camera 193 communicate through the CSI interface to realize the shooting function of the electronic device 100. The processor 110 and the display screen 194 communicate through the DSI interface to realize the display function of the electronic device 100.

[0047] The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 and the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.

[0048] The USB interface 130 is an interface that meets the USB standard specification, and can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 100, or to transmit data between the electronic device 100 and a peripheral device. It can also be used to connect a headset to play audio through the headset. The interface can also be used to connect other electronic devices, such as AR devices, etc.

[0049] It can be understood that the interface connection relationship between the modules shown in the embodiments of the present application is only illustrative and does not constitute a structural limitation of the electronic device 100. In some other embodiments of the present application, the electronic device 100 can also use different interface connection methods or combinations of multiple interface connection methods in the above embodiments.

[0050] The charging management module 140 is configured to receive charging input from a charger. The charger can be a wireless charger or a wired charger. In some embodiments with wired charging, the charging management module 140 can receive charging input from a wired charger through the USB interface 130. In some embodiments with wireless charging, the charging management module 140 can receive wireless charging input through a wireless charging coil of the electronic device 100. The charging management module 140 can supply power to the electronic device while charging the battery 142.

[0051] The power management module 141 is configured to connect the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 to supply power to the processor 110, the internal memory 121, the display 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be configured to monitor parameters such as battery capacity, battery cycle count, battery health status (leakage, impedance), and the like. In some other embodiments, the power management module 141 can also be disposed in the processor 110. In some other embodiments, the power management module 141 and the charging management module 140 can also be disposed in the same device.

[0052] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, and a baseband processor, and the like.

[0053] The antenna 1 and the antenna 2 are configured to transmit and receive electromagnetic wave signals. Each antenna in the electronic device 100 can be configured to cover a single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example, the antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in combination with a tuning switch.

[0054] The mobile communication module 150 can provide a solution for wireless communication including 2G / 3G / 4G / 5G, etc. applied to the electronic device 100. The mobile communication module 150 can include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves by the antenna 1, and perform filtering, amplification, etc. on the received electromagnetic waves, and transfer the same to the modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor, and radiate the same as electromagnetic waves through the antenna 1. In some embodiments, at least part of the functional modules of the mobile communication module 150 can be disposed in the processor 110. In some embodiments, at least part of the functional modules of the mobile communication module 150 can be disposed in the same device as at least part of the modules of the processor 110.

[0055] The modem processor can include a modulator and a demodulator. The modulator is configured to modulate a low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is configured to demodulate a received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. The low-frequency baseband signal processed by the baseband processor is transmitted to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the microphone 170B, etc.), or displays an image or a video through the display screen 194. In some embodiments, the modem processor can be a separate device. In other embodiments, the modem processor can be independent of the processor 110, and disposed in the same device as the mobile communication module 150 or other functional modules.

[0056] The wireless communication module 160 can provide a solution for wireless communication including wireless local area networks (WLAN) (e.g., wireless fidelity (Wi-Fi) network), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR) technology, etc. applied to the electronic device 100. The wireless communication module 160 can be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives an electromagnetic wave via the antenna 2, frequency-modulates and filters the electromagnetic wave signal, and transmits the processed signal to the processor 110. The wireless communication module 160 can also receive a signal to be transmitted from the processor 110, frequency-modulate it, amplify it, and radiate it as an electromagnetic wave via the antenna 2.

[0057] In some embodiments, the antenna 1 and the mobile communication module 150 of the electronic device 100 are coupled, and the antenna 2 and the wireless communication module 160 are coupled, so that the electronic device 100 can communicate with a network and other devices through wireless communication technology. The wireless communication technology can include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology, etc. The GNSS can include a global positioning system (GPS), a global navigation satellite system (GLONASS), a beidu navigation satellite system (BDS), a quasi-zenith satellite system (QZSS), and / or a satellite based augmentation systems (SBAS).

[0058] The electronic device 100 implements a display function through a GPU, a display screen 194, and an application processor, etc. The GPU is a microprocessor for image processing, which is connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 can include one or more GPUs, which execute program instructions to generate or change display information.

[0059] The display screen 194 is configured to display images, videos, and the like. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flex light-emitting diode (FLED), a Miniled, a MicroLed, a Micro-oLed, a quantum dot light emitting diodes (QLED), or the like. In some embodiments, the electronic device 100 can include one or N display screens 194, where N is a positive integer greater than 1.

[0060] The electronic device 100 can implement the photographing function through the ISP, the camera 193, the video codec, the GPU, the display screen 194, and the application processor.

[0061] The ISP is configured to process the data fed back by the camera 193. For example, when taking a photo, the shutter is opened, the light is transmitted to the camera photosensitive element through the lens, the light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing to convert it into an image visible to the naked eye. The ISP can also optimize the noise, brightness, and skin color of the image. The ISP can also optimize the exposure, color temperature, and other parameters of the shooting scene. In some embodiments, the ISP can be disposed in the camera 193.

[0062] The camera 193 is configured to capture still images or videos. An object generates an optical image through a lens and projects it onto a photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, which is then transmitted to the ISP to convert it into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV, or the like format. In some embodiments, the electronic device 100 can include one or N cameras 193, where N is a positive integer greater than 1.

[0063] The digital signal processor is used to process digital signals, in addition to being able to process digital image signals, it can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy, etc.

[0064] The video codec is used to compress or decompress digital video. The electronic device 100 can support one or more video codecs. In this way, the electronic device 100 can play or record videos in multiple encoding formats, such as: moving picture experts group (MPEG) 1, MPEG 2, MPEG 3, MPEG 4, etc.

[0065] The NPU is a neural-network (NN) calculation processor, which can quickly process input information by drawing on the structure of a biological neural network, such as drawing on the transmission mode between human brain neurons, and can also constantly self-learn. Through the NPU, the electronic device 100 can realize intelligent cognition applications such as image recognition, face recognition, voice recognition, text understanding, etc.

[0066] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to realize data storage functions. For example, music, video, etc. Files are saved in the external memory card.

[0067] The internal memory 121 can be used to store computer executable program codes, which include instructions. The internal memory 121 can include a program storage area and a data storage area. The program storage area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function, etc.), etc. The data storage area can store data created during the use of the electronic device 100 (such as audio data, a phonebook, etc.), etc. In addition, the internal memory 121 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various function applications and data processing of the electronic device 100 by running instructions stored in the internal memory 121 and / or instructions stored in the memory provided in the processor.

[0068] The electronic device 100 can realize audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor, etc. For example, music playing, recording, etc.

[0069] The audio module 170 is configured to convert digital audio information into an analog audio signal output, and to convert an analog audio input into a digital audio signal. The audio module 170 can also be configured to encode and decode audio signals. In some embodiments, the audio module 170 can be disposed in the processor 110, or some of the functions of the audio module 170 can be disposed in the processor 110.

[0070] The speaker 170A, also referred to as a "loudspeaker", is configured to convert an audio electrical signal into a sound signal. The electronic device 100 can listen to music or listen to a hands-free call through the speaker 170A.

[0071] The receiver 170B, also referred to as a "earpiece", is configured to convert an audio electrical signal into a sound signal. When the electronic device 100 receives a call or a voice message, the user can listen to the voice by holding the receiver 170B close to the ear.

[0072] The microphone 170C, also referred to as a "microphone", "transducer", is configured to convert a sound signal into an electrical signal. When making a call or sending a voice message, the user can make a sound by holding the mouth close to the microphone 170C, and input the sound signal into the microphone 170C. The electronic device 100 can be provided with at least one microphone 170C. In other embodiments, the electronic device 100 can be provided with two microphones 170C, in addition to collecting sound signals, noise reduction functions can also be realized. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C, in addition to collecting sound signals, noise reduction, and can also identify the source of the sound, realize directional recording function, etc.

[0073] The earphone interface 170D is configured to connect a wired earphone. The earphone interface 170D can be a USB interface 130, or a 3.5mm open mobile terminal platform (OMTP) standard interface, a cellular telecommunications industry association of the USA (CTIA) standard interface.

[0074] The pressure sensor 180A is configured to sense a pressure signal, and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be disposed on the display screen 194. The pressure sensor 180A

[0075] There are many types of pressure sensors, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. A capacitive pressure sensor can include at least two parallel plates with conductive material. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation is applied to the display screen 194, the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A. The electronic device 100 can also calculate the position of the touch according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations applied to the same touch position but with different touch operation intensities can correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than a first pressure threshold is applied to a short message application icon, an instruction to view short messages is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold is applied to the short message application icon, an instruction to create a new short message is executed.

[0076] The gyroscope sensor 180B can be used to determine the motion posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (i.e., x, y, and z axes) can be determined by the gyroscope sensor 180B. The gyroscope sensor 180B can be used for anti-shake photography. For example, when the shutter is pressed, the gyroscope sensor 180B detects the angle of the electronic device 100 shaking, calculates the distance that the lens module needs to compensate according to the angle, and lets the lens offset the shaking of the electronic device 100 by reverse movement to achieve anti-shake. The gyroscope sensor 180B can also be used for navigation and motion sensing game scenarios.

[0077] The barometric pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude, assists in positioning and navigation by the air pressure value measured by the barometric pressure sensor 180C.

[0078] The magnetic sensor 180D includes a Hall sensor. The electronic device 100 can detect the opening and closing of a flip cover with the magnetic sensor 180D. In some embodiments, when the electronic device 100 is a flip phone, the electronic device 100 can detect the opening and closing of the flip cover according to the magnetic sensor 180D. Further, according to the detected opening and closing state of the cover or the opening and closing state of the flip cover, the electronic device 100 can set features such as automatic unlocking of the flip cover.

[0079] The acceleration sensor 180E can detect the magnitude of acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the electronic device posture, applied to landscape / portrait screen switching, pedometer, etc.

[0080] The distance sensor 180F is configured to measure distance. The electronic device 100 can measure distance by infrared or laser. In some embodiments, the electronic device 100 can utilize the distance sensor 180F to measure distance to achieve fast focus when taking a picture.

[0081] The proximity light sensor 180G can include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The light emitting diode can be an infrared light emitting diode. The electronic device 100 emits infrared light outwardly through the light emitting diode. The electronic device 100 detects infrared reflected light from nearby objects using the photodiode. When sufficient reflected light is detected, the electronic device 100 can determine that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 can determine that there is no object near the electronic device 100. The electronic device 100 can utilize the proximity light sensor 180G to detect that a user is holding the electronic device 100 close to the ear for a phone call, so as to automatically turn off the screen to save power. The proximity light sensor 180G can also be used for automatic unlocking and locking of the screen in a case mode or a pocket mode.

[0082] The ambient light sensor 180L is configured to sense ambient light brightness. The electronic device 100 can adaptively adjust the display screen 194 brightness according to the sensed ambient light brightness. The ambient light sensor 180L can also be used to automatically adjust white balance when taking a picture. The ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in a pocket to prevent accidental touch.

[0083] The fingerprint sensor 180H is configured to collect a fingerprint. The electronic device 100 can utilize the collected fingerprint characteristics to implement fingerprint unlocking, access application lock, fingerprint picture taking, fingerprint call answering, and the like.

[0084] The temperature sensor 180J is configured to detect temperature. In some embodiments, the electronic device 100 utilizes the temperature detected by the temperature sensor 180J to implement temperature processing strategies. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold value, the electronic device 100 reduces the performance of a processor located near the temperature sensor 180J to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold value, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 caused by low temperature. In other embodiments, when the temperature is lower than yet another threshold value, the electronic device 100 performs voltage boosting on the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.

[0085] Touch sensor 180K, also referred to as "touch device". Touch sensor 180K can be disposed on display screen 194, and touch sensor 180K and display screen 194 form a touch screen, also referred to as "touch panel". Touch sensor 180K is configured to detect touch operations applied to or near the touch sensor 180K. The touch sensor can transmit the detected touch operation to the application processor to determine the touch event type. Visual output related to the touch operation can be provided through display screen 194. In other embodiments, touch sensor 180K can also be disposed on the surface of electronic device 100, which is different from the position of display screen 194.

[0086] Bone conduction sensor 180M can obtain vibration signals. In some embodiments, bone conduction sensor 180M can obtain vibration signals of the human body sound part vibration bone block. Bone conduction sensor 180M can also contact the human body pulse to receive blood pressure pulsation signals. In some embodiments, bone conduction sensor 180M can also be disposed in a headset to form a bone conduction headset. Audio module 170 can analyze voice signals based on the vibration signals of the sound part vibration bone block obtained by the bone conduction sensor 180M to realize voice functions. The application processor can analyze heart rate information based on the blood pressure pulsation signals obtained by the bone conduction sensor 180M to realize heart rate detection functions.

[0087] Keys 190 include power on / off keys, volume keys, and the like. Keys 190 can be mechanical keys. They can also be touch keys. Electronic device 100 can receive key input and generate key signal input related to user settings and function control of electronic device 100.

[0088] Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts and also for touch vibration feedback. For example, touch operations applied to different applications (such as taking pictures, playing audio, etc.) can correspond to different vibration feedback effects. Touch operations applied to different regions of display screen 194 can also correspond to different vibration feedback effects of motor 191. Different application scenarios (such as time reminders, received messages, alarms, games, etc.) can also correspond to different vibration feedback effects. Touch vibration feedback effects can also be customizable.

[0089] Indicator 192 can be an indicator light, which can be used to indicate charging status, power changes, and also to indicate messages, missed calls, notifications, and the like.

[0090] The SIM card interface 195 is configured to connect a SIM card. The SIM card can be inserted into or removed from the SIM card interface 195 to realize contact and separation with the electronic device 100. The electronic device 100 can support one or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support a Nano SIM card, a Micro SIM card, a SIM card, and the like. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external storage cards. The electronic device 100 interacts with a network through the SIM card to realize functions such as call and data communication. In some embodiments, the electronic device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.

[0091] In some embodiments, the electronic device as shown in Figure 1 may be a wearable device such as a smart watch with a display screen, for example, Figure 2 For a schematic diagram of the application scenario, the application is applied to a wearable device such as a smart watch with a display screen, for example, Figure 2 Take a smart watch 10 as an example of a wearable device, where the processing module 102 in the smart watch 10 can be used to generate image content to be displayed and send the image content to the display module 101, so that the display module 101 displays the image content on the display panel, so that the user can watch the image content provided by the smart watch 10 through the display panel. For example, in the example shown in Figure 2 , the image content displayed on the display page of the smart watch 10 includes time, date, and background patterns, and the background patterns can be, for example, two human image on the upper half of the image content. Figure 2

[0092] In some embodiments, Figure 3 For a structural schematic diagram of the smart watch provided by the application, the connection relationship between the display module 101 and the processing module 102 in the smart watch 10 as shown in Figure 2 is shown, for example, Figure 3 ​As shown, the processing module 102 specifically includes a processor, a controller, a flash, a random access memory (RAM), all of which are connected with a bus; wherein the processor can be a CPU, a GPU, an MCU, etc. processing device, such as Cortex-M, and the controller can be a display controller, etc. The processing module 102 and the display module 101 are also connected through a display serial interface (DSI), and in some embodiments, a host end of the DSI can be arranged in the processing module 102 and connected with the bus in the processing module 102, and a slave end of the DSI can be arranged in the display module 101, so that the processing module 102 and the display module 101 can transmit data through the DSI. The display module 101 further includes a controller, a graph random access memory (GRAM), and a display panel, and the controller can also be a display controller, etc. The GRAM is connected with the DSI slave end and the controller, and the controller is connected with the GRAM and the display panel. The display panel can specifically be an organic light-emitting diode (OLED).

[0093] In some embodiments, the processor in the processing module 102 can be used to generate image content to be displayed, and store data of the image content in a frame buffer in the RAM, which can be referred to as “drawing”. Subsequently, the controller in the processing module 102 can control the data of the image content stored in the frame buffer to be sent to the display module 101 through the DSI interface, and the display module 101 can store the data of the image content in the GRAM after receiving the data of the image content through the DSI interface, which can be referred to as “sending image”. Subsequently, the controller in the display module 101 reads the data of the image content in the GRAM, and displays the image content on the display panel, to realize the process of drawing, sending image, and displaying the entire image content.

[0094] More specifically, Figure 4 A schematic diagram of the display module when displaying image content is provided in the present application, wherein when the controller obtains the data of the image content to be displayed from the GRAM, and controls the display panel to display the image content according to the data, the content displayed on the display panel is updated in the order from top to bottom and from left to right as shown in Figure 4 For example, in the example shown in Figure 4 , it is assumed that the image content to be displayed by the display panel 101 is Figure 2The standby time page in the illustrated scenario, the time required for refreshing the image content on the display panel starts from t100 and ends at t200, in which at t101, the image content on the display panel is updated to the first part, only showing part of the two figures; at t102, the image content on the display panel is updated to the second part of the entire content, which shows another part of the two figures and part of the date; at t103, the image content on the display panel is updated to the third part, which can show another part of the date and part of the time, and at t200, the image content is updated to the fourth part, which can show another part of the time. The time for the display panel to update the entire image content is recorded as T1 = t200-t100. Although the display panel does not display the entire image content within the T1 time period, the display process in the above T1 time period will be repeated at a high refresh rate, so that the human eye can observe that the display panel displays the entire image content by taking advantage of the persistence of vision of the human eye.

[0095] In some embodiments, the smart watch 10 needs to maintain a constant state and display the time as shown in Figure 2 on its display panel for the user to view at any time, while the image content as shown in Figure 2 changes only once every 1 second, the processing module 102 sends new image content data to the display module 101 only once every 1 second, and within this 1 second, in order to realize the persistence of vision of the human eye, the display module 101 needs to constantly obtain the stored image content data from its GRAM and display it on the display panel at a certain frequency, which can also be referred to as: panel self refresh (PSR).

[0096] Figure 5 The timing diagram of the display module self-refresh provided in the present application, wherein the display module 101 can be used to generate a periodic control signal, which can be a tearing effect (TE) signal, so that the controller can perform self-refresh of the display panel displayed picture content under the triggering of the control signal. For example, in the example shown in Figure 5 , the control signal generated by the display module 101 is a periodic square wave signal, and the frequency f of the control signal is 60Hz, so the period T2 of the control signal is 16.7ms, that is, the time length between one rising edge t1 and the next rising edge t2 of the control signal is T2. After the display module 101 detects the rising edge of the control signal, it obtains the image content data from the GRAM and displays it according to the data as shown in Figure 4The image content update process is shown below. For example, when the display module 101 detects the rising edge of the control signal at time t1, after a certain delay (approximately 0.7ms), at time t21 after time t1, it begins to retrieve image content data from the GRAM to perform the following... Figure 4 The update process is shown, and it is completed at time t22. The time length between t21 and t22 is equivalent to... Figure 4 The value of T1 shown is typically slightly smaller than T2; for example, T1 can be set to approximately 16ms. Similarly, after the display module 101 detects the rising edge of the control signal at time t2, it retrieves the image content data from the GRAM again and updates the image content on the display panel between times t23 and t24 after time t2. It can be understood that within one second, the display module 101 will detect 60 rising edges of the control signal and repeat the process of retrieving data from the GRAM and updating the image content on the display panel 60 times.

[0097] In some embodiments, since the display module 101 obtains image content data from its GRAM, and the processing module 102 also stores the image into the GRAM via the DSI interface after drawing new image content, overwriting the original image content stored in the GRAM, if the processing module 102 is writing data into the GRAM while the display module 101 is reading data stored in the GRAM, the data obtained by the display module 101 will belong to two different image contents, causing a "tearing effect".

[0098] For example, Figure 6 This is a schematic diagram illustrating the tearing effect of a display module. Figure 5 Taking the time sequence shown as a reference, assume that at time t1, the display module 101 retrieves the image content from the GRAM as the data of the standby time page and refreshes and displays this standby time page on the display panel. After time t1 and before time t2, the processing module 102 begins to update the data in the GRAM, and only completes the update of the first half of the data in the GRAM at time t2. Subsequently, when the display module 101 detects the rising edge of the control signal at time t2, it retrieves the data from the GRAM. At this time, some data has been updated, while some data has not yet been updated. This causes the upper half of the image content read and displayed by the display module after time t2 to be the content of the standby time page before the update, and the lower half to be the content of the updated dial, forming a tear in the image content and greatly affecting the display effect. After time t3, since the processing module 102 has completed the update of the data in the GRAM, the content retrieved and displayed by the display panel 101 is also the updated dial.

[0099] In order to prevent the tearing effect of the content displayed by the display module, the time for the display module 101 to read data from the GRAM and the time for the processing module 102 to write data into the GRAM need to be limited. In some embodiments, the processing module 102 and the display module 101 can both use the rising edge of the control signal as a trigger, and the drawing process of the processing module 102 and the drawing process of the display module 101 are completed between two rising edges respectively, so as to prevent the tearing effect of the displayed content.

[0100] For example, Figure 7 For a timing diagram of a processing module and a display module processing data according to a control signal, the control signal is also taken as an example of a periodic square wave signal with a period of T2. After the display module 101 generates the control signal, the display module 101 sends the control signal from the DSI slave end to the DSI host end of the processing module 102, so that when the processing module 102 detects the rising edge of the control signal at t1, the processing module 102 starts to send the data of the new image content to the GRAM of the display module 101 through the DSI interface at t11 after a certain time delay (about 0.2ms), and the sent data can be drawn by the processor in the processing module 102 before t11. Similarly, at t1, when the display module 101 detects the rising edge of the control signal, the display module 101 starts to obtain the data of the image content from the GRAM at t21 after a certain time delay (about 0.7ms), and t21 is later than t11. Subsequently, the processing module 102 ends to send the data of the new image content into the GRAM at t12, and the time T3 of the entire drawing of the processing module 102 is less than the drawing time of the display module 101 once, so that the display module 101 completes the update of the image content displayed on the display panel at t22 after t12.

[0101] Specifically, Figure 8 For a comparison diagram between the data stored in the GRAM and the content displayed on the display panel, corresponding to Figure 7In the process shown, after the rising edge of the control signal at time t1, at time t11, the processing module 102 is preparing to start sending new image content to the GRAM, so the image content stored in the GRAM at time t11 is still the standby time page before the update, the display module 101 also has not read the data stored in the GRAM and refreshed the display panel, and the display panel has not started refreshing and has no display content. At time t21, the processing module 102 has sent part of the new image content to the GRAM, assuming that the new image content is a watch face, at this time the upper half of the image content stored in the GRAM is the content of the standby time page after the update, and the lower half is the content of the watch face after the update, and the display module 101 has also started to obtain the image content data from the GRAM and update it to the display panel at time t21 according to the rising edge at time t1, so that the top of the display panel starts to appear the image content of the updated watch face. At time t12, the processing module 102 has sent the entire watch face content to the GRAM of the display module 101, completing the update of the data in the GRAM, so that the GRAM stores the data of the updated watch face after time t12, at this time the display module 101 continues to obtain the image content data from the GRAM and update it to the display panel, and the obtained image content is also the updated watch face, so the display module 101 updates part of the watch face content at time t12. At time t22, the display module 101 continues to display part of the watch face content.

[0102] Because in the entire processing process after time t1, the processing module 102 starts to send the updated image content to the GRAM earlier than the self-refreshing action of the display module 101, and the time T3 of the processing module 102 to update the image content is less than the time of the display module 101 to refresh the display panel, therefore the data obtained from the GRAM by the display module after time t21 corresponds to the image content updated by the display module 101, thereby avoiding the tearing effect of the content displayed by the display panel in the scenario shown. Figure 6

[0103] In some embodiments, the image content displayed in the smart watch 10 is determined by the processing module 102, and for different image content, the processing module 102 draws and sends the image to the display module 101 at different frequencies, for example, when the image content is a standby time page, a watch face page, etc., the processing module 102 needs to update the part of the image content representing the minutes every 1 minute, thereby generating new image content and sending it to the display module 101 for display; when the image content is a measured heart rate, a workout page, etc., the processing module 102 needs to update the image content every 1 second and send it to the display module 101 for display. That is, although the display module 101 is refreshing the display panel, the processing module 102 is still sending new image content to the display module 101, so that the display module 101 can display the new image content on the display panel. Figure 6 ​The timing diagram shown defines the time at which the processing module 102 sends the data of the image content after the rising edge of each control signal, but the processing module 102 still needs to send the updated image content to the GRAM of the display module 101 for storage after updating the image content and completing the drawing. At the same time, the display module 101 still acquires the image data from the GRAM and performs self-refresh after detecting the rising edge of each control signal.

[0104] Therefore, in some embodiments, the processing module 102 can switch to a sleep state to save power consumption when it does not send the data of the image content to the display module 101. The sleep state can also be referred to as a deep sleep state, and the DSI interface of the processing module 102 can be in the ULPS (LP00) state and the DPHY function is turned off. The state opposite to the sleep state can be referred to as a wakeup state, and the DSI interface of the processing module 102 can be in the stop state (LP11) in some specific implementations. In some specific implementations, it takes about 1 ms for the processing module 102 to switch from the sleep state to the wakeup state.

[0105] Exemplarily, Figure 9 Fig. 2 is a timing diagram of the sleep state of a processing module. It is assumed that the processing module 102 generates new image content, and when the rising edge of the control signal at t1 is detected, the processing module 102 sends the data of the image content to the display module 101 to implement image sending according to the timing shown in Fig. 2 at t11 after t1. Figure 7 After the image sending is completed, the processing module 102 can switch from the wakeup state back to the sleep state at t12 to save power consumption. When the processing module 102 detects the rising edge of the control signal at t2, it needs to switch from the sleep state to the wakeup state and detect whether image sending is needed. If not, the processing module switches to the sleep state to save power consumption until the rising edge of the next control signal.

[0106] However, in the above sleep process, the processing module 102 needs to switch to the wakeup state after detecting the rising edge of each control signal even if it does not need to send the image and has no data to send to the display module 101. Although it switches back to the sleep state after determining that the image sending is not needed, the frequent wakeup according to the control signal causes invalid power consumption. Especially when the image sending frequency of the processing module 102 is low, the processing module 102 needs to be frequently woken up a large number of times between each two image sending, which seriously increases the power consumption of the processing module 102, reduces the standby time of the smart watch 10 as a whole, and further affects the user experience.

[0107] Therefore, an embodiment of the present application further provides another data transmission method used by the processing module 102 when sending data to the display module 101 in a wearable device such as the smart watch 10, which can prevent tearing effect of the display content of the display module 101 and reduce the wake-up times of the processing module 102 when no data is sent, thereby reducing power consumption. Specifically, the data transmission method provided by the embodiment of the present application can be applied in the smart watch 10 as shown in Figure 2 which is executed by the processing module 102 and the display module 101 in the smart watch 10, Figure 10 The flowchart of an embodiment of the data transmission method provided by the present application is shown in Figure 10 which includes the following steps:

[0108] S101: The processing module 102 generates first data of first image content to be displayed between the first time and the second time. Specifically, the first data can be generated by the processor in the processing module 102 and stored in the RAM.

[0109] Figure 11 The timing diagram of an embodiment of the data transmission method provided by the present application is shown in Figure 11 In the embodiment shown in the figure, it is assumed that the processing module 102 determines that the first data corresponding to the first image content needs to be generated at the first time t30, and switches from the sleep state to the wake-up state. Then, the processor in the processing module 102 completes the drawing of the first image content to be displayed between the first time t30 and the second time t31, and stores the first data of the first display content obtained by the drawing in the RAM.

[0110] S102: The processing module 102 sends the first data stored in the RAM to the display module 101 at the second time and the third time.

[0111] Correspondingly, in S103, the display module 101 stores the first data of the first image content to be displayed sent by the processing module 102 in the storage unit after receiving the first data, and the storage unit can be the GRAM in the display module 101.

[0112] Specifically, in this embodiment, the processing module 102 does not need to send the data stored in the RAM after detecting the rising edge of the control signal, but can start sending the data stored in the RAM to the display module 101 through S102 after the second time t31 when the processing module 102 generates the first image content to be displayed in S101.

[0113] In some embodiments, the processing module 102 specifically sends data through the DSI interface between its DSI host and the DSI control terminal of the display module 101. The data transmission period T3 of the processing module 102 is the same as the period T2 of the display module 101 acquiring image content data from the GRAM and updating the display panel to refresh the display page. For example, in Figure 11 In the example shown, the processing module 102 sends the first data stored in RAM to the display module 101 between the second time t31 and the third time t32. The period T3 of the time interval between the second time t31 and the third time t32 is the same as the period T2 of the display module 101 refreshing the display panel content. That is, the frequency at which the processing module 102 sends data to the display module 101 via the DSI interface is the same as the self-refresh frequency of the display module 101. The frequency at which the processing module 102 sends data can be set by the DSI frequency of the DSI interface. For example, assuming the self-refresh frequency of the display module 101 is 60Hz, the DSI frequency of the DSI interface can be set to 60Hz, making the time interval T3 between the second time t31 and the third time t32 of the processing module 102 sending data 16.7ms, corresponding to a 60Hz frequency.

[0114] In some embodiments, after the processing module 102 completes the first data transmission at the third time t32, it can switch from the wake-up state to the sleep state. It will switch back to the wake-up state when it is determined that data for generating the image content to be displayed needs to be generated again, and the above S101-S102 will be executed repeatedly.

[0115] S201: Display module 101 retrieves image content data from the storage unit and updates the display panel, refreshing the display page. The storage unit can be the GRAM in display module 101. The data retrieved by display module 101 from the GRAM is recorded as second data. The second data can be the first data generated by processing module 102 in S101, or data corresponding to other second image content generated by processing module 102. Specifically, after receiving the control signal and detecting the rising edge of the control signal, display module 101 retrieves the second data from the GRAM between the fourth and fifth times and refreshes the display panel, causing the image content corresponding to the second data to be displayed on the display panel.

[0116] Specifically, the sending of the first data of the image content to be displayed by the processing module 102 to the display module 101 and the storage of the first data in the GRAM of the display module 101 in S101-S103 are two independent processes from the obtaining of the second data from the GRAM by the display module 101 and the refreshing of the display page in S201. It can be seen that the sending of the first data by the processing module 102 does not need to wait for the rising edge of the control signal, but can be sent after the first data of the display image is generated. At the same time, the display module 101 still needs to perform self-refreshing according to the rising edge of the control signal. For example, in the example shown in Figure 11 , it is assumed that the processing module 102 sends the first data to the display module 101 between the second time t31 and the third time t32. At this time, for the display module 101, the rising edge of the control signal is detected at the time t1, and self-refreshing is performed between the fourth time t21 and the fifth time t22 to obtain the second data from the GRAM and update the display panel to refresh the display page. At this time, the time interval T2 between the fourth time t21 and the fifth time t22 is the same as the time interval T3 between the second time t31 and the third time t32 at which the processing module 102 sends the data to the display module 101 in S102. Subsequently, the rising edge of the control signal is detected at the time t2, and self-refreshing is continued between the time t23 and the time t24, and so on. Alternatively, in some other embodiments, the difference between the time intervals T2 and T3 is less than a preset threshold value. For example, T2 can be 16.7 ms, T3 can be 16.16 ms, and the difference between them is less than 1 ms. The above values are only examples, and the specific value of the preset threshold value is not limited in the present application.

[0117] Figure 12 For another comparison between the data stored in the GRAM and the content displayed on the display panel, as shown in Figure 10 and Figure 11 , the differences between the data stored in the GRAM in the display module 101 and the data displayed on the display panel at different times in the scenario shown in

[0118] As shown in Figure 12 , when the display module 101 detects the rising edge of the control signal at the time t1, self-refreshing is started at the time t21 after the time t1. Since the processing module 102 does not send data to the display module 101 at the time t21, the data stored in the GRAM in the display module 101 is the complete standby time page data, and the display panel 101 also obtains the standby time page data from the GRAM and updates the display content from the top of the display panel, for example, the upper half of the figure appears on the top of the display panel at the time t21 in Figure 12

[0119] ​At time t30, the processing module 102 switches from the sleep state to the wake-up state, starts to generate the image content data, and at time t31, after completing the drawing, stores the generated image content data in the RAM. At the same time, at time t31, the processing module 102 has also started to send the generated image content data to the display module 101. Assuming that the image content generated by the processing module 102 between times t30 and t31 is a watch face, after time t31, the display module 101 has started to receive the data sent by the processing module 102 and to refresh and store the data from the top in the GRAM. As can be seen in Figure 12 the GRAM control diagram, at time t31, the updated watch face appears on the top of the data stored at time t31. At the same time, at time t31, the display panel 101 is still performing the operation of obtaining data from the GRAM and refreshing the display panel. Due to the fact that the operation of reading data from the GRAM by the display panel 101 is earlier than the operation of writing data into the GRAM by the processing module 102, and the frequencies of the two operations are the same, even if the processing module 102 starts to write data into the GRAM during the reading process of the display module 101, the data read by the display module 101 is still data belonging to the previous image content or the next image content. Therefore, at Figure 10 time t31, the self-refresh time of the display module 101 has already exceeded half of the entire time, and the lower part of the figure appears on the top of the display panel. Since the upper part of the figure has been read and displayed by the display module 101 before time t31, when the processing module 101 writes new data into the GRAM at time t31, the upper part of the figure is covered, and the content of the figure already displayed on the display panel is not affected.

[0120] At time t22, the display module 101 completes the self-refresh process according to the rising edge at time t1, and at Figure 12 time t22, the display panel displays the entire standby time page before the update of the GRAM. At the same time, at time t22, the processing module 102 continues to send new watch face data to the GRAM of the display module 101, so that at Figure 12 time t23, the upper part of the GRAM is the updated watch face page, and the lower part is the standby time page before the update. Since the display panel 101 has completed the display, the torn data stored in the GRAM at time t22 will not be actually displayed on the display panel, so that the content displayed on the display panel 101 will not have a tearing effect.

[0121] Subsequently, the display module 101 detects the rising edge of the control signal again at time t2, and starts self-refreshing again at time t23 after time t2. At time t23, the processing module 102 continues to send new watch face data to the GRAM of the display module 101, so that the upper half of the GRAM is updated watch face data and the lower half is standby time data. At this time, the display module 101 starts reading data from the top of the GRAM and refreshes the display panel, and the read data corresponds to the updated watch face data, so that the top part of the watch face appears on the display panel at time t23.

[0122] At time t32, the processing module 102 completes the operation of sending data to the display module 101 and switches to the sleep state. At this time, the GRAM includes complete updated watch face data. At the same time, the display module 101 continues to perform self-refreshing and displays part of the watch face on the display panel at time t32. Because the reading frequency of the display module 101 from the GRAM and the writing frequency of the processing module 102 to the GRAM are consistent, the updating of the lower half of the data in the GRAM to watch face data by the processing module 102 at times t23-t32 does not affect the reading and display of the upper half of the updated watch face data by the display module 101.

[0123] At time t24, the display module 101 completes the self-refreshing process according to the rising edge at time t2, and the display panel displays the last half of the watch face at time t24. Figure 12 It can be seen that the display panel displays the last half of the watch face at time t24. It can be seen that, with time t2 as a boundary, the display panel displays standby time data at times t21-t22 before time t2 and displays watch face data at times t23-t24 after time t2. The display panel 101 displays complete pages before and after time t2, so that there is no tearing effect as shown in FIG. 8. Figure 6

[0124] ​It should be noted that, in the embodiments of the present application, the processing module 102 starts to send data to the GRAM of the display module 101 at the second time t31 as an example, at this time, the second time t31 is between the fourth time t21 and the fifth time t22, in the actual implementation process, the processing module 102 can start to send data to the display module 101 at any time when it is determined that the data needs to be sent, without referring to the rising edge of the control signal, that is, the time when the processing module 102 sends data is independent of and does not affect the time when the rising edge of the control signal, for example, the second time t31 can also be the same time as the fourth time t21, or the second time t31 can also be a time before the sixth time t2 corresponding to the second rising edge after the first rising edge of the time t1.

[0125] In some embodiments, the DSI frequency used by the processing module 102 to send data in the present application can be calculated by the processing module 102, or can be preset, or can be sent by the system, application program or other device to the processing module 102. For example, the present application also provides a way to calculate the time when the processing module 102 sends data, that is, to calculate the DSI frequency, which can be performed when the processing module 102 needs to obtain the DSI frequency, or the preset DSI frequency in the processing module 102 can also be calculated by the following formula. In some embodiments, after the display module 101 switches from the screen-off state to the screen-on state, the display module 101 can calculate the first frequency f1 corresponding to the first time interval T2 by the following formula.

[0126] Specifically, f1=Width*Height*BitDepth / T2 / 2, where f1 is the DSI frequency of the display module, Width is the width of the resolution of the display panel, in pixels, Height is the height of the resolution of the display panel, in pixels, BitDepth is the display color depth of the display panel, in bits / pixel, and T2 is the time for the display module 101 to refresh once. In the formula, the parameter 2 divided by Width*Height*BitDepth / T / 2 indicates that the DSI interface transmits 2 bytes in 1 cycle. By way of example, assuming that the screen display resolution of the display panel is 454*454, and the color depth is 24 bits / pixel, then the frame buffer FrameBuffer is 454*454*24=4946784, and the screen refresh cycle T2 is 0.016s. The DSI frequency is calculated to be 154587000 Hz according to the above formula. When the processor of the processing module 102 is of a model such as STM32L4R9, a frequency multiplication parameter can be set for the DSI frequency, for example, the DSI frequency multiplication parameter is 51, and the DSI frequency is calculated to be 153 MHz, 306 Mbps, and 16.16 ms / frame.

[0127] In summary, the data transmission method provided by the embodiments of the present application can start sending data to the display module at any time when the processing module of the smart watch generates display content data. The display module stores the received data in the storage unit. The display module uses the rising edge of the control signal as a trigger condition, and refreshes according to the frequency of the control signal. The frequency of the data sent by the processing module is consistent with the frequency of the self-refresh of the display module, so that the sending of data by the processing module and the self-refresh of the display module are independent of each other. Although the reading and writing of data in the same position (GRAM) are performed, because the frequencies are consistent, even if the two processes are synchronized, the deviation in the order of the processes will cause the display module to read data according to the control signal, and the read data completely belongs to the data before the update or the data after the update. Therefore, the tearing effect of the display content of the display module can be prevented. At the same time, the processing module does not need to send data according to the rising edge of the control signal, so it does not need to wake up at each rising edge. The number of wake-ups of the processing module when no data is sent can be reduced, and the power consumption can be reduced.

[0128] In some embodiments, the DSI slave in the display module can also not send a control signal to the processing module 102, which can further reduce signal interaction and reduce power consumption.

[0129] In some embodiments, due to the different radio frequency devices such as near field communication (NFC), global positioning system (GPS) and bluetooth (BT) on the wearable device such as smart watch 10, the antennas of these radio frequency devices are close to the display module. When the working frequency of these radio frequency devices is close to the DSI frequency, interference between them may occur, affecting the overall stability of the smart watch. For example, when the processing module 102 sends data to the display module 101, the NFC card opening will cause the display panel to be full of flowers, the GPS positioning star searching speed will be slow, and other phenomena will occur.

[0130] Therefore, when setting the DSI frequency in the embodiments of the present application, it is also necessary to consider preventing frequency interference with other radio frequency devices. For example, after calculating the DSI CLD Freq, the DSI CLD Freq is taken as the minimum value of the DSI frequency, and on the basis of the minimum value, the minimum frequency outside the frequency multiplication frequency of different devices such as NFC / GPS / BT is selected as the DSI frequency. At the same time, when the above radio frequency devices are working, the processing module 102 will send data to the display module 101 according to the rising edge of the control signal.

[0131] For example, Figure 13 The timing diagram of another embodiment of the data transmission method provided in the present application, the processing module 102 in this case, according to the above formula DSI CLD Freq as the minimum value of the DSI frequency, and finally determines the DSI frequency, it is also necessary to receive the control signal, and according to the rising edge of the control signal to send data, for example, when detecting the rising edge of the control signal at t1 moment, the processing module 102 starts to send data to the display module 101 at t1 moment after t11 moment, the display module 101 also starts to refresh itself at t21 moment after detecting the rising edge of the control signal at t1 moment, as Figure 13 The timing flow shown in Figure 7 The same as shown in

[0132] In some embodiments, the processing module 102 can send the first data to the display module 101 according to the way shown in Figure 11 For example, between the second time t31 and the third time t32, the first data is sent to the display module. When the above target devices are not working and are in the stop working state, the processing module 102 sends the second data to the display module 101 according to the way shown in Figure 13The data transmission is performed in the manner shown, for example, the first data is transmitted to the display module 101 between the seventh time t11 and the eighth time t12; the time interval between the seventh time t11 and the eighth time t12 is less than the time interval between the second time t31 and the third time t32. In this way, the power consumption can be reduced, and the interference between the data transmission and the radio frequency device can be prevented when the radio frequency device is working.

[0133] In some embodiments, the processing module 102 can also perform the data transmission in the manner shown in the following figures according to different scenarios, for example, Figure 11 or Figure 13 When a target application program in the smart watch is started, the application program has a high refresh frequency, the processing module 102 transmits the first data to the display module 101 in the manner shown in the following figure to avoid interference, and when the target application program is closed, the current system page has a low refresh frequency, the processing module 102 performs the data transmission in the manner shown in the following figure to reduce the power consumption. Figure 11 Figure 13

[0134] In some embodiments, the data transmission method provided in the embodiments of the present application is performed when the smart watch 10 is in the screen-on state, the processing module 102 needs to transmit data to the display module 101, and the display module 101 continuously performs self-refreshing, and the data transmission method in the embodiments of the present application can not be performed when the smart watch 10 is in the screen-off state. When the smart watch 10 is switched from the screen-off state to the screen-on state, the processing module 102 can first set the DSI frequency, and then perform the data transmission method in the embodiments of the present application according to the DSI frequency.

[0135] In the foregoing embodiments, the data transmission method provided in the embodiments of the present application is introduced, and in order to realize each function in the method provided in the embodiments of the present application, the wearable device as an execution subject can include a hardware structure and / or a software module, and each function is realized in the form of a hardware structure, a software module, or a hardware structure plus a software module. Whether a certain function in the foregoing functions is executed in the form of a hardware structure, a software module, or a hardware structure plus a software module depends on the specific application of the technical solution and the design constraint conditions. For example, Figure 3 In the foregoing embodiments, the data transmission method provided in the embodiments of the present application is introduced, and in order to realize each function in the method provided in the embodiments of the present application, the wearable device as an execution subject can include a hardware structure and / or a software module, and each function is realized in the form of a hardware structure, a software module, or a hardware structure plus a software module. Whether a certain function in the foregoing functions is executed in the form of a hardware structure, a software module, or a hardware structure plus a software module depends on the specific application of the technical solution and the design constraint conditions. For example,

[0136] ​​It should be understood that the division of the various modules of the above apparatus is only a logical functional division, and in actual implementation, all or part of them can be integrated into one physical entity, or can be physically separated. These modules can all be implemented in the form of software called by a processing element; all can be implemented in the form of hardware; or part of the modules can be implemented in the form of software called by a processing element, and part of the modules can be implemented in the form of hardware. It can be a separately established processing element, or can be integrated in a chip of the above apparatus, in addition, it can also be stored in the form of program code in the memory of the above apparatus, and the function of the above determination module is called and executed by a processing element of the above apparatus. The implementation of other modules is similar. In addition, all or part of these modules can be integrated together, or can be independently implemented. The processing element described herein can be an integrated circuit with signal processing capability. In the implementation process, each step of the above method or each module can be completed by the integrated logic circuit of the hardware in the processor element or the instruction in the form of software.

[0137] For example, the above modules can be one or more integrated circuits configured to implement the above method, such as one or more application specific integrated circuits (ASICs), or one or more digital signal processors (DSPs), or one or more field programmable gate arrays (FPGAs), etc. For another example, when a certain module above is implemented in the form of program code called by a processing element, the processing element can be a general purpose processor, such as a central processing unit (CPU) or other processor that can call program code. For another example, these modules can be integrated together to implement in the form of system on a chip (SOC).

[0138] In the above embodiments, the implementation can be wholly or partially by software, hardware, firmware or any combination thereof. When implemented by software, the implementation can be wholly or partially in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in the embodiments of the present application are wholly or partially generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transferred from one computer-readable storage medium to another, for example, the computer instructions can be transferred from one website, computer, server or data center to another via wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) manner. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. integrated with one or more available media. The available media can be magnetic media (such as floppy disk, hard disk, magnetic tape), optical media (such as DVD), or semiconductor media (such as solid state disk (SSD)) and the like.

[0139] The present application also provides an electronic device, comprising: a processor and a memory; wherein the memory stores computer execution instructions, and when the processor executes the computer execution instructions, the processor can be used to execute the data transmission method in any of the preceding embodiments of the present application.

[0140] The present application also provides a computer-readable storage medium, which stores computer execution instructions, and when the computer execution instructions are executed, the data transmission method in any of the preceding embodiments of the present application can be implemented.

[0141] The embodiments of the present application also provide a chip for running instructions, which is used to execute the data transmission method in any of the preceding embodiments of the present application.

[0142] The embodiments of the present application also provide a computer program product, which includes a computer program stored in a storage medium, and when the computer program is executed, the data transmission method in any of the preceding embodiments of the present application can be implemented.

[0143] Those skilled in the art can understand that all or part of the steps of the above-mentioned method embodiments can be completed by program instruction related hardware. The foregoing program can be stored in a computer readable storage medium. The program executes to perform the steps of the above-mentioned method embodiments; and the foregoing storage medium includes various storage media that can store program codes, such as ROM, RAM, magnetic disk or optical disk.

[0144] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments, or make equivalent replacement for part or all of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A data transmission method applied to a wearable device, the wearable device comprising a processing module and a display module, the display module comprising a storage unit and a display panel, the method comprising: receiving a first data from the processing module; determining a first display mode of the display panel according to the first data; determining a first display time of the display panel according to the first data; and displaying the first data on the display panel according to the first display mode and the first display time. The method comprises: The processing module generates first image content between the first time and the second time after switching from the sleep state to the wake-up state; The processing module sends the first image content to the display module between the second time and the third time, and switches from the wake-up state to the sleep state after the sending is completed, so that the display module stores the first image content in the storage unit; The display module detects a first rising edge of a control signal; In response to the display module detecting the first rising edge of the control signal, the display module acquires the first image content from the storage unit between the fourth time and the fifth time, and displays the first image content on the display panel; The second time interval is less than the period of the control signal. The storage unit is a graphic random access memory (GRAM) in the display module.

2. The method of claim 1, wherein, The control signal is a TE signal of an output pin.

3. The method of claim 1, wherein, The processing module comprises a random access memory (RAM), and the processing module generates first image content between the first time and the second time, comprising:

4. The method of claim 1, wherein, The processing module generates first image content between the first time and the second time, and stores the first image content in the RAM; The processing module sends the first image content to the display module between the second time and the third time, so that the display module stores the first image content in the storage unit, comprising: The processing module sends the first image content stored in the RAM to the display module between the second time and the third time; The display module stores the first image content in the storage unit. The processing module and the display module are connected through a display screen serial interface (DSI), and the processing module sends the first image content stored in the RAM to the display module between the second time and the third time, comprising:

5. The method of claim 4, wherein, The processing module sends the first image content stored in the RAM to the display module through the DSI interface between the second time and the third time. The first frequency f1 corresponding to the first time interval is calculated according to the following formula:

6. The method of any one of claims 1-5, wherein, f1=Width*Height*BitDepth / T / 2; ​ Width*Height*BitDepth / T, wherein Width is a resolution of the display panel in a width direction, Height is a resolution of the display panel in a height direction, BitDepth is a display color depth of the display panel, and T is the second time interval.

7. The method of claim 6, wherein, The method further includes: When the display module switches from an off-screen state to an on-screen state, the display module calculates a first frequency f1 corresponding to the first time interval by a formula.

8. A wearable device, comprising: Comprise: A processing module and a display module, the display module comprising a storage unit and a display panel; The processing module is configured to: generate first image content between a first time and a second time after switching from a sleep state to a wake-up state; send the first image content to the display module between the second time and a third time, and switch from the wake-up state to the sleep state after the sending is completed, so that the display module stores the first image content in the storage unit; The display module is configured to: detect a first rising edge of a control signal; in response to the display module detecting the first rising edge of the control signal, acquire the first image content from the storage unit between a fourth time and a fifth time, and display the first image content on the display panel; wherein the time period between the second time and the third time is a first time interval, the time period between the fourth time and the fifth time is a second time interval, the first time interval is the same as the second time interval, or the difference between the first time interval and the second time interval is less than a preset threshold; The fourth time is located after the first rising edge of the control signal, the second time is located before the rising edge of the control signal, the fifth time is located before the second rising edge of the control signal, and the difference between the time corresponding to the second rising edge of the control signal and the time corresponding to the first rising edge of the control signal is the period of the control signal. The second time interval is less than the period.

9. A computer-readable storage medium, characterized in that, The computer readable storage medium stores computer instructions, when the computer instructions run on the wearable device, the wearable device executes the method as claimed in any one of claims 1-7.

Citation Information

Patent Citations

  • Method for controlling state of light sensor and electronic equipment

    CN110134034A

  • Method for controlling display of electronic equipment, and display control device

    CN113127072A