This application relates to the communication field, and further, to a broadcast information processing method and apparatus.
Short-range communication plays an important role in people's daily life. For example, short-range communication is required in fields such as smart terminals, smart homes, smart manufacturing, and smart vehicles. In wireless short-range communication, a broadcast message includes two parts: a basic broadcast frame and an extended broadcast frame (or an extended data frame). A broadcast receiver receives the basic broadcast frame, and receives the extended broadcast frame (or the extended data frame) based on information that is about a frequency, a clock, and a physical layer (PHY) and that is indicated in the basic broadcast frame. Further, the broadcast receiver initiates a scanning request and/or a connection request in a corresponding window based on indication information in the extended broadcast frame (or the extended data frame). Further, the broadcast receiver receives a scanning response frame, and/or the broadcast receiver completes a connection with a broadcast sender, to complete a communication procedure.
This application provides a broadcast information processing method. Indication information is added to a basic broadcast frame sent by a second device to a first device, so that the first device determines, based on the indication information, whether to receive an extended broadcast frame or a scanning response frame. A flexible receiving method is provided, so that the first device determines, based on the indication information and a requirement of the first device, whether to receive subsequent broadcast content. Further, when the extended broadcast frame or the scanning response frame is not received, power consumption of the first device in a broadcast information processing process is reduced. In addition, the first device parses, at a physical layer, the indication information in a frame header of the basic broadcast frame, so that power consumption of the first device in a parsing process is reduced.
According to a first aspect, a broadcast information processing communication method is provided, including: A first device receives a basic broadcast frame sent by a second device; the first device parses the basic broadcast frame to obtain indication information, where the indication information includes at least one of the following: first indication information, where the first indication information indicates whether content of an extended broadcast frame changes; second indication information, where the second indication information indicates a broadcast type; and third indication information, where the third indication information indicates whether content of a scanning response frame changes; and the first device determines, based on the indication information, whether to receive the extended broadcast frame. The first device may be a broadcast receiver, and the second device may be a broadcast sender. The basic broadcast frame may alternatively be a basic broadcast physical channel protocol data unit (PDU), and the extended broadcast frame may alternatively be an extended broadcast physical channel PDU.
According to the broadcast information processing communication method provided in this application, the indication information is added to the basic broadcast frame sent by the second device to the first device, so that the first device determines, based on the indication information, whether to receive the extended broadcast frame or the scanning response frame. A flexible receiving method is provided, so that the first device determines, based on the indication information and a requirement of the first device, whether to receive subsequent broadcast content. Further, when the extended broadcast frame or the scanning response frame is not received, power consumption of the first device in a broadcast information processing process is reduced. In addition, the first device parses, at a physical layer, the indication information in the basic broadcast frame, so that power consumption of the first device in a parsing process is reduced.
With reference to the first aspect, in some implementations of the first aspect, the indication information is included in a physical layer frame header of the basic broadcast frame or a physical layer payload header of the basic broadcast frame. The physical layer frame header of the basic broadcast frame may further include physical layer control information such as encoding and decoding of the basic broadcast frame and new transmission and old transmission indications. The physical layer payload header of the basic broadcast frame may further include higher layer control information of the basic broadcast frame, for example, one or more pieces of link-layer-related control information such as segmentation, reassembly, multiplexing, and a logical channel priority of a data link layer. The first device parses the physical layer frame header of the basic broadcast frame or the physical layer payload header of the basic broadcast frame, and obtains the indication information from the physical layer frame header of the basic broadcast frame or the physical layer payload header of the basic broadcast frame. The indication information is parsed in the physical layer frame header, so that power consumption of the first device in the parsing process is reduced.
With reference to the first aspect, in some implementations of the first aspect, the indication information may include one of the first indication information, the second indication information, and the third indication information.
Optionally, the indication information may include the first indication information. If the first indication information indicates that the content of the extended broadcast frame changes, the first device receives the extended broadcast frame. If the first indication information indicates that the content of the extended broadcast frame does not change, the first device does not receive the extended broadcast frame. Further, the first device initiates a scanning request or a connection request based on content of a currently received extended broadcast frame or content of a previously buffered extended broadcast frame (when the extended broadcast frame is not received this time, or the content of the currently extended broadcast frame is the same as the content of the previously received and buffered extended broadcast frame), and further receives the scanning response frame or establishes a connection.
Optionally, the indication information may include the second indication information. The broadcast type indicated by the second indication information may include: scannable, connectable, unscannable, or disconnectable. Alternatively, the broadcast type may be a combination of the four types. If the first device determines that the broadcast type is a target type, the first device receives the extended broadcast frame. Further, the first device initiates a scanning request or a connection request based on the content of the extended broadcast frame. Further, the first device receives the scanning response frame or establishes a connection to the second device. If the first device determines that the broadcast type is not a target type, the first device does not receive the extended broadcast frame. Further, the first device does not initiate a scanning request or a connection request. Further, the first device does not receive the scanning response frame or does not establish a connection.
Optionally, the indication information may include the third indication information. If the third indication information indicates that the content of the scanning response frame does not change, the first device does not receive the extended broadcast frame. Further, the first device does not initiate a scanning request. Further, the first device does not receive the scanning response frame. If the third indication information indicates that the content of the content of the scanning response frame, the first device receives the extended broadcast frame. Further, the first device initiates a scanning request based on the content of the extended broadcast frame. Further, the first device receives the scanning response frame.
Optionally, the third indication information may be included in a frame header or a payload header of the extended request frame. The first device receives the basic broadcast frame, and receives the extended broadcast frame based on the content of the basic broadcast frame. If the third indication information included in the extended broadcast frame indicates that the content of the content of the scanning response frame, the first device initiates the scanning request based on the content of the extended broadcast frame. Further, the first device receives the scanning response frame. If the third indication information indicates that the content of the scanning response frame does not change, the first device does not initiate the scanning request, or the first device initiates the scanning request based on the content of the extended broadcast frame, and the first device does not receive the scanning response frame.
With reference to the first aspect, in some implementations of the first aspect, the indication information may include any two of the first indication information, the second indication information, and the third indication information.
Optionally, the indication information may include the first indication information and the second indication information. If the first device determines, based on the second indication information, that the broadcast type is not the target type, regardless of whether the content of the extended broadcast frame indicated by the first indication information changes, the first device does not receive the extended broadcast frame. Further, the first device does not initiate the scanning request or the connection request. Further, the first device does not receive the scanning response frame or does not establish the connection. If the first device determines, based on the second indication information, that the broadcast type is a target type, the first device determines, based on the first indication information, whether to receive the extended broadcast frame. If the first indication information indicates that the content of the extended broadcast frame changes, the first device receives the extended broadcast frame. If the first indication information indicates that the content of the extended broadcast frame does not change, the first device does not receive the extended broadcast frame. Further, the first device initiates the scanning request based on the content of the currently received extended broadcast frame or the content of the previously buffered extended broadcast frame (when the extended broadcast frame is not received this time, or the content of the extended broadcast frame is the same as the content of the previously received and buffered extended broadcast frame). Further, the first device receives the scanning response frame or establish the connection.
Optionally, the indication information may include the first indication information and the third indication information. If the first device determines, based on the third indication information, that the content of the scanning response frame does not change, regardless of whether the content of the extended broadcast frame indicated by the first indication information changes, the first device does not receive the extended broadcast frame. Further, the first device does not initiate the scanning request. Further, the first device does not receive the scanning response frame. If the first device determines, based on the third indication information, that the content of the content of the scanning response frame, the first device determines, based on the first indication information, whether to receive the extended broadcast frame. If the first indication information indicates that the content of the extended broadcast frame changes, the first device receives the extended broadcast frame. If the first indication information indicates that the content of the extended broadcast frame does not change, the first device does not receive the extended broadcast frame. Further, the first device initiates the scanning request based on the content of the currently received extended broadcast frame or the content of the previously buffered extended broadcast frame (when the extended broadcast frame is not received this time, or the content of the extended broadcast frame is the same as the content of the previously received and buffered extended broadcast frame). Further, the first device receives the scanning response frame.
Optionally, the indication information may include the second indication information and the third indication information. If the first device determines, based on the second indication information, that the broadcast type is not the target type, regardless of whether the content of the scanning response frame indicated by the third indication information changes, the first device does not receive the extended broadcast frame. Further, the first device does not initiate the scanning request. Further, the first device does not receive the scanning response frame. If the first device determines, based on the second indication information, that the broadcast type is the target type, the first device determines, based on the third indication information, whether to receive the extended broadcast frame. If the third indication information indicates that the content of the content of the scanning response frame, the first device receives the extended broadcast frame. Further, the first device initiates the scanning request based on the content of the extended broadcast frame. Further, the first device receives the scanning response frame. If the third indication information indicates that the content of the scanning response frame does not change, the first device does not receive the extended broadcast frame. Further, the first device does not initiate the scanning request. Further, the first device does not receive the scanning response frame.
Optionally, the third indication information may be included in the extended broadcast frame, and the first indication information may be included in the basic broadcast frame. If the first device determines, based on the first indication information, that the content of the extended broadcast frame changes, the first device receives the extended broadcast frame, and the first device receives the third indication information in the extended broadcast frame. If the third indication information indicates that the content of the scanning response frame, the first device initiates the scanning request. Further, the first device receives the scanning response frame. If the third indication information indicates that the scanning response frame does not change, the first device initiates the scanning request, and the first device does not receive the scanning response frame, or the first device does not initiate the scanning request. If the first device determines, based on the first indication information, that the content of the extended broadcast frame does not change, the first device does not receive the extended broadcast frame. Further, the first device initiates the scanning request based on the content of the buffered extended broadcast frame. Further, the first device receives the scanning response frame.
Optionally, the third indication information may be included in the extended broadcast frame, and the second indication information may be included in the basic broadcast frame. If the broadcast type indicated by the second indication information is a target type of the first device, the first device receives the extended broadcast frame, and receives the third indication information in the extended broadcast frame. If the third indication information indicates that the content of the scanning response frame, the first device initiates the scanning request. Further, the first device receives the scanning response frame. If the third indication information indicates that the scanning response frame does not change, the first device initiates the scanning request, and the first device does not receive the scanning response frame, or the first device does not initiate the scanning request. If the broadcast type indicated by the second indication information is not the target type of the first device, the first device does not receive the extended broadcast frame. Further, the first device does not initiate the scanning request. Further, the first device does not receive the scanning response frame.
With reference to the first aspect, in some implementations of the first aspect, the indication information may include the first indication information, the second indication information, and the third indication information.
Optionally, the three types of indication information are included in the basic broadcast frame. If the first device determines, based on the second indication information, that the broadcast type is not the target type, the first device does not receive the extended broadcast frame regardless of content indicated by the first indication information and the second indication information. Further, the first device does not initiate the scanning request. Further, the first device does not receive the scanning response. If the first device determines, based on the second indication information, that the broadcast type is the target type, the first device determines, based on the third indication information, whether to receive the extended broadcast frame. If the scanning response frame does not change, the first device does not receive the extended broadcast frame. Further, the first device does not initiate the scanning request. Further, the first device does not receive the scanning response. If the content of the scanning response frame, the first device determines, based on the first indication information, whether to receive the extended broadcast frame. If the content of the extended broadcast frame changes, the first device receives the extended broadcast frame. If the first indication information indicates that the content of the extended broadcast frame does not change, the first device does not receive the extended broadcast frame. Further, the first device initiates the scanning request based on the content of the currently received extended broadcast frame or the content of the previously buffered extended broadcast frame (when the extended broadcast frame is not received this time, or the content of the extended broadcast frame is the same as the content of the previously received and buffered extended broadcast frame). Further, the first device receives the scanning response frame.
Optionally, the first indication information and the second indication information may be included in the basic broadcast frame, and the third indication information may be included in the extended broadcast frame. The first device receives the basic broadcast frame, and determines, based on the second indication information, that the broadcast type is not the target type, and the first device does not receive the extended broadcast frame regardless of content indicated by the first indication information and the third indication information. Further, the scanning request is not initiated. Further, the scanning response is not received. If the first device determines, based on the second indication information, that the broadcast type is the target type, the first device determines, based on the first indication information, whether to receive the extended broadcast frame. If the first indication information indicates that the content of the extended broadcast frame does not change, the first device does not receive the extended broadcast frame. Correspondingly, the first device cannot receive the third indication information. The first device initiates the scanning request based on the content of the previously buffered extended broadcast frame (when the extended broadcast frame is not received this time, or the content of the extended broadcast frame is the same as the content of the previously received and buffered extended broadcast frame). Further, the first device receives the scanning response frame. If the first indication information indicates that the content of the extended broadcast frame changes, the first device receives the extended broadcast frame. Further, the first device receives the third indication information in the extended broadcast frame. If the third indication information indicates that the content of the content of the scanning response frame, the first device initiates the scanning request. Further, the first device receives the scanning response. If the third indication information indicates that the content of the scanning response frame does not change, the first device does not initiate the scanning request, or the first device initiates the scanning request but does not receive the scanning response frame.
According to a second aspect, a broadcast information processing communication method is provided, including: A second device sends a basic broadcast frame to a first device, where the basic broadcast frame includes indication information, the indication information needs to be parsed and obtained by the first device, and the indication information includes at least one of the following: first indication information, where the first indication information indicates whether content of an extended broadcast frame is changed; second indication information, where the second indication information indicates a broadcast type; third indication information, where the third indication information indicates whether content of a scanning response frame changes.
According to the broadcast information processing communication method provided in this application, the indication information is added to the basic broadcast frame sent by the second device to the first device, so that the first device determines, based on the indication information, whether to receive the extended broadcast frame or the scanning response frame. A flexible receiving method is provided, so that the first device determines, based on an actual situation, whether to receive subsequent broadcast content. Further, when the extended broadcast frame or the scanning response frame is not received, power consumption of the first device in a broadcast information processing process is reduced. In addition, the first device parses, at a physical layer, the indication information in a frame header of the basic broadcast frame, so that power consumption of the first device in a parsing process is reduced.
With reference to the second aspect, in some implementations of the second aspect, the indication information is included in a physical layer frame header of the basic broadcast frame or a physical layer payload header of the basic broadcast frame. The physical layer frame header of the basic broadcast frame may further include physical layer control information such as encoding and decoding of the basic broadcast frame and new transmission and old transmission indications. The physical layer payload header of the basic broadcast frame may further include higher layer control information of the basic broadcast frame, for example, one or more pieces of link-layer-related control information such as segmentation, reassembly, multiplexing, and a logical channel priority of a data link layer. The first device parses the physical layer frame header of the basic broadcast frame or the physical layer payload header of the basic broadcast frame, and obtains the indication information from the physical layer frame header of the basic broadcast frame or the physical layer payload header of the basic broadcast frame. The indication information is parsed in the physical layer frame header, so that power consumption of the first device in the parsing process is reduced.
According to a third aspect, a communication apparatus is provided, including units configured to perform steps of the communication method in the first aspect and the implementations of the first aspect.
In a design, the communication apparatus is a communication chip. The communication chip may include an input circuit or an interface configured to send information or data, and an output circuit or an interface configured to receive information or data.
In another design, the communication apparatus is a communication device (for example, a first device). A communication chip may include a transmitter configured to send information, and a receiver configured to receive information or data.
According to a fourth aspect, a communication apparatus is provided, including units configured to perform steps of the communication method in the second aspect and the implementations of the second aspect.
In a design, the communication apparatus is a communication chip. The communication chip may include an input circuit or an interface configured to send information or data, and an output circuit or an interface configured to receive information or data.
In another design, the communication apparatus is a communication device (for example, a second device). A communication chip may include a transmitter configured to send information, and a receiver configured to receive information or data.
According to a fifth aspect, a communication device is provided, including a processor and a memory, where the memory is configured to store a computer program, and the processor is configured to invoke and run the computer program from the memory, so that the communication device is enabled to perform the communication method in the first aspect or the second aspect, and the implementations of the first aspect or the second aspect.
Optionally, there may be one or more processors, and there may be one or more memories.
Optionally, the memory may be integrated with the processor, or the memory and the processor are separately disposed.
Optionally, the communication device further includes a transmitter (transmitting device) and a receiver (receiving device).
According to a sixth aspect, a computer program product is provided. The computer program product includes a computer program (which may also be referred to as code or an instruction).
When the computer program is run, a computer is enabled to perform the communication method in the first aspect or the second aspect, and the implementations of the first aspect or the second aspect.
According to a seventh aspect, a computer-readable medium is provided. The computer readable medium stores a computer program (which may also be referred to as code or an instruction).
When the computer program is run on a computer, the computer is enabled to perform the communication method in the first aspect or the second aspect, and the implementations of the first aspect or the second aspect.
According to an eighth aspect, a communication system is provided.
The system includes at least one of the apparatus according to any one of the implementations of the third aspect and the apparatus according to any one of the implementations of the fourth aspect.
According to a ninth aspect, a chip system is provided, including a memory and a processor.
The memory is configured to store a computer program, and the processor is configured to invoke the computer program from the memory and run the computer program, so that a communication device installed with the chip system is enabled to perform the communication method in the first aspect or the second aspect, and the implementations of the first aspect or the second aspect.
The chip system may include an input circuit or an interface configured to send information or data, and an output circuit or an interface configured to receive information or data.
The following describes the technical solutions of this application with reference to the accompanying drawings.
A communication method provided in embodiments of this application may be applied to a scenario in which signal transmission exists. In this scenario, a signal is transmitted between two communication ends. An end that sends the signal is a signal sending end, and an end that receives the signal is a signal receiving end. The signal sending end and the signal receiving end may dynamically change. For example, at a first moment, a communication end A sends a signal and serves as a signal sending end. At a second moment, the communication end A receives a signal and serves as a signal receiving end. In addition, a communication end may be both a signal sending end and a signal receiving end, and communicate with different communication ends.
In an example, when the wireless communication scenario shown in
In some deployments, the RAN device may include a central unit (CU) and a distributed unit (DU). In addition, the RAN device may further include a radio frequency unit (RU). The CU implements some functions of the RAN device, and the DU implements some functions of the RAN device. For example, the CU implements functions of a radio resource control (RRC) layer and a packet data convergence protocol (PDCP) layer, and the DU implements functions of a radio link control (RLC) layer, a media access control (MAC) layer, and a physical (PHY) layer. Information at the RRC layer eventually becomes information at the PHY layer, or is converted from information at the PHY layer. Therefore, in the architecture, higher layer signaling such as RRC layer signaling or PDCP layer signaling may also be considered as being sent by the DU or sent by the DU and the RU. It may be understood that the network device may be a CU node, a DU node, or a device including a CU node and a DU node. In addition, the CU may be classified as a network device in a RAN, or the CU may be classified as a network device in a core network (CN). This is not limited herein.
The terminal device may also be referred to as user equipment (UE), an access terminal, a subscriber unit, a subscriber station, a mobile station, a remote station, a remote terminal, a mobile device, a user terminal, a terminal, a wireless communication device, a user agent, or a user apparatus. The terminal device in embodiments of this application may be a mobile phone, a tablet computer (Pad), a computer with a wireless receiving and sending function, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal in industrial control, a wireless terminal of self-driving, a wireless terminal in telemedicine, a wireless terminal in a smart grid, a wireless terminal in transportation safety, a wireless terminal in a smart city, a smart wearable device (such as smart glasses, a smart watch, and a smart headset), a wireless terminal in a smart home, and the like, or may be a chip, a chip module (or a chip system), or the like that can be disposed in the foregoing device. An application scenario is not limited in embodiments of this application. A terminal device having a wireless transceiver function and a chip that may be disposed in the terminal device are collectively referred to as a terminal device in embodiments of this application.
In another example, when the wireless communication scenario shown in
In another example, when the wireless communication scenario shown in
Certainly, the foregoing examples of the primary node and the secondary node are merely examples, and this is not limited in this application. It should be noted that, when the wireless communication scenario shown in
The node in embodiments of this application may also be referred to as a communication node, a device (apparatus), a communication device (apparatus), or the like.
An example of a wireless short-range transmission protocol layer in embodiments of this application is shown in
The data link layer shields physical layer information from an upper-layer, such as a network and transport layer. The data link layer is configured to implement connection and communication between a primary node and a secondary node, and may provide functions such as resource management, access control, data segmentation, cascading, and a working mode to ensure reliable data transmission. In some implementations, the data link layer may be further divided into a media access layer and a link control layer.
Broadcast can be used for discovery, connection, and public data transmission between devices. When a device wants to be discovered or connected, the device may send a connectable broadcast message. The broadcast message may include a basic broadcast frame and an extended broadcast frame (or an extended data frame).
A receiver device receives the data frame from the physical channel, where the data frame may include the physical layer frame header and the payload. The data frame type may be obtained based on the payload header. For example, the data frame type may include a basic broadcast frame, an extended broadcast frame, or the like. Information such as a length of the payload may be further obtained. The payload is a PDU of an upper layer (the media access layer or the data link layer) of the physical layer. After removing the physical layer frame header, the physical layer entity delivers the payload to a data link layer entity or a media access layer entity for processing. The payload may include the payload header and the SDU. The payload header may include one or more fields. The data link layer entity or the media access layer entity may obtain related information of the SDU based on the payload header, and deliver the SDU to the upper layer of the media access layer or the data link layer for processing. The payload header of the basic broadcast frame may include an extended frame pointer AuxPtr field, to indicate to obtain a resource of an extended frame. For example, the obtaining a resource of an extended frame may include obtaining frequency, clock, and physical layer (PHY) information of the extended broadcast frame. The frequency may also include a channel number, a frequency number, or the like. The clock may include one or more of a time interval, a frame number, a slot number, and the like.
As shown in
Solutions in embodiments of this application may be used in short-range communication between two nodes, and supports broadcasting by a secondary node or a primary node with low power consumption. It is assumed that the secondary node is a broadcast sender, and the primary node is a broadcast receiver. The primary node determines, based on broadcast information sent by the secondary node, whether the secondary node is a device selected by the primary node. Further, the primary node may initiate a connection request or a scanning request. Further, the primary node may establish a connection to the secondary node, or the primary node receives a scanning response frame sent by the secondary node. After entering a connected state, when there is no resource, the secondary node may initiate a resource request to the primary node, and the primary node allocates a transmission resource. In embodiments of this application, the first device may be an example of the primary node, and the second device may be an example of the secondary node. Alternatively, resources may be allocated in a static or semi-static manner. A specific resource allocation manner is not limited in embodiments of this application.
The broadcast message is generated and sent by the broadcast sender, namely, the second device. A module for generating the broadcast message may be at a higher layer of the second device, or may be at a lower layer of the second device. The broadcast message is periodically sent through a broadcast channel or a data service channel. The broadcast message may include two parts: a basic broadcast frame and an extended broadcast frame (or an extended data frame), where the basic broadcast frame may be sequentially and repeatedly sent on one or more specified broadcast channels, and the extended broadcast frame may be sent on a data channel different from that of the basic broadcast frame. The basic broadcast frame may be a basic broadcast physical channel PDU, and the extended broadcast frame may alternatively be an extended broadcast physical channel PDU.
S510: A first device receives a basic broadcast frame sent by a second device.
It should be understood that the first device may be an example of a broadcast receiver, and the second device may be an example of a broadcast sender.
When the second device wants to be discovered or connected, the second device may send a connectable broadcast message. The first device may discover the second device by receiving the broadcast message, and initiate a connection request or a scanning request. Further, the first device establishes a connection to the second device, or the first device receives a scanning response frame sent by the second device. The broadcast message may include two parts: a basic broadcast frame and an extended broadcast frame (or an extended data frame), where the basic broadcast frame may be sequentially and repeatedly sent on one or more specified broadcast channels, and the extended broadcast frame may be sent on a data channel different from that of the basic broadcast frame. The first device may periodically receive the basic broadcast frame sent by the second device.
S520: The first device parses the basic broadcast frame to obtain indication information.
Specifically, the indication information is located in a physical layer frame header of the basic broadcast frame, and includes one or more bits. The physical layer frame header of the basic broadcast frame may further include physical layer control information such as encoding and decoding of the basic broadcast frame and new transmission and old transmission indications. A location of the indication information in the physical layer frame header is shown in
Specifically, the indication information may be located in a physical layer payload header of the basic broadcast frame, and includes one or more bits. The physical layer payload header of the basic broadcast frame may further include higher layer control information of the basic broadcast frame, for example, one or more pieces of link-layer-related control information such as segmentation, reassembly, multiplexing, and a logical channel priority of a data link layer. A location of the indication information in the physical layer payload header of the basic broadcast frame is shown in
A physical layer processing entity (or module) of the first device parses the physical layer frame header of the basic broadcast frame to obtain the indication information, or a higher layer processing entity (or module) of the first device parses the physical layer payload header of the basic broadcast frame to obtain the indication information.
Specifically, the indication information includes one or more of the following information.
First indication information indicates whether content of the extended broadcast frame changes. For example, the first indication information may include 1 bit, and 0 or 1 is used to indicate whether the content of the extended broadcast frame changes. An indication method is not limited in embodiments of this application.
Second indication information indicates a broadcast type. The broadcast type may include: scannable, connectable, unscannable, or disconnectable. As an example instead of a limitation, the broadcast type indicated by the second indication information may be indicated by using a bit in the second indication information. For example, 2 bits may be used to indicate the broadcast type, where 00 may indicate scannable and connectable, 01 may indicate scannable and disconnectable, 10 indicates unscannable and connectable, and 11 indicates unscannable and disconnectable. An indication method is not limited in embodiments of this application.
Third indication information indicates whether content of the content of the scanning response frame. For example, the third indication information may include 1 bit, and 0 or 1 is used to indicate whether the content of the extended broadcast frame changes. An indication method is not limited in embodiments of this application.
S530: The first device determines, based on the indication information, whether to receive the extended broadcast frame.
In some implementations, the indication information may include any one of the first indication information, the second indication information, and the third indication information.
In a possible implementation, the indication information may include the first indication information. If the first indication information indicates that the content of the extended broadcast frame changes, the first device receives the extended broadcast frame. If the first indication information indicates that the content of the extended broadcast frame does not change, the first device may not receive the extended broadcast frame. It should be noted that, the first device receives, at a previous time of current broadcast, an extended broadcast frame whose content is the same as that of the current extended broadcast frame, and the first device may buffer the extended broadcast frame or the first device may obtain scanning-related or connection-related information from the extended broadcast frame. If the content of the current extended broadcast frame does not change, the first device may not receive the current extended broadcast frame, and continue to use the buffered extended broadcast frame or the scanning-related or connection-related information in the buffered extended broadcast frame. It may be understood that, that the first device does not receive the extended broadcast frame may be that the first device does not receive the extended broadcast frame, or that the first device receives the extended broadcast frame but does not parse the extended broadcast frame. Correspondingly, a quantity of times that the first device receives the extended broadcast frame may be reduced, or a quantity of times that the first device parses the extended broadcast frame may be reduced, so that power consumption is reduced. Optionally, the first indication information may indicate that the content of the current extended broadcast frame remains unchanged compared with the content of the previous extended broadcast frame. Further, the first device may initiate the scanning request or the connection request based on the currently received extended broadcast frame, the previously buffered extended broadcast frame, or the scanning-related or connection-related information in the buffered extended broadcast frame, and further receive the scanning response frame or establish the connection. It should be noted that the first device may determine a location of a window of the scanning request or the connection request based on the content of the extended broadcast frame. Specifically, the first device may determine the location of the window of the scanning request or the connection request based on req-offset information and latency information in the extended broadcast frame.
In a possible implementation, the indication information may include the second indication information. The second indication information indicates the broadcast type. If the broadcast type is a target type of the first device, the first device receives the extended broadcast frame. Further, the scanning request or the connection request is initiated based on the content of the extended broadcast frame. Further, the scanning response frame is received, or the connection is established. If the broadcast type is not the target type of the first device, the first device may not receive the extended broadcast frame, and correspondingly, does not initiate the scanning request or the connection request, does not receive the scanning response frame, or does not establish the connection.
In a possible implementation, the indication information may include the third indication information. The third indication information indicates whether the content of the scanning response frame. If the third indication information indicates that the content of the scanning response frame does not change, the first device does not need to receive the scanning response frame. Correspondingly, the extended broadcast frame does not need to be received. Further, the scanning request is not initiated. Further, the scanning response frame is not received. If the third indication information indicates that the content of the content of the scanning response frame, the first device receives the extended broadcast frame. Further, the scanning request is initiated based on the content of the extended broadcast frame. Further, the scanning response frame is received.
In some embodiments, the third indication information may also be included in the physical layer frame header or the payload header of the extended broadcast frame. The first device receives the basic broadcast frame, parses the basic broadcast frame at the physical layer, and receives the extended broadcast frame based on content of the basic broadcast frame. Further, the first device parses the third indication information in the extended broadcast frame at the physical layer. If the third indication information included in the extended broadcast frame indicates that the content of the content of the scanning response frame, the first device initiates the scanning request based on the content of the extended broadcast frame. Further, the first device receives the scanning response frame. If the third indication information indicates that the content of the scanning response frame does not change, the first device does not initiate the scanning request, or the first device initiates the scanning request based on the content of the extended broadcast frame, and does not receive the scanning response frame.
In some implementations, the indication information may include any two of the first indication information, the second indication information, and the third indication information. It should be understood that, in some embodiments, there may be a priority relationship between the first indication information, the second indication information, and the third indication information. In embodiments of this application, the priority relationship may be that the second indication information is higher than the third indication information, and the third indication information is higher than the first indication information. In this embodiment of this application, the foregoing priority relationship is used as an example for description. It should be understood that the indication information may have priorities in another order, and any combination of priorities is applicable to this embodiment of this application. This is not limited in this embodiment of this application. It should be understood that the indication information may alternatively have no priority limitation. The first device determines, based on a requirement, whether to receive a subsequent broadcast message frame, whether to initiate scanning, or the like. This is not limited in embodiments of this application.
In a possible implementation, the indication information may include the first indication information and the second indication information. If the first device determines, based on the second indication information, that the broadcast type is not the target type, regardless of whether the content of the extended broadcast frame indicated by the first indication information changes, the first device does not receive the extended broadcast frame. Further, the first device does not initiate the scanning request or the connection request. Further, the first device does not receive the scanning response frame or does not establish the connection. If the first device determines, based on the second indication information, that the broadcast type is the target type, the first device further determines, based on the first indication information, whether to receive the extended broadcast frame. If the first indication information indicates that the content of the extended broadcast frame changes, the first device receives the extended broadcast frame. If the first indication information indicates that the content of the extended broadcast frame does not change, the first device does not receive the extended broadcast frame. Further, the first device initiates the scanning request or the connection request based on content information of the currently received extended broadcast frame or the previously buffered extended broadcast frame. Further, the first device receives the scanning response frame sent by the second device, or the first device establishes the connection to the second device.
In a possible implementation, the indication information may include the first indication information and the third indication information. If the first device determines, based on the third indication information, that the content of the scanning response frame does not change, regardless of whether the content of the extended broadcast frame indicated by the first indication information changes, the first device does not receive the extended broadcast frame. Further, the first device does not initiate the scanning request. Further, the first device does not receive the scanning response frame. If the first device determines, based on the third indication information, that the content of the content of the scanning response frame, the first device determines, based on the first indication information, whether to receive the extended broadcast frame. If the first indication information indicates that the content of the extended broadcast frame changes, the first device receives the extended broadcast frame. If the first indication information indicates that the content of the extended broadcast frame does not change, the first device does not receive the extended broadcast frame. Further, the first device initiates the scanning request based on the content of the currently received extended broadcast frame or the content of the previously buffered extended broadcast frame. Further, the first device receives the scanning response frame sent by the second device.
In a possible implementation, the indication information may include the second indication information and the third indication information. If the first device determines, based on the second indication information, that the broadcast type is not the target type, regardless of whether the content of the scanning response frame indicated by the third indication information changes, the first device does not receive the extended broadcast frame. Further, the first device does not initiate the scanning request. Further, the first device does not receive the scanning response frame. If the first device determines, based on the second indication information, that the broadcast type is the target type, the first device determines, based on the third indication information, whether to receive the extended broadcast frame. If the third indication information indicates that the content of the content of the scanning response frame, the first device receives the extended broadcast frame. Further, the first device initiates the scanning request based on the content of the extended broadcast frame. Further, the scanning response frame is received. If the third indication information indicates that the content of the scanning response frame does not change, the first device does not receive the extended broadcast frame. Further, the first device does not initiate the scanning request. Further, the first device does not receive the scanning response frame.
In some embodiments, there may be two types of indication information. The third indication information is included in the extended broadcast frame, and the first indication information is included in the basic broadcast frame. In other words, the third indication information can be parsed only after the extended broadcast frame is received. If the extended broadcast frame is not received, it is equivalent that there is no third indication information. If the first device determines, based on the first indication information, that the content of the extended broadcast frame changes, the first device receives the extended broadcast frame, and the first device receives the third indication information in the extended broadcast frame. If the third indication information indicates that the content of the scanning response frame, the first device initiates the scanning request. Further, the first device receives the scanning response frame. If the third indication information indicates that the scanning response frame does not change, the first device initiates the scanning request, and the first device does not receive the scanning response frame, or the first device does not initiate the scanning request. If the first device determines, based on the first indication information, that the content of the extended broadcast frame does not change, the first device does not receive the extended broadcast frame. Further, the first device initiates the scanning request based on the content of the buffered extended broadcast frame. Further, the first device receives the scanning response frame.
In some embodiments, there are two types of indication information. The third indication information is included in the extended broadcast frame, and the second indication information is included in the basic broadcast frame. If the broadcast type indicated by the second indication information is a target type of the first device, the first device receives the extended broadcast frame, and receives the third indication information in the extended broadcast frame. If the third indication information indicates that the content of the scanning response frame, the first device initiates the scanning request. Further, the first device receives the scanning response frame. If the third indication information indicates that the scanning response frame does not change, the first device initiates the scanning request, and does not receive the scanning response frame, or the first device does not initiate the scanning request. If the broadcast type indicated by the second indication information is not the target type of the first device, the first device does not receive the extended broadcast frame. Further, the first device does not initiate the scanning request. Further, the first device does not receive the scanning response frame.
In some implementations, the indication information may include the first indication information, the second indication information, and the third indication information. There is a priority relationship between the first indication information, the second indication information, and the third indication information. In embodiments of this application, the priority relationship may be that the second indication information is higher than the third indication information, and the third indication information is higher than the first indication information. In this embodiment of this application, the foregoing priority relationship is used as an example for description. It should be understood that the indication information may have priorities in another order, and any combination of priorities is applicable to this embodiment of this application. This is not limited in this embodiment of this application. It should be understood that the indication information may alternatively have no priority limitation. The first device determines, based on a requirement, whether to receive a subsequent broadcast message frame, whether to initiate scanning, or the like. This is not limited in embodiments of this application.
Specifically, the indication information may be included in the basic broadcast frame. If the first device determines, based on the second indication information, that the broadcast type is not the target type, the first device does not receive the extended broadcast frame regardless of content indicated by the first indication information and the second indication information. Further, the scanning request is not initiated. Further, the scanning response is not received. If the first device determines, based on the second indication information, that the broadcast type is the target type. Further, the first device determines, based on the third indication information, whether to receive the extended broadcast frame. If the third indication information indicates that the scanning response frame does not change, the first device does not receive the extended broadcast frame. Further, the scanning request is not initiated. Further, the scanning response is not received. If the third indication information indicates that the content of the scanning response frame, further, the first device determines, based on the first indication information, whether to receive the extended broadcast frame. If the first indication information indicates that the content of the extended broadcast frame changes, the first device receives the extended broadcast frame. If the first indication information indicates that the content of the extended broadcast frame does not change, the first device does not receive the extended broadcast frame. Further, the first device initiates the scanning request based on the content of the currently received extended broadcast frame or the content of the previously buffered extended broadcast frame. Further, the scanning response frame is received.
In some embodiments, the first indication information and the second indication information may be included in the basic broadcast frame, and the third indication information may be included in the extended broadcast frame. The first device receives the basic broadcast frame, and determines, based on the second indication information, that the broadcast type is not the target type, and the first device does not receive the extended broadcast frame regardless of content indicated by the first indication information and the third indication information. Further, the scanning request is not initiated. Further, the scanning response is not received. If the first device determines, based on the second indication information, that the broadcast type is the target type, further, the first device determines, based on the first indication information, whether to receive the extended broadcast frame. If the first indication information indicates that the content of the extended broadcast frame does not change, the first device does not receive the extended broadcast frame. Correspondingly, the first device cannot receive the third indication information. The first device initiates the scanning request based on the content of the previously buffered extended broadcast frame. Further, the scanning response frame is received. If the first indication information indicates that the content of the extended broadcast frame changes, the first device receives the extended broadcast frame. Further, the first device receives the third indication information in the extended broadcast frame. If the third indication information indicates that the content of the content of the scanning response frame, the first device initiates the scanning request. Further, the first device receives the scanning response frame. If the third indication information indicates that the content of the scanning response frame does not change, the first device does not initiate the scanning request, or the first device initiates the scanning request but does not receive the scanning response frame.
According to the broadcast information processing method provided in embodiments of this application, the indication information is added to the basic broadcast frame sent by the second device to the first device, so that the first device determines, based on the indication information, whether to receive the extended broadcast frame or the scanning response frame. A flexible receiving method is embodiment provided, so that the first device determines, based on an actual situation, whether to receive subsequent broadcast content. Further, when the extended broadcast frame or the scanning response frame is not received, power consumption of the first device in a broadcast information processing process is reduced.
S810: A first device receives a basic broadcast frame sent by a second device.
It should be understood that the first device is an example of a broadcast receiver, and the second device is an example of a broadcast sender.
When the second device wants to be discovered or connected, the second device may send a connectable broadcast message. The first device may discover the second device by receiving the broadcast message, and initiate a connection request or a scanning request. Further, the first device establishes a connection to the second device, or the first device receives a scanning response frame sent by the second device. The broadcast message may include two parts: a basic broadcast frame and an extended broadcast frame (or an extended data frame), where the basic broadcast frame may be sequentially and repeatedly sent on one or more specified broadcast channels, and the extended broadcast frame may be sent on a data channel different from that of the basic broadcast frame. The first device may periodically receive the basic broadcast frame sent by the second device.
S820: The first device parses the basic broadcast frame to obtain first indication information.
Specifically, the first indication information is located in a physical layer frame header of the basic broadcast frame, and includes one or more bits. The physical layer frame header of the basic broadcast frame may further include physical layer control information such as encoding and decoding of the basic broadcast frame and new transmission and old transmission indications. A location of the first indication information in the physical layer frame header is shown in
Specifically, the first indication information is located in a physical layer payload header of the basic broadcast frame, and includes one or more bits. The physical layer payload header of the basic broadcast frame may further include higher layer control information of the basic broadcast frame, for example, one or more pieces of link-layer-related control information such as segmentation, reassembly, multiplexing, and a logical channel priority of a data link layer. A location of the first indication information in the physical layer payload header of the basic broadcast frame is shown in
A physical layer processing entity (or module) of the first device parses the physical layer frame header of the basic broadcast frame to obtain the first indication information, or a higher layer processing entity (or module) of the first device parses the physical layer payload header of the basic broadcast frame to obtain the first indication information.
Specifically, the first indication information indicates whether content of the extended broadcast frame changes. For example, the first indication information may include 1 bit, and 0 or 1 is used to indicate whether the content of the extended broadcast frame changes. An indication method is not limited in embodiments of this application.
In some embodiments, the first indication information indicates that the content of the extended broadcast frame changes. Optionally, the first indication information may indicate that the content of the extended broadcast frame changes compared with a previous broadcast.
In some embodiments, the first indication information indicates that the content of the extended broadcast frame does not change. Optionally, the first indication information may indicate that the content of the extended broadcast frame does not change compared with a previous broadcast.
S830: The first device determines, based on the first indication information, whether to receive the extended broadcast frame.
Specifically, the first device receives the basic broadcast frame, and further obtains, through parsing, the first indication information in the physical layer frame header of the basic broadcast frame or the physical layer payload header of the basic broadcast frame.
In some embodiments, the first indication information indicates that the content of the extended broadcast frame changes. Specifically, a meaning of that the content of the extended broadcast frame changes is similar to that of step S820. The first device receives, based on the first indication information, the extended broadcast frame.
In some embodiments, the first indication information indicates that the content of the extended broadcast frame does not change. Specifically, a meaning of that the content of the extended broadcast frame does not change is similar to step S820. Correspondingly, the content of the extended broadcast frame does not change, and the first device buffers the content of the extended broadcast frame. In a possible implementation, the first device receives, in the previous broadcast, an extended broadcast frame whose content is consistent with the content of the extended broadcast frame. Therefore, the first device buffers the content of the extended broadcast frame. The first device does not receive, based on the first indication information, the extended broadcast frame, so that power consumption of the first device can be reduced.
S840: The first device initiates a scanning request or a connection request.
Specifically, the first device determines a start location of a window of the scanning request or the connection request based on the content of the extended broadcast frame that is currently received or previously buffered, and initiates the scanning request or the connection request to the second device at the location.
It should be noted that a broadcast type may be classified into scannable, connectable, unscannable, and disconnectable. In a possible implementation, there are at least the following possible broadcast types: connectable and scannable, connectable and unscannable, disconnectable and scannable, and disconnectable and unscannable.
S850: The first device receives a scanning response from or establishes a connection to the second device.
It should be noted that in step S840, if the first device initiates the connection request, the second device establishes the connection to the first device. If the first device initiates the scanning request, the second device sends the scanning response frame to the first device. The scanning response frame includes more information.
In some embodiments, the first device may receive other indication information, and the first device determines a receiving status of a subsequent broadcast message frame based on the first indication information and the other indication information. The broadcast message frame may include an extended broadcast frame, a scanning response frame, and the like. For detailed descriptions, refer to the method 500.
According to the method provided in this embodiment of this application, the second device adds the first indication information to the frame header or the payload of the basic broadcast frame, so that the first device can learn whether the content of the extended broadcast frame changes from content previously received by the first device, to determine whether the extended broadcast frame needs to be received. A flexible broadcast information processing method is provided. When the content does not change, the first device does not need to receive the extended broadcast frame, so that power consumption of the first device is reduced.
S910: A first device receives a basic broadcast frame sent by a second device.
It should be understood that the first device is an example of a broadcast receiver, and the second device is an example of a broadcast sender.
When the second device wants to be discovered or connected, the second device may send a connectable broadcast message. The first device may discover the second device by receiving the broadcast message, and initiate a connection request or a scanning request. Further, the first device establishes a connection to the second device, or the first device receives a scanning response frame sent by the second device. The broadcast message may include two parts: a basic broadcast frame and an extended broadcast frame (or an extended data frame), where the basic broadcast frame may be sequentially and repeatedly sent on one or more specified broadcast channels, and the extended broadcast frame may be sent on a data channel different from that of the basic broadcast frame. The first device may periodically receive the basic broadcast frame sent by the second device.
S920: The first device parses the basic broadcast frame to obtain second indication information.
Specifically, the second indication information is located in a physical layer frame header of the basic broadcast frame, and includes one or more bits. The physical layer frame header of the basic broadcast frame may further include physical layer control information such as encoding and decoding of the basic broadcast frame and new transmission and old transmission indications. A location of the second indication information in the physical layer frame header is shown in
Specifically, the second indication information is located in a physical layer payload header of the basic broadcast frame, and includes one or more bits. The physical layer payload header of the basic broadcast frame may further include higher layer control information of the basic broadcast frame, for example, one or more pieces of link-layer-related control information such as segmentation, reassembly, multiplexing, and a logical channel priority of a data link layer. A location of the second indication information in the physical layer payload header of the basic broadcast frame is shown in
A physical layer processing entity (or module) of the first device parses the physical layer frame header of the basic broadcast frame to obtain the second indication information, or a higher layer processing entity (or module) of the first device parses the physical layer payload header of the basic broadcast frame to obtain the second indication information.
The second indication information indicates a broadcast type. The broadcast type may include: scannable, connectable, unscannable, or disconnectable. Optionally, the type may be indicated by using 2 bits. In an example, 00 may indicate scannable and connectable, 01 may indicate scannable and disconnectable, 10 indicates unscannable and connectable, and 11 indicates unscannable and disconnectable. An indication method is not limited in embodiments of this application.
S930: The first device determines, based on the second indication information, whether to receive the extended broadcast frame.
Specifically, the first device receives the basic broadcast frame, and further parses the second indication information in the physical layer frame header of the basic broadcast frame or the physical layer payload header of the basic broadcast frame.
The first device determines, based on the second indication information, whether the broadcast type is a target type. If the broadcast type is the target type of the first device, the first device receives the extended broadcast frame. If the broadcast type is not the target type of the first device, optionally, the first device does not receive the extended broadcast frame. Optionally, the first device may receive the extended broadcast frame, but step S940 and step S950 are not performed.
S940: The first device initiates a scanning request or a connection request.
It should be noted that this step is optional. The first device determines that the broadcast type is the target type, receives the extended broadcast frame, and initiates the scanning request or the connection request to the second device.
S950: The first device receives a scanning response from or establishes a connection to the second device.
It should be noted that this step is optional, and this step exists only when S940 exists. In step S940, if the first device initiates the connection request, the second device establishes the connection to the first device. If the first device initiates the scanning request, the second device sends the scanning response frame to the first device. The scanning response frame includes more information.
In some embodiments, the first device may receive other indication information, and the first device determines a receiving status of a subsequent broadcast message frame based on the second indication information and the other indication information. For detailed descriptions, refer to the method 500.
According to the method provided in this embodiment of this application, the second indication information is added to the frame header or the payload of the basic broadcast frame, so that the first device can learn the broadcast type in advance, to determine whether the broadcast type is the target type, and determine whether the extended broadcast frame needs to be received and a subsequent communication procedure needs to be performed. A flexible broadcast information processing method is provided. If the extended broadcast frame is not received, power consumption of the first device can be reduced.
S1010: A first device receives a basic broadcast frame sent by a second device.
It should be understood that the first device is an example of a broadcast receiver, and the second device is an example of a broadcast sender.
When the second device wants to be discovered or connected, the second device may send a connectable broadcast message. The first device may discover the second device by receiving the broadcast message, and initiate a connection request or a scanning request. Further, the first device establishes a connection to the second device, or the first device receives a scanning response frame sent by the second device. The broadcast message may include two parts: a basic broadcast frame and an extended broadcast frame (or an extended data frame), where the basic broadcast frame may be sequentially and repeatedly sent on one or more specified broadcast channels, and the extended broadcast frame may be sent on a data channel different from that of the basic broadcast frame. The first device may periodically receive the basic broadcast frame sent by the second device.
S1020: The first device parses the basic broadcast frame to obtain third indication information.
Specifically, the third indication information is located in a physical layer frame header of the basic broadcast frame, and includes one or more bits. The physical layer frame header of the basic broadcast frame may further include physical layer control information such as encoding and decoding of the basic broadcast frame and new transmission and old transmission indications. A location of the third indication information in the physical layer frame header is shown in
Specifically, the third indication information is located in a physical layer payload header of the basic broadcast frame, and includes one or more bits. The physical layer payload header of the basic broadcast frame may further include higher layer control information of the basic broadcast frame, for example, one or more pieces of link-layer-related control information such as segmentation, reassembly, multiplexing, and a logical channel priority of a data link layer. A location of the third indication information in the payload header of the basic broadcast frame is shown in
A physical layer processing entity (or module) of the first device parses the physical layer frame header of the basic broadcast frame to obtain the third indication information, or a higher layer processing entity (or module) of the first device parses the physical layer payload header of the basic broadcast frame to obtain the third indication information.
Specifically, the third indication information indicates whether content of the extended broadcast frame changes. For example, the third indication information may include 1 bit, and 0 or 1 is used to indicate whether the content of the extended broadcast frame changes. An indication method is not limited in embodiments of this application.
S1030: The first device determines, based on the third indication information, whether to receive the extended broadcast frame.
It should be noted that, if the first device determines, based on the third indication information, that content of the scanning response frame does not change, the first device does not need to receive the extended broadcast frame, and does not need to initiate a subsequent procedure. If the first device determines, based on the third indication information, that the content of the content of the scanning response frame, the first device receives the extended broadcast frame.
S1040: The first device initiates a scanning request.
It should be noted that this step is optional. If the first device determines, based on the third indication information, that the content of the scanning response frame does not change, the first device does not perform a subsequent procedure. The first device does not receive the extended broadcast frame, and does not initiate the scanning request. If the first device determines, based on the third indication information, that the content of the content of the scanning response frame, the first device determines that the scanning response frame needs to be received. Correspondingly, the first device needs to receive the extended broadcast frame, and initiates the scanning request based on the content of the extended broadcast frame and content of the basic broadcast frame.
S1050: The first device receives the scanning response frame.
It should be noted that this step is based on step S1040. After initiating the scanning request, the first device receives the scanning response frame.
In some embodiments, the third indication information is included in the frame header or the payload header of the extended broadcast frame. In this embodiment, the first device receives the basic broadcast frame, receives the extended broadcast frame based on the content of the basic broadcast frame, and parses the extended broadcast frame to obtain the third indication information. If the third indication information indicates that the content of the content of the scanning response frame, the first device initiates the scanning request, and receives the scanning response frame from the second device. If the third indication information indicates that the content of the scanning response frame does not change, the first device does not initiate the scanning request, or the first device initiates the scanning request but does not receive the scanning response frame.
In some embodiments, the first device may receive other indication information, and the first device determines a receiving status of a subsequent broadcast message frame based on the third indication information and the other indication information. For detailed descriptions, refer to the method 500.
According to the method provided in this embodiment of this application, the third indication information is added to the frame header or the payload of the basic broadcast frame or the extended broadcast frame, so that the first device can determine whether the content of the content of the scanning response frame, and determine, based on the third indication information, whether to receive a subsequent broadcast message. A flexible broadcast information processing method is provided. If the extended broadcast frame or the scanning response frame is not received, power consumption of the first device can be reduced.
In some embodiments, the communication apparatus 1100 may be the first device in the foregoing method embodiment 500, or may be a chip configured to implement a function of the first device in the foregoing method embodiment. It should be understood that the communication apparatus 1100 may correspond to steps corresponding to the first device in the method 500 in embodiments of this application. The communication apparatus 1100 includes: a transceiver unit 1110, configured to receive a basic broadcast frame sent by a second device; and a processing unit 1120, configured to parse the basic broadcast frame to obtain indication information.
It should be understood that the communication apparatus may be an example of a broadcast receiver, and the second device may be an example of a broadcast sender.
When the second device wants to be discovered or connected, the second device may send a connectable broadcast message. The transceiver unit 1110 may discover the second device by receiving the broadcast message, and initiate a connection request or a scanning request. Further, the processing unit 1120 establishes a connection to the second device, or the transceiver unit 1110 receives a scanning response frame sent by the second device. The broadcast message may include two parts: a basic broadcast frame and an extended broadcast frame (or an extended data frame), where the basic broadcast frame may be sequentially and repeatedly sent on one or more specified broadcast channels, and the extended broadcast frame may be sent on a data channel different from that of the basic broadcast frame. The transceiver unit 1110 may periodically receive the basic broadcast frame sent by the second device.
Specifically, the indication information is located in a physical layer frame header of the basic broadcast frame, and includes one or more bits. The physical layer frame header of the basic broadcast frame may further include physical layer control information such as encoding and decoding of the basic broadcast frame and new transmission and old transmission indications. A location of the indication information in the physical layer frame header is shown in
Specifically, the indication information is located in a physical layer payload header of the basic broadcast frame, and includes one or more bits. The physical layer payload header of the basic broadcast frame may further include higher layer control information of the basic broadcast frame, for example, one or more pieces of link-layer-related control information such as segmentation, reassembly, multiplexing, and a logical channel priority of a data link layer. A location of the indication information in the payload header of the basic broadcast frame is shown in
A physical layer processing entity (or module) of the processing unit 1120 parses the basic broadcast frame to obtain the indication information, or a higher layer processing entity (or module) of the processing unit 1120 parses the basic broadcast frame to obtain the indication information.
Specifically, the indication information includes at least one of the following information.
First indication information indicates whether content of the extended broadcast frame changes. For example, the first indication information may include 1 bit, and 0 or 1 is used to indicate whether the content of the extended broadcast frame changes. An indication method is not limited in embodiments of this application.
Second indication information indicates a broadcast type. The broadcast type may include: scannable, connectable, unscannable, or disconnectable. As an example instead of a limitation, the broadcast type indicated by the second indication information may be indicated by using a bit in the second indication information. For example, 2 bits may be used to indicate the broadcast type, where 00 may indicate scannable and connectable, 01 may indicate scannable and disconnectable, 10 indicates unscannable and connectable, and 11 indicates unscannable and disconnectable. An indication method is not limited in embodiments of this application.
Third indication information indicates whether content of the content of the scanning response frame. For example, the third indication information may include 1 bit, and 0 or 1 is used to indicate whether the content of the extended broadcast frame changes. An indication method is not limited in embodiments of this application.
The processing unit 1120 is further configured to determine, based on the indication information, whether to receive the extended broadcast frame.
In some implementations, the indication information may include any one of the first indication information, the second indication information, and the third indication information.
In a possible implementation, the indication information may include the first indication information. If the first indication information indicates that the content of the extended broadcast frame changes, the transceiver unit 1110 receives the extended broadcast frame. If the first indication information indicates that the content of the extended broadcast frame does not change, the transceiver unit 1110 does not receive the extended broadcast frame. It should be noted that the transceiver unit 1110 receives, at a previous time of current broadcast, an extended broadcast frame whose content is the same as that of the current extended broadcast frame, and the processing unit 1120 buffers the content of the extended broadcast frame. Therefore, if the content of the current extended broadcast frame does not change, the transceiver unit 1110 may not receive the current extended broadcast frame, and perform a subsequent procedure based on the content of the buffered extended broadcast frame, so that power consumption is saved. Optionally, the first indication information may indicate that the content of the current extended broadcast frame remains unchanged compared with the content of the previous extended broadcast frame. Further, the processing unit 1120 initiates the scanning request or the connection request based on the content of the currently received extended broadcast frame or the previously buffered extended broadcast frame and content of the basic broadcast frame. Further, the scanning response frame is received or the connection is established. It should be noted that the processing unit 1120 determines a location of a window of the scanning request or the connection request based on the content of the extended broadcast frame and the content of the basic broadcast frame. Specifically, the processing unit 1120 determines the location of the window based on req-offset information and latency information of the extended broadcast frame and information in the basic broadcast frame.
In a possible implementation, the indication information may include the second indication information, and the second indication information indicates the broadcast type. If the processing unit 1120 determines that the broadcast type is a target type, the transceiver unit 1110 receives the extended broadcast frame. Further, the scanning request or the connection request is initiated based on the content of the extended broadcast frame. Further, the scanning response frame is received or the connection is established. If the processing unit 1120 determines that the broadcast type is not the target type, the transceiver unit 1110 may not receive the extended broadcast frame. Correspondingly, the scanning request or the connection request is not initiated, the scanning response frame is not received, or the connection is not established.
In a possible implementation, the indication information includes the third indication information. The third indication information indicates whether the content of the scanning response frame. If the third indication information indicates that the content of the scanning response frame does not change, the transceiver unit 1110 does not need to receive the scanning response frame. Correspondingly, the extended broadcast frame does not need to be received. Further, the scanning request is not initiated. Further, the scanning response frame is not received. If the third indication information indicates that the content of the content of the scanning response frame, the transceiver unit 1110 receives the extended broadcast frame. Further, the scanning request is initiated based on the content of the extended broadcast frame. Further, the scanning response frame is received.
In some embodiments, the third indication information may be included in the physical layer frame header or the payload header of the extended broadcast frame. The transceiver unit 1110 receives the basic broadcast frame, receives the extended broadcast frame based on the content of the basic broadcast frame according to a communication procedure, and further parses the third indication information in the extended broadcast frame at the physical layer. If the third indication information included in the extended broadcast frame indicates that the content of the content of the scanning response frame, the transceiver unit 1110 initiates the scanning request based on the content of the extended broadcast frame. Further, the transceiver unit 1110 receives the scanning response frame. If the third indication information indicates that the content of the scanning response frame does not change, the processing unit 1120 does not initiate the scanning request, or the processing unit 1120 initiates the scanning request based on the content of the basic broadcast frame and the content of the extended broadcast frame. The scanning response frame is not received.
In some implementations, the indication information may include any two of the first indication information, the second indication information, and the third indication information. There is a priority relationship between the first indication information, the second indication information, and the third indication information. In embodiments of this application, the priority relationship may be that the second indication information is higher than the third indication information, and the third indication information is higher than the first indication information. In this embodiment of this application, the foregoing priority relationship is used as an example for description. It should be understood that the indication information may have priorities in another order, and any combination of priorities is applicable to this embodiment of this application. This is not limited in this embodiment of this application.
In a possible implementation, the indication information may include the first indication information and the second indication information. If the processing unit 1120 determines, based on the second indication information, that the broadcast type is not the target type, regardless of whether the content of the extended broadcast frame indicated by the first indication information changes, the transceiver unit 1110 does not receive the extended broadcast frame. Further, the processing unit 1120 does not initiate the scanning request or the connection request. Further, the transceiver unit 1110 does not receive the scanning response frame or does not establish the connection. If the processing unit 1120 determines, based on the second indication information, that the broadcast type is the target type, the processing unit 1120 determines, based on the first indication information, whether to receive the extended broadcast frame. If the first indication information indicates that the content of the extended broadcast frame changes, the transceiver unit 1110 receives the extended broadcast frame. If the first indication information indicates that the content of the extended broadcast frame does not change, the transceiver unit 1110 does not receive the extended broadcast frame. Further, the processing unit 1120 initiates the scanning request or the connection request based on the content of the currently received extended broadcast frame or the previously buffered extended broadcast frame. Further, the scanning response frame is received or the connection is established.
In a possible implementation, the indication information may include the first indication information and the third indication information. If the processing unit 1120 determines, based on the third indication information, that the content of the scanning response frame does not change, regardless of whether the content of the extended broadcast frame indicated by the first indication information changes, the transceiver unit 1110 does not receive the extended broadcast frame. Further, the processing unit 1120 does not initiate the scanning request. Further, the transceiver unit 1110 does not receive the scanning response frame. If the processing unit 1120 determines, based on the third indication information, that the content of the content of the scanning response frame, the processing unit 1120 determines, based on the first indication information, whether to receive the extended broadcast frame. If the first indication information indicates that the content of the extended broadcast frame changes, the transceiver unit 1110 receives the extended broadcast frame. If the first indication information indicates that the content of the extended broadcast frame does not change, the transceiver unit 1110 does not receive the extended broadcast frame. Further, the processing unit 1120 initiates the scanning request based on the content of the currently received extended broadcast frame or the previously buffered extended broadcast frame and the content of the basic broadcast frame. Further, the scanning response frame is received.
In a possible implementation, the indication information may include the second indication information and the third indication information. If the first device determines, based on the second indication information, that the broadcast type is not the target type, regardless of whether the content of the scanning response frame indicated by the third indication information changes, the transceiver unit 1110 does not receive the extended broadcast frame. Further, the processing unit 1120 does not initiate the scanning request. Further, the transceiver unit 1110 does not receive the scanning response frame. If the processing unit 1120 determines, based on the second indication information, that the broadcast type is the target type, the processing unit 1120 determines, based on the third indication information, whether to receive the extended broadcast frame. If the third indication information indicates that the content of the content of the scanning response frame, the transceiver unit 1110 receives the extended broadcast frame. Further, the scanning request is initiated based on the content of the extended broadcast frame. Further, the scanning response frame is received. If the third indication information indicates that the content of the scanning response frame does not change, the transceiver unit 1110 does not receive the extended broadcast frame. Further, the scanning request is not initiated. Further, the scanning response frame is not received.
In some embodiments, there may be two types of indication information. The third indication information may be included in the extended broadcast frame, and the first indication information is included in the basic broadcast frame. In other words, the third indication information can be parsed only after the extended broadcast frame is received. If the extended broadcast frame is not received, it is equivalent that there is no third indication information. If the processing unit 1120 determines, based on the first indication information, that the content of the extended broadcast frame changes, the processing unit 1120 receives the extended broadcast frame, and receives the third indication information in the extended broadcast frame. If the third indication information indicates that the content of the scanning response frame, the processing unit 1120 initiates the scanning request. Further, the scanning response frame is received. If the third indication information indicates that the scanning response frame does not change, the processing unit 1120 initiates the scanning request, and the scanning response frame is not received, or the processing unit 1120 does not initiate the scanning request. If the processing unit 1120 determines, based on the first indication information, that the content of the extended broadcast frame does not change, the extended broadcast frame is not received. Further, the scanning request is initiated based on the content of the basic broadcast frame and the content of the buffered extended broadcast frame. Further, the scanning response frame is received.
In some embodiments, there may be two types of indication information. The third indication information may be included in the extended broadcast frame, and the second indication information is included in the basic broadcast frame. If the broadcast type indicated by the second indication information is the target type of the processing unit 1120, the transceiver unit 1110 receives the extended broadcast frame, and receives the third indication information in the extended broadcast frame. If the third indication information indicates that the content of the scanning response frame, the processing unit 1120 initiates the scanning request. Further, the scanning response frame is received. If the third indication information indicates that the scanning response frame does not change, the processing unit 1120 initiates the scanning request, and does not receive the scanning response frame, or the processing unit 1120 does not initiate the scanning request. If the broadcast type indicated by the second indication information is not the target type of the processing unit 1120, the transceiver unit 1110 does not receive the extended broadcast frame. Further, the scanning request is not initiated. Further, the scanning response frame is not received.
In some implementations, the indication information may include the first indication information, the second indication information, and the third indication information. There is a priority relationship between the first indication information, the second indication information, and the third indication information. In embodiments of this application, the priority relationship may be that the second indication information is higher than the third indication information, and the third indication information is higher than the first indication information. In this embodiment of this application, the foregoing priority is e used as an example for description. It should be understood that the indication information may have priorities in another order, and any combination of priorities is applicable to this embodiment of this application. This is not limited in this embodiment of this application.
Specifically, the three types of indication information may be included in the basic broadcast frame. If the processing unit 1120 determines, based on the second indication information, that the broadcast type is not the target type, the transceiver unit 1110 does not receive the extended broadcast frame regardless of content indicated by the first indication information and the second indication information. Further, the scanning request is not initiated. Further, the scanning response is not received. If the processing unit 1120 determines, based on the second indication information, that the broadcast type is the target type. Further, the processing unit 1120 determines, based on the third indication information, whether to receive the extended broadcast frame. If the third indication information indicates that the scanning response frame does not change, the transceiver unit 1110 does not receive the extended broadcast frame. Further, the scanning request is not initiated. Further, the scanning response is not received. If the third indication information indicates that the content of the scanning response frame, the processing unit 1120 further determines, based on the first indication information, whether to receive the extended broadcast frame. If the first indication information indicates that the content of the extended broadcast frame changes, the transceiver unit 1110 receives the extended broadcast frame. If the first indication information indicates that the content of the extended broadcast frame does not change, the transceiver unit 1110 does not receive the extended broadcast frame. Further, the processing unit 1120 initiates the scanning request based on the content of the currently received extended broadcast frame or the previously buffered extended broadcast frame and the content of the basic broadcast frame. Further, the scanning response frame is received.
In some embodiments, the first indication information and the second indication information may be included in the basic broadcast frame, and the third indication information is included in the extended broadcast frame. The transceiver unit 1110 receives the basic broadcast frame, and determines, based on the second indication information, that the broadcast type is not the target type, and the transceiver unit 1110 does not receive the extended broadcast frame regardless of content indicated by the first indication information and the third indication information. Further, the scanning request is not initiated. Further, the scanning response is not received. If the processing unit 1120 determines, based on the second indication information, that the broadcast type is the target type, the processing unit 1120 further determines, based on the first indication information, whether to receive the extended broadcast frame. If the first indication information indicates that the content of the extended broadcast frame does not change, the transceiver unit 1110 does not receive the extended broadcast frame. Correspondingly, the transceiver unit 1110 cannot receive the third indication information. The processing unit 1120 initiates the scanning request based on the content of the previously buffered extended broadcast frame and the content of the basic broadcast frame. Further, the scanning response frame is received. If the first indication information indicates that the content of the extended broadcast frame changes, the transceiver unit 1110 receives the extended broadcast frame. Further, the third indication information in the extended broadcast frame is received. If the third indication information indicates that the content of the content of the scanning response frame, the processing unit 1120 initiates the scanning request. Further, the scanning response is received. If the third indication information indicates that the content of the scanning response frame does not change, the processing unit 1120 does not initiate the scanning request, or the processing unit 1120 initiates the scanning request but does not receive the scanning response frame.
In some embodiments, the communication apparatus 1100 may be the second device in the foregoing method embodiment 500, or may be a chip configured to implement a function of the second device in the foregoing method embodiment. It should be understood that the communication apparatus 1100 may correspond to steps corresponding to the second device in the method 500 in embodiments of this application. The communication apparatus 1100 includes: a transceiver unit 1110, configured to send a basic broadcast frame to a first device; and a processing unit 1120, configured to determine indication information.
When the second device wants to be discovered or connected, the communication apparatus 1100 may send a connectable broadcast message. The first device may discover the communication apparatus 1100 by receiving the broadcast message, and initiate a connection request or initiate a scanning request. Further, the first device establishes a connection to the processing unit 1120, or the first device receives a scanning response frame sent by the transceiver unit 1110. The broadcast message may include two parts: a basic broadcast frame and an extended broadcast frame (or an extended data frame), where the basic broadcast frame may be sequentially and repeatedly sent on one or more specified broadcast channels, and the extended broadcast frame may be sent on a data channel different from that of the basic broadcast frame. The first device may periodically receive the basic broadcast frame sent by the transceiver unit 1110.
Specifically, the indication information is located in a physical layer frame header of the basic broadcast frame, and includes one or more bits. The physical layer frame header of the basic broadcast frame may further include physical layer control information such as encoding and decoding of the basic broadcast frame and new transmission and old transmission indications. A location of the indication information in the physical layer frame header is shown in
Specifically, the indication information is located in a payload header of the basic broadcast frame, and includes one or more bits. The physical layer payload header of the basic broadcast frame may further include higher layer control information of the basic broadcast frame, for example, one or more pieces of link-layer-related control information such as segmentation, reassembly, multiplexing, and logical channel priority of a data link layer. A location of the indication information in the payload header of the basic broadcast frame is shown in
A physical layer processing entity (or module) of the first device parses the physical layer frame header of the basic broadcast frame to obtain the indication information, or a higher layer processing entity (or module) of the first device parses the physical layer payload header of the basic broadcast frame to obtain the indication information.
Specifically, the indication information includes at least one of the following information.
First indication information indicates whether content of the extended broadcast frame changes. For example, the first indication information may include 1 bit, and 0 or 1 is used to indicate whether the content of the extended broadcast frame changes. An indication method is not limited in embodiments of this application.
Second indication information indicates a broadcast type. The broadcast type may include: scannable, connectable, unscannable, or disconnectable. As an example instead of a limitation, the broadcast type indicated by the second indication information may be indicated by using a bit in the second indication information. For example, 2 bits may be used to indicate the broadcast type, where 00 may indicate scannable and connectable, 01 may indicate scannable and disconnectable, 10 indicates unscannable and connectable, and 11 indicates unscannable and disconnectable. An indication method is not limited in embodiments of this application.
Third indication information indicates whether content of the content of the scanning response frame. For example, the third indication information may include 1 bit, and 0 or 1 is used to indicate whether the content of the extended broadcast frame changes. An indication method is not limited in embodiments of this application.
In some embodiments, the communication apparatus 1100 may be the first device in the foregoing method embodiment 800, or may be a chip configured to implement a function of the first device in the foregoing method embodiment. It should be understood that the communication apparatus 1100 may correspond to steps corresponding to the first device in the method 800 in embodiments of this application. The communication apparatus 1100 includes: a transceiver unit 1110, configured to receive a basic broadcast frame sent by a second device; and a processing unit 1120, configured to parse, at a physical layer, the basic broadcast frame to obtain first indication information.
It should be understood that the communication apparatus is an example of a broadcast receiver, and the second device is an example of a broadcast sender.
When the second device wants to be discovered or connected, the second device may send a connectable broadcast message. The first device may discover the second device by receiving the broadcast message, and initiate a connection request or a scanning request. Further, the first device establishes a connection to the second device, or the first device receives a scanning response frame sent by the second device. The broadcast message may include two parts: a basic broadcast frame and an extended broadcast frame (or an extended data frame), where the basic broadcast frame may be sequentially and repeatedly sent on one or more specified broadcast channels, and the extended broadcast frame may be sent on a data channel different from that of the basic broadcast frame. The first device may periodically receive the basic broadcast frame sent by the second device.
Specifically, the first indication information is located in a physical layer frame header of the basic broadcast frame, and includes one or more bits. The physical layer frame header of the basic broadcast frame may further include physical layer control information such as encoding and decoding of the basic broadcast frame and new transmission and old transmission indications. A location of the first indication information in the physical layer frame header is shown in
Specifically, the first indication information is located in a physical layer payload header of the basic broadcast frame, and includes one or more bits. The physical layer payload header of the basic broadcast frame may further include higher layer control information of the basic broadcast frame, for example, one or more pieces of link-layer-related control information such as segmentation, reassembly, multiplexing, and a logical channel priority of a data link layer. A location of the first indication information in the physical layer payload header of the basic broadcast frame is shown in
A physical layer processing entity (or module) of the processing unit 1120 parses the physical layer frame header of the basic broadcast frame to obtain the first indication information, or a higher layer processing entity (or module) of the processing unit 1120 parses the physical layer payload header of the basic broadcast frame to obtain the first indication information.
Specifically, the first indication information indicates whether content of the extended broadcast frame changes. For example, the first indication information may include 1 bit, and 0 or 1 is used to indicate whether the content of the extended broadcast frame changes. An indication method is not limited in embodiments of this application.
In some embodiments, the first indication information indicates that the content of the extended broadcast frame changes. Optionally, the first indication information may indicate that the content of the extended broadcast frame changes compared with a previous broadcast.
In some embodiments, the first indication information indicates that the content of the extended broadcast frame does not change. Optionally, the first indication information may indicate that the content of the extended broadcast frame does not change compared with a previous broadcast.
The processing unit 1120 is further configured to determine, based on the first indication information, whether to receive the extended broadcast frame.
Specifically, the transceiver unit 1110 receives the basic broadcast frame, and further obtains, through parsing, the first indication information in the physical layer frame header of the basic broadcast frame or the physical layer payload header of the basic broadcast frame.
In some embodiments, the first indication information indicates that the content of the extended broadcast frame changes. Specifically, a meaning of that the content of the extended broadcast frame changes is similar to the foregoing description. The transceiver unit 1110 receives the extended broadcast frame based on the first indication information.
In some embodiments, the first indication information indicates that the content of the extended broadcast frame does not change. Specifically, a meaning of that the content of the extended broadcast frame does not change is similar to the foregoing description. Correspondingly, the content of the extended broadcast frame does not change, and the processing unit 1120 buffers the content of the extended broadcast frame. In a possible implementation, the transceiver unit 1110 receives, in the previous broadcast, an extended broadcast frame whose content is consistent with the content of the extended broadcast frame. Therefore, the processing unit 1120 buffers the content of the extended broadcast frame. The processing unit 1120 does not receive the extended broadcast frame based on the first indication information.
The processing unit 1120 is further configured to initiate the scanning request or the connection request.
Specifically, the processing unit 1120 determines a start location of a window of the scanning request or the connection request based on the content of the extended broadcast frame that is currently received or previously buffered, and initiates the scanning request or the connection request to the second device at the location.
It should be noted that a broadcast type may be classified into scannable, connectable, unscannable, and disconnectable. In a possible implementation, there are at least the following possible types: connectable and scannable, connectable and unscannable, disconnectable and scannable, and disconnectable and unscannable.
The transceiver unit 1110 receives the scanning response or establishes a connection to the second device.
It should be noted that in the foregoing steps, if the processing unit 1120 initiates the connection request, the second device establishes a connection to the communication apparatus. If the processing unit 1120 initiates the scanning request, the second device sends the scanning response frame to the transceiver unit 1110. The scanning response frame includes more information.
In some embodiments, the transceiver unit 1110 may receive other indication information, and the processing unit 1120 determines a receiving status of a subsequent broadcast message frame based on the first indication information and the other indication information. For detailed descriptions, refer to the communication apparatus corresponding to the method 500.
In some embodiments, the communication apparatus 1100 may be the second device in the foregoing method embodiment 800, or may be a chip configured to implement a function of the second device in the foregoing method embodiment. It should be understood that the communication apparatus 1100 may correspond to steps corresponding to the second device in the method 800 in embodiments of this application. The communication apparatus 1100 includes: a transceiver unit 1110, configured to send a basic broadcast frame to a first device; and a processing unit 1120, configured to determine first indication information.
When the second device wants to be discovered or connected, the communication apparatus 1100 may send a connectable broadcast message. The first device may discover the communication apparatus 1100 by receiving the broadcast message, and initiate a connection request or initiate a scanning request. Further, the first device establishes a connection to the processing unit 1120, or the first device receives a scanning response frame sent by the transceiver unit 1110. The broadcast message may include two parts: a basic broadcast frame and an extended broadcast frame (or an extended data frame), where the basic broadcast frame may be sequentially and repeatedly sent on one or more specified broadcast channels, and the extended broadcast frame may be sent on a data channel different from that of the basic broadcast frame. The first device may periodically receive the basic broadcast frame sent by the transceiver unit 1110.
Specifically, the first indication information is located in a physical layer frame header of the basic broadcast frame, and includes one or more bits. The physical layer frame header of the basic broadcast frame may further include physical layer control information such as encoding and decoding of the basic broadcast frame and new transmission and old transmission indications. A location of the indication information in the physical layer frame header is shown in
Specifically, the first indication information is located in a physical layer payload header of the basic broadcast frame, and includes one or more bits. The physical layer payload header of the basic broadcast frame may further include higher layer control information of the basic broadcast frame, for example, one or more pieces of link-layer-related control information such as segmentation, reassembly, multiplexing, and a logical channel priority of a data link layer. A location of the first indication information in the payload header of the basic broadcast frame is shown in
A physical layer processing entity (or module) of the first device parses the physical layer frame header of the basic broadcast frame to obtain the first indication information, or a higher layer processing entity (or module) of the first device parses the physical layer payload header of the basic broadcast frame to obtain the first indication information.
In some embodiments, the communication apparatus 1100 may be the first device in the foregoing method embodiment 900, or may be a chip configured to implement a function of the first device in the foregoing method embodiment. It should be understood that the communication apparatus 1100 may correspond to steps corresponding to the first device in the method 900 in embodiments of this application. The communication apparatus 1100 includes: a transceiver unit 1110, configured to receive a basic broadcast frame sent by a second device; and a processing unit 1120, configured to parse the basic broadcast frame to obtain second indication information.
It should be understood that the communication apparatus is an example of a broadcast receiver, and the second device is an example of a broadcast sender.
When the second device wants to be discovered or connected, the second device may send a connectable broadcast message. The transceiver unit 1110 may discover the second device by receiving the broadcast message, and initiate a connection request or a scanning request. Further, the processing unit 1120 establishes a connection to the second device, or the transceiver unit 1110 receives a scanning response frame sent by the second device. The broadcast message may include two parts: a basic broadcast frame and an extended broadcast frame (or an extended data frame), where the basic broadcast frame may be sequentially and repeatedly sent on one or more specified broadcast channels, and the extended broadcast frame may be sent on a data channel different from that of the basic broadcast frame. The transceiver unit 1110 may periodically receive the basic broadcast frame sent by the second device.
Specifically, the second indication information is located in a physical layer frame header of the basic broadcast frame, and includes one or more bits. The physical layer frame header of the basic broadcast frame may further include physical layer control information such as encoding and decoding of the basic broadcast frame and new transmission and old transmission indications. A location of the second indication information in the physical layer frame header is shown in
Specifically, the second indication information is located in a physical layer payload header of the basic broadcast frame, and includes one or more bits. The physical layer payload header of the basic broadcast frame may further include higher layer control information of the basic broadcast frame, for example, one or more pieces of link-layer-related control information such as segmentation, reassembly, multiplexing, and a logical channel priority of a data link layer. A location of the second indication information in the payload header of the basic broadcast frame is shown in
A physical layer processing entity (or module) of the processing unit 1120 parses the physical layer frame header of the basic broadcast frame to obtain the second indication information, or a higher layer processing entity (or module) of the processing unit 1120 parses the physical layer payload header of the basic broadcast frame to obtain the second indication information.
The second indication information indicates a broadcast type. The broadcast type may include: scannable, unscannable, connectable, or disconnectable. In some embodiments, 2 bits in the second indication information may be used to indicate the broadcast type. For example, 00 may indicate scannable and connectable, 01 may indicate scannable and disconnectable, 10 may indicate unscannable and disconnectable, and 11 may indicate unscannable and disconnectable.
The processing unit 1120 is further configured to determine, based on the second indication information, whether to receive the extended broadcast frame.
Specifically, the transceiver unit 1110 receives the basic broadcast frame, and further parses the second indication information in the physical layer frame header or a payload of the basic broadcast frame.
The processing unit 1120 determines, based on the second indication information, whether the broadcast type is a target type. If the broadcast type is the target type of the first device, the first device receives the extended broadcast frame. If the broadcast type is not the target type of the first device, optionally, the first device does not receive the extended broadcast frame. Optionally, the first device receives the extended broadcast frame, but a subsequent step is not performed.
The processing unit 1120 initiates the scanning request or the connection request.
It should be noted that this step is optional. The processing unit 1120 determines that the broadcast type is the target type, receives the extended broadcast frame, and initiates the scanning request or the connection request to the second device.
The transceiver unit 1110 receives the scanning response frame or the processing unit 1120 establishes a connection to the second device.
It should be noted that this step is optional. If the processing unit 1120 initiates the connection request, the second device establishes a connection to the processing unit 1120. If the processing unit 1120 initiates the scanning request, the second device sends the scanning response frame to the transceiver unit 1110. The scanning response frame includes more information.
In some embodiments, the transceiver unit 1110 may receive other indication information, and the processing unit 1120 determines a receiving status of a subsequent broadcast message frame based on the second indication information and the other indication information. For detailed descriptions, refer to the communication apparatus corresponding to the method 500.
In some embodiments, the communication apparatus 1100 may be the second device in the foregoing method embodiment 900, or may be a chip configured to implement a function of the second device in the foregoing method embodiment. It should be understood that the communication apparatus 1100 may correspond to steps corresponding to the second device in the method 900 in embodiments of this application. The communication apparatus 1100 includes: a transceiver unit 1110, configured to send a basic broadcast frame to a first device; and a processing unit 1120, configured to determine second indication information.
When the second device wants to be discovered or connected, the communication apparatus 1100 may send a connectable broadcast message. The first device may discover the communication apparatus 1100 by receiving the broadcast message, and initiate a connection request or initiate a scanning request. Further, the first device establishes a connection to the processing unit 1120, or the first device receives a scanning response frame sent by the transceiver unit 1110. The broadcast message may include two parts: a basic broadcast frame and an extended broadcast frame (or an extended data frame), where the basic broadcast frame may be sequentially and repeatedly sent on one or more specified broadcast channels, and the extended broadcast frame may be sent on a data channel different from that of the basic broadcast frame. The first device may periodically receive the basic broadcast frame sent by the transceiver unit 1110.
Specifically, the second indication information is located in a physical layer frame header of the basic broadcast frame, and includes one or more bits. The physical layer frame header of the basic broadcast frame may further include physical layer control information such as encoding and decoding of the basic broadcast frame and new transmission and old transmission indications. A location of the second indication information in the physical layer frame header is shown in
Specifically, the second indication information is located in a physical layer payload header of the basic broadcast frame, and includes one or more bits. The physical layer payload header of the basic broadcast frame may further include higher layer control information of the basic broadcast frame, for example, one or more pieces of link-layer-related control information such as segmentation, reassembly, multiplexing, and a logical channel priority of a data link layer. A location of the second indication information in the payload header of the basic broadcast frame is shown in
The second indication information indicates a broadcast type.
In some embodiments, the communication apparatus 1100 may be the first device in the foregoing method embodiment 1000, or may be a chip configured to implement a function of the first device in the foregoing method embodiment. It should be understood that the communication apparatus 1100 may correspond to steps corresponding to the first device in the method 1000 in embodiments of this application. The communication apparatus 1100 includes: a transceiver unit 1110, configured to receive a basic broadcast frame sent by a second device; and a processing unit 1120, configured to parse the basic broadcast frame to obtain third indication information.
Specifically, the third indication information may be located in a physical layer frame header of the basic broadcast frame, and includes one or more bits. The physical layer frame header of the basic broadcast frame may further include physical layer control information such as encoding and decoding of the basic broadcast frame and new transmission and old transmission indications. A location of the third indication information in the physical layer frame header is shown in
Specifically, the third indication information may be located in a payload header of the basic broadcast frame, and includes one or more bits. The physical layer payload header of the basic broadcast frame may further include higher layer control information of the basic broadcast frame, for example, one or more pieces of link-layer-related control information such as segmentation, reassembly, multiplexing, and a logical channel priority of a data link layer. A location of the third indication information in the payload header of the basic broadcast frame is shown in
A physical layer processing entity (or module) of the processing unit 1120 parses the physical layer frame header of the basic broadcast frame to obtain the third indication information, or a higher layer processing entity (or module) of the processing unit 1120 parses the physical layer payload header of the basic broadcast frame to obtain the third indication information.
The processing unit 1120 is further configured to determine, based on the third indication information, whether to receive the extended broadcast frame.
It should be noted that, if the processing unit 1120 determines, based on the third indication information, that content of the scanning response frame does not change, the transceiver unit 1110 does not need to receive the extended broadcast frame, and does not need to initiate a subsequent procedure. If the processing unit 1120 determines, based on the third indication information, that the content of the content of the scanning response frame, the transceiver unit 1110 receives the extended broadcast frame.
The processing unit 1120 is further configured to initiate the scanning request.
It should be noted that this step is optional. If the processing unit 1120 determines, based on the third indication information, that the content of the scanning response frame does not change, the processing unit 1120 does not perform a subsequent procedure. The transceiver unit 1110 does not receive the extended broadcast frame, and does not initiate the scanning request. If the processing unit 1120 determines, based on the third indication information, that the content of the content of the scanning response frame, the processing unit 1120 determines that the scanning response frame needs to be received. Correspondingly, the transceiver unit 1110 needs to receive the extended broadcast frame, and initiates the scanning request based on content of the extended broadcast frame and content of the basic broadcast frame.
The transceiver unit 1110 is further configured to receive the scanning response frame.
It should be noted that this step is optional. After initiating the scanning request, the processing unit 1120 receives the scanning response frame.
In some embodiments, the third indication information is included in the frame header or the payload header of the extended broadcast frame. In this embodiment, the transceiver unit 1110 receives the basic broadcast frame, receives the extended broadcast frame based on the content of the basic broadcast frame, and parses, at the physical layer, the extended broadcast frame to obtain the third indication information. If the third indication information indicates that the content of the content of the scanning response frame, the processing unit 1120 initiates the scanning request, and receives the scanning response frame from the second device. If the third indication information indicates that the content of the scanning response frame does not change, the processing unit 1120 does not initiate the scanning request, or the processing unit 1120 initiates the scanning request but does not receive the scanning response frame.
In some embodiments, the transceiver unit 1110 may receive other indication information, and the processing unit 1120 determines a receiving status of a subsequent broadcast message frame based on the third indication information and the other indication information. For detailed descriptions, refer to the communication apparatus corresponding to the method 500.
In some embodiments, the communication apparatus 1100 may be the second device in the foregoing method embodiment 1000, or may be a chip configured to implement a function of the second device in the foregoing method embodiment. It should be understood that the communication apparatus 1100 may correspond to steps corresponding to the second device in the method 1000 in embodiments of this application. The communication apparatus 1100 includes: a transceiver unit 1110, configured to send a basic broadcast frame to a first device; and a processing unit 1120, configured to determine third indication information.
When the second device wants to be discovered or connected, the communication apparatus 1100 may send a connectable broadcast message. The first device may discover the communication apparatus 1100 by receiving the broadcast message, and initiate a connection request or initiate a scanning request. Further, the first device establishes a connection to the processing unit 1120, or the first device receives a scanning response frame sent by the transceiver unit 1110. The broadcast message may include two parts: a basic broadcast frame and an extended broadcast frame (or an extended data frame), where the basic broadcast frame may be sequentially and repeatedly sent on one or more specified broadcast channels, and the extended broadcast frame may be sent on a data channel different from that of the basic broadcast frame. The first device may periodically receive the basic broadcast frame sent by the transceiver unit 1110.
Specifically, the third indication information may be located in a physical layer frame header of the basic broadcast frame, and includes one or more bits. The physical layer frame header of the basic broadcast frame may further include physical layer control information such as encoding and decoding of the basic broadcast frame and new transmission and old transmission indications. A location of the third indication information in the physical layer frame header is shown in
Specifically, the third indication information may be located in a physical layer payload header of the basic broadcast frame, and includes one or more bits. The physical layer payload header of the basic broadcast frame may further include higher layer control information of the basic broadcast frame, for example, one or more pieces of link-layer-related control information such as segmentation, reassembly, multiplexing, and a logical channel priority of a data link layer. A location of the third indication information in the payload header of the basic broadcast frame is shown in
The third indication information indicates whether content of the content of the scanning response frame. For example, the third indication information may include 1 bit, and 0 or 1 is used to indicate whether the content of the extended broadcast frame changes. An indication method is not limited in embodiments of this application.
Specifically, the transceiver 1210 in the communication apparatus 1200 may correspond to the transceiver unit 1110 in the communication apparatus 1100, and the processor 1220 in the communication apparatus 1200 may correspond to the processing unit 1120 in the communication apparatus 1100.
It should be understood that the memory 1230 and the processor 1220 may be combined into one processing apparatus, and the processor 1220 is configured to execute program code stored in the memory 1230 to implement the foregoing functions. During specific implementation, the memory 1230 may alternatively be integrated into the processor 1220, or may be independent of the processor 1220.
It should be understood that a specific process in which the transceiver and the processor perform the foregoing corresponding steps is described in detail in the foregoing method embodiments. For brevity, details are not described herein.
A person of ordinary skill in the art may be aware that, in combination with the examples described in embodiments disclosed in this specification, units and algorithm steps can be implemented by electronic hardware or a combination of computer software and electronic hardware. Whether the functions are performed by hardware or software depends on particular applications and design constraints of the technical solutions. A person skilled in the art may use different methods to implement the described functions for each particular application, but it should not be considered that the implementation goes beyond the scope of this application.
It may be clearly understood by a person skilled in the art that, for the purpose of convenient and brief description, for a detailed working process of the foregoing system, apparatus, and unit, refer to a corresponding process in the foregoing method embodiments, and details are not described herein again.
In the several embodiments provided in this application, it should be understood that the disclosed system, apparatus, and method may be implemented in other manners. For example, the described apparatus embodiment is merely an example. For example, division into units is merely logical function division and may be other division in an actual implementation. For example, a plurality of units or components may be combined or integrated into another system, or some features may be ignored or not performed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections may be implemented through some interfaces. The indirect couplings or communication connections between the apparatuses or units may be implemented in electrical, mechanical, or other forms.
The units described as separate components may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected based on actual requirements to achieve the objectives of the solutions of embodiments.
In addition, function units in embodiments of this application may be integrated into one processing unit, or each of the units may exist alone physically, or two or more units may be integrated into one unit.
When the functions are implemented in a form of a software functional unit and sold or used as an independent product, the functions may be stored in a computer-readable storage medium. Based on such an understanding, the technical solutions of this application essentially, or the part contributing to the conventional technology, or some of the technical solutions may be implemented in a form of a software product. The computer software product is stored in a storage medium, and includes several instructions for instructing a computer device (which may be a personal computer, a server, a network device, or the like) to perform all or some of the steps of the methods described in embodiments of this application. The foregoing storage medium includes: any medium that can store program code, such as a USB flash drive, a removable hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disc.
The foregoing descriptions are merely specific embodiments of this application, but are not intended to limit the protection scope of this application. Any variation or replacement readily figured out by a person skilled in the art within the technical scope disclosed in this application shall fall within the protection scope of this application. Therefore, the protection scope of this application shall be subject to the protection scope of the claims.
Number | Date | Country | Kind |
---|---|---|---|
202110827594.3 | Jul 2021 | CN | national |
This application is a continuation of International Application No. PCT/CN2022/084815, filed on Apr. 1, 2022, which claims priority to Chinese Patent Application No. 202110827594.3, filed on Jul. 21, 2021. The disclosures of the aforementioned applications are hereby incorporated by reference in their entireties.
Number | Date | Country | |
---|---|---|---|
Parent | PCT/CN2022/084815 | Apr 2022 | US |
Child | 18417765 | US |