CROSS-REFERENCE TO RELATED APPLICATION
TECHNICAL FIELD
[0002] This application pertains to the field of communication technologies, and specifically
relates to an information sending method, an information receiving method, an apparatus,
and a terminal.
BACKGROUND
[0003] A sidelink (SideLink, SL) is also referred to as a side link, and the sidelink may
be used to directly transmit data between terminals without using a network device.
However, currently, communication capabilities that may be supported by different
terminals are different. In this way, service transmission between terminals may be
affected because supported communication mismatches, and service transmission performance
between terminals is relatively poor.
SUMMARY
[0004] An objective of the embodiments of this application is to provide an information
sending method, an information receiving method, an apparatus, and a terminal, which
can resolve a problem that service transmission performance between terminals is relatively
poor because service transmission between terminals is affected due to mismatch of
communication supported by the terminals.
[0005] To resolve the foregoing technical problem, this application is implemented as follows:
[0006] According to a first aspect, an information sending method is provided, is applied
to a first terminal, and includes:
sending first information to a second terminal; where
the first information is used to indicate support information and/or preferential
information of the first terminal for communication, the communication includes at
least one of first communication and second communication, and the first communication
or the second communication is sidelink SL communication.
[0007] According to a second aspect, an information receiving method is provided, is applied
to a second terminal, and includes:
receiving first information sent by a first terminal, where the first information
is used to indicate support information and/or preferential information of the first
terminal for communication, the communication includes at least one of first communication
and second communication, and the first communication or the second communication
is sidelink SL communication; and
determining, according to the first information, whether to select the first terminal
to perform communication.
[0008] According to a third aspect, an information sending apparatus is provided, is applied
to a first terminal, and includes:
a sending module, configured to send first information to a second terminal; where
the first information is used to indicate support information and/or preferential
information of the first terminal for communication, the communication includes at
least one of first communication and second communication, and the first communication
or the second communication is sidelink SL communication.
[0009] According to a fourth aspect, an information receiving apparatus is provided, is
applied to a second terminal, and includes:
a receiving module, configured to receive first information sent by a first terminal,
where the first information is used to indicate support information and/or preferential
information of the first terminal for communication, the communication includes at
least one of first communication and second communication, and the first communication
or the second communication is sidelink SL communication; and
a determining module, configured to determine, according to the first information,
whether to select the first terminal to perform communication.
[0010] According to a fifth aspect, a terminal is provided, the terminal includes a processor,
a memory, and a program or an instruction that is stored in the memory and executable
on the processor, and when the program or the instruction is executed by the processor,
steps in the information sending method described in the first aspect are implemented,
or when the program or the instruction is executed by the processor, steps in the
information receiving method described in the second aspect are implemented.
[0011] According to a sixth aspect, a readable storage medium is provided. The readable
storage medium stores a program or an instruction, and when the program or the instruction
is executed by a processor, steps in the information sending method described in the
first aspect are implemented, or steps in the information receiving method described
in the second aspect are implemented.
[0012] According to a seventh aspect, a chip is provided. The chip includes a processor
and a communication interface, the communication interface is coupled to the processor,
and the processor is configured to run a program or an instruction of a network side
device, to implement the information sending method described in the first aspect
or the information receiving method described in the second aspect.
[0013] According to an eighth aspect, an embodiment of this application provides a computer
software product, where the computer software product is stored in a non-volatile
storage medium, and the software product is configured to be executed by at least
one processor to implement steps in the method described in the first aspect or steps
in the method described in the second aspect.
[0014] According to a ninth aspect, a terminal is provided, where the terminal is configured
to perform the method described in the first aspect, or perform the method described
in the second aspect.
[0015] In the embodiments of this application, the first information is sent to the second
terminal, where the first information is used to indicate support information and/or
preferential information of the first terminal for communication, the communication
includes at least one of first communication and second communication, and the first
communication or the second communication is sidelink SL communication. In this way,
the second terminal can learn whether communication supported or inclined by the second
terminal matches the first terminal, so that the second terminal determines whether
to select the first terminal to perform subsequent service communication, thereby
improving service transmission performance between terminals.
BRIEF DESCRIPTION OF DRAWINGS
[0016]
FIG. 1 is a structural diagram of a network system according to an embodiment of this
application;
FIG. 2 is a flowchart of an information sending method according to an embodiment
of this application;
FIG. 3 is a flowchart of an information receiving method according to an embodiment
of this application;
FIG. 4a to FIG. 4c are a flowchart of information exchange performed by a terminal
according to an embodiment of this application;
FIG. 5 is a structural diagram of an information sending apparatus according to an
embodiment of this application;
FIG. 6 is a structural diagram of an information receiving apparatus according to
an embodiment of this application;
FIG. 7 is a structural diagram of a terminal according to an embodiment of this application;
and
FIG. 8 is a structural diagram of another terminal according to an embodiment of this
application.
DESCRIPTION OF EMBODIMENTS
[0017] The following clearly and completely describes the technical solutions in the embodiments
of this application with reference to the accompanying drawings in the embodiments
of this application. Apparently, the described embodiments are some rather than all
of the embodiments of this application. Based on the embodiments of this application,
all other embodiments obtained by a person of ordinary skill in the art without creative
efforts fall within the protection scope of this application.
[0018] Terms "first" and "second" in the specification and claims of this application are
used to distinguish between similar objects, and do not need to be used to describe
a specific order or sequence. It should be understood that data used in this way may
be interchangeable in an appropriate case, so that the embodiments of this application
can be implemented in a sequence other than those shown or described herein, and objects
distinguished by "first" and "second" are generally of a same type, and a quantity
of objects is not limited. For example, there may be one or more first targets. In
addition, in the specification and the claims, "and/or" represents at least one of
connected objects, and the character "/" generally represents an "or" relationship
between associated objects.
[0019] It should be noted that the technology described in this application is not limited
to a Long Term Evolution (Long Time Evolution, LTE)/LTE-advanced (LTE-Advanced, LTE-A)
system, and may also be used in various wireless communication systems, for example,
Code Division Multiple Access (Code Division Multiple Access, CDMA), Time Division
Multiple Access (Time Division Multiple Access, TDMA), Frequency Division Multiple
Access (Frequency Division Multiple Access, FDMA), Orthogonal Frequency Division Multiple
Access (Orthogonal Frequency Division Multiple Access, OFDMA), Single-carrier Frequency-Division
Multiple Access (Single-carrier Frequency-Division Multiple Access, SC-FDMA), and
another system. The terms "system" and "network" in the embodiments of this application
are often used interchangeably. The described technology may be used in the foregoing
system and radio technology, and may also be used in another system and radio technology.
However, a New Radio (New Radio, NR) system is described below as an example, and
the term NR is used in most of the descriptions, although these technologies can also
be used in an application other than an application of the NR system, for example,
a sixth (6
th Generation, 6G) communication system.
[0020] FIG. 1 is a block diagram of a wireless communication system to which an embodiment
of this application is applicable. The wireless communication system includes a terminal
11 and a network side device 12. The terminal 11 may also be referred to as a terminal
device or user equipment (User Equipment, UE). The terminal 11 may be a terminal side
device such as a mobile phone, a tablet personal computer (Tablet Personal Computer),
a laptop computer (Laptop Computer) or a notebook computer, a personal digital assistant
(Personal Digital Assistant, PDA), a palmtop computer, a netbook, an ultra-mobile
personal computer (ultra-mobile personal computer, UMPC), a mobile Internet device
(Mobile Internet Device, MID), a wearable device (Wearable Device) or a vehicle-mounted
device (VUE), or a pedestrian terminal (PUE). The wearable device includes a band,
a headset, eyeglasses, or the like. It should be noted that a specific type of the
terminal 11 is not limited in this embodiment of this application. The network side
device 12 may be a base station or a core network. The base station may be referred
to as a NodeB, an evolved Node B, an access point, a base transceiver station (Base
Transceiver Station, BTS), a radio base station, a radio transceiver, a basic service
set (Basic Service Set, BSS), an extended service set (Extended Service Set, ESS),
a NodeB, an evolved NodeB (eNB), a home NodeB, a home evolved NodeB, a WLAN access
point, a WiFi node, a transmitting receiving point (Transmitting Receiving Point,
TRP), or another suitable term in the field provided that a same technical effect
is achieved. The base station is not limited to a specific technical term. It should
be noted that, in this application, only a base station in an NR system is used as
an example, but a specific type of the base station is not limited.
[0021] An information sending method and an information receiving method provided in the
embodiments of this application are described in detail below with reference to the
accompanying drawings by using specific embodiments and application scenarios thereof.
[0022] FIG. 2 is a flowchart of an information sending method according to an embodiment
of this application. The information sending method is applied to a first terminal
and includes:
Step 201: Send first information to a second terminal, where the first information
is used to indicate support information and/or preferential information of a first
terminal for communication, the communication includes at least one of first communication
and second communication, and the first communication or the second communication
is sidelink SL communication.
[0023] After a discovery phase or a discovery phase (for example, a direct communication
establishment phase), the first terminal sends the first information to the second
terminal, and the second terminal determines, according to the first information and
support information and/or preferential information of the second terminal for communication,
whether to select the first terminal to perform communication.
[0024] For example, if the first information indicates that aggregated (aggregation) communication
of sidelink (SideLink, SL) and a wireless local area network (Wireless Local Area
Network, WLAN) is supported, where the aggregated communication of SL and WLAN may
also be referred to as inter-working (inter-working) SL and WLAN communication, and
the second information indicates that only SL communication is supported, the second
terminal cannot select the first terminal for subsequent service communication. If
the first information indicates that aggregated communication of SL and WLAN is supported,
and the second information indicates that aggregated communication of SL and WLAN
is supported, the second terminal may select the first terminal to perform subsequent
service communication.
[0025] The second terminal may learn, based on the first information sent by the first terminal,
the support information and/or the preferential information of the first terminal
for the communication, and the second terminal may determine, based on the first information
and the support information and/or the preferential information of the second terminal
for the communication, whether to select the first terminal to perform subsequent
service communication.
[0026] In this embodiment, the first information is sent to the second terminal, where the
first information is used to indicate support information and/or preferential information
of the first terminal for communication, the communication includes at least one of
first communication and second communication, and the first communication or the second
communication is sidelink SL communication. In this way, the second terminal can learn
whether communication supported or inclined by the second terminal matches the first
terminal, so that the second terminal determines whether to select the first terminal
to perform subsequent service communication, thereby improving service transmission
performance between terminals.
[0027] In an embodiment of this application, the first communication is SL communication,
and the second communication is WLAN communication or Bluetooth communication.
[0028] In the foregoing descriptions, in a case that the first communication is SL communication
and the second communication is WLAN communication, support information indicated
by the first information is used to indicate one of the following:
that only the SL communication is supported;
that only the WLAN communication is supported; and
that aggregated communication of SL and WLAN is supported; and/or
the preferential information is used to indicate one of the following:
that the SL communication is preferential;
that the WLAN communication is preferential; and
that aggregated communication of SL and WLAN is preferential.
[0029] Specifically, the preferential information may be changed based on an actual situation.
For example, if an initiated service has a relatively high requirement for reliability
and continuity, and/or WLAN link quality is poor, the preferential information may
indicate that the aggregated communication of SL and WLAN or the SL communication
is preferential. If a quality of service (Quality of Service, QoS) requirement of
the initiated service is low, and/or WLAN link quality is good, the preferential information
may indicate that the WLAN communication is preferential, or the aggregated communication
of SL and WLAN is preferential.
[0030] In other words, the preferential information is determined based on a service policy,
and/or the preferential information is determined based on link quality. In other
words, the preferential information may be determined based on a service policy (static
information), may be determined based on an actual link condition (dynamic information),
or may be determined based on both a service policy and an actual link condition.
[0031] Further, the first information is further used to indicate at least one of service
information of the WLAN communication and address information of the WLAN communication;
or
the first information is further used to indicate at least one of service information
of the WLAN communication and address information of the WLAN communication;
or
the first information is further used to indicate at least one of service information
of aggregated communication of SL and WLAN and address information of the aggregated
communication of SL and WLAN.
[0032] In the foregoing descriptions, service information of the aggregated communication
of SL and WLAN may be understood as: being used to carry an SL service or a WLAN service.
Correspondingly, address information of the aggregated communication of SL and WLAN
may be address information of the SL communication, or may be address information
of the WLAN communication.
[0033] The service information of the SL communication may specifically include a service
type (such as public safety (public safety) or commercial (commercial)), a service
identifier (service ID), service QoS, and service code (service code).
[0034] The service information of the WLAN communication may specifically include a service
type (such as public safety (public safety) or commercial (commercial)), a service
identifier (service ID), service QoS, and service code (service code).
[0035] In the foregoing descriptions, the address information of the WLAN communication
includes at least one of WLAN port configuration, WLAN identifier information, a WLAN
version, and a WLAN protocol. The WLAN identifier information includes:
a basic service set identifier (Basic Service Set Identifier, BSSID), that is, a wireless
fidelity (wireless fidelity, wifi) local area network address (Media Access Control
Address, MAC Address);
a homogenous extended service set identifier (Homogenous Extended Service Set Identifier,
HESSID) defined in IEEE802 (HESSID defined in IEEE802);
a service set identifier (Service Set Identifier, SSID) defined in IEEE802 (SSID defined
in IEEE 802); and
a WLAN version/protocol such as wifi 1-6, 802.11 a/b/g/n/ac/ax, and an Ethernet type
(EtherType) 0x9E65.
[0036] In the foregoing descriptions, in a case that the first communication is SL communication
and the second communication is Bluetooth communication, support information indicated
by the first information is used to indicate one of the following:
that only the SL communication is supported;
that only Bluetooth communication is supported;
that aggregated communication of SL and Bluetooth is supported; and/or
the preferential information is used to indicate one of the following:
that the SL communication is preferential;
that Bluetooth communication is preferential;
that aggregated communication of SL and Bluetooth is preferential.
[0037] Further, the first information is further used to indicate at least one of service
information of the SL communication and address information of the Bluetooth communication;
or
the first information is further used to indicate at least one of service information
of the Bluetooth communication and address information of the Bluetooth communication;
or
the first information is further used to indicate at least one of service information
of aggregated communication of SL and Bluetooth and address information of the aggregated
communication of SL and Bluetooth.
[0038] In the foregoing descriptions, service information of the aggregated communication
of SL and Bluetooth may be understood as: being used to carry an SL service or a Bluetooth
service. Correspondingly, address information of the aggregated communication of SL
and Bluetooth may be address information of the SL communication, or may be address
information of the Bluetooth communication. Address information of the Bluetooth communication
includes a Bluetooth public address (Bluetooth public address).
[0039] The first information may be carried in a discovery message or a direct communication
request message. The discovery message can reuse messages in an SL one-step discovery
mechanism (discovery model A) and a two-step discovery mechanism (discovery model
B). FIG. 4a is a schematic flowchart of a one-step discovery mechanism. A discovery
message may reuse an announcing message (announcing message), that is, the announcing
message (announcing message) may be used as a discovery message. As shown in FIG.
4b, a discovery message may reuse a solicitation message (solicitation message), that
is, the solicitation message (solicitation message) may be used as a discovery message.
For example, in a discovery process triggered by the first terminal, a broadcast discovery
message carries the first information, or in a discovery phase, the first terminal
discovers and selects the second terminal, and after the discovery phase, the first
terminal sends a direct communication request message that carries the first information
to the second terminal.
[0040] The first information may be preconfigured on the first terminal, or the first information
is configured by a network device.
[0041] In an embodiment of this application, after sending the first information to the
second terminal, the method further includes:
receiving a discovery response message sent by the second terminal;
or
receiving a direct communication accept message or a direct communication reject message
sent by the second terminal.
[0042] If the first information is carried in the discovery message, the first terminal
sends the discovery message to the second terminal, and the second terminal matches
the first information with the support information and/or the preferential information
of the second terminal for the communication, and sends the discovery response message
to the first terminal, and the first terminal receives the discovery response message
sent by the second terminal.
[0043] If the first information is carried in the direct communication request message,
the first terminal sends the discovery message to the second terminal, and the second
terminal matches the first information with the support information and/or the preferential
information of the second terminal for the communication. If the matching succeeds,
the second terminal sends a direct communication accept message to the first terminal,
and the first terminal receives the direct communication accept message sent by the
second terminal. If the matching fails, the second terminal sends a direct communication
reject message to the first terminal, and the first terminal receives the direct communication
reject message sent by the second terminal.
[0044] In the foregoing descriptions, the discovery response message carries second information;
or
the direct communication accept message carries second information;
or
the direct communication reject message carries second information; where
the second information is used to indicate support information and/or preferential
information of the second terminal for the communication.
[0045] When sending the discovery response message, the direct communication accept message,
or the direct communication reject message to the first terminal, the second terminal
may also send second information to the first terminal, to notify the first terminal
of the support information and/or the preferential information of the first terminal
for the communication.
[0046] Further, in a case that the first communication is SL communication and the second
communication is WLAN communication, the second information may be the same as content
indicated by the first information. For example, the support information indicated
by the second information is used to indicate one of the following:
that only the SL communication is supported;
that only the WLAN communication is supported; and
that aggregated communication of SL and WLAN is supported; and/or
the preferential information that the second information is used to indicate is used
to indicate one of the following:
that the SL communication is preferential;
that the WLAN communication is preferential; and
that aggregated communication of SL and WLAN is preferential.
[0047] In addition, the second information is further used to indicate at least one of service
information of the SL communication and address information of the SL communication;
or
the second information is further used to indicate at least one of service information
of the WLAN communication and address information of the WLAN communication;
or
the second information is further used to indicate at least one of service information
of aggregated communication of SL and WLAN and address information of the aggregated
communication of SL and WLAN.
[0048] FIG. 3 is a flowchart of an information receiving method according to an embodiment
of this application. The information receiving method is applied to a second terminal
and includes:
Step 301: Receive first information sent by a first terminal, where the first information
is used to indicate support information and/or preferential information of the first
terminal for communication, the communication includes at least one of first communication
and second communication, and the first communication or the second communication
is sidelink SL communication.
Step 302: Determine, according to the first information, whether to select the first
terminal to perform communication.
[0049] After a discovery phase or a discovery phase (for example, a direct communication
establishment phase), the second terminal receives the first information sent by the
first terminal. The second terminal may learn, based on the first information sent
by the first terminal, the support information and/or the preferential information
of the first terminal for the communication, and the second terminal may determine,
based on the first information and the support information and/or the preferential
information of the second terminal for the communication, whether to select the first
terminal to perform subsequent service communication.
[0050] If the second terminal does not select the first terminal to perform subsequent service
communication, the second terminal may send a response message for rejecting communication
such as a direct communication rejection message to the first terminal. Alternatively,
if the second terminal does not select the first terminal to perform subsequent service
communication, the second terminal may not send a message to the first terminal, that
is, the second terminal does not respond to the first information sent by the first
terminal. If the second terminal selects the first terminal to perform subsequent
service communication, the second terminal may send a response message for accepting
communication to the first terminal, such as a direct communication accept message.
[0051] For example, if the first information indication supports aggregated communication
of sidelink (SideLink, SL) and a wireless local area network (Wireless Local Area
Network, WLAN), and the second information indication supports SL communication only,
the second terminal cannot select the first terminal to perform subsequent service
communication. If the first information indicates that the aggregated communication
of SL and WLAN is supported, and the second information indicates that the aggregated
communication of SL and WLAN is supported, the second terminal may select the first
terminal to perform subsequent service communication.
[0052] In this embodiment, the first information sent by the first terminal is received,
where the first information is used to indicate the support information and/or the
preferential information of the first terminal for the communication, the communication
includes at least one of the first communication and the second communication, and
the first communication or the second communication is sidelink SL communication;
and whether to select the first terminal for communication is determined according
to the first information, so that the second terminal learns whether the first terminal
matches communication supported or inclined by the first terminal, so that the second
terminal determines whether to select the first terminal to perform subsequent service
communication, thereby improving service transmission performance between terminals.
[0053] In an embodiment of this application, the first communication is SL communication,
and the second communication is WLAN communication or Bluetooth communication.
[0054] In the foregoing descriptions, in a case that the first communication is SL communication
and the second communication is wireless local area network WLAN communication, support
information indicated by the first information is used to indicate one of the following:
that only the SL communication is supported;
that only the WLAN communication is supported; and
that aggregated communication of SL and WLAN is supported; and/or
the preferential information is used to indicate one of the following:
that the SL communication is preferential;
that the WLAN communication is preferential; and
that aggregated communication of SL and WLAN is preferential.
[0055] Specifically, the preferential information may be changed based on an actual situation.
For example, if an initiated service has a relatively high requirement for reliability
and continuity, and/or WLAN link quality is poor, the preferential information may
indicate that the aggregated communication of SL and WLAN or the SL communication
is preferential. If a quality of service (Quality of Service, QoS) requirement of
the initiated service is low, and/or WLAN link quality is good, the preferential information
may indicate that the WLAN communication is preferential, or the aggregated communication
of SL and WLAN is preferential.
[0056] In other words, the preferential information is determined based on a service policy,
and/or the preferential information is determined based on link quality. In other
words, the preferential information may be determined based on a service policy (static
information), may be determined based on an actual link condition (dynamic information),
or may be determined based on both a service policy and an actual link condition.
[0057] Further, the first information is further used to indicate at least one of service
information of the SL communication and address information of the SL communication;
or
the first information is further used to indicate at least one of service information
of the WLAN communication and address information of the WLAN communication;
or
the first information is further used to indicate at least one of service information
of aggregated communication of SL and WLAN and address information of the aggregated
communication of SL and WLAN.
[0058] In the foregoing descriptions, service information of the aggregated communication
of SL and WLAN may be understood as: being used to carry an SL service or a WLAN service.
Correspondingly, address information of the aggregated communication of SL and WLAN
may be address information of the SL communication, or may be address information
of the WLAN communication.
[0059] The service information of the SL communication may specifically include a service
type (such as public safety (public safety) or commercial (commercial)), a service
identifier (service ID), service QoS, and service code (service code).
[0060] The service information of the WLAN communication may specifically include a service
type (such as public safety (public safety) or commercial (commercial)), a service
identifier (service ID), service QoS, and service code (service code).
[0061] In the foregoing descriptions, the address information of the WLAN communication
includes at least one of WLAN port configuration, WLAN identifier information, a WLAN
version, and a WLAN protocol.
[0062] The WLAN identifier information includes:
a basic service set identifier (Basic Service Set Identifier, BSSID), that is, a wireless
fidelity (wireless fidelity, wifi) local area network address (Media Access Control
Address, MAC);
a homogenous extended service set identifier (Homogenous Extended Service Set Identifier,
HESSID) defined in IEEE802 (HESSID defined in IEEE802);
a service set identifier (Service Set Identifier, SSID) defined in IEEE802 (SSID defined
in IEEE 802); and
a WLAN version/protocol such as wifi 1-6, 802.11 a/b/g/n/ac/ax, and an Ethernet type
(EtherType) 0x9E65.
[0063] In the foregoing descriptions, in a case that the first communication is SL communication
and the second communication is Bluetooth communication, support information indicated
by the first information is used to indicate one of the following:
that only the SL communication is supported;
that only Bluetooth communication is supported;
that aggregated communication of SL and Bluetooth is supported; and/or
the preferential information is used to indicate one of the following:
that the SL communication is preferential;
that Bluetooth communication is preferential;
that aggregated communication of SL and Bluetooth is preferential.
[0064] Further, the first information is further used to indicate at least one of service
information of the SL communication and address information of the Bluetooth communication;
or
the first information is further used to indicate at least one of service information
of the Bluetooth communication and address information of the Bluetooth communication;
or
the first information is further used to indicate at least one of service information
of aggregated communication of SL and Bluetooth and address information of the aggregated
communication of SL and Bluetooth.
[0065] In the foregoing descriptions, service information of the aggregated communication
of SL and Bluetooth may be understood as: being used to carry an SL service or a Bluetooth
service. Correspondingly, address information of the aggregated communication of SL
and Bluetooth may be address information of the SL communication, or may be address
information of the Bluetooth communication. Address information of the Bluetooth communication
includes a Bluetooth public address (Bluetooth public address).
[0066] The first information may be carried in a discovery message or a direct communication
request message. For example, in a discovery process triggered by the first terminal,
a broadcast discovery message carries the first information, or in a discovery phase,
the first terminal discovers and selects the second terminal, and after the discovery
phase, the first terminal sends a direct communication request message that carries
the first information to the second terminal.
[0067] The first information may be preconfigured on the first terminal, or the first information
is configured by a network device.
[0068] In an embodiment of this application, after receiving the first information sent
by the first terminal, the method further includes:
sending a discovery response message to the first terminal;
or
sending a direct communication accept message or a direct communication reject message
to the first terminal.
[0069] In this embodiment, sending the discovery response message to the first terminal,
or sending the direct communication accept message or the direct communication reject
message to the first terminal may be understood as a step in which the second terminal
selects the first terminal to perform communication, and the foregoing step is included
in step 302 for execution. In other words, the determining, according to the first
information, whether to select the first terminal for communication includes: sending
a discovery response message to the first terminal; or sending a direct communication
accept message or a direct communication reject message to the first terminal.
[0070] Alternatively, the sending the discovery response message to the first terminal or
sending the direct communication accept message or the direct communication reject
message to the first terminal is performed after step 302 of determining, according
to the first information, whether to select the first terminal to perform communication.
In this case, the second terminal determines, according to the first information,
whether to select the first terminal for communication, and sends response information
to the first terminal, that is, sends a discovery response message to the first terminal;
or sends a direct communication accept message or a direct communication reject message
to the first terminal.
[0071] Specifically, in a case that the second terminal may select the first terminal to
perform communication, the second terminal may send the discovery response message
to the first terminal, where the discovery response message is used to indicate that
the second terminal selects the first terminal for communication; or the second terminal
may send the direct communication accept message to the first terminal.
[0072] In a case that the second terminal may reject to select the first terminal to perform
communication, the second terminal may send the discovery response message to the
first terminal, where the discovery response message is used to indicate that the
second terminal rejects to select the first terminal to perform communication; or
the second terminal may send the direct communication reject message to the first
terminal.
[0073] In addition, the second terminal may further send the discovery response message
to the first terminal in a case that the second terminal selects the first terminal
to perform communication, and the second terminal does not send a message to the first
terminal in a case that the second terminal rejects to select the first terminal to
perform communication.
[0074] If the first information is carried in a discovery message, the first terminal sends
the discovery message to the second terminal, and the second terminal matches the
first information with the support information and/or the preferential information
of the second terminal for the communication, and sends the discovery response message
to the first terminal.
[0075] If the first information is carried in the direct communication request message,
the first terminal sends a discovery message to the second terminal, and the second
terminal matches the first information with the support information and/or the preferential
information of the second terminal for the communication, and if the matching succeeds,
sends a direct communication accept message to the first terminal, or if the matching
fails, sends a direct communication reject message to the first terminal.
[0076] In the foregoing descriptions, the discovery response message carries second information;
or
the direct communication accept message carries second information;
or
the direct communication reject message carries second information; where
the second information is used to indicate support information and/or preferential
information of the second terminal for the communication.
[0077] When sending the discovery response message, the direct communication accept message,
or the direct communication reject message to the first terminal, the second terminal
may also send second information to the first terminal, to notify the first terminal
of the support information and/or the preferential information of the first terminal
for the communication.
[0078] Further, in a case that the first communication is SL communication and the second
communication is WLAN communication, support information indicated by the second information
is used to indicate one of the following:
that only the SL communication is supported;
that only the WLAN communication is supported; and
that aggregated communication of SL and WLAN is supported; and/or
the preferential information that the second information is used to indicate is used
to indicate one of the following:
that the SL communication is preferential;
that the WLAN communication is preferential; and
that aggregated communication of SL and WLAN is preferential.
[0079] In addition, the second information is further used to indicate at least one of service
information of the SL communication and address information of the SL communication;
or
the second information is further used to indicate at least one of service information
of the WLAN communication and address information of the WLAN communication;
or
the second information is further used to indicate at least one of service information
of aggregated communication of SL and WLAN and address information of the aggregated
communication of SL and WLAN.
[0080] The foregoing process is described below by using an example.
[0081] FIG. 4a is a flowchart of a one-step discovery mechanism.
[0082] Step 11: A first terminal triggers a discovery process, and adds first information
to a broadcast message, where the first information is used to indicate support information
and/or preferential information of the first terminal for communication.
[0083] Step 12: A second terminal matches the first information with second information
to determine whether to select the first terminal to perform subsequent service communication,
where the second information is used to indicate support information and/or preferential
information of the second terminal for communication.
[0084] For example, if the first information indication indicates that aggregated communication
of SL and WLAN is supported, and the second information indication indicates that
only SL communication is supported, the second terminal cannot select the first terminal
to perform subsequent service communication.
[0085] For another example, if the first information indication indicates that aggregated
communication of SL and WLAN is supported, and the second information indication indicates
that the aggregated communication of SL and WLAN is supported, the second terminal
can select the first terminal to perform subsequent service communication.
[0086] The first information and the second information may be respectively preconfigured
on the first terminal and the second terminal, or may be configured by using a network
device.
[0087] FIG. 4b is a flowchart of a two-step discovery mechanism.
[0088] Step 21: A first terminal triggers a discovery process, and adds first information
to a broadcast message, where the first information is used to indicate support information
and/or preferential information of the first terminal for communication.
[0089] Step 22: A second terminal matches the first information with second information
to determine whether to select the first terminal to perform subsequent service communication,
where the second information is used to indicate support information and/or preferential
information of the second terminal for communication.
[0090] For example, if the first information indication indicates that aggregated communication
of SL and WLAN is supported, and the second information indication indicates that
only SL communication is supported, the second terminal cannot select the first terminal
to perform subsequent service communication.
[0091] For another example, if the first information indication indicates that aggregated
communication of SL and WLAN is supported, and the second information indication indicates
that the aggregated communication of SL and WLAN is supported, the second terminal
can select the first terminal to perform subsequent service communication.
[0092] Step 23: If the matching succeeds, the second terminal may select the first terminal
to perform subsequent service communication, and send a response message to the first
terminal. Optionally, the response message carries the second information.
[0093] The first information and the second information may be respectively preconfigured
on the first terminal and the second terminal, or may be configured by using a network
device.
[0094] FIG. 4c is a flowchart of a discovery mechanism in a direct communication establishment
phase.
[0095] Step 30: In a discovery phase, a first terminal discovers and selects a second terminal.
[0096] Step 31: The first terminal sends a direct communication request message that carries
the first information to the second terminal.
[0097] Step 32: The second terminal matches the first information with second information
to determine whether to select the first terminal to perform subsequent service communication,
where the second information is used to indicate support information and/or preferential
information of the second terminal for communication.
[0098] For example, if the first information indication indicates that aggregated communication
of SL and WLAN is supported, and the second information indication indicates that
only SL communication is supported, the second terminal cannot select the first terminal
to perform subsequent service communication.
[0099] For another example, if the first information indication indicates that aggregated
communication of SL and WLAN is supported, and the second information indication indicates
that the aggregated communication of SL and WLAN is supported, the second terminal
can select the first terminal to perform subsequent service communication.
[0100] Step 33: If the matching succeeds, the second terminal may select the first terminal
to perform subsequent service communication, and send a direct communication accept
message to the first terminal. If the matching fails, the second terminal does not
select the first terminal to perform subsequent service communication, and sends a
direct communication reject message to the first terminal. Optionally, the direct
communication accept message or the direct communication reject message carries the
second information.
[0101] Through a discovery process, a terminal that supports an aggregated communication
of SL and WLAN function is discovered, so that service transmission between terminals
is subsequently performed through the aggregated communication of SL and WLAN, thereby
ensuring service experience of the terminal and system efficiency.
[0102] FIG. 5 is a structural diagram of an information sending apparatus according to an
embodiment of this application. An information sending apparatus 500 is applied to
a first terminal and includes:
a sending module 501, configured to send first information to a second terminal; where
the first information is used to indicate support information and/or preferential
information of the first terminal for communication, the communication includes at
least one of first communication and second communication, and the first communication
or the second communication is sidelink SL communication.
[0103] Further, the first information is carried in a discovery message or a direct communication
request message.
[0104] Further, the information sending apparatus 500 further includes a receiving module,
configured to:
receive a discovery response message sent by the second terminal;
or
receive a direct communication accept message or a direct communication reject message
sent by the second terminal.
[0105] Further, the discovery response message carries second information;
or
the direct communication accept message carries second information;
or
the direct communication reject message carries second information; where
the second information is used to indicate support information and/or preferential
information of the second terminal for the communication.
[0106] Further, the preferential information is determined based on a service policy, and/or
the preferential information is determined based on link quality.
[0107] Further, in a case that the first communication is SL communication and the second
communication is wireless local area network WLAN communication, the support information
is used to indicate one of the following:
that only the SL communication is supported;
that only the WLAN communication is supported; and
that aggregated communication of SL and WLAN is supported; and/or
the preferential information is used to indicate one of the following:
that the SL communication is preferential;
that the WLAN communication is preferential; and
that aggregated communication of SL and WLAN is preferential.
[0108] Further, the first information is further used to indicate at least one of service
information of the WLAN communication and address information of the WLAN communication;
or
the first information is further used to indicate at least one of service information
of the WLAN communication and address information of the WLAN communication; or
the first information is further used to indicate at least one of service information
of aggregated communication of SL and WLAN and address information of the aggregated
communication of SL and WLAN.
[0109] Further, the address information of the WLAN communication includes at least one
of WLAN port configuration, WLAN identifier information, a WLAN version, and a WLAN
protocol.
[0110] Further, the WLAN identifier information includes a basic service set identifier,
a homogeneous extended service set identifier, and a service set identifier.
[0111] Further, the first information is preconfigured on the first terminal, or the first
information is configured by a network device.
[0112] Further, the first communication is SL communication, and the second communication
is WLAN communication or Bluetooth communication.
[0113] The information sending apparatus in this embodiment of this application may be an
apparatus, or may be a component, an integrated circuit, or a chip in a terminal.
The apparatus may be a mobile terminal, or may be a non-mobile terminal. For example,
the mobile terminal may include but is not limited to the foregoing listed types of
terminals 11. The non-mobile terminal may be a server, a network attached storage
(Network Attached Storage, NAS), a personal computer (personal computer, PC), a television
(television, TV), a teller machine, or a self-service machine. This is not specifically
limited in this embodiment of this application.
[0114] The information sending apparatus in this embodiment of this application may be an
apparatus with an operating system. The operating system may be an Android (Android)
operating system, may be an iOS operating system, or may be another possible operating
system. This is not specifically limited in this embodiment of this application.
[0115] The information sending apparatus 500 provided in this embodiment of this application
can implement each process implemented in the method embodiment of FIG. 2, and a same
technical effect is achieved. To avoid repetition, details are not described herein
again.
[0116] FIG. 6 is a structural diagram of an information receiving apparatus according to
an embodiment of this application. An information receiving apparatus 600 is applied
to a second terminal and includes:
a receiving module 601, configured to receive first information sent by a first terminal,
where the first information is used to indicate support information and/or preferential
information of the first terminal for communication, the communication includes at
least one of first communication and second communication, and the first communication
or the second communication is sidelink SL communication; and
a determining module 602, configured to determine, according to the first information,
whether to select the first terminal to perform communication.
[0117] Further, the first information is carried in a discovery message or a direct communication
request message.
[0118] Further, the information receiving apparatus 600 further includes a sending module,
configured to:
send a discovery response message to the first terminal;
or
send a direct communication accept message or a direct communication reject message
to the first terminal.
[0119] Further, the discovery response message carries second information;
or
the direct communication accept message carries second information;
or
the direct communication reject message carries second information; where
the second information is used to indicate support information and/or preferential
information of the second terminal for the communication.
[0120] Further, the preferential information is determined based on a service policy, and/or
the preferential information is determined based on link quality.
[0121] Further, in a case that the first communication is SL communication and the second
communication is wireless local area network WLAN communication, the support information
is used to indicate one of the following:
that only the SL communication is supported;
that only the WLAN communication is supported; and
that aggregated communication of SL and WLAN is supported; and/or
the preferential information is used to indicate one of the following:
that the SL communication is preferential;
that the WLAN communication is preferential; and
that aggregated communication of SL and WLAN is preferential.
[0122] Further, the first information is further used to indicate at least one of service
information of the WLAN communication and address information of the WLAN communication;
or
the first information is further used to indicate at least one of service information
of the WLAN communication and address information of the WLAN communication; or
the first information is further used to indicate at least one of service information
of aggregated communication of SL and WLAN and address information of the aggregated
communication of SL and WLAN.
[0123] Further, the address information of the WLAN communication includes at least one
of WLAN port configuration, WLAN identifier information, a WLAN version, and a WLAN
protocol.
[0124] Further, the WLAN identifier information includes a basic service set identifier,
a homogeneous extended service set identifier, and a service set identifier.
[0125] Further, the first information is preconfigured on the first terminal, or the first
information is configured by a network device.
[0126] Further, the first communication is SL communication, and the second communication
is WLAN communication or Bluetooth communication.
[0127] The information receiving apparatus 600 provided in this embodiment of this application
can implement each process implemented in the method embodiment of FIG. 3, and a same
technical effect is achieved. To avoid repetition, details are not described herein
again.
[0128] Optionally, as shown in FIG. 7, an embodiment of this application further provides
a terminal 70. The terminal 70 includes a processor 71, a memory 72, and a program
or an instruction that is stored in the memory 72 and executable on the processor
71. When the program or the instruction is executed by the processor 71, each process
in the embodiment shown in FIG. 2 or FIG. 3 is implemented, and a same technical effect
can be achieved.
[0129] FIG. 8 is a schematic diagram of a hardware structure of a terminal according to
an embodiment of this application.
[0130] The terminal 1000 includes but is not limited to components such as a radio frequency
unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a
sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008,
a memory 1009, and a processor 1010.
[0131] It may be understood by a person skilled in the art that the terminal 1000 may further
include a power supply (such as a battery) that supplies power to each component.
The power supply may be logically connected to the processor 1010 by using a power
management system, to implement functions such as charging, discharging, and power
consumption management by using the power management system. A structure of the terminal
shown in FIG. 8 does not constitute a limitation on the terminal device, and may include
more or fewer parts than those shown in the figure, or combine some parts, or have
different part arrangements. Details are not described herein again.
[0132] It should be understood that, in this embodiment of this application, the input unit
1004 may include a graphics processing unit (Graphics Processing Unit, GPU) 10041
and a microphone 10042. The graphics processing unit 10041 processes image data of
a static picture or a video obtained by an image capture apparatus (such as a camera)
in a video capture mode or an image capture mode. The display unit 1006 may include
a display panel 10061, and the display panel 10061 may be configured in a form of
a liquid crystal display, an organic light emitting diode, or the like. The user input
unit 1007 includes a touch panel 10071 and another input device 10072. The touch panel
10071 is also referred to as a touchscreen. The touch panel 10071 may include two
parts: a touch detection apparatus and a touch controller. The another input device
10072 may include but is not limited to one or more of a physical keyboard, a function
key (such as a volume control key or an on/off key), a trackball, a mouse, a joystick,
and the like. Details are not described herein.
[0133] In this embodiment of this application, after receiving downlink data from a network
side device, the radio frequency unit 1001 sends the downlink data to the processor
1010 for processing, and sends uplink data to the base station. Generally, the radio
frequency unit 1001 includes but is not limited to an antenna, at least one amplifier,
a transceiver, a coupler, a low noise amplifier, a duplexer, and the like.
[0134] The memory 1009 may be configured to store a software program or an instruction and
various data. The memory 1009 may mainly include a storage program or instruction
area and a storage data area, where the storage program or instruction area may store
an operating system, an application program or an instruction required by at least
one function (such as a sound play function or an image play function), and the like.
In addition, the memory 1009 may include a high-speed random access memory, and may
further include a non-volatile memory. The non-volatile memory may be a read-only
memory (Read-only Memory, ROM), a programmable read-only memory (Programmable ROM,
PROM), an erasable programmable read-only memory (Erasable PROM, EPROM), an electrically
erasable programmable read-only memory (Electrically EPROM, EEPROM), or a flash memory,
for example, at least one magnetic disk storage device, a flash memory device, or
another non-volatile solid-state storage device.
[0135] The processor 1010 may include one or more processing units. Optionally, the processor
1010 may be integrated with an application processor and a modem processor. The application
processor mainly processes an operating system, a user interface, an application program
or an instruction, and the like, and the modem processor mainly processes wireless
communication, for example, a baseband processor. It may be understood that the modem
processor may also not be integrated into the processor 1010.
[0136] In a case that the terminal 1000 is a first terminal, the radio frequency unit 1001
is configured to send first information to a second terminal.
[0137] The first information is used to indicate support information and/or preferential
information of the first terminal for communication, the communication includes at
least one of first communication and second communication, and the first communication
or the second communication is sidelink SL communication.
[0138] Further, the first information is carried in a discovery message or a direct communication
request message.
[0139] Further, the radio frequency unit 1001 is further configured to receive a discovery
response message sent by the second terminal;
or
receive a direct communication accept message or a direct communication reject message
sent by the second terminal.
[0140] Further, the discovery response message carries second information;
or
the direct communication accept message carries second information;
or
the direct communication reject message carries second information; where
the second information is used to indicate support information and/or preferential
information of the second terminal for the communication.
[0141] Further, the preferential information is determined based on a service policy, and/or
the preferential information is determined based on link quality.
[0142] Further, in a case that the first communication is SL communication and the second
communication is wireless local area network WLAN communication, the support information
is used to indicate one of the following:
that only the SL communication is supported;
that only the WLAN communication is supported; and
that aggregated communication of SL and WLAN is supported; and/or
the preferential information is used to indicate one of the following:
that the SL communication is preferential;
that the WLAN communication is preferential; and
that aggregated communication of SL and WLAN is preferential.
[0143] Further, the first information is further used to indicate at least one of service
information of the WLAN communication and address information of the WLAN communication;
or
the first information is further used to indicate at least one of service information
of the WLAN communication and address information of the WLAN communication; or
the first information is further used to indicate at least one of service information
of aggregated communication of SL and WLAN and address information of the aggregated
communication of SL and WLAN.
[0144] Further, the address information of the WLAN communication includes at least one
of WLAN port configuration, WLAN identifier information, a WLAN version, and a WLAN
protocol.
[0145] Further, the WLAN identifier information includes a basic service set identifier,
a homogeneous extended service set identifier, and a service set identifier.
[0146] Further, the first information is preconfigured on the first terminal, or the first
information is configured by a network device.
[0147] Further, the first communication is SL communication, and the second communication
is WLAN communication or Bluetooth communication.
[0148] The first terminal provided in the foregoing embodiment can implement each process
implemented in the method embodiment of FIG. 2, and a same technical effect is achieved.
To avoid repetition, details are not described herein again.
[0149] In a case that the terminal 1000 is a second terminal, the radio frequency unit 1001
is configured to receive first information sent by a first terminal, where the first
information is used to indicate support information and/or preferential information
of the first terminal for communication, the communication includes at least one of
first communication and second communication, and the first communication or the second
communication is sidelink SL communication; and
[0150] The processor 1010 is configured to determine, according to the first information,
whether to select the first terminal to perform communication.
[0151] Further, the first information is carried in a discovery message or a direct communication
request message.
[0152] Further, the radio frequency unit 1001 is further configured to:
send a discovery response message to the first terminal;
or
send a direct communication accept message or a direct communication reject message
to the first terminal.
[0153] Further, the discovery response message carries second information;
or
the direct communication accept message carries second information;
or
the direct communication reject message carries second information; where
the second information is used to indicate support information and/or preferential
information of the second terminal for the communication.
[0154] Further, the preferential information is determined based on a service policy, and/or
the preferential information is determined based on link quality.
[0155] Further, in a case that the first communication is SL communication and the second
communication is wireless local area network WLAN communication, the support information
is used to indicate one of the following:
that only the SL communication is supported;
that only the WLAN communication is supported; and
that aggregated communication of SL and WLAN is supported; and/or
the preferential information is used to indicate one of the following:
that the SL communication is preferential;
that the WLAN communication is preferential; and
that aggregated communication of SL and WLAN is preferential.
[0156] Further, the first information is further used to indicate at least one of service
information of the WLAN communication and address information of the WLAN communication;
or
the first information is further used to indicate at least one of service information
of the WLAN communication and address information of the WLAN communication; or
the first information is further used to indicate at least one of service information
of aggregated communication of SL and WLAN and address information of the aggregated
communication of SL and WLAN.
[0157] Further, the address information of the WLAN communication includes at least one
of WLAN port configuration, WLAN identifier information, a WLAN version, and a WLAN
protocol.
[0158] Further, the WLAN identifier information includes a basic service set identifier,
a homogeneous extended service set identifier, and a service set identifier.
[0159] Further, the first information is preconfigured on the first terminal, or the first
information is configured by a network device.
[0160] Further, the first communication is SL communication, and the second communication
is WLAN communication or Bluetooth communication.
[0161] The first terminal provided in the foregoing embodiment can implement each process
implemented in the method embodiment of FIG. 3, and a same technical effect is achieved.
To avoid repetition, details are not described herein again.
[0162] An embodiment of this application further provides a readable storage medium. A program
or an instruction is stored in the readable storage medium. When the program or the
instruction is executed by a processor, each process of the method embodiment in FIG.
2 or FIG. 3 can be implemented, and a same technical effect can be achieved. To avoid
repetition, details are not described herein.
[0163] The processor is a processor in the terminal in the foregoing embodiment. The readable
storage medium includes a computer-readable storage medium such as a read-only memory
(Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic
disk, an optical disc, or the like.
[0164] An embodiment of this application further provides a chip. The chip includes a processor
and a communication interface, the communication interface is coupled to the processor,
and the processor is configured to run a program or an instruction of a network side
device to implement the processes of the method embodiments in FIG. 2 and FIG. 3,
and a same technical effect can be achieved. To avoid repetition, details are not
described herein again.
[0165] It should be understood that the chip mentioned in this embodiment of this application
may also be referred to as a system-level chip, a system chip, a chip system, or a
system on a chip.
[0166] It should be noted that in this specification, the term "include", "including", or
any other variant is intended to cover non-exclusive inclusion, so that a process,
method, article, or apparatus that includes a series of elements includes not only
those elements but also other elements that are not explicitly listed, or includes
elements inherent to such a process, method, article, or apparatus. In the absence
of more restrictions, an element defined by the statement "including a..." does not
exclude another same element in a process, method, article, or apparatus that includes
the element. In addition, it should be noted that a scope of the method and the apparatus
in the embodiments of this application is not limited to: performing a function in
a sequence shown or discussed, and may further include: performing a function in a
basically simultaneous manner or in a reverse sequence based on an involved function.
For example, the described method may be performed in a different order, and various
steps may be added, omitted, or combined. In addition, features described with reference
to some examples may be combined in other examples.
[0167] A person of ordinary skill in the art may recognize that, with reference to the examples
described in the embodiments disclosed herein, units and algorithm steps may be implemented
by electronic hardware or a combination of computer software and electronic hardware.
Whether these functions are implemented by using hardware or software depends on the
specific application and design constraints of the technical solution. A person skilled
in the art may use different methods for each particular application to implement
the described functions, but such implementation shall not be considered to be outside
the scope of the present disclosure.
[0168] It may be clearly understood by a person skilled in the art that, for convenience
and brevity of description, for a specific working process of the foregoing described
system, apparatus, and unit, reference may be made to a corresponding process in the
foregoing method embodiments, and details are not described herein again.
[0169] In the embodiments provided in this application, it should be understood that the
disclosed apparatus and method may be implemented in another manner. For example,
the described apparatus embodiment is merely an example. For example, the unit division
is merely logical function division. In actual implementation, there may be another
division manner. For example, multiple units or components may be combined or integrated
into another system, or some features may be ignored or not performed. In addition,
the displayed or discussed mutual coupling or direct coupling or communication connection
may be through some interfaces, indirect coupling or communication connection of the
apparatus or unit, and may be in an electrical, mechanical, or another form.
[0170] The units described as separate parts may or may not be physically separate, and
parts displayed as units may or may not be physical units, may be located in one place,
or may be distributed on multiple network units. Some or all of the units may be selected
based on an actual requirement to implement the objectives of the solutions in the
embodiments.
[0171] In addition, functional units in the embodiments of the present disclosure may be
integrated into one processing unit, or each unit may exist separately physically,
or two or more units may be integrated into one unit.
[0172] According to the descriptions of the foregoing implementations, a person skilled
in the art may clearly understand that the foregoing method embodiments may be implemented
by using software and a required universal hardware platform, or certainly may be
implemented by using hardware. However, in many cases, the former is a better implementation.
Based on such an understanding, the technical solutions of this application essentially
or the part contributing to existing technologies may be implemented in a form of
a software product. The computer software product is stored in a storage medium (such
as a ROM/RAM, a magnetic disk, or an optical disc) and includes several instructions
for instructing a terminal (which may be a mobile phone, a computer, a server, an
air conditioner, or a network device) to execute the methods described in the embodiments
of this application.
[0173] It may be understood that the embodiments described in the embodiments of the present
disclosure may be implemented by hardware, software, firmware, middleware, microcode,
or a combination thereof. For hardware implementation, a module, a unit, a subunit,
or the like may be implemented in one or more application specific integrated circuits
(Application Specific Integrated Circuits, ASIC), a digital signal processor (Digital
Signal Processing, DSP), a digital signal processing device (DSP Device, DSPD), a
programmable logic device (Programmable Logic Device, PLD), a field-programmable gate
array (Field-Programmable Gate Array, FPGA), a general purpose processor, a controller,
a microcontroller, a microprocessor, another electronic unit configured to perform
the functions described in the present disclosure, or a combination thereof.
[0174] For software implementations, the techniques described in the embodiments of the
present disclosure may be implemented by modules (for example, processes and functions)
that perform the functions described in the embodiments of the present disclosure.
The software code may be stored in a memory and executed by a processor. The memory
may be implemented in or outside the processor.
[0175] The embodiments of this application are described with reference to the accompanying
drawings. However, this application is not limited to the foregoing specific implementations.
The foregoing specific implementations are merely examples, but are not limiting.
A person of ordinary skill in the art may make many forms without departing from the
objective and the scope of the claims of this application, and these forms all fall
within the protection scope of this application.
1. An information sending method, applied to a first terminal and comprising:
sending first information to a second terminal; wherein
the first information is used to indicate support information and/or preferential
information of the first terminal for communication, the communication comprises at
least one of first communication and second communication, and the first communication
or the second communication is sidelink SL communication.
2. The method according to claim 1, wherein the first information is carried in a discovery
message or a direct communication request message.
3. The method according to claim 1, after sending the first information to the second
terminal, further comprising:
receiving a discovery response message sent by the second terminal;
or
receiving a direct communication accept message or a direct communication reject message
sent by the second terminal.
4. The method according to claim 3, wherein the discovery response message carries second
information;
or
the direct communication accept message carries second information;
or
the direct communication reject message carries second information; wherein
the second information is used to indicate support information and/or preferential
information of the second terminal for the communication.
5. The method according to claim 1, wherein the preferential information is determined
based on a service policy, and/or the preferential information is determined based
on link quality.
6. The method according to claim 1, wherein in a case that the first communication is
the SL communication and the second communication is wireless local area network WLAN
communication, the support information is used to indicate one of the following:
that only the SL communication is supported;
that only the WLAN communication is supported; and
that aggregated communication of SL and WLAN is supported; and/or
the preferential information is used to indicate one of the following:
that the SL communication is preferential;
that the WLAN communication is preferential; and
that aggregated communication of SL and WLAN is preferential.
7. The method according to claim 6, wherein the first information is further used to
indicate at least one of service information of the SL communication and address information
of the SL communication;
or
the first information is further used to indicate at least one of service information
of the WLAN communication and address information of the WLAN communication;
or
the first information is further used to indicate at least one of service information
of the aggregated communication of SL and WLAN and address information of the aggregated
communication of SL and WLAN.
8. The method according to claim 7, wherein the address information of the WLAN communication
comprises at least one of WLAN port configuration, WLAN identification information,
a WLAN version, and a WLAN protocol.
9. The method according to claim 8, wherein the WLAN identification information comprises
a basic service set identifier, a homogeneous extended service set identifier, and
a service set identifier.
10. The method according to claim 1, wherein the first information is preconfigured on
the first terminal, or the first information is configured by a network device.
11. The method according to claim 1, wherein the first communication is the SL communication,
and the second communication is WLAN communication or Bluetooth communication.
12. An information receiving method, applied to a second terminal and comprising:
receiving first information sent by a first terminal, wherein the first information
is used to indicate support information and/or preferential information of the first
terminal for communication, the communication comprises at least one of first communication
and second communication, and the first communication or the second communication
is sidelink SL communication; and
determining, according to the first information, whether to select the first terminal
to perform communication.
13. The method according to claim 12, wherein the first information is carried in a discovery
message or a direct communication request message.
14. The method according to claim 12, after receiving the first information sent by the
first terminal, further comprising:
sending a discovery response message to the first terminal;
or
sending a direct communication accept message or a direct communication reject message
to the first terminal.
15. The method according to claim 14, wherein the discovery response message carries second
information;
or
the direct communication accept message carries second information;
or
the direct communication reject message carries second information; wherein
the second information is used to indicate support information and/or preferential
information of the second terminal for the communication.
16. The method according to claim 12, wherein the preferential information is determined
based on a service policy, and/or the preferential information is determined based
on link quality.
17. The method according to claim 12, wherein in a case that the first communication is
the SL communication and the second communication is wireless local area network WLAN
communication, the support information is used to indicate one of the following:
that only the SL communication is supported;
that only the WLAN communication is supported; and
that aggregated communication of SL and WLAN is supported; and/or
the preferential information is used to indicate one of the following:
that the SL communication is preferential;
that the WLAN communication is preferential; and
that aggregated communication of SL and WLAN is preferential.
18. The method according to claim 17, wherein the first information is further used to
indicate at least one of service information of the SL communication and address information
of the SL communication;
or
the first information is further used to indicate at least one of service information
of the WLAN communication and address information of the WLAN communication;
or
the first information is further used to indicate at least one of service information
of the aggregated communication of SL and WLAN and address information of the aggregated
communication of SL and WLAN.
19. The method according to claim 18, wherein the address information of the WLAN communication
comprises at least one of WLAN port configuration, WLAN identification information,
a WLAN version, and a WLAN protocol.
20. The method according to claim 19, wherein the WLAN identification information comprises
a basic service set identifier, a homogeneous extended service set identifier, and
a service set identifier.
21. The method according to claim 12, wherein the first information is preconfigured on
the first terminal, or the first information is configured by a network device.
22. The method according to claim 12, wherein the first communication is the SL communication,
and the second communication is WLAN communication or Bluetooth communication.
23. An information sending apparatus, comprising:
a sending module, configured to send first information to a second terminal; wherein
the first information is used to indicate support information and/or preferential
information of the first terminal for communication, the communication comprises at
least one of first communication and second communication, and the first communication
or the second communication is sidelink SL communication.
24. The apparatus according to claim 23, wherein in a case that the first communication
is the SL communication and the second communication is wireless local area network
WLAN communication, the support information is used to indicate one of the following:
that only the SL communication is supported;
that only the WLAN communication is supported; and
that aggregated communication of SL and WLAN is supported; and/or
the preferential information is used to indicate one of the following:
that the SL communication is preferential;
that the WLAN communication is preferential; and
that aggregated communication of SL and WLAN is preferential.
25. The apparatus according to claim 24, wherein the first information is further used
to indicate at least one of service information of the SL communication and address
information of the SL communication;
or
the first information is further used to indicate at least one of service information
of the WLAN communication and address information of the WLAN communication;
or
the first information is further used to indicate at least one of service information
of the aggregated communication of SL and WLAN and address information of the aggregated
communication of SL and WLAN.
26. An information receiving apparatus, comprising:
a receiving module, configured to receive first information sent by a first terminal,
wherein the first information is used to indicate support information and/or preferential
information of the first terminal for communication, the communication comprises at
least one of first communication and second communication, and the first communication
or the second communication is sidelink SL communication; and
a determining module, configured to determine, according to the first information,
whether to select the first terminal to perform communication.
27. The apparatus according to claim 26, wherein in a case that the first communication
is the SL communication and the second communication is wireless local area network
WLAN communication, the support information is used to indicate one of the following:
that only the SL communication is supported;
that only the WLAN communication is supported; and
that aggregated communication of SL and WLAN is supported; and/or
the preferential information is used to indicate one of the following:
that the SL communication is preferential;
that the WLAN communication is preferential; and
that aggregated communication of SL and WLAN is preferential.
28. The apparatus according to claim 27, wherein the first information is further used
to indicate at least one of service information of the SL communication and address
information of the SL communication;
or
the first information is further used to indicate at least one of service information
of the WLAN communication and address information of the WLAN communication;
or
the first information is further used to indicate at least one of service information
of the aggregated communication of SL and WLAN and address information of the aggregated
communication of SL and WLAN.
29. A terminal, comprising a processor, a memory, and a program or instruction that is
stored in the memory and executable on the processor, wherein when the program or
the instruction is executed by the processor, steps in the information sending method
in any one of claims 1 to 11 are implemented, or when the program or the instruction
is executed by the processor, steps in the information receiving method in any one
of claims 12 to 22 are implemented.
30. A readable storage medium, wherein a program or an instruction is stored on the readable
storage medium, and when the program or the instruction is executed by a processor,
steps in the information sending method in any one of claims 1 to 11 are implemented,
or when the program or the instruction is executed by the processor, steps in the
information receiving method in any one of claims 12 to 22 are implemented.
31. A chip, wherein the chip comprises a processor and a communication interface, the
communication interface is coupled to the processor, and the processor is configured
to run a program or an instruction of a network side device to implement steps in
the information sending method in any one of claims 1 to 11, or steps in the information
receiving method in any one of claims 12 to 22.
32. A computer software product, wherein the computer software product is stored in a
non-volatile storage medium, and the software product is configured to be executed
by at least one processor to implement steps in the information sending method in
any one of claims 1 to 11, or steps in the information receiving method in any one
of claims 12 to 22.
33. A terminal, wherein the terminal is configured to perform the information sending
method according to any one of claims 1 to 11, or perform the information receiving
method according to any one of claims 12 to 22.