WO2021174536A1 - 一种通信方法及相关装置 - Google Patents

一种通信方法及相关装置 Download PDF

Info

Publication number
WO2021174536A1
WO2021174536A1 PCT/CN2020/078240 CN2020078240W WO2021174536A1 WO 2021174536 A1 WO2021174536 A1 WO 2021174536A1 CN 2020078240 W CN2020078240 W CN 2020078240W WO 2021174536 A1 WO2021174536 A1 WO 2021174536A1
Authority
WO
WIPO (PCT)
Prior art keywords
information
priority
resource
communication
resource allocation
Prior art date
Application number
PCT/CN2020/078240
Other languages
English (en)
French (fr)
Inventor
肖潇
刘航
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to EP20922810.5A priority Critical patent/EP4102920A4/en
Priority to PCT/CN2020/078240 priority patent/WO2021174536A1/zh
Priority to CN202080009268.5A priority patent/CN113366869B/zh
Publication of WO2021174536A1 publication Critical patent/WO2021174536A1/zh
Priority to US17/901,638 priority patent/US20220417944A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/40Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P]
    • H04W4/48Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P] for in-vehicle communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/50Allocation or scheduling criteria for wireless resources
    • H04W72/56Allocation or scheduling criteria for wireless resources based on priority criteria
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/50Allocation or scheduling criteria for wireless resources
    • H04W72/53Allocation or scheduling criteria for wireless resources based on regulatory allocation policies
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/20Control channels or signalling for resource management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/50Allocation or scheduling criteria for wireless resources
    • H04W72/56Allocation or scheduling criteria for wireless resources based on priority criteria
    • H04W72/566Allocation or scheduling criteria for wireless resources based on priority criteria of the information or information source or recipient

Definitions

  • This application relates to the field of wireless communication, especially to the field of short-range communication, such as the cockpit domain.
  • This application provides a communication method and related devices.
  • the connected devices involved in the smart cockpit mainly include car machines, car audio and video equipment (speakers, microphones, etc.), smart terminals, such as mobile phones, and other smart wearable devices (such as earphones).
  • the car machine and the audio and video equipment in the car are mainly connected in a wired manner; the car machine and the smart terminal, and the smart terminal and other wearable devices are mostly connected in a wireless manner, such as Bluetooth.
  • the vehicle When the vehicle is connected to the smart terminal for communication, the vehicle is now the master node, the smart terminal is the slave node, and the master node is responsible for allocating resources for the slave nodes.
  • the smart terminal communicates with the smart wearable device, the smart terminal is the master node and the smart wearable device is the slave node; in the prior art, when multiple different master-slave nodes communicate simultaneously (with different composition Domain), there may be conflicts in communication resources between multiple master-slave communication pairs, serious interference problems, severely affected communication and service performance, and lack of good user experience.
  • the embodiments of the present application disclose a communication method and related devices, which can perform unified communication resource management and allocation, and avoid interference and resource collision caused by communication between any two devices on other device communication.
  • the first aspect of the embodiments of the present application discloses a communication method, and the communication method includes:
  • the first resource configuration information is used to configure a first resource
  • the first resource is used for communication between the first device and a third device, or the first resource configuration
  • the information is used to configure a second resource
  • the second resource is used for communication between the first device and the second device.
  • the electronic device obtains at least one of the identity information and priority information of the first device, and the electronic device obtains the first resource after determining that the priority of the first device is higher than the priority of the second device Configuration information.
  • the resources configured by the first resource configuration information are allocated by the first device, and can be used for communication between the first device and the third device, and can also be used for communication between the first device and the second device.
  • the electronic device (execution body) in the embodiment of the present application may be the second device or the third device, and the priority of the device is used to determine a device with the highest priority (the first device) to coordinate resource allocation.
  • the execution subject is the second device, the second device obtains the first resource configuration information.
  • the first resource configuration is used for communication between the first device and the second device, and may also be used for communication between the first device and the third device.
  • the third device obtains the first resource configuration information, and the first resource configuration is used to configure the communication between the first device and the third device. That is, the device with the highest priority can uniformly manage and allocate communication resources, avoiding interference and resource collisions caused by communication between any two devices on other devices.
  • the priority information is used to indicate the priority of resource allocation.
  • the lower priority device obeys the resource allocation of the higher priority device.
  • the device with the highest priority allocates resources as a whole to avoid interference and resource collisions caused by communication between any two devices on other devices.
  • the identity information indicates the resource allocation priority of the first device.
  • This implementation provides that when the electronic device obtains the identity information of the first device, it can determine the resource allocation priority of the first device through the identity information, thereby determining a device with the highest priority to coordinate the allocation of resources.
  • the highest-level device can manage and allocate communication resources uniformly, avoiding interference and resource collisions caused by communication between any two devices on other devices.
  • the method further includes: stopping sending a broadcast message, the broadcast message including at least one of the identity information and priority information of the second device.
  • This implementation manner describes that after the electronic device determines that the priority of the first device is higher than that of the second device, the electronic device stops sending broadcast messages, that is, stops connecting with other devices, and obeys the resource allocation of the first device. It is realized that the device with the highest priority (the first device) can manage and allocate communication resources in a unified manner, avoiding the interference and resource collision caused by the communication between any two devices on the communication of other devices.
  • the method further includes: sending first information to the third device, where the first information is used to indicate that the second device no longer allocates resources to the third device, or The first information is used to indicate the change of the resource acquisition mode of the third device.
  • This method describes that when the electronic device is the second device, the first information is sent to the third device to indicate that the third device has a device with a higher priority (the first device), and the third device will no longer be from the second device.
  • the second device obtains the resource allocation information, and the third device can change the mode of obtaining the resource allocation information, and obtain the resource allocation information from the first device. It is realized that the device with the highest priority (the first device) can manage and allocate communication resources in a unified manner, avoiding the interference and resource collision caused by the communication between any two devices on the communication of other devices.
  • the broadcast message from the second device does not include the identity information and priority information of the second device, or the first information is used to indicate the termination of the communication to the third device.
  • Resource allocation This method describes that when the electronic device is the second device, the first information may be used to indicate that the second device no longer allocates resources to the third device. Or the broadcast message sent by the second device no longer contains the identity information and priority information of the second device, that is, the second device stops connecting with other devices and obeys the resource allocation of the first device. It is realized that the device with the highest priority (the first device) can manage and allocate communication resources in a unified manner, avoiding the interference and resource collision caused by the communication between any two devices on the communication of other devices.
  • the first information includes at least one of the identity information and priority information of the first device, and/or the first information carries a mode change indication, and the mode change The indication is used to instruct the third device to obtain resource allocation information from the first device.
  • the first information can indicate the identity information and priority information of the first device to the third device, so as to instruct the third device to receive the resource allocation from the first device.
  • the acquiring first resource configuration information includes: receiving the first resource configuration information from a first device. This way describes that the first resource configuration information can come from the first device. It is realized that the device with the highest priority can uniformly manage and allocate communication resources, avoiding the interference and resource collision caused by the communication between any two devices on the communication of other devices.
  • the method further includes: sending second resource configuration information to the third device, and the resources configured by the second resource configuration information are part of the resources in the second resource; or Sending the first resource configuration information to the third device.
  • This method describes that the electronic device sends the second resource configuration information to the third device.
  • the resources configured by the second resource configuration information are part of the resources configured by the first resource configuration information.
  • the second device receives After the first resource configuration information, the resources of the second device can be configured according to the first resource configuration information, and at the same time, the second device sends the second resource configuration information in the first resource configuration information to the third device, and the third device is based on the second resource configuration information.
  • the resource configuration information configures the resources of the third device.
  • the second device directly sends the first resource configuration information to the third device, where the first resource configuration information comes from the first device, and the second device sends the first resource configuration information to the third device.
  • the device with the highest priority does not need to establish a connection with each device, and the technical effect of uniform resource allocation to multiple devices can be achieved, which is convenient for resource management.
  • the method further includes: sending second information to the second device, where the second information is used to instruct to release the connection with the second device.
  • the third device sends second information to the second device to indicate that the second device has a higher priority device (the first device), and the third device releases The connection resource with the second device, the second device stops allocating resources to the third device. It is realized that the device with the highest priority (the first device) can manage and allocate communication resources in a unified manner, avoiding the interference and resource collision caused by the communication between any two devices on the communication of other devices.
  • the acquiring first resource configuration information includes: acquiring the first resource configuration information from the first device, where the first resource configuration information is used to configure the first resource, The first resource is used for communication between the first device and the third device.
  • the first resource configuration information of the third device may come from the first device.
  • the electronic device execution body
  • the first resource configuration information may also be forwarded from the second device, and the second device receives the resource configuration information from the first device, and then sends it to the third device.
  • the device with the highest priority can uniformly manage and allocate communication resources, avoiding the interference and resource collision caused by the communication between any two devices on the communication of other devices.
  • the method further includes: receiving first information from the second device, where the first information is used to indicate that the second device no longer allocates resources to the third device, or The second information is used to indicate the change of the resource acquisition mode of the third device.
  • This implementation mode describes that when the electronic device is the third device, the first information sent by the second device is received.
  • the first information indicates that the third device has a device with a higher priority (the first device).
  • the device no longer obtains the resource allocation information from the second device, and the third device changes the mode of obtaining the resource allocation information, and can obtain the resource allocation information from the first device. It is realized that the device with the highest priority (the first device) can manage and allocate communication resources in a unified manner, avoiding the interference and resource collision caused by the communication between any two devices on the communication of other devices.
  • the second aspect of the embodiments of the present application discloses a communication method, and the communication method includes:
  • Send third information where the third information includes at least one of the identity information of the first device, the first address, and the priority information of the first device, and the identity information of the first device indicates the first device With resource allocation function;
  • the response message including identification information of the second device.
  • the embodiment of the application provides a method for establishing a connection between devices to communicate.
  • the first device actively initiates the connection and sends third information, which can indicate the first device.
  • the priority information of the device the device with the lower priority obeys the resource allocation of the device with the higher priority.
  • the second device sends response information to the first device according to the received third information, and establishes a connection with the first device.
  • This connection method establishes connection communication based on the priority information of the device, so that when a communication pair accesses a complex environment (there are multiple communication pairs), a device with the highest priority is determined to uniformly allocate resources based on the priority information of the device. Solve the problem of mutual interference between multiple communication pairs.
  • the priority information is used to indicate the priority of resource allocation.
  • the lower priority device obeys the resource allocation of the higher priority device.
  • the device with the highest priority allocates resources as a whole to avoid interference and resource collisions caused by communication between any two devices on other devices.
  • the method further includes: sending a connection establishment message to the second device, the connection establishment message including a second address, and the second address is that the first device is the The address assigned by the second device.
  • This method describes that the first device sends the second address to the second device, where the second address is a short address.
  • the third aspect of the embodiments of the present application discloses a communication method, and the communication method includes:
  • connection establishment message includes the identification information of the second device
  • Fourth information is sent according to the connection establishment message, where the fourth information includes at least one of the identity information of the first device, the first address, and the priority information of the first device, and the identity information of the first device Indicating that the first device has a resource allocation function.
  • the embodiment of the present application provides a method for establishing a connection between devices for communication.
  • the second device actively initiates the connection, and the first device receives the connection establishment message from the second device.
  • Send fourth information to establish a connection with the second device the fourth information may indicate priority information of the first device, and the device with a lower priority obeys the resource allocation of the device with a higher priority.
  • This connection method establishes connection communication based on the priority information of the device, so that when a communication pair accesses a complex environment (there are multiple communication pairs), a device with the highest priority is determined to uniformly allocate resources based on the priority information of the device. Solve the problem of mutual interference between multiple communication pairs.
  • the priority information is used to indicate the priority of resource allocation.
  • the lower priority device obeys the resource allocation of the higher priority device.
  • the device with the highest priority allocates resources as a whole to avoid interference and resource collisions caused by communication between any two devices on other devices.
  • the fourth information further includes a second address, and the second address is an address allocated by the first device to the second device.
  • the fourth information may also include a second address, which is a short address.
  • a communication device in a fourth aspect of the embodiments of the present application, includes:
  • An acquiring unit configured to acquire at least one of identity information and priority information of a first device, where the identity information of the first device indicates that the first device has a resource allocation function;
  • a determining unit configured to determine that the priority indicated by the priority information of the first device is higher than the priority of the second device
  • the acquiring unit is further configured to acquire first resource configuration information, where the first resource configuration information is used to configure a first resource, and the first resource is used for communication between the first device and a third device, Alternatively, the first resource configuration information is used to configure a second resource, and the second resource is used for communication between the first device and the second device.
  • the priority information is used to indicate the priority of resource allocation.
  • the lower priority device obeys the resource allocation of the higher priority device.
  • the device with the highest priority allocates resources as a whole to avoid interference and resource collisions caused by communication between any two devices on other devices.
  • the identity information indicates the resource allocation priority of the first device.
  • the device further includes: a stopping unit, configured to stop sending a broadcast message, the broadcast message containing at least one of the identity information and priority information of the second device.
  • the device further includes: a first sending unit, configured to send first information to the third device, where the first information is used to indicate that the second device is no longer the first The three devices allocate resources, or the first information is used to indicate the change of the third device resource acquisition mode.
  • a first sending unit configured to send first information to the third device, where the first information is used to indicate that the second device is no longer the first The three devices allocate resources, or the first information is used to indicate the change of the third device resource acquisition mode.
  • the broadcast message from the second device does not include the identity information and priority information of the second device, or the first information is used to indicate the termination of the communication to the third device.
  • Resource allocation is used to indicate the termination of the communication to the third device.
  • the first information includes at least one of the identity information and priority information of the first device, and/or the first information carries a mode change indication, and the mode change The indication is used to instruct the third device to obtain resource allocation information from the first device.
  • the acquiring unit is specifically configured to receive the first resource configuration information from the first device.
  • the first sending unit is further configured to send second resource configuration information to the third device, and the resource configured by the second resource configuration information is one of the second resources Partial resources; or sending the first resource configuration information to the third device.
  • the device further includes: a second sending unit, configured to send second information to the second device, the second information being used to instruct to release the connection with the second device .
  • the acquiring unit is specifically configured to acquire the first resource configuration information from the first device.
  • the device further includes: a first receiving unit, configured to receive first information from the second device, where the first information is used to indicate that the second device is no longer The third device allocates resources, or the second information is used to indicate a change of the third device's resource acquisition mode.
  • the first device includes but is not limited to a car machine;
  • the second device includes but is not limited to a mobile phone, a tablet, a car microphone or a car speaker, etc.;
  • the third device includes but is not limited to Headphones or wearable devices, etc.
  • a fifth aspect of the embodiments of the present application discloses a communication device, and the communication device includes:
  • the third sending unit is configured to send third information, where the third information includes at least one of the identity information of the first device, the first address, and the priority information of the first device, and the identity of the first device.
  • the information indicates that the first device has a resource allocation function
  • the second receiving unit is configured to receive a response message from a second device, where the response message includes identification information of the second device.
  • the priority information is used to indicate the priority of resource allocation.
  • the lower priority device obeys the resource allocation of the higher priority device.
  • the device with the highest priority allocates resources as a whole to avoid interference and resource collisions caused by communication between any two devices on other devices.
  • the third sending unit is further configured to send a connection establishment message to the second device, where the connection establishment message includes a second address, and the second address is the first The address assigned by the device to the second device.
  • the first device includes but is not limited to a mobile phone, a tablet, a car microphone or a car speaker, etc.
  • the second device includes but is not limited to a headset or a wearable device.
  • the first device includes but is not limited to a car machine
  • the second device includes but is not limited to a mobile phone, a tablet, a car microphone, a car speaker, a headset, or a wearable device.
  • a sixth aspect of the embodiments of the present application discloses a communication device, and the communication device includes:
  • a third receiving unit configured to receive a connection establishment message, where the connection establishment message includes identification information of the second device
  • the fourth sending unit is configured to send fourth information according to the connection establishment message, where the fourth information includes at least one of the identity information of the first device, the first address, and the priority information of the first device, so The identity information of the first device indicates that the first device has a resource allocation function.
  • the priority information is used to indicate the priority of resource allocation.
  • the lower priority device obeys the resource allocation of the higher priority device.
  • the device with the highest priority allocates resources as a whole to avoid interference and resource collisions caused by communication between any two devices on other devices.
  • the fourth information further includes a second address, and the second address is an address allocated by the first device to the second device.
  • the first device includes but is not limited to a mobile phone, a tablet, a car microphone or a car speaker, etc.
  • the second device includes but is not limited to a headset or a wearable device.
  • the first device includes but is not limited to a car machine
  • the second device includes but is not limited to a mobile phone, a tablet, a car microphone, a car speaker, a headset, or a wearable device.
  • a seventh aspect of the embodiments of the present application discloses a device, the device includes at least one processor, and the processor is configured to support an electronic device to implement a corresponding function in the communication method provided by the first aspect or the second aspect or the third aspect .
  • the device may also include a memory, which is used for coupling with the processor, and stores the necessary program instructions and data of the electronic device.
  • the device may also include at least one communication interface for providing information input and/or output for the at least one processor.
  • the device may be a chip or an integrated circuit inside an electronic device.
  • the device may be the electronic device itself, and when the device is the electronic device itself, the communication interface may also provide information input and/or output for the electronic device.
  • the eighth aspect of the embodiments of the present application discloses a computer-readable storage medium, including computer instructions.
  • the computer instructions run on an electronic device, the electronic device executes the first aspect or the second aspect or the first aspect of the embodiments of the present application.
  • the communication method provided by any one of the three aspects.
  • the ninth aspect of the embodiments of the present application discloses a computer program product.
  • the computer program product runs on an electronic device, the electronic device is caused to execute any one of the first aspect, the second aspect, or the third aspect of the embodiments of the present application.
  • the tenth aspect of the embodiments of the present application discloses a chip, which includes a processor, and is used to support a network device to implement the functions involved in the first aspect, the second aspect, or the third aspect, for example, to generate or process the communication.
  • the information involved in the method is involved in the method.
  • the chip further includes a memory, and the memory is used to store program instructions and data necessary for the data sending device.
  • the chip system can be composed of chips, or include chips and other discrete devices.
  • the beneficial effects of the seventh, eighth, ninth, and tenth aspects provided above can be referred to the beneficial effects of the communication methods provided by the first, second, or third aspects, here No longer.
  • Fig. 1 is an application scenario diagram of a communication method provided by an embodiment of the present application
  • FIG. 2 is a schematic flowchart of a communication method provided by an embodiment of the present application.
  • FIG. 3 is a schematic flowchart of another communication method provided by an embodiment of the present application.
  • FIG. 4 is a schematic flowchart of another communication method provided by an embodiment of the present application.
  • FIG. 5 is a schematic flowchart of another communication method provided by an embodiment of the present application.
  • FIG. 6 is a schematic flowchart of another communication method provided by an embodiment of the present application.
  • FIG. 7 is a schematic structural diagram of a communication device provided by an embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of another communication device provided by an embodiment of the present application.
  • FIG. 9 is a schematic structural diagram of another communication device provided by an embodiment of the present application.
  • FIG. 10 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • FIG. 11 is a schematic structural diagram of a chip provided by an embodiment of the present application.
  • component used in this specification are used to denote computer-related entities, hardware, firmware, a combination of hardware and software, software, or software in execution.
  • the component may be, but is not limited to, a process, a processor, an object, an executable file, an execution thread, a program, and/or a computer running on a processor.
  • the application running on the computing device and the computing device can be components.
  • One or more components may reside in processes and/or threads of execution, and components may be located on one computer and/or distributed among two or more computers.
  • these components can be executed from various computer readable media having various data structures stored thereon.
  • the component can be based on, for example, a signal having one or more data packets (e.g. data from two components interacting with another component in a local system, a distributed system, and/or a network, such as the Internet that interacts with other systems through a signal) Communicate through local and/or remote processes.
  • a signal having one or more data packets (e.g. data from two components interacting with another component in a local system, a distributed system, and/or a network, such as the Internet that interacts with other systems through a signal) Communicate through local and/or remote processes.
  • the electronic devices involved in the embodiments of this application may be vehicle devices such as car machines, car speakers, car microphones, mobile phones, tablet computers, desktops, laptops, notebook computers, Ultra-mobile Personal Computers (UMPCs). ), handheld computers, netbooks, personal digital assistants (PDAs), wearable electronic devices, virtual reality devices, etc.
  • vehicle devices such as car machines, car speakers, car microphones, mobile phones, tablet computers, desktops, laptops, notebook computers, Ultra-mobile Personal Computers (UMPCs).
  • UMPCs Ultra-mobile Personal Computers
  • handheld computers netbooks, personal digital assistants (PDAs), wearable electronic devices, virtual reality devices, etc.
  • PDAs personal digital assistants
  • CDC control domain cockpit
  • the cockpit domain controller which is also referred to as car machine in this application.
  • the functions of the car machine already have cellular communication functions (3G, 4G, etc.) and Telematics, which can be combined with the CAN-BUS technology of the car to realize the human and the car, the car and the outside world.
  • the information communication of the company enhances the user experience, service, and security-related functions.
  • Master node and slave node Two types of nodes are distinguished in logical function, namely master node and slave node. Among them, the master node manages the slave nodes, has the function of allocating resources, and is responsible for allocating resources for the slave nodes; the slave nodes listen to the master node's scheduling, and use the resources allocated by the master node to communicate with the master node. It should be noted that the attribute characteristics of the node may change. For example, when the smart terminal communicates with the headset, the smart terminal is the master node and the headset is the slave node, but when the smart terminal accesses a higher priority device (such as CDC) When obeying the CDC scheduling, the role attribute of the smart terminal is changed to the slave node at this time.
  • a higher priority device such as CDC
  • Master-slave communication pair It includes a master node device and a slave node device. The two devices are connected to each other to form a pair of master-slave communication.
  • the connected devices involved in the smart cockpit mainly include car machines (CDC), car audio and video equipment (speakers, microphones, etc.), smart terminals, such as mobile phones, and other smart wearable devices (such as earphones).
  • car machines CDC
  • car audio and video equipment microphones, etc.
  • smart terminals such as mobile phones
  • other smart wearable devices such as earphones.
  • the car machine and the car-mounted audio and video equipment are mainly connected by wire; the car machine CDC and the intelligent terminal, and the intelligent terminal and other wearable devices are mostly connected by wireless means, such as Bluetooth.
  • the CDC When the CDC is connected to the first smart terminal for communication, the CDC is the master node, the first smart terminal is the slave node, and the master node is responsible for allocating resources for the slave nodes.
  • the second smart terminal may be communicating with a smart wearable device (such as a headset).
  • the second smart terminal is the master The node, the smart wearable device connected to it is the slave node.
  • the master node allocates resources to the slave node.
  • the main problem to be solved by this application is how to coordinate the resource allocation among multiple master nodes in a short-distance space such as a cockpit, so as to avoid resource collision and interference in communication between multiple master-slave node pairs, and ensure user experience.
  • the connection establishment is realized based on the device priority information, so that high-priority devices can uniformly schedule and control resources.
  • the CDC can uniformly manage and allocate resources in the cockpit. This method can avoid communication between any two devices. Interference and resource collision caused by the communication of other devices.
  • the application scenario may be in a smart cockpit, and may include a high-priority master node device 11, a low-priority master node device 12, and a slave node device 13.
  • the high-priority master node device 11, the low-priority master node device 12, and the slave node device 13 communicate through a wireless connection (for example, Bluetooth).
  • a wireless connection for example, Bluetooth
  • the high-priority master node device 11, the low-priority master node device 12, and the slave node device 13 are all electronic devices, which may be stationary or mobile. It can be a network device or a terminal device.
  • Network equipment includes various forms of network equipment, such as servers, macro base stations, micro base stations (also called small stations), relay stations, and access points.
  • the server may include, but is not limited to, a cloud server, a background server, a component server, a data processing server, etc.
  • the server may communicate with multiple terminals via the Internet.
  • the server needs to run corresponding server-side programs to provide corresponding services, such as database services, data calculations, decision execution, and so on.
  • Terminal equipment includes communication terminals, vehicle-mounted equipment, mobile equipment, user terminals, mobile terminals, wireless communication equipment, portable terminals, user agents, user devices, service equipment or user equipment (User Equipment, UE) and other computer networks at the periphery of the network
  • the device is mainly used for data input and output or display of processing results. It can also be a software client, application, etc. installed or running on any of the above devices.
  • the terminal can be a mobile phone, a cordless phone, a smart watch, a wearable device, a tablet device, a handheld device with wireless communication function, a computing device, an in-vehicle communication module, a smart meter, or other processing devices connected to a wireless modem.
  • the high-priority master node device 11 can be a car CDC;
  • the low-priority master node device 12 can be a mobile phone, a tablet, a car microphone, a car speaker, etc.;
  • slave node device 13 It can be earphones, wearable devices, etc.
  • Different devices realize connection establishment based on the priority information of the device, so that high-priority devices can uniformly schedule and manage resources, effectively reducing the problem of mutual interference between multiple master-slave communication pairs.
  • an embodiment of the present application provides a communication method. Take the first device as the high-priority master node, the second device as the low-priority master node, and the third device as the slave node as an example. The third device successfully establishes a connection with the second device, and the second device and the third device are a master-slave communication pair.
  • three specific embodiments are used to describe in detail, when the second device and the third device enter the communication range of the first device, how the first device, the second device, and the third device perform connection updates and resources distribute.
  • Embodiment 1 The low-priority master node (the second device, such as a mobile phone) determines the priority, stops its own resource allocation function, and obeys the resource allocation of the high-priority master node (the first device, such as a vehicle).
  • Step S201 Acquire at least one of the identity information and priority information of the first device.
  • the first device sends at least one of the identity information and priority information of the first device, and when the second device enters the communication range of the first device, the second device obtains the identity information and priority information of the first device At least one of them.
  • the identity information of the first device indicates that the first device has a resource allocation function, that is, the first device can act as a master node.
  • the identity information can indicate the type of equipment (for example, a car, a mobile phone, a portable terminal, etc.), or an identity that can identify the first device as a master node.
  • resource allocation may also be referred to as resource management or resource scheduling.
  • At least one of the identity information and priority information of the first device may be included in a broadcast message sent by the first device (for example, a system broadcast message), or may be included in resource control signaling (Radio Resource Control, RRC). )middle.
  • at least one of the identity information and priority information of the first device may be sent in a broadcast manner, or may be sent in a unicast or multicast manner.
  • the identity information and priority information of the first device may be carried in a physical signal sent by the first device.
  • the physical signal may be a primary synchronization signal
  • different priority information may correspond to synchronization signals of different patterns or patterns
  • other devices may obtain or determine the priority information of the first device by receiving the synchronization signal.
  • the priority information corresponds to the pattern or pattern of the physical signal, or in other words, the priority information is indicated by the pattern or pattern of the physical signal.
  • the identity information may be indicated by the device identification code.
  • the device identification code encodes the device according to a certain encoding rule. Among them, different fields in the device identification code have different meanings, and the identity information of the device can be obtained by parsing some or all of the fields.
  • the device identification code can have 2 bits to indicate the device type, such as 00 for CDC, 01 for mobile phones, 10 for wearable devices, etc.; for example, the identity information can also be indicated by 1 bit, that is, 0 for the master node ( With resource allocation/scheduling function), 1 identifies the slave node (only listens to the master node's scheduling).
  • the identity information can be indicated by a media access layer address (Media Access Control Address, MAC address), which is similar to the device identification code, and will not be repeated here.
  • MAC address Media Access Control Address
  • the priority information is used to indicate the priority of resource allocation.
  • a device with a lower priority shall obey the resource allocation of a device with a higher priority.
  • priority information may be embodied as access priority or connection priority, that is, other devices preferentially establish connections with high-priority devices, or initiate access to high-priority devices, and the high-priority devices perform unified resource allocation. For example, when other devices face connection requests sent by multiple devices, they establish connections with the device with the highest priority among multiple devices; or when other devices initiate connection requests to multiple devices, the priority among multiple devices The highest device responds to the connection request and establishes a connection; or other devices initiate a connection request to the device with the highest priority among multiple devices.
  • the priority information may be a level identifier, which indicates the priority of the first device as the master node.
  • CDC sends the first system broadcast message, the message carries the first access priority indicator 000 (high access priority); the mobile phone sends the second system broadcast message, the message carries the second access priority indicator 001 (Low access priority), at this time, other devices preferentially send connection establishment/access requests to the CDC, and the CDC schedules resources for it.
  • the priority information may be agreed in accordance with the agreement. For example, in the agreement, it may be agreed that the CDC device has the highest priority and the mobile phone has the lower priority.
  • the second device before the second device obtains at least one of the identity information and priority information of the first device, the second device first broadcasts the connection request message.
  • the first device When the first device enters the communication range of the second device, the first device responds to the connection request message sent by the second device and sends response information to the second device.
  • the response information includes the identity information and priority information of the first device At least one of them.
  • the second device obtains at least one of the identity information and priority information of the first device.
  • the second device may obtain at least one of the identity information and priority information of the first device by receiving the system broadcast message sent by the first device.
  • the identity information may indicate the priority of resource allocation.
  • the second device obtains the identity information of the first device, it can determine the resource allocation priority of the first device through the identity information.
  • the device preferentially applies for resources from a device with a higher resource allocation priority, and the device with a higher resource allocation priority performs unified resource allocation and management.
  • the identity information of the first device may be priority information of the first device, that is, when the second device obtains the identity information of the first device, the priority of the first device can be determined through the identity information, so that It is determined whether to send a connection establishment request to the first device, and the first device schedules resources for it.
  • Step S202 Determine that the priority indicated by the priority information of the first device is higher than the priority of the second device.
  • the second device determines that the priority indicated by the priority information of the first device is higher than the priority of the second device.
  • Step S203A Send a first message and set the master node identity as the default.
  • the second device After determining that the priority indicated by the priority information of the first device is higher than the priority of the second device, the second device sets the identity information of the second device (indicating that the second device has a resource allocation function) as a default, That is, the second device no longer acts as the master node to allocate resources to other devices, and the second device obeys the resource allocation of the first device. Since the second device and the third device are a master-slave communication pair, the second device sends the first message to the third device. The first information is used to indicate that the second device no longer allocates resources to the third device, that is, the second device no longer serves as the master node of the third device.
  • the first information may include at least one of the identity information and priority information of the first device, and the first information carries a mode change indication, which indicates the change of the resource acquisition mode of the third device, according to the first information in the first information. At least one of the identity information and priority information of the device instructs the third device to obey the resource allocation of the first device and obtain the resource allocation information from the first device.
  • Step S203B The second device sends a broadcast message, broadcasting the default master node identity.
  • the second device after determining that the priority indicated by the priority information of the first device is higher than the priority of the second device, the second device sets the identity information of the second device (indicating that the second device has a resource allocation function) as a default, That is, the second device no longer acts as the master node to allocate resources to other devices, and the second device obeys the resource allocation of the first device. And the second device sends a broadcast message, which is used to broadcast to other devices declaring that the master node identity of the second device is default. After receiving the broadcast message, the third device no longer obeys the resource allocation of the second device.
  • the broadcast message from the second device does not include the identity information and priority information of the second device, that is, the second device is temporarily unable to connect to other devices as the master node.
  • Step S203C The second device stops sending the broadcast message.
  • the second device stops sending the broadcast message, and the second device obeys the resource allocation of the first device.
  • the third device cannot obtain the broadcast message of the second device, it automatically disconnects from the third device and no longer obeys the resource allocation of the second device.
  • steps S203A, S203B, and S203C are optional steps, and the order of execution is not limited.
  • Step S204 The third device establishes a connection with the first device.
  • the third device establishes a connection with the first device, obeys the resource allocation of the first device, and obtains resource allocation information from the first device.
  • the third device releases the connection with the second device and releases the resources allocated by the second device.
  • Step S205 Acquire first resource configuration information.
  • the second device obtains the first resource configuration information from the first device, the first resource configuration information is used to configure the second resource, and the second resource is used for communication between the first device and the second device;
  • the third device obtains the first resource configuration information from the first device;
  • the first device acquires first resource configuration information, the first resource configuration information is used to configure the first resource, and the first resource is used for communication between the first device and the third device.
  • the second device and the third device directly obtain resource allocation information from the first device respectively.
  • the communication data between the second device and the third device can be transferred through the first device to complete data transmission.
  • the second device before the second device obtains the configuration information with the first resource, it also includes successfully establishing a connection with the first device.
  • the core idea of the first embodiment is that within a certain range, only the master node with the highest priority is allowed to declare the master node identity; the low-priority master node (second device) recognizes the master node with higher priority. After the node (the first device), it stops its resource allocation function and informs the connected slave node device (the third device). Subsequent low-priority master nodes and slave nodes obey the resource allocation of the high-priority master node.
  • the slave node (the third device) and the low-priority master node (the second device) move out of the communication coverage of the high-priority master node (the first device)
  • the low-priority master node (the second device) If the master node with higher priority is not detected, the master node identity is restored by itself, and the third device continues to obey the resource allocation of the second device.
  • whether or not it is in the communication range may depend on whether the received signal power is greater than the preset power threshold. When it is greater than the preset power threshold, it is considered to be within the communication range, otherwise it is considered not to be within the communication range.
  • whether it is within the communication range may also depend on whether the communication rate is greater than a certain rate threshold.
  • the principle is similar to that of signal power, and will not be repeated here.
  • Embodiment 2 The low-priority master node (the second device, such as a mobile phone) judges the priority, stops its own resource allocation function, obeys the resource allocation of the high-priority master node (the first device, such as a vehicle), and forwards the slave The resources of the node (third device) are given to the third device.
  • the second device such as a mobile phone
  • step S301 and step S302 can refer to step S201 and step S202 in FIG. 2.
  • Step S303A Send the first information to indicate the change of the third device resource acquisition mode.
  • the second device After the second device determines that the priority indicated by the priority information of the first device is higher than the priority of the second device, the second device stops its own resource allocation and obeys the resource allocation of the first device. Since the second device and the third device are a master-slave communication pair, the slave node (third device) connected to the second device also obeys the resource allocation of the first device. Then the second device sends the first message to the third device.
  • the first information is used to indicate the change of the resource acquisition mode of the third device, that is, the second device no longer serves as the master node of the third device to allocate resources to the third device, and the resources of the third device are not allocated by the second device .
  • the first information may include at least one of the identity information and priority information of the first device, and the first information carries a mode change indication, which indicates the change of the resource acquisition mode of the third device, according to the first information in the first information.
  • At least one of the identity information and priority information of the device indicates that the third device obeys the resource allocation of the first device, and the second device replaces its slave node (third device) to apply for resources from the first device and forwards it to the third device.
  • the first information may include at least one of the identity information and priority information of the first device, and the first information carries a mode change indication, which indicates the change of the resource acquisition mode of the third device, according to the first information in the first information.
  • At least one of the identity information and priority information of the device indicates that the third device obeys the resource allocation of the first device, and the second device replaces its slave node (third device) to apply for resources from the first device and forwards it to the third device.
  • the second device replaces its slave node (third device) to apply for
  • Step S303B Send a broadcast message to instruct the third device to change the resource acquisition mode.
  • the second device After the second device determines that the priority indicated by the priority information of the first device is higher than the priority of the second device, the second device stops its own resource allocation and obeys the resource allocation of the first device. Since the second device and the third device are a master-slave communication pair, the slave node (third device) connected to the second device also obeys the resource allocation of the first device. Then the second device sends a broadcast message to the third device, and the broadcast message is used to broadcast to other devices announcing the change of the slave node resource acquisition mode of the second device. After receiving the broadcast message, the third device releases all resources previously allocated by the second device.
  • the broadcast message from the second device may contain the identity information and priority information of the second device, that is, the second device can be used as the master node to connect to other devices, but it needs to apply for resources from the first device and forward it to the slave node.
  • steps S303A and S303B are optional steps, and the order of execution is not limited.
  • Step S304 The third device releases the connection resource with the second device.
  • the third device releases all the resources previously allocated by the second device, and reacquires the resource allocation information allocated by the first device from the second device.
  • step S304 is an optional step.
  • Step S305 Acquire first resource configuration information.
  • the second device obtains first resource configuration information from the first device, the first resource configuration information is used to configure the second resource, and the second resource is used for communication between the first device and the second device; the first resource configuration The information may also be used to configure the first resource, and the first resource is used for communication between the first device and the third device.
  • the second device sends to the first device data information indicating the slave nodes connected to the second device, the data information including the number of slave nodes connected to the second device, the device type of the slave node, and the identity of the slave node Information and the amount of data from the node, etc.
  • the first device allocates a corresponding resource to each node, and sends it to the second device.
  • the second device before the second device obtains the configuration information with the first resource, it also includes successfully establishing a connection with the first device.
  • Step S306 Send second resource configuration information.
  • the second device after receiving the first resource configuration information, the second device sends the second resource configuration information to the third device.
  • the second resource configuration information is the resource allocated by the first device to the third device.
  • the first resource configuration information is used to configure the second resource, and the resource configured by the second resource configuration information is a part of the second resource.
  • the second device forwards or transparently transmits the first resource configuration information to the third device.
  • the first resource configuration information is used to configure the first resource, and the second device directly forwards the first resource configuration information (the second resource configuration information is the same as the first resource configuration information).
  • the core idea of the second embodiment is that within a certain range, master nodes with different priorities are allowed to declare the identity of the master node at the same time; the master node with lower priority (second device) recognizes the master node with higher priority After (first device), stop its resource allocation function, and notify the connected slave node device (third device). Subsequent low-priority master nodes replace the slave nodes to apply for resources from the high-priority master nodes and send them to the slave nodes.
  • the slave node (the third device) and the low-priority master node (the second device) move out of the communication coverage of the high-priority master node (the first device)
  • the low-priority master node (the second device) If the master node with higher priority is not detected, the master node identity is restored by itself, and the third device continues to obey the resource allocation of the second device.
  • whether or not it is in the communication range may depend on whether the received signal power is greater than the preset power threshold. When it is greater than the preset power threshold, it is considered to be within the communication range, otherwise it is considered not to be within the communication range.
  • whether it is within the communication range may also depend on whether the communication rate is greater than a certain rate threshold.
  • the principle is similar to that of signal power, and will not be repeated here.
  • Embodiment 3 The slave node (the third device) judges the priority, stops obeying the resource allocation of the low-priority master node (second device), and obeys the resource allocation of the high-priority master node (the first device, for example, car machine).
  • Step S401 Acquire at least one of the identity information and priority information of the first device.
  • the first device broadcasts at least one of the identity information and priority information of the first device.
  • the third device obtains the identity information and priority information of the first device.
  • the identity information of the first device indicates that the first device has a resource allocation function, that is, the first device can act as a master node.
  • the identity information can indicate the type of equipment (for example, a car, a mobile phone, a portable terminal, etc.), or an identity that can identify the first device as a master node.
  • resource allocation may also be referred to as resource management or resource scheduling.
  • At least one of the identity information and priority information of the first device may be included in a broadcast message sent by the first device (for example, a system broadcast message), or may be included in resource control signaling (Radio Resource Control, RRC). )middle.
  • at least one of the identity information and priority information of the first device may be sent in a broadcast manner, or may be sent in a unicast or multicast manner.
  • the identity information and priority information of the first device may be carried in a physical signal sent by the first device.
  • the physical signal may be a primary synchronization signal
  • different priority information may correspond to synchronization signals of different patterns or patterns
  • other devices may obtain or determine the priority information of the first device by receiving the synchronization signal.
  • the identity information may be indicated by the device identification code.
  • the device identification code encodes the device according to a certain encoding rule. Among them, different fields in the device identification code have different meanings, and the identity information of the device can be obtained by parsing some or all of the fields.
  • the device identification code can have 2 bits to indicate the device type, such as 00 for CDC, 01 for mobile phones, 10 for wearable devices, etc.; for example, the identity information can also be indicated by 1 bit, that is, 0 for the master node ( With resource allocation/scheduling function), 1 identifies the slave node (only listens to the master node's scheduling).
  • the identity information can be indicated by a media access layer address (Media Access Control Address, MAC address), which is similar to the device identification code, and will not be repeated here.
  • MAC address Media Access Control Address
  • the priority information is used to indicate the priority of resource allocation.
  • a device with a lower priority shall obey the resource allocation of a device with a higher priority.
  • priority information may also be embodied as access priority or connection priority, that is, other devices preferentially establish connections with high-priority devices, or initiate access to high-priority devices, and the high-priority devices perform unified resource allocation. For example, when other devices face connection requests sent by multiple devices, they establish connections with the device with the highest priority among multiple devices; or when other devices initiate connection requests to multiple devices, the priority among multiple devices The highest device responds to the connection request and establishes a connection; or other devices initiate a connection request to the device with the highest priority among multiple devices.
  • the priority information may be a level identifier, which indicates the priority of the first device as the master node.
  • the CDC sends the first system broadcast message, which carries the first access priority indication, 000 (high access priority); the mobile phone sends the second system broadcast message, and the message carries the second access priority indication 001 (low access priority), then other devices preferentially send connection establishment/access requests to the CDC at this time, and the CDC will schedule resources for it.
  • the priority information may be agreed in accordance with the agreement. For example, in the agreement, it may be agreed that the CDC device has the highest priority and the mobile phone has the lower priority.
  • the third device before the third device acquires at least one of the identity information and priority information of the first device, the third device first broadcasts the connection request message.
  • the first device When the first device enters the communication range of the third device, the first device responds to the connection request message sent by the third device and sends response information to the third device.
  • the response information includes the identity information and priority information of the first device At least one of them.
  • the third device obtains at least one of the identity information and priority information of the first device.
  • the third device may obtain at least one of the identity information and priority information of the first device by receiving the system broadcast message sent by the first device.
  • the identity information of the first device may indicate the resource allocation priority of the first device.
  • the third device obtains the identity information of the first device, it can determine the resource allocation priority of the first device through the identity information.
  • the device applies for resources from a device with a higher resource allocation priority, and the device with a higher resource allocation priority performs unified resource allocation and management.
  • the identity information of the first device may be priority information of the first device, that is, when the third device obtains the identity information of the first device, the priority of the first device may be determined through the identity information, thereby It is determined whether to send a connection establishment request to the first device, and the first device schedules resources for it.
  • Step S402 Determine that the priority indicated by the priority information of the first device is higher than the priority of the second device.
  • the third device determines that the priority indicated by the priority information of the first device is higher than the priority of the second device.
  • Step S403 The third device establishes a connection with the first device.
  • the third device establishes a connection with the first device after determining that the priority indicated by the priority information of the first device is higher than the priority of the second device. That is, the third device obeys the resource allocation of the first device.
  • the third device releases the connection with the second device, that is, the second device no longer acts as the master node to allocate resources to the third device.
  • releasing the connection with the second device may not require receiving a response message from the second device.
  • Step S404 Send second information to instruct the second resource to stop resource allocation.
  • the second device can send the second information to the third device.
  • the second information is used to indicate that the second device no longer allocates resources to the third device, that is, the second device no longer serves as the master node of the third device.
  • the second information may be a disconnection request message.
  • the first information may include at least one of the identity information and priority information of the first device, indicating that the second device obeys the resource allocation of the first device, and obtains the resource allocation information from the first device.
  • step S404 is an optional step.
  • Step S405 Acquire first resource configuration information.
  • the third device obtains first resource configuration information from the first device, the first resource configuration information is used to configure the first resource, and the first resource is used for communication between the first device and the third device;
  • the first device obtains first resource configuration information, the first resource configuration information is used to configure a second resource, and the second resource is used for communication between the first device and the second device.
  • the second device and the third device directly obtain resource allocation information from the first device respectively.
  • the communication data between the second device and the third device can be transferred through the first device to complete data transmission.
  • the second device before the second device obtains the configuration information with the first resource, it also includes successfully establishing a connection with the first device.
  • the core idea of the third embodiment is that within a certain range, master nodes with different priorities are allowed to declare the identity of the master node at the same time; the slave node (the third device) recognizes the master node with higher priority (the first After the device), stop obeying the resource allocation of the low-priority master node (second device) and notify it. Subsequent low-priority master nodes and slave nodes obey the resource allocation of the high-priority master node.
  • the slave node (third device) and the low-priority master node (second device) move out of the communication coverage of the high-priority master node (first device)
  • the slave node (third device) cannot detect With a higher priority master node, the second device becomes the master node with the highest priority, and the third device continues to obey the resource allocation of the second device.
  • connection change and resource allocation process specifically implements the connection change and resource allocation process, determine a device with the highest priority based on priority information, and perform coordinated and unified allocation of resources, avoiding interference and ensuring service quality.
  • Manner 1 With the first device as the execution subject, the first device actively initiates a connection request to connect with the second device. As shown in Figure 5, the method includes but is not limited to the following steps:
  • Step S501 The first device sends third information.
  • the first device sends the third information
  • the third information may be sent by means of broadcast, multicast, or the like. Used to indicate the connection request of the first device.
  • the third information may include at least one of the identity information of the first device, the priority information of the first device, and the first address.
  • the identity information of the first device is used to characterize that the first device has the function of resource allocation, and the identity information may specifically be the device type of the first device (for example, CDC, mobile phone, portable terminal, etc.), or it may be other characters that can characterize the first device.
  • the device is the identification of the master node. It can be understood that resource allocation may also be referred to as resource management or resource scheduling.
  • the first device may periodically broadcast and send the third information on the broadcast channel; it may also broadcast the third information by randomly selecting resources on the broadcast channel.
  • the identity information and priority information can be pre-configured at the factory according to the device attributes.
  • At least one of the identity information and priority information of the first device may be included in a broadcast message sent by the first device (for example, a system broadcast message), or may be included in a resource control signaling (Radio Resource). Control, RRC).
  • a broadcast message sent by the first device for example, a system broadcast message
  • RRC resource control signaling
  • at least one of the identity information and priority information of the first device may be sent in a broadcast manner, or may be sent in a unicast or multicast manner.
  • the identity information and priority information of the first device may be carried in a physical signal sent by the first device.
  • the physical signal may be a primary synchronization signal
  • different priority information may correspond to synchronization signals of different patterns or patterns
  • other devices may obtain or determine the priority information of the first device by receiving the synchronization signal.
  • the identity information can be indicated by the device identification code.
  • the device identification code encodes the device according to a certain encoding rule. Among them, different fields in the device identification code have different meanings, and the identity information of the device can be obtained by parsing some or all of the fields.
  • the device identification code can have 2 bits to indicate the device type, such as 00 for CDC, 01 for mobile phones, 10 for wearable devices, etc.; for example, the identity information can also be indicated by 1 bit, that is, 0 for the master node ( With resource allocation/scheduling function), 1 identifies the slave node (only listens to the master node's scheduling).
  • the identity information can be indicated by a media access layer address (Media Access Control Address, MAC address), which is similar to the device identification code, and will not be repeated here.
  • MAC address Media Access Control Address
  • the priority information is used to indicate the priority of resource allocation.
  • a device with a lower priority shall obey the resource allocation of a device with a higher priority.
  • priority information may also be embodied as access priority or connection priority, that is, other devices preferentially establish connections with high-priority devices, or initiate access to high-priority devices, and the high-priority devices perform unified resource allocation. For example, when other devices face connection requests sent by multiple devices, they establish connections with the device with the highest priority among multiple devices; or when other devices initiate connection requests to multiple devices, the priority among multiple devices The highest device responds to the connection request and establishes a connection; or other devices initiate a connection request to the device with the highest priority among multiple devices.
  • the priority information may be a level identifier, which indicates the priority of the first device as the master node.
  • the CDC sends the first system broadcast message, which carries the first access priority indication, 000 (high access priority); the mobile phone sends the second system broadcast message, and the message carries the second access priority indication 001 (low access priority), then other devices preferentially send connection establishment/access requests to the CDC at this time, and the CDC will schedule resources for it.
  • the priority information may be agreed in accordance with the agreement. For example, in the agreement, it may be agreed that the CDC device has the highest priority and the mobile phone has the lower priority.
  • the identity information of the first device may indicate the resource allocation priority of the first device.
  • the second device obtains the identity information of the first device, it can determine the resource allocation priority of the first device through the identity information.
  • the device applies for resources from a device with a higher resource allocation priority, and the device with a higher resource allocation priority performs unified resource allocation and management.
  • the identity information of the first device may be priority information of the first device, that is, when the third device obtains the identity information of the first device, the priority of the first device may be determined through the identity information, thereby It is determined whether to send a connection establishment request to the first device, and the first device schedules resources for it.
  • the first address may indicate the resource allocation priority of the first device.
  • the first address can be used to determine the resource allocation priority of the first device.
  • the first address is information sent by the CDC; at this time, through the first address, the second device can know that the first device has a resource allocation function, and the resource allocation priority is the highest.
  • the first address is a media access layer address.
  • the third information may also include the device ID of the first device, and the device ID of the first device may uniquely indicate the first device, for example, it may be the hardware address of the first device; other devices may Communicate with the first device through the device ID.
  • the device ID may indicate the resource allocation priority of the first device. When the second device obtains the device ID of the first device, the device ID can be used to determine the resource allocation priority of the first device.
  • Step S502 The second device sends a response message.
  • the second device receives the third information.
  • the second device sends a response message to the first device, the response message containing identification information of the second device (for example, the device ID of the second device).
  • the trigger mode for sending the response message by the second device includes manual trigger and automatic trigger.
  • Manual triggering includes click, touch, voice, gesture, hover touch and other methods.
  • the manual trigger may be the initial response to the connection establishment of the first device, after the second device receives the third information sent by the first device, it sends a response message according to the user's manual trigger.
  • Automatic triggering can be that after the second device and the first device establish a connection for the first time, they store each other’s device ID or other identity that can uniquely identify the other; subsequently, when the second device again receives the third information sent by the first device If it is recognized that the identity of the first device is the same as the stored identity, a response message will be automatically sent to the first device according to the third information.
  • Step S503 The first device sends connection establishment information.
  • the first device after receiving the response message from the second device, the first device sends a connection establishment message to the second device.
  • the connection establishment message includes a second address, which is an address allocated by the first device to the second device, used for communication between the first device and the second device, and resources allocated by the first device to the second device (For example, time-frequency resources).
  • the resources allocated by the first device to the second device may be dynamically scheduled resources or semi-statically scheduled resources.
  • the second address is a short address allocated by the first device.
  • the achievable method includes that the first device (master node) addresses the second device (slave node) in the MAC PDU subheader, and carries resource allocation information and communication data information to send to the second device.
  • the short address may also be a physical layer short address; the physical layer may filter the received physical layer data according to the short address.
  • Step S504 The second device sends a connection establishment complete message.
  • the second device after receiving the connection establishment message sent by the first device, the second device sends a connection establishment complete message to the first device to assist the first device (master node) to determine whether the connection establishment is successful.
  • the first device receives the connection establishment complete message, it determines that the connection with the second device is successfully established.
  • the first device receives the connection establishment completion message before the preset time, it is determined that the connection establishment with the second device is successful; if the first device does not receive the connection establishment completion message within the preset time , It is judged that the connection establishment with the second device has failed, and a new connection can be initiated again.
  • step S504 is an optional step.
  • the first device actively sends the third information, and connects with the second device after receiving the response from the second device.
  • the first device is sending the third device.
  • the information declares the identity of the master node and the priority of the master node, and the slave node device (the second device, including headsets, wearable devices, etc.) establishes a connection with the master node device (the first device), and obtains it from the master node after the connection is established Resource allocation information, data transmission with the master node.
  • connection establishment is realized based on the device priority information, which facilitates the unified scheduling and management of resources for high-priority devices when the master-slave node accesses a complex environment, and solves the problem of resource interference between multiple master-slave communication pairs.
  • Manner 2 With the second device as the execution subject, the second device actively initiates a connection request to connect with the first device. As shown in Figure 6, the method includes but is not limited to the following steps:
  • Step S601 The second device sends a connection establishment message.
  • the second device sends a connection establishment message.
  • the connection establishment message may be sent through broadcast, multicast, or the like.
  • the connection establishment message includes the identification information of the second device (for example, the device ID of the second device) and the default information including the identity of the master node, which is used to indicate the connection request of the second device.
  • Step S602 The first device sends fourth information.
  • the first device receives the connection establishment message sent by the second device, and sends the fourth message to the second device.
  • the fourth information includes at least one of the identity information of the first device, the first address, and the priority information of the first device.
  • the identity information of the first device is used to characterize that the first device has the function of resource allocation, and the identity information may specifically be the device type of the first device (for example, CDC, mobile phone, portable terminal, etc.), or it may be other characters that can characterize the first device.
  • the device is the identification of the master node. It can be understood that resource allocation may also be referred to as resource management or resource scheduling.
  • the trigger mode for sending the fourth information by the first device includes manual trigger and automatic trigger.
  • Manual triggering includes click, touch, voice, gesture, hover touch and other methods.
  • the manual trigger may be that when the connection with the second device is established for the first time, after the first device receives the connection establishment message sent by the second device, it sends the fourth message according to the user's manual trigger.
  • Automatic triggering can be that after the second device and the first device establish a connection for the first time, they store each other’s device ID or other identity that can uniquely identify each other; subsequently, when the first device again receives the connection establishment message sent by the second device , It is recognized that the identity of the second device is the same as the stored identity, and the fourth information is automatically sent to the second device according to the connection establishment message.
  • At least one of the identity information and priority information of the first device may be included in a broadcast message sent by the first device (for example, a system broadcast message), or may be included in a resource control signaling (Radio Resource Control, RRC).
  • RRC Radio Resource Control
  • at least one of the identity information and priority information of the first device may be sent in a broadcast manner, or may be sent in a unicast or multicast manner.
  • the identity information and priority information of the first device may be carried in a physical signal sent by the first device.
  • the physical signal may be a primary synchronization signal
  • different priority information may correspond to synchronization signals of different patterns or patterns
  • other devices may obtain or determine the priority information of the first device by receiving the synchronization signal.
  • the identity information may be indicated by the device identification code.
  • the device identification code encodes the device according to a certain encoding rule. Among them, different fields in the device identification code have different meanings, and the identity information of the device can be obtained by parsing some or all of the fields.
  • the device identification code can have 2 bits to indicate the device type, such as 00 for CDC, 01 for mobile phones, 10 for wearable devices, etc.; for example, the identity information can also be indicated by 1 bit, that is, 0 for the master node ( With resource allocation/scheduling function), 1 identifies the slave node (only listens to the master node's scheduling).
  • the identity information can be indicated by a media access layer address (Media Access Control Address, MAC address), which is similar to the device identification code, and will not be repeated here.
  • MAC address Media Access Control Address
  • the priority information is used to indicate the priority of resource allocation.
  • a device with a lower priority shall obey the resource allocation of a device with a higher priority.
  • priority information may also be embodied as access priority or connection priority, that is, other devices preferentially establish connections with high-priority devices, or initiate access to high-priority devices, and the high-priority devices perform unified resource allocation. For example, when other devices face connection requests sent by multiple devices, they establish connections with the device with the highest priority among multiple devices; or when other devices initiate connection requests to multiple devices, the priority among multiple devices The highest device responds to the connection request and establishes a connection; or other devices initiate a connection request to the device with the highest priority among multiple devices.
  • the priority information may be a level identifier, which indicates the priority of the first device as the master node.
  • the CDC sends the first system broadcast message, which carries the first access priority indication, 000 (high access priority); the mobile phone sends the second system broadcast message, and the message carries the second access priority indication 001 (low access priority), then other devices preferentially send connection establishment/access requests to the CDC at this time, and the CDC will schedule resources for it.
  • the priority information may be agreed in accordance with the agreement. For example, in the agreement, it may be agreed that the CDC device has the highest priority and the mobile phone has the lower priority.
  • the identity information of the first device may indicate the resource allocation priority of the first device.
  • the second device obtains the identity information of the first device, it can determine the resource allocation priority of the first device through the identity information.
  • the device applies for resources from a device with a higher resource allocation priority, and the device with a higher resource allocation priority performs unified resource allocation and management.
  • the identity information of the first device may be priority information of the first device, that is, when the third device obtains the identity information of the first device, the priority of the first device may be determined through the identity information, so that It is determined whether to send a connection establishment request to the first device, and the first device schedules resources for it.
  • the first address may indicate the resource allocation priority of the first device.
  • the first address can be used to determine the resource allocation priority of the first device.
  • the first address is information sent by the CDC; at this time, through the first address, the second device can know that the first device has a resource allocation function, and the resource allocation priority is the highest.
  • the first address is a media access layer address.
  • the fourth information may further include a second address
  • the second address is a short address allocated by the first device to the second device, and is used for communication between the first device and the second device.
  • the subsequent resource allocation for example, time-frequency resources
  • the achievable method includes that the first device (master node) addresses the second device (slave node) in the MAC PDU subheader, and carries resource allocation information and communication data information to send to the second device.
  • the short address may also be a physical layer short address; the physical layer may filter the received physical layer data according to the short address.
  • the fourth information may also include the device ID of the first device and the device ID of the second device.
  • the device ID of the first device may uniquely indicate the first device, for example, it may be the hardware address of the first device;
  • the device ID of can uniquely indicate the second device, for example, it can be the hardware address of the second device; the second device can communicate with the first device through the hardware address.
  • Step S603 The second device sends a connection establishment complete message.
  • the second device after receiving the fourth information sent by the first device, the second device sends a connection establishment complete message to the first device to assist the first device (master node) to determine whether the connection establishment is successful.
  • the first device receives the connection establishment complete message, it determines that the connection with the second device is successfully established.
  • the first device receives the connection establishment completion message before the preset time, it is determined that the connection establishment with the second device is successful; if the first device does not receive the connection establishment completion message within the preset time , It is judged that the connection establishment with the second device has failed, and a new connection can be initiated again.
  • step S603 is an optional step.
  • the second device actively sends a connection establishment message, and after receiving the connection establishment message, the first device sends fourth information to the second device to connect with the second device.
  • the first device is sending the fourth device.
  • the information declares the identity of the master node and the priority of the master node, and the slave node device (the second device, including headsets, wearable devices, etc.) establishes a connection with the master node device (the first device), and obtains it from the master node after the connection is established Resource allocation information, configure communication resources according to the resource allocation information, and perform data transmission with the master node.
  • the connection establishment is realized based on the device priority information, which facilitates the unified scheduling and management of resources for high-priority devices when the master-slave node accesses a complex environment, and solves the problem of resource interference between multiple master-slave communication pairs.
  • connection modes provided above are two exemplary connection modes, and the connection between two electronic devices in practical applications is not limited to the above two connection modes.
  • the first device and the second device can simultaneously declare the identity of the master node.
  • the third device establishes a connection with the first device by comparing the priority information or identity information of the first device and the second device.
  • the second device recognizes the existence of the first device and no longer Declare your own master node identity.
  • the third device receives the priority information or identity information of the first device, and establishes a connection with the first device.
  • FIG. 7 is a schematic structural diagram of a communication device provided by an embodiment of the present application.
  • the communication device may include an obtaining unit 701 and a determining unit 702. Further optionally, the communication device may further include a stopping unit 703, a first sending unit 704, a second sending unit 705, and a first receiving unit 706.
  • the detailed description of each unit is as follows.
  • the obtaining unit 701 is configured to obtain at least one of identity information and priority information of a first device, where the identity information of the first device indicates that the first device has a resource allocation function;
  • the determining unit 702 is configured to determine that the priority indicated by the priority information of the first device is higher than the priority of the second device;
  • the obtaining unit 701 is further configured to obtain first resource configuration information, where the first resource configuration information is used to configure a first resource, and the first resource is used for communication between the first device and the third device Or, the first resource configuration information is used to configure a second resource, and the second resource is used for communication between the first device and the second device.
  • the priority information is used to indicate the priority of resource allocation.
  • the identity information indicates the resource allocation priority of the first device.
  • the device further includes: a stopping unit 703, configured to stop sending a broadcast message, the broadcast message containing at least one of the identity information and priority information of the second device.
  • the device further includes: a first sending unit 704, configured to send first information to the third device, where the first information is used to indicate that the second device is not the first The three devices allocate resources, or the first information is used to indicate the change of the third device resource acquisition mode.
  • a first sending unit 704 configured to send first information to the third device, where the first information is used to indicate that the second device is not the first The three devices allocate resources, or the first information is used to indicate the change of the third device resource acquisition mode.
  • the broadcast message from the second device does not include the identity information and priority information of the second device, or the first information is used to indicate the termination of the communication to the third device.
  • Resource allocation is used to indicate the termination of the communication to the third device.
  • the first information includes at least one of the identity information and priority information of the first device, and/or the first information carries a mode change indication, and the mode change The indication is used to instruct the third device to obtain resource allocation information from the first device.
  • the acquiring unit 701 is specifically configured to receive the first resource configuration information from the first device.
  • the first sending unit 704 is further configured to send second resource configuration information to the third device, and the resource configured by the second resource configuration information is in the second resource Part of the resources; or sending the first resource configuration information to the third device.
  • the device further includes: a second sending unit 705, configured to send second information to the second device, where the second information is used to instruct to release the communication with the second device connect.
  • the obtaining unit 701 is specifically configured to obtain the first resource configuration information from the first device, the first resource configuration information is used to configure the first resource, and the first resource configuration information is used to configure the first resource.
  • a resource is used for communication between the first device and the third device.
  • the device further includes: a first receiving unit 706, configured to receive first information from the second device, where the first information is used to indicate that the second device is not The third device allocates resources, or the second information is used to indicate a change of the third device's resource acquisition mode.
  • each unit may also correspond to the corresponding description of the steps in the method embodiment shown in FIG. 2 or FIG. 3 or FIG. 4, which will not be repeated here.
  • the above-mentioned first and second sending units may only be a logical distinction based on functions, and it is not limited that there must be two independent sending units. In a specific implementation, there may be one sending unit, or there may be multiple sending units.
  • FIG. 8 is a schematic structural diagram of another communication device provided by an embodiment of the present application.
  • the communication device may include a third sending unit 801 and a second receiving unit 802.
  • the detailed description of each unit is as follows.
  • the third sending unit 801 is configured to send third information.
  • the third information includes at least one of the identity information of the first device, the first address, and the priority information of the first device.
  • the identity information indicates that the first device has a resource allocation function; the priority information is used to indicate the priority of resource allocation;
  • the second receiving unit 802 is configured to receive a response message from a second device, where the response message includes identification information of the second device.
  • the priority information is used to indicate the priority of resource allocation.
  • the third sending unit 801 is further configured to send a connection establishment message to the second device, where the connection establishment message includes a second address, and the second address is the first An address assigned by a device to the second device.
  • each unit can also correspond to the corresponding description of the steps in the method embodiment shown in FIG. 5, which will not be repeated here.
  • FIG. 9 is a schematic structural diagram of another communication device provided by an embodiment of the present application.
  • the communication device may include a third receiving unit 901 and a fourth sending unit 902, wherein the detailed description of each unit is as follows.
  • the third receiving unit 901 is configured to receive a connection establishment message, where the connection establishment message includes identification information of the second device;
  • the fourth sending unit 902 is configured to send fourth information according to the connection establishment message, where the fourth information includes at least one of the identity information of the first device, the first address, and the priority information of the first device,
  • the identity information of the first device indicates that the first device has a resource allocation function;
  • the priority information is used to indicate the priority of resource allocation.
  • the fourth information further includes a second address, and the second address is an address allocated by the first device to the second device.
  • each unit may also correspond to the corresponding description of the steps in the method embodiment shown in FIG. 6, which will not be repeated here.
  • FIG. 10 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • the electronic device 100 includes at least one processor 1001 and at least one communication interface 1003. Optionally, it may also include at least one memory. 1002. In addition, the device may also include general components such as antennas, which will not be described in detail here.
  • the processor 1001 may be a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the above program programs.
  • CPU central processing unit
  • ASIC application-specific integrated circuit
  • the electronic device includes a communication interface 1003, and the communication interface is used to communicate with other devices or communication networks, such as Ethernet, radio access network (RAN), core network, wireless local area networks (WLAN), etc. .
  • RAN radio access network
  • WLAN wireless local area networks
  • the memory can be a read-only memory (read-only memory, ROM) or other types of static storage devices that can store static information and instructions, such as random access memory, RAM) or other types of dynamic storage devices that can store information and instructions. It can also be Electrically Erasable Programmable Read-Only Memory (EEPROM), Compact Disc Read-Only Memory, CD-ROM) or other optical disc storage, optical disc storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or can be used to carry or store instructions or data
  • EEPROM Electrically Erasable Programmable Read-Only Memory
  • CD-ROM Compact Disc Read-Only Memory
  • optical disc storage including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.
  • magnetic disk storage media or other magnetic storage devices, or can be used to carry or store instructions or data
  • the desired program code in the structural form and any other medium that can be accessed by the
  • the memory 1002 is used to store application program codes for executing the above solutions, and the processor 1001 controls the execution.
  • the processor 1001 is configured to execute application program codes stored in the memory 1002.
  • the code stored in the memory 1002 can be used to execute the communication methods provided in Figures 2 to 6 above, such as determining that the priority indicated by the priority information of the first device is higher than the priority of the second device; acquiring first resource configuration information , The first resource configuration information is used to configure a first resource, the first resource is used for communication between the first device and a third device, or the first resource configuration information is used to configure a second resource Resource, the second resource is used for communication between the first device and the second device.
  • the electronic device 100 may be the first device, the second device, or the third device in the communication methods provided in FIGS. 2-6. It can also be a car machine, a central controller or a control node in the vehicle.
  • the electronic device 100 may also be a chip or an integrated circuit.
  • the electronic device 100 can also be integrated into a vehicle-mounted central controller or an MDC controller.
  • An embodiment of the present application also provides a vehicle on which the above-mentioned electronic device is installed. Further optionally, the vehicle includes the first device.
  • an embodiment of the present application also provides a chip 1100, which includes one or more processors 1101 and an interface circuit 1102.
  • the chip 1100 may further include a bus 1103. in:
  • the processor 1101 may be an integrated circuit chip with signal processing capabilities. In the implementation process, the steps of the foregoing method can be completed by an integrated logic circuit of hardware in the processor 1101 or instructions in the form of software.
  • the above-mentioned processor 1101 may be a general-purpose processor, a digital communicator (DSP), an application specific integrated circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component .
  • DSP digital communicator
  • ASIC application specific integrated circuit
  • FPGA off-the-shelf programmable gate array
  • the methods and steps disclosed in the embodiments of the present application can be implemented or executed.
  • the general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
  • the interface circuit 1102 can complete the sending or receiving of data, instructions or information.
  • the processor 1101 can use the data, instructions or other information received by the interface circuit 1102 to perform processing, and can send processing completion information through the interface circuit 1102.
  • the chip further includes a memory.
  • the memory may include a read-only memory and a random access memory, and provides operation instructions and data to the processor.
  • a part of the memory may also include non-volatile random access memory (NVRAM).
  • NVRAM non-volatile random access memory
  • the memory stores executable software modules or data structures
  • the processor can execute corresponding operations by calling operation instructions stored in the memory (the operation instructions may be stored in the operating system).
  • the chip may be used in the electronic device or network device involved in the embodiment of the present application.
  • the interface circuit 1102 may be used to output the execution result of the processor 1101.
  • processor 1101 and the interface circuit 1102 may be implemented through hardware design, may also be implemented through software design, or may be implemented through a combination of software and hardware, which is not limited here.
  • each network element such as an electronic device, a processor, etc.
  • each network element includes a hardware structure and/or software module corresponding to each function.
  • this application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed by hardware or computer software-driven hardware depends on the specific application and design constraint conditions of the technical solution. Professionals and technicians can use different methods for each specific application to implement the described functions, but such implementation should not be considered beyond the scope of this application.
  • the embodiments of the present application can divide the functional modules of electronic equipment, camera equipment, etc. according to the above method examples.
  • each functional module can be divided corresponding to each function, or two or more functions can be integrated into one processing module.
  • the above-mentioned integrated modules can be implemented in the form of hardware or software functional modules. It should be noted that the division of modules in the embodiments of the present application is illustrative, and is only a logical function division, and there may be other division methods in actual implementation.
  • the embodiment of the present application also provides a computer-readable storage medium. All or part of the processes in the foregoing method embodiments may be completed by a computer program instructing relevant hardware.
  • the program may be stored in the foregoing computer storage medium. When the program is executed, it may include the processes of the foregoing method embodiments.
  • the computer-readable storage medium includes: read-only memory (ROM) or random access memory (RAM), magnetic disks or optical disks and other media that can store program codes.
  • the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.
  • the computer instructions may be stored in a computer-readable storage medium or transmitted through the computer-readable storage medium.
  • 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 data center integrated with one or more available media.
  • the usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state disk (SSD)).
  • the modules in the device of the embodiment of the present application may be combined, divided, and deleted according to actual needs.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本申请实施例提供一种通信方法及相关装置,可以应用于车载领域,尤其是座舱域的短距离通信。采用本申请实施例,电子设备获取第一装置的身份信息和优先级信息中的至少一个,电子设备确定该第一装置的优先级高于第二装置的优先级后,获取第一资源配置信息,该第一资源配置信息配置的资源由第一装置分配,可以用于第一装置和第三装置之间的通信,也可以用于第一装置和第二装置之间的通信。通过这种方式,利用设备的优先级确定一个优先级最高的设备来统筹分配资源,优先级最高的设备能够统一进行通信资源的管理与分配,避免任何两个设备间通信对其他设备通信产生的干扰和资源碰撞。

Description

一种通信方法及相关装置 技术领域
本申请涉及无线通信领域,尤其涉及短距离通信领域,例如座舱域。本申请提供了一种通信方法及相关装置。
背景技术
车辆在人们的日常生活中发挥着越来越重要的作用。未来,车辆不仅是运输工具,更是人们生活的空间之一。智能座舱技术的不断发展,能够为人们在车内环境中提供更加丰富的娱乐、音频、视频和办公体验。目前智能座舱中涉及到的连接设备主要有车机,车载音视频设备(扬声器、麦克等)、智能终端,例如手机,其他智能可穿戴设备(例如耳机)。其中车机与车内的音视频设备主要采用有线方式连接;车机与智能终端,智能终端与其他可穿戴设备大都采用无线方式进行连接,例如蓝牙。
当车机与智能终端连接进行通信时,此时车机为主节点,智能终端为从节点,主节点负责为从节点分配资源。当智能终端与智能可穿戴设备进行通信时,此时智能终端为主节点,智能可穿戴设备为从节点;在现有技术中,当多个不同的主从节点之间同时通信(组成不同的域),多个主从通信对之间的通信资源可能存在冲突,存在严重的干扰问题,严重影响的通信、服务的性能,缺乏良好的用户体验。
因此,如何在座舱等短距离空间内,协调多个主节点间的资源分配,避免多个主-从节点对间通信的资源碰撞和干扰,是本领域技术人员正在研究的问题。
发明内容
本申请实施例公开了一种通信方法及相关装置,能够统一进行通信资源管理与分配,避免任何两个设备间通信对其他设备通信产生的干扰和资源碰撞。
本申请实施例第一方面公开了一种通信方法,所述通信方法包括:
获取第一装置的身份信息和优先级信息中的至少一个,所述第一装置的身份信息指示所述第一装置具有资源分配功能;
确定所述第一装置的优先级信息所指示的优先级高于第二装置的优先级;
获取第一资源配置信息,所述第一资源配置信息用于配置第一资源,所述第一资源用于所述第一装置与第三装置之间的通信,或者,所述第一资源配置信息用于配置第二资源,所述第二资源用于所述第一装置与第二装置之间的通信。
本申请实施例提供的方法,电子设备获取第一装置的身份信息和优先级信息中的至少一个,电子设备确定该第一装置的优先级高于第二装置的优先级后,获取第一资源配置信息,该第一资源配置信息配置的资源由第一装置分配,可以用于第一装置和第三装置之间的通信,也可以用于第一装置和第二装置之间的通信。示例性的,本申请实施例中的电子设备(执行主体)可以为第二装置或第三装置,利用设备的优先级确定一个优先级最高的设备(第一装置)来统筹分配资源。当执行主体为第二装置时,第二装置获取第一资源配置信息,该第一资源配置用于第一装置和第二装置的通信,还可以用于第一装置和第三装 置的通信。当执行主体为第三装置时,第三装置获取第一资源配置信息,该第一资源配置用于配置第一装置和第三装置的通信。即优先级最高的设备能够统一进行通信资源的管理与分配,避免任何两个设备间通信对其他设备通信产生的干扰和资源碰撞。
在一种可能的实现方式中,所述优先级信息用于指示资源分配优先级。优先级低的设备服从优先级高的设备的资源分配。优先级最高的设备统筹分配资源,避免任何两个设备间通信对其他设备通信产生的干扰和资源碰撞。
在一种可能的实现方式中,所述身份信息指示了所述第一装置的资源分配优先级。这种实现方式提供了当电子设备获取到第一装置的身份信息时,可以通过身份信息而判断出第一装置的资源分配优先级,从而确定一个优先级最高的设备来统筹分配资源,该优先级最高的设备能够统一进行通信资源管理与分配,避免任何两个设备间通信对其他设备通信产生的干扰和资源碰撞。
在一种可能的实现方式中,所述方法还包括:停止发送广播消息,所述广播消息包含所述第二装置的身份信息和优先级信息中的至少一个。这种实现方式描述了在电子设备确定了第一装置的优先级高于第二装置后,停止发送广播消息,即停止与其他设备连接,服从第一装置的资源分配。实现了优先级最高的设备(第一装置)能够统一进行通信资源管理与分配,避免了任何两个设备间通信对其他设备通信产生的干扰和资源碰撞。
在一种可能的实现方式中,所述方法还包括:向所述第三装置发送第一信息,所述第一信息用于指示所述第二装置不再为第三装置分配资源,或者所述第一信息用于指示所述第三装置资源获取模式的变更。这种方式描述了在电子设备为第二装置时,向第三装置发送第一信息,以指示第三装置还有优先级更高的设备(第一装置),则第三装置不再从第二装置那获取资源分配信息,第三装置可以改变获取资源分配信息的模式,从第一装置获取资源分配信息。实现了优先级最高的设备(第一装置)能够统一进行通信资源管理与分配,避免了任何两个设备间通信对其他设备通信产生的干扰和资源碰撞。
在一种可能的实现方式中,来自所述第二装置的广播消息不包含所述第二装置的身份信息和优先级信息,或者所述第一信息用于指示终止对所述第三装置的资源分配。这种方式描述了在电子设备为第二装置时,第一信息可以用于指示第二装置不再为第三装置进行资源分配。或者第二装置发送的广播消息不再包含第二装置的身份信息和优先级信息,即第二装置停止与其他设备连接,而服从第一装置的资源分配。实现了优先级最高的设备(第一装置)能够统一进行通信资源管理与分配,避免了任何两个设备间通信对其他设备通信产生的干扰和资源碰撞。
在一种可能的实现方式中,所述第一信息包含所述第一装置的身份信息和优先级信息中的至少一个,和/或,所述第一信息携带模式变更指示,所述模式变更指示用于指示所述第三装置从所述第一装置获取资源分配信息。这种方式描述了第一信息可以向第三装置指示第一装置的身份信息和优先级信息,以指示第三装置接收来自第一装置的资源分配。
在一种可能的实现方式中,所述获取第一资源配置信息,包括:接收来自第一装置的所述第一资源配置信息。这种方式描述了第一资源配置信息可以来自于第一装置。实现了优先级最高的设备能够统一进行通信资源管理与分配,避免任何两个设备间通信对其他设备通信产生的干扰和资源碰撞。
在一种可能的实现方式中,所述方法还包括:向所述第三装置发送第二资源配置信息,所述第二资源配置信息配置的资源为所述第二资源中的部分资源;或者向所述第三装置发送所述第一资源配置信息。这种方式描述了电子设备向第三装置发送第二资源配置信息,该第二资源配置信息配置的资源为第一资源配置信息配置的资源中的部分资源,示例性的,第二装置接收到第一资源配置信息后,可以根据第一资源配置信息配置第二装置的资源,同时第二装置将第一资源配置信息中的第二资源配置信息发送给第三装置,第三装置根据第二资源配置信息配置第三装置的资源。或者第二装置直接向第三装置发送第一资源配置信息,该第一资源配置信息来自第一装置,第二装置发送到第三装置。通过第二装置进行中转资源,优先级最高的设备无需与每一个设备都建立连接,就可以达到对多个设备进行统一资源分配的技术效果,便于资源的管理。
在一种可能的实现方式中,所述方法还包括:向所述第二装置发送第二信息,所述第二信息用于指示释放与所述第二装置的连接。这种实现方式描述了在电子设备为第三装置时,第三装置向第二装置发送第二信息,以指示第二装置还有优先级更高的设备(第一装置),第三装置释放与第二装置的连接资源,第二装置停止为第三装置分配资源。实现了优先级最高的设备(第一装置)能够统一进行通信资源管理与分配,避免了任何两个设备间通信对其他设备通信产生的干扰和资源碰撞。
在一种可能的实现方式中,所述获取第一资源配置信息,包括:获取来自所述第一装置的所述第一资源配置信息,所述第一资源配置信息用于配置第一资源,所述第一资源用于所述第一装置与第三装置之间的通信。这种实现方式描述了第三装置的第一资源配置信息可以来自于第一装置。可选的,当电子设备(执行主体)为第三装置时,第一资源配置信息也可以来自于第二装置的转发,第二装置接收来自第一装置的资源配置信息,然后发送到第三装置。实现了优先级最高的设备能够统一进行通信资源管理与分配,避免任何两个设备间通信对其他设备通信产生的干扰和资源碰撞。
在一种可能的实现方式中,所述方法还包括:接收来自所述第二装置的第一信息,所述第一信息用于指示所述第二装置不再为第三装置分配资源,或者所述第二信息用于指示所述第三装置资源获取模式的变更。这种实现方式描述了在电子设备为第三装置时,接收第二装置发送的第一信息,该第一信息指示第三装置还有优先级更高的设备(第一装置),则第三装置不再从第二装置那获取资源分配信息,第三装置改变获取资源分配信息的模式,可以从第一装置获取资源分配信息。实现了优先级最高的设备(第一装置)能够统一进行通信资源管理与分配,避免了任何两个设备间通信对其他设备通信产生的干扰和资源碰撞。
本申请实施例第二方面公开了一种通信方法,所述通信方法包括:
发送第三信息,所述第三信息包括第一装置的身份信息、第一地址以及所述第一装置的优先级信息中的至少一个,所述第一装置的身份信息指示所述第一装置具有资源分配功能;
接收来自第二装置的响应消息,所述响应消息包含所述第二装置的标识信息。
本申请实施例提供了一种设备之间建立连接而进行通信的方法,以第一装置和第二装置为例,第一装置主动发起连接,发送第三信息,该第三信息可以指示第一装置的优先级信息,优先级低的装置服从优先级高的装置的资源分配。第二装置根据接收到的第三信息 向第一装置发送响应信息,与第一装置建立连接。这种连接方式基于设备的优先级信息建立连接通信,便于在一个通信对在接入复杂环境(存在多个通信对)时,根据设备的优先级信息确定一个优先级最高的设备统一分配资源,解决多个通信对之间的互相干扰问题。
在一种可能的实现方式中,所述优先级信息用于指示资源分配优先级。优先级低的设备服从优先级高的设备的资源分配。优先级最高的设备统筹分配资源,避免任何两个设备间通信对其他设备通信产生的干扰和资源碰撞。
在一种可能的实现方式中,所述方法还包括:向所述第二装置发送连接建立消息,所述连接建立消息包括第二地址,所述第二地址为所述第一装置为所述第二装置分配的地址。这种方式描述了第一装置向第二装置发送第二地址,其中该第二地址为短地址,在第一装置和第二装置通信的过程中,可以减少信令的长度,节约资源。
本申请实施例第三方面公开了一种通信方法,所述通信方法包括:
接收连接建立消息,所述连接建立消息包括第二装置的标识信息;
根据所述连接建立消息发送第四信息,所述第四信息包括第一装置的身份信息、第一地址以及所述第一装置的优先级信息中的至少一个,所述第一装置的身份信息指示所述第一装置具有资源分配功能。
本申请实施例提供了一种设备之间建立连接而进行通信的方法,以第一装置和第二装置为例,第二装置主动发起连接,第一装置接收到第二装置的连接建立消息后,发送第四信息与第二装置建立连接,该第四信息可以指示第一装置的优先级信息,优先级低的装置服从优先级高的装置的资源分配。这种连接方式基于设备的优先级信息建立连接通信,便于在一个通信对在接入复杂环境(存在多个通信对)时,根据设备的优先级信息确定一个优先级最高的设备统一分配资源,解决多个通信对之间的互相干扰问题。
在一种可能的实现方式中,所述优先级信息用于指示资源分配优先级。优先级低的设备服从优先级高的设备的资源分配。优先级最高的设备统筹分配资源,避免任何两个设备间通信对其他设备通信产生的干扰和资源碰撞。
在一种可能的实现方式中,所述第四信息还包括第二地址,所述第二地址为所述第一装置为所述第二装置分配的地址。这种方式描述了第四信息还可以包括第二地址,该第二地址为短地址,在第一装置和第二装置通信的过程中,可以减少信令的长度,节约资源。
本申请实施例第四方面公开了一种通信装置,所述通信装置包括:
获取单元,用于获取第一装置的身份信息和优先级信息中的至少一个,所述第一装置的身份信息指示所述第一装置具有资源分配功能;
确定单元,用于确定所述第一装置的优先级信息所指示的优先级高于第二装置的优先级;
所述获取单元,还用于获取第一资源配置信息,所述第一资源配置信息用于配置第一资源,所述第一资源用于所述第一装置与第三装置之间的通信,或者,所述第一资源配置信息用于配置第二资源,所述第二资源用于所述第一装置与第二装置之间的通信。
在一种可能的实现方式中,所述优先级信息用于指示资源分配优先级。优先级低的设备服从优先级高的设备的资源分配。优先级最高的设备统筹分配资源,避免任何两个设备间通信对其他设备通信产生的干扰和资源碰撞。
在一种可能的实现方式中,所述身份信息指示了所述第一装置的资源分配优先级。
在一种可能的实现方式中,所述装置还包括:停止单元,用于停止发送广播消息,所述广播消息包含所述第二装置的身份信息和优先级信息中的至少一个。
在一种可能的实现方式中,所述装置还包括:第一发送单元,用于向所述第三装置发送第一信息,所述第一信息用于指示所述第二装置不再为第三装置分配资源,或者所述第一信息用于指示所述第三装置资源获取模式的变更。
在一种可能的实现方式中,来自所述第二装置的广播消息不包含所述第二装置的身份信息和优先级信息,或者所述第一信息用于指示终止对所述第三装置的资源分配。
在一种可能的实现方式中,所述第一信息包含所述第一装置的身份信息和优先级信息中的至少一个,和/或,所述第一信息携带模式变更指示,所述模式变更指示用于指示所述第三装置从所述第一装置获取资源分配信息。
在一种可能的实现方式中,所述获取单元,具体用于接收来自第一装置的所述第一资源配置信息。
在一种可能的实现方式中,所述第一发送单元,还用于向所述第三装置发送第二资源配置信息,所述第二资源配置信息配置的资源为所述第二资源中的部分资源;或者向所述第三装置发送所述第一资源配置信息。
在一种可能的实现方式中,所述装置还包括:第二发送单元,用于向所述第二装置发送第二信息,所述第二信息用于指示释放与所述第二装置的连接。
在一种可能的实现方式中,所述获取单元具体用于获取来自所述第一装置的所述第一资源配置信息。
在一种可能的实现方式中,所述装置还包括:第一接收单元,用于接收来自所述第二装置的第一信息,所述第一信息用于指示所述第二装置不再为第三装置分配资源,或者所述第二信息用于指示所述第三装置资源获取模式的变更。
在一种可能的实现方式中,所述第一装置包括但不限于车机;所述第二装置包括但不限于手机、平板、车载麦克风或者车载扬声器等;所述第三装置包括但不限于耳机或者可穿戴设备等。
可以理解地,上述提供的第四方面的有益效果可参考第一方面所提供的通信方法中的有益效果,此处不再赘述。
本申请实施例第五方面公开了一种通信装置,所述通信装置包括:
第三发送单元,用于发送第三信息,所述第三信息包括第一装置的身份信息、第一地址以及所述第一装置的优先级信息中的至少一个,所述第一装置的身份信息指示所述第一装置具有资源分配功能;
第二接收单元,用于接收来自第二装置的响应消息,所述响应消息包含所述第二装置的标识信息。
在一种可能的实现方式中,所述优先级信息用于指示资源分配优先级。优先级低的设备服从优先级高的设备的资源分配。优先级最高的设备统筹分配资源,避免任何两个设备间通信对其他设备通信产生的干扰和资源碰撞。
在一种可能的实现方式中,所述第三发送单元,还用于向所述第二装置发送连接建立 消息,所述连接建立消息包括第二地址,所述第二地址为所述第一装置为所述第二装置分配的地址。
在一种可能的实现方式中,所述第一装置包括但不限于手机、平板、车载麦克风或者车载扬声器等,所述第二装置包括但不限于耳机或者可穿戴设备等。或者,所述第一装置包括但不限于车机,所述第二装置包括但不限于手机、平板、车载麦克风、车载扬声器、耳机或者可穿戴设备等。
可以理解地,上述提供的第五方面的有益效果可参考第二方面所提供的通信方法中的有益效果,此处不再赘述。
本申请实施例第六方面公开了一种通信装置,所述通信装置包括:
第三接收单元,用于接收连接建立消息,所述连接建立消息包括第二装置的标识信息;
第四发送单元,用于根据所述连接建立消息发送第四信息,所述第四信息包括第一装置的身份信息、第一地址以及所述第一装置的优先级信息中的至少一个,所述第一装置的身份信息指示所述第一装置具有资源分配功能。
在一种可能的实现方式中,所述优先级信息用于指示资源分配优先级。优先级低的设备服从优先级高的设备的资源分配。优先级最高的设备统筹分配资源,避免任何两个设备间通信对其他设备通信产生的干扰和资源碰撞。
在一种可能的实现方式中,所述第四信息还包括第二地址,所述第二地址为所述第一装置为所述第二装置分配的地址。
在一种可能的实现方式中,所述第一装置包括但不限于手机、平板、车载麦克风或者车载扬声器等,所述第二装置包括但不限于耳机或者可穿戴设备等。或者,所述第一装置包括但不限于车机,所述第二装置包括但不限于手机、平板、车载麦克风、车载扬声器、耳机或者可穿戴设备等。
可以理解地,上述提供的第六方面的有益效果可参考第三方面所提供的通信方法中的有益效果,此处不再赘述。
本申请实施例第七方面公开了一种装置,该装置中包括至少一个处理器,处理器被配置为支持电子设备实现第一方面或第二方面或第三方面提供的通信方法中相应的功能。该装置还可以包括存储器,存储器用于与处理器耦合,其保存该电子设备必要的程序指令和数据。该装置还可以包括至少一个通信接口,用于为所述至少一个处理器提供信息输入和/或输出。进一步,该装置可以为电子设备内部的芯片或者集成电路。或者,该装置可以为电子设备本身,当所述装置为电子设备本身时,所述通信接口还可以为所述电子设备提供信息输入和/或输出。
本申请实施例第八方面公开了一种计算机可读存储介质,包括计算机指令,当该计算机指令在电子设备上运行时,使得该电子设备执行本申请实施例第一方面或第二方面或第三方面的任意一种实现方式提供的通信的方法。
本申请实施例第九方面公开了一种计算机程序产品,当该计算机程序产品在电子设备上运行时,使得该电子设备执行本申请实施例第一方面或第二方面或第三方面的任意一种实现方式提供的通信的方法。
本申请实施例第十方面公开了一种芯片,该芯片包括处理器,用于支持网络设备实现 上述第一方面或第二方面或第三方面中所涉及的功能,例如,生成或处理上述通信方法中所涉及的信息。在一种可能的设计中,所述芯片还包括存储器,所述存储器,用于保存数据发送设备必要的程序指令和数据。该芯片系统,可以由芯片构成,也可以包含芯片和其他分立器件。
可以理解地,上述提供的第七方面、第八方面、第九方面以及第十方面的有益效果可参考第一方面或第二方面或第三方面所提供的通信方法中的有益效果,此处不再赘述。
附图说明
图1是本申请实施例提供的一种通信方法的应用场景图;
图2是本申请实施例提供的一种通信方法的流程示意图;
图3是本申请实施例提供的又一种通信方法的流程示意图;
图4是本申请实施例提供的又一种通信方法的流程示意图;
图5是本申请实施例提供的又一种通信方法的流程示意图;
图6是本申请实施例提供的又一种通信方法的流程示意图;
图7是本申请实施例提供的一种通信装置的结构示意图;
图8是本申请实施例提供的又一种通信装置的结构示意图;
图9是本申请实施例提供的又一种通信装置的结构示意图;
图10是本申请实施例提供的一种电子设备的结构示意图
图11是本申请实施例提供的一种芯片的结构示意图。
具体实施方式
下面结合本申请实施例中的附图对本申请实施例进行描述。
本申请的说明书和权利要求书及所述附图中的术语“第一”、“第二”、“第三”和“第四”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。
在本说明书中使用的术语“部件”、“模块”、“系统”等用于表示计算机相关的实体、硬件、固件、硬件和软件的组合、软件、或执行中的软件。例如,部件可以是但不限于,在处理器上运行的进程、处理器、对象、可执行文件、执行线程、程序和/或计算机。通过图示,在计算设备上运行的应用和计算设备都可以是部件。一个或多个部件可驻留在进程和/或执行线程中,部件可位于一个计算机上和/或分布在2个或更多个计算机之间。此外,这些部件可从在上面存储有各种数据结构的各种计算机可读介质执行。部件可例如根据具有一个 或多个数据分组(例如来自与本地系统、分布式系统和/或网络间的另一部件交互的二个部件的数据,例如通过信号与其它系统交互的互联网)的信号通过本地和/或远程进程来通信。
本申请实施例中涉及的电子设备可以是车机、车载扬声器、车载麦克风等车载设备、手机、平板电脑、桌面型、膝上型、笔记本电脑、超级移动个人计算机(Ultra-mobile Personal Computer,UMPC)、手持计算机、上网本、个人数字助理(Personal Digital Assistant,PDA)、可穿戴电子设备、虚拟现实设备等。
首先,对本申请中的部分用语进行解释说明,以便于本领域技术人员理解。
(1)CDC:control domain cockpit,驾驶舱域控制器,本申请中也称其为车机。目前车机的功能除了传统的收音机、音乐视频播放、导航功能以外,已经带有蜂窝通信功能(3G,4G等)及Telematics,能结合汽车的CAN-BUS技术,实现人与车,车与外界的信息通讯,增强了用户体验及服务、安全相关的功能。
(2)主节点、从节点:在逻辑功能上区分的两类节点,分别是主节点和从节点。其中主节点管理从节点,具有分配资源的功能,负责为从节点分配资源;从节点听从主节点的调度,使用主节点分配的资源与主节点进行通信。需要注意的是,节点的属性特征可能改变,例如,当智能终端与耳机进行通信时,智能终端为主节点,耳机为从节点,但是当智能终端接入更高优先级的设备(例如CDC),听从CDC调度的时候,此时智能终端的角色属性变更为从节点。
(3)主从通信对:包括一个主节点设备和一个从节点设备,两个设备互相连接构成一对主从通信对。
其次,为了便于理解本申请实施例,以下具体分析本申请实施例所需要解决的技术问题以及对应的应用场景。
目前智能座舱中涉及到的连接设备主要有车机(CDC),车载音视频设备(扬声器、麦克等)、智能终端,例如手机,其他智能可穿戴设备(例如耳机)等。其中车机与车载的音视频设备主要采用有线方式连接;车机CDC与智能终端,智能终端与其他可穿戴设备大都采用无线方式进行连接,例如蓝牙。
当CDC与第一智能终端连接进行通信时,此时CDC为主节点,第一智能终端为从节点,主节点负责为从节点分配资源。此时,在座舱环境下可能存在其他智能终端(例如第二智能终端),此时该第二智能终端可能正与智能可穿戴设备(例如,耳机)进行通信,此时第二智能终端为主节点,其连接的智能可穿戴设备为从节点,同样的,由主节点为从节点分配资源。这时,座舱内就有了两个主从通信对互不联系的独立通信。当多个不同的主从节点之间同时通信(组成不同的域),多个主从通信对之间的通信资源可能存在冲突。当不同主从通信对之间的时频资源产生冲突,会导致严重的干扰问题,进而影响的通信、服务的性能,缺乏良好的用户体验。
因此,针对上述技术问题,本申请主要解决的问题为如何在座舱等短距离空间内,协调多个主节点间的资源分配,避免多个主从节点对之间通信的资源碰撞和干扰,保障用户体验。本申请中基于设备优先级信息实现连接建立,从而使得高优先级设备能够对于资源 的统一调度和管控,例如由CDC统一进行座舱内资源管理与分配,这种方法能够避免任何两个设备间通信对其他设备通信产生的干扰和资源碰撞。
上述方案中所出现的技术问题,以下示例性列举本申请中通信方法所应用的场景,如图1所示,图1示出了本申请实施例涉及的应用场景。该应用场景可以是在智能座舱中,可以包括高优先级主节点设备11、低优先级主节点设备12和从节点设备13。高优先级主节点设备11、低优先级主节点设备12和从节点设备13通过无线连接(例如蓝牙)的方式进行通信。其中,
高优先级主节点设备11、低优先级主节点设备12和从节点设备13均为电子设备,可以是静止的,也可以是移动的。可以是网络设备、也可以是终端设备。
网络设备包括各种形式的网络设备,例如:服务器、宏基站,微基站(也称为小站),中继站,接入点等。其中服务器可以包括但不限于云服务器、后台服务器、组件服务器、数据处理服务器等,服务器可以通过互联网与多个终端进行通信。服务器上需要运行有相应的服务器端程序来提供相应的服务,如数据库服务、数据计算、决策执行等等。
终端设备包括通信终端、车载设备、移动设备、用户终端、移动终端、无线通信设备、便携式终端、用户代理、用户装置、服务设备或用户设备(User Equipment,UE)等计算机网络中处于网络最外围的设备,主要用于数据的输入以及处理结果的输出或显示等,也可以是安装于或运行于上述任意一个设备上的软件客户端、应用程序等。例如,终端可以是移动电话、无绳电话、智能手表、可穿戴设备、平板设备、具备无线通信功能的手持设备、计算设备、车载通信模块、智能电表或连接到无线调制解调器的其它处理设备等。
对于智能座舱这个应用场景来说,高优先级主节点设备11可以是车机CDC;低优先级主节点设备12可以是手机、平板、车载麦克风、车载扬声器等车载设备等等;从节点设备13可以是耳机、可穿戴设备等等。不同的设备之间基于设备的优先级信息实现连接建立,从而使得高优先级设备能够对于资源的统一调度和管控,有效的降低了多个主从通信对之间的相互干扰问题。
基于前述技术问题以及应用场景,本申请实施例提供了一种通信方法。将第一装置作为高优先级主节点,第二装置作为低优先级主节点,第三装置作为从节点为例。其中第三装置与第二装置建立连接成功,第二装置和第三装置为一对主从通信对。接下来使用三个具体实施例来进行详细描述,当第二装置和第三装置进入到第一装置的通信范围内时,第一装置、第二装置和第三装置如何来进行连接更新和资源分配。
实施例一、低优先级主节点(第二装置,例如手机)判断优先级,停止自身的资源分配功能,服从高优先级主节点(第一装置,例如车机)的资源分配。
具体流程描述可以参见图2。
步骤S201:获取第一装置的身份信息和优先级信息中的至少一个。
具体地,第一装置发送第一装置的身份信息和优先级信息中的至少一个,当第二装置进入到第一装置的通信范围,第二装置获取到第一装置的身份信息和优先级信息中的至少一个。其中,第一装置的身份信息指示第一装置具有资源分配功能,即第一装置可以作为 主节点。身份信息可以指示设备类型(例如车机、手机、便携式终端等)、或者是一个可以标识第一装置为主节点的身份标识。可以理解的,资源分配也可以称为资源管理或资源调度。
其中,第一装置的身份信息和优先级信息中的至少一项可以包含在第一装置发送的广播消息中(例如,系统广播消息),也可以包含在资源控制信令(Radio Resource Control,RRC)中。或者,第一装置的身份信息和优先级信息中的至少一项可以通过广播方式发送,也可以通过单播或者组播方式发送。
或者,第一装置的身份信息和优先级信息中的至少一项可以承载在第一装置发送的物理信号中。示例性的,物理信号可以是主同步信号,不同优先级信息可以对应不同式样或图样的同步信号,其他装置可以通过接收同步信号,获取或确定第一装置的优先级信息。也可以理解为,所述优先级信息对应所述物理信号的式样或者图样,或者说,所述优先级信息通过所述物理信号的式样或者图样指示。
示例性的,身份信息可以通过设备标识码来指示,一般的,设备标识码按照一定编码规则对设备进行编码。其中设备标识码中的不同字段具有不同的含义,可以通过对部分或全部字段的解析获取设备的身份信息。例如,设备标识码中可以是有2bit用来指示设备类型,例如00标识CDC,01标识手机,10表示可穿戴设备等;又例如,身份信息也可以通过1bit来指示,即0标识主节点(具有资源分配/调度功能),1标识从节点(只听从主节点的调度)。
可选的,身份信息可以通过媒体接入层地址(Media Access Control Address,MAC地址)来指示,与设备标识码类似,不再赘述。
可选的,优先级信息用于指示资源分配优先级。优先级低的设备要服从优先级高的设备的资源分配。或者,优先级信息可以体现为接入优先级或连接优先级,即其他装置优先与高优先级设备建立连接,或向高优先级设备发起接入,由高优先级设备统一进行资源分配。举例来说,其他装置在面对多个设备发送的连接请求时,与多个设备中优先级最高的设备建立连接;或者其他装置在向多个设备发起连接请求时,多个设备中优先级最高的设备响应该连接请求,建立连接;或者其他装置向多个设备中优先级最高的设备发起连接请求。
具体的,优先级信息可以是一个等级标识,表示了第一装置作为主节点的优先级。举例来说,CDC发送第一系统广播消息,消息中携带第一接入优先级指示000(高接入优先级);手机发送第二系统广播消息,消息中携带第二接入优先级指示001(低接入优先级),则此时其他装置优先向CDC发送连接建立/接入请求,由CDC为其调度资源。另外,优先级信息可以是按照协议约定的,示例性的,协议中可以约定CDC设备具有最高优先级,手机具有较低优先级等。
在一种可能的实施方式中,第二装置获取第一装置的身份信息和优先级信息中的至少一个之前,第二装置先广播发送连接请求消息。当第一装置进入到第二装置的通信范围,第一装置对第二装置发送的连接请求消息进行响应,向第二装置发送响应信息,该响应信息包括第一装置的身份信息和优先级信息中的至少一个。第二装置获取到第一装置的身份信息和优先级信息中的至少一个。
具体的,第二装置可以通过接收第一装置发送的系统广播消息来获取第一装置的身份信息和优先级信息中的至少一个。
在一种可能的实施方式中,身份信息可以指示资源分配优先级。当第二装置获取到第一装置的身份信息时,可以通过身份信息而判断出第一装置的资源分配优先级。装置优先向资源分配优先级较高的设备申请资源,由资源分配优先级较高的设备来统一进行资源分配和管理。
可选的,第一装置的身份信息可以为第一设备的优先级信息,即当第二装置获取到第一装置的身份信息时,可以通过身份信息而判断出第一装置的优先级,从而决定是否向第一装置发送连接建立请求,并由第一装置为其调度资源。
步骤S202:确定第一装置的优先级信息所指示的优先级高于第二装置的优先级。
具体地,第二装置获取第一装置的身份信息和优先级信息中的至少一个后,确定第一装置的优先级信息所指示的优先级高于第二装置的优先级。
步骤S203A:发送第一消息,设置主节点身份标识为缺省。
具体地,第二装置确定第一装置的优先级信息所指示的优先级高于第二装置的优先级后,设置第二装置的身份信息(指示第二装置具有资源分配功能)为缺省,即第二装置不再作为主节点为其他装置分配资源,第二装置服从第一装置的资源分配。由于第二装置与第三装置为一对主从通信对,则第二装置向第三装置发送第一消息。该第一信息用于指示第二装置不再为第三装置分配资源,即第二装置不再作为第三装置的主节点。
可选的,第一信息可以包含第一装置的身份信息和优先级信息中的至少一个,并且第一信息携带模式变更指示,指示第三装置资源获取模式的变更,根据第一信息中第一装置的身份信息和优先级信息中的至少一个,指示第三装置服从第一装置的资源分配,从第一装置获取资源分配信息。
步骤S203B:第二装置发送广播消息,广播主节点身份标识缺省。
具体地,第二装置确定第一装置的优先级信息所指示的优先级高于第二装置的优先级后,设置第二装置的身份信息(指示第二装置具有资源分配功能)为缺省,即第二装置不再作为主节点为其他装置分配资源,第二装置服从第一装置的资源分配。并且第二装置发送广播消息,该广播消息用于向其他设备广播声明第二装置的主节点身份标识缺省。第三装置接收到该广播消息后,不再服从第二装置的资源分配。
可选的,来自第二装置的广播消息不包含第二装置的身份信息和优先级信息,即第二装置暂时无法作为主节点与其他设备连接。
步骤S203C:第二装置停止发送广播消息。
具体地,第二装置确定第一装置的优先级信息所指示的优先级高于第二装置的优先级后,停止发送广播消息,第二装置服从第一装置的资源分配。第三装置在无法获取第二装置的广播消息的情况下,自动与第三装置断开连接,不再服从第二装置的资源分配。
需要注意的是,步骤S203A、S203B和S203C均为可选的步骤,且不限定执行的前后顺序。
步骤S204:第三装置与第一装置建立连接。
具体地,第三装置与第一装置建立连接,服从第一装置的资源分配,从第一装置获取 资源分配信息。
可选的,第三装置释放与第二装置的连接,释放第二装置分配的资源。
步骤S205:获取第一资源配置信息。
具体地,第二装置从第一装置获取第一资源配置信息,第一资源配置信息用于配置第二资源,第二资源用于第一装置与第二装置之间的通信;第三装置从第一装置获取第一资源配置信息,第一资源配置信息用于配置第一资源,第一资源用于第一装置与第三装置之间的通信。也即是说,第二装置和第三装置分别从第一装置直接获取资源分配信息。其中,第二装置和第三装置之间的通信数据可以通过第一装置中转而完成数据传输。
可以理解的,第二装置获取与第一资源配置信息之前还包括成功建立与第一装置的连接。
总的来说,实施例一的核心思想为,在一定范围内,只允许具有最高优先级的主节点进行主节点身份声明;低优先级主节点(第二装置)识别具有更高优先级主节点(第一装置)后,停止其资源分配功能,并通知其所连接的从节点设备(第三装置)。后续低优先级主节点和从节点均服从高优先级主节点的资源分配。
可以理解的,当从节点(第三装置)和低优先级主节点(第二装置)移出高优先级主节点(第一装置)的通信覆盖范围后,低优先级主节点(第二装置)检测不到更高优先级主节点,则其自身恢复主节点身份,第三装置继续服从第二装置资源分配。
需要说明的是,是否在通信范围可以取决于接收到的信号功率是否大于预设功率门限,当大于该预设功率门限时,则认为在通信范围内了,否则认为不在通信范围内。
可选的,是否在通信范围内也可以取决于通信速率是否大于某个速率门限,原理与信号功率类似,在此不再赘述。
实施例二、低优先级主节点(第二装置,例如手机)判断优先级,停止自身的资源分配功能,服从高优先级主节点(第一装置,例如车机)的资源分配,并且转发从节点(第三装置)的资源给第三装置。
具体流程描述可以参见图3。其中,步骤S301和步骤S302的相关描述可以参考图2中步骤S201和步骤S202。
步骤S303A:发送第一信息,指示第三装置资源获取模式的变更。
具体地,第二装置确定第一装置的优先级信息所指示的优先级高于第二装置的优先级后,第二装置停止自身的资源分配,服从第一装置的资源分配。由于第二装置与第三装置为一对主从通信对,则与第二装置连接的从节点(第三装置)也要服从第一装置的资源分配。则第二装置向第三装置发送第一消息。该第一信息用于指示第三装置资源获取模式的变更,即第二装置不再作为第三装置的主节点向第三装置进行资源分配,第三装置的资源不是由第二装置而分配的。
可选的,第一信息可以包含第一装置的身份信息和优先级信息中的至少一个,并且第一信息携带模式变更指示,指示第三装置资源获取模式的变更,根据第一信息中第一装置的身份信息和优先级信息中的至少一个,指示第三装置服从第一装置的资源分配,第二装置代替自己的从节点(第三装置)向第一装置申请资源,并转发给第三装置。
步骤S303B:发送广播消息,指示第三装置资源获取模式的变更。
具体地,第二装置确定第一装置的优先级信息所指示的优先级高于第二装置的优先级后,第二装置停止自身的资源分配,服从第一装置的资源分配。由于第二装置与第三装置为一对主从通信对,则与第二装置连接的从节点(第三装置)也要服从第一装置的资源分配。则第二装置向第三装置发送广播消息,该广播消息用于向其他设备广播声明第二装置的从节点资源获取模式的变更。第三装置接收到该广播消息后,释放第二装置之前分配的所有资源。
可选的,来自第二装置的广播消息可以包含第二装置的身份信息和优先级信息,即第二装置可以作为主节点与其他设备连接,但是需要向第一装置申请资源,并转发给从节点。
需要注意的是,步骤S303A和S303B均为可选的步骤,且不限定执行的前后顺序。
步骤S304:第三装置释放与第二装置的连接资源。
具体地,第三装置释放第二装置之前分配的所有资源,重新从第二装置获取第一装置分配的资源分配信息。
需要注意的是,步骤S304为可选的步骤。
步骤S305:获取第一资源配置信息。
具体地,第二装置从第一装置获取第一资源配置信息,第一资源配置信息用于配置第二资源,第二资源用于第一装置与第二装置之间的通信;第一资源配置信息还可以用于配置第一资源,第一资源用于第一装置与第三装置之间的通信。
可选的,第二装置向第一装置发送指示第二装置所连接的从节点的数据信息,该数据信息包括第二装置连接的从节点的数量、从节点的设备类型、从节点的身份标识信息以及从节点的数据量等等。第一装置接收到该数据信息后,为每个节点分配对应的资源,发送给第二装置。
可以理解的,第二装置获取与第一资源配置信息之前还包括成功建立与第一装置的连接。
步骤S306:发送第二资源配置信息。
具体地,第二装置接收到第一资源配置信息后,向第三装置发送第二资源配置信息。该第二资源配置信息为第一装置为第三装置分配的资源。第一资源配置信息用于配置第二资源,则第二资源配置信息配置的资源为第二资源中的部分资源。
可选的,第二装置接收到第一资源配置信息后,向第三装置转发或者透传第一资源配置信息。第一资源配置信息用于配置第一资源,第二装置直接转发第一资源配置信息(第二资源配置信息与第一资源配置信息相同)。
总的来说,实施例二的核心思想为,在一定范围内,允许具有不同优先级的主节点同时声明主节点身份;低优先级主节点(第二装置)识别具有更高优先级主节点(第一装置)后,停止其资源分配功能,并通知其所连接的从节点设备(第三装置)。后续低优先级主节点代替从节点向高优先级主节点申请资源,并发送给从节点。
可以理解的,当从节点(第三装置)和低优先级主节点(第二装置)移出高优先级主节点(第一装置)的通信覆盖范围后,低优先级主节点(第二装置)检测不到更高优先级主节点,则其自身恢复主节点身份,第三装置继续服从第二装置资源分配。
需要说明的是,是否在通信范围可以取决于接收到的信号功率是否大于预设功率门限,当大于该预设功率门限时,则认为在通信范围内了,否则认为不在通信范围内。
可选的,是否在通信范围内也可以取决于通信速率是否大于某个速率门限,原理与信号功率类似,在此不再赘述。
实施例三、从节点(第三装置)判断优先级,停止服从低优先级主节点(第二装置)资源分配,服从高优先级主节点(第一装置,例如车机)的资源分配。
具体流程描述可以参见图4:
步骤S401:获取第一装置的身份信息和优先级信息中的至少一个。
具体地,第一装置通过广播发送第一装置的身份信息和优先级信息中的至少一个,当第三装置进入到第一装置的通信范围,第三装置获取到第一装置的身份信息和优先级信息中的至少一个。其中,第一装置的身份信息指示第一装置具有资源分配功能,即第一装置可以作为主节点。身份信息可以指示设备类型(例如车机、手机、便携式终端等)、或者是一个可以标识第一装置为主节点的身份标识。可以理解的,资源分配也可以称为资源管理或资源调度。
其中,第一装置的身份信息和优先级信息中的至少一项可以包含在第一装置发送的广播消息中(例如,系统广播消息),也可以包含在资源控制信令(Radio Resource Control,RRC)中。或者,第一装置的身份信息和优先级信息中的至少一项可以通过广播方式发送,也可以通过单播或者组播方式发送。
或者,第一装置的身份信息和优先级信息中的至少一项可以承载在第一装置发送的物理信号中。示例性的,物理信号可以是主同步信号,不同优先级信息可以对应不同式样或图样的同步信号,其他装置可以通过接收同步信号,获取或确定第一装置的优先级信息。
示例性的,身份信息可以通过设备标识码来指示,一般的,设备标识码按照一定编码规则对设备进行编码。其中设备标识码中的不同字段具有不同的含义,可以通过对部分或全部字段的解析获取设备的身份信息。例如,设备标识码中可以是有2bit用来指示设备类型,例如00标识CDC,01标识手机,10表示可穿戴设备等;又例如,身份信息也可以通过1bit来指示,即0标识主节点(具有资源分配/调度功能),1标识从节点(只听从主节点的调度)。
可选的,身份信息可以通过媒体接入层地址(Media Access Control Address,MAC地址)来指示,与设备标识码类似,不再赘述。
可选的,优先级信息用于指示资源分配优先级。优先级低的设备要服从优先级高的设备的资源分配。或者,优先级信息也可以体现为接入优先级或连接优先级,即其他装置优先与高优先级设备建立连接,或向高优先级设备发起接入,由高优先级设备统一进行资源分配。举例来说,其他装置在面对多个设备发送的连接请求时,与多个设备中优先级最高的设备建立连接;或者其他装置在向多个设备发起连接请求时,多个设备中优先级最高的设备响应该连接请求,建立连接;或者其他装置向多个设备中优先级最高的设备发起连接请求。
具体地,优先级信息可以是一个等级标识,表示了第一装置作为主节点的优先级。举 例来说,CDC发送第一系统广播消息,消息中携带第一接入优先级指示,000(高接入优先级);手机发送第二系统广播消息,消息中携带第二接入优先级指示001(低接入优先级),则此时其他装置优先向CDC发送连接建立/接入请求,由CDC为其调度资源。另外,优先级信息可以是按照协议约定的,示例性的,协议中可以约定CDC设备具有最高优先级,手机具有较低优先级等。
在一种可能的实施方式中,第三装置获取第一装置的身份信息和优先级信息中的至少一个之前,第三装置先广播发送连接请求消息。当第一装置进入到第三装置的通信范围,第一装置对第三装置发送的连接请求消息进行响应,向第三装置发送响应信息,该响应信息包括第一装置的身份信息和优先级信息中的至少一个。第三装置获取到第一装置的身份信息和优先级信息中的至少一个。
具体的,第三装置可以通过接收第一装置发送的系统广播消息来获取第一装置的身份信息和优先级信息中的至少一个。
在一种可能的实施方式中,第一装置的身份信息可以指示第一装置的资源分配优先级。当第三装置获取到第一装置的身份信息时,可以通过身份信息而判断出第一装置的资源分配优先级。装置向资源分配优先级较高的设备申请资源,由资源分配优先级较高的设备来统一进行资源分配和管理。
可选的,第一装置的身份信息可以为第一设备的优先级信息,即当第三装置获取到第一装置的身份信息时,可以通过身份信息而判断出第一装置的优先级,从而决定是否向第一装置发送连接建立请求,并由第一装置为其调度资源。
步骤S402:确定第一装置的优先级信息所指示的优先级高于第二装置的优先级。
具体地,第三装置获取第一装置的身份信息和优先级信息中的至少一个后,确定第一装置的优先级信息所指示的优先级高于第二装置的优先级。
步骤S403:第三装置与第一装置建立连接。
具体地,第三装置确定第一装置的优先级信息所指示的优先级高于第二装置的优先级后,与第一装置建立连接。即第三装置服从第一装置的资源分配。
可选的,第三装置释放与第二装置的连接,即第二装置不再作为主节点为第三装置分配资源。
可选的,释放与第二装置的连接可以不需要接收第二装置的应答消息。
步骤S404:发送第二信息,指示第二资源停止资源分配。
具体地,由于第二装置与第三装置为一对主从通信对,则第二装置可以向第三装置发送第二信息。该第二信息用于指示第二装置不再为第三装置分配资源,即第二装置不再作为第三装置的主节点。
可选的,第二信息可以是中断连接请求消息。
可选的,第一信息可以包含第一装置的身份信息和优先级信息中的至少一个,指示第二装置服从第一装置的资源分配,从第一装置获取资源分配信息。
需要注意的是,步骤S404为可选的步骤。
步骤S405:获取第一资源配置信息。
具体地,第三装置从第一装置获取第一资源配置信息,第一资源配置信息用于配置第 一资源,第一资源用于第一装置与第三装置之间的通信;第二装置从第一装置获取第一资源配置信息,第一资源配置信息用于配置第二资源,第二资源用于第一装置与第二装置之间的通信。也即是说,第二装置和第三装置分别从第一装置直接获取资源分配信息。其中,第二装置和第三装置之间的通信数据可以通过第一装置中转而完成数据传输。
可以理解的,第二装置获取与第一资源配置信息之前还包括成功建立与第一装置的连接。
总的来说,实施例三的核心思想为,在一定范围内,允许具有不同优先级的主节点同时声明主节点身份;从节点(第三装置)识别具有更高优先级主节点(第一装置)后,停止服从低优先级主节点(第二装置)资源分配,并对其进行通知。后续低优先级主节点和从节点均服从高优先级主节点的资源分配。
可以理解的,当从节点(第三装置)和低优先级主节点(第二装置)移出高优先级主节点(第一装置)的通信覆盖范围后,从节点(第三装置)检测不到更高优先级主节点,则第二装置变为优先级最高的主节点,第三装置继续服从第二装置资源分配。
上述三个实施例,具体实现了连接变更和资源分配过程,基于优先级信息确定一个优先级最高的设备,对资源进行协调统一分配,避免了干扰,保障了服务质量。
接下来,以第一装置为主节点,第二装置为从节点为例,示例性的提供第一装置和第二装置的两种连接方式。
方式一、以第一装置为执行主体,第一装置主动发起连接请求,与第二装置连接。如图5所示,该方法包括但不限于如下步骤:
步骤S501:第一装置发送第三信息。
具体地,第一装置发送第三信息,该第三信息可以是通过广播、组播等方式发送。用于表明第一装置的连接请求。该第三信息中可以包含第一装置的身份信息、第一装置的优先级信息以及第一地址中的至少一个。其中,第一装置的身份信息用于表征第一装置具有资源分配的功能,身份信息具体可以是第一装置的装置类型(例如CDC、手机、便携式终端等),也可以是其他可以表征第一装置为主节点的标识。可以理解的,资源分配也可以称为资源管理或资源调度。
可选的,第一装置可以在广播信道上,周期性广播发送第三信息;也可以通过在广播信道上随机选择资源,广播第三信息。其中,身份信息和优先级信息可以根据设备属性在出厂的时候预配置。
可选的,第一装置的身份信息和优先级信息中的至少一项可以包含在第一装置发送的广播消息中(例如,系统广播消息),也可以包含在资源控制信令中(Radio Resource Control,RRC)。或者,第一装置的身份信息和优先级信息中的至少一项可以通过广播方式发送,也可以通过单播或者组播方式发送。
或者,第一装置的身份信息和优先级信息中的至少一项可以承载在第一装置发送的物理信号中。示例性的,物理信号可以是主同步信号,不同优先级信息可以对应不同式样或图样的同步信号,其他装置可以通过接收同步信号,获取或确定第一装置的优先级信息。
示例性的,身份信息可以通过设备标识码来指示,一般的,设备标识码按照一定编码 规则对设备进行编码。其中设备标识码中的不同字段具有不同的含义,可以通过对部分或全部字段的解析获取设备的身份信息。例如,设备标识码中可以是有2bit用来指示设备类型,例如00标识CDC,01标识手机,10表示可穿戴设备等;又例如,身份信息也可以通过1bit来指示,即0标识主节点(具有资源分配/调度功能),1标识从节点(只听从主节点的调度)。
可选的,身份信息可以通过媒体接入层地址(Media Access Control Address,MAC地址)来指示,与设备标识码类似,不再赘述。
可选的,优先级信息用于指示资源分配优先级。优先级低的设备要服从优先级高的设备的资源分配。或者,优先级信息也可以体现为接入优先级或连接优先级,即其他装置优先与高优先级设备建立连接,或向高优先级设备发起接入,由高优先级设备统一进行资源分配。举例来说,其他装置在面对多个设备发送的连接请求时,与多个设备中优先级最高的设备建立连接;或者其他装置在向多个设备发起连接请求时,多个设备中优先级最高的设备响应该连接请求,建立连接;或者其他装置向多个设备中优先级最高的设备发起连接请求。
具体的,优先级信息可以是一个等级标识,表示了第一装置作为主节点的优先级。举例来说,CDC发送第一系统广播消息,消息中携带第一接入优先级指示,000(高接入优先级);手机发送第二系统广播消息,消息中携带第二接入优先级指示001(低接入优先级),则此时其他装置优先向CDC发送连接建立/接入请求,由CDC为其调度资源。另外,优先级信息可以是按照协议约定的,示例性的,协议中可以约定CDC设备具有最高优先级,手机具有较低优先级等。
在一种可能的实施方式中,第一装置的身份信息可以指示第一装置的资源分配优先级。当第二装置获取到第一装置的身份信息时,可以通过身份信息而判断出第一装置的资源分配优先级。装置向资源分配优先级较高的设备申请资源,由资源分配优先级较高的设备来统一进行资源分配和管理。
可选的,第一装置的身份信息可以为第一设备的优先级信息,即当第三装置获取到第一装置的身份信息时,可以通过身份信息而判断出第一装置的优先级,从而决定是否向第一装置发送连接建立请求,并由第一装置为其调度资源。
在一种可能的实施方式中,第一地址可以指示第一装置的资源分配优先级。当第二装置获取到第一装置的第一地址时,可以通过第一地址而判断出第一装置的资源分配优先级。举例来说,第一地址为CDC发送的信息;则此时通过第一地址,第二装置可以知道第一装置具有资源分配功能,且资源分配优先级最高。
可选的,第一地址为媒体接入层地址。
在一种可能的实施方式中,该第三信息中还可以包含第一装置的设备ID,第一装置的设备ID可以唯一指示第一装置,例如可以是第一装置的硬件地址;其他设备可以通过设备ID与第一装置通信。设备ID可以指示第一装置的资源分配优先级。当第二装置获取到第一装置的设备ID时,可以通过设备ID而判断出第一装置的资源分配优先级。
步骤S502:第二装置发送响应消息。
具体地,第一装置发送第三信息后,第二装置接收到该第三信息。第二装置向第一装 置发送响应消息,该响应消息包含第二装置的标识信息(例如第二装置的设备ID)。
可选的,第二装置发送响应消息的触发方式包括手动触发和自动触发。手动触发包括点击、触控、语音、手势、悬浮触控等方式。示例性的,手动触发可以是初次响应第一装置的连接建立时,第二装置接收到第一装置发送的第三信息后,根据用户的手动触发,然后发送响应消息。自动触发可以是第二装置和第一装置初次建立连接后,互相存储对方的设备ID或其他能够唯一识别对方的身份标识等;后续当第二装置再次接收到第一装置发送的第三信息时,识别到第一装置的身份标识与存储的身份标识相同,将自动根据该第三信息发送响应消息到第一装置。
步骤S503:第一装置发送连接建立信息。
具体地,第一装置接收到来自第二装置的响应消息后,向第二装置发送连接建立消息。该连接建立消息包括第二地址,该第二地址为第一装置为第二装置分配的地址,用于第一装置和第二装置之间的通信,以及第一装置为第二装置分配的资源(例如时频资源)。其中,第一装置为第二装置分配的资源可以是动态调度的资源,也可以是半静态调度的资源。
可选的,该第二地址为第一装置分配的短地址,在第一装置和第二装置通信的过程中使用第二地址可以减少信令的开销,减少数据包的长度,节约资源。根据该第二地址,可实现的方法包括,第一装置(主节点)在MAC PDU子头寻址第二装置(从节点),并携带资源分配信息以及通信数据信息向第二装置发送。可选的,短地址也可以是物理层短地址;物理层可以根据该短地址来过滤接收到的物理层数据。
步骤S504:第二装置发送连接建立完成消息。
具体地,第二装置接收到第一装置发送的连接建立消息后,向第一装置发送连接建立完成消息,辅助第一装置(主节点)判断连接建立是否成功。第一装置接收到该连接建立完成消息,则判断与第二装置的连接建立成功。
可选的,若第一装置在预设时间之前,接收到该连接建立完成消息,则判断与第二装置的连接建立成功;若第一装置在预设时间内没有接收到该连接建立完成消息,则判断与第二装置的连接建立失败,可以重新发起新的连接。
需要注意的是,步骤S504为可选的步骤。
在图5所描述的方法中,是第一装置主动发送第三信息,得到第二装置的响应后与第二装置进行连接。与传统的连接方式不同,为了使第一装置和第二装置在进入更复杂的通信环境中能够不与其他设备产生资源冲突,本申请实施例在连接过程中,第一装置在发送的第三信息中声明其主节点身份以及主节点优先级,从节点设备(第二装置,包括耳机、可穿戴设备等)与主节点设备(第一装置)建立连接,并在连接建立后从主节点获取资源分配信息,与主节点进行数据传输。基于设备优先级信息实现连接建立,便于在主从节点接入复杂环境时,使得高优先级设备能够对于资源进行统一调度和管控,解决多个主从通信对之间的资源互相干扰问题。
方式二、以第二装置为执行主体,第二装置主动发起连接请求,与第一装置连接。如图6所示,该方法包括但不限于如下步骤:
步骤S601:第二装置发送连接建立消息。
具体地,第二装置发送连接建立消息。该连接建立消息可以是通过广播、组播等方式发送。连接建立消息包括第二装置的标识信息(例如第二装置的设备ID),以及包括了主节点身份缺省的信息,用于表明第二装置的连接请求。
步骤S602:第一装置发送第四信息。
具体地,第一装置接收到第二装置发送的连接建立消息,向第二装置发送第四消息。该第四信息包括第一装置的身份信息、第一地址以及所述第一装置的优先级信息中的至少一个。其中,第一装置的身份信息用于表征第一装置具有资源分配的功能,身份信息具体可以是第一装置的装置类型(例如CDC、手机、便携式终端等),也可以是其他可以表征第一装置为主节点的标识。可以理解的,资源分配也可以称为资源管理或资源调度。
其中,第一装置发送第四信息的触发方式包括手动触发和自动触发。手动触发包括点击、触控、语音、手势、悬浮触控等方式。示例性的,手动触发可以是初次与第二装置的连接建立时,第一装置接收到第二装置发送的连接建立消息后,根据用户的手动触发,然后发送第四信息。自动触发可以是第二装置和第一装置初次建立连接后,互相存储对方的设备ID或其他能够唯一识别对方的身份标识等;后续当第一装置再次接收到第二装置发送的连接建立消息时,识别到第二装置的身份标识与存储的身份标识相同,将自动根据该连接建立消息发送第四信息到第二装置。
其中,第一装置的身份信息和优先级信息中的至少一项可以包含在第一装置发送的广播消息中(例如,系统广播消息),也可以包含在资源控制信令中(Radio Resource Control,RRC)。或者,第一装置的身份信息和优先级信息中的至少一项可以通过广播方式发送,也可以通过单播或者组播方式发送。
或者,第一装置的身份信息和优先级信息中的至少一项可以承载在第一装置发送的物理信号中。示例性的,物理信号可以是主同步信号,不同优先级信息可以对应不同式样或图样的同步信号,其他装置可以通过接收同步信号,获取或确定第一装置的优先级信息。
示例性的,身份信息可以通过设备标识码来指示,一般的,设备标识码按照一定编码规则对设备进行编码。其中设备标识码中的不同字段具有不同的含义,可以通过对部分或全部字段的解析获取设备的身份信息。例如,设备标识码中可以是有2bit用来指示设备类型,例如00标识CDC,01标识手机,10表示可穿戴设备等;又例如,身份信息也可以通过1bit来指示,即0标识主节点(具有资源分配/调度功能),1标识从节点(只听从主节点的调度)。
可选的,身份信息可以通过媒体接入层地址(Media Access Control Address,MAC地址)来指示,与设备标识码类似,不再赘述。
可选的,优先级信息用于指示资源分配优先级。优先级低的设备要服从优先级高的设备的资源分配。或者,优先级信息也可以体现为接入优先级或连接优先级,即其他装置优先与高优先级设备建立连接,或向高优先级设备发起接入,由高优先级设备统一进行资源分配。举例来说,其他装置在面对多个设备发送的连接请求时,与多个设备中优先级最高的设备建立连接;或者其他装置在向多个设备发起连接请求时,多个设备中优先级最高的设备响应该连接请求,建立连接;或者其他装置向多个设备中优先级最高的设备发起连接请求。
具体地,优先级信息可以是一个等级标识,表示了第一装置作为主节点的优先级。举例来说,CDC发送第一系统广播消息,消息中携带第一接入优先级指示,000(高接入优先级);手机发送第二系统广播消息,消息中携带第二接入优先级指示001(低接入优先级),则此时其他装置优先向CDC发送连接建立/接入请求,由CDC为其调度资源。另外,优先级信息可以是按照协议约定的,示例性的,协议中可以约定CDC设备具有最高优先级,手机具有较低优先级等。
在一种可能的实施方式中,第一装置的身份信息可以指示第一装置的资源分配优先级。当第二装置获取到第一装置的身份信息时,可以通过身份信息而判断出第一装置的资源分配优先级。装置向资源分配优先级较高的设备申请资源,由资源分配优先级较高的设备来统一进行资源分配和管理。
可选的,第一装置的身份信息可以为第一设备的优先级信息,即当第三装置获取到第一装置的身份信息时,可以通过身份信息而判断出第一装置的优先级,从而决定是否向第一装置发送连接建立请求,并由第一装置为其调度资源。
在一种可能的实施方式中,第一地址可以指示第一装置的资源分配优先级。当第二装置获取到第一装置的第一地址时,可以通过第一地址而判断出第一装置的资源分配优先级。举例来说,第一地址为CDC发送的信息;则此时通过第一地址,第二装置可以知道第一装置具有资源分配功能,且资源分配优先级最高。
可选的,第一地址为媒体接入层地址。
在一种可能的实施方式中,第四信息还可以包括第二地址,该第二地址为第一装置为第二装置分配的短地址,用于第一装置和第二装置之间的通信,以及后续第一装置对第二装置的资源分配(例如时频资源)。在第一装置和第二装置通信的过程中使用第二地址可以减少信令的开销,减少数据包的长度,节约资源。根据该第二地址,可实现的方法包括,第一装置(主节点)在MAC PDU子头寻址第二装置(从节点),并在携带资源分配信息以及通信数据信息向第二装置发送。可选的,短地址也可以是物理层短地址;物理层可以根据该短地址来过滤接收到的物理层数据。
可选的,第四信息还可以包括第一装置的设备ID和第二装置的设备ID,第一装置的设备ID可以唯一指示第一装置,例如可以是第一装置的硬件地址;第二装置的设备ID可以唯一指示第二装置,例如可以是第二装置的硬件地址;第二装置与第一装置可以通过硬件地址通信。
步骤S603:第二装置发送连接建立完成消息。
具体地,第二装置接收到第一装置发送的第四信息后,向第一装置发送连接建立完成消息,辅助第一装置(主节点)判断连接建立是否成功。第一装置接收到该连接建立完成消息,则判断与第二装置的连接建立成功。
可选的,若第一装置在预设时间之前,接收到该连接建立完成消息,则判断与第二装置的连接建立成功;若第一装置在预设时间内没有接收到该连接建立完成消息,则判断与第二装置的连接建立失败,可以重新发起新的连接。
需要注意的是,步骤S603为可选的步骤。
在图6所描述的方法中,是第二装置主动发送连接建立消息,第一装置接收到该连接 建立消息后,向第二装置发送第四信息,与第二装置进行连接。与传统的连接方式不同,为了使第一装置和第二装置在进入更复杂的通信环境中能够不与其他设备产生资源冲突,本申请实施例在连接过程中,第一装置在发送的第四信息中声明其主节点身份以及主节点优先级,从节点设备(第二装置,包括耳机、可穿戴设备等)与主节点设备(第一装置)建立连接,并在连接建立后从主节点获取资源分配信息,根据该资源分配信息配置通信资源,与主节点进行数据传输。基于设备优先级信息实现连接建立,便于在主从节点接入复杂环境时,使得高优先级设备能够对于资源进行统一调度和管控,解决多个主从通信对之间的资源互相干扰问题。
可以理解的,上述提供的两种连接方式是两种示例性的连接方式,实际应用中两个电子设备之间的连接不限于上述两种连接方式。
当第一装置(高优先级主节点)、第二装置(低优先级主节点)、第三装置(从节点)同时存在的时候,第一装置和第二装置可以同时声明主节点身份。第三装置通过比较第一装置和第二装置的优先级信息或身份信息,与第一装置建立连接。
或者,当第一装置(高优先级主节点)、第二装置(低优先级主节点)、第三装置(从节点)同时存在的时候,第二装置识别到第一装置的存在,不再声明自己的主节点身份。第三装置接收到第一装置的优先级信息或身份信息,与第一装置建立连接。
上述详细阐述了本申请实施例的方法,下面提供了本申请实施例的装置。
请参见图7,图7是本申请实施例提供的一种通信装置的结构示意图,该通信装置可以包括获取单元701和确定单元702。进一步可选的,所述通信装置还可以包括停止单元703、第一发送单元704、第二发送单元705以及第一接收单元706,其中,各个单元的详细描述如下。
获取单元701,用于获取第一装置的身份信息和优先级信息中的至少一个,所述第一装置的身份信息指示所述第一装置具有资源分配功能;
确定单元702,用于确定所述第一装置的优先级信息所指示的优先级高于第二装置的优先级;
所述获取单元701,还用于获取第一资源配置信息,所述第一资源配置信息用于配置第一资源,所述第一资源用于所述第一装置与第三装置之间的通信,或者,所述第一资源配置信息用于配置第二资源,所述第二资源用于所述第一装置与第二装置之间的通信。
在一种可能的实现方式中,所述优先级信息用于指示资源分配优先级。
在一种可能的实现方式中,所述身份信息指示了所述第一装置的资源分配优先级。
在一种可能的实现方式中,所述装置还包括:停止单元703,用于停止发送广播消息,所述广播消息包含所述第二装置的身份信息和优先级信息中的至少一个。
在一种可能的实现方式中,所述装置还包括:第一发送单元704,用于向所述第三装置发送第一信息,所述第一信息用于指示所述第二装置不为第三装置分配资源,或者所述第一信息用于指示所述第三装置资源获取模式的变更。
在一种可能的实现方式中,来自所述第二装置的广播消息不包含所述第二装置的身份 信息和优先级信息,或者所述第一信息用于指示终止对所述第三装置的资源分配。
在一种可能的实现方式中,所述第一信息包含所述第一装置的身份信息和优先级信息中的至少一个,和/或,所述第一信息携带模式变更指示,所述模式变更指示用于指示所述第三装置从所述第一装置获取资源分配信息。
在一种可能的实现方式中,所述获取单元701,具体用于接收来自第一装置的所述第一资源配置信息。
在一种可能的实现方式中,所述第一发送单元704,还用于向所述第三装置发送第二资源配置信息,所述第二资源配置信息配置的资源为所述第二资源中的部分资源;或者向所述第三装置发送所述第一资源配置信息。
在一种可能的实现方式中,所述装置还包括:第二发送单元705,用于向所述第二装置发送第二信息,所述第二信息用于指示释放与所述第二装置的连接。
在一种可能的实现方式中,所述获取单元701具体用于获取来自所述第一装置的所述第一资源配置信息,所述第一资源配置信息用于配置第一资源,所述第一资源用于所述第一装置与第三装置之间的通信。
在一种可能的实现方式中,所述装置还包括:第一接收单元706,用于接收来自所述第二装置的第一信息,所述第一信息用于指示所述第二装置不为第三装置分配资源,或者所述第二信息用于指示所述第三装置资源获取模式的变更。
需要说明的是,各个单元的实现还可以对应参照图2或图3或图4所示的方法实施例中步骤的相应描述,此处不再赘述。另外,上述提到的第一和第二发送单元可以仅仅是一种基于功能的逻辑上的区分,不限定必然存在两个独立的发送单元。在具体的实现中,可以存在一个发送单元,也可以存在多个发送单元。
请参见图8,图8是本申请实施例提供的又一种通信装置的结构示意图,该通信装置可以包括第三发送单元801和第二接收单元802,其中,各个单元的详细描述如下。
第三发送单元801,用于发送第三信息,所述第三信息包括第一装置的身份信息、第一地址以及所述第一装置的优先级信息中的至少一个,所述第一装置的身份信息指示所述第一装置具有资源分配功能;所述优先级信息用于指示资源分配优先级;
第二接收单元802,用于接收来自第二装置的响应消息,所述响应消息包含所述第二装置的标识信息。
在一种可能的实现方式中,所述优先级信息用于指示资源分配优先级。
在一种可能的实现方式中,所述第三发送单元801,还用于向所述第二装置发送连接建立消息,所述连接建立消息包括第二地址,所述第二地址为所述第一装置为所述第二装置分配的地址。
需要说明的是,各个单元的实现还可以对应参照图5所示的方法实施例中步骤的相应描述,此处不再赘述。
请参见图9,图9是本申请实施例提供的又一种通信装置的结构示意图,该通信装置可以包括第三接收单元901和第四发送单元902,其中,各个单元的详细描述如下。
第三接收单元901,用于接收连接建立消息,所述连接建立消息包括第二装置的标识 信息;
第四发送单元902,用于根据所述连接建立消息发送第四信息,所述第四信息包括第一装置的身份信息、第一地址以及所述第一装置的优先级信息中的至少一个,所述第一装置的身份信息指示所述第一装置具有资源分配功能;
在一种可能的实现方式中,所述优先级信息用于指示资源分配优先级。
在一种可能的实现方式中,所述第四信息还包括第二地址,所述第二地址为所述第一装置为所述第二装置分配的地址。
需要说明的是,各个单元的实现还可以对应参照图6所示的方法实施例中步骤的相应描述,此处不再赘述。
如图10所示,图10是本申请实施例提供的一种电子设备的结构示意图,该电子设备100包括至少一个处理器1001以及至少一个通信接口1003,可选的,还可以包括至少一个存储器1002。此外,该设备还可以包括天线等通用部件,在此不再详述。
处理器1001可以是通用中央处理器(CPU),微处理器,特定应用集成电路(application-specific integrated circuit,ASIC),或一个或多个用于控制以上方案程序执行的集成电路。
所述电子设备包含通信接口1003,则所述通信接口用于与其他设备或通信网络通信,如以太网,无线接入网(RAN),核心网,无线局域网(Wireless Local Area Networks,WLAN)等。
若所述电子设备包含存储器1002,则所述存储器可以是只读存储器(read-only memory,ROM)或可存储静态信息和指令的其他类型的静态存储设备,随机存取存储器(random access memory,RAM)或者可存储信息和指令的其他类型的动态存储设备,也可以是电可擦可编程只读存储器(Electrically Erasable Programmable Read-Only Memory,EEPROM)、只读光盘(Compact Disc Read-Only Memory,CD-ROM)或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。存储器可以是独立存在,通过总线与处理器相连接。存储器也可以和处理器集成在一起。
其中,所述存储器1002用于存储执行以上方案的应用程序代码,并由处理器1001来控制执行。所述处理器1001用于执行所述存储器1002中存储的应用程序代码。
存储器1002存储的代码可用于执行以上图2-图6提供的通信方法,比如确定所述第一装置的优先级信息所指示的优先级高于第二装置的优先级;获取第一资源配置信息,所述第一资源配置信息用于配置第一资源,所述第一资源用于所述第一装置与第三装置之间的通信,或者,所述第一资源配置信息用于配置第二资源,所述第二资源用于所述第一装置与第二装置之间的通信。
其中,该电子设备100可以是图2-图6提供的通信方法中的第一装置、第二装置或第三装置。也可以是车辆中的车机,中央控制器或控制节点。
可选的,该电子设备100也可以是芯片或者集成电路。
可选的,该电子设备100也可以集成到车载中央控制器或者MDC控制器。
需要说明的是,本申请实施例中所描述的电子设备100中各功能单元的功能可参见上述图2-图6中所述的方法实施例中的相关描述,此处不再赘述。
本申请实施例还提供一种车辆,所述车辆上设置有上述电子设备。进一步可选的,所述车辆包含所述第一装置。
参见图11,本申请实施例还提供的一种芯片1100,包括一个或多个处理器1101以及接口电路1102。可选的,所述芯片1100还可以包含总线1103。其中:
处理器1101可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器1101中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器1101可以是通用处理器、数字通信器(DSP)、专用集成电路(ASIC)、现成可编程门阵列(FPGA)或者其它可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本申请实施例中的公开的各方法、步骤。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。
接口电路1102可以完成数据、指令或者信息的发送或者接收,处理器1101可以利用接口电路1102接收的数据、指令或者其它信息,进行加工,可以将加工完成信息通过接口电路1102发送出去。
可选的,芯片还包括存储器,存储器可以包括只读存储器和随机存取存储器,并向处理器提供操作指令和数据。存储器的一部分还可以包括非易失性随机存取存储器(NVRAM)。
可选的,存储器存储了可执行软件模块或者数据结构,处理器可以通过调用存储器存储的操作指令(该操作指令可存储在操作系统中),执行相应的操作。
可选的,芯片可以使用在本申请实施例涉及的电子设备或网络设备中。可选的,接口电路1102可用于输出处理器1101的执行结果。关于本申请的一个或多个实施例提供的认证方法可参考前述各个实施例,这里不再赘述。
需要说明的,处理器1101、接口电路1102各自对应的功能既可以通过硬件设计实现,也可以通过软件设计来实现,还可以通过软硬件结合的方式来实现,这里不作限制。
上述主要从电子设备实施的方法的角度对本申请实施例提供的方案进行了介绍。可以理解的是,各个网元,例如电子设备、处理器等为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的网元及算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
本申请实施例可以根据上述方法示例对电子设备、摄像设备等进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形 式实现。需要说明的是,本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。
本申请实施例还提供了一种计算机可读存储介质。上述方法实施例中的全部或者部分流程可以由计算机程序来指令相关的硬件完成,该程序可存储于上述计算机存储介质中,该程序在执行时,可包括如上述各方法实施例的流程。该计算机可读存储介质包括:只读存储器(read-only memory,ROM)或随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可存储程序代码的介质。
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者通过所述计算机可读存储介质进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如,固态硬盘(solid state disk,SSD))等。
本申请实施例方法中的步骤可以根据实际需要进行顺序调整、合并和删减。
本申请实施例装置中的模块可以根据实际需要进行合并、划分和删减。
以上所述,以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。

Claims (33)

  1. 一种通信方法,其特征在于,所述方法包括:
    获取第一装置的身份信息和优先级信息中的至少一个,所述第一装置的身份信息指示所述第一装置具有资源分配功能;
    确定所述第一装置的优先级信息所指示的优先级高于第二装置的优先级;
    获取第一资源配置信息,所述第一资源配置信息用于配置第一资源,所述第一资源用于所述第一装置与第三装置之间的通信,或者,所述第一资源配置信息用于配置第二资源,所述第二资源用于所述第一装置与第二装置之间的通信。
  2. 如权利要求1所述的方法,其特征在于,所述身份信息指示了所述第一装置的资源分配优先级。
  3. 如权利要求1所述的方法,其特征在于,所述确定所述第一装置的优先级信息所指示的优先级高于第二装置的优先级之后,还包括:
    停止发送广播消息,所述广播消息包含所述第二装置的身份信息和优先级信息中的至少一个。
  4. 如权利要求1-3任一项所述的方法,其特征在于,所述确定所述第一装置的优先级信息所指示的优先级高于第二装置的优先级之后,还包括:
    向所述第三装置发送第一信息,所述第一信息用于指示所述第二装置不为第三装置分配资源,或者所述第一信息用于指示所述第三装置资源获取模式的变更。
  5. 如权利要求4所述的方法,其特征在于,来自所述第二装置的广播消息不包含所述第二装置的身份信息和优先级信息,或者所述第一信息用于指示终止对所述第三装置的资源分配。
  6. 如权利要求5所述的方法,其特征在于,所述第一信息包含所述第一装置的身份信息和优先级信息中的至少一个,和/或,所述第一信息携带模式变更指示,所述模式变更指示用于指示所述第三装置从所述第一装置获取资源分配信息。
  7. 如权利要求4-6任一项所述的方法,其特征在于,所述获取第一资源配置信息,包括:
    接收来自所述第一装置的所述第一资源配置信息。
  8. 如权利要求4-7任一项所述的方法,其特征在于,所述获取第一资源配置信息,之后还包括:
    向所述第三装置发送第二资源配置信息,所述第二资源配置信息配置的资源为所述第 二资源中的部分资源;
    或者向所述第三装置发送所述第一资源配置信息。
  9. 如权利要求1-3任一项所述的方法,其特征在于,所述确定所述第一装置的优先级信息所指示的优先级高于第二装置的优先级之后,还包括:
    向所述第二装置发送第二信息,所述第二信息用于指示释放与所述第二装置的连接。
  10. 如权利要求9所述的方法,其特征在于,所述获取第一资源配置信息,包括:
    获取来自所述第一装置的所述第一资源配置信息,所述第一资源配置信息用于配置第一资源,所述第一资源用于所述第一装置与第三装置之间的通信。
  11. 如权利要求9或10所述的方法,其特征在于,所述确定所述第一装置的优先级信息所指示的优先级高于第二装置的优先级之后,还包括:
    接收来自所述第二装置的第一信息,所述第一信息用于指示所述第二装置不为第三装置分配资源,或者所述第二信息用于指示所述第三装置资源获取模式的变更。
  12. 一种通信方法,其特征在于,所述方法包括:
    发送第三信息,所述第三信息包括第一装置的身份信息、第一地址以及所述第一装置的优先级信息中的至少一个,所述第一装置的身份信息指示所述第一装置具有资源分配功能;
    接收来自第二装置的响应消息,所述响应消息包含所述第二装置的标识信息。
  13. 如权利要求12所述的方法,其特征在于,所述接收来自第二装置的响应消息之后,还包括:
    向所述第二装置发送连接建立消息,所述连接建立消息包括第二地址,所述第二地址为所述第一装置为所述第二装置分配的地址。
  14. 一种通信方法,其特征在于,所述方法包括:
    接收连接建立消息,所述连接建立消息包括第二装置的标识信息;
    根据所述连接建立消息发送第四信息,所述第四信息包括第一装置的身份信息、第一地址以及所述第一装置的优先级信息中的至少一个,所述第一装置的身份信息指示所述第一装置具有资源分配功能。
  15. 如权利要求14所述的方法,所述第四信息还包括第二地址,所述第二地址为所述第一装置为所述第二装置分配的地址。
  16. 一种通信装置,其特征在于,所述装置包括:
    获取单元,用于获取第一装置的身份信息和优先级信息中的至少一个,所述第一装置 的身份信息指示所述第一装置具有资源分配功能;
    确定单元,用于确定所述第一装置的优先级信息所指示的优先级高于第二装置的优先级;
    所述获取单元,还用于获取第一资源配置信息,所述第一资源配置信息用于配置第一资源,所述第一资源用于所述第一装置与第三装置之间的通信,或者,所述第一资源配置信息用于配置第二资源,所述第二资源用于所述第一装置与第二装置之间的通信。
  17. 如权利要求16所述的装置,其特征在于,所述身份信息指示了所述第一装置的资源分配优先级。
  18. 如权利要求16所述的装置,其特征在于,所述装置还包括:
    停止单元,用于在所述确定单元确定所述第一装置的优先级信息所指示的优先级高于第二装置的优先级之后,停止发送广播消息,所述广播消息包含所述第二装置的身份信息和优先级信息中的至少一个。
  19. 如权利要求16-18任一项所述的装置,其特征在于,所述装置还包括:
    第一发送单元,用于在所述确定单元确定所述第一装置的优先级信息所指示的优先级高于第二装置的优先级之后,向所述第三装置发送第一信息,所述第一信息用于指示所述第二装置不为第三装置分配资源,或者所述第一信息用于指示所述第三装置资源获取模式的变更。
  20. 如权利要求19所述的装置,其特征在于,来自所述第二装置的广播消息不包含所述第二装置的身份信息和优先级信息,或者所述第一信息用于指示终止对所述第三装置的资源分配。
  21. 如权利要求20所述的装置,其特征在于,所述第一信息包含所述第一装置的身份信息和优先级信息中的至少一个,和/或,所述第一信息携带模式变更指示,所述模式变更指示用于指示所述第三装置从所述第一装置获取资源分配信息。
  22. 如权利要求19-21任一项所述的装置,其特征在于,所述获取单元,具体用于接收来自第一装置的所述第一资源配置信息。
  23. 如权利要求19-22任一项所述的装置,其特征在于,所述第一发送单元,还用于在所述获取单元获取第一资源配置信息之后,向所述第三装置发送第二资源配置信息,所述第二资源配置信息配置的资源为所述第二资源中的部分资源;
    或者向所述第三装置发送所述第一资源配置信息。
  24. 如权利要求16-18任一项所述的装置,其特征在于,所述装置还包括:
    第二发送单元,用于所述确定单元确定所述第一装置的优先级信息所指示的优先级高于第二装置的优先级之后,向所述第二装置发送第二信息,所述第二信息用于指示释放与所述第二装置的连接。
  25. 如权利要求24所述的装置,其特征在于,所述获取单元具体用于获取来自所述第一装置的所述第一资源配置信息,所述第一资源配置信息用于配置第一资源,所述第一资源用于所述第一装置与所述第三装置之间的通信。
  26. 如权利要求24或25所述的装置,其特征在于,所述装置还包括:
    第一接收单元,用于所述确定单元确定所述第一装置的优先级信息所指示的优先级高于第二装置的优先级之后,接收来自所述第二装置的第一信息,所述第一信息用于指示所述第二装置不为第三装置分配资源,或者所述第二信息用于指示所述第三装置资源获取模式的变更。
  27. 一种通信装置,其特征在于,所述装置包括:
    第三发送单元,用于发送第三信息,所述第三信息包括第一装置的身份信息、第一地址以及所述第一装置的优先级信息中的至少一个,所述第一装置的身份信息指示所述第一装置具有资源分配功能;
    第二接收单元,用于接收来自第二装置的响应消息,所述响应消息包含所述第二装置的标识信息。
  28. 如权利要求27所述的装置,其特征在于,所述第三发送单元,还用于在所述第二接收单元接收来自第二装置的响应消息之后,向所述第二装置发送连接建立消息,所述连接建立消息包括第二地址,所述第二地址为所述第一装置为所述第二装置分配的地址。
  29. 一种通信装置,其特征在于,所述装置包括:
    第三接收单元,用于接收连接建立消息,所述连接建立消息包括第二装置的标识信息;
    第四发送单元,用于根据所述连接建立消息发送第四信息,所述第四信息包括第一装置的身份信息、第一地址以及所述第一装置的优先级信息中的至少一个,所述第一装置的身份信息指示所述第一装置具有资源分配功能。
  30. 如权利要求29所述的装置,其特征在于,所述第四信息还包括第二地址,所述第二地址为所述第一装置为所述第二装置分配的地址。
  31. 一种通信装置,其特征在于,包括至少一个处理器以及存储器,其中,所述存储器用于存储程序代码,所述至少一个处理器用于调用所述程序代码,以使得所述通信装置实现权利要求1-15任一项所述的方法。
  32. 一种计算机可读存储介质,其特征在于,包括计算机指令,当所述计算机指令在装置上运行时,使得所述装置执行如权利要求1至15中任一项所述的方法。
  33. 一种芯片,其特征在于,所述芯片包括至少一个处理器,存储器和接口电路,所述至少一个存储器中存储有指令;所述指令被所述至少一个处理器执行时,权利要求1至15中任意一项所述的方法得以实现。
PCT/CN2020/078240 2020-03-06 2020-03-06 一种通信方法及相关装置 WO2021174536A1 (zh)

Priority Applications (4)

Application Number Priority Date Filing Date Title
EP20922810.5A EP4102920A4 (en) 2020-03-06 2020-03-06 COMMUNICATION METHOD AND ASSOCIATED DEVICE
PCT/CN2020/078240 WO2021174536A1 (zh) 2020-03-06 2020-03-06 一种通信方法及相关装置
CN202080009268.5A CN113366869B (zh) 2020-03-06 2020-03-06 一种通信方法及相关装置
US17/901,638 US20220417944A1 (en) 2020-03-06 2022-09-01 Communication method and related apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/078240 WO2021174536A1 (zh) 2020-03-06 2020-03-06 一种通信方法及相关装置

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US17/901,638 Continuation US20220417944A1 (en) 2020-03-06 2022-09-01 Communication method and related apparatus

Publications (1)

Publication Number Publication Date
WO2021174536A1 true WO2021174536A1 (zh) 2021-09-10

Family

ID=77525223

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/078240 WO2021174536A1 (zh) 2020-03-06 2020-03-06 一种通信方法及相关装置

Country Status (4)

Country Link
US (1) US20220417944A1 (zh)
EP (1) EP4102920A4 (zh)
CN (1) CN113366869B (zh)
WO (1) WO2021174536A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114640474A (zh) * 2022-05-19 2022-06-17 润芯微科技(江苏)有限公司 一种汽车分离式座舱安全认证与加密方法

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI786669B (zh) * 2020-06-12 2022-12-11 新加坡商聯發科技(新加坡)私人有限公司 用於多(子)系統共享幀配置的方法及裝置
JP7438473B1 (ja) 2022-04-05 2024-02-26 三菱電機株式会社 リソース管理装置、列車無線システム、通信制御方法、制御回路、および、記憶媒体

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160345360A1 (en) * 2015-05-22 2016-11-24 Qualcomm Incorporated Clear channel assessment procedure at master and slave devices
CN106507500A (zh) * 2015-09-07 2017-03-15 中兴通讯股份有限公司 车联网的通信方法及装置
CN108601007A (zh) * 2018-04-28 2018-09-28 上海与德科技有限公司 蓝牙网络及其组网方法、主设备、从设备
CN108881990A (zh) * 2018-06-25 2018-11-23 努比亚技术有限公司 音频播放方法、终端及计算机存储介质
CN109040184A (zh) * 2018-06-28 2018-12-18 武汉船舶通信研究所(中国船舶重工集团公司第七二二研究所) 一种主节点的选举方法及服务器
US20190373633A1 (en) * 2018-05-31 2019-12-05 Qualcomm Incorporated Reference signal design for medium access in cellular v2x communication

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7471200B2 (en) * 2005-06-30 2008-12-30 Nokia Corporation RFID optimized capability negotiation
CN103685573A (zh) * 2013-12-31 2014-03-26 东风汽车有限公司 一种用于汽车与智能终端间的互动系统
CN103823439B (zh) * 2014-02-21 2016-08-17 浙江大学 基于移动终端和车载系统互联的车载资源控制方法
US9723630B2 (en) * 2014-03-21 2017-08-01 Samsung Electronics Co., Ltd. Contention-based resource allocation method and apparatus for low power D2D communication
CN104703224B (zh) * 2015-04-09 2018-05-15 宇龙计算机通信科技(深圳)有限公司 用于d2d通信的资源配置方法、装置和终端
US10555199B2 (en) * 2015-05-08 2020-02-04 Lg Electronics Inc. Method for terminal for carrying out V2X communication in wireless communication system and terminal utilizing the method
CN106911842B (zh) * 2017-01-22 2021-10-08 斑马信息科技有限公司 通信控制方法、通信控制装置、车载设备和交通运输工具
CN108289298A (zh) * 2017-03-25 2018-07-17 深圳雷柏科技股份有限公司 一种在多个蓝牙设备间智能切换的方法和装置
CN107294827B (zh) * 2017-05-27 2019-10-25 烽火通信科技股份有限公司 避免主从设备冲突的rs485通信系统及方法
CN110851271B (zh) * 2019-10-28 2022-12-06 北京梧桐车联科技有限责任公司 资源共享方法及装置、存储介质

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160345360A1 (en) * 2015-05-22 2016-11-24 Qualcomm Incorporated Clear channel assessment procedure at master and slave devices
CN106507500A (zh) * 2015-09-07 2017-03-15 中兴通讯股份有限公司 车联网的通信方法及装置
CN108601007A (zh) * 2018-04-28 2018-09-28 上海与德科技有限公司 蓝牙网络及其组网方法、主设备、从设备
US20190373633A1 (en) * 2018-05-31 2019-12-05 Qualcomm Incorporated Reference signal design for medium access in cellular v2x communication
CN108881990A (zh) * 2018-06-25 2018-11-23 努比亚技术有限公司 音频播放方法、终端及计算机存储介质
CN109040184A (zh) * 2018-06-28 2018-12-18 武汉船舶通信研究所(中国船舶重工集团公司第七二二研究所) 一种主节点的选举方法及服务器

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP4102920A4 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114640474A (zh) * 2022-05-19 2022-06-17 润芯微科技(江苏)有限公司 一种汽车分离式座舱安全认证与加密方法

Also Published As

Publication number Publication date
EP4102920A4 (en) 2023-04-12
CN113366869B (zh) 2023-01-13
EP4102920A1 (en) 2022-12-14
CN113366869A (zh) 2021-09-07
US20220417944A1 (en) 2022-12-29

Similar Documents

Publication Publication Date Title
JP7183416B2 (ja) 時間依存ネットワーキング通信方法及び装置
WO2021174536A1 (zh) 一种通信方法及相关装置
WO2019196847A1 (zh) 通信方法及装置
EP3577952B1 (en) Method and system for selection of an access and mobility management function in an access network environment
US12004264B2 (en) Session management method, device, and system
WO2020073903A1 (zh) 时延敏感网络通信方法及其装置
WO2023087793A1 (zh) 音频业务处理方法、装置、电子设备及存储介质
US20220264675A1 (en) System and method for processing data
WO2020125573A1 (zh) 通信方法、装置、终端、网络设备及存储介质
WO2018233451A1 (zh) 通信方法、装置和系统
WO2020147081A1 (zh) 一种数据传输方法、相关设备及计算机存储介质
CN112866970B (zh) 一种通信连接方法、装置,电子设备及无线传输系统
WO2021036834A1 (zh) 资源指示方法及装置
US8855693B2 (en) Method and apparatus for controlling wireless devices
US10064097B2 (en) Interface shaping for virtual interfaces
US11974363B2 (en) Communication method, communication apparatus, and terminal device
WO2020029747A1 (zh) 一种无线资源控制rrc连接建立方法及相关设备
JP2023523359A (ja) 通信方法及び機器
WO2023279359A1 (zh) 通信方法和装置
WO2021195935A1 (zh) 资源配置方法、通信方法及装置
WO2022062857A1 (zh) 资源请求方法、资源配置方法及相关产品
WO2021174533A1 (zh) 通信方法、装置、设备及计算机可读存储介质
WO2021189231A1 (zh) 通信方法、装置及系统、计算机存储介质
US20230014413A1 (en) Access control method and apparatus, and communication system
WO2022227587A1 (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: 20922810

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2020922810

Country of ref document: EP

Effective date: 20220905

NENP Non-entry into the national phase

Ref country code: DE