WO2022206456A1 - 确定数据传输模式的方法及其装置 - Google Patents

确定数据传输模式的方法及其装置 Download PDF

Info

Publication number
WO2022206456A1
WO2022206456A1 PCT/CN2022/082026 CN2022082026W WO2022206456A1 WO 2022206456 A1 WO2022206456 A1 WO 2022206456A1 CN 2022082026 W CN2022082026 W CN 2022082026W WO 2022206456 A1 WO2022206456 A1 WO 2022206456A1
Authority
WO
WIPO (PCT)
Prior art keywords
data transmission
interface
transmission mode
data
time period
Prior art date
Application number
PCT/CN2022/082026
Other languages
English (en)
French (fr)
Inventor
范伟伟
常鸣
王洪利
曹孝文
蒋文浩
杜思清
王桂珍
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to EP22778639.9A priority Critical patent/EP4307584A1/en
Publication of WO2022206456A1 publication Critical patent/WO2022206456A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0002Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the transmission rate
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0006Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the transmission format
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0015Systems modifying transmission characteristics according to link quality, e.g. power backoff characterised by the adaptation strategy
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0023Systems modifying transmission characteristics according to link quality, e.g. power backoff characterised by the signalling
    • H04L1/0025Transmission of mode-switching indication

Definitions

  • the present application relates to the field of data processing, and in particular, to a method and apparatus for determining a data transmission mode.
  • each interface (especially an interface for high-speed data transmission) can enter a sleep mode during a time period when there is no data transmission, wherein the sleep mode refers to turning off some circuits or modules related to data transmission, thereby Reduce power consumption.
  • a feasible technical solution is to notify the interface that needs to sleep in advance to enter the sleep mode, and notify the interface to end the sleep when data transmission is required, so that the interface exits the sleep mode and enters the high-speed data transmission mode. It can be seen that, in order to be able to implement the technical solution, it is still necessary to reserve some circuits or modules to receive the notification, resulting in extra power consumption.
  • the present application proposes a method and apparatus for determining a data transmission mode.
  • an embodiment of the present application provides a method for determining a data transmission mode, including: using a communication link to send a data packet to a receiving end interface in a first data transmission mode; Data transmission mode switching; after switching to the second data transmission mode for a target time period, start switching to the first data transmission mode; wherein, the data transmission speed of the first data transmission mode is higher than that of the first data transmission mode The data transfer speed of the second data transfer mode.
  • the transmitting end interface may first determine the target time period for switching to the second data transmission mode, and directly switch the data transmission mode after the second data transmission mode has reached the target time period, so that the transmitting end The interface can be switched to the corresponding data transmission mode in time, and there is no need to reserve some circuits or modules in order to notify the corresponding receiving end interface, which further reduces power consumption.
  • the target time period is included in the first data packet or the last data packet in the data packet; or, in the data packet
  • Each data packet includes mode information, the mode information indicates whether to start switching to the second data transmission mode after the current data packet, and when the mode information indicates that the current data packet starts to switch to the second data transmission mode, the The mode information includes the target time period.
  • the sending end interface compared with the method of using a long sequence to start or end the data transmission mode, adopts the method of sending the target time period of the data packet, and can send the sleep time period while sending the data packet , so that the transmitting end interface does not need to reserve circuits for sending specific sequences (eg, start sequence, end sequence), further reduces power consumption, and avoids the probability of errors in the process of sending long sequences.
  • specific sequences eg, start sequence, end sequence
  • the data packet is sent by the sending end interface to the receiving end interface; the method further includes: using the target time period The first interface is sent to the receiving end interface, wherein the first interface is different from the transmitting end interface and the receiving end interface.
  • the transmitting end interface may test the performance of the transmitting end interface and the technical personnel may need to adjust the performance of the transmitting end interface. Based on this, in the In a scenario where the sleep time period is relatively fixed and the real-time requirements are not high, the method can use a first interface different from the transmitter interface and the receiver interface to send the sleep period, which reduces the adjustment operation for the transmitter interface and can be reasonably Using the existing interface (ie, the first interface), the multiplexing of the interface is realized.
  • the method further includes: determining an initial time period that lasts after switching to the second data transmission mode; judging whether the initial time period is longer than link wake-up time, wherein the link wake-up time indicates the time to wake up the communication link; in the case that the initial time period is longer than the link wake-up time, the initial time period and the link wake-up time are utilized The wake-up time determines the target time period.
  • the sending end interface can determine whether the initial time period is longer than the link wake-up time, and determine the target time period when it is longer than the link wake-up time, so as to avoid the sending end interface frequently switching data transmission modes, and By introducing the link wake-up time, preparation time is reserved for the interface of the sender to switch the data transmission mode.
  • the target time period is not longer than the remaining time period after subtracting the link wake-up time from the initial time period.
  • the transmitting end interface may set the target time period for executing the second data transmission mode to be no longer than the above remaining time period, so that the transmitting end interface can have sufficient time to execute the execution after the remaining time period is reached.
  • the associated circuits and/or modules are turned on, and the communication link also has sufficient time to wake up.
  • the switching condition includes that the number of the data packets reaches a preset number, or the mode The information indicates that the switch to the second data transmission mode starts after the current data packet.
  • the above switching conditions can be used for the transmitting end interface to ensure the time consistency between the transmitting end interface and the receiving end interface, that is, the two end interfaces can calculate the target time period at the same time (or approximately at the same time), Thus, the consistency of the data transmission mode can be guaranteed.
  • the first data transmission mode includes a high-speed data transmission mode
  • the second data transmission mode A sleep mode is included, and the transmission rate of the high-speed data transmission mode is higher than the transmission rate of the sleep mode.
  • the method can be adapted to a transmitter interface having a high-speed data transmission mode and a sleep mode.
  • the present application provides a method for determining a data transmission mode, comprising: using a communication link to receive a data packet from an interface of a transmitting end in a first data transmission mode; when a switching condition is satisfied, starting to transmit data to a second data transmission Mode switching; after switching to the second data transmission mode for a target time period, start switching to the first data transmission mode;
  • the data transmission speed of the first data transmission mode is higher than the data transmission speed of the second data transmission mode.
  • the receiving end interface can switch the data transmission mode according to the target time period.
  • the receiving end interface it is not necessary to reserve part of the circuit to receive the start sequence of a specific data transmission mode.
  • the receiving end interface There is also no need to reserve related modules to receive and parse the start sequence, further reducing power consumption.
  • the target time period is included in the first data packet or the last data packet in the data packet; or, in the data packet
  • Each data packet includes mode information, the mode information indicates whether to start switching to the second data transmission mode after the current data packet, and when the mode information indicates that the current data packet starts to switch to the second data transmission mode, the The mode information includes the target time period.
  • the receiving end interface adopts the method of receiving the target time period of the data packet, and can receive the sleep time while receiving the data packet. segment, so that the receiver interface does not need to reserve circuits for receiving specific sequences (eg, start sequence, end sequence), further reduces power consumption, and avoids the probability of errors in the process of receiving long sequences.
  • specific sequences eg, start sequence, end sequence
  • the data packet is received by the receiving-end interface from the transmitting-end interface; the method further includes: obtaining the target by using the first interface A time period, wherein the first interface is different from the transmitter interface and the receiver interface.
  • the receiving end interface may test the performance of the receiving end interface, and the technical personnel may need to adjust the performance of the receiving end interface, based on Therefore, in a scenario where the sleep time period is relatively fixed and the real-time requirements are not high, the method can use a first interface different from the transmitter interface and the receiver interface to send the sleep time period, which reduces the adjustment operation for the receiver interface
  • the existing interface ie, the first interface
  • the existing interface can be used reasonably, realizing the reuse of the interface.
  • the method further includes: determining an initial time period that lasts after switching to the second data transmission mode; judging whether the initial time period is longer than link wake-up time, wherein the link wake-up time indicates the time to wake up the communication link; in the case that the initial time period is longer than the link wake-up time, the initial time period and the link wake-up time are utilized The wake-up time determines the target time period.
  • the receiving end interface can determine whether the initial time period is longer than the link wake-up time, and determine the target time period when it is longer than the link wake-up time, so as to avoid the receiving end interface from frequently switching data transmission modes , and by introducing the link wake-up time, the preparation time is reserved for the receiver interface to switch the data transmission mode.
  • the target time period is not longer than the remaining time period after subtracting the link wake-up time from the initial time period.
  • the target time period is set to be no longer than the above remaining time period, so that the receiving end interface can have sufficient time to start relevant circuits and/or modules after reaching the remaining time period, and the communication link There is also plenty of time to wake up.
  • the switching condition includes that the number of the data packets reaches a preset number, or the mode The information indicates that the switch to the second data transmission mode starts after the current data packet.
  • the receiving end interface can use the above switching conditions to ensure the time consistency with the sending end interface, that is, the two end interfaces can calculate the target time period at the same time (or approximately at the same time), Thus, the consistency of the data transmission mode can be guaranteed.
  • the first data transmission mode includes a high-speed data transmission mode
  • the second data transmission mode A sleep mode is included, and the transmission rate of the high-speed data transmission mode is higher than the transmission rate of the sleep mode.
  • the method can be adapted to a receiver interface having a high-speed data transmission mode and a sleep mode.
  • an embodiment of the present application provides a data transmission apparatus, which is configured to perform the method for determining a data transmission mode of the first aspect or one or more of multiple possible implementation manners of the first aspect.
  • an embodiment of the present application provides a data transmission device, a processor, and a memory, where the processor and the memory are coupled, and the processor is configured to execute the first aspect or multiple possible implementations of the first aspect One or more of the methods for determining the data transmission mode.
  • an embodiment of the present application provides a data transmission device, including: a processor and a data interface, wherein the processor uses the data interface to execute the first aspect or multiple possible implementations of the first aspect One or more of the methods for determining the data transmission mode.
  • an embodiment of the present application provides a data transmission apparatus, which is configured to perform the method for determining a data transmission mode of the second aspect or one or more of multiple possible implementation manners of the second aspect.
  • an embodiment of the present application provides a data transmission apparatus, including: a processor and a memory, the processor and the memory are coupled, and the processor is configured to execute the second aspect or multiple possibilities of the second aspect One or more of the methods for determining the data transmission mode in the implementation manner.
  • an embodiment of the present application provides a data transmission apparatus, including: a processor and a data interface, wherein the processor uses the data interface to execute the second aspect or multiple possible implementations of the second aspect One or more of the methods for determining the data transmission mode.
  • an embodiment of the present application provides a data transmission system, including: the data transmission device of the third aspect, the fourth aspect, or the fifth aspect, and the data transmission device of the sixth aspect, the seventh aspect, or the eighth aspect.
  • embodiments of the present application provide a non-volatile computer-readable storage medium, on which computer program instructions are stored, and when the computer program instructions are executed by a processor, implement the first aspect or multiple aspects of the first aspect.
  • an embodiment of the present application provides a computer program product, which, when the computer program product runs on a computer, enables the computer to implement the first aspect or various possible implementation manners of the first aspect when executed.
  • FIG. 1 shows a block diagram of a terminal device suitable for an embodiment of the present application
  • FIG. 2 shows a scene diagram of the data transmission performed by the camera interface in FIG. 1;
  • 3A shows a diagram in which a data transmission system in the related art determines a data transmission mode
  • Figure 3B shows a diagram of the shift register output circuit in Figure 3A
  • FIG. 4 shows a diagram in which a data transmission system in the related art determines a data transmission mode
  • 5A shows a flowchart of steps of a method for determining a data transmission mode according to an embodiment of the present application
  • FIG. 5B shows a diagram of utilizing a data packet to transmit a target LPD according to an embodiment of the present application
  • FIG. 6 shows a diagram of a data packet according to an embodiment of the present application.
  • FIG. 7 shows a flowchart of steps of a method for determining a data transmission mode according to an embodiment of the present application
  • FIG. 8 shows a diagram of switching a transmitter interface from a high-speed data transmission mode to a sleep mode according to an embodiment of the present application
  • FIG. 9 shows a flowchart of steps of a method for determining a data transmission mode according to an embodiment of the present application.
  • FIG. 10 shows a flowchart of steps of a method for determining a data transmission mode according to an embodiment of the present application.
  • “/” may indicate that the objects associated before and after are an “or” relationship, for example, A/B may indicate A or B; “and/or” may be used to describe that there are three types of associated objects A relationship, for example, A and/or B, can mean that A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural.
  • words such as “first” and “second” may be used to distinguish technical features with the same or similar functions. The words “first”, “second” and the like do not limit the quantity and execution order, and the words “first”, “second” and the like do not limit the difference.
  • words such as “exemplary” or “for example” are used to represent examples, illustrations or illustrations, and any embodiment or design solution described as “exemplary” or “for example” should not be construed are preferred or advantageous over other embodiments or designs.
  • the use of words such as “exemplary” or “such as” is intended to present the relevant concepts in a specific manner to facilitate understanding.
  • the method for determining a data transmission mode provided by the embodiments of the present application may be implemented by a terminal device with data processing capabilities, such as a smart phone, a laptop computer, a tablet computer, and a wearable device.
  • a terminal device with data processing capabilities such as a smart phone, a laptop computer, a tablet computer, and a wearable device.
  • the terminal device may adopt the structure shown in FIG. 1 .
  • FIG. 1 shows a block diagram of a terminal device 100 according to an embodiment of the present application.
  • Terminal device 100 typically includes system memory 206 and one or more processors 204 .
  • Memory bus 208 may be used for communication between processor 204 and system memory 206 .
  • the processor 204 may be any type of processor including, but not limited to, a microprocessor ([mu]P), a microcontroller ([mu]C), a digital information processor (DSP), or any combination thereof.
  • Processor 204 may include one or more levels of cache, such as L1 cache 210 and L2 cache 212 , processor core 214 , and registers 216 .
  • Exemplary processor cores 214 may include arithmetic logic units (ALUs), floating point units (FPUs), digital signal processing cores (DSP cores), or any combination thereof.
  • the exemplary memory controller 218 may be used with the processor 204 , or in some implementations, the memory controller 218 may be an internal part of the processor 204 .
  • system memory 206 may be any type of memory including, but not limited to, volatile memory (such as RAM), non-volatile memory (such as ROM, flash memory, etc.), or any combination thereof.
  • System memory 206 may include an operating system 220 , one or more programs 222 , and program data 224 .
  • programs 222 may be arranged to execute instructions on an operating system by one or more processors 204 using program data 224 .
  • the type of the storage device 232 is not limited in this application.
  • the storage device 232 may be a storage area network device, or a storage device including a file system, such as a network-attached storage (Network Attached Storage). Attached Storage NAS) device.
  • Network Attached Storage Network Attached Storage
  • Attached Storage NAS Attached Storage
  • storage device 232 may include removable memory 236 and non-removable memory 238 .
  • the storage unit mentioned in this application refers to the storage space distributed on the hard disk as non-removable memory, wherein the hard disk may refer to various types of hard disks, for example, Solid State Drive (SSD) or serial connection SCSI (Serial Attached SCSI, SAS) or Fibre Channel (Fiber Channel, FC) hard disk drive (Hard Disk Drive, HDD), wherein, SCSI (Small Computer System Interface) is a small computer system interface and the like.
  • SSD Solid State Drive
  • SAS Serial Attached SCSI
  • FC Fibre Channel
  • HDD Hard Disk Drive
  • the storage unit may indicate a piece of logical storage space distributed on the hard disk, that is, a logical unit (Logic Unit, LU), and the logical unit number (Logic Unit Number, LUN) Used to identify a logical unit that is SCSI addressable.
  • a storage device may partition a physical hard disk, and each partition may be accessed by a host as a storage unit (ie, a LUN) with a logical address.
  • End device 100 may also include an interface bus 240 that facilitates communication from various interface devices (eg, output device 242 , peripheral interface 244 , and communication device 246 ) to the base configuration via bus/interface controller 230 .
  • An example output device 242 includes an image processing unit 248 and an audio processing unit 250 . They may be configured to facilitate communication via one or more A/V interfaces 252 with various external devices, such as displays or speakers.
  • the illustrated output device 242 may also include a camera, which (either as a front-facing camera or as a rear-facing camera) may be used to capture still images or video.
  • a camera may include a photosensitive element such as a lens group and an image sensor, wherein the lens group includes a plurality of lenses (convex or concave) for collecting light signals reflected by objects to be photographed, and transmitting the collected light signals to the image sensor.
  • the function of the lens group is to present the light image of the observed target on the sensor of the camera, also known as optical imaging.
  • the lens group combines various optical parts (reflectors, transmission mirrors, prisms) of different shapes and different media (plastic, glass or crystal) in a certain way, so that after the light passes through the transmission or reflection of these optical parts, according to people. It is necessary to change the transmission direction of the light and be received by the receiving device to complete the optical imaging process of the object.
  • each lens group is composed of multiple groups of lenses with different surface curvatures combined at different intervals.
  • the focal length of the lens is determined by the selection of indicators such as spacing, lens curvature, and light transmittance.
  • the main parameters of the lens group include: effective focal length, aperture, maximum image plane, field of view, distortion, relative illumination, etc. The values of each index determine the overall performance of the lens.
  • the image sensor generates an original image of the object to be photographed according to the light signal.
  • the image sensor can be a device that converts optical images into electronic signals, and is widely used in digital cameras and other electronic and optical devices.
  • Common sensors include: charge-coupled device (CCD) and complementary metal oxide semiconductor (complementary MOS, CMOS). Both CCD and CMOS have a large number (eg, tens of millions) of photodiodes, each photodiode is called a photosensitive cell, and each photosensitive cell corresponds to a pixel. During exposure, the photodiode converts the light signal into an electrical signal containing brightness (or brightness and color) after receiving light, and the image is reconstructed accordingly.
  • Bayer complementary metal oxide semiconductor
  • Bayer array is a common image sensor technology that can be used in CCD and CMOS.
  • Bayer array uses Bayer color filter to make different pixels only sensitive to one of the three primary colors of red, blue and green. Interleaved and then interpolated by demosaicing to restore the original image.
  • Bayer arrays can be applied to CCD or CMOS, and sensors using Bayer arrays are also called Bayer sensors.
  • sensor technologies such as X3 (developed by Foveon).
  • X3 technology uses three layers of photosensitive elements, each layer records one of the color channels of RGB, so it can capture all colors on one pixel. Image sensor.
  • Output device 242 may be a display for displaying images, video, and the like.
  • the display 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 or an active-matrix organic light-emitting diode (active-matrix organic light).
  • LED organic light-emitting diode
  • AMOLED organic light-emitting diode
  • FLED flexible light-emitting diode
  • Miniled MicroLed, Micro-oLed, quantum dot light-emitting diode (quantum dot light emitting diodes, QLED) and so on.
  • the display may include 1 or N display screens, where N is a positive integer greater than 1.
  • the display can be used to display information entered by or provided to the user as well as various graphical user interfaces (GUIs).
  • GUIs graphical user interfaces
  • the display may display photos, videos, web pages, or documents, and the like.
  • the display may display a graphical user interface.
  • the GUI includes a status bar, a hideable navigation bar, a time and weather widget, and an application icon, such as a browser icon.
  • the status bar includes operator name (eg China Mobile), mobile network (eg 4G), time and remaining battery.
  • the navigation bar includes a back button icon, a home button icon, and a forward button icon.
  • the status bar may further include a Bluetooth icon, a Wi-Fi icon, an external device icon, and the like.
  • the graphical user interface may further include a Dock bar, and the Dock bar may include commonly used application icons and the like.
  • the display may be an integrated flexible display screen, or a spliced display screen composed of two rigid screens and a flexible screen located between the two rigid screens.
  • Example peripheral interfaces 244 may include serial interface controller 254 and parallel interface controller 256, which may be configured to facilitate communication via one or more I/O interfaces 258 and input devices such as keyboard, mouse, pen , voice input devices, touch input devices) or other peripherals (eg printers, scanners, etc.)
  • the example communication device 246 may include a network controller 260 that may be arranged to facilitate communication via one or more communication interfaces 264 with one or more other computing devices 262 over a network communication link.
  • a network communication link may be one example of a communication medium.
  • Communication media may typically embody computer readable instructions, data structures, program modules in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
  • a "modulated data signal" can be a signal of which one or more of its data sets or whose alterations can be made in such a way as to encode information in the signal.
  • communication media may include wired media, such as wired or leased line networks, and various wireless media, such as acoustic, radio frequency (RF), microwave, infrared (IR), or other wireless media.
  • RF radio frequency
  • IR infrared
  • the term computer readable medium as used herein may include both storage media and communication media.
  • the terminal device 100 can be implemented as a server, such as a file server, a database server, an application server, and a WEB server, etc., or can be implemented as a part of a small-sized portable (or mobile) electronic device, such as a cellular phone, a personal digital Assistants (PDAs), personal media player devices, wireless web browsing devices, personal headsets, application specific devices, or hybrid devices that may include any of the above.
  • the terminal device 100 may also be implemented as a personal computer including a desktop computer and a notebook computer configuration.
  • the terminal device 100 may include more or less components than those shown in FIG. 1 , which is not limited in this embodiment of the present application.
  • the illustrated terminal device 100 is only an example, and the terminal device 100 may have more or fewer components than those shown in the figures, may combine two or more components, or may have a different configuration of components.
  • the various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
  • the interfaces described in the embodiments of the present application may be interfaces with different data transmission modes, and the different data transmission modes may be divided according to the power consumed by data transmission, for example, a data transmission mode with low power consumption or a data transmission mode with high power consumption.
  • the data transmission mode can also be divided according to the amount of data transmission per unit time, such as high-speed data transmission mode or low-speed data transmission mode, or can be divided according to whether data transmission is performed, such as data transmission mode or sleep mode, this There are no restrictions.
  • the data transmission interface may include a high speed (HS) data transmission mode and a low power (low power, LP) data transmission mode, the data of the HS data transmission mode
  • the transfer rate is higher than that of the LP data transfer mode.
  • the HS data transmission mode the data transmission rate is fast (usually 80Mbps to 1Gbps), the power consumption is large and the signal amplitude is small (usually 100mv to 300mv);
  • the LP data transmission mode includes a sleep mode, where the LP data In the transmission mode, the data transmission rate is low (eg, less than 10 Mbps), the power consumption is low, and the signal amplitude is large (eg, 1.2V).
  • the switching mechanism will be described in detail below, and will not be repeated here.
  • the interfaces described in the embodiments of the present application may be interfaces with different data transmission modes, such as the A/V interface 252 , the peripheral interface 244 , or the I/O interface 258 .
  • the following will describe the applicable scenarios of the present application by taking a camera serial interface (Camera Serial Interface, CSI) as an example.
  • the MIPI (Mobile Industry Processor Interface) alliance has set three physical layer standards for the interface physical layer (Port Physics Layer, PHY), namely C-PHY, D-PHY and M-PHY.
  • the CSI in FIG. 1 can use C-PHY as well as D-PHY.
  • the user starts the camera application by clicking the camera control 21 displayed on the terminal device 20 .
  • the camera application 21 can notify the camera interface 23 corresponding to the camera application to capture an image through the interface bus 240, and transmit the captured image to the processor 204 or the image processing unit through the communication link (eg, the interface bus 240). 248.
  • the camera interface 21 may use the data bus to send pixel information or operation commands in the image to the processor 204 or the image processing unit 248 in a serial manner.
  • the camera interface 21 may use an independent communication protocol to transmit data packets, and the communication protocol may include the format of the transmitted data packets and an error correction and error detection mechanism.
  • the image is processed by the processor 204 or the image processing unit 248 before being transmitted to an A/V interface (eg, a display) through a communication link.
  • the processor 204 or the image processing unit 248 may transmit processed pixel information or operation commands to an A/V interface (eg, a display) using a data bus in a serial manner.
  • the processor 204 or the image processing unit 248 may use the same communication protocol as described above to transmit data packets.
  • images captured by the camera interface 23 may be transmitted to the display interface via a communication link in the manner of Table 24 .
  • the camera interface 23 may determine a vertical sync start (vertical sync start, VSS) time point according to an initial setting or a technician's setting.
  • VSS vertical sync start
  • the time period between two VSS time points can indicate when the image is displayed, and thus, the VSS can be used to control the frame rate (ie, the number of image frames displayed per second).
  • a horizontal sync start (horizontal sync start, HSS) time point can be entered.
  • the camera interface 23 may send each line of pixel data packets in the image line by line. It is evident from the table 24 of FIG. 2 that the camera interface 23 does not send data after the VSS time point and before the HSS time point. That is, in the time period between the data packet at the VSS time point and the data packet at the HSS time point, no data packet is transmitted on the communication link.
  • the camera interface 21, the communication link and the receiver interface may enter a low power state (LPS).
  • LPS low power state
  • pixel data packets can be sent line by line according to a preset time interval, where the preset time interval can be calculated by using the displayed frame rate and resolution, and is usually in the order of microseconds.
  • the preset time interval if the pixel data packets of the row have been sent, the camera interface 23 has no data packets sent on the communication link, so the camera 21 can enter the horizontal LPS. Further, after the transmission of each data packet has been completed line by line, the camera interface 23 enters the vertical LPS.
  • the display time of one frame of image is 1/60 ⁇ 16.67 milliseconds
  • the resolution is 1920*1080
  • the resolution is 1920*1080
  • the resolution is 1920*1080
  • the resolution is 1920*1080
  • the resolution is 1920*1080
  • the resolution is 1920*1080
  • the resolution is 1920*1080
  • the resolution is 1920*1080
  • the resolution is 1920*1080
  • the time of each row of pixel packets as shown in Figure 2 is about 16.67/1200 ⁇ 13.89us.
  • the data transmission time of a pixel packet is about 12 microseconds
  • the horizontal LPS is about 1.8 microseconds
  • the vertical LPS is about 1.67 milliseconds.
  • the vertical LPS and the horizontal LPS can be jointly determined according to the frame rate, resolution, data packet length, interface performance and related protocols.
  • the camera interface 23 In order to be able to reduce the power consumed by the camera interface 23 (hereinafter referred to as power consumption), the camera interface 23 , the communication link and/or the receiver interface (eg, display interface) may be disabled during the time period when no data packets are transmitted as described above. Enter LPS. And make the camera interface 23 enter the HS data transmission mode within the time period that the data packet needs to be transmitted.
  • FIG. 3A is a diagram illustrating a data transmission system switching data transmission modes in the related art.
  • the data transmission system may include a transmitter interface 310 , a data link 320 and a receiver interface 330 .
  • the sender interface 310 may indicate the interface for sending data packets
  • the receiver interface 330 may indicate the interface for receiving data packets from the sender interface
  • the communication link 320 may indicate the transmission of the data packets sent by the sender interface 310 to the receiver interface.
  • the communication link 320 may be implemented in a wireless form or a wired form.
  • the transmitting end interface 310 and the receiving end interface 330 may indicate components in the same device, and the components mentioned here may be in the form of chips or devices. There are no restrictions on applications.
  • the transmitting end interface 310 and the receiving end interface 330 may both be located in interfaces in the terminal device 100 as shown in FIG. 1 , such as an A/V interface, a peripheral interface or an I/O interface, here
  • the data link 320 may indicate a data bus as in FIG. 1 .
  • the transmitting end interface 310 and the receiving end interface may also indicate components that are not in the same device.
  • the transmitting end interface 310 may be an interface in the terminal device 100 as shown in FIG.
  • the terminal interface 320 may be located in an external interface device of the terminal device 100.
  • the external interface device may include an external display device, an external camera device, etc.
  • the communication link 320 may use a cable, an optical fiber or a other communication channels.
  • the transmitting end interface 310 and the receiving end interface 320 are C/D-PHY high-speed interfaces in the terminal device 100 .
  • the interface may adopt the operation as described in FIG. 3A .
  • the transmitter interface 310 , the communication link 320 and the receiver interface 330 are all in a sleep mode.
  • the transmitting end interface 310 needs to use the communication link 320 to send data packets to the receiving end interface 330, then the transmitting end interface 310, the communication link 320 and the receiving end interface 330 need to end the sleep mode and start the high-speed data transmission mode to send packets. That is, the data transmission mode of the transmitting end interface 310 needs to be switched from the sleep mode to the high-speed data transmission mode, and correspondingly, the communication link 320 and the receiving end interface 330 also need to switch the data transmission mode accordingly.
  • the transmitting end interface 310 may send a high-speed mode start-of-transmission (SoT) 301 to the receiving end interface 330 by using the communication link 320 .
  • SoT start-of-transmission
  • the communication link 320 and the receiver interface 330 may end the sleep mode after receiving the SoT 301.
  • the communication link 320 can start the high-speed data transmission mode by changing the endpoint connection relationship of some circuits in the communication link. For example, in order to start the high-speed data transmission mode, the communication link 320 can Switch certain circuits from a high impedance state to a 50 ohm termination state.
  • the receiving end interface 320 can enable related modules for high-speed data transmission in the receiving end interface 320, for example, a clock data recovery module (CDR), a logic control module, a data parsing module, a K code detection module, a serial-parallel detection module, a scrambling module Code detection module, spread spectrum module, etc. That is to say, after the transmitting end interface 310 sends the SoT for a period of time, the communication link 320 and the receiving end interface 330 are both ready to execute the high-speed data transmission mode, then the transmitting end interface 310 can use the communication link in the high-speed data transmission mode 320 sends the data packet to the receiver interface 330 .
  • CDR clock data recovery module
  • the sending end interface 310 After a period of time, the sending end interface 310 has completed sending data packets to the receiving end interface 330 , that is, the sending end interface 310 does not send data packets to the receiving end interface 330 .
  • the transmitting end interface 310 may use the communication link 320 to send a high-speed mode end-to-transmission (EoT) 302 to the receiving end interface 330 after completing the transmission operation of the data packet, so that the communication link 320 and the The receiver interface 330 enters the sleep mode. In the sleep mode, the transmitter interface 310 and the receiver interface 330 can turn off the relevant modules for high-speed data transmission, but the transmitter interface and the communication link need to be prepared to generate and receive SoT, so the part in the transmitter interface needs to be reserved circuit.
  • EoT end-to-transmission
  • the transmitter interface can use a fixed-state shift register output circuit as this part of the circuit to generate and transmit SoT , where a 0 , a 1 to an can indicate the values of each shift register, such as , when the EoT is 110, a 2 can be set to 1, a 1 can be set to 1, and a 0 can be set to 0.
  • the transmitting end interface needs to transmit data when it is in a low power consumption data transmission mode. Therefore, the transmitter interface will switch from the low-power data transmission mode to the high-speed data transmission mode.
  • the interface of the sending end is in a low-power data transmission mode when there is no data packet transmission.
  • the related modules used for high-speed data transmission in both the sender interface and the receiver interface have been shut down, and the communication link is also in a stopped state.
  • the transmitter interface When the transmitter interface needs to transmit data, the transmitter interface will end the low-power data transmission mode and enter the high-speed data transmission mode.
  • the sender interface can send the SoT before sending the data packet.
  • the communication link ends the stop state 410 after receiving the SoT and enters the high speed request state 420, after the duration T1, the communication link enters the bridge state 430, ie the communication link has changed some circuits as described above the endpoint connection relationship.
  • the receiving end interface detects the bridged state 430 of the communication link and activates the relevant modules for high-speed data transmission.
  • the transmitting end interface and the receiving end interface can achieve high-speed state synchronization 440 at both ends, that is, after a period T2 of the bridge state 430 of the communication link, the two ends of the transmitting data and receiving data have entered high-speed data transfer mode.
  • the data transmission mode of the transmitting end interface, the communication link and the receiving end interface is switched from a low power consumption data transmission mode to a high speed data transmission mode.
  • the sender interface may send an EoT, causing the communication link to enter a stopped state 410 .
  • the communication link may enter a stop state 410 upon detection of a differential signal switch 450 .
  • the communication link transmits EOT after the transmission of the last data packet, so that the communication link can detect a change in the format of the transmitted data, that is, the packet format of the differential signal changes to the instruction of the shift register format, that is, the communication link detects the differential signal switching 450, after a period of time, the communication link can parse out the EOT command, then the communication link can enter the stop state 410, the paragraph mentioned here
  • the time may indicate the time reserved for the communication link to resolve the EOT, and the time is at the nanosecond level, which is related to the data transmission rate of the communication link and the resolution capability of the receiving end.
  • the receiver interface After receiving the communication link to exit the high-speed data transmission mode, the receiver interface can enter a low power consumption state. In the low power consumption state, the receiver interface can turn
  • a specific high-speed transmission start command and a high-speed transmission end command are used to notify the data link and the receiving end interface to enter different data transmission modes. These instructions are of a certain length and can therefore be error-prone.
  • both the communication link and the receiver interface require time to start and operate the relevant circuits or modules, that is, the communication link and the receiver interface require additional startup/preparation time.
  • a low power data transfer mode eg, sleep mode
  • the communication link still needs to reserve some circuits to receive the high speed data transfer mode initiation sequence, limiting the possibility of further power reduction of the communication link.
  • FIG. 5A shows a flowchart of steps of a method for determining a data transmission mode according to an embodiment of the present application.
  • the transmitting end interface 51 , the communication link 52 and the receiving end interface 53 have two modes: a low power consumption data transmission mode and a high speed data transmission mode.
  • the transmitting end interface 51 and the receiving end interface 53 are camera interfaces in the terminal device 100, and the camera interface is a C/D-PHY high-speed interface.
  • the user can activate the sender interface 51 by triggering the relevant controls in the terminal device 100.
  • the user can click to display the camera icon on the terminal device 100, and the terminal device 100 can call the kernel layer after detecting the user's click.
  • the camera interface can be used as the transmitting end interface 51
  • the A/V interface displaying the image captured by the camera interface 51 can be used as the receiving end interface 53 .
  • step S510 the transmitting side interface 51 starts a high-speed data transmission mode
  • step S520 the receiving side interface 53 starts a high-speed data transmission mode, wherein in this high-speed data transmission mode, the data transmission rate is fast (usually 80Mbps to 1Gbps) , The power consumption is large and the signal amplitude is small (usually 100mv to 300mv).
  • the sending end interface 51 and the receiving end interface 53 may be set by default to start the high-speed data transmission mode after being started.
  • the terminal device 100 may use another data interface to send a start instruction for starting the high-speed data transmission mode to the sending end interface 51 and the receiving end interface 53 .
  • the transmitting end interface 51 and the receiving end interface 53 can activate the high-speed data transmission mode after receiving the command.
  • the sender interface 51 may transmit data packets after being activated for a period of time (eg, 3 microseconds). .
  • a period of time eg, 3 microseconds.
  • the transmitting-end interface 51 may send a data packet to the receiving-end interface 53 via the communication link 52 in step S530 .
  • the transmitting end device 51 also determines whether the transmitting end interface 51 executes the sleep mode.
  • the sending end interface 51 can predetermine the sleep time. Based on this, the sender interface 51 may determine an initial sleep period (low power duration, LPD) in which the sleep mode is to be performed, and the initial sleep period may also be referred to as an initial period. That is to say, the transmitting end interface 51 may execute step S5110 to determine the initial LPD for executing the sleep mode.
  • LPD low power duration
  • the transmitting end interface 51 may set the time period corresponding to the horizontal LPS as the initial LPD, or may set the time period corresponding to the vertical LPS as the initial LPD. It should be noted that since the frame rate or resolution in the terminal device may change accordingly, the time period corresponding to the horizontal LPS and the vertical LPS will also change accordingly. will change accordingly.
  • the sender interface 51 compares the size of the initial LPD and the wake-up time of the communication link.
  • the communication link wake-up time indicates the inherent link wake-up time inside the terminal device, which is the time required to wake up the link, which is related to the circuit design and wake-up logic of the terminal device, and is determined when the terminal device leaves the factory and cannot be changed at will. That is, the communication link wake-up time is determined, and in implementations, this value may be stored in an associated memory (eg, in a register) of the sender interface.
  • the sender interface can compare the initial LPD and the wake-up time of the communication link. If the initial LPD is less than the wake-up time of the communication link, that is, the time for the communication link 52 and the receiver interface 53 to enter the sleep mode is not enough to wake up the communication link, the transmitter interface does not execute the sleep mode, that is That is, the transmitting side interface 51 does not perform additional operations and continues to remain in the high-speed data transmission mode. For example, since the horizontal LPS is less than the communication link wake-up time, the sender interface may continue to remain in the high-speed data transfer mode.
  • step S5120 If it is determined in step S5120 that the initial LPD is greater than the wake-up time of the communication link, the transmitting end interface 51 determines to perform switching of the data transmission mode, and for this, the transmitting end interface 51 can perform step S530. For example, since the vertical LPS is greater than the wake-up time of the communication link, the sender interface 51 may perform step S530.
  • a target LPD for executing the sleep mode is determined, and the target LPD may also be referred to as a target time period.
  • the target LPD in order to ensure that the communication link 52 changes the end-connection relationship to enter the high-speed data transmission mode and the receiver interface 53 starts the relevant circuits in the high-speed data transmission mode in time, the target LPD can be determined as the initial sleep period minus the link wake-up time.
  • the target LPD in order to allow enough time for the communication link to wake up, the target LPD can be shortened appropriately. That is, the target LPD may be set to be no longer than the initial LPD minus the remaining time period of the link wake-up time. In the case that the target LPD has been determined in step S5130 , the transmitting end interface 51 needs to send the target LPD to the receiving end interface 53 .
  • the receiver interface 53 may perform steps S5110 to S5130 after acquiring the initial LPD and the link wake-up time, that is, the receiver interface 53 determines the target LPD .
  • the receiver interface 53 may determine the initial LPD and the link wake-up time according to the frame rate and resolution, etc., and then perform steps S5110 to S5130.
  • the transmitting end interface 51 can send the target LPD to the receiving end interface by using a data packet, as shown in FIG. 5B .
  • FIG. 5B shows a diagram of transmitting a target LPD using data packets according to an embodiment of the present application.
  • the transmitting end interface 51 may adopt three schemes to transmit the target LPD to the receiving end interface 53 .
  • the data packets sent in step S530 all include a packet header (pocket head, PH), a payload (payload, PL) and a packet footer (packet footer, PF), wherein the PH may include information related to the transmission of the data packet information, such as data type, data length, etc., PL is the transmitted data (for example, the pixel information in the pixel data packet mentioned above), and PF may include check information and end information.
  • the three schemes for using data packets to transmit the target LPD are as follows:
  • the first solution include the target LPD in the initial data packet (or the first data packet) 501, the target LPD can be placed in any part of the data packet (packet header part, payload part or packet trailer part) .
  • Other data packets except the first data packet 501 transmit data (eg, transmit pixel data) according to the data packet format in the related art.
  • the first data packet 501 indicates the first data packet in the data packets sent from the transmitting end interface 51 to the receiving end interface 53 in step S530.
  • the second solution the data packets transmitted in the high-speed data transmission mode transmit data according to the data packet format in the related art, but the target LPD is included in the last data packet 502 of the high-speed data transmission mode, and the target LPD can be placed in the Any part of the packet (header, payload, or trailer).
  • the last data packet 502 indicates the last data packet in the data packets sent from the transmitting end interface 51 to the receiving end interface 53 in step S530, after the last data packet 530 is sent, the transmitting end interface 51 will Switch from high-speed data transfer mode to sleep mode.
  • the third scheme the data packets transmitted by the transmitting-end interface 51 and the receiving-end interface both include the target LPD of whether to enter the sleep mode after the current data packet.
  • the data packet 503 in FIG. any packet transmitted.
  • the target LPD of the current data packet is 0, and the last data packet may include a specific target LPD (for example, 5 microseconds),
  • the target LPD can be placed in any part of the packet (header part, payload part or trailer part).
  • the target LPD mentioned in the above three schemes can be placed in the header, payload and trailer.
  • using the payload of the data packet to store data ie, the target LPD is a common way in the related field, and will not be described here.
  • the first data packet 501 , the last data packet 502 or the data packet 503 can all adopt the data packet format as shown in FIG. 6 . That is to say, during the transmission of data packets in the high-speed data transmission mode (for example, during the execution of steps S5110 to S5130 ), the first data packet 501 can use the data packet as shown in FIG.
  • the last data packet 502 can use the data packet as shown in Figure 6, that is, the target LPD is embedded in the header, and the headers of other data packets are not embedded in the target LPD ; or all data packets adopt the data packets as shown in Figure 6, that is, the target LPD is embedded in the packet header. It will be described in detail below with reference to FIG. 6 , which will not be repeated here.
  • the sending end interface 51 After the sending end interface 51 reaches the start condition of the timer, in step S540, the sending end interface 51 can start the timer, and the timer is timed as the target LPD.
  • the activation condition may indicate a switching condition for switching the sender interface 51 from the high-speed data transmission mode to the sleep mode.
  • the start condition includes the number of data packets. Specifically, when the resolution is fixed and the frame rate is fixed, the sender interface 51 can determine the amount of data (for example, the number of data packets) transmitted in the high-speed data transmission mode. Then start the timer. Especially for the scheme in which the target LPD is included in the first data packet 501, the sender interface 51 may start a timer after sending the number of data packets determined by the resolution and the frame rate. In another possible implementation manner, the start condition may include that after the last data packet is sent, the sending end interface 51 starts to switch to the sleep mode after the last data packet, and therefore, the timer may be started.
  • the receiver interface 53 starts a timer, which is timed as the target LPD.
  • the receiver interface 53 may start a timer after receiving the last data packet.
  • the activation condition may indicate a switching condition for the receiver interface 53 to switch from the high-speed data transmission mode to the sleep mode.
  • the receiving end interface 53 may determine the last data packet by using the termination flag bit in the last data packet. Furthermore, in a possible implementation manner, the start condition includes the number of data packets. The receiver interface 53 can determine the number of data packets transmitted in the high-speed data transmission mode and determine the last data packet according to the number. Finally, the receiver interface 53 may start a timer after receiving the last data packet.
  • the transmitting end interface 51 and the receiving end interface 53 may also start a timer after sending the first data packet, and at this time
  • the timing times of the timers of the transmitting side interface 51 and the receiving side interface 53 are set as the sum of the time when the high-speed data transmission mode is executed and the time of the target LPD.
  • the start condition may include sending the last data packet.
  • the transmitting end interface 51 may execute step S540 after sending the last data packet 502 to start the timer, in addition, the receiving end interface 53 may receive the last data packet After 502, step S550 is executed to start the timer.
  • step S550 is executed to start the timer.
  • each timer in the transmitting end interface 51 and the receiving end interface 53 is timed as the target LPD.
  • the transmitting end interface 51 may execute step S540 after sending the last data packet to start the timer. After the sending end interface 51 sends the last data packet to the receiving end interface 53, the receiving end interface 53 may perform step S550 to start a timer. In the implementation, each timer in the transmitting end interface 51 and the receiving end interface 53 is timed as the target LPD.
  • step S560 the sending end interface 51 can calculate whether the timer reaches the timing time, and after the timer reaches the timing time, start the relevant module of high speed data transmission in the sending end interface 51 to enter the high speed data transmission mode.
  • step S570 the receiving end interface 53 can calculate whether the timer reaches the timing time, and after the timer reaches the timing time, start the relevant module of high-speed data transmission in the receiving end interface 51 to enter the high-speed data transmission mode.
  • an embodiment of the present application provides a method for determining a data transmission mode.
  • the transmitting end interface can send the target sleep time period to the receiving end interface through a data packet.
  • the method sets a timer and a timing time in the transmission of the interface of the transmitting end and the interface of the receiving end, which helps the interface of the transmitting end, the communication link and the interface of the receiving end to complete the preparations for high-speed data transmission in advance, effectively. It saves the preparation time required for the receiver to enter the high-speed out-transmission mode during serial transmission, realizes rapid exit from the sleep mode, and improves transmission efficiency.
  • the data packet 600A and the data packet 600B are data packets formed by the interface of the transmitting end according to the corresponding protocol layer.
  • the first data packet 501 , the last data packet 502 and the data packet 503 sent by the interface of the transmitting end all adopt the data packet format of the data packet 600A.
  • the data packet 600A or the data packet 600B each includes a packet head (PH) 610-1 or 610-2, a payload (PL) 620 and a packet footer (PF) 630, wherein , wherein, PH 610-1 or 610-2 may include information related to the transmission of the data packet, for example, information such as data type, data length, etc., and PL is the transmitted data (for example, as mentioned above in the pixel data packet) pixel data), PF may include check information and end information.
  • PH 610-1 or 610-2 may include information related to the transmission of the data packet, for example, information such as data type, data length, etc.
  • PL is the transmitted data (for example, as mentioned above in the pixel data packet) pixel data)
  • PF may include check information and end information.
  • the PH 610-1 or PH 610-2 may include a plurality of data bits, which are flag bits for indicating different contents.
  • PH 610-1 the PH 610-1 or PH 610-2 may include a plurality of data bits, which are flag bits for indicating different contents.
  • the data bit 601 may be a flag bit used to indicate other functions unrelated to the data transmission mode of the embodiment of the present application, for example, a flag bit that may indicate a data type, a flag bit that may indicate a virtual channel, and a flag bit that may indicate the data length. , a flag bit that can indicate parity information or a flag bit that can indicate synchronization, in an embodiment, the data bit 601 can be allocated one data bit.
  • Data bits 62 may be used to indicate the flag bits of the target LPD.
  • the interface of the transmitting end may set the data bit 62 in the header of the first data packet 501 as the target LPD, while the headers of other data packets do not include the flag bit for indicating the target LPD.
  • data bit 62 is set to 25, indicating that the sleep period of the sender interface is 25 microseconds.
  • the interface of the transmitting end may set the data bit 62 in the header of the last data packet 503 as the target LPD, and the headers of other data packets do not include the flag bit for indicating the target LPD.
  • data bit 62 is set to 25, indicating that the sleep period of the sender interface is 25 microseconds.
  • the header of each data packet sent by the interface of the sending end includes data bits 62 .
  • the initiator interface can set the data bit 62 in the packet header of each data packet according to whether to enter the sleep mode after sending the current data packet. For example, if the sender interface does not enter the sleep mode after sending the current data packet, that is, the sleep time period is 0, the data bit 62 of the current data packet may be set to "0". If the transmitting end interface enters the sleep mode after sending the current data packet, the data bit 62 is set as the target LPD entering the sleep mode. For example, the data bit 62 can be directly set to 25, indicating that the sleep time period of the transmitting end interface is 25 microseconds.
  • the function of the data bit 604 is similar to that of the data bit 601, and is also a flag bit used to indicate other functions unrelated to the data transmission mode of the embodiment of the present application.
  • the data bit 601 may be allocated two data bits.
  • the data bit 605 is a flag bit used to indicate the check information after checking the PH 610-1. That is, after the PH 610-1 including the data bit 62 is verified, the verification information is obtained, and then the data bit 605 is set using the verification information.
  • the check information may be information obtained by parity or error checking and correcting (ECC).
  • the receiving end interface After receiving the data packet 600A, the receiving end interface performs ECC operation on each data bit in the PH 610-1, calculates a new ECC result, and converts the new ECC result to the Perform an XOR operation with the ECC result in 605 to obtain a fault code, and then use the fault code to determine whether there is an error in the transmission process.
  • the data bits 605 can be set to 7 data bits, including at least 1 data bit for error correction and 2 data bits for error checking. data bits.
  • the transmitting end interface can transmit the target LPD by using the packet header of the data packet, so that the receiving end interface can also obtain the relevant information about entering the dormant transmission mode while acquiring the data packet, so that there is no need for additional transmission start and end.
  • the interface of the transmitting end, the interface of the receiving end and the communication link do not need to reserve the circuit for transmitting and receiving the above specific sequence, which further reduces the power consumption.
  • the transmitting end interface and the receiving end interface can reuse the original error detection and correction mechanism in the packet header of the data packet, which ensures the accuracy of the above information.
  • the data packet shown in the data packet 600B can also be used, that is, the packet header of the data packet 503 includes the information indicating the sleep state in addition to the target LPD, that is, the data packet 503
  • the sleep state and the target sleep period are included in the packet header.
  • the embodiment of the present application also provides a data packet structure of the data packet 600B.
  • the difference between the data packet 600B and the data packet 600A lies in the header part. Therefore, for the sake of brevity, the same parts will not be described again here.
  • data bit 62 can be replaced by data bit 602 and data bit 603. That is, in PH 610-2 includes:
  • the data bit 602 is a status flag bit used to indicate whether the transmitting end interface enters a low power state (LPS). In implementation, if the transmitting end interface enters the low power transmission mode after sending the data packet 600B, then The data bit 602 may be set to "1", and if the sender interface enters or maintains the high-speed data transmission mode after sending the data packet 600B, the data bit 602 may be set to "0".
  • LPS low power state
  • the data bits 603 may indicate the time flag bit of the target LPD entering the low power consumption state, ie, the target LPD mentioned in FIG. 5A . Where data bit 602 is set to "1", data bit 603 is correspondingly set to the target LPD (eg, 15 microseconds). In the event that the sender interface does not enter LPS or continues to perform high-speed data transfer mode (ie, where data bit 602 is set to "0"), then data bit 603 may be set to "0".
  • the sender interface may set a status flag bit (eg, data bit 602 ) and a time flag bit (eg, data bit 603 ) in the header of the data packet and send the data packet to the sender In this way, the interface of the sending end can also obtain the relevant information about entering the dormant transmission mode while obtaining the data packet.
  • a status flag bit eg, data bit 602
  • a time flag bit eg, data bit 603
  • the transmitting end interface can use the data packet to send the target LPD to the receiving end interface.
  • the performance of the transmitting end interface may be tested or the technical personnel may need to adjust the performance of the transmitting end interface to be able to implement the above embodiments.
  • the method for determining the data transmission mode can use the first interface or the storage unit to send the sleep time period to the transmitting end interface, reducing the need for technicians to The interface of the transmitting end is made to perform the operations performed by the method of the embodiment of the present application, and the existing interface can be reasonably used, thereby realizing the multiplexing of the interface.
  • the transmitting end interface uses other methods to send the target LPD to the receiving end interface with reference to FIG. 7 . It should be noted that the following embodiments are applicable to scenarios where the sleep time period (ie, the target LPD) is relatively fixed and does not require high real-time performance.
  • the data packets in these embodiments may be in standard protocol data packet formats. That is, no part of the packet (eg, header, trailer, or payload) includes data bits that indicate the target LPD.
  • the first interface 73 may indicate a data interface other than the transmitting end interface 71 and the receiving end interface 72, and the data interface may transmit data packets or instructions according to an existing protocol layer.
  • the first interface 73 may include an inter-integrated circuit (I2C) interface, a serial peripheral interface (SPI) interface, and the like.
  • I2C inter-integrated circuit
  • SPI serial peripheral interface
  • the transmitter interface 71 and the receiver interface 72 have two modes, a low-power consumption data transmission mode and a high-speed data transmission mode.
  • the transmitting end interface 71 and the receiving end interface 73 are camera interfaces in the terminal device 100, and the camera interface is a C/D-PHY high-speed interface.
  • the user can activate the sender interface 71 by triggering the relevant controls in the terminal device 100. For example, the user can click to display the camera icon on the terminal device 100, and the terminal device 100 can call the kernel layer after detecting the user's click.
  • the camera interface can be used as the transmitting end interface 71
  • the A/V interface displaying the image captured by the camera interface 71 can be used as the receiving end interface 73 .
  • step S710 the transmitting end interface 71 activates the high-speed data transmission mode
  • step S720 the receiving end interface 72 activates the high-speed data transmission mode
  • the sending end interface 71 and the receiving end interface 72 may be set by default to start the high-speed data transmission mode after being started.
  • the terminal device 100 may use another data interface to send a start instruction for starting the high-speed data transmission mode to the sending end interface 71 and the receiving end interface 72 .
  • the transmitting end interface 71 and the receiving end interface 72 can start the high-speed data transmission mode after receiving the command.
  • the transmitting end interface may perform steps S7110 to S7130, since steps S7110 to S7130 are the same as steps S5110 to S5130, and will not be repeated here.
  • the sending end interface 71 can send the determined target LPD to the first interface 73, and the first interface sends it to the receiving end interface 72, wherein the target LPD can exist in the form of an instruction or a data packet, and this application does not make restrictions.
  • the target LPD is determined by the sender interface 71 and sent to the first interface 73 .
  • the first interface 73 may also acquire the target LPD in other ways, as follows:
  • the target LPD can be determined by the interface 73 itself, and the target LPD is sent to the receiver interface 72 .
  • the interface 73 can determine the target LPD according to the frame rate, resolution and link wake-up time of the camera interface.
  • other processing units may also be used to determine the target LPD according to the frame rate, resolution and link wake-up time of the camera interface, and send the target LPD to the receiver interface 72 .
  • the sender interface 71 may start a timer.
  • the sender interface 71 may determine the start time point for starting the timer, and then start the timer at the start time point.
  • the sender interface 71 can determine the amount of data (eg, the number of data packets) transmitted in the high-speed data transmission mode, and therefore, can start a timer after a certain number of data packets have been transmitted .
  • the receiver interface 72 can also start the timer in step S750 in the above manner.
  • step S760 the transmitting end interface 71 can calculate whether the timer reaches the timing time, and after the timer reaches the timing time, start the relevant module of high-speed data transmission in the transmitting end interface 71 to enter the high-speed data transmission mode.
  • step S770 the receiving end interface 72 can calculate whether the timer reaches the timing time, and after the timer reaches the timing time, start the relevant module of high-speed data transmission in the receiving end interface 72 to enter the high-speed data transmission mode.
  • the first interface 73 or other processing units determine the target LPD in the current frame
  • the target LPD is sent to the receiving end interface, so that the receiving end interface 72 can be
  • the corresponding sleep mode is executed within one frame. Therefore, the above embodiment uses the first interface 73 to send the sleep information (that is, the target LPD) to the receiving end interface in the current frame before realizing the sleep mode in the next frame, and there is a delay. Therefore, the embodiment shown in FIG. 7 is suitable for scenarios where the sleep time period (ie, the target LPD) is relatively fixed and does not require high real-time performance.
  • the transmitting end interface may also use a storage unit (for example, a register) to store the The LPD is described above, and then the storage address of the storage unit is sent to the sender interface. In this way, the receiver interface can use the storage address to read the target LPD stored in the storage unit.
  • this implementation is suitable for scenarios where the sleep time period (ie, the target LPD) is relatively fixed and does not require high real-time performance.
  • the receiving end interface can directly obtain the target LPD from the first interface 73 or the storage unit after being activated, and realize that the two ends of the data transmission (the transmitting end interface and the receiving end interface) are in the data transmission mode in the next frame. synchronization.
  • the method for determining the data transmission mode may utilize the first interface or storage
  • the unit sends the sleep time period (ie, LPD) to the transmitting end interface, which reduces the operations performed by the technician to make the transmitting end interface implement the method of the embodiment of the present application and can reasonably utilize the existing interface, realizing the multiplexing of the interface. .
  • FIG. 8 is a diagram illustrating that a transmitting end interface and a receiving end interface switch from a high-speed data transmission mode to a sleep mode using data packets according to an embodiment of the present application.
  • the transmitting end interface may send a data packet to the receiving end interface in the format of the data packet 600A, and the packet header of the data packet may include LPS and LPD.
  • the high-speed data transmission mode may be used for data transmission until the transmitting end interface sends the data packet N, where N may indicate the data packet during the data transmission process.
  • the last packet, that is, the sender interface will go into sleep mode after sending packet N.
  • the transmitting end interface and the receiving end interface can determine the target LPD to be dormant according to the header part in the data packet.
  • the transmitting end interface, the communication link and the receiving end interface will be ready to enter the high-speed data transmission mode after passing through the target LPD, and enter the high-speed data transmission mode after the wake-up time of the communication link.
  • the transmitting end interface, the communication terminal and the receiving end interface all execute the high-speed data transmission mode.
  • the sender interface starts its internal timer after sending the data packet N
  • the sender interface starts its internal timer after receiving the data packet N.
  • the timing of the above timer is The time period from the time point t1 to the time point t2 (ie, the target LPD in the figure). That is to say, in the time period from the time point t1 to the time point t2 , the transmitting end interface, the communication terminal and the receiving end interface all execute the sleep mode.
  • the timers of the interface of the transmitting end and the interface of the receiving end reach the timing time after passing through the target LPD.
  • the transmitter interface, the receiver interface and the communication link enter the wake-up time, that is to say, the time period from the time point t2 to the time point t3 (that is, the LW in the figure) can be used as the transmitter interface, the communication terminal and the Wake-up time for the receiver interface to perform high-speed data transfer mode. Since the start-up time of the sending-end interface and the receiving-end interface for starting the modules related to high-speed data transmission is shorter than the wake-up time for waking up the communication link, the wake-up time can be reserved. After the time point t3 , the transmitting end interface, the communication terminal and the receiving end interface may perform a high-speed data transmission mode.
  • the time point t1 indicates the time point when the timer is turned on.
  • the timer is a unit for timing the sleep period.
  • both the sender interface and the receiver interface have timers.
  • the transmitting end interface can start the timer after sending the data packet N, and the receiving end interface can start the timer after receiving the data packet N.
  • the time period between data packet N and data packet N+1 indicates the sleep time period in which sleep is required.
  • t2 indicates the communication link wake-up time.
  • t3 indicates that the sender interface, the communication link, and the receiver interface can perform a high-speed data transmission mode.
  • the sender interface may determine whether the initial LPD is greater than the communication link wake-up time LW. If the initial LPD is less than the communication link wake-up time LW, that is, the time for the receiver interface to enter the sleep mode is not enough to wake up the communication link, the transmitter interface does not execute the sleep mode.
  • the sender interface may determine the target LPD (eg, the time period between t 1 -t 2 ), and set the timing time of the timer as the target LPD, and This time period LPD is provided to the receiving end interface with the data packet N.
  • the sender interface enters a sleep mode after sending the data packet N (at time point t 1 ). After receiving the data packet N, the receiver interface can start the timer, and set the timing of the timer as the target LPD.
  • the transmitter interface, the communication link, and the receiver interface wake up and/or activate circuits for high-speed data transmission within the communication link wake-up time LW.
  • the interface of the transmitting end can transmit the data packet N+1 in the high-speed data transmission mode.
  • the method for determining the data transmission mode shown in FIG. 9 is performed by the sender interface, and the method includes the following steps:
  • step S910 in the first data transmission mode, the data packet is sent to the receiving end interface by using the communication link.
  • This step may correspond to step S510 and step S530 in FIG. 5A , which will not be repeated.
  • step S920 when the switching condition is satisfied, switching to the second data transmission mode is started. This step corresponds to the activation condition of step S540 in FIG. 5A , which will not be repeated.
  • step S930 after switching to the second data transmission mode for a target time period, start switching to the first data transmission mode, wherein the data transmission speed of the first data transmission mode is higher than that of the second data transmission mode
  • the data transfer speed of the data transfer mode may indicate the above-mentioned target LPD, and an example of this step corresponds to step S540 and step S560 in FIG. 5A , which will not be repeated.
  • the target time period is included in the first data packet or the last data packet in the data packets; or, each data packet in the data packets includes mode information, so The mode information indicates whether to start switching to the second data transmission mode after the current data packet, and when the mode information indicates that the switch to the second data transmission mode starts after the current data packet, the mode information includes the target time period.
  • the above-mentioned examples of the first data packet, the last data packet and the solutions of each data packet have been described in detail with reference to FIG. 5B , and will not be repeated here.
  • the mode information included in each data packet may indicate data bits 62 in data packet 600A of FIG. 6 and may also indicate data bits 602 and 603 in data packet 600B of FIG. 6 .
  • the method further includes: sending the target time period to the receiving end interface by using a first interface, wherein the first interface is different from the sending end interface and the receiving end interface interface.
  • the first interface may indicate the first interface 73 in FIG. 7 , and this embodiment has been described in detail with reference to FIG. 7 , which will not be repeated.
  • the method further includes: determining an initial time period that lasts after switching to the second data transmission mode; judging whether the initial time period is longer than a link wake-up time, wherein the link The road wake-up time indicates the time to wake up the communication link; in the case that the initial time period is longer than the link wake-up time, the target time period is determined by using the initial time period and the link wake-up time.
  • the initial time period may correspond to the initial sleep time period in FIG. 5A , and on this basis, this embodiment may correspond to steps S5110 to S5130 in FIG. 5A or steps S7110 to S7130 in FIG. 7 , for this No further description will be given.
  • the target time period is not longer than the remaining time period after subtracting the link wake-up time from the initial time period.
  • the initial time period corresponds to the initial sleep time period and the target time period corresponds to the target LPD
  • the embodiment of determining the target time period by using the initial time period and the link wake-up time has been described in detail with reference to FIG. No longer.
  • the switching condition includes that the number of the data packets reaches a preset number, or the mode information indicates that the current data packet starts to switch to the second data transmission mode.
  • the example of the switching condition has been described above when the start condition of the timer is started by the interface 51 of the transmitting end with reference to step S540 in FIG. 5A , and will not be repeated here.
  • the first data transmission mode includes a high-speed data transmission mode
  • the second data transmission mode includes a sleep mode
  • the method for determining the data transmission mode shown in FIG. 10 is performed by the receiving end interface, and the method includes the following steps:
  • step S1010 a data packet is received from the transmitting end interface using the communication link in the first data transmission mode, and this step corresponds to step S520 and step S530 in FIG. 5A.
  • step S1020 when the switching condition is satisfied, the switching to the second data transmission mode is started, and this step corresponds to the starting condition of step S550 in FIG. 5A, which will not be repeated.
  • step S1030 after switching to the second data transmission mode for a target time period, start switching to the first data transmission mode, wherein the data transmission speed of the first data transmission mode is higher than that of the second data transmission mode
  • the data transfer speed of the data transfer mode may indicate the above-mentioned target LPD, and an example of this step corresponds to step S550 and step S570 in FIG. 5A , which will not be repeated.
  • the target time period is included in the first data packet or the last data packet in the data packets; or, each data packet in the data packets includes mode information, so The mode information indicates whether to start switching to the second data transmission mode after the current data packet, and when the mode information indicates that the switch to the second data transmission mode starts after the current data packet, the mode information includes the target time period.
  • the above-mentioned examples of the first data packet, the last data packet and the solutions of each data packet have been described in detail with reference to FIG. 5B , and will not be repeated here.
  • the mode information included in each data packet may indicate data bits 62 in data packet 600A of FIG. 6 and may also indicate data bits 602 and 603 in data packet 600B of FIG. 6 .
  • the data packet is received by the interface of the receiving end from the interface of the transmitting end; the method further includes: obtaining the target time period by using a first interface, wherein the first interface Different from the sender interface and the receiver interface.
  • the first interface may indicate the first interface 73 in FIG. 7 , and this embodiment has been described in detail with reference to FIG. 7 , which will not be repeated.
  • the method further includes: determining an initial time period that lasts after switching to the second data transmission mode; judging whether the initial time period is longer than a link wake-up time, wherein the link The road wake-up time indicates the time to wake up the communication link; in the case that the initial time period is longer than the link wake-up time, the target time period is determined by using the initial time period and the link wake-up time.
  • the initial time period may correspond to the initial sleep time period in FIG. 5A , and on this basis, this embodiment may correspond to steps S5110 to S5130 in FIG. 5A or steps S7110 to S7130 in FIG. 7 , for this No further description will be given.
  • the target time period is not longer than the remaining time period after subtracting the link wake-up time from the initial time period.
  • the initial time period corresponds to the initial sleep time period and the target time period corresponds to the target LPD
  • the embodiment of determining the target time period by using the initial time period and the link wake-up time has been described in detail with reference to FIG. No longer.
  • the switching condition includes that the number of the data packets reaches a preset number, or the mode information indicates that the current data packet starts to switch to the second data transmission mode.
  • An example of the switching condition has been described above when the receiver interface 53 executes the start condition for starting the timer with reference to step S550 in FIG. 5A , and will not be repeated here.
  • the first data transmission mode includes a high-speed data transmission mode
  • the second data transmission mode includes a sleep mode
  • the transmission rate of the high-speed data transmission mode is higher than that of the sleep mode. rate.
  • the first data transmission mode includes a high-speed data transmission mode
  • the second data transmission mode includes a sleep mode
  • an embodiment of the present application may further provide a data transmission system, and the data transmission system may include a data transmission apparatus for performing the method in FIG. 9 and a data transmission apparatus for performing the method in FIG. 10 .
  • An embodiment of the present application provides a data transmission apparatus, comprising: a processor and a memory for storing instructions executable by the processor; wherein the processor is configured to implement the above method when executing the instructions.
  • Embodiments of the present application provide a non-volatile computer-readable storage medium on which computer program instructions are stored, and when the computer program instructions are executed by a processor, implement the above method.
  • Embodiments of the present application provide a computer program product, including computer-readable codes, or a non-volatile computer-readable storage medium carrying computer-readable codes, when the computer-readable codes are stored in a processor of an electronic device When running in the electronic device, the processor in the electronic device executes the above method.
  • a computer-readable storage medium may be a tangible device that can hold and store instructions for use by the instruction execution device.
  • the computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing.
  • Computer-readable storage media include: portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable programmable read-only memory (Electrically Programmable Read-Only-Memory, EPROM or flash memory), static random access memory (Static Random-Access Memory, SRAM), portable compact disk read-only memory (Compact Disc Read-Only Memory, CD - ROM), Digital Video Disc (DVD), memory sticks, floppy disks, mechanically encoded devices, such as punch cards or raised structures in grooves on which instructions are stored, and any suitable combination of the foregoing .
  • RAM random access memory
  • ROM read only memory
  • EPROM erasable programmable read-only memory
  • EPROM Errically Programmable Read-Only-Memory
  • SRAM static random access memory
  • portable compact disk read-only memory Compact Disc Read-Only Memory
  • CD - ROM Compact Disc Read-Only Memory
  • DVD Digital Video Disc
  • memory sticks floppy disks
  • Computer readable program instructions or code described herein may be downloaded to various computing/processing devices from a computer readable storage medium, or to an external computer or external storage device over a network such as the Internet, a local area network, a wide area network and/or a wireless network.
  • the network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and/or edge servers.
  • a network adapter card or network interface in each computing/processing device receives computer-readable program instructions from a network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in each computing/processing device .
  • the computer program instructions used to perform the operations of the present application may be assembly instructions, Instruction Set Architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or in one or more source or object code written in any combination of programming languages, including object-oriented programming languages such as Smalltalk, C++, etc., and conventional procedural programming languages such as the "C" language or similar programming languages.
  • the computer readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server implement.
  • the remote computer may be connected to the user's computer through any kind of network—including a Local Area Network (LAN) or a Wide Area Network (WAN)—or, may be connected to an external computer (eg, use an internet service provider to connect via the internet).
  • electronic circuits such as programmable logic circuits, Field-Programmable Gate Arrays (FPGA), or Programmable Logic Arrays (Programmable Logic Arrays), are personalized by utilizing state information of computer-readable program instructions.
  • Logic Array, PLA the electronic circuit can execute computer readable program instructions to implement various aspects of the present application.
  • These computer readable program instructions may be provided to a processor of a general purpose computer, special purpose computer or other programmable data processing apparatus to produce a machine that causes the instructions when executed by the processor of the computer or other programmable data processing apparatus , resulting in means for implementing the functions/acts specified in one or more blocks of the flowchart and/or block diagrams.
  • These computer readable program instructions can also be stored in a computer readable storage medium, these instructions cause a computer, programmable data processing apparatus and/or other equipment to operate in a specific manner, so that the computer readable medium on which the instructions are stored includes An article of manufacture comprising instructions for implementing various aspects of the functions/acts specified in one or more blocks of the flowchart and/or block diagrams.
  • Computer readable program instructions can also be loaded onto a computer, other programmable data processing apparatus, or other equipment to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other equipment to produce a computer-implemented process , thereby causing instructions executing on a computer, other programmable data processing apparatus, or other device to implement the functions/acts specified in one or more blocks of the flowcharts and/or block diagrams.
  • each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more functions for implementing the specified logical function(s) executable instructions.
  • the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved.
  • each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations can be implemented in hardware (eg, circuits or ASICs (Application) that perform the corresponding functions or actions. Specific Integrated Circuit, application-specific integrated circuit)), or can be implemented by a combination of hardware and software, such as firmware.

Landscapes

  • Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Power Sources (AREA)

Abstract

本申请的实施例涉及一种确定数据传输模式的方法及其装置,所述方法包括在第一数据传输模式下利用通信链路向接收端端接口发送数据包;在满足切换条件时,开始向第二数据传输模式切换;在切换至所述第二数据传输模式达到目标时间段后,开始向所述第一数据传输模式切换;其中,所述第一数据传输模式的数据传输速度高于所述第二数据传输模式的数据传输速度。采用本申请,发送端接口可通过目标时间段来切换数据传输模式,使得发送端接口能够及时切换至相应的数据传输模式,并且无需为了通知对应的接收端接口而保留部分电路或模块,进一步降低了功耗。

Description

确定数据传输模式的方法及其装置
本申请要求于2021年03月29日提交中国专利局、申请号为202110336351.X、申请名称为“确定数据传输模式的方法及其装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及数据处理领域,尤其涉及一种确定数据传输模式的方法及其装置。
背景技术
随着拍摄、显示和存储等技术的提高,相关接口(例如,拍摄接口)在数据传输过程中也产生了更大的功耗。在相关技术中,各个接口(特别是高速传输数据的接口)在没有数据传输的时间段内,可进入休眠模式,其中,所述休眠模式是指关闭与数据传输相关的部分电路或模块,从而降低功耗。一种可行的技术方案是提前通知需要休眠的接口使该接口进入休眠模式,并在需要数据传输的情况下通知该接口结束休眠,使该接口退出休眠模式进入高速数据传输模式。可以看出,为了能够实现该技术方案,仍然需要保留部分电路或模块来接收通知,产生了额外的功耗。
发明内容
有鉴于此,本申请提出了一种确定数据传输模式的方法及其装置。
第一方面,本申请实施例提供一种确定数据传输模式的方法,包括:在第一数据传输模式下利用通信链路向接收端端接口发送数据包;在满足切换条件时,开始向第二数据传输模式切换;在切换至所述第二数据传输模式达到目标时间段后,开始向所述第一数据传输模式切换;其中,所述第一数据传输模式的数据传输速度高于所述第二数据传输模式的数据传输速度。
在本申请的实施例中,所述发送端接口可首先确定切换至第二数据传输模式的目标时间段,并在第二数据传输模式已达到目标时间段后直接切换数据传输模式,使得发送端接口能够及时切换至相应的数据传输模式,并且无需为了通知对应的接收端接口而保留部分电路或模块,进一步降低了功耗。
根据第一方面,在第一方面的第一种可能的实现方式中,所述数据包中的第一个数据包或者最后一个数据包内包括所述目标时间段;或者,所述数据包中的每个数据包包括模式信息,所述模式信息表示当前数据包后是否开始向第二数据传输模式切换,在所述模式信息表示当前数据包后开始向第二数据传输模式切换时,所述模式信息包括所述目标时间段。
在本申请的实施例中,相较于采用长序列来开启或结束数据传输模式的方式,所述发送端接口采用数据包发送目标时间段的方式,可在发送数据包的同时发送休眠时间段,使得发送端接口无需保留用于发送特定序列(例如,启动序列、结束序列)的 电路,进一步降低了功耗,而且避免了在发送长序列过程中的出错的概率。
根据第一方面,在第一方面的第二种可能的实现方式中,所述数据包是由发送端接口向所述接收端接口发送的;所述方法还包括:将所述目标时间段利用第一接口发送到所述接收端接口,其中,第一接口不同于所述发送端接口与所述接收端接口。
在本申请的实施例中,所述发送端接口为了实现采用数据包发送目标时间段的方案可能比较考验发送端接口的性能并且技术人员可能需要对发送端接口的性能进行调整,基于此,在休眠时间段相对固定且实时性要求不高的场景中,所述方法可采用不同于发送端接口与接收端接口的第一接口发送休眠时间段,减少了针对发送端接口的调整操作并且可以合理利用已有接口(即,第一接口),实现了接口的复用。
根据第一方面,在第一方面的第三种可能的实现方式中,所述方法还包括:确定切换至所述第二数据传输模式后持续的初始时间段;判断所述初始时间段是否长于链路唤醒时间,其中,所述链路唤醒时间指示唤醒所述通信链路的时间;在所述初始时间段长于所述链路唤醒时间的情况下,利用所述初始时间段和所述链路唤醒时间确定所述目标时间段。
在本申请的实施例中,发送端接口可确定初始时间段是否长于链路唤醒时间,并在长于链路唤醒时间的情况下确定目标时间段,避免了发送端接口频繁切换数据传输模式,并通过引入链路唤醒时间,为发送端接口切换数据传输模式预留了准备时间。
根据第一方面,在第一方面的第四种可能的实现方式中,所述目标时间段不长于所述初始时间段减去所述链路唤醒时间后的剩余时间段。
在本申请的实施例中,所述发送端接口可将执行第二数据传输模式的目标时间段设置为不长于上述剩余时间段,这样发送端接口可在达到剩余时间段后有充足的时间执行开启相关电路和/或模块,并且通信链路同样有充足的时间被唤醒。
根据第一方面,在第一方面的第一种至第五种可能的实现方式中的任一可能实现方式中,所述切换条件包括所述数据包的数量达到预设数量、或所述模式信息表示当前数据包后开始向第二数据传输模式切换。
在本申请的实施例中,所述发送端接口采用以上切换条件能够保证其与接收端接口在时间上的一致性,也就是说,两端接口可同时(或近似同时)计算目标时间段,从而能够保证数据传输模式的一致性。
根据第一方面,在第一方面的第一种至第六种可能的实现方式中的任一可能实现方式中,所述第一数据传输模式包括高速数据传输模式,所述第二数据传输模式包括休眠模式,所述高速数据传输模式的传输速率高于所述休眠模式的传输速率。
在本申请的实施例中,所述方法可适应于具备高速数据传输模式以及休眠模式的发送端接口。
第二方面,本申请提供一种确定数据传输模式的方法,包括:在第一数据传输模式下利用通信链路从发送端端接口接收数据包;在满足切换条件时,开始向第二数据传输模式切换;在切换至所述第二数据传输模式达到目标时间段后,开始向所述第一数据传输模式切换;
其中,所述第一数据传输模式的数据传输速度高于所述第二数据传输模式的数据传输速度。
在本申请的实施例中,所述接收端接口可根据目标时间段来切换数据传输模式,对于通信链路而言不需要保留部分电路来接收特定数据传输模式的起始序列,对于接收端接口也不需要保留相关模块来接收和解析该起始序列,进一步降低了功耗。
根据第二方面,在第二方面的第一种可能的实现方式中,所述数据包中的第一个数据包或者最后一个数据包内包括所述目标时间段;或者,所述数据包中的每个数据包包括模式信息,所述模式信息表示当前数据包后是否开始向第二数据传输模式切换,在所述模式信息表示当前数据包后开始向第二数据传输模式切换时,所述模式信息包括所述目标时间段。
在本申请的实施例中,相较于采用长序列来开启或结束数据传输模式的方式,所述接收端接口采用数据包接收目标时间段的方式,可在接收数据包的同时接收到休眠时间段,使得接收端接口无需保留用于接收特定序列(例如,启动序列、结束序列)的电路,进一步降低了功耗,而且避免了在接收长序列过程中的出错的概率。
根据第二方面,在第二方面的第二种可能的实现方式中,所述数据包是接收端接口从所述发送端接口接收的;所述方法还包括:利用第一接口获取所述目标时间段,其中,所述第一接口不同于所述发送端接口和所述接收端接口。
在本申请的实施例中,所述接收端接口为了实现从接收的数据包中获取目标时间段的方案可能比较考验接收端接口的性能并且技术人员可能需要对接收端接口的性能进行调整,基于此,在休眠时间段相对固定且实时性要求不高的场景中,所述方法可采用不同于发送端接口与接收端接口的第一接口发送休眠时间段,减少了针对接收端接口的调整操作并且可以合理利用已有接口(即,第一接口),实现了接口的复用。
根据第二方面,在第二方面的第三种可能的实现方式中,所述方法还包括:确定切换至所述第二数据传输模式后持续的初始时间段;判断所述初始时间段是否长于链路唤醒时间,其中,所述链路唤醒时间指示唤醒所述通信链路的时间;在所述初始时间段长于所述链路唤醒时间的情况下,利用所述初始时间段和所述链路唤醒时间确定所述目标时间段。
在本申请的实施例中,所述接收端接口可确定初始时间段是否长于链路唤醒时间,并在长于链路唤醒时间的情况下确定目标时间段,避免了接收端接口频繁切换数据传输模式,并通过引入链路唤醒时间,为接收端接口切换数据传输模式预留了准备时间。
根据第二方面,在第二方面的第四种可能的实现方式中,所述目标时间段不长于所述初始时间段减去所述链路唤醒时间后的剩余时间段。
在本申请的实施例中,所述目标时间段设置为不长于上述剩余时间段,这样接收端接口可在达到剩余时间段后有充足的时间执行开启相关电路和/或模块,并且通信链路同样有充足的时间被唤醒。
根据第二方面,在第二方面的第一种至第四种可能的实现方式中的任一可能实现方式中,所述切换条件包括所述数据包的数量达到预设数量、或所述模式信息表示当前数据包后开始向第二数据传输模式切换。
在本申请的实施例中,所述接收端接口采用以上切换条件能够保证其与发送端接口在时间上的一致性,也就是说,两端接口可同时(或近似同时)计算目标时间段,从而能够保证数据传输模式的一致性。
根据第二方面,在第二方面的第一种至第五种可能的实现方式中的任一可能实现方式中,所述第一数据传输模式包括高速数据传输模式,所述第二数据传输模式包括休眠模式,所述高速数据传输模式的传输速率高于所述休眠模式的传输速率。
在本申请的实施例中,所述方法可适应于具备高速数据传输模式以及休眠模式的接收端接口。
第三方面,本申请实施例提供一种数据传输装置,用于执行上述第一方面或者第一方面的多种可能的实现方式中的一种或几种的确定数据传输模式的方法。
第四方面,本申请实施例提供一种数据传输装置,处理器和存储器,所述处理器和所述存储器耦合,所述处理器用于执行上述第一方面或者第一方面的多种可能的实现方式中的一种或几种的确定数据传输模式的方法。
第五方面,本申请实施例提供一种数据传输装置,包括:处理器和数据接口,其中,所述处理器利用所述数据接口执行上述第一方面或者第一方面的多种可能的实现方式中的一种或几种的确定数据传输模式的方法。
第六方面,本申请实施例提供一种数据传输装置,用于执行上述第二方面或者第二方面的多种可能的实现方式中的一种或几种的确定数据传输模式的方法。
第七方面,本申请实施例提供一种数据传输装置,包括:处理器和存储器,所述处理器和所述存储器耦合,所述处理器用于执行上述第二方面或者第二方面的多种可能的实现方式中的一种或几种的确定数据传输模式的方法。
第八方面,本申请实施例提供一种数据传输装置,包括:处理器和数据接口,其中,所述处理器利用所述数据接口执行上述第二方面或者第二方面的多种可能的实现方式中的一种或几种的确定数据传输模式的方法。
第九方面,本申请实施例提供一种数据传输系统,包括:第三方面、第四方面或第五方面的数据传输装置以及第六方面、第七方面或者第八方面的数据传输装置。
第十方面,本申请实施例提供一种非易失性计算机可读存储介质,其上存储有计算机程序指令,所述计算机程序指令被处理器执行时实现上述第一方面或者第一方面的多种可能的实现方式中的一种或几种的确定数据传输模式的方法,或者实现上述第二方面或者第二方面的多种可能的实现方式中的一种或几种的确定数据传输模式的方法。
第十一方面,本申请实施例提供一种计算机程序产品,当所述计算机程序产品在计算机上运行时,使得所述计算机执行时实现上述第一方面或者第一方面的多种可能的实现方式中的一种或几种的确定数据传输模式的方法,或者实现上述第二方面或者第二方面的多种可能的实现方式中的一种或几种的确定数据传输模式的方法。
本申请的这些和其他方面在以下(多个)实施例的描述中会更加简明易懂。
附图说明
包含在说明书中并且构成说明书的一部分的附图与说明书一起示出了本申请的示例性实施例、特征和方面,并且用于解释本申请的原理。
图1示出适用于本申请一实施例的终端设备的框图;
图2示出图1中的相机接口执行数据传输的场景图;
图3A示出相关技术中的数据传输系统确定数据传输模式的示图;
图3B示出图3A中的移位寄存器输出电路的示图;
图4示出相关技术中的数据传输系统确定数据传输模式的示图;
图5A示出根据本申请一实施例的确定数据传输模式的方法的步骤流程图;
图5B示出根据本申请一实施例的利用数据包传输目标LPD的示图;
图6示出根据本申请一实施例的数据包的示图;
图7示出根据本申请一实施例的确定数据传输模式的方法的步骤流程图;
图8示出根据本申请一实施例的发送端接口从高速数据传输模式切换至休眠模式的示图;
图9示出根据本申请一实施例的确定数据传输模式的方法的步骤流程图;
图10示出根据本申请一实施例的确定数据传输模式的方法的步骤流程图。
具体实施方式
以下将参考附图详细说明本申请的各种示例性实施例、特征和方面。附图中相同的附图标记表示功能相同或相似的元件。尽管在附图中示出了实施例的各种方面,但是除非特别指出,不必按比例绘制附图。
在本申请实施例中,“/”可以表示前后关联的对象是一种“或”的关系,例如,A/B可以表示A或B;“和/或”可以用于描述关联对象存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况,其中A,B可以是单数或者复数。为了便于描述本申请实施例的技术方案,在本申请实施例中,可以采用“第一”、“第二”等字样对功能相同或相似的技术特征进行区分。该“第一”、“第二”等字样并不对数量和执行次序进行限定,并且“第一”、“第二”等字样也并不限定一定不同。在本申请实施例中,“示例性的”或者“例如”等词用于表示例子、例证或说明,被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念,便于理解。
另外,为了更好的说明本申请,在下文的具体实施方式中给出了具体细节。本领域技术人员应当理解,没有某些具体细节,本申请同样可以实施。在一些实例中,对于本领域技术人员熟知的方法、手段、元件和电路未作详细描述,以便于凸显本申请的主旨。
本申请实施例提供的确定数据传输模式的方法可由智能手机、膝上型计算机、平板计算机、可穿戴设备等具备数据处理能力的终端设备实现。作为示例,所述终端设备可采用如图1所示的结构。
图1示出根据本申请一实施例的终端设备100的框图。终端设备100典型地包括系统存储器206和一个或者多个处理器204。存储器总线208可以用于在处理器204和系统存储器206之间的通信。
取决于期望的配置,处理器204可以是任何类型的处理器,包括但不限于:微处 理器(μP)、微控制器(μC)、数字信息处理器(DSP)或者它们的任何组合。处理器204可以包括诸如一级高速缓存210和二级高速缓存212之类的一个或者多个级别的高速缓存、处理器核心214和寄存器216。示例的处理器核心214可以包括运算逻辑单元(ALU)、浮点数单元(FPU)、数字信号处理核心(DSP核心)或者它们的任何组合。示例的存储器控制器218可以与处理器204一起使用,或者在一些实现中,存储器控制器218可以是处理器204的一个内部部分。
取决于期望的配置,系统存储器206可以是任意类型的存储器,包括但不限于:易失性存储器(诸如RAM)、非易失性存储器(诸如ROM、闪存等)或者它们的任何组合。系统存储器206可以包括操作系统220、一个或者多个程序222以及程序数据224。在一些实施方式中,程序222可以布置为在操作系统上由一个或多个处理器204利用程序数据224执行指令。
如图1所示,在本申请中并不对存储设备232的类型做任何限定,例如,存储设备232可以是存储区域网设备,也可以是包含文件系统的存储设备,诸如,网络附属存储(Network Attached Storage NAS)设备。
此外,存储设备232可包括可移除存储器236以及不可移除存储器238。在本申请中提及的存储单元指示分布在作为不可移除存储器的硬盘上的存储空间,其中,硬盘可指示多种类型的硬盘,例如,固态硬盘(Solid State Drive,SSD)或者串行连接SCSI(Serial Attached SCSI,SAS)或者光纤通道(Fiber Channel,FC)硬盘驱动器(Hard Disk Drive,HDD),其中,SCSI(Small Computer System Interface)为小型机系统接口等。
作为示例,在存储设备232是SAN设备的情况下,存储单元可指示分布在硬盘上的一段逻辑存储空间,也就是逻辑单元(Logic Unit,LU),而逻辑单元号(Logic Unit Number,LUN)用于标识逻辑单元,该逻辑单元可通过SCSI寻址。在实施中,存储设备可将物理硬盘进行分区,各个分区可作为拥有逻辑地址的存储单元(即,LUN)以供主机进行访问。
终端设备100还可以包括有助于从各种接口设备(例如,输出设备242、外设接口244和通信设备246)到基本配置经由总线/接口控制器230的通信的接口总线240。示例的输出设备242包括图像处理单元248和音频处理单元250。它们可以被配置为有助于经由一个或者多个A/V接口252与诸如显示器或者扬声器之类的各种外部设备进行通信。
此外,示出的输出设备242还可包括摄像头,所述摄像头(作为前置摄像头,也可作为后置摄像头)可用于捕获静态图像或视频。通常,摄像头可以包括感光元件比如镜头组和图像传感器,其中,镜头组包括多个透镜(凸透镜或凹透镜),用于采集待拍摄物体反射的光信号,并将采集的光信号传递给图像传感器。
具体来说,镜头组的作用是把被观察目标的光像呈现在摄像机的传感器上,也称光学成像。镜头组通过将各种不同形状、不同介质(塑料、玻璃或晶体)的光学零件(反射镜、透射镜、棱镜)按一定方式组合起来,使得光线经过这些光学零件的透射或反射以后,按照人们的需要改变光线的传输方向而被接收器件接收,完成物体的光学成像过程。一般来说每个镜头组都由多组不同曲面曲率的透镜按不同间距组合而成。 间距和镜片曲率、透光系数等指标的选择决定了该镜头的焦距。镜头组主要的参数指标包括:有效焦距、光圈、最大像面、视场角、畸变、相对照度等,各项指标数值决定了镜头的综合性能。
图像传感器根据所述光信号生成待拍摄物体的原始图像。具体来说,所述图像传感器可以是一种将光学影像转换成电子信号的器件,广泛应用在数码相机和其他电子光学设备中。常见的传感器包括:感光耦合元件(charge-coupled device,CCD)和互补式金属氧化物半导体(complementary MOS,CMOS)。CCD和CMOS均拥有大量(例如数千万)的感光二极管(photodiode),每个感光二极管称为一个感光基元,每个感光基元对应一个像素。曝光时,该感光二极管在接受光线照射之后,把光信号转化成包含了亮度(或者亮度与颜色)的电信号,影像就随之被重新构建起来。拜尔
(Bayer)阵列是一种常见的图像传感器技术,可以应用于CCD和CMOS中,拜耳阵列使用拜尔滤色镜让不同的像素点只对红、蓝、绿三原色光中的其中一种感光,这些像素交织在一起,然后通过去马赛克(demosaicing)内插来恢复原始影像。拜耳阵列可以应用于CCD或者CMOS中,应用了拜耳阵列的传感器又称为拜耳传感器。除了拜耳传感器之外,还有X3(Foveon公司开发)等传感器技术,X3技术采用三层感光元件,每层记录RGB的其中一个颜色通道,因此可以在一个像素上捕捉全部色彩的图像传感器。
输出设备242可以是显示器,所述显示器用于显示图像,视频等。显示器包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,显示器可以包括1个或N个显示屏,N为大于1的正整数。显示器可用于显示由用户输入的信息或提供给用户的信息以及各种图形用户界面(graphical user interface,GUI)。例如,显示器可以显示照片、视频、网页、或者文件等。再例如,显示器可以显示图形用户界面。其中,图形用户界面上包括状态栏、可隐藏的导航栏、时间和天气小组件(widget)、以及应用的图标,例如浏览器图标等。状态栏中包括运营商名称(例如中国移动)、移动网络(例如4G)、时间和剩余电量。导航栏中包括后退(back)键图标、主屏幕(home)键图标和前进键图标。此外,可以理解的是,在一些实施例中,状态栏中还可以包括蓝牙图标、Wi-Fi图标、外接设备图标等。还可以理解的是,在另一些实施例中,图形用户界面中还可以包括Dock栏,Dock栏中可以包括常用的应用图标等。当处理器204检测到用户的手指(或触控笔等)针对某一应用图标的触摸事件后,响应于该触摸事件,打开与该应用图标对应的应用的用户界面,并在显示器上显示该应用的用户界面。对应于本申请实施例,所述处理器204可检测到用户的手指触摸如图2所示的应用图标21,并在显示器上显示摄像头所拍摄的图像。
在本申请实施例中,显示器可以是一个一体的柔性显示屏,也可以采用两个刚性屏以及位于两个刚性屏之间的一个柔性屏组成的拼接显示屏。
示例外设接口244可以包括串行接口控制器254和并行接口控制器256,它们可 以被配置为有助于经由一个或者多个I/O接口258和诸如输入设备(例如,键盘、鼠标、笔、语音输入设备、触摸输入设备)或者其他外设(例如打印机、扫描仪等)之类的外部设备进行通信。示例的通信设备246可以包括网络控制器260,其可以被布置为便于经由一个或者多个通信接口264与一个或者多个其他计算设备262通过网络通信链路的通信。
网络通信链路可以是通信介质的一个示例。通信介质通常可以体现为在诸如载波或者其他传输机制之类的调制数据信号中的计算机可读指令、数据结构、程序模块,并且可以包括任何信息递送介质。“调制数据信号”可以这样的信号,它的数据集中的一个或者多个或者它的改变可以在信号中编码信息的方式进行。作为非限制性的示例,通信介质可以包括诸如有线网络或者专线网络之类的有线介质,以及诸如声音、射频(RF)、微波、红外(IR)或者其它无线介质在内的各种无线介质。这里使用的术语计算机可读介质可以包括存储介质和通信介质二者。
终端设备100可以实现为服务器,例如文件服务器、数据库服务器、应用程序服务器和WEB服务器等,也可以实现为小尺寸便携(或者移动)电子设备的一部分,这些电子设备可以是诸如蜂窝电话、个人数字助理(PDA)、个人媒体播放器设备、无线网络浏览设备、个人头戴设备、应用专用设备、或者可以包括上面任何功能的混合设备。终端设备100还可以实现为包括桌面计算机和笔记本计算机配置的个人计算机。
应理解,在实际应用中,终端设备100可以包括比图1所示的更多或更少的部件,本申请实施例不作限定。图示终端设备100仅是一个范例,并且终端设备100可以具有比图中所示出的更多的或者更少的部件,可以组合两个或更多的部件,或者可以具有不同的部件配置。图中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。
本申请实施例所描述的接口可以是具有不同数据传输模式的接口,所述不同的数据传输模式可以按照数据传输所消耗的功率来划分,比如,低功耗的数据传输模式或者高功耗的数据传输模式,也可以按照单位时间内的数据传输量来划分,比如,高速数据传输模式或者低速数据传输模式,又或者可以按照是否执行数据传输来划分,比如,数据传输模式或者休眠模式,此处不做限定。
作为一种示例,所述数据传输接口(例如,高速接口)可包括高速(high speed,HS)数据传输模式和低功耗(low power,LP)数据传输模式,所述HS数据传输模式的数据传输速率高于LP数据传输模式的数据传输速率。在该HS数据传输模式下,数据传输速率快(通常在80Mbps到1Gbps)、功耗大并且信号幅值小(通常在100mv到300mv);所述LP数据传输模式包括休眠模式,在该LP数据传输模式下,数据传输速率低(例如小于10Mbps)、功耗小且信号幅值大(例如,1.2V)。并且两种数据模式间具有切换机制,该切换机制将在以下具体描述,在此将不再赘述。
对照图1,本申请实施例描述的接口可以是A/V接口252、外设接口244或者是I/O接口258等具有不同数据传输模式的接口。为了更好地解释本申请,以下将以摄像头串行接口(Camera Serial Interface,CSI)为示例对本申请可应用的场景进行描述。 MIPI(Mobile Industry Processor Interface)联盟针对接口物理层(Port Physics Layer,PHY)设定了三种物理层标准,分别是C-PHY、D-PHY以及M-PHY。在图1中的CSI可采用C-PHY以及D-PHY。
为了便于描述,以下将参照图2以相机接口为例描述本申请实施例的应用场景。结合图1和图2所示,用户通过单击显示在终端设备20上的相机控件21启动相机应用。随后,所述相机应用21可通过接口总线240通知与该相机应用对应的相机接口23拍摄图像,并将拍摄的图像通过通信链路(例如,接口总线240)传输至处理器204或图像处理单元248。在传输过程中,相机接口21可按照串行的方式利用数据总线向处理器204或图像处理单元248发送图像中的像素信息或者操作命令。在传输过程中,相机接口21可采用独立的通信协议来传输数据包,该通信协议可包括所传输的数据包的格式以及纠错检错机制。在处理器204或图像处理单元248对该图像进行处理后再通过通信链路传输至A/V接口(例如,显示器)。同样地,处理器204或图像处理单元248可按照串行的方式利用数据总线向A/V接口(例如,显示器)发送处理后的像素信息或者操作命令。在传输过程中,处理器204或图像处理单元248可采用与上述相同的通信协议来传输数据包。
作为示例,相机接口23所拍摄的图像可按照表格24的方式经由通信链路传输至显示接口。在执行数据传输前,所述相机接口23可根据初始设定或者技术人员的设定,确定垂直同步开始(vertical sync start,VSS)时间点。两个VSS时间点之间的时间段可指示该图像显示的时间,因此,所述VSS可用于控制帧率(即,每秒显示图像帧数)。
如图2所示,在VSS时间点后可进入水平同步开始(horizontal sync start,HSS)时间点。在HSS时间点后,所述相机接口23可逐行发送图像中的每行像素数据包。从图2的表格24可以明显看出,在VSS时间点后并且在HSS时间点前,所述相机接口23不发送数据。也就是说,在VSS时间点的数据包与HSS时间点的数据包之间的时间段内,通信链路上没有传输数据包。为此,所述相机接口21、通信链路以及接收端接口(显示接口)可进入低功耗状态(low power state,LPS)。
在HSS时间点后,可按照预设时间间隔逐行发送像素数据包,其中,所述预设时间间隔可利用显示的帧率以及分辨率计算得出,通常在微秒量级。在该预设时间间隔内,若该行的像素数据包已发送,则相机接口23在通信链路上没有数据包发送,因此所述相机21可进入水平LPS。此外,在已逐行对各个数据包完成发送后,相机接口23进入垂直LPS。
举例来说,在帧率为60Hz的情况下,一帧图像的显示时间为1/60≈16.67毫秒,在分辨率为1920*1080的情况下,由于存在帧消隐和行消隐,实际像素点为2400*1200,则如图2所示的每行像素包的时间约为16.67/1200≈13.89us。受限于接口的性能以及相关协议,像素包的数据传输时间约为12微秒,则水平LPS约为1.8微秒,垂直LPS约为1.67毫秒。
可以看出,在帧率以及分辨率固定的情况下,数据包间的休眠时间是固定的,也就是说,帧内休眠时间是固定的,但是当帧率或者分辨率发生变化时,休眠时间也会随之改变,如上可述,垂直LPS和水平LPS均会随之改变,此时垂直LPS和水平LPS可根据帧率、分辨率、数据包长度、接口的性能以及相关协议等来共同确定。
为了能够降低相机接口23所消耗的功率(以下简称功耗),可在如上所述没有数据包传输的时间段内使相机接口23、通信链路和/或接收端接口(例如,显示接口)进入LPS。并在需要传输数据包的时间段内使相机接口23进入HS数据传输模式。
需要说明的是,本申请实施例描述的上述应用场景是为了更加清楚的说明本申请实施例的技术方案,并不构成对于本申请实施例提供的技术方案的限定,本领域普通技术人员可知,针对其他相似的或新的应用场景的出现,本申请实施例提供的技术方案对于类似的技术问题,同样适用。
图3A示出相关技术中的数据传输系统切换数据传输模式的示图。所述数据传输系统可包括发送端接口310、数据链路320和接收端接口330。所述发送端接口310可指示发送数据包的接口,接收端接口330可指示从发送端接口接收数据包的接口,通信链路320可指示将发送端接口310发送的数据包传输至接收端接口的数据传输通道,该通信链路320可以是无线形式也可以是有线形式实现的。
在一种可能的实现方式中,所述发送端接口310与接收端接口330可指示同一设备内的组件,此处提及的组件可以是芯片的形式,也可以是器件的形式,对此本申请不做限制。举例来说,所述发送端接口310与接收端接口330可均位于在如图1中的终端设备100内的接口,例如,A/V接口、外设接口或者是I/O接口,在此场景下,数据链路320可指示如图1中的数据总线。
此外,所述发送端接口310与接收端接口还可指示不在同一设备内的组件,例如,在发送端接口310可以是在如图1中的终端设备100内的接口的情况下,所述接收端接口320可位于所述终端设备100的外部接口设备内,例如,所述外部接口设备可包括外接显示设备、外接相机设备等,在此场景下,通信链路320可使用线缆、光纤或其它通信信道来实现。
在该示例中,所述发送端接口310与接收端接口320是终端设备100内的C/D-PHY高速接口。为了能够保证C/D-PHY高速接口能够切换不同数据传输模式,所述接口可采用如图3A所述的操作。
如图3A所示,在没有数据包传输期间,发送端接口310、通信链路320与接收端接口330均处于休眠模式。经过一段时间后,发送端接口310需要利用通信链路320向接收端接口330发送数据包,则发送端接口310、通信链路320与接收端接口330需要结束休眠模式,并启动高速数据传输模式来发送数据包。也就是说,发送端接口310的数据传输模式需要从休眠模式切换至高速数据传输模式,相应地,通信链路320与接收端接口330也需要相应地切换数据传输模式。
在此场景下,在相关技术中发送端接口310可利用通信链路320向接收端接口330发送高速模式起始序列(start-of-transmission,SoT)301。
通信链路320和接收端接口330在接收到SoT 301后,可结束休眠模式。具体来说,通信链路320在接收到SoT 301后,可通过改变通信链路中某些电路的端点连接关系来启动高速数据传输模式,例如,通信链路320为了启动高速数据传输模式,可将某些电路从高阻状态切换至50欧姆的端连状态。此外,接收端接口320可开启接收端接口320内的高速传输数据的相关模块,例如,时钟数据恢复模块(CDR)、逻辑 控制模块、数据解析模块、K码检测模块、串并检测模块、扰码检测模块、展频模块等。也就是说,在发送端接口310发送SoT一段时间后,通信链路320与接收端接口330均已准备好执行高速数据传输模式,则发送端接口310可在高速数据传输模式下利用通信链路320向接收端接口330发送数据包。
持续一段时间后,发送端接口310已完成向接收端接口330发送数据包,也就是说,发送端接口310不向接收端接口330发送数据包。在此情况下,发送端接口310可在完成数据包的发送操作后利用通信链路320向接收端接口330发送高速模式结束传输序列(end-to-transmission,EoT)302使得通信链路320和接收端接口330进入休眠模式。在休眠模式中,发送端接口310和接收端接口330可关闭用于高速传输数据的相关模块,但是发送端接口和通信链路均需要准备生成和接收SoT,因此需要保留发送端接口内的部分电路。
如图3B所示,发送端接口可采用固定状态的移位寄存器输出电路作为该部分电路,以生成和发送SoT,其中,a 0,a 1直至a n可指示各个移位寄存器的值,例如,在EoT为110的情况下,可将a 2设置为1,a 1设置为1,a 0设置为0。
为了更清楚地理解图3A和图3B的技术方案,以下将参照图4描述各个接口和通信链路在切换数据传输模式期间的变化。为了便于描述,在图4中的实施例中,发送端接口在处于低功耗数据传输模式的情况下需要发送数据。因此,发送端接口将从低功耗数据传输模式切换至高速数据传输模式。
如图4所示,发送端接口在没有数据包传输的情况下,处于低功耗数据传输模式。在该模式下,发送端接口和接收端接口中用于高速传输数据的相关模块均已被关闭,并且通信链路也处于停止状态中。
在发送端接口需要传输数据的情况下,发送端接口将结束低功耗数据传输模式,并进入高速数据传输模式。具体来说,发送端接口可在发送数据包前先发送SoT。通信链路在接收到该SoT后结束停止状态410,并进入高速请求状态420,持续时间段T1后,通信链路进入桥接状态430,也就是如上所述的通信链路已改变了某些电路的端点连接关系。在时间段T2内,接收端接口在检测到通信链路的桥接状态430并启动用于高速传输数据的相关模块。因此,在经过时间段T2后,发送端接口和接收端接口可达到两端高速状态同步440,也就是说,通信链路的桥接状态430的一段时间T2后,发送数据和接收数据的两端均已进入高速数据传输模式。所述发送端接口、通信链路以及接收端接口的数据传输模式从低功耗数据传输模式切换至高速数据传输模式。
在完成数据传输后,发送端接口可发送EoT,使得通信链路进入停止状态410。在实施中,所述通信链路可通过检测到差分信号切换450后进入停止状态410。具体来说,所述通信链路在传输最后一个数据包后传输EOT,因此,通信链路可检测到所传输的数据格式有变化,即,差分信号的数据包格式变为移位寄存器的指令格式,也就是说,所述通信链路检测到差分信号切换450,经过一段时间后,通信链路可解析出EOT指令,则所述通信链路可进入停止状态410,此处提及的一段时间可指示预留出所述通信链路解析出EOT的时间,该时间在纳秒级别,与通信链路的数据传输速率、接收端的解析能力相关。接收端接口在接收到通信链路退出高速数据传输模式后,可进入低功耗状态。在低功耗状态中,所述接收端接口可关闭用于高速传输数据的相关 模块。
可以看出,在相关技术采用特定的高速传输启动指令与高速传输结束指令来通知数据链路以及接收端接口进入不同的数据传输模式。这些指令具有一定长度因此可能会出错。此外,在接收到这些指令后,通信链路和接收端接口均需要时间启动并运行相关电路或模块,也就是说,通信链路和接收端接口需要额外的启动/准备时间。此外,即使在低功耗数据传输模式(例如,休眠模式)下,通信链路仍然需要保留部分电路来接收高速数据传输模式起始序列,限制了通信链路进一步降低功耗的可能性。
图5A示出了根据本申请实施例提供一种确定数据传输模式的方法的步骤流程图。为了便于描述,在该实施例中,发送端接口51、通信链路52和接收端接口53具有低功耗数据传输模式和高速数据传输模式两种模式。为了便于描述,所述发送端接口51与接收端接口53是终端设备100内的相机接口,该相机接口为C/D-PHY高速接口。
在实施中,用户可通过触发终端设备100内的相关控件来启动发送端接口51,例如,用户可点击显示终端设备100上的相机图标,终端设备100可在检测到用户点击后,调用内核层来启动相机接口和A/V接口,该相机接口可作为发送端接口51,显示相机接口51拍摄的图像的A/V接口可作为接收端接口53。
在步骤S510,发送端接口51启动高速数据传输模式,并且在步骤S520,接收端接口53启动高速数据传输模式,其中,在该高速数据传输模式下,数据传输速率快(通常在80Mbps到1Gbps)、功耗大并且信号幅值小(通常在100mv到300mv)。
在一种可能的实现方式中,所述发送端接口51和接收端接口53可被默认设置为被启动后,启动高速数据传输模式。作为另一种可能的实现方式,终端设备100可利用另外的数据接口向所述发送端接口51和接收端接口53发送用于启动高速数据传输模式的启动指令。所述发送端接口51与所述接收端接口53可在接收到该指令后,启动高速数据传输模式。
为了保证所述发送端接口51、接收端接口53以及通信链路52已准备好执行高速数据传输模式,所述发送端接口51可在被启动一段时间(例如,3微秒)后传输数据包。以下将参照图5A具体描述发送端接口51开始发送数据包后执行的操作。
如图5A所示,发送端接口51可在启动高速数据传输模式后,在步骤S530,经由通信链路52向接收端接口53发送数据包。在发送端接口51在高速数据传输模式下发送数据包的情况下,发送端设备51还要确定发送端接口51是否执行休眠模式。
具体来说,在分辨率固定以及帧率固定的情况下,每帧内传输的数据包的数量以及传输数据包后的休眠时间是基本固定的,因此,发送端接口51可预先确定休眠时间。基于此,发送端接口51可确定将要执行休眠模式的初始休眠时间段(low power duration,LPD),所述初始休眠时间段也可被称作初始时间段。也就是说,发送端接口51可执行步骤S5110,确定执行休眠模式的初始LPD。结合图2的实施例可知,发送端接口51可将水平LPS对应的时间段设置为初始LPD,又或者可将垂直LPS对应的时间段设置为初始LPD。应注意,由于终端设备内的帧率或者分辨率可能随之变化,因此,水平LPS与垂直LPS对应的时间段也会相应地改变,在这种情况下,发送端接口51确定的初始LPD也会随之改变。
在步骤S5220,发送端接口51比较初始LPD与通信链路唤醒时间的大小。通信链路唤醒时间指示终端设备内部固有的链路唤醒时间,是唤醒链路所需要的时间,这与终端设备的电路设计和唤醒逻辑有关,在终端设备出厂时已确定且无法随意更改的。也就是说,通信链路唤醒时间是确定的,在实施中,该值可被存储在发送端接口的相关存储器(例如,寄存器中)中。
因此,为了保证通信链路有足够的时间切换至高速数据传输模式,则需要预留该时间段。因此,发送端接口在确定初始LPD后,可比较初始LPD与通信链路唤醒时间的大小。若初始LPD小于通信链路唤醒时间,也就是说,让通信链路52和接收端接口53进入休眠模式的时间尚不足以唤醒通信链路,则所述发送端接口不执行休眠模式,也就是说,发送端接口51不执行额外地操作,继续保持在高速数据传输模式中。举例来说,由于水平LPS小于通信链路唤醒时间,则发送端接口可继续保持在高速数据传输模式中。
若在步骤S5120中确定初始LPD大于通信链路唤醒时间,则发送端接口51确定执行数据传输模式的切换,对此,发送端接口51可执行步骤S530。举例来说,由于垂直LPS大于通信链路唤醒时间,则发送端接口51可执行步骤S530。
在步骤S5130,利用初始LPD和链路唤醒时间,确定执行休眠模式的目标LPD,所述目标LPD也可被称作目标时间段。在实施中,为了能够确保通信链路52改变端连关系进入高速数据传输模式以及接收端接口53及时启动高速数据传输模式下的相关电路,可将目标LPD确定为初始休眠时间段减去链路唤醒时间。此外,为了留出足够的时间进行通信链路唤醒,该目标LPD可适当缩短。也就是说,目标LPD可被设置为不长于初始LPD减去链路唤醒时间的剩余时间段。在步骤S5130中已确定目标LPD的情况下,发送端接口51需要将该目标LPD发送给接收端接口53。
在一种可能的实现方式中,所述接收端接口53可在获取到初始LPD和链路唤醒时间后,执行步骤S5110至步骤S5130,也就是说,由所述接收端接口53来确定目标LPD。在此情况下,所述接收端接口53可根据帧率和分辨率等确定初始LPD以及链路唤醒时间,随后执行步骤S5110至步骤S5130。
在由发送端接口51确定目标LPD的情况下,发送端接口51可利用数据包将该目标LPD发送给接收端接口,如图5B所示。
图5B示出根据本申请的实施例的利用数据包传输目标LPD的示图。在该示图中,发送端接口51可采用三种方案将目标LPD发送到接收端接口53。应注意,在步骤S530中发送的数据包均包括包头(pocket head,PH)、有效载荷(payload,PL)以及包尾(packet footer,PF),其中,PH可包括与该数据包的传输相关的信息,例如,数据类型、数据长度等信息,PL为传输的数据(例如,如上提及的像素数据包内的像素信息),PF可包括校验信息和结束信息。
利用数据包传输目标LPD的三种方案具体如下:
第一方案:在初始数据包(或称作第一个数据包)501内包括该目标LPD,该目标LPD可被放置在数据包中的任何部分(包头部分、有效载荷部分或包尾部分)。除第一个数据包501外的其它数据包则按照相关技术中的数据包格式传输数据(例如,传输像素数据)。所述第一个数据包501指示在步骤S530中从发送端接口51向接收 端接口53发送的数据包中的第一个数据包。
第二方案:高速数据传输模式下传输的数据包按照相关技术中的数据包格式传输数据,但是在该高速数据传输模式的最后一个数据包502内包括该目标LPD,该目标LPD可被放置在数据包中的任何部分(包头部分、有效载荷部分或包尾部分)。所述最后一个数据包502指示在步骤S530中从发送端接口51向接收端接口53发送的数据包中的最后一个数据包,在发送完这最后一个数据包530后,发送端接口51将从高速数据传输模式向休眠模式切换。
第三方案:在发送端接口51与接收端接口传输的数据包内均包括当前数据包后是否进入休眠模式的目标LPD,为了便于说明,图5B中的数据包503可指示在第三方案中传输的任一数据包。举例来说,若发送端接口51在发送当前数据包后还继续发送数据包,则当前数据包的目标LPD为0,直至最后一个数据包可包括具体的目标LPD(例如,5微秒),所述目标LPD可被放置在数据包中的任何部分(包头部分、有效载荷部分或包尾部分)。
以上三种方案提及的目标LPD可被放置在包头、有效载荷和包尾。在这其中,利用数据包的有效载荷存储数据(即,目标LPD)是相关领域常见的方式,在此将不再展开说明。
以下将结合图6针对利用包头传输目标LPD的方案进行详细描述,利用包尾传输目标LPD的方式与其相似,在此将不再展开。
在利用包头传输目标LPD的情况下,第一个数据包501、最后一个数据包502或者数据包503均可采用如图6中的数据包格式。也就是说,发送端接口51在执行高速数据传输模式传输数据包期间(例如,在执行步骤S5110至步骤S5130期间),第一个数据包501可采用如图6中的数据包,即包头中嵌入目标LPD,而其他数据包的包头并未嵌入目标LPD;或者最后一个数据包502可采用如图6中的数据包,即包头中嵌入目标LPD,而其他数据包的包头并未嵌入目标LPD;或者所有的数据包均采用如图6中的数据包,即包头中嵌入目标LPD。以下将结合图6对其进行具体描述,在此将不再赘述。
发送端接口51可在达到定时器的启动条件后,在步骤S540,发送端接口51可启动定时器,该定时器被定时为目标LPD。所述启动条件可指示所述发送端接口51从高速数据传输模式向休眠模式切换的切换条件。
在一种可能的实现方式中,所述启动条件包括数据包的数量。具体来说,在分辨率固定以及帧率固定的情况下,发送端接口51可确定高速数据传输模式传输的数据量(例如,数据包的数量),因此,可在已传输一定数量的数据包后启动定时器。特别是针对第一个数据包501内包括目标LPD的方案,发送端接口51可在发送利用分辨率和帧率确定的数量的数据包后启动定时器。在另一种可能的实现方式中,所述启动条件可包括发送完最后一个数据包,该最后一个数据包后发送端接口51开始向休眠模式切换,因此,可启动定时器。
在步骤S550,所述接收端接口53启动定时器,该定时器被定时为目标LPD。在实施中,所述接收端接口53可在接收到最后一个数据包后启动定时器。所述启动条件可指示所述接收端接口53从高速数据传输模式向休眠模式切换的切换条件。
在采用第一个数据包发送目标LPD的情况下,所述接收端接口53可利用最后一个数据包内的终止标志位确定最后一个数据包。此外,在一种可能的实现方式中,所述启动条件包括数据包的数量。所述接收端接口53可确定在高速数据传输模式下传输的数据包的数量并根据数量确定最后一个数据包。最后,接收端接口53可在接收到最后一个数据包后启动定时器。
作为一种可选的实施方式,在采用第一个数据包发送目标LPD的情况下,发送端接口51与接收端接口53还可将在发送第一个数据包后,启动定时器,此时发送端接口51与接收端接口53的定时器的定时时间被设置为执行高速数据传输模式的时间与目标LPD的时间和。
此外,在另一种可能的实现方式中,所述启动条件可包括发送完最后一个数据包。在采用最后一个数据包502发送目标LPD的情况下,发送端接口51可在发送最后一个数据包502后,执行步骤S540,启动定时器,此外,接收端接口53可在接收到最后一个数据包502后,执行步骤S550,启动定时器。在实施中,发送端接口51与接收端接口53内的各个定时器均被定时为目标LPD。
在采用以上提及的第三方案的情况下,发送端接口51可在发送最后一个数据包后执行步骤S540,启动定时器。发送端接口51在将最后一个数据包发送到接收端接口53后,接收端接口53可执行步骤S550,启动定时器。在实施中,发送端接口51与接收端接口53内的各个定时器均被定时为目标LPD。
在步骤S560,发送端接口51可计算定时器是否达到定时时间,并在定时器达到定时时间后,启动发送端接口51中的高速传输数据的相关模块,以进入高速数据传输模式。
此外,在步骤S570,接收端接口53可计算定时器是否达到定时时间,并在定时器达到定时时间后,启动接收端接口51中的高速传输数据的相关模块,以进入高速数据传输模式。
综上可述,本申请实施例提供一种确定数据传输模式的方法,在该方法中,发送端接口在确定目标休眠时间段后,可将该目标休眠时间段通过数据包发送给接收端接口,无需采用长序列来开启或结束数据传输模式,避免了长序列的出错率。更进一步地,所述方法在发送端接口和接收端接口发送内设置定时器和定时时间,这样有助于发送端接口、通信链路以及接收端接口能够提前完成高速数据传输的准备工作,有效的节省了序列传输时接收端进入高速出传输模式所需的准备时间,实现快速退出休眠模式,提高传输效率。
图6中给出了本申请实施例的两种数据包600A和600B。所述数据包600A和数据包600B是发送端接口按照对应的协议层形成的数据包。在采用如图5B所示的三种方案中,发送端接口所发送的第一个数据包501、最后一个数据包502以及数据包503均采用数据包600A的数据包格式。
如图6所示,数据包600A或数据包600B均包括包头(pocket head,PH)610-1或者610-2、有效载荷(payload,PL)620以及包尾(packet footer,PF)630,其中,其中,PH 610-1或610-2可包括与该数据包的传输相关的信息,例如,数据类型、数 据长度等信息,PL为传输的数据(例如,如上提及的像素数据包内的像素数据),PF可包括校验信息和结束信息。
在数据包600A或600B中,PH 610-1或PH 610-2可包括多个数据位(bit),这些数据位是用于指示不同内容的标志位。在PH 610-1中:
数据位601可以是用于指示与本申请实施例的数据传输模式无关的其它功能的标志位,例如,可指示数据类型的标志位、可指示虚拟通道的标志位、可指示数据长度的标志位、可指示校验信息的标志位或者可指示同步的标志位,在实施例中,该数据位601可被分配一位数据位。
数据位62可用于指示目标LPD的标志位。
针对以上提及的三种方案:
针对第一方案,发送端接口可将第一个数据包501的包头中的数据位62设置为目标LPD,而其他数据包的包头中不包括用于指示目标LPD的标志位。例如,数据位62被设置为25,指示发送端接口的休眠时间段为25微秒。
针对第二方案,发送端接口可将最后一个数据包503的包头中的数据位62设置为目标LPD,而其他数据包的包头中不包括用于指示目标LPD的标志位。例如,数据位62被设置为25,指示发送端接口的休眠时间段为25微秒。
针对第三方案,发送端接口所发送的每个数据包的包头均包括数据位62。在此情况下,发动端接口可根据在发送当前数据包后是否进入休眠模式,设置每个数据包的包头中的数据位62。举例来说,若发送端接口在发送当前数据包后不进入休眠模式,即,休眠时间段为0,则当前数据包的数据位62可被设置为“0”。若发送端接口在发送当前数据包后进入休眠模式,则将数据位62被设置为进入休眠模式的目标LPD,例如,可将数据位62直接设置为25,指示发送端接口的休眠时间段为25微秒。
数据位604的作用与数据位601类似,也是用于指示与本申请实施例的数据传输模式无关的其它功能的标志位,在实施例中,该数据位601可被分配两位数据位。
数据位605是用于指示对PH 610-1进行校验后的校验信息的标志位。也就是说,包括数据位62的PH 610-1被校验后,获取校验信息,然后利用该校验信息设置数据位605。作为示例,所述校验信息可以是通过奇偶校验(pariy)或者错误检查和纠正(error checking and correcting,ECC)获取的信息。
在采用ECC获取校验信息的示例中,所述接收端接口在接收到数据包600A后,对PH 610-1中的各个数据位执行ECC运算,计算出新的ECC结果,将新的ECC结果与605中的ECC结果进行异或运算,得到故障码,然后利用故障码确定传输过程中是否存在错误。作为示例,若PH 610-1具有64位数据,则可将数据位605设置为7个数据位,在这7个数据位中至少包括用于纠错的1个数据位以及进行错误检查的2个数据位。
综上可述,所述发送端接口可利用数据包的包头传输目标LPD,这样接收端接口在获取数据包的同时还可获知将要进入休眠传输模式的相关信息,从而不需要额外发送启动和结束的特定序列,这样发送端接口、接收端接口与通信链路无需保留用于发送和接收以上特定序列的电路,进一步降低了功耗。在此基础上,所述发送端接口和接收端接口均可复用数据包的包头中原有的检错纠错机制,保障了以上信息的准确度。
此外,针对数据包503,还可采用如数据包600B所示的数据包,也就是说,所述数据包503的包头中除了包括目标LPD外还包括指示休眠状态的信息,即数据包503的包头中包括休眠状态以及目标休眠时间段(即,目标LPD)。基于此,本申请实施例还提供数据包600B的数据包结构。该数据包600B与数据包600A的区别在于包头部分。因此,为了简明起见,在此将不再对相同的部分进行描述。如图6所示,在PH 610-2中,数据位62可被数据位602和数据位603替换。也就是说,在PH 610-2中包括:
数据位602是用于指示发送端接口是否进入低功耗状态(low power state,LPS)的状态标志位,在实施中,若发送端接口在发送数据包600B后进入低功耗传输模式,则该数据位602可被设置为“1”,若发送端接口在发送数据包600B后进入或保持高速数据传输模式,则该数据位602可被设置为“0”。
数据位603可指示进入低功耗状态的目标LPD的时间标志位,即,在图5A中提及的目标LPD。在数据位602被设置为“1”的情况下,数据位603被相应地设置为目标LPD(例如,15微秒)。在所述发送端接口不进入LPS或者继续执行高速数据传输模式的情况下(即,在数据位602被设置为“0”),则数据位603可被设置为“0”。
综上可述,所述发送端接口可在数据包的包头中设置有状态标志位(例如,数据位602)和时间标志位(例如,数据位603)并在将该数据包发送到发送端接口,这样发送端接口在获取数据包的同时还可获知将要进入休眠传输模式的相关信息。
从以上图5A和图5B的实施例可以看出,发送端接口可利用数据包该目标LPD发送给接收端接口。在执行以上实施例的情况下,可能会比较考验发送端接口的性能或者技术人员可能需要对发送端接口的性能进行调整以能够实现以上实施例,基于此,在休眠时间段(即,目标LPD)相对固定且实时性要求不高的场景中,根据本申请的示例性实施例的确定数据传输模式的方法可采用第一接口或者存储单元向发送端接口发送休眠时间段,减少了技术人员为使发送端接口实施本申请的实施例的方法做执行的操作并且可以合理利用已有接口,实现了接口的复用。
以下将结合图7描述发送端接口采用其它方式将该目标LPD发送至接收端接口的实施例。应注意,以下实施例适用于休眠时间段(即,目标LPD)相对固定且对于实时性要求不高的场景中。
以下将参照图7对利用第一接口73将目标LPD发送到接收端接口72的实施例进行描述。在此将参照图7进行详细描述。应注意,这些实施例中的数据包可采用标准协议的数据包格式。也就是说,该数据包的各个部分(例如包头、包尾或者有效载荷)均不包括指示目标LPD的数据位。
在该实施例中,第一接口73可指示除发送端接口71和接收端接口72以外的数据接口,该数据接口可按照已有的协议层传输数据包或者指令。举例来说,第一接口73可包括内部整合电路(inter-integrated circuit,I2C)接口、串行外围接口(serial peripheral interface,SPI)接口等。
为了便于描述,在该实施例中,发送端接口71和接收端接口72具有低功耗数据 传输模式和高速数据传输模式两种模式。为了便于描述,所述发送端接口71与接收端接口73是终端设备100内的相机接口,该相机接口为C/D-PHY高速接口。
在实施中,用户可通过触发终端设备100内的相关控件来启动发送端接口71,例如,用户可点击显示终端设备100上的相机图标,终端设备100可在检测到用户点击后,调用内核层来启动相机接口和A/V接口,该相机接口可作为发送端接口71,显示相机接口71拍摄的图像的A/V接口可作为接收端接口73。
在步骤S710,发送端接口71启动高速数据传输模式,并且在步骤S720,接收端接口72启动高速数据传输模式
在一种可能的实现方式中,所述发送端接口71和接收端接口72可被默认设置为被启动后,启动高速数据传输模式。作为另一种可能的实现方式,终端设备100可利用另外的数据接口向所述发送端接口71和接收端接口72发送用于启动高速数据传输模式的启动指令。所述发送端接口71与所述接收端接口72可在接收到该指令后,启动高速数据传输模式。
随后,发送端接口可执行步骤S7110至步骤S7130,由于步骤S7110至步骤S7130与步骤S5110至步骤S5130相同,在此将不再赘述。
随后,发送端接口71可将确定的目标LPD发送到第一接口73中,并由第一接口发送到接收端接口72中,其中,目标LPD可以以指令或数据包的形式存在,本申请不做限制。在该实施例中,目标LPD是由发送端接口71确定并发送给第一接口73的。此外,第一接口73还可采用其他方式获取目标LPD,具体如下:
在一种可选的实现方式中,可由接口73本身确定目标LPD,并将该目标LPD发送到接收端接口72。以相机接口作为接收端接口为例,接口73可根据相机接口的帧率、分辨率以及链路唤醒时间,确定目标LPD。此外,在实施中,也可采用其它处理单元根据相机接口的帧率、分辨率以及链路唤醒时间来确定目标LPD,并将该目标LPD发送到接收端接口72。
在步骤S740,发送端接口71可启动定时器。在实施中,所述发送端接口71可确定启动定时器的启动时间点,然后在该启动时间点上启动定时器。
在分辨率固定以及帧率固定的情况下,发送端接口71可确定高速数据传输模式传输的数据量(例如,数据包的数量),因此,可在已传输一定数量的数据包后启动定时器。同样地,接收端接口72也可按照以上方式在步骤S750,启动定时器。
在步骤S760,发送端接口71可计算定时器是否达到定时时间,并在定时器达到定时时间后,启动发送端接口71中的高速传输数据的相关模块,以进入高速数据传输模式。
此外,在步骤S770,接收端接口72可计算定时器是否达到定时时间,并在定时器达到定时时间后,启动接收端接口72中的高速传输数据的相关模块,以进入高速数据传输模式。
从以上实施例中可以看出,在发送端接口71、第一接口73或者其它处理单元确定当前帧内的目标LPD后,将该目标LPD发送到接收端接口,以使接收端接口72可在下一帧内执行相应的休眠模式。因此,以上实施例在当前帧内利用第一接口73将休眠信息(即,目标LPD)发送给接收端接口后在下一帧内才实现休眠模式,存在延迟 情况。因此,图7中示出的实施例适用于休眠时间段(即,目标LPD)相对固定且对于实时性要求不高的场景中。
以上已经参照图7对利用第一接口向发送端接口发送目标LPD的实施例进行了描述,在一种可能的实现方式中,所述发送端接口还可利用存储单元(例如,寄存器)存储所述LPD,然后向发送端接口发送该存储单元的存储地址。这样,接收端接口可利用该存储地址读取存储单元内存储的目标LPD。同样地,该实现方式适用于休眠时间段(即,目标LPD)相对固定且对于实时性要求不高的场景中。
在这些场景中,接收端接口可在被启动后直接从第一接口73或者存储单元内获取目标LPD,并在下一帧内实现数据传输两端(发送端接口和接收端接口)在数据传输模式的同步。
综上可述,在休眠时间段(即,目标LPD)相对固定且对于实时性要求不高的场景中,根据本申请的示例性实施例的确定数据传输模式的方法可利用第一接口或者存储单元向发送端接口发送休眠时间段(即,LPD),减少了技术人员为使发送端接口实施本申请的实施例的方法做执行的操作并且可以合理利用已有接口,实现了接口的复用。
为了更直观地理解本申请的实施例,将在引入时间轴的情况进行描述。图8示出了根据本申请的实施例的发送端接口和接收端接口利用数据包从高速数据传输模式切换至休眠模式的示图。在该实施例中,发送端接口可采用数据包600A的格式向接收端接口发送数据包,在该数据包的包头中可包括LPS和LPD。
在该实施例中,发送端接口与接收端接口被启动后,可先采用高速数据传输模式进行数据传输,直至发送端接口发送数据包N后,此处的N可指示在数据传输过程中的最后一个数据包,即,发送端接口在发送完数据包N后将进入休眠模式。发送端接口与接收端接口可根据该数据包中的包头部分,确定将要休眠的目标LPD。发送端接口、通信链路以及接收端接口将在经过目标LPD后,准备进入高速数据传输模式,并在经过通信链路唤醒时间后,进入高速数据传输模式。
参照图8,在时间点t 1之前,发送端接口、通信终端与接收端接口均执行高速数据传输模式。在时间点t 1,发送端接口在发送完数据包N后,启动其内部的定时器,而发送端接口在接收到数据包N后,启动其内部的定时器,以上定时器的定时时间为时间点t1至时间点t2的时间段(即,图中的目标LPD)。也就是说,在时间点t 1至时间点t 2的时间段,发送端接口、通信终端与接收端接口均执行休眠模式。然后,发送端接口与接收端接口的定时器在经过目标LPD后,到达定时时间。则发送端接口、接收端接口与通信链路进入唤醒时间,也就是说,在时间点t 2至时间点t 3的时间段(即,图中的LW)可作为发送端接口、通信终端与接收端接口执行高速数据传输模式的唤醒时间。由于发送端接口与接收端接口需要启动与高速传输数据的相关模块的启动时间小于唤醒通信链路的唤醒时间,因此,预留出唤醒时间即可。在时间点t 3之后,发送端接口、通信终端与接收端接口可执行高速数据传输模式。
综上可述,时间点t 1指示定时器开启的时间点。该定时器是用于对休眠时间段进行计时的单元。在实施中,发送端接口与接收端接口均具有定时器。发送端接口可在 发送数据包N后启动定时器,接收端接口可在接收到该数据包N后启动定时器。数据包N与数据包N+1之间的时间段(初始LPD)指示需要休眠的休眠时间段。t 2指示通信链路唤醒时刻。t 3指示发送端接口、通信链路以及接收端接口可执行高速数据传输模式。
在可选实施例中,发送端接口可确定初始LPD是否大于通信链路唤醒时间LW。若初始LPD小于通信链路唤醒时间LW,也就是说,让接收端接口进入休眠模式的时间尚不足以唤醒通信链路,则所述发送端接口不执行休眠模式。
在确定初始LPD大于通信链路唤醒时间LW的情况下,发送端接口可确定目标LPD(例如t 1-t 2之间的时间段),并将定时器的定时时间设定为目标LPD,并利用数据包N将该时间段LPD提供给接收端接口。在实施中,所述发送端接口在发送数据包N后(在时间点t 1)进入休眠模式。接收端接口可在接收到数据包N后,启动定时器,并将定时器的定时时间设置为目标LPD。
在经过目标LPD后,发送端接口、通信链路、接收端接口在在通信链路唤醒时间LW内唤醒和/或启动用于高速传输数据的电路。最后,在时间点t 3发送端接口可采用高速数据传输模式传输数据包N+1。
结合以上实施例,将参照图9和图10分别从发送端接口与接收端接口的角度上描述确定数据传输模式的方法的实施例
图9所示出的确定数据传输模式的方法是由发送端接口执行的,所述方法包括以下步骤:
在步骤S910,在第一数据传输模式下利用通信链路向接收端端接口发送数据包。该步骤可对应于图5A中的步骤S510和步骤S530,对此将不再赘述。
在步骤S920,在满足切换条件时,开始向第二数据传输模式切换。该步骤对应于图5A中步骤S540的启动条件,对此将不再赘述。
在步骤S930,在切换至所述第二数据传输模式达到目标时间段后,开始向所述第一数据传输模式切换,其中,所述第一数据传输模式的数据传输速度高于所述第二数据传输模式的数据传输速度。所述目标时间段可指示以上提及的目标LPD,并且该步骤的示例对应于图5A中的步骤S540和步骤S560,对此将不再赘述。
在一种可能的实现方式中,所述数据包中的第一个数据包或者最后一个数据包内包括所述目标时间段;或者,所述数据包中的每个数据包包括模式信息,所述模式信息表示当前数据包后是否开始向第二数据传输模式切换,在所述模式信息表示当前数据包后开始向第二数据传输模式切换时,所述模式信息包括所述目标时间段。以上提及的第一个数据包、最后一个数据包以及每个数据包的方案的示例已参照图5B进行了详细描述,在此将不再赘述。此外,每个数据包中所包括的模式信息可指示图6的数据包600A中的数据位62,还可指示图6的数据包600B中的数据位602和数据位603。
在一种可能的实现方式中,所述方法还包括:将所述目标时间段利用第一接口发送到所述接收端接口,其中,第一接口不同于所述发送端接口与所述接收端接口。所述第一接口可指示图7中的第一接口73,该实施例已参照图7进行了详细描述,对此 将不再赘述。
在一种可能的实现方式中,所述方法还包括:确定切换至所述第二数据传输模式后持续的初始时间段;判断所述初始时间段是否长于链路唤醒时间,其中,所述链路唤醒时间指示唤醒所述通信链路的时间;在所述初始时间段长于所述链路唤醒时间的情况下,利用所述初始时间段和所述链路唤醒时间确定所述目标时间段。所述初始时间段可对应于图5A中的初始休眠时间段,在此基础上,该实施例可对应于图5A中的步骤S5110至步骤S5130或者图7中的步骤S7110至步骤S7130,对此将不再赘述。
在一种可能的实现方式中,所述目标时间段不长于所述初始时间段减去所述链路唤醒时间后的剩余时间段。在所述初始时间段对应于初始休眠时间段,目标时间段对应于目标LPD的情况下,利用初始时间段和链路唤醒时间确定目标时间段的实施例已参照图5A进行了详细描述,在此将不再赘述。
在一种可能的实现方式中,所述切换条件包括所述数据包的数量达到预设数量、或所述模式信息表示当前数据包后开始向第二数据传输模式切换。在以上参照图5A的步骤S540发送端接口51启动定时器的启动条件时已经对该切换条件的示例进行了描述,对此将不再赘述。
在一种可能的实现方式中,所述第一数据传输模式包括高速数据传输模式,所述第二数据传输模式包括休眠模式,所述高速数据传输模式的传输速率高于所述休眠模式的传输速率。以上以参照第一数据传输模式为高速数据传输模式并第二数据传输模式为休眠模式的设定下,对图5A、图7和图8的实施例进行了描述,在此将不再赘述。
图10所示出的确定数据传输模式的方法是由接收端端接口执行的,所述方法包括以下步骤:
在步骤S1010,在第一数据传输模式下利用通信链路从发送端端接口接收数据包,该步骤对应于图5A中的步骤S520和步骤S530。
在步骤S1020,在满足切换条件时,开始向第二数据传输模式切换,该步骤对应于图5A中步骤S550的启动条件,对此将不再赘述。
在步骤S1030,在切换至所述第二数据传输模式达到目标时间段后,开始向所述第一数据传输模式切换,其中,所述第一数据传输模式的数据传输速度高于所述第二数据传输模式的数据传输速度。所述目标时间段可指示以上提及的目标LPD,并且该步骤的示例对应于图5A中的步骤S550和步骤S570,对此将不再赘述。
在一种可能的实现方式中,所述数据包中的第一个数据包或者最后一个数据包内包括所述目标时间段;或者,所述数据包中的每个数据包包括模式信息,所述模式信息表示当前数据包后是否开始向第二数据传输模式切换,在所述模式信息表示当前数据包后开始向第二数据传输模式切换时,所述模式信息包括所述目标时间段。以上提及的第一个数据包、最后一个数据包以及每个数据包的方案的示例已参照图5B进行了详细描述,在此将不再赘述。此外,每个数据包中所包括的模式信息可指示图6的数据包600A中的数据位62,还可指示图6的数据包600B中的数据位602和数据位603。
在一种可能的实现方式中,所述数据包是接收端接口从所述发送端接口接收的;所述方法还包括:利用第一接口获取所述目标时间段,其中,所述第一接口不同于所 述发送端接口和所述接收端接口。所述第一接口可指示图7中的第一接口73,该实施例已参照图7进行了详细描述,对此将不再赘述。
在一种可能的实现方式中,所述方法还包括:确定切换至所述第二数据传输模式后持续的初始时间段;判断所述初始时间段是否长于链路唤醒时间,其中,所述链路唤醒时间指示唤醒所述通信链路的时间;在所述初始时间段长于所述链路唤醒时间的情况下,利用所述初始时间段和所述链路唤醒时间确定所述目标时间段。所述初始时间段可对应于图5A中的初始休眠时间段,在此基础上,该实施例可对应于图5A中的步骤S5110至步骤S5130或者图7中的步骤S7110至步骤S7130,对此将不再赘述。
在一种可能的实现方式中,所述目标时间段不长于所述初始时间段减去所述链路唤醒时间后的剩余时间段。在所述初始时间段对应于初始休眠时间段,目标时间段对应于目标LPD的情况下,利用初始时间段和链路唤醒时间确定目标时间段的实施例已参照图5A进行了详细描述,在此将不再赘述。
在一种可能的实现方式中,所述切换条件包括所述数据包的数量达到预设数量、或所述模式信息表示当前数据包后开始向第二数据传输模式切换。在以上参照图5A的步骤S550接收端接口53执行启动定时器的启动条件时已经对该切换条件的示例进行了描述,对此将不再赘述。
在一种可能的实现方式中,所述第一数据传输模式包括高速数据传输模式,所述第二数据传输模式包括休眠模式,所述高速数据传输模式的传输速率高于所述休眠模式的传输速率。
在一种可能的实现方式中,所述第一数据传输模式包括高速数据传输模式,所述第二数据传输模式包括休眠模式,所述高速数据传输模式的传输速率高于所述休眠模式的传输速率。以上以参照第一数据传输模式为高速数据传输模式并第二数据传输模式为休眠模式的设定下,对图5A、图7和图8的实施例进行了描述,在此将不再赘述。
此外,本申请实施例还可提供一种数据传输系统,所述数据传输系统可包括执行图9中的方法的数据传输装置以及执行如图10中的方法的数据传输装置。
本申请的实施例提供了一种数据传输装置,包括:处理器以及用于存储处理器可执行指令的存储器;其中,所述处理器被配置为执行所述指令时实现上述方法。
本申请的实施例提供了一种非易失性计算机可读存储介质,其上存储有计算机程序指令,所述计算机程序指令被处理器执行时实现上述方法。
本申请的实施例提供了一种计算机程序产品,包括计算机可读代码,或者承载有计算机可读代码的非易失性计算机可读存储介质,当所述计算机可读代码在电子设备的处理器中运行时,所述电子设备中的处理器执行上述方法。
计算机可读存储介质可以是可以保持和存储由指令执行设备使用的指令的有形设备。计算机可读存储介质例如可以是――但不限于――电存储设备、磁存储设备、光存储设备、电磁存储设备、半导体存储设备或者上述的任意合适的组合。计算机可读存储介质的更具体的例子(非穷举的列表)包括:便携式计算机盘、硬盘、随机存取存储器(Random Access Memory,RAM)、只读存储器(Read Only Memory,ROM)、可擦式可编程只读存储器(Electrically Programmable Read-Only-Memory,EPROM或闪存)、静态随机存取存储器(Static Random-Access Memory,SRAM)、便携式压缩 盘只读存储器(Compact Disc Read-Only Memory,CD-ROM)、数字多功能盘(Digital Video Disc,DVD)、记忆棒、软盘、机械编码设备、例如其上存储有指令的打孔卡或凹槽内凸起结构、以及上述的任意合适的组合。
这里所描述的计算机可读程序指令或代码可以从计算机可读存储介质下载到各个计算/处理设备,或者通过网络、例如因特网、局域网、广域网和/或无线网下载到外部计算机或外部存储设备。网络可以包括铜传输电缆、光纤传输、无线传输、路由器、防火墙、交换机、网关计算机和/或边缘服务器。每个计算/处理设备中的网络适配卡或者网络接口从网络接收计算机可读程序指令,并转发该计算机可读程序指令,以供存储在各个计算/处理设备中的计算机可读存储介质中。
用于执行本申请操作的计算机程序指令可以是汇编指令、指令集架构(Instruction Set Architecture,ISA)指令、机器指令、机器相关指令、微代码、固件指令、状态设置数据、或者以一种或多种编程语言的任意组合编写的源代码或目标代码,所述编程语言包括面向对象的编程语言—诸如Smalltalk、C++等,以及常规的过程式编程语言—诸如“C”语言或类似的编程语言。计算机可读程序指令可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络—包括局域网(Local Area Network,LAN)或广域网(Wide Area Network,WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。在一些实施例中,通过利用计算机可读程序指令的状态信息来个性化定制电子电路,例如可编程逻辑电路、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或可编程逻辑阵列(Programmable Logic Array,PLA),该电子电路可以执行计算机可读程序指令,从而实现本申请的各个方面。
这里参照根据本申请实施例的方法、装置(系统)和计算机程序产品的流程图和/或框图描述了本申请的各个方面。应当理解,流程图和/或框图的每个方框以及流程图和/或框图中各方框的组合,都可以由计算机可读程序指令实现。
这些计算机可读程序指令可以提供给通用计算机、专用计算机或其它可编程数据处理装置的处理器,从而生产出一种机器,使得这些指令在通过计算机或其它可编程数据处理装置的处理器执行时,产生了实现流程图和/或框图中的一个或多个方框中规定的功能/动作的装置。也可以把这些计算机可读程序指令存储在计算机可读存储介质中,这些指令使得计算机、可编程数据处理装置和/或其他设备以特定方式工作,从而,存储有指令的计算机可读介质则包括一个制造品,其包括实现流程图和/或框图中的一个或多个方框中规定的功能/动作的各个方面的指令。
也可以把计算机可读程序指令加载到计算机、其它可编程数据处理装置、或其它设备上,使得在计算机、其它可编程数据处理装置或其它设备上执行一系列操作步骤,以产生计算机实现的过程,从而使得在计算机、其它可编程数据处理装置、或其它设备上执行的指令实现流程图和/或框图中的一个或多个方框中规定的功能/动作。
附图中的流程图和框图显示了根据本申请的多个实施例的装置、系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每 个方框可以代表一个模块、程序段或指令的一部分,所述模块、程序段或指令的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。
也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行相应的功能或动作的硬件(例如电路或ASIC(Application Specific Integrated Circuit,专用集成电路))来实现,或者可以用硬件和软件的组合,如固件等来实现。
尽管在此结合各实施例对本发明进行了描述,然而,在实施所要求保护的本发明过程中,本领域技术人员通过查看所述附图、公开内容、以及所附权利要求书,可理解并实现所述公开实施例的其它变化。在权利要求中,“包括”(comprising)一词不排除其他组成部分或步骤,“一”或“一个”不排除多个的情况。单个处理器或其它单元可以实现权利要求中列举的若干项功能。相互不同的从属权利要求中记载了某些措施,但这并不表示这些措施不能组合起来产生良好的效果。
以上已经描述了本申请的各实施例,上述说明是示例性的,并非穷尽性的,并且也不限于所披露的各实施例。在不偏离所说明的各实施例的范围和精神的情况下,对于本技术领域的普通技术人员来说许多修改和变更都是显而易见的。本文中所用术语的选择,旨在最好地解释各实施例的原理、实际应用或对市场中的技术的改进,或者使本技术领域的其它普通技术人员能理解本文披露的各实施例。

Claims (23)

  1. 一种确定数据传输模式的方法,其特征在于,包括:
    在第一数据传输模式下利用通信链路向接收端端接口发送数据包;
    在满足切换条件时,开始向第二数据传输模式切换;
    在切换至所述第二数据传输模式达到目标时间段后,开始向所述第一数据传输模式切换,
    其中,所述第一数据传输模式的数据传输速度高于所述第二数据传输模式的数据传输速度。
  2. 如权利要求1所述的方法,其特征在于,所述数据包中的第一个数据包或者最后一个数据包内包括所述目标时间段;或者,所述数据包中的每个数据包包括模式信息,所述模式信息表示当前数据包后是否开始向第二数据传输模式切换,在所述模式信息表示当前数据包后开始向第二数据传输模式切换时,所述模式信息包括所述目标时间段。
  3. 如权利要求1所述的方法,其特征在于,所述数据包是由发送端接口向所述接收端接口发送的;所述方法还包括:
    将所述目标时间段利用第一接口发送到所述接收端接口,其中,第一接口不同于所述发送端接口与所述接收端接口。
  4. 如权利要求1所述的方法,其特征在于,所述方法还包括:
    确定切换至所述第二数据传输模式后持续的初始时间段;
    判断所述初始时间段是否长于链路唤醒时间,其中,所述链路唤醒时间指示唤醒所述通信链路的时间;
    在所述初始时间段长于所述链路唤醒时间的情况下,利用所述初始时间段和所述链路唤醒时间确定所述目标时间段。
  5. 如权利要求4所述的方法,其特征在于,所述目标时间段不长于所述初始时间段减去所述链路唤醒时间后的剩余时间段。
  6. 如权利要求1至5中的任一项权利要求所述的方法,其特征在于,所述切换条件包括所述数据包的数量达到预设数量、或所述模式信息表示当前数据包后开始向第二数据传输模式切换。
  7. 如权利要求1至6中的任一权利要求所述的方法,其特征在于,所述第一数据 传输模式包括高速数据传输模式,所述第二数据传输模式包括休眠模式,所述高速数据传输模式的传输速率高于所述休眠模式的传输速率。
  8. 一种确定数据传输模式的方法,其特征在于,包括:
    在第一数据传输模式下利用通信链路从发送端端接口接收数据包;
    在满足切换条件时,开始向第二数据传输模式切换;
    在切换至所述第二数据传输模式达到目标时间段后,开始向所述第一数据传输模式切换,
    其中,所述第一数据传输模式的数据传输速度高于所述第二数据传输模式的数据传输速度。
  9. 如权利要求8所述的方法,其特征在于,所述数据包中的第一个数据包或者最后一个数据包内包括所述目标时间段;或者,所述数据包中的每个数据包包括模式信息,所述模式信息表示当前数据包后是否开始向第二数据传输模式切换,在所述模式信息表示当前数据包后开始向第二数据传输模式切换时,所述模式信息包括所述目标时间段。
  10. 如权利要求8所述的方法,其特征在于,所述数据包是接收端接口从所述发送端接口接收的;所述方法还包括:
    利用第一接口获取所述目标时间段,其中,所述第一接口不同于所述发送端接口和所述接收端接口。
  11. 如权利要求8所述的方法,其特征在于,所述方法还包括:
    确定切换至所述第二数据传输模式后持续的初始时间段;
    判断所述初始时间段是否长于链路唤醒时间,其中,所述链路唤醒时间指示唤醒所述通信链路的时间;
    在所述初始时间段长于所述链路唤醒时间的情况下,利用所述初始时间段和所述链路唤醒时间确定所述目标时间段。
  12. 如权利要求11所述的方法,其特征在于,所述目标时间段不长于所述初始时间段减去所述链路唤醒时间后的剩余时间段。
  13. 如权利要求8至12中的任一权利要求所述的方法,其特征在于,所述切换条件包括所述数据包的数量达到预设数量、或所述模式信息表示当前数据包后开始向第二数据传输模式切换。
  14. 如权利要求8至13中的任一权利要求所述的方法,其特征在于,所述第一数据传输模式包括高速数据传输模式,所述第二数据传输模式包括休眠模式,所述高速数据传输模式的传输速率高于所述休眠模式的传输速率。
  15. 一种数据传输装置,其特征在于,用于执行权利要求1-8任一项所述的方法。
  16. 一种数据传输装置,其特征在于,包括:处理器和存储器,所述处理器和所述存储器耦合,所述处理器用于执行权利要求1-8任一项所述的方法。
  17. 一种数据传输装置,其特征在于,包括:处理器和数据接口,其中,所述处理器利用所述数据接口执行权利要求1-8任一项所述的方法。
  18. 一种数据传输装置,其特征在于,用于执行权利要求8-14任一项所述的方法。
  19. 一种数据传输装置,其特征在于,包括:处理器和存储器,所述处理器和所述存储器耦合,所述处理器用于执行权利要求8-14任一项所述的方法。
  20. 一种数据传输装置,其特征在于,包括:处理器和数据接口,其中,所述处理器利用所述数据接口执行权利要求8-14任一项所述的方法。
  21. 一种数据传输系统,其特征在于,包括:权利要求15-17任一项所述的数据传输装置和权利要求18-20任一项所述的数据传输装置。
  22. 一种非易失性计算机可读存储介质,其上存储有计算机程序指令,其特征在于,所述计算机程序指令被处理器执行时实现权利要求1-7中任意一项所述的方法,或者实现权利要求8-14任意一项所述的方法。
  23. 一种计算机程序产品,其特征在于,当所述计算机程序产品在计算机上运行时,使得所述计算机执行时实现权利要求1至7中任一项所述的方法,或者实现权利要求8-14任意一项所述的方法。
PCT/CN2022/082026 2021-03-29 2022-03-21 确定数据传输模式的方法及其装置 WO2022206456A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
EP22778639.9A EP4307584A1 (en) 2021-03-29 2022-03-21 Method for determining data transmission mode and apparatus thereof

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110336351.X 2021-03-29
CN202110336351.XA CN115134043B (zh) 2021-03-29 2021-03-29 确定数据传输模式的方法及其装置

Publications (1)

Publication Number Publication Date
WO2022206456A1 true WO2022206456A1 (zh) 2022-10-06

Family

ID=83375736

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/082026 WO2022206456A1 (zh) 2021-03-29 2022-03-21 确定数据传输模式的方法及其装置

Country Status (3)

Country Link
EP (1) EP4307584A1 (zh)
CN (1) CN115134043B (zh)
WO (1) WO2022206456A1 (zh)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090279464A1 (en) * 2008-05-09 2009-11-12 Nokia Corporation Power save mechanism for wireless communication devices
CN101803260A (zh) * 2007-09-10 2010-08-11 诺基亚公司 基于数据前导码来改变硬件设置
US20100241880A1 (en) * 2009-03-17 2010-09-23 Aviad Wertheimer Negotiating a transmit wake time
CN106063336A (zh) * 2013-12-26 2016-10-26 萨热姆通信宽带简易股份有限公司 包括第一和第二桥接装置的传输系统
CN110798881A (zh) * 2019-11-01 2020-02-14 腾讯科技(深圳)有限公司 数据接收和发送方法、装置、计算机设备及存储介质
CN111162927A (zh) * 2018-11-08 2020-05-15 华为技术有限公司 一种以太网的通信方法、装置及设备

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9445365B2 (en) * 2013-01-14 2016-09-13 Apple Inc. Reducing power consumption in voice over LTE terminals using semi persistent scheduling in connected discontinuous reception mode
CN111918419B (zh) * 2020-07-24 2021-11-30 深圳市云洲创新科技有限公司 无线通信方法、装置、设备及存储介质

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101803260A (zh) * 2007-09-10 2010-08-11 诺基亚公司 基于数据前导码来改变硬件设置
US20090279464A1 (en) * 2008-05-09 2009-11-12 Nokia Corporation Power save mechanism for wireless communication devices
US20100241880A1 (en) * 2009-03-17 2010-09-23 Aviad Wertheimer Negotiating a transmit wake time
CN106063336A (zh) * 2013-12-26 2016-10-26 萨热姆通信宽带简易股份有限公司 包括第一和第二桥接装置的传输系统
CN111162927A (zh) * 2018-11-08 2020-05-15 华为技术有限公司 一种以太网的通信方法、装置及设备
CN110798881A (zh) * 2019-11-01 2020-02-14 腾讯科技(深圳)有限公司 数据接收和发送方法、装置、计算机设备及存储介质

Also Published As

Publication number Publication date
EP4307584A1 (en) 2024-01-17
CN115134043B (zh) 2024-05-10
CN115134043A (zh) 2022-09-30

Similar Documents

Publication Publication Date Title
US11561754B2 (en) Electronic device and method for displaying and transmitting images thereof
US9232125B2 (en) Method of eliminating a shutter-lag, camera module, and mobile device having the same
US20160037067A1 (en) Method for generating image and electronic device thereof
US20090153574A1 (en) Method and system for updating firmware
US10609276B2 (en) Electronic device and method for controlling operation of camera-related application based on memory status of the electronic device thereof
US10237318B2 (en) Electronic device and method for encoding image data thereof
GB2535592A (en) Image capturing apparatus, control method therefor, program, and storage medium
US20160381291A1 (en) Electronic device and method for controlling display of panorama image
US20180247143A1 (en) Electronic device and method for identifying sensor position by using pixels of display
JP2019533958A (ja) プロトコル・データ・ユニット(pdu)パケットを生成するための方法およびデバイス
CN108605373B (zh) 用于提供网络共享服务的方法和电子装置
WO2022068470A1 (zh) 一种显示控制方法、终端及存储介质
WO2022166765A1 (zh) 图像处理方法、移动终端及存储介质
US20170230586A1 (en) Information processing apparatus, information processing method, and program
JP2023549354A (ja) データ伝送方法及び電子デバイス
WO2023207761A1 (zh) 外设控制方法、电子设备及系统
CN104798065A (zh) 使能元数据存储子系统
US20160092750A1 (en) Method for recommending one or more images and electronic device thereof
WO2022206456A1 (zh) 确定数据传输模式的方法及其装置
WO2012116662A1 (zh) 主题设置方法及终端设备
TW201128581A (en) IP camera having an extension
US10451838B2 (en) Electronic device and method for autofocusing
US20200412972A1 (en) Sensor low power mode techniques
CN113498600A (zh) 一种基于PCIe的数据传输方法及装置
US8248960B2 (en) Data transmission with dynamic modulation scheme and/or transfer rate

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22778639

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2022778639

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 2022778639

Country of ref document: EP

Effective date: 20231013

NENP Non-entry into the national phase

Ref country code: DE