WO2022078183A1 - 用于确定传输时延的方法和电子设备 - Google Patents
用于确定传输时延的方法和电子设备 Download PDFInfo
- Publication number
- WO2022078183A1 WO2022078183A1 PCT/CN2021/120217 CN2021120217W WO2022078183A1 WO 2022078183 A1 WO2022078183 A1 WO 2022078183A1 CN 2021120217 W CN2021120217 W CN 2021120217W WO 2022078183 A1 WO2022078183 A1 WO 2022078183A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- electronic device
- field
- frame
- transmission delay
- nan
- Prior art date
Links
- 230000005540 biological transmission Effects 0.000 title claims abstract description 288
- 238000000034 method Methods 0.000 title claims abstract description 145
- 230000001360 synchronised effect Effects 0.000 claims abstract description 37
- 230000008569 process Effects 0.000 claims description 26
- 230000015654 memory Effects 0.000 claims description 17
- 238000004590 computer program Methods 0.000 claims description 14
- 238000004891 communication Methods 0.000 description 18
- 230000006870 function Effects 0.000 description 15
- 230000001934 delay Effects 0.000 description 12
- 238000010586 diagram Methods 0.000 description 12
- 230000011664 signaling Effects 0.000 description 9
- 230000009471 action Effects 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 4
- 230000001413 cellular effect Effects 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000002452 interceptive effect Effects 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000003190 augmentative effect Effects 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000002542 deteriorative effect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000008447 perception Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W40/00—Communication routing or communication path finding
- H04W40/24—Connectivity information management, e.g. connectivity discovery or connectivity update
- H04W40/246—Connectivity information discovery
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/12—Discovery or management of network topologies
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/50—Network service management, e.g. ensuring proper service fulfilment according to agreements
- H04L41/5058—Service discovery by the service manager
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0852—Delays
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W8/00—Network data management
- H04W8/005—Discovery of network devices, e.g. terminals
Definitions
- the present application relates to the field of communications, and more particularly to a method and electronic device for determining transmission delay in the field of communications.
- an electronic device and an electronic device can discover each other, establish a connection after discovering each other, and transmit data using the established connection.
- the electronic device does not know the transmission delay between the two electronic devices in the process of transmitting data, which may lead to the failure to meet the transmission requirements. For example, some data delay requirements are high. If the delay is large, the transmission requirements will not be met. Therefore, a method for determining the transmission delay is urgently needed.
- Embodiments of the present application provide a method and electronic device for determining transmission delay.
- a method for determining transmission delay can be executed by a first electronic device, and the first electronic device can be a device capable of supporting the functions required by the first electronic device to implement the method, for example chip system.
- the first electronic device receives the first frame sent by the second electronic device at the first moment, and the first field in the first frame carries the first sending time information of the first frame sent by the second electronic device , the first frame is a device discovery beacon frame or a synchronization beacon frame or a service discovery frame of the proximity sensing network NAN;
- the first electronic device determines a first transmission delay between the first electronic device and the second electronic device according to the first moment and the first sending time information.
- the first frame sent by the second electronic device may carry the sending time information for sending the first frame
- the first frame is a device discovery beacon frame used for device discovery in WIFI Aware or a device discovery beacon frame used for device discovery in WIFI Aware. Synchronized synchronization beacon frames or service discovery frames for service discovery.
- the first electronic device After the first electronic device receives the first frame, it can determine the first transmission delay between the first electronic device and the second electronic device according to the sending time information of the first frame and the first moment of receiving the first frame, thereby providing A method for determining the transmission delay is presented. Avoid the overhead caused by the need to use special signaling or a special channel to detect the delay.
- the beacon frame or the synchronization beacon frame or the service discovery frame carries the sending time information for sending these frames, which can reduce the duration of determining the transmission delay.
- the device discovery beacon frame or the synchronization beacon frame or the service discovery frame mentioned in the embodiment of the present application refers to the type of the frame, and does not specifically refer to a certain frame.
- the second electronic device may be a master device in the NAN set, and the second electronic device may send a device discovery beacon frame or a synchronization beacon frame or send a service discovery frame.
- the second electronic device may be a non-master device in the NAN set and the second electronic device is in a synchronization state, and the second electronic device may send a synchronization beacon frame or a service discovery frame.
- the second electronic device may be a non-master device in the NAN set and the second electronic device is in an asynchronous state, and the second electronic device may send a service discovery frame.
- the device discovery frame is used for the master device in the NAN set to discover the device, and the synchronization beacon frame is used for the unsynchronized device to synchronize with the synchronized device in the NAN set.
- Service discovery frames are used for non-synchronized devices or synchronized devices in the NAN set to exchange capabilities.
- the first electronic device may be a non-master device in the NAN set or a device that does not belong to the NAN set. If the second electronic device sending the first frame is a non-master device in the NAN set, the first electronic device may be a master device or a non-master device in the NAN set or a device that does not belong to the NAN set. If the second electronic device sending the first frame does not belong to the NAN set, the first electronic device may be any device in the NAN set or a device that does not belong to the NAN set. At this time, the first electronic device and the second electronic device may Forms a new set of NANs.
- the device discovery beacon frame may be replaced by a discovery beacon frame.
- the first field is a first reserved field of the NAN attribute field of the first frame.
- the first field is the first reserved field of the NAN attribute field of the first frame, which can improve resource utilization and avoid the need for additional signaling to indicate the first transmission time information of the first frame.
- the first field includes a first attribute field, a first length field and a sending time field
- the bits carried by the first attribute field are used to indicate that the first field is used to carry the first sending time information
- the bits carried by the first length field are used to indicate the length occupied by the sending time field
- the bits carried in the sending time field are used to instruct the second electronic device to send the first The sending time of the frame.
- the first sending time information is used to indicate the sending time at which the second electronic device sends the first frame and the length occupied by the sending time field carrying the sending time.
- the positional relationship between the first attribute field, the first length field and the sending time field is not limited.
- the first electronic device is not synchronized with the second electronic device
- determining, by the first electronic device, the first transmission delay between the first electronic device and the second electronic device according to the first moment and the first time information including:
- the first electronic device After the first electronic device is synchronized with the second electronic device, the first electronic device calibrates the second transmission delay according to the clock information calibrated in the synchronization process to obtain the first transmission delay.
- the method further includes: the first electronic device sends a second frame to a third electronic device, where a second field in the second frame carries the first transmission delay, so
- the second frame is a synchronization beacon frame or a service discovery frame of the proximity sensing network NAN.
- the third electronic device may determine the first transmission delay between the first electronic device and the second electronic device according to the first transmission delay carried in the second frame sent by the first electronic device, if the third electronic device Sending data to the second electronic device needs to pass through the first electronic device, and the third electronic device can determine whether the first transmission delay meets the transmission requirements of the data to be transmitted according to the first transmission delay.
- the third electronic device may send the first transmission delay between the first electronic device and the second electronic device to the next electronic device, such as the master electronic device in the NAN set, so that the master electronic device in the NAN set can
- the transmission delay sent by multiple electronic devices is sent to each electronic device in the NAN set. In this way, when each electronic device in the NAN set needs to transmit data, it can be determined whether the data on the path meets the data according to each transmission delay. transmission delay.
- the first electronic device may carry the first transmission delay in the synchronization beacon frame or the service discovery frame. sent to the main electronic device.
- the first electronic device may be the master electronic device in the NAN set, and the first electronic device may send the determined first transmission delay to each electronic device in the NAN set.
- the third electronic device and the second electronic device may be the same device or different devices.
- the second field is a second reserved field of the NAN attribute field of the second frame.
- the second field includes a second attribute field, a second length field, and a transmission delay field
- the bits carried by the second attribute field are used to indicate that the second field is used to carry all the first transmission delay
- the bits carried in the second length field are used to indicate the length occupied by the transmission delay field
- the bits carried in the transmission delay field are used to indicate the first transmission delay
- the second field is the second reserved field of the NAN attribute field of the second frame, which can improve the utilization rate of resources and avoid the need for additional signaling to indicate the first transmission delay.
- the method further includes: the first electronic device sends a third frame to a fourth electronic device, and a third field in the third frame carries the first electronic device to send the The second sending time information of the third frame, where the second sending time information is used by the fourth electronic device to determine the third transmission delay between the fourth electronic device and the first electronic device.
- the third frame is a service discovery frame or a synchronization beacon frame or a device discovery beacon frame.
- the third field is a reserved field where the third frame is a service discovery frame or a synchronization beacon frame or an attribute field in a device discovery beacon frame.
- the first electronic device can not only receive the first frame sent by the second electronic device, but also carry the first sending time information for sending the first frame.
- the first moment determines the first transmission delay between the first electronic device and the second electronic device
- the first electronic device may also send a third frame to the fourth electronic device
- the third field in the third frame may carry the first
- the electronic device sends the second sending time of the third frame, so that the fourth electronic device can determine the third transmission delay between the fourth electronic device and the first electronic device according to the second sending time and the moment of receiving the third frame .
- a method for determining transmission delay comprising: a second electronic device sending a first frame to a first electronic device, where a first field in the first frame carries the second electronic device Send the first sending time information of the first frame, where the first frame is a device discovery beacon frame or a synchronization beacon frame or a service discovery frame of the proximity sensing network NAN, and the first sending time information is used for the The first electronic device determines a first transmission delay between the first electronic device and the second electronic device.
- the first field is a first reserved field of the NAN attribute field of the first frame.
- the first field includes a first attribute field, a first length field and a sending time field
- the bits carried by the first attribute field are used to indicate that the first field is used to carry the first sending time information
- the bits carried by the first length field are used to indicate the length occupied by the sending time field
- the bits carried in the sending time field are used to instruct the second electronic device to send the first The sending time of the frame.
- the method further includes: receiving, by the second electronic device, a second frame sent by the first electronic device, where a second field in the second frame carries the first transmission time frame
- the second frame is a device synchronization beacon frame or a service discovery frame of the proximity sensing network NAN.
- the second field is a second reserved field of the NAN attribute field of the second frame.
- the second field includes a second attribute field, a second length field, and a transmission delay field
- the bits carried by the second attribute field are used to indicate that the second field is used to carry all the first transmission delay
- the bits carried in the second length field are used to indicate the length occupied by the transmission delay field
- the bits carried in the transmission delay field are used to indicate the first transmission delay
- a method for determining transmission delay including: a third electronic device receives a second frame of the first electronic device, and a second field in the second frame carries the first transmission delay,
- the second frame is a synchronization beacon frame or a service discovery frame of the proximity sensing network NAN.
- the second field is a second reserved field of the NAN attribute field of the second frame.
- the second field includes a second attribute field, a second length field, and a transmission delay field
- the bits carried by the second attribute field are used to indicate that the second field is used to carry all the first transmission delay
- the bits carried in the second length field are used to indicate the length occupied by the transmission delay field
- the bits carried in the transmission delay field are used to indicate the first transmission delay
- the present application provides an apparatus, the apparatus is included in an electronic device, and the apparatus has a function of implementing the above aspects and the behavior of the electronic device in possible implementations of the above aspects.
- the functions can be implemented by hardware, or by executing corresponding software by hardware.
- the hardware or software includes one or more modules or units corresponding to the above functions. For example, a display module or unit, a detection module or unit, a processing module or unit, and the like.
- the apparatus may be the above-mentioned first electronic device or second electronic device or third electronic device or fourth electronic device.
- the present application provides an electronic device, comprising: one or more processors; a memory; a plurality of application programs; and one or more computer programs. Wherein, one or more computer programs are stored in the memory, the one or more computer programs comprising instructions. When the instruction is executed by the electronic device, the electronic device is caused to execute the method for determining the transmission delay in any possible implementation of any one of the above aspects.
- the electronic device may further include: a touch display screen and/or a camera, wherein the touch display screen includes a touch-sensitive surface and a display;
- the electronic device may be the above-mentioned first electronic device or second electronic device or third electronic device or fourth electronic device.
- the present application provides an electronic device including one or more processors and one or more memories.
- the one or more memories are coupled to the one or more processors for storing computer program code, the computer program code comprising computer instructions that, when executed by the one or more processors, cause the electronic device to perform The method for determining transmission delay in any possible implementation of any one of the above aspects.
- the present application provides a computer-readable storage medium, including computer instructions, when the computer instructions are executed on an electronic device, the electronic device is made to execute any of the possible methods for determining the transmission delay in any of the above aspects. method.
- the present application provides a computer program product that, when the computer program product runs on an electronic device, causes the electronic device to execute any of the possible methods for determining transmission delay in any of the above aspects.
- FIG. 1 is a schematic diagram of a NAN set provided by an embodiment of the present application.
- FIG. 2 is a schematic diagram of a process of WiFi Aware provided by an embodiment of the present application.
- FIG. 3 is a schematic diagram of a process sending frame of WiFi Aware provided by an embodiment of the present application.
- FIG. 4 is a schematic diagram of a method for determining transmission delay provided by an embodiment of the present application.
- FIG. 5 and FIG. 6 are schematic diagrams of sending frames provided by embodiments of the present application.
- FIG. 7 is a schematic diagram of an application scenario provided by an embodiment of the present application.
- FIG. 8 is a schematic diagram of another method for determining transmission delay provided by an embodiment of the present application.
- FIG. 9 and FIG. 10 are schematic diagrams of sending frames provided by embodiments of the present application.
- FIG. 11 is a schematic diagram of another method for determining transmission delay provided by an embodiment of the present application.
- FIG. 12 and FIG. 13 are schematic diagrams of sending frames provided by embodiments of the present application.
- FIG. 14 is a schematic diagram of an apparatus for determining transmission delay provided by an embodiment of the present application.
- NAN devices can perceive surrounding NAN devices and the services supported by surrounding NAN devices in advance through WiFi Aware technology before establishing a connection, so that multiple NAN devices can be associated to form a NAN set. All NAN devices use the same set of parameters. There is a master (master) NAN device and a non-master (non-master) NAN device in the NAN set. A NAN device can belong to different NAN sets.
- WiFi Aware is also known as Neighbor Awareness Networking (NAN). The process of WiFi device perception through WiFi Aware technology will send fewer messages and consume less power. For example, in the scenario of media resource sharing, WiFi devices can discover surrounding WiFi devices through WiFi Aware technology, so that media resources can be shared.
- the NAN device mentioned in the embodiments of this application may also be referred to as a terminal device supporting WiFi, a user equipment (user equipment, UE), a mobile station (mobile station, MS), a mobile terminal (mobile terminal, MT), and the like.
- the terminal device in the embodiment of the present application may be a mobile phone (mobile phone), a tablet computer (Pad), a computer with a wireless transceiver function, and may also be applied to virtual reality (VR), augmented reality (AR) ), industrial control, self driving, remote medical, smart grid, transportation safety, smart city and smart home ) in scenarios such as wireless terminals.
- the aforementioned terminal devices and chips applicable to the aforementioned terminal devices are collectively referred to as terminal devices. It should be understood that the embodiments of the present application do not limit the specific technology and specific device form adopted by the terminal device.
- the above-mentioned primary NAN device in FIG. 1 may be determined by information exchanged between multiple NAN devices.
- the process of WiFi Aware provided by the embodiment of the present application is shown. It is mainly divided into three processes: device discovery process, synchronization process and service discovery process. All NAN devices in the NAN set use the same transmission parameter set, for example, the transmission parameter set includes the length of a discovery window (discovery window, DW), the interval between DWs, the frame interval, and NAN channel resources.
- the transmission parameter set includes the length of a discovery window (discovery window, DW), the interval between DWs, the frame interval, and NAN channel resources.
- the NAN set includes NAN device 1 , NAN device 2 , NAN device 3 and NAN device 4 .
- any electronic device among NAN device 2, NAN device 3 and NAN device 4, as the master (master) NAN device can periodically send a discovery beacon frame as shown in Figure 3 outside the DW.
- the beacon frame is also called device discovery beacon frame. If NAN device 1 receives the discovery beacon frame, it can respond to the main NAN device, so that NAN device 1 will be discovered. At this time, it is called NAN device 1 joining the NAN set, and at the same time
- the discovery beacon frame may include the transmission parameter set of the NAN set, so that the NAN devices in the NAN set can share the transmission parameter set.
- a NAN device in a synchronized state in the NAN set can send a synchronization beacon frame within the discovery window as shown in Figure 3, and the synchronization beacon frame can carry clock information and received signal strength indication (RSSI, RSSI). ) threshold value, so that other non-synchronized NAN devices in the NAN set can determine whether they need to use clock information to synchronize with the NAN device sending the synchronization beacon frame according to the RRSI threshold value in the received synchronization beacon frame to complete the synchronization with the beacon frame.
- RSSI received signal strength indication
- the synchronization of the NAN devices in the NAN set can also receive the synchronization beacon frame. Regardless of whether it is a NAN device in a synchronous state or a NAN device in an asynchronous state, it can send a service discovery frame within the discovery window.
- the service discovery frame is used to carry the capabilities supported by the NAN device, so that the NAN devices can exchange capabilities for subsequent communication. .
- any two NAN devices in the NAN set can communicate after synchronization.
- the two NAN devices need to determine the transmission delay between the two NAN devices before communication.
- the NAN device determines whether the transmission delay meets the transmission requirements. If the data is not satisfied, other data links that satisfy the transmission delay can be selected to send data.
- the two NAN devices need to add interactive signaling based on the Wifi Aware protocol. Using the newly added interactive signaling, the NAN device uses the newly added interactive signaling to determine the relationship between the two NAN devices. In this way, the need to add new signaling will increase the signaling overhead and increase the length of the detection of the transmission delay, thereby deteriorating the transmission performance.
- a special channel can be established to detect the delay. This method of establishing a special channel to detect the delay will increase the time for determining the transmission delay. The cost is high.
- the electronic devices mentioned in the embodiments of the present application may be NAN devices, in other words, the electronic devices mentioned in the embodiments of the present application may be replaced by NAN devices.
- the electronic device that sends the discovery beacon frame, the synchronization beacon frame, or the service discovery frame can be used between two electronic devices to carry the sending time information for sending these frames, as the electronic device of the receiving end.
- the device can determine the transmission delay between the two electronic devices according to the time when these frames are received and the transmission time information carried in these frames.
- Method 400 includes:
- the second electronic device sends a discovery beacon frame between DWs, the field 1 of the discovery beacon frame carries the sending time information 1 of the discovery beacon frame sent by the second electronic device, and the first electronic device receives the discovery beacon frame at time 1 mark the frame, at this time, the first electronic device can discover the NAN set to which the second electronic device belongs.
- the discovery beacon frame may include parameters such as the interval between DWs corresponding to the NAN set to which the second electronic device belongs, the length of the DW, and the channel resources occupied by the electronic devices in the NAN set to transmit data.
- the second electronic device may be the master device in the NAN set.
- the format of the discovery beacon frame is the 802.11 Beacon frame format, as shown in Table 1.
- Table 1 shows each field included in the discovery beacon frame, the length of each field, the value of each field, and the value of each field. meaning of representation.
- NAN Attributes NAN Attributes
- Field 1 in the method 400 may be the reserved (Reserved) field of the NAN attribute, and the reserved (Reserved) field of the Attribute ID in Table 2 with the value of 14-220 or 222-255 may carry the information for sending the discovery beacon frame.
- Send time information 1 An exemplary reserved (Reserved) field of 14-220 or 222-255 may be the aforementioned first reserved field.
- the synchronization beacon frame corresponds to the third column of Table 2
- the discovery beacon frame corresponds to the fourth column of Table 2
- the service discovery frame (service discovery frame, SDF) corresponds to the fifth column of Table 2.
- YES/M in Table 2 indicates that the corresponding attribute ID is mandatory
- YSE/O indicates that the corresponding attribute ID is optional.
- NA indicates that the corresponding attribute ID is optional.
- NO indicates that the corresponding attribute ID does not exist.
- field 1 may include an attribute field, a length field and a transmission time field, the bits carried in the attribute field are used to indicate that field 1 is used to carry transmission time information 1, and the bits carried in the length field are used to indicate The length occupied by the sending time field, and the bits carried in the sending time field are used to indicate the sending time for sending the discovery beacon frame.
- the attribute field in Table 3 may be the aforementioned first attribute field
- the length field may be the aforementioned first length field.
- the first electronic device determines the transmission delay 1 between the first electronic device and the second electronic device according to the time 1 and the sending time information 1 carried in the field 1.
- the following specifically discusses the determination of the transmission delay 1 between the first electronic device and the second electronic device by the first electronic device according to the time 1 and the sending time information 1 in two cases.
- the first electronic device is an electronic device that is synchronized with the second electronic device, and the transmission delay determined by the first electronic device according to time 1 and sending time information 1 is the transmission delay between the first electronic device and the second electronic device.
- Transmission delay 1 the first electronic device may determine the time 1 minus the sending time indicated by the sending time information 1 as the transmission delay 1 between the first electronic device and the second electronic device.
- the first electronic device first calibrates time 1 by processing the time of the discovery beacon frame, and determines the time after calibration minus the sending time indicated by the sending time information 1 as the difference between the first electronic device and the second electronic device. transmission delay between 1.
- the first electronic device is not synchronized with the second electronic device, in other words, if the second electronic device that sends the discovery beacon frame has been synchronized with other devices in the NAN set, but receives the first An electronic device has not been synchronized with other devices in the NAN set.
- the first electronic device may determine the transmission delay 2 according to the time information 1 and the time 1 in the discovery beacon frame. For example, the first electronic device may determine the time 1 minus the sending time indicated by the sending time information 1 as the transmission delay 2 between the first electronic device and the second electronic device.
- the first electronic device first uses the time calibration of time 1 to process the discovery beacon frame, and determines the time after calibration minus the sending time indicated by the sending time information 1 as the difference between the first electronic device and the second electronic device. transmission delay between 2. After the first electronic device is synchronized with the second electronic device, the first electronic device uses the clock information of the calibration clock in the synchronization process to calibrate the determined transmission delay 2 and obtain the transmission delay 1 .
- the first electronic device when the first electronic device transmits data to the second electronic device, it can first determine whether the determined transmission delay meets the transmission requirements, and if the transmission requirements are met, the data is transmitted, otherwise the data is not transmitted, or the first electronic device is in the One of the multiple transmission links between the first electronic device and the second electronic device is selected to transmit data, and a transmission link that meets the data transmission delay requirement is not used for transmission in the WiFi Aware manner.
- the plurality of links include cellular transmission links, Bluetooth transmission links, NFC transmission links, and the like.
- the method 400 further includes: S430, the first electronic device may send the determined transmission delay 1 to the third electronic device through a synchronization beacon frame or a service discovery frame, and the third electronic device receives the synchronization beacon frame or After the service discovery frame, the synchronization beacon frame or the transmission delay 1 in the service discovery frame is acquired, and the third electronic device can save the transmission delay 1 between the first electronic device and the second electronic device, or the third electronic device can store the transmission delay 1 between the first electronic device and the second electronic device. Transmission delay 1 is sent to the next electronic device or to the primary electronic device in the NAN set.
- any electronic device that receives transmission delay 1 needs to transmit data through WiFi Aware, and the data transmission path passes through the first electronic device and the second electronic device, it can be determined whether the data needs to pass through the first electronic device according to the transmission delay 1.
- An electronic device and a second electronic device If the master device receives multiple transmission delays sent by multiple electronic devices, it can send the multiple transmission delays to each electronic device in the NAN set, and each electronic device can select an appropriate transmission delay according to the multiple transmission delays.
- the transmission path transmits data.
- the first electronic device may carry the determined transmission delay 1 in the reserved field of the NAN attribute of the synchronization beacon frame or the service discovery frame and send it to the third electronic device.
- the reserved field in the discovery beacon frame carries the sending time information 1 for sending the discovery beacon frame.
- the first electronic device is in a synchronized state with other devices in the NAN set, then the first electronic device can carry the determined transmission delay 1 in the reserved field of the NAN attribute of the synchronization beacon frame or the service discovery frame to the third electronic device. device sends.
- FIG. 5 in the process of sending the discovery beacon frame by the second electronic device to the first electronic device, the reserved field in the discovery beacon frame carries the sending time information 1 for sending the discovery beacon frame.
- the first electronic device is in a synchronized state with other devices in the NAN set, then the first electronic device can carry the determined transmission delay 1 in the reserved field of the NAN attribute of the synchronization beacon frame or the service discovery frame to the third electronic device. device sends.
- the reserved field in the discovery beacon frame carries the sending time information 1 for sending the discovery beacon frame. If the first electronic device is not synchronized with other devices in the NAN set, the first electronic device may carry the determined transmission delay 1 in the reserved field of the NAN attribute in the service discovery frame to send to the third electronic device.
- the third electronic device and the second electronic device may be the same or different, which is not limited in this embodiment of the present application.
- the service discovery frame is in the 802.11Public Action frame format, as shown in Table 4.
- Table 4 shows each field included in the service discovery frame, the length of each field, the value of each field, and the meaning represented by each field.
- the frame format of the synchronization beacon frame is shown in Table 1.
- the Reserved field indicating the NAN attribute can carry the transmission delay 1
- the Reserved field with the Attribute ID value of 14-220 or 222-255 in Table 2 can carry the transmission of the discovery beacon frame Delay 1.
- An exemplary reserved (Reserved) field of 14-220 or 222-255 may be the aforementioned second reserved field.
- the reserved field may include an attribute field, a length field, and a transmission delay field
- the bits carried in the attribute field are used to indicate that the reserved field is used to carry the transmission delay 1
- the bits carried in the length field are used to indicate the transmission delay.
- the length occupied by the delay field, the bit carried in the transmission delay field is used to indicate the transmission delay 1.
- the attribute field in Table 5 may be the aforementioned second attribute field
- the length field may be the aforementioned second length field.
- the electronic device 3 can determine the transmission delay between the electronic device 3 and the electronic device 4 according to the method 400 , and the electronic device 3 can send the determined transmission delay to the electronic device 2 .
- the electronic device 2 can determine the transmission delay between the electronic device 2 and the electronic device 4 and the transmission delay between the electronic device 2 and the electronic device 3 according to the method 400 .
- the electronic device 2 can calculate the transmission delay between the electronic device 3 and the electronic device 4 from the electronic device 3 and the two transmission delays determined by itself (the transmission delay between the electronic device 2 and the electronic device 3, the electronic device 2 The transmission delay between the electronic device 4 and the electronic device 4) is sent to the electronic device 1 as the master device of the NAN set.
- the electronic device 2 can also save the transmission delay between the electronic device 3 and the electronic device 4 and the transmission time determined by itself. extension.
- Electronic device 1 receives the transmission delay between electronic device 3 and electronic device 4 from electronic device 2, the transmission delay between electronic device 2 and electronic device 4, and the transmission delay between electronic device 2 and electronic device 3 and send these transmission delays directly or indirectly to electronic device 2, electronic device 3, electronic device 4, and electronic device 5.
- an appropriate transmission path can be selected according to the different delays on different paths.
- electronic device 1 can Compare the transmission delay between electronic device 2 and electronic device 4, and the sum of the transmission delay from electronic device 2 to electronic device 3 and the transmission delay from electronic device 3 to electronic device 4, find a transmission delay that is smaller path to transmit data to the electronic device 4 .
- the first electronic device may also send a discovery beacon frame or a service discovery frame or a synchronization beacon frame to the fourth electronic device, and these frames can include the sending time information of the first electronic device sending these frames, and the fourth electronic device can determine the transmission between the fourth electronic device and the first electronic device according to the moment of receiving these frames and the sending time information included in these frames time delay.
- the above method 400 describes that the second electronic device carries the sending time information for sending the discovery beacon frame in the reserved field of the discovery beacon frame, and the following describes the sending time when the second electronic device sends the synchronization beacon frame with reference to FIG. 8 .
- the information is carried in the reserved field of the synchronization beacon frame.
- FIG. 8 another method 800 for determining transmission delay provided by an embodiment of the present application is shown.
- Method 800 includes:
- the second electronic device sends a synchronization beacon frame in the DW, the field 2 of the synchronization beacon frame carries the sending time information 2 of the synchronization beacon frame sent by the second electronic device, and the first electronic device receives the synchronization beacon at time 2 frame.
- the second electronic device may be a master device in the NAN set or a device in a synchronization state in the NAN set.
- the format of the synchronization beacon frame is the 802.11 Beacon frame format, as shown in Table 1.
- Table 1 shows each field included in the synchronization beacon frame, the length of each field, the value of each field, and the value of each field. meaning of representation.
- NAN Attributes NAN Attributes
- Table 2 the synchronization beacon frame corresponds to the third column of Table 2.
- the field 2 in the method 800 may be the reserved (Reserved) field of the NAN attribute, and the value of the Attribute ID in Table 2 A reserved (Reserved) field with a value of 14-220 or 222-255 may carry sending time information 2 for sending a discovery beacon frame.
- field 2 may include an attribute field, a length field and a sending time field, the bits carried in the attribute field are used to indicate that the first field 2 is used to carry the sending time information 2, and the bits carried in the length field are used to indicate that the sending time field occupies
- the length of the transmission time field is used to indicate the transmission time of the synchronization beacon frame. as shown in Table 3.
- the first electronic device determines the transmission delay 3 between the first electronic device and the second electronic device according to the time 2 and the sending time information 2 carried in the field 2.
- the following specifically discusses the determination of the transmission delay 3 between the first electronic device and the second electronic device by the first electronic device according to the time 2 and the sending time information 2 in two cases.
- the first electronic device is an electronic device that is synchronized with the second electronic device, and the transmission delay that the first electronic device can determine according to time 2 and sending time information 2 is the transmission delay between the first electronic device and the second electronic device.
- Transmission delay 2 the first electronic device may determine the time 2 minus the sending time indicated by the sending time information 2 as the transmission delay 3 between the first electronic device and the second electronic device.
- the first electronic device first calibrates time 2 using the time for processing the synchronization beacon frame, and determines the time after calibration minus the sending time indicated by the sending time information 2 as the time between the first electronic device and the second electronic device. transmission delay between 3.
- the first electronic device is not synchronized with the second electronic device, in other words, if the second electronic device that sends the synchronization beacon frame has been synchronized with other devices in the NAN set, but receives the first An electronic device has not been synchronized with other devices in the NAN set.
- the first electronic device can determine the transmission delay 4 according to the time information 2 and the time 2 in the discovery beacon frame. For example, the first electronic device may determine the time 2 minus the sending time indicated by the sending time information 2 as the transmission delay 4 between the first electronic device and the second electronic device.
- the first electronic device first calibrates time 2 using the time for processing the synchronization beacon frame, and determines the time after calibration minus the sending time indicated by the sending time information 2 as the time between the first electronic device and the second electronic device. transmission delay between 4. After the first electronic device is synchronized with the second electronic device, the first electronic device uses the clock information of the calibration clock in the synchronization process to calibrate the determined transmission delay 4 to obtain the transmission delay 3 .
- the first electronic device when the first electronic device transmits data to the second electronic device, it can first determine whether the determined transmission delay meets the transmission requirements, and if the transmission requirements are met, the data is transmitted, otherwise the data is not transmitted, or the first electronic device is in the One of the multiple transmission links between the first electronic device and the second electronic device is selected to transmit data, and a transmission link that meets the data transmission delay requirement is not used for transmission in the WiFi Aware manner.
- the plurality of links includes a cellular transmission link, a Bluetooth transmission link, a near field communication (NFC) transmission link, and the like.
- the method 800 further includes: S830, the first electronic device may send the determined transmission delay 3 to the third electronic device through a synchronization beacon frame or a service discovery frame, and the third electronic device receives the synchronization beacon frame or After the service discovery frame, the synchronization beacon frame or the transmission delay 3 in the service discovery frame is acquired, and the third electronic device can save the transmission delay 3 between the first electronic device and the second electronic device, or the third electronic device can store the transmission delay 3 between the first electronic device and the second electronic device. Transmission delay 3 is sent to the next electronic device or to the primary electronic device in the NAN set.
- any electronic device that receives the transmission delay 3 needs to transmit data through WiFi Aware, and the path of the transmission data passes through the first electronic device and the second electronic device, it can be determined whether the data needs to pass through the first electronic device according to the transmission delay 3.
- An electronic device and a second electronic device If the master device receives multiple transmission delays sent by multiple electronic devices, it can send the multiple transmission delays to each electronic device in the NAN set, and each electronic device can select an appropriate transmission delay according to the multiple transmission delays.
- the transmission path transmits data.
- the first electronic device may carry the determined transmission delay 3 in the reserved field of the NAN attribute of the synchronization beacon frame or the service discovery frame and send it to the third electronic device.
- the reserved field in the synchronization beacon frame carries the sending time information 2 for sending the synchronization beacon frame.
- the first electronic device is in a synchronized state with other devices in the NAN set, then the first electronic device can carry the determined transmission delay 3 in the reserved field of the NAN attribute of the synchronization beacon frame or the service discovery frame to the third electronic device. device sends.
- FIG. 9 in the process of sending the synchronization beacon frame by the second electronic device to the first electronic device, the reserved field in the synchronization beacon frame carries the sending time information 2 for sending the synchronization beacon frame.
- the first electronic device is in a synchronized state with other devices in the NAN set, then the first electronic device can carry the determined transmission delay 3 in the reserved field of the NAN attribute of the synchronization beacon frame or the service discovery frame to the third electronic device. device sends.
- the reserved field in the synchronization beacon frame carries the sending time information 2 for sending the synchronization beacon frame. If the first electronic device is not synchronized with other devices in the NAN set, the first electronic device may carry the determined transmission delay 3 in the reserved field of the NAN attribute in the service discovery frame and send to the third electronic device.
- the third electronic device and the second electronic device may be the same or different, which is not limited in this embodiment of the present application.
- the frame format of the synchronization beacon frame and the frame format of the discovery beacon frame refer to the description of the method 400 .
- the first electronic device may also send a discovery beacon frame or a service discovery frame or a synchronization beacon frame to the fourth electronic device, and these frames can include the sending time information of the first electronic device sending these frames, and the fourth electronic device can determine the transmission between the fourth electronic device and the first electronic device according to the moment of receiving these frames and the sending time information included in these frames time delay.
- the above method 400 describes that the second electronic device carries the sending time information for sending the discovery beacon frame in the reserved field of the discovery beacon frame, and the method 800 describes that the second electronic device sends the synchronization beacon frame Time information is carried in the reserved field of the synchronization beacon frame.
- the second electronic device carries the sending time information of the service discovery frame in the reserved field of the service discovery frame, as shown in FIG. Method 1100 for time delay.
- Method 1100 includes:
- the second electronic device sends a service discovery frame in the DW
- the field 3 of the service discovery frame carries the sending time information 3 of the second electronic device sending the service discovery frame
- the first electronic device receives the service discovery frame at time 3 .
- the second electronic device may be any electronic device in the NAN set or the second electronic device may also be an electronic device outside the NAN set that has not been synchronized with the electronic devices in the NAN set.
- the format of the service discovery frame is the 802.11Public Action frame format, as shown in Table 4.
- Table 4 shows each field included in the service discovery frame, the length of each field, the value of each field, and the representative of each field. meaning.
- NAN Attributes NAN Attributes
- the service discovery beacon frame corresponds to the fifth column of Table 2.
- field 3 in method 1100 may be the reserved (Reserved) field of the NAN attribute.
- the reserved (Reserved) field whose value is 14-220 or 222-255 may carry the sending time information 3 for sending the service discovery frame.
- field 2 may include an attribute field, a length field and a sending time field, the bits carried in the attribute field are used to indicate that the first field 2 is used to carry the sending time information 2, and the bits carried in the length field are used to indicate that the sending time field occupies
- the length of the transmission time field is used to indicate the transmission time of the synchronization beacon frame. as shown in Table 3.
- the first electronic device determines the transmission delay 5 between the first electronic device and the second electronic device according to the time 3 and the sending time information 3 carried in the field 3.
- the following specifically discusses the determination of the transmission delay 5 between the first electronic device and the second electronic device by the first electronic device according to the time 3 and the sending time information 3 in two cases.
- the first electronic device is an electronic device that is synchronized with the second electronic device, and the transmission delay that the first electronic device can determine according to time 3 and sending time information 3 is the transmission delay between the first electronic device and the second electronic device.
- Transmission delay 3 the first electronic device may determine the time 3 minus the sending time indicated by the sending time information 3 as the transmission delay 5 between the first electronic device and the second electronic device.
- the first electronic device first calibrates time 3 by using the time for processing the service discovery frame, and determines the time between the first electronic device and the second electronic device by subtracting the sending time indicated by the sending time information 3 from the calibrated time 3.
- the transmission delay of 5 the transmission delay 3.
- the first electronic device is not synchronized with the second electronic device, in other words, if the second electronic device sending the service discovery frame has been synchronized with other devices in the NAN set, but the first electronic device receiving the service discovery frame The device has not been synchronized with other devices in the NAN set.
- the first electronic device can determine the transmission delay 6 according to the time information 3 and the time 3 in the service discovery frame. For example, the first electronic device may determine the time 3 minus the sending time indicated by the sending time information 3 as the transmission delay 6 between the first electronic device and the second electronic device.
- the first electronic device first uses the time calibration of the processing service discovery frame for time 3, and determines the time between the first electronic device and the second electronic device by subtracting the sending time indicated by the sending time information 3 from the calibrated time 3.
- the transmission delay of 6 After the first electronic device is synchronized with the second electronic device, the first electronic device uses the clock information of the calibration clock in the synchronization process to calibrate the determined transmission delay 6 to obtain the transmission delay 5 .
- the first electronic device can first determine whether the determined transmission delay meets the transmission requirements, and if the transmission requirements are met, the data is transmitted, otherwise the data is not transmitted, or the first electronic device is in the One of the multiple transmission links between the first electronic device and the second electronic device is selected to transmit data, and a transmission link that meets the data transmission delay requirement is not used for transmission in the WiFi Aware manner.
- the plurality of links include cellular transmission links, Bluetooth transmission links, NFC transmission links, and the like.
- the method 1100 further includes: S1130, the first electronic device may send the determined transmission delay 5 to the third electronic device through a synchronization beacon frame or a service discovery frame, and the third electronic device receives the synchronization beacon frame or After the service discovery frame, obtain the transmission delay 3 in the synchronization beacon frame or the service discovery frame, and the third electronic device can save the transmission delay 5 between the first electronic device and the second electronic device, or the third electronic device can Transmission delay 5 is sent to the next electronic device or to the primary electronic device in the NAN set. If any electronic device that receives transmission delay 5 needs to transmit data through WiFi Aware, and the data transmission path passes through the first electronic device and the second electronic device, it can be determined whether the data needs to pass through the first electronic device according to the transmission delay 5.
- An electronic device and a second electronic device If the master device receives multiple transmission delays sent by multiple electronic devices, it can send the multiple transmission delays to each electronic device in the NAN set, and each electronic device can select an appropriate transmission delay according to the multiple transmission delays.
- the transmission path transmits data.
- the first electronic device may carry the determined transmission delay 5 in the reserved field of the NAN attribute of the synchronization beacon frame or the service discovery frame and send it to the third electronic device.
- the reserved field in the synchronization beacon frame carries the sending time information 3 for sending the synchronization beacon frame.
- the first electronic device is in a synchronized state with other devices in the NAN set, then the first electronic device can carry the determined transmission delay 5 in the reserved field of the NAN attribute of the synchronization beacon frame or the service discovery frame to the third electronic device. device sends.
- FIG. 12 in the process of sending the synchronization beacon frame by the second electronic device to the first electronic device, the reserved field in the synchronization beacon frame carries the sending time information 3 for sending the synchronization beacon frame.
- the first electronic device is in a synchronized state with other devices in the NAN set, then the first electronic device can carry the determined transmission delay 5 in the reserved field of the NAN attribute of the synchronization beacon frame or the service discovery frame to the third electronic device. device sends.
- the reserved field in the synchronization beacon frame carries the sending time information 3 for sending the synchronization beacon frame. If the first electronic device is not synchronized with other devices in the NAN set, the first electronic device may carry the determined transmission delay 5 in the reserved field of the NAN attribute in the service discovery frame to send to the third electronic device.
- the third electronic device and the second electronic device may be the same or different, which are not limited in this embodiment of the present application.
- the frame format of the synchronization beacon frame and the frame format of the discovery beacon frame refer to the description of the method 400 .
- the first electronic device may also send a discovery beacon frame or a service discovery frame or a synchronization beacon frame to the fourth electronic device, and these frames can include the sending time information of the first electronic device sending these frames, and the fourth electronic device can determine the transmission between the fourth electronic device and the first electronic device according to the moment of receiving these frames and the sending time information included in these frames time delay.
- the third electronic device can receive the transmission delay sent by the first electronic device and the transmission delay sent by the second electronic device, the third electronic device can The transmission delay after the weighted calculation is determined as the transmission delay between the first electronic device and the second electronic device. For example, the earlier the transmission delay is received, the lower the weight coefficient will be The later the transmission delay, the higher the weight coefficient.
- the aforementioned first frame is the discovery beacon frame of the method 400
- the aforementioned first field may be the field 1 of the method 400
- the aforementioned first sending time information may be the sending time information 1 in the method 400
- the aforementioned The first transmission delay is the transmission delay 1 in the method 400
- the aforementioned first moment is the moment 1 in the method 400
- the aforementioned second transmission delay is the transmission delay 2 in the method 400
- the frame is a synchronization beacon frame or a service discovery frame carrying a transmission delay of 1 in method 400
- the aforementioned first frame is a synchronization beacon frame of method 800
- the aforementioned first field may be field 2 of method 800
- the aforementioned The first transmission information can be the transmission time information 2 in the method 800
- the aforementioned first transmission delay is the transmission delay 3 in the method 800
- the aforementioned first moment is the moment 2 in the method 800
- the transmission delay is the transmission delay 4 in the method 800
- field 1 in method 400, field 2 in method 800, and field 3 in method 1100 may be different fields or different values of the same field, for example, field 1 may be 12-220 reserved fields, field 2 can be reserved fields 222-255.
- each field in Table 3 and Table 5 is only exemplary.
- the value and length of the attribute field of field 1, the attribute field of field 2 and the attribute field of field 3 may be the same or different, and the value and length of the length field of field 1, the length field of field 2 and the length field of field 3 are The lengths may be the same or different, and the values and lengths of the sending time field of field 1, the sending time field of field 2, and the time field of field 3 may be the same or different.
- method 400 , method 800 and method 1100 are two independent embodiments or may be mutually referenced embodiments, and the second electronic device in method 400 , method 800 and method 1100 may be different
- the electronic device may also be the same electronic device, and the first electronic device in the method 400, the method 800 and the method 1100 may be a different electronic device or the same electronic device, which is not limited in this embodiment of the present application.
- Embodiments of the method for determining the transmission delay provided by the embodiments of the present application are described above with reference to FIGS. 1 to 13 , and the following describes the embodiments of the apparatus for determining the transmission delay provided by the embodiments of the present application.
- each electronic device may be divided into functional modules according to the foregoing method examples.
- each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module.
- the above-mentioned integrated modules can be implemented in the form of hardware. It should be noted that, the division of modules in this embodiment is schematic, and is only a logical function division, and there may be other division manners in actual implementation.
- each electronic device is configured to execute the above-mentioned method for determining transmission delay, and thus can achieve the same effect as the above-mentioned implementation method.
- each electronic device may include a processing module, a storage module, and a communication module, respectively.
- the processing module may be used to control and manage the actions of each electronic device, for example, may be used to support the electronic device to perform the steps performed by the processing unit.
- the storage module can be used to support the client and the server to execute stored program codes and data.
- the communication module can be used to support the communication between the client and the server and other devices.
- the processing module may be a processor or a controller. It may implement or execute the various exemplary logical blocks, modules and circuits described in connection with this disclosure.
- the processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, and the like.
- the storage module may be a memory.
- the communication module may specifically be a device that interacts with other electronic devices, such as a radio frequency circuit, a Bluetooth chip, and a Wi-Fi chip.
- the electronic device involved in this embodiment may be a device having the structure shown in FIG. 14 .
- FIG. 14 is a schematic structural diagram of an example of an electronic device 1400 provided by an embodiment of the present application.
- the electronic device 1400 may be the first electronic device, the second electronic device, the third electronic device, or the fourth electronic device in the method embodiment, and the electronic device 1400 may include a processor 1410, a memory 1420, a communication module 1430, and the like.
- the processor 1410 may include one or more processing units, and the memory 1420 is used to store program codes and data. In this embodiment of the present application, the processor 1410 can execute the computer-executed instructions stored in the memory 1420 to control and manage the actions of the electronic device 1400 .
- the communication module 1430 may be used for communication between various internal modules of the electronic device 1400, or communication between the electronic device 1400 and other external electronic devices, and the like. Exemplarily, if the electronic device 1400 communicates with other electronic devices through a wired connection, the communication module 1430 may include an interface, such as a USB interface. USB interface, USB Type C interface, etc.
- the USB interface can be used to connect a charger to charge the electronic device 1400, and can also be used to transmit data between the electronic device 1400 and peripheral devices. It can also be used to connect headphones to play audio through the headphones.
- the interface can also be used to connect other electronic devices, such as AR devices.
- the communication module 1430 may include an audio device, a radio frequency circuit, a Bluetooth chip, a wireless fidelity (Wi-Fi) chip, a near-field communication (NFC) module, etc. way to realize the interaction between the electronic device 1400 and other electronic devices.
- Wi-Fi wireless fidelity
- NFC near-field communication
- the electronic device 1400 may further include a display screen 1440, and the display screen 1440 may display images or videos, etc. in the human-computer interaction interface.
- the electronic device 1400 may further include peripheral devices 1450, such as a mouse, a keyboard, a speaker, a microphone, and the like.
- peripheral devices 1450 such as a mouse, a keyboard, a speaker, a microphone, and the like.
- the structure of the electronic device 1400 is not specifically limited in this embodiment of the present application.
- the electronic device 1400 may further include more or less components than shown, or some components are combined, or some components are separated, or different components are arranged.
- the illustrated components may be implemented in hardware, software, or a combination of software and hardware.
- This embodiment also provides a computer-readable storage medium, where computer instructions are stored in the computer-readable storage medium, and when the computer instructions are executed on the electronic device, the electronic device executes the above-mentioned related method steps to realize the above-mentioned embodiments.
- Method for determining transmission delay is also provided.
- This embodiment also provides a computer program product, which, when the computer program product runs on a computer, causes the computer to execute the above-mentioned relevant steps, so as to implement the method for determining the transmission delay in the above-mentioned embodiment.
- the embodiments of the present application also provide an apparatus, which may specifically be a chip, a component or a module, and the apparatus may include a connected processor and a memory; wherein, the memory is used for storing computer execution instructions, and when the apparatus is running, The processor can execute the computer-executed instructions stored in the memory, so that the chip executes the method for determining the transmission delay in the foregoing method embodiments.
- the electronic device, computer storage medium, computer program product or chip provided in this embodiment are all used to execute the corresponding method provided above. Therefore, for the beneficial effects that can be achieved, reference can be made to the corresponding provided above. The beneficial effects in the method will not be repeated here.
- the disclosed apparatus and method may be implemented in other manners.
- the apparatus embodiments described above are only illustrative.
- the division of modules or units is only a logical function division. In actual implementation, there may be other division methods.
- multiple units or components may be combined or May be integrated into another device, or some features may be omitted, or not implemented.
- the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
- Units described as separate components may or may not be physically separated, and components shown as units may be one physical unit or multiple physical units, that is, may be located in one place, or may be distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
- each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
- the above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
- the integrated unit if implemented as a software functional unit and sold or used as a stand-alone product, may be stored on a readable storage medium.
- a readable storage medium including several instructions to make a device (which may be a single chip microcomputer, a chip, etc.) or a processor (processor) to execute all or part of the steps of the methods in the various embodiments of the present application.
- the aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (random access memory, RAM), magnetic disk or optical disk and other media that can store program codes.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Databases & Information Systems (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
本申请提供了一种用于确定传输时延的方法和电子设备。该方法包括:第二电子设备发送的第一帧中可以携带发送第一帧的发送时间信息,且第一帧为的WIFI Aware中用于发现设备的设备发现信标帧或者为用于同步的同步信标帧或者为用于发现服务的服务发现帧。第一电子设备接收到第一帧之后,可以根据第一帧的发送时间信息以及接收第一帧的第一时刻确定第一电子设备与第二电子设备之间的第一传输时延,从而提供了一种确定传输时延的方法。
Description
本申请要求于2020年10月13日提交国家知识产权局、申请号为202011095023.7、申请名称为“用于确定传输时延的方法和电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本申请涉及通信领域,并且更具体地涉及通信领域中用于确定传输时延的方法和电子设备。
在无线保真(wireless-fidelity,WIFI)感知(Aware)中,电子设备与电子设备之间可以互相发现,互相发现之后可以建立连接,并利用建立的连接传输数据。但是电子设备在传输数据的过程中并不知道两个电子设备之间的传输时延,可能会导致没办法满足传输要求,例如有些数据时延要求高,若两个电子设备之间的传输时延较大,则会导致不满足传输要求。因此,亟需一种确定传输时延的方法。
发明内容
本申请实施例提供了一种用于确定传输时延的方法和电子设备。
第一方面,提供了一种用于确定传输时延的方法,所述方法可由第一电子设备执行,第一电子设备可以是能够支持第一电子设备实现该方法所需的功能的装置,例如芯片***。包括:第一电子设备在第一时刻接收第二电子设备发送的第一帧,所述第一帧中的第一字段携带所述第二电子设备发送所述第一帧的第一发送时间信息,所述第一帧为临近感知网络NAN的设备发现信标帧或者同步信标帧或者服务发现帧;
所述第一电子设备根据所述第一时刻和所述第一发送时间信息确定所述第一电子设备与所述第二电子设备之间的第一传输时延。
在上述技术方案中,第二电子设备发送的第一帧中可以携带发送第一帧的发送时间信息,且第一帧为的WIFI Aware中用于发现设备的设备发现信标帧或者为用于同步的同步信标帧或者为用于发现服务的服务发现帧。第一电子设备接收到第一帧之后,可以根据第一帧的发送时间信息以及接收第一帧的第一时刻确定第一电子设备与第二电子设备之间的第一传输时延,从而提供了一种确定传输时延的方法。避免需要采用专门的信令或者专门的通道探测时延所带来的开销,此外若采用专门的信令或者专门的通道确定传输时延的时长较长,若采用本申请实施例提供的设备发现信标帧或者同步信标帧或者服务发现帧中携带发送这些帧的发送时间信息,可以降低确定传输时延的时长。
需要说明的是,本申请实施例提到的设备发现信标帧或者同步信标帧或者服务发现帧指的是帧的类型,不是特指某一个帧。
可选地,第二电子设备可以是NAN集合中的主设备,第二电子设备可以发送设备发现信标帧或者发送同步信标帧或者发送服务发现帧。可选地,第二电子设备可以 是NAN集合中的非主设备且第二电子设备为同步状态,第二电子设备可以发送同步信标帧或者服务发现帧。可选地,第二电子设备可以是NAN集合中的非主设备且第二电子设备为非同步状态,第二电子设备可以发送服务发现帧。
其中,设备发现帧用于NAN集合中的主设备发现设备,同步信标帧用于未同步的设备与NAN集合中的已经同步的设备进行同步。服务发现帧用于非同步的设备或者NAN集合中已经同步的设备交换能力。
可选地,若发送第一帧的第二电子设备为NAN集合中的主设备,第一电子设备可以为NAN集合中的非主设备或者不属于NAN集合的设备。若发送第一帧的第二电子设备为NAN集合中的非主设备,第一电子设备可以为NAN集合中的主设备或者非主设备或者不属于NAN集合的设备。若发送第一帧的第二电子设备不属于NAN集合,则第一电子设备可以为NAN集合中的任何一个设备或者不属于NAN集合的设备,此时,第一电子设备与第二电子设备可以组成一个新的NAN集合。
可以理解的是,设备发现信标帧可以替换为发现信标(discovery beacon)帧。
在一些可能的实现方式中,所述第一字段为所述第一帧的NAN属性域的第一预留字段。
在上述方案中,第一字段为第一帧的NAN属性域的第一预留字段,可以提高资源的利用率,避免需要额外的信令来指示第一帧的第一发送时间信息。
在一些可能的实现方式中,所述第一字段包括第一属性域、第一长度域和发送时间域,所述第一属性域承载的比特用于指示所述第一字段用于承载所述第一发送时间信息,所述第一长度域承载的比特用于指示所述发送时间域所占的长度,所述发送时间域承载的比特用于指示所述第二电子设备发送所述第一帧的发送时间。
可选地,第一发送时间信息用于指示第二电子设备发送所述第一帧的发送时间以及承载发送时间的发送时间域所占的长度。
可选地,第一属性域、第一长度域和发送时间域的位置关系不限制。
在一些可能的实现方式中,若所述第一电子设备未与所述第二电子设备同步;
其中,所述第一电子设备根据所述第一时刻和所述第一时间信息确定所述第一电子设备与所述第二电子设备之间的第一传输时延,包括:
所述第一电子设备根据所述第一时刻和所述第一时间信息确定所述第一电子设备与所述第二电子设备之间第二传输时延;
所述第一电子设备与所述第二电子设备同步之后,所述第一电子设备根据同步过程中校准的时钟信息校准所述第二传输时延得到所述第一传输时延。
在上述方案中,若第一电子设备与第二电子设备未同步,则需要利用在同步过程中的校准的时钟信息对得到的第二传输时延信息进行校准,从而可以得到相对准确的第一传输时延。
在一些可能的实现方式中,所述方法还包括:所述第一电子设备向第三电子设备发送第二帧,所述第二帧中的第二字段携带所述第一传输时延,所述第二帧为临近感知网络NAN的同步信标帧或者服务发现帧。
在上述方案中,第三电子设备可以根据第一电子设备发送的第二帧中携带的第一传输时延确定第一电子设备与第二电子设备的第一传输时延,若第三电子设备向第二 电子设备发送数据需要通过第一电子设备,则第三电子设备可以根据第一传输时延,确定第一传输时延是否满足将要传输的数据的传输要求。
可选地,第三电子设备可以将第一电子设备与第二电子设备的第一传输时延发送给下一个电子设备,例如NAN集合中的主电子设备,这样,NAN集合中的主设备可以将多个电子设备发送的传输时延发送到NAN集合中的各个电子设备,这样,NAN集合中的各个电子设备有传输数据的需求时,可以根据各个传输时延确定路径上的数据是否满足数据的传输时延。
可选地,若第一电子设备可以与NAN集合中的主电子设备发送同步信标帧或者服务发现帧,则第一电子设备可以将第一传输时延携带在同步信标帧或者服务发现帧中向主电子设备发送。
可选地,第一电子设备可以为NAN集合中的主电子设备,则第一电子设备可以将确定的第一传输时延向NAN集合中的各个电子设备发送。
可选地,第三电子设备可以与第二电子设备为同一个设备或者不同的设备。
在一些可能的实现方式中,所述第二字段为所述第二帧的NAN属性域的第二预留字段。
在一些可能的实现方式中,所述第二字段包括第二属性域、第二长度域和传输时延域,所述第二属性域承载的比特用于指示所述第二字段用于承载所述第一传输时延,所述第二长度域承载的比特用于指示所述传输时延域所占的长度,所述传输时延域承载的比特用于指示所述第一传输时延。
在上述方案中,第二字段为第二帧的NAN属性域的第二预留字段,可以提高资源的利用率,避免需要额外的信令来指示第一传输时延。
在一些可能的实现方式中,所述方法还包括:所述第一电子设备向第四电子设备发送第三帧,所述第三帧中的第三字段携带所述第一电子设备发送所述第三帧的第二发送时间信息,所述第二发送时间信息用于所述第四电子设备确定所述第四电子设备与所述第一电子设备之间的第三传输时延。
可选地,第三帧为服务发现帧或者同步信标帧或者设备发现信标帧。可选地,第三字段为第三帧为服务发现帧或者同步信标帧或者设备发现信标帧中的属性域的预留字段。
在上述方案中,第一电子设备既可以接收第二电子设备发送的第一帧,携带发送第一帧的第一发送时间信息,第一电子设备根据第一发送时间信息与接收第一帧的第一时刻确定第一电子设备与第二电子设备之间的第一传输时延,第一电子设备也可以向第四电子设备发送第三帧,第三帧中的第三字段可以携带第一电子设备发送第三帧的第二发送时间,这样,第四电子设备就可以根据第二发送时间以及接收第三帧的时刻确定第四电子设备与第一电子设备之间的第三传输时延。
第二方面,提供了一种用于确定传输时延的方法,包括:第二电子设备向第一电子设备发送第一帧,所述第一帧中的第一字段携带所述第二电子设备发送所述第一帧的第一发送时间信息,所述第一帧为临近感知网络NAN的设备发现信标帧或者同步信标帧或者服务发现帧,所述第一发送时间信息用于所述第一电子设备确定所述第一电子设备与所述第二电子设备之间的第一传输时延。
在一些可能的实现方式中,所述第一字段为所述第一帧的NAN属性域的第一预留字段。
在一些可能的实现方式中,所述第一字段包括第一属性域、第一长度域和发送时间域,所述第一属性域承载的比特用于指示所述第一字段用于承载所述第一发送时间信息,所述第一长度域承载的比特用于指示所述发送时间域所占的长度,所述发送时间域承载的比特用于指示所述第二电子设备发送所述第一帧的发送时间。
在一些可能的实现方式中,所述方法还包括:所述第二电子设备接收所述第一电子设备发送的第二帧,所述第二帧中的第二字段携带所述第一传输时延,所述第二帧为临近感知网络NAN的设备同步信标帧或者服务发现帧。
在一些可能的实现方式中,所述第二字段为所述第二帧的NAN属性域的第二预留字段。
在一些可能的实现方式中,所述第二字段包括第二属性域、第二长度域和传输时延域,所述第二属性域承载的比特用于指示所述第二字段用于承载所述第一传输时延,所述第二长度域承载的比特用于指示所述传输时延域所占的长度,所述传输时延域承载的比特用于指示所述第一传输时延。
第三方面,提供了一种用于确定传输时延的方法,包括:第三电子设备接收第一电子设备的第二帧,第二帧中的第二字段携带所述第一传输时延,所述第二帧为临近感知网络NAN的同步信标帧或者服务发现帧。
在一些可能的实现方式中,所述第二字段为所述第二帧的NAN属性域的第二预留字段。
在一些可能的实现方式中,所述第二字段包括第二属性域、第二长度域和传输时延域,所述第二属性域承载的比特用于指示所述第二字段用于承载所述第一传输时延,所述第二长度域承载的比特用于指示所述传输时延域所占的长度,所述传输时延域承载的比特用于指示所述第一传输时延。
第四方面,本申请提供了一种装置,该装置包含在电子设备中,该装置具有实现上述各方面及上述各方面的可能实现方式中电子设备行为的功能。功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。硬件或软件包括一个或多个与上述功能相对应的模块或单元。例如,显示模块或单元、检测模块或单元、处理模块或单元等。
可选地,该装置可以是上述的第一电子设备或者第二电子设备或者第三电子设备或者第四电子设备。
第五方面,本申请提供了一种电子设备,包括:一个或多个处理器;存储器;多个应用程序;以及一个或多个计算机程序。其中,一个或多个计算机程序被存储在存储器中,一个或多个计算机程序包括指令。当指令被电子设备执行时,使得电子设备执行上述任一方面任一项可能的实现中的用于确定传输时延的方法。
可选地,该电子设备还可以包括:触摸显示屏和/或摄像头,其中,触摸显示屏包括触敏表面和显示器;
可选地,该电子设备可以是上述的第一电子设备或者第二电子设备或者第三电子设备或者第四电子设备。
第六方面,本申请提供了一种电子设备,包括一个或多个处理器和一个或多个存 储器。该一个或多个存储器与一个或多个处理器耦合,一个或多个存储器用于存储计算机程序代码,计算机程序代码包括计算机指令,当一个或多个处理器执行计算机指令时,使得电子设备执行上述任一方面任一项可能的实现中的用于确定传输时延的方法。
第七方面,本申请提供了一种计算机可读存储介质,包括计算机指令,当计算机指令在电子设备上运行时,使得电子设备执行上述任一方面任一项可能的用于确定传输时延的方法。
第八方面,本申请提供了一种计算机程序产品,当计算机程序产品在电子设备上运行时,使得电子设备执行上述任一方面任一项可能的用于确定传输时延的方法。
图1是本申请实施例提供的NAN集合示意图。
图2是本申请实施例提供的WiFi Aware的过程示意图。
图3是本申请实施例提供的WiFi Aware的过程发送帧的示意图。
图4是本申请实施例提供的用于确定传输时延的方法示意图。
图5和图6是本申请实施例提供的发送帧的示意图。
图7是本申请实施例提供的应用场景示意图。
图8是本申请实施例提供的另一用于确定传输时延的方法示意图。
图9和图10是本申请实施例提供的发送帧的示意图。
图11是本申请实施例提供的又一用于确定传输时延的方法示意图。
图12和图13是本申请实施例提供的发送帧的示意图。
图14是本申请实施例提供的用于确定传输时延的装置示意图。
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。
应理解,本申请实施例中的方式、情况、类别以及实施例的划分仅是为了描述的方便,不应构成特别的限定,各种方式、类别、情况以及实施例中的特征在不矛盾的情况下可以相结合。
还应理解,本申请实施例中的“第一”、“第二”以及“第三”仅为了区分,不应对本申请构成任何限定。还应理解,在本申请的各种实施例中,各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。
如图1所示,NAN设备可以通过WiFi Aware技术在建立连接之前提前感知周围的NAN设备以及周围的NAN设备所支持的服务,这样可以将多个NAN设备进行关联组成一个NAN集合,NAN集合中的所有的NAN设备的使用相同的参数集。NAN集合中有一个主(master)NAN设备以及非主(non-master)NAN设备。一个NAN设备可以属于不同的NAN集合。WiFi Aware也称为临近感知网络(neighbor awareness networking,NAN)。WiFi设备通过WiFi Aware技术感知的过程会发送较少的消息,功耗较低。例如,在媒体资源共享的场景下,WiFi设备可以通过WiFi Aware技术发现周边的WiFi设备,从而可以共享媒 体资源。
本申请实施例提到的NAN设备也可以称为支持WiFi的终端设备、用户设备(user equipment,UE)、移动台(mobile station,MS)、移动终端(mobile terminal,MT)等。本申请实施例中的终端设备可以是手机(mobile phone)、平板电脑(Pad)、带无线收发功能的电脑,还可以是应用于虚拟现实(virtual reality,VR)、增强现实(augmented reality,AR)、工业控制(industrial control)、无人驾驶(self driving)、远程医疗(remote medical)、智能电网(smart grid)、运输安全(transportation safety)、智慧城市(smart city)以及智慧家庭(smart home)等场景中的无线终端。本申请中将前述终端设备及可应用于前述终端设备的芯片统称为终端设备。应理解,本申请实施例对终端设备所采用的具体技术和具体设备形态不做限定。上述图1的主NAN设备可以是多个NAN设备之间交互信息确定的。
如图2所示,示出了本申请实施例提供的WiFi Aware的过程。主要分为设备发现过程、同步过程和服务发现过程这三个过程。NAN集合中的所有NAN设备采用相同的传输参数集,例如传输参数集包括发现窗口(discovery window,DW)的长度、DW之间的间隔、帧间隔、NAN信道资源等。在设备发现过程中,如图2所示NAN集合包括NAN设备1、NAN设备2、NAN设备3和NAN设备4。其中,NAN设备2、NAN设备3和NAN设备4中的任意一个电子设备作为主(master)NAN设备在DW之外可以定期发送如图3所示的发现信标(discovery beacon)帧,发现信标帧也称为设备发现信标帧,如果NAN设备1接收到发现信标帧,则可以响应主NAN设备,这样NAN设备1就会被发现,此时称为NAN设备1加入NAN集合,同时发现信标帧可以包括NAN集合的传输参数集,这样NAN集合中的NAN设备才可以共用传输参数集。可能NAN集合中有的NAN设备完成了同步处于同步状态,有的NAN设备还未完成同步,处于未同步状态。NAN集合中处于同步状态的NAN设备可以在如图3所示的发现窗口内发送同步信标(synchronization beacon)帧,同步信标帧可以携带时钟信息和接收信号强度指示(received signal strength indication,RSSI)门限值,以便NAN集合中其他未同步的NAN设备能够根据接收到同步信标帧中的RRSI门限值确定是否需要与发送同步信标帧的NAN设备利用时钟信息进行同步,以完成与NAN集合中的NAN设备的同步,当然NAN集合中的处于同步状态的NAN设备也可以接收到同步信标帧。不管是处于同步状态的NAN设备还是非同步状态的NAN设备都可以在发现窗口内发送服务发现帧,服务发现帧用于承载NAN设备支持的能力,这样NAN设备之间可以交换能力,以便后续通信。
NAN集合中的任意两个NAN设备在同步之后可以通信,两个NAN设备在通信之前需要确定两个NAN设备之间的传输时延,NAN设备确定传输时延是否满足传输要求,如果满足则发送数据,如果不满足,则可以选择其他的满足传输时延的数据链路发送数据。在一种可能的实现方式中,两个NAN设备需要在Wifi Aware协议基础上,新增交互信令,利用新增的交互信令,NAN设备利用新增的交互信令确定两个NAN设备之间的传输时延,这种方式需要新增信令会导致信令开销增大,并且会增加探测传输时延的时长,从而给使得传输性能变差。在另一种可能的实现方式中,两个NAN设备在同步之后,可以建立专门的通道进行探测时延,这种建立专门的通道来探测时延的方式会在增加确定传输时延的时长,开销较大。
本申请实施例中提到的电子设备可以是NAN设备,换句话说,本申请实施例提到的 电子设备可以替换为NAN设备。
鉴于上述问题,在本申请实施例中,两个电子设备之间可以利用发送发现信标帧或者同步信标帧或者服务发现帧的电子设备可以携带发送这些帧的发送时间信息,作为接收端的电子设备可以根据接收到这些帧的时间以及这些帧中携带的发送时间信息确定两个电子设备之间的传输时延。
下面结合附图描述本申请实施例中确定传输时延的方法。
如图4所示,示出了本申请实施例提供的确定传输时延的方法400。方法400包括:
S410,第二电子设备在DW之间发送发现信标帧,发现信标帧的字段1携带第二电子设备发送发现信标帧的发送时间信息1,第一电子设备在时刻1接收到发现信标帧,此时,第一电子设备可以发现第二电子设备所属的NAN集合。
可选地,发现信标帧可以包括第二电子设备所属的NAN集合对应的DW之间的间隔、DW的长度,NAN集合中的电子设备传输数据所占的信道资源等参数。
示例性的,第二电子设备可以为NAN集合中的主设备。
可选地,发现信标帧的格式为802.11 Beacon帧格式,如表1所示,表1示出了发现信标帧包括的各个域、各个域的长度、各个域的取值以及各个域所代表的含义。
表1
其中,上述表1中的NAN属性(NAN Attributes)域的不同取值表示不同的含义,如表2所示。方法400中的字段1可以为NAN属性的预留(Reserved)字段,表2中的Attribute ID的取值为14-220或者222-255的预留(Reserved)字段可以承载发送发现信标帧的发送时间信息1。示例性的14-220或者222-255的预留(Reserved)字段可以为前述的第一预留字段。
如表2所示,同步信标帧对应表2的第三列,发现信标帧对应表2的第四列,服务发现帧(service discovery frame,SDF)对应表2的第五列。表2中的YES/M表示对应的属性ID是必选的(mandatory),YSE/O表示对应的属性ID是可选的(optional)。NA表示对应的属性ID可有可无。NO表示对应的属性ID不存在。
可选地,如表3所示,字段1可以包括属性域、长度域和发送时间域,属性域承载的比特用于指示字段1用于承载发送时间信息1,长度域承载的比特用于指示发送时间域所占的长度,发送时间域承载的比特用于指示发送发现信标帧的发送时间。示例性的,表3的属性域可以为前述的第一属性域,长度域可以为前述的第一长度域。
表2
表3
S420,第一电子设备根据时刻1和字段1承载的发送时间信息1确定第一电子设备与第二电子设备之间的传输时延1。
下面具体分两种情况讨论第一电子设备根据时刻1和发送时间信息1确定第一电子设备与第二电子设备之间的传输时延1。
情况一,第一电子设备是与第二电子设备同步的电子设备,第一电子设备可以根据时刻1和发送时间信息1确定的传输时延即为第一电子设备与第二电子设备之间的传输时延1。例如,第一电子设备可以将时刻1减去发送时间信息1所指示的发送时间确定为第一电子设备与第二电子设备之间的传输时延1。又例如,第一电子设备先将时刻1利用处理发现信标帧的时间校准,将校准后的时刻1减去发送时间信息1所指示的发送时间确定为第一电子设备与第二电子设备之间的传输时延1。
情况二,第一电子设备与第二电子设备未同步,换句话说,如果发送发现信标帧的第二电子设备已经与NAN集合中的其他设备进行了同步,但是接收发现信标帧的第一电子设备还未与NAN集合中的其他设备进行同步。在这种情况下,第一电子设备可以根据发现信标帧中的时间信息1与时刻1确定传输时延2。例如,第一电子设备可以将时刻1减去发送时间信息1所指示的发送时间确定为第一电子设备与第二电子设备之间的传输时延2。又例如,第一电子设备先对时刻1利用处理发现信标帧的时间校准,将校准后的时刻1减去发送时间信息1所指示的发送时间确定为第一电子设备与第二电子设备之间的传输时延2。当第一电子设备与第二电子设备同步之后,第一电子设备再利用同步过程中的校准时钟的时钟信息对确定的传输时延2进行校准之后得到传输时延1。
这样,第一电子设备在向第二电子设备传输数据的过程中,可以先判断确定的传输时延是否满足传输要求,如果满足传输要求则传输数据,否则不传输数据,或者第一电子设备在第一电子设备与第二电子设备之间的多条传输链路中选择一条满足数据的传输时延要求的传输链路进行传输数据,而不采用WiFi Aware方式进行传输。例如,多条链路包括蜂窝传输链路、蓝牙传输链路、NFC传输链路等。
可选地,方法400还包括:S430,第一电子设备可以将确定的传输时延1通过同步信标帧或者服务发现帧发送给第三电子设备,第三电子设备接收到同步信标帧或者服务发现帧之后,获取同步信标帧或者服务发现帧中的传输时延1,第三电子设备可以保存第一电子设备与第二电子设备之间的传输时延1或者第三电子设备可以将传输时延1发送给下一个电子设备或者发送给NAN集合中的主电子设备。任意接收到传输时延1的电子设备如果需要通过WiFi Aware传输数据,且传输数据的路径都经过第一电子设备和第二电子设备,则都可以根据传输时延1确定数据是否需要经过第一电子设备和第二电子设备。如果主设备接收到多个电子设备发送的多个传输时延,则可以将多个传输时延发送给NAN集合中的每个电子设备,每个电子设备可以根据多个传输时延选择合适的传输路径传输数据。
可选地,第一电子设备可以将确定的传输时延1携带在同步信标帧或者服务发现帧的NAN属性的预留字段向第三电子设备发送。可选地,如图5所示,第二电子设备向第一电子设备发送发现信标帧的过程中,发现信标帧中的预留字段携带发送发现信标帧的发送时间信息1,若第一电子设备与NAN集合中的其他的设备处于同步状态,则第一电子设备可以将确定的传输时延1携带在同步信标帧或者服务发现帧的NAN属性的预留字段向第三电子设备发送。可选地,如图6所示,第二电子设备向第一电子设备发送发现信标帧的过程中,发现信标帧中的预留字段携带发送发现信标帧的发送时间信息1,若第一电子设备与NAN集合中的其他的设备未同步,则第一电子设备可以将确定的传输时延1携带在服务发现帧中的NAN属性的预留字段向第三电子设备发送。
可以理解的是,第三电子设备与第二电子设备可以相同或者不同,本申请实施例不予限制。
可选地,服务发现帧为802.11Public Action帧格式,如表4所示,表4示出了服务发现帧包括的各个域、各个域的长度、各个域的取值以及各个域所代表的含义。同步信标帧的帧格式如表1所示。
表1的同步信标帧的帧格式和发现信标帧的帧格式与表4的服务发现帧的帧格式都包括NAN属性域,NAN属性域的不同取值表示不同的含义,如表2所示NAN属性的预留(Reserved)字段可以承载传输时延1,表2中的Attribute ID的取值为14-220或者222-255的预留(Reserved)字段可以承载发送发现信标帧的传输时延1。示例性的14-220或者222-255的预留(Reserved)字段可以为前述的第二预留字段。
可选地,预留字段可以包括属性域、长度域和传输时延域,属性域承载的比特用于指示预留字段用于承载发送传输时延1,长度域承载的比特用于指示传输时延域所占的长度,传输时延域承载的比特用于指示传输时延1。如表5所示。示例性的,表5的属性域可以为前述的第二属性域,长度域可以为前述的第二长度域。
表4
表5
举例来说,如图7所示,电子设备3可以根据方法400确定电子设备3与电子设备4之间的传输时延,电子设备3可以将确定的传输时延发送给电子设备2。电子设备2可以根据方法400确定电子设备2与电子设备4之间的传输时延,电子设备2与电子设备3之间的传输时延。电子设备2可以将来自电子设备3的电子设备3与电子设备4之间的传输时延以及自身确定的两个传输时延(电子设备2与电子设备3之间的传输时延,电子设备2与电子设备4之间的传输时延)送给作为NAN集合的主设备的电子设备1,当然电子设备2也可以保存电子设备3与电子设备4之间的传输时延以及自身确定的传输时延。电子设备1接收到来自电子设备2的电子设备3与电子设备4之间的传输时延、电子设备2与电子设备4之间的传输时延以及电子设备2与电子设备3之间的传输时延,并将这些传输时延直接或者间接的发送给电子设备2、电子设备3、电子设备4和电子设备5。NAN集合中的任一电子设备需要向另外一个电子设备传输数据时,可以根据不同路径上的不同的时延选择合适的传输路径,若电子设备1需要向电子设备4传输数据,电子设备1可以比较电子设备2与电子设备4之间的传输时延大小,与,电子设备2到电子设备3的传输时延与电子设备3到电子设备4的传输时延和,找一条传输时延较小的路径向电子设备4传输数据。
可选地,第一电子设备接收到第二电子设备的发现信标帧之后,第一电子设备还可以向第四电子设备发送发现信标帧或者服务发现帧或者同步信标帧,且这些帧中可以包括第一电子设备发送这些帧的发送时间信息,第四电子设备可以根据接收这些帧的时刻与这些帧中包括的发送时间信息,确定第四电子设备与第一电子设备之间的传输时延。
上述方法400描述的是,第二电子设备将发送发现信标帧的发送时间信息承载在发现信标帧的预留字段,下面结合图8描述第二电子设备将发送同步信标帧的发送时间信息承载在同步信标帧的预留字段。如图8所示,示出了本申请实施例提供的另一种用于确定传输时延的方法800。方法800包括:
S810,第二电子设备在DW内发送同步信标帧,同步信标帧的字段2携带第二电子设备发送同步信标帧的发送时间信息2,第一电子设备在时刻2接收到同步信标帧。
示例性的,第二电子设备可以是NAN集合中的主设备或者是NAN集合中处于同步状态的设备。
可选地,同步信标帧的格式为802.11 Beacon帧格式,如表1所示,表1示出了同步信标帧包括的各个域、各个域的长度、各个域的取值以及各个域所代表的含义。
其中,上述表1中的NAN属性(NAN Attributes)域的不同取值表示不同的含义,如表2所示。如表2所示,同步信标帧对应表2的第三列,如表2所示,方法800中的字段2可以为NAN属性的预留(Reserved)字段,表2中的Attribute ID的取值为14-220或者222-255的预留(Reserved)字段可以承载发送发现信标帧的发送时间信息2。
可选地,字段2可以包括属性域、长度域和发送时间域,属性域承载的比特用于指示第字段2用于承载发送时间信息2,长度域承载的比特用于指示发送时间域所占的长度,发送时间域承载的比特用于指示发送同步信标帧的发送时间。如表3所示。
S820,第一电子设备根据时刻2和字段2承载的发送时间信息2确定第一电子设备与第二电子设备之间的传输时延3。
下面具体分两种情况讨论第一电子设备根据时刻2和发送时间信息2确定第一电子设备与第二电子设备之间的传输时延3。
情况一,第一电子设备是与第二电子设备同步的电子设备,第一电子设备可以根据时刻2和发送时间信息2确定的传输时延即为第一电子设备与第二电子设备之间的传输时延2。例如,第一电子设备可以将时刻2减去发送时间信息2所指示的发送时间确定为第一电子设备与第二电子设备之间的传输时延3。又例如,第一电子设备先将时刻2利用处理同步信标帧的时间校准,将校准后的时刻2减去发送时间信息2所指示的发送时间确定为第一电子设备与第二电子设备之间的传输时延3。
情况二,第一电子设备与第二电子设备未同步,换句话说,如果发送同步信标帧的第二电子设备已经与NAN集合中的其他设备进行了同步,但是接收同步信标帧的第一电子设备还未与NAN集合中的其他设备进行同步,在这种情况下,第一电子设备可以根据发现信标帧中的时间信息2与时刻2确定传输时延4。例如,第一电子设备可以将时刻2减去发送时间信息2所指示的发送时间确定为第一电子设备与第二电子设备之间的传输时延4。又例如,第一电子设备先将时刻2利用处理同步信标帧的时间校准,将校准后的时刻2减去发送时间信息2所指示的发送时间确定为第一电子设备与第二电子设备之间的传输时延4。当第一电子设备与第二电子设备同步之后,第一电子设备再利用同步过程中的校准时钟的时钟信息对确定的传输时延4进行校准之后得到传输时延3。
这样,第一电子设备在向第二电子设备传输数据的过程中,可以先判断确定的传输时延是否满足传输要求,如果满足传输要求则传输数据,否则不传输数据,或者第一电子设备在第一电子设备与第二电子设备之间的多条传输链路中选择一条满足数据的传输时延要求的传输链路进行传输数据,而不采用WiFi Aware方式进行传输。例如,多条链路包括蜂窝传输链路、蓝牙传输链路、近场通信(near field communication,NFC)传输链路等。
可选地,方法800还包括:S830,第一电子设备可以将确定的传输时延3通过同步信标帧或者服务发现帧发送给第三电子设备,第三电子设备接收到同步信标帧或者服务发现 帧之后,获取同步信标帧或者服务发现帧中的传输时延3,第三电子设备可以保存第一电子设备与第二电子设备之间的传输时延3或者第三电子设备可以将传输时延3发送给下一个电子设备或者发送给NAN集合中的主电子设备。任意接收到传输时延3的电子设备如果需要通过WiFi Aware传输数据,且传输数据的路径都经过第一电子设备和第二电子设备,则都可以根据传输时延3确定数据是否需要经过第一电子设备和第二电子设备。如果主设备接收到多个电子设备发送的多个传输时延,则可以将多个传输时延发送给NAN集合中的每个电子设备,每个电子设备可以根据多个传输时延选择合适的传输路径传输数据。
可选地,第一电子设备可以将确定的传输时延3携带在同步信标帧或者服务发现帧的NAN属性的预留字段向第三电子设备发送。可选地,如图9所示,第二电子设备向第一电子设备发送同步信标帧的过程中,同步信标帧中的预留字段携带发送同步信标帧的发送时间信息2,若第一电子设备与NAN集合中的其他的设备处于同步状态,则第一电子设备可以将确定的传输时延3携带在同步信标帧或者服务发现帧的NAN属性的预留字段向第三电子设备发送。可选地,如图10所示,第二电子设备向第一电子设备发送同步信标帧的过程中,同步信标帧中的预留字段携带发送同步信标帧的发送时间信息2,若第一电子设备与NAN集合中的其他的设备未同步,则第一电子设备可以将确定的传输时延3携带在服务发现帧中的NAN属性的预留字段向第三电子设备发送。
可以理解的是,第三电子设备与第二电子设备可以相同或者不同,本申请实施例不予限制。
可以理解的是,同步信标帧的帧格式和发现信标帧的帧格式参见方法400的描述。
同样的,传输时延3的举例参见图7的传输时延1的举例的描述。
可选地,第一电子设备接收到第二电子设备的同步信标帧之后,第一电子设备还可以向第四电子设备发送发现信标帧或者服务发现帧或者同步信标帧,且这些帧中可以包括第一电子设备发送这些帧的发送时间信息,第四电子设备可以根据接收这些帧的时刻与这些帧中包括的发送时间信息,确定第四电子设备与第一电子设备之间的传输时延。
上述方法400描述的是,第二电子设备将发送发现信标帧的发送时间信息承载在发现信标帧的预留字段,方法800描述的是,第二电子设备将发送同步信标帧的发送时间信息承载在同步信标帧的预留字段。下面结合图11描述,第二电子设备将服务发现帧的发送时间信息承载在服务发现帧的预留字段,如图11所示,示出了本申请实施例提供的另一种用于确定传输时延的方法1100。方法1100包括:
S1110,第二电子设备在DW内发送服务发现帧,服务发现帧的字段3携带第二电子设备发送服务发现帧的发送时间信息3,第一电子设备在时刻3接收到服务发现帧。
示例性的,第二电子设备可以是NAN集合中的任一电子设备或者第二电子设备也可以是NAN集合外的还未与NAN集合中的电子设备进行同步的电子设备。
可选地,服务发现帧的格式为802.11Public Action帧格式,如表4所示,表4示出了服务发现帧包括的各个域、各个域的长度、各个域的取值以及各个域所代表的含义。
其中,上述表4中的NAN属性(NAN Attributes)域的不同取值表示不同的含义,如表2所示。如表2所示,服务发现信标帧对应表2的第五列,如表2所示,方法1100中的字段3可以为NAN属性的预留(Reserved)字段,表2中的Attribute ID的取值为14-220或者222-255的预留(Reserved)字段可以承载发送服务发现帧的发送时间信息3。
可选地,字段2可以包括属性域、长度域和发送时间域,属性域承载的比特用于指示第字段2用于承载发送时间信息2,长度域承载的比特用于指示发送时间域所占的长度,发送时间域承载的比特用于指示发送同步信标帧的发送时间。如表3所示。
S1120,第一电子设备根据时刻3和字段3承载的发送时间信息3确定第一电子设备与第二电子设备之间的传输时延5。
下面具体分两种情况讨论第一电子设备根据时刻3和发送时间信息3确定第一电子设备与第二电子设备之间的传输时延5。
情况一,第一电子设备是与第二电子设备同步的电子设备,第一电子设备可以根据时刻3和发送时间信息3确定的传输时延即为第一电子设备与第二电子设备之间的传输时延3。例如,第一电子设备可以将时刻3减去发送时间信息3所指示的发送时间确定为第一电子设备与第二电子设备之间的传输时延5。又例如,第一电子设备先将时刻3利用处理服务发现帧的时间校准,将校准后的时刻3减去发送时间信息3所指示的发送时间确定为第一电子设备与第二电子设备之间的传输时延5。
情况二,第一电子设备与第二电子设备未同步,换句话说,如果发送服务发现帧的第二电子设备已经与NAN集合中的其他设备进行了同步,但是接收服务发现帧的第一电子设备还未与NAN集合中的其他设备进行同步,在这种情况下,第一电子设备可以根据服务发现帧中的时间信息3与时刻3确定传输时延6。例如,第一电子设备可以将时刻3减去发送时间信息3所指示的发送时间确定为第一电子设备与第二电子设备之间的传输时延6。又例如,第一电子设备先对时刻3利用处理服务发现帧的时间校准,将校准后的时刻3减去发送时间信息3所指示的发送时间确定为第一电子设备与第二电子设备之间的传输时延6。当第一电子设备与第二电子设备同步之后,第一电子设备再利用同步过程中的校准时钟的时钟信息对确定的传输时延6进行校准之后得到传输时延5。
这样,第一电子设备在向第二电子设备传输数据的过程中,可以先判断确定的传输时延是否满足传输要求,如果满足传输要求则传输数据,否则不传输数据,或者第一电子设备在第一电子设备与第二电子设备之间的多条传输链路中选择一条满足数据的传输时延要求的传输链路进行传输数据,而不采用WiFi Aware方式进行传输。例如,多条链路包括蜂窝传输链路、蓝牙传输链路、NFC传输链路等。
可选地,方法1100还包括:S1130,第一电子设备可以将确定的传输时延5通过同步信标帧或者服务发现帧发送给第三电子设备,第三电子设备接收到同步信标帧或者服务发现帧之后,获取同步信标帧或者服务发现帧中的传输时延3,第三电子设备可以保存第一电子设备与第二电子设备之间的传输时延5或者第三电子设备可以将传输时延5发送给下一个电子设备或者发送给NAN集合中的主电子设备。任意接收到传输时延5的电子设备如果需要通过WiFi Aware传输数据,且传输数据的路径都经过第一电子设备和第二电子设备,则都可以根据传输时延5确定数据是否需要经过第一电子设备和第二电子设备。如果主设备接收到多个电子设备发送的多个传输时延,则可以将多个传输时延发送给NAN集合中的每个电子设备,每个电子设备可以根据多个传输时延选择合适的传输路径传输数据。
可选地,第一电子设备可以将确定的传输时延5携带在同步信标帧或者服务发现帧的NAN属性的预留字段向第三电子设备发送。可选地,如图12所示,第二电子设备向第一电子设备发送同步信标帧的过程中,同步信标帧中的预留字段携带发送同步信标帧的发送 时间信息3,若第一电子设备与NAN集合中的其他的设备处于同步状态,则第一电子设备可以将确定的传输时延5携带在同步信标帧或者服务发现帧的NAN属性的预留字段向第三电子设备发送。可选地,如图13所示,第二电子设备向第一电子设备发送同步信标帧的过程中,同步信标帧中的预留字段携带发送同步信标帧的发送时间信息3,若第一电子设备与NAN集合中的其他的设备未同步,则第一电子设备可以将确定的传输时延5携带在服务发现帧中的NAN属性的预留字段向第三电子设备发送。
可以理解的是,第三电子设备与第二电子设备可以相同或者不同,本申请实施例不予限制。
可以理解的是,同步信标帧的帧格式和发现信标帧的帧格式参见方法400的描述。
可选地,第一电子设备接收到第二电子设备的发现信标帧之后,第一电子设备还可以向第四电子设备发送发现信标帧或者服务发现帧或者同步信标帧,且这些帧中可以包括第一电子设备发送这些帧的发送时间信息,第四电子设备可以根据接收这些帧的时刻与这些帧中包括的发送时间信息,确定第四电子设备与第一电子设备之间的传输时延。
可以理解的是,在本申请实施例中,若第一电子设备能够确定第一电子设备与第二电子设备的传输时延,且第二电子设备也能够确定第二电子设备与第一电子设备的传输时延,当第三电子设备能够接收到第一电子设备发送的传输时延,也能够接收到第二电子设备发送的传输时延,则第三电子设备可以对两个不同的传输时延进行校准,可以进行加权计算,将加权计算后的传输时延确定为第一电子设备与第二电子设备之间的传输时延,例如,接收到传输时延越早权系数越低,接收到传输时延越晚权系数越高。
可选地,前述的第一帧为方法400的发现信标帧,前述的第一字段可以为方法400的字段1,前述的第一发送时间信息可以为方法400中的发送时间信息1,前述的第一传输时延为方法400中的传输时延1,前述的第一时刻为方法400中的时刻1,前述的第二传输时延为方法400中的传输时延2,前述的第二帧为方法400中携带传输时延1的同步信标帧或者服务发现帧;或者,前述的第一帧为方法800的同步信标帧,前述的第一字段可以为方法800的字段2,前述的第一发送信息可以为方法800中的发送时间信息2,前述的第一传输时延为方法800中的传输时延3,前述的第一时刻为方法800中的时刻2,前述的第二传输时延为方法800中的传输时延4,前述的第二帧为方法800中携带传输时延3的同步信标帧或者服务发现帧;或者前述的第一帧为方法1100的服务发现帧,前述的第一字段可以为方法1100的字段3,前述的第一发送信息可以为方法1100中的发送时间信息3,前述的第一传输时延为方法1100中的传输时延5,前述的第一时刻为方法1100中的时刻3,前述的第二传输时延为方法1100中的传输时延6,前述的第二帧为方法1100中携带传输时延5的同步信标帧或者服务发现帧。
需要理解的是,方法400中的字段1、方法800中的字段2以及方法1100中的字段3可以是不同的字段或者是相同的字段的不同的取值,例如,字段1可以是12-220的预留字段,字段2可以是222-255的预留字段。
需要说明的是,表3和表5中的各个域所占的大小只是示例性的。此外,字段1的属性域、字段2的属性域和字段3的属性域的取值和长度可以相同或者不同,字段1的长度域、字段2的长度域和字段3的长度域的取值和长度可以相同或者不同,字段1的发送时间域、字段2的发送时间域和字段3的时间域的取值和长度可以相同或者不同。
也需要说明的是,上述方法400、方法800和方法1100是两个独立的实施例或者也可以是可以互相引用的实施例,方法400、方法800和方法1100中的第二电子设备可以是不同的电子设备也可以是同一电子设备,方法400、方法800和方法1100中第一电子设备可以是不同的电子设备也可以是相同的电子设备,本申请实施例不予限制。
上述结合图1-图13描述了本申请实施例提供的用于确定传输时延的方法实施例,下面描述本申请实施例提供的用于确定传输时延的装置实施例。
本实施例可以根据上述方法示例对各个电子设备进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块可以采用硬件的形式实现。需要说明的是,本实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。
需要说明的是,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。
本实施例提供的各个电子设备,用于执行上述用于确定传输时延的方法,因此可以达到与上述实现方法相同的效果。在采用集成的单元的情况下,各个电子设备分别可以包括处理模块、存储模块和通信模块。其中,处理模块可以用于对各个电子设备的动作进行控制管理,例如,可以用于支持电子设备执行处理单元执行的步骤。存储模块可以用于支持客户端和服务端执行存储程序代码和数据等。通信模块,可以用于支持客户端和服务端与其他设备的通信。
其中,处理模块可以是处理器或控制器。其可以实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框,模块和电路。处理器也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,数字信号处理(digital signal processing,DSP)和微处理器的组合等等。存储模块可以是存储器。通信模块具体可以为射频电路、蓝牙芯片、Wi-Fi芯片等与其他电子设备交互的设备。
在一个实施例中,当处理模块为处理器,存储模块为存储器时,本实施例所涉及的电子设备可以为具有图14所示结构的设备。示例性的,图14是本申请实施例提供的一例电子设备1400的结构示意图。电子设备1400可以是方法实施例中的第一电子设备、第二电子设备、第三电子设备或者第四电子设备,电子设备1400可以是包括处理器1410、存储器1420和通信模块1430等。
其中,处理器1410可以包括一个或多个处理单元,存储器1420用于存储程序代码和数据。在本申请实施例中,处理器1410可执行存储器1420存储的计算机执行指令,用于对电子设备1400的动作进行控制管理。
通信模块1430可以用于电子设备1400的各个内部模块之间的通信、或者电子设备1400和其他外部电子设备之间的通信等。示例性的,如果电子设备1400通过有线连接的方式和其他电子设备通信,通信模块1430可以包括接口等,例如USB接口,USB接口可以是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口可以用于连接充电器为电子设备1400充电,也可以用于电子设备1400与***设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。
或者,通信模块1430可以包括音频器件、射频电路、蓝牙芯片、无线保真(wireless fidelity,Wi-Fi)芯片、近距离无线通讯技术(near-field communication,NFC)模块等,可以通过多种不同的方式实现电子设备1400与其他电子设备之间的交互。
可选地,电子设备1400还可以包括显示屏1440,显示屏1440可以显示人机交互界面中的图像或视频等。
可选地,电子设备1400还可以包括外设设备1450,例如鼠标、键盘、扬声器、麦克风等。
应理解,除了图14中列举的各种部件或者模块之外,本申请实施例对电子设备1400的结构不做具体限定。在本申请另一些实施例中,电子设备1400还可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
本实施例还提供一种计算机可读存储介质,该计算机可读存储介质中存储有计算机指令,当该计算机指令在电子设备上运行时,使得电子设备执行上述相关方法步骤实现上述实施例中的用于确定传输时延的方法。
本实施例还提供了一种计算机程序产品,当该计算机程序产品在计算机上运行时,使得计算机执行上述相关步骤,以实现上述实施例中的用于确定传输时延的方法。
另外,本申请的实施例还提供一种装置,这个装置具体可以是芯片,组件或模块,该装置可包括相连的处理器和存储器;其中,存储器用于存储计算机执行指令,当装置运行时,处理器可执行存储器存储的计算机执行指令,以使芯片执行上述各方法实施例中的用于确定传输时延的方法。
其中,本实施例提供的电子设备、计算机存储介质、计算机程序产品或芯片均用于执行上文所提供的对应的方法,因此,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。
通过以上实施方式的描述,所属领域的技术人员可以了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存 储在一个可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
以上内容,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。
Claims (20)
- 一种用于确定传输时延的方法,其特征在于,包括:第一电子设备在第一时刻接收第二电子设备发送的第一帧,所述第一帧中的第一字段携带所述第二电子设备发送所述第一帧的第一发送时间信息,所述第一帧为临近感知网络NAN的设备发现信标帧或者同步信标帧或者服务发现帧;所述第一电子设备根据所述第一时刻和所述第一发送时间信息确定所述第一电子设备与所述第二电子设备之间的第一传输时延。
- 根据权利要求1所述的方法,其特征在于,所述第一字段为所述第一帧的NAN属性域的第一预留字段。
- 根据权利要求1或2所述的方法,其特征在于,所述第一字段包括第一属性域、第一长度域和发送时间域,所述第一属性域承载的比特用于指示所述第一字段用于承载所述第一发送时间信息,所述第一长度域承载的比特用于指示所述发送时间域所占的长度,所述发送时间域承载的比特用于指示所述第二电子设备发送所述第一帧的发送时间。
- 根据权利要求1至3中任一项所述的方法,其特征在于,若所述第一电子设备未与所述第二电子设备同步;其中,所述第一电子设备根据所述第一时刻和所述第一时间信息确定所述第一电子设备与所述第二电子设备之间的第一传输时延,包括:所述第一电子设备根据所述第一时刻和所述第一时间信息确定所述第一电子设备与所述第二电子设备之间第二传输时延;所述第一电子设备与所述第二电子设备同步之后,所述第一电子设备根据同步过程中校准的时钟信息校准所述第二传输时延得到所述第一传输时延。
- 根据权利要求1至4中任一项所述的方法,其特征在于,所述方法还包括:所述第一电子设备向第三电子设备发送第二帧,所述第二帧中的第二字段携带所述第一传输时延,所述第二帧为临近感知网络NAN的同步信标帧或者服务发现帧。
- 根据权利要求5所述的方法,其特征在于,所述第二字段为所述第二帧的NAN属性域的第二预留字段。
- 根据权利要求5或6所述的方法,其特征在于,所述第二字段包括第二属性域、第二长度域和传输时延域,所述第二属性域承载的比特用于指示所述第二字段用于承载所述第一传输时延,所述第二长度域承载的比特用于指示所述传输时延域所占的长度,所述传输时延域承载的比特用于指示所述第一传输时延。
- 根据权利要求1至7中任一项所述的方法,其特征在于,所述方法还包括:所述第一电子设备向第四电子设备发送第三帧,所述第三帧中的第三字段携带所述第一电子设备发送所述第三帧的第二发送时间信息,所述第二发送时间信息用于所述第四电子设备确定所述第四电子设备与所述第一电子设备之间的第三传输时延,第三帧为服务发现帧或者同步信标帧或者设备发现信标帧。
- 一种用于确定传输时延的方法,其特征在于,包括:第二电子设备向第一电子设备发送第一帧,所述第一帧中的第一字段携带所述第二电子设备发送所述第一帧的第一发送时间信息,所述第一帧为临近感知网络NAN 的设备发现信标帧或者同步信标帧或者服务发现帧,所述第一发送时间信息用于所述第一电子设备确定所述第一电子设备与所述第二电子设备之间的第一传输时延。
- 根据权利要求9所述的方法,其特征在于,所述第一字段为所述第一帧的NAN属性域的第一预留字段。
- 根据权利要求9或10所述的方法,其特征在于,所述第一字段包括第一属性域、第一长度域和发送时间域,所述第一属性域承载的比特用于指示所述第一字段用于承载所述第一发送时间信息,所述第一长度域承载的比特用于指示所述发送时间域所占的长度,所述发送时间域承载的比特用于指示所述第二电子设备发送所述第一帧的发送时间。
- 根据权利要求9至11中任一项所述的方法,其特征在于,所述方法还包括:所述第二电子设备接收所述第一电子设备发送的第二帧,所述第二帧中的第二字段携带所述第一传输时延,所述第二帧为临近感知网络NAN的设备同步信标帧或者服务发现帧。
- 根据权利要求12所述的方法,其特征在于,所述第二字段为所述第二帧的NAN属性域的第二预留字段。
- 根据权利要求12或13所述的方法,其特征在于,所述第二字段包括第二属性域、第二长度域和传输时延域,所述第二属性域承载的比特用于指示所述第二字段用于承载所述第一传输时延,所述第二长度域承载的比特用于指示所述传输时延域所占的长度,所述传输时延域承载的比特用于指示所述第一传输时延。
- 一种电子设备,其特征在于,包括:一个或多个处理器;存储器;安装有多个应用程序的模块;以及一个或多个程序,其中所述一个或多个程序被存储在所述存储器中,当所述一个或者多个程序被所述处理器执行时,使得所述电子设备执行如权利要求1至8中任一项所述的方法。
- 一种电子设备,其特征在于,包括:一个或多个处理器;存储器;安装有多个应用程序的模块;以及一个或多个程序,其中所述一个或多个程序被存储在所述存储器中,当所述一个或者多个程序被所述处理器执行时,使得所述电子设备执行如权利要求9至14中任一项所述的方法。
- 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行如权利要求1至8中任一项所述的方法。
- 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行如权利要求9至14中任一项所述的方法。
- 一种计算机程序产品,其特征在于,当所述计算机程序产品在计算机上运行时,使得所述计算机执行如权利要求1至8中任一项所述的方法。
- 一种计算机程序产品,其特征在于,当所述计算机程序产品在计算机上运行时,使得所述计算机执行如权利要求9至14中任一项所述的方法。
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
EP21879229.9A EP4207863A4 (en) | 2020-10-13 | 2021-09-24 | METHOD FOR DETERMINING TRANSMISSION DELAY AND ELECTRONIC DEVICE |
US18/248,936 US20240007928A1 (en) | 2020-10-13 | 2021-09-24 | Method for Determining Transmission Delay and Electronic Device |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011095023.7 | 2020-10-13 | ||
CN202011095023.7A CN114363943A (zh) | 2020-10-13 | 2020-10-13 | 用于确定传输时延的方法和电子设备 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2022078183A1 true WO2022078183A1 (zh) | 2022-04-21 |
Family
ID=81090397
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2021/120217 WO2022078183A1 (zh) | 2020-10-13 | 2021-09-24 | 用于确定传输时延的方法和电子设备 |
Country Status (4)
Country | Link |
---|---|
US (1) | US20240007928A1 (zh) |
EP (1) | EP4207863A4 (zh) |
CN (1) | CN114363943A (zh) |
WO (1) | WO2022078183A1 (zh) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115884229A (zh) * | 2023-01-29 | 2023-03-31 | 深圳开鸿数字产业发展有限公司 | 传输时延的管理方法、电子设备和存储介质 |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104780510A (zh) * | 2014-01-14 | 2015-07-15 | 诺基亚公司 | 用于无线网络集群发现和并发管理的方法、装置和计算机程序产品 |
US20150365835A1 (en) * | 2014-06-11 | 2015-12-17 | Jonathan Segev | Dynamically associated neighbor awareness networking (nan) discovery windows for fine timing measurement |
CN107534848A (zh) * | 2015-04-30 | 2018-01-02 | 华为技术有限公司 | 一种以分散和省电方式进行数据通信的***和方法 |
CN110460535A (zh) * | 2019-08-02 | 2019-11-15 | 宁波大学 | 物联网感知设备间并发数据传输方法 |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100265931A1 (en) * | 2009-03-04 | 2010-10-21 | Peter Loc | Range-Based Wireless Alarm System |
KR20160028321A (ko) * | 2014-09-03 | 2016-03-11 | 삼성전자주식회사 | 거리 측정 방법 및 그 전자 장치 |
US10187817B2 (en) * | 2015-05-27 | 2019-01-22 | Qualcomm Incorporated | Measuring distance in wireless devices |
US20180184438A1 (en) * | 2016-12-28 | 2018-06-28 | Intel Corporation | Persistent scheduling and forwarding while receiving in wireless time sensitive networks |
CN108923995B (zh) * | 2017-04-24 | 2021-04-02 | 上海大唐移动通信设备有限公司 | 一种传输时延的确定方法和装置 |
CN114070537A (zh) * | 2017-08-31 | 2022-02-18 | 华为技术有限公司 | 信息传输方法及网络设备 |
CN111064629B (zh) * | 2018-10-16 | 2022-04-22 | 华为技术有限公司 | 用于测量时延的方法和装置 |
-
2020
- 2020-10-13 CN CN202011095023.7A patent/CN114363943A/zh active Pending
-
2021
- 2021-09-24 US US18/248,936 patent/US20240007928A1/en active Pending
- 2021-09-24 EP EP21879229.9A patent/EP4207863A4/en active Pending
- 2021-09-24 WO PCT/CN2021/120217 patent/WO2022078183A1/zh active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104780510A (zh) * | 2014-01-14 | 2015-07-15 | 诺基亚公司 | 用于无线网络集群发现和并发管理的方法、装置和计算机程序产品 |
US20150365835A1 (en) * | 2014-06-11 | 2015-12-17 | Jonathan Segev | Dynamically associated neighbor awareness networking (nan) discovery windows for fine timing measurement |
CN107534848A (zh) * | 2015-04-30 | 2018-01-02 | 华为技术有限公司 | 一种以分散和省电方式进行数据通信的***和方法 |
CN110460535A (zh) * | 2019-08-02 | 2019-11-15 | 宁波大学 | 物联网感知设备间并发数据传输方法 |
Non-Patent Citations (1)
Title |
---|
See also references of EP4207863A4 |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115884229A (zh) * | 2023-01-29 | 2023-03-31 | 深圳开鸿数字产业发展有限公司 | 传输时延的管理方法、电子设备和存储介质 |
CN115884229B (zh) * | 2023-01-29 | 2023-05-12 | 深圳开鸿数字产业发展有限公司 | 传输时延的管理方法、电子设备和存储介质 |
Also Published As
Publication number | Publication date |
---|---|
CN114363943A (zh) | 2022-04-15 |
EP4207863A1 (en) | 2023-07-05 |
US20240007928A1 (en) | 2024-01-04 |
EP4207863A4 (en) | 2024-02-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP2695327B1 (en) | Systems and methods for implementing multicasting using personal area network (pan) wireless technology | |
US11950066B2 (en) | TWS earphone interaction method and system using residual slots | |
US20220201610A1 (en) | Use of Wake-Up Receiver with Bluetooth Low Energy | |
JP2018505576A (ja) | 複数のシンクデバイスへのワイヤレスストリーミング伝送のタイミングを同期する技法 | |
US11930464B2 (en) | Method and device for delivering time-sensitive networking synchronization information in mobile communication system | |
US11929827B2 (en) | Apparatus and method for transmitting synchronization information in communication system | |
CN112702700B (zh) | 一种资源配置的方法及装置 | |
CN112997566A (zh) | 处理用于传输的关键数据到达与配置许可的传输时机之间的失准 | |
EP3592062A1 (en) | Signal processing method and apparatus | |
WO2022078183A1 (zh) | 用于确定传输时延的方法和电子设备 | |
US20230147734A1 (en) | Communication method and apparatus | |
EP3852449A1 (en) | Data synchronization method and device, and storage medium | |
US20230422098A1 (en) | Providing burst end time in time sensitive communication assistance information | |
US11206688B2 (en) | Network access method for low power terminal, and apparatus | |
CN118355689A (zh) | 针对多模式服务流通信的增强 | |
WO2022116937A1 (zh) | 一种通信方法、***及装置 | |
WO2023151612A1 (zh) | 通信方法以及通信装置 | |
WO2022089003A1 (zh) | 一种业务报文发送方法及装置 | |
WO2023061012A1 (zh) | 时钟同步方法、设备及*** | |
WO2022237640A1 (zh) | 一种资源确定方法及装置 | |
WO2023093461A1 (zh) | WiFi双模式下的资源分配方法、设备和存储介质 | |
WO2024092792A1 (zh) | 一种通信方法及装置 | |
WO2023071919A1 (zh) | 通信方法以及相关装置 | |
WO2023213159A1 (zh) | 通信方法及装置 | |
WO2023011261A1 (zh) | 数据传输方法和装置 |
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: 21879229 Country of ref document: EP Kind code of ref document: A1 |
|
ENP | Entry into the national phase |
Ref document number: 2021879229 Country of ref document: EP Effective date: 20230331 |
|
WWE | Wipo information: entry into national phase |
Ref document number: 18248936 Country of ref document: US |
|
NENP | Non-entry into the national phase |
Ref country code: DE |