Disclosure of Invention
The invention provides a push-to-talk (PTT) establishment method and a system, which reduce the PTT establishment time.
The invention provides a push-to-talk (PTT) establishing method, which is applied to a PTT establishing system, and the system comprises: a first processor and a second processor, said first and second processors being integrated in the same system on chip SOC, said second processor having a mobile terminal MT integrated therein, the method comprising:
when the first processor detects an interrupt event, the first processor calls an inter-process communication IPC interrupt function, and the interrupt event is used for indicating the establishment of PTT;
the first processor sends the IPC interrupt function to the second processor, and the IPC interrupt function is used for indicating the second processor to establish PTT;
and after receiving the IPC interrupt function, the second processor calls the MT to establish the PTT.
In an embodiment of the present invention, the first processor invoking an inter-process communication IPC interrupt function includes:
the first processor calls the IPC interrupt function through an interrupt service routine.
In an embodiment of the present invention, a terminal device TE is integrated in the first processor.
In an embodiment of the invention, the IPC interrupt function has the highest interrupt priority in the SOC.
In an embodiment of the present invention, the first server is a computer application central processing unit APP CPU of the SOC, and the second processor is a Modem central processing unit Modem CPU of the SOC.
The invention provides a push-to-talk (PTT) establishing system, which comprises: a first processor and a second processor, said first and second processors being integrated in the same system-on-chip SOC, said second processor having a mobile terminal MT integrated therein,
the first processor is used for calling an IPC interrupt function for inter-process communication when an interrupt event is detected, wherein the interrupt event is used for indicating the establishment of PTT;
the first processor is further configured to send the IPC interrupt function to the second processor, the IPC interrupt function being configured to instruct the second processor to establish a PTT;
and the second processor is used for calling the MT to establish the PTT after receiving the IPC interrupt function.
In an embodiment of the present invention, the first processor is specifically configured to call the IPC interrupt function through an interrupt service routine.
In an embodiment of the present invention, a terminal device TE is integrated in the first processor.
In an embodiment of the invention, the IPC interrupt function has the highest interrupt priority in the SOC.
In an embodiment of the present invention, the first server is a computer application central processing unit APP CPU of the SOC, and the second processor is a Modem central processing unit Modem CPU of the SOC.
The invention provides a push-to-talk (PTT) establishing method and a system, wherein the PTT establishing method is applied to a PTT establishing system, and the system comprises the following steps: the system comprises a first processor and a second processor, wherein the first processor and the second processor are integrated in the same system on chip SOC, and a mobile terminal MT is integrated in the second processor, and the method comprises the following steps: when the first processor detects an interrupt event, the first processor calls an inter-process communication IPC interrupt function, and the interrupt event is used for indicating the establishment of PTT; the first processor sends an IPC interrupt function to the second processor, and the IPC interrupt function is used for indicating the second processor to establish PTT; the second processor calls the MT to establish the PTT after receiving the IPC interrupt function. The PTT establishing method and the system provided by the invention have the advantages that the path is shorter when the PTT is established, and a special link is not required to be set to inform the MT of establishing the PTT, thereby reducing the time for establishing the PTT.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are, for example, capable of operation in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The technical solution of the present invention will be described in detail below with specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.
FIG. 1 is a flowchart illustrating a PTT set-up method according to an embodiment of the present invention. As shown in fig. 1, the PTT establishing method of this embodiment includes:
s101: when the first processor detects an interrupt event, the first processor calls an Inter-Process Communication (IPC) interrupt function, and the interrupt event is used for indicating the establishment of the PTT.
Specifically, the first processor is integrated in a System On Chip (SOC), and the SOC may also be translated into a System on Chip. The interrupt event detected by the first processor may specifically be a key interrupt of the cluster terminal where the SOC is located, where the key interrupt is used to indicate that the PTT is established. Namely, when a user needs to establish the PTT function of the cluster terminal, the user performs key operation to obtain an interrupt event of key interruption, and the first processor calls an IPC interrupt function after detecting the key interruption. Alternatively, the interrupt event may be an interrupt triggered by other sensing signals, such as a touch signal of a user clicking a touch screen, a voice control signal, a light signal, etc., and the first processor calls the IPC interrupt function after receiving the sensing signal.
S102: the first processor sends an IPC interrupt function to the second processor, the IPC interrupt function instructing the second processor to set up the PTT.
Specifically, the second processor has a function of establishing the PTT, and after the first processor calls the IPC interrupt function in S101, the IPC interrupt function is sent to the second processor, so that the first processor notifies the second processor of establishing the PTT in the form of the IPC interrupt function. The communication method between the first processor and the second processor is the same as the IPC transmission method between the processors in the SOC system, and is not limited herein.
S103: the second processor calls the MT to establish the PTT after receiving the IPC interrupt function.
Specifically, the second processor knows that the PTT needs to be established after receiving the IPC interrupt function sent by the first processor in S102. Since the MT is integrated in the second processor, the MT is a device in the PTT that is ultimately in communication with the network, which can be understood as a modem. The work of finally setting up the PTT is performed by the MT integrated inside the second processor. Therefore, the second processor directly calls the internal MT to set up PTT, and the embodiment does not limit the specific method and workflow for the MT to set up PTT.
Optionally, the second processor interrupts other events after receiving the IPC interrupt function sent by the first processor in S103, and then calls the MT to set up PTT.
The embodiment realizes the fast PTT of the cluster function through an IPC interruption mode based on the SOC. The cluster terminal needing to use the PTT function is provided with a first processor and a second processor which are integrated on an SOC, and after receiving an interrupt event for establishing the PTT sent by a user, the first processor calls an inter-core IPC interrupt function to inform the second processor to establish the PTT; meanwhile, the second processor integrates the MT for establishing the PTT, so that the second processor triggers the establishment of the PTT through the MT after receiving the IPC interrupt function sent by the first processor. The PTT establishing method provided by the embodiment has the advantages that the channel is short when the PTT is established, a special link is not required to be set to inform the MT of establishing the PTT, the PTT establishing time is shortened, and the rapid PTT is realized.
Further, in the above embodiment, the first processor in S102 calls an inter-process communication IPC interrupt function, including: the first processor calls an IPC interrupt function through an interrupt service routine.
The interrupt service program is used to detect interrupt event and call IPC interrupt function to inform MT to set up PTT, and simultaneously, the interrupt service program is also used to inform application layer TE to carry out event synchronous processing.
Further, in the above embodiment, the terminal equipment TE is integrated in the first processor.
Specifically, since the TE is integrated in the first processor, the TE within the first processor performs an event synchronization process when the first processor detects an interrupt event. Optionally, the interrupt service routine inside the first processor directly notifies the TE inside the first processor to perform the event synchronization processing.
Optionally, in the above embodiment, the IPC interrupt function has the highest interrupt priority in SOC. And when the second processor receives the IPC interrupt function sent by the first processor, the PTT establishing work is preferentially executed.
Specifically, in the above embodiment, the first server is a computer application central processing unit APP CPU of the SOC, and the second processor is a Modem central processing unit Modem CPU of the SOC.
Fig. 2 is a schematic structural diagram of a PTT set-up system according to a first embodiment of the present invention. As shown in fig. 2, the PTT set-upsystem 10 of the present embodiment includes: afirst processor 101 and asecond processor 102, thefirst processor 101 and thesecond processor 102 are integrated in the same system on chip SOC, a mobile terminal MT is integrated in thesecond processor 102, thefirst processor 101 is configured to call an inter-process communication IPC interrupt function when an interrupt event is detected, the interrupt event is used to indicate that PTT is established; thefirst processor 101 is further configured to send an IPC interrupt function to thesecond processor 102, the IPC interrupt function being configured to instruct thesecond processor 102 to establish the PTT; thesecond processor 102 is used for calling the MT to set up PTT after receiving the IPC interrupt function.
Specifically, thefirst processor 101 is integrated in a System On Chip (SOC), and the SOC may be translated into a System on Chip. The interrupt event detected by thefirst processor 101 may specifically be a key interrupt of the cluster terminal where the SOC is located, where the key interrupt is used to indicate that the PTT is established. That is, when the user needs to establish the PTT function of the group terminal, the user performs a key operation to obtain an interrupt event of key interrupt, and thefirst processor 101 calls the IPC interrupt function after detecting the key interrupt. Alternatively, the interrupt event may be an interrupt triggered by other sensing signals, such as a touch signal of a user clicking a touch screen, a voice control signal, a light signal, etc., and thefirst processor 101 calls an IPC interrupt function after receiving the sensing signal. Thesecond processor 102 has the function of establishing PTT, and after thefirst processor 101 calls the IPC interrupt function, the IPC interrupt function is sent to thesecond processor 102, so that thefirst processor 101 notifies thesecond processor 102 of establishing PTT in the manner of the IPC interrupt function. The communication method between thefirst processor 101 and thesecond processor 102 is the same as the IPC transmission method between the processors in the SOC system, and is not limited herein. Thesecond processor 102 receives the IPC interrupt function sent by thefirst processor 101 and then knows that PTT needs to be established. Since the MT is integrated in thesecond processor 102, the MT is a device in the PTT that is ultimately communicated with the network, which can be understood as a modem. The work of finally setting up the PTT is performed by the MT integrated inside thesecond processor 102. Therefore, thesecond processor 102 directly calls the internal MT to set up PTT, and the embodiment does not limit the specific method and workflow for the MT to set up PTT.
Alternatively, thesecond processor 102 interrupts other events performed after receiving the IPC interrupt function sent by thefirst processor 101, and then calls MT to set up PTT.
The PTT establishing system provided in this embodiment implements fast PTT of a trunking function by IPC interrupt based on SOC. The cluster terminal needing to use the PTT function is provided with a first processor and a second processor which are integrated on an SOC, and after receiving an interrupt event for establishing the PTT sent by a user, the first processor calls an inter-core IPC interrupt function to inform the second processor to establish the PTT; meanwhile, the second processor integrates the MT for establishing the PTT, so that the second processor triggers the establishment of the PTT through the MT after receiving the IPC interrupt function sent by the first processor. The PTT set-up system provided by the embodiment has a short path when the PTT is set up, and does not need to set up a special link to notify the MT to set up the PTT, thereby reducing the time for setting up the PTT and realizing the rapid PTT.
Further, in the above embodiment, thefirst processor 101 is specifically configured to call an IPC interrupt function through an interrupt service routine.
The interrupt service program is used to detect interrupt event and call IPC interrupt function to inform MT to set up PTT, and simultaneously, the interrupt service program is also used to inform application layer TE to carry out event synchronous processing.
Further, in the above-described embodiment, the terminal equipment TE is integrated in thefirst processor 101.
Specifically, since the TE is integrated in thefirst processor 101, the TE within thefirst processor 101 performs an event synchronization process when thefirst processor 101 detects an interrupt event. Alternatively, the interrupt service routine inside thefirst processor 101 directly notifies the TE inside thefirst processor 101 to perform the event synchronization process.
Optionally, in the above embodiment, the IPC interrupt function has the highest interrupt priority in SOC. When thesecond processor 102 receives the IPC interrupt function sent by thefirst processor 101, it preferentially executes the PTT establishing operation.
Specifically, in the above embodiment, the first server is a computer application central processing unit APP CPU of the SOC, and thesecond processor 102 is a Modem central processing unit Modem CPU of the SOC.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.