WO2021218239A1 - Transmission rate switching method and related apparatus - Google Patents

Transmission rate switching method and related apparatus Download PDF

Info

Publication number
WO2021218239A1
WO2021218239A1 PCT/CN2021/071154 CN2021071154W WO2021218239A1 WO 2021218239 A1 WO2021218239 A1 WO 2021218239A1 CN 2021071154 W CN2021071154 W CN 2021071154W WO 2021218239 A1 WO2021218239 A1 WO 2021218239A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
rate
packet
data packet
check
Prior art date
Application number
PCT/CN2021/071154
Other languages
French (fr)
Chinese (zh)
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 华为技术有限公司
Publication of WO2021218239A1 publication Critical patent/WO2021218239A1/en

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
    • 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/0009Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the channel coding
    • H04L1/0013Rate matching, e.g. puncturing or repetition of code symbols

Definitions

  • This application relates to the field of communication technologies, and in particular, to a transmission rate switching method and related devices.
  • MIPI mobile industry processor interface
  • the process of switching the transmission rate is often involved when using the physical layer (PHY) interface of MIPI to transmit data.
  • PHY physical layer
  • the transmitter of the processor is required to send a speed cut request to the receiver of the camera.
  • the processor After the receiver of the processor receives the feedback information fed back by the transmitter of the camera, the processor’s The transmitter switches the transmission rate. Further, the transmitter of the processor performs capability configuration and stops transmitting data. When the receiver of the camera detects that the transmitter of the processor stops transmitting data, the receiver of the camera performs rate switching. It can be seen that in the prior art, multiple interactions are required when switching the transmission rate, which results in a complicated negotiation process and low transmission rate switching efficiency.
  • This application provides a transmission rate switching method and related devices, which can simplify the negotiation process and improve the transmission rate switching efficiency.
  • a transmission rate switching method is provided, the method is applied to an electronic device, the electronic device includes a first electronic device and a second electronic device, and the method includes:
  • the second electronic device receives a first data packet sent by the first electronic device, where the first data packet is used to instruct the second electronic device to switch the transmission rate and the transmission rate after the switching is the first rate;
  • the first electronic device performs transmission rate switching according to the first rate, and the transmission rate of the first electronic device after switching is the first rate.
  • the first data packet includes first indication information, and the first indication information is used to indicate the first rate.
  • the use of the indication information to indicate the rate is implemented to prepare for the subsequent switching of the transmission rate of the second electronic device.
  • the first data packet further includes first forward link indication information and/or first backward link indication information, and the first data packet is also used to indicate the first forward link
  • the second electronic device performs forward link switching and/or backward link switching, and the switched forward link is the forward link indicated by the first forward link indication information, and the switched backward The link is the backward link indicated by the first backward link indication information.
  • the first data packet is further used to instruct the second electronic device to detect that no data is being transmitted on the backward link indicated by the first backward link indication information, Switch the transmission rate according to the first data packet; or,
  • the first data packet is also used to instruct the second electronic device to perform transmission according to the first data packet when detecting the end of data transmission on the backward link indicated by the first backward link indication information Rate switching.
  • the first data packet further includes check information and a first time window.
  • the method further includes :
  • the second electronic device When receiving N first check packets in the first check packet within the first time window, the second electronic device sends at least one check packet to the first electronic device at the first rate A second verification packet, wherein the second verification packet is sent by the second electronic device within the first time window and the second verification packet is the second electronic device according to the Determined by the verification information, the N is an integer greater than 1;
  • the first electronic device determines to use the first rate to send the second electronic device to the second electronic device.
  • the device transmits data.
  • the check packet and the first time window are used to verify the reliability of the data transmission after the speed is cut, and avoid the use of the switched rate when the data transmission is unreliable after the speed cut.
  • the second electronic device sends data.
  • the method further includes:
  • the first electronic device is using the second rate to send the signal to the second electronic device After sending the first data packet, sending the first check packet to the second electronic device again at the first rate;
  • the second electronic device again uses the first rate to send the signal to the first electronic device Sending the second check packet;
  • the first electronic device will perform the first electronic device on the first electronic device.
  • the first rate is switched to the third rate
  • the third rate is used to send a second data packet to the second electronic device
  • the second data packet is used to instruct the second electronic device to switch the transmission rate and after the switching
  • the transmission rate is the fourth rate
  • the transmission rate is switched according to the fourth rate
  • the transmission rate after the switching of the first electronic device is the fourth rate
  • the fourth rate is used to send to the second electronic device The first check packet until the first electronic device determines to use the fourth rate to transmit data to the second electronic device;
  • the second rate is the rate at which the first electronic device switches the transmission rate before the first rate, the second rate is less than the first rate, and the third rate is the first electronic device.
  • the original rate before switching to the first rate is used to send the first data packet to the second electronic device when the data transmission is unreliable after the speed is cut.
  • the rate negotiation failed.
  • the check packet is still not received within the second time window, that is, when the data transmission is still unreliable after the speed cut, the new data packet is transmitted at the lowest rate corresponding to the device, which provides a more flexible speed cut method .
  • a transmission rate switching device in a second aspect, includes a first electronic device and a second electronic device,
  • the second electronic device is configured to receive a first data packet sent by the first electronic device, and the first data packet is used to instruct the second electronic device to switch the transmission rate and the transmission rate after the switching is the first A rate
  • the first electronic device is configured to perform transmission rate switching according to the first rate, and the transmission rate of the first electronic device after switching is the first rate.
  • the first data packet includes first indication information, and the first indication information is used to indicate the first rate.
  • the first data packet further includes first forward link indication information and/or first backward link indication information, and the first data packet is also used to indicate the first forward link
  • the second electronic device performs forward link switching and/or backward link switching, and the switched forward link is the forward link indicated by the first forward link indication information, and the switched backward The link is the backward link indicated by the first backward link indication information.
  • the first data packet is further used to instruct the second electronic device to detect that no data is being transmitted on the backward link indicated by the first backward link indication information, Switch the transmission rate according to the first data packet; or,
  • the first data packet is also used to instruct the second electronic device to perform transmission according to the first data packet when detecting the end of data transmission on the backward link indicated by the first backward link indication information Rate switching.
  • the first data packet further includes verification information and a first time window
  • the first electronic device is further configured to send at least one first verification packet to the second electronic device at the first rate;
  • the second electronic device is further configured to use the first rate to send the data to the first electronic device.
  • the device sends at least one second verification packet, wherein the second verification packet is sent by the second electronic device within the first time window and the second verification packet is the second electronic device. Determined by the device according to the verification information, the N is an integer greater than 1;
  • the first electronic device is also used to determine to use the first rate to send the The second electronic device transmits data.
  • the first electronic device is further configured to send the second check packet to the second check packet at the second rate. After the second electronic device sends the first data packet, the first check packet is sent to the second electronic device again at the first rate;
  • the second electronic device is further configured to use the first rate to send to the The first electronic device sends the second verification packet;
  • the first electronic device is also used to switch the first rate
  • the third rate is used to send a second data packet to the second electronic device, where the second data packet is used to instruct the second electronic device to switch the transmission rate and the transmission rate after the switching is
  • the fourth rate is to perform transmission rate switching according to the fourth rate, the transmission rate of the first electronic device after switching is the fourth rate, and the fourth rate is used to send the first electronic device to the second electronic device. A check packet until the first electronic device determines to use the fourth rate to transmit data to the second electronic device;
  • the second rate is the rate at which the first electronic device switches the transmission rate before the first rate, the second rate is less than the first rate, and the third rate is the first electronic device.
  • a computer-readable storage medium is provided, and a computer program is stored in the computer-readable storage medium.
  • the computer program When the computer program is executed, the computer program described in the first aspect or any one of the first aspect method.
  • FIG. 1 is a schematic structural diagram of a transmission rate switching device provided by an embodiment of the application
  • FIG. 2 is a schematic flowchart of a method for switching a transmission rate according to an embodiment of the application
  • Figure 3 is a schematic diagram of a link provided by an embodiment of the application.
  • FIG. 4 is a schematic flowchart of yet another method for switching transmission rates according to an embodiment of the application.
  • FIG. 5 is a schematic flowchart of another transmission rate switching method provided by an embodiment of this application.
  • FIG. 6 is a schematic flowchart of another transmission rate switching method provided by an embodiment of the application.
  • the electronic device involved in the embodiments of the present application can be integrated with a processor and a camera, can also be integrated with a processor and a display screen, and can also be integrated with a processor, a camera, and a display screen.
  • the electronic device can also be integrated with other electronic devices.
  • the device is not restricted here.
  • the electronic device may be a mobile phone (or called a "cellular" phone), a computer with mobile user equipment, portable, pocket-sized, handheld, and a mobile device with a built-in computer, and so on.
  • the electronic device may also be a wearable device or a vehicle-mounted user equipment.
  • the vehicle-mounted user equipment is, for example, also referred to as an on-board unit (OBU), which is not limited in the embodiment of the present application.
  • the electronic device may also be a computer, a tablet computer, a notebook computer, a palmtop computer, and the like.
  • the first electronic device may be, for example, a processor
  • the second electronic device may be, for example, a camera or a display screen.
  • FIG. 1 is a schematic structural diagram of a transmission rate switching apparatus provided by an embodiment of the application.
  • the first electronic device includes a control module, a transmitter and a receiver
  • the second electronic device includes a control module, a transmitter and a receiver.
  • the control module of the first electronic device can transmit data through the transmitter of the first electronic device and the receiver of the second electronic device
  • the control module of the second electronic device can transmit data through the transmitter of the second electronic device and the receiver of the second electronic device.
  • Machine to transmit data can be used to transmit data.
  • the process of switching the transmission rate is often involved when using MIPI's physical layer interface to transmit data.
  • the transmitter of the processor is required to send a speed cut request to the receiver of the camera.
  • the processor After the receiver of the processor receives the feedback information fed back by the transmitter of the camera, the processor’s The transmitter switches the transmission rate. Further, the transmitter of the processor performs capability configuration and stops transmitting data. When the receiver of the camera detects that the transmitter of the processor stops transmitting data, the receiver of the camera performs rate switching. It can be seen that in the prior art, multiple interactions are required when switching the transmission rate, which results in a complicated negotiation process and low efficiency.
  • the present application provides a method for switching transmission rates.
  • the following describes the embodiments of the present application in detail.
  • FIG. 2 is a schematic flowchart of a method for switching a transmission rate according to an embodiment of the application. As shown in FIG. 2, the method is applied to an electronic device, and the electronic device includes a first electronic device and a second electronic device, and the method includes:
  • the second electronic device receives a first data packet sent by the first electronic device, where the first data packet is used to instruct the second electronic device to switch the transmission rate and the transmission rate after the switching is the first rate.
  • the first data packet may include first indication information, first forward link indication information, check information, and a first time window, and the first data packet may also include indication information, first backward link indication information, Check the information and the first time window.
  • the first data packet may also include first indication information, first forward link indication information, first backward link indication information, check information, and first time window.
  • the first indication information is used to indicate the first rate.
  • the first time window is determined according to the first rate. For example, the larger the first rate, the longer the first time window; the smaller the first rate, the shorter the first time window.
  • the first indication information is at least one first indication in the first data packet. Bits, when the value of at least one first bit in the first data packet is a first value, at least one first bit in the first data packet is used to indicate the first rate.
  • the first forward link indication information is at least one second bit in the first data packet, and the value of at least one second bit in the first data packet is at least one bit in the first data packet when the value is the second value The second bit is used to indicate the forward link indicated by the first forward link indication information.
  • the check information included in the first data packet is at least one third bit in the first data packet, and when the value of the at least one third bit in the first data packet is the third value, at least A third bit is used by the second electronic device to determine at least one second verification packet.
  • the first time window is at least one fourth bit in the first data packet, and when the value of at least one fourth bit in the first data packet is a fourth value, at least one fourth bit in the first data packet Used to indicate the first time window.
  • the first numerical value, the second numerical value, the third numerical value, and the fourth numerical value may be the same, or may be partly the same, or may be completely different.
  • the first data packet is also used to instruct the second electronic device to perform forward link switching, and the switched forward link is the forward link indicated by the first forward link indication information.
  • the first indication information is at least one first bit in the first data packet.
  • the value of at least one first bit in a data packet is a first value
  • at least one first bit in the first data packet is used to indicate the first rate.
  • the first backward link indication information is at least one second bit in the first data packet
  • the value of at least one second bit in the first data packet is at least one bit in the first data packet when the value is the second value
  • the second bit is used to indicate the backward link indicated by the first backward link indication information.
  • the check information included in the first data packet is at least one third bit in the first data packet, and when the value of the at least one third bit in the first data packet is the third value, at least A third bit is used by the second electronic device to determine the second verification packet.
  • the first time window is at least one fourth bit in the first data packet, and when the value of at least one fourth bit in the first data packet is a fourth value, at least one fourth bit in the first data packet Used to indicate the first time window.
  • the first numerical value, the second numerical value, the third numerical value, and the fourth numerical value may be the same, partly the same, or completely different.
  • the first data packet is also used to instruct the second electronic device to perform backward link switching, and the switched backward link is the backward link indicated by the first backward link indication information.
  • the first indication information is in the first data packet
  • the value of at least one first bit in the first data packet is the first value
  • the at least one first bit in the first data packet is used to indicate the first rate.
  • the first forward link indication information is at least one second bit in the first data packet
  • the value of at least one second bit in the first data packet is at least one bit in the first data packet when the value is the second value
  • the second bit is used to indicate the forward link indicated by the first forward link indication information.
  • the first backward link indication information is at least one third bit in the first data packet, and the value of at least one third bit in the first data packet is at least one bit in the first data packet when the value is the third value
  • the third bit is used to indicate the backward link indicated by the first backward link indication information.
  • the check information included in the first data packet is at least one fourth bit in the first data packet, and when the value of at least one fourth bit in the first data packet is the fourth value, at least one bit in the first data packet is A fourth bit is used to indicate that the second electronic device determines the second check packet.
  • the first time window is at least one fifth bit in the first data packet, and when the value of at least one fifth bit in the first data packet is the fifth value, at least one fifth bit in the first data packet Used to indicate the first time window.
  • the first numerical value, the second numerical value, the third numerical value, the fourth numerical value, and the fifth numerical value may be the same, or may be partly the same, or may be completely different.
  • the first data packet is also used to instruct the second electronic device to perform forward link switching and backward link switching, and the forward link after the switching is the forward link indicated by the first forward link indication information.
  • Link, the backward link after the handover is the backward link indicated by the first backward link indication information.
  • the first data packet when the first data packet includes the first backward link indication information, the first data packet is also used to instruct the second electronic device to detect the backward link indicated by the first backward link indication information. When no data is being transmitted, switch the transmission rate according to the first data packet; or,
  • the first data packet is also used to instruct the second electronic device to switch the transmission rate according to the first data packet when detecting the end of data transmission on the backward link indicated by the first backward link indication information.
  • the first data packet includes first indication information, first forward link indication information, first backward link indication information, check information, and first time window. See Table 1, which is the first time window.
  • the information indicated by different bits of a data packet is shown in Table 1:
  • Table 1 shows the information indicated by the different bits of the first data packet
  • the rates indicated by the 0-1 bits are also different.
  • the rate indicated by the 0-1 bit is rate 1; when the 0-1 bit is 01, the 0-1 bit indicates When the value of the 0-1 bit is 10, the rate indicated by the 0-1 bit is the rate 3; when the value of the 0-1 bit is 11, the value of 0-1 The rate indicated by the bit is rate 4.
  • the forward link indicated by the bits 2-3 is also different.
  • the forward link indicated by bit 2-3 is forward link 1; when the bit value of 2-3 is 01, 2- The forward link indicated by bit 3 is forward link 2; when the value of bit 2-3 is 10, the forward link indicated by bit 2-3 is forward link 3. ; When the value of bits 2-3 is 11, the forward link indicated by the bits 2-3 is forward link 4.
  • the backward link indicated by the bits 4-5 is also different.
  • the backward link indicated by bit 4-5 is backward link 1; when the value of bit 4-5 is 01, 4- The backward link indicated by bit 5 is backward link 2; when the value of bit 4-5 is 10, the backward link indicated by bit 4-5 is backward link 3. ; When the value of bits 4-5 is 11, the backward link indicated by bits 4-5 is backward link 4.
  • the check information indicated by the bits 6-7 is also different.
  • the check information indicated by bit 6-7 is check information 1; when the bit value of 6-7 is 01, bit 6-7 The indicated check information is check information 2; when the value of bits 6-7 is 10, the check information indicated by bits 6-7 is check information 3; When the value is 11, the check information indicated by bits 6-7 is check information 4.
  • the values of bits 8-9 in the first data packet are different, the first time window indicated by the bits 8-9 is also different.
  • the first time window indicated by the bit 8-9 is the first time window 1; when the bit 8-9 is 01, the value of the 8-9 bit The first time window indicated by the bit is the first time window 2; when the value of the bit 8-9 is 10, the first time window indicated by the bit 8-9 is the first time window 3; 8 When the value of the -9 bit is 11, the first time window indicated by the 8-9 bit is the first time window 4.
  • rate 1 may be, for example, 1.5 gigabit per second (Gbps); the rate 2 may be, for example, 4Gbps; the rate 3 may be, for example, 8Gbps; and the rate 4 may be, for example, 16Gbps. It is understandable that the specific rate is the largest and the rate is the smallest, so there is no restriction here.
  • FIG. 3 is a schematic diagram of a link provided in an embodiment of the application.
  • the link between the physical layer of the first electronic device and the physical layer of the second electronic device includes 4 forward links and 4 backward links.
  • the forward link whose link code is 00 can be forward link 1
  • the forward link whose link code is 01 can be forward link 2
  • the forward link whose link code is 10 can be Forward link 3
  • the forward link whose link code is 11 can be forward link 4.
  • a backward link with a link code of 00 can be backward link 1
  • a backward link with a link code of 01 can be backward link 2
  • a backward link with a link code of 10 can be It is the backward link 3
  • the backward link whose link code is 11 can be the backward link 4.
  • the second electronic device receives the first data packet sent by the first electronic device, that is, the control module of the second electronic device receives the control module of the first electronic device through the receiver of the second electronic device.
  • the first data packet sent by the machine Specifically, referring to FIG. 4, FIG. 4 is a schematic flowchart of another transmission rate switching method provided by an embodiment of the application. It can be seen that there is an interaction process between the protocol layer of the first electronic device and the physical layer of the first electronic device, and there is also an interaction process between the protocol layer of the second electronic device and the physical layer of the second electronic device. Specifically, the protocol layer of the first electronic device may send a transmission rate switching instruction to the physical layer of the first electronic device.
  • the transmission rate switching instruction may include the first rate, the first forward link indication information, the check information, and the first time window.
  • the transmission rate switching instruction may also include the first rate, the first backward link indication information, the check information, and the first time window.
  • the transmission rate switching instruction may further include the first rate, the first forward link indication information, the first backward link indication information, the check information, and the first time window.
  • the physical layer of the first electronic device can receive the transmission rate switching instruction sent by the protocol layer of the first electronic device, that is, the control module of the first electronic device receives the transmission rate switching instruction. Further, the control module of the first electronic device may analyze the transmission rate switching instruction to obtain the analyzed transmission rate switching instruction. Then, the control module of the first electronic device may generate the first data packet based on the parsed transmission rate switching instruction. Then, the control module of the first electronic device can send the first data packet to the receiver of the second electronic device through the transmitter of the first electronic device.
  • control module of the second electronic device can analyze the first data packet. If after parsing, the control module of the second electronic device determines that the first data packet includes indication information, first forward link indication information, verification information, and the first time window, then the control module of the second electronic device can control the second electronic device.
  • the receiver of the device switches the transmission rate according to the first data packet, and the transmission rate after the switching is the first rate. That is, the control module of the second electronic device can control the receiver of the second electronic device to switch the forward link according to the first data packet, and the switched forward link is the forward link indicated by the first forward link indication information. To the link.
  • the control module of the second electronic device after parsing determines that the first data packet includes the indication information, the first backward link indication information, the verification information and the first time window, then the physical layer of the second electronic device can send a message to the second electronic device.
  • the protocol layer of the device sends a backward link speed cut request, that is, the control module of the second electronic device can send a backward link speed cut request to the protocol layer of the second electronic device.
  • the control module of the second electronic device When receiving the backward link speed cut response sent by the protocol layer of the second electronic device, the control module of the second electronic device detects that no data is being transmitted on the backward link indicated by the first backward link indication information , When the transmitter of the second electronic device is controlled to switch the transmission rate according to the first data packet, or the control module of the second electronic device detects the end of data transmission on the backward link indicated by the first backward link indication information, Control the transmitter of the second electronic device to switch the transmission rate according to the first data packet.
  • the control module of the second electronic device determines that the first data packet includes indication information, first forward link indication information, first backward link indication information, verification information, and the first time window, then the second The control module of the electronic device can control the receiver of the second electronic device to switch the forward link according to the first data packet, and the switched forward link is the forward link indicated by the first forward link indication information, At the same time, a backward link speed cut request is sent to the protocol layer of the second electronic device.
  • the control module of the second electronic device When receiving the backward link speed cut response sent by the protocol layer of the second electronic device, the control module of the second electronic device detects that no data is being transmitted on the backward link indicated by the first backward link indication information , When the transmitter of the second electronic device is controlled to switch the transmission rate according to the first data packet, or the control module of the second electronic device detects the end of data transmission on the backward link indicated by the first backward link indication information, Control the transmitter of the second electronic device to switch the transmission rate according to the first data packet.
  • the use of the indication information to indicate the rate is implemented to prepare for the subsequent switching of the transmission rate of the second electronic device. It also realizes precise control of the switching link, avoids the problem that multiple interactions are required for each link switching in the prior art, simplifies the negotiation process, and improves the efficiency of transmission rate switching. In addition, the problem of data transmission failure on the backward link indicated by the first backward link indication information due to unreliable data transmission after the speed cut after the transmission rate is switched according to the first data packet is also avoided.
  • the first electronic device performs transmission rate switching according to the first rate, and the transmission rate after the switching of the first electronic device is the first rate.
  • FIG. 5 is a schematic flowchart of another transmission rate switching method provided by an embodiment of the application. As shown in FIG. 5, the method is applied to an electronic device, the electronic device includes a first electronic device and a second electronic device, and the method includes:
  • the second electronic device receives a first data packet sent by the first electronic device, where the first data packet is used to instruct the second electronic device to switch the transmission rate and the transmission rate after the switching is the first rate.
  • step 201 in FIG. 2 For the content of the first data packet, reference may be made to step 201 in FIG. 2, which will not be repeated here.
  • the first electronic device switches the transmission rate according to the first rate, and the transmission rate after the switching of the first electronic device is the first rate.
  • the first electronic device sends at least one first verification packet to the second electronic device at the first rate, where the first verification packet includes a verification corresponding to the verification information.
  • the second electronic device When receiving N first check packets in the first check packet within the first time window, the second electronic device sends at least one second check packet to the first electronic device at the first rate.
  • the second verification packet is sent by the second electronic device within the first time window and the second verification packet is determined by the second electronic device according to the verification information, and the N is an integer greater than 1.
  • N can be 2, 3, 4, 5, 6, 7, 10, etc., for example.
  • step 505 if N second check packets in the second check packet are received within the first time window, step 505 is executed; if the second check packet is not received within the first time window If there are N second parity packets of, step 506 is executed.
  • the first electronic device uses the first rate to send the first verification packet to the second electronic device, the first electronic device starts timing to obtain the first start time corresponding to the first electronic device. Further, based on the first start time corresponding to the first electronic device, if N second check packets in the second check packet are received within the first time window, step 505 is executed. Based on the first start time corresponding to the first electronic device, if N second check packets in the second check packet are not received within the first time window, step 506 is executed. Further, the first end time corresponding to the first electronic device is determined according to the first start time and the first time window corresponding to the first electronic device.
  • FIG. 6 is a schematic flowchart of another method for switching transmission rates according to an embodiment of the application.
  • the control module of the first electronic device can send the first check packet to the receiver of the second electronic device through the transmitter of the first electronic device at the first rate.
  • the control module of the second electronic device may determine the second verification packet according to the verification information included in the first data packet .
  • the second electronic device can send the second verification packet to the first electronic device at the first rate. That is, the control module of the second electronic device can send the second check packet to the receiver of the first electronic device through the transmitter of the second electronic device at the first rate.
  • first verification packet and the second verification packet are the same verification packet.
  • the second electronic device when the second electronic device switches the transmission rate according to the first data packet, the second electronic device starts timing to obtain the first start time corresponding to the second electronic device. Based on the first start time corresponding to the second electronic device, when N first verification packets in the first verification packet are received within the first time window, the second electronic device uses the first rate to move to the first An electronic device sends at least one second verification packet. At the same time, when receiving N second check packets in the first check packet within the first time window, the second electronic device determines to use the first rate to transmit data to the first electronic device.
  • the second electronic device After the second electronic device determines to use the first rate to transmit data to the first electronic device, regardless of whether the second electronic device has stopped timing, the second electronic device will stop using the first rate to send the second check to the first electronic device Bag.
  • the physical layer of the second electronic device may send a rate switching success message to the protocol layer of the second electronic device. At this time, the second electronic device is in a standby state, waiting for subsequent data transmission at the first rate.
  • the first end time corresponding to the second electronic device is determined according to the first start time and the first time window corresponding to the second electronic device.
  • the second electronic device can switch the first rate to the second electronic device to switch the transmission rate to the first The rate before the rate.
  • the first electronic device determines to use the first rate to transmit data to the second electronic device.
  • the first electronic device determines to use the first rate to transmit data to the second electronic device, regardless of whether the first electronic device has stopped timing, the first electronic device will stop using the first rate to transmit the first electronic device to the second electronic device. Check the package.
  • the physical layer of the first electronic device may send a rate switching success message to the protocol layer of the first electronic device. At this time, the first electronic device is in a standby state, waiting for subsequent data transmission at the first rate.
  • the first electronic device sends the first data packet to the second electronic device at the second rate and then sends the first check packet to the second electronic device at the first rate again.
  • the first electronic device may switch the first rate to the second rate, and the first electronic device may use the second rate to send the second electronic device to the second electronic device.
  • the device sends the first data packet.
  • the first electronic device after sending the first data packet to the second electronic device at the second rate, before sending the first check packet to the second electronic device at the first rate, the first electronic device also transmits at the first rate Rate switching, the transmission rate of the first electronic device after switching is the first rate. It is understandable that when the first electronic device sends the first verification packet to the second electronic device at the first rate again, the first electronic device starts timing to obtain the second start time corresponding to the first electronic device.
  • the first electronic device determines to use The first rate transmits data to the second electronic device. Further, in the subsequent process, reference may be made to step 505 in FIG. 5 for the relevant content after the first electronic device determines to use the first rate to transmit data to the second electronic device, which will not be repeated here.
  • step 507 is executed. Further, the second end time corresponding to the first electronic device is determined according to the second start time and the first time window corresponding to the first electronic device.
  • the second electronic device When receiving N first check packets in the first check packet within the first time window, the second electronic device sends the second check packet to the first electronic device again at the first rate.
  • the first electronic device determines to use the first rate to transmit data to the second electronic device. Further, in the subsequent process, reference may be made to step 505 in FIG. 5 for the relevant content after the first electronic device determines to use the first rate to transmit data to the second electronic device, which will not be repeated here.
  • step 508 is executed.
  • the second electronic device when the second electronic device switches the transmission rate according to the first data packet again, the second electronic device starts timing to obtain the second start time corresponding to the second electronic device. Based on the second start time corresponding to the second electronic device, when N first verification packets in the first verification packet are received within the first time window, the second electronic device uses the first rate to move to the first An electronic device sends at least one second verification packet. At the same time, when receiving N first check packets in the first check packet within the first time window, the second electronic device determines to use the first rate to transmit data to the first electronic device.
  • the second electronic device After the second electronic device determines to use the first rate to transmit data to the first electronic device, regardless of whether the second electronic device has stopped timing, the second electronic device will stop using the first rate to send the second check to the first electronic device Bag.
  • the physical layer of the second electronic device may send a rate switching success message to the protocol layer of the second electronic device. At this time, the second electronic device is in a standby state, waiting for subsequent data transmission at the first rate.
  • the second end time corresponding to the second electronic device is determined according to the second start time and the first time window corresponding to the second electronic device.
  • the first electronic device uses the third rate to send a second data packet to the second electronic device after switching the first rate to the third rate, and the second data packet is used to instruct the second electronic device to switch the transmission rate and switch
  • the latter transmission rate is the fourth rate, and the transmission rate is switched according to the fourth rate.
  • the transmission rate after the first electronic device is switched is the fourth rate.
  • the fourth rate is used to send the first check packet to the second electronic device until The first electronic device determines to use the fourth rate to transmit data to the second electronic device.
  • the second rate is the rate before the first electronic device switches the transmission rate to the first rate
  • the second rate is less than the first rate
  • the third rate is the rate with the lowest rate among the transmission rates corresponding to the first electronic device
  • the fourth rate It is greater than the second rate and the fourth rate is less than the first rate.
  • the second data packet may include second indication information, second forward link indication information, check information, and a second time window, and the second data packet may also include indication information, second backward link indication information, Check information and a second time window.
  • the second data packet may also include second indication information, second forward link indication information, second backward link indication information, check information, and second time window.
  • the second indication information is used to indicate the fourth rate.
  • the second time window is determined according to the fourth rate. For example, the larger the fourth rate, the longer the second time window; the smaller the fourth rate, the shorter the second time window.
  • the verification information included in the first data packet is the same as the verification information included in the second data packet.
  • the second indication information is at least one first item in the second data packet. Bits, when the value of at least one first bit in the second data packet is the first value, at least one first bit in the second data packet is used to indicate the first rate.
  • the second forward link indication information is at least one second bit in the second data packet, and when the value of at least one second bit in the second data packet is the second value, at least one bit in the second data packet The second bit is used to indicate the forward link indicated by the second forward link indication information.
  • the check information included in the second data packet is at least one third bit in the second data packet.
  • At least A third bit is used by the second electronic device to determine the second verification packet.
  • the second time window is at least one fourth bit in the second data packet, and when the value of at least one fourth bit in the second data packet is the fourth value, at least one fourth bit in the second data packet Used to indicate the second time window.
  • the first numerical value, the second numerical value, the third numerical value, and the fourth numerical value may be the same, or may be partly the same, or may be completely different.
  • the second data packet is also used to instruct the second electronic device to perform forward link switching, and the switched forward link is the forward link indicated by the second forward link indication information.
  • the second indication information is at least one first bit in the second data packet.
  • the at least one first bit in the second data packet is used to indicate the first rate.
  • the second backward link indication information is at least one second bit in the second data packet, and when the value of at least one second bit in the second data packet is the second value, at least one bit in the second data packet The second bit is used to indicate the backward link indicated by the second backward link indication information.
  • the check information included in the second data packet is at least one third bit in the second data packet.
  • At least A third bit is used by the second electronic device to determine the second verification packet.
  • the second time window is at least one fourth bit in the second data packet, and when the value of at least one fourth bit in the second data packet is the fourth value, at least one fourth bit in the second data packet Used to indicate the second time window.
  • the first numerical value, the second numerical value, the third numerical value, and the fourth numerical value may be the same, or may be partly the same, or may be completely different.
  • the second data packet is also used to instruct the second electronic device to perform backward link switching, and the switched backward link is the backward link indicated by the second backward link indication information.
  • the second indication information is in the second data packet
  • the value of at least one first bit in the second data packet is the first value
  • the at least one first bit in the second data packet is used to indicate the first rate.
  • the second forward link indication information is at least one second bit in the second data packet, and when the value of at least one second bit in the second data packet is the second value, at least one bit in the second data packet The second bit is used to indicate the forward link indicated by the second forward link indication information.
  • the second backward link indication information is at least one third bit in the second data packet, and the value of at least one third bit in the second data packet is at least one in the second data packet when the value is the third value
  • the third bit is used to indicate the backward link indicated by the second backward link indication information.
  • the check information included in the second data packet is at least one fourth bit in the second data packet, and when the value of at least one fourth bit in the second data packet is the fourth value, at least one bit in the second data packet is A fourth bit is used by the second electronic device to determine the second check packet.
  • the second time window is at least one fifth bit in the second data packet, and when the value of at least one fifth bit in the second data packet is the fifth value, at least one fifth bit in the second data packet Used to indicate the second time window.
  • the first numerical value, the second numerical value, the third numerical value, the fourth numerical value, and the fifth numerical value may be the same, or may be partly the same, or may be completely different.
  • the second data packet is also used to instruct the second electronic device to perform forward link switching and backward link switching, and the switched forward link is the forward direction indicated by the second forward link indication information.
  • Link, the backward link after the handover is the backward link indicated by the second backward link indication information.
  • the second data packet when the second data packet includes the second backward link indication information, the second data packet is also used to instruct the second electronic device to detect the backward link indicated by the second backward link indication information. When no data is being transmitted, switch the transmission rate according to the second data packet; or,
  • the first data packet is also used to instruct the second electronic device to switch the transmission rate according to the first data packet when detecting the end of data transmission on the backward link indicated by the first backward link indication information.
  • the first electronic device uses the third rate to send the second data packet to the second electronic device, that is, the control module of the first electronic device uses the transmitter of the first electronic device to transmit the second data packet to the control module of the second electronic device at the third rate. Send the second data packet. It is understandable that when the first electronic device uses the third rate to send the second data packet to the second electronic device, it will involve the interaction process between the protocol layer of the first electronic device and the physical layer of the first electronic device. It will involve the interaction process between the protocol layer of the second electronic device and the physical layer of the second electronic device.
  • the second electronic device sends the second verification packet to the first electronic device at a fourth rate. If N second check packets in the second check packet are received within the second time window, the first electronic device determines to use the fourth rate to transmit data to the second electronic device. Further, when the first electronic device sends the first verification packet to the second electronic device at the fourth rate, the first electronic device starts timing to obtain the third start time corresponding to the first electronic device. Further, based on the third start time corresponding to the first electronic device, if N second verification packets in the second verification packet are received within the second time window, the first electronic device determines to use the first Four-speed transmission of data to the second electronic device.
  • the third end time corresponding to the first electronic device is determined according to the third start time and the second time window corresponding to the first electronic device.
  • the first electronic device will stop using the fourth rate to transmit the first electronic device to the second electronic device.
  • the physical layer of the first electronic device may send a rate switching success message to the protocol layer of the first electronic device. At this time, the first electronic device is in a standby state, waiting for subsequent data transmission at the fourth rate.
  • the first electronic device can switch the fourth rate to the third rate, or switch the fourth rate to The second rate, so that the second rate or the third rate can be used to transmit data to the second electronic device.
  • the second electronic device when the second electronic device switches the transmission rate according to the second data packet, the second electronic device starts timing to obtain the third start time corresponding to the second electronic device. Based on the third start time corresponding to the second electronic device, when N first verification packets in the first verification packet are received within the second time window, the second electronic device uses the fourth rate to move to the first An electronic device sends at least one second verification packet. At the same time, when receiving N first check packets in the first check packet within the second time window, the second electronic device determines to use the fourth rate to transmit data to the first electronic device. Further, the third end time corresponding to the second electronic device is determined according to the third start time and the second time window corresponding to the second electronic device.
  • the second electronic device determines to use the fourth rate to transmit data to the first electronic device, regardless of whether the second electronic device has stopped timing, the second electronic device will stop using the fourth rate to transmit the second electronic device to the first electronic device. Check the package.
  • the physical layer of the second electronic device may send a rate switching success message to the protocol layer of the second electronic device. At this time, the second electronic device is in a standby state, waiting for subsequent data transmission at the first rate.
  • the second electronic device can switch the fourth rate to the second electronic device to switch the transmission rate to the fourth The rate before the rate.
  • the negotiation process is simplified, and the transmission rate switching efficiency is improved.
  • the reliability of the data transmission after the speed cut is verified, which avoids sending data to the second electronic device at the switched rate when the data transmission after the speed cut is unreliable.
  • the original rate before switching to the first rate is used to send the second data packet to the second electronic device, which eliminates the problem that the new rate negotiation fails due to accidental external factors.
  • the check packet is still not received within the second time window, that is, when the data transmission is still unreliable after the speed cut, the new data packet is transmitted at the lowest rate corresponding to the device, which provides a more flexible speed cut method .
  • An embodiment of the present application provides a transmission rate switching device.
  • the transmission rate switching device includes a first electronic device and a second electronic device.
  • the second electronic device is used to receive the first data packet sent by the first electronic device, and the first data packet is used to instruct the second electronic device to switch the transmission rate and the transmission rate after the switching is the first rate.
  • step 201 in FIG. 2 For the content of the first data packet, reference may be made to step 201 in FIG. 2, which will not be repeated here.
  • the first electronic device is used to switch the transmission rate according to the first rate, and the transmission rate after the switching of the first electronic device is the first rate.
  • the first data packet includes first indication information, and the first indication information is used to indicate the first rate.
  • the use of the indication information to indicate the rate is implemented to prepare for the subsequent switching of the transmission rate of the second electronic device.
  • the first data packet further includes first forward link indication information and/or first backward link indication information, and the first data packet is also used to instruct the second electronic device to perform forward Link switching and/or backward link switching, and the forward link after switching is the forward link indicated by the first forward link indication information, and the backward link after switching is the first backward link The backward link indicated by the route indication information.
  • the first data packet is also used to instruct the second electronic device to perform processing according to the first data packet when detecting that no data is being transmitted on the backward link indicated by the first backward link indication information.
  • Transmission rate switching or,
  • the first data packet is also used to instruct the second electronic device to switch the transmission rate according to the first data packet when detecting the end of data transmission on the backward link indicated by the first backward link indication information.
  • the first data packet further includes verification information and a first time window
  • the first electronic device is further configured to send at least one first verification packet to the second electronic device at the first rate;
  • the second electronic device When receiving N first check packets in the first check packet within the first time window, the second electronic device is further configured to send at least one second check packet to the first electronic device at the first rate, wherein, the second verification packet is sent by the second electronic device within the first time window and the second verification packet is determined by the second electronic device according to the verification information, and the N is an integer greater than 1;
  • the first electronic device is also used to determine to use the first rate to transmit data to the second electronic device.
  • step 504 in FIG. 5, which will not be repeated here For the content of sending the first check packet to the second electronic device at the first rate, reference may be made to step 504 in FIG. 5, which will not be repeated here.
  • step 504 in FIG. 5, which will not be repeated here For the content of sending at least one second verification packet to the first electronic device at the first rate, reference may be made to step 504 in FIG. 5, which will not be repeated here.
  • step 505 in FIG. 5, which will not be repeated here For the content of determining to use the first rate to transmit data to the second electronic device.
  • the check packet and the first time window are used to verify the reliability of the data transmission after the speed is cut, and avoid the use of the switched rate when the data transmission is unreliable after the speed cut.
  • the second electronic device sends data.
  • the first electronic device if N second check packets in the second check packet are not received within the first time window, the first electronic device is also used to transfer to the second check packet at the second rate. After the electronic device sends the first data packet, the first check packet is sent to the second electronic device again at the first rate;
  • the second electronic device When receiving N first check packets in the first check packet within the first time window, the second electronic device is further configured to send the second check packet to the first electronic device again at the first rate;
  • the first electronic device is also used to use the third rate direction after switching the first rate to the third rate.
  • the second electronic device sends a second data packet, the second data packet is used to instruct the second electronic device to switch the transmission rate and the transmission rate after the switching is the fourth rate, the transmission rate is switched according to the fourth rate, and the first electronic device switches The subsequent transmission rate is the fourth rate, and the fourth rate is used to send the first check packet to the second electronic device until the first electronic device determines that the fourth rate is used to transmit data to the second electronic device;
  • the second rate is the rate before the first electronic device switches the transmission rate to the first rate
  • the second rate is less than the first rate
  • the third rate is the rate with the lowest rate among the transmission rates corresponding to the first electronic device
  • the fourth rate It is greater than the second rate and the fourth rate is less than the first rate.
  • step 506 For the content of sending the first check packet to the second electronic device at the first rate again, reference may be made to step 506 in FIG. 5, which will not be repeated here.
  • step 504 Regarding the content of sending the second verification packet to the first electronic device at the first rate again, reference may be made to step 504 in FIG. 5, which will not be repeated here.
  • step 508 For the content of using the third rate to send the second data packet to the second electronic device after the first rate is switched to the third rate, reference may be made to step 508 in FIG. 5, which will not be repeated here.
  • the original rate before switching to the first rate is used to send the second data packet to the second electronic device when the data transmission is unreliable after the speed is cut.
  • the rate negotiation failed.
  • the check packet has not been received within the first time window, that is, when the data transmission is still unreliable after the speed cut, the new data packet is transmitted at the lowest rate corresponding to the device, which provides a more flexible speed cut method .
  • the present application also provides a computer-readable storage medium in which a computer program is stored, and when the computer program is executed, any method such as a transmission rate switching method is implemented.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Quality & Reliability (AREA)
  • Communication Control (AREA)

Abstract

The present application provides a transmission rate switching method and a related apparatus. The method is applied to electronic equipment, and the electronic equipment comprises a first electronic device and a second electronic device. The method comprises: the second electronic device receives a first data packet sent by the first electronic device, the first data packet being used for instructing the second electronic device to perform transmission rate switching, and the switched transmission rate being a first rate; the first electronic device performs transmission rate switching according to the first rate, the switched transmission rate of the first electronic device being the first rate. Implementing the embodiments of the present application can simplify the negotiation process and improve the efficiency of transmission rate switching.

Description

一种传输速率切换方法以及相关装置Method for switching transmission rate and related device
本申请要求于2020年04月28日提交中国专利局、申请号为202010352238.6、申请名称为“一种传输速率切换方法以及相关装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on April 28, 2020, the application number is 202010352238.6, and the application title is "a method for switching transmission rate and related devices", the entire content of which is incorporated herein by reference Applying.
技术领域Technical field
本申请涉及通信技术领域,尤其涉及一种传输速率切换方法以及相关装置。This application relates to the field of communication technologies, and in particular, to a transmission rate switching method and related devices.
背景技术Background technique
随着电子行业技术的快速发展,对接口传输技术的要求也越来越高。目前,可以采用为移动应用处理器制定的开放标准和规范的移动产业处理器接口(mobile industry processor interface,MIPI)实现数据的传输。With the rapid development of technology in the electronics industry, the requirements for interface transmission technology are getting higher and higher. Currently, open standards and standardized mobile industry processor interfaces (mobile industry processor interface, MIPI) formulated for mobile application processors can be used to implement data transmission.
一般来说,在利用MIPI的物理层(physical layer,PHY)接口传输数据时往往会涉及到传输速率切换的过程。在现有技术中进行传输速率切换时,比如需要处理器的发射机向照相机的接收机发送切速请求,当处理器的接收机接收到照相机的发射机反馈回来的反馈信息后,处理器的发送机进行传输速率切换。进一步的,处理器的发送机进行能力配置和停止传输数据,当照相机的接收机检测到处理器的发送机停止传输数据时,照相机的接收机进行速率切换。即可以看出,在现有技术中,在进行传输速率切换时,需要多次交互,导致协商过程复杂,传输速率切换效率低。Generally speaking, the process of switching the transmission rate is often involved when using the physical layer (PHY) interface of MIPI to transmit data. When the transmission rate is switched in the prior art, for example, the transmitter of the processor is required to send a speed cut request to the receiver of the camera. After the receiver of the processor receives the feedback information fed back by the transmitter of the camera, the processor’s The transmitter switches the transmission rate. Further, the transmitter of the processor performs capability configuration and stops transmitting data. When the receiver of the camera detects that the transmitter of the processor stops transmitting data, the receiver of the camera performs rate switching. It can be seen that in the prior art, multiple interactions are required when switching the transmission rate, which results in a complicated negotiation process and low transmission rate switching efficiency.
发明内容Summary of the invention
本申请提供了一种传输速率切换方法和相关装置,能简化协商过程,提高传输速率切换效率。This application provides a transmission rate switching method and related devices, which can simplify the negotiation process and improve the transmission rate switching efficiency.
第一方面,提供一种传输速率切换方法,所述方法应用于电子设备,所述电子设备包括第一电子器件和第二电子器件,所述方法包括:In a first aspect, a transmission rate switching method is provided, the method is applied to an electronic device, the electronic device includes a first electronic device and a second electronic device, and the method includes:
所述第二电子器件接收所述第一电子器件发送的第一数据包,所述第一数据包用于指示所述第二电子器件进行传输速率切换且切换后的传输速率为第一速率;The second electronic device receives a first data packet sent by the first electronic device, where the first data packet is used to instruct the second electronic device to switch the transmission rate and the transmission rate after the switching is the first rate;
所述第一电子器件根据所述第一速率进行传输速率切换,所述第一电子器件切换后的传输速率为所述第一速率。The first electronic device performs transmission rate switching according to the first rate, and the transmission rate of the first electronic device after switching is the first rate.
可以看出,上述技术方案中,简化了协商过程,提高传输速率切换效率。It can be seen that in the above technical solution, the negotiation process is simplified, and the transmission rate switching efficiency is improved.
在一种可能的实施方式中,所述第一数据包包括第一指示信息,所述第一指示信息用于指示所述第一速率。In a possible implementation manner, the first data packet includes first indication information, and the first indication information is used to indicate the first rate.
可以看出,上述技术方案中,实现了采用指示信息指示速率,为后续第二电子器件进行传输速率切换做准备。It can be seen that in the above technical solution, the use of the indication information to indicate the rate is implemented to prepare for the subsequent switching of the transmission rate of the second electronic device.
在一种可能的实施方式中,所述第一数据包还包括第一前向链路指示信息和/或第一后向链路指示信息,所述第一数据包还用于指示所述第二电子器件进行前向链路切换和/或后向链路切换,且切换后的前向链路为所述第一前向链路指示信息所指示的前向链路,切换后的后向链路为所述第一后向链路指示信息所指示的后向链路。In a possible implementation manner, the first data packet further includes first forward link indication information and/or first backward link indication information, and the first data packet is also used to indicate the first forward link The second electronic device performs forward link switching and/or backward link switching, and the switched forward link is the forward link indicated by the first forward link indication information, and the switched backward The link is the backward link indicated by the first backward link indication information.
可以看出,上述技术方案中,实现了精准控制切换链路,也避免了现有技术中每切换 一次链路都需要进行多次交互的问题,简化了协商过程,提高传输速率切换效率。It can be seen that in the above technical solution, precise control of the switching link is achieved, and the problem of multiple interactions required for each link switching in the prior art is also avoided, the negotiation process is simplified, and the transmission rate switching efficiency is improved.
在一种可能的实施方式中,所述第一数据包还用于指示所述第二电子器件在检测所述第一后向链路指示信息所指示的后向链路上未传输数据时,根据所述第一数据包进行传输速率切换;或,In a possible implementation manner, the first data packet is further used to instruct the second electronic device to detect that no data is being transmitted on the backward link indicated by the first backward link indication information, Switch the transmission rate according to the first data packet; or,
所述第一数据包还用于指示所述第二电子器件在检测所述第一后向链路指示信息所指示的后向链路上数据传输结束时,根据所述第一数据包进行传输速率切换。The first data packet is also used to instruct the second electronic device to perform transmission according to the first data packet when detecting the end of data transmission on the backward link indicated by the first backward link indication information Rate switching.
可以看出,上述技术方案中,避免了在根据第一数据包进行传输速率切换后由于切速后数据传输不可靠导致在第一后向链路指示信息所指示的后向链路上数据传输失败的问题。It can be seen that in the above technical solution, the data transmission on the backward link indicated by the first backward link indication information is avoided due to unreliable data transmission after the speed cut after the transmission rate is switched according to the first data packet. The problem of failure.
在一种可能的实施方式中,所述第一数据包还包括校验信息和第一时间窗口,在所述第一电子器件根据所述第一速率进行传输速率切换之后,所述方法还包括:In a possible implementation manner, the first data packet further includes check information and a first time window. After the first electronic device performs transmission rate switching according to the first rate, the method further includes :
所述第一电子器件采用所述第一速率向所述第二电子器件发送至少一个第一校验包;Sending, by the first electronic device, at least one first verification packet to the second electronic device at the first rate;
在所述第一时间窗口内接收到所述第一校验包中的N个第一校验包时,所述第二电子器件采用所述第一速率向所述第一电子器件发送至少一个第二校验包,其中,所述第二校验包是所述第二电子器件在所述第一时间窗口内发送的且所述第二校验包是所述第二电子器件根据所述校验信息确定的,所述N为大于1的整数;When receiving N first check packets in the first check packet within the first time window, the second electronic device sends at least one check packet to the first electronic device at the first rate A second verification packet, wherein the second verification packet is sent by the second electronic device within the first time window and the second verification packet is the second electronic device according to the Determined by the verification information, the N is an integer greater than 1;
若在所述第一时间窗口内接收到所述第二校验包中的所述N个第二校验包,所述第一电子器件则确定采用所述第一速率向所述第二电子器件传输数据。If the N second verification packets in the second verification packet are received within the first time window, the first electronic device determines to use the first rate to send the second electronic device to the second electronic device. The device transmits data.
可以看出,上述技术方案中,通过校验包和第一时间窗口,实现了对切速后数据传输可靠性的校验,避免了在切速后数据传输不可靠时采用切换后的速率向第二电子器件发送数据。It can be seen that in the above technical solution, the check packet and the first time window are used to verify the reliability of the data transmission after the speed is cut, and avoid the use of the switched rate when the data transmission is unreliable after the speed cut. The second electronic device sends data.
在一种可能的实施方式中,所述方法还包括:In a possible implementation manner, the method further includes:
若在所述第一时间窗口内未接收到所述第二校验包中的所述N个第二校验包,所述第一电子器件则在采用第二速率向所述第二电子器件发送所述第一数据包后再次采用所述第一速率向所述第二电子器件发送所述第一校验包;If the N second check packets in the second check packet are not received within the first time window, the first electronic device is using the second rate to send the signal to the second electronic device After sending the first data packet, sending the first check packet to the second electronic device again at the first rate;
在所述第一时间窗口内接收到所述第一校验包中的所述N个第一校验包时,所述第二电子器件再次采用所述第一速率向所述第一电子器件发送所述第二校验包;When the N first check packets in the first check packet are received within the first time window, the second electronic device again uses the first rate to send the signal to the first electronic device Sending the second check packet;
若在所述第一时间窗口内仍未接收到所述第二校验包中的所述N个第二校验包,所述第一电子器件则在所述第一电子器件将所述第一速率切换为第三速率后采用所述第三速率向所述第二电子器件发送第二数据包,所述第二数据包用于指示所述第二电子器件进行传输速率切换且切换后的传输速率为第四速率,根据所述第四速率进行传输速率切换,所述第一电子器件切换后的传输速率为所述第四速率,采用所述第四速率向所述第二电子器件发送所述第一校验包,直到所述第一电子器件确定采用所述第四速率向所述第二电子器件传输数据为止;If the N second verification packets in the second verification packet are not received within the first time window, the first electronic device will perform the first electronic device on the first electronic device. After the first rate is switched to the third rate, the third rate is used to send a second data packet to the second electronic device, and the second data packet is used to instruct the second electronic device to switch the transmission rate and after the switching The transmission rate is the fourth rate, the transmission rate is switched according to the fourth rate, the transmission rate after the switching of the first electronic device is the fourth rate, and the fourth rate is used to send to the second electronic device The first check packet until the first electronic device determines to use the fourth rate to transmit data to the second electronic device;
其中,所述第二速率是所述第一电子器件切换传输速率为所述第一速率之前的速率,所述第二速率小于所述第一速率,所述第三速率是所述第一电子器件对应的传输速率中速率最低的速率,所述第四速率大于所述第二速率且所述第四速率小于所述第一速率。Wherein, the second rate is the rate at which the first electronic device switches the transmission rate before the first rate, the second rate is less than the first rate, and the third rate is the first electronic device. The lowest rate among the transmission rates corresponding to the device, the fourth rate is greater than the second rate and the fourth rate is less than the first rate.
可以看出,上述技术方案中,实现了在切速后数据传输不可靠时采用切换为第一速率之前的原始速率向第二电子器件发送第一数据包,排除了由于外界偶发性因素导致新速率协商失败的问题。同时,在第二时间窗口内仍未接收到校验包时,即在切速后数据传输仍 不可靠时,通过采用设备对应的最低速率传输新的数据包,提供了更加灵活的切速方式。It can be seen that in the above technical solution, the original rate before switching to the first rate is used to send the first data packet to the second electronic device when the data transmission is unreliable after the speed is cut. The rate negotiation failed. At the same time, when the check packet is still not received within the second time window, that is, when the data transmission is still unreliable after the speed cut, the new data packet is transmitted at the lowest rate corresponding to the device, which provides a more flexible speed cut method .
第二方面,提供一种传输速率切换装置,所述装置包括第一电子器件和第二电子器件,In a second aspect, a transmission rate switching device is provided, the device includes a first electronic device and a second electronic device,
所述第二电子器件,用于接收所述第一电子器件发送的第一数据包,所述第一数据包用于指示所述第二电子器件进行传输速率切换且切换后的传输速率为第一速率;The second electronic device is configured to receive a first data packet sent by the first electronic device, and the first data packet is used to instruct the second electronic device to switch the transmission rate and the transmission rate after the switching is the first A rate
所述第一电子器件,用于根据所述第一速率进行传输速率切换,所述第一电子器件切换后的传输速率为所述第一速率。The first electronic device is configured to perform transmission rate switching according to the first rate, and the transmission rate of the first electronic device after switching is the first rate.
在一种可能的实施方式中,所述第一数据包包括第一指示信息,所述第一指示信息用于指示所述第一速率。In a possible implementation manner, the first data packet includes first indication information, and the first indication information is used to indicate the first rate.
在一种可能的实施方式中,所述第一数据包还包括第一前向链路指示信息和/或第一后向链路指示信息,所述第一数据包还用于指示所述第二电子器件进行前向链路切换和/或后向链路切换,且切换后的前向链路为所述第一前向链路指示信息所指示的前向链路,切换后的后向链路为所述第一后向链路指示信息所指示的后向链路。In a possible implementation manner, the first data packet further includes first forward link indication information and/or first backward link indication information, and the first data packet is also used to indicate the first forward link The second electronic device performs forward link switching and/or backward link switching, and the switched forward link is the forward link indicated by the first forward link indication information, and the switched backward The link is the backward link indicated by the first backward link indication information.
在一种可能的实施方式中,所述第一数据包还用于指示所述第二电子器件在检测所述第一后向链路指示信息所指示的后向链路上未传输数据时,根据所述第一数据包进行传输速率切换;或,In a possible implementation manner, the first data packet is further used to instruct the second electronic device to detect that no data is being transmitted on the backward link indicated by the first backward link indication information, Switch the transmission rate according to the first data packet; or,
所述第一数据包还用于指示所述第二电子器件在检测所述第一后向链路指示信息所指示的后向链路上数据传输结束时,根据所述第一数据包进行传输速率切换。The first data packet is also used to instruct the second electronic device to perform transmission according to the first data packet when detecting the end of data transmission on the backward link indicated by the first backward link indication information Rate switching.
在一种可能的实施方式中,所述第一数据包还包括校验信息和第一时间窗口,In a possible implementation manner, the first data packet further includes verification information and a first time window,
所述第一电子器件,还用于采用所述第一速率向所述第二电子器件发送至少一个第一校验包;The first electronic device is further configured to send at least one first verification packet to the second electronic device at the first rate;
在所述第一时间窗口内接收到所述第一校验包中的N个第一校验包时,所述第二电子器件,还用于采用所述第一速率向所述第一电子器件发送至少一个第二校验包,其中,所述第二校验包是所述第二电子器件在所述第一时间窗口内发送的且所述第二校验包是所述第二电子器件根据所述校验信息确定的,所述N为大于1的整数;When N first check packets in the first check packet are received within the first time window, the second electronic device is further configured to use the first rate to send the data to the first electronic device. The device sends at least one second verification packet, wherein the second verification packet is sent by the second electronic device within the first time window and the second verification packet is the second electronic device. Determined by the device according to the verification information, the N is an integer greater than 1;
若在所述第一时间窗口内接收到所述第二校验包中的所述N个第二校验包,所述第一电子器件,还用于确定采用所述第一速率向所述第二电子器件传输数据。If the N second check packets in the second check packet are received within the first time window, the first electronic device is also used to determine to use the first rate to send the The second electronic device transmits data.
在一种可能的实施方式中,In a possible implementation,
若在所述第一时间窗口内未接收到所述第二校验包中的所述N个第二校验包,所述第一电子器件,还用于在采用第二速率向所述第二电子器件发送所述第一数据包后再次采用所述第一速率向所述第二电子器件发送所述第一校验包;If the N second check packets in the second check packet are not received within the first time window, the first electronic device is further configured to send the second check packet to the second check packet at the second rate. After the second electronic device sends the first data packet, the first check packet is sent to the second electronic device again at the first rate;
在所述第一时间窗口内接收到所述第一校验包中的所述N个第一校验包时,所述第二电子器件,还用于再次采用所述第一速率向所述第一电子器件发送所述第二校验包;When the N first check packets in the first check packet are received within the first time window, the second electronic device is further configured to use the first rate to send to the The first electronic device sends the second verification packet;
若在所述第一时间窗口内仍未接收到所述第二校验包中的所述N个第二校验包,所述第一电子器件,还用于在将所述第一速率切换为第三速率后采用所述第三速率向所述第二电子器件发送第二数据包,所述第二数据包用于指示所述第二电子器件进行传输速率切换且切换后的传输速率为第四速率,根据所述第四速率进行传输速率切换,所述第一电子器件切换后的传输速率为所述第四速率,采用所述第四速率向所述第二电子器件发送所述第一校验包,直到所述第一电子器件确定采用所述第四速率向所述第二电子器件传输数据为止;If the N second check packets in the second check packet are not received within the first time window, the first electronic device is also used to switch the first rate After the third rate is the third rate, the third rate is used to send a second data packet to the second electronic device, where the second data packet is used to instruct the second electronic device to switch the transmission rate and the transmission rate after the switching is The fourth rate is to perform transmission rate switching according to the fourth rate, the transmission rate of the first electronic device after switching is the fourth rate, and the fourth rate is used to send the first electronic device to the second electronic device. A check packet until the first electronic device determines to use the fourth rate to transmit data to the second electronic device;
其中,所述第二速率是所述第一电子器件切换传输速率为所述第一速率之前的速率,所述第二速率小于所述第一速率,所述第三速率是所述第一电子器件对应的传输速率中速率最低的速率,所述第四速率大于所述第二速率且所述第四速率小于所述第一速率。Wherein, the second rate is the rate at which the first electronic device switches the transmission rate before the first rate, the second rate is less than the first rate, and the third rate is the first electronic device. The lowest rate among the transmission rates corresponding to the device, the fourth rate is greater than the second rate and the fourth rate is less than the first rate.
第三方面,提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机程序,当所述计算机程序被运行时,实现如第一方面或第一方面任一项所述的方法。In a third aspect, a computer-readable storage medium is provided, and a computer program is stored in the computer-readable storage medium. When the computer program is executed, the computer program described in the first aspect or any one of the first aspect method.
附图说明Description of the drawings
下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍。The following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art.
其中:in:
图1为本申请实施例提供的一种传输速率切换装置的结构示意图;FIG. 1 is a schematic structural diagram of a transmission rate switching device provided by an embodiment of the application;
图2为本申请实施例提供的一种传输速率切换方法的流程示意图;FIG. 2 is a schematic flowchart of a method for switching a transmission rate according to an embodiment of the application;
图3为本申请实施例提供的链路示意图;Figure 3 is a schematic diagram of a link provided by an embodiment of the application;
图4为本申请实施例提供的又一种传输速率切换方法的流程示意图;FIG. 4 is a schematic flowchart of yet another method for switching transmission rates according to an embodiment of the application;
图5为本申请实施例提供的又一种传输速率切换方法的流程示意图;FIG. 5 is a schematic flowchart of another transmission rate switching method provided by an embodiment of this application;
图6为本申请实施例提供的又一种传输速率切换方法的流程示意图。FIG. 6 is a schematic flowchart of another transmission rate switching method provided by an embodiment of the application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”是用于区别不同对象,而不是用于描述特定顺序。The terms "first" and "second" in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific sequence.
首先,本申请实施例涉及的电子设备可以集成有处理器和照相机,也可以集成有处理器和显示屏,还可以集成有处理器、照相机和显示屏,当然,该电子设备还可以集成其他电子器件在此不做限制。举例来说,该电子设备可以为移动电话(或称为“蜂窝”电话),具有移动用户设备的计算机,便携式、袖珍式、手持式、计算机内置的移动装置等。该电子设备也可以为可穿戴设备,还可以为车载用户设备,车载用户设备例如也称为车载单元(on-board unit,OBU),本申请实施例对此不作限定。另外,该电子设备还可以为计算机、平板电脑、笔记本电脑、掌上电脑等。First of all, the electronic device involved in the embodiments of the present application can be integrated with a processor and a camera, can also be integrated with a processor and a display screen, and can also be integrated with a processor, a camera, and a display screen. Of course, the electronic device can also be integrated with other electronic devices. The device is not restricted here. For example, the electronic device may be a mobile phone (or called a "cellular" phone), a computer with mobile user equipment, portable, pocket-sized, handheld, and a mobile device with a built-in computer, and so on. The electronic device may also be a wearable device or a vehicle-mounted user equipment. The vehicle-mounted user equipment is, for example, also referred to as an on-board unit (OBU), which is not limited in the embodiment of the present application. In addition, the electronic device may also be a computer, a tablet computer, a notebook computer, a palmtop computer, and the like.
可以理解的,在本申请实施例中,第一电子器件例如可以为处理器,第二电子器件例如可以为照相机或显示屏。It can be understood that, in the embodiments of the present application, the first electronic device may be, for example, a processor, and the second electronic device may be, for example, a camera or a display screen.
进一步的,参见图1,图1为本申请实施例提供的一种传输速率切换装置的结构示意图。如图1所示,第一电子器件包括控制模块、发射机和接收机,第二电子器件包括控制模块、发射机和接收机。第一电子器件的控制模块可以通过第一电子器件的发射机与第二电子器件的接收机传输数据,第二电子器件的控制模块可以通过第二电子器件的发射机与第二电子器件的接收机传输数据。Further, referring to FIG. 1, FIG. 1 is a schematic structural diagram of a transmission rate switching apparatus provided by an embodiment of the application. As shown in Fig. 1, the first electronic device includes a control module, a transmitter and a receiver, and the second electronic device includes a control module, a transmitter and a receiver. The control module of the first electronic device can transmit data through the transmitter of the first electronic device and the receiver of the second electronic device, and the control module of the second electronic device can transmit data through the transmitter of the second electronic device and the receiver of the second electronic device. Machine to transmit data.
为了便于理解本申请,首先在此介绍本申请实施例涉及的相关技术知识。In order to facilitate the understanding of this application, the relevant technical knowledge involved in the embodiments of this application is first introduced here.
一般来说,在利用MIPI的物理层接口传输数据时往往会涉及到传输速率切换的过程。在现有技术中进行传输速率切换时,比如需要处理器的发射机向照相机的接收机发送切速请求,当处理器的接收机接收到照相机的发射机反馈回来的反馈信息后,处理器的发送机进行传输速率切换。进一步的,处理器的发送机进行能力配置和停止传输数据,当照相机 的接收机检测到处理器的发送机停止传输数据时,照相机的接收机进行速率切换。即可以看出,在现有技术中,在进行传输速率切换时,需要多次交互,导致协商过程复杂,效率低。Generally speaking, the process of switching the transmission rate is often involved when using MIPI's physical layer interface to transmit data. When the transmission rate is switched in the prior art, for example, the transmitter of the processor is required to send a speed cut request to the receiver of the camera. After the receiver of the processor receives the feedback information fed back by the transmitter of the camera, the processor’s The transmitter switches the transmission rate. Further, the transmitter of the processor performs capability configuration and stops transmitting data. When the receiver of the camera detects that the transmitter of the processor stops transmitting data, the receiver of the camera performs rate switching. It can be seen that in the prior art, multiple interactions are required when switching the transmission rate, which results in a complicated negotiation process and low efficiency.
为了解决上述技术问题,本申请提供一种传输速率切换方法,下面对本申请实施例进行详细介绍。In order to solve the above technical problems, the present application provides a method for switching transmission rates. The following describes the embodiments of the present application in detail.
参见图2,图2为本申请实施例提供的一种传输速率切换方法的流程示意图。如图2所示,该方法应用于电子设备,该电子设备包括第一电子器件和第二电子器件,该方法包括:Refer to FIG. 2, which is a schematic flowchart of a method for switching a transmission rate according to an embodiment of the application. As shown in FIG. 2, the method is applied to an electronic device, and the electronic device includes a first electronic device and a second electronic device, and the method includes:
201、第二电子器件接收第一电子器件发送的第一数据包,第一数据包用于指示第二电子器件进行传输速率切换且切换后的传输速率为第一速率。201. The second electronic device receives a first data packet sent by the first electronic device, where the first data packet is used to instruct the second electronic device to switch the transmission rate and the transmission rate after the switching is the first rate.
其中,第一数据包可以包括第一指示信息、第一前向链路指示信息、校验信息和第一时间窗口,第一数据包也可以包括指示信息、第一后向链路指示信息、校验信息和第一时间窗口,第一数据包还可以包括第一指示信息、第一前向链路指示信息、第一后向链路指示信息、校验信息和第一时间窗口。进一步的,该第一指示信息用于指示第一速率。另外,该第一时间窗口是根据第一速率确定的。比如,第一速率越大,该第一时间窗口越长;第一速率越小,该第一时间窗口越短。Wherein, the first data packet may include first indication information, first forward link indication information, check information, and a first time window, and the first data packet may also include indication information, first backward link indication information, Check the information and the first time window. The first data packet may also include first indication information, first forward link indication information, first backward link indication information, check information, and first time window. Further, the first indication information is used to indicate the first rate. In addition, the first time window is determined according to the first rate. For example, the larger the first rate, the longer the first time window; the smaller the first rate, the shorter the first time window.
需要说明的,在第一数据包包括第一指示信息、第一前向链路指示信息、校验信息和第一时间窗口时,该第一指示信息是第一数据包内的至少一个第一比特位,第一数据包内的至少一个第一比特位的取值为第一数值时第一数据包内的至少一个第一比特位用于指示第一速率。第一前向链路指示信息是第一数据包内的至少一个第二比特位,第一数据包内的至少一个第二比特位的取值为第二数值时第一数据包内的至少一个第二比特位用于指示第一前向链路指示信息所指示的前向链路。第一数据包包括的校验信息是第一数据包内的至少一个第三比特位,第一数据包内的至少一个第三比特位的取值为第三数值时第一数据包内的至少一个第三比特位用于第二电子器件确定至少一个第二校验包。第一时间窗口是第一数据包内的至少一个第四比特位,第一数据包内的至少一个第四比特位的取值为第四数值时第一数据包内的至少一个第四比特位用于指示该第一时间窗口。其中,第一数值、第二数值、第三数值、第四数值可以相同,也可以部分相同,也可以完全不同。进一步的,第一数据包还用于指示第二电子器件进行前向链路切换,且切换后的前向链路为第一前向链路指示信息所指示的前向链路。It should be noted that when the first data packet includes the first indication information, the first forward link indication information, the check information, and the first time window, the first indication information is at least one first indication in the first data packet. Bits, when the value of at least one first bit in the first data packet is a first value, at least one first bit in the first data packet is used to indicate the first rate. The first forward link indication information is at least one second bit in the first data packet, and the value of at least one second bit in the first data packet is at least one bit in the first data packet when the value is the second value The second bit is used to indicate the forward link indicated by the first forward link indication information. The check information included in the first data packet is at least one third bit in the first data packet, and when the value of the at least one third bit in the first data packet is the third value, at least A third bit is used by the second electronic device to determine at least one second verification packet. The first time window is at least one fourth bit in the first data packet, and when the value of at least one fourth bit in the first data packet is a fourth value, at least one fourth bit in the first data packet Used to indicate the first time window. Among them, the first numerical value, the second numerical value, the third numerical value, and the fourth numerical value may be the same, or may be partly the same, or may be completely different. Further, the first data packet is also used to instruct the second electronic device to perform forward link switching, and the switched forward link is the forward link indicated by the first forward link indication information.
在第一数据包包括第一指示信息、第一后向链路指示信息、校验信息和第一时间窗口时,该第一指示信息是第一数据包内的至少一个第一比特位,第一数据包内的至少一个第一比特位的取值为第一数值时第一数据包内的至少一个第一比特位用于指示第一速率。第一后向链路指示信息是第一数据包内的至少一个第二比特位,第一数据包内的至少一个第二比特位的取值为第二数值时第一数据包内的至少一个第二比特位用于指示第一后向链路指示信息所指示的后向链路。第一数据包包括的校验信息是第一数据包内的至少一个第三比特位,第一数据包内的至少一个第三比特位的取值为第三数值时第一数据包内的至少一个第三比特位用于第二电子器件确定该第二校验包。第一时间窗口是第一数据包内的至少一个第四比特位,第一数据包内的至少一个第四比特位的取值为第四数值时第一数据包内的至少一个第四比特位用于指示该第一时间窗口。其中,第一数值、第二数值、第三数 值、第四数值可以相同,也可以部分相同,也可以完全不同。进一步的,第一数据包还用于指示第二电子器件进行后向链路切换,且切换后的后向链路为第一后向链路指示信息所指示的后向链路。When the first data packet includes the first indication information, the first backward link indication information, the check information, and the first time window, the first indication information is at least one first bit in the first data packet. When the value of at least one first bit in a data packet is a first value, at least one first bit in the first data packet is used to indicate the first rate. The first backward link indication information is at least one second bit in the first data packet, and the value of at least one second bit in the first data packet is at least one bit in the first data packet when the value is the second value The second bit is used to indicate the backward link indicated by the first backward link indication information. The check information included in the first data packet is at least one third bit in the first data packet, and when the value of the at least one third bit in the first data packet is the third value, at least A third bit is used by the second electronic device to determine the second verification packet. The first time window is at least one fourth bit in the first data packet, and when the value of at least one fourth bit in the first data packet is a fourth value, at least one fourth bit in the first data packet Used to indicate the first time window. Among them, the first numerical value, the second numerical value, the third numerical value, and the fourth numerical value may be the same, partly the same, or completely different. Further, the first data packet is also used to instruct the second electronic device to perform backward link switching, and the switched backward link is the backward link indicated by the first backward link indication information.
在第一数据包包括第一指示信息、第一前向链路指示信息、第一后向链路指示信息、校验信息和第一时间窗口时,该第一指示信息是第一数据包内的至少一个第一比特位,第一数据包内的至少一个第一比特位的取值为第一数值时第一数据包内的至少一个第一比特位用于指示第一速率。第一前向链路指示信息是第一数据包内的至少一个第二比特位,第一数据包内的至少一个第二比特位的取值为第二数值时第一数据包内的至少一个第二比特位用于指示第一前向链路指示信息所指示的前向链路。第一后向链路指示信息是第一数据包内的至少一个第三比特位,第一数据包内的至少一个第三比特位的取值为第三数值时第一数据包内的至少一个第三比特位用于指示第一后向链路指示信息所指示的后向链路。第一数据包包括的校验信息是第一数据包内的至少一个第四比特位,第一数据包内的至少一个第四比特位的取值为第四数值时第一数据包内的至少一个第四比特位用于指第二电子器件确定该第二校验包。第一时间窗口是第一数据包内的至少一个第五比特位,第一数据包内的至少一个第五比特位的取值为第五数值时第一数据包内的至少一个第五比特位用于指示该第一时间窗口。可以理解的,第一数值、第二数值、第三数值、第四数值、第五数值可以相同,也可以部分相同,也可以完全不同。进一步的,第一数据包还用于指示第二电子器件进行前向链路切换和后向链路切换,且切换后的前向链路为第一前向链路指示信息所指示的前向链路,切换后的后向链路为第一后向链路指示信息所指示的后向链路。When the first data packet includes the first indication information, the first forward link indication information, the first backward link indication information, the check information and the first time window, the first indication information is in the first data packet When the value of at least one first bit in the first data packet is the first value, the at least one first bit in the first data packet is used to indicate the first rate. The first forward link indication information is at least one second bit in the first data packet, and the value of at least one second bit in the first data packet is at least one bit in the first data packet when the value is the second value The second bit is used to indicate the forward link indicated by the first forward link indication information. The first backward link indication information is at least one third bit in the first data packet, and the value of at least one third bit in the first data packet is at least one bit in the first data packet when the value is the third value The third bit is used to indicate the backward link indicated by the first backward link indication information. The check information included in the first data packet is at least one fourth bit in the first data packet, and when the value of at least one fourth bit in the first data packet is the fourth value, at least one bit in the first data packet is A fourth bit is used to indicate that the second electronic device determines the second check packet. The first time window is at least one fifth bit in the first data packet, and when the value of at least one fifth bit in the first data packet is the fifth value, at least one fifth bit in the first data packet Used to indicate the first time window. It can be understood that the first numerical value, the second numerical value, the third numerical value, the fourth numerical value, and the fifth numerical value may be the same, or may be partly the same, or may be completely different. Further, the first data packet is also used to instruct the second electronic device to perform forward link switching and backward link switching, and the forward link after the switching is the forward link indicated by the first forward link indication information. Link, the backward link after the handover is the backward link indicated by the first backward link indication information.
需要说明的,在第一数据包包括第一后向链路指示信息时,第一数据包还用于指示第二电子器件在检测该第一后向链路指示信息所指示的后向链路上未传输数据时,根据第一数据包进行传输速率切换;或,It should be noted that when the first data packet includes the first backward link indication information, the first data packet is also used to instruct the second electronic device to detect the backward link indicated by the first backward link indication information. When no data is being transmitted, switch the transmission rate according to the first data packet; or,
第一数据包还用于指示第二电子器件在检测第一后向链路指示信息所指示的后向链路上数据传输结束时,根据第一数据包进行传输速率切换。The first data packet is also used to instruct the second electronic device to switch the transmission rate according to the first data packet when detecting the end of data transmission on the backward link indicated by the first backward link indication information.
举例来说,假设第一数据包包括第一指示信息、第一前向链路指示信息、第一后向链路指示信息、校验信息和第一时间窗口,参见表1,表1为第一数据包不同比特位所指示信息,如表1所示:For example, suppose that the first data packet includes first indication information, first forward link indication information, first backward link indication information, check information, and first time window. See Table 1, which is the first time window. The information indicated by different bits of a data packet is shown in Table 1:
表1为第一数据包不同比特位所指示信息Table 1 shows the information indicated by the different bits of the first data packet
Figure PCTCN2021071154-appb-000001
Figure PCTCN2021071154-appb-000001
Figure PCTCN2021071154-appb-000002
Figure PCTCN2021071154-appb-000002
可以看出,表1中,第一数据包中0-1的比特位在取值不同时,0-1的比特位所指示的速率也不同。比如,0-1的比特位的取值为00时,0-1的比特位所指示的速率为速率1;0-1的比特位的取值为01时,0-1的比特位所指示的速率为速率2;0-1的比特位的取值为10时,0-1的比特位所指示的速率为速率3;0-1的比特位的取值为11时,0-1的比特位所指示的速率为速率4。第一数据包中2-3的比特位在取值不同时,2-3的比特位所指示的前向链路也不同。比如,2-3的比特位的取值为00时,2-3的比特位所指示的前向链路为前向链路1;2-3的比特位的取值为01时,2-3的比特位所指示的前向链路为前向链路2;2-3的比特位的取值为10时,2-3的比特位所指示的前向链路为前向链路3;2-3的比特位的取值为11时,2-3的比特位所指示的前向链路为前向链路4。第一数据包中4-5的比特位在取值不同时,4-5的比特位所指示的后向链路也不同。比如,4-5的比特位的取值为00时,4-5的比特位所指示的后向链路为后向链路1;4-5的比特位的取值为01时,4-5的比特位所指示的后向链路为后向链路2;4-5的比特位的取值为10时,4-5的比特位所指示的后向链路为后向链路3;4-5的比特位的取值为11时,4-5的比特位所指示的后向链路为后向链路4。第一数据包中6-7的比特位在取值不同时,6-7的比特位所指示的校验信息也不同。6-7的比特位的取值为00时,6-7的比特位所指示的校验信息为校验信息1;6-7的比特位的取值为01时,6-7的比特位所指示的校验信息为校验信息2;6-7的比特位的取值为10时,6-7的比特位所指示的校验信息为校验信息3;6-7的比特位的取值为11时,6-7的比特位所指示的校验信息为校验信息4。第一数据包中8-9的比特位在取值不同时,8-9的比特位所指示的第一时间窗口也不同。8-9的比特位的取值为00时,8-9的比特位所指示的第一时间窗口为第一时间窗口1;8-9的比特位的取值为01时,8-9的比特位所指示的第一时间窗口为第一时间窗口2;8-9的比特位的取值为10时,8-9的比特位所指示的第一时间窗口为第一时间窗口3;8-9的比特位的取值为11时,8-9的比特位所指示的第一时间窗口为第一时间窗口4。It can be seen that in Table 1, when the values of the 0-1 bits in the first data packet are different, the rates indicated by the 0-1 bits are also different. For example, when the value of the 0-1 bit is 00, the rate indicated by the 0-1 bit is rate 1; when the 0-1 bit is 01, the 0-1 bit indicates When the value of the 0-1 bit is 10, the rate indicated by the 0-1 bit is the rate 3; when the value of the 0-1 bit is 11, the value of 0-1 The rate indicated by the bit is rate 4. When the values of the bits 2-3 in the first data packet are different, the forward link indicated by the bits 2-3 is also different. For example, when the value of bit 2-3 is 00, the forward link indicated by bit 2-3 is forward link 1; when the bit value of 2-3 is 01, 2- The forward link indicated by bit 3 is forward link 2; when the value of bit 2-3 is 10, the forward link indicated by bit 2-3 is forward link 3. ; When the value of bits 2-3 is 11, the forward link indicated by the bits 2-3 is forward link 4. When the values of bits 4-5 in the first data packet are different, the backward link indicated by the bits 4-5 is also different. For example, when the value of bit 4-5 is 00, the backward link indicated by bit 4-5 is backward link 1; when the value of bit 4-5 is 01, 4- The backward link indicated by bit 5 is backward link 2; when the value of bit 4-5 is 10, the backward link indicated by bit 4-5 is backward link 3. ; When the value of bits 4-5 is 11, the backward link indicated by bits 4-5 is backward link 4. When the values of bits 6-7 in the first data packet are different, the check information indicated by the bits 6-7 is also different. When the value of bit 6-7 is 00, the check information indicated by bit 6-7 is check information 1; when the bit value of 6-7 is 01, bit 6-7 The indicated check information is check information 2; when the value of bits 6-7 is 10, the check information indicated by bits 6-7 is check information 3; When the value is 11, the check information indicated by bits 6-7 is check information 4. When the values of bits 8-9 in the first data packet are different, the first time window indicated by the bits 8-9 is also different. When the value of the bit 8-9 is 00, the first time window indicated by the bit 8-9 is the first time window 1; when the bit 8-9 is 01, the value of the 8-9 bit The first time window indicated by the bit is the first time window 2; when the value of the bit 8-9 is 10, the first time window indicated by the bit 8-9 is the first time window 3; 8 When the value of the -9 bit is 11, the first time window indicated by the 8-9 bit is the first time window 4.
其中,若速率1小于速率2,速率2小于速率3,速率3小于速率4。那么,速率1例如可以为1.5千兆每秒(gigaBit per second,Gbps);速率2例如可以为4Gbps;速率3例如可以为8Gbps;速率4例如可以为16Gbps。可以理解的,具体那个速率最大,那个速率最小,在此不做限制。Among them, if rate 1 is less than rate 2, rate 2 is less than rate 3, and rate 3 is less than rate 4. Then, the rate 1 may be, for example, 1.5 gigabit per second (Gbps); the rate 2 may be, for example, 4Gbps; the rate 3 may be, for example, 8Gbps; and the rate 4 may be, for example, 16Gbps. It is understandable that the specific rate is the largest and the rate is the smallest, so there is no restriction here.
另外,举例来说,参见图3,图3为本申请实施例提供的链路示意图。可以看出,第一电子器件的物理层与第二电子器件的物理层之间的链路包括4条前向链路和4条后向链路。比如,链路编码为00的前向链路可以为前向链路1,链路编码为01的前向链路可以 为前向链路2,链路编码为10的前向链路可以为前向链路3,链路编码为11的前向链路可以为前向链路4。又比如,链路编码为00的后向链路可以为后向链路1,链路编码为01的后向链路可以为后向链路2,链路编码为10的后向链路可以为后向链路3,链路编码为11的后向链路可以为后向链路4。In addition, for example, refer to FIG. 3, which is a schematic diagram of a link provided in an embodiment of the application. It can be seen that the link between the physical layer of the first electronic device and the physical layer of the second electronic device includes 4 forward links and 4 backward links. For example, the forward link whose link code is 00 can be forward link 1, the forward link whose link code is 01 can be forward link 2, and the forward link whose link code is 10 can be Forward link 3, the forward link whose link code is 11 can be forward link 4. For another example, a backward link with a link code of 00 can be backward link 1, a backward link with a link code of 01 can be backward link 2, and a backward link with a link code of 10 can be It is the backward link 3, and the backward link whose link code is 11 can be the backward link 4.
进一步的,第二电子器件接收第一电子器件发送的第一数据包,即第二电子器件的控制模块通过第二电子器件的接收机接收第一电子器件的控制模块通过第一电子器件的发射机发送的第一数据包。具体的,参见图4,图4为本申请实施例提供的又一种传输速率切换方法的流程示意图。可以看出,第一电子器件的协议层和第一电子器件的物理层之间有交互过程,第二电子器件的协议层和第二电子器件的物理层之间也有交互过程。具体的,第一电子器件的协议层可以向第一电子器件的物理层发送传输速率切换指令。该传输速率切换指令可以包括第一速率、第一前向链路指示信息、校验信息和第一时间窗口。该传输速率切换指令也可以包括第一速率、第一后向链路指示信息、校验信息和第一时间窗口。该传输速率切换指令还可以包括第一速率、第一前向链路指示信息、第一后向链路指示信息、校验信息和第一时间窗口。可以理解的,第一电子器件的物理层可以接收第一电子器件的协议层发送的该传输速率切换指令,即第一电子器件的控制模块接收该传输速率切换指令。进一步的,第一电子器件的控制模块可以对该传输速率切换指令进行解析,得到解析后的传输速率切换指令。接着,该第一电子器件的控制模块可以基于解析后的传输速率切换指令生成第一数据包。然后,第一电子器件的控制模块可以通过第一电子器件的发射机向第二电子器件的接收机发送的第一数据包。Further, the second electronic device receives the first data packet sent by the first electronic device, that is, the control module of the second electronic device receives the control module of the first electronic device through the receiver of the second electronic device. The first data packet sent by the machine. Specifically, referring to FIG. 4, FIG. 4 is a schematic flowchart of another transmission rate switching method provided by an embodiment of the application. It can be seen that there is an interaction process between the protocol layer of the first electronic device and the physical layer of the first electronic device, and there is also an interaction process between the protocol layer of the second electronic device and the physical layer of the second electronic device. Specifically, the protocol layer of the first electronic device may send a transmission rate switching instruction to the physical layer of the first electronic device. The transmission rate switching instruction may include the first rate, the first forward link indication information, the check information, and the first time window. The transmission rate switching instruction may also include the first rate, the first backward link indication information, the check information, and the first time window. The transmission rate switching instruction may further include the first rate, the first forward link indication information, the first backward link indication information, the check information, and the first time window. It is understandable that the physical layer of the first electronic device can receive the transmission rate switching instruction sent by the protocol layer of the first electronic device, that is, the control module of the first electronic device receives the transmission rate switching instruction. Further, the control module of the first electronic device may analyze the transmission rate switching instruction to obtain the analyzed transmission rate switching instruction. Then, the control module of the first electronic device may generate the first data packet based on the parsed transmission rate switching instruction. Then, the control module of the first electronic device can send the first data packet to the receiver of the second electronic device through the transmitter of the first electronic device.
进一步的,第二电子器件的控制模块可以对第一数据包进行解析。若解析后第二电子器件的控制模块确定第一数据包包括指示信息、第一前向链路指示信息、校验信息和第一时间窗口,那么第二电子器件的控制模块可以控制第二电子器件的接收机根据第一数据包进行传输速率切换且切换后的传输速率为第一速率。即,第二电子器件的控制模块可以控制第二电子器件的接收机根据第一数据包进行前向链路切换,切换后的前向链路为第一前向链路指示信息所指示的前向链路。Further, the control module of the second electronic device can analyze the first data packet. If after parsing, the control module of the second electronic device determines that the first data packet includes indication information, first forward link indication information, verification information, and the first time window, then the control module of the second electronic device can control the second electronic device. The receiver of the device switches the transmission rate according to the first data packet, and the transmission rate after the switching is the first rate. That is, the control module of the second electronic device can control the receiver of the second electronic device to switch the forward link according to the first data packet, and the switched forward link is the forward link indicated by the first forward link indication information. To the link.
若解析后第二电子器件的控制模块确定第一数据包包括指示信息、第一后向链路指示信息、校验信息和第一时间窗口,那么第二电子器件的物理层可以向第二电子器件的协议层发送后向链路切速请求,即第二电子器件的控制模块可以向第二电子器件的协议层发送后向链路切速请求。在接收第二电子器件的协议层发送的后向链路切速响应时,第二电子器件的控制模块在检测该第一后向链路指示信息所指示的后向链路上未传输数据时,控制第二电子器件的发射机根据第一数据包进行传输速率切换,或第二电子器件的控制模块在检测第一后向链路指示信息所指示的后向链路上数据传输结束时,控制第二电子器件的发射机根据第一数据包进行传输速率切换。If the control module of the second electronic device after parsing determines that the first data packet includes the indication information, the first backward link indication information, the verification information and the first time window, then the physical layer of the second electronic device can send a message to the second electronic device. The protocol layer of the device sends a backward link speed cut request, that is, the control module of the second electronic device can send a backward link speed cut request to the protocol layer of the second electronic device. When receiving the backward link speed cut response sent by the protocol layer of the second electronic device, the control module of the second electronic device detects that no data is being transmitted on the backward link indicated by the first backward link indication information , When the transmitter of the second electronic device is controlled to switch the transmission rate according to the first data packet, or the control module of the second electronic device detects the end of data transmission on the backward link indicated by the first backward link indication information, Control the transmitter of the second electronic device to switch the transmission rate according to the first data packet.
若解析后第二电子器件的控制模块确定第一数据包包括指示信息、第一前向链路指示信息、第一后向链路指示信息、校验信息和第一时间窗口,那么,第二电子器件的控制模块可以控制第二电子器件的接收机根据第一数据包进行前向链路切换,切换后的前向链路为第一前向链路指示信息所指示的前向链路,同时向第二电子器件的协议层发送后向链路切速请求。在接收第二电子器件的协议层发送的后向链路切速响应时,第二电子器件的控制模块在检测该第一后向链路指示信息所指示的后向链路上未传输数据时,控制第二电子器件的发射机根据第一数据包进行传输速率切换,或第二电子器件的控制模块在检测第一 后向链路指示信息所指示的后向链路上数据传输结束时,控制第二电子器件的发射机根据第一数据包进行传输速率切换。If after parsing, the control module of the second electronic device determines that the first data packet includes indication information, first forward link indication information, first backward link indication information, verification information, and the first time window, then the second The control module of the electronic device can control the receiver of the second electronic device to switch the forward link according to the first data packet, and the switched forward link is the forward link indicated by the first forward link indication information, At the same time, a backward link speed cut request is sent to the protocol layer of the second electronic device. When receiving the backward link speed cut response sent by the protocol layer of the second electronic device, the control module of the second electronic device detects that no data is being transmitted on the backward link indicated by the first backward link indication information , When the transmitter of the second electronic device is controlled to switch the transmission rate according to the first data packet, or the control module of the second electronic device detects the end of data transmission on the backward link indicated by the first backward link indication information, Control the transmitter of the second electronic device to switch the transmission rate according to the first data packet.
可以看出,上述技术方案中,实现了采用指示信息指示速率,为后续第二电子器件进行传输速率切换做准备。也实现了精准控制切换链路,避免了现有技术中每切换一次链路都需要进行多次交互的问题,简化了协商过程,提高传输速率切换效率。另外,还避免了在根据第一数据包进行传输速率切换后由于切速后数据传输不可靠导致在第一后向链路指示信息所指示的后向链路上数据传输失败的问题。It can be seen that in the above technical solution, the use of the indication information to indicate the rate is implemented to prepare for the subsequent switching of the transmission rate of the second electronic device. It also realizes precise control of the switching link, avoids the problem that multiple interactions are required for each link switching in the prior art, simplifies the negotiation process, and improves the efficiency of transmission rate switching. In addition, the problem of data transmission failure on the backward link indicated by the first backward link indication information due to unreliable data transmission after the speed cut after the transmission rate is switched according to the first data packet is also avoided.
202、第一电子器件根据第一速率进行传输速率切换,第一电子器件切换后的传输速率为第一速率。202. The first electronic device performs transmission rate switching according to the first rate, and the transmission rate after the switching of the first electronic device is the first rate.
可以看出,上述技术方案中,简化了协商过程,提高传输速率切换效率。It can be seen that in the above technical solution, the negotiation process is simplified, and the transmission rate switching efficiency is improved.
参见图5,图5为本申请实施例提供的又一种传输速率切换方法的流程示意图。如图5所示,该方法应用于电子设备,该电子设备包括第一电子器件和第二电子器件,该方法包括:Referring to FIG. 5, FIG. 5 is a schematic flowchart of another transmission rate switching method provided by an embodiment of the application. As shown in FIG. 5, the method is applied to an electronic device, the electronic device includes a first electronic device and a second electronic device, and the method includes:
501、第二电子器件接收第一电子器件发送的第一数据包,第一数据包用于指示第二电子器件进行传输速率切换且切换后的传输速率为第一速率。501. The second electronic device receives a first data packet sent by the first electronic device, where the first data packet is used to instruct the second electronic device to switch the transmission rate and the transmission rate after the switching is the first rate.
其中,关于第一数据包的内容可以参考图2中的步骤201,在此不加赘述。For the content of the first data packet, reference may be made to step 201 in FIG. 2, which will not be repeated here.
502、第一电子器件根据第一速率进行传输速率切换,第一电子器件切换后的传输速率为第一速率。502. The first electronic device switches the transmission rate according to the first rate, and the transmission rate after the switching of the first electronic device is the first rate.
503、第一电子器件采用第一速率向第二电子器件发送至少一个第一校验包,该第一校验包包括校验信息对应的校验。503. The first electronic device sends at least one first verification packet to the second electronic device at the first rate, where the first verification packet includes a verification corresponding to the verification information.
504、在第一时间窗口内接收到该第一校验包中的N个第一校验包时,第二电子器件采用第一速率向第一电子器件发送至少一个第二校验包。504. When receiving N first check packets in the first check packet within the first time window, the second electronic device sends at least one second check packet to the first electronic device at the first rate.
其中,该第二校验包是第二电子器件在第一时间窗口内发送的且该第二校验包是第二电子器件根据校验信息确定的,该N为大于1的整数。N例如可以为2、3、4、5、6、7、10等数值。Wherein, the second verification packet is sent by the second electronic device within the first time window and the second verification packet is determined by the second electronic device according to the verification information, and the N is an integer greater than 1. N can be 2, 3, 4, 5, 6, 7, 10, etc., for example.
其中,若在第一时间窗口内接收到该第二校验包中的N个第二个校验包,则执行步骤505;若在第一时间窗口内未接收到该第二校验包中的N个第二个校验包,则执行步骤506。Wherein, if N second check packets in the second check packet are received within the first time window, step 505 is executed; if the second check packet is not received within the first time window If there are N second parity packets of, step 506 is executed.
可以理解的,在第一电子器件采用第一速率向第二电子器件发送该第一校验包时,第一电子器件开始计时,得到第一电子器件对应的第一开始时间。进一步的,以第一电子器件对应的第一开始时间为基准,若在第一时间窗口内接收到该第二校验包中的N个第二校验包,则执行步骤505。以第一电子器件对应的第一开始时间为基准,若在第一时间窗口内未接收到该第二校验包中的N个第二校验包,则执行步骤506。进一步的,该第一电子器件对应的第一结束时间是根据第一电子器件对应的第一开始时间和第一时间窗口确定的。It is understandable that when the first electronic device uses the first rate to send the first verification packet to the second electronic device, the first electronic device starts timing to obtain the first start time corresponding to the first electronic device. Further, based on the first start time corresponding to the first electronic device, if N second check packets in the second check packet are received within the first time window, step 505 is executed. Based on the first start time corresponding to the first electronic device, if N second check packets in the second check packet are not received within the first time window, step 506 is executed. Further, the first end time corresponding to the first electronic device is determined according to the first start time and the first time window corresponding to the first electronic device.
其中,第一电子器件采用第一速率向第二电子器件发送该第一校验包,即第一电子器件的控制模块采用第一速率通过第一电子器件的发射机向第二电子器件的接收机发送该第一校验包。具体的,参见图6,图6为本申请实施例提供的又一种传输速率切换方法的流程示意图。如图6所示,可以看出,第一电子器件的控制模块可以采用第一速率通过第一电子器件的发射机向第二电子器件的接收机发送该第一校验包。当第二电子器件接收到 该第一校验包中的N个第一校验包时,第二电子器件的控制模块可以根据第一数据包包括的校验信息,确定该第二校验包。接着,第二电子器件可以采用第一速率向第一电子器件发送该第二校验包。即第二电子器件的控制模块可以采用第一速率通过第二电子器件的发射机向第一电子器件的接收机发送该第二校验包。Wherein, the first electronic device uses the first rate to send the first check packet to the second electronic device, that is, the control module of the first electronic device uses the first rate to receive the second electronic device through the transmitter of the first electronic device The machine sends the first check packet. Specifically, referring to FIG. 6, FIG. 6 is a schematic flowchart of another method for switching transmission rates according to an embodiment of the application. As shown in FIG. 6, it can be seen that the control module of the first electronic device can send the first check packet to the receiver of the second electronic device through the transmitter of the first electronic device at the first rate. When the second electronic device receives N first verification packets in the first verification packet, the control module of the second electronic device may determine the second verification packet according to the verification information included in the first data packet . Then, the second electronic device can send the second verification packet to the first electronic device at the first rate. That is, the control module of the second electronic device can send the second check packet to the receiver of the first electronic device through the transmitter of the second electronic device at the first rate.
可以理解的,该第一校验包和该第二校验包是相同的校验包。It can be understood that the first verification packet and the second verification packet are the same verification packet.
需要说明的,在第二电子器件根据第一数据包进行传输速率切换时,第二电子器件开始计时,得到第二电子器件对应的第一开始时间。以第二电子器件对应的第一开始时间为基准,在第一时间窗口内接收到该第一校验包中的N个第一校验包时,第二电子器件则采用第一速率向第一电子器件发送至少一个第二校验包。同时,在第一时间窗口内接收到该第一校验包中的N个第二校验包时,第二电子器件则确定采用第一速率向第一电子器件传输数据。在第二电子器件确定采用第一速率向第一电子器件传输数据后,无论第二电子器件是否已经停止计时,第二电子器件都会停止采用第一速率向第一电子器件发送该第二校验包。另外,在第二电子器件确定采用第一速率向第一电子器件传输数据后,第二电子器件的物理层可以向第二电子器件的协议层发送速率切换成功的消息。此时,第二电子器件处于待机状态,等待后续采用第一速率传输数据。It should be noted that when the second electronic device switches the transmission rate according to the first data packet, the second electronic device starts timing to obtain the first start time corresponding to the second electronic device. Based on the first start time corresponding to the second electronic device, when N first verification packets in the first verification packet are received within the first time window, the second electronic device uses the first rate to move to the first An electronic device sends at least one second verification packet. At the same time, when receiving N second check packets in the first check packet within the first time window, the second electronic device determines to use the first rate to transmit data to the first electronic device. After the second electronic device determines to use the first rate to transmit data to the first electronic device, regardless of whether the second electronic device has stopped timing, the second electronic device will stop using the first rate to send the second check to the first electronic device Bag. In addition, after the second electronic device determines to use the first rate to transmit data to the first electronic device, the physical layer of the second electronic device may send a rate switching success message to the protocol layer of the second electronic device. At this time, the second electronic device is in a standby state, waiting for subsequent data transmission at the first rate.
进一步的,该第二电子器件对应的第一结束时间是根据第二电子器件对应的第一开始时间和第一时间窗口确定的。Further, the first end time corresponding to the second electronic device is determined according to the first start time and the first time window corresponding to the second electronic device.
另外,若在第一时间窗口内未接收到该第一校验包中的N个第一校验包,第二电子器件则可以将第一速率切换为第二电子器件切换传输速率为第一速率之前的速率。In addition, if N first check packets in the first check packet are not received within the first time window, the second electronic device can switch the first rate to the second electronic device to switch the transmission rate to the first The rate before the rate.
505、第一电子器件则确定采用第一速率向第二电子器件传输数据。505. The first electronic device determines to use the first rate to transmit data to the second electronic device.
其中,在第一电子器件确定采用第一速率向第二电子器件传输数据后,无论第一电子器件是否已经停止计时,第一电子器件都会停止采用第一速率向第二电子器件发送该第一校验包。另外,在第一电子器件确定采用第一速率向第二电子器件传输数据后,第一电子器件的物理层可以向第一电子器件的协议层发送速率切换成功的消息。此时,第一电子器件处于待机状态,等待后续采用第一速率传输数据。Wherein, after the first electronic device determines to use the first rate to transmit data to the second electronic device, regardless of whether the first electronic device has stopped timing, the first electronic device will stop using the first rate to transmit the first electronic device to the second electronic device. Check the package. In addition, after the first electronic device determines to use the first rate to transmit data to the second electronic device, the physical layer of the first electronic device may send a rate switching success message to the protocol layer of the first electronic device. At this time, the first electronic device is in a standby state, waiting for subsequent data transmission at the first rate.
506、第一电子器件则在采用第二速率向第二电子器件发送第一数据包后再次采用第一速率向第二电子器件发送该第一校验包。506. The first electronic device sends the first data packet to the second electronic device at the second rate and then sends the first check packet to the second electronic device at the first rate again.
需要说明的,在采用第二速率向第二电子器件发送第一数据包之前,第一电子器件可以将第一速率切换为第二速率,进而第一电子器件可以采用第二速率向第二电子器件发送第一数据包。进一步的,在采用第二速率向第二电子器件发送第一数据包后,在采用第一速率向第二电子器件发送该第一校验包之前,第一电子器件还根据第一速率进行传输速率切换,第一电子器件切换后的传输速率为第一速率。可以理解的,在第一电子器件再次采用第一速率向第二电子器件发送该第一校验包时,第一电子器件开始计时,得到第一电子器件对应的第二开始时间。进一步的,以第一电子器件对应的第二开始时间为基准,若在第一时间窗口内再次接收到该第二校验包中的N个第二校验包,第一电子器件则确定采用第一速率向第二电子器件传输数据。进一步的,后续过程可以参考图5中的步骤505关于在第一电子器件确定采用第一速率向第二电子器件传输数据后的相关内容,在此不加赘述。It should be noted that before using the second rate to send the first data packet to the second electronic device, the first electronic device may switch the first rate to the second rate, and the first electronic device may use the second rate to send the second electronic device to the second electronic device. The device sends the first data packet. Further, after sending the first data packet to the second electronic device at the second rate, before sending the first check packet to the second electronic device at the first rate, the first electronic device also transmits at the first rate Rate switching, the transmission rate of the first electronic device after switching is the first rate. It is understandable that when the first electronic device sends the first verification packet to the second electronic device at the first rate again, the first electronic device starts timing to obtain the second start time corresponding to the first electronic device. Further, based on the second start time corresponding to the first electronic device, if N second verification packets in the second verification packet are received again within the first time window, the first electronic device determines to use The first rate transmits data to the second electronic device. Further, in the subsequent process, reference may be made to step 505 in FIG. 5 for the relevant content after the first electronic device determines to use the first rate to transmit data to the second electronic device, which will not be repeated here.
以第一电子器件对应的第二开始时间为基准,若在第一时间窗口内未接收到该第二校验包中的N个第二校验包,则执行步骤507。进一步的,该第一电子器件对应的第二结束时间是根据第一电子器件对应的第二开始时间和第一时间窗口确定的。Based on the second start time corresponding to the first electronic device, if N second check packets in the second check packet are not received within the first time window, step 507 is executed. Further, the second end time corresponding to the first electronic device is determined according to the second start time and the first time window corresponding to the first electronic device.
507、在第一时间窗口内接收到该第一校验包中的N个第一校验包时,第二电子器件再次采用第一速率向第一电子器件发送该第二校验包。507. When receiving N first check packets in the first check packet within the first time window, the second electronic device sends the second check packet to the first electronic device again at the first rate.
其中,若在第一时间窗口内接收到该第二校验包中的N个第二校验包,第一电子器件则确定采用第一速率向第二电子器件传输数据。进一步的,后续过程可以参考图5中的步骤505关于在第一电子器件确定采用第一速率向第二电子器件传输数据后的相关内容,在此不加赘述。Wherein, if N second check packets in the second check packet are received within the first time window, the first electronic device determines to use the first rate to transmit data to the second electronic device. Further, in the subsequent process, reference may be made to step 505 in FIG. 5 for the relevant content after the first electronic device determines to use the first rate to transmit data to the second electronic device, which will not be repeated here.
若在第一时间窗口内仍未接收到该第二校验包中的N个第二校验包,则执行步骤508。If N second check packets in the second check packet have not been received within the first time window, step 508 is executed.
需要说明的,在第二电子器件再次根据第一数据包进行传输速率切换时,第二电子器件开始计时,得到第二电子器件对应的第二开始时间。以第二电子器件对应的第二开始时间为基准,在第一时间窗口内接收到该第一校验包中的N个第一校验包时,第二电子器件则采用第一速率向第一电子器件发送至少一个第二校验包。同时,在第一时间窗口内接收到该第一校验包中的N个第一校验包时,第二电子器件则确定采用第一速率向第一电子器件传输数据。在第二电子器件确定采用第一速率向第一电子器件传输数据后,无论第二电子器件是否已经停止计时,第二电子器件都会停止采用第一速率向第一电子器件发送该第二校验包。另外,在第二电子器件确定采用第一速率向第一电子器件传输数据后,第二电子器件的物理层可以向第二电子器件的协议层发送速率切换成功的消息。此时,第二电子器件处于待机状态,等待后续采用第一速率传输数据。It should be noted that when the second electronic device switches the transmission rate according to the first data packet again, the second electronic device starts timing to obtain the second start time corresponding to the second electronic device. Based on the second start time corresponding to the second electronic device, when N first verification packets in the first verification packet are received within the first time window, the second electronic device uses the first rate to move to the first An electronic device sends at least one second verification packet. At the same time, when receiving N first check packets in the first check packet within the first time window, the second electronic device determines to use the first rate to transmit data to the first electronic device. After the second electronic device determines to use the first rate to transmit data to the first electronic device, regardless of whether the second electronic device has stopped timing, the second electronic device will stop using the first rate to send the second check to the first electronic device Bag. In addition, after the second electronic device determines to use the first rate to transmit data to the first electronic device, the physical layer of the second electronic device may send a rate switching success message to the protocol layer of the second electronic device. At this time, the second electronic device is in a standby state, waiting for subsequent data transmission at the first rate.
进一步的,该第二电子器件对应的第二结束时间是根据第二电子器件对应的第二开始时间和第一时间窗口确定的。Further, the second end time corresponding to the second electronic device is determined according to the second start time and the first time window corresponding to the second electronic device.
508、第一电子器件则在将第一速率切换为第三速率后采用第三速率向第二电子器件发送第二数据包,第二数据包用于指示第二电子器件进行传输速率切换且切换后的传输速率为第四速率,根据第四速率进行传输速率切换,第一电子器件切换后的传输速率为第四速率,采用第四速率向第二电子器件发送该第一校验包,直到第一电子器件确定采用第四速率向第二电子器件传输数据为止。508. The first electronic device uses the third rate to send a second data packet to the second electronic device after switching the first rate to the third rate, and the second data packet is used to instruct the second electronic device to switch the transmission rate and switch The latter transmission rate is the fourth rate, and the transmission rate is switched according to the fourth rate. The transmission rate after the first electronic device is switched is the fourth rate. The fourth rate is used to send the first check packet to the second electronic device until The first electronic device determines to use the fourth rate to transmit data to the second electronic device.
其中,第二速率是第一电子器件切换传输速率为第一速率之前的速率,第二速率小于第一速率,第三速率是第一电子器件对应的传输速率中速率最低的速率,第四速率大于第二速率且第四速率小于第一速率。Among them, the second rate is the rate before the first electronic device switches the transmission rate to the first rate, the second rate is less than the first rate, and the third rate is the rate with the lowest rate among the transmission rates corresponding to the first electronic device, and the fourth rate It is greater than the second rate and the fourth rate is less than the first rate.
其中,第二数据包可以包括第二指示信息、第二前向链路指示信息、校验信息和第二时间窗口,第二数据包也可以包括指示信息、第二后向链路指示信息、校验信息和第二时间窗口,第二数据包还可以包括第二指示信息、第二前向链路指示信息、第二后向链路指示信息、校验信息和第二时间窗口。进一步的,该第二指示信息用于指示第四速率。另外,该第二时间窗口是根据第四速率确定的。比如,第四速率越大,该第二时间窗口越长;第四速率越小,该第二时间窗口越短。另外,第一数据包包括的校验信息与第二数据包包括的校验信息相同。Wherein, the second data packet may include second indication information, second forward link indication information, check information, and a second time window, and the second data packet may also include indication information, second backward link indication information, Check information and a second time window. The second data packet may also include second indication information, second forward link indication information, second backward link indication information, check information, and second time window. Further, the second indication information is used to indicate the fourth rate. In addition, the second time window is determined according to the fourth rate. For example, the larger the fourth rate, the longer the second time window; the smaller the fourth rate, the shorter the second time window. In addition, the verification information included in the first data packet is the same as the verification information included in the second data packet.
需要说明的,在第二数据包包括第二指示信息、第二前向链路指示信息、校验信息和第二时间窗口时,该第二指示信息是第二数据包内的至少一个第一比特位,第二数据包内的至少一个第一比特位的取值为第一数值时第二数据包内的至少一个第一比特位用于指示第一速率。第二前向链路指示信息是第二数据包内的至少一个第二比特位,第二数据包内的至少一个第二比特位的取值为第二数值时第二数据包内的至少一个第二比特位用于指示第二前向链路指示信息所指示的前向链路。第二数据包包括的校验信息是第二数据包 内的至少一个第三比特位,第二数据包内的至少一个第三比特位的取值为第三数值时第二数据包内的至少一个第三比特位用于第二电子器件确定该第二校验包。第二时间窗口是第二数据包内的至少一个第四比特位,第二数据包内的至少一个第四比特位的取值为第四数值时第二数据包内的至少一个第四比特位用于指示该第二时间窗口。其中,第一数值、第二数值、第三数值、第四数值可以相同,也可以部分相同,也可以完全不同。进一步的,第二数据包还用于指示第二电子器件进行前向链路切换,且切换后的前向链路为第二前向链路指示信息所指示的前向链路。It should be noted that when the second data packet includes the second indication information, the second forward link indication information, the check information, and the second time window, the second indication information is at least one first item in the second data packet. Bits, when the value of at least one first bit in the second data packet is the first value, at least one first bit in the second data packet is used to indicate the first rate. The second forward link indication information is at least one second bit in the second data packet, and when the value of at least one second bit in the second data packet is the second value, at least one bit in the second data packet The second bit is used to indicate the forward link indicated by the second forward link indication information. The check information included in the second data packet is at least one third bit in the second data packet. When the value of at least one third bit in the second data packet is the third value, at least A third bit is used by the second electronic device to determine the second verification packet. The second time window is at least one fourth bit in the second data packet, and when the value of at least one fourth bit in the second data packet is the fourth value, at least one fourth bit in the second data packet Used to indicate the second time window. Among them, the first numerical value, the second numerical value, the third numerical value, and the fourth numerical value may be the same, or may be partly the same, or may be completely different. Further, the second data packet is also used to instruct the second electronic device to perform forward link switching, and the switched forward link is the forward link indicated by the second forward link indication information.
在第二数据包包括第二指示信息、第二后向链路指示信息、校验信息和第二时间窗口时,该第二指示信息是第二数据包内的至少一个第一比特位,第二数据包内的至少一个第一比特位的取值为第一数值时第二数据包内的至少一个第一比特位用于指示第一速率。第二后向链路指示信息是第二数据包内的至少一个第二比特位,第二数据包内的至少一个第二比特位的取值为第二数值时第二数据包内的至少一个第二比特位用于指示第二后向链路指示信息所指示的后向链路。第二数据包包括的校验信息是第二数据包内的至少一个第三比特位,第二数据包内的至少一个第三比特位的取值为第三数值时第二数据包内的至少一个第三比特位用于第二电子器件确定该第二校验包。第二时间窗口是第二数据包内的至少一个第四比特位,第二数据包内的至少一个第四比特位的取值为第四数值时第二数据包内的至少一个第四比特位用于指示该第二时间窗口。其中,第一数值、第二数值、第三数值、第四数值可以相同,也可以部分相同,也可以完全不同。进一步的,第二数据包还用于指示第二电子器件进行后向链路切换,且切换后的后向链路为第二后向链路指示信息所指示的后向链路。When the second data packet includes the second indication information, the second backward link indication information, the check information and the second time window, the second indication information is at least one first bit in the second data packet. When the value of at least one first bit in the second data packet is the first value, the at least one first bit in the second data packet is used to indicate the first rate. The second backward link indication information is at least one second bit in the second data packet, and when the value of at least one second bit in the second data packet is the second value, at least one bit in the second data packet The second bit is used to indicate the backward link indicated by the second backward link indication information. The check information included in the second data packet is at least one third bit in the second data packet. When the value of at least one third bit in the second data packet is the third value, at least A third bit is used by the second electronic device to determine the second verification packet. The second time window is at least one fourth bit in the second data packet, and when the value of at least one fourth bit in the second data packet is the fourth value, at least one fourth bit in the second data packet Used to indicate the second time window. Among them, the first numerical value, the second numerical value, the third numerical value, and the fourth numerical value may be the same, or may be partly the same, or may be completely different. Further, the second data packet is also used to instruct the second electronic device to perform backward link switching, and the switched backward link is the backward link indicated by the second backward link indication information.
在第二数据包包括第二指示信息、第二前向链路指示信息、第二后向链路指示信息、校验信息和第二时间窗口时,该第二指示信息是第二数据包内的至少一个第一比特位,第二数据包内的至少一个第一比特位的取值为第一数值时第二数据包内的至少一个第一比特位用于指示第一速率。第二前向链路指示信息是第二数据包内的至少一个第二比特位,第二数据包内的至少一个第二比特位的取值为第二数值时第二数据包内的至少一个第二比特位用于指示第二前向链路指示信息所指示的前向链路。第二后向链路指示信息是第二数据包内的至少一个第三比特位,第二数据包内的至少一个第三比特位的取值为第三数值时第二数据包内的至少一个第三比特位用于指示第二后向链路指示信息所指示的后向链路。第二数据包包括的校验信息是第二数据包内的至少一个第四比特位,第二数据包内的至少一个第四比特位的取值为第四数值时第二数据包内的至少一个第四比特位用于第二电子器件确定该第二校验包。第二时间窗口是第二数据包内的至少一个第五比特位,第二数据包内的至少一个第五比特位的取值为第五数值时第二数据包内的至少一个第五比特位用于指示该第二时间窗口。可以理解的,第一数值、第二数值、第三数值、第四数值、第五数值可以相同,也可以部分相同,也可以完全不同。进一步的,第二数据包还用于指示第二电子器件进行前向链路切换和后向链路切换,且切换后的前向链路为第二前向链路指示信息所指示的前向链路,切换后的后向链路为第二后向链路指示信息所指示的后向链路。When the second data packet includes the second indication information, the second forward link indication information, the second backward link indication information, the check information and the second time window, the second indication information is in the second data packet When the value of at least one first bit in the second data packet is the first value, the at least one first bit in the second data packet is used to indicate the first rate. The second forward link indication information is at least one second bit in the second data packet, and when the value of at least one second bit in the second data packet is the second value, at least one bit in the second data packet The second bit is used to indicate the forward link indicated by the second forward link indication information. The second backward link indication information is at least one third bit in the second data packet, and the value of at least one third bit in the second data packet is at least one in the second data packet when the value is the third value The third bit is used to indicate the backward link indicated by the second backward link indication information. The check information included in the second data packet is at least one fourth bit in the second data packet, and when the value of at least one fourth bit in the second data packet is the fourth value, at least one bit in the second data packet is A fourth bit is used by the second electronic device to determine the second check packet. The second time window is at least one fifth bit in the second data packet, and when the value of at least one fifth bit in the second data packet is the fifth value, at least one fifth bit in the second data packet Used to indicate the second time window. It can be understood that the first numerical value, the second numerical value, the third numerical value, the fourth numerical value, and the fifth numerical value may be the same, or may be partly the same, or may be completely different. Further, the second data packet is also used to instruct the second electronic device to perform forward link switching and backward link switching, and the switched forward link is the forward direction indicated by the second forward link indication information. Link, the backward link after the handover is the backward link indicated by the second backward link indication information.
需要说明的,在第二数据包包括第二后向链路指示信息时,第二数据包还用于指示第二电子器件在检测该第二后向链路指示信息所指示的后向链路上未传输数据时,根据第二数据包进行传输速率切换;或,It should be noted that when the second data packet includes the second backward link indication information, the second data packet is also used to instruct the second electronic device to detect the backward link indicated by the second backward link indication information. When no data is being transmitted, switch the transmission rate according to the second data packet; or,
第一数据包还用于指示第二电子器件在检测第一后向链路指示信息所指示的后向链路上数据传输结束时,根据第一数据包进行传输速率切换。The first data packet is also used to instruct the second electronic device to switch the transmission rate according to the first data packet when detecting the end of data transmission on the backward link indicated by the first backward link indication information.
进一步的,第一电子器件采用第三速率向第二电子器件发送第二数据包,即第一电子器件的控制模块通过第一电子器件的发射机采用第三速率向第二电子器件的控制模块发送第二数据包。可以理解的,在第一电子器件采用第三速率向第二电子器件发送第二数据包时,会涉及到第一电子器件的协议层和第一电子器件的物理层之间的交互过程,也会涉及到第二电子器件的协议层和第二电子器件的物理层之间的交互过程。进一步的,关于第一电子器件的协议层和第一电子器件的物理层之间的交互过程、第二电子器件的协议层和第二电子器件的物理层之间的交互过程可以参考图2步骤201,在此不加赘述。Further, the first electronic device uses the third rate to send the second data packet to the second electronic device, that is, the control module of the first electronic device uses the transmitter of the first electronic device to transmit the second data packet to the control module of the second electronic device at the third rate. Send the second data packet. It is understandable that when the first electronic device uses the third rate to send the second data packet to the second electronic device, it will involve the interaction process between the protocol layer of the first electronic device and the physical layer of the first electronic device. It will involve the interaction process between the protocol layer of the second electronic device and the physical layer of the second electronic device. Further, for the interaction process between the protocol layer of the first electronic device and the physical layer of the first electronic device, and the interaction process between the protocol layer of the second electronic device and the physical layer of the second electronic device, please refer to the steps in FIG. 2 201, I won’t go into details here.
可以理解的,在第二时间窗口内接收到该第一校验包中的N个第一校验包时,第二电子器件采用第四速率向第一电子器件发送该第二校验包。若在第二时间窗口内接收到该第二校验包中的N个第二校验包,第一电子器件确定采用第四速率向第二电子器件传输数据。进一步的,第一电子器件采用第四速率向第二电子器件发送该第一校验包时,第一电子器件开始计时,得到第一电子器件对应的第三开始时间。进一步的,以第一电子器件对应的第三开始时间为基准,若在第二时间窗口内接收到该第二校验包中的N个第二校验包,第一电子器件则确定采用第四速率向第二电子器件传输数据。进一步的,该第一电子器件对应的第三结束时间是根据第一电子器件对应的第三开始时间和第二时间窗口确定的。另外,在第一电子器件确定采用第四速率向第二电子器件传输数据后,无论第一电子器件是否已经停止计时,第一电子器件都会停止采用第四速率向第二电子器件发送该第一校验包。另外,在第一电子器件确定采用第四速率向第二电子器件传输数据后,第一电子器件的物理层可以向第一电子器件的协议层发送速率切换成功的消息。此时,第一电子器件处于待机状态,等待后续采用第四速率传输数据。It is understandable that when N first verification packets in the first verification packet are received within the second time window, the second electronic device sends the second verification packet to the first electronic device at a fourth rate. If N second check packets in the second check packet are received within the second time window, the first electronic device determines to use the fourth rate to transmit data to the second electronic device. Further, when the first electronic device sends the first verification packet to the second electronic device at the fourth rate, the first electronic device starts timing to obtain the third start time corresponding to the first electronic device. Further, based on the third start time corresponding to the first electronic device, if N second verification packets in the second verification packet are received within the second time window, the first electronic device determines to use the first Four-speed transmission of data to the second electronic device. Further, the third end time corresponding to the first electronic device is determined according to the third start time and the second time window corresponding to the first electronic device. In addition, after the first electronic device determines to use the fourth rate to transmit data to the second electronic device, regardless of whether the first electronic device has stopped timing, the first electronic device will stop using the fourth rate to transmit the first electronic device to the second electronic device. Check the package. In addition, after the first electronic device determines to use the fourth rate to transmit data to the second electronic device, the physical layer of the first electronic device may send a rate switching success message to the protocol layer of the first electronic device. At this time, the first electronic device is in a standby state, waiting for subsequent data transmission at the fourth rate.
若在第二时间窗口内未接收到该第二校验包中的N个第二校验包,第一电子器件则可以将第四速率切换为第三速率,也可以将第四速率切换为第二速率,从而可以采用第二速率或第三速率向第二电子器件传输数据。If N second check packets in the second check packet are not received within the second time window, the first electronic device can switch the fourth rate to the third rate, or switch the fourth rate to The second rate, so that the second rate or the third rate can be used to transmit data to the second electronic device.
需要说明的,在第二电子器件根据第二数据包进行传输速率切换时,第二电子器件开始计时,得到第二电子器件对应的第三开始时间。以第二电子器件对应的第三开始时间为基准,在第二时间窗口内接收到该第一校验包中的N个第一校验包时,第二电子器件则采用第四速率向第一电子器件发送至少一个第二校验包。同时,在第二时间窗口内接收到该第一校验包中的N个第一校验包时,第二电子器件则确定采用第四速率向第一电子器件传输数据。进一步的,该第二电子器件对应的第三结束时间是根据第二电子器件对应的第三开始时间和第二时间窗口确定的。另外,在第二电子器件确定采用第四速率向第一电子器件传输数据后,无论第二电子器件是否已经停止计时,第二电子器件都会停止采用第四速率向第一电子器件发送该第二校验包。另外,在第二电子器件确定采用第四速率向第一电子器件传输数据后,第二电子器件的物理层可以向第二电子器件的协议层发送速率切换成功的消息。此时,第二电子器件处于待机状态,等待后续采用第一速率传输数据。It should be noted that when the second electronic device switches the transmission rate according to the second data packet, the second electronic device starts timing to obtain the third start time corresponding to the second electronic device. Based on the third start time corresponding to the second electronic device, when N first verification packets in the first verification packet are received within the second time window, the second electronic device uses the fourth rate to move to the first An electronic device sends at least one second verification packet. At the same time, when receiving N first check packets in the first check packet within the second time window, the second electronic device determines to use the fourth rate to transmit data to the first electronic device. Further, the third end time corresponding to the second electronic device is determined according to the third start time and the second time window corresponding to the second electronic device. In addition, after the second electronic device determines to use the fourth rate to transmit data to the first electronic device, regardless of whether the second electronic device has stopped timing, the second electronic device will stop using the fourth rate to transmit the second electronic device to the first electronic device. Check the package. In addition, after the second electronic device determines to use the fourth rate to transmit data to the first electronic device, the physical layer of the second electronic device may send a rate switching success message to the protocol layer of the second electronic device. At this time, the second electronic device is in a standby state, waiting for subsequent data transmission at the first rate.
另外,若在第二时间窗口内未接收到该第一校验包中的N个第一校验包,第二电子器件则可以将第四速率切换为第二电子器件切换传输速率为第四速率之前的速率。In addition, if N first check packets in the first check packet are not received within the second time window, the second electronic device can switch the fourth rate to the second electronic device to switch the transmission rate to the fourth The rate before the rate.
可以看出,上述技术方案中,简化了协商过程,提高传输速率切换效率。同时,通过校验包和第二时间窗口,实现了对切速后数据传输可靠性的校验,避免了在切速后数据传 输不可靠时采用切换后的速率向第二电子器件发送数据。另外,还实现了在切速后数据传输不可靠时采用切换为第一速率之前的原始速率向第二电子器件发送第二数据包,排除了由于外界偶发性因素导致新速率协商失败的问题。同时,在第二时间窗口内仍未接收到校验包时,即在切速后数据传输仍不可靠时,通过采用设备对应的最低速率传输新的数据包,提供了更加灵活的切速方式。It can be seen that in the above technical solution, the negotiation process is simplified, and the transmission rate switching efficiency is improved. At the same time, through the check packet and the second time window, the reliability of the data transmission after the speed cut is verified, which avoids sending data to the second electronic device at the switched rate when the data transmission after the speed cut is unreliable. In addition, it is also realized that when the data transmission is unreliable after the speed is cut, the original rate before switching to the first rate is used to send the second data packet to the second electronic device, which eliminates the problem that the new rate negotiation fails due to accidental external factors. At the same time, when the check packet is still not received within the second time window, that is, when the data transmission is still unreliable after the speed cut, the new data packet is transmitted at the lowest rate corresponding to the device, which provides a more flexible speed cut method .
本申请实施例提供的一种传输速率切换装置,该传输速率切换装置包括第一电子器件和第二电子器件。An embodiment of the present application provides a transmission rate switching device. The transmission rate switching device includes a first electronic device and a second electronic device.
其中,第二电子器件,用于接收第一电子器件发送的第一数据包,第一数据包用于指示第二电子器件进行传输速率切换且切换后的传输速率为第一速率。The second electronic device is used to receive the first data packet sent by the first electronic device, and the first data packet is used to instruct the second electronic device to switch the transmission rate and the transmission rate after the switching is the first rate.
其中,关于第一数据包的内容可以参考图2中的步骤201,在此不加赘述。For the content of the first data packet, reference may be made to step 201 in FIG. 2, which will not be repeated here.
第一电子器件,用于根据第一速率进行传输速率切换,第一电子器件切换后的传输速率为第一速率。The first electronic device is used to switch the transmission rate according to the first rate, and the transmission rate after the switching of the first electronic device is the first rate.
可以看出,上述技术方案中,简化了协商过程,提高传输速率切换效率。It can be seen that in the above technical solution, the negotiation process is simplified, and the transmission rate switching efficiency is improved.
在一种可能的实施方式中,第一数据包包括第一指示信息,第一指示信息用于指示第一速率。In a possible implementation manner, the first data packet includes first indication information, and the first indication information is used to indicate the first rate.
可以看出,上述技术方案中,实现了采用指示信息指示速率,为后续第二电子器件进行传输速率切换做准备。It can be seen that in the above technical solution, the use of the indication information to indicate the rate is implemented to prepare for the subsequent switching of the transmission rate of the second electronic device.
在一种可能的实施方式中,第一数据包还包括第一前向链路指示信息和/或第一后向链路指示信息,第一数据包还用于指示第二电子器件进行前向链路切换和/或后向链路切换,且切换后的前向链路为第一前向链路指示信息所指示的前向链路,切换后的后向链路为第一后向链路指示信息所指示的后向链路。In a possible implementation manner, the first data packet further includes first forward link indication information and/or first backward link indication information, and the first data packet is also used to instruct the second electronic device to perform forward Link switching and/or backward link switching, and the forward link after switching is the forward link indicated by the first forward link indication information, and the backward link after switching is the first backward link The backward link indicated by the route indication information.
可以看出,上述技术方案中,实现了精准控制切换链路,也避免了现有技术中每切换一次链路都需要进行多次交互的问题,简化了协商过程,提高传输速率切换效率。It can be seen that in the above technical solution, precise control of the switching link is achieved, and the problem of multiple interactions required for each link switching in the prior art is also avoided, the negotiation process is simplified, and the transmission rate switching efficiency is improved.
在一种可能的实施方式中,第一数据包还用于指示第二电子器件在检测第一后向链路指示信息所指示的后向链路上未传输数据时,根据第一数据包进行传输速率切换;或,In a possible implementation manner, the first data packet is also used to instruct the second electronic device to perform processing according to the first data packet when detecting that no data is being transmitted on the backward link indicated by the first backward link indication information. Transmission rate switching; or,
第一数据包还用于指示第二电子器件在检测第一后向链路指示信息所指示的后向链路上数据传输结束时,根据第一数据包进行传输速率切换。The first data packet is also used to instruct the second electronic device to switch the transmission rate according to the first data packet when detecting the end of data transmission on the backward link indicated by the first backward link indication information.
可以看出,上述技术方案中,避免了在根据第二数据包进行传输速率切换后由于切速后数据传输不可靠导致在第一后向链路指示信息所指示的后向链路上数据传输失败的问题。It can be seen that the above technical solution avoids data transmission on the backward link indicated by the first backward link indication information due to unreliable data transmission after the speed cut after the transmission rate is switched according to the second data packet. The problem of failure.
在一种可能的实施方式中,第一数据包还包括校验信息和第一时间窗口,In a possible implementation manner, the first data packet further includes verification information and a first time window,
第一电子器件,还用于采用第一速率向第二电子器件发送至少一个第一校验包;The first electronic device is further configured to send at least one first verification packet to the second electronic device at the first rate;
在第一时间窗口内接收到第一校验包中的N个第一校验包时,第二电子器件,还用于采用第一速率向第一电子器件发送至少一个第二校验包,其中,该第二校验包是第二电子器件在第一时间窗口内发送的且该第二校验包是第二电子器件根据校验信息确定的,该N为大于1的整数;When receiving N first check packets in the first check packet within the first time window, the second electronic device is further configured to send at least one second check packet to the first electronic device at the first rate, Wherein, the second verification packet is sent by the second electronic device within the first time window and the second verification packet is determined by the second electronic device according to the verification information, and the N is an integer greater than 1;
若在第一时间窗口内接收到第二校验包中的N个第二校验包,第一电子器件,还用于确定采用第一速率向第二电子器件传输数据。If N second check packets in the second check packets are received within the first time window, the first electronic device is also used to determine to use the first rate to transmit data to the second electronic device.
其中,关于采用第一速率向第二电子器件发送该第一校验包的内容可以参考图5中的 步骤504,在此不加赘述。关于采用第一速率向第一电子器件发送至少一个第二校验包的内容可以参考图5中的步骤504,在此不加赘述。关于确定采用第一速率向第二电子器件传输数据的内容可以参考图5中的步骤505,在此不加赘述。For the content of sending the first check packet to the second electronic device at the first rate, reference may be made to step 504 in FIG. 5, which will not be repeated here. For the content of sending at least one second verification packet to the first electronic device at the first rate, reference may be made to step 504 in FIG. 5, which will not be repeated here. For the content of determining to use the first rate to transmit data to the second electronic device, reference may be made to step 505 in FIG. 5, which will not be repeated here.
可以看出,上述技术方案中,通过校验包和第一时间窗口,实现了对切速后数据传输可靠性的校验,避免了在切速后数据传输不可靠时采用切换后的速率向第二电子器件发送数据。It can be seen that in the above technical solution, the check packet and the first time window are used to verify the reliability of the data transmission after the speed is cut, and avoid the use of the switched rate when the data transmission is unreliable after the speed cut. The second electronic device sends data.
在一种可能的实施方式中,若在第一时间窗口内未接收到第二校验包中的N个第二校验包,第一电子器件,还用于在采用第二速率向第二电子器件发送第一数据包后再次采用第一速率向第二电子器件发送第一校验包;In a possible implementation, if N second check packets in the second check packet are not received within the first time window, the first electronic device is also used to transfer to the second check packet at the second rate. After the electronic device sends the first data packet, the first check packet is sent to the second electronic device again at the first rate;
在第一时间窗口内接收到第一校验包中的N个第一校验包时,第二电子器件,还用于再次采用第一速率向第一电子器件发送第二校验包;When receiving N first check packets in the first check packet within the first time window, the second electronic device is further configured to send the second check packet to the first electronic device again at the first rate;
若在第一时间窗口内仍未接收到第二校验包中的N个第二校验包,第一电子器件,还用于在将第一速率切换为第三速率后采用第三速率向第二电子器件发送第二数据包,第二数据包用于指示第二电子器件进行传输速率切换且切换后的传输速率为第四速率,根据第四速率进行传输速率切换,第一电子器件切换后的传输速率为第四速率,采用第四速率向第二电子器件发送第一校验包,直到第一电子器件确定采用第四速率向第二电子器件传输数据为止;If N second check packets in the second check packet have not been received within the first time window, the first electronic device is also used to use the third rate direction after switching the first rate to the third rate. The second electronic device sends a second data packet, the second data packet is used to instruct the second electronic device to switch the transmission rate and the transmission rate after the switching is the fourth rate, the transmission rate is switched according to the fourth rate, and the first electronic device switches The subsequent transmission rate is the fourth rate, and the fourth rate is used to send the first check packet to the second electronic device until the first electronic device determines that the fourth rate is used to transmit data to the second electronic device;
其中,第二速率是第一电子器件切换传输速率为第一速率之前的速率,第二速率小于第一速率,第三速率是第一电子器件对应的传输速率中速率最低的速率,第四速率大于第二速率且第四速率小于第一速率。Among them, the second rate is the rate before the first electronic device switches the transmission rate to the first rate, the second rate is less than the first rate, and the third rate is the rate with the lowest rate among the transmission rates corresponding to the first electronic device, and the fourth rate It is greater than the second rate and the fourth rate is less than the first rate.
其中,关于再次采用第一速率向第二电子器件发送该第一校验包的内容可以参考图5中的步骤506,在此不加赘述。关于再次采用第一速率向第一电子器件发送第二校验包的内容可以参考图5中的步骤504,在此不加赘述。关于在将第一速率切换为第三速率后采用第三速率向第二电子器件发送第二数据包的内容可以参考图5中的步骤508,在此不加赘述。For the content of sending the first check packet to the second electronic device at the first rate again, reference may be made to step 506 in FIG. 5, which will not be repeated here. Regarding the content of sending the second verification packet to the first electronic device at the first rate again, reference may be made to step 504 in FIG. 5, which will not be repeated here. For the content of using the third rate to send the second data packet to the second electronic device after the first rate is switched to the third rate, reference may be made to step 508 in FIG. 5, which will not be repeated here.
可以看出,上述技术方案中,实现了在切速后数据传输不可靠时采用切换为第一速率之前的原始速率向第二电子器件发送第二数据包,排除了由于外界偶发性因素导致新速率协商失败的问题。同时,在第一时间窗口内仍未接收到校验包时,即在切速后数据传输仍不可靠时,通过采用设备对应的最低速率传输新的数据包,提供了更加灵活的切速方式。It can be seen that in the above technical solution, the original rate before switching to the first rate is used to send the second data packet to the second electronic device when the data transmission is unreliable after the speed is cut. The rate negotiation failed. At the same time, when the check packet has not been received within the first time window, that is, when the data transmission is still unreliable after the speed cut, the new data packet is transmitted at the lowest rate corresponding to the device, which provides a more flexible speed cut method .
本申请还提供一种计算机可读存储介质,计算机可读存储介质中存储有计算机程序,当计算机程序被运行时,实现如传输速率切换方法的任一项方法。The present application also provides a computer-readable storage medium in which a computer program is stored, and when the computer program is executed, any method such as a transmission rate switching method is implemented.
以上所述的具体实施方式,对本申请的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上所述仅为本申请的具体实施方式而已,并不用于限定本申请的保护范围,凡在本申请的技术方案的基础之上,所做的任何修改、等同替换、改进等,均应包括在本申请的保护范围之内。The specific implementations described above further describe the purpose, technical solutions, and beneficial effects of the application. It should be understood that the foregoing are only specific implementations of the application and are not intended to limit the scope of the application. The scope of protection, any modification, equivalent replacement, improvement, etc. made on the basis of the technical solution of this application shall be included in the scope of protection of this application.

Claims (13)

  1. 一种传输速率切换方法,其特征在于,所述方法应用于电子设备,所述电子设备包括第一电子器件和第二电子器件,所述方法包括:A transmission rate switching method, characterized in that the method is applied to an electronic device, the electronic device includes a first electronic device and a second electronic device, and the method includes:
    所述第二电子器件接收所述第一电子器件发送的第一数据包,所述第一数据包用于指示所述第二电子器件进行传输速率切换且切换后的传输速率为第一速率;The second electronic device receives a first data packet sent by the first electronic device, where the first data packet is used to instruct the second electronic device to switch the transmission rate and the transmission rate after the switching is the first rate;
    所述第一电子器件根据所述第一速率进行传输速率切换,所述第一电子器件切换后的传输速率为所述第一速率。The first electronic device performs transmission rate switching according to the first rate, and the transmission rate of the first electronic device after switching is the first rate.
  2. 根据权利要求1所述的方法,其特征在于,所述第一数据包包括第一指示信息,所述第一指示信息用于指示所述第一速率。The method according to claim 1, wherein the first data packet includes first indication information, and the first indication information is used to indicate the first rate.
  3. 根据权利要求1或2所述的方法,其特征在于,所述第一数据包还包括第一前向链路指示信息和/或第一后向链路指示信息,所述第一数据包还用于指示所述第二电子器件进行前向链路切换和/或后向链路切换,且切换后的前向链路为所述第一前向链路指示信息所指示的前向链路,切换后的后向链路为所述第一后向链路指示信息所指示的后向链路。The method according to claim 1 or 2, wherein the first data packet further comprises first forward link indication information and/or first backward link indication information, and the first data packet further includes Used to instruct the second electronic device to perform forward link switching and/or backward link switching, and the switched forward link is the forward link indicated by the first forward link indication information , The backward link after the handover is the backward link indicated by the first backward link indication information.
  4. 根据权利要求3所述的方法,其特征在于,所述第一数据包还用于指示所述第二电子器件在检测所述第一后向链路指示信息所指示的后向链路上未传输数据时,根据所述第一数据包进行传输速率切换;或,The method according to claim 3, wherein the first data packet is further used to instruct the second electronic device to detect that the backward link indicated by the first backward link indication information is not When transmitting data, switch the transmission rate according to the first data packet; or,
    所述第一数据包还用于指示所述第二电子器件在检测所述第一后向链路指示信息所指示的后向链路上数据传输结束时,根据所述第一数据包进行传输速率切换。The first data packet is also used to instruct the second electronic device to perform transmission according to the first data packet when detecting the end of data transmission on the backward link indicated by the first backward link indication information Rate switching.
  5. 根据权利要求1-4任意一项所述的方法,其特征在于,所述第一数据包还包括校验信息和第一时间窗口,在所述第一电子器件根据所述第一速率进行传输速率切换之后,所述方法还包括:The method according to any one of claims 1 to 4, wherein the first data packet further includes check information and a first time window, and the first electronic device transmits at the first rate After the rate switching, the method further includes:
    所述第一电子器件采用所述第一速率向所述第二电子器件发送至少一个第一校验包;Sending, by the first electronic device, at least one first verification packet to the second electronic device at the first rate;
    在所述第一时间窗口内接收到所述第一校验包中的N个第一校验包时,所述第二电子器件采用所述第一速率向所述第一电子器件发送至少一个第二校验包,其中,所述第二校验包是所述第二电子器件在所述第一时间窗口内发送的且所述第二校验包是所述第二电子器件根据所述校验信息确定的,所述N为大于1的整数;When receiving N first check packets in the first check packet within the first time window, the second electronic device sends at least one check packet to the first electronic device at the first rate A second verification packet, wherein the second verification packet is sent by the second electronic device within the first time window and the second verification packet is the second electronic device according to the Determined by the verification information, the N is an integer greater than 1;
    若在所述第一时间窗口内接收到所述第二校验包中的所述N个第二校验包,所述第一电子器件则确定采用所述第一速率向所述第二电子器件传输数据。If the N second verification packets in the second verification packet are received within the first time window, the first electronic device determines to use the first rate to send the second electronic device to the second electronic device. The device transmits data.
  6. 根据权利要求5所述的方法,其特征在于,所述方法还包括:The method according to claim 5, wherein the method further comprises:
    若在所述第一时间窗口内未接收到所述第二校验包中的所述N个第二校验包,所述第一电子器件则在采用第二速率向所述第二电子器件发送所述第一数据包后再次采用所述第一速率向所述第二电子器件发送所述第一校验包;If the N second check packets in the second check packet are not received within the first time window, the first electronic device is using the second rate to send the signal to the second electronic device After sending the first data packet, sending the first check packet to the second electronic device again at the first rate;
    在所述第一时间窗口内接收到所述第一校验包中的所述N个第一校验包时,所述第二电子器件再次采用所述第一速率向所述第一电子器件发送所述第二校验包;When the N first check packets in the first check packet are received within the first time window, the second electronic device again uses the first rate to send the signal to the first electronic device Sending the second check packet;
    若在所述第一时间窗口内仍未接收到所述第二校验包中的所述N个第二校验包,所述 第一电子器件则在所述第一电子器件将所述第一速率切换为第三速率后采用所述第三速率向所述第二电子器件发送第二数据包,所述第二数据包用于指示所述第二电子器件进行传输速率切换且切换后的传输速率为第四速率,根据所述第四速率进行传输速率切换,所述第一电子器件切换后的传输速率为所述第四速率,采用所述第四速率向所述第二电子器件发送所述第一校验包,直到所述第一电子器件确定采用所述第四速率向所述第二电子器件传输数据为止;If the N second verification packets in the second verification packet are not received within the first time window, the first electronic device will perform the first electronic device on the first electronic device. After the first rate is switched to the third rate, the third rate is used to send a second data packet to the second electronic device, and the second data packet is used to instruct the second electronic device to switch the transmission rate and after the switching The transmission rate is the fourth rate, the transmission rate is switched according to the fourth rate, the transmission rate after the switching of the first electronic device is the fourth rate, and the fourth rate is used to send to the second electronic device The first check packet until the first electronic device determines to use the fourth rate to transmit data to the second electronic device;
    其中,所述第二速率是所述第一电子器件切换传输速率为所述第一速率之前的速率,所述第二速率小于所述第一速率,所述第三速率是所述第一电子器件对应的传输速率中速率最低的速率,所述第四速率大于所述第二速率且所述第四速率小于所述第一速率。Wherein, the second rate is the rate at which the first electronic device switches the transmission rate before the first rate, the second rate is less than the first rate, and the third rate is the first electronic device. The lowest rate among the transmission rates corresponding to the device, the fourth rate is greater than the second rate and the fourth rate is less than the first rate.
  7. 一种传输速率切换装置,其特征在于,所述装置包括第一电子器件和第二电子器件,A transmission rate switching device, characterized in that the device includes a first electronic device and a second electronic device,
    所述第二电子器件,用于接收所述第一电子器件发送的第一数据包,所述第一数据包用于指示所述第二电子器件进行传输速率切换且切换后的传输速率为第一速率;The second electronic device is configured to receive a first data packet sent by the first electronic device, and the first data packet is used to instruct the second electronic device to switch the transmission rate and the transmission rate after the switching is the first A rate
    所述第一电子器件,用于根据所述第一速率进行传输速率切换,所述第一电子器件切换后的传输速率为所述第一速率。The first electronic device is configured to perform transmission rate switching according to the first rate, and the transmission rate of the first electronic device after switching is the first rate.
  8. 根据权利要求7所述的装置,其特征在于,所述第一数据包包括第一指示信息,所述第一指示信息用于指示所述第一速率。7. The apparatus according to claim 7, wherein the first data packet includes first indication information, and the first indication information is used to indicate the first rate.
  9. 根据权利要求7或8所述的装置,其特征在于,所述第一数据包还包括第一前向链路指示信息和/或第一后向链路指示信息,所述第一数据包还用于指示所述第二电子器件进行前向链路切换和/或后向链路切换,且切换后的前向链路为所述第一前向链路指示信息所指示的前向链路,切换后的后向链路为所述第一后向链路指示信息所指示的后向链路。The apparatus according to claim 7 or 8, wherein the first data packet further comprises first forward link indication information and/or first backward link indication information, and the first data packet further includes Used to instruct the second electronic device to perform forward link switching and/or backward link switching, and the switched forward link is the forward link indicated by the first forward link indication information , The backward link after the handover is the backward link indicated by the first backward link indication information.
  10. 根据权利要求9所述的装置,其特征在于,所述第一数据包还用于指示所述第二电子器件在检测所述第一后向链路指示信息所指示的后向链路上未传输数据时,根据所述第一数据包进行传输速率切换;或,The apparatus according to claim 9, wherein the first data packet is further used to instruct the second electronic device to detect that the backward link indicated by the first backward link indication information is not When transmitting data, switch the transmission rate according to the first data packet; or,
    所述第一数据包还用于指示所述第二电子器件在检测所述第一后向链路指示信息所指示的后向链路上数据传输结束时,根据所述第一数据包进行传输速率切换。The first data packet is also used to instruct the second electronic device to perform transmission according to the first data packet when detecting the end of data transmission on the backward link indicated by the first backward link indication information Rate switching.
  11. 根据权利要求7-10任意一项所述的装置,其特征在于,所述第一数据包还包括校验信息和第一时间窗口,The device according to any one of claims 7-10, wherein the first data packet further includes verification information and a first time window,
    所述第一电子器件,还用于采用所述第一速率向所述第二电子器件发送至少一个第一校验包;The first electronic device is further configured to send at least one first verification packet to the second electronic device at the first rate;
    在所述第一时间窗口内接收到所述第一校验包中的N个第一校验包时,所述第二电子器件,还用于采用所述第一速率向所述第一电子器件发送至少一个第二校验包,其中,所述第二校验包是所述第二电子器件在所述第一时间窗口内发送的且所述第二校验包是所述第二电子器件根据所述校验信息确定的,所述N为大于1的整数;When N first check packets in the first check packet are received within the first time window, the second electronic device is further configured to use the first rate to send the data to the first electronic device. The device sends at least one second verification packet, wherein the second verification packet is sent by the second electronic device within the first time window and the second verification packet is the second electronic device. Determined by the device according to the verification information, the N is an integer greater than 1;
    若在所述第一时间窗口内接收到所述第二校验包中的所述N个第二校验包,所述第一 电子器件,还用于确定采用所述第一速率向所述第二电子器件传输数据。If the N second check packets in the second check packet are received within the first time window, the first electronic device is also used to determine to use the first rate to send the The second electronic device transmits data.
  12. 根据权利要求11所述的装置,其特征在于,The device according to claim 11, wherein:
    若在所述第一时间窗口内未接收到所述第二校验包中的所述N个第二校验包,所述第一电子器件,还用于在采用第二速率向所述第二电子器件发送所述第一数据包后再次采用所述第一速率向所述第二电子器件发送所述第一校验包;If the N second check packets in the second check packet are not received within the first time window, the first electronic device is further configured to send the second check packet to the second check packet at the second rate. After the second electronic device sends the first data packet, the first check packet is sent to the second electronic device again at the first rate;
    在所述第一时间窗口内接收到所述第一校验包中的所述N个第一校验包时,所述第二电子器件,还用于再次采用所述第一速率向所述第一电子器件发送所述第二校验包;When the N first check packets in the first check packet are received within the first time window, the second electronic device is further configured to use the first rate to send to the The first electronic device sends the second verification packet;
    若在所述第一时间窗口内仍未接收到所述第二校验包中的所述N个第二校验包,所述第一电子器件,还用于在将所述第一速率切换为第三速率后采用所述第三速率向所述第二电子器件发送第二数据包,所述第二数据包用于指示所述第二电子器件进行传输速率切换且切换后的传输速率为第四速率,根据所述第四速率进行传输速率切换,所述第一电子器件切换后的传输速率为所述第四速率,采用所述第四速率向所述第二电子器件发送所述第一校验包,直到所述第一电子器件确定采用所述第四速率向所述第二电子器件传输数据为止;If the N second check packets in the second check packet are not received within the first time window, the first electronic device is also used to switch the first rate After the third rate is the third rate, the third rate is used to send a second data packet to the second electronic device, where the second data packet is used to instruct the second electronic device to switch the transmission rate and the transmission rate after the switching is The fourth rate is to perform transmission rate switching according to the fourth rate, the transmission rate of the first electronic device after switching is the fourth rate, and the fourth rate is used to send the first electronic device to the second electronic device. A check packet until the first electronic device determines to use the fourth rate to transmit data to the second electronic device;
    其中,所述第二速率是所述第一电子器件切换传输速率为所述第一速率之前的速率,所述第二速率小于所述第一速率,所述第三速率是所述第一电子器件对应的传输速率中速率最低的速率,所述第四速率大于所述第二速率且所述第四速率小于所述第一速率。Wherein, the second rate is the rate at which the first electronic device switches the transmission rate before the first rate, the second rate is less than the first rate, and the third rate is the first electronic device. The lowest rate among the transmission rates corresponding to the device, the fourth rate is greater than the second rate and the fourth rate is less than the first rate.
  13. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机程序,当所述计算机程序被运行时,实现如权利要求1-6任一项所述的方法。A computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed, the method according to any one of claims 1 to 6 is realized.
PCT/CN2021/071154 2020-04-28 2021-01-12 Transmission rate switching method and related apparatus WO2021218239A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010352238.6 2020-04-28
CN202010352238.6A CN113572569B (en) 2020-04-28 2020-04-28 Transmission rate switching method and related device

Publications (1)

Publication Number Publication Date
WO2021218239A1 true WO2021218239A1 (en) 2021-11-04

Family

ID=78158225

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/071154 WO2021218239A1 (en) 2020-04-28 2021-01-12 Transmission rate switching method and related apparatus

Country Status (2)

Country Link
CN (1) CN113572569B (en)
WO (1) WO2021218239A1 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160330099A1 (en) * 2015-05-07 2016-11-10 Samsung Electronics Co., Ltd. Apparatus and method for controlling data rate in wireless communication system
CN106716873A (en) * 2014-10-13 2017-05-24 华为技术有限公司 Hitless, multi-rate optical transmission and reception
CN108170369A (en) * 2016-12-07 2018-06-15 慧荣科技股份有限公司 Host device and data transmission rate control method

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8565081B1 (en) * 2011-02-23 2013-10-22 Google Inc. Rate adaptation in a communication system
EP2675092B1 (en) * 2012-06-15 2019-08-07 Telefonaktiebolaget LM Ericsson (publ) Methods and systems for dynamic speed change on high speed interconnects
US20170171780A1 (en) * 2015-12-14 2017-06-15 Qualcomm Incorporated Techniques for adapting a rate of data transmission
CN108243440B (en) * 2016-12-26 2020-11-20 大唐移动通信设备有限公司 Inter-board rate switching method and device
CN110248341A (en) * 2018-03-08 2019-09-17 华为技术有限公司 Transmission rate switching method, bluetooth equipment and computer-readable medium
CN110098863B (en) * 2019-05-07 2020-12-11 中国人民解放军32039部队 Link rate self-adaptive transmission method, device and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106716873A (en) * 2014-10-13 2017-05-24 华为技术有限公司 Hitless, multi-rate optical transmission and reception
US20160330099A1 (en) * 2015-05-07 2016-11-10 Samsung Electronics Co., Ltd. Apparatus and method for controlling data rate in wireless communication system
CN108170369A (en) * 2016-12-07 2018-06-15 慧荣科技股份有限公司 Host device and data transmission rate control method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
BEOM-DAE KIM; SANG-JIN LEE; DOO-HWAN KIM; KYOUNGROK CHO: "Design of a D-PHY Chip for Mobile Display Interface Supporting MIPI Standard", CONSUMER ELECTRONICS (ICCE), 2012 IEEE INTERNATIONAL CONFERENCE ON, 13 January 2012 (2012-01-13), pages 660 - 661, XP032125040, ISBN: 978-1-4577-0230-3, DOI: 10.1109/ICCE.2012.6162016 *
CHENG WENLONG;HU YUELI;YAN YECHEN;HU YUNSHENG: "Design and Verification of D-PHY Based on MIPI Standard", COMPUTER MEASUREMENT & CONTROL, 30 September 2017 (2017-09-30), pages 295 - 297+301, XP055862634, ISSN: 1671-4598, DOI: 10.16526/j.cnki.11-4762/tp.2017.09.075 *

Also Published As

Publication number Publication date
CN113572569A (en) 2021-10-29
CN113572569B (en) 2024-03-26

Similar Documents

Publication Publication Date Title
WO2019196690A1 (en) Sidelink transmission method and terminal
KR101497001B1 (en) Graphics multi-media ic and method of its operation
KR100886297B1 (en) Systems and methods for implementing cyclic redundancy checks
US8526513B2 (en) Method and apparatus for transmitting data, and communication system
US20060036841A1 (en) Networking interface sharing methods and apparatuses that support kernel mode data traffic and user mode data traffic
JP2007089174A (en) Method and device for improving signal transmission rate in wireless communication system
RU2009138237A (en) METHOD AND DEVICE FOR ORDERED POLLING IN A WIRELESS COMMUNICATION SYSTEM
CN109257138B (en) Data transmission control method and related equipment
WO2018036026A1 (en) Data transmission method, base station, target terminal, system and storage medium
WO2021013092A1 (en) Sidelink information transmission method, terminal, and control node
WO2015085964A1 (en) Voice transmission method, device and voice service system
WO2021147005A1 (en) Apparatus for executing re-timing and path switching method
US20140108878A1 (en) Method, Apparatus, and System for Retransmitting Data Packet in Quick Path Interconnect System
KR101518269B1 (en) Method and system for transmitting status report
CN108092745A (en) Data transmission method, device, equipment and the storage medium of point-to-point equipment
CN111324567B (en) Method for realizing serial port communication and single chip microcomputer system
WO2020119243A1 (en) Physical uplink control channel transmission method, network side device, and terminal
WO2021218239A1 (en) Transmission rate switching method and related apparatus
EP0886410A2 (en) Data communication method, data communication apparatus, and data communication program recording medium
US8880972B2 (en) Serial transmission apparatus, information processing apparatus, and serial transmission method
CN112612745A (en) Data transmission method and device, electronic equipment and readable storage medium
US8031626B2 (en) Packet structure for a mobile display digital interface
US20220360373A1 (en) Method for reporting channel state information (csi), terminal, and computer-readable storage medium
WO2020156473A1 (en) Transmission method and terminal
TW200845670A (en) Method and apparatus for polling transmission status in a wireless communications system

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: 21796916

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21796916

Country of ref document: EP

Kind code of ref document: A1