CN113519176B - Communication method, communication device and terminal - Google Patents

Communication method, communication device and terminal Download PDF

Info

Publication number
CN113519176B
CN113519176B CN202180002363.7A CN202180002363A CN113519176B CN 113519176 B CN113519176 B CN 113519176B CN 202180002363 A CN202180002363 A CN 202180002363A CN 113519176 B CN113519176 B CN 113519176B
Authority
CN
China
Prior art keywords
terminal
service
message
information
connection
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN202180002363.7A
Other languages
Chinese (zh)
Other versions
CN113519176A (en
Inventor
刘航
杨常青
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN113519176A publication Critical patent/CN113519176A/en
Application granted granted Critical
Publication of CN113519176B publication Critical patent/CN113519176B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/16Central resource management; Negotiation of resources or communication parameters, e.g. negotiating bandwidth or QoS [Quality of Service]
    • H04W28/24Negotiating SLA [Service Level Agreement]; Negotiating QoS [Quality of Service]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/20Manipulation of established connections
    • H04W76/23Manipulation of direct-mode connections

Landscapes

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

Abstract

The embodiment of the application provides a communication method, a communication device and a terminal, relates to communication technology, and can be applied to the field of wireless communication, in particular to the field of short-distance wireless communication. The method comprises the steps of sending a first message, wherein the first message comprises identity information of a first terminal, identity information of a second terminal and information of a first service, and the information of the first service is used for indicating the first service; receiving a second message, wherein the second message is used for indicating the first terminal to establish connection with the second terminal; and executing connection establishment with the second terminal for processing the first service. Further, the communication method may be applied to the first terminal. According to the embodiment of the application, the connection relation between the terminals can be established in a self-adaptive mode, the service quality is improved, and the user experience is improved.

Description

Communication method, communication device and terminal
Technical Field
The present application relates to the field of communications technologies, and in particular, to a communication method, a communication apparatus, and a terminal.
Background
With the development of intelligent terminals, the mutual discovery and connection among the terminals greatly enrich the lives of people. Taking an intelligent automobile as an example, when a user walks to the automobile, the intelligent automobile can automatically unlock the automobile door. Under the house environment, equipment such as intelligence lock, intelligent stereo set, wisdom large-size screen let the family life more intelligent, comfortable. While with wearable devices, the user can listen to music, record movements, learn about body indices, etc. In a word, the communication between the terminals provides great convenience for the life of people.
The more terminals that are available, the more and more challenges exist in managing and connecting multiple devices. For example, a terminal in occupied use often only provides service to another terminal or a user at the same time. For example, the wireless headset can only be connected with one terminal (for example, a tablet computer), so that services such as music playing and phone answering can be provided for the terminal connected with the wireless headset.
In this case, when another terminal (for example, a mobile phone) has a request for using the wireless headset, the user needs to manually disconnect the wireless headset from the tablet computer and then perform bluetooth connection between the wireless headset and the mobile phone, which complicates the operation steps and deteriorates the user experience.
Disclosure of Invention
The embodiment of the application discloses a communication method, a communication device and a terminal.
In a first aspect, an embodiment of the present application discloses a communication method, where the method includes:
sending a first message, wherein the first message comprises identity information of a first terminal, identity information of a second terminal and information of a first service, and the information of the first service is used for indicating the first service;
receiving a second message, wherein the second message is used for indicating the first terminal to establish connection with the second terminal;
performing connection establishment with the second terminal for processing of the first service.
Further, the communication method may be applied to the first terminal.
In the embodiment of the application, when the first terminal requests to be connected with the second terminal to process the first service, the other devices can actively indicate the first terminal to be connected with the second terminal, so that the requirement that the first terminal uses the second terminal is met. Therefore, the connection relation between the terminals can be established in a self-adaptive mode, the service quality is improved, and the use experience of a user is improved.
With reference to the first aspect, in a possible implementation manner of the first aspect, the receiving a second message includes: a second message is received from the third terminal.
The above illustrates that the second message may come from the third terminal. Optionally, the third terminal is originally in a connected state with the second terminal, and when or after the first terminal generates the first service (or generates a processing requirement of the first service), the third terminal may instruct the first terminal to establish a connection with the second terminal, and the third terminal disconnects the connection with the second terminal, so that the first terminal may process the first service through the second terminal. According to the method, the second terminal and the third terminal do not need to be disconnected manually by a user, and the first terminal is connected with the second terminal, so that the operation process is reduced, and the user experience is improved.
Alternatively, the third terminal may be a terminal capable of adjusting a connection relationship between a plurality of terminals, and may indicate an available terminal to the first terminal, so that the first terminal processes the service through the available terminal. When the first terminal needs to process the first service, the second terminal may be in an idle state or in a connected terminal. The third terminal may instruct the first terminal to establish a connection with the second terminal, thereby causing the first terminal to establish a connection with the second terminal.
With reference to the first aspect, in yet another possible implementation manner of the first aspect, the receiving a second message includes:
a second message is received from the second terminal.
The above illustrates that the second message may come from the second terminal. The second terminal may actively feed back a second message to the first terminal to indicate that the first terminal is connected to the second terminal, so that the first terminal may process the first service through the second terminal. Optionally, before the second terminal feeds back the second message, the second terminal may be in a connection state with the third terminal, and at this time, by the above method, the user does not need to manually disconnect the second terminal from the third terminal, and then connect the first terminal to the second terminal, thereby reducing an operation process and improving user experience.
Alternatively, the second terminal may be in an idle state before the second terminal feeds back the second message. For example, taking the first terminal as a mobile phone and the second terminal as an earphone as an example, consider a possible scenario: if the mobile phone and the earphone are in a connectable range but not connected, and the user of the mobile phone mistakenly thinks that the user has connected the earphone, the user may play audio and video, which may cause the volume to be played or leak private voice content, and the user experience is poor. By the method, when the mobile phone generates the audio and video playing service, the first message can be actively sent, and the earphone can actively indicate the mobile phone to establish connection with the mobile phone, so that the audio and video service is processed through the earphone, and the use experience of a user is improved.
With reference to the first aspect, in yet another possible implementation manner of the first aspect, the second message includes connection configuration information between the third terminal and the second terminal.
With reference to the first aspect, in yet another possible implementation manner of the first aspect, the performing connection establishment with the second terminal includes:
and sending a connection reconfiguration message to the second terminal based on the connection configuration information, wherein the connection reconfiguration message is used for requesting to establish connection with the second terminal.
The connection configuration information is configuration information used when the third terminal and the second terminal are in a connection state. Such as one or more of a CID communicated between the third terminal and the second terminal, indication information of time-frequency resources, a Medium Access Control (MAC) Identification (ID), a physical layer ID, and so forth.
Therefore, when the first terminal establishes the connection with the second terminal, the connection can be established through the connection configuration information without re-determining the configuration information, so that the efficiency of establishing the connection between the first terminal and the second terminal is improved, and the user experience is improved.
For example, the first terminal sends the connection reconfiguration message to the second terminal through the CID, so that the second terminal and the first terminal can communicate using the CID without re-determining the CID.
For another example, the first terminal sends the connection reconfiguration message to the second terminal through the time-frequency resource, so that the second terminal and the first terminal can communicate using the time-frequency resource without re-determining the time-frequency resource.
Optionally, the connection reconfiguration message may be used to reconfigure the connection relationship between the second terminal and the first terminal, so that the second terminal is connected to the first terminal.
With reference to the first aspect, in a possible implementation manner, the connection configuration information includes at least one of a physical layer identifier ID, a medium access control MAC layer ID, a channel number CID, and indication information of the first time-frequency resource.
With reference to the first aspect, in a possible implementation manner, the connection reconfiguration message further includes at least one of identity information of the first terminal, identity information of the third terminal, and identity information of the second terminal.
With reference to the first aspect, in one possible implementation, the CID is a CID of communication between the third terminal and the second terminal.
With reference to the first aspect, in a possible implementation manner, when the third terminal and the second terminal are in a connected state, the service processed by the second terminal is used by the third terminal as the second service of the third terminal, and a priority of the second service is lower than or equal to a priority of the first service.
It can be seen that the service with higher priority (or the service of the first terminal under the condition of the same priority) can preferentially use the third terminal, thereby satisfying the requirement of the user for processing the service with higher priority and improving the experience of the user.
With reference to the first aspect, in a possible implementation manner, before the sending the first message, the method further includes:
and receiving a third message from the second terminal, wherein the third message comprises the identity information of the third terminal, the identity information of the second terminal and the information of the second service currently processed.
It can be seen that the second terminal may report the information of the currently processed service and the information of the currently connected second terminal to the first terminal, so that the first terminal may determine whether to use the second terminal to process the first service according to the connection condition of the second terminal and/or the current service processing condition of the second terminal.
With reference to the first aspect, in a possible implementation manner, the sending a first message includes:
and sending the first message to the third terminal.
It can be seen that the first message sent by the first terminal may be a unicast message sent to the third terminal.
With reference to the first aspect, in a possible implementation manner, the information of the first service includes at least one of the following information: the first service priority, an application layer ID of the first service, a type of the first service, a quality of service (QoS) requirement of the first service, and a QoS Class Identifier (QCI) index of the first service.
With reference to the first aspect, in a possible implementation manner, the second message includes information of a second service, where the information of the second service is used to indicate the second service, and the method further includes:
and determining that the priority of the second service is lower than or equal to the priority of the first service according to the information of the second service and the information of the first service.
It can be seen that, after determining that the priority of the first service is higher than the priority of the second task currently processed by the second terminal, the first terminal requests to use the third terminal to process the first service, so that a service with a higher priority (or a service of the first terminal under the condition of the same priority) can preferentially use the third terminal, thereby meeting the requirement of a user on processing the service with the higher priority and improving the experience of the user.
With reference to the first aspect, in a possible implementation manner, before the establishing the connection with the second terminal, the method further includes:
and receiving first indication information from a user, wherein the first indication information is used for indicating to confirm the connection of the second terminal.
Further, the first confirmation instruction information may be instruction information obtained according to a confirmation operation by the user.
With reference to the first aspect, in a possible implementation manner, before the receiving the first indication information from the user, the method further includes:
and outputting first reminding information, wherein the first reminding information is used for reminding whether to connect the second terminal or not.
It can be seen that the first indication may be a confirmation of the output reminder information. For example, the first terminal may output first prompting information to prompt whether to connect to the second terminal, and initiate a connection request to the second terminal after receiving a confirmation operation of the user and obtaining the first indication information. The user can select whether to connect the second terminal according to the self requirement, and the user experience is improved.
With reference to the first aspect, in a possible implementation manner, before the first terminal sends the first message, the first terminal establishes a connection with the second terminal, and the connection is released.
It can be seen that the first terminal may have been connected to the second terminal before, and may retain the identity information of the second terminal, so that when the first service exists, the second terminal is requested to be used for processing.
Alternatively, under the condition that the first terminal is not connected with the second terminal, the first terminal may also obtain the identity information of the second terminal through a device discovery mode, a pre-configuration mode, a third-party device reporting mode, and the like.
With reference to the first aspect, in a possible implementation manner, the second message further includes a security parameter, where the security parameter is used to authenticate an identity of the third terminal.
The security parameter may be a domain network connection code of a local area network to which the third terminal is connected, user identity information of the third terminal, a parameter obtained by pre-negotiation between the first terminal and the second terminal, and the like. The identity of the third terminal can be authenticated by the first terminal through the security parameter capable of authenticating the identity of the third terminal, so that connection is established with the third terminal according to the indication of the second message, the first terminal is prevented from being attacked, and the data security of the first terminal is improved.
In a possible design, when the third terminal and the second terminal are in a connected state, if the third terminal and the first terminal are in the same local area network, the first terminal may request to establish a connection with the second terminal. Taking a home domain as an example, by the method, the connection relationship of the devices in the home domain can be adjusted, for example, automatic switching is performed based on the service priority, so that the service quality is improved, and the user experience is improved.
In yet another possible design, in the case that the third terminal is in a connected state with the second terminal, if the third terminal and the first terminal belong to the same user (or belong to related users), the first terminal may request to establish a connection with the second terminal. For example, multiple users may exist in the same space, and the connection relationship of devices belonging to the same user or related users is adjusted, so that the service quality is improved, and the user experience is improved. In another possible design, when the third terminal and the second terminal are in a connected state, if the first terminal can authenticate the identity of the third terminal through the security parameters obtained through pre-negotiation, the first terminal may request to establish a connection with the second terminal.
In a second aspect, an embodiment of the present application discloses a communication method, including:
receiving a first message from a first terminal, wherein the first message comprises identity information of the first terminal, identity information of a second terminal and information of a first service, and the information of the first service is used for indicating the first service;
sending a second message to the first terminal, wherein the second message is used for indicating the first terminal to establish connection with the second terminal;
and disconnecting the second terminal.
With reference to the second aspect, in a possible implementation manner of the second aspect, the second message includes connection configuration information between a third terminal and the second terminal.
With reference to the second aspect, in a possible implementation manner of the second aspect, the second message includes connection configuration information between a third terminal and the second terminal.
With reference to the second aspect, in a possible implementation manner of the second aspect, the connection configuration information includes at least one of a physical layer identification ID, a medium access control MAC layer ID, a channel number CID, and indication information of the first time-frequency resource.
With reference to the second aspect, in a possible implementation manner of the second aspect, the information of the first service includes at least one of the following information: the first service priority, an application layer ID of the first service, a type of the first service, a quality of service (QoS) requirement of the first service, and a QoS Class Identifier (QCI) index of the first service.
With reference to the second aspect, in a possible implementation manner of the second aspect, before the sending the second message to the first terminal, the method further includes:
and determining that the priority of the first service is higher than or equal to the priority of a second service according to the information of the first service, wherein the second service is a service processed between the third terminal and the second terminal.
With reference to the second aspect, in a possible implementation manner of the second aspect, the second message further includes information of the second service, where the information of the second service is used to indicate the second service, and the second service is a service processed between a third terminal and the second terminal.
With reference to the second aspect, in a possible implementation manner of the second aspect, the second message further includes a security parameter, and the security parameter is used to authenticate an identity of the third terminal.
In a third aspect, an embodiment of the present application discloses a communication method, including
Establishing a connection with a third terminal based on the configuration information;
receiving a connection reconfiguration message from the first terminal based on the configuration information;
and establishing connection with the first terminal to process the first service.
In a fourth aspect, an embodiment of the present application discloses a communication method, including:
receiving a first message from a first terminal, wherein the first message comprises identity information of the first terminal, identity information of a second terminal and information of a first service, and the information of the first service is used for indicating the first service;
sending a second message to the first terminal, wherein the second message is used for indicating the first terminal to establish connection with the second terminal;
disconnecting the connection with the third terminal;
and establishing connection with the first terminal.
With reference to the fourth aspect, in a possible implementation manner of the fourth aspect, the information of the first service includes at least one of the following information: the first service priority, an application layer ID of the first service, a type of the first service, a quality of service (QoS) requirement of the first service, and a QoS Class Identifier (QCI) index of the first service.
With reference to the fourth aspect, in a possible implementation manner of the fourth aspect, before the sending the second message to the first terminal, the method further includes:
and determining that the priority of the first service is higher than or equal to the priority of a second service according to the information of the first service, wherein the second service is a service processed between the third terminal and the second terminal.
With reference to the fourth aspect, in a possible implementation manner of the fourth aspect, the second message further includes information of a second service, where the information of the second service is used to indicate the second service, and the second service is a service processed between the third terminal and the second terminal.
With reference to the fourth aspect, in a possible implementation manner of the fourth aspect, the second message further includes a security parameter, where the security parameter is used to authenticate an identity of the third terminal.
In a fifth aspect, an embodiment of the present application discloses a communication apparatus, which includes means for implementing the method described in the first aspect or any one of the possible implementation manners of the first aspect.
In one possible implementation manner of the fifth aspect, the communication device includes a sending unit, a receiving unit and a processing unit.
In a sixth aspect, the present application discloses a communication device, which includes means for implementing the method described in the second aspect or any one of the possible implementations of the second aspect.
In one possible implementation manner of the sixth aspect, the communication device includes a sending unit, a receiving unit and a processing unit.
In a seventh aspect, an embodiment of the present application discloses a communication apparatus including means for implementing the method described in the third aspect or any one of the possible implementation manners of the third aspect.
In a possible implementation manner of the seventh aspect, the communication device includes a sending unit, a receiving unit, and a processing unit.
In an eighth aspect, an embodiment of the present application discloses a communication apparatus including means for implementing the method described in the fourth aspect or any one of the possible implementation manners of the fourth aspect.
In one possible implementation manner of the eighth aspect, the communication device includes a sending unit, a receiving unit and a processing unit.
In a ninth aspect, embodiments of the present application disclose a communication apparatus, which includes at least one processor and a communication interface, where the at least one processor is configured to invoke a computer program stored in at least one memory, so as to enable the apparatus to implement the method described in the first aspect or any one of the possible implementation manners of the first aspect.
In performing the above method, the process of sending a message (e.g., a first message) and/or receiving a message (e.g., a second message) and the like in the above method may be understood as a process of outputting a message by a processor and/or a process of receiving an input message by a processor. When outputting a message, the processor may output the message to the transceiver (or sending module) for transmission by the transceiver. The message may also need additional processing after being output by the processor before reaching the transceiver. Similarly, when the processor receives an incoming message, the transceiver (or receiving module) receives the message and inputs it to the processor. Further, after the message is received by the transceiver, the message may need to be processed further before being input to the processor.
Based on the above principle, for example, the sending of a message as mentioned in the foregoing method may be understood as a processor output message. As another example, receiving a message may be understood as a message that the processor receives input.
The operations of transmitting, sending and receiving, etc. involved in the processor may be understood more generally as processor output and receiving, input, etc. operations than those performed directly by the rf circuitry and antenna, unless specifically indicated otherwise, or if not contradicted by their actual role or inherent logic in the associated description.
In implementation, the processor may be a processor dedicated to performing the methods, or may be a processor, such as a general-purpose processor, that executes computer instructions in a memory to perform the methods. The Memory may be a non-transitory (non-transitory) Memory, such as a Read Only Memory (ROM), which may be integrated on the same chip as the processor or may be separately disposed on different chips.
In one possible embodiment, the at least one memory is located outside the communication device.
In yet another possible embodiment, the at least one memory is located within the communication device.
In yet another possible implementation, a portion of the at least one memory is located within the communication device, and another portion of the memory is located outside the communication device.
In this application, the processor and the memory may also be integrated in one device, i.e. the processor and the memory may also be integrated together.
In a tenth aspect, the present application discloses a communication device, which includes at least one processor and a communication interface, where the at least one processor is configured to invoke a computer program stored in at least one memory, so as to enable the device to implement the method described in the second aspect or any one of the possible implementation manners of the second aspect.
It is understood that the description of the processor in other aspects of the present application may refer to the description of the ninth aspect, and will not be described in detail here.
In an eleventh aspect, embodiments of the present application disclose a communication apparatus, where the communication apparatus includes at least one processor and a communication interface, and the at least one processor is configured to invoke a computer program stored in at least one memory, so as to enable the apparatus to implement the method described in the third aspect or any one of the possible implementation manners of the third aspect.
In a twelfth aspect, the present application discloses a communication apparatus, which includes at least one processor and a communication interface, where the at least one processor is configured to invoke a computer program stored in at least one memory, so as to enable the apparatus to implement the method described in any one of the possible implementation manners of the fourth aspect or the fourth aspect.
In a thirteenth aspect, an embodiment of the present application further provides a chip system, where the chip system includes at least one processor and a communication interface, where the communication interface is configured to send and/or receive data, and the at least one processor is configured to invoke a computer program stored in at least one memory, so that the chip system implements the method described in the first aspect or any one of the possible implementation manners of the first aspect; or implementing the method described in the second aspect or any one of its possible implementations; or implementing the method described in the third aspect or any one of its possible implementations; or implementing the method described in the fourth aspect or any one of its possible implementations.
In a fourteenth aspect, the present application further provides a computer-readable storage medium, where a computer program is stored, and when the computer program runs on one or more processors, the method described in the first aspect or any one of the possible implementation manners of the first aspect is implemented; or implementing the method described in the second aspect or any one of its possible implementations; or implementing the method described in the third aspect or any one of its possible implementations; or implementing the method described in the fourth aspect or any one of its possible implementations.
In a fifteenth aspect, the present application further provides a computer program product, which when run on one or more processors implements the method described in the first aspect or any one of the possible implementations of the first aspect; or implementing the method described in the second aspect or any one of its possible implementations; or implementing the method described in the third aspect or any one of its possible implementations; or to implement the method as described in the fourth aspect or any one of its possible implementations.
In a sixteenth aspect, embodiments of the present application further provide a terminal, where the terminal includes the communication apparatus as described in any one of the fifth to twelfth aspects.
In a seventeenth aspect, embodiments of the present application further provide a communication system, where the communication system includes a first terminal, a second terminal, and a third terminal, where the first terminal includes the communication apparatus described in the fifth aspect, the third terminal includes the communication apparatus described in the fourth aspect, and the second terminal includes the communication apparatus described in the seventh aspect.
In an eighteenth aspect, embodiments of the present application further provide a communication system, which includes a first terminal, a second terminal and a third terminal, where the first terminal includes the communication device described in the fifth aspect, and the second terminal includes the communication device described in the eighth aspect. It should be understood that the beneficial effects of the second to eighteenth aspects of the present application may refer to the relevant beneficial effects of the first aspect, and are not described in detail.
Drawings
The drawings used in the embodiments of the present application are described below.
Fig. 1 is a schematic architecture diagram of a communication system according to an embodiment of the present application;
fig. 2 is a schematic view of an application scenario of a communication method according to an embodiment of the present application;
fig. 3 is a flowchart illustrating a communication method according to an embodiment of the present application;
FIG. 4 is a schematic view of an interface provided by an embodiment of the present application;
FIG. 5 is a schematic view of yet another interface provided by an embodiment of the present application;
fig. 6 is a flowchart illustrating another communication method provided in an embodiment of the present application;
fig. 7 is a flowchart illustrating a further communication method according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a communication device according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of another communication device according to an embodiment of the present application.
Detailed Description
The embodiments of the present application will be described below with reference to the drawings. It is noted that the words "exemplary" or "such as" are used herein to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "such as" is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
In the present application, the term "at least one" means one or more, and the term "a plurality" means two or more. "at least one of the following" or similar expressions refer to any combination of these items, including any combination of the singular or plural items. For example, at least one (one) of a, b, or c, may represent: a. b, c, (a and b), (a and c), (b and c), or (a and b and c), wherein a, b and c can be single or multiple. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a alone, A and B together, and B alone, wherein A, B may be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
And, unless stated to the contrary, the terms "first" and "second", etc. in the description, claims, and drawings of the present application are used only for distinguishing different objects and are not used for defining the order, timing, priority, or importance of a plurality of objects. For example, the first message and the second message are only used for distinguishing different split messages, and do not indicate the difference of message structures, orders, importance levels, and the like of the two messages.
For ease of understanding, the following description is given by way of example of some concepts related to embodiments of the present application. As follows:
1. business
A transaction refers to a transaction that needs to be processed or a series of activities that are performed in order to accomplish a certain goal. In some cases, a service may also be understood as an application or service.
The services may include a variety of types and may include, for example, one or more of a telephone service, an audio service, a video service, a gaming service, a web browsing service, a calendar note and reminder, and so forth.
The call service may include voice data played in a scenario such as a telephone, a voice message, an audio call, a video call, a game, a voice assistant, or voice data collected from a user and sent to an opposite end.
The audio service includes various types, and may include, for example, a media service, a part of the aforementioned call service, and the like. The media services may include audio services such as playing music, recording, sound in a video file, background music in a game, and incoming call alert tone for a user.
2. Information of a service
The information of a service may be used to indicate a certain service or may be used to indicate a certain attribute of a certain service. Optionally, the information of the service includes any one or more of the following items:
A. identification of service (identification)
The service identifier may be a service name, a service number, or a service identifier generated from the service name (and/or service number). For example, please refer to table 1, where table 1 is a possible service description information provided in the embodiment of the present application, where names of the services may be "voice playing", "telephone answering", video playing service, audio playing service, screen launching service, and the like.
Table 1 service name corresponding to number of service
Numbering of services Name of service Priority level
0001 Voice playing 2
0002 Telephone answering 1
0003 Video playback 3
0004 Audio playing 4
0005 Screen dropping 5
B. Priority of service
The priority of the service may be pre-configured or pre-defined, e.g. specified by a protocol. The priority of the service may also be set via a management interface, e.g. a third party device via an air interface. The priority of the service may also be determined by user input of indication information.
The priority of the service may indicate the first service. For example, referring to table 1, a priority corresponds to a service, and a service with a priority of 1 indicates a corresponding call answering service. Of course, a priority may correspond to multiple services, and the application is also applicable to such a case.
In one possible design, the service priority may be an application layer priority. Illustratively, in the application layer, the priority of the voice call service is 1, the priority of the conventional audio transmission is 2, and the priority of the voice call service is higher than that of the conventional audio transmission by a predefined rule that the smaller the number of level indications is (for example only, the rule that the higher the number of level indications is, the higher the priority is also applicable).
In yet another possible design, the traffic priority may also be an access stratum priority. The related level settings and rules can be referred to the above, and are not described in detail here.
C. Type of service
In one possible design, the type of service may be indicated by an application layer identification (AID). For example, AID1 is used to indicate telephone traffic; AID2 is used to indicate legacy audio traffic. Different types may indicate different priorities.
D. Quality of Service (QoS) requirements of a first Service
QoS may be used to evaluate the ability of a service provider to meet customer service requirements. By configuring QoS, the network flow of an enterprise is regulated, network congestion is avoided and managed, the loss rate of messages is reduced, and meanwhile, a dedicated bandwidth can be provided for enterprise users or differential services can be provided for different services (voice, video, data and the like).
In some possible cases, the Qos requirement may include at least one of Priority of traffic, reliability of traffic transmission (reliability), latency requirement of traffic, rate requirement of traffic, and the like.
Illustratively, the QoS requirements may indicate the priority of the traffic. For example, if the QoS requirement of a certain service indicates that it is a Best Effort service, or a rate guarantee type service, it has a lower priority than the services required by other QoS.
E. QoS Class Identifier (QCI) index (index) for first service
The priority of the traffic may be indicated by the QCI index. The priority indicated by the QCI index may be on a terminal device that is preconfigured or stored, or may be obtained through other manners, or the priority corresponding to the QCI index is determined through a calculation method. For example: the QCI index of the voice call service is 15, the QCI index of the traditional audio transmission is 5, wherein the priority of the service with the QCI index of 15 is higher than that of the service with the QCI index of 5.
3. First terminal, third terminal
In one possible implementation, the first terminal shown in the present application may be a handheld device, a vehicle-mounted device, a mobile phone (mobile phone), a tablet computer (pad), a computer with a wireless transceiving function (such as a laptop, a palmtop, etc.), a Mobile Internet Device (MID), a Virtual Reality (VR) device, an Augmented Reality (AR) device, a terminal in industrial control (industrial control), a wireless terminal in unmanned driving (self driving), a terminal in remote medical (remote medical), a terminal in smart grid (smart grid), a terminal in transportation safety (transportation safety), a terminal in smart city (smart city), a terminal in smart home (smart home), a terminal in 5G network, or a Public Land Mobile Network (PLMN) evolution device in the future, and the like.
In addition, the terminal device may also be a terminal device in an internet of things (IoT) system. The IoT is an important component of future information technology development, and is mainly technically characterized in that articles are connected with a network through a communication technology, so that an intelligent network with man-machine interconnection and object interconnection is realized. Alternatively, the IoT technology may achieve massive connectivity, deep coverage, and terminal power saving through, for example, narrowband (NB) technology.
In another possible implementation manner, the first terminal shown in this application may include an Access Point (AP) and the like.
It is understood that the present application is not limited to the specific form of the first terminal. However, any device that can handle the relevant service through the second terminal when there is a service requirement falls within the protection scope of the first terminal.
It will be appreciated that reference may be made to the above description of the first terminal for a specific form of the third terminal and will not be described in detail here.
4. Second terminal
The second terminal shown in the present application may be used to handle related services with the first terminal, the third terminal or other terminals. The second terminal may be one or more of a wearable device (e.g., a wireless headset, a watch, a bracelet, smart glasses, etc.), a stereo, a display screen, an in-vehicle device, an Augmented Reality (AR)/Virtual Reality (VR) device, etc.
In one possible implementation, the second terminal is a wireless headset. The wireless headset may be of various types, such as ear-bud, in-ear, head-mounted, earmuff, or in-ear wireless headsets. The wireless headset may include first and second portions that are worn on the user's left and right ears, respectively. The first and second parts may be connected by a connecting wire, such as a neckband wireless headset; the first part and the second part may also be two parts separate from each other, for example a True Wireless Stereo (TWS) headset. Illustratively, when the wireless headset is a TWS headset, the first portion and the second portion may be for wearing on the user's left and right ears, respectively.
5. Broadcast, unicast, multicast
The unicast (unicast) usually has only one sender and one receiver, and specifically, the destination address of the data unit sent in the unicast is an address of an interface of the receiver, for example, the first node sends Access information to the second node through unicast, where the data unit of the Access information includes an Internet Protocol (IP) address of the second node and/or a Media Access Control (MAC) address of the second node.
The multicast (multicast) mode is generally a sender and a group of designated receivers, and is specifically embodied as that the destination address of a data unit sent in multicast is a multicast address (the multicast address may identify the address of a group of interfaces, and in some scenarios, is a reserved D-type address), and the data unit sent to the multicast address is sent to the group of interfaces identified by the address.
Broadcast (Broadcast) is typically a sender and all receivers within the subnet, and Broadcast Address (Broadcast Address) is an Address dedicated to sending to all stations in the network at the same time. Specifically, the destination address of the data unit sent during broadcasting is a broadcast address, for example, in a network using a Transmission Control Protocol/Internet Protocol (TCP/IP) Protocol, an IP address with a host ID of all 1 is a broadcast address, and the data unit sent to the broadcast address is sent to all nodes related to the host ID segment. For example, for a 10.1.1.0 (255.255.255.0) segment whose broadcast address is 10.1.1.255 (255 is 11111111 in 2), when a data unit with a destination address of 10.1.1.255 is sent out, it will be distributed to all nodes on the segment.
The above description of the related concepts can be applied to the following embodiments.
According to the communication method and the communication device, the connection relation between the terminals can be established in a self-adaptive mode, manual disconnection and connection of a user are not needed, the operation flow is reduced, the service quality is improved, and the user experience is improved.
The method provided by the application can be applied to the fields of intelligent driving, intelligent home, smart cities and the like. The network form can be data center network, operator network, campus networking and the like. The operator network may comprise one operator network, or a plurality of different operator networks, etc. In other words, the methods provided herein may be applied to any form of network.
Meanwhile, the following description takes a communication device as a terminal device as an example, but the method provided by the present application may also be applied to other network devices. The network device may be any form of computer, server, switch (or referred to as a switch device, a switch chip, etc.), router, network card, etc., and the present application is not limited to a specific form of the network device.
Illustratively, the method provided by the present application can be applied to a communication system as shown in fig. 1, which includes a first terminal 101 and a second terminal 102. It should be understood that one or more other devices may also be included in the communication system, such as: a third terminal 103 may also be included.
The first terminal 101, the second terminal 102 and the third terminal are electronic devices having data processing capability and data transceiving capability, or devices (e.g., chips or integrated circuits) in the electronic devices.
The first message may be sent when or after the first terminal 101 generates (or generates processing requirements for) the first service. When the first message is sent, the first message may be sent in a broadcast form, a multicast form or a unicast form, or may also be sent in other forms.
In one implementation, the second terminal 102 may receive the first message and send the second message to the first terminal 101. The second message is used to instruct the first terminal 101 to connect to the second terminal 102, so that the first terminal 101 processes the first service through the second terminal 102.
Optionally, the second terminal 102 may be in a connected state with the third terminal 103, and after receiving the first message, may disconnect from the third terminal 103, thereby establishing a connection with the first terminal 101.
In yet another implementation, the third terminal 103 is in a connected state with the second terminal 102, and the third terminal 103 may receive the first message and send the second message to the first terminal 101. The second message is used to instruct the first terminal 101 to connect to the second terminal 102, so that the first terminal 101 processes the first service through the second terminal 102. Optionally, after receiving the first message, the third terminal 103 may disconnect from the second terminal 102.
In the process, the first terminal 101 is connected with the second terminal 102 without manual disconnection of the user, so that the operation process is reduced. Referring to fig. 2, fig. 2 is a schematic view of an application scenario of a communication method according to an embodiment of the present application, and an example is described in which the first terminal 101 is a mobile phone 201, the second terminal 102 is an earphone 202, and the third terminal 103 is a tablet 203. The headset 202 may be connected to the tablet 203 via wireless communication technology to play the audio of the tablet. For example, a user plays a game through a tablet, and the headphones may play audio in the game. At this time, if the mobile phone 201 receives an incoming call and the user needs to receive a voice call, the mobile phone 201 may send a first message, and the earphone 202 or the tablet 203 may send a second message to the mobile phone, where the second message is used to instruct the mobile phone 201 to connect to the earphone 202. And the headset 202 may be disconnected from the tablet 203 or the tablet 203 may be disconnected from the headset 202. Therefore, the mobile phone 201 can establish a connection relationship with the earphone 202, and a user can answer a voice call through the earphone 202 without additional manual operation, thereby reducing the flow, improving the service instruction of the terminal, and improving the user experience.
The communication method provided by the present application will be described in detail below.
Referring to fig. 3, fig. 3 is a flowchart illustrating a communication method according to an embodiment of the present disclosure. Alternatively, the method may be implemented based on the architecture shown in fig. 1. The above method includes but is not limited to the following steps:
step S301: the first terminal sends a first message. The first message includes identity information of the first terminal, identity information of the second terminal, and information of the first service.
Specifically, the sending mode of the first message may be unicast, multicast or broadcast. For example, when the first message is transmitted by broadcasting, the first message may be received by all nodes in one subnet or one area. When the first message is sent by multicast, other nodes in a communication group receive. When the first message is sent via unicast (e.g., to the second terminal or to a third terminal), the first message may be received by a recipient designated by the first terminal.
The identity information of the first terminal may be one or more of a MAC address, an IP address, an ID (which may be a fixed ID or a temporary ID), a number, a device name, and the like of the first terminal, or information for identifying an identity generated according to the one or more information. The identity information of the second terminal may be one or more of a MAC address, an IP address, an ID (which may be a fixed ID or a temporary ID), a number, a device name, and the like of the second terminal, or information for identifying an identity generated according to the one or more information.
The first service is a service supported by the first terminal. For example, the first terminal is a mobile phone and can support multiple services such as answering a call, video on demand, playing audio, chatting video, playing games, and the like, and the first service may belong to one or more of the multiple services supported by the first terminal.
The information of the first service is used to indicate the first service, and may be one or more of an ID, a priority, a type, a QoS requirement, a QCI index, and the like of the service, or information generated according to the one or more information to identify the first service.
Optionally, the first terminal sends the first message when or after the first terminal generates the first service (or generates a processing requirement of the first service).
In one possible design, the first terminal may receive a third message from the second terminal. Further, the third message may be used to indicate a status of the second terminal, or to indicate a service currently processed by the second terminal (referred to as a second service for convenience of description).
Optionally, the third message may include at least one of identity information of the second terminal, information of the second service, and identity information of the third terminal. The present application illustrates several possible scenarios:
the first condition is as follows: the third message contains identity information of the second terminal. The first terminal may discover the second terminal according to the identity information of the second terminal, and may send a first message to the second terminal when (or after) the first service is generated.
And a second condition: the third message contains information of the second service, which is used for indicating the currently processed second service. The first terminal determines that the priority of the first service is higher than (or equal to) the priority of the second service according to the information of the second service, so as to send the first message to the second terminal, and the second terminal can suspend or terminate processing of the second service to connect with the first terminal, so as to process the first service related to the first terminal.
Optionally, the second service may be a service processed between the third terminal and the second terminal. After receiving the first message, the second terminal may disconnect from the third terminal, thereby suspending, or terminating the processing of the second service to connect to the first terminal.
Optionally, the first terminal may store a corresponding relationship set between the service information and the priority of the service, so that the priority of the service may be determined according to the service information. Further, the set of correspondences may be predefined or configured.
Case three: the third message includes identity information of the third terminal. The first terminal can determine the terminal currently in a connection state with the second terminal according to the identity information of the third terminal, so that the first message can be sent to the third terminal. Correspondingly, the third terminal can acquire the current use requirement of the first terminal on the second terminal according to the first message.
In one possible design, the first terminal is connected to the second terminal and the connection is broken. For example, the first terminal has been connected (or paired successfully) with the second terminal, and the identity information of the connected (or paired successfully) terminal is stored in the first terminal, so that the identity information of the second terminal can be carried in the first message.
For example, as shown in fig. 4, the terminal 401 may display terminals that have been connected (or successfully paired). Referring to the area 402, the terminal 401 and the second terminal have been connected, and the terminal 401 may display the identity information (here, the name is taken as an example) of the second terminal. Further, the user may search for available devices for connection (or pairing) or delete a terminal that has been connected.
Optionally, the first message may also carry indication information of a time-frequency resource allocated by the first terminal to the second terminal.
Step S302: the first terminal receives the second message.
Specifically, the second message may be from the second terminal, or may be from a terminal (third terminal) to which the second terminal is originally connected, or may also be a control terminal that controls a connection relationship of a plurality of terminals. Illustratively, the present application exemplifies several possible scenarios with respect to the source of the second message:
the first method comprises the following steps: the second message is from the second terminal. The second terminal obtains a usage demand of the first terminal to the second terminal (for example, receives a first message from the first terminal or receives messages of other terminals), and the second terminal may send a second message to the first terminal to indicate that the first terminal is connected to the second terminal.
For example, the second terminal receives a first message, which includes the identity information of the second terminal. And responding to the identity information of the second terminal in the first message matched with the identity information of the second terminal, and sending a second message to the first terminal.
For another example, the second terminal receives the first message, where the first message includes the identity information of the second terminal and the information of the first service. And in response to the fact that the identity information of the second terminal in the first message is matched with the identity information of the second terminal and the first service priority is higher than or equal to the priority of the second service, sending the second message to the first terminal.
For another example, the second terminal receives the first message, and the first message includes the identity information of the second terminal and the identity information of the first terminal. And in response to the fact that the identity information of the second terminal in the first message is matched with the identity information of the second terminal, and the priority of the first terminal is higher than that of the currently connected third terminal, sending a second message to the first terminal.
Optionally, the time-frequency resource used by the second terminal to send the second message may be acquired by the second terminal itself, or may be the time-frequency resource indicated by the first message by the first terminal.
It should be understood that, in the first case, the second terminal may be in a connected state with other terminals or in an idle state before sending the second message. For example, taking the first terminal as a mobile phone and the second terminal as an earphone as an example, consider a possible scenario: if the mobile phone and the earphone are in a connectable range but not connected, and the user of the mobile phone mistakenly thinks that the user has connected the earphone, the user may play audio and video, which may cause the volume to be played or leak private voice content, and the user experience is poor. By the method, the mobile phone can send the first message when generating the audio and video playing service, the earphone can indicate the mobile phone to establish connection with the mobile phone through the second message, and the audio and video service of the mobile phone is processed through the earphone. Therefore, when the earphone is required to be matched and processed in the presence of service, the service quality provided by the mobile phone and the earphone can be improved and the use experience of a user can be improved by establishing the connection between the mobile phone and the earphone in a self-adaptive manner.
And the second method comprises the following steps: the second message is from a third terminal, the third terminal being in a connected state with the second terminal. The third terminal obtains the use requirement of the first terminal to the second terminal, and the third terminal can send a second message to the first terminal to indicate the first terminal to be connected with the second terminal.
And the third is that: the control terminal is capable of adjusting the connection relation of a plurality of terminals or scheduling the terminals for processing the service, receiving a first message from a first node, and sending a second message to the first terminal to indicate the first terminal to connect with the second terminal.
While various sources of the second message are described above, specific examples of the second message are described below. The second message is used for indicating the first terminal to establish connection with the second terminal. Wherein the second message may contain one or more of indication information, identity information of the second terminal, identity information of the first terminal, information of the second service, identity information of the third terminal, and the like. Illustratively, the present application exemplifies several possible implementations of the second message as follows:
the implementation mode is as follows: the second message contains indication information characterizing that the second terminal can be connected by the first terminal. Accordingly, the first terminal may receive the second message, thereby establishing a connection with the second terminal.
For example, the indication information may be indicated by a first field, and a value of the first field is "1" to indicate that the first terminal is connected to the second terminal. In this way, the first node may determine whether to connect the second terminal by parsing the second message. Further, when the value of the first field is "0", it indicates that the second terminal is not connected.
For another example, the indication information may indicate whether the priority of the first service is higher than or equal to the priority of the second service. And if the priority of the first service is higher than or equal to the priority of the second service, indicating the first terminal to be connected with the second node.
Optionally, when the second terminal currently processes multiple services, the second service may be a service with a highest priority among priorities of the multiple services.
The implementation mode two is as follows: the second message contains information of a second service, which indicates a second service currently processed by the second terminal. Further, the priority of the second service is lower than or equal to the priority of the first service, and the first terminal may be connected to the second terminal. Optionally, the second service may be a service processed between the third terminal and the second terminal. The information of the second service may be one or more of an ID, a priority, a type, a QoS requirement, a QCI index, and the like of the second service, or information generated according to the one or more information for identifying the second service.
Further, the first terminal may determine that the priority of the second service is lower than or equal to the priority of the first service according to the information of the first service and the information of the second service.
The implementation mode is three: the second message contains identity information of the second terminal. In a possible case, the first terminal receives the second message, and the second message includes the identity information of the second terminal, and then the first terminal requests to connect with the second terminal.
Optionally, the second message may further include a security parameter. The security parameter may be used to authenticate the identity of the sender of the second message or to authenticate the identity of the second terminal or the third terminal.
For example, taking the security parameter for authenticating the identity of the third terminal as an example, the security parameter may be a domain network connection code of a local area network to which the third terminal is connected, user identity information of the third terminal, identity information of the second terminal, a parameter obtained by pre-negotiation between the first terminal and the third terminal, and the like. The following exemplifies several possible designs:
design 1, under the condition that the third terminal and the second terminal are in a connected state, if the third terminal and the first terminal are authenticated to be in the same local area network through the domain network connection code, the first terminal may request to establish connection with the second terminal.
Design 2, under the condition that the third terminal and the second terminal are in a connected state, if the third terminal and the first terminal belong to the same user, the first terminal may request to establish a connection with the second terminal.
Design 3, under the condition that the third terminal and the second terminal are in a connected state, if the first terminal can authenticate the identity of the third terminal through the security parameters obtained by pre-negotiation, the first terminal can request to establish a connection with the second terminal.
Through the security parameters, the first terminal can authenticate the identity of the third terminal, and then the connection with the third terminal is established according to the indication of the second message, so that the first terminal is prevented from being attacked, and the data security of the first terminal is improved.
Optionally, the second message may further include connection configuration information. The connection configuration information may be configuration information used for the connection between the second terminal and the third terminal. For example, the configuration information may include one or more of a CID communicated between the third terminal and the second terminal, indication information of a time-frequency resource, a Medium Access Control (MAC) Identification (ID), a physical layer ID, and the like.
In one possible implementation, the CID may be used to indicate at least one of a logical channel, a physical channel, or the like for communication between the third terminal and the second terminal. The physical layer ID may be used to indicate a temporary ID for scheduling the second terminal when communication between the third terminal and the second terminal is performed. The time-frequency resource indication information may be used to indicate a time-frequency resource configured for the first terminal to the second terminal.
Therefore, when the first terminal establishes connection with the second terminal, the connection can be established through the connection configuration information without re-determining the configuration information, so that the efficiency of establishing connection between the first terminal and the second terminal is improved, and the user experience is improved.
It should be noted that the second message may be one or more. Illustratively, the second message may comprise message a and message B. The message a includes identity information of the first terminal and information of the second service, and the message B includes security parameters and connection configuration information.
It should be understood that this second message may also be referred to as a response message. Optionally, the second message may be a response message to the first message. In the embodiments of the present application, names of messages or information are not limited, but only exemplary descriptions and expressions of the contained contents are provided, and the names may be arbitrarily replaced.
Step S303: the first terminal performs connection establishment with the second terminal for processing of the first service.
In particular, the first terminal and the second terminal may establish a connection through a wireless communication technology. For example, the wireless communication technology may be bluetooth (BT, specifically, conventional bluetooth or bluetooth low energy), wireless Local Area Network (WLAN), wireless fidelity (Wi-Fi) network, zigbee, frequency Modulation (FM), near Field Communication (NFC), vehicle-mounted short-range communication technology, or other connection technologies.
In one possible implementation, the first terminal sends a connection establishment request (request) to the second terminal, receives a connection response message from the second terminal, and the second terminal establishes a connection. Optionally, the connection establishment request may include indication information of a time-frequency resource allocated by the first terminal to the third terminal.
Optionally, the connection establishment request may further include one or more of parameters for negotiating a communication key, and the like. Further optionally, the response message carries a parameter for negotiating a communication key, which is determined by the second terminal. And the first terminal and the second terminal negotiate to obtain a consistent communication key, so that pairing is successful and connection is established.
In yet another possible implementation, the first terminal may send a connection reconfiguration message to the second terminal based on the connection configuration information, for reconfiguring the terminal to which the second terminal is connected.
Optionally, the connection configuration information is connection configuration information used when the second terminal is connected to the third terminal.
Illustratively, the configuration information may include a CID of communication between the third terminal and the second terminal, by which the first terminal sends the connection reconfiguration message to the second terminal, so that the second terminal and the first terminal can communicate using the CID without re-determining the CID.
For another example, the configuration information may include indication information of a time-frequency resource, and the first terminal sends the connection reconfiguration message to the second terminal through the time-frequency resource, so that the second terminal and the first terminal may use the time-frequency resource for communication without re-determining the time-frequency resource.
It should be understood that the above connection procedure is only used for example, and the connection procedure between the first terminal and the second terminal may further include a plurality of stages of authentication procedures and negotiation procedures, and the application is also applicable to the connection procedure including these procedures.
Optionally, the first node may receive first indication information, where the first indication information is used to indicate that the connection to the second terminal is confirmed. Further, the first indication information may be from a user. For example, the first instruction information may be instruction information obtained by a confirmation operation of the user.
Further optionally, the first terminal may output a first alert message for alerting whether to connect to the second terminal, and the first indication information may be confirmation of the output first alert message. And after receiving the confirmation operation of the user and obtaining the first indication information, the first terminal initiates a connection request to the second terminal. Referring to fig. 5, fig. 5 is a schematic diagram of a possible interface provided in an embodiment of the present application, where after generating the first service, the terminal 501 receives a second message indicating to connect to a second terminal. The terminal 501 may output an alert message, as shown in area 502, for alerting the user to the presence of the second terminal. And receiving the indication information of the connection determined by the user, and executing the connection establishment with the second terminal.
Optionally, if the indication information that the user refuses to connect is received, the connection with the second terminal is not executed.
Optionally, the second terminal may be disconnected from the third terminal. Illustratively, the second terminal sends a connection interruption message to the third terminal for disconnecting the connection with the third terminal.
Through the method shown in fig. 3, when the first terminal requests to connect to the second terminal to process the first service, the other device may actively instruct the first terminal to establish a connection with the second terminal, so as to meet the requirement of the first terminal for using the second terminal. Therefore, the connection relation between the terminals can be established in a self-adaptive mode, the service quality is improved, and the use experience of a user is improved.
Many possible implementations are included in the above embodiment shown in fig. 3, and some of the implementations are illustrated in the following with reference to fig. 6 or fig. 7, it should be noted that related concepts or operations or logical relationships that are not explained in fig. 6 or fig. 7 may be described with reference to the corresponding descriptions in the embodiment shown in fig. 3.
The communication method provided by the embodiment of the present application will be further described below by taking the second message from the second terminal as an example. Referring to fig. 6, fig. 6 is a flowchart illustrating a possible communication method according to an embodiment of the present disclosure. Alternatively, the communication method may be implemented based on the architecture shown in fig. 1. The method shown in fig. 6 at least comprises the following steps:
step S601: the first terminal sends a first message. Accordingly, the second terminal receives the first message from the first terminal.
Wherein the first message includes at least one of identity information of the first terminal, identity information of the second terminal, and information of the first service.
The related contents can be found in the detailed description of step S301.
Step S602: the second terminal sends a second message to the first terminal. Accordingly, the first terminal receives the second message from the first terminal.
Optionally, the second message may include at least one of identity information of the second terminal, information of the second service, identity information of the first terminal, or identity information of the third terminal, and so on.
The relevant content can be referred to the detailed description in step S302.
Optionally, the second terminal sends the second message to the first terminal in case that the priority of the first service is not lower than (or higher than, or equal to) the priority of the second service.
Step S603: the first terminal performs connection establishment with the second terminal.
Illustratively, the first terminal sends a connection establishment request (request) to the second terminal, receives a connection response message from the second terminal, and thereby the second terminal establishes a connection.
Optionally, the first terminal may perform connection establishment with the second terminal when determining that the priority of the first service is not lower than the priority of the second service.
Optionally, in a case that the first terminal receives the first indication information from the user, the connection establishment with the second terminal may be performed.
The detailed description may refer to the detailed description in step S303.
Optionally, the second terminal may disconnect from the third terminal. Illustratively, the second terminal sends a connection interruption message to the third terminal for disconnecting the connection with the third terminal.
The communication method provided in the embodiment of the present application will be further described below by taking the second message from the third terminal as an example. Referring to fig. 7, fig. 7 is a flowchart illustrating a possible communication method according to an embodiment of the present disclosure. Alternatively, the communication method may be implemented based on the architecture shown in fig. 1. The method shown in fig. 7 at least comprises the following steps:
step S701: the first terminal sends a first message. Accordingly, the third terminal may receive the first message from the first terminal.
Wherein the first message includes at least one of identity information of the first terminal, identity information of the second terminal, and information of the first service.
Optionally, the first terminal may receive a third message from a third terminal before the first terminal transmits the first message.
The relevant content can be referred to the detailed description of step S301.
Step S702: the third terminal sends a second message to the first terminal. Accordingly, the first terminal receives the second message from the third terminal.
Optionally, the second message may include at least one of connection reconfiguration information, identity information of the second terminal, information of the second service, identity information of the first terminal or identity information of the third terminal, and the like.
The relevant content can be referred to the detailed description in step S302.
Optionally, the second terminal sends the second message to the first terminal in a case that the priority of the first service is not lower than (or higher than, or equal to) the priority of the second service.
Step S703: the first terminal sends a connection reconfiguration message to the second terminal. Accordingly, the second terminal receives the connection reconfiguration message from the first terminal.
Alternatively, the connection reconfiguration message may be transmitted based on the aforementioned connection reconfiguration information.
Alternatively, the first terminal may receive a connection response message from the second terminal, so that the second terminal establishes a connection.
Optionally, the first terminal may perform connection establishment with the second terminal when determining that the priority of the first service is not lower than the priority of the second service.
Optionally, in a case that the first terminal receives the first indication information from the user, the connection establishment with the second terminal may be performed.
The detailed description may refer to the detailed description in step S303.
Optionally, the third terminal may disconnect from the second terminal. Illustratively, the third terminal sends a connection interruption message to the second terminal for disconnecting the connection with the third terminal.
The method of the embodiments of the present application is set forth above in detail and the apparatus of the embodiments of the present application is provided below.
Referring to fig. 8, fig. 8 is a schematic structural diagram of a communication apparatus 80 according to an embodiment of the present disclosure, where the communication apparatus 80 may be a stand-alone device, or may be a device in a stand-alone device, such as a chip or an integrated circuit. The communication device comprises means for implementing the embodiments shown in fig. 3, 4, 6 or 7 described above.
In one possible implementation, the apparatus 80 may include a sending unit 801, a receiving unit 802, and a processing unit 803.
The apparatus 80 is used to implement the aforementioned communication method, such as the communication method of the embodiment shown in fig. 3, fig. 4, fig. 6 or fig. 7.
In one possible design, the device 90 may be the first terminal in the embodiment shown in fig. 3, 6 or 7, or a component in the first terminal, such as a chip or an integrated circuit.
In a possible implementation manner, the sending unit 801 is configured to send a first message, where the first message includes identity information of a first terminal, identity information of a second terminal, and information of a first service, and the information of the first service is used to indicate the first service;
the receiving unit 802 is configured to receive a second message, where the second message is used to instruct the first terminal to establish a connection with the second terminal;
the processing unit 803 is configured to perform connection establishment with the second terminal, so as to be used for processing the first service.
In a possible implementation manner, the receiving unit 802 is further configured to receive a second message from a third terminal.
In yet another possible implementation, the receiving unit 802 is further configured to receive a second message from a second terminal.
In yet another possible implementation, the second message includes connection configuration information between the third terminal and the second terminal.
In yet another possible implementation manner, the sending unit 801 is further configured to send a connection reconfiguration message to the second terminal based on the connection configuration information, where the connection reconfiguration message is used to request to establish a connection with the second terminal.
In a possible embodiment, the connection configuration information includes at least one of a physical layer identification ID, a medium access control MAC layer ID, a channel number CID, and indication information of the first time-frequency resource.
In a possible embodiment, the connection reconfiguration message further includes at least one of identity information of the first terminal, identity information of the third terminal, and identity information of the second terminal.
In one possible implementation, the CID is a CID of communication between the third terminal and the second terminal.
In a possible implementation manner, when the third terminal and the second terminal are in a connected state, the service processed by the second terminal is used by the third terminal as the second service of the third terminal, and the priority of the second service is lower than or equal to the priority of the first service.
In a possible implementation manner, the receiving unit 802 is further configured to receive a third message from the second terminal, where the third message includes the identity information of the third terminal, the identity information of the second terminal, and information of a currently processed second service.
In a possible embodiment, the information of the first service comprises at least one of the following information: the first service priority, an application layer ID of the first service, a type of the first service, a quality of service (QoS) requirement of the first service, and a QoS Class Identifier (QCI) index of the first service.
In a possible implementation manner, the second message includes information of a second service, and the information of the second service is used for indicating the second service. The processing unit is further configured to determine that the priority of the second service is lower than or equal to the priority of the first service according to the information of the second service and the information of the first service.
In a possible implementation manner, the receiving unit is further configured to receive first indication information from a user, where the first indication information is used to indicate that the connection of the second terminal is confirmed.
In a possible implementation manner, the apparatus further includes an output unit, configured to output first prompting information, where the first prompting information is used to prompt whether to connect to the second terminal.
In a possible embodiment, before the first terminal sends the first message, the first terminal establishes a connection with the second terminal, and the connection is released.
With reference to the first aspect, in a possible implementation manner, the second message further includes a security parameter, where the security parameter is used to authenticate an identity of the third terminal.
It should be noted that the implementation of each unit may also correspond to the corresponding description of the embodiments shown in fig. 3, fig. 6, or fig. 7.
It should be understood that, in the embodiments of the apparatus in the present application, the division of multiple units or modules is only a logical division according to functions, and is not limited to a specific structure of the apparatus. In a specific implementation, some of the functional modules may be subdivided into more tiny functional modules, and some of the functional modules may be combined into one functional module, but the general flow performed by the apparatus 80 in the communication process is the same regardless of whether the functional modules are subdivided or combined. Generally, each unit corresponds to a respective program code (or program instruction), and when the respective program code of the units runs on a processor, the units are controlled by the processor to execute corresponding procedures so as to realize corresponding functions.
In yet another possible design, the apparatus 80 may be a third terminal in the embodiment shown in fig. 3 or fig. 6.
In a possible implementation manner, the receiving unit 802 is configured to receive a first message from a first terminal, where the first message includes identity information of the first terminal, identity information of a second terminal, and information of a first service, and the information of the first service is used to indicate the first service;
the sending unit 801 is configured to send a second message to the first terminal, where the second message is used to instruct the first terminal to establish a connection with the second terminal;
the processing unit 803 is further configured to disconnect the connection with the second terminal.
In a possible implementation, the second message includes connection configuration information between a third terminal and the second terminal.
In a possible implementation, the second message includes connection configuration information between a third terminal and the second terminal.
In a possible embodiment, the connection configuration information includes at least one of a physical layer identification ID, a medium access control MAC layer ID, a channel number CID, and indication information of the first time-frequency resource.
In one possible embodiment, the information of the first service includes at least one of the following information: the first service priority, an application layer ID of the first service, a type of the first service, a quality of service (QoS) requirement of the first service, and a QoS Class Identifier (QCI) index of the first service.
In a possible implementation manner, the processing unit 803 is further configured to determine, according to the information of the first service, that the priority of the first service is higher than or equal to the priority of a second service, where the second service is a service processed between a third terminal and the second terminal.
With reference to the second aspect, in a possible implementation manner of the second aspect, the second message further includes information of the second service, where the information of the second service is used to indicate the second service, and the second service is a service processed between a third terminal and the second terminal.
With reference to the second aspect, in a possible implementation manner of the second aspect, the second message further includes a security parameter, and the security parameter is used to authenticate an identity of the third terminal.
It should be noted that the implementation of each unit may also correspond to the corresponding description of the embodiments shown in fig. 3, fig. 6, or fig. 7.
In yet another possible design, the receiving unit 802 is further configured to receive a first message from a first terminal, where the first message includes identity information of the first terminal, identity information of a second terminal, and information of a first service, and the information of the first service is used to indicate the first service;
the sending unit 801 is further configured to send a second message to the first terminal, where the second message is used to instruct the first terminal to establish a connection with the second terminal;
the processing unit 803 is further configured to disconnect the connection with the third terminal;
the processing unit 803 is further configured to establish a connection with the first terminal.
In one possible embodiment, the information of the first service includes at least one of the following information: the first service priority, an application layer ID of the first service, a type of the first service, a quality of service (QoS) requirement of the first service, and a QoS Class Identifier (QCI) index of the first service.
In a possible implementation manner, the processing unit 803 is further configured to determine, according to the information of the first service, that the priority of the first service is higher than or equal to the priority of a second service, where the second service is a service processed between the third terminal and the second terminal.
In a possible implementation manner, the second message further includes information of a second service, where the information of the second service is used to indicate the second service, and the second service is a service processed between the third terminal and the second terminal.
In a possible embodiment, the second message further comprises a security parameter, and the security parameter is used for authenticating the identity of the third terminal.
In yet another possible design, the apparatus 80 may be the second terminal in the embodiment shown in fig. 3 or fig. 6.
In a possible implementation manner, the processing unit 803, the sending unit 801, and the receiving unit 802 are further configured to establish a connection with a third terminal based on the configuration information;
the sending unit 801 is further configured to receive a connection reconfiguration message from the first terminal based on the configuration information;
the processing unit is further configured to establish a connection with the first terminal to process the first service.
In yet another possible design, the apparatus 80 may be the second terminal in the embodiment shown in fig. 3 or fig. 7.
In a possible implementation manner, the receiving unit 802 is further configured to receive a first message from a first terminal, where the first message includes identity information of the first terminal, identity information of a second terminal, and information of a first service, and the information of the first service is used to indicate the first service;
the sending unit 801 is configured to send a second message to the first terminal, where the second message is used to instruct the first terminal to establish a connection with the second terminal;
the processing unit is used for disconnecting the connection with the third terminal;
the processing unit is further configured to establish a connection with the first terminal.
In a possible embodiment, the information of the first service comprises at least one of the following information: the first service priority, an application layer ID of the first service, a type of the first service, a quality of service (QoS) requirement of the first service, and a QoS Class Identifier (QCI) index of the first service.
In a possible implementation manner, the processing unit is further configured to determine, according to the information of the first service, that the priority of the first service is higher than or equal to the priority of a second service, where the second service is a service processed between the third terminal and the second terminal.
In a possible implementation manner, the second message further includes information of a second service, where the information of the second service is used to indicate the second service, and the second service is a service processed between the third terminal and the second terminal.
In a possible embodiment, the second message further comprises a security parameter, and the security parameter is used for authenticating the identity of the third terminal.
Referring to fig. 9, fig. 9 is a schematic structural diagram of a communication apparatus 90 according to an embodiment of the present disclosure, where the communication apparatus 90 may be an independent device (e.g., one of a node, a terminal, and the like), or may be a device in an independent device, such as a chip or an integrated circuit. The communication device 90 may include at least one processor 901 and a communication interface 902. Further optionally, the communication device 90 may further comprise at least one memory 903. Still further optionally, a bus 904 may be included, wherein the processor 901, the communication interface 902, and the memory 903 are coupled via the bus 904.
The processor 901 is a module for performing arithmetic operation and/or logical operation, and may specifically be one or a combination of multiple processing modules such as a Central Processing Unit (CPU), a picture processing Unit (GPU), a Microprocessor (MPU), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA), a Complex Programmable Logic Device (CPLD), a coprocessor (assisting the central processing Unit to complete corresponding processing and Application), and a Micro Control Unit (MCU).
The communication interface 902 may be used to provide information input or output to the at least one processor. And/or, the communication interface 902 may be used to receive and/or transmit data externally, and may be a wired link interface such as an ethernet cable, and may also be a wireless link (Wi-Fi, bluetooth, general wireless transmission, vehicle-mounted short-range communication technology, other short-range wireless communication technology, and the like) interface. Optionally, the communication interface 902 may also include a transmitter (e.g., a radio frequency transmitter, an antenna, etc.), or a receiver, etc., coupled to the interface.
For example, communication interface 902 may also include an antenna. The communication interface 902 may further frequency modulate and filter the electromagnetic wave signal, and send the processed signal to the processor 901. For another example, the communication interface 902 may also receive a signal to be transmitted from the processor 901, perform frequency modulation and amplification on the signal, and convert the signal into electromagnetic waves through an antenna to radiate the electromagnetic waves.
The memory 903 is used to provide a storage space in which data, such as an operating system and computer programs, may be stored. The memory 903 may be one or a combination of Random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), or portable read-only memory (CD-ROM), among others.
The at least one processor 901 of the apparatus 90 is configured to invoke a computer program stored in the at least one memory 903 for executing the aforementioned communication method, such as the communication method described in the embodiment shown in fig. 3, fig. 6 or fig. 7.
In one possible design, the device 90 may be the first terminal in the embodiment shown in fig. 3, 6 or 7.
In one possible embodiment, the processor 901 in the apparatus 90 is configured to call up a computer program stored in the at least one memory 903, for performing the following operations:
sending a first message through a communication interface 902, where the first message includes identity information of a first terminal, identity information of a second terminal, and information of a first service, and the information of the first service is used to indicate the first service;
receiving a second message through the communication interface 902, the second message being used for instructing the first terminal to establish a connection with the second terminal;
and executing connection establishment with the second terminal for processing the first service.
In a possible implementation, the processor 901 is further configured to receive a second message from a third terminal through the communication interface 902.
In yet another possible embodiment, the processor 901 is further configured to receive a second message from the second terminal through the communication interface 902.
In yet another possible implementation, the second message includes connection configuration information between the third terminal and the second terminal.
In yet another possible implementation, the processor 901 is further configured to send, through the communication interface 902, a connection reconfiguration message to the second terminal based on the connection configuration information, where the connection reconfiguration message is used to request to establish a connection with the second terminal.
In a possible embodiment, the connection configuration information includes at least one of a physical layer identification ID, a medium access control MAC layer ID, a channel number CID, and indication information of the first time-frequency resource.
In a possible embodiment, the connection reconfiguration message further includes at least one of identity information of the first terminal, identity information of the third terminal, and identity information of the second terminal.
In one possible implementation, the CID is a CID for communication between the third terminal and the second terminal.
In a possible implementation manner, when the third terminal and the second terminal are in a connected state, the service processed by the second terminal is used by the third terminal as the second service of the third terminal, and the priority of the second service is lower than or equal to the priority of the first service.
In a possible implementation manner, the processor 901 is further configured to receive a third message from the second terminal through the communication interface 902, where the third message includes the identity information of the third terminal, the identity information of the second terminal, and information of the currently processed second service.
In a possible embodiment, the information of the first service comprises at least one of the following information: the first service priority, an application layer ID of the first service, a type of the first service, a quality of service (QoS) requirement of the first service, and a QoS Class Identifier (QCI) index of the first service.
In a possible implementation manner, the second message includes information of a second service, and the information of the second service is used for indicating the second service. The processing unit is further configured to determine, according to the information of the second service and the information of the first service, that the priority of the second service is lower than or equal to the priority of the first service.
In a possible implementation manner, the receiving unit is further configured to receive first indication information from a user, where the first indication information is used to indicate that the connection with the second terminal is confirmed.
In a possible implementation manner, the apparatus further includes an output unit, configured to output first prompting information, where the first prompting information is used to prompt whether to connect to the second terminal.
In a possible embodiment, before the first terminal sends the first message, the first terminal establishes a connection with the second terminal, and the connection is released.
With reference to the first aspect, in a possible implementation manner, the second message further includes a security parameter, where the security parameter is used to authenticate an identity of the third terminal.
In one possible design, the device 90 may be a third terminal in the embodiment shown in fig. 3 or fig. 6.
In one possible embodiment, the processor 901 in the apparatus 90 is configured to invoke a computer program stored in the at least one memory 903 for performing the following operations:
receiving a first message from a first terminal through a communication interface 902, where the first message includes identity information of the first terminal, identity information of a second terminal, and information of a first service, and the information of the first service is used to indicate the first service;
sending a second message to the first terminal through the communication interface 902, where the second message is used to instruct the first terminal to establish a connection with the second terminal;
disconnecting the connection with the second terminal.
In a possible implementation, the second message includes connection configuration information between a third terminal and the second terminal.
In a possible implementation, the second message includes connection configuration information between a third terminal and the second terminal.
In a possible embodiment, the connection configuration information includes at least one of a physical layer identification ID, a medium access control MAC layer ID, a channel number CID, and indication information of the first time-frequency resource.
In one possible embodiment, the information of the first service includes at least one of the following information: the first service priority, an application layer ID of the first service, a type of the first service, a quality of service (QoS) requirement of the first service, and a QoS Class Identifier (QCI) index of the first service.
In a possible implementation manner, the processor 901 is further configured to determine, according to the information of the first service, that the priority of the first service is higher than or equal to the priority of a second service, where the second service is a service processed between a third terminal and the second terminal.
With reference to the second aspect, in a possible implementation manner of the second aspect, the second message further includes information of a second service, where the information of the second service is used to indicate the second service, and the second service is a service processed between the third terminal and the second terminal.
With reference to the second aspect, in a possible implementation manner of the second aspect, the second message further includes a security parameter, and the security parameter is used to authenticate an identity of the third terminal.
It should be noted that the implementation of each unit may also correspond to the corresponding description of the embodiments shown in fig. 3, fig. 6, or fig. 7.
In one possible design, the device 90 may be the second terminal in the embodiment shown in fig. 3 or fig. 6. The implementation of the respective modules may also correspond to the respective description of the embodiments shown in fig. 3 or fig. 6.
In one possible embodiment, the processor 901 in the apparatus 90 is configured to call up a computer program stored in the at least one memory 903, for performing the following operations:
establishing a connection with a third terminal based on the configuration information;
receiving a connection reconfiguration message from the first terminal based on the configuration information through the communication interface 902;
and establishing connection with the first terminal to process the first service.
In one possible design, the device 90 may be the second terminal in the embodiment shown in fig. 3 or fig. 7. The implementation of the respective modules may also correspond to the respective description of the embodiments shown in fig. 3 or fig. 7.
In one possible embodiment, the processor 901 in the apparatus 90 is configured to invoke a computer program stored in the at least one memory 903 for performing the following operations:
receiving a first message from a first terminal through a communication interface 902, where the first message includes identity information of the first terminal, identity information of a second terminal, and information of a first service, and the information of the first service is used to indicate the first service;
sending a second message to the first terminal through the communication interface 902, where the second message is used to instruct the first terminal to establish a connection with the second terminal;
disconnecting the connection with the third terminal;
and establishing connection with the first terminal.
In one possible embodiment, the information of the first service includes at least one of the following information: the first service priority, an application layer ID of the first service, a type of the first service, a quality of service (QoS) requirement of the first service, and a QoS Class Identifier (QCI) index of the first service.
In a possible implementation manner, the processing unit is further configured to determine, according to the information of the first service, that a priority of the first service is higher than or equal to a priority of a second service, where the second service is a service processed between the third terminal and the second terminal.
In a possible implementation manner, the second message further includes information of a second service, where the information of the second service is used to indicate the second service, and the second service is a service processed between the third terminal and the second terminal.
In a possible embodiment, the second message further comprises security parameters for authenticating the identity of the third terminal.
The embodiment of the present application further provides a terminal, where the terminal includes the foregoing communication device, for example, the communication device shown in fig. 8 or fig. 9.
Embodiments of the present application further provide a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed on one or more processors, the method described in the embodiments shown in fig. 3, fig. 6, or fig. 7 is implemented.
Embodiments of the present application further provide a computer program product, which when run on one or more processors, implements the method described in the embodiments illustrated in fig. 3, fig. 6, or fig. 7.
The embodiment of the present application further provides a chip system, where the chip system includes a communication interface and at least one processor, where the communication interface is used to provide information input/output for the at least one processor, and/or the communication interface is used to send or receive data. The processor is used to invoke a computer program (or computer instructions) to implement the methods described in the embodiments shown in fig. 4, fig. 6, or fig. 8.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (e.g., coaxial cable, fiber optic, digital subscriber line) or wirelessly (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk), among others.
One of ordinary skill in the art will appreciate that all or part of the processes in the methods of the above embodiments may be implemented by hardware related to instructions of a computer program, which may be stored in a computer-readable storage medium, and when executed, may include the processes of the above method embodiments. And the aforementioned storage medium includes: various media capable of storing program codes, such as ROM or RAM, magnetic or optical disks, etc.

Claims (28)

1. A communication method applied to a first terminal, the method comprising:
sending a first message, where the first message includes identity information of the first terminal, identity information of a second terminal, and information of a first service, and the information of the first service is used to indicate the first service;
receiving a second message, where the second message is used to instruct the first terminal to establish a connection with the second terminal, the second message includes connection configuration information between a third terminal and the second terminal, and the connection configuration information includes at least one of a physical layer identifier ID, a channel number CID, and indication information of a first time-frequency resource;
and performing connection establishment with the second terminal for processing the first service, wherein the configuration of the connection with the second terminal is the configuration indicated by the connection configuration information.
2. The method of claim 1, wherein receiving the second message comprises:
receiving the second message from a third terminal.
3. The method of claim 1, wherein receiving the second message comprises:
receiving the second message from the second terminal.
4. The method of claim 1, wherein performing connection establishment with the second terminal comprises:
and sending a connection reconfiguration message to the second terminal based on the connection configuration information, wherein the connection reconfiguration message is used for requesting to establish connection with the second terminal.
5. The method of claim 4, wherein prior to sending the first message, further comprising:
receiving a third message from the second terminal, wherein the third message includes identity information of the third terminal, identity information of the second terminal and information of a second service;
the sending a first message comprises:
and sending a first message to the third terminal.
6. The method according to any of claims 1-5, characterized in that the information of the first service comprises at least one of the following information: the first service priority, an application layer ID of the first service, a type of the first service, a quality of service (QoS) requirement of the first service, and a QoS Class Identifier (QCI) index of the first service.
7. The method according to any of claims 1-5, wherein the second message contains information of a second service, the information of the second service being used to indicate the second service; the method further comprises the following steps:
and determining that the priority of the second service is lower than or equal to the priority of the first service according to the information of the second service and the information of the first service.
8. The method according to any of claims 1-5, wherein before the establishing the connection with the second terminal, the method further comprises:
and receiving first indication information from a user, wherein the first indication information is used for indicating to confirm the connection of the second terminal.
9. The method according to any of claims 1-5, characterized in that the second message further comprises security parameters for authenticating the identity of the third terminal.
10. A communication method applied to a third terminal, the method comprising:
receiving a first message from a first terminal, wherein the first message comprises identity information of the first terminal, identity information of a second terminal and information of a first service, and the information of the first service is used for indicating the first service;
sending a second message to the first terminal, where the second message is used to indicate the first terminal to establish a connection with the second terminal, the second message includes connection configuration information between the third terminal and the second terminal, and the connection configuration information includes at least one of a physical layer identifier ID, a channel number CID, and indication information of a first time-frequency resource;
disconnecting the connection with the second terminal.
11. The method of claim 10, wherein the information of the first service comprises at least one of the following information: the first service priority, an application layer ID of the first service, a type of the first service, a quality of service (QoS) requirement of the first service, and a QoS Class Identifier (QCI) index of the first service.
12. The method of claim 10, wherein prior to sending the second message to the first terminal, the method further comprises:
and determining that the priority of the first service is higher than or equal to the priority of a second service according to the information of the first service, wherein the second service is a service processed between a third terminal and the second terminal.
13. The method according to any of claims 10-12, wherein the second message further comprises information of a second service, the information of the second service is used for indicating the second service, and the second service is a service processed between a third terminal and the second terminal.
14. A method according to any of claims 10-12, wherein the second message further comprises security parameters for authenticating the identity of the third terminal.
15. A communication method applied to a second terminal, comprising:
receiving a first message from a first terminal, wherein the first message comprises identity information of the first terminal, identity information of the second terminal and information of a first service, and the information of the first service is used for indicating the first service;
sending a second message to the first terminal, where the second message is used to indicate the first terminal to establish a connection with the second terminal, the second message includes connection configuration information between a third terminal and the second terminal, and the connection configuration information includes at least one of a physical layer identifier ID, a channel number CID, and indication information of a first time-frequency resource;
disconnecting the connection with the third terminal;
and establishing connection with the first terminal, wherein the configuration of the connection with the first terminal is the configuration indicated by the connection configuration information.
16. The method of claim 15, wherein the information of the first service comprises at least one of the following information: the first service priority, an application layer ID of the first service, a type of the first service, a quality of service (QoS) requirement of the first service, and a QoS Class Identifier (QCI) index of the first service.
17. The method of claim 15, wherein prior to the sending the second message to the first terminal, the method further comprises:
and determining that the priority of the first service is higher than or equal to the priority of a second service according to the information of the first service, wherein the second service is a service processed between the third terminal and the second terminal.
18. The method according to any of claims 15-17, wherein the second message further comprises information of a second service, the information of the second service is used for indicating the second service, and the second service is a service processed between the third terminal and the second terminal.
19. A method according to any of claims 15-17, wherein the second message further comprises security parameters for authenticating the identity of the third terminal.
20. A communication device, characterized in that the communication device comprises means for performing the method of any of claims 1-9.
21. A communication apparatus, characterized in that the communication apparatus comprises means for performing the method of any of claims 10-14.
22. A communication apparatus, characterized in that the communication apparatus comprises means for performing the method of any of claims 15-19.
23. A communications device comprising at least one processor and a communications interface, the communications interface being arranged to receive and/or transmit data, the at least one processor being arranged to invoke a computer program stored in a memory to implement the method of any of claims 1 to 9.
24. A communications device comprising at least one processor and a communications interface, the communications interface being arranged to receive and/or transmit data, the at least one processor being arranged to invoke a computer program stored in a memory to implement the method of any of claims 10 to 14.
25. A communications device comprising at least one processor and a communications interface, the communications interface being arranged to receive and/or transmit data, the at least one processor being arranged to invoke a computer program stored in a memory to implement the method of any of claims 15 to 19.
26. A communication system comprising a first terminal, a second terminal and a third terminal, wherein:
the first terminal comprising the communication device of claim 20,
the third terminal comprises a communication device according to claim 21.
27. A computer-readable storage medium, in which a computer program is stored which, when run on one or more processors, implements the method of any one of claims 1-9, claims 10-14, or claims 15-19.
28. A terminal, characterized in that the terminal comprises a communication device according to any of claims 20-22.
CN202180002363.7A 2021-03-22 2021-03-22 Communication method, communication device and terminal Active CN113519176B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2021/082113 WO2022198391A1 (en) 2021-03-22 2021-03-22 Communication method, communication apparatus, and terminal

Publications (2)

Publication Number Publication Date
CN113519176A CN113519176A (en) 2021-10-19
CN113519176B true CN113519176B (en) 2022-11-18

Family

ID=78063360

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202180002363.7A Active CN113519176B (en) 2021-03-22 2021-03-22 Communication method, communication device and terminal

Country Status (2)

Country Link
CN (1) CN113519176B (en)
WO (1) WO2022198391A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023240631A1 (en) * 2022-06-17 2023-12-21 北京小米移动软件有限公司 Device control method and apparatus, and storage medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8577404B2 (en) * 2008-07-15 2013-11-05 Qualcomm Incorporated Prioritization of group communications at a wireless communication device
CN105376637A (en) * 2015-09-29 2016-03-02 青岛海信电器股份有限公司 A Bluetooth hardware sharing system and method
CN110168942B (en) * 2017-11-10 2021-06-08 华为技术有限公司 Method, terminal, system and storage medium for selecting Bluetooth device
CN110139340A (en) * 2018-02-09 2019-08-16 电信科学技术研究院有限公司 A kind of connection method for building up and terminal
CN109348051A (en) * 2018-09-29 2019-02-15 上海与德科技有限公司 Method, apparatus, equipment and the medium of auto-pickup mobile phone communication
CN113225693B (en) * 2019-04-18 2022-04-15 华为技术有限公司 Bluetooth connection method, equipment and system
CN112243220A (en) * 2019-07-18 2021-01-19 华为技术有限公司 Method for establishing communication connection and wearable device

Also Published As

Publication number Publication date
CN113519176A (en) 2021-10-19
WO2022198391A1 (en) 2022-09-29

Similar Documents

Publication Publication Date Title
US10798548B2 (en) Method for controlling device by using Bluetooth technology, and apparatus
US9716969B2 (en) Method and apparatus for controlling device in wireless communication system
US10863321B2 (en) Method and device for transmitting and receiving data using Bluetooth technology
US10034160B2 (en) Method and apparatus for transmitting or receiving data using bluetooth in wireless communication system
US9730257B2 (en) Method and apparatus for establishing device-to-device connection in wireless communication system
US9544718B2 (en) Method and apparatus for transmitting and receiving audio stream in wireless communication system
US20160359925A1 (en) Method and apparatus for transmitting and receiving data in wireless communication system
WO2019024719A1 (en) Walkie-talkie device, electronic apparatus, walkie-talkie information transmission method, and information transmission method
US20200137542A1 (en) Method and apparatus for connecting devices using bluetooth le technology
US20130166759A1 (en) Apparatus, systems, and methods of ip address discovery for tunneled direct link setup
US11665214B2 (en) Method and apparatus for receiving audio data by using Bluetooth technology
JP2019506813A (en) The source device broadcasts synchronization information related to the Bluetooth isochronous channel.
US20160366263A1 (en) Method and device for transmitting or receiving data in wireless communication system
US20170034646A1 (en) Method and apparatus for transmitting and receiving data in wireless communication system
WO2020132922A1 (en) Method and device for connecting bluetooth devices
CN109644216A (en) A kind of method and terminal of Bluetooth communication
JP2017518697A (en) Establish reliable routes without expensive mesh peering
US20160299739A1 (en) Method for controlling data streaming using bluetooth communication
US20220030505A1 (en) Method and device for providing audio service using bluetooth technology
US11576100B2 (en) Method for performing handover by using Bluetooth in wireless communication system, and device therefor
CN105451368B (en) Communication method and device
US20240049116A1 (en) Method for transmitting and receiving data and device for same in short-range wireless communication system
US11445453B2 (en) Method and apparatus for controlling power of device by using bluetooth technology
CN113519176B (en) Communication method, communication device and terminal
WO2021134701A1 (en) D2d communication method, apparatus and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant