A method and apparatus for transmitting a discovery message
By defining the indication messages and triggering conditions of the ProSe service in detail, the terminal can accurately identify and send the discovery message of the ProSe service, which solves the discovery problem in long-distance communication and realizes terminal discovery and communication coverage of the ProSe service.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- DATANG MOBILE COMM EQUIP CO LTD
- Filing Date
- 2021-10-22
- Publication Date
- 2026-07-03
Smart Images

Figure CN116017624B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and in particular to a method and apparatus for sending discovery messages. Background Technology
[0002] In the field of wireless communication technology, there are two main communication methods between terminals: cellular network communication and direct communication. A schematic diagram of cellular network communication is shown below. Figure 1 As shown in the diagram, a direct communication schematic is as follows: Figure 2 As shown, in cellular network communication, communication between terminals is achieved through base stations. Terminals communicate with base stations through the Uu interface. When terminal UE1 communicates with terminal UE2, terminal UE1 forwards the signal to the base station through the Uu interface, and then the base station sends the received signal to terminal UE2. In direct communication, communication between terminals is achieved through a direct communication link (Sidelink link). The wireless interface corresponding to the direct communication link is called the Sidelink interface or PC5 interface. When terminal UE1 and terminal UE2 communicate at close range, they can transmit signals through the direct communication link.
[0003] When the distance between two terminals is relatively large, a relay terminal is introduced to extend network coverage. A schematic diagram of a relay terminal is shown below. Figure 3 As shown, the relay terminal transmits data with the base station using the Uu interface, and transmits data with the remote terminal using the Sidelink interface or PC5 interface. To achieve long-distance communication between the two terminals, one terminal needs to be selected as the relay terminal. The relay terminal achieves long-distance communication between the two terminals by forwarding signals.
[0004] Terminals discover nearby terminals by sending or receiving discovery signals. There are two types of discovered terminals: relay terminals and terminals with ProSe service. When a terminal sends a discovery message, the AS layer only records the detailed information of the relay terminal. The AS layer receives or sends signals on the air interface when the terminal is communicating, which prevents the terminal from sending discovery messages related to the ProSe service. Summary of the Invention
[0005] This application provides a method and apparatus for sending discovery messages. By defining the indication message for ProSe service in detail and describing the preset trigger condition set, the terminal can determine that the discovery message is a discovery message for ProSe service and can send the discovery message for ProSe service to other terminals.
[0006] Firstly, this application provides a method for sending a discovery message, the method comprising:
[0007] Receive the first instruction message;
[0008] Based on the first instruction message, determine whether to send a discovery message for the ProSe neighboring service;
[0009] The first indication message includes one or a combination of the following:
[0010] The first indication message is a discovery message indicating the sending of ProSe services;
[0011] The first indication message is a discovery message indicating that the type of the discovery message is ProSe service;
[0012] The first indication message is a service feature indicating the discovery message of the ProSe service, wherein the service feature is the service cycle and the service start time related to the ProSe service;
[0013] The first indication message is an indication that the target address corresponding to the discovery message of the ProSe service is the ProSe service terminal.
[0014] By using the method described above, the indication message for sending the ProSe service discovery message can be specifically described, and the indication message for sending the ProSe service discovery message can be accurately identified, thereby enabling the sending of the ProSe service discovery message and the wide coverage of the ProSe service.
[0015] In one possible design, determining whether to send a discovery message for the ProSe neighbor service is as follows:
[0016] Determine whether to send the ProSe service discovery message based on the detected triggering conditions;
[0017] The triggering conditions include one or a combination of the following conditions:
[0018] The wireless resource occupancy rate of the direct communication link of the terminal exceeds a preset value;
[0019] The terminal receives a discovery message request sent by another terminal;
[0020] The target address corresponding to the discovery message request received by the terminal is in the target address list;
[0021] The terminal is in a state of receiving or sending the discovery message.
[0022] In one possible design, before determining whether to send a discovery message for the ProSe neighbor service, the method further includes:
[0023] Based on the first indication message indicating that the discovery message type is a ProSe service discovery message, it is determined that the discovery message to be sent is a ProSe service discovery message; or
[0024] Based on the target address corresponding to the indication message for the ProSe service and the first indication message of the ProSe service terminal, it is determined that the type of the discovery message to be sent is a discovery message for the ProSe service.
[0025] In one possible design, determining whether to send a discovery message for the ProSe neighbor service can be achieved through one or more of the following combinations:
[0026] When the trigger condition is that the wireless resource occupancy rate of the terminal's direct communication link exceeds a preset value, a discovery message for the ProSe service is sent.
[0027] When the trigger condition is that the terminal receives a discovery message request sent by another terminal, it is determined to send a discovery message for the ProSe service.
[0028] When the trigger condition is that the target address corresponding to the discovery message request received by the terminal is in the target address list, it is determined to send a discovery message for the ProSe service.
[0029] When the trigger condition is that the terminal is in the state of receiving or sending the discovery message, it is determined to send the discovery message of the ProSe service.
[0030] In one possible design, before determining whether to send a discovery message for the ProSe neighbor service, the following steps are included:
[0031] The discovery message is processed according to its type.
[0032] Calculate the fixed bitrate of the processed discovery message, and send the discovery message according to the fixed bitrate.
[0033] In one possible design, processing the discovery message according to its type includes:
[0034] Discovery messages of type relay service are processed through a first preset mode, wherein the first preset mode directly uses the discovery message;
[0035] Discovery messages of type ProSe service are processed through a second preset mode, wherein the second preset mode compresses the discovery messages.
[0036] In one possible design, the discovery message is sent according to a fixed bitrate, including:
[0037] Based on the mapping relationship between the fixed code rate and the transmission power, the transmission power corresponding to the fixed code rate is determined;
[0038] The discovery message is sent according to the transmission power.
[0039] Secondly, this application also provides a method for processing discovery messages, the method comprising:
[0040] Parse the message type of the received discovery message;
[0041] The discovery message corresponding to the message type is transmitted to the non-access layer.
[0042] By using the method described above, the message type of the discovery message sent by the terminal is parsed, different types of discovery messages are distinguished, and different discovery messages are processed in different ways. This avoids different types of discovery messages from being mixed together, which would lead to resource waste and achieves efficient processing of discovery messages.
[0043] In one possible design, transmitting the discovery message corresponding to the message type to the non-access layer includes:
[0044] If the message type is a discovery message for a relay service, then the discovery message that meets the first preset condition will be transmitted to the non-access layer.
[0045] If the message type is a ProSe service discovery message, then the discovery message that meets the second preset condition will be transmitted to the non-access layer.
[0046] In one possible design, the message type of the received discovery message is parsed, including:
[0047] The message type of the discovery message is determined based on the physical resource pool, wherein the physical resource pool stores discovery messages of the same type; and / or
[0048] The message type of the discovery message is determined based on the type identifier in the direct link control instruction of the terminal; and / or
[0049] The message type of the discovery message is determined based on the logical channel identification code in the terminal.
[0050] In one possible design, the message type of the discovery message is determined based on the physical resource pool, including:
[0051] If the physical resource pool where the discovery message is located stores discovery messages for relay services, then the discovery message is a discovery message for relay services.
[0052] If the physical resource pool containing the discovery message stores discovery messages for the ProSe service, then the discovery message is a discovery message for the ProSe service.
[0053] In one possible design, the message type of the discovery message is determined based on the type identifier in the terminal's direct link control instruction, including:
[0054] Determine the value of the type identifier of the discovery message;
[0055] If the value of the type identifier is the first set value, then the discovery message is a discovery message for the ProSe service;
[0056] If the type identifier is set to a second preset value, then the discovery message is a discovery message for a relay service.
[0057] In one possible design, the message type of the discovery message is determined based on the logical channel identification code in the terminal, including:
[0058] Obtain the logical channel identifier code corresponding to the discovery message, and match the logical channel identifier code with a first logical channel identifier code list and a second logical channel identifier code list, wherein the first logical channel identifier code list stores the logical channel identifier code of the discovery message of the relay service, and the second logical channel identifier code list stores the logical channel identifier code of the discovery message of the ProSe service.
[0059] If the logical channel identifier code of the discovery message is in the first logical channel identifier code list, then the discovery message is a discovery message for a relay service.
[0060] If the logical channel identifier code of the discovery message is in the second logical channel identifier code list, then the discovery message is a discovery message for the ProSe service.
[0061] In one possible design, the first preset condition is one or more combinations of the following conditions:
[0062] The discovery message of the relay service has a corresponding signal-to-noise ratio;
[0063] The discovery message of the relay service has a corresponding channel quality value, wherein the channel quality value represents the communication quality of the wireless channel.
[0064] In one possible design, the second preset condition is one or more combinations of the following conditions:
[0065] The message type is a discovery message for the ProSe service;
[0066] The discovery message is the same as the discovery message in the discovery message type list in the non-access stratum.
[0067] Thirdly, this application provides a means for sending a discovery message, the means comprising:
[0068] The receiving module is specifically used to receive the first indication message;
[0069] The determination module is specifically used to determine, based on the first indication message, whether to send a discovery message for the ProSe neighbor service.
[0070] Fourthly, this application also provides a processing apparatus for discovering messages, the apparatus comprising:
[0071] The parsing module is specifically used to parse the message type of the received discovery message;
[0072] The sending module is specifically used to transmit the discovery message corresponding to the message type to the non-access layer.
[0073] Fifthly, this application provides a communication device, comprising:
[0074] The memory stores computer instructions;
[0075] The processor is configured to read the computer program from the memory and perform the following steps:
[0076] Receive a first indication message and, based on the first indication message, determine whether to send a discovery message for the ProSe neighboring service.
[0077] In one possible design, the processor is specifically configured to determine whether to send a discovery message for the ProSe service based on detected triggering conditions. The triggering conditions include one or a combination of the following: the wireless resource occupancy rate of the terminal's direct communication link exceeds a preset value; the terminal receives a discovery message request sent by another terminal; the target address corresponding to the discovery message request received by the terminal is in the target address list; and the terminal is in a state of receiving or sending the discovery message.
[0078] In one possible design, the processor is further configured to determine, based on a first indication message indicating that the type of the discovery message is a ProSe service discovery message, send the discovery message of type ProSe service, and based on the target address corresponding to the indication message indicating the ProSe service and the first indication message of the ProSe service terminal, determine that the type of the discovery message is a ProSe service discovery message to be sent.
[0079] In one possible design, the processor is further configured to determine to send a ProSe service discovery message when the trigger condition is that the wireless resource occupancy rate of the terminal's direct communication link exceeds a preset value; when the trigger condition is that the terminal receives a discovery message request sent by another terminal; when the trigger condition is that the target address corresponding to the discovery message request received by the terminal is in the target address list; and when the trigger condition is that the terminal is in a state of receiving or sending the discovery message, determine to send a ProSe service discovery message.
[0080] In one possible design, the processor is further configured to process discovery messages of type relay service through a first preset mode, wherein the first preset mode directly uses the discovery message, and process discovery messages of type ProSe service through a second preset mode, wherein the second preset mode compresses the discovery message.
[0081] In one possible design, the processor is further configured to process the discovery message according to its type, calculate a fixed bitrate for the processed discovery message, and send the discovery message according to the fixed bitrate.
[0082] Sixthly, this application provides a communication device, comprising:
[0083] The memory stores computer instructions;
[0084] The processor is configured to read the computer program from the memory and perform the following steps:
[0085] Parse the message type of the received discovery message and transmit the discovery message corresponding to the message type to the non-access layer.
[0086] In one possible design, the processor is specifically configured to determine the message type of the discovery message based on a physical resource pool, wherein the physical resource pool stores discovery messages of the same type, and / or determine the message type of the discovery message based on a type identifier in the direct link control indication of the terminal, and / or determine the message type of the discovery message based on a logical channel identifier in the terminal.
[0087] In one possible design, the processor is further configured to obtain the value of the type identifier of the discovery message; if the value of the type identifier is a first preset value, then the discovery message is a discovery message for the ProSe service; if the value of the type identifier is a second preset value, then the discovery message is a discovery message for the relay service.
[0088] In one possible design, the processor is further configured to obtain the logical channel identifier code corresponding to the discovery message, and match the logical channel identifier code with a first logical channel identifier code list and a second logical channel identifier code list, wherein the first logical channel identifier code list stores the logical channel identifier codes of discovery messages for relay services, and the second logical channel identifier code list stores the logical channel identifier codes of discovery messages for ProSe services. If the logical channel identifier code of the discovery message is in the first logical channel identifier code list, then the discovery message is a discovery message for relay services; if the logical channel identifier code of the discovery message is in the second logical channel identifier code list, then the discovery message is a discovery message for ProSe services.
[0089] In one possible design, the processor is further configured to send the discovery message to the non-access stratum when the message type is a discovery message for ProSe services, and / or the discovery message is the same as a discovery message in the discovery message type list in the non-access stratum.
[0090] In a seventh aspect, a computer-readable storage medium stores computer-executable instructions for causing a computer to perform the steps of the method for sending a discovery message and the steps of the method for processing a discovery message described above.
[0091] Eighth aspect, a computer program product, when invoked by a computer, causes the computer to perform the method as described in any one of claims 1-7 and 8-15. Attached Figure Description
[0092] Figure 1 This is a schematic diagram of cellular network communication provided in this application;
[0093] Figure 2 A schematic diagram illustrating communication between terminals provided in this application;
[0094] Figure 3 Another terminal-to-terminal communication diagram provided in this application;
[0095] Figure 4 A flowchart illustrating the steps of a method for sending a discovery message provided in this application;
[0096] Figure 5 A schematic diagram of a discovery message sending device provided in this application;
[0097] Figure 6 A flowchart illustrating the steps of a message discovery processing method provided in this application;
[0098] Figure 7A schematic diagram of the structure of a message discovery processing device provided in this application;
[0099] Figure 8 A schematic diagram of the structure of a communication device provided in this application;
[0100] Figure 9 This is a schematic diagram of the structure of a communication device provided in this application. Detailed Implementation
[0101] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are merely some embodiments of this invention, and not all embodiments. Based on the embodiments of this invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this invention.
[0102] The technical solution of this invention can be applied to various communication systems, such as: Global System for Mobile Communication (GSM), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), General Packet Radio Service (GPRS), Long Term Evolution (LTE), Advanced Long Term Evolution (LTE-A), Universal Mobile Telecommunication System (UMTS), New Radio Access Technology (NR), 5G, etc. In one optional embodiment, the transmitting device described below in this invention can be an access network device, and the receiving device can be a terminal device; in another optional embodiment, the transmitting device described below in this invention can be an access network device, and the receiving device can be a terminal device. Figure 1 Example of a communication system architecture, the communication system includes access network equipment and terminal equipment.
[0103] Before describing specific embodiments of the present invention, the technical concepts involved in the present invention will be described below.
[0104] 1) Terminal equipment, also known as terminal, user equipment (UE), mobile station (MS), mobile terminal (MT), etc., is a device that provides voice and / or data connectivity to a user. Examples include handheld devices with wireless connectivity and in-vehicle devices. Currently, some examples of terminals include mobile terminal devices such as mobile phones (or "cellular" phones) and computers with mobile terminal devices. These can be portable, pocket-sized, handheld, computer-embedded, or in-vehicle mobile devices that exchange voice and / or data with a wireless access network. Examples include personal communication service (PCS) phones, cordless phones, session initiated protocol (SIP) phones, wireless local loop (WLL) stations, and personal digital assistants (PDAs). Wireless terminal equipment can also be referred to as a system, subscriber unit, subscriber station, mobile station, mobile station, remote station, access point, remote terminal, access terminal, user terminal, user agent, or user device, but is not limited to these terms in the embodiments of this application.
[0105] The network device involved in this application embodiment can be a base station, which may include multiple cells. Depending on the specific application, a base station may also be called an access point, or it may refer to a device in the access network that communicates with a wireless terminal device through one or more sectors on the air interface, or other names. The network device can be used to convert received air frames to and from Internet Protocol (IP) packets, and act as a router between the wireless terminal device and the rest of the access network, where the rest of the access network may include an Internet Protocol (IP) communication network. The network device can also coordinate the attribute management of the air interface. For example, the network equipment involved in the embodiments of this application can be a base transceiver station (BTS) in a global system for mobile communications (GSM) or code division multiple access (CDMA), or a network equipment (NodeB) in wide-band code division multiple access (WCDMA), or an evolved network device (eNB or e-NodeB) in a long term evolution (LTE) system, a 5G base station in a next generation system, or a home evolved node B (HeNB), relay node, femto, pico, etc., and is not limited in the embodiments of this application.
[0106] like Figure 1 The diagram shown is a schematic of cellular network communication provided in this application. The wireless communication system consists of a base station, several terminal devices, and a CN core network. Wireless communication between terminal UE1 and terminal UE2 is achieved through the base station. When terminal UE1 needs to send a signal to terminal UE2, terminal UE1 transmits the signal to the base station through the Uu interface, and the base station then transmits the signal to terminal UE2 through the Uu interface, thereby realizing signal transmission between terminal UE1 and terminal UE2.
[0107] like Figure 2The diagram shown illustrates the communication between terminals provided in this application. The wireless communication system consists of a base station, several terminals, and a CN core network. The terminals transmit signals to the base station via the Uu interface. Wireless communication between terminals is achieved through a direct communication link, specifically a Sidelink link. The wireless interface corresponding to the direct communication link is called the Sidelink interface or the PC5 interface. When terminal UE1 and terminal UE2 need to communicate wirelessly, terminal UE1 transmits signals to terminal UE2 through the Sidelink interface or the PC5 interface. After receiving the signals, terminal UE2 can send signals back to terminal UE1 through the Sidelink interface or the PC5 interface, thereby realizing wireless communication between terminals.
[0108] like Figure 3 The diagram shown illustrates another type of terminal-to-terminal communication provided in this application. Based on the aforementioned wireless communication between terminals, to expand network coverage, a problem needs to be addressed: when the distance between terminals is long, wireless communication between the two terminals is impossible. Therefore, a relay terminal is introduced, serving as a signal relay station for wireless communication between two terminals. When two distant terminals communicate wirelessly, these two distant terminals are called remote terminals. One remote terminal first locates nearby terminals and then identifies one of them as a relay terminal. It then transmits a signal to the relay terminal via a Sidelink interface or a PC5 interface. The relay terminal receives the signal from the remote terminal and forwards it to the other remote terminal via the Sidelink interface or a PC5 interface, thereby achieving wireless communication between two distant terminals.
[0109] Currently, due to the development of 5G network technology, most areas have achieved 5G network coverage. When terminals conduct long-distance wireless communication, a relay terminal needs to be selected between the two terminals to forward signals and achieve signal transmission between the two long-distance terminals. When a terminal needs to transmit signals with a long-distance terminal, it needs to discover nearby terminals. There are two types of nearby terminals: relay terminals and terminals with ProSe service. ProSe service, also known as Proximity Service, refers to the ability for user data to be transmitted directly between terminals without network relay. It should be noted that in the 5G network scenario, this ProSe service is specifically the 5GProSe service, and the term ProSe service will be used uniformly in the following explanation.
[0110] In the field of wireless communication, the AS layer receives or transmits signals on the air interface when the terminal is conducting wireless communication. Since the AS layer only records the detailed information of the relay terminal, the terminal can only send the discovery message of the relay service, but cannot send the discovery message of the ProSe service.
[0111] To address the aforementioned problems, this application provides a method for sending discovery messages, resolving the issue of terminals being unable to send discovery messages related to ProSe services in the aforementioned scenarios. The methods and apparatus described in this application are based on the same technical concept. Since the principles by which the methods and apparatus solve the problems are similar, embodiments of the apparatus and methods can be referred to interchangeably, and repeated details will not be elaborated further.
[0112] The embodiments of this application will now be described in detail with reference to the accompanying drawings.
[0113] Example 1
[0114] Reference Figure 4 As shown, this application provides a method for sending discovery messages, which can solve the problem of discovery messages related to ProSe services being unable to be sent. The implementation process of this method is as follows:
[0115] Step S1: Receive the first instruction message.
[0116] In order to trigger the terminal to send a discovery message, the terminal needs to receive a first indication message from the non-access stratum before sending the discovery message. Based on the first indication message, the terminal determines whether it is necessary to trigger the sending of the discovery message. The non-access stratum includes mobility management, call control, session management, and identity management.
[0117] In this embodiment of the application, the first indication message is a combination of one or more of the following messages:
[0118] 1. The first indication message is a discovery message indicating the sending of ProSe services;
[0119] The terminal parses the content of the first instruction message and determines whether it is an instruction to send a discovery message for the ProSe service or an instruction to send a discovery message for the relay service.
[0120] 2. The first indication message is a discovery message indicating that the type of the discovery message is ProSe service;
[0121] In this embodiment of the application, since the description is of a discovery message indicating that the type of the discovery message is ProSe service, the first indication information is a discovery message indicating that the type of the discovery message is ProSe service.
[0122] 3. The first indication message is the service characteristics of the discovery message indicating the ProSe service, wherein the service characteristics are the service period related to the periodic service and the service start time;
[0123] After parsing the first indication message, the ProSe service discovery message can identify various types of terminals in the vicinity, such as relay service terminals and ProSe service terminals. When the indication service features include the ability to identify various types of terminals, the indication message can be identified as a ProSe service discovery message.
[0124] 4. The first indication message is the target address corresponding to the discovery message of the ProSe service, which indicates that the ProSe service terminal is the target address.
[0125] After receiving the first indication message, it is necessary to determine whether the terminal corresponding to the target address of the ProSe service discovery message is a ProSe service terminal. Since the terminal stores the mapping relationship between the discovery message type indication message and the ProSe service terminal, it is possible to determine whether the target address corresponding to the ProSe service discovery message is a ProSe service terminal by looking up Table 1, as shown below:
[0126]
[0127] Table 1
[0128] Table 1 above records the relationship between type indication messages and target addresses. The target addresses include the target addresses of ProSe service terminals and trunk services. The target address corresponding to the ProSe service type is the target address of the ProSe service terminal, and the target address corresponding to the trunk service type is the target address of the trunk service terminal.
[0129] The terminal parses the received first indication message, extracting the correspondence between the type indication message and the target address. This correspondence is then matched against Table 1. When a match is found between the type indication message and the target address, the type of discovery message to be sent in the first indication message can be determined. If the match is found between the type indication message and the target address for a ProSe service discovery message, it indicates that the indication message indicates the sending of a ProSe service discovery message. If the match is found between the type indication message and the target address for a relay service discovery message, it indicates that the indication message indicates the sending of a relay service discovery message. The relay service discovery message indication message has been described in detail in existing solutions and will not be repeated here. This application embodiment provides a detailed description of the ProSe service discovery message indication message.
[0130] Furthermore, the aforementioned instruction messages can be a single type or a combination of multiple types, for example:
[0131] Scenario 1: The first indication message is an indication to send a ProSe service discovery message, and the type of the discovery message is a ProSe service discovery message;
[0132] Scenario 2: The first indication message is a discovery message indicating the sending of ProSe service, and it indicates the service characteristics of the discovery message for ProSe service;
[0133] Scenario 3: The first indication message is an indication to send a ProSe service discovery message, an indication that the type of the discovery message is a ProSe service discovery message, and an indication of the mapping relationship between the type indication message of the ProSe service discovery message and the target address;
[0134] Case 4: The first indication message is a discovery message indicating the sending of ProSe service, the service characteristics of the discovery message indicating the ProSe service, and the mapping relationship between the type of discovery message indicating the ProSe service and the target address;
[0135] Scenario 5: The first instruction sends a ProSe service discovery message, indicates that the type of the discovery message is a ProSe service discovery message, indicates the service characteristics of the ProSe service discovery message, and indicates the mapping relationship between the type of the ProSe service discovery message and the target address.
[0136] In the embodiments of this application, the above five possible combinations of the first instruction message are listed. Since the first instruction message can be a single message, a combination of any two messages, a combination of any three messages, or a combination of four messages, they will not be listed one by one here.
[0137] The above method provides a detailed description of the first indication message that instructs the terminal to send a discovery message for the ProSe service. The description confirms that the first indication message is indeed a discovery message instructing the terminal to send a ProSe service, thus achieving the identification of the indication message for the discovery message of the ProSe service.
[0138] After receiving the first instruction message, it is necessary to determine whether the type of the discovery message sent is a discovery message for the ProSe service. There are three methods for determining this, and the specific determination process is as follows:
[0139] Method 1: Determine whether the indication message of the discovery message is a discovery message of the ProSe service;
[0140] If the type of discovery message indicated by the first indication message is a ProSe service discovery message, then the first indication message is for indicating the sending of a ProSe service discovery message. If the type of discovery message indicated by the first indication message is a non-ProSe service discovery message, then the first indication message is for indicating the sending of a relay service discovery message.
[0141] Method 2: Determine the mapping relationship between the target address corresponding to the discovery message and the ProSe service terminal;
[0142] Obtain the target address corresponding to the type indication message of the discovery message, and determine whether the terminal corresponding to the target address is a terminal with ProSe service. If so, determine that the discovery message is a discovery message of ProSe service; otherwise, ignore the indication message.
[0143] Method 3: Method 3 combines Method 1 and Method 2. Both Method 1 and Method 2 must be satisfied simultaneously to determine that the discovery message is a discovery message of the ProSe service.
[0144] The above-described method allows us to determine the type of discovery message using any of the three methods (Method 1, Method 2, and Method 3), thereby accurately determining whether to send a discovery message for the ProSe service and improving the accuracy of identifying ProSe service discovery messages.
[0145] Step S2: Based on the first indication message, determine whether to send a ProSe service discovery message.
[0146] After receiving a first indication message that instructs the terminal to send a discovery message for ProSe service, the first indication message is one of the combinations described above. When the first indication message meets the conditions, the triggering conditions are obtained according to the received first indication message, and it is determined whether to send a discovery message for ProSe service according to the triggering conditions.
[0147] After obtaining the triggering condition, it is necessary to determine the triggering condition. When the triggering condition is one or a combination of the following conditions, it is determined to send the discovery message of the ProSe service. The triggering condition includes one or a combination of the following conditions:
[0148] Condition 1: The wireless resource occupancy rate of the terminal's direct communication link exceeds the preset value;
[0149] Before sending a discovery message, in order to detect whether there are enough terminals around the terminal, it is necessary to detect the ratio of the number of direct communication links used by the terminal to the total number of direct communication links of the terminal, and calculate the wireless resource utilization rate of the terminal's direct communication links. When the wireless resource utilization rate of the direct communication links exceeds a preset value, the terminal can determine that there are enough other terminals around and can send discovery messages to other terminals in the vicinity. When the wireless resource utilization rate of the direct communication links is less than the preset value, the terminal will ignore the instruction message to send a discovery message.
[0150] In the embodiments of this application, the preset value changes according to actual needs and is not a fixed value, so it will not be explained in detail here.
[0151] For example, when the wireless resource occupancy rate of the direct communication link of a terminal is 46%, and the preset value is 30%, 46% is greater than 30%, then it can be determined that there are a sufficient number of other terminals in the vicinity.
[0152] When the wireless resource occupancy rate of the terminal's direct communication link is 35% (the default value is 40%), the terminal will ignore the indication message for sending the discovery message if the 35% is less than 40%.
[0153] Condition 2: The terminal receives a discovery message request from another terminal;
[0154] Another way to discover other terminals in the vicinity is for other terminals to actively send discovery message requests to the terminal. After receiving the discovery message requests from other terminals, the terminal can discover other terminals in the vicinity through the received discovery message requests. Thus, the terminal determines the number of other terminals in the vicinity based on the number of discovery message requests received.
[0155] Condition 3: The target address corresponding to the discovery message request received by the terminal is in the target address list;
[0156] After receiving the discovery message request, the terminal needs to parse the corresponding target address based on the received discovery message request. The discovery message request contains the target address information, which is either the target address of the terminal corresponding to the discovery message of the ProSe service or the target address of the ProSe service.
[0157] The terminal obtains Table 2 through the communication protocol. Table 2 shows the correspondence between discovery message requests and the parsed target addresses, as shown below:
[0158] Discovery message request Target address Discovery Message Request 1 0xFFAF Discovery Message Request 2 0xFFFB Discovery message request 3 0xFFAB ...... ......
[0159] Table 2
[0160] In this embodiment of the application, the terminal can parse the target address through the discovery message request. After obtaining the target address of the discovery message request, the correspondence between the discovery message request and the target address can be saved. When the terminal receives the discovery message request again, it can obtain the target address corresponding to the discovery message request through Table 2.
[0161]
[0162]
[0163] Table 3
[0164] In this embodiment of the application, Table 3 is a list of target addresses. After obtaining the target address corresponding to the discovery message request, the target address is matched with the target address list of the terminal. If a matching target address is found, it means that the target address is in the target address list of the terminal. Then the terminal will consider the terminal that sent the discovery message request as the surrounding terminals. If no matching target address is found, the terminal will ignore the terminal that sent the discovery message request.
[0165] The above method achieves two-way recognition between the terminal and the terminal that sends the discovery message request. Surrounding terminals need to send discovery message requests to the terminal, and the target address parsed from the discovery message request must be in the target address list of the terminal. If the target address parsed from the discovery message request is not in the target address list, the terminal will ignore the terminal even if the terminal that sent the discovery message request is nearby.
[0166] Condition 4: The terminal is in a state of receiving or sending the discovery message.
[0167] When a terminal is in the state of sending or receiving discovery messages, it indicates that the terminal is in the service cycle of the non-access layer. During the service cycle, the non-access layer can process the discovery messages sent or received by the terminal. Therefore, the terminal can send discovery messages through instruction messages.
[0168] It should be noted that in the implementation of this application, any two of the four triggering conditions can be combined, any three can be combined, or all four can be combined. Only five combinations have been listed above. Other combinations can be referred to any one of the cases one to five above. Other combinations will not be listed in detail here.
[0169] If the triggering conditions meet the conditions described above, a ProSe service discovery message can be sent. Before sending the ProSe service discovery message, the type of the discovery message has been obtained according to the indication information. Therefore, the discovery message needs to be processed. When the type of the discovery message is a ProSe service discovery message, the ProSe service discovery message is compressed. Of course, when the type of the discovery message is a trunk service discovery message, no processing is performed on the discovery message.
[0170] After processing the discovery message of the ProSe service, the fixed bit rate of the discovery message is calculated. After obtaining the fixed bit rate of the discovery message, the discovery message is sent according to the mapping relationship between the fixed bit rate and the transmission power. The fixed bit rate and the transmission power are inversely proportional. The larger the fixed bit rate, the smaller the transmission power. The mapping relationship between the fixed bit rate and the transmission power is specified in the communication protocol.
[0171] In one possible design, before sending the discovery message, the transmission frequency can be determined based on the system information (SIB) broadcast by the base station, and the discovery message can be sent according to the determined transmission frequency. In this embodiment of the application, since the relationship between SIB and frequency is a well-known technology to those skilled in the art, it will not be described in detail here.
[0172] The method described above provides detailed judgment conditions for ProSe service discovery messages. When the indication message indicates that a ProSe service discovery message should be sent, the triggering conditions are detected based on the indication message. When the triggering conditions meet the requirements, the ProSe service discovery message is sent, thereby enabling the terminal to accurately judge and send ProSe service discovery messages, and thus achieving wide coverage of ProSe services.
[0173] Example 2
[0174] Example 1 describes the terminal's processing of ProSe service discovery messages. The receiving end will also process the discovery messages accordingly; see the attached document for details. Figure 5 As shown in the figure, this application embodiment also provides a method for processing discovery messages. After a discovery message is sent from the sending end to the receiving end, the receiving end processes the discovery message. The specific implementation process is as follows:
[0175] Step S21: Parse the message type of the received discovery message.
[0176] After receiving a discovery message, the receiving end needs to determine the type of the discovery message. The determination of the discovery message type can be done in one or a combination of the following methods:
[0177] The first method: determine based on the physical resource pool where the discovered message is located.
[0178] Specifically, the physical resource pool is used to receive discovery messages according to the type of discovery message. That is, after the physical resource pool receives the discovery message, if the physical resource pool that receives the discovery message contains a discovery message for the relay service, then the discovery message is a discovery message for the relay service; if the physical resource pool that receives the discovery message contains a discovery message for the ProSe service, then the discovery message is a discovery message for the ProSe service.
[0179] The second method is to determine the message type of the discovery message based on the type identifier in the direct link control instruction of the terminal.
[0180] Specifically, after receiving a discovery message, the value of the type identifier corresponding to the discovery message is obtained. The type identifier in the discovery message is an inherent characteristic of the discovery message, so the type identifier can be obtained from the discovery message. When the type identifier is a first set value, the discovery message is a discovery message for the ProSe service; when the type identifier is a second set value, the discovery message is a discovery message for the relay service.
[0181] For example, if the type identifier value is 1, it indicates that the discovery message is a ProSe service discovery message; if the type identifier value is 0, it indicates that the discovery message is a relay service discovery message.
[0182] Additionally, if the type identifier is an integer greater than 1, it indicates that the discovery message is a subtype of the ProSe service. In this embodiment, the ProSe service includes at least one type of service.
[0183] The third method: determine the message type of the discovery message based on the logical channel identification code.
[0184] Specifically, after receiving a discovery message, the logical channel identifier code of the discovery message is obtained. The obtained logical channel identifier code of the discovery message is matched with the first logical channel identifier code list and the second logical channel identifier code list. The type of discovery message is determined according to the list where the matching logical channel identifier code is located. It should be noted that the logical channel identifier code of the discovery message of the relay service is stored in the first logical channel identifier code list, and the logical channel identifier code of the discovery message of the ProSe service is stored in the second logical channel identifier code list.
[0185] If a matching logical channel identifier code is found in the first logical channel identifier code list, then the discovery message is a discovery message for the relay service. If a matching logical channel identifier code is found in the second logical channel identifier code list, then the discovery message is a discovery message for the ProSe service.
[0186] The method described above can determine the type of discovery message sent from the terminal to the receiving end through any of the three methods, accurately classify the type of received discovery message, avoid the need to consume a lot of resources when processing discovery messages, and facilitate the centralized processing of discovery messages of the same type.
[0187] Step S22: Transmit the discovery message corresponding to the message type to the non-access layer.
[0188] After discovering that the message type is a relay service discovery message, the discovery messages of relay terminals that meet the first preset condition need to be sent to the non-access layer. The first preset condition can be one of the following two conditions:
[0189] Condition 1: The discovery message is a relay service discovery message with signal-to-noise ratio (SNR). The higher the SNR, the less interference the signal is subjected to during transmission.
[0190] After determining that the discovery message is a discovery message for a relay service with signal-to-noise ratio, the discovery message is sent to the non-access stratum.
[0191] Condition 2: The discovery message is a relay service discovery message with a channel quality value, which represents the communication quality of the wireless channel.
[0192] After determining that the discovery message is a relay service discovery message with a channel quality value, the relay service discovery message and the corresponding channel quality value are sent together to the non-access stratum.
[0193] Using the method described above, after confirming that the discovery message is a trunk service discovery message, the trunk service discovery message can be sent to the non-access layer using either condition one or condition two described above.
[0194] Once it is determined that the discovery message is a ProSe service discovery message, the discovery message that meets the second preset condition needs to be sent to the non-access layer. The second preset condition can be the following condition one and / or condition two:
[0195] Condition 1: The discovery message type is a ProSe service discovery message.
[0196] After determining that the discovery message is a ProSe service discovery message, the ProSe service discovery message is sent directly to the non-access layer.
[0197] Condition 2: The discovery message is the same as the discovery message in the discovery message type list in the non-access stratum.
[0198] After determining that the discovery message type is a ProSe service discovery message, the ProSe service discovery message is matched with the discovery message type list in the AS layer, and the discovery message that is the same as the discovery message in the discovery message type list is uploaded to the non-access layer.
[0199] Using the method described above, after confirming that the discovery message is a ProSe service discovery message, the ProSe service discovery message that meets conditions one and / or two as described above can be uploaded to the non-access layer.
[0200] Based on the method described above, with the addition of ProSe service-related information, the receiving end can accurately identify the discovery messages of the relay service and the discovery messages of the ProSe service, and thus perform different processing according to different types of discovery messages.
[0201] Example 3
[0202] Corresponding to the method provided in Embodiment 1, this application also provides a discovery message sending device, which implements the function of a discovery message sending method, as described above. Figure 6 The device includes:
[0203] The receiving module 601 is specifically used to receive the first indication message;
[0204] The determining module 602 is specifically used to determine whether to send a discovery message for the ProSe neighbor service based on the first indication message.
[0205] In one possible design, the determining module 602 is specifically used to determine whether to send the discovery message of the ProSe service based on the detected triggering conditions. The triggering conditions include one or a combination of the following conditions: the wireless resource occupancy rate of the direct communication link of the terminal exceeds a preset value; the terminal receives a discovery message request sent by another terminal; the target address corresponding to the discovery message request received by the terminal is in the target address list; and the terminal is in a state of receiving or sending the discovery message.
[0206] In one possible design, the determining module 602 is further configured to determine, based on a first indication message indicating that the type of the discovery message is a ProSe service discovery message, send the discovery message of type ProSe service, and based on the target address corresponding to the indication message indicating ProSe service and the first indication message of the ProSe service terminal, determine that the type of the discovery message is a ProSe service discovery message.
[0207] In one possible design, the determining module 602 is further configured to process the discovery message according to the type of the discovery message, calculate the fixed bitrate of the processed discovery message, and send the discovery message according to the fixed bitrate.
[0208] Example 4
[0209] Corresponding to the method provided in Embodiment 2, this application embodiment also provides a discovery message processing device, which implements the function of a discovery message processing method, as described above. Figure 7 The device includes:
[0210] The parsing module 701 is specifically used to parse the message type of the received discovery message;
[0211] The sending module 702 is specifically used to transmit the discovery message corresponding to the message type to the non-access layer.
[0212] In one possible design, the parsing module 701 is specifically used to determine the message type of the discovery message based on the physical resource pool, and / or based on the type identifier in the direct link control indication of the terminal, and / or based on the logical channel identification code in the terminal.
[0213] In one possible design, the parsing module 701 is further configured to determine the value of the type identifier of the discovery message. If the value of the type identifier is a first preset value, then the discovery message is a discovery message for the ProSe service; if the value of the type identifier is a second preset value, then the discovery message is a discovery message for the trunk service.
[0214] In one possible design, the sending module 702 is specifically used to send the discovery message to the non-access stratum when the message type is a discovery message for ProSe service, and / or the discovery message is the same as the discovery message in the discovery message type list in the non-access stratum.
[0215] Example 5
[0216] This application also provides a communication device, such as... Figure 8 As shown, the communication device includes a processor 801, a memory 802, and a bus interface 803.
[0217] The processor 801 is responsible for managing the bus architecture and general processing, while the memory 802 can store the data used by the processor 803 when performing operations.
[0218] The bus architecture can include any number of interconnected buses and bridges, specifically linking various circuits together, represented by one or more processors (processor 801) and memory (memory 802). The bus architecture can also link various other circuits such as peripheral devices, voltage regulators, and power management circuits, which are well known in the art and therefore will not be described further herein. The bus interface provides the interface. Processor 801 is responsible for managing the bus architecture and general processing, and memory 802 can store data used by processor 801 during operation.
[0219] The processes disclosed in this disclosure can be applied to or implemented by processor 801. During implementation, each step of the signal processing flow can be completed by integrated logic circuits in the hardware of processor 801 or by instructions in software form. Processor 801 can be a general-purpose processor, digital signal processor, application-specific integrated circuit, field-programmable gate array (FPGA), or other programmable logic device, discrete gate or transistor logic device, or discrete hardware component, and can implement or execute the methods, steps, and logic block diagrams disclosed in this disclosure. A general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in this disclosure can be directly implemented by the hardware processor, or implemented by a combination of hardware and software modules in the processor. The software modules can be located in random access memory (RAM), flash memory, read-only memory (ROM), programmable read-only memory (PROM), electrically erasable programmable memory (EEPROM), registers, or other mature storage media in the art. This storage medium is located in memory 802, and processor 801 reads information from memory 802 and combines it with its hardware to complete the steps of the information processing flow.
[0220] Specifically, the processor 801 is used to read computer instructions from the memory 802 and execute the message sending method of the present disclosure embodiment, specifically performing the following steps:
[0221] Receive a first indication message and, based on the first indication message, determine whether to send a discovery message for the ProSe neighboring service.
[0222] In one possible design, the processor 801 is specifically configured to determine whether to send the discovery message of the ProSe service based on detected triggering conditions. The triggering conditions include one or a combination of the following: the wireless resource occupancy rate of the direct communication link of the terminal exceeds a preset value; the terminal receives a discovery message request sent by another terminal; the target address corresponding to the discovery message request received by the terminal is in the target address list; and the terminal is in a state of receiving or sending the discovery message.
[0223] In one possible design, the processor 801 is further configured to determine, based on a first indication message indicating that the type of the discovery message is a ProSe service discovery message, send the discovery message of type ProSe service discovery message, and based on the target address corresponding to the indication message indicating ProSe service and the first indication message of the ProSe service terminal, determine that the type of the discovery message is a ProSe service discovery message to be sent.
[0224] In one possible design, the processor 801 is further configured to determine to send a ProSe service discovery message when the trigger condition is that the wireless resource occupancy rate of the direct communication link of the terminal exceeds a preset value; when the trigger condition is that the terminal receives a discovery message request sent by another terminal; when the trigger condition is that the target address corresponding to the discovery message request received by the terminal is in the target address list; and when the trigger condition is that the terminal is in the state of receiving or sending the discovery message, determine to send a ProSe service discovery message.
[0225] In one possible design, the processor 801 is further configured to process discovery messages of type relay service through a first preset mode, wherein the first preset mode directly uses the discovery message, and process discovery messages of type ProSe service through a second preset mode, wherein the second preset mode compresses the discovery message.
[0226] In one possible design, the processor 801 is further configured to process the discovery message according to the type of the discovery message, calculate the fixed bitrate of the processed discovery message, and send the discovery message according to the fixed bitrate.
[0227] Example 6
[0228] This application also provides a communication device, such as... Figure 9 As shown, the communication device includes a processor 901, a memory 902, and a bus interface 903.
[0229] Processor 901 is responsible for managing the bus architecture and general processing, while memory 902 can store data used by processor 903 when performing operations.
[0230] The bus architecture can include any number of interconnected buses and bridges, specifically linking various circuits together, represented by one or more processors (processor 901) and memory (memory 902). The bus architecture can also link various other circuits such as peripheral devices, voltage regulators, and power management circuits, which are well known in the art and therefore will not be described further herein. The bus interface provides the interface. Processor 901 is responsible for managing the bus architecture and general processing, and memory 902 can store data used by processor 901 during operation.
[0231] The processes disclosed in this disclosure can be applied to or implemented by processor 901. During implementation, each step of the signal processing flow can be completed by integrated logic circuits in the hardware of processor 901 or by instructions in software form. Processor 901 can be a general-purpose processor, digital signal processor, application-specific integrated circuit, field-programmable gate array (FPGA), or other programmable logic device, discrete gate or transistor logic device, or discrete hardware component, and can implement or execute the methods, steps, and logic block diagrams disclosed in this disclosure. A general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in this disclosure can be directly implemented by the hardware processor, or implemented by a combination of hardware and software modules in the processor. The software modules can be located in random access memory (RAM), flash memory, read-only memory (ROM), programmable read-only memory (PROM), electrically erasable programmable memory (EPR), registers, or other mature storage media in the art. This storage medium is located in memory 902, and processor 901 reads information from memory 902 and completes the steps of the information processing flow in conjunction with its hardware.
[0232] Specifically, the processor 901 is used to read computer instructions from the memory 902 and execute the message processing method of this embodiment, specifically performing the following steps:
[0233] Parse the message type of the received discovery message and transmit the discovery message corresponding to the message type to the non-access layer.
[0234] In one possible design, the processor 901 is specifically configured to determine the message type of the discovery message based on a physical resource pool, wherein the physical resource pool stores discovery messages of the same type, and / or determine the message type of the discovery message based on a type identifier in the direct link control indication of the terminal, and / or determine the message type of the discovery message based on a logical channel identification code in the terminal.
[0235] In one possible design, the processor 901 is further configured to obtain the type identifier of the discovery message; if the value of the type identifier is a first preset value, then the discovery message is a discovery message for the ProSe service; if the value of the type identifier is a second preset value, then the discovery message is a discovery message for the relay service.
[0236] In one possible design, the processor 901 is further configured to obtain the logical channel identifier code corresponding to the discovery message, and match the logical channel identifier code with a first logical channel identifier code list and a second logical channel identifier code list. The first logical channel identifier code list stores the logical channel identifier codes of discovery messages for relay services, and the second logical channel identifier code list stores the logical channel identifier codes of discovery messages for ProSe services. If the logical channel identifier code of the discovery message is in the first logical channel identifier code list, then the discovery message is a discovery message for a relay service; if the logical channel identifier code of the discovery message is in the second logical channel identifier code list, then the discovery message is a discovery message for a ProSe service.
[0237] In one possible design, the processor 901 is further configured to send the discovery message to the non-access stratum when the message type is a discovery message for the ProSe service, and / or the discovery message is the same as a discovery message in the discovery message type list in the non-access stratum.
[0238] It should be noted that the communication device provided in this embodiment can implement all the method steps implemented in the above method embodiment and can achieve the same technical effect. Therefore, the parts and beneficial effects that are the same as those in the method embodiment will not be described in detail here.
[0239] This disclosure also provides a computer program product, which, when invoked by a computer, causes the computer to execute the discovery message sending method and discovery message processing method described in the above embodiments.
[0240] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0241] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to this application. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0242] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0243] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0244] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the spirit and scope of this application. Therefore, if such modifications and variations fall within the scope of the claims of this application and their equivalents, this application also intends to include such modifications and variations.
Claims
1. A method of transmitting a discovery message, characterized by, include: Receive the first instruction message; Based on the first instruction message, determine whether to send a discovery message for the ProSe neighboring service; The first indication message includes one or a combination of the following: the first indication message is a discovery message indicating the sending of ProSe service; the first indication message is a discovery message indicating that the type of the discovery message is ProSe service; the first indication message indicates the service characteristics of the discovery message of ProSe service, wherein the service characteristics are the service period and service start time related to the ProSe service; the first indication message indicates that the target address corresponding to the discovery message of ProSe service is a ProSe service terminal. The step of determining whether to send a discovery message for the ProSe neighbor service based on the first indication message includes: Based on the first indication message, obtain the triggering condition, and determine whether to send the discovery message of the ProSe service based on the triggering condition; The triggering conditions include one or a combination of the following conditions: The wireless resource occupancy rate of the direct communication link of the terminal exceeds a preset value. The wireless resource occupancy rate is determined based on the ratio of the number of direct communication links currently used by the terminal to the total number of direct communication links of the terminal. The target address corresponding to the discovery message request received by the terminal is in the target address list. The target address corresponding to the discovery message request is determined based on the correspondence between the discovery message request and the target address. The target address is either the target address of the terminal corresponding to the discovery message of the ProSe service or the target address of the ProSe service.
2. The method of claim 1, wherein, Before determining whether to send a discovery message for the ProSe neighbor service, the method further includes: Based on the first indication message indicating that the discovery message type is a ProSe service discovery message, it is determined that the discovery message to be sent is a ProSe service discovery message; or Based on the target address corresponding to the indication message for the ProSe service and the first indication message of the ProSe service terminal, it is determined that the type of the discovery message to be sent is a discovery message for the ProSe service.
3. The method of claim 1, wherein, Before determining whether to send a discovery message for the ProSe neighboring service, the following steps are also included: The discovery message is processed according to its type. Calculate the fixed bitrate of the processed discovery message, and send the discovery message according to the fixed bitrate.
4. The method of claim 3, wherein, Processing the discovery message according to its type includes: Discovery messages of type relay service are processed through a first preset mode, wherein the first preset mode directly uses the discovery message; Discovery messages of type ProSe service are processed through a second preset mode, wherein the second preset mode compresses the discovery messages.
5. The method of claim 3, wherein, The discovery message is sent according to a fixed bitrate, including: Based on the mapping relationship between fixed code rate and transmission power, determine the transmission power corresponding to the fixed code rate; The discovery message is sent according to the transmission power.
6. A method of processing a discovery message, characterized by, include: Parse the message type of the received discovery message; Transmit the discovery message corresponding to the message type to the non-access layer; The message types of the received discovery messages being parsed include: The message type of the discovery message is determined based on the physical resource pool, wherein the physical resource pool stores discovery messages of the same type; and / or, the message type of the discovery message is determined based on the type identifier in the direct link control instruction of the terminal; and / or, the message type of the discovery message is determined based on the logical channel identification code in the terminal. The step of transmitting the discovery message corresponding to the message type to the non-access layer includes: If the message type is a relay service discovery message, then the relay service discovery message with signal-to-noise ratio or the relay service discovery message with channel quality value will be transmitted to the non-access layer; the channel quality value represents the communication quality of the wireless channel. If the message type is a ProSe service discovery message, then the ProSe service discovery message, and / or the discovery message that is the same as the discovery message in the discovery message type list in the non-access stratum, will be transmitted to the non-access stratum.
7. The method as described in claim 6, characterized in that, The step of determining the message type of the discovery message based on the physical resource pool includes: If the physical resource pool where the discovery message is located stores discovery messages for relay services, then the discovery message is a discovery message for relay services. If the physical resource pool containing the discovery message stores discovery messages for the ProSe service, then the discovery message is a discovery message for the ProSe service.
8. The method as described in claim 6, characterized in that, Determining the message type of the discovery message based on the type identifier in the terminal's direct link control indication includes: Obtain the type identifier of the discovery message; If the value of the type identifier is the first set value, then the discovery message is a discovery message for the ProSe service; If the type identifier is set to a second preset value, then the discovery message is a discovery message for a relay service.
9. The method as described in claim 6, characterized in that, Determining the message type of the discovery message based on the logical channel identification code in the terminal includes: Obtain the logical channel identifier code corresponding to the discovery message, and match the logical channel identifier code with a first logical channel identifier code list and a second logical channel identifier code list, wherein the first logical channel identifier code list stores the logical channel identifier code of the discovery message of the relay service, and the second logical channel identifier code list stores the logical channel identifier code of the discovery message of the ProSe service. If the logical channel identifier code of the discovery message is in the first logical channel identifier code list, then the discovery message is a discovery message for a relay service. If the logical channel identifier code of the discovery message is in the second logical channel identifier code list, then the discovery message is a discovery message for the ProSe service.
10. A device for sending a discovery message, characterized in that, include: The receiving module is used to receive the first indication message; The determining module is used to determine, based on the first indication message, whether to send a discovery message for the ProSe neighbor service; The first indication message includes one or a combination of the following: the first indication message is a discovery message indicating the sending of ProSe service; the first indication message is a discovery message indicating that the type of the discovery message is ProSe service; the first indication message indicates the service characteristics of the discovery message of ProSe service, wherein the service characteristics are the service period and service start time related to the ProSe service; the first indication message indicates that the target address corresponding to the discovery message of ProSe service is a ProSe service terminal. The determining module is used for: Based on the first indication message, obtain the triggering condition, and determine whether to send the discovery message of the ProSe service based on the triggering condition; The triggering conditions include one or a combination of the following conditions: The wireless resource occupancy rate of the direct communication link of the terminal exceeds a preset value. The wireless resource occupancy rate is determined based on the ratio of the number of direct communication links currently used by the terminal to the total number of direct communication links of the terminal. The target address corresponding to the discovery message request received by the terminal is in the target address list. The target address corresponding to the discovery message request is determined based on the correspondence between the discovery message request and the target address. The target address is either the target address of the terminal corresponding to the discovery message of the ProSe service or the target address of the ProSe service.
11. A processing apparatus for a discovery message, characterized in that, include: The parsing module is used to parse the message type of the received discovery message; The sending module is used to send discovery messages that meet the first preset conditions to the non-access layer and to send discovery messages that meet the second preset conditions to the non-access layer. The parsing module is used for: The message type of the discovery message is determined based on the physical resource pool, wherein the physical resource pool stores discovery messages of the same type; and / or, the message type of the discovery message is determined based on the type identifier in the direct link control instruction of the terminal; and / or, the message type of the discovery message is determined based on the logical channel identification code in the terminal. The sending module is used for: If the message type is a relay service discovery message, then the relay service discovery message with signal-to-noise ratio or the relay service discovery message with channel quality value will be transmitted to the non-access layer; the channel quality value represents the communication quality of the wireless channel. If the message type is a ProSe service discovery message, then the ProSe service discovery message, and / or the discovery message that is the same as the discovery message in the discovery message type list in the non-access stratum, will be transmitted to the non-access stratum.
12. A communication device, characterized in that, include: Memory, which stores computer programs; A processor is configured to read a computer program from the memory and perform the following steps: The system receives a first indication message and determines, based on the first indication message, whether to send a ProSe service discovery message; the first indication message includes one or a combination of the following: the first indication message is an indication to send a ProSe service discovery message; the first indication message is an indication that the type of the discovery message is a ProSe service discovery message; the first indication message is an indication of the service characteristics of the ProSe service discovery message, wherein the service characteristics are the service period and service start time related to the ProSe service; the first indication message is an indication that the target address corresponding to the ProSe service discovery message is a ProSe service terminal. The processor is configured to obtain a triggering condition based on the first indication message, and determine whether to send a discovery message for the ProSe service based on the triggering condition. The triggering condition includes one or a combination of the following conditions: The wireless resource occupancy rate of the direct communication link of the terminal exceeds a preset value. The wireless resource occupancy rate is determined based on the ratio of the number of direct communication links currently used by the terminal to the total number of direct communication links of the terminal. The target address corresponding to the discovery message request received by the terminal is in the target address list. The target address corresponding to the discovery message request is determined based on the correspondence between the discovery message request and the target address. The target address is either the target address of the terminal corresponding to the discovery message of the ProSe service or the target address of the ProSe service.
13. The device as claimed in claim 12, characterized in that, The processor is further configured to determine, based on a first indication message indicating that the type of the discovery message is a ProSe service discovery message, send the discovery message of type ProSe service discovery message, and based on the target address corresponding to the indication message indicating ProSe service and the first indication message of the ProSe service terminal, determine that the type of the discovery message is a ProSe service discovery message.
14. The device as claimed in claim 12, characterized in that, The processor is further configured to process discovery messages of type relay service through a first preset mode, wherein the first preset mode directly uses the discovery message, and process discovery messages of type ProSe service through a second preset mode, wherein the second preset mode compresses the discovery message.
15. The device as claimed in claim 12, characterized in that, The processor is further configured to process the discovery message according to the type of the discovery message, calculate the fixed bitrate of the processed discovery message, and send the discovery message according to the fixed bitrate.
16. A communication device, characterized in that, include: Memory, which stores computer programs; A processor is configured to read a computer program from the memory and perform the following steps: Parse the message type of the received discovery message and transmit the discovery message corresponding to the message type to the non-access layer; The processor is configured to determine the message type of the discovery message based on a physical resource pool, wherein the physical resource pool stores discovery messages of the same type; and / or determine the message type of the discovery message based on a type identifier in the direct link control indication of the terminal; and / or determine the message type of the discovery message based on a logical channel identification code in the terminal. The step of transmitting the discovery message corresponding to the message type to the non-access layer includes: If the message type is a relay service discovery message, then the relay service discovery message with signal-to-noise ratio or the relay service discovery message with channel quality value will be transmitted to the non-access layer; the channel quality value represents the communication quality of the wireless channel. If the message type is a ProSe service discovery message, then the ProSe service discovery message, and / or the discovery message that is the same as the discovery message in the discovery message type list in the non-access stratum, will be transmitted to the non-access stratum.
17. The device as claimed in claim 16, characterized in that, The processor is further configured to obtain the type identifier of the discovery message; if the value of the type identifier is a first preset value, the discovery message is a discovery message for the ProSe service; if the value of the type identifier is a second preset value, the discovery message is a discovery message for the relay service.
18. The device as claimed in claim 16, characterized in that, The processor is further configured to obtain the logical channel identifier code corresponding to the discovery message, and match the logical channel identifier code with a first logical channel identifier code list and a second logical channel identifier code list. The first logical channel identifier code list stores the logical channel identifier codes of discovery messages for relay services, and the second logical channel identifier code list stores the logical channel identifier codes of discovery messages for ProSe services. If the logical channel identifier code of the discovery message is in the first logical channel identifier code list, then the discovery message is a discovery message for a relay service; if the logical channel identifier code of the discovery message is in the second logical channel identifier code list, then the discovery message is a discovery message for a ProSe service.
19. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions for causing the computer to perform the method as described in any one of claims 1-5 and 6-9.
20. A computer program product, characterized in that, When the computer program product is invoked by a computer, it causes the computer to perform the method as described in any one of claims 1-5 and 6-9.