Communication management method and device, terminal, storage medium and chip
Through the device capability list, the multiple direct-connect communication capabilities of the second terminal are managed uniformly, and the problem of independent direct-connect communication capabilities in the prior art is solved, unified connection and service switching across protocols is realized, and communication efficiency and flexibility are improved. .
Patent Information
- Application Number
- CN202411413037.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-10
- Publication Date
- 2024-12-31
AI Technical Summary
In the existing direct-connect communication technology, each direct-connect communication capability is independent and difficult to manage in a unified manner, resulting in the inability to achieve unified connection and service switching across protocols when communication needs are required.
Through the device capability list, a variety of direct-connected communication capabilities of the second terminal are uniformly managed, and broadcast messages are received and terminal identification and communication capabilities are determined, so as to achieve unified management and service decoupling of different direct-connected communication capabilities.
It realizes unified connection and service unity of multiple direct-connected communication capabilities, allowing the same service purpose to be achieved in different transmission methods, and improving communication efficiency and flexibility.
Smart Images

Figure CN119233440A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a communication management method, device, terminal, storage medium and chip. Background Art
[0002] Direct connection (Device-to-Device, D2D) communication technology refers to a communication method for direct communication between two terminals. Currently common direct connection communication technologies include Bluetooth (BT), Wireless Local Area Network (WLAN), Peer to Peer lending (P2P) and sidelink. Each direct connection communication technology has different transmission distances and transmission characteristics; and each direct connection communication technology is independent, that is, when a user wants to use a direct connection communication technology for data transmission, the user can open the corresponding function module of the corresponding direct connection communication technology, and based on the opened function module, use the corresponding direct connection communication technology for data transmission. Summary of the invention
[0003] The embodiments of the present application provide a communication management method, apparatus, terminal, storage medium and chip, which manage the multiple direct communication capabilities of the second terminal in a unified manner through the device capability list, thereby realizing the unity of connection and service of multiple independent direct communication capabilities. The technical solution is as follows:
[0004] In one aspect, a communication management method is provided, the method comprising:
[0005] Based on the multiple direct communication modules of the first terminal, receiving at least one first broadcast message of the second terminal;
[0006] Determining multiple direct connection communication capabilities of the second terminal based on the at least one first broadcast message;
[0007] Determine, based on the terminal identifier of the second terminal and the multiple direct communication capabilities, a device capability list, wherein the device capability list is used to store a correspondence between the discovered terminal identifier and the multiple direct communication capabilities corresponding thereto;
[0008] When the first terminal has a communication demand, direct communication is performed with the second terminal based on the device capability list.
[0009] In another aspect, a communication management device is provided, the device comprising:
[0010] A receiving module, configured to receive at least one first broadcast message of a second terminal based on a plurality of direct communication modules of the first terminal;
[0011] A first determining module, configured to determine multiple direct connection communication capabilities of the second terminal based on the at least one first broadcast message;
[0012] a second determining module, configured to determine a device capability list based on the terminal identifier of the second terminal and the multiple direct communication capabilities, wherein the device capability list is used to store a correspondence between the discovered terminal identifier and the multiple direct communication capabilities corresponding thereto;
[0013] The communication module is used to directly communicate with the second terminal based on the device capability list when the first terminal has a communication demand.
[0014] On the other hand, a terminal is provided, the terminal comprising a processor and a memory, the memory storing at least one program code, the at least one program code being loaded and executed by the processor to implement the communication management method described above.
[0015] On the other hand, a computer-readable storage medium is provided, wherein at least one program code is stored in the storage medium, and the at least one program code is loaded and executed by a processor to implement the communication management method described above.
[0016] On the other hand, a chip is provided, wherein the chip stores at least one program code, and the at least one program code is used to be executed by a processor to implement the communication management method described above.
[0017] In the field of direct communication, a terminal may have multiple direct communication capabilities; and multiple direct communication capabilities are independent; in an embodiment of the present application, after obtaining multiple direct communication capabilities of the second terminal, the multiple direct communication capabilities of the second terminal are uniformly managed through the device capability list, thereby realizing the unity of connection and business of multiple independent direct communication capabilities. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 A schematic diagram showing an implementation environment of a communication management method shown in an exemplary embodiment of the present application;
[0019] Figure 2 A schematic diagram of the physical structure of a first terminal and a second terminal shown in an exemplary embodiment of the present application is shown;
[0020] Figure 3 A flow chart of a communication management method according to an exemplary embodiment of the present application is shown;
[0021] Figure 4 A flow chart of a communication management method according to an exemplary embodiment of the present application is shown;
[0022] Figure 5 A flow chart of a communication management method according to an exemplary embodiment of the present application is shown;
[0023] Figure 6 A flow chart of a communication management method according to an exemplary embodiment of the present application is shown;
[0024] Figure 7 A flow chart of a communication management method according to an exemplary embodiment of the present application is shown;
[0025] Figure 8 A flow chart of a communication management method according to an exemplary embodiment of the present application is shown;
[0026] Fig. 9 A block diagram of a communication management device shown in an exemplary embodiment of the present application is shown;
[0027] Fig.10 A block diagram of a terminal according to an exemplary embodiment of the present application is shown. DETAILED DESCRIPTION
[0028] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below in conjunction with the accompanying drawings.
[0029] The term "multiple" as used herein refers to two or more than two. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the related objects are in an "or" relationship.
[0030] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals involved in this application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions. For example, the first broadcast message and the second broadcast message involved in this application are obtained with full authorization.
[0031] Please refer to Figure 1 , which shows a schematic diagram of an implementation environment of an exemplary communication management method of the present application. Figure 1, the implementation environment includes a first terminal 101 and a second terminal 102, and the first terminal 101 and the second terminal 102 can communicate with each other through a direct communication module. In addition, the first terminal 101 and the second terminal 102 both have multiple direct communication modules, and the first terminal 101 can manage multiple direct communication capabilities corresponding to multiple direct communication modules of the second terminal 102 based on multiple direct communication modules, so as to achieve the purpose of managing different connection standards in a unified manner to achieve different services; and it can also achieve different services between the first terminal 101 and the second terminal 102 by using different transmissions to follow the same message. Multiple direct communication modules can include multiple of BT, WLAN, P2P and sidelink.
[0032] In some embodiments, the first terminal 101 may include various handheld devices (mobile phones or tablet computers, etc.) with multiple direct communication modules, vehicle-mounted devices, wearable devices, computing devices, or other processing devices connected to a wireless modem, as well as various forms of user equipment (UE), mobile stations (MS), etc. For the convenience of description, in the embodiments of the present application, the above-mentioned devices are collectively referred to as the first terminal 101. In the embodiments of the present application, "UE" is used in some places to represent "first terminal 101". The second terminal 102 may include various handheld devices, vehicle-mounted devices, wearable devices, computing devices, or other processing devices linked to a wireless modem, as well as various forms of user equipment, mobile stations, etc.
[0033] Please refer to Figure 2, the first terminal 101 includes a first entity device (Device), a first session (Session) and a transmitter (Transmitter); the first entity device mainly includes two identifiers, namely, a terminal identifier and a direct communication capability. The terminal identifier is used to distinguish different entity devices in the communication system. The terminal identifier can be used as a unique identifier of the device in the entire communication system, and the terminal identifier is used to uniquely identify the first entity device. The direct communication capability is used to indicate the direct communication capability possessed by the first entity device. The first session represents a specific service interaction process in the communication system, and uses the terminal identifiers of the communicating parties and the session identifier of the initiator to mark a session in the communication system, that is, the first session is represented by the terminal identifier of the first entity device, the terminal identifier of the second entity device and the session identifier of the first session; different message interaction processes represent different sessions; for example, a voice message interaction process represents a voice session; a text interaction process represents a text session. The first transmitter is used to indicate the message sending capability of the first entity device. One entity device may have multiple message sending capabilities. For example, the first terminal 101 includes two direct communication modules, and the two direct communication modules include BT and WLAN. Then the first transmitter includes a BT transmitter (Transimmiter-BT) and a WLAN transmitter (Transimmiter-WLAN). The BT transmitter is used to indicate that the first entity device has the ability to send Bluetooth messages, and the WLAN transmitter is used to indicate that the first entity device has the ability to send WiFi messages.
[0034] In some embodiments, the second terminal 102 includes a second entity device, a second session, and a second transmitter; the second entity device mainly includes two identifiers, a terminal identifier and a direct communication capability, the terminal identifier is used to uniquely identify the second entity device, and the direct communication capability is used to indicate the direct communication capability of the second entity device. The second session is represented by the terminal identifier of the first entity device, the terminal identifier of the second entity device, and the session identifier of the second session; different message interaction processes represent different sessions; for example, a voice message interaction process represents a voice session; and a text interaction process represents a text session. The second transmitter is used to indicate the message sending capability of the second entity device, and one entity device may have multiple message sending capabilities; for example, the second terminal 102 includes two direct communication modules, and the two direct communication modules include BT and WLAN, then the second transmitter includes a BT transmitter (Transimmiter-BT) and a WLAN transmitter (Transimmiter-WLAN), the BT transmitter is used to indicate that the second entity device has the ability to send Bluetooth messages, and the WLAN transmitter is used to indicate that the second entity device has the ability to send WiFi messages. In some embodiments, data is transmitted between the first session and the second session via messages; messages are used to indicate the same protocol information that both communicating parties must follow, and there may be multiple message exchanges between the first session and the second session.
[0035] In the embodiment of the present application, the role of the first entity device and the second entity device is to reflect the communication entity in the communication system; and the concepts of session and message are proposed in the first terminal 101 and the second terminal 102, so as to decouple the transmission technology and the service, so that the service does not depend on the specific direct transmission mode, and the service layer can be independently implemented and switched on different direct transmission modes.
[0036] Please refer to Figure 3 , which shows a flow chart of a communication management method shown in an exemplary embodiment of the present application. Figure 3 , the method comprising:
[0037] Step 301: Based on multiple direct communication modules of a first terminal, receive at least one first broadcast message of a second terminal.
[0038] The multiple direct communication modules include multiple ones of BT, WLAN, P2P and sidelink. The number of the first broadcast message can be one or more; in some embodiments, the number of the first broadcast message is multiple, and the second terminal broadcasts the first broadcast message on multiple direct communication modules respectively, and the first broadcast message broadcast on different direct communication modules is used to inform the first terminal that it has the corresponding direct communication capability; for example, the first terminal has BT and WLAN, and both BT and WLAN are in the on state (or called the connected state); the second terminal broadcasts the first broadcast message on BT, then the first terminal receives the first broadcast message based on BT, and determines that the second terminal has BT communication capability; the second terminal broadcasts the first message on WLAN; then the first terminal receives the first broadcast message based on WLAN, and determines that the second terminal has WLAN communication capability. In the embodiment of the present application, by broadcasting the first broadcast message on multiple direct communication modules respectively, to inform the first terminal that it has the corresponding direct communication capability, the operation is relatively simple, and there is no need to change the protocol and content of the first broadcast message.
[0039] In other embodiments, the number of first broadcast messages is one, the second terminal broadcasts the first broadcast message on any direct communication module among multiple direct communication modules, the first terminal receives the first broadcast message based on the corresponding direct communication module, and the broadcast content of the first broadcast message includes multiple direct communication capabilities supported by the second terminal. In the embodiment of the present application, the second terminal can inform the first terminal of its multiple direct communication capabilities through one first broadcast message, thereby saving broadcast resources and improving the efficiency of determining the multiple direct communication capabilities of the second terminal.
[0040] In other embodiments, while the first terminal receives at least one first broadcast message from the second terminal based on multiple direct communication modules, the first terminal will also broadcast at least one second broadcast message based on the multiple direct communication modules of the first terminal, the at least one second broadcast message carries the terminal identifier of the first terminal, and the at least one second broadcast message is used to broadcast multiple direct communication capabilities corresponding to the multiple direct communication modules of the first terminal, so that the terminal receiving the second broadcast message can uniformly manage the multiple direct communication capabilities of the first terminal. For example, if the first terminal includes BT and WLAN, the first terminal broadcasts the second broadcast message on BT to inform the terminal receiving the second broadcast message that it has BT communication capabilities; the first terminal broadcasts the second broadcast message on WLAN to inform the terminal receiving the second broadcast message that it has WLAN communication capabilities.
[0041] In some embodiments, the setting interface of the first terminal includes a direct communication switch; in response to the direct communication switch being turned on, step 301 is executed; or, when the first terminal is turned on or restarted, the first terminal determines the state of the direct communication switch; when the direct communication switch is in the on state, step 301 is executed, thereby realizing control through the direct communication switch whether to manage multiple direct communication capabilities of other terminals (such as the second terminal).
[0042] In other embodiments, the user may also select some direct communication modules to manage some direct communication capabilities of other terminals; accordingly, the process may be: in response to the direct communication switch being turned on, the first terminal displays a selection interface, the selection interface includes all direct communication modules of the first terminal, and the user can select multiple direct communication modules from all direct communication modules; the first terminal obtains multiple selected direct communication modules from all direct communication modules, and then executes step 301. In the embodiment of the present application, the first terminal displays the selection interface so that the user can manually select the direct communication module he wants to manage, and the operation is flexible and convenient.
[0043] In other embodiments, the first terminal may also comprehensively select some direct communication modules based on information such as the on-state or usage frequency of all direct communication modules; accordingly, the process may be: the first terminal determines the on-state of all direct communication modules; based on the on-state of all direct communication modules, multiple direct communication modules in the on-state are selected from all direct communication modules; or, the first terminal determines the usage frequency of all direct communication modules, and based on the usage frequency of all direct communication modules, multiple direct communication modules with a usage frequency greater than a preset frequency are selected from all direct communication modules. In an embodiment of the present application, the first terminal may comprehensively select some direct communication modules based on information such as the on-state or usage frequency of all direct communication modules, thereby selecting direct communication modules that are frequently used or preferred by users, and then managing these direct communication capabilities of other terminals.
[0044] Step 302: Determine multiple direct connection communication capabilities of the second terminal based on at least one first broadcast message.
[0045] The multiple direct connection communication capabilities include multiple communication capabilities of BT communication capability corresponding to BT, Wifi communication capability corresponding to WLAN, P2P communication capability corresponding to P2P, and sidelink communication capability corresponding to sidelink.
[0046] Step 303: Based on the terminal identification and multiple direct communication capabilities of the second terminal, a device capability list is determined, where the device capability list is used to store the correspondence between the discovered terminal identification and the multiple direct communication capabilities corresponding thereto.
[0047] The device capability list stores the terminal identification of at least one discovered second terminal and the multiple direct communication capabilities corresponding to each second terminal. For example, the device capability list stores the BT communication capability and Wifi communication capability corresponding to the second terminal 1 and the second terminal 1, and the P2P communication capability and sidelink communication capability corresponding to the second terminal 2 and the second terminal 2.
[0048] Step 304: When the first terminal has a communication demand, it directly communicates with the second terminal based on the device capability list.
[0049] The communication demand may be a telephone communication demand or a text communication demand; and the device capability list stores the terminal identification of at least one second terminal discovered and a plurality of direct communication capabilities corresponding to each second terminal; therefore, when the first terminal has a communication demand, the second terminal and the target direct communication capability corresponding to the second terminal are determined from the device capability list, and then direct communication is performed with the second terminal based on the target direct communication capability.
[0050] In the field of direct communication, a terminal may have multiple direct communication capabilities; and multiple direct communication capabilities are independent; in an embodiment of the present application, after obtaining multiple direct communication capabilities of the second terminal, the multiple direct communication capabilities of the second terminal are uniformly managed through the device capability list, thereby realizing the unity of connection and business of multiple independent direct communication capabilities.
[0051] Please refer to Figure 4 , which shows a flow chart of a communication management method shown in an exemplary embodiment of the present application. In the embodiment of the present application, the number of first broadcast messages is multiple, and different direct communication modules receive first broadcast messages of different direct communication types as an example for explanation. Figure 4 , the method comprising:
[0052] Step 401: A first terminal receives at least one first broadcast message from a second terminal based on multiple direct communication modules.
[0053] The multiple direct communication modules include multiple ones of BT, WLAN, P2P, and sidelink. For example, if the multiple direct communication modules include BT and WLAN, the second terminal broadcasts the first broadcast message on BT, and the first terminal receives the first broadcast message broadcast by the second terminal on BT based on BT; the second terminal broadcasts the first broadcast message on WLAN, and the first terminal receives the first broadcast message broadcast by the second terminal on WLAN based on WLAN. In some embodiments, the second terminal may broadcast the first broadcast message multiple times, thereby improving the reliability of the first terminal receiving the first broadcast message.
[0054] In some embodiments, the first terminal may also broadcast a second broadcast message, so that the second terminal manages the multiple direct communication capabilities of the first terminal based on the second broadcast message; and the first terminal may first broadcast the second broadcast message and then receive the first broadcast message; the first terminal may first receive the first broadcast message and then broadcast the second broadcast message; similarly, the second terminal may first broadcast the first broadcast message and then receive the second broadcast message, or the second terminal may first receive the second broadcast message and then broadcast the first broadcast message. For example, please refer to Figure 5 ,exist Figure 5 In the description, an example is taken in which the first terminal broadcasts the second broadcast message first and then receives the first broadcast message, and the second terminal receives the second broadcast message first and then broadcasts the first broadcast message.
[0055] Step 402: Whenever a first broadcast message is received, the first terminal determines a direct communication module that receives the first broadcast message.
[0056] Different direct connection communication modules of the first terminal are used to receive first broadcast messages of different direct connection communication types.
[0057] Step 403: The first terminal determines the direct communication capability corresponding to the direct communication type.
[0058] For example, if the first terminal receives the first broadcast message based on BT, it is determined that the second terminal has BT communication capability; for another example, if the first terminal receives the first broadcast message based on WLAN, it is determined that the second terminal has WLAN communication capability.
[0059] Step 404: The first terminal searches for the terminal identifier of the second terminal in the device capability list.
[0060] After receiving the first broadcast message, the first terminal parses the first broadcast message to obtain the terminal identifier of the second terminal, and then searches the device capability list (the device capability list maintained by the first terminal) for the terminal identifier of the second terminal. Figure 5, the first terminal parses the first broadcast message to obtain the terminal identifier of the second terminal. If the first terminal finds the terminal identifier of the second terminal in the device capability list, it indicates that the second terminal is a discovered terminal, and step 405 is executed at this time; if the first terminal does not find the terminal identifier of the second terminal in the device capability list, it indicates that the second terminal is a newly discovered device, and step 406 is executed. Similarly, the second terminal parses the second broadcast message to obtain the terminal identifier of the first terminal, and searches for the terminal identifier of the first terminal in the device capability list (the device capability list maintained by the second terminal). If the second terminal finds the terminal identifier of the first terminal in the device capability list, it indicates that the first terminal is a discovered terminal, and the direct communication capability of the first terminal is added to the capability corresponding to the terminal identifier of the first terminal in the device list, that is, the device capability is updated; if the second terminal does not find the terminal identifier of the first terminal in the device capability list, it indicates that the first terminal is not a discovered terminal, and the corresponding relationship between the terminal identifier of the first terminal and the determined direct communication capability is stored in the device capability list, that is, a new device is generated, and then the device capability list is generated.
[0061] Step 405: When the terminal identifier of the second terminal is found in the device capability list, the first terminal adds the determined direct communication capability to the capability corresponding to the terminal identifier of the second terminal in the device capability list.
[0062] In some embodiments, since the first broadcast message can be sent multiple times, before the first terminal adds the determined direct communication capability to the capabilities corresponding to the terminal identifier of the second terminal in the device capability list, it first determines whether the direct communication capability exists in the capabilities corresponding to the terminal identifier of the second terminal; if the direct communication capability does not exist in the capabilities corresponding to the terminal identifier of the second terminal, the direct communication capability is added to the capabilities corresponding to the terminal identifier of the second terminal in the device capability list; if the direct communication capability exists in the capabilities corresponding to the terminal identifier of the second terminal, the direct communication capability is discarded.
[0063] For example, please refer to Figure 5 When the first terminal finds the terminal identifier of the second terminal in the device capability list, it indicates that the second terminal is a discovered terminal, and the direct communication capability of the second terminal is added to the capability corresponding to the terminal identifier of the second terminal in the device list, that is, the device capability is updated.
[0064] Step 406: When the terminal identifier of the second terminal is not found in the device capability list, the first terminal stores the correspondence between the terminal identifier of the second terminal and the determined direct communication capability in the device capability list.
[0065] For example, please refer to Figure 5When the first terminal does not find the terminal identifier of the second terminal in the device capability list, it indicates that the second terminal is not a discovered terminal, and the correspondence between the terminal identifier of the second terminal and the determined direct communication capability is stored in the device capability list, that is, a new device is generated, and then a device capability list is generated.
[0066] Step 407: When the first terminal has a communication demand, the first terminal directly communicates with the second terminal based on the device capability list.
[0067] In some embodiments, this step is the same as step 304 and will not be described again herein.
[0068] In the embodiment of the present application, the first broadcast message is broadcasted on multiple direct communication modules respectively to inform the first terminal that it has the corresponding direct communication capability. This operation is relatively simple and does not require changing the protocol and content of the first broadcast message. In addition, in the field of direct communication, the first broadcast message of the second terminal is used to obtain the multiple direct communication capabilities of the second terminal, and the multiple direct communication capabilities of the second terminal are managed in a unified manner through the device capability list, thereby realizing the unity of connection and service of multiple independent direct communication capabilities.
[0069] Please refer to Figure 6 , which shows a flow chart of a communication management method shown in an exemplary embodiment of the present application. Figure 6 , the method comprising:
[0070] Step 601: A first terminal receives a first broadcast message from a second terminal based on multiple direct communication modules.
[0071] The first terminal has multiple direct communication modules, and in this step, the multiple direct communication modules simultaneously receive the first broadcast message, and when any direct communication module receives the first broadcast message of the second terminal, the other direct communication modules stop receiving the first broadcast message, thereby saving resources of the first terminal.
[0072] Step 602: The first terminal parses the first broadcast message to obtain broadcast content, where the broadcast content includes multiple direct communication capabilities of the second terminal.
[0073] The broadcast content also includes the terminal identification of the second terminal; for example, the broadcast content of the first broadcast message sent by device B includes the terminal identification of device B, BT direct transmission capability and WLAN direct transmission capability, thereby telling the first terminal through the first broadcast message that it can support both BT and WLAN direct transmission capabilities.
[0074] Step 603: The first terminal stores the correspondence between the terminal identification of the second terminal and a plurality of direct communication capabilities in a device capability list.
[0075] Step 604: When the first terminal has a communication demand, the first terminal directly communicates with the second terminal based on the device capability list.
[0076] In some embodiments, this step is the same as step 304 and will not be described again herein.
[0077] In the embodiment of the present application, the second terminal can inform the first terminal of its multiple direct communication capabilities through a first broadcast message, thereby saving broadcast resources and improving the efficiency of determining the multiple direct communication capabilities of the second terminal. In addition, in the field of direct communication, the multiple direct communication capabilities of the second terminal are learned through the first broadcast message of the second terminal, and the multiple direct communication capabilities of the second terminal are managed in a unified manner through the device capability list, thereby realizing the unity of connection and service of multiple independent direct communication capabilities.
[0078] Please refer to Figure 7 , which shows a flow chart of a communication management method shown in an exemplary embodiment of the present application. Figure 7 , the method comprising:
[0079] Step 701: A first terminal receives at least one first broadcast message from a second terminal based on multiple direct communication modules.
[0080] In some embodiments, this step is the same as step 301, 401 or 601 and will not be repeated here.
[0081] Step 702: The first terminal determines multiple direct connection communication capabilities of the second terminal based on at least one first broadcast message.
[0082] In some embodiments, this step is the same as step 302 or 602; or this step can be implemented through the above steps 402-403, which will not be repeated here.
[0083] Step 703: The first terminal determines a device capability list based on the terminal identification and multiple direct communication capabilities of the second terminal, where the device capability list is used to store the correspondence between the discovered terminal identification and the multiple direct communication capabilities corresponding thereto.
[0084] In some embodiments, this step is the same as step 303 or 603; or this step can be implemented through the above steps 404-406, which will not be repeated here.
[0085] Step 704: When the first terminal has a communication demand, the first terminal determines the second terminal and the target direct communication capability corresponding to the second terminal from the device capability list.
[0086] In some embodiments, the second terminal is manually selected by the user; accordingly, the step of the first terminal determining the second terminal from the device capability list may be: the first terminal displays the device capability list, the device capability list including the terminal identifier of at least one second terminal that has been discovered; the user can manually select the terminal identifier of the second terminal from the device capability list; the first terminal determines the second terminal selected in the device capability list, thereby realizing flexible selection of the second terminal according to user needs.
[0087] In some other embodiments, the first terminal can also manage the terminal identification of the second terminal and the contact information in the address book of the second terminal, so that the user can select the second terminal by selecting the contact information in the address book; accordingly, the step of the first terminal determining the second terminal from the device capability list can be: the first terminal displays the device capability list, and the device capability list includes the terminal identification of at least one second terminal discovered and the contact information associated with the second terminal; the user can manually select the contact information from the device capability list; the first terminal determines the second terminal corresponding to the selected contact information, thereby achieving the purpose of selecting the second terminal by selecting the contact information.
[0088] In other embodiments, the first terminal can also manage the device capability list into the address book; accordingly, the step of the first terminal determining the second terminal from the device capability list can be: the first terminal displays the address book, the address book includes multiple contact information, and for any contact information, determines the terminal identifier associated with the contact information from the device capability list, and displays the contact information and the terminal identifier associated with the contact information in the address book; the user can select the terminal identifier associated with the contact information based on the contact information; the first terminal determines the selected second terminal, thereby achieving the purpose of selecting the second terminal by using the contact information as a reference.
[0089] In some embodiments, the first terminal may select a direct communication capability based on business characteristics; accordingly, the step of the first terminal determining the target direct communication capability corresponding to the second terminal from the device capability list may be: the first terminal determines the business characteristics of the call requirements, and determines the target direct communication capability that matches the business characteristics from the device discovery list based on the business characteristics. Among them, different business characteristics correspond to different direct communication capabilities. For example, the direct communication capability corresponding to the first business characteristic is BT, and the direct communication capability corresponding to the second business characteristic is WLAN. In an embodiment of the present application, the first terminal selects a direct communication capability based on the business characteristics, so that it can select a direct communication capability that is suitable for the current business characteristics, thereby improving the communication effect of communicating based on the determined direct communication capability.
[0090] In other embodiments, the first terminal may select a direct communication capability based on the transmission quality; accordingly, the step of the first terminal determining the target direct communication capability corresponding to the second terminal from the device capability list may be: the first terminal determines the transmission quality of multiple direct communication capabilities of the second terminal; based on the transmission quality of multiple direct communication capabilities, determine the target direct communication capability that meets the quality condition from multiple direct communication capabilities. Among them, satisfying the direct connection condition may be that the transmission quality is maximum or the transmission quality is greater than a preset quality threshold. In an embodiment of the present application, the first terminal selects a direct communication capability based on the transmission quality of multiple direct communication capabilities, thereby ensuring that a direct communication capability with relatively good quality is selected, thereby improving the communication quality of communication based on the selected direct communication capability.
[0091] Step 705: The first terminal generates a first session based on the terminal identifier of the first terminal, the terminal identifier of the second terminal, and the target direct communication capability.
[0092] The session type of the first session is the session type corresponding to the target direct communication capability, and the communication ends of the first session are the first terminal and the second terminal. Figure 8 , the first terminal scans the device capability list to determine the second terminal, and then generates a first session.
[0093] Step 706: The first terminal sends a session request to the second terminal, so that the second terminal generates a second session based on the session request.
[0094] The step of the first terminal sending a session request to the second terminal may be: the first terminal sends a session request to the second terminal through a transmitter. Before the first terminal sends the session request to the second terminal, the first terminal determines the current transmission condition, and when the current transmission condition meets the preset transmission condition, the first terminal sends the session request to the second terminal; when the current transmission condition does not meet the preset transmission condition, the first terminal does not send the session request to the second terminal. Wherein, the step of the first terminal determining whether the current transmission condition meets the preset transmission condition may be: the first terminal determines the state of the target direct communication module corresponding to the target direct communication capability; when the state of the target direct communication module is in the on state, it is determined that the current transmission condition meets the preset transmission condition; when the state of the target direct communication module is in the off state, it is determined that the current transmission condition does not meet the preset transmission condition; or, when the target direct communication module is in the on state, the first terminal determines whether the target direct communication module is in the idle state; when the target direct communication module is in the idle state, it is determined that the current transmission condition meets the preset transmission condition; when the target direct communication module is in the non-idle state (i.e., busy state), it is determined that the current transmission condition does not meet the preset transmission condition.
[0095] In some embodiments, the first terminal also informs the second terminal of its own session information; accordingly, this step can be implemented by the following steps (1) to (2), including:
[0096] (1) The first terminal determines a session type of the first session, and determines session information matching the session type.
[0097] The session type includes text session or voice session; the session information matching the text session includes text sending message, text retransmission message and text reception confirmation message, etc.; the session information matching the voice session includes call request message, call answering message and hang up message, etc.
[0098] (2) The first terminal sends a session request to the second terminal, where the session request carries session information, so that the second terminal generates a second session matching the session information.
[0099] The second terminal receives the session request, generates a second session based on the session request, and displays a session interface of the second session. For example, if the session type is a text session, the second terminal displays the session interface, which includes a receive button, a cancel button, and a retransmit button; for another example, if the session type is a voice session, the second terminal displays the session interface, which includes an answer button and a hang-up button.
[0100] In an embodiment of the present application, the concepts of session and message are proposed in the first terminal and the second terminal, thereby decoupling the transmission technology and the service, so that the service does not depend on the specific direct transmission mode, and the service layer can be independently implemented and switched on different direct transmission modes.
[0101] In some embodiments, after receiving the session request, the second terminal may also determine the status information of the second terminal; if the status information satisfies the status condition for accepting the session request, determine to accept the session request of the first terminal; generate a second session based on the session request; if the status information does not satisfy the status condition for accepting the session request, do not accept the session request, and do not generate the second session. Among them, the step for the second terminal to determine whether the status of the second terminal satisfies the status condition for accepting the session request may be: the status information includes an idle state or a non-idle state (that is, a busy state); if the status information includes an idle state, that is, the second terminal is in an idle state, determine to satisfy the status condition for accepting the session request; if the status information includes a non-idle state, that is, the second terminal is in a non-idle state (that is, a busy state), determine to not satisfy the status condition for accepting the session request. For example, please continue to refer to Figure 8, the second terminal determines whether to accept the session request; if the session request is accepted, a second session is generated, and then messages are exchanged between the first session and the second session to transmit communication data between the first terminal and the second terminal until the session ends; if the second terminal does not accept the session request, the session ends.
[0102] In an embodiment of the present application, after receiving the session request, the second terminal can decide whether to accept the session request based on its own conditions. Once accepted, a session (second session) will be generated on the second terminal itself, and all subsequent messages in the business process will be processed between the two sessions; different business processes can be implemented by interacting with different message sequences.
[0103] In an embodiment of the present application, an implementation model of multiple direct communication capabilities in D2D and multiple services based on multiple direct communication capabilities is proposed. In this implementation model, different direct communication capabilities can be conveniently managed to implement different services, so that the previously mutually evolved D2D technologies can jointly serve the same business.
[0104] Step 707: The first terminal transmits communication data between the first terminal and the second terminal based on the first session and the second session.
[0105] The first terminal obtains the first communication data of the first terminal, and sends the first communication data to the second terminal based on the first session and the second session; similarly, the second terminal obtains the second communication data of the second terminal, and sends the second communication data to the first terminal based on the first session and the second session, and the first terminal receives the second communication data, thereby realizing direct communication between the first terminal and the second terminal.
[0106] In the field of direct communication, a terminal may have multiple direct communication capabilities; and multiple direct communication capabilities are independent; in an embodiment of the present application, after obtaining multiple direct communication capabilities of the second terminal, the multiple direct communication capabilities of the second terminal are uniformly managed through the device capability list, thereby realizing the unity of connection and business of multiple independent direct communication capabilities.
[0107] Please refer to Fig. 9 , which shows a communication management device shown in an exemplary embodiment of the present application, the device includes:
[0108] A receiving module 901, configured to receive at least one first broadcast message of a second terminal based on multiple direct communication modules of a first terminal;
[0109] A first determining module 902, configured to determine multiple direct connection communication capabilities of a second terminal based on at least one first broadcast message;
[0110] A second determining module 903 is used to determine a device capability list based on the terminal identifier and multiple direct communication capabilities of the second terminal, where the device capability list is used to store the correspondence between the discovered terminal identifier and the multiple direct communication capabilities corresponding thereto;
[0111] The communication module 904 is configured to perform direct communication with the second terminal based on the device capability list when the first terminal has a communication demand.
[0112] In some embodiments, the first determination module 902 is configured to determine the direct communication module that receives the first broadcast message each time a first broadcast message is received; and determine the direct communication capability corresponding to the direct communication module.
[0113] In some embodiments, the second determination module 903 is used to search for the terminal identifier of the second terminal in the device capability list whenever a direct communication capability of the second terminal is determined; when the terminal identifier of the second terminal is found in the device capability list, the determined direct communication capability is added to the capabilities corresponding to the terminal identifier of the second terminal in the device capability list; when the terminal identifier of the second terminal is not found in the device capability list, the correspondence between the terminal identifier of the second terminal and the determined direct communication capability is stored in the device capability list.
[0114] In some embodiments, the first determination module 902 is configured to parse the first broadcast message to obtain broadcast content, where the broadcast content includes a plurality of direct connection communication capabilities of the second terminal.
[0115] In some embodiments, the second determining module 903 is configured to store the correspondence between the terminal identification of the second terminal and a plurality of direct communication capabilities in a device capability list.
[0116] In some embodiments, the communication module 904 is used to determine the second terminal and the target direct communication capability corresponding to the second terminal from the device discovery list; and perform direct communication with the second terminal based on the target direct communication capability.
[0117] In some embodiments, the communication module 904 is used to generate a first session based on the terminal identifier of the first terminal, the terminal identifier of the second terminal and the target direct communication capability, the session type of the first session is the session type corresponding to the target direct communication capability, and the communication ends of the first session are the first terminal and the second terminal respectively; send a session request to the second terminal so that the second terminal generates a second session based on the session request; based on the first session and the second session, transmit communication data between the first terminal and the second terminal.
[0118] In some embodiments, the communication module 904 is used to determine the session type of the first session, determine session information matching the session type, and send a session request to the second terminal, the session request carrying the session information, so that the second terminal generates a second session matching the session information.
[0119] In some embodiments, the communication module 904 is used to determine the service characteristics of the call requirement, and determine the target direct communication capability matching the service characteristics from the device discovery list based on the service characteristics; or
[0120] The communication module 904 is configured to determine the transmission qualities of the multiple direct connection communication capabilities of the second terminal; and determine a target direct connection communication capability that meets the quality condition from the multiple direct connection communication capabilities based on the transmission qualities of the multiple direct connection communication capabilities.
[0121] In some embodiments, the apparatus further comprises:
[0122] The broadcast module is used to broadcast at least one second broadcast message based on the multiple direct communication modules of the first terminal, and the at least one second broadcast message is used to broadcast multiple direct communication capabilities corresponding to the multiple direct communication modules of the first terminal.
[0123] In the field of direct communication, a terminal may have multiple direct communication capabilities; and multiple direct communication capabilities are independent; in an embodiment of the present application, after obtaining multiple direct communication capabilities of the second terminal, the multiple direct communication capabilities of the second terminal are uniformly managed through the device capability list, thereby realizing the unity of connection and business of multiple independent direct communication capabilities.
[0124] It should be noted that the communication management device provided in the above embodiment only uses the division of the above functional modules as an example when performing communication management. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the first terminal is divided into different functional modules to complete all or part of the functions described above. In addition, the communication management device provided in the above embodiment and the communication management method embodiment belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0125] Please refer to Fig.10 , which shows a block diagram of a terminal 1000 according to an exemplary embodiment of the present application. The terminal 1000 in the present application may include one or more of the following components: a processor 1010 , a memory 1020 , and a display screen 1030 .
[0126] The processor 1010 may include one or more processing cores. The processor 1010 uses various interfaces and lines to connect the various parts of the entire terminal 1000, and executes various functions and processes data of the terminal 1000 by running or executing instructions, programs, code sets or instruction sets stored in the memory 1020, and calling data stored in the memory 1020. Optionally, the processor 1010 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 1010 can integrate one or more combinations of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU), a neural network processor (Neural-network Processing Unit, NPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen 1030; the NPU is used to implement artificial intelligence (Artificial Intelligence, AI) functions; and the modem is used to process wireless communications. It is understandable that the above-mentioned modem may not be integrated into the processor 1010, but may be implemented separately through a computer program product.
[0127] The memory 1020 may include a random access memory (RAM) or a read-only memory (ROM). Optionally, the memory 1020 includes a non-transitory computer-readable storage medium. The memory 1020 may be used to store instructions, programs, codes, code sets, or instruction sets. The memory 1020 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc.; the data storage area may store data (such as audio data, a phone book), etc., created according to the use of the terminal 1000.
[0128] The display screen 1030 is a display component for displaying a user interface. Optionally, the display screen 1030 is a display screen with a touch function, through which the user can use any suitable object such as a finger, a touch pen, etc. to perform touch operations on the display screen 1030.
[0129] The display screen 1030 is usually arranged on the front panel of the terminal 1000. The display screen 1030 can be designed as a full screen, a curved screen, a special-shaped screen, a double-sided screen or a folding screen. The display screen 1030 can also be designed as a combination of a full screen and a curved screen, a combination of a special-shaped screen and a curved screen, etc., which is not limited in this embodiment.
[0130] In addition, those skilled in the art can understand that the structure of the terminal 1000 shown in the above drawings does not constitute a limitation on the terminal 1000. The terminal 1000 may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. For example, the terminal 1000 also includes a Wifi module, an audio acquisition device, a speaker, a radio frequency circuit, an input unit, a sensor, an audio circuit, a Bluetooth module, a power supply and other components, which will not be described in detail here.
[0131] An embodiment of the present application also provides a computer-readable medium, which stores at least one program code, and the at least one program code is loaded and executed by a processor to implement the communication management method shown in the above embodiments.
[0132] An embodiment of the present application also provides a chip, which stores at least one program code, and the at least one program code is loaded and executed by a processor to implement the communication management method shown in the above embodiments.
[0133] In some embodiments, the chip involved in the embodiments of the present application may be deployed to be executed on a first terminal, or on multiple first terminals located at one location, or on multiple first terminals distributed at multiple locations and interconnected by a communication network. Multiple first terminals distributed at multiple locations and interconnected by a communication network may constitute a blockchain system.
[0134] Those skilled in the art should be aware that in one or more of the above examples, the functions described in the embodiments of the present application can be implemented with hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein the communication media include any media that facilitates the transmission of a computer program from one place to another. The storage medium can be any available medium that a general or special-purpose computer can access.
[0135] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. A communication management method, characterized in that: The method comprises: Based on the multiple direct communication modules of the first terminal, receiving at least one first broadcast message of the second terminal; Determining multiple direct connection communication capabilities of the second terminal based on the at least one first broadcast message; Determine, based on the terminal identifier of the second terminal and the multiple direct communication capabilities, a device capability list, wherein the device capability list is used to store a correspondence between the discovered terminal identifier and the multiple direct communication capabilities corresponding thereto; When the first terminal has a communication demand, direct communication is performed with the second terminal based on the device capability list.
2. The method according to claim 1, characterized in that The determining, based on the at least one first broadcast message, multiple direct connection communication capabilities of the second terminal includes: Whenever a first broadcast message is received, determining a direct communication module that receives the first broadcast message; Determine the direct communication capability corresponding to the direct communication module.
3. The method according to claim 2, characterized in that The determining, based on the terminal identification of the second terminal and the multiple direct communication capabilities, a device capability list includes: Whenever a direct connection communication capability of the second terminal is determined, searching the terminal identifier of the second terminal in the device capability list; When the terminal identifier of the second terminal is found in the device capability list, adding the determined direct communication capability to the capability corresponding to the terminal identifier of the second terminal in the device capability list; When the terminal identifier of the second terminal is not found in the device capability list, the corresponding relationship between the terminal identifier of the second terminal and the determined direct communication capability is stored in the device capability list.
4. The method according to claim 1, characterized in that: The determining, based on the at least one first broadcast message, multiple direct connection communication capabilities of the second terminal includes: parsing the first broadcast message to obtain broadcast content, where the broadcast content includes multiple direct connection communication capabilities of the second terminal; The determining, based on the terminal identification of the second terminal and the multiple direct communication capabilities, a device capability list includes: The correspondence between the terminal identification of the second terminal and the multiple direct communication capabilities is stored in the device capability list.
5. The method according to claim 1, characterized in that: The directly communicating with the second terminal based on the device capability list includes: Determine the second terminal and the target direct communication capability corresponding to the second terminal from the device discovery list; Based on the target direct communication capability, direct communication is performed with the second terminal.
6. The method according to claim 5, characterized in that The performing direct communication with the second terminal based on the target direct communication capability includes: generating a first session based on the terminal identifier of the first terminal, the terminal identifier of the second terminal, and the target direct communication capability, wherein the session type of the first session is the session type corresponding to the target direct communication capability, and the communication ends of the first session are the first terminal and the second terminal respectively; Sending a session request to the second terminal, so that the second terminal generates a second session based on the session request; Based on the first session and the second session, communication data is transmitted between the first terminal and the second terminal.
7. The method according to claim 6, characterized in that The sending a session request to the second terminal so that the second terminal generates a second session based on the session request includes: Determining a session type of the first session, and determining session information matching the session type; A session request is sent to the second terminal, where the session request carries the session information, so that the second terminal generates a second session matching the session information.
8. The method according to claim 5, characterized in that The step of determining the target direct communication capability corresponding to the second terminal from the device discovery list includes: Determine the service characteristics of the call requirement, and determine the target direct communication capability matching the service characteristics from the device discovery list based on the service characteristics; or, Determine the transmission qualities of multiple direct connection communication capabilities of the second terminal; and determine, based on the transmission qualities of the multiple direct connection communication capabilities, a target direct connection communication capability that meets a quality condition from among the multiple direct connection communication capabilities.
9. The method according to claim 1, characterized in that: The method further comprises: Based on the multiple direct connection communication modules of the first terminal, at least one second broadcast message is broadcast, where the at least one second broadcast message is used to broadcast multiple direct connection communication capabilities corresponding to the multiple direct connection communication modules of the first terminal.
10. A communication management device, characterized in that: The device comprises: A receiving module, configured to receive at least one first broadcast message of a second terminal based on a plurality of direct communication modules of the first terminal; A first determining module, configured to determine multiple direct connection communication capabilities of the second terminal based on the at least one first broadcast message; a second determining module, configured to determine a device capability list based on the terminal identifier of the second terminal and the multiple direct communication capabilities, wherein the device capability list is used to store a correspondence between the discovered terminal identifier and the multiple direct communication capabilities corresponding thereto; The communication module is used to directly communicate with the second terminal based on the device capability list when the first terminal has a communication demand.
11. A terminal, characterized in that: The terminal includes a processor and a memory, wherein the memory stores at least one program code, and the at least one program code is loaded and executed by the processor to implement the communication management method according to any one of claims 1 to 9.
12. A computer-readable storage medium, characterized in that: The storage medium stores at least one program code, and the at least one program code is loaded and executed by the processor to implement the communication management method according to any one of claims 1 to 9.
13. A chip, characterized in that: The chip stores at least one program code, and the at least one program code is used to be executed by a processor to implement the communication management method according to any one of claims 1 to 9.
