Discourse right queuing method and terminal equipment
By implementing the queuing method of speaking in the terminal device, the problem that the base station has no queuing function or the terminal equipment cannot automatically queue in the direct-through mode is solved, and the orderly queuing rights between terminal devices is realized, which improves communication efficiency and controllability.
Patent Information
- Application Number
- CN202510486753.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-17
- Publication Date
- 2025-06-13
AI Technical Summary
When the base station is in a state without the queuing function or in a direct-through mode, the terminal device cannot realize the automatic queuing of the vocal right, resulting in a reduction in communication efficiency and the randomness of the vocal right allocation, resulting in some terminal devices being unable to obtain the vocal right.
By implementing the queuing method of speaking in the terminal device, the terminal device receives application messages from other terminals when it has the vocal rights, adds the application terminal to the application list according to the preset sorting rules, and sends a notification message to the first vocal queuing terminal, so that it obtains the vocal rights after the terminal releases the vocal rights.
In the base station queuing function or direct-through mode, the orderly distributive right allocation between terminal devices is realized, avoiding communication chaos and delays, and ensuring that each terminal device obtains the distributive right in sequence.
Smart Images

Figure CN120151332A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technologies, and in particular, to a method for queuing the right to speak and a terminal device. Background Art
[0002] In private network communication, a terminal device can apply for the right to speak by pressing a PTT (Push-to-Talk) button or a TK (Transmit Key) button. These terminal devices can send a right-to-speak request message to a base station or other control devices to obtain the right to speak. After the terminal device obtains the right to speak, it can send voice information to other terminals or groups.
[0003] In an emergency, such as an emergency group call, multiple members within a group can simultaneously press the PTT or TK button to apply for the right to speak. Especially for the TK button, users hope that the terminal can automatically apply for the right to speak after the current speaker releases the right to speak, without having to press the TK button again, thereby improving communication efficiency and response speed. In a trunking system, the base station usually has the function of queuing the right to speak. Suppose a terminal A applies for the right to speak. Terminal A will send a right-to-speak request message to the base station and wait for the base station to feedback a right-to-speak grant signaling before it can start speaking. Suppose while terminal A is speaking, terminal B and terminal C respectively press the emergency button and also want to speak. After terminal A releases the right to speak, the base station will allocate according to the order in which the terminals apply for the right to speak, ensuring that each terminal obtains a speaking opportunity in sequence.
[0004] However, if the base station does not have the function of queuing the right to speak, or the right-to-speak queuing function is not enabled, or in the direct mode, the automatic queuing of the right to speak cannot be achieved. In this case, the terminal device can only obtain the right to speak through manual requests or a competition mechanism, which will lead to communication efficiency reduction due to the contention for the uplink among terminal devices, or the randomness of the right-to-speak allocation resulting in some terminal devices never obtaining the right to speak.
[0005] Therefore, how to efficiently and orderly allocate the right to speak of terminals in a state where the base station does not have the right-to-speak queuing function or in the direct mode, so as to avoid communication chaos among terminal devices, is a technical problem that those skilled in the art urgently need to solve. Summary of the Invention
[0006] Based on the above problems, this application provides a method for queuing the right to speak and a terminal device, which can efficiently and orderly allocate the right to speak of terminals in a state where the base station does not have the right-to-speak queuing function or in the direct mode without a base station, so as to avoid communication chaos among terminal devices.
[0007] The embodiments of this application disclose the following technical solutions:
[0008] A method for queuing the right to speak, which is applied to a first terminal. The method includes:
[0009] When the first terminal has the right to speak, if a right-to-speak application message sent by another terminal is received, based on a preset right-to-speak sorting rule and the terminal information carried in the right-to-speak application message, the terminal corresponding to the terminal information is added to the application list of the first terminal as a queuing terminal.
[0010] Send a first notification message to the first queuing terminal so that the first queuing terminal can obtain the right to speak after the first terminal releases the right to speak; the first queuing terminal is the queuing terminal at the top of the application list.
[0011] Send the application list to the first queuing terminal so that other terminals that still need to apply for the right to speak can send right-to-speak application messages to the first queuing terminal.
[0012] In a possible implementation, the preset right-to-speak sorting rule includes the time sequence of receiving right-to-speak application messages sent by queuing terminals.
[0013] Or, the priority level of the terminal sending the right-to-speak application message.
[0014] In a possible implementation, the sending of the first notification message to the first queuing terminal so that the first queuing terminal can obtain the right to speak after the first terminal releases the right to speak includes:
[0015] After the first terminal releases the right to speak, send a first notification message to the first queuing terminal so that the first queuing terminal can send a right-to-speak application request to the base station based on the received notification message.
[0016] In a possible implementation, the sending of the first notification message to the first queuing terminal so that the first queuing terminal can obtain the right to speak after the first terminal releases the right to speak includes:
[0017] When the first terminal has the right to speak, send a first notification message to the first queuing terminal so that the first queuing terminal can send a right-to-speak application request to the base station when detecting that the channel is idle based on the received notification message.
[0018] In a possible implementation, the sending of the first notification message to the first queuing terminal so that the first queuing terminal can obtain the right to speak after the first terminal releases the right to speak includes:
[0019] Send a first notification message to the first queuing terminal so that the first queuing terminal can start speaking when detecting that the channel is idle based on the received notification message.
[0020] In a possible implementation, the method further includes:
[0021] Notifying other terminals in the communication system that the first queuing terminal is the terminal that has obtained the right to speak.
[0022] In a possible implementation, the sending the application list to the first queuing terminal includes:
[0023] After receiving the first response message from the first queuing terminal, sending the application list to the first queuing terminal, where the first response message is sent after the first queuing terminal obtains the right to speak in the system.
[0024] In a possible implementation, the method further includes:
[0025] If, within a first preset time, a response message indicating obtaining the right to speak sent by the first queuing terminal is not received, or if a message indicating failure to obtain the right to speak sent by the first queuing terminal is received, then sending a second notification message to the second queuing terminal, so that the second queuing terminal can obtain the right to speak after the first terminal releases the right to speak; the second queuing terminal is the queuing terminal ranked second in the application list.
[0026] In a possible implementation, the method further includes:
[0027] When the first terminal receives a message from the i-th queuing terminal giving up the application for the right to speak, the first terminal deletes the i-th queuing terminal from the application list, where i is a positive integer.
[0028] In a possible implementation, the method further includes:
[0029] If the number of queuing terminals is greater than the queuing threshold of the application list, sorting the terminal that sends the right-to-speak application message and the queuing terminals in the application list based on the preset right-to-speak sorting rule, and recording the queuing terminals that do not exceed the queuing threshold of the application list in the application list
[0030] A method for queuing the right to speak, applied to a second terminal, the method includes:
[0031] Confirming the terminal that currently has the right to speak, where the terminal that has the right to speak stores an application list for queuing the right to speak;
[0032] Sending a right-to-speak application message to the terminal that has the right to speak; so that the terminal that has the right to speak adds the second terminal as a queuing terminal to the application list based on the preset right-to-speak sorting rule and the terminal information of the second terminal carried in the right-to-speak application message;
[0033] Upon receiving the third notification message sent by the terminal with the right to speak, obtain the right to speak;
[0034] Receive the application list sent by the terminal with the right to speak.
[0035] In a possible implementation, before receiving the application list sent by the terminal with the right to speak, it further includes:
[0036] After obtaining the right to speak, generate a second response message for replying to the third notification message and send it to the terminal with the right to speak, so that the terminal with the right to speak sends the application list to the second terminal.
[0037] In a possible implementation, the second terminal has a programmable button, and the confirmation of the terminal currently having the right to speak includes: in response to the trigger message of the programmable button, confirm the terminal currently having the right to speak.
[0038] A terminal device, the terminal device includes a memory, a processor, a transmitting module, a receiving module, and a PTT button;
[0039] The memory is used to store a computer program running on the processor;
[0040] The processor is used to execute the computer program to implement the right-to-speak queuing method according to any one of claims 1-10, or to implement the right-to-speak queuing method according to any one of claims 11-14;
[0041] The transmitting module is used to send one or more of the first notification message, the second notification message, the third notification message, the first response message, and the second response message;
[0042] The receiving module is used to receive one or more of the first notification message, the second notification message, the third notification message, the first response message, and the second response message;
[0043] The PTT button is used to initiate a speech.
[0044] Compared with the prior art, the present application has the following beneficial effects:
[0045] The present application provides a method for queuing the right to speak and a terminal device. Specifically, the embodiments of the present application are applied to a first terminal, and the specific method is as follows: Receive an application for the right to speak: When the first terminal has the right to speak, if an application message sent by another terminal is received, the terminal corresponding to the terminal information in the application message is used as a queuing terminal according to a preset sorting rule, and is added to the application list of the first terminal in sequence. Send a notification message: Send a notification message to the queuing terminal at the head of the application list, instructing the terminal to obtain the right to speak after the first terminal releases the right to speak. The first queuing terminal is the first queuing terminal in the application list. Transmit the application list: Transmit the current application list to the first queuing terminal so that it can continue to manage the application for the right to speak of other terminals after receiving the right to speak.
[0046] The present application manages the queuing of the right to speak through the terminal with the right to speak, sorts the application messages for the right to speak according to a preset rule, and forms a queuing mechanism, which can avoid conflicts when multiple terminal devices apply for the right to speak at the same time, and transmit the management authority to the next terminal with the right to speak when the right to speak is released. This method enables the queuing of the right to speak of the terminal not to depend on the base station or fixed communication equipment, but to be dynamically managed by the terminals in communication, realizing a more orderly and controllable distribution of the right to speak, and avoiding communication delays or chaos caused by random competition. At the same time, by adding the received application messages to the application list and processing them according to the preset sorting rule, it can be ensured that each terminal device obtains the right to speak in a certain order. This method can avoid the situation where some terminals are unable to obtain the right to speak due to fierce competition or random allocation without a queuing mechanism, ensuring a more fair and orderly distribution of the right to speak among terminal devices. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] To more clearly illustrate the technical solutions in the embodiments or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on these drawings.
[0048] Figure 1 It is a flowchart of a method for queuing the right to speak provided by an embodiment of the present application;
[0049] Figure 2 It is a flowchart of another method for queuing the right to speak provided by an embodiment of the present application;
[0050] Figure 3 It is a schematic structural diagram of a device for queuing the right to speak provided by an embodiment of the present application;
[0051] Figure 4Schematic structural diagram of another speech right queuing device provided by an embodiment of the present application. Detailed implementation manners
[0052] To facilitate understanding of the technical solution provided by the embodiment of the present application, the background technology related to the embodiment of the present application will be described first below.
[0053] In private network communication, a terminal can request the right to speak by interacting with a base station or other control devices. Generally, the terminal requests the speaking permission by pressing the PTT button or the TK button, and then initiates a service, such as a voice service, after obtaining the right to speak, so that its voice information can be sent to other terminals or groups.
[0054] In the case of an emergency group call, multiple group members may press the PTT or TK button simultaneously to request the right to speak. Especially when using the TK button, the user hopes that when the current speaker releases the right to speak, the terminal can automatically request the right to speak without pressing the TK button again.
[0055] In a trunking system, the base station is usually equipped with a speech right queuing function. After the terminal sends a speech right request message to the base station, it needs to wait for the base station to feedback the signaling of speech right grant before starting to speak. For example, when terminal A is speaking, terminal B and terminal C respectively press the emergency button to want to speak. After terminal A releases the speech right, the base station will allocate the speech right according to the order of requesting the speech right.
[0056] However, if the base station lacks the speech right queuing function, does not enable this function, or the terminal is in a direct mode working scenario, the automatic speech right queuing function cannot be realized. This will lead to the communication efficiency being reduced due to the uplink conflict caused by the terminal devices competing for the right to speak, or the randomness of speech right allocation resulting in some terminal devices never obtaining the speech right. In the direct mode, the terminals communicate directly with each other without the participation of fixed communication devices such as base stations or repeaters.
[0057] To solve this problem, an embodiment of the present application provides a right-of-speech queuing method and a terminal device, which are applicable to a first terminal. When the first terminal has the right of speech, if an application message sent by another terminal is received, the terminal corresponding to the received terminal information is used as a queuing terminal according to a preset sorting rule and the terminal information included in the application message, and is added to the application list of the first terminal in sequence. Then, an informing message is sent to the first queuing terminal at the head of the application list, so that the first queuing terminal can obtain the right of speech after the first terminal releases the right of speech. Finally, the current application list is sent to the first queuing terminal, enabling it to continue managing the queuing list of the right-of-speech application and receiving the right-of-speech application messages of other queuing terminals after obtaining the right of speech. This application does not rely on fixed communication devices such as base stations and relay stations. By means of the terminal, it flexibly realizes sorting the right-of-speech application messages according to a preset sorting rule and forms an orderly queuing mechanism. This not only avoids conflicts when multiple terminal devices apply for the right of speech at the same time, but also makes the distribution of the right of speech more orderly and controllable, reducing communication delays or chaos caused by random competition. In addition, by adding the received application message to the application list and processing it according to a preset sorting rule, it is ensured that each terminal device can obtain the right of speech in a certain order. This method effectively avoids the problem that some terminals are unable to obtain the right of speech due to fierce competition or random allocation in the absence of a queuing mechanism, thus ensuring a more fair distribution of the right of speech among terminal devices.
[0058] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
[0059] See Figure 1 , which is a flowchart of a right-of-speech queuing method provided by an embodiment of the present application. This right-of-speech queuing method is applied to a first terminal, as Figure 1 shown. This right-of-speech queuing method may include steps S101-S103:
[0060] S101: When the first terminal has the right of speech, if a right-of-speech application message sent by another terminal is received, based on a preset right-of-speech sorting rule and the terminal information carried in the right-of-speech application message, the terminal corresponding to the terminal information is added to the application list of the first terminal as a queuing terminal.
[0061] When the first terminal has the right to speak, when the first terminal receives a request message for the right to speak sent by other terminals, the first terminal will process the request according to the preset sorting rules and the terminal information included in the request message. Specifically, first, the first terminal will obtain the terminal information provided in the request message based on the priority of the request message for the right to speak or other sorting criteria, and determine information such as the terminal identifier, priority identifier, and application time of the terminal that sent the request. Next, according to the preset sorting rules for the right to speak, it will be added to the application list of the first terminal as a queuing terminal, waiting for subsequent processing or allocation of the right to speak.
[0062] In a possible implementation manner, the preset sorting rules for the right to speak may include one of the following two methods:
[0063] The order of receiving the request message for the right to speak from queuing terminals: Sort according to the time order of each terminal sending the request message. The request message received first is processed first, that is, the terminals are added to the application list in the order of application.
[0064] The priority level of the terminal sending the request message for the right to speak: Sort according to the priority of each terminal. When applying for the right to speak, terminals with higher priorities will be ranked in the front position in the queuing list, and terminals with lower priorities will need to be ranked in the rear position in the queuing category.
[0065] These two rules can be used alone or in combination to ensure the fairness and orderliness of the allocation of the right to speak.
[0066] In a possible implementation manner, the terminal information includes but is not limited to:
[0067] Terminal identifier: Each terminal has a unique identifier used to distinguish different terminals. In one embodiment, the terminal identifier is the source terminal ID flag information in the request message for the right to speak, that is, the terminal ID identifier information of the terminal that sent the request message for the right to speak.
[0068] Priority identifier: Some terminals may have higher priorities, which can be set according to their roles, importance, or historical speaking records in the system. In one embodiment, the request message for the right to speak has a priority flag bit, and the terminal requesting the right to speak can send request messages for the right to speak with different priority levels according to reference factors such as user settings and service scenarios.
[0069] Application time: The time when the request message is sent or the time when the terminal receiving the request message for the right to speak receives the message, which can be used to determine the order of application.
[0070] Terminal type: Different types of terminals may have different priorities or permissions. For example, administrator terminals, ordinary user terminals, etc.
[0071] Historical speech records: Whether the terminal had speech records before, as well as the number of speeches and the time intervals, which can affect the priority of its current request.
[0072] In a possible implementation manner, the method further includes: adjusting the priority levels of each terminal according to the previous speech records of the terminal, as well as the number of speeches and the time intervals.
[0073] Exemplarily, assume that there are three terminals A, B, and C in a communication group, where terminal A is the first terminal. If terminal A first receives a right-of-speech application message sent by terminal B, and then receives a right-of-speech application message sent by C. At this time, the preset right-of-speech sorting rule of the first terminal is based on the time sequence of receiving the right-of-speech application messages sent by the queuing terminals. Then terminal A can record the application order of B and C and generate an application list [B, C].
[0074] In a possible implementation manner, the application list may include the first queuing terminal, and the first queuing terminal deletes its own information in the list after receiving the application list, or the application list does not include the first queuing terminal, and the first terminal deletes it when sending the application list.
[0075] S102: Send a first notification message to the first queuing terminal, so that the first queuing terminal can obtain the right of speech after the first terminal releases the right of speech.
[0076] During the process of one or more queuing terminals queuing up to wait for the right of speech, when the first terminal allocates the right of speech, it will send a notice to the terminal ranked at the top of the queue in its application list (i.e., the first queuing terminal), informing it that it will take over the right of speech after the terminal currently having the right of speech (i.e., the first terminal) releases the right of speech. The "first queuing terminal" refers to the terminal ranked at the front according to the preset right-of-speech sorting rule among all terminals applying for the right of speech, ensuring the smooth handover of the right of speech and avoiding conflicts or delays.
[0077] In a possible implementation manner, the situations where a terminal needs to queue for the right of speech include, but are not limited to, the following scenarios: cluster system, direct mode or relay mode. The operations of the terminal in the direct mode or relay mode scenarios are similar, but there are differences in the operations of the terminal in the cluster system and direct mode terminal scenarios.
[0078] (1) In the cluster system scenario, "sending a first notification message to the first queuing terminal, so that the first queuing terminal can obtain the right of speech after the first terminal releases the right of speech" is divided into two situations:
[0079] ①The first case: After the first terminal releases the right to speak, the first terminal sends a first notification message to the first queued terminal. This message notifies the first queued terminal that it can send a request for the right to speak to the base station. Therefore, the first queued terminal can, based on the received notification message, send a request for the right to speak to the base station to strive for the right to speak. In short, in this case, after the first terminal releases the right to speak, the first queued terminal will actively apply for the right to speak.
[0080] ②The second case: When the first terminal still has the right to speak, the first terminal sends a first notification message to the first queued terminal, notifying the first queued terminal that it can send a request for the right to speak to the base station. After receiving this notification message, the first queued terminal starts to monitor whether the channel is idle. When the channel is idle, the first queued terminal can send a request for the right to speak to the base station to strive for the right to speak. In other words, in this case, the first queued terminal receives the notice in advance and applies for the right to speak at an appropriate time.
[0081] It should be noted that the first terminal having the right to speak includes: when the first terminal has just obtained the right to speak and during the process of the first terminal having the right to speak and speaking.
[0082] The main difference between the two cases of obtaining the right to speak in the cluster system scenario is that in the first case, the first queued terminal applies after the first terminal releases the right to speak; while in the second case, before the first terminal releases the right to speak (that is, when the first terminal has just obtained the right to speak or during the process of the first terminal having the right to speak and speaking), the first queued terminal receives the notice in advance and actively applies when the channel is idle. In an embodiment, other terminals in the queue will not actively initiate a request for the right to speak to the base station when they do not receive the right-to-speak notification message sent by the first terminal to themselves.
[0083] (2) In the direct mode or relay mode scenario, "sending a first notification message to the first queued terminal so that the first queued terminal obtains the right to speak after the first terminal releases the right to speak" is also divided into two cases:
[0084] ①The first case:
[0085] After the first terminal releases the right to speak, the first terminal sends a first notification message to the first queued terminal. This notification message notifies the first queued terminal that it can initiate a speech. Therefore, the first queued terminal can actively initiate a speech when the channel is idle. In short, in this case, after the first terminal releases the right to speak, if the first queued terminal receives the notification message, it will actively initiate a speech when the channel is idle.
[0086] ②The second case: When the first terminal still has the right to speak, the first terminal sends a first notification message to the first queuing terminal. This notification message informs the first queuing terminal that it can initiate a speech. Therefore, after receiving this notification message, the first queuing terminal starts to monitor whether the channel is idle. When the channel is idle, the first queuing terminal can initiate a speech. In other words, in this case, when the first terminal has the right to speak, the first queuing terminal receives a notice in advance and actively initiates a speech when the channel is idle. Correspondingly, at this time, any queuing terminal that does not receive the notification message will not initiate a speech even if the channel is idle.
[0087] The main difference between the two situations of obtaining the right to speak in the direct mode or the relay mode scenario is that in the first case, the first terminal will notify the first queuing terminal to initiate a speech only after releasing the right to speak. After receiving the notification message, the first queuing terminal can initiate a speech when the channel is idle; in the second case, when the first terminal still has the right to speak, the first queuing terminal has already received the notification message, prepares in advance, and timely initiates a speech when the channel is idle. In this scenario, the terminal needs to comply with the rule that even if the channel is idle, it will not initiate a speech without receiving the notification message.
[0088] To sum up, the difference between the direct mode (or relay mode scenario) and the trunking system is that in the direct mode (or relay mode scenario), the queuing terminal does not have a step of sending a speech right application to the base station during the process of obtaining the right to speak; while in the trunking system, the queuing terminal has a step of sending a speech right application to the base station during the process of obtaining the right to speak.
[0089] In a possible implementation, in order to handle faults and avoid long waits, the terminal also needs to have a fault tolerance processing mechanism. When the channel is idle, if the queuing terminal does not detect the communication transmission signal of other terminals within a preset time, it should actively initiate a speech to avoid affecting normal communication due to faults or interference. This fault tolerance processing ensures that when there is a fault or interference in the speech right maintenance terminal or the first queuing terminal, other terminals can start speaking within a reasonable time, avoiding waste of channel resources and maintaining the stability of the communication system.
[0090] In a possible implementation manner, the method further includes: notifying other terminals in the system that the first queuing terminal is the terminal that has obtained the right to speak.
[0091] Notifying other terminals in the communication system that the first queuing terminal is the terminal that has obtained the right to speak, so as to ensure that all terminals are aware of the terminal that has currently obtained the right to speak, thereby maintaining the orderliness and transparency of communication.
[0092] Specifically, the ways to notify other terminals in the communication system that the first queuing terminal has obtained the right to speak include, but are not limited to, any one of the following: the notification message method, the application list message method, the right-to-speak designation message method, and the method of detecting the current speaking terminal.
[0093] Notification message method: After other terminals in the communication system receive the notification message sent by the first terminal to the first queuing terminal, they can learn that the first queuing terminal has obtained the right to speak. The first terminal clearly notifies that the first queuing terminal has obtained the right to speak by sending a notification message. Other terminals know the change of the right to speak by receiving this notification message. This method is relatively direct. Other terminals know the queuing terminal that has obtained the right to speak by receiving the notification message sent by the first terminal to the first queue, achieving the effect of notifying other terminals in the communication system.
[0094] Application list message method: When other terminals in the communication system receive the application list message sent by the first terminal to the first queuing terminal, they will know that the first queuing terminal has obtained the right to speak. The application list message sent by the first terminal to the first queuing terminal contains information about the queuing terminals that have currently applied for the right to speak. After other terminals in the communication system receive this message, they can identify the first queuing terminal from the list and infer that it has obtained the right to speak. This method indirectly notifies through the application list, enabling other terminals to understand the change of the right to speak.
[0095] Right-to-speak designation message method: After other terminals in the communication system receive the designation message broadcast by the first terminal, they know that the first queuing terminal has obtained the right to speak. The first terminal clearly indicates to all terminals through a broadcast message that the first queuing terminal has obtained the right to speak. This method is applicable to scenarios where the right-to-speak terminal changes frequently in group call services. The broadcast method notifies all terminals in the group, has a wide coverage, and can ensure that all terminals can timely learn about the change of the right to speak.
[0096] Method of detecting the current speaking terminal: When other terminals in the communication system listen to and detect that the current speaking terminal is the first queuing terminal, they automatically judge that the first queuing terminal has obtained the right to speak. This method relies on the real-time listening of the terminal during the call. As long as other terminals in the group find that the current speaker is the first queuing terminal, they can infer that this terminal has obtained the right to speak. This method is relatively passive and relies on real-time detection rather than learning about the change of the right to speak through an explicit message notification.
[0097] In a possible implementation, the method includes:
[0098] After the first terminal releases the right to speak, it sends the application list maintained by the first terminal to all terminals in the communication system.
[0099] After the first release terminal releases the right to speak, the application list maintained by this terminal is sent to all terminals within the communication system, ensuring that all terminals can understand the current queuing situation, thereby making the process of allocating the right to speak more transparent and orderly.
[0100] S103: Send the said application list to the first queuing terminal, so that other terminals that still need to apply for the right to speak send right-to-speak application messages to the first queuing terminal.
[0101] Send the application list to the first queuing terminal, so that other terminals that still need to apply for the right to speak can send right-to-speak application messages to the first queuing terminal according to this list. Especially during the process of group call service, inform all members of the group call of the right-to-speak application list, ensuring that members within the group call obtain the right to speak in an orderly manner, thereby realizing the orderly application and management of the right to speak.
[0102] In a possible implementation manner, the sending the said application list to the first queuing terminal includes:
[0103] After the first terminal receives the first response message from the first queuing terminal, the first terminal sends the application list to this first queuing terminal. This first response message is sent by the first queuing terminal after obtaining the right to speak in the system, for replying to the first notification message.
[0104] In the scenario of a trunking system, after the first queuing terminal sends an application for the right to speak to the base station and receives the granted right to speak feedback from the base station, it sends a first response message to the first terminal.
[0105] In the scenario of direct mode (or relay mode), the first queuing terminal sends a first response message to the first terminal after successfully initiating a speech. In one embodiment, the first queuing terminal sends the first response message in the adjacent time slot of the speech time slot after successfully initiating a speech.
[0106] In a possible implementation manner, the sending the said application list to the first queuing terminal includes:
[0107] When the first terminal detects that the first queuing terminal initiates a speech, or receives the right-to-speak grant message sent by the base station to the first queuing terminal, the first terminal sends the application list to this first queuing terminal. The sending method can be to send the application list to the first queuing terminal in an idle time slot. This method does not require a response message from the first queuing terminal for sending the right-to-speak allocation notification message.
[0108] In a possible implementation manner, the method further includes:
[0109] If, within the first preset time, a response message for obtaining the right to speak sent by the first queuing terminal is not received, or if a message indicating that the first queuing terminal fails to obtain the right to speak is received, a second notification message is sent to the second queuing terminal, so that the second queuing terminal can obtain the right to speak after the first terminal releases the right to speak.
[0110] If the first terminal does not receive a response message for obtaining the right to speak sent by the first queuing terminal within the first preset time, or receives a message indicating that the first queuing terminal fails to obtain the right to speak, the first terminal will send a second notification message to the second queuing terminal. The purpose of the second notification message is to notify the second queuing terminal that it can start speaking or send a request for the right to speak to the base station. It should be noted that the second queuing terminal refers to the terminal ranked second in the application list.
[0111] In a possible implementation manner, the method includes:
[0112] If, within the first preset time, a response message for obtaining the right to speak sent by the first queuing terminal is not received, or if a message indicating that the first queuing terminal fails to obtain the right to speak is received, the first terminal marks the first queuing terminal as unavailable.
[0113] In a possible implementation manner, the method includes:
[0114] If, within the first preset time, a response message for obtaining the right to speak sent by the first queuing terminal is not received, or if a message indicating that the first queuing terminal fails to obtain the right to speak is received, the first terminal sends the application list after deleting the first queuing terminal to the second queuing terminal.
[0115] In a possible implementation manner, the method further includes:
[0116] When the first terminal receives a message that the i-th queuing terminal gives up applying for the right to speak, the terminal device deletes the i-th queuing terminal from the application list, where i is a positive integer. This means that during the queuing process, if a certain terminal actively gives up the right to speak, the terminal device will update the application list in a timely manner and remove the terminal to ensure that the subsequent queuing terminals can continue to participate in the right-to-speak allocation in order.
[0117] In a possible implementation manner, the method further includes:
[0118] If the number of queuing terminals is greater than the queuing threshold of the application list, the terminal that sends the right-to-speak application message and the queuing terminals in the application list are sorted based on the preset right-to-speak sorting rule, and the queuing terminal records that do not exceed the queuing threshold of the application list are recorded in the application list.
[0119] Specifically, if the Nth queuing terminal UE2 sends a right-of-speech application message to the first terminal UE1, and the queuing threshold of the application list of the first terminal UE1 is N - 1, UE1 will only record N - 1 terminals in the application list in an orderly manner. Whether UE2 can enter the application list depends on the preset right-of-speech sorting rule of UE1. The result may be that UE2 is added to the application list, and a certain terminal in the original application list will be removed. It is also possible that UE2's application fails and it will not be added to the application list.
[0120] In one embodiment, when the first terminal UE1 receives the right-of-speech application of the queuing terminal UE2, UE1 is inserted into the application list in order according to the preset sorting rule. At this time, if the application list exceeds the queuing threshold, the queuing terminal with the last sorting will be removed from the application list. In one embodiment, the first queuing terminal sends a success message to the terminal that successfully joins the right-of-speech application list, or sends a failure message to the terminal with a failed application, or sends a success message to the successful terminal and a failure message to the failed terminal. In this embodiment, UE1 can send a right-of-speech application queuing failure message to the removed terminal.
[0121] In one embodiment, after the number of queuing terminals in the right-of-speech application pairing list of the first terminal is equal to the preset queuing threshold, when receiving the right-of-speech application message of other terminal UE2, terminal UE2 will not be added to the queuing list. That is, after the number of queuing terminals in the application list of the first terminal reaches the queuing threshold, subsequent right-of-speech application messages will not be processed. In one embodiment, after the number of queuing terminals in the application list of the first terminal is equal to the preset queuing threshold, a failure response message to the subsequent right-of-speech application message is sent.
[0122] In this way, the length of the application list can be effectively managed, avoiding system overload or response delay caused by too many queuing terminals, thereby ensuring the efficiency and stability of communication. For example, assume that the queuing threshold of the application list is 5, and the number of terminals applying for the right of speech is 8. Then the speaking terminal will only record the first 5 terminals in the application list and ignore the 6th and subsequent terminals.
[0123] In one embodiment, after the first terminal sends the queuing list, the queuing list will be deleted. When obtaining the right of speech next time, a new queuing list will be managed again.
[0124] It should also be noted that terminals exceeding the queuing threshold of the application list can re-apply to join the application list when the number of terminals in the application list decreases (i.e., is less than the queuing threshold). This ensures that all terminals in the unified communication group have the opportunity to obtain the right of speech and avoids the problem of long-term waiting caused by the queuing threshold limit.
[0125] Based on the content of S101 - S103, if the first terminal has the right to speak and receives an application message from another terminal, then according to the pre - set sorting rule and the terminal information in the message, the sender is included in the queuing terminals and added to the application list of the first terminal in an orderly manner. Subsequently, the first terminal sends an informing message to the queuing terminal at the head of the application list (i.e., the first queuing terminal), so that the first queuing terminal can obtain the right to speak after the first terminal releases the right to speak. The first queuing terminal is the first queuing terminal in the list. It is also necessary to send the current application list to the first queuing terminal, so that after the first queuing terminal obtains the right to speak, it can further process the application messages for the right to speak from other terminals. This application uses a center - less right - of - speech management mechanism. The terminal with the right to speak takes turns to manage the right - of - speech allocation, sorts the application messages for the right to speak according to the set rules, and establishes a queuing mechanism. Without relying on fixed communication devices, it can effectively avoid conflicts that may be caused by multiple terminal devices competing for the right to speak simultaneously. This process ensures an orderly and controllable right - of - speech allocation, can reduce communication delays or chaos, does not depend on the processing capabilities of base stations or fixed communication devices, and can flexibly solve the problem of right - of - speech allocation.
[0126] See Figure 2 , which is the flowchart of another method for queuing the right to speak provided by the embodiment of this application. This method for queuing the right to speak is applied to the second terminal. As Figure 2 shown, this method for queuing the right to speak may include steps S201 - S204:
[0127] S201: The second terminal confirms the terminal that currently has the right to speak. The terminal that has the right to speak stores an application list for queuing the right to speak.
[0128] The second terminal's confirmation of the terminal that currently has the right to speak means that the second terminal identifies the terminal that currently has the right to speak through a certain method. This terminal that has the right to speak will store an "application list for queuing the right to speak", that is, record the order or priority of all other terminals' requests to speak, ensuring that the system fairly manages the right to speak of each terminal according to specific rules and avoiding conflicts or chaos. In one embodiment, by default, the terminal that is currently speaking is the right - of - speech management terminal, which manages the queuing list for the right - of - speech application.
[0129] In a possible implementation, the current terminal with the right to speak can be confirmed in but not limited to the following ways:
[0130] Confirm the current right - of - speech terminal through the first informing message sent by the right - of - speech terminal received; or,
[0131] Confirm that the right - of - speech terminal is the current terminal with the right to speak through the target terminal that receives the application list sent by the right - of - speech terminal; or,
[0132] The right-of-speech designated message broadcast by the right-of-speech terminal is used to confirm the current right-of-speech terminal; or,
[0133] By detecting the terminal that is currently speaking, the terminal that is speaking is confirmed as the terminal with the right of speech.
[0134] In a possible implementation manner, the second terminal has a programmable button, and this button can trigger specific functions or operations through user-defined settings. The terminal with the current right of speech is confirmed based on the trigger message from this programmable button, so as to determine which terminal currently has the right of speech, ensuring that the second terminal can send a right-of-speech application message to the terminal managing the application list.
[0135] S202: Send a right-of-speech application message to the terminal with the right of speech, so that the terminal with the right of speech adds the second terminal as a queuing terminal to the application list based on a preset right-of-speech sorting rule and the terminal information of the second terminal carried in the right-of-speech application message.
[0136] Sending a right-of-speech application message to the terminal with the right of speech aims to enable this terminal to add the second terminal as a queuing terminal to the application list according to the preset right-of-speech sorting rule and in combination with the terminal information included in the application message. This process ensures that the allocation of the right of speech is carried out according to the predetermined rule, and the newly requested terminal can queue up in the appropriate order to wait for obtaining the right of speech.
[0137] S203: Obtain the right of speech when receiving the third notification message sent by the terminal with the right of speech.
[0138] When the second terminal receives the third notification message sent by the terminal with the right of speech, through the indication of this message, it confirms that it has obtained the right of speech, so that it can start communicating or speaking. In this process, the third notification message acts as a notification role, ensuring that the second terminal obtains the right of speech at the appropriate time and can effectively speak or control the conversation during communication.
[0139] In a possible implementation manner, before receiving the application list sent by the terminal with the right of speech, it further includes:
[0140] After obtaining the right of speech, generate a second response message for replying to the third notification message and send it to the terminal with the right of speech, so that the terminal with the right of speech sends the application list to the second terminal device.
[0141] Before the second terminal receives the application list sent by the terminal with the right to speak, the second terminal first generates a second response message for responding to the third notification message after obtaining the right to speak and sends it to the terminal with the right to speak. The purpose of this operation is to ensure that after receiving the second response message, the terminal with the right to speak will send the application list to the second terminal device only after ensuring the successful handover of the right to speak.
[0142] S204: Receive the application list sent by the terminal with the right to speak.
[0143] After the second terminal receives the application list sent by the terminal with the right to speak, it can learn the information of the terminals that have applied for the right to speak currently. At this time, the terminal that manages the allocation of the right to speak in the communication system changes from the original terminal with the right to speak to the second terminal. Based on this, other terminals that have not obtained the right to speak can send a right-to-speak application message to the second terminal, so as to realize the orderly management and allocation of the right to speak.
[0144] Based on the content of S201 - S204, the second terminal first confirms the terminal with the right to speak currently. This terminal stores an application list for queuing the right to speak. Then, the second terminal sends a right-to-speak application message to the terminal with the right to speak to apply to join the queuing list. The terminal with the right to speak will add the second terminal to the queuing list based on the preset sorting rule and the terminal information carried in the application message. Next, when the second terminal receives the third notification message sent by the terminal with the right to speak, it means that it has obtained the right to speak. Finally, the second terminal receives the message containing the application list sent by the terminal to understand the queuing order and other relevant information. This application applies for the right to speak to the terminal with the right to speak, queues according to specific rules, and the transfer of the right to speak occurs only after being authorized by the terminal with the right to speak, ensuring the orderly transfer and management of the right to speak. And the terminal that manages the allocation of the right to speak changes flexibly with the transfer of the right to speak, reducing costs and being able to adapt to more application scenarios.
[0145] See Figure 3 , Figure 3 is a schematic structural diagram of a right-to-speak queuing device provided by an embodiment of the present application. As Figure 3 shown, the right-to-speak queuing device includes:
[0146] An application list maintenance unit 301, when the first terminal has the right to speak, if it receives a right-to-speak application message sent by other terminals, is used to add the terminal that sends the right-to-speak application message as a queuing terminal to the application list of the first terminal based on a preset right-to-speak sorting rule and the terminal information carried in the right-to-speak application message;
[0147] The first notification message sending unit 302 is configured to send a first notification message to the first queuing terminal, so that the first queuing terminal can obtain the right to speak after the first terminal releases the right to speak; the first queuing terminal is the queuing terminal at the top of the application list.
[0148] The application list sending unit 303 is configured to send the application list to the first queuing terminal, so that other terminals that still need to apply for the right to speak can send a right-to-speak application message to the first queuing terminal.
[0149] In a possible implementation manner, the preset right-to-speak sorting rule includes the order of receiving the right-to-speak application messages sent by the queuing terminals.
[0150] Or, the priority level of the terminal sending the right-to-speak application message.
[0151] In a possible implementation manner, the first notification message sending unit 302 is specifically configured to:
[0152] After the first terminal releases the right to speak, send a first notification message to the first queuing terminal, so that the first queuing terminal can send a right-to-speak application request to the base station based on the received notification message.
[0153] In a possible implementation manner, the first notification message sending unit 302 is specifically configured to:
[0154] When the first terminal has the right to speak, send a first notification message to the first queuing terminal, so that the first queuing terminal can send a right-to-speak application request to the base station when detecting that the channel is idle based on the received notification message.
[0155] In a possible implementation manner, the first notification message sending unit 302 is specifically configured to:
[0156] Send a first notification message to the first queuing terminal, so that the first queuing terminal can start speaking when detecting that the channel is idle based on the received notification message.
[0157] In a possible implementation manner, the device further includes:
[0158] The notification unit is configured to notify other terminal members in the communication system that the first queuing terminal is the terminal that has obtained the right to speak.
[0159] In a possible implementation manner, the application list sending unit 303 is specifically configured to:
[0160] After receiving the first response message from the first queuing terminal, send the application list to the first queuing terminal, where the first response message is sent by the first queuing terminal after obtaining the right to speak in the system.
[0161] In a possible implementation, the device further includes:
[0162] A second notification message unit, which is used to send a second notification message to the second queuing terminal if the response message for obtaining the right to speak sent by the first queuing terminal is not received within the first preset time, or if the message indicating that the first queuing terminal fails to obtain the right to speak is received, so that the second queuing terminal can obtain the right to speak after the first terminal releases the right to speak; the second queuing terminal is the queuing terminal in the second position in the application list.
[0163] In a possible implementation, the device further includes:
[0164] A queuing terminal deletion unit, which is used to delete the i-th queuing terminal from the application list when the terminal device receives the message that the i-th queuing terminal gives up the application for the right to speak, where i is a positive integer.
[0165] In a possible implementation, the device further includes:
[0166] A queuing scheduling unit, if the number of queuing terminals in the application list is greater than the queuing threshold of the application list, is used to orderly add the queuing terminals that do not exceed the queuing threshold of the application list to the application list based on the preset right-to-speak sorting rule and terminal information.
[0167] See Figure 4 , Figure 4 which is a schematic structural diagram of another right-to-speak queuing device provided by an embodiment of the present application. As Figure 4 shown, the right-to-speak queuing device includes:
[0168] A confirmation unit 401, which is used to confirm the terminal currently having the right to speak, and the terminal having the right to speak stores an application list for right-to-speak queuing;
[0169] An application message sending unit 402, which is used to send a right-to-speak application message to the terminal having the right to speak, so that the terminal having the right to speak adds the second terminal as a queuing terminal to the application list based on the preset right-to-speak sorting rule and the terminal information carried in the right-to-speak application message;
[0170] A right-to-speak obtaining unit 403, which is used to obtain the right to speak when receiving the third notification message sent by the terminal having the right to speak;
[0171] An application list receiving unit 404, configured to receive the application list sent by the terminal with the right to speak.
[0172] In a possible implementation manner, the device further includes:
[0173] A control unit, after obtaining the right to speak, is configured to generate a second response message for replying to the third notification message and send it to the terminal with the right to speak, so that the terminal with the right to speak sends the application list to the second terminal device.
[0174] In a possible implementation manner, the second terminal has a programmable button;
[0175] The confirmation unit 401 is specifically configured to: in response to a trigger message of the programmable button, confirm the terminal with the right to speak currently.
[0176] In addition, an embodiment of the present application further provides a terminal device, which includes a memory, a processor, a transmitting module, a receiving module, and a PTT button.
[0177] The memory is used to store a computer program running on the processor;
[0178] The processor is configured to execute the computer program to implement the right-to-speak queuing method as described above;
[0179] The transmitting module is used to send one or more of the first notification message, the second notification message, the third notification message, the first response message, and the second response message;
[0180] The receiving module is used to receive one or more of the first notification message, the second notification message, the third notification message, the first response message, and the second response message;
[0181] The PTT button is used to initiate a speech.
[0182] A computer-readable storage medium stores instructions, and when the instructions run on the terminal device, the terminal device is caused to execute the right-to-speak queuing method as described above.
[0183] The above has introduced in detail a method for queuing the right to speak and a terminal device provided by this application. The various embodiments in the specification are described in a progressive manner. Each embodiment focuses on the differences from other embodiments. For the same or similar parts among the various embodiments, reference can be made to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple. For the relevant parts, reference can be made to the description in the method part. It should be noted that for those of ordinary skill in the art of this technology, without departing from the principle of this application, several improvements and modifications can be made to this application, and these improvements and modifications also fall within the protection scope of the claims of this application.
[0184] It should be understood that in this application, "at least one (item)" means one or more, and "a plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships can exist. For example, "A and / or B" can mean: only A exists, only B exists, and both A and B exist at the same time. Among them, A and B can be singular or plural. The character " / " generally means that the associated objects before and after are in an "or" relationship. "At least one (one) of the following" or its similar expression means any combination of these items, including any combination of single item (one) or plural items (ones). For example, at least one (one) of a, b, or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0185] It should also be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "including one..." does not exclude the existence of additional identical elements in the process, method, article or device including the said element.
Claims
1. A speech right queuing method, characterized in that: Applied to a first terminal, the method includes: When the first terminal has the speaking right, if a speaking right application message sent by other terminals is received, based on a preset speaking right sorting rule and the terminal information carried in the speaking right application message, the terminal corresponding to the terminal information is added as a queuing terminal to the application list of the first terminal; Sending a first notification message to a first queuing terminal so that the first queuing terminal acquires the speaking right after the first terminal releases the speaking right; the first queuing terminal is the queuing terminal at the first position in the application list; The application list is sent to the first queuing terminal, so that other terminals that also need to apply for the speaking right send speaking right application messages to the first queuing terminal.
2. The method according to claim 1, characterized in that: The preset speaking right sorting rule includes the time sequence of receiving the speaking right application message sent by the queuing terminal; Or, the priority level of the terminal that sends the right-to-speak request message.
3. The method according to claim 1, characterized in that: The sending of the first notification message to the first queuing terminal so that the first queuing terminal acquires the speaking right after the first terminal releases the speaking right comprises: After the first terminal releases the speaking right, a first notification message is sent to the first queuing terminal, so that the first queuing terminal sends a speaking right application request to the base station based on the received notification message.
4. The method according to claim 1, characterized in that: The sending of the first notification message to the first queuing terminal so that the first queuing terminal acquires the speaking right after the first terminal releases the speaking right comprises: When the first terminal has the speaking right, a first notification message is sent to the first queuing terminal, so that the first queuing terminal sends a speaking right application request to the base station when detecting that the channel is idle based on the received notification message.
5. The method according to claim 1, characterized in that: The sending of the first notification message to the first queuing terminal so that the first queuing terminal acquires the speaking right after the first terminal releases the speaking right comprises: A first notification message is sent to the first queuing terminal, so that the first queuing terminal initiates speaking when detecting that the channel is idle based on the received notification message.
6. The method according to claim 1, characterized in that The method further comprises: Notify other terminals in the communication system that the first queuing terminal is the terminal that obtains the speaking right.
7. The method according to claim 1, characterized in that The sending the application list to the first queuing terminal comprises: After receiving a first response message from the first queuing terminal, the application list is sent to the first queuing terminal, where the first response message is sent by the first queuing terminal after obtaining a speaking right in the system.
8. The method according to claim 1, characterized in that The method further comprises: If a response message for obtaining the speaking right sent by the first queuing terminal is not received within the first preset time, or if a message is received that the first queuing terminal fails to obtain the speaking right, a second notification message is sent to the second queuing terminal, so that the second queuing terminal obtains the speaking right after the first terminal releases the speaking right; the second queuing terminal is the queuing terminal in the second position in the application list.
9. The method according to claim 1, characterized in that: The method further comprises: When the first terminal receives a message that the i-th queue terminal gives up the application for the speaking right, the first terminal deletes the i-th queue terminal from the application list, where i is a positive integer.
10. The method according to claim 1, characterized in that The method further comprises: If the number of queued terminals is greater than the queue threshold of the application list, the terminal that sends the speech right application message and the queued terminals in the application list are sorted based on the preset speech right sorting rule, and the queued terminals that do not exceed the queue threshold of the application list are recorded in the application list.
11. A speech right queuing method, characterized in that: Applied to the second terminal, the method includes: Confirming the terminal that currently has the speaking right, wherein the terminal that has the speaking right stores a speaking right queue application list; Sending a speaking right application message to the terminal having the speaking right; so that the terminal having the speaking right adds the second terminal as a queuing terminal to the application list based on a preset speaking right sorting rule and the terminal information of the second terminal carried in the speaking right application message; Upon receiving a third notification message sent by the terminal having the speaking right, acquiring the speaking right; Receive the application list sent by the terminal having the speaking right.
12. The method according to claim 11, characterized in that Before receiving the application list sent by the terminal having the speaking right, the method further includes: After obtaining the speaking right, a second response message for replying to the third notification message is generated and sent to the terminal with the speaking right, so that the terminal with the speaking right sends the application list to the second terminal.
13. The method according to claim 11, characterized in that The second terminal has a programmable button, and confirming the terminal that currently has the right to speak includes: responding to a trigger message of the programmable button, confirming the terminal that currently has the right to speak.
14. A terminal device, characterized in that: The terminal device includes a memory, a processor, a transmitting module, a receiving module and a PTT button; The memory is used to store a computer program running on the processor; The processor is used to execute the computer program to implement the speaking right queuing method according to any one of claims 1 to 10, or to implement the speaking right queuing method according to any one of claims 11 to 14; The transmitting module is used to send one or more messages among a first notification message, a second notification message, a third notification message, a first response message and a second response message; The receiving module is used to receive one or more messages among a first notification message, a second notification message, a third notification message, a first response message and a second response message; The PTT button is used to initiate a speech.