WO2020047810A1 - Link processing method and device and storage medium - Google Patents

Link processing method and device and storage medium Download PDF

Info

Publication number
WO2020047810A1
WO2020047810A1 PCT/CN2018/104444 CN2018104444W WO2020047810A1 WO 2020047810 A1 WO2020047810 A1 WO 2020047810A1 CN 2018104444 W CN2018104444 W CN 2018104444W WO 2020047810 A1 WO2020047810 A1 WO 2020047810A1
Authority
WO
WIPO (PCT)
Prior art keywords
link
adjustment
master device
slave device
communication time
Prior art date
Application number
PCT/CN2018/104444
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 深圳市汇顶科技股份有限公司
Priority to CN201880001590.6A priority Critical patent/CN109314630B/en
Priority to PCT/CN2018/104444 priority patent/WO2020047810A1/en
Publication of WO2020047810A1 publication Critical patent/WO2020047810A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L5/00Arrangements affording multiple use of the transmission path
    • H04L5/003Arrangements for allocating sub-channels of the transmission path
    • H04L5/0053Allocation of signaling, i.e. of overhead other than pilot signals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/04Wireless resource allocation
    • H04W72/044Wireless resource allocation based on the type of the allocated resource
    • H04W72/0446Resources in time domain, e.g. slots or frames
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/20Manipulation of established connections
    • H04W76/25Maintenance of established connections

Definitions

  • the embodiments of the present application relate to communication technologies, and in particular, to a link processing method, device, and storage medium.
  • TDD time division multiplexing
  • FDD frequency division multiplexing
  • the master device can be connected to multiple slave devices.
  • time-frequency resources and baseband resources are limited, which requires time division multiplexing between the communication time of the master device and multiple slave devices.
  • the transmission requirements required by different slave devices may be different. There may be time conflicts or idle links on the links between different slave devices and the master device. How to use resources reasonably and avoid resource waste is particularly important.
  • the embodiments of the present application provide a link processing method, a device, and a storage medium to avoid time conflicts between a link between a master device and a slave device and other links, avoid link resources, and realize reasonable use of resources.
  • an embodiment of the present application provides a link processing method, including:
  • the master device sends an adjustment instruction to the slave device, so that the slave device adjusts the communication time of the link with the master device;
  • the adjustment instruction is a connection update instruction of the logical link;
  • the master device receives an adjustment response returned by the slave device;
  • the adjustment response is a response corresponding to the connection update indication;
  • the master device adjusts the communication time of the link based on the adjustment response.
  • an embodiment of the present application may further provide a link processing method, including:
  • the slave device receives an adjustment instruction from the master device;
  • the adjustment instruction is a connection update instruction of the logical link;
  • the slave device sends an adjustment response to the master device, so that the master device adjusts the communication time of the link; the adjustment response is a response corresponding to the connection update indication.
  • an embodiment of the present application may further provide a device, where the device is a master device, and the device includes:
  • a sending module configured to send an adjustment instruction to a slave device, so that the slave device adjusts a communication time of a link with the master device;
  • the adjustment instruction is a connection update instruction of a logical link;
  • a receiving module configured to receive an adjustment response returned by the slave device; the adjustment response is a response corresponding to the connection update indication;
  • a processing module configured to adjust the communication time of the link based on the adjustment response.
  • an embodiment of the present application may further provide a device, where the device is a slave device, and the device includes:
  • a receiving module configured to receive an adjustment instruction from a master device by the slave device; the adjustment instruction is: a connection update instruction of a logical link;
  • An adjustment module configured to adjust a communication time of a link with the master device according to the adjustment instruction
  • a sending module is configured to send an adjustment response to the master device, so that the master device adjusts the communication time; the adjustment response is a response corresponding to the connection update indication.
  • an embodiment of the present application may further provide a device, where the device is a master device, and the device includes: a memory and a processor; the memory is coupled to the processor;
  • the memory is used to store program instructions
  • the processor is configured to call a program instruction stored in the memory, so that the device executes the link processing method according to the first aspect.
  • an embodiment of the present application may further provide a device, where the device is a slave device, the device includes: a memory and a processor; the memory is coupled to the processor;
  • the memory is used to store program instructions
  • the processor is configured to call a program instruction stored in the memory, so that the device executes the link processing method according to the second aspect.
  • a computer-readable storage medium includes: a computer program stored on the computer-readable storage medium, wherein the computer program implements the link processing method according to the first aspect when executed by a processor; .
  • An eighth aspect a computer-readable storage medium, comprising: a computer program stored thereon, characterized in that, when the computer program is executed by a processor, the link processing method according to the second aspect is implemented .
  • the link processing method, device, and storage medium provided in the embodiments of the present application can send an adjustment instruction to the slave device through the master device, so that the slave device adjusts the communication time of the link with the master device, and the adjustment instruction is a logical link.
  • the connection update instruction; the master device also receives an adjustment response returned by the slave device, and the adjustment response is a response corresponding to the connection update instruction; the master device also adjusts the communication time of the link according to the adjustment response.
  • the master device and the slave device can respectively adjust the communication time of the link between the master device and the slave device, realize the reasonable scheduling of the link demand between the master device and the slave device on the time axis, and effectively avoid different slave devices and The time conflict between the links between the master devices prevents resource waste and improves resource utilization.
  • FIG. 1 is a schematic diagram of a network topology structure of a WPAN to which a link processing method according to an embodiment of the present application is applied;
  • FIG. 2 is a first flowchart of a link processing method according to an embodiment of the present application
  • FIG. 3 is a schematic structural diagram of a PDU used for negotiation in a link processing method according to an embodiment of the present application
  • FIG. 4 is a schematic structural diagram of an adjustment indication PDU in a link processing method according to an embodiment of the present application.
  • FIG. 5 is a second flowchart of a link processing method according to an embodiment of the present application.
  • FIG. 6 is a third flowchart of a link processing method according to an embodiment of the present application.
  • FIG. 7 is a schematic diagram of communication times of two links in a link processing method according to an embodiment of the present application.
  • FIG. 8 is a first schematic structural diagram of a device according to an embodiment of the present application.
  • FIG. 9 is a second schematic structural diagram of a device according to an embodiment of the present application.
  • FIG. 10 is a third structural schematic diagram of a device according to an embodiment of the present application.
  • FIG. 11 is a fourth structural schematic diagram of a device according to an embodiment of the present application.
  • the link processing method, device, and storage medium provided in the following embodiments of the present application can be applied to a network topology structure of a multi-link master-slave device in a communication system such as 3G, 4G, or WPAN using TDD technology.
  • the devices in the network topology can exchange data with each other, and can also connect with network devices such as high-level network devices or network devices in the Internet.
  • FIG. 1 is a schematic diagram of a WPAN network topology structure to which a link processing method according to an embodiment of the present application is applicable.
  • the master device may be connected with at least one slave device.
  • the master device is, for example, a mobile phone, a tablet computer, or the like.
  • the slave device may be, for example, a wireless headset, a smart watch, or other data sensors.
  • WPAN there can be a link between the master device and each slave device, and the master device and each slave device on the link can pass WIreless-Fidelity (WiFi), infrared data organization ( Any type of wireless transmission technology, such as Infrared Data Association (referred to as IrDA), Bluetooth, Bluetooth Low Energy (BLE), and Zigbee, is used for transmission.
  • WiFi WIreless-Fidelity
  • IrDA Infrared Data Association
  • BLE Bluetooth Low Energy
  • Zigbee Zigbee
  • the transmission requirements of different slave devices may be different.
  • the transmission time required by the headset as a slave device may be much longer than other slave devices. Therefore, if the link between the slave device and the master device is not When scheduling the transmission time, there may be a time conflict with the links between other slave devices and the master device, resulting in waste of resources.
  • the link processing method provided in the embodiment of the present application can adjust the communication time of the link between the master device and the slave device to achieve reasonable scheduling of the demand for the link between the slave device and the master device on the time axis, effectively avoiding differences
  • the time conflict of the link between the slave device and the master device prevents resource waste and improves resource utilization.
  • the links involved in the following embodiments of the present application may be logical links, and the communication time of the logical link between the master device and the slave device may be adjusted by implementing the solutions provided by the embodiments.
  • FIG. 2 is a first flowchart of a link processing method according to an embodiment of the present application.
  • the link processing method can be implemented by the master device and the slave device interactively. As shown in FIG. 2, the method may include:
  • the master device sends an adjustment instruction to the slave device.
  • This adjustment indication can be used to enable the slave device to adjust the communication time of the link with the master device.
  • the communication time of the link can also be called a time anchor point, such as the initial communication time point of the link.
  • the LLC module of the master device can send the adjustment instruction to the LLC module of the slave device.
  • the adjustment instruction may be a connection update instruction (Logic Link Connection Update Indicator, LL_CONNECTION_UPDATE_IND) of the logical link.
  • LL_CONNECTION_UPDATE_IND Logical Link Connection Update Indicator
  • the slave device receives the adjustment instruction from the master device, and adjusts the communication time of the link with the master device according to the adjustment instruction.
  • the LLC module of the slave device After the LLC module of the slave device receives the adjustment instruction, it can send the adjustment instruction to the LLD module of the slave device, and the LLD module of the slave device adjusts the communication time of the link.
  • the slave device may adjust the communication time of the link with the master device according to the adjustment instruction, so that the adjusted communication time of the link does not conflict with the communication time of other links, or after the adjustment,
  • the idle time in the communication time of the link is less than or equal to the preset time, which reduces the idle time.
  • the upper-layer application module of the slave device may configure the link with communication parameters such as a preset communication time.
  • the preset communication time may be a preset minimum transmission bandwidth, or a communication time corresponding to the duration.
  • the lower-layer controller of the slave device may randomly distribute the communication time of the link.
  • the slave device After receiving the adjustment instruction, the slave device can adjust the preset communication time configured by the upper-layer application module or the communication time randomly distributed by the lower-level controller.
  • the adjustment instruction may include an adjustment parameter of the communication time, or may not include an adjustment parameter of the communication time.
  • the slave device can adjust the communication time of the link with the master device according to the adjustment parameter.
  • the slave device can adjust the parameter according to a preset unit to adjust the communication time of the link with the master device.
  • the slave device sends an adjustment response to the master device.
  • the slave device may send an adjustment response to the master device during the adjustment of the communication time of the link or after the adjustment is completed.
  • the adjustment response can be used to make the master device also adjust the communication time of the link.
  • the LLC module of the slave device can send the adjustment response to the LLC module of the master device.
  • the adjustment response may be a response (ACKnowledge, ACK for short) corresponding to LL_CONNECTION_UPDATE_IND.
  • the master device receives the adjustment response from the slave device, and adjusts the communication time of the link based on the adjustment response.
  • the LLC module of the master device After the LLC module of the master device receives the adjustment response, it can send the adjustment response to the LLD module of the master device, and the LLD module of the master device adjusts the communication time of the link.
  • the master device may adjust the communication time of the link according to the adjustment response, so that the adjusted communication time of the link does not conflict with the communication time of other links, or make the adjusted time of the link
  • the idle time in the communication time is less than or equal to the preset time, which reduces the idle time.
  • the link processing method provided in the embodiment of the present application may send an adjustment instruction to the slave device through the master device, so that the slave device adjusts the communication time of the link with the master device, and the adjustment instruction is a connection update instruction of the logical link;
  • the device also receives an adjustment response returned by the slave device, and the adjustment response is a response corresponding to the connection update indication;
  • the master device also adjusts the communication time of the link according to the adjustment response.
  • the master device and the slave device can respectively adjust the communication time of the link between the master device and the slave device, realize the reasonable scheduling of the link demand between the master device and the slave device on the time axis, and effectively avoid different slave devices and
  • the time conflict between the links between the master devices prevents resource waste and improves resource utilization.
  • the adjustment parameter may include: a target communication time of the link, and / or a time offset corresponding to the target communication time.
  • the target communication time may be an accurate time point, and the time offset may be a time offset of the target communication time relative to a current communication time, that is, an accurate time offset.
  • the master device can actively initiate the communication time adjustment of the link, and the slave device can also actively initiate the communication time adjustment of the link.
  • the master device may directly send the adjustment instruction to the slave device, and the adjustment instruction may include the adjustment parameter; the master device may also negotiate with the slave device, that is, send to the slave device After the adjustment request is received, an adjustment instruction including the adjustment parameter is sent to the slave device after receiving the adjustment response returned by the slave device.
  • FIG. 3 is a schematic structural diagram of a packet data unit (PDU) used for negotiation in a link processing method according to an embodiment of the present application.
  • the structure of the adjustment request and the adjustment response may be a PDU shown in FIG. 3.
  • the ctr data part of the PDU may include: a 2-byte Intervval-Min field, a 2-byte Interval-Max field, and a 2-byte Latency field , 2-byte Timeout field, 2-byte Preferred Period, 2-byte Reference ConnEventCount field, offset 0 (offset0) field to offset 5 (offset5) 6 offset fields, each offset field has 2 bytes.
  • the minimum interval field may carry the minimum interval time for transmitting data from the device on the link
  • the maximum interval field may carry the maximum interval time for transmitting data from the device on the link.
  • the delay field may carry the delay time of the link.
  • the timeout field may carry a timeout period of the link
  • the preferred period field may be a preset transmission period of the link
  • the reference connection event number field may carry a link between slave devices connected to the master device at the same time. Number.
  • Each offset field may carry a time offset corresponding to the target communication time.
  • FIG. 4 is a schematic structural diagram of an adjustment indication PDU in a link processing method according to an embodiment of the present application.
  • the structure of the adjustment indication may be the PDU shown in FIG. 4.
  • the ctr data part of the PDU may include: a 1-byte window size (WinSize) field, a 2-byte window offset (WinOffset) field, a 2-byte interval field, and 2 words The delay field of the section, the 2-byte timeout field, and the 2-byte instant field.
  • WinSize window size
  • WinOffset window offset
  • the window size field may carry the size of the time window of the link.
  • the window offset field may carry an offset of a time window of the link.
  • the time window may also be referred to as the communication time of the link.
  • the interval field may carry an interval time for transmitting data on the link.
  • the delay field may carry the delay time of the link.
  • the timeout field may carry a timeout period of the link, and the instant field may carry an instant modification instruction, so that the slave device immediately modifies the communication time of the link.
  • the slave device If the slave device actively initiates adjustment, the slave device also needs to negotiate with the master device.
  • the master device can send the adjustment instruction to the slave device after receiving the adjustment request sent by the slave device.
  • the adjustment instruction may include The adjustment parameter.
  • the structure of the adjustment request may be the PDU shown in FIG. 3 described above, and the structure of the adjustment indication may be the PDU shown in FIG. 4 described above.
  • FIG. 5 is a second flowchart of a link processing method according to an embodiment of the present application. If the master device triggers adjustment, the method may be the method in the foregoing embodiment. Before the master device sends an adjustment instruction to the slave device in S201, the method may further include:
  • the master device determines link state information within a preset time period.
  • the link state information may include at least one of the following information: the number of link conflicts, the link conflict time, and the link time utilization rate.
  • the number of times of link conflicts may be times of time conflicts between the link and other links.
  • the link conflict time may be the total duration of time conflicts between the link and the other links.
  • the link time utilization may be information such as the used time of the link, or the idle time, or the ratio of the used time to the total available time.
  • the other link may be a link between another slave device and the master device.
  • the number of time conflicts between the link and other links during the preset time period that is, the number of link conflicts
  • the time when the link conflict occurs that is, the link conflict time
  • the master device Since the master device is the scheduling core of multiple slave devices, the master device can count the status of each link among the multiple links between the master device and multiple slave devices within the preset time period. , Not limited to the link between the slave device and the slave device, to determine status information of each link among the multiple links.
  • the status information of each link may include at least one of the following: the number of link conflicts of each link, the link conflict time of each link, and the link time utilization rate of each link.
  • the master device determines the adjustment parameter according to the link state information and a preset communication time of the link.
  • the master device can determine the required information in each interval on the link based on the link state information, the length of the packet transmitted on the link, and the type of the physical (PHY) header of the packet transmitted on the link.
  • the communication time, and the adjustment parameter is determined according to the communication time in each interval on the link and a preset communication time of the link.
  • the preset communication time of the link may be the time corresponding to the link bandwidth configured by the application layer according to the transmission bandwidth requirement of the link.
  • the method may further include:
  • the master device determines whether the link state information meets a preset condition.
  • the link state information may include: the number of link conflicts, the preset condition is that the number of link conflicts is greater than or equal to the preset number.
  • the master device can determine whether the number of link collisions is greater than or equal to a preset number of times. If the number of link collisions is greater than or equal to a preset number of times, it can be determined that the link state information meets the preset condition, and the chain is required to The communication time of the link is adjusted; conversely, if the number of link conflicts is less than the preset number, it can be determined that the link state information does not meet the preset condition, and there is no need to adjust the communication time of the link.
  • the link state information includes: link conflict time
  • the preset condition is that the link conflict time is greater than or equal to the preset time.
  • the master device can determine whether the link conflict time is greater than or equal to a preset time, and if the link conflict time is greater than or equal to a preset time, then it can be determined that the link state information meets the preset condition, and the link needs to be The communication time of the link is adjusted; conversely, if the link conflict time is less than the preset time, it can be determined that the link state information does not meet the preset condition, and there is no need to adjust the communication time of the link.
  • the preset condition may be that the link time utilization is less than or equal to the preset utilization.
  • the master device can determine whether the link time utilization is less than or equal to the preset time, and if the link time utilization is less than or equal to the preset time, it can determine that the link has more idle time, and the link status If the information meets the preset condition, the communication time of the link needs to be adjusted. Conversely, if the link time utilization is less than the preset time, it can be determined that the link has less idle time and its utilization is higher. If the link status information does not satisfy the preset condition, there is no need to adjust the communication time of the link.
  • the master device sends the adjustment instruction to the slave device.
  • the master device needs to adjust the communication time of the link, and then triggers the adjustment, that is, sends the adjustment instruction to the slave device.
  • This link processing method initiates adjustments by the master device to adjust the communication time of the link between the slave device and the master device, realizes reasonable scheduling of the link requirements between the slave devices on the time axis, and effectively avoids different slave devices.
  • the time conflict with the link between the master device prevents resource waste and improves resource utilization.
  • FIG. 6 is a third flowchart of a link processing method according to an embodiment of the present application. If the slave device triggers adjustment, the method may include: before the master device sends an adjustment instruction to the slave device in S201, the method may further include:
  • the slave device sends an update request to the master device, where the update request includes the adjustment parameter.
  • the master device receives the update request from the slave device.
  • the master device may send the adjustment instruction including the adjustment parameter to the slave master device to start adjusting the communication time of the link.
  • the method may further include:
  • the slave device determines link state information within a preset time period.
  • S601a may be similar to the above S501, and the difference lies in the execution subject.
  • the link state information is determined by the master device, and in this S601a, the link state information is determined by the slave device.
  • the link state information is determined by the slave device.
  • the slave device determines the adjustment parameter according to the link state information and a preset communication time of the link.
  • the method may further include:
  • the slave device determines whether the link state information meets a preset condition.
  • the specific implementation of the S601c may be similar to the above S503, and the difference lies in the execution subject.
  • the judgment operation is determined by the master device, and in this S601c, the judgment operation is determined by the slave device.
  • the specific implementation process refer to the description in S503 above, which is not repeated here.
  • the sending of the update request from the S601 slave device to the master device may include:
  • the slave device sends the update request to the master device.
  • the link processing method through the adjustment initiated by the slave device, realizes the adjustment of the communication time of the link between the slave device and the master device, realizes the reasonable scheduling of the link demand between the master device and the slave device on the time axis, and effectively avoids different slave devices
  • the time conflict with the link between the master device prevents resource waste and improves resource utilization.
  • FIG. 7 is a schematic diagram of communication times of two links in a link processing method according to an embodiment of the present application.
  • the communication time of link 1 is Time 1 within an interval
  • the communication time of link 2 and the communication time of link 1 are partially Overlapping, which makes link 1 and link time conflict. Therefore, in order to avoid the time conflict between link 1 and link 2 in the next interval, the communication time of link 1 or link 2 needs to be adjusted.
  • This method may be triggered by the master device or the slave device 1 or the slave device 2 to adjust the communication time.
  • This method may be triggered by the master device or the slave device 1 or the slave device 2 to adjust the communication time.
  • statistics on the state information of link 1 and link 2 within an interval can be made, and based on the state information of the link, the length of the data packets transmitted on the link, and the number of packets transmitted on the link.
  • Information such as the type of the physical header determines the communication time required in each interval on the link, and determines the adjustment parameter based on the communication time in each interval on the link and the preset communication time for the link, such as The time offset shown in FIG. 7.
  • the time offset adjusts the initial communication time of the link 2 so that the communication time of the link 1 is adjusted to Time 2 as shown in FIG. 7, thereby effectively avoiding the arrival of the link 1 and the link 2 in the next interval. Time Conflict.
  • FIG. 8 is a first schematic structural diagram of a device according to an embodiment of the present application.
  • the device may execute the link processing method performed by the master device described in any one of the foregoing FIG. 2 to FIG. 7.
  • the device 80 may include:
  • the sending module 81 is configured to send an adjustment instruction to the slave device, so that the slave device adjusts the communication time of the link with the master device; the adjustment instruction is: a connection update instruction of the logical link.
  • the receiving module 82 is configured to receive an adjustment response returned by the slave device, where the adjustment response is: a response corresponding to the connection update indication.
  • the processing module 83 is configured to adjust the communication time of the link based on the adjustment response.
  • the adjustment indication includes: an adjustment parameter of the communication time.
  • the adjustment parameters include: a target communication time of the link, and / or a time offset corresponding to the target communication time.
  • the processing module 83 is further configured to determine link state information within a preset time period; and determine the adjustment parameter according to the link state information and a preset communication time of the link.
  • the link state information includes at least one of the following information: the number of link conflicts, the link conflict time, and the link time utilization rate.
  • the processing module 83 is further configured to determine whether the link state information meets a preset condition.
  • the sending module 81 is specifically configured to send the adjustment instruction to the slave device if the link state information meets a preset condition.
  • the receiving module 82 is further configured to receive an update request from the slave device; the update request includes: the adjustment parameter.
  • the adjustment parameter is determined by the slave device to determine link state information within a preset time period, and is determined according to the link state information and a preset communication time of the link.
  • the update request is sent by the slave device when it is determined that the link state information meets a preset condition.
  • the sending module 81 is further configured to send information to the slave device according to the adjusted communication time.
  • the receiving module 82 is further configured to receive information sent from the device according to the adjusted communication time.
  • FIG. 9 is a second schematic structural diagram of a device according to an embodiment of the present application.
  • the device 90 may serve as a master device, which may include a memory 91 and a processor 92.
  • the memory 91 and the processor 92 are coupled.
  • the memory 91 is configured to store a program instruction.
  • the processor 92 is configured to call a program instruction stored in the memory, so that any link processing method performed by the foregoing master device is performed.
  • An embodiment of the present application may further provide a computer-readable storage medium on which a computer program is stored.
  • a computer program is stored on which a computer program is stored.
  • the device and the computer-readable storage medium provided in the embodiments of the present application can execute the link processing method performed by the master device provided in any one of the foregoing embodiments.
  • the link processing method performed by the master device provided in any one of the foregoing embodiments.
  • FIG. 10 is a third schematic structural diagram of a device according to an embodiment of the present application.
  • the device may execute the link processing method performed by the slave device described in any one of the foregoing FIG. 2 to FIG. 7.
  • the device 100 may include:
  • the receiving module 101 is configured to receive an adjustment instruction from a master device by the slave device; the adjustment instruction is: a connection update instruction of a logical link;
  • the processing module 102 is configured to adjust a communication time of a link with the master device according to the adjustment instruction.
  • the sending module 103 is configured to send an adjustment response to the master device, so that the master device adjusts the communication time; the adjustment response is: a response corresponding to the connection update indication.
  • the adjustment indication includes: an adjustment parameter of the communication time.
  • the adjustment parameter determines the link state information within a preset time period for the master device, and determines based on the link state information and a preset communication time of the link between the master device and the slave device. of.
  • the adjustment indication is sent by the master device when it is determined that the link state information meets a preset condition.
  • the sending module 103 is further configured to send an update request to the master device; the update request includes: the adjustment parameter.
  • the processing module 102 is further configured to determine link state information within a preset time period; and determine the adjustment according to the link state information and a preset communication time of the link between the master device and the slave device. parameter.
  • the processing module 102 is further configured to determine whether the link state information meets a preset condition.
  • the sending module 103 is further configured to send an update request to the master device if the link state information meets a preset condition.
  • the receiving module 101 is further configured to receive the information sent by the master device according to the adjusted communication time.
  • the sending module 103 is further configured to send information to the master device according to the adjusted communication time.
  • FIG. 11 is a fourth structural schematic diagram of a device according to an embodiment of the present application.
  • the device 110 may serve as a master device, which may include a memory 111 and a processor 112.
  • the memory 111 and the processor 112 are coupled.
  • the memory 111 is configured to store a program instruction.
  • the processor 112 is configured to call a program instruction stored in the memory, so that any link processing method performed by the foregoing slave device.
  • An embodiment of the present application may further provide a computer-readable storage medium on which a computer program is stored.
  • the computer program When the computer program is executed by the processor 112, it implements execution of any of the link processing methods performed by the slave device.
  • the device and the computer-readable storage medium provided in the embodiments of the present application can execute the link processing method performed by the slave device provided in any of the foregoing embodiments.
  • the link processing method performed by the slave device provided in any of the foregoing embodiments.
  • the foregoing program may be stored in a computer-readable storage medium.
  • the method includes the steps of the foregoing method embodiment; and the foregoing storage medium includes: a ROM, a RAM, a magnetic disk, or an optical disc, which can store various program codes.

Abstract

The present application provides a link processing method and device and a storage medium. The method comprises: a master device sending an adjustment instruction to a slave device, such that the slave device adjusts communication time with respect to a link between the slave device and the master device, the adjustment instruction being an instruction for updating a logical link connection; and the master device receiving an adjustment response returned by the slave device, and adjusting, on the basis of the adjustment response, communication time with respect to the link. The present application can be used to prevent time conflicts between links and a waste of link resources, and achieve reasonable resource utilization.

Description

链路处理方法、设备及存储介质Link processing method, equipment and storage medium 技术领域Technical field
本申请实施例涉及通信技术,尤其涉及一种链路处理方法、设备及存储介质。The embodiments of the present application relate to communication technologies, and in particular, to a link processing method, device, and storage medium.
背景技术Background technique
无线通信中最重要的两种资源,时域资源和频域资源,其可分别对应时分复用(Time Division Duplexing,TDD)技术及频分复用(Frequency Division Duplexing,FDD)技术。其中,TDD技术广泛应用于无线通信系统中的每个领域,例如3G、4G,以及无线个人局域网(Wireless Personal Area Network,WPAN)等系统中多链路的主从设备的网络拓扑结构中,通常可采用TDD技术。The two most important resources in wireless communication, time domain resources and frequency domain resources, can respectively correspond to time division multiplexing (TDD) technology and frequency division multiplexing (FDD) technology. Among them, TDD technology is widely used in every field of wireless communication systems, such as 3G, 4G, and wireless personal area network (Wireless Personal Area Network, WPAN) and other systems of multi-link master and slave devices in the network topology Can use TDD technology.
多链路的主从设备的网络拓扑结构中,主设备可连接有多个从设备。对于主设备而言,时频资源及基带资源等是有限的,这便需要主设备和多个从设备的通信时间进行时分复用。In the network topology of a multi-link master-slave device, the master device can be connected to multiple slave devices. For the master device, time-frequency resources and baseband resources are limited, which requires time division multiplexing between the communication time of the master device and multiple slave devices.
然而,不同从设备所需的传输需求可能不同,不同从设备与主设备间的链路可能会存在时间冲突或者链路空闲,如何合理地利用资源,避免资源浪费显得格外重要。However, the transmission requirements required by different slave devices may be different. There may be time conflicts or idle links on the links between different slave devices and the master device. How to use resources reasonably and avoid resource waste is particularly important.
发明内容Summary of the Invention
本申请实施例提供一种链路处理方法、设备及存储介质,以避免主设备与从设备间的链路与其它链路的时间冲突,避免链路资源,实现资源的合理利用。The embodiments of the present application provide a link processing method, a device, and a storage medium to avoid time conflicts between a link between a master device and a slave device and other links, avoid link resources, and realize reasonable use of resources.
第一方面,本申请实施例提供一种链路处理方法,包括:In a first aspect, an embodiment of the present application provides a link processing method, including:
主设备向从设备发送调节指示,以使所述从设备调节与所述主设备间链路的通信时间;所述调节指示为逻辑链路的连接更新指示;The master device sends an adjustment instruction to the slave device, so that the slave device adjusts the communication time of the link with the master device; the adjustment instruction is a connection update instruction of the logical link;
所述主设备接收所述从设备返回的调节响应;所述调节响应为所述连接更新指示对应的响应;The master device receives an adjustment response returned by the slave device; the adjustment response is a response corresponding to the connection update indication;
所述主设备基于所述调节响应,调节所述链路的通信时间。The master device adjusts the communication time of the link based on the adjustment response.
第二方面,本申请实施例还可提供一种链路处理方法,包括:In a second aspect, an embodiment of the present application may further provide a link processing method, including:
从设备接收来自主设备的调节指示;所述调节指示为逻辑链路的连接更新指示;The slave device receives an adjustment instruction from the master device; the adjustment instruction is a connection update instruction of the logical link;
所述从设备根据所述调节指示调节与所述主设备间链路的通信时间;Adjusting, by the slave device, a communication time of a link with the master device according to the adjustment instruction;
所述从设备向所述主设备发送调节响应,以使所述主设备调节所述链路的通信时间;所述调节响应为所述连接更新指示对应的响应。The slave device sends an adjustment response to the master device, so that the master device adjusts the communication time of the link; the adjustment response is a response corresponding to the connection update indication.
第三方面,本申请实施例还可提供一种设备,所述设备为主设备,所述设备包括:In a third aspect, an embodiment of the present application may further provide a device, where the device is a master device, and the device includes:
发送模块,用于向从设备发送调节指示,以使所述从设备调节与所述主设备间链路的通信时间;所述调节指示为逻辑链路的连接更新指示;A sending module, configured to send an adjustment instruction to a slave device, so that the slave device adjusts a communication time of a link with the master device; the adjustment instruction is a connection update instruction of a logical link;
接收模块,用于接收所述从设备返回的调节响应;所述调节响应为所述连接更新指示对应的响应;A receiving module, configured to receive an adjustment response returned by the slave device; the adjustment response is a response corresponding to the connection update indication;
处理模块,用于基于所述调节响应,调节所述链路的通信时间。A processing module, configured to adjust the communication time of the link based on the adjustment response.
第四方面,本申请实施例还可提供一种设备,所述设备为从设备,所述设备包括:In a fourth aspect, an embodiment of the present application may further provide a device, where the device is a slave device, and the device includes:
接收模块,用于从设备接收来自主设备的调节指示;所述调节指示为:逻辑链路的连接更新指示;A receiving module, configured to receive an adjustment instruction from a master device by the slave device; the adjustment instruction is: a connection update instruction of a logical link;
调节模块,用于根据所述调节指示调节与所述主设备间链路的通信时间;An adjustment module, configured to adjust a communication time of a link with the master device according to the adjustment instruction;
发送模块,用于向所述主设备发送调节响应,以使所述主设备调节所述通信时间;所述调节响应为所述连接更新指示对应的响应。A sending module is configured to send an adjustment response to the master device, so that the master device adjusts the communication time; the adjustment response is a response corresponding to the connection update indication.
第五方面,本申请实施例还可提供一种设备,所述设备为主设备,所述设备包括:存储器和处理器;所述存储器与所述处理器耦合;In a fifth aspect, an embodiment of the present application may further provide a device, where the device is a master device, and the device includes: a memory and a processor; the memory is coupled to the processor;
所述存储器,用于存储程序指令;The memory is used to store program instructions;
所述处理器,用于调用所述存储器存储的程序指令,使得上述设备执行上述第一方面所述的链路处理方法。The processor is configured to call a program instruction stored in the memory, so that the device executes the link processing method according to the first aspect.
第六方面,本申请实施例还可提供一种设备,所述设备为从设备,所述设备包括:存储器和处理器;所述存储器与所述处理器耦合;According to a sixth aspect, an embodiment of the present application may further provide a device, where the device is a slave device, the device includes: a memory and a processor; the memory is coupled to the processor;
所述存储器,用于存储程序指令;The memory is used to store program instructions;
所述处理器,用于调用所述存储器存储的程序指令,使得所述设备执行 上述第二方面所述的链路处理方法。The processor is configured to call a program instruction stored in the memory, so that the device executes the link processing method according to the second aspect.
第七方面,一种计算机可读存储介质,其特征在于,包括:其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现上述第一方面所述的链路处理方法。According to a seventh aspect, a computer-readable storage medium includes: a computer program stored on the computer-readable storage medium, wherein the computer program implements the link processing method according to the first aspect when executed by a processor; .
第八方面,一种计算机可读存储介质,其特征在于,包括:其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现上述第二方面所述的链路处理方法。An eighth aspect, a computer-readable storage medium, comprising: a computer program stored thereon, characterized in that, when the computer program is executed by a processor, the link processing method according to the second aspect is implemented .
本申请实施例提供的链路处理方法、设备及存储介质,可通过主设备向从设备发送调节指示,使得从设备调节与该主设备间链路的通信时间,该调节指示为逻辑链路的连接更新指示;主设备还接收该从设备返回的调节响应,该调节响应为该连接更新指示对应的响应;主设备还根据该调节响应,调节该链路的通信时间。该方法中,可使得主设备和从设备分别调节该主设备与该从设备间链路的通信时间,实现时间轴上主设备对从设备间链路需求的合理调度,有效避免不同从设备与主设备间链路的时间冲突,避免资源浪费,提高资源的利用率。The link processing method, device, and storage medium provided in the embodiments of the present application can send an adjustment instruction to the slave device through the master device, so that the slave device adjusts the communication time of the link with the master device, and the adjustment instruction is a logical link. The connection update instruction; the master device also receives an adjustment response returned by the slave device, and the adjustment response is a response corresponding to the connection update instruction; the master device also adjusts the communication time of the link according to the adjustment response. In this method, the master device and the slave device can respectively adjust the communication time of the link between the master device and the slave device, realize the reasonable scheduling of the link demand between the master device and the slave device on the time axis, and effectively avoid different slave devices and The time conflict between the links between the master devices prevents resource waste and improves resource utilization.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to explain the technical solutions in the embodiments of the present application or the prior art more clearly, the drawings used in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description These are some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without paying creative labor.
图1为本申请实施例提供的一种链路处理方法所适用于的WPAN的网络拓扑结构的示意图;FIG. 1 is a schematic diagram of a network topology structure of a WPAN to which a link processing method according to an embodiment of the present application is applied;
图2为本申请实施例提供的一种链路处理方法的流程图一;FIG. 2 is a first flowchart of a link processing method according to an embodiment of the present application; FIG.
图3为本申请实施例提供的一种链路处理方法中用于协商的PDU的结构示意图;3 is a schematic structural diagram of a PDU used for negotiation in a link processing method according to an embodiment of the present application;
图4为本申请实施例提供的一种链路处理方法中调节指示的PDU的结构示意图;FIG. 4 is a schematic structural diagram of an adjustment indication PDU in a link processing method according to an embodiment of the present application; FIG.
图5为本申请实施例提供的一种链路处理方法的流程图二;5 is a second flowchart of a link processing method according to an embodiment of the present application;
图6为本申请实施例提供的一种链路处理方法的流程图三;6 is a third flowchart of a link processing method according to an embodiment of the present application;
图7为本申请实施例提供的一种链路处理方法中两条链路的通信时间的示意图;FIG. 7 is a schematic diagram of communication times of two links in a link processing method according to an embodiment of the present application; FIG.
图8为本申请实施例提供的一种设备的结构示意图一;FIG. 8 is a first schematic structural diagram of a device according to an embodiment of the present application; FIG.
图9为本申请实施例提供的一种设备的结构示意图二;FIG. 9 is a second schematic structural diagram of a device according to an embodiment of the present application; FIG.
图10为本申请实施例提供的一种设备的结构示意图三;FIG. 10 is a third structural schematic diagram of a device according to an embodiment of the present application; FIG.
图11为本申请实施例提供的一种设备的结构示意图四。FIG. 11 is a fourth structural schematic diagram of a device according to an embodiment of the present application.
具体实施方式detailed description
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the objectives, technical solutions, and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments These are part of the embodiments of the present application, but not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
除非另有定义,本文所使用的所有的技术和科学术语与属于本申请的技术领域的技术人员通常理解的含义相同。本文中在本申请的说明书中所使用的术语只是为了描述具体的实施例的目的,不是旨在于限制本申请。本文所使用的术语“和/或”包括一个或多个相关的所列项目的任意的和所有的组合。下面结合附图,对本申请的一些实施方式作详细说明。在不冲突的情况下,下述的实施例及实施例中的特征可以相互组合。Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein in the specification of the present application is only for the purpose of describing specific embodiments, and is not intended to limit the present application. The term "and / or" as used herein includes any and all combinations of one or more of the associated listed items. The embodiments of the present application will be described in detail below with reference to the drawings. In the case of no conflict, the following embodiments and features in the embodiments can be combined with each other.
本申请下述各实施例提供的链路处理方法、设备及存储介质,可应用于采用TDD技术的3G、4G或者WPAN等通信系统中多链路的主从设备的网络拓扑结构中。该网络拓扑结构中的各设备之间可交换数据,也可与网络设备如高层网络设备或互联网中的网络设备等进行连接。The link processing method, device, and storage medium provided in the following embodiments of the present application can be applied to a network topology structure of a multi-link master-slave device in a communication system such as 3G, 4G, or WPAN using TDD technology. The devices in the network topology can exchange data with each other, and can also connect with network devices such as high-level network devices or network devices in the Internet.
如下结合示例对多链路的主从设备的网络拓扑结构进行说明,图1为本申请实施例提供的一种链路处理方法所适用于的WPAN的网络拓扑结构的示意图。如图1所示,主(master)设备可连接有至少一个从(slaver)设备。在WPAN中,主设备例如为手机、平板电脑等。从设备例如可以为无线耳机、智能腕表或者其他数据传感器。The following describes the network topology of a multi-link master-slave device with an example. FIG. 1 is a schematic diagram of a WPAN network topology structure to which a link processing method according to an embodiment of the present application is applicable. As shown in FIG. 1, the master device may be connected with at least one slave device. In WPAN, the master device is, for example, a mobile phone, a tablet computer, or the like. The slave device may be, for example, a wireless headset, a smart watch, or other data sensors.
在WPAN中,主设备与每个从设备之间可具有一条链路,该条链路上主 设备和该每个从设备可通过无线保真(WIreless-Fidelity,简称WiFi)、红外数据组织(Infrared Data Association,简称IrDA)、蓝牙、低功耗蓝牙(Bluetooth Low Energy,简称BLE)、紫峰(Zigbee)等任一类型的无线传输技术进行传输。In WPAN, there can be a link between the master device and each slave device, and the master device and each slave device on the link can pass WIreless-Fidelity (WiFi), infrared data organization ( Any type of wireless transmission technology, such as Infrared Data Association (referred to as IrDA), Bluetooth, Bluetooth Low Energy (BLE), and Zigbee, is used for transmission.
当主设备同时连接多个从设备,不同从设备所需的传输需求可能不同,例如耳机作为从设备所需的传输时间可能远远大于其他从设备,因此,若不对从设备与主设备间链路的传输时间进行调度,便可能与其它从设备与主设备间的链路存在时间冲突,导致资源浪费。When the master device is connected to multiple slave devices at the same time, the transmission requirements of different slave devices may be different. For example, the transmission time required by the headset as a slave device may be much longer than other slave devices. Therefore, if the link between the slave device and the master device is not When scheduling the transmission time, there may be a time conflict with the links between other slave devices and the master device, resulting in waste of resources.
本申请实施例所提供的链路处理方法,可通过对主设备和从设备间链路的通信时间进行调节,实现时间轴上从设备与主设备间链路的需求的合理调度,有效避免不同从设备与主设备间链路的时间冲突,避免资源浪费,提高资源的利用率。The link processing method provided in the embodiment of the present application can adjust the communication time of the link between the master device and the slave device to achieve reasonable scheduling of the demand for the link between the slave device and the master device on the time axis, effectively avoiding differences The time conflict of the link between the slave device and the master device prevents resource waste and improves resource utilization.
需要说明的是,本申请下述各实施例所涉及的链路均可以为逻辑链路,通过执行各实施例提供的方案可对主设备与从设备间逻辑链路的通信时间进行调节。It should be noted that the links involved in the following embodiments of the present application may be logical links, and the communication time of the logical link between the master device and the slave device may be adjusted by implementing the solutions provided by the embodiments.
如下通过多个示例进行说明。图2为本申请实施例提供的一种链路处理方法的流程图一。该链路处理方法可由主设备和从设备交互进行实现。如图2所示,该方法可包括:This is illustrated by multiple examples as follows. FIG. 2 is a first flowchart of a link processing method according to an embodiment of the present application. The link processing method can be implemented by the master device and the slave device interactively. As shown in FIG. 2, the method may include:
S201、主设备向从设备发送调节指示。S201. The master device sends an adjustment instruction to the slave device.
该调节指示可用于使得从设备调节与主设备间链路的通信时间。该链路的通信时间也可称为时间锚点,如该链路的起始通信时间点。This adjustment indication can be used to enable the slave device to adjust the communication time of the link with the master device. The communication time of the link can also be called a time anchor point, such as the initial communication time point of the link.
无论是主设备还是从设备,其分别具有逻辑链路控制(Logic Link Control,LLC)模块和逻辑链路驱动(Logic Link Driver,LLD)模块。在该实施例中,可由主设备的LLC模块,向从设备的LLC模块发送该调节指示。Whether it is a master device or a slave device, it has a logic link control (LLC) module and a logic link driver (LLD) module. In this embodiment, the LLC module of the master device can send the adjustment instruction to the LLC module of the slave device.
其中,该调节指示可以为逻辑链路的连接更新指示(Logic Link Connection Update Indicator,简称LL_CONNECTION_UPDATE_IND)。The adjustment instruction may be a connection update instruction (Logic Link Connection Update Indicator, LL_CONNECTION_UPDATE_IND) of the logical link.
S202、从设备接收来自主设备的该调节指示,并根据该调节指示调节与该主设备间链路的通信时间。S202. The slave device receives the adjustment instruction from the master device, and adjusts the communication time of the link with the master device according to the adjustment instruction.
从设备的LLC模块在接收到该调节指示后,便可向从设备的LLD模块,发送该调节指示,由从设备的LLD模块对该链路的通信时间进行调节。After the LLC module of the slave device receives the adjustment instruction, it can send the adjustment instruction to the LLD module of the slave device, and the LLD module of the slave device adjusts the communication time of the link.
该从设备可根据该调节指示,对与该主设备间的链路的通信时间进行调节,使得调节后的该链路的通信时间与其它链路的通信时间不存在冲突,或者,使得调节后的该链路的通信时间中空闲时间小于或等于预设时间,减小了空闲时间。The slave device may adjust the communication time of the link with the master device according to the adjustment instruction, so that the adjusted communication time of the link does not conflict with the communication time of other links, or after the adjustment, The idle time in the communication time of the link is less than or equal to the preset time, which reduces the idle time.
例如,在该链路创建后,该从设备的上层应用模块可对该链路配置有预设的通信时间等通信参数。该预设的通信时间可以为预设的最小传输带宽,或者,持续时间所对应的通信时间。For example, after the link is created, the upper-layer application module of the slave device may configure the link with communication parameters such as a preset communication time. The preset communication time may be a preset minimum transmission bandwidth, or a communication time corresponding to the duration.
或者,在该链路创建后,若该从设备的上层应用模块未对该链路的通信时间进行配置,可由该从设备的底层控制器(controller)对该链路的通信时间进行随机分布。Or, after the link is created, if the upper-layer application module of the slave device does not configure the communication time of the link, the lower-layer controller of the slave device may randomly distribute the communication time of the link.
该从设备在接收到该调节指示后,可对上层应用模块所配置的该预设的通信时间,或者,底层控制器所随机分布的通信时间进行调节。After receiving the adjustment instruction, the slave device can adjust the preset communication time configured by the upper-layer application module or the communication time randomly distributed by the lower-level controller.
可选的,该调节指示中可包括有该通信时间的调节参数,也可不包括该通信时间的调节参数。Optionally, the adjustment instruction may include an adjustment parameter of the communication time, or may not include an adjustment parameter of the communication time.
若该调节指示包括该调节参数,则该从设备可根据该调节参数调节与该主设备间链路的通信时间。If the adjustment instruction includes the adjustment parameter, the slave device can adjust the communication time of the link with the master device according to the adjustment parameter.
若该调节指示不包括该调节参数,则该从设备可根据预设的单位调节参数,调节与主设备间链路的通信时间。If the adjustment instruction does not include the adjustment parameter, the slave device can adjust the parameter according to a preset unit to adjust the communication time of the link with the master device.
S203、从设备向主设备发送调节响应。S203. The slave device sends an adjustment response to the master device.
该从设备可在对该链路的通信时间调节的过程中或者,调节完成后,向主设备发送调节响应。该调节响应可用于使得该主设备也对该链路的通信时间进行调节。The slave device may send an adjustment response to the master device during the adjustment of the communication time of the link or after the adjustment is completed. The adjustment response can be used to make the master device also adjust the communication time of the link.
在该实施例中,可由该从设备的LLC模块向主设备的LLC模块发送该调节响应。In this embodiment, the LLC module of the slave device can send the adjustment response to the LLC module of the master device.
可选的,该调节响应可以为LL_CONNECTION_UPDATE_IND对应的响应(ACKnowledge,简称ACK)。Optionally, the adjustment response may be a response (ACKnowledge, ACK for short) corresponding to LL_CONNECTION_UPDATE_IND.
S204、主设备接收来自从设备的该调节响应,并基于该调节响应调节该链路的通信时间。S204. The master device receives the adjustment response from the slave device, and adjusts the communication time of the link based on the adjustment response.
主设备的LLC模块在接收到该调节响应后,便可向主设备的LLD模块,发送该调节响应,由主设备的LLD模块对该链路的通信时间进行调节。After the LLC module of the master device receives the adjustment response, it can send the adjustment response to the LLD module of the master device, and the LLD module of the master device adjusts the communication time of the link.
该主设备可根据该调节响应,对该链路的通信时间进行调节,使得调节后的该链路的通信时间与其它链路的通信时间不存在冲突,或者,使得调节后的该链路的通信时间中空闲时间小于或等于预设时间,减小了空闲时间。The master device may adjust the communication time of the link according to the adjustment response, so that the adjusted communication time of the link does not conflict with the communication time of other links, or make the adjusted time of the link The idle time in the communication time is less than or equal to the preset time, which reduces the idle time.
本申请实施例提供的链路处理方法,可通过主设备向从设备发送调节指示,使得从设备调节与该主设备间链路的通信时间,该调节指示为逻辑链路的连接更新指示;主设备还接收该从设备返回的调节响应,该调节响应为该连接更新指示对应的响应;主设备还根据该调节响应,调节该链路的通信时间。该方法中,可使得主设备和从设备分别调节该主设备与该从设备间链路的通信时间,实现时间轴上主设备对从设备间链路需求的合理调度,有效避免不同从设备与主设备间链路的时间冲突,避免资源浪费,提高资源的利用率。The link processing method provided in the embodiment of the present application may send an adjustment instruction to the slave device through the master device, so that the slave device adjusts the communication time of the link with the master device, and the adjustment instruction is a connection update instruction of the logical link; The device also receives an adjustment response returned by the slave device, and the adjustment response is a response corresponding to the connection update indication; the master device also adjusts the communication time of the link according to the adjustment response. In this method, the master device and the slave device can respectively adjust the communication time of the link between the master device and the slave device, realize the reasonable scheduling of the link demand between the master device and the slave device on the time axis, and effectively avoid different slave devices and The time conflict between the links between the master devices prevents resource waste and improves resource utilization.
可选的,如上所示的链路处理方法中,该调节参数可包括:该链路的目标通信时间,和/或,该目标通信时间对应的时间偏移量。Optionally, in the link processing method shown above, the adjustment parameter may include: a target communication time of the link, and / or a time offset corresponding to the target communication time.
其中,该目标通信时间可以为精确的时间点,该时间偏移量可以为该目标通信时间相对于当前通信时间的时间偏移量,即精确时间偏移。The target communication time may be an accurate time point, and the time offset may be a time offset of the target communication time relative to a current communication time, that is, an accurate time offset.
在本申请实施例的方法中,可由主设备主动发起进行该链路的通信时间调节,也可由从设备主动发起进行该链路的通信时间调节。In the method of the embodiment of the present application, the master device can actively initiate the communication time adjustment of the link, and the slave device can also actively initiate the communication time adjustment of the link.
若由主设备主动发起调节,则该主设备可直接向从设备发送该调节指示,在该调节指示中可包括有该调节参数;该主设备还可与从设备进行协商,即向从设备发送调节请求,并在接收到从设备返回的调节响应后,向从设备发送包括该调节参数的调节指示。If the master device actively initiates the adjustment, the master device may directly send the adjustment instruction to the slave device, and the adjustment instruction may include the adjustment parameter; the master device may also negotiate with the slave device, that is, send to the slave device After the adjustment request is received, an adjustment instruction including the adjustment parameter is sent to the slave device after receiving the adjustment response returned by the slave device.
在该示例中,若该主设备与从设备协商,则该协商过程中的该调节请求和该调节响应中也可包括:该调节参数。图3为本申请实施例提供的一种链路处理方法中用于协商的分组数据单元(Packet Data Unit,简称PDU)的结构示意图。该调节请求和该调节响应的结构可以为图3所示的PDU。In this example, if the master device negotiates with the slave device, the adjustment request and the adjustment response in the negotiation process may also include the adjustment parameter. FIG. 3 is a schematic structural diagram of a packet data unit (PDU) used for negotiation in a link processing method according to an embodiment of the present application. The structure of the adjustment request and the adjustment response may be a PDU shown in FIG. 3.
如图3所示,该PDU的ctr数据部分可包括:2字节的最小间隔(Intervval-Min)字段、2字节的最大间隔(Interval-Max)字段、2字节的延迟(Latency)字段、2字节的超时(Timeout)字段、2字节的首选周期(Preferred Periodicity)、2字节的参考连接事件数(Reference ConnEventCount)字段、偏移0(offset0)字段至偏移5(offset5)6个偏移字段,每个偏移字段具有2字节。As shown in FIG. 3, the ctr data part of the PDU may include: a 2-byte Intervval-Min field, a 2-byte Interval-Max field, and a 2-byte Latency field , 2-byte Timeout field, 2-byte Preferred Period, 2-byte Reference ConnEventCount field, offset 0 (offset0) field to offset 5 (offset5) 6 offset fields, each offset field has 2 bytes.
其中,最小间隔字段可携带有该链路上从设备传输数据的最小间隔时间、最大间隔字段可携带有该链路上从设备传输数据的最大间隔时间。该延迟字段可携带该链路的可延迟时间。该超时字段可携带该链路的可超时时间,该首选周期字段可以为该链路的预设传输周期,该参考连接事件数字段可携带有同时与该主设备连接的从设备间的链路条数。每个偏移字段可携带有该目标通信时间对应的时间偏移量。The minimum interval field may carry the minimum interval time for transmitting data from the device on the link, and the maximum interval field may carry the maximum interval time for transmitting data from the device on the link. The delay field may carry the delay time of the link. The timeout field may carry a timeout period of the link, the preferred period field may be a preset transmission period of the link, and the reference connection event number field may carry a link between slave devices connected to the master device at the same time. Number. Each offset field may carry a time offset corresponding to the target communication time.
图4为本申请实施例提供的一种链路处理方法中调节指示的PDU的结构示意图。该调节指示的结构可以为图4所示的PDU。FIG. 4 is a schematic structural diagram of an adjustment indication PDU in a link processing method according to an embodiment of the present application. The structure of the adjustment indication may be the PDU shown in FIG. 4.
如图4所示,该PDU的ctr数据部分可包括:1字节的窗大小(WinSize)字段、2字节的窗偏移(WinOffset)字段、2字节的间隔(interval)字段、2字节的延迟字段、2字节的超时字段及2字节的即时(Inatant)字段。As shown in FIG. 4, the ctr data part of the PDU may include: a 1-byte window size (WinSize) field, a 2-byte window offset (WinOffset) field, a 2-byte interval field, and 2 words The delay field of the section, the 2-byte timeout field, and the 2-byte instant field.
其中,窗大小字段可携带有该链路的时间窗的大小。该窗偏移字段可携带有该链路的时间窗的偏移量。其中,该时间窗也可称为该链路的通信时间。The window size field may carry the size of the time window of the link. The window offset field may carry an offset of a time window of the link. The time window may also be referred to as the communication time of the link.
该间隔字段可携带有该链路传输数据的间隔时间。该延迟字段可携带有该链路的可延迟时间。该超时字段可携带有该链路的可超时时间,该即时字段可携带有即时修改指示,使得从设备即时修改该链路的通信时间。The interval field may carry an interval time for transmitting data on the link. The delay field may carry the delay time of the link. The timeout field may carry a timeout period of the link, and the instant field may carry an instant modification instruction, so that the slave device immediately modifies the communication time of the link.
若由从设备主动发起调节,则该从设备还需与主设备进行协商,该主设备可在接收到从设备发送的调节请求后,向从设备发送该调节指示,该调节指示中可包括有该调节参数。If the slave device actively initiates adjustment, the slave device also needs to negotiate with the master device. The master device can send the adjustment instruction to the slave device after receiving the adjustment request sent by the slave device. The adjustment instruction may include The adjustment parameter.
该调节请求的结构可以为上述图3所示的PDU,该调节指示的结构可以为上述图4所示的PDU。The structure of the adjustment request may be the PDU shown in FIG. 3 described above, and the structure of the adjustment indication may be the PDU shown in FIG. 4 described above.
如下先以由主设备主动发起调节为例进行说明。图5为本申请实施例提供的一种链路处理方法的流程图二。若主设备触发进行调节,则该方法可在上述实施例的方法中,S201中主设备向从设备发送调节指示之前,该方法还可包括:The following first uses the master device to actively initiate adjustment as an example. FIG. 5 is a second flowchart of a link processing method according to an embodiment of the present application. If the master device triggers adjustment, the method may be the method in the foregoing embodiment. Before the master device sends an adjustment instruction to the slave device in S201, the method may further include:
S501、主设备确定预设时间段内的链路状态信息。S501. The master device determines link state information within a preset time period.
可选的,该链路状态信息可包括如下至少一种信息:链路冲突次数、链路冲突时间、链路时间利用率。Optionally, the link state information may include at least one of the following information: the number of link conflicts, the link conflict time, and the link time utilization rate.
其中,该链路冲突次数可以为该链路与其它链路发生时间冲突的次数。该链路冲突时间可以为该链路与该其它链路发生时间冲突的总持续时间。该 链路时间利用率可以为该链路的,已使用的时间、或者,空闲时间,或者,已使用时间与总可用时间的比值等信息。The number of times of link conflicts may be times of time conflicts between the link and other links. The link conflict time may be the total duration of time conflicts between the link and the other links. The link time utilization may be information such as the used time of the link, or the idle time, or the ratio of the used time to the total available time.
当该链路与其它链路在同一时间均传输信息,即该从设备与其它从设备在同一时间向该主设备发送信息或者,该主设备在同一时间向两个从设备发送信息,则该链路与该其它链路存在时间冲突。该其它链路可以为其它的从设备与该主设备间的链路。When the link and other links transmit information at the same time, that is, the slave and other slaves send information to the master at the same time or the master sends information to two slaves at the same time, then There is a time conflict between the link and this other link. The other link may be a link between another slave device and the master device.
该链路处理方法中,可通过统计预设时间段内,该链路与其它链路发生时间冲突的次数,即链路冲突次数,以及链路冲突的发生时间,即该链路冲突时间。In the link processing method, the number of time conflicts between the link and other links during the preset time period, that is, the number of link conflicts, and the time when the link conflict occurs, that is, the link conflict time can be counted.
由于主设备为多个从设备的调度核心,则该主设备,可统计该预设时间段内,该主设备与多个从设备间的多条链路中,每条链路的状态进行统计,而不限于该从设备与该从设备间的该链路,用以确定多条链路中,每条链路的状态信息。每条链路的状态信息可包括如下至少一种:该每条链路的链路冲突次数、该每条链路的链路冲突时间、该每条链路的链路时间利用率。Since the master device is the scheduling core of multiple slave devices, the master device can count the status of each link among the multiple links between the master device and multiple slave devices within the preset time period. , Not limited to the link between the slave device and the slave device, to determine status information of each link among the multiple links. The status information of each link may include at least one of the following: the number of link conflicts of each link, the link conflict time of each link, and the link time utilization rate of each link.
S502、主设备根据该链路状态信息,以及该链路的预设通信时间,确定该调节参数。S502. The master device determines the adjustment parameter according to the link state information and a preset communication time of the link.
主设备可根据该链路状态信息、该链路上传输的数据包长度以及该链路上传输数据包的物理(PHY)包头的类型等信息,确定该链路上每个间隔内所需的通信时间,并根据该链路上每个间隔内的通信时间以及该链路的预设通信时间,确定该调节参数。The master device can determine the required information in each interval on the link based on the link state information, the length of the packet transmitted on the link, and the type of the physical (PHY) header of the packet transmitted on the link. The communication time, and the adjustment parameter is determined according to the communication time in each interval on the link and a preset communication time of the link.
该链路的预设通信时间可以为应用层根据该链路的传输带宽需求所配置的链路带宽所对应的时间。The preset communication time of the link may be the time corresponding to the link bandwidth configured by the application layer according to the transmission bandwidth requirement of the link.
可选的,如上所示的方法中S201中主设备向从设备发送调节指示之前,该方法还可包括:Optionally, before the master device sends the adjustment instruction to the slave device in S201 in the method shown above, the method may further include:
S503、主设备确定该链路状态信息,是否满足预设条件。S503. The master device determines whether the link state information meets a preset condition.
若该链路状态信息可以包括:链路冲突次数,则该预设条件为链路冲突次数大于或等于预设次数。该主设备可确定该链路冲突次数是否大于或等于预设次数,若该链路冲突次数大于或等于预设次数,则可确定该链路状态信息满足该预设条件,则需对该链路的通信时间进行调节;反之,若该链路冲突次数小于预设次数,则可确定该链路状态信息不满足该预设条件,则无需 对该链路的通信时间进行调节。If the link state information may include: the number of link conflicts, the preset condition is that the number of link conflicts is greater than or equal to the preset number. The master device can determine whether the number of link collisions is greater than or equal to a preset number of times. If the number of link collisions is greater than or equal to a preset number of times, it can be determined that the link state information meets the preset condition, and the chain is required to The communication time of the link is adjusted; conversely, if the number of link conflicts is less than the preset number, it can be determined that the link state information does not meet the preset condition, and there is no need to adjust the communication time of the link.
若该链路状态信息包括:链路冲突时间,则该预设条件为链路冲突时间大于或等于预设时间。该主设备可确定该链路冲突时间是否大于或等于预设时间,若该链路冲突时间大于或等于预设时间,则可确定该链路状态信息满足该预设条件,则需对该链路的通信时间进行调节;反之,若该链路冲突时间小于预设时间,则可确定该链路状态信息不满足该预设条件,则无需对该链路的通信时间进行调节。If the link state information includes: link conflict time, the preset condition is that the link conflict time is greater than or equal to the preset time. The master device can determine whether the link conflict time is greater than or equal to a preset time, and if the link conflict time is greater than or equal to a preset time, then it can be determined that the link state information meets the preset condition, and the link needs to be The communication time of the link is adjusted; conversely, if the link conflict time is less than the preset time, it can be determined that the link state information does not meet the preset condition, and there is no need to adjust the communication time of the link.
若该链路状态信息包括:链路时间利用率,则该预设条件可以为链路时间利用率小于或等于预设利用率。该主设备可确定该链路时间利用率是否小于或等于预设时间,若该链路时间利用率小于或等于预设时间,则可确定该链路的空闲时间较多,则该链路状态信息满足该预设条件,需对该链路的通信时间进行调节;反之,若该链路时间利用率小于预设时间,则可确定该链路的空闲时间较少,其利用率较高,该链路状态信息不满足该预设条件,则无需对该链路的通信时间进行调节。If the link state information includes: link time utilization, the preset condition may be that the link time utilization is less than or equal to the preset utilization. The master device can determine whether the link time utilization is less than or equal to the preset time, and if the link time utilization is less than or equal to the preset time, it can determine that the link has more idle time, and the link status If the information meets the preset condition, the communication time of the link needs to be adjusted. Conversely, if the link time utilization is less than the preset time, it can be determined that the link has less idle time and its utilization is higher. If the link status information does not satisfy the preset condition, there is no need to adjust the communication time of the link.
S504、若该链路状态信息满足该预设条件,则主设备向该从设备发送该调节指示。S504. If the link state information meets the preset condition, the master device sends the adjustment instruction to the slave device.
若该链路状态信息满足该预设条件,则可主设备需对该链路的通信时间进行调节,便可触发进行调节,即向该从设备发送该调节指示。If the link state information satisfies the preset condition, the master device needs to adjust the communication time of the link, and then triggers the adjustment, that is, sends the adjustment instruction to the slave device.
该链路处理方法,通过主设备发起调节,实现从设备和主设备对该链路的通信时间的调节,实现时间轴上主设备对从设备间链路需求的合理调度,有效避免不同从设备与主设备间链路的时间冲突,避免资源浪费,提高资源的利用率。This link processing method initiates adjustments by the master device to adjust the communication time of the link between the slave device and the master device, realizes reasonable scheduling of the link requirements between the slave devices on the time axis, and effectively avoids different slave devices. The time conflict with the link between the master device prevents resource waste and improves resource utilization.
下述示例以从设备主动发起调节为例进行说明,图6为本申请实施例提供的一种链路处理方法的流程图三。若该从设备触发进行调节,则该方法在,S201中主设备向从设备发送调节指示之前,该方法还可包括:The following example is described by taking the initiative to initiate adjustment from a device as an example. FIG. 6 is a third flowchart of a link processing method according to an embodiment of the present application. If the slave device triggers adjustment, the method may include: before the master device sends an adjustment instruction to the slave device in S201, the method may further include:
S601、从设备向主设备发送更新请求,该更新请求包括该调节参数。S601. The slave device sends an update request to the master device, where the update request includes the adjustment parameter.
S602、主设备接收来自从设备的该更新请求。S602. The master device receives the update request from the slave device.
该主设备可在接收到该更新请求后,向从主设备发送包括有该调节参数的该调节指示,以开始调节该链路的通信时间。After receiving the update request, the master device may send the adjustment instruction including the adjustment parameter to the slave master device to start adjusting the communication time of the link.
可选的,S601中从设备向主设备发送更新请求之前,该方法还可包括:Optionally, before the slave device sends an update request to the master device in S601, the method may further include:
S601a、从设备确定预设时间段内的链路状态信息。S601a. The slave device determines link state information within a preset time period.
该S601a的具体实现可与上述S501类似,其区别在于执行主体的不同。在上述S501中,链路状态信息由主设备确定,在该S601a中,该链路状态信息由从设备确定。其具体的实现过程可参见上述S501中的描述,在此不再赘述。The specific implementation of S601a may be similar to the above S501, and the difference lies in the execution subject. In the above S501, the link state information is determined by the master device, and in this S601a, the link state information is determined by the slave device. For a specific implementation process, refer to the description in S501, and details are not described herein again.
S601b、从设备根据该链路状态信息,以及该链路的预设通信时间,确定该调节参数。S601b. The slave device determines the adjustment parameter according to the link state information and a preset communication time of the link.
可选的,如上所示的S601从设备向主设备发送更新请求之前,该方法还可包括:Optionally, before the S601 slave device sends an update request to the master device as shown above, the method may further include:
S601c、从设备确定该链路状态信息,是否满足预设条件。S601c. The slave device determines whether the link state information meets a preset condition.
该S601c的具体实现可与上述S503类似,其区别在于执行主体的不同。在上述S503中,判断操作由主设备确定,在该S601c中,该判断操作由从设备确定。其具体的实现过程可参见上述S503中的描述,在此不再赘述。The specific implementation of the S601c may be similar to the above S503, and the difference lies in the execution subject. In the above S503, the judgment operation is determined by the master device, and in this S601c, the judgment operation is determined by the slave device. For the specific implementation process, refer to the description in S503 above, which is not repeated here.
可选的,上述S601从设备向主设备发送更新请求可包括:Optionally, the sending of the update request from the S601 slave device to the master device may include:
若该链路状态信息满足该预设条件,则从设备向主设备发送该更新请求。If the link state information meets the preset condition, the slave device sends the update request to the master device.
该链路处理方法,通过从设备发起调节,实现从设备和主设备对该链路的通信时间的调节,实现时间轴上主设备对从设备间链路需求的合理调度,有效避免不同从设备与主设备间链路的时间冲突,避免资源浪费,提高资源的利用率。The link processing method, through the adjustment initiated by the slave device, realizes the adjustment of the communication time of the link between the slave device and the master device, realizes the reasonable scheduling of the link demand between the master device and the slave device on the time axis, and effectively avoids different slave devices The time conflict with the link between the master device prevents resource waste and improves resource utilization.
如下以两条链路为例进行说明。该两条链路可以为主设备与两个从设备之间的链路。主设备与从设备1之间的链路可以为链路1,主设备与从设备2之间的链路可以为链路2。图7为本申请实施例提供的一种链路处理方法中两条链路的通信时间的示意图。如图7所示,在链路1和链路2的初始建立阶段,在一个间隔内该链路1的通信时间为Time1,该链路2的通信时间与该链路1的通信时间存在部分重叠,这使得链路1和链路存在时间冲突。因此,为避免下一间隔内,链路1和链路2的时间冲突,需对该链路1或链路2的通信时间进行调节。The following uses two links as an example. The two links can be the link between the master device and the two slave devices. The link between the master device and the slave device 1 may be link 1, and the link between the master device and the slave device 2 may be link 2. FIG. 7 is a schematic diagram of communication times of two links in a link processing method according to an embodiment of the present application. As shown in Figure 7, during the initial establishment of link 1 and link 2, the communication time of link 1 is Time 1 within an interval, and the communication time of link 2 and the communication time of link 1 are partially Overlapping, which makes link 1 and link time conflict. Therefore, in order to avoid the time conflict between link 1 and link 2 in the next interval, the communication time of link 1 or link 2 needs to be adjusted.
该方法可由主设备或者从设备1或者从设备2触发进行通信时间的调节,具体的实现过程参见上述,在此不再赘述。This method may be triggered by the master device or the slave device 1 or the slave device 2 to adjust the communication time. For a specific implementation process, refer to the foregoing, and details are not described herein again.
该示例中,可通过对一个间隔内的链路1和链路2的状态信息进行统计,并根据该链路状态信息、该链路上传输的数据包长度以及该链路上传输数据 包的物理包头的类型等信息确定该链路上每个间隔内所需的通信时间,并根据该链路上每个间隔内的通信时间以及该链路的预设通信时间,确定该调节参数,如图7中所示的时间偏移量。该方法中,例如可通过比较链路1上的数据包如T1和R1,以及链路2上的数据包如T2和R2,可知,链路1的通信时间无法满足其传输需求,则需根据该时间偏移量对该链路2的起始通信时间进行调节,使得链路1的通信时间调节为图7所示的Time2,从而有效避免链路1和链路2在下一间隔内到的时间冲突。In this example, statistics on the state information of link 1 and link 2 within an interval can be made, and based on the state information of the link, the length of the data packets transmitted on the link, and the number of packets transmitted on the link. Information such as the type of the physical header determines the communication time required in each interval on the link, and determines the adjustment parameter based on the communication time in each interval on the link and the preset communication time for the link, such as The time offset shown in FIG. 7. In this method, for example, by comparing the data packets on link 1 such as T1 and R1 and the data packets on link 2 such as T2 and R2, it can be known that the communication time of link 1 cannot meet its transmission requirements, and it is necessary to The time offset adjusts the initial communication time of the link 2 so that the communication time of the link 1 is adjusted to Time 2 as shown in FIG. 7, thereby effectively avoiding the arrival of the link 1 and the link 2 in the next interval. Time Conflict.
本申请实施例还可提供一种设备,该设备可作为主设备。图8为本申请实施例提供的一种设备的结构示意图一。该设备可执行上述图2-图7中任一所述的主设备执行的链路处理方法。如图8所示,该设备80可包括:An embodiment of the present application may further provide a device, which may be used as a master device. FIG. 8 is a first schematic structural diagram of a device according to an embodiment of the present application. The device may execute the link processing method performed by the master device described in any one of the foregoing FIG. 2 to FIG. 7. As shown in FIG. 8, the device 80 may include:
发送模块81,用于向从设备发送调节指示,以使该从设备调节与主设备间链路的通信时间;该调节指示为:逻辑链路的连接更新指示。The sending module 81 is configured to send an adjustment instruction to the slave device, so that the slave device adjusts the communication time of the link with the master device; the adjustment instruction is: a connection update instruction of the logical link.
接收模块82,用于接收该从设备返回的调节响应,该调节响应为:该连接更新指示对应的响应。The receiving module 82 is configured to receive an adjustment response returned by the slave device, where the adjustment response is: a response corresponding to the connection update indication.
处理模块83,用于基于该调节响应,调节该链路的通信时间。The processing module 83 is configured to adjust the communication time of the link based on the adjustment response.
可选的,该调节指示包括:该通信时间的调节参数。Optionally, the adjustment indication includes: an adjustment parameter of the communication time.
可选的,调节参数包括:该链路的目标通信时间,和/或,该目标通信时间对应的时间偏移量。Optionally, the adjustment parameters include: a target communication time of the link, and / or a time offset corresponding to the target communication time.
可选的,处理模块83,还用于确定预设时间段内的链路状态信息;根据所述链路状态信息,以及所述链路的预设通信时间,确定所述调节参数。Optionally, the processing module 83 is further configured to determine link state information within a preset time period; and determine the adjustment parameter according to the link state information and a preset communication time of the link.
可选的,该链路状态信息包括如下至少一种信息:链路冲突次数、链路冲突时间、链路时间利用率。Optionally, the link state information includes at least one of the following information: the number of link conflicts, the link conflict time, and the link time utilization rate.
可选的,处理模块83,还用于确定该链路状态信息,是否满足预设条件。Optionally, the processing module 83 is further configured to determine whether the link state information meets a preset condition.
发送模块81,具体用于若该链路状态信息满足预设条件则向该从设备发送所述调节指示。The sending module 81 is specifically configured to send the adjustment instruction to the slave device if the link state information meets a preset condition.
可选的,接收模块82,还用于接收来自该从设备的更新请求;该更新请求包括:该调节参数。Optionally, the receiving module 82 is further configured to receive an update request from the slave device; the update request includes: the adjustment parameter.
可选的,该调节参数为该从设备确定预设时间段内的链路状态信息,并根据该链路状态信息,以及该链路的预设通信时间,所确定的。Optionally, the adjustment parameter is determined by the slave device to determine link state information within a preset time period, and is determined according to the link state information and a preset communication time of the link.
可选的,该更新请求为该从设备在确定该链路状态信息满足预设条件的情况下,所发送的。Optionally, the update request is sent by the slave device when it is determined that the link state information meets a preset condition.
可选的,发送模块81,还用于根据该调节后的通信时间,与向从设备发送信息。Optionally, the sending module 81 is further configured to send information to the slave device according to the adjusted communication time.
接收模块82,还用于根据调节后的通信时间,接收从设备发送的信息。The receiving module 82 is further configured to receive information sent from the device according to the adjusted communication time.
可选的,本申请还可提供一种设备。图9为本申请实施例提供的一种设备的结构示意图二。如图9所示,该设备90可作为主设备,其可包括:存储器91和处理器92。存储器91和处理器92耦合。Optionally, a device may be provided in the present application. FIG. 9 is a second schematic structural diagram of a device according to an embodiment of the present application. As shown in FIG. 9, the device 90 may serve as a master device, which may include a memory 91 and a processor 92. The memory 91 and the processor 92 are coupled.
存储器91,用于存储程序指令。The memory 91 is configured to store a program instruction.
处理器92,用于调用该存储器存储的程序指令,使得上述主设备执行的任一链路处理方法。The processor 92 is configured to call a program instruction stored in the memory, so that any link processing method performed by the foregoing master device is performed.
本申请实施例还可提供一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器92执行时实现执行上述主设备执行的任一链路处理方法。An embodiment of the present application may further provide a computer-readable storage medium on which a computer program is stored. When the computer program is executed by the processor 92, any link processing method performed by the foregoing master device is implemented.
本申请实施例提供的设备及计算机可读存储介质,可执行上述任一所述实施例提供的主设备执行的链路处理方法,其具体的实现过程及有益效果参见上述,在此不再赘述。The device and the computer-readable storage medium provided in the embodiments of the present application can execute the link processing method performed by the master device provided in any one of the foregoing embodiments. For the specific implementation process and beneficial effects, refer to the foregoing, and will not be repeated here .
本申请实施例还可提供一种设备,该设备可作为从设备。图10为本申请实施例提供的一种设备的结构示意图三。该设备可执行上述图2-图7中任一所述的从设备执行的链路处理方法。如图10所示,该设备100可包括:The embodiment of the present application may further provide a device, which may be used as a slave device. FIG. 10 is a third schematic structural diagram of a device according to an embodiment of the present application. The device may execute the link processing method performed by the slave device described in any one of the foregoing FIG. 2 to FIG. 7. As shown in FIG. 10, the device 100 may include:
接收模块101,用于从设备接收来自主设备的调节指示;该调节指示为:逻辑链路的连接更新指示;。The receiving module 101 is configured to receive an adjustment instruction from a master device by the slave device; the adjustment instruction is: a connection update instruction of a logical link;
处理模块102,用于根据该调节指示调节与该主设备间链路的通信时间。The processing module 102 is configured to adjust a communication time of a link with the master device according to the adjustment instruction.
发送模块103,用于向该主设备发送调节响应,以使改主设备调节该通信时间;该调节响应为:该连接更新指示对应的响应。The sending module 103 is configured to send an adjustment response to the master device, so that the master device adjusts the communication time; the adjustment response is: a response corresponding to the connection update indication.
可选的,该调节指示包括:该通信时间的调节参数。Optionally, the adjustment indication includes: an adjustment parameter of the communication time.
可选的,该调节参数为该主设备确定预设时间段内的链路状态信息,并根据该链路状态信息,以及该主设备与该从设备间链路的预设通信时间,所确定的。Optionally, the adjustment parameter determines the link state information within a preset time period for the master device, and determines based on the link state information and a preset communication time of the link between the master device and the slave device. of.
可选的,该调节指示为该主设备在确定该链路状态信息满足预设条件的情况下,所发送的。Optionally, the adjustment indication is sent by the master device when it is determined that the link state information meets a preset condition.
可选的,发送模块103,还用于向该主设备发送更新请求;该更新请求包括:该调节参数。Optionally, the sending module 103 is further configured to send an update request to the master device; the update request includes: the adjustment parameter.
可选的,处理模块102,还用于确定预设时间段内的链路状态信息;根据该链路状态信息,以及该主设备与该从设备间链路的预设通信时间,确定该调节参数。Optionally, the processing module 102 is further configured to determine link state information within a preset time period; and determine the adjustment according to the link state information and a preset communication time of the link between the master device and the slave device. parameter.
可选的,处理模块102,还用于确定该链路状态信息,是否满足预设条件。Optionally, the processing module 102 is further configured to determine whether the link state information meets a preset condition.
发送模块103,还用于若该链路状态信息满足预设条件,则向该主设备发送更新请求。The sending module 103 is further configured to send an update request to the master device if the link state information meets a preset condition.
可选的,接收模块101,还用于根据该调节后的通信时间,接收主设备发送信息。Optionally, the receiving module 101 is further configured to receive the information sent by the master device according to the adjusted communication time.
发送模块103,还用于根据调节后的通信时间,向主设备发送信息。The sending module 103 is further configured to send information to the master device according to the adjusted communication time.
可选的,本申请还可提供一种设备。图11为本申请实施例提供的一种设备的结构示意图四。如图11所示,该设备110可作为主设备,其可包括:存储器111和处理器112。存储器111和处理器112耦合。Optionally, a device may be provided in the present application. FIG. 11 is a fourth structural schematic diagram of a device according to an embodiment of the present application. As shown in FIG. 11, the device 110 may serve as a master device, which may include a memory 111 and a processor 112. The memory 111 and the processor 112 are coupled.
存储器111,用于存储程序指令。The memory 111 is configured to store a program instruction.
处理器112,用于调用该存储器存储的程序指令,使得上述从设备执行的任一链路处理方法。The processor 112 is configured to call a program instruction stored in the memory, so that any link processing method performed by the foregoing slave device.
本申请实施例还可提供一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器112执行时实现执行上述从设备执行的任一链路处理方法。An embodiment of the present application may further provide a computer-readable storage medium on which a computer program is stored. When the computer program is executed by the processor 112, it implements execution of any of the link processing methods performed by the slave device.
本申请实施例提供的设备及计算机可读存储介质,可执行上述任一所述实施例提供的从设备执行的链路处理方法,其具体的实现过程及有益效果参见上述,在此不再赘述。The device and the computer-readable storage medium provided in the embodiments of the present application can execute the link processing method performed by the slave device provided in any of the foregoing embodiments. For specific implementation processes and beneficial effects, refer to the foregoing, and are not repeated here. .
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。A person of ordinary skill in the art may understand that all or part of the steps of the foregoing method embodiments may be completed by a program instructing related hardware. The foregoing program may be stored in a computer-readable storage medium. The method includes the steps of the foregoing method embodiment; and the foregoing storage medium includes: a ROM, a RAM, a magnetic disk, or an optical disc, which can store various program codes.
后应说明的是:以上各实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述各实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。It should be explained later that the above embodiments are only used to illustrate the technical solution of the present application, rather than limiting it; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that The technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features are equivalently replaced; and these modifications or replacements do not deviate the essence of the corresponding technical solutions from the technical solutions of the embodiments of this application. range.

Claims (24)

  1. 一种链路处理方法,其特征在于,包括:A link processing method, comprising:
    主设备向从设备发送调节指示,以使所述从设备调节与所述主设备间链路的通信时间;所述调节指示为逻辑链路的连接更新指示;The master device sends an adjustment instruction to the slave device, so that the slave device adjusts the communication time of the link with the master device; the adjustment instruction is a connection update instruction of the logical link;
    所述主设备接收所述从设备返回的调节响应;所述调节响应为所述连接更新指示对应的响应;The master device receives an adjustment response returned by the slave device; the adjustment response is a response corresponding to the connection update indication;
    所述主设备基于所述调节响应,调节所述链路的通信时间。The master device adjusts the communication time of the link based on the adjustment response.
  2. 根据权利要求1所述的方法,其特征在于,所述调节指示包括:所述通信时间的调节参数。The method according to claim 1, wherein the adjustment indication comprises: an adjustment parameter of the communication time.
  3. 根据权利要求2所述的方法,其特征在于,所述调节参数包括:所述链路的目标通信时间,和/或,所述目标通信时间对应的时间偏移量。The method according to claim 2, wherein the adjustment parameter comprises: a target communication time of the link, and / or a time offset corresponding to the target communication time.
  4. 根据权利要求2所述的方法,其特征在于,所述主设备向从设备发送调节指示之前,所述方法还包括:The method according to claim 2, wherein before the master device sends an adjustment instruction to the slave device, the method further comprises:
    所述主设备确定预设时间段内的链路状态信息;Determining, by the master device, link state information within a preset time period;
    所述主设备根据所述链路状态信息,以及所述链路的预设通信时间,确定所述调节参数。The master device determines the adjustment parameter according to the link state information and a preset communication time of the link.
  5. 根据权利要求4所述的方法,其特征在于,所述链路状态信息包括如下至少一种信息:The method according to claim 4, wherein the link state information comprises at least one of the following information:
    链路冲突次数、链路冲突时间、链路时间利用率。Number of link conflicts, link conflict time, link time utilization.
  6. 根据权利要求4所述的方法,其特征在于,所述主设备向从设备发送调节指示,包括:The method according to claim 4, wherein the master device sending the adjustment instruction to the slave device comprises:
    所述主设备确定所述链路状态信息,是否满足预设条件;Determining, by the master device, whether the link state information satisfies a preset condition;
    若是,则所述主设备向所述从设备发送所述调节指示。If yes, the master device sends the adjustment instruction to the slave device.
  7. 根据权利要求2所述的方法,其特征在于,所述主设备向从设备发送调节指示之前,所述方法还包括:The method according to claim 2, wherein before the master device sends an adjustment instruction to the slave device, the method further comprises:
    所述主设备接收来自所述从设备的更新请求;所述更新请求包括:所述调节参数。The master device receives an update request from the slave device; the update request includes the adjustment parameter.
  8. 根据权利要求7所述的方法,其特征在于,所述调节参数为所述从设备确定预设时间段内的链路状态信息,并根据所述链路状态信息,以及所述链路的预设通信时间,所确定的。The method according to claim 7, wherein the adjustment parameter determines the link state information within a preset time period for the slave device, and according to the link state information and the link's Set the communication time as determined.
  9. 根据权利要求8所述的方法,其特征在于,所述更新请求为所述从设备在确定所述链路状态信息满足预设条件的情况下,所发送的。The method according to claim 8, wherein the update request is sent by the slave device when it is determined that the link state information meets a preset condition.
  10. 根据权利要求1-9中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-9, wherein the method further comprises:
    所述主设备根据所述调节后的通信时间,与所述从设备传输信息。The master device transmits information to the slave device according to the adjusted communication time.
  11. 一种链路处理方法,其特征在于,包括:A link processing method, comprising:
    从设备接收来自主设备的调节指示;所述调节指示为:逻辑链路的连接更新指示;The slave device receives an adjustment instruction from the master device; the adjustment instruction is: a connection update instruction of the logical link;
    所述从设备根据所述调节指示调节与所述主设备间链路的通信时间;Adjusting, by the slave device, a communication time of a link with the master device according to the adjustment instruction;
    所述从设备向所述主设备发送调节响应,以使所述主设备调节所述链路的通信时间;所述调节响应为:所述连接更新指示对应的响应。The slave device sends an adjustment response to the master device, so that the master device adjusts the communication time of the link; the adjustment response is: a response corresponding to the connection update indication.
  12. 根据权利要求11所述的方法,其特征在于,所述调节指示包括:所述通信时间的调节参数。The method according to claim 11, wherein the adjustment indication comprises: an adjustment parameter of the communication time.
  13. 根据权利要求12所述的方法,其特征在于,所述调节参数为所述主设备确定预设时间段内的链路状态信息,并根据所述链路状态信息,以及所链路的预设通信时间,所确定的。The method according to claim 12, wherein the adjustment parameter determines the link state information within a preset time period for the master device, and according to the link state information and a preset of the link Communication time, as determined.
  14. 根据权利要求13所述的方法,其特征在于,所述调节指示为所述主设备在确定所述链路状态信息满足预设条件的情况下,所发送的。The method according to claim 13, wherein the adjustment indication is sent by the master device when it is determined that the link state information meets a preset condition.
  15. 根据权利要求12所述的方法,其特征在于,所述从设备接收来自主设备的调节指示之前,所述方法还包括:The method according to claim 12, wherein before the slave device receives the adjustment instruction from the master device, the method further comprises:
    所述从设备向所述主设备发送更新请求;所述更新请求包括:所述调节参数。The slave device sends an update request to the master device; the update request includes: the adjustment parameter.
  16. 根据权利要求15所述的方法,其特征在于,所述从设备向所述主设备发送更新请求之前,所述方法还包括:The method according to claim 15, wherein before the slave device sends an update request to the master device, the method further comprises:
    所述从设备确定预设时间段内的链路状态信息;Determining, by the slave device, link state information within a preset time period;
    所述从设备根据所述链路状态信息,以及所述链路的预设通信时间,确定所述调节参数。The slave device determines the adjustment parameter according to the link state information and a preset communication time of the link.
  17. 根据权利要求16所述的方法,其特征在于,所述从设备向所述主设备发送更新请求,包括:The method according to claim 16, wherein the sending, by the slave device, an update request to the master device comprises:
    所述从设备确定所述链路状态信息,是否满足预设条件;Determining, by the slave device, whether the link state information satisfies a preset condition;
    若是,则所述从设备向所述主设备发送更新请求。If yes, the slave device sends an update request to the master device.
  18. 根据权利要求11-17中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 11-17, wherein the method further comprises:
    所述从设备根据所述调节后的通信时间,与所述主设备传输信息。The slave device transmits information to the master device according to the adjusted communication time.
  19. 一种设备,其特征在于,所述设备为主设备,所述设备包括:A device, wherein the device is a master device, and the device includes:
    发送模块,用于向从设备发送调节指示,以使所述从设备调节与所述主设备间链路的通信时间;所述调节指示为:逻辑链路的连接更新指示;A sending module, configured to send an adjustment instruction to a slave device, so that the slave device adjusts a communication time of a link with the master device; the adjustment instruction is: a connection update instruction of a logical link;
    接收模块,用于接收所述从设备返回的调节响应;所述调节响应为所述连接更新指示对应的响应;A receiving module, configured to receive an adjustment response returned by the slave device; the adjustment response is a response corresponding to the connection update indication;
    处理模块,用于基于所述调节响应,调节所述链路的通信时间。A processing module, configured to adjust the communication time of the link based on the adjustment response.
  20. 一种设备,其特征在于,所述设备为从设备,所述设备包括:A device, wherein the device is a slave device, and the device includes:
    接收模块,用于从设备接收来自主设备的调节指示;所述调节指示为:逻辑链路的连接更新指示;A receiving module, configured to receive an adjustment instruction from a master device by the slave device; the adjustment instruction is: a connection update instruction of a logical link;
    调节模块,用于根据所述调节指示调节与所述主设备间链路的通信时间;An adjustment module, configured to adjust a communication time of a link with the master device according to the adjustment instruction;
    发送模块,用于向所述主设备发送调节响应,以使所述主设备调节所述链路的通信时间;所述调节响应为:所述连接更新指示对应的响应。A sending module is configured to send an adjustment response to the master device, so that the master device adjusts the communication time of the link; the adjustment response is: a response corresponding to the connection update indication.
  21. 一种设备,其特征在于,所述设备为主设备,所述设备包括:存储器和处理器;所述存储器与所述处理器耦合;A device, wherein the device is a master device, the device includes: a memory and a processor; the memory is coupled to the processor;
    所述存储器,用于存储程序指令;The memory is used to store program instructions;
    所述处理器,用于调用所述存储器存储的程序指令,使得所述主设备执行上述权利要求1-10中任一项所述的链路处理方法。The processor is configured to call a program instruction stored in the memory, so that the master device executes the link processing method according to any one of claims 1-10.
  22. 一种设备,其特征在于,所述设备为从设备,所述设备包括:存储器和处理器;所述存储器与所述处理器耦合;A device, wherein the device is a slave device, the device includes: a memory and a processor; the memory is coupled to the processor;
    所述存储器,用于存储程序指令;The memory is used to store program instructions;
    所述处理器,用于调用所述存储器存储的程序指令,使得所述从设备执行上述权利要求11-18中任一项所述的链路处理方法。The processor is configured to call a program instruction stored in the memory, so that the slave device executes the link processing method according to any one of claims 11-18.
  23. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求1-10任一项所述的链路处理方法。A computer-readable storage medium having stored thereon a computer program, characterized in that when the computer program is executed by a processor, the link processing method according to any one of claims 1-10 is implemented.
  24. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于, 所述计算机程序被处理器执行时实现权利要求11-18中任一项所述的链路处理方法。A computer-readable storage medium having stored thereon a computer program, characterized in that when the computer program is executed by a processor, the link processing method according to any one of claims 11-18 is implemented.
PCT/CN2018/104444 2018-09-06 2018-09-06 Link processing method and device and storage medium WO2020047810A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201880001590.6A CN109314630B (en) 2018-09-06 2018-09-06 Link processing method, device and storage medium
PCT/CN2018/104444 WO2020047810A1 (en) 2018-09-06 2018-09-06 Link processing method and device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/104444 WO2020047810A1 (en) 2018-09-06 2018-09-06 Link processing method and device and storage medium

Publications (1)

Publication Number Publication Date
WO2020047810A1 true WO2020047810A1 (en) 2020-03-12

Family

ID=65221737

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/104444 WO2020047810A1 (en) 2018-09-06 2018-09-06 Link processing method and device and storage medium

Country Status (2)

Country Link
CN (1) CN109314630B (en)
WO (1) WO2020047810A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111579973B (en) * 2019-02-19 2022-03-08 深圳市汇顶科技股份有限公司 Chip synchronous testing method, chip, electronic equipment and storage medium
EP3975612B1 (en) * 2019-10-14 2023-10-11 Shenzhen Goodix Technology Co., Ltd. Link processing methods
CN112367655B (en) * 2020-11-06 2023-01-10 炬力(珠海)微电子有限公司 Communication method and device for TWS equipment team formation and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104798436A (en) * 2012-09-05 2015-07-22 联发科技股份有限公司 Bluetooth low energy and LTE coexistence enhancements
WO2017071552A1 (en) * 2015-10-27 2017-05-04 华为技术有限公司 Time slot scheduling method and apparatus
CN107926073A (en) * 2015-09-21 2018-04-17 尼科创业控股有限公司 The transmission that data pass through mesh network topology structure
CN108495371A (en) * 2018-03-28 2018-09-04 广州极飞科技有限公司 Communication means and system, using its main equipment and from equipment and unmanned plane

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100958983B1 (en) * 2002-10-10 2010-05-20 파나소닉 주식회사 Communication terminal, power save processing method to be performed by the communication terminal, program for executing the method, and recording medium containing the program
CN100542180C (en) * 2007-04-12 2009-09-16 华为技术有限公司 Method and device during a kind of bandwidth of advanced data link control channel is dynamically adjusted
CN102026358B (en) * 2010-12-20 2013-06-05 中国人民解放军信息工程大学 Decode-and-forward power distribution method and system of in three-node cooperative communication
CN103294521B (en) * 2013-05-30 2016-08-10 天津大学 A kind of method reducing data center's traffic load and energy consumption
US9661657B2 (en) * 2013-11-27 2017-05-23 Intel Corporation TCP traffic adaptation in wireless systems
US10123335B2 (en) * 2015-07-30 2018-11-06 Qualcomm Incorporated Quality of service related enhancements for LTE over shared spectrum

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104798436A (en) * 2012-09-05 2015-07-22 联发科技股份有限公司 Bluetooth low energy and LTE coexistence enhancements
CN107926073A (en) * 2015-09-21 2018-04-17 尼科创业控股有限公司 The transmission that data pass through mesh network topology structure
WO2017071552A1 (en) * 2015-10-27 2017-05-04 华为技术有限公司 Time slot scheduling method and apparatus
CN108495371A (en) * 2018-03-28 2018-09-04 广州极飞科技有限公司 Communication means and system, using its main equipment and from equipment and unmanned plane

Also Published As

Publication number Publication date
CN109314630A (en) 2019-02-05
CN109314630B (en) 2022-01-25

Similar Documents

Publication Publication Date Title
CN105191216B (en) The system and method for Buffer Status Report for multithread polymerization
CN108990031B (en) Optimized bluetooth scheduling for accessory devices
WO2020047810A1 (en) Link processing method and device and storage medium
EP2647175B1 (en) Facilitating device-to-device communication
KR20100017105A (en) Method for optimizing near field links
CN108293236B (en) Method for redefining a time alignment timer of a wireless communication network, corresponding user equipment and network node
TW201312357A (en) Wireless data communication
US11115885B2 (en) Audio synchronization during handover
WO2022001175A1 (en) Data packet sending method and apparatus
EP3035632B1 (en) Multi- acked multicast protocol
US11582827B2 (en) Accelerating control procedures over BLE connection oriented services
TWI378676B (en) Method for scheduling transmission time in a communications system, link layer coordinating device and multiple access communications system
US20220117011A1 (en) Link processing method, device and storage medium
WO2009136315A1 (en) Methods and devices for managing a network
CN113039826A (en) Communication device using two wireless protocols
WO2019062434A1 (en) Wireless communication method and related device
WO2011052201A1 (en) Communication terminal and communication method
WO2014187103A1 (en) Bandwidth adjustment method and bandwidth adjustment controller
WO2021092839A1 (en) Data transmission method, electronic devices, system and storage medium
US20200229215A1 (en) Devices, systems and methods for power optimization using transmission slot availability mask
WO2022213923A1 (en) Transmission processing method and apparatus, and communication device
WO2022012613A1 (en) Uplink transmission method, receiving method, and apparatus, device, and storage medium
TW202215798A (en) Bluetooth-based data transmission method and data reception method, communicating apparatus and computer storage medium
WO2020147768A1 (en) Data processing method and data processing apparatus
CN116889025A (en) Digital radio communication

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

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

Country of ref document: EP

Kind code of ref document: A1