WO2023070617A1 - 通信方法及装置、存储介质、程序产品 - Google Patents
通信方法及装置、存储介质、程序产品 Download PDFInfo
- Publication number
- WO2023070617A1 WO2023070617A1 PCT/CN2021/127758 CN2021127758W WO2023070617A1 WO 2023070617 A1 WO2023070617 A1 WO 2023070617A1 CN 2021127758 W CN2021127758 W CN 2021127758W WO 2023070617 A1 WO2023070617 A1 WO 2023070617A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- management device
- mac layer
- message
- identifier
- network
- Prior art date
Links
- 238000004891 communication Methods 0.000 title claims abstract description 411
- 238000000034 method Methods 0.000 title claims abstract description 122
- 230000008859 change Effects 0.000 claims abstract description 156
- 238000012545 processing Methods 0.000 claims description 38
- 230000004044 response Effects 0.000 claims description 24
- 238000004590 computer program Methods 0.000 claims description 13
- 230000001413 cellular effect Effects 0.000 abstract description 10
- 238000007726 management method Methods 0.000 description 513
- 230000006870 function Effects 0.000 description 15
- 238000010586 diagram Methods 0.000 description 12
- 230000008569 process Effects 0.000 description 8
- 238000001514 detection method Methods 0.000 description 3
- 230000003190 augmentative effect Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 2
- 238000012790 confirmation Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000003999 initiator Substances 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000011084 recovery Methods 0.000 description 1
- 238000013468 resource allocation Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
Definitions
- the present application relates to the technical field of communication, and in particular to a communication method and device, a storage medium, and a program product.
- D2D communication mode refers to the communication of D2D devices within the coverage of the cellular network; mode 2 is relay transmission, D2D devices outside the coverage of the cellular network through the coverage The D2D devices within the range communicate with the base station; mode 3 allows direct communication between D2D devices or multi-hop data communication without the help of a base station.
- mode 1 refers to the communication of D2D devices within the coverage of the cellular network
- mode 2 is relay transmission, D2D devices outside the coverage of the cellular network through the coverage
- the D2D devices within the range communicate with the base station
- mode 3 allows direct communication between D2D devices or multi-hop data communication without the help of a base station.
- a header of a medium access control protocol data unit (medium access control protocol data unit, MAC PDU) of a D2D data packet includes a source device identifier and a destination device identifier.
- the source device identifier and the destination device identifier are layer-2 identifiers, which are fixed at 24 bits.
- the D2D device After receiving the data packet, the D2D device identifies whether the data packet is sent to itself according to the destination device identifier.
- the layer 2 identifier When there is network coverage, the layer 2 identifier is assigned by a direct provisioning function (DPF) unit in the core network, which can ensure global uniqueness.
- DPF direct provisioning function
- the layer 2 identifier When there is no network coverage (mode 3 above), the layer 2 identifier is preset by the D2D device or assigned by itself, and cannot be guaranteed to be globally unique. When the layer 2 identifiers conflict, it will cause communication failure and increase the power consumption of the device. In particular, when one-to-one communication and one-to-many communication of D2D devices coexist, if the layer 2 identification conflicts, a large amount of invalid data packet processing will be caused. Therefore, there is currently no effective mechanism for detecting identity conflicts.
- the present application provides a communication method and device, a storage medium, and a program product, so as to avoid conflicts of temporary communication parameters at the MAC layer of D2D communication and improve communication reliability.
- a communication method is provided, which is applied to a first network, where the first network includes a first management device and at least one member device, and each member device corresponds to a MAC layer temporary communication parameter of D2D communication, and the The MAC layer temporary communication parameter includes the identifier of the first management device, and the method includes: the first management device receives a first synchronization message from a second management device in the second network, and the first synchronization message includes The identifier of the second management device; the first management device determines that the identifier of the first management device conflicts with the identifier of the second management device; the first management device changes the identifier of the first management device ; and the first management device broadcasts a first identity change message, where the first identity change message includes an updated identity of the first management device.
- a centered network architecture under the coverage of a non-cellular network is constructed. Under this network architecture, if the MAC layer temporary communication parameters corresponding to the member devices are detected, the temporary communication with the MAC layer in other networks If the parameter conflicts, it is changed in time, which effectively avoids the MAC layer temporary communication parameter conflict and improves the reliability of D2D communication.
- the identifier of the first management device and the identifier of the second management device are MAC layer temporary identifiers.
- the MAC layer temporary communication parameters further include a broadcast type and an identifier of each member device.
- the MAC layer temporary communication parameter can be distinguished by the broadcast type as a MAC layer temporary communication parameter corresponding to a member device in a unicast scenario, or a MAC layer temporary communication parameter corresponding to a multicast group.
- the identifier of each member device is a random value.
- the broadcast type is multicast
- the MAC layer temporary communication parameters further include an identifier of a multicast group.
- the identifier of the multicast group is generated by the first member device; or the identifier of the multicast group is allocated by the first management device; or the identifier of the multicast group is the set value.
- the method further includes: the first management device broadcasts a second synchronization message, where the second synchronization message includes an identifier of the first management device.
- the management devices in each network periodically broadcast synchronization messages to avoid conflicts of temporary communication parameters at the MAC layer.
- the method further includes: the first management device A management device broadcasts a first indication message, where the first indication message is used to instruct the at least one member device to stop sending and receiving services; and after the first management device broadcasts a first identity change message, the method further includes: The first management device broadcasts a second indication message, where the second indication message is used to instruct the at least one member device to resume service sending and receiving.
- the service sending and receiving is suspended, so as to avoid that the D2D data packet cannot be received or parsed reliably.
- the method further includes: the first management device receives a first request message from a first member device, where the first request message is used to request to join the first network, so The first request message includes the unique identifier of the first member device, and the first member device belongs to the at least one member device; the first management device determines the A first MAC layer temporary communication parameter corresponding to the first member device; and the first management device sends a first response message to the first member device, the first response message including the first MAC layer temporary communication parameter .
- the first management device can accurately distinguish each member device joining the first network according to the unique identifier of the first member device, and the first management device uniformly assigns MAC layer temporary communication parameters to each member device to avoid The conflict of the temporary parameters of the MAC layer is eliminated.
- the method further includes: the first management device broadcasts a management device change notification, and the management device change notification is used to notify that the first management device will be changed; the first management device The device receives at least one second request message from the at least one member device, where the at least one second request message includes at least one of the following information of each device in the at least one member device: device priority, remaining power, available The number of direct communication devices; the first management device determines a third management device among the at least one member device according to the at least one piece of information, and the third management device is a new management device of the first network; And the first management device broadcasts a management device change result notification, where the management device change result notification includes the second MAC layer temporary communication parameter corresponding to the third management device.
- the first management device when the first management device cannot continue to manage the first network due to insufficient power or other reasons, another member device can be reselected to become a new management device, which improves communication reliability. Moreover, when selecting a new management device, the device priority, remaining power, and the number of devices capable of direct communication, etc. of the new management device are considered, thereby improving the reliability of the selected new management device.
- the first management device determines the third management device in the at least one member device according to the at least one piece of information, including any of the following operations: the remaining members of the at least one member device The power is greater than or equal to the first power threshold, the first management device determines the member device with the highest device priority as the third management device; or the remaining power of the at least one member device is greater than or equal to the first power threshold , and the device priority of the at least one member device is the same, the first management device determines the member device with the largest number of direct communication devices as the third management device; or the remaining power of the at least one member device is smaller than the first power threshold, the first management device determines the member device with the most remaining power as the third management device.
- the method further includes: the first management device sending network configuration parameters to the third management device, where the network configuration parameters include at least one of the following information: member list information, network timing information.
- the method further includes: the first management device monitors the heartbeat message of the first member device; the first management device does not monitor the heartbeat message of the first member device , determining that the first member device has moved out of the coverage of the first network; the first management device broadcasts an off-network notification message, where the off-network notification message is used to notify the first member device to leave the network; and The first management device reserves the first MAC layer temporary communication parameter in the member list within the second timing period.
- the first member device leaves the network without timeout, and the first management device retains the first MAC layer temporary parameters, avoiding the need to frequently allocate MAC layer temporary communication parameters, and improving allocation efficiency.
- the method further includes: the first management device listens to the heartbeat message of the first member device within the second timing period, and the first management device broadcasts a heartbeat message on the network A notification message, where the online notification message is used to notify the first member device to re-enter the coverage of the first network.
- the method further includes: the first management device does not listen to the heartbeat message of the first member device within the second timing period, and the first management device broadcasts an exit A network notification message, where the network exit notification message is used to notify the first member device to withdraw from the first network; and the first management device reclaims the first MAC layer temporary communication parameters.
- a communication method is provided, which is applied to a first network, where the first network includes a first management device and at least one member device, and each member device corresponds to a MAC layer temporary communication parameter of D2D communication, and the The MAC layer temporary communication parameter includes the identity of the first management device, and the method includes: the first member device receives a first identity change message from the first management device, and the first identity change message includes the updated an identifier of the first management device, the first member device belongs to the at least one member device; and the first member device changes the first MAC layer temporary communication parameter corresponding to the first member device.
- a centered network architecture without cellular network coverage is constructed.
- the identifier of the first management device and the identifier of the second management device are MAC layer temporary identifiers.
- the method before the first member device receives the first identity change message from the first management device, the method further includes: the first member device receives the message from the first management device A first indication message, the first indication message is used to instruct the at least one member device to stop sending and receiving services; the first member device stops sending and receiving services; the first member device changes the first MAC layer temporary After communicating parameters, the first member device receives second indication information from the first management device, where the second indication message is used to instruct the at least one member device to resume service sending and receiving; and the first member device Resume business sending and receiving.
- the first MAC layer temporary communication parameter further includes a broadcast type and an identifier of the first member device.
- the identifier of the first member device is a random value.
- the method further includes: the first member device sends a first request message to the first management device, where the first request message is used to request to join the first network, The request message includes the unique identifier of the first member device; and the first member device receives a first response message from the first management device, the first response message includes the first MAC layer temporary communication parameters.
- the method further includes: the first member device receives a management device change notification from the first management device, and the management device change notification is used to notify that the first A management device; the first member device sends a second request message to the first management device, and the second request message includes at least one of the following information of the first member device: device priority, remaining power, direct The number of communication devices; and the first member device receives a change completion message from the first management device, the management device change result notification includes the second MAC layer temporary communication parameters corresponding to the third management device, and the third The management device is a new management device of the first network.
- the first network includes a multicast group
- the multicast group includes at least two member devices
- the at least two member devices include a group head device and a group member device
- the first A member device is the group head device
- the method further includes: the first member device establishes the multicast group, obtains a third MAC layer temporary communication parameter corresponding to the multicast group, and the third MAC layer Layer temporary communication parameters include the broadcast type, the identifier of the first management device, and the identifier of the multicast group; and the first member device broadcasts an establishment completion message, and the establishment completion message includes a list of group members and the first multicast group
- the group member list includes the first MAC layer temporary communication parameters and MAC layer temporary communication parameters corresponding to the group member devices.
- the multicast group identifier is generated by the first member device; or the multicast group identifier is allocated by the first management device; or the group The ID of the broadcast group is a setting value.
- the method further includes: the first member device updating the third MAC layer temporary communication parameter according to the first identity change message; The group member device sends a second identity change message, where the second identity change message includes the updated third MAC layer temporary communication parameter.
- the first member device changes the third MAC layer temporary communication parameters and notifies the group members to update the third MAC layer temporary communication parameters. parameter to improve the reliability of multicast group communication.
- a communication device which is applied to a communication system, where the communication system includes at least two distributed nodes, and the at least two distributed nodes include the communication device and at least one second distributed node.
- the communication device may implement the communication method in the first aspect above.
- the communication device may be a chip or a device.
- the above method can be realized by software, hardware, or by executing corresponding software by hardware.
- the apparatus is applied to a first network, and the first network includes a first management device and at least one member device, and each member device corresponds to a MAC layer temporary communication parameter of D2D communication, so
- the MAC layer temporary communication parameters include the identifier of the first management device
- the apparatus includes: a transceiver unit and a processing unit; wherein the transceiver unit is configured to receive the first message from the second management device in the second network A synchronization message, the first synchronization message includes the identifier of the second management device; the processing unit is configured to determine that the identifier of the first management device conflicts with the identifier of the second management device; the processing unit is further configured to change the identifier of the first management device; and the transceiving unit is further configured to broadcast a first identifier change message, where the first identifier change message includes an updated identifier of the first management device.
- the MAC layer temporary communication parameters further include a broadcast type and an identifier of each member device.
- the transceiving unit is further configured to broadcast a second synchronization message, where the second synchronization message includes the identifier of the first management device.
- the transceiving unit is further configured to broadcast a first indication message, the first indication message is used to instruct the at least one member device to stop sending and receiving services; and the transceiving unit is further configured to broadcast a second indication message, the second indication message is used to instruct the at least one member device to resume service sending and receiving.
- the transceiving unit is further configured to receive a first request message from a first member device, where the first request message is used to request to join the first network, and the first request message includes the first A unique identifier of a member device, the first member device belongs to the at least one member device; the processing unit is further configured to determine the first member device corresponding to the first member device according to the unique identifier of the first member device A MAC layer temporary communication parameter; and the transceiver unit is further configured to send a first response message to the first member device, where the first response message includes the first MAC layer temporary communication parameter.
- the transceiving unit is further configured to broadcast a management device change notification, and the management device change notification is used to notify that the first management device will be changed; the transceiving unit is also configured to receive information from the at least one At least one second request message of the member device, the at least one second request message includes at least one of the following information of each device in the at least one member device: device priority, remaining power, and the number of devices that can directly communicate;
- the processing unit is further configured to determine a third management device in the at least one member device according to the at least one piece of information, and the third management device is a new management device of the first network; and the transceiver unit , is also used to broadcast a management device change result notification, where the management device change result notification includes the second MAC layer temporary communication parameter corresponding to the third management device.
- the communication device is configured to execute the method in the foregoing first aspect and various possible implementations thereof.
- a communication device which is applied to a communication system, where the communication system includes at least two distributed nodes, and the at least two distributed nodes include at least one first distributed node and the communication device.
- the communication device may implement the communication method in the second aspect above.
- the communication device may be a chip or a device.
- the above method can be realized by software, hardware, or by executing corresponding software by hardware.
- the apparatus is applied to a first network, and the first network includes a first management device and at least one member device, and each member device corresponds to a media access control MAC for device-to-device D2D communication.
- Layer temporary communication parameters, the MAC layer temporary communication parameters include the identification of the first management device, the apparatus includes: a transceiver unit and a processing unit; wherein: the transceiver unit is used to receive information from the first management device A first identity change message, the first identity change message includes the updated identity of the first management device, the first member device belongs to the at least one member device; and the processing unit is configured to change the The first MAC layer temporary communication parameter corresponding to the first member device.
- the transceiving unit is further configured to receive a first indication message from the first management device, where the first indication message is used to instruct the at least one member device to stop sending and receiving services; the processing unit, It is further configured to stop service transceiving; the transceiving unit is further configured to receive second indication information from the first management device, where the second indication message is used to instruct the at least one member device to resume service transceiving; and The processing unit is further configured to restore service sending and receiving.
- the first MAC layer temporary communication parameter further includes a broadcast type and an identifier of the first member device.
- the transceiver unit is further configured to send a first request message to the first management device, where the first request message is used to request to join the first network, and the request message includes the first A unique identifier of a member device; and the transceiving unit is further configured to receive a first response message from the first management device, where the first response message includes the first MAC layer temporary communication parameter.
- the transceiving unit is further configured to receive a management device change notification from the first management device, and the management device change notification is used to notify that the first management device will be changed; the transceiving unit is also configured to It is used to send a second request message to the first management device, the second request message includes at least one of the following information of the first member device: device priority, remaining power, the number of devices capable of direct communication; the sending and receiving The unit is further configured to receive a change completion message from the first management device, the management device change result notification includes the second MAC layer temporary communication parameters corresponding to the third management device, and the third management device is the second MAC layer temporary communication parameter.
- a new management device for a network is further configured to receive a management device change notification from the first management device, and the management device change notification is used to notify that the first management device will be changed; the transceiving unit is also configured to It is used to send a second request message to the first management device, the second request message includes at least one of the following information of the first member device: device priority,
- the first network includes a multicast group, the multicast group includes at least two member devices, the at least two member devices include a group head device and a group member device, and the first member device is all The group head device; the processing unit is also used to establish the multicast group, and obtain the third MAC layer temporary communication parameters corresponding to the multicast group, and the third MAC layer temporary communication parameters include the broadcast type, the The identifier of the first management device, the identifier of the multicast group; and the transceiver unit, further configured to broadcast a setup completion message, the setup completion message including a list of group members and the third MAC layer temporary communication parameters, The group member list includes the first MAC layer temporary communication parameters and MAC layer temporary communication parameters corresponding to the group member devices.
- the identifier of the multicast group is generated by the first member device; or the identifier of the multicast group is allocated by the first management device; or the identifier of the multicast group is set value.
- the processing unit is further configured to update the third MAC layer temporary communication parameter according to the first identity change message; and the transceiver unit is further configured to send the second MAC layer communication parameter to the group member device.
- An identity change message where the second identity change message includes the updated third MAC layer temporary communication parameters.
- the communications device is configured to execute the method in the foregoing second aspect and various possible implementations thereof.
- the communication device in the above third aspect or the fourth aspect includes a processor coupled to a memory; the processor is configured to support the device to perform corresponding functions in the above communication method.
- the memory is used to couple with the processor, which holds the necessary computer programs (or computer-executable instructions) and/or data of the device.
- the communication device may further include a communication interface for supporting communication between the device and other network elements, such as sending or receiving data and/or signals.
- the communication interface may be a transceiver, circuit, bus, module or other types of communication interface.
- the memory can be located inside the communication device and integrated with the processor; it can also be located outside the communication device.
- the communication device in the third or fourth aspect above includes a processor and a transceiver device, the processor is coupled to the transceiver device, and the processor is used to execute computer programs or instructions , to control the transceiver device to receive and send information; when the processor executes the computer program or instructions, the processor is also used to implement the above method through logic circuits or code instructions.
- the transceiver device may be a transceiver, a transceiver circuit or an input-output interface, which is used to receive signals from other communication devices other than the communication device and transmit them to the processor or transmit signals from the processor to other communication devices other than the communication device.
- the transceiver device is a transceiver circuit or an input/output interface.
- the sending unit may be an output unit, such as an output circuit or a communication interface; the receiving unit may be an input unit, such as an input circuit or a communication interface.
- the sending unit may be a transmitter or a transmitter; the receiving unit may be a receiver or a receiver.
- a communication system in a fifth aspect, includes at least two distributed nodes, and the at least two distributed nodes include the communication device described in any one of the third aspect or the third aspect , and at least one communication device according to the fourth aspect or any implementation of the fourth aspect.
- a sixth aspect provides a computer-readable storage medium, on which a computer program or instruction is stored, and when the program or instruction is executed by a processor, the method described in the first aspect or any one of the first aspect is implemented be executed, or to implement the method described in the second aspect or any one of the implementations of the second aspect is executed.
- a computer program product which, when executed on a computing device, causes the method described in any one of the first aspect or the first aspect to be executed, or the method described in the second aspect or the second The method described in any implementation of the aspect is performed.
- FIG. 1 is a schematic diagram of a D2D communication mode
- FIG. 2 is a schematic structural diagram of a communication system provided by an embodiment of the present application.
- FIG. 3 is a schematic flowchart of a communication method provided in an embodiment of the present application.
- FIG. 4 is a schematic flowchart of another communication method provided by the embodiment of the present application.
- Fig. 5 is the management device identification conflict detection and change process of the example of the present application.
- FIG. 6 is a schematic diagram of a management process of temporary communication parameters of the first MAC layer in a unicast scenario
- FIG. 7 is a schematic flowchart of another communication method provided by the embodiment of the present application.
- FIG. 8 is a schematic diagram of a multicast group provided by an embodiment of the present application.
- FIG. 9 is a schematic flowchart of another communication method provided by the embodiment of the present application.
- FIG. 10 is a schematic flowchart of another communication method provided in the embodiment of the present application.
- FIG. 11 is a schematic flowchart of another communication method provided by the embodiment of the present application.
- FIG. 12 is a schematic flowchart of another communication method provided by the embodiment of the present application.
- FIG. 13 is a schematic structural diagram of a communication device provided by an embodiment of the present application.
- FIG. 14 is a schematic structural diagram of another communication device provided by an embodiment of the present application.
- FIG. 2 is a schematic structural diagram of a communication system provided by the present application
- the communication system 2000 is located in a first network
- the communication system 2000/first network includes a first management device 201 and at least one member device 202 ( 3 member devices are illustrated in the figure, and the number of member devices is not limited in this application).
- the first management device 201 is the center of the first network and is responsible for establishing and managing the network.
- Each central network has only one management device, but the management device can be changed.
- the member device 202 needs to be synchronized to the first management device 201 and connected to the network before it can communicate with other member devices.
- a centralized network may have multiple member devices 202 . Unicast, multicast and broadcast communications are supported within the first network. Multiple such networks may exist in a certain area, for example, may also include a second network, and the second management device is the center of the second network.
- the first management device 201 is responsible for sending synchronization information in the first network, member device access management and device identification allocation, member list maintenance, communication resource allocation and recovery in the first network, message transfer in the first network, inter-network Identity conflict detection and update, etc.
- the member device 202 synchronizes with the management device, and after accessing the first network created by the management device, periodically sends its own status through a heartbeat message.
- the member device 202 can communicate with any member device 202 in the first network, or select some member devices 202 to form a multicast group for communication.
- the first management device 201 and at least one member device 202 may be D2D devices.
- a D2D device may refer to a terminal in D2D communication.
- the terminal is a node with wireless transceiver function, which can be deployed on land, including indoor or outdoor, handheld, wearable or vehicle-mounted; it can also be deployed on water, such as on ships, etc.; it can also be deployed in the air, such as aircraft, wireless Man-machines, balloons and satellites, etc.
- D2D devices can be mobile phone, tablet computer (pad), computer with wireless transceiver function, terminal in vehicle to everything (V2X), virtual reality (virtual reality, VR) terminal equipment, augmented reality (augmented reality, AR) terminal equipment, wireless terminals in industrial control, wireless terminals in self-driving, wireless terminals in remote medical, smart grid Wireless terminals in transportation safety, wireless terminals in smart city, wireless terminals in smart home, etc.
- V2X virtual reality
- VR virtual reality
- AR augmented reality
- wireless terminals in industrial control wireless terminals in self-driving
- wireless terminals in remote medical smart grid Wireless terminals in transportation safety, wireless terminals in smart city, wireless terminals in smart home, etc.
- a terminal may sometimes also be referred to as user equipment (user equipment, UE), access terminal equipment, UE unit, mobile station, mobile station, remote station, remote terminal equipment, mobile equipment, wireless communication equipment, UE proxy or UE device, etc.
- This application provides a communication solution, constructing a network architecture with a center under the coverage of no cellular network. Under this network architecture, if it is detected that the MAC layer temporary communication parameters corresponding to member devices If the communication parameter conflicts, it is changed in time, which effectively avoids the temporary communication parameter conflict at the MAC layer and improves the reliability of the D2D communication.
- Fig. 3 is a schematic flowchart of a communication method provided by an embodiment of the present application, and the method can be applied to the above-mentioned first network/communication system.
- the first network/communication system includes a first management device and at least one member device, and each member device corresponds to a D2D communication MAC layer temporary communication parameter (may be referred to as "MAC layer temporary communication parameter" or "layer 2 parameter (layer 2 parameter) -2parameters)").
- the MAC layer temporary communication parameter is relative to the unique identifier (or permanent identifier) of the member device, and is used when the first management device and each member device perform D2D communication in the first network. Therefore, the identifiers of each device in the MAC layer temporary communication parameters are MAC layer temporary identifiers.
- Table 1 The structure of the MAC layer temporary communication parameters is shown in Table 1 below:
- the MAC layer temporary communication parameters include broadcast type and the identifier of the first management device.
- the MAC layer temporary communication parameter may also include an identifier of a member device.
- the MAC layer temporary communication parameter may also include the identifier of the multicast group.
- the above identifier of the member device is a random value.
- the MAC layer temporary communication parameters are uniformly allocated by the first management device, thereby avoiding the conflict of the MAC layer temporary communication parameters inside the first network.
- the identifier of the multicast group is generated by the group head device; or the identifier of the multicast group is allocated and maintained by the first management device; or the identifier of the multicast group is a set value.
- the specific implementation will be described in detail later.
- the method shown in Figure 3 is applicable to unicast or multicast scenarios.
- the method may include the following steps: S301.
- a second management device in a second network broadcasts a first synchronization message, where the first synchronization message includes an identifier of the second management device.
- the first management device receives the first synchronization message.
- the first management device is a management device of the first network
- the second management device is a management device of the second network.
- the first management device and the second management device broadcast synchronization messages periodically.
- the first management device may receive a first synchronization message broadcast by a second management device of a second network adjacent to the first network.
- the first synchronization message includes the identifier of the second management device.
- the first management device broadcasts a second synchronization message, where the second synchronization message includes the identifier of the first management device. Similarly, the first management device may also periodically broadcast the second synchronization message. The second management device may receive the second synchronization message broadcast by the first management device of the first network adjacent to the second network. The second synchronization message includes the identifier of the first management device. This step is optional and is indicated by a dotted line in the figure.
- the "broadcast" in the above steps S301 and S302 may be broadcast to devices within the entire network.
- the scope of the entire network includes the above-mentioned first network and second network.
- Each network may have a corresponding MAC layer temporary communication parameter, and the first synchronization message does not carry the MAC layer temporary communication parameter corresponding to the first network, therefore, the first management device may also receive the first synchronization message.
- the second synchronization message does not carry the MAC layer temporary communication parameters corresponding to the second network, therefore, the second management device may also receive the second synchronization message.
- the above-mentioned first synchronization message and second synchronization message may be time-frequency synchronization (SLSS) signals between devices, and at the same time send a master information block side chain (MasterInformationBlockSidelink) message through a sidelink broadcast control channel (SBCCH), wherein Carry management device identification information.
- SLSS time-frequency synchronization
- SBCCH sidelink broadcast control channel
- the first management device determines that the identifier of the first management device conflicts with the identifier of the second management device. After receiving the first synchronization message, the first management device acquires the identifier of the second management device therein, and compares it with the identifier of its own first management device. When the identifier of the first management device is the same as the identifier of the second management device, it is determined that the identifier of the first management device conflicts with the identifier of the second management device.
- the identifier of the first management device and the identifier of the second management device may be character strings, and the character strings may be compared one by one to determine whether the identifiers of the first management device and the identifiers of the second management device are the same.
- the first management device changes the identifier of the first management device. It can be known from Table 1 that the MAC layer temporary communication parameters include the identifier of the first management device. Each member device and the first management device in the first network may need to communicate with each member device and the second management device in the second network. Therefore, in order to avoid conflicts with MAC layer temporary communication parameters corresponding to member devices in other networks, when the first management device determines that the identifier of the first management device conflicts with the identifier of the second management device, the first management device changes the first The ID of the management device.
- the first management device can change the identifier of the first management device in the following ways:
- the first management device and the second management device can respectively set a timer, and the timing duration can be a random value.
- the first management device changes the identifier of the first management device.
- the first management device periodically listens to synchronization messages, and when it detects that the number of conflicts between the identifiers of the first management device and the identifiers of the second management device reaches a set number of times, the first management device changes the first The ID of the management device.
- the first management device detects that the identifier of the first management device conflicts with the identifier of the second management device, it changes the identifier of the first management device.
- the first management device broadcasts a first identity change message, where the first identity change message includes an updated identity of the first management device.
- the first member device receives the first identity change message.
- the first member device belongs to the at least one member device and is any member device in the at least one member device.
- each member device of the first network joins the first network, it acquires and saves the MAC layer temporary communication parameters corresponding to each member device.
- the MAC layer temporary communication parameters include the identity of the first management device. Therefore, when the first management device changes the identity of the first management device, the first management device broadcasts a first identity change message, which includes the updated first identity change message. An identifier of the management device, so that each member device updates the MAC layer temporary communication parameters saved by itself according to the updated identifier of the first management device.
- the first identity change message may further include an indication field.
- the indication field is 1 bit, and when the value of the indication field is "1", it is used to indicate that the first identity change message includes an updated first management device identity; when the value of the indication field is " 0", it is used to indicate that the first identity change message does not include the updated identity of the first management device.
- the value of the indication field is "0”, it is used to indicate that the first identification change message includes an updated first management device ID; when the value of the indication field is "1", it is used to Indicates that the first identity change message does not include the updated identity of the first management device.
- the first network may correspond to a multicast group
- the first identity change message may further include a fourth MAC layer temporary communication parameter corresponding to the multicast group. Then the first management device broadcasts the first identity change message, and the member devices in the first network receive the first identity change message, and can determine that the first identity change message is sent to itself; while the member devices in other networks After receiving the first identity change message, according to the fourth MAC layer temporary communication parameter, it can be determined that the first identity change message is not sent to itself, and the next operation will not be performed. Therefore, the "broadcast" in step S305 is aimed at member devices in the first network.
- the first member device changes the MAC layer temporary communication parameter of the D2D communication corresponding to the first member device.
- the first member device receives the first identifier change message broadcast by the first management device, and updates the MAC layer temporary communication parameters saved by itself according to the updated identifier of the first management device.
- a centralized network architecture under the coverage of a non-cellular network is constructed. Under this network architecture, if it is detected that the MAC layer temporary communication parameters corresponding to member devices If the MAC layer temporary communication parameter conflicts, it is changed in time, which effectively avoids the MAC layer temporary communication parameter conflict and improves the reliability of D2D communication.
- FIG. 4 is a schematic flowchart of another communication method provided by an embodiment of the present application, and the method may be applied to the above-mentioned first network/communication system.
- the first network/communication system includes a first management device and at least one member device, and each member device corresponds to a MAC layer temporary communication parameter.
- This embodiment mainly relates to unicast scenarios.
- the method may include the following steps: S401.
- the first member device sends a first request message to the first management device, the first request message is used to request to join the first network, and the request message includes a unique identifier of the first member device.
- the first management device receives the first request message.
- the first member device belongs to the at least one member device and is any member device in the at least one member device. This embodiment is described by using the first member device as an example.
- the first member device When the first member device intends to join the first network, it needs to obtain the first MAC layer temporary communication parameter corresponding to the first member device, so as to communicate with other member devices and the first management device in the first network. Therefore, the first member device sends a first request message to the first management device, where the first request message is used to request to join the first network, and the request message includes a unique identifier of the first member device.
- the unique identifier includes at least one of the following: a media access control (media access control, MAC) address, a device identifier, and an Android (Android) identifier. The unique identifier is used to uniquely identify the first member device.
- the first management device determines the first MAC layer temporary communication parameter corresponding to the first member device according to the unique identifier of the first member device.
- the first management device can distinguish other member devices according to the unique identifier of the first member device, and assign the first MAC layer temporary communication parameters to the first member device, so as to avoid conflicts with the first MAC layer temporary communication parameters of other member devices.
- the first management device sends a first response message to the first member device, where the first response message includes a first MAC layer temporary communication parameter.
- the first member device receives the first response message.
- the first member device receives the first response message, acquires and saves the first MAC layer temporary communication parameters therein.
- the second management device in the second network broadcasts a first synchronization message, where the first synchronization message includes an identifier of the second management device.
- the first management device receives the first synchronization message.
- this step reference may be made to step S301 in the foregoing embodiment.
- the first management device broadcasts a second synchronization message, where the second synchronization message includes the identifier of the first management device.
- the second synchronization message includes the identifier of the first management device.
- the first management device determines that the identifier of the first management device conflicts with the identifier of the second management device. For the specific implementation of this step, reference may be made to step S303 in the foregoing embodiment.
- the first management device changes the identifier of the first management device.
- this step reference may be made to step S304 in the foregoing embodiment.
- the first management device broadcasts a first identity change message, where the first identity change message includes an updated identity of the first management device.
- the first member device receives the first identity change message.
- this step reference may be made to step S305 in the foregoing embodiment.
- the first management device broadcasts a first indication message, where the first indication message is used to instruct at least one member device to stop sending and receiving services.
- the first management device broadcasts a first identity change message, the first identity change message includes the updated identity of the first management device, so that each member device updates the temporary MAC layer stored by itself according to the updated identity of the first management device communication parameters.
- the scope of the broadcast is each member device in the first network. Since each member device needs to update the MAC layer temporary communication parameters saved by itself, during the update period, if the service is still sent and received, D2D data packet reception error or parsing error may occur.
- the first management device broadcasts the first identification change Before, after or at the same time as the message (the execution order of steps S408 and S409 is not limited), the first indication information is broadcast, and the first indication information is used to instruct each member device in the first network to stop sending and receiving services.
- the first member device stops sending and receiving services. After receiving the first indication information broadcast by the first management device, the first member device stops sending and receiving services, so as to improve communication reliability.
- the first member device changes the identifier of the first management device in the MAC layer temporary communication parameters of the D2D communication corresponding to the first member device.
- step S306 for the specific implementation of this step, reference may be made to step S306 in the foregoing embodiment.
- the first management device broadcasts a second indication message, where the second indication message is used to instruct at least one member device to resume service sending and receiving.
- the first member device receives the second indication information.
- the first management device broadcasts second indication information, where the second indication information is used to instruct each member device in the first network to resume service sending and receiving. The broadcast is aimed at each member device in the first network.
- the first member device resumes service sending and receiving. After receiving the second indication information, the first member device resumes service sending and receiving. Specifically, the service is transceived based on the updated MAC layer temporary communication parameter.
- a centralized network architecture under the coverage of a non-cellular network is constructed. Under this network architecture, if it is detected that the MAC layer temporary communication parameters corresponding to member devices If the MAC layer temporary communication parameter conflicts, it will be changed in time, which effectively avoids the MAC layer temporary communication parameter conflict and improves the reliability of D2D communication; during the MAC layer temporary communication parameter change, suspend business transmission and reception, further improving D2D communication reliability.
- Fig. 5 illustrates a management device identification conflict detection and change process.
- Network A and Network B are included.
- Network A includes management device A1 and at least one member device (member device A2 and member device A3 are illustrated in the figure), and network B includes management device B1 and at least one member device (member device B2 and member device B3 are illustrated in the figure).
- the method may include the following steps: S501.
- the management device A1 broadcasts a first synchronization message, where the first synchronization message includes an identifier of the management device A1: 123 .
- the management device B1 receives the first synchronization message.
- the management device B1 When the identifiers of the management devices of the two networks conflict, it will cause the MAC layer temporary communication parameters corresponding to the member devices between the networks to conflict, affecting network communication. In order to be able to detect the conflict of the identifiers of the management devices in different networks, the management device B1 will periodically listen to the synchronization messages of other management devices. The management device B1 receives the first synchronization message broadcast by the management device A1. The broadcast is for the entire network.
- the management device B1 broadcasts a second synchronization message, where the second synchronization message includes the identifier of the management device B1: 123.
- the management device A1 receives the second synchronization message.
- the broadcast is for the entire network.
- the management device A1 Since the ID of the management device A1 is the same as the ID of the management device B1, the management device A1 determines that the ID of the management device A1 conflicts with the ID of the management device B1, starts the avoidance timer T1, and randomly selects the timing duration t1.
- the management device B1 determines that the identifiers of the management device B1 and the management device A1 conflict, starts the avoidance timer T2, and randomly selects the timing duration t2. Among them, t2 ⁇ t1.
- the timer T2 of the management device B1 times out. Since t2 ⁇ t1, the ID of the management device still conflicts.
- the management device B1 changes the ID of the management device to: 456.
- the management device B1 broadcasts a third synchronization message, where the third synchronization message includes the ID of the management device after updating: 456.
- the management device A1 receives the third synchronization message.
- the timer T1 of the management device A1 expires. Since the third synchronization message broadcast by the management device B1 carries the ID of the updated management device, the management device A1 determines that the ID of the management device A1 and the ID of the updated management device B1 are no longer If there is a conflict, continue to listen to the synchronization messages of other management devices.
- the management device B1 broadcasts first indication information, where the first indication information is used to instruct each member device in the network B to stop sending and receiving services.
- the broadcast is aimed at each member device in network B.
- the management device B1 broadcasts a first identifier change message, where the first identifier change message includes the identifier of the new management device: 456.
- the broadcast is aimed at each member device in network B.
- the execution order of the above-mentioned steps S507 and S508 is not limited, and may be executed at the same time; or step S507 may be executed first, and then step S508; or step S508 may be executed first, and then step S507 is executed.
- the member device B2 sends a change completion message.
- S509' The member device B3 sends a change completion message.
- the above-mentioned steps S509 and S509' are optional steps, which are indicated by dotted lines in the figure.
- the management device B1 may also broadcast the second indication information after broadcasting the first identity change message for a certain period of time, without waiting for the change completion message of each member device.
- the management device B1 broadcasts second indication information, where the second indication information is used to instruct each member device in the network B to resume service sending and receiving.
- the broadcast is aimed at each member device in network B.
- the first management device will monitor the heartbeat messages of the member devices to determine whether the member devices are on the network, so as to manage the MAC layer temporary communication parameters corresponding to the member devices.
- FIG. 6 which is a schematic diagram of a management flow of first MAC layer temporary communication parameters in a unicast scenario, the method may include the following steps: S601.
- the first member device joins the first network.
- it can refer to the above steps S401 to S403 to obtain the first MAC layer temporary communication parameters.
- the first management device periodically detects the state of the first member device.
- the first management device periodically monitors the heartbeat message of the first member device, so as to periodically detect the state of the first member device.
- the first management device judges whether the first member device is off-network? If yes, proceed to step S604; otherwise, proceed to step S602. Exemplarily, the first management device does not hear the heartbeat message of the first member device within a certain period of time, and determines that the first member device moves out of the coverage of the first network, that is, the first member device leaves the network.
- the first management device broadcasts an off-network notification message, where the off-network notification message is used to notify the first member device of off-network.
- the first management device determines that the first member device is off-network, broadcasts an off-network notification message to notify other member devices in the first network that the first member device is off-network, so that other member devices suspend communication with the first member device, Improve communication reliability.
- the broadcast is aimed at each member device in the first network.
- the first management device starts the second timer to determine whether the off-grid timeout? If not, continue to check whether it is timed out and proceed to step S606; if timed out, proceed to step S607. Specifically, the first management device starts a second timer, and judges whether a heartbeat message of the first member device is heard within the second timing period. If the first management device listens to the heartbeat message of the first member device within the second timing period, it judges that the off-network has not timed out; if the first management device does not listen to the heartbeat message of the first member device within the second timing period, Then it is judged that the off-grid timeout occurs.
- the first management device retains the first MAC layer communication parameters, and broadcasts a network presence notification message, where the network presence notification message is used to notify the first member device to re-enter the coverage of the first network. If the first member device leaves the network without timeout, the first management device retains the first MAC layer communication parameters, so as to avoid frequently allocating MAC layer temporary communication parameters. And the first management device broadcasts a network presence notification message to notify the first member device to re-enter the coverage of the first network, and other member devices in the first network can continue to communicate with the first member device.
- the above off-network means that the member device temporarily leaves the network, and the first management device does not delete the MAC layer temporary communication parameters corresponding to the member device.
- the member device re-enters the coverage of the first network, there is no need to re-apply for the MAC layer temporary communication parameters.
- the first management device broadcasts a network exit notification message, where the network exit notification message is used to notify the first member device to exit the first network. If the first member device leaves the network for a timeout, the first management device broadcasts a network exit notification message to notify the first member device to exit the first network, so that other member devices in the first network no longer communicate with the first member device.
- the first management device reclaims the first MAC layer communication parameters. If the first member device leaves the network for a timeout, the first management device reclaims the first MAC layer communication parameters, so as to improve the utilization rate of communication resources.
- the aforementioned withdrawal from the network means that a member device leaves the network for a long time, and the first management device deletes the MAC layer temporary communication parameters corresponding to the member device.
- the first management device deletes the MAC layer temporary communication parameters corresponding to the member device.
- FIG. 7 is a schematic flowchart of another communication method provided by an embodiment of the present application. This method can be applied to the above-mentioned first network/communication system, and mainly involves management of device change scenarios.
- the method may include the following steps: S701.
- the first management device broadcasts a management device change notification, and the management device change notification is used to notify that the first management device will be changed.
- the first management device broadcasts a management device change notification, and the management device change notification is used to notify that the first management device will be changed.
- the broadcast is aimed at each member device in the first network.
- at least one member device in the first network receives the management device change notification.
- the member device 1 and the member device 2 are used for illustration. Member device 1 and member device 2 receive the management device change notification.
- Member device 1 and member device 2 respectively send a second request message to the first management device, and the second request message includes at least one of the following information of the first member device: device priority, remaining power, direct communication Equipment Quantity.
- any member device in the first network may send a second request message to the first management device if it wishes to become a new management device.
- member device 1 and member device 2 respectively send second request messages to the first management device after receiving the management device change notification.
- the member device 1 and the member device 2 belong to the at least one member device, and are any one of the at least one member device.
- the second request message includes at least one of the following information of the member device: device priority (priority, P), remaining power (battery, B), and the number of devices capable of direct communication (number, N).
- the device priority can be set by the factory or configured by the network.
- the first management device has the highest priority
- the auxiliary devices of the management device have the second highest priority
- other member devices have the lowest priority by default.
- a device capable of direct communication refers to a device that can perform point-to-point communication with other member devices in the first network where it is currently located, without relaying messages through the first management device.
- all member devices perform clock synchronization with the first management device. Therefore, if the distance between member devices is relatively long, the time-frequency deviation will be large, and direct communication cannot be performed.
- the member device determines whether the peer device can communicate directly by listening to and analyzing the heartbeat messages of other member devices.
- the large number of devices that can directly communicate with a certain member device means that there are many devices around it. When the member device becomes a new management device, these devices can correctly parse the new management device message, which may reduce the number of member devices that need to re-connect to the network to the greatest extent, and reduce the interruption of network communication caused by management device changes.
- the first management device receives the second request message from the member device 1 and the member device 2 .
- the first management device determines a third management device in at least one member device according to at least one piece of information, where the third management device is a new management device of the first network.
- the first management device determines that the third management device is the member device 1, that is, the first management device selects the member device 1 as the new management device.
- the first management device After receiving at least one second request message from at least one member device, the first management device determines a third management device in at least one member device according to at least one piece of information carried in the at least one second request message, including at least one of the following operations : the remaining power of at least one member device is greater than or equal to the first power threshold, the first management device determines the member device with the highest device priority as the third management device; or the remaining power of at least one member device is greater than or equal to the first power threshold, And at least one member device has the same device priority, the first management device determines the member device with the largest number of direct communication devices as the third management device; or the remaining power of at least one member device is less than the first power threshold, the first management device determines The member device with the most remaining power serves as the third management device; or the remaining power of at least one member device is less than the first power threshold, and the first management device determines the member device with the largest number of directly communicating devices as the third management device.
- the first management device broadcasts a management device change result notification, and the management device change result notification includes the second MAC layer temporary communication parameters corresponding to the third management device.
- the first member device receives the management device change result notification.
- the first management device broadcasts a management device change result notification
- the management device change result notification includes the second MAC layer temporary communication parameters corresponding to the third management device.
- the broadcast is aimed at each member device in the first network.
- the management device change result notification includes the first MAC layer temporary communication parameters corresponding to member device 1, and member device 1 and member device 2 receive the management device change result notification, so that the member devices communicate with the new management device. communication.
- the first management device sends the network configuration parameters to the member device 1.
- member device 1 receives the network configuration parameters.
- the first management device After the management device is changed, in order to improve communication efficiency, the first management device sends network configuration parameters to the new management device (member device 1 ).
- the network configuration parameters include original member list information, network timing information, and the like.
- Member device 1 receives and saves the network configuration parameters.
- the member device 1 sends a message to the first management device, which is used to indicate the completion of receiving the network configuration parameters.
- the first management device receives the message and knows that the member device 1 has received the network configuration parameters, and the first management device can release the network configuration parameters stored by itself, so as to improve the utilization rate of the storage space.
- the first management device broadcasts a management device change completion message.
- member device 1 and member device 2 receive the management device change completion message, so that each member device in the first network can communicate with the new management device.
- the broadcast is aimed at each member device in the first network.
- the new management device (that is, the member device 1) periodically broadcasts a synchronization message. The broadcast is for the entire network. S709. After receiving the synchronization message, the first management device (becoming a member device of the first network) synchronizes to a new management device. S709'. After receiving the synchronization message, the member device 2 synchronizes to the new management device.
- each central network has only one management device, which can be changed.
- another member device may be reselected to become a new management device.
- factors such as the device priority of the new management device, remaining power, and the number of devices capable of direct communication are considered comprehensively, thereby improving the reliability of the selected new management device.
- a multicast group can be recreated in the first network for communication between some member devices.
- a multicast group includes a group head device and at least one group member device.
- FIG. 8 which is a schematic diagram of a multicast group provided by the embodiment of the present application, member devices 1 to 3 are part of the member devices in the first network.
- the first network includes a multicast group A, and the multicast group A includes member devices 1 to 3 (of course, the multicast group A may include more devices, which is not limited in this application).
- member device 1 is the group head device of multicast group A (referred to as group head A1)
- member device 2 and member device 3 are group member devices of multicast group A (referred to as group member A3 and group member A2) .
- Multicast communication can be performed between the group head device and each group member device, and the group head device and each group member device can also communicate with the first management device.
- the group head device is the initiator device of the multicast group A, responsible for notifying other member devices to join the multicast group A, and assigning the third MAC layer temporary communication parameters corresponding to the multicast group.
- the third MAC layer temporary communication parameters include the broadcast type (multicast), the identifier of the first management device, the identifier of the member device and the identifier of the multicast group.
- the identifier of the member device may be a random value.
- the identifier of the multicast group is generated by the group head device; or the identifier of the multicast group is allocated and maintained by the first management device; or the identifier of the multicast group is a set value.
- Group member devices can actively or passively join multicast group A.
- the first network includes a multicast group
- the multicast group includes at least two member devices
- the at least two member devices include a group head device and a group member device
- the first member device is the group head device
- the method may include the following steps:
- the group head device establishes a multicast group, and obtains a third MAC layer temporary communication parameter corresponding to the multicast group.
- the group head device after the group head device decides to establish a multicast group, it can generate the identifier of the multicast group, and obtain the identifier of the first management device and the identifier of the group head device from the first management device (it can be obtained when the group head device joins obtained during the first network), so as to obtain the temporary communication parameters of the third MAC layer. That is, the identifier of the multicast group is locally generated and maintained by the group head device.
- the identifier of the multicast group is uniformly allocated and maintained by the first management device, so as to prevent the temporary communication parameters of the third MAC layer from conflicting.
- the identifier of the multicast group may be a random value. Therefore, the group head device can apply to the first management device for establishing a multicast group, and obtain the third MAC layer temporary communication parameters from the first management device. After the group head device or group member device leaves the network and re-enters the network, it can apply to continue using the previous temporary communication parameters of the third MAC layer. However, if the identity of the first management device changes, the group head device or group member devices need to update the locally stored third MAC layer temporary communication parameters to continue multicast communication.
- the identifier of the multicast group is no longer generated by the group head device or assigned by the first management device, but is a set value.
- the third MAC layer temporary communication parameters agreed in advance to be used no longer need to be applied to the first management device.
- the multicast establishment process is no longer required, all member devices are group members, and no distinction is made between the packet head device and the group member devices.
- the group head device broadcasts an establishment complete message, where the establishment complete message includes a group member list and third MAC layer temporary communication parameters.
- the group member device receives the establishment complete message.
- the group head device broadcasts an establishment complete message to notify each group member device that multicast communication can start.
- the establishment completion message includes a list of group members and temporary communication parameters of the third MAC layer.
- the group member list includes the group head device and each group member device.
- the third MAC layer temporary communication parameter is used for the group head device in the multicast group to perform multicast communication with each group member device.
- the broadcast is aimed at each group member device in the multicast group.
- the first management device broadcasts a first identity change message, where the first identity change message includes an updated identity of the first management device.
- the identifier of the first management device may also change.
- the broadcast is aimed at each member device in the first network.
- the group head device updates the temporary communication parameters of the third MAC layer according to the first identity change message.
- the group head device Since the third MAC layer temporary communication parameters include the identity of the first management device, the group head device needs to update the locally stored third MAC layer temporary communication parameters after receiving the first identity change message. Specifically, the identifier of the first management device in the temporary communication parameters of the third MAC layer is updated.
- the group head device broadcasts a second identity change message, where the second identity change message includes an updated third MAC layer temporary communication parameter.
- the group member device receives the second identity change message, and updates the third MAC layer temporary communication parameter saved by itself.
- the group head device After updating the third MAC layer temporary communication parameters, the group head device broadcasts a second identification change message to notify each group member device to update its locally stored third MAC layer temporary communication parameters.
- the second identity change message includes updated third MAC layer temporary communication parameters. The broadcast is aimed at each group member device in the multicast group.
- a multicast group can be created in the first network, each multicast group corresponds to a MAC layer temporary communication parameter, the group head device and each group member device in the multicast group
- the multicast communication is carried out by using the MAC layer temporary communication parameters, which improves the communication efficiency.
- the group head device updates the MAC layer temporary communication parameters and broadcasts them to the group member devices, further improving the reliability of communication.
- the group head device establishes a multicast group, and there may be an active group establishment mode and a passive group establishment mode, for details, refer to FIG. 10 .
- the active group building method that is, group building method a, may include the following steps: S1001a, S1001a'.
- the group head device invites group member device 1 and group member device 2 to join multicast group A.
- the group head device After the group head device decides to establish a multicast group, it can obtain the member list of the first network from the first management device, select the group member device to be added from the member list, and send a message to invite the corresponding member device to join the multicast group .
- the group head device is vehicle A, and the user of vehicle A decides to build a temporary fleet. Vehicle A may invite vehicles within a set range of where vehicle A is located to join the temporary fleet.
- Group member device 1 and group member device 2 agree to join multicast group A. After the member device receives the invitation message from the group head device, if it agrees to join the multicast group, it will reply a confirmation message, indicating that it agrees to join the multicast group.
- the group head device broadcasts an establishment complete message, where the establishment complete message includes a group member list and third MAC layer temporary communication parameters.
- the establishment complete message includes a group member list and third MAC layer temporary communication parameters.
- group member device 1 and group member device 2 receive the establishment complete message.
- the group head device After receiving the confirmation message from member device 2 and member device 3, the group head device establishes multicast group A, generates the identity of multicast group A, and obtains the identity of the first management device and the identity of the group head device from the first management device , so as to obtain the temporary communication parameters of the third MAC layer.
- the group head device broadcasts an establishment complete message to notify each group member device that multicast communication can start.
- the establishment completion message includes a list of group members and temporary communication parameters of the third MAC layer.
- the group member list includes the group head device, group member device 1, and group member device 2.
- the third MAC layer temporary communication parameter is used for the group head device in the multicast group A to perform multicast communication with each group member device.
- the passive group building method may include the following steps: S1001b.
- the group head device broadcasts the information of the multicast group A, and the information includes the third MAC layer temporary communication parameters corresponding to the multicast group A.
- group member device 1 and group member device 2 receive the information.
- the group head device decides to establish a multicast group A, it generates an identifier of the multicast group A, and obtains the identifier of the first management device and the identifier of the group head device from the first management device, so as to obtain the temporary communication parameters of the third MAC layer.
- the group head device broadcasts information about the multicast group A to be established.
- the information includes the third MAC layer temporary communication parameters corresponding to the multicast group A.
- the information may also include the function, name, etc. of the multicast group A.
- the group member device 1 and the group member device 2 respectively apply to join the multicast group A.
- the group head device receives the application. After receiving the information, other member devices in the first network may send application information to the group head device to apply for joining the multicast group A if they decide to join the multicast group A.
- the group head device agrees with the group member device 1 and the group member device 2 to join the multicast group A respectively. After the group head device receives the application for joining the group, if it agrees, it will reply the message that the corresponding member device has successfully joined the multicast group A, indicating that it agrees that group member device 1 and group member device 2 join the multicast group A, and successfully joined the multicast group a.
- the group head device broadcasts an establishment complete message, where the establishment complete message includes a list of group members.
- group member device 1 and group member device 2 receive the establishment complete message.
- the group head device After the group head device completes the establishment process, it broadcasts an establishment complete message to notify each group member device that the multicast communication can be started.
- the setup complete message includes a list of group members. The broadcast is aimed at each group member device in the multicast group.
- the following describes the specific implementation of the above steps for specific scenarios: as shown in Figure 11, it is a schematic flow diagram of another communication method provided by the embodiment of this application, which is applied to the off-network scenario of the group head device .
- the method may include the following steps: S1101.
- the first member device (group head device) moves out of network coverage.
- the first management device cannot monitor the heartbeat message of the group head device, and can preliminarily determine that the group head device has moved out of the network coverage.
- the second member device (group member device) broadcasts a heartbeat message.
- the first management device receives the heartbeat message.
- the broadcast is directed to the first network.
- the first management device judges whether the heartbeat message of the first member device is not received within the third timing period. After the first management device fails to monitor the heartbeat message of the group head device, it may start a third timer, and determine whether it has heard the heartbeat message of the group head device within the third timing period.
- the first management device broadcasts a first member device off-network message.
- the second member device receives the off-network message. If the first management device cannot monitor the heartbeat message of the group head device within the third timing period, it determines that the group head device is off-network, and broadcasts the group head device off-network message to notify each group member device that the group head device is off-network, Each group member device suspends the multicast communication with the group head device. The broadcast is aimed at each member device in the first network.
- the second member device continues to send and receive multicast messages.
- each member device has obtained the third MAC layer temporary communication parameter, and the third MAC layer temporary communication parameter has not changed, therefore, each member device can still continue to send and receive multicast messages.
- the off-network of the group head device can be divided into two scenarios: off-network without timeout and off-network timeout.
- the following steps may be included: S1106.
- the first member device re-enters the network coverage.
- the group head device re-enters the network coverage, and the first management device can monitor the heartbeat message of the group head device.
- the second member device (group member device) broadcasts a heartbeat message.
- the first management device receives the heartbeat message.
- the second member device broadcasts a heartbeat message, indicating that the second member device is on the network. The broadcast is aimed at each group member device in the multicast group.
- the first management device broadcasts a message that the first member device is online again.
- the first member device and the second member device receive the network re-entry message of the first member device.
- the first management device After receiving the heartbeat message from the group head device again, the first management device determines that the group head device is on the network again, and broadcasts the group head device presence message to notify each group member device that the group head device can continue to perform multicast communication with the group head device.
- the broadcast is aimed at each group member device in the multicast group.
- the first member device judges whether the identifier of the first management device has changed, and if so, proceeds to step S1111; otherwise, proceeds to step S1110.
- the group head device leaves the network and re-enters the network, if it receives the first identity change message broadcast by the first management device, it indicates that the identity of the first management device has changed; if it does not receive the first identity broadcast by the first management device If the change message indicates that the identifier of the first management device has not changed.
- the first member device continues to send and receive multicast group messages. If the identity of the first management device remains unchanged, the group head device can continue to perform multicast communication with each group member device, and send and receive multicast messages.
- the first member device updates the third MAC layer temporary communication parameter. If the identity of the first management device changes, since the third MAC layer temporary communication parameters include the identity of the first management device, when the group head device receives the first identity change message, it needs to update the locally stored third MAC Layer temporary communication parameters. Specifically, the identifier of the first management device in the temporary communication parameters of the third MAC layer is updated.
- the first member device sends and receives the multicast group message.
- the group head device can send and receive multicast group messages based on the updated third MAC layer temporary communication parameters.
- the group head device may also broadcast a second identity change message, so as to notify each group member device to update its locally stored third MAC layer temporary communication parameters.
- the second identity change message includes updated third MAC layer temporary communication parameters.
- the following steps may be included:
- the first management device judges whether the first member device has left the network and timed out. When the first management device determines that the group head device is off-network, it can start the third timer, and if it does not hear the heartbeat message of the group head device within the third time period, it can determine that the group head device has left the network and timed out.
- the first management device broadcasts a message that the first member device has left the network.
- the second member device receives the network exit message of the first member device.
- the first management device broadcasts a message that the first member device exits the network, so as to notify each group member device to stop performing multicast communication with the group head device.
- the broadcast is aimed at each member device in the first network.
- the second member device stops sending and receiving the multicast group message. After each group member device receives the message that the group head device exits the network, the multicast group is disbanded, and each group member device stops sending and receiving multicast group messages.
- the first member device re-enters the network coverage. After the group head device exits the network, it re-enters the network coverage of the first network.
- the first member device applies for network access again. After the timeout of the first member device leaving the network, the first management device has deleted the first MAC layer temporary communication parameters corresponding to the first member device, and the first member device needs to re-apply for network access.
- the first management device reallocates the first MAC layer temporary communication parameters.
- the first member device reacquires the first MAC layer temporary communication parameter.
- the first MAC layer temporary communication parameter may be the same as or different from the first MAC layer temporary communication parameter before the first member device exits the network.
- the first member device re-establishes the multicast group. After the group head device exits the network, the multicast group is disbanded. If necessary, the multicast group needs to be re-established.
- FIG. 12 it is a schematic flowchart of another communication method provided by the embodiment of the present application, which is applied to scenarios where the group head device goes off-net and group member devices go off-net.
- the method may include the following steps: S1201.
- the first member device broadcasts a heartbeat message.
- the first management device receives the heartbeat message.
- the first member device broadcasts a heartbeat message, indicating that the group head device is on the network.
- the broadcast is aimed at each member device in the first network.
- the second member device moves out of the network coverage.
- the first management device cannot monitor the heartbeat message of the group member device, and may preliminarily determine that the group member device has moved out of the network coverage of the first network.
- the first management device may start a fourth timer, and determine whether it has not received the heartbeat message of the group member device within the fourth timing period.
- the first management device broadcasts an off-network message of the second member device.
- the first member device receives the off-network message of the second member device. If the first management device has not received the heartbeat message from the group member device within the fourth timing period, it can determine that the component device is off-net, and broadcast an off-net message to notify the group head device and other group member devices to suspend communication with the group Group member devices perform multicast communication. The broadcast is aimed at each member device in the first network.
- the off-network of group member devices can be divided into the scenarios that the group member devices leave the network without timeout and the group member devices leave the network with timeout.
- a scenario is a scenario where a group member device has not left the network for a timeout and the ID of the management device is changed, which may include the following steps: S1205.
- the ID of the first management device is changed.
- the identifier of the first management device is changed.
- the second member device re-enters the network coverage.
- the group member equipment re-enters the network coverage of the first network within the fourth timing period.
- the second member device broadcasts a heartbeat message.
- the first management device receives the heartbeat message.
- the group member equipment re-enters the network coverage of the first network, and then broadcasts a heartbeat message. If the first management device re-monitors the heartbeat message of the group member device within the fourth timing period, it indicates that the group member device re-enters the network coverage.
- the broadcast is aimed at each member device in the first network.
- the first management device broadcasts a message that the second member device is online again.
- the first member device and the second member device receive the second member device's network re-entry message.
- the first management device re-monitors the heartbeat message of the group member device within the fourth timing period, and then broadcasts the group member device re-connection message to notify the group head device and other group member devices that they can perform group operations with the group member device. broadcast communication.
- the broadcast is aimed at each member device in the first network.
- the second member device determines whether the identifier of the first management device is changed.
- the member devices of the group receive the network re-connection message broadcast by the first management device, and the re-connection message may include the fourth MAC layer temporary communication parameter.
- the fourth MAC layer temporary communication parameter is a MAC layer temporary communication parameter corresponding to the first network.
- the fourth MAC layer temporary communication parameter includes the identifier of the first management device, and the group member device can judge whether the identifier of the first management device is changed according to the re-connection message.
- the group head device may also notify the group member devices that the identifier of the first management device changes. For example, after receiving the first identity change message broadcast by the first management device, the group head device updates the third MAC layer temporary communication parameter saved by itself, and broadcasts the updated third MAC layer temporary communication parameter. The group member devices receive and store the updated third MAC layer temporary notification parameters.
- the second member device updates the third MAC layer temporary communication parameter. After obtaining the updated identifier of the first management device, the group member device may update the third MAC layer temporary communication parameter saved by itself.
- the second member device sends and receives a multicast group message according to the updated third MAC layer temporary communication parameter. Further, another scenario is that the group member device leaves the network without timeout and the group head device leaves the network, and the identity of the group head device changes.
- the first member device connects to the network again after leaving the network for a timeout.
- the group head device disconnects from the network and connects to the network after a timeout, and the group head device re-applies to access the first network.
- the group head device obtains the first MAC layer temporary communication parameter from the first management device again.
- the second member device re-enters the network coverage.
- the group member equipment re-enters the network coverage of the first network within the fourth timing period.
- the second member device broadcasts a heartbeat message.
- the first management device receives the heartbeat message.
- the group member equipment re-enters the network coverage of the first network, and then broadcasts a heartbeat message. If the first management device re-monitors the heartbeat message of the group member device within the fourth timing period, it indicates that the group member device re-enters the network coverage.
- the broadcast is aimed at each member device in the first network.
- the first management device broadcasts a message that the second member device is online again.
- the first member device and the second member device receive the message that the second member device is online again.
- the first management device re-monitors the heartbeat message of the group member device within the fourth timing period, and then broadcasts the group member device re-connection message to notify the group head device and other group member devices that they can perform group operations with the group member device.
- broadcast communication The broadcast is aimed at each member device in the first network.
- the second member device determines whether the identifier of the first member device is changed.
- the group member device can obtain the ID of the group head device according to the re-network message, and compare it with the ID of the group head device in the previously saved third MAC layer temporary communication parameters to determine whether the group head device ID has changed .
- the second member device deletes the third MAC layer temporary communication parameter. If it is determined that the identity of the group head device has changed, the group member device deletes the stored temporary communication parameters of the third MAC layer. The multicast group is disbanded.
- the second member device applies to join the multicast group again.
- group member device to reapply to join the multicast group refer to the way of actively or passively joining the multicast group in the embodiment shown in FIG. 10 .
- Another scenario is a scenario where a group member device goes off-net and times out.
- the first management device determines whether the second member device's off-network timeout occurs. If the first management device does not hear the heartbeat message of the member device of the group within the fourth timing period, it may determine that the member device of the group has left the network and timed out.
- the first management device broadcasts a message that the second member device exits the network.
- the first member device receives the network exit message of the second member device.
- the first management device determines that the group member device has timed out of the network, it broadcasts the group member device exit network message to notify the group head device and other group member devices to stop multicast communication with the group member device.
- the broadcast is aimed at each member device in the first network.
- FIG. 13 and FIG. 14 are schematic structural diagrams of possible communication devices provided by the embodiments of the present application. These communication apparatuses can be used to implement the functions of the first management device or the first member device in the above method embodiments, and therefore can also realize the beneficial effects of the above method embodiments.
- the communication device may be the first management device 201 as shown in FIG. 2, or the member device 202 as shown in FIG. 2, or it may be a Modules (such as chips).
- a communication device 1300 includes a processing unit 1310 and a transceiver unit 1320 .
- the communication apparatus 1300 is configured to implement the functions of the first management device or the first member device in the method embodiments shown in FIGS. 3 to 12 above. Any of the above units may be implemented by software, hardware or a combination of both.
- the processing unit 1310 is a processor
- the transceiving unit 1320 is a wireless transceiver.
- the transceiver unit 1320 is used to receive the first synchronization message from the second management device in the second network, so The first synchronization message includes the identifier of the second management device; the processing unit 1310 is configured to determine that the identifier of the first management device conflicts with the identifier of the second management device; the processing unit 1310 is further for changing the identifier of the first management device; and the transceiving unit 1320 is further configured for broadcasting a first identifier change message, where the first identifier change message includes the updated identifier of the first management device.
- the MAC layer temporary communication parameters further include a broadcast type and an identifier of each member device.
- the transceiving unit 1320 is further configured to broadcast a second synchronization message, where the second synchronization message includes the identifier of the first management device.
- the transceiving unit 1320 is further configured to broadcast a first indication message, the first indication message is used to instruct the at least one member device to stop sending and receiving services; and the transceiving unit 1320 is further configured to broadcast the first indication message Two indication messages, the second indication message is used to instruct the at least one member device to resume service sending and receiving.
- the transceiving unit 1320 is further configured to receive a first request message from a first member device, where the first request message is used to request to join the first network, and the first request message includes the The unique identifier of the first member device, where the first member device belongs to the at least one member device; the processing unit 1310 is further configured to determine, according to the unique identifier of the first member device, that the first member device corresponds to The first MAC layer temporary communication parameter; and the transceiving unit 1320 is further configured to send a first response message to the first member device, where the first response message includes the first MAC layer temporary communication parameter.
- the transceiving unit 1320 is also used to broadcast a management device change notification, and the management device change notification is used to notify that the first management device will be changed; At least one second request message of at least one member device, where the at least one second request message includes at least one of the following information of each device in the at least one member device: device priority, remaining power, and the number of devices capable of direct communication;
- the processing unit 1310 is further configured to determine a third management device in the at least one member device according to the at least one piece of information, where the third management device is a new management device of the first network; and the The transceiver unit 1320 is further configured to broadcast a management device change result notification, where the management device change result notification includes the second MAC layer temporary communication parameter corresponding to the third management device.
- the transceiver unit 1320 is configured to receive a first identity change message from the first management device,
- the first identity change message includes an updated identity of the first management device, the first member device belongs to the at least one member device;
- the processing unit 1310 is configured to change the corresponding The temporary communication parameters of the first MAC layer.
- the transceiving unit 1320 is further configured to receive a first indication message from the first management device, where the first indication message is used to instruct the at least one member device to stop sending and receiving services; the processing unit 1310, further configured to stop sending and receiving services; the transceiving unit 1320, further configured to receive second indication information from the first management device, where the second indication message is used to instruct the at least one member device to resume services transceiving; and the processing unit 1310 is further configured to resume service transceiving.
- the first MAC layer temporary communication parameter further includes a broadcast type and an identifier of the first member device.
- the transceiving unit 1320 is further configured to send a first request message to the first management device, where the first request message is used to request to join the first network, and the request message includes the first A unique identifier of a member device; and the transceiving unit 1320 is further configured to receive a first response message from the first management device, where the first response message includes the first MAC layer temporary communication parameter.
- the transceiving unit 1320 is further configured to receive a management device change notification from the first management device, the management device change notification is used to notify that the first management device will be changed; the transceiving unit 1320 , further configured to send a second request message to the first management device, where the second request message includes at least one of the following information of the first member device: device priority, remaining power, number of devices capable of direct communication; The transceiver unit 1320 is further configured to receive a change completion message from the first management device, the management device change result notification includes the second MAC layer temporary communication parameters corresponding to the third management device, and the third management device is A new management device of the first network.
- the first network includes a multicast group, the multicast group includes at least two member devices, the at least two member devices include a group head device and a group member device, and the first member device is all The group head device; the processing unit 1310 is also configured to establish the multicast group and obtain the third MAC layer temporary communication parameters corresponding to the multicast group, the third MAC layer temporary communication parameters include broadcast type, The identifier of the first management device, the identifier of the multicast group; and the transceiver unit 1320, further configured to broadcast an establishment completion message, the establishment completion message including a group member list and the third MAC layer temporary communication parameters, the group member list includes the first MAC layer temporary communication parameters and the MAC layer temporary communication parameters corresponding to the group member devices.
- the identifier of the multicast group is generated by the first member device; or the identifier of the multicast group is allocated by the first management device; or the identifier of the multicast group is set value.
- the processing unit 1310 is further configured to update the third MAC layer temporary communication parameter according to the first identity change message; and the transceiving unit 1320 is further configured to send to the group member device A second identity change message, where the second identity change message includes the updated third MAC layer temporary communication parameters.
- processing unit 1310 and the transceiver unit 1320 can be directly obtained by referring to related descriptions in the method embodiments shown in FIG. 3 to FIG. 12 , and will not be repeated here.
- a communication device 1400 includes a processor 1410 and an interface circuit 1420 .
- the processor 1410 and the interface circuit 1420 are coupled to each other.
- the interface circuit 1420 may be a transceiver or an input-output interface.
- the communication device 1400 may further include a memory 1430 for storing instructions executed by the processor 1410 or storing input data required by the processor 1410 to execute the instructions or storing data generated after the processor 1410 executes the instructions.
- the processor 1410 is used to implement the functions of the processing unit 1310
- the interface circuit 1420 is used to implement the functions of the transceiver unit 1320 .
- the terminal chip implements the functions of the terminal in the above method embodiment.
- the terminal chip receives information from other modules in the terminal (such as radio frequency modules or antennas), and the information is sent to the terminal by the base station; or, the terminal chip sends information to other modules in the terminal (such as radio frequency modules or antennas), and the The information is sent by the terminal to the base station.
- the base station chip implements the functions of the base station in the above method embodiment.
- the base station chip receives information from other modules in the base station (such as radio frequency modules or antennas), and the information is sent to the base station by the terminal; or, the base station chip sends information to other modules in the base station (such as radio frequency modules or antennas). The information is sent by the base station to the terminal.
- the processor in the embodiments of the present application can be a central processing unit (Central Processing Unit, CPU), and can also be other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application-specific integrated circuits (Application Specific Integrated Circuit, ASIC), Field Programmable Gate Array (Field Programmable Gate Array, FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof.
- a general-purpose processor can be a microprocessor, or any conventional processor.
- the method steps in the embodiments of the present application may be implemented by means of hardware, or may be implemented by means of a processor executing software instructions.
- Software instructions can be composed of corresponding software modules, and software modules can be stored in random access memory, flash memory, read-only memory, programmable read-only memory, erasable programmable read-only memory, electrically erasable programmable read-only Memory, registers, hard disk, removable hard disk, compact disc read-only memory (CD-ROM) or any other form of storage medium known in the art.
- An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium.
- the storage medium may also be a component of the processor.
- the processor and storage medium can be located in the ASIC.
- the ASIC can be located in the base station or the terminal.
- the processor and the storage medium may also exist in the base station or the terminal as discrete components.
- all or part of them may be implemented by software, hardware, firmware or any combination thereof.
- software When implemented using software, it may be implemented in whole or in part in the form of a computer program product.
- the computer program product comprises one or more computer programs or instructions. When the computer program or instructions are loaded and executed on the computer, the processes or functions described in the embodiments of the present application are executed in whole or in part.
- the computer may be a general purpose computer, a special purpose computer, a computer network, a base station, user equipment or other programmable devices.
- the computer program or instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer program or instructions may be downloaded from a website, computer, A server or data center transmits to another website site, computer, server or data center by wired or wireless means.
- the computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server or a data center integrating one or more available media.
- the available medium may be a magnetic medium, such as a floppy disk, a hard disk, or a magnetic tape; it may also be an optical medium, such as a digital video disk; and it may also be a semiconductor medium, such as a solid state disk.
- “at least one” means one or more, and “multiple” means two or more.
- “And/or” describes the association relationship of associated objects, indicating that there may be three types of relationships, for example, A and/or B, which can mean: A exists alone, A and B exist simultaneously, and B exists alone, where A, B can be singular or plural.
- the character “/” generally indicates that the contextual objects are an “or” relationship; in the formulas of this application, the character “/” indicates that the contextual objects are a "division” Relationship.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
一种通信方法及装置、存储介质、程序产品。第一管理设备接收来自第二网络中的第二管理设备的第一同步消息,该第一同步消息包括第二管理设备的标识;第一管理设备的标识与第二管理设备的标识冲突时,变更第一管理设备的标识;以及广播第一标识变更消息,其中包括更新的第一管理设备的标识。各成员设备分别对应一个D2D通信的MAC层临时参数。该MAC层临时参数包括第一管理设备的标识。本申请构建了一种无蜂窝网络覆盖下的有中心的网络架构,在该网络架构下,若检测到成员设备对应的MAC层临时通信参数与其它网络中的MAC层临时通信参数冲突,则及时进行变更,有效地避免了MAC层临时通信参数冲突,提高了D2D通信的可靠性。
Description
本申请涉及通信技术领域,尤其涉及一种通信方法及装置、存储介质、程序产品。
基于蜂窝网络的设备到设备(device-to-device,D2D)通信,或称为邻近服务(proximity service,ProSe),是指用户数据可不经网络中转而直接在终端之间传输。如图1所示的D2D通信模式示意图,D2D技术有三种通信模式:模式1是指D2D设备在蜂窝网络覆盖范围内进行通信;模式2是中继传输,蜂窝网络覆盖范围外的D2D设备通过覆盖范围内的D2D设备和基站进行通信;模式3不借助基站,允许D2D设备间直接通信,或进行多跳的数据通信。
D2D数据包的媒介接入控制协议数据单元(medium access control protocol data unit,MAC PDU)的头部包括源设备标识和目的设备标识。源设备标识、目的设备标识是一种层2标识(layer-2 identifier),固定为24比特。D2D设备收到数据包后,根据目的设备标识来识别数据包是否是发送给自己的。
对于有网络覆盖时,层2标识由核心网中的直接提供功能(direct provisioning function,DPF)单元分配,可以保证全局唯一。对于无网络覆盖(上述模式3)时,层2标识由D2D设备预置或自己分配,不能保证全局唯一。当层2标识冲突时,会导致通信失败,增加设备功耗。特别地,当D2D设备一对一通信和一对多通信共存时,如果层2标识冲突,会导致大量无效的数据包处理。因此,当前没有有效的机制检测标识冲突。
发明内容
本申请提供一种通信方法及装置、存储介质、程序产品,以避免D2D通信的MAC层临时通信参数冲突,提高通信的可靠性。
第一方面,提供了一种通信方法,应用于第一网络,所述第一网络包括第一管理设备和至少一个成员设备,各成员设备分别对应一个D2D通信的MAC层临时通信参数,所述MAC层临时通信参数包括所述第一管理设备的标识,所述方法包括:所述第一管理设备接收来自第二网络中的第二管理设备的第一同步消息,所述第一同步消息包括所述第二管理设备的标识;所述第一管理设备确定所述第一管理设备的标识与所述第二管理设备的标识冲突;所述第一管理设备变更所述第一管理设备的标识;以及所述第一管理设备广播第一标识变更消息,所述第一标识变更消息包括更新的所述第一管理设备的标识。在该第一方面中,构建了一种无蜂窝网络覆盖下的有中心的网络架构,在该网络架构下,若检测到成员设备对应的MAC层临时通信参数与其它网络中的MAC层临时通信参数冲突,则及时进行变更,有效地避免了MAC层临时通信参数冲突,提高了D2D通信的可靠性。
可选地,所述第一管理设备的标识与所述第二管理设备的标识是MAC层临时标识。
在一种可能的实现中,所述MAC层临时通信参数还包括播类型和各成员设备的标识。在该实现中,通过播类型可以区分该MAC层临时通信参数是单播场景下的成员设备对应的MAC层临时通信参数,或组播组对应的MAC层临时通信参数。
在另一种可能的实现中,所述各成员设备的标识为随机值。
在又一种可能的实现中,所述播类型为组播,所述MAC层临时通信参数还包括组播组 的标识。在该实现中,所述组播组的标识是由所述第一成员设备生成的;或所述组播组的标识是由所述第一管理设备分配的;或所述组播组的标识是设定值。
在又一种可能的实现中,所述方法还包括:所述第一管理设备广播第二同步消息,所述第二同步消息包括所述第一管理设备的标识。在该实现中,各网络中的管理设备均周期性地广播同步消息,以避免MAC层临时通信参数冲突。
在又一种可能的实现中,所述第一管理设备变更所述第一管理设备的标识后,以及所述第一管理设备广播第一标识变更消息前,所述方法还包括:所述第一管理设备广播第一指示消息,所述第一指示消息用于指示所述至少一个成员设备停止业务收发;以及所述第一管理设备广播第一标识变更消息后,所述方法还包括:所述第一管理设备广播第二指示消息,所述第二指示消息用于指示所述至少一个成员设备恢复业务收发。在该实现中,在第一管理设备的标识变更期间,即MAC层临时通信参数变更期间,暂停业务收发,以避免不能可靠地接收或解析D2D数据包。
在又一种可能的实现中,所述方法还包括:所述第一管理设备接收来自第一成员设备的第一请求消息,所述第一请求消息用于请求加入所述第一网络,所述第一请求消息包括所述第一成员设备的唯一标识,所述第一成员设备属于所述至少一个成员设备;所述第一管理设备根据所述第一成员设备的唯一标识,确定所述第一成员设备对应的第一MAC层临时通信参数;以及所述第一管理设备向所述第一成员设备发送第一响应消息,所述第一响应消息包括所述第一MAC层临时通信参数。在该实现中,第一管理设备可以根据第一成员设备的唯一标识准确地区分加入该第一网络的各个成员设备,并由第一管理设备统一给各成员设备分配MAC层临时通信参数,避免了MAC层临时参数的冲突。
在又一种可能的实现中,所述方法还包括:所述第一管理设备广播管理设备变更通知,所述管理设备变更通知用于通知将变更所述第一管理设备;所述第一管理设备接收来自所述至少一个成员设备的至少一个第二请求消息,所述至少一个第二请求消息包括所述至少一个成员设备中每个设备的以下至少一个信息:设备优先级、剩余电量、可直接通信设备数量;所述第一管理设备根据所述至少一个信息,在所述至少一个成员设备中确定第三管理设备,所述第三管理设备为所述第一网络的新的管理设备;以及所述第一管理设备广播管理设备变更结果通知,所述管理设备变更结果通知包括所述第三管理设备对应的第二MAC层临时通信参数。在该实现中,当第一管理设备由于电量不足或其他原因不能继续管理第一网络时,可以重新选择其他成员设备成为新的管理设备,提高了通信的可靠性。且在选取新的管理设备时,考虑新的管理设备的设备优先级、剩余电量、可直接通信设备数量等,提高了选取的新的管理设备的可靠性。
在又一种可能的实现中,所述第一管理设备根据所述至少一个信息,在所述至少一个成员设备中确定第三管理设备,包括以下任一操作:所述至少一个成员设备的剩余电量大于或等于第一电量阈值,所述第一管理设备确定所述设备优先级最高的成员设备作为所述第三管理设备;或所述至少一个成员设备的剩余电量大于或等于第一电量阈值,且所述至少一个成员设备的设备优先级相同,所述第一管理设备确定所述可直接通信设备数量最多的成员设备作为所述第三管理设备;或所述至少一个成员设备的剩余电量小于所述第一电量阈值,所述第一管理设备确定所述剩余电量最多的成员设备作为所述第三管理设备。
在又一种可能的实现中,所述方法还包括:所述第一管理设备向所述第三管理设备发送网络配置参数,所述网络配置参数包括以下至少一个信息:成员列表信息、网络定时信息。
在又一种可能的实现中,所述方法还包括:所述第一管理设备监听所述第一成员设备的 心跳消息;所述第一管理设备未监听到所述第一成员设备的心跳消息,确定所述第一成员设备移动出所述第一网络的覆盖范围;所述第一管理设备广播离网通知消息,所述离网通知消息用于通知所述第一成员设备离网;以及所述第一管理设备在第二计时时长内在成员列表中保留所述第一MAC层临时通信参数。在该实现中,第一成员设备离网未超时,第一管理设备保留第一MAC层临时参数,避免需要频繁分配MAC层临时通信参数,提高了分配效率。
在又一种可能的实现中,所述方法还包括:所述第一管理设备在所述第二计时时长内监听到所述第一成员设备的心跳消息,所述第一管理设备广播在网通知消息,所述在网通知消息用于通知所述第一成员设备重新进入所述第一网络的覆盖范围。
在又一种可能的实现中,所述方法还包括:所述第一管理设备在所述第二计时时长内未监听到所述第一成员设备的心跳消息,所述第一管理设备广播退出网络通知消息,所述退出网络通知消息用于通知所述第一成员设备退出所述第一网络;以及所述第一管理设备回收所述第一MAC层临时通信参数。
第二方面,提供了一种通信方法,应用于第一网络,所述第一网络包括第一管理设备和至少一个成员设备,各成员设备分别对应一个D2D通信的MAC层临时通信参数,所述MAC层临时通信参数包括所述第一管理设备的标识,所述方法包括:第一成员设备接收来自所述第一管理设备的第一标识变更消息,所述第一标识变更消息包括更新的所述第一管理设备的标识,所述第一成员设备属于所述至少一个成员设备;以及所述第一成员设备变更所述第一成员设备对应的第一MAC层临时通信参数。在该第二方面中,构建了一种无蜂窝网络覆盖下的有中心的网络架构,在该网络架构下,若检测到成员设备对应的MAC层临时通信参数与其它网络中的MAC层临时通信参数冲突,则及时进行变更,有效地避免了MAC层临时通信参数冲突,提高了D2D通信的可靠性。
可选地,所述第一管理设备的标识与所述第二管理设备的标识是MAC层临时标识。
在一种可能的实现中,所述第一成员设备接收来自所述第一管理设备的第一标识变更消息之前,所述方法还包括:所述第一成员设备接收来自所述第一管理设备的第一指示消息,所述第一指示消息用于指示所述至少一个成员设备停止业务收发;所述第一成员设备停止进行业务收发;所述第一成员设备变更所述第一MAC层临时通信参数之后,所述第一成员设备接收来自所述第一管理设备的第二指示信息,所述第二指示消息用于指示所述至少一个成员设备恢复业务收发;以及所述第一成员设备恢复业务收发。
在另一种可能的实现中,所述第一MAC层临时通信参数还包括播类型和所述第一成员设备的标识。
在又一种可能的实现中,所述第一成员设备的标识为随机值。
在又一种可能的实现中,所述方法还包括:所述第一成员设备向所述第一管理设备发送第一请求消息,所述第一请求消息用于请求加入所述第一网络,所述请求消息包括所述第一成员设备的唯一标识;以及所述第一成员设备接收来自所述第一管理设备的第一响应消息,所述第一响应消息包括所述第一MAC层临时通信参数。
在又一种可能的实现中,所述方法还包括:所述第一成员设备接收来自所述第一管理设备的管理设备变更通知,所述管理设备变更通知用于通知将变更所述第一管理设备;所述第一成员设备向所述第一管理设备发送第二请求消息,所述第二请求消息包括所述第一成员设备的以下至少一个信息:设备优先级、剩余电量、可直接通信设备数量;以及所述第一成员设备接收来自所述第一管理设备的变更完成消息,所述管理设备变更结果通知包括第三管理设备对应的第二MAC层临时通信参数,所述第三管理设备为所述第一网络的新的管理设备。
在又一种可能的实现中,所述第一网络包括组播组,所述组播组包括至少两个成员设备,所述至少两个成员设备包括组头设备和组成员设备,所述第一成员设备为所述组头设备,所述方法还包括:所述第一成员设备建立所述组播组,获得所述组播组对应的第三MAC层临时通信参数,所述第三MAC层临时通信参数包括播类型、所述第一管理设备的标识、所述组播组的标识;以及所述第一成员设备广播建立完成消息,所述建立完成消息包括组成员列表和所述第三MAC层临时通信参数,所述组成员列表包括所述第一MAC层临时通信参数和所述组成员设备对应的MAC层临时通信参数。
在又一种可能的实现中,所述组播组的标识是由所述第一成员设备生成的;或所述组播组的标识是由所述第一管理设备分配的;或所述组播组的标识是设定值。
在又一种可能的实现中,所述方法还包括:所述第一成员设备根据所述第一标识变更消息,更新所述第三MAC层临时通信参数;以及所述第一成员设备向所述组成员设备发送第二标识变更消息,所述第二标识变更消息包括更新的所述第三MAC层临时通信参数。在该实现中,组头设备或组成员设备离网期间,如果第一管理设备的标识变更,则第一成员设备变更第三MAC层临时通信参数,并通知组成员更新第三MAC层临时通信参数,以提高组播组通信的可靠性。
第三方面,提供了一种通信装置,应用于通信系统,所述通信系统包括至少两个分布式节点,所述至少两个分布式节点包括所述通信装置和至少一个第二分布式节点。所述通信装置可以实现上述第一方面中的通信方法。例如所述通信装置可以芯片或者设备。可以通过软件、硬件、者通过硬件执行相应的软件实现上述方法。
在一种可能的实现方式中,所述装置应用于第一网络,所述第一网络包括第一管理设备和至少一个成员设备,各成员设备分别对应一个D2D通信的MAC层临时通信参数,所述MAC层临时通信参数包括所述第一管理设备的标识,所述装置包括:收发单元和处理单元;其中,所述收发单元,用于接收来自第二网络中的第二管理设备的第一同步消息,所述第一同步消息包括所述第二管理设备的标识;所述处理单元,用于确定所述第一管理设备的标识与所述第二管理设备的标识冲突;所述处理单元,还用于变更所述第一管理设备的标识;以及所述收发单元,还用于广播第一标识变更消息,所述第一标识变更消息包括更新的所述第一管理设备的标识。
可选地,所述MAC层临时通信参数还包括播类型和各成员设备的标识。
可选地,所述收发单元,还用于广播第二同步消息,所述第二同步消息包括所述第一管理设备的标识。
可选地,所述收发单元,还用于广播第一指示消息,所述第一指示消息用于指示所述至少一个成员设备停止业务收发;以及所述收发单元,还用于广播第二指示消息,所述第二指示消息用于指示所述至少一个成员设备恢复业务收发。
可选地,所述收发单元,还用于接收来自第一成员设备的第一请求消息,所述第一请求消息用于请求加入所述第一网络,所述第一请求消息包括所述第一成员设备的唯一标识,所述第一成员设备属于所述至少一个成员设备;所述处理单元,还用于根据所述第一成员设备的唯一标识,确定所述第一成员设备对应的第一MAC层临时通信参数;以及所述收发单元,还用于向所述第一成员设备发送第一响应消息,所述第一响应消息包括所述第一MAC层临时通信参数。
可选地,所述收发单元,还用于广播管理设备变更通知,所述管理设备变更通知用于通知将变更所述第一管理设备;所述收发单元,还用于接收来自所述至少一个成员设备的至少 一个第二请求消息,所述至少一个第二请求消息包括所述至少一个成员设备中每个设备的以下至少一个信息:设备优先级、剩余电量、可直接通信设备数量;所述处理单元,还用于根据所述至少一个信息,在所述至少一个成员设备中确定第三管理设备,所述第三管理设备为所述第一网络的新的管理设备;以及所述收发单元,还用于广播管理设备变更结果通知,所述管理设备变更结果通知包括所述第三管理设备对应的第二MAC层临时通信参数。
在另一种可能的实现方式中,该通信装置用于执行上述第一方面及其各种可能的实现中的方法。
第四方面,提供了一种通信装置,应用于通信系统,所述通信系统包括至少两个分布式节点,所述至少两个分布式节点包括至少一个第一分布式节点和所述通信装置。所述通信装置可以实现上述第二方面中的通信方法。例如所述通信装置可以芯片或者设备。可以通过软件、硬件、者通过硬件执行相应的软件实现上述方法。
在一种可能的实现中,所述装置应用于第一网络,所述第一网络包括第一管理设备和至少一个成员设备,各成员设备分别对应一个设备到设备D2D通信的媒体接入控制MAC层临时通信参数,所述MAC层临时通信参数包括所述第一管理设备的标识,所述装置包括:收发单元和处理单元;其中:所述收发单元,用于接收来自所述第一管理设备的第一标识变更消息,所述第一标识变更消息包括更新的所述第一管理设备的标识,所述第一成员设备属于所述至少一个成员设备;以及所述处理单元,用于变更所述第一成员设备对应的第一MAC层临时通信参数。
可选地,所述收发单元,还用于接收来自所述第一管理设备的第一指示消息,所述第一指示消息用于指示所述至少一个成员设备停止业务收发;所述处理单元,还用于停止进行业务收发;所述收发单元,还用于接收来自所述第一管理设备的第二指示信息,所述第二指示消息用于指示所述至少一个成员设备恢复业务收发;以及所述处理单元,还用于恢复业务收发。
可选地,所述第一MAC层临时通信参数还包括播类型和所述第一成员设备的标识。
可选地,所述收发单元,还用于向所述第一管理设备发送第一请求消息,所述第一请求消息用于请求加入所述第一网络,所述请求消息包括所述第一成员设备的唯一标识;以及所述收发单元,还用于接收来自所述第一管理设备的第一响应消息,所述第一响应消息包括所述第一MAC层临时通信参数。
可选地,所述收发单元,还用于接收来自所述第一管理设备的管理设备变更通知,所述管理设备变更通知用于通知将变更所述第一管理设备;所述收发单元,还用于向所述第一管理设备发送第二请求消息,所述第二请求消息包括所述第一成员设备的以下至少一个信息:设备优先级、剩余电量、可直接通信设备数量;所述收发单元,还用于接收来自所述第一管理设备的变更完成消息,所述管理设备变更结果通知包括第三管理设备对应的第二MAC层临时通信参数,所述第三管理设备为所述第一网络的新的管理设备。
可选地,所述第一网络包括组播组,所述组播组包括至少两个成员设备,所述至少两个成员设备包括组头设备和组成员设备,所述第一成员设备为所述组头设备;所述处理单元,还用于建立所述组播组,获得所述组播组对应的第三MAC层临时通信参数,所述第三MAC层临时通信参数包括播类型、所述第一管理设备的标识、所述组播组的标识;以及所述收发单元,还用于广播建立完成消息,所述建立完成消息包括组成员列表和所述第三MAC层临时通信参数,所述组成员列表包括所述第一MAC层临时通信参数和所述组成员设备对应的MAC层临时通信参数。
可选地,所述组播组的标识是由所述第一成员设备生成的;或所述组播组的标识是由所述第一管理设备分配的;或所述组播组的标识是设定值。
可选地,所述处理单元,还用于根据所述第一标识变更消息,更新所述第三MAC层临时通信参数;以及所述收发单元,还用于向所述组成员设备发送第二标识变更消息,所述第二标识变更消息包括更新的所述第三MAC层临时通信参数。
在另一种可能的实现方式中,该通信装置用于执行上述第二方面及其各种可能的实现中的方法。
在又一种可能的实现方式中,上述第三方面或第四方面中的通信装置包括与存储器耦合的处理器;所述处理器被配置为支持所述装置执行上述通信方法中相应的功能。存储器用于与处理器耦合,其保存所述装置必要的计算机程序(或计算机可执行指令)和/或数据。可选的,所述通信装置还可以包括通信接口用于支持所述装置与其他网元之间的通信,例如数据和/或信号的发送或接收。示例性的,通信接口可以是收发器、电路、总线、模块或其它类型的通信接口。可选的,该存储器可以位于该通信装置内部,和处理器集成在一起;也可以位于该通信装置外部。
在又一种可能的实现方式中,上述第三方面或第四方面中的通信装置包括处理器和收发装置,所述处理器与所述收发装置耦合,所述处理器用于执行计算机程序或指令,以控制所述收发装置进行信息的接收和发送;当所述处理器执行所述计算机程序或指令时,所述处理器还用于通过逻辑电路或执行代码指令实现上述方法。其中,所述收发装置可以为收发器、收发电路或输入输出接口,用于接收来自所述通信装置之外的其它通信装置的信号并传输至所述处理器或将来自所述处理器的信号发送给所述通信装置之外的其它通信装置。当所述通信装置为芯片时,所述收发装置为收发电路或输入输出接口。
当上述第三方面或第四方面中的通信装置为芯片时,发送单元可以是输出单元,比如输出电路或者通信接口;接收单元可以是输入单元,比如输入电路或者通信接口。当所述通信装置为终端时,发送单元可以是发射器或发射机;接收单元可以是接收器或接收机。
第五方面,提供了一种通信系统,所述通信系统包括至少两个分布式节点,所述至少两个分布式节点包括如第三方面或第三方面的任一种实现所述的通信装置、以及至少一个如第四方面或第四方面的任一种实现所述的通信装置。
第六方面,提供了一种计算机可读存储介质,其上存储有计算机程序或指令,该程序或指令被处理器执行时,如第一方面或第一方面的任一种实现所述的方法被执行,或者,实现如第二方面或第二方面的任一种实现所述的方法被执行。
第七方面,提供了一种计算机程序产品,当其在计算设备上执行时,使得如第一方面或第一方面的任一种实现所述的方法被执行,或者如第二方面或第二方面的任一种实现所述的方法被执行。
图1为D2D通信模式示意图;
图2为本申请实施例提供的一种通信系统的结构示意图;
图3为本申请实施例提供的一种通信方法的流程示意图;
图4为本申请实施例提供的另一种通信方法的流程示意图;
图5为本申请示例的管理设备标识冲突检测和变更流程;
图6为单播场景下第一MAC层临时通信参数的管理流程示意图;
图7为本申请实施例提供的又一种通信方法的流程示意图;
图8为本申请实施例提供的一种组播组的示意图;
图9为本申请实施例提供的又一种通信方法的流程示意图;
图10为本申请实施例提供的又一种通信方法的流程示意图;
图11为本申请实施例提供的又一种通信方法的流程示意图;
图12为本申请实施例提供的又一种通信方法的流程示意图;
图13为本申请实施例提供的一种通信装置的结构示意图;
图14为本申请实施例提供的另一种通信装置的结构示意图。
本申请提出了一种无蜂窝网络覆盖下的有中心的通信系统架构。如图2所示,为本申请提供的一种通信系统的结构示意图,该通信系统2000位于第一网络中,该通信系统2000/第一网络包括第一管理设备201和至少一个成员设备202(图中示例了3个成员设备,本申请对成员设备的数量不作限定)。其中,第一管理设备201是该第一网络的中心,负责网络的建立和管理。每个有中心的网络只有一个管理设备,但可以变更管理设备。成员设备202需要同步到第一管理设备201,并接入网络后才可以和其它成员设备通信。一个有中心的网络可以有多个成员设备202。第一网络内支持单播、组播和广播通信。一定区域内可以存在多个这样的网络,例如,还可以包括第二网络,第二管理设备是该第二网络的中心。
其中,第一管理设备201:负责第一网络内同步信息发送、成员设备接入管理及设备标识分配、成员列表维护、第一网络内通信资源分配和回收、第一网络内消息中转、网络间标识冲突检测和更新等。
成员设备202:和管理设备同步,接入管理设备创建的第一网络后,定期通过心跳消息发送自身状态。成员设备202可以和第一网络内任意成员设备202进行通信,也可以选择部分成员设备202组建组播组进行通信。
第一管理设备201、至少一个成员设备202可以是D2D设备。示例性地,D2D设备可以是指D2D通信中的终端。终端是一种具有无线收发功能的节点,可以部署在陆地上,包括室内或室外、手持、穿戴或车载;也可以部署在水面上,如轮船上等;还可以部署在空中,如飞机、无人机、气球和卫星上等。D2D设备可以是手机(mobile phone)、平板电脑(pad)、带无线收发功能的电脑、车到一切(vehicle to everything,V2X)中的终端、虚拟现实(virtual reality,VR)终端设备、增强现实(augmented reality,AR)终端设备、工业控制(industrial control)中的无线终端、无人驾驶(self-driving)中的无线终端、远程医疗(remote medical)中的无线终端、智能电网(smart grid)中的无线终端、运输安全(transportation safety)中的无线终端、智慧城市(smart city)中的无线终端、智慧家庭(smart home)中的无线终端等等。本申请的实施例对应用场景不做限定。终端有时也可以称为用户设备(user equipment,UE)、接入终端设备、UE单元、移动站、移动台、远方站、远程终端设备、移动设备、无线通信设备、UE代理或UE装置等。
本申请提供一种通信方案,构建了一种无蜂窝网络覆盖下的有中心的网络架构,在该网络架构下,若检测到成员设备对应的MAC层临时通信参数与其它网络中的MAC层临时通信参数冲突,则及时进行变更,有效地避免了MAC层临时通信参数冲突,提高了D2D通信的可靠性。
图3为本申请实施例提供的一种通信方法的流程示意图,该方法可以应用于上述第一网 络/通信系统。该第一网络/通信系统包括第一管理设备和至少一个成员设备,各成员设备分别对应一个D2D通信的MAC层临时通信参数(可以简称为“MAC层临时通信参数”或“层2参数(layer-2parameters)”)。MAC层临时通信参数是相对于成员设备的唯一标识(或者称为永久标识)而言的,用于第一管理设备和各成员设备在该第一网络中进行D2D通信时使用。因此,MAC层临时通信参数中的关于各设备的标识是MAC层临时标识。该MAC层临时通信参数的结构如下表1所示:
表1
该MAC层临时通信参数包括播类型和第一管理设备的标识。该MAC层临时通信参数还可以包括成员设备的标识。当播类型为组播时,该MAC层临时通信参数还可以包括组播组的标识。
示例性地,上述成员设备的标识为随机值。示例性地,在单播场景,该MAC层临时通信参数由第一管理设备统一分配,从而避免了第一网络内部MAC层临时通信参数的冲突。
示例性地,在组播场景,该组播组的标识由组头设备生成;或者该组播组的标识由第一管理设备分配和维护;或者该组播组的标识为设定值。具体实现将在后文详细描述。
图3所示的方法可适用于单播或组播场景。如图3所示,该方法可以包括以下步骤:S301.第二网络中的第二管理设备广播第一同步消息,该第一同步消息包括第二管理设备的标识。相应地,第一管理设备接收该第一同步消息。本实施例中,第一管理设备为第一网络的管理设备,第二管理设备为第二网络的管理设备。第一管理设备、第二管理设备周期性广播同步消息。第一管理设备可以接收到与第一网络相邻的第二网络的第二管理设备广播的第一同步消息。该第一同步消息包括第二管理设备的标识。
S302.第一管理设备广播第二同步消息,该第二同步消息包括第一管理设备的标识。同理,第一管理设备也可以周期性地广播第二同步消息。第二管理设备可以接收到与第二网络相邻的第一网络的第一管理设备广播的第二同步消息。该第二同步消息包括第一管理设备的标识。该步骤是可选的,图中以虚线表示。
上述步骤S301、S302中的“广播”可以是针对全网范围内的设备广播。全网范围包括上述第一网络和第二网络等。每个网络可以具有一个对应的MAC层临时通信参数,第一同步消息不携带第一网络对应的MAC层临时通信参数,因此,第一管理设备也可以接收该第一同步消息。同理,第二同步消息不携带第二网络对应的MAC层临时通信参数,因此,第二管理设备也可以接收该第二同步消息。
上述第一同步消息、第二同步消息可以是设备间时频同步使用(SLSS)信号,同时通过侧链广播控制信道(sidelink broadcast control channel,SBCCH)发送主信息块侧链(MasterInformationBlockSidelink)消息,其中携带管理设备标识信息。
S303.第一管理设备确定第一管理设备的标识与第二管理设备的标识冲突。第一管理设备接收到第一同步消息后,获取其中的第二管理设备的标识,将其与自身的第一管理设备的标识进行比较。当第一管理设备的标识与第二管理设备的标识相同时,确定第一管理设备的标识与第二管理设备的标识冲突。第一管理设备的标识、第二管理设备的标识可以为字符串,可以逐个比较该字符串,以判断第一管理设备的标识与第二管理设备的标识是否相同。
S304.第一管理设备变更第一管理设备的标识。由表1可知,MAC层临时通信参数包括第一管理设备的标识。第一网络中的各成员设备、第一管理设备可能需要与第二网络中的各 成员设备、第二管理设备通信。因此,为了避免与其他网络中的各成员设备对应的MAC层临时通信参数冲突,当第一管理设备确定第一管理设备的标识与第二管理设备的标识冲突时,第一管理设备变更第一管理设备的标识。
第一管理设备变更第一管理设备的标识,可以有以下几种实现:在一个实现中,第一管理设备和第二管理设备可以分别设置一个定时器,其计时时长可以取随机值。当第一管理设备的计时时长小于第二管理设备的计时时长时,第一管理设备变更第一管理设备的标识。在另一个实现中,第一管理设备周期性地侦听同步消息,当检测到第一管理设备的标识与第二管理设备的标识冲突的次数达到设定次数时,第一管理设备变更第一管理设备的标识。在又一个实现中,第一管理设备一旦检测到第一管理设备的标识与第二管理设备的标识冲突,就变更第一管理设备的标识。
S305.第一管理设备广播第一标识变更消息,该第一标识变更消息包括更新的第一管理设备的标识。相应地,第一成员设备接收该第一标识变更消息。第一成员设备属于上述至少一个成员设备,是上述至少一个成员设备中的任一个成员设备。
第一网络的各成员设备在加入第一网络时,获取并保存了各成员设备对应的MAC层临时通信参数。而MAC层临时通信参数包括第一管理设备的标识,因此当第一管理设备变更了第一管理设备的标识,第一管理设备广播第一标识变更消息,该第一标识变更消息包括更新的第一管理设备的标识,以使得各成员设备根据该更新的第一管理设备的标识,更新自身保存的MAC层临时通信参数。
其中,第一标识变更消息还可以包括指示字段。例如,该指示字段为1比特,当该指示字段的取值为“1”时,用于指示该第一标识变更消息包括更新的第一管理设备的标识;当该指示字段的取值为“0”时,用于指示该第一标识变更消息未包括更新的第一管理设备的标识。又例如,当该指示字段的取值为“0”时,用于指示该第一标识变更消息包括更新的第一管理设备的标识;当该指示字段的取值为“1”时,用于指示该第一标识变更消息未包括更新的第一管理设备的标识。
另外,该第一网络可以对应一个组播组,该第一标识变更消息还可以包括该组播组对应的第四MAC层临时通信参数。则第一管理设备广播第一标识变更消息,该第一网络中的成员设备接收到该第一标识变更消息,可以确定该第一标识变更消息是发送给自身的;而其它网络中的成员设备接收到该第一标识变更消息,根据第四MAC层临时通信参数,可以确定该第一标识变更消息不是发送给自身的,则不会进行下一步操作。因此,步骤S305中的“广播”是针对第一网络中的成员设备的。
S306.第一成员设备变更第一成员设备对应的D2D通信的MAC层临时通信参数。第一成员设备接收到第一管理设备广播的第一标识变更消息,根据该更新的第一管理设备的标识,更新自身保存的MAC层临时通信参数。
根据本申请实施例提供的一种通信方法,构建了一种无蜂窝网络覆盖下的有中心的网络架构,在该网络架构下,若检测到成员设备对应的MAC层临时通信参数与其它网络中的MAC层临时通信参数冲突,则及时进行变更,有效地避免了MAC层临时通信参数冲突,提高了D2D通信的可靠性。
图4为本申请实施例提供的另一种通信方法的流程示意图,该方法可以应用于上述第一网络/通信系统。该第一网络/通信系统包括第一管理设备和至少一个成员设备,各成员设备分别对应一个MAC层临时通信参数。该实施例主要涉及单播场景。该方法可以包括以下步骤:S401.第一成员设备向第一管理设备发送第一请求消息,该第一请求消息用于请求加入第一 网络,该请求消息包括第一成员设备的唯一标识。相应地,第一管理设备接收该第一请求消息。
第一成员设备属于上述至少一个成员设备,是上述至少一个成员设备中的任一个成员设备。该实施例以第一成员设备进行示例性说明。
第一成员设备欲加入第一网络时,需要获取该第一成员设备对应的第一MAC层临时通信参数,以与第一网络中的其它各成员设备、第一管理设备进行通信。因此,第一成员设备向第一管理设备发送第一请求消息,该第一请求消息用于请求加入第一网络,该请求消息包括第一成员设备的唯一标识。该唯一标识包括以下至少一种:媒体接入控制(media access control,MAC)地址、设备标识、安卓(Android)标识。该唯一标识用于唯一识别该第一成员设备。
S402.第一管理设备根据第一成员设备的唯一标识,确定第一成员设备对应的第一MAC层临时通信参数。第一管理设备根据第一成员设备的唯一标识,可以区分其它成员设备,给第一成员设备分配第一MAC层临时通信参数,以避免与其它成员设备的第一MAC层临时通信参数冲突。
S403.第一管理设备向第一成员设备发送第一响应消息,该第一响应消息包括第一MAC层临时通信参数。相应地,第一成员设备接收该第一响应消息。第一成员设备接收第一响应消息,获取并保存其中的第一MAC层临时通信参数。
S404.第二网络中的第二管理设备广播第一同步消息,该第一同步消息包括第二管理设备的标识。相应地,第一管理设备接收该第一同步消息。该步骤的具体实现可参考上述实施例的步骤S301。
S405.第一管理设备广播第二同步消息,该第二同步消息包括第一管理设备的标识。该步骤的具体实现可参考上述实施例的步骤S302。
S406.第一管理设备确定第一管理设备的标识与第二管理设备的标识冲突。该步骤的具体实现可参考上述实施例的步骤S303。
S407.第一管理设备变更第一管理设备的标识。该步骤的具体实现可参考上述实施例的步骤S304。
S408.第一管理设备广播第一标识变更消息,该第一标识变更消息包括更新的第一管理设备的标识。相应地,第一成员设备接收该第一标识变更消息。该步骤的具体实现可参考上述实施例的步骤S305。
S409.第一管理设备广播第一指示消息,该第一指示消息用于指示至少一个成员设备停止业务收发。第一管理设备广播第一标识变更消息,该第一标识变更消息包括更新的第一管理设备的标识,以使得各成员设备根据该更新的第一管理设备的标识,更新自身保存的MAC层临时通信参数。该广播的范围是第一网络中的各成员设备。由于各成员设备需要更新自身保存的MAC层临时通信参数,在更新期间,如果仍然进行业务收发,有可能会出现D2D数据包接收错误或解析错误,因此,第一管理设备在广播第一标识变更消息之前、之后或同时(不限定步骤S408和S409的执行顺序),广播第一指示信息,该第一指示信息用于指示第一网络中的各成员设备停止业务收发。
S410.第一成员设备停止进行业务收发。第一成员设备在接收到第一管理设备广播的第一指示信息,则停止进行业务收发,以提高通信的可靠性。
S411.第一成员设备变更第一成员设备对应的D2D通信的MAC层临时通信参数中的第一管理设备的标识。该步骤的具体实现可参考上述实施例的步骤S306。
S412.第一管理设备广播第二指示消息,第二指示消息用于指示至少一个成员设备恢复业务收发。相应地,第一成员设备接收该第二指示信息。第一管理设备在广播第一指示信息后的一定时间后,广播第二指示信息,该第二指示信息用于指示第一网络内的各成员设备恢复业务收发。该广播针对的是第一网络中的各成员设备。
S413.第一成员设备恢复业务收发。第一成员设备接收到第二指示信息后,恢复业务收发。具体地,基于更新后的MAC层临时通信参数进行业务收发。
根据本申请实施例提供的一种通信方法,构建了一种无蜂窝网络覆盖下的有中心的网络架构,在该网络架构下,若检测到成员设备对应的MAC层临时通信参数与其它网络中的MAC层临时通信参数冲突,则及时进行变更,有效地避免了MAC层临时通信参数冲突,提高了D2D通信的可靠性;在MAC层临时通信参数变更期间,暂停业务收发,进一步提高了D2D通信的可靠性。
图5示例了一个管理设备标识冲突检测和变更流程。一定物理区域内,可能存在多个网络。在该示例中,包括网络A和网络B。网络A包括管理设备A1和至少一个成员设备(图中示例了成员设备A2、成员设备A3),网络B包括管理设备B1和至少一个成员设备(图中示例了成员设备B2、成员设备B3)。该方法可以包括以下步骤:S501.管理设备A1广播第一同步消息,该第一同步消息包括管理设备A1的标识:123。相应地,管理设备B1接收该第一同步消息。
当两个网络的管理设备的标识冲突时,会导致网络间各成员设备对应的MAC层临时通信参数冲突,影响网络通信。为了能够检测到不同网络中管理设备的标识冲突的情况,管理设备B1会周期性地侦听其它管理设备的同步消息。管理设备B1接收到管理设备A1广播的第一同步消息。该广播是针对全网范围的广播。
S502.管理设备B1广播第二同步消息,该第二同步消息包括管理设备B1的标识:123。相应地,管理设备A1接收该第二同步消息。该广播是针对全网范围的广播。
S503.由于管理设备A1的标识与管理设备B1的标识相同,因此,管理设备A1确定管理设备A1的标识与管理设备B1的标识冲突,启动避让定时器T1,并随机选取计时时长t1。
S503’.同理,管理设备B1确定管理设备B1与管理设备A1的标识冲突,启动避让定时器T2,并随机选取计时时长t2。其中,t2∠t1。
S504.管理设备B1的定时器T2超时,由于t2∠t1,因此管理设备的标识依然冲突,管理设备B1变更管理设备的标识为:456。
S505.管理设备B1广播第三同步消息,该第三同步消息包括更新后的管理设备的标识:456。相应地,管理设备A1接收该第三同步消息。
S506.管理设备A1的定时器T1超时,由于管理设备B1广播的第三同步消息中携带了更新后的管理设备的标识,管理设备A1确定管理设备A1与更新后的管理设备B1的标识不再冲突,则继续侦听其它管理设备的同步消息。
S507.管理设备B1广播第一指示信息,该第一指示信息用于指示网络B中的各成员设备停止业务收发。该广播针对的是网络B中的各成员设备。S508.管理设备B1广播第一标识变更消息,该第一标识变更消息包括新的管理设备的标识:456。该广播针对的是网络B中的各成员设备。其中,上述步骤S507和S508的执行顺序不限定,可以同时执行;也可以先执行步骤S507,再执行步骤S508;或者也可以先执行步骤S508,再执行步骤S507。
S509.成员设备B2发送变更完成消息。S509’.成员设备B3发送变更完成消息。其中,上述步骤S509和S509’为可选的步骤,图中以虚线表示。管理设备B1也可以在广播完第一 标识变更消息一定时间后广播第二指示信息,不需等待各成员设备的变更完成消息。
S510.管理设备B1广播第二指示信息,该第二指示信息用于指示网络B中的各成员设备恢复业务收发。该广播针对的是网络B中的各成员设备。
进一步地,由于第一网络内的成员设备可以移动,第一管理设备会监听成员设备的心跳消息判断成员设备是否在网,以对成员设备对应的MAC层临时通信参数进行管理。示例性地,如图6所示,为单播场景下第一MAC层临时通信参数的管理流程示意图,该方法可以包括以下步骤:S601.第一成员设备加入第一网络。第一成员设备加入第一网络,可参考上述步骤S401~S403,获得第一MAC层临时通信参数。
S602.第一管理设备周期性检测第一成员设备的状态。示例性地,第一管理设备周期性监听第一成员设备的心跳消息,以周期性检测第一成员设备的状态。
S603.第一管理设备判断第一成员设备是否离网?如果是,则进行到步骤S604;否则,继续执行步骤S602。示例性地,第一管理设备在一定时间内未监听到第一成员设备的心跳消息,确定第一成员设备移动出第一网络的覆盖范围,即第一成员设备离网。
S604.第一管理设备广播离网通知消息,该离网通知消息用于通知第一成员设备离网。第一管理设备确定第一成员设备离网,则广播离网通知消息,以通知第一网络中的其它成员设备该第一成员设备离网,以使得其它成员设备暂停与第一成员设备通信,提高通信的可靠性。该广播针对的是第一网络中的各成员设备。
S605.第一管理设备启动第二计时器,判断是否离网超时?如果未超时,则继续检测是否超时并进行到步骤S606;如果超时,则进行到步骤S607。具体地,第一管理设备启动第二计时器,判断在第二计时时长内是否监听到第一成员设备的心跳消息。如果第一管理设备在第二计时时长内监听到第一成员设备的心跳消息,则判断离网未超时;如果第一管理设备在第二计时时长内未监听到第一成员设备的心跳消息,则判断离网超时。
S606.第一管理设备保留第一MAC层通信参数,并广播在网通知消息,该在网通知消息用于通知第一成员设备重新进入第一网络的覆盖范围。若第一成员设备离网未超时,则第一管理设备保留第一MAC层通信参数,以避免频繁地分配MAC层临时通信参数。并且第一管理设备广播在网通知消息,以通知第一成员设备重新进入第一网络的覆盖范围,第一网络中的其它各成员设备可以继续和第一成员设备进行通信。
上述离网是指成员设备暂时离开网络,第一管理设备未删除成员设备对应的MAC层临时通信参数。成员设备重新进入第一网络的覆盖范围,无需重新申请MAC层临时通信参数。
S607.第一管理设备广播退出网络通知消息,该退出网络通知消息用于通知第一成员设备退出第一网络。若第一成员设备离网超时,则第一管理设备广播退出网络通知消息,以通知第一成员设备退出第一网络,使得第一网络中的其它成员设备不再与第一成员设备进行通信。
S608.第一管理设备回收第一MAC层通信参数。若第一成员设备离网超时,则第一管理设备回收第一MAC层通信参数,以提高通信资源的利用率。
上述退出网络是指成员设备长时间离开网络,第一管理设备删除了该成员设备对应的MAC层临时通信参数。成员设备重新进入第一网络的覆盖范围,需要重新申请MAC层临时通信参数。
图7为本申请实施例提供的又一种通信方法的流程示意图,该方法可以应用于上述第一网络/通信系统,主要涉及管理设备变更场景。该方法可以包括以下步骤:S701.第一管理设备广播管理设备变更通知,该管理设备变更通知用于通知将变更第一管理设备。
当第一管理设备由于电量不足或其他原因不能继续管理第一网络时,可以重新选择其他成员设备成为新的管理设备。因此,第一管理设备广播管理设备变更通知,该管理设备变更通知用于通知将变更第一管理设备。该广播针对的是第一网络中的各成员设备。相应地,第一网络中的至少一个成员设备接收该管理设备变更通知。该实施例以成员设备1、成员设备2进行示例性说明。成员设备1、成员设备2接收该管理设备变更通知。
S702和S702’.成员设备1、成员设备2分别向第一管理设备发送第二请求消息,该第二请求消息包括第一成员设备的以下至少一个信息:设备优先级、剩余电量、可直接通信设备数量。
第一网络中的任意一个成员设备接收到上述管理设备变更通知后,如果希望成为新的管理设备,可以向第一管理设备发送第二请求消息。如图7所示,成员设备1、成员设备2接收该管理设备变更通知后,分别向第一管理设备发送第二请求消息。其中,成员设备1、成员设备2属于上述至少一个成员设备,是上述至少一个成员设备中的任一个成员设备。其中,该第二请求消息包括成员设备的以下至少一个信息:设备优先级(priority,P)、剩余电量(battery,B)、可直接通信设备数量(number,N)。示例性地,成员设备1发送的第二请求消息包括:P=2,B=50%,N=3;成员设备2发送的第二请求消息包括:P=3,B=70%,N=2。
其中,设备优先级可以是出厂设置的,也可以是网络配置的。示例性地,第一管理设备的优先级最高,管理设备的辅助设备优先级次高,其它成员设备默认优先级最低。
可直接通信设备是指可以和当前所处的第一网络内的其它成员设备进行点对点通信,不需要通过第一管理设备中转消息的设备。在第一网络中,所有成员设备都和第一管理设备进行时钟同步,因此成员设备之间如果距离比较远则时频偏差就会大,无法进行直接通信。成员设备通过收听并解析其它成员设备的心跳消息,确定对端设备是否可以进行直接通信。某个成员设备可直接通信设备数量多,意味着在其周边存在的设备较多。当该成员设备成为新的管理设备时,这些设备可以正确解析新的管理设备消息,最大可能减少需要重新接入网络的成员设备数量,减少管理设备变更对网络通信的中断影响。
相应地,第一管理设备接收来自成员设备1、成员设备2的第二请求消息。
S703.第一管理设备根据至少一个信息,在至少一个成员设备中确定第三管理设备,第三管理设备为第一网络的新的管理设备。示例性地,第一管理设备确定第三管理设备为成员设备1,即第一管理设备选择成员设备1为新的管理设备。
第一管理设备接收来自至少一个成员设备的至少一个第二请求消息后,根据至少一个第二请求消息中携带的至少一个信息,在至少一个成员设备中确定第三管理设备,包括以下至少一个操作:至少一个成员设备的剩余电量大于或等于第一电量阈值,第一管理设备确定设备优先级最高的成员设备作为第三管理设备;或至少一个成员设备的剩余电量大于或等于第一电量阈值,且至少一个成员设备的设备优先级相同,第一管理设备确定可直接通信设备数量最多的成员设备作为第三管理设备;或至少一个成员设备的剩余电量小于第一电量阈值,第一管理设备确定剩余电量最多的成员设备作为第三管理设备;或至少一个成员设备的剩余电量小于第一电量阈值,第一管理设备确定可直接通信设备数量最多的成员设备作为第三管理设备。
在该实施例中,假设第一电量阈值为85%,由于成员设备1、成员设备2的剩余电量分别为50%、70%,均小于85%,因此,第一管理设备确定可直接通信设备数量最多(N=3)的成员设备1作为新的管理设备。
S704.第一管理设备广播管理设备变更结果通知,该管理设备变更结果通知包括第三管 理设备对应的第二MAC层临时通信参数。相应地,第一成员设备接收该管理设备变更结果通知。
管理设备发生变更后,第一管理设备广播管理设备变更结果通知,该管理设备变更结果通知包括第三管理设备对应的第二MAC层临时通信参数。该广播针对的是第一网络中的各成员设备。示例性地,该管理设备变更结果通知包括成员设备1对应的第一MAC层临时通信参数,成员设备1、成员设备2接收该管理设备变更结果通知,以便于成员设备与该新的管理设备进行通信。
S705.第一管理设备向成员设备1发送网络配置参数。相应地,成员设备1接收该网络配置参数。
管理设备发生变更后,为了提高通信的效率,第一管理设备向新的管理设备(成员设备1)发送网络配置参数。该网络配置参数包括原有的成员列表信息、网络定时信息等。成员设备1接收并保存该网络配置参数。
S706.成员设备1向第一管理设备发送消息,用于指示接收网络配置参数完毕。相应地,第一管理设备接收该消息,获知成员设备1接收网络配置参数完毕,第一管理设备可以释放自身存储的网络配置参数,以提高存储空间的利用率。
S707.第一管理设备广播管理设备变更完成消息。相应地,成员设备1、成员设备2接收该管理设备变更完成消息,从而第一网络中的各成员设备可以与新的管理设备进行通信。该广播针对的是第一网络中的各成员设备。
S708.新的管理设备(即成员设备1)周期性地广播同步消息。该广播是针对全网范围的广播。S709.第一管理设备(变为第一网络的一个成员设备)接收到该同步消息后,同步到新的管理设备。S709’.成员设备2接收到该同步消息后,同步到新的管理设备。
根据本申请实施例提供的一种通信方法,每个有中心的网络只有一个管理设备,且可以变更。当第一管理设备由于电量不足或其他原因不能继续管理第一网络时,可以重新选择其他成员设备成为新的管理设备。在选取新的管理设备时综合考虑了新的管理设备的设备优先级、剩余电量、可直接通信设备数量等因素,从而提高了选取的新的管理设备的可靠性。
根据需要,第一网络内可以再创建组播组,用于部分成员设备之间的通信。组播组包括一个组头设备和至少一个组成员设备。如图8所示的本申请实施例提供的组播组的示意图,成员设备1~成员设备3为第一网络中的部分成员设备。第一网络中包括组播组A,该组播组A包括成员设备1~成员设备3(当然,该组播组A还可以包括更多的设备,本申请对此不作限制)。其中,成员设备1为组播组A的组头设备(称为组头A1),成员设备2、成员设备3为组播组A的组成员设备(分别称为组成员A3、组成员A2)。组头设备和各组成员设备之间可以进行组播通信,组头设备和各组成员设备还可以与第一管理设备进行通信。
其中,组头设备是组播组A的发起设备,负责通知其它成员设备加入组播组A,分配组播组对应的第三MAC层临时通信参数。其中,第三MAC层临时通信参数包括播类型(为组播)、第一管理设备的标识、成员设备的标识和组播组的标识。其中,成员设备的标识可以是随机值。该组播组的标识由组头设备生成;或者该组播组的标识由第一管理设备分配和维护;或者该组播组的标识为设定值。
组成员设备可以主动或者被动加入组播组A。
基于图8所示的组播组的结构,如图9所示,为本申请实施例提供的又一种通信方法的流程示意图。第一网络包括组播组,组播组包括至少两个成员设备,至少两个成员设备包括组头设备和组成员设备,第一成员设备为该组头设备,该方法可以包括以下步骤:
S901.组头设备建立组播组,获得组播组对应的第三MAC层临时通信参数。
一个实现中,组头设备决定建立组播组后,可以生成该组播组的标识,并从第一管理设备获取第一管理设备的标识和组头设备的标识(可以是在组头设备加入第一网络时获得),从而得到第三MAC层临时通信参数。即该组播组的标识由组头设备在本地生成和维护。
另一个实现中,该组播组的标识由第一管理设备统一分配和维护,以避免第三MAC层临时通信参数不冲突。该组播组的标识可以为一随机值。从而,组头设备可以向第一管理设备申请建立组播组,并从第一管理设备获得第三MAC层临时通信参数。组头设备或组成员设备离网再入网后,可以申请继续使用之前的第三MAC层临时通信参数。但是如果第一管理设备的标识有变更,则组头设备或组成员设备需要更新本地保存的第三MAC层临时通信参数才能继续进行组播通信。
又一个实现中,该组播组的标识不再由组头设备生成或第一管理设备分配,而是为一设定值。成员设备进行组播通信时,提前约定使用的第三MAC层临时通信参数,不再需要向第一管理设备申请。另外,组播建立流程也不再需要,所有成员设备都是组成员,不再区分组头设备和组成员设备。
S902.组头设备广播建立完成消息,该建立完成消息包括组成员列表和第三MAC层临时通信参数。相应地,组成员设备接收该建立完成消息。
组头设备广播建立完成消息,以通知各组成员设备可以开始组播通信。该建立完成消息包括组成员列表和第三MAC层临时通信参数。该组成员列表包括组头设备和各组成员设备。该第三MAC层临时通信参数用于组播组中的组头设备和各组成员设备进行组播通信。该广播是针对该组播组中的各组成员设备。
S903.第一管理设备广播第一标识变更消息,该第一标识变更消息包括更新的第一管理设备的标识。在组播场景中,第一管理设备的标识也可能发生变更。该步骤可参考上述实施例中的步骤S305。该广播针对的是第一网络中的各成员设备。
S904.组头设备根据第一标识变更消息,更新第三MAC层临时通信参数。
由于第三MAC层临时通信参数包括第一管理设备的标识,因此,当组头设备接收到该第一标识变更消息后,需要更新本地保存的第三MAC层临时通信参数。具体地,更新第三MAC层临时通信参数中的第一管理设备的标识。
S905.组头设备广播第二标识变更消息,该第二标识变更消息包括更新的第三MAC层临时通信参数。相应地,组成员设备接收该第二标识变更消息,更新自身保存的第三MAC层临时通信参数。
组头设备更新第三MAC层临时通信参数后,广播第二标识变更消息,以通知各组成员设备更新其本地保存的第三MAC层临时通信参数。该第二标识变更消息包括更新的第三MAC层临时通信参数。该广播是针对该组播组中的各组成员设备。
根据本申请实施例提供的一种通信方法,可以在第一网络中创建组播组,每个组播组对应一个MAC层临时通信参数,该组播组中的组头设备和各组成员设备采用该MAC层临时通信参数进行组播通信,提高了通信的效率。且在组头设备或组成员设备离网期间,如果第一管理设备的标识变更,则组头设备更新该MAC层临时通信参数并广播给组成员设备,进一步提高了通信的可靠性。
针对上述步骤S901,组头设备建立组播组,可以有主动建组方式和被动建组方式,具体可参见图10。在图10中,主动建组方式,即建组方式a,可以包括以下步骤:S1001a、S1001a’.组头设备邀请组成员设备1和组成员设备2加入组播组A。
组头设备决定建立一个组播组后,可以从第一管理设备获得第一网络的成员列表,并从成员列表中选择要添加的组成员设备,并发送消息邀请对应的成员设备加入组播组。例如,组头设备为车辆A,车辆A的用户决定建立一个临时的车队。车辆A可以邀请在车辆A所处位置的设定范围内的车辆加入该临时的车队。
S1002a、S1002a’.组成员设备1和组成员设备2同意加入组播组A。成员设备收到组头设备的邀请消息后,如果同意加入该组播组,则回复确认消息,表示同意加入该组播组。
S1003a.组头设备广播建立完成消息,该建立完成消息包括组成员列表和第三MAC层临时通信参数。相应地,组成员设备1、组成员设备2接收该建立完成消息。
组头设备收到成员设备2、成员设备3的确认消息后,建立组播组A,生成组播组A的标识,并从第一管理设备获取第一管理设备的标识和组头设备的标识,从而得到第三MAC层临时通信参数。
组头设备广播建立完成消息,以通知各组成员设备可以开始组播通信。该建立完成消息包括组成员列表和第三MAC层临时通信参数。该组成员列表包括组头设备和组成员设备1、组成员设备2。该第三MAC层临时通信参数用于组播组A中的组头设备和各组成员设备进行组播通信。
至此,建立了组播组A。
在图10中,被动建组方式,即建组方式b,可以包括以下步骤:S1001b.组头设备广播组播组A信息,该信息包括组播组A对应的第三MAC层临时通信参数。相应地,组成员设备1和组成员设备2接收该信息。组头设备决定建立一个组播组A后,生成组播组A的标识,并从第一管理设备获取第一管理设备的标识和组头设备的标识,从而得到第三MAC层临时通信参数。组头设备广播将要建立的组播组A信息。该信息包括组播组A对应的第三MAC层临时通信参数。此外,该信息还可以包括该组播组A的功能、名称等。
S1002b、S1002b’.组成员设备1和组成员设备2分别申请加入组播组A。相应地,组头设备接收该申请。第一网络中的其它成员设备收到该信息后,如果决定加入该组播组A,可以向组头设备发送申请信息,以申请加入组播组A。
S1003b、S1003b’.组头设备分别同意组成员设备1和组成员设备2加入组播组A。组头设备收到入组申请后,如果同意,则回复对应成员设备加入组播组A成功的消息,表示同意组成员设备1、组成员设备2加入组播组A,且成功加入组播组A。
S1004b.组头设备广播建立完成消息,该建立完成消息包括组成员列表。相应地,组成员设备1、组成员设备2接收该建立完成消息。组头设备完成建立流程后,广播建立完成消息,以通知各组成员设备可以开始组播通信。该建立完成消息包括组成员列表。该广播是针对该组播组中的各组成员设备。
针对上述步骤S903~S905,下面分别针对具体的场景描述上述步骤的具体实现:如图11所示,为本申请实施例提供的又一种通信方法的流程示意图,应用于组头设备离网场景。该方法可以包括以下步骤:S1101.第一成员设备(组头设备)移动出网络覆盖范围。第一管理设备监听不到组头设备的心跳消息,可以初步判断组头设备移动出网络覆盖范围。
S1102.第二成员设备(组成员设备)广播心跳消息。相应地,第一管理设备接收该心跳消息。该广播针对的是第一网络。
S1103.第一管理设备判断是否在第三计时时长内未收到第一成员设备的心跳消息。第一管理设备监听不到组头设备的心跳消息后,可以启动第三计时器,并且判断在第三计时时长内是否监听到组头设备的心跳消息。
S1104.如果判断的结果为是,则第一管理设备广播第一成员设备离网消息。相应地,第二成员设备接收该离网消息。若第一管理设备在第三计时时长内监听不到组头设备的心跳消息,则确定组头设备离网,并广播组头设备离网消息,以通知各组成员设备组头设备离网,各组成员设备暂停与组头设备的组播通信。该广播针对的是第一网络中的各成员设备。
S1105.第二成员设备继续收发组播消息。虽然组头设备离网,但各成员设备已获得第三MAC层临时通信参数,且第三MAC层临时通信参数没有变更,因此,各成员设备仍然可以继续收发组播消息。组头设备离网,可以分为两种场景:离网未超时和离网超时。
具体地,在组头设备离网未超时场景中,可以包括以下步骤:S1106.第一成员设备重新进入网络覆盖范围。组头设备重新进入网络覆盖范围,第一管理设备可以监听到组头设备的心跳消息。
S1107.第二成员设备(组成员设备)广播心跳消息。相应地,第一管理设备接收该心跳消息。第二成员设备广播心跳消息,表明第二成员设备在网。该广播是针对该组播组中的各组成员设备。
S1108.第一管理设备广播第一成员设备重新在网消息。相应地,第一成员设备、第二成员设备接收该第一成员设备重新在网消息。
第一管理设备重新接收到组头设备的心跳消息后,确定组头设备重新在网,广播组头设备在网消息,以通知各组成员设备可以继续与该组头设备进行组播通信。该广播是针对该组播组中的各组成员设备。
S1109.第一成员设备判断第一管理设备的标识是否发生变更,如果是,则进行到步骤S1111;否则,进行到步骤S1110。在组头设备离网并重新入网后,如果接收到第一管理设备广播的第一标识变更消息,则表明第一管理设备的标识发生变更;如果未接收到第一管理设备广播的第一标识变更消息,则表明第一管理设备的标识未发生变更。
S1110.第一成员设备继续收发组播组消息。如果第一管理设备的标识未发生变更,则组头设备可以继续与各组成员设备进行组播通信,收发组播消息。
S1111.第一成员设备更新第三MAC层临时通信参数。如果第一管理设备的标识发生变更,由于第三MAC层临时通信参数包括第一管理设备的标识,因此,当组头设备接收到该第一标识变更消息后,需要更新本地保存的第三MAC层临时通信参数。具体地,更新第三MAC层临时通信参数中的第一管理设备的标识。
S1112.第一成员设备收发组播组消息。组头设备可以基于更新后的第三MAC层临时通信参数收发组播组消息。
进一步地,组头设备还可以广播第二标识变更消息,以通知各组成员设备更新其本地保存的第三MAC层临时通信参数。该第二标识变更消息包括更新的第三MAC层临时通信参数。
具体地,在组头设备离网超时场景中,可以包括以下步骤:
S1113.第一管理设备判断第一成员设备是否离网超时。第一管理设备在确定组头设备离网时,可以启动第三定时器,并且如果在第三计时时长内未监听到组头设备的心跳消息,则可以判断组头设备离网超时。
S1114.如果第一成员设备离网超时,第一管理设备广播第一成员设备退出网络消息。相应地,第二成员设备接收该第一成员设备退出网络消息。
如果第一成员设备离网超时,第一管理设备广播第一成员设备退出网络消息,以通知各组成员设备停止与该组头设备进行组播通信。该广播针对的是第一网络中的各成员设备。
S1115.第二成员设备停止收发组播组消息。各组成员设备收到组头设备退出网络的消息 后,该组播组解散,各组成员设备停止收发组播组消息。
S1116.第一成员设备重新进入网络覆盖范围。组头设备在退出网络后,重新进入第一网络的网络覆盖范围。
S1117.第一成员设备重新申请接入网络。第一成员设备离网超时后,第一管理设备已删除该第一成员设备对应的第一MAC层临时通信参数,第一成员设备需要重新申请接入网络。
S1118.第一管理设备重新分配第一MAC层临时通信参数。第一成员设备重新获得第一MAC层临时通信参数。该第一MAC层临时通信参数可以与第一成员设备退出网络之前的第一MAC层临时通信参数相同或不同。
S1119.第一成员设备重新建立组播组。组头设备退出网络后,组播组解散。如果需要,需要重新建立组播组。
如图12所示,为本申请实施例提供的又一种通信方法的流程示意图,应用于组头设备离网和组成员设备离网场景。该方法可以包括以下步骤:S1201.第一成员设备广播心跳消息。
相应地,第一管理设备接收该心跳消息。第一成员设备广播心跳消息,表明组头设备在网。该广播针对的是第一网络中的各成员设备。
S1202.第二成员设备移动出网络覆盖范围。第一管理设备监听不到组成员设备的心跳消息,可以初步确定该组成员设备移动出第一网络的网络覆盖范围。
S1203.第一管理设备第四计时时长内是否未收到第二成员设备的心跳消息。第一管理设备监听不到组成员设备的心跳消息时,可以启动第四计时器,并判断在第四计时时长内是否未收到该组成员设备的心跳消息。
S1204.如果是,第一管理设备广播第二成员设备离网消息。相应地,第一成员设备接收该第二成员设备离网消息。如果第一管理设备在第四计时时长内仍未收到该组成员设备的心跳消息,可以确定该组成设备离网,并广播离网消息,以通知组头设备和其它组成员设备暂停与该组成员设备进行组播通信。该广播针对的是第一网络中的各成员设备。组成员设备离网可以分为组成员设备离网未超时和组成员设备离网超时场景。
具体地,一种场景为组成员设备离网未超时且管理设备标识变更场景,可以包括以下步骤:S1205.第一管理设备的标识变更。在组成员设备离网期间,第一管理设备的标识变更。
S1206.第二成员设备重新进入网络覆盖范围。该组成员设备在第四计时时长内重新进入第一网络的网络覆盖范围。
S1207.第二成员设备广播心跳消息。相应地,第一管理设备接收该心跳消息。该组成员设备重新进入第一网络的网络覆盖范围,则广播心跳消息。第一管理设备在第四计时时长内重新监听到该组成员设备的心跳消息,则表明该组成员设备重新进入该网络覆盖范围。该广播针对的是第一网络中的各成员设备。
S1208.第一管理设备广播第二成员设备重新在网消息。相应地,第一成员设备和第二成员设备接收该第二成员设备重新在网消息。第一管理设备在第四计时时长内重新监听到该组成员设备的心跳消息,则广播该组成员设备重新在网消息,以通知组头设备及其它组成员设备可以与该组成员设备进行组播通信。该广播针对的是第一网络中的各成员设备。
S1209.第二成员设备判断第一管理设备的标识是否变更。该组成员设备接收到第一管理设备广播的重新在网消息,该重新在网消息可以包括第四MAC层临时通信参数。该第四MAC层临时通信参数为第一网络对应的MAC层临时通信参数。该第四MAC层临时通信参数包括第一管理设备的标识,该组成员设备可以根据该重新在网消息,判断第一管理设备的标识是否发生变更。
可替换地,也可以由组头设备通知该组成员设备第一管理设备的标识发生变更。例如,组头设备在接收到第一管理设备广播的第一标识变更消息后,更新自身保存的第三MAC层临时通信参数,并广播更新的第三MAC层临时通信参数。该组成员设备接收并保存更新的第三MAC层临时通知参数。
S1210.如果判断的结果为是,第二成员设备更新第三MAC层临时通信参数。该组成员设备获取到更新的第一管理设备的标识后,可以更新自身保存的第三MAC层临时通信参数。
S1211.第二成员设备根据更新的第三MAC层临时通信参数,收发组播组消息。进一步地,另一种场景为组成员设备离网未超时且组头设备离网、组头设备的标识变更。
S1212.第一成员设备离网超时又接入网络。组头设备离网超时又接入网络,组头设备重新申请接入第一网络。组头设备重新从第一管理设备获得第一MAC层临时通信参数。
S1213.第二成员设备重新进入网络覆盖范围。该组成员设备在第四计时时长内重新进入第一网络的网络覆盖范围。
S1214.第二成员设备广播心跳消息。相应地,第一管理设备接收该心跳消息。
该组成员设备重新进入第一网络的网络覆盖范围,则广播心跳消息。第一管理设备在第四计时时长内重新监听到该组成员设备的心跳消息,则表明该组成员设备重新进入该网络覆盖范围。该广播针对的是第一网络中的各成员设备。
S1215.第一管理设备广播第二成员设备重新在网消息。相应地,第一成员设备、第二成员设备接收该第二成员设备重新在网消息。
第一管理设备在第四计时时长内重新监听到该组成员设备的心跳消息,则广播该组成员设备重新在网消息,以通知组头设备及其它组成员设备可以与该组成员设备进行组播通信。该广播针对的是第一网络中的各成员设备。
S1216.第二成员设备判断第一成员设备的标识是否发生变更。该组成员设备可以根据该重新在网消息,获得组头设备的标识,并与之前保存的第三MAC层临时通信参数中的组头设备的标识进行比较,判断组头设备的标识是否发生变更。
S1217.如果判断的结果为是,第二成员设备删除第三MAC层临时通信参数。如果判断该组头设备的标识发生变更,则该组成员设备删除保存的第三MAC层临时通信参数。该组播组解散。
S1218.第二成员设备重新申请加入组播组。该组成员设备重新申请加入组播组,可以参考图10所示实施例中的主动或被动加入组播组的方式。
又一种场景为,组成员设备离网超时场景。
S1219.第一管理设备判断第二成员设备是否离网超时。第一管理设备在第四计时时长内未监听到该组成员设备的心跳消息,则可以判断该组成员设备离网超时。
S1220.如果判断的结果为是,第一管理设备广播第二成员设备退出网络消息。相应地,第一成员设备接收该第二成员设备退出网络消息。
如果第一管理设备确定该组成员设备离网超时,则广播该组成员设备退出网络消息,以通知组头设备及其它组成员设备停止与该组成员设备进行组播通信。该广播针对的是第一网络中的各成员设备。
S1221.第二成员设备再次加入网络后,重新申请加入组播组。该组成员设备再次加入网络后,需要重新申请加入组播组,可以参考图10所示实施例中的主动或被动加入组播组的方式。
图13和图14为本申请的实施例提供的可能的通信装置的结构示意图。这些通信装置可 以用于实现上述方法实施例中第一管理设备或第一成员设备的功能,因此也能实现上述方法实施例所具备的有益效果。在本申请的实施例中,该通信装置可以是如图2所示的第一管理设备201,也可以是如图2所示的成员设备202,还可以是应用于第一管理设备或成员设备的模块(如芯片)。
如图13所示,通信装置1300包括处理单元1310和收发单元1320。通信装置1300用于实现上述图3~图12中所示的方法实施例中第一管理设备或第一成员设备的功能。以上单元任一可以由软件、硬件或二者结合实现。例如,处理单元1310是处理器,收发单元1320是无线收发器。
当通信装置1300用于实现图3~图12所示的方法实施例中第一管理设备的功能时:收发单元1320用于接收来自第二网络中的第二管理设备的第一同步消息,所述第一同步消息包括所述第二管理设备的标识;所述处理单元1310,用于确定所述第一管理设备的标识与所述第二管理设备的标识冲突;所述处理单元1310,还用于变更所述第一管理设备的标识;以及所述收发单元1320,还用于广播第一标识变更消息,所述第一标识变更消息包括更新的所述第一管理设备的标识。
可选地,所述MAC层临时通信参数还包括播类型和各成员设备的标识。
可选地,所述收发单元1320,还用于广播第二同步消息,所述第二同步消息包括所述第一管理设备的标识。
可选地,所述收发单元1320,还用于广播第一指示消息,所述第一指示消息用于指示所述至少一个成员设备停止业务收发;以及所述收发单元1320,还用于广播第二指示消息,所述第二指示消息用于指示所述至少一个成员设备恢复业务收发。
可选地,所述收发单元1320,还用于接收来自第一成员设备的第一请求消息,所述第一请求消息用于请求加入所述第一网络,所述第一请求消息包括所述第一成员设备的唯一标识,所述第一成员设备属于所述至少一个成员设备;所述处理单元1310,还用于根据所述第一成员设备的唯一标识,确定所述第一成员设备对应的第一MAC层临时通信参数;以及所述收发单元1320,还用于向所述第一成员设备发送第一响应消息,所述第一响应消息包括所述第一MAC层临时通信参数。
可选地,所述收发单元1320,还用于广播管理设备变更通知,所述管理设备变更通知用于通知将变更所述第一管理设备;所述收发单元1320,还用于接收来自所述至少一个成员设备的至少一个第二请求消息,所述至少一个第二请求消息包括所述至少一个成员设备中每个设备的以下至少一个信息:设备优先级、剩余电量、可直接通信设备数量;所述处理单元1310,还用于根据所述至少一个信息,在所述至少一个成员设备中确定第三管理设备,所述第三管理设备为所述第一网络的新的管理设备;以及所述收发单元1320,还用于广播管理设备变更结果通知,所述管理设备变更结果通知包括所述第三管理设备对应的第二MAC层临时通信参数。
当通信装置1300用于实现图3~图12所示的方法实施例中第一成员设备的功能时:所述收发单元1320,用于接收来自所述第一管理设备的第一标识变更消息,所述第一标识变更消息包括更新的所述第一管理设备的标识,所述第一成员设备属于所述至少一个成员设备;以及所述处理单元1310,用于变更所述第一成员设备对应的第一MAC层临时通信参数。
可选地,所述收发单元1320,还用于接收来自所述第一管理设备的第一指示消息,所述第一指示消息用于指示所述至少一个成员设备停止业务收发;所述处理单元1310,还用于停止进行业务收发;所述收发单元1320,还用于接收来自所述第一管理设备的第二指示信息, 所述第二指示消息用于指示所述至少一个成员设备恢复业务收发;以及所述处理单元1310,还用于恢复业务收发。
可选地,所述第一MAC层临时通信参数还包括播类型和所述第一成员设备的标识。
可选地,所述收发单元1320,还用于向所述第一管理设备发送第一请求消息,所述第一请求消息用于请求加入所述第一网络,所述请求消息包括所述第一成员设备的唯一标识;以及所述收发单元1320,还用于接收来自所述第一管理设备的第一响应消息,所述第一响应消息包括所述第一MAC层临时通信参数。
可选地,所述收发单元1320,还用于接收来自所述第一管理设备的管理设备变更通知,所述管理设备变更通知用于通知将变更所述第一管理设备;所述收发单元1320,还用于向所述第一管理设备发送第二请求消息,所述第二请求消息包括所述第一成员设备的以下至少一个信息:设备优先级、剩余电量、可直接通信设备数量;所述收发单元1320,还用于接收来自所述第一管理设备的变更完成消息,所述管理设备变更结果通知包括第三管理设备对应的第二MAC层临时通信参数,所述第三管理设备为所述第一网络的新的管理设备。
可选地,所述第一网络包括组播组,所述组播组包括至少两个成员设备,所述至少两个成员设备包括组头设备和组成员设备,所述第一成员设备为所述组头设备;所述处理单元1310,还用于建立所述组播组,获得所述组播组对应的第三MAC层临时通信参数,所述第三MAC层临时通信参数包括播类型、所述第一管理设备的标识、所述组播组的标识;以及所述收发单元1320,还用于广播建立完成消息,所述建立完成消息包括组成员列表和所述第三MAC层临时通信参数,所述组成员列表包括所述第一MAC层临时通信参数和所述组成员设备对应的MAC层临时通信参数。
可选地,所述组播组的标识是由所述第一成员设备生成的;或所述组播组的标识是由所述第一管理设备分配的;或所述组播组的标识是设定值。
可选地,所述处理单元1310,还用于根据所述第一标识变更消息,更新所述第三MAC层临时通信参数;以及所述收发单元1320,还用于向所述组成员设备发送第二标识变更消息,所述第二标识变更消息包括更新的所述第三MAC层临时通信参数。
有关上述处理单元1310和收发单元1320更详细的描述可以直接参考图3~图12所示的方法实施例中相关描述直接得到,这里不加赘述。
如图14所示,通信装置1400包括处理器1410和接口电路1420。处理器1410和接口电路1420之间相互耦合。可以理解的是,接口电路1420可以为收发器或输入输出接口。可选的,通信装置1400还可以包括存储器1430,用于存储处理器1410执行的指令或存储处理器1410运行指令所需要的输入数据或存储处理器1410运行指令后产生的数据。
当通信装置1400用于实现图3~图12所示的方法时,处理器1410用于实现上述处理单元1310的功能,接口电路1420用于实现上述收发单元1320的功能。
当上述通信装置为应用于终端的芯片时,该终端芯片实现上述方法实施例中终端的功能。该终端芯片从终端中的其它模块(如射频模块或天线)接收信息,该信息是基站发送给终端的;或者,该终端芯片向终端中的其它模块(如射频模块或天线)发送信息,该信息是终端发送给基站的。
当上述通信装置为应用于基站的芯片时,该基站芯片实现上述方法实施例中基站的功能。该基站芯片从基站中的其它模块(如射频模块或天线)接收信息,该信息是终端发送给基站的;或者,该基站芯片向基站中的其它模块(如射频模块或天线)发送信息,该信息是基站发送给终端的。
可以理解的是,本申请的实施例中的处理器可以是中央处理单元(Central Processing Unit,CPU),还可以是其它通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field Programmable Gate Array,FPGA)或者其它可编程逻辑器件、晶体管逻辑器件,硬件部件或者其任意组合。通用处理器可以是微处理器,也可以是任何常规的处理器。
本申请的实施例中的方法步骤可以通过硬件的方式来实现,也可以由处理器执行软件指令的方式来实现。软件指令可以由相应的软件模块组成,软件模块可以被存放于随机存取存储器、闪存、只读存储器、可编程只读存储器、可擦除可编程只读存储器、电可擦除可编程只读存储器、寄存器、硬盘、移动硬盘、只读光盘(compact disc read-only memory,CD-ROM)或者本领域熟知的任何其它形式的存储介质中。一种示例性的存储介质耦合至处理器,从而使处理器能够从该存储介质读取信息,且可向该存储介质写入信息。当然,存储介质也可以是处理器的组成部分。处理器和存储介质可以位于ASIC中。另外,该ASIC可以位于基站或终端中。当然,处理器和存储介质也可以作为分立组件存在于基站或终端中。
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机程序或指令。在计算机上加载和执行所述计算机程序或指令时,全部或部分地执行本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、基站、用户设备或者其它可编程装置。所述计算机程序或指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机程序或指令可以从一个网站站点、计算机、服务器或数据中心通过有线或无线方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是集成一个或多个可用介质的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,例如,软盘、硬盘、磁带;也可以是光介质,例如,数字视频光盘;还可以是半导体介质,例如,固态硬盘。
在本申请的各个实施例中,如果没有特殊说明以及逻辑冲突,不同的实施例之间的术语和/或描述具有一致性、且可以相互引用,不同的实施例中的技术特征根据其内在的逻辑关系可以组合形成新的实施例。
本申请中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A,B可以是单数或者复数。在本申请的文字描述中,字符“/”,一般表示前后关联对象是一种“或”的关系;在本申请的公式中,字符“/”,表示前后关联对象是一种“相除”的关系。
可以理解的是,在本申请的实施例中涉及的各种数字编号仅为描述方便进行的区分,并不用来限制本申请的实施例的范围。上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定。
Claims (31)
- 一种通信方法,其特征在于,应用于第一网络,所述第一网络包括第一管理设备和至少一个成员设备,各成员设备分别对应一个设备到设备D2D通信的媒体接入控制MAC层临时通信参数,所述MAC层临时通信参数包括所述第一管理设备的标识,所述方法包括:所述第一管理设备接收来自第二网络中的第二管理设备的第一同步消息,所述第一同步消息包括所述第二管理设备的标识;所述第一管理设备确定所述第一管理设备的标识与所述第二管理设备的标识冲突;所述第一管理设备变更所述第一管理设备的标识;所述第一管理设备广播第一标识变更消息,所述第一标识变更消息包括更新的所述第一管理设备的标识。
- 根据权利要求1所述的方法,其特征在于,所述MAC层临时通信参数还包括播类型和各成员设备的标识。
- 根据权利要求1或2所述的方法,其特征在于,所述方法还包括:所述第一管理设备广播第二同步消息,所述第二同步消息包括所述第一管理设备的标识。
- 根据权利要求1~3中任一项所述的方法,其特征在于,所述第一管理设备变更所述第一管理设备的标识后,以及所述第一管理设备广播第一标识变更消息前,所述方法还包括:所述第一管理设备广播第一指示消息,所述第一指示消息用于指示所述至少一个成员设备停止业务收发;所述第一管理设备广播第一标识变更消息后,所述方法还包括:所述第一管理设备广播第二指示消息,所述第二指示消息用于指示所述至少一个成员设备恢复业务收发。
- 根据权利要求1~4中任一项所述的方法,其特征在于,所述方法还包括:所述第一管理设备接收来自第一成员设备的第一请求消息,所述第一请求消息用于请求加入所述第一网络,所述第一请求消息包括所述第一成员设备的唯一标识,所述第一成员设备属于所述至少一个成员设备;所述第一管理设备根据所述第一成员设备的唯一标识,确定所述第一成员设备对应的第一MAC层临时通信参数;所述第一管理设备向所述第一成员设备发送第一响应消息,所述第一响应消息包括所述第一MAC层临时通信参数。
- 根据权利要求1~5中任一项所述的方法,其特征在于,所述方法还包括:所述第一管理设备广播管理设备变更通知,所述管理设备变更通知用于通知将变更所述第一管理设备;所述第一管理设备接收来自所述至少一个成员设备的至少一个第二请求消息,所述至少一个第二请求消息包括所述至少一个成员设备中每个设备的以下至少一个信息:设备优先级、剩余电量、可直接通信设备数量;所述第一管理设备根据所述至少一个信息,在所述至少一个成员设备中确定第三管理设备,所述第三管理设备为所述第一网络的新的管理设备;所述第一管理设备广播管理设备变更结果通知,所述管理设备变更结果通知包括所述第三管理设备对应的第二MAC层临时通信参数。
- 一种通信方法,其特征在于,应用于第一网络,所述第一网络包括第一管理设备和至少一个成员设备,各成员设备分别对应一个设备到设备D2D通信的媒体接入控制MAC层临时通信参数,所述MAC层临时通信参数包括所述第一管理设备的标识,所述方法包括:第一成员设备接收来自所述第一管理设备的第一标识变更消息,所述第一标识变更消息包括更新的所述第一管理设备的标识,所述第一成员设备属于所述至少一个成员设备;所述第一成员设备变更所述第一成员设备对应的第一MAC层临时通信参数。
- 根据权利要求7所述的方法,其特征在于,所述第一成员设备接收来自所述第一管理设备的第一标识变更消息之前,所述方法还包括:所述第一成员设备接收来自所述第一管理设备的第一指示消息,所述第一指示消息用于指示所述至少一个成员设备停止业务收发;所述第一成员设备停止进行业务收发;所述第一成员设备变更所述第一MAC层临时通信参数之后,所述第一成员设备接收来自所述第一管理设备的第二指示信息,所述第二指示消息用于指示所述至少一个成员设备恢复业务收发;所述第一成员设备恢复业务收发。
- 根据权利要求7或8所述的方法,其特征在于,所述第一MAC层临时通信参数还包括播类型和所述第一成员设备的标识。
- 根据权利要求7~9中任一项所述的方法,其特征在于,所述方法还包括:所述第一成员设备向所述第一管理设备发送第一请求消息,所述第一请求消息用于请求加入所述第一网络,所述请求消息包括所述第一成员设备的唯一标识;所述第一成员设备接收来自所述第一管理设备的第一响应消息,所述第一响应消息包括所述第一MAC层临时通信参数。
- 根据权利要求7~10中任一项所述的方法,其特征在于,所述方法还包括:所述第一成员设备接收来自所述第一管理设备的管理设备变更通知,所述管理设备变更通知用于通知将变更所述第一管理设备;所述第一成员设备向所述第一管理设备发送第二请求消息,所述第二请求消息包括所述第一成员设备的以下至少一个信息:设备优先级、剩余电量、可直接通信设备数量;所述第一成员设备接收来自所述第一管理设备的变更完成消息,所述管理设备变更结果通知包括第三管理设备对应的第二MAC层临时通信参数,所述第三管理设备为所述第一网络的新的管理设备。
- 根据权利要求7~11中任一项所述的方法,其特征在于,所述第一网络包括组播组,所述组播组包括至少两个成员设备,所述至少两个成员设备包括组头设备和组成员设备,所述第一成员设备为所述组头设备,所述方法还包括:所述第一成员设备建立所述组播组,获得所述组播组对应的第三MAC层临时通信参数,所述第三MAC层临时通信参数包括播类型、所述第一管理设备的标识、所述组播组的标识;所述第一成员设备广播建立完成消息,所述建立完成消息包括组成员列表和所述第三MAC层临时通信参数,所述组成员列表包括所述第一MAC层临时通信参数和所述组成员设备对应的MAC层临时通信参数。
- 根据权利要求12所述的方法,其特征在于:所述组播组的标识是由所述第一成员设备生成的;或所述组播组的标识是由所述第一管理设备分配的;或所述组播组的标识是设定值。
- 根据权利要求12或13所述的方法,其特征在于,所述方法还包括:所述第一成员设备根据所述第一标识变更消息,更新所述第三MAC层临时通信参数;所述第一成员设备向所述组成员设备发送第二标识变更消息,所述第二标识变更消息包括更新的所述第三MAC层临时通信参数。
- 一种通信装置,其特征在于,应用于第一网络,所述第一网络包括第一管理设备和至少一个成员设备,各成员设备分别对应一个设备到设备D2D通信的媒体接入控制MAC层临时通信参数,所述MAC层临时通信参数包括所述第一管理设备的标识,所述装置包括:收发单元和处理单元;其中:所述收发单元,用于接收来自第二网络中的第二管理设备的第一同步消息,所述第一同步消息包括所述第二管理设备的标识;所述处理单元,用于确定所述第一管理设备的标识与所述第二管理设备的标识冲突;所述处理单元,还用于变更所述第一管理设备的标识;所述收发单元,还用于广播第一标识变更消息,所述第一标识变更消息包括更新的所述第一管理设备的标识。
- 根据权利要求15所述的装置,其特征在于,所述MAC层临时通信参数还包括播类型和各成员设备的标识。
- 根据权利要求15或16所述的装置,其特征在于,所述收发单元,还用于广播第二同步消息,所述第二同步消息包括所述第一管理设备的标识。
- 根据权利要求15~17中任一项所述的装置,其特征在于,所述收发单元,还用于广播第一指示消息,所述第一指示消息用于指示所述至少一个成员设备停止业务收发;所述收发单元,还用于广播第二指示消息,所述第二指示消息用于指示所述至少一个成员设备恢复业务收发。
- 根据权利要求15~18中任一项所述的装置,其特征在于,所述收发单元,还用于接收来自第一成员设备的第一请求消息,所述第一请求消息用于请求加入所述第一网络,所述第一请求消息包括所述第一成员设备的唯一标识,所述第一成员设备属于所述至少一个成员 设备;所述处理单元,还用于根据所述第一成员设备的唯一标识,确定所述第一成员设备对应的第一MAC层临时通信参数;所述收发单元,还用于向所述第一成员设备发送第一响应消息,所述第一响应消息包括所述第一MAC层临时通信参数。
- 根据权利要求15~19中任一项所述的装置,其特征在于,所述收发单元,还用于广播管理设备变更通知,所述管理设备变更通知用于通知将变更所述第一管理设备;所述收发单元,还用于接收来自所述至少一个成员设备的至少一个第二请求消息,所述至少一个第二请求消息包括所述至少一个成员设备中每个设备的以下至少一个信息:设备优先级、剩余电量、可直接通信设备数量;所述处理单元,还用于根据所述至少一个信息,在所述至少一个成员设备中确定第三管理设备,所述第三管理设备为所述第一网络的新的管理设备;所述收发单元,还用于广播管理设备变更结果通知,所述管理设备变更结果通知包括所述第三管理设备对应的第二MAC层临时通信参数。
- 一种通信装置,其特征在于,应用于第一网络,所述第一网络包括第一管理设备和至少一个成员设备,各成员设备分别对应一个设备到设备D2D通信的媒体接入控制MAC层临时通信参数,所述MAC层临时通信参数包括所述第一管理设备的标识,所述装置包括:收发单元和处理单元;其中:所述收发单元,用于接收来自所述第一管理设备的第一标识变更消息,所述第一标识变更消息包括更新的所述第一管理设备的标识,所述第一成员设备属于所述至少一个成员设备;所述处理单元,用于变更所述第一成员设备对应的第一MAC层临时通信参数。
- 根据权利要求21所述的装置,其特征在于,所述收发单元,还用于接收来自所述第一管理设备的第一指示消息,所述第一指示消息用于指示所述至少一个成员设备停止业务收发;所述处理单元,还用于停止进行业务收发;所述收发单元,还用于接收来自所述第一管理设备的第二指示信息,所述第二指示消息用于指示所述至少一个成员设备恢复业务收发;所述处理单元,还用于恢复业务收发。
- 根据权利要求21或22所述的装置,其特征在于,所述第一MAC层临时通信参数还包括播类型和所述第一成员设备的标识。
- 根据权利要求21~23中任一项所述的装置,其特征在于,所述收发单元,还用于向所述第一管理设备发送第一请求消息,所述第一请求消息用于请求加入所述第一网络,所述请求消息包括所述第一成员设备的唯一标识;所述收发单元,还用于接收来自所述第一管理设备的第一响应消息,所述第一响应消息包括所述第一MAC层临时通信参数。
- 根据权利要求21~24中任一项所述的装置,其特征在于,所述收发单元,还用于接收来自所述第一管理设备的管理设备变更通知,所述管理设备变更通知用于通知将变更所述第一管理设备;所述收发单元,还用于向所述第一管理设备发送第二请求消息,所述第二请求消息包括所述第一成员设备的以下至少一个信息:设备优先级、剩余电量、可直接通信设备数量;所述收发单元,还用于接收来自所述第一管理设备的变更完成消息,所述管理设备变更结果通知包括第三管理设备对应的第二MAC层临时通信参数,所述第三管理设备为所述第一网络的新的管理设备。
- 根据权利要求21~25中任一项所述的装置,其特征在于,所述第一网络包括组播组,所述组播组包括至少两个成员设备,所述至少两个成员设备包括组头设备和组成员设备,所述第一成员设备为所述组头设备;所述处理单元,还用于建立所述组播组,获得所述组播组对应的第三MAC层临时通信参数,所述第三MAC层临时通信参数包括播类型、所述第一管理设备的标识、所述组播组的标识;所述收发单元,还用于广播建立完成消息,所述建立完成消息包括组成员列表和所述第三MAC层临时通信参数,所述组成员列表包括所述第一MAC层临时通信参数和所述组成员设备对应的MAC层临时通信参数。
- 根据权利要求26所述的装置,其特征在于:所述组播组的标识是由所述第一成员设备生成的;或所述组播组的标识是由所述第一管理设备分配的;或所述组播组的标识是设定值。
- 根据权利要求26或27所述的装置,其特征在于,所述处理单元,还用于根据所述第一标识变更消息,更新所述第三MAC层临时通信参数;所述收发单元,还用于向所述组成员设备发送第二标识变更消息,所述第二标识变更消息包括更新的所述第三MAC层临时通信参数。
- 一种通信装置,其特征在于,包括处理器,所述处理器与存储器耦合,所述处理器用于读取所述存储器中的指令,以实现如权利要求1-6中任一项所述的方法,或者,实现如权利要求7-14中任一项所述的方法。
- 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现如权利要求1-6中任一项所述的方法、实现如权利要求7-14中任一项所述的方法。
- 一种计算机程序产品,用于当在计算设备上执行时,执行如权利要求1-6中任一项所述的方法、执行如权利要求7-14中任一项所述的方法。
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2021/127758 WO2023070617A1 (zh) | 2021-10-30 | 2021-10-30 | 通信方法及装置、存储介质、程序产品 |
CN202180101692.7A CN117941381A (zh) | 2021-10-30 | 2021-10-30 | 通信方法及装置、存储介质、程序产品 |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2021/127758 WO2023070617A1 (zh) | 2021-10-30 | 2021-10-30 | 通信方法及装置、存储介质、程序产品 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2023070617A1 true WO2023070617A1 (zh) | 2023-05-04 |
Family
ID=86158940
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2021/127758 WO2023070617A1 (zh) | 2021-10-30 | 2021-10-30 | 通信方法及装置、存储介质、程序产品 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN117941381A (zh) |
WO (1) | WO2023070617A1 (zh) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105940622A (zh) * | 2014-01-31 | 2016-09-14 | Lg电子株式会社 | 处理用于d2d通信系统的id冲突的方法及其装置 |
CN106470380A (zh) * | 2015-08-14 | 2017-03-01 | 中兴通讯股份有限公司 | 设备到设备标识冲突的解决方法、设备到设备用户设备 |
WO2017052602A1 (en) * | 2015-09-25 | 2017-03-30 | Nokia Solutions And Networks Oy | Proximity services layer-2 id collision detection |
-
2021
- 2021-10-30 CN CN202180101692.7A patent/CN117941381A/zh active Pending
- 2021-10-30 WO PCT/CN2021/127758 patent/WO2023070617A1/zh active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105940622A (zh) * | 2014-01-31 | 2016-09-14 | Lg电子株式会社 | 处理用于d2d通信系统的id冲突的方法及其装置 |
CN106470380A (zh) * | 2015-08-14 | 2017-03-01 | 中兴通讯股份有限公司 | 设备到设备标识冲突的解决方法、设备到设备用户设备 |
WO2017052602A1 (en) * | 2015-09-25 | 2017-03-30 | Nokia Solutions And Networks Oy | Proximity services layer-2 id collision detection |
Non-Patent Citations (3)
Title |
---|
APPLE: "Discussion on remaining issues on service continuity", 3GPP TSG RAN WG2 MEETING #116BIS-E, R2-2201137, 11 January 2022 (2022-01-11), XP052094240 * |
ERICSSON: "Identifiers and Addresses for D2D Communication", 3GPP TSG RAN WG2 #85BIS, R2-141262, 22 March 2014 (2014-03-22), XP050792487 * |
ERICSSON: "Synchronization Signals and Channel Design for D2D Discovery and Communication", 3GPP TSG RAN WG1 MEETING #76BIS, R1-141380, 30 March 2014 (2014-03-30), XP050787051 * |
Also Published As
Publication number | Publication date |
---|---|
CN117941381A (zh) | 2024-04-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113556763B (zh) | 实现时间敏感网络的数据传输的方法、相关设备及介质 | |
US11224079B2 (en) | Method and apparatus for operating wireless communication system having separated mobility management and session management | |
CA3148150A1 (en) | Connection establishment method,device,integrated access backhaul node and storage medium | |
CN103517371B (zh) | 一种设备到设备的通信方法、装置及系统 | |
US10484866B2 (en) | Device-to-device identification conflict solution method and device-to-device user equipment | |
WO2018027591A1 (zh) | V2x消息发送方法、装置及系统 | |
CN106331978B (zh) | 一种层2链路标识的选择、通知方法及装置 | |
WO2018170913A1 (zh) | 一种系统信息传输方法及装置 | |
WO2019029520A1 (zh) | 一种寻呼消息的发送方法及相关设备 | |
KR20130086849A (ko) | 적어도 하나의 보조 허브를 포함하는 무선 신체 영역 네트워크(wban)에서 통신하는 주 허브, 보조 허브, 센서 노드 및 그 통신 방법 | |
WO2021088661A1 (zh) | 通信方法、装置及设备 | |
JP2020520176A (ja) | 情報伝送方法および装置 | |
WO2017166032A1 (zh) | 一种nan设备发送同步信标消息的方法和设备 | |
CN106454806A (zh) | 一种进行数据传输的方法和设备 | |
WO2019201245A1 (zh) | 一种通信方法及装置 | |
WO2021134728A1 (zh) | 一种上下文管理方法及装置 | |
CN113973399A (zh) | 报文转发方法、装置及系统 | |
CN111935726B (zh) | 通信处理方法、主节点、从节点、存储介质及系统 | |
WO2021174377A1 (zh) | 切换方法和通信装置 | |
WO2023070617A1 (zh) | 通信方法及装置、存储介质、程序产品 | |
WO2022228275A1 (zh) | 一种通信方法、装置及系统 | |
CN103796174A (zh) | 一种集群信息的传送方法及相应的集群终端和接入节点 | |
WO2017012125A1 (zh) | 无线接入点同步协作方法、设备及系统 | |
CN106465443A (zh) | D2d通信中的ip地址分配方法及用户设备 | |
WO2023116410A1 (zh) | 一种通信方法及设备 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 21961969 Country of ref document: EP Kind code of ref document: A1 |
|
WWE | Wipo information: entry into national phase |
Ref document number: 202180101692.7 Country of ref document: CN |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 21961969 Country of ref document: EP Kind code of ref document: A1 |