Data channel processing method and device, communication equipment, storage medium and computer program product
By using the cache function to query data channel objects in 5G communication, it avoids repeated establishment of data channels, solves the problem of resource waste caused by repeated establishment of data channels, improves the utilization rate of communication resources and reduces delay.
Patent Information
- Application Number
- CN202411130175.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-16
- Publication Date
- 2024-12-03
AI Technical Summary
During 5G enhanced calls, data channels are repeatedly established to lead to problems such as wasting chip resources and reduced utilization of communication resources.
The cache function checks whether there is an established data channel object. If it exists, it will be repurposed. If it does not exist, it will be rebuilt to avoid creating multiple data channel objects for the same application.
Save communication resources, reduce end-to-end delay, and improve the utilization rate of communication resources.
Smart Images

Figure CN119071944A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of wireless communication technology, and in particular to a data channel processing method, apparatus, communication equipment, storage medium and computer program product. Background Art
[0002] During a 5G (5th Generation Mobile Communication Technology) enhanced call, a DC (Data Channel) application successfully establishes a DC with the other end; when the DC application is shut down but the DC application does not call the operation of the interface to remove the DC, that is, when the DC application is shut down but the DC application does not remove the DC, if the DC application is restarted, the software module will request the chip to establish a DC again; in this way, the chip will repeatedly establish multiple DC objects for the same DC, resulting in reduced utilization of communication resources. Summary of the invention
[0003] The embodiments of the present application provide a data channel processing method, apparatus, communication equipment, storage medium and computer program product, which can avoid the waste of chip resources and improve the utilization rate of communication resources.
[0004] A data channel processing method, applied to a software module, comprising:
[0005] If the target application meets the target restart condition, the data channel object corresponding to the target application is queried through the cache function to obtain the query result; the target restart condition is that the target application successfully establishes a data channel with the other end, and in the same call, the target application is closed and then restarted;
[0006] Restart the target application based on the data channel corresponding to the query result.
[0007] In one embodiment, the query result is that the data channel object of the target application is not found; and restarting the target application based on the data channel corresponding to the query result includes:
[0008] A data channel establishment request is sent to the chip through a data channel creation interface, so that the chip re-negotiates with the network to establish a data channel through signaling, and restarts the target application based on the data channel.
[0009] In one embodiment, the query result is a data channel object of the target application; and restarting the target application based on the data channel corresponding to the query result includes:
[0010] A notification message indicating that the data channel has been successfully created is returned to the target application, so that the target application determines that the data channel of the target application has been successfully created based on the notification message, and restarts based on the data channel.
[0011] In one embodiment, the method further comprises:
[0012] After the target application establishes a data channel with the terminal, caching a data channel object corresponding to the target application, the data channel object including target capabilities;
[0013] If the target application is closed and the interface for closing the data channel is called, a closing event is sent to the chip so that the chip removes the data channel corresponding to the target application and returns a data channel closing notification message to the software module;
[0014] receiving the data channel closing notification message, and clearing the data channel object corresponding to the target application based on the data channel closing notification message;
[0015] If the target application is closed and the interface for closing the data channel is not called, the closing event is not transmitted to the chip, so that the chip is unaware.
[0016] In one embodiment, the method further comprises:
[0017] A call request sent by the target application is received, where the call request is used to create a data channel.
[0018] In one of the embodiments, the target capability includes one or more of sending data, closing DC, obtaining DC label, obtaining substream identifier of SCTP connection, and obtaining call ID, and the DC label is used to identify different data channels.
[0019] A data channel processing device, applied to a software module, comprising:
[0020] A query module, used for querying the data channel object corresponding to the target application through the cache function to obtain a query result if the target application meets the target restart condition; the target restart condition is that the target application successfully establishes a data channel with the opposite end, and in the same call, the target application is closed and then restarted;
[0021] A startup module is used to restart the target application based on the data channel corresponding to the query result.
[0022] In one embodiment, the query result is that the data channel object of the target application is not found; the startup module is specifically used to:
[0023] A data channel establishment request is sent to the chip through a data channel creation interface, so that the chip re-negotiates with the network to establish a data channel through signaling, and restarts the target application based on the data channel.
[0024] In one embodiment, the query result is a data channel object of the target application; the startup module is specifically used to:
[0025] A notification message indicating that the data channel has been successfully created is returned to the target application, so that the target application determines that the data channel of the target application has been successfully created based on the notification message, and restarts based on the data channel.
[0026] In one embodiment, the device further comprises:
[0027] A cache module, configured to cache a data channel object corresponding to the target application after the target application establishes a data channel with the terminal, wherein the data channel object includes a target capability;
[0028] a sending module, configured to send a closing event to the chip if the target application is closed and an interface for closing a data channel is called, so that the chip removes the data channel corresponding to the target application and returns a data channel closing notification message to the software module;
[0029] A first receiving module, configured to receive the data channel closing notification message, and clear the data channel object corresponding to the target application based on the data channel closing notification message;
[0030] The sending module is also used for not transmitting the closing event to the chip if the target application is closed and the interface for closing the data channel is not called, so that the chip is unaware.
[0031] In one embodiment, the device further comprises:
[0032] The second receiving module is used to receive a call request sent by the target application, where the call request is used to create a data channel.
[0033] In one of the embodiments, the target capability includes one or more of sending data, closing DC, obtaining DC label, obtaining substream identifier of SCTP connection, and obtaining call ID, and the DC label is used to identify different data channels.
[0034] A communication device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0035] If the target application meets the target restart condition, the data channel object corresponding to the target application is queried through the cache function to obtain the query result; the target restart condition is that the target application successfully establishes a data channel with the other end, and in the same call, the target application is closed and then restarted;
[0036] Restart the target application based on the data channel corresponding to the query result.
[0037] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the following steps:
[0038] If the target application meets the target restart condition, the data channel object corresponding to the target application is queried through the cache function to obtain the query result; the target restart condition is that the target application successfully establishes a data channel with the other end, and in the same call, the target application is closed and then restarted;
[0039] Restart the target application based on the data channel corresponding to the query result.
[0040] A computer program product includes a computer program, wherein when the computer program is executed by a processor, the method for processing a data channel provided in an embodiment of the present application is implemented, and the method may be:
[0041] If the target application meets the target restart condition, the data channel object corresponding to the target application is queried through the cache function to obtain the query result; the target restart condition is that the target application successfully establishes a data channel with the other end, and in the same call, the target application is closed and then restarted;
[0042] Restart the target application based on the data channel corresponding to the query result.
[0043] The above-mentioned data channel processing method, device, communication equipment, storage medium and computer program product, wherein the method includes: if the target application meets the target restart condition, query the data channel object corresponding to the target application through the cache function to obtain the query result; the target restart condition is that the target application successfully establishes a data channel with the other end, and in the same call, the target application is closed and then restarted; based on the data channel corresponding to the query result, restart the target application. By adopting this method, it is possible to avoid repeatedly creating multiple data channel objects for the same application, save communication resources and reduce end-to-end delay. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] FIG1 is an application environment diagram of a method for processing a data channel in one embodiment;
[0045] FIG2 is a schematic flow chart of a method for processing a data channel in one embodiment;
[0046] FIG3 is a schematic flow chart of the steps of clearing a data channel object in one embodiment;
[0047] FIG4 is a flow chart of a step of receiving a call request in one embodiment;
[0048] FIG5 is a schematic flow chart of a method for processing a data channel in another embodiment;
[0049] FIG6 is a block diagram of a data channel processing device according to an embodiment;
[0050] FIG. 7 is a diagram showing the internal structure of a communication device in one embodiment. DETAILED DESCRIPTION
[0051] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0052] Figure 1 is a schematic diagram of an application scenario of a data channel processing method provided in an embodiment of the present application. As shown in Figure 1, in this scenario, data is transmitted between the terminal 100, the target application 200, and the chip 300 through the network. The software module is a function of the terminal 100, which can be implemented through middleware (such as SDK) or through a native operating system. The native operating system can be an Android system, a Hongmeng system, an IOS system, etc.
[0053] The terminal 100 may be a wireless terminal, which may be a device that provides voice and / or other service data connectivity to a user, or a handheld device with a wireless connection function, or other processing devices connected to a wireless modem. The wireless terminal may communicate with one or more core networks via a radio access network (Radio Access Network, referred to as RAN). The wireless terminal may be a mobile terminal, such as a mobile phone (or "cellular" phone) and a computer with a mobile terminal, for example, a portable, pocket-sized, handheld, computer-built-in or vehicle-mounted mobile device, which exchanges language and / or data with a radio access network. The wireless terminal may also be referred to as a system, a subscriber unit, a subscriber station, a mobile station, a mobile station, a remote station, a remote terminal, an access terminal, a user terminal, a user agent, a user device or user equipment, which is not limited here.
[0054] In traditional technology, during a 5G enhanced call, when a DC application has successfully established a DC with the other end, and the DC application is closed but the DC application has not called the interface to remove the DC, if the user starts the application again, the software module will re-call the interface to create the DC to request the chip to establish the DC, which will cause the chip to create multiple DC objects for the same DC application, and the SCTP link needs to be re-established through signaling negotiation. The chip repeatedly creates DC objects for the same DC application, which will lead to a waste of network and chip resources, and repeated creation of DC will also increase the end-to-end delay of seconds.
[0055] Based on the above-mentioned traditional technology, an embodiment of the present application provides a method for processing a data channel, which avoids repeatedly establishing multiple data channel objects for the same target application by querying whether there is a cached data channel in the cache function, thereby saving communication resources.
[0056] It should be noted that the beneficial effects brought about by the embodiments of the present application or the technical problems solved are not limited to this one, but may also include other implicit or related problems. For details, please refer to the description of the following embodiments.
[0057] Before introducing the specific embodiments of the present invention, the professional terms involved in the present invention are explained first:
[0058] DC (Data Channel): It is a data channel defined by the 3GPP IMS audio and video communication architecture. By establishing one or more data channels in parallel with audio and video in an IMS session, any type of data can be transmitted, so that real-time interaction can be achieved in audio and video calls. The data channel may include BDC and ADC; BDC (Bootstrap Data Channel) is established between the terminal and the IMS network, and is used by the terminal to obtain the data channel application list from the IMS network and download the required data channel application. ADC (Application Data Channel) is established between the terminal and the IMS network or between the terminals, and is used to transmit application data of the data channel application.
[0059] SCTP (Stream Control Transmission Protocol): SCTP is a computer network communication protocol used in the transport layer of the Internet protocol suite. It is a connection-oriented network protocol used to transmit multiple data streams between endpoints. When the IMS Data Channel transmits data, the SCTP protocol carries the protocol data of the application layer.
[0060] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0061] In one embodiment, as shown in FIG. 2 , a method for processing a data channel is provided, which is described by taking the method applied to the software module in FIG. 1 as an example, and includes the following steps:
[0062] Step 202: If the target application meets the target restart condition, the data channel object corresponding to the target application is queried through the cache function to obtain the query result.
[0063] Among them, the target restart condition is that the target application successfully establishes a data channel with the other end, and in the same call, the target application is closed and then restarted; the cache function can be a function of the terminal device, which can be implemented by middleware or by native operating system, and the middleware can be SDK; the native operating system can be Android operating system, Hongmeng operating system, iOS operating system, etc.; the target restart condition can be that the target application has successfully established at least one data channel with the terminal, the software module caches each data channel object corresponding to the target application, and during the same call, the target application is closed and then restarted. The target application can be a specific application, for example, it can be an application that has successfully established a data channel, and the application has been closed and restarted. In other words, the target restart condition can be that the target application successfully establishes a data channel with the other end, and the target application is closed and restarted during a certain call. The data channel can be a data channel established between terminals or between terminals and the network. The DC application can run on the terminal device, the software module can be a middleware or the operating system of the terminal, the middleware can be SDK, and the operating system of the terminal can be Android operating system, Hongmeng operating system, iOS operating system, etc.
[0064] Specifically, when the software module determines that the target application meets the target restart condition, it can query whether the data channel object corresponding to the target application has been cached through the cache function to obtain a query result, and the query result can be that the cached data channel object corresponding to the target application is queried, or the query result can also be that the data channel object corresponding to the target application is not queried. In an example, the data channel object corresponding to the target application can be the data channel object of the target application cached by the software module after the target application successfully establishes a data channel with the terminal.
[0065] Optionally, after the target application successfully establishes at least one data channel DC with the other end, the software module can cache all DC objects of the target application; the software module can also cache all DC objects of each application; the target application can be closed in response to an application closing instruction triggered by the user. If the target application is restarted, the software module can query whether the DC object of the target application has been cached through the cache function to obtain the query result.
[0066] Step 204: restart the target application based on the data channel corresponding to the query result.
[0067] The query result may be that the DC object of the target application has been cached, and the corresponding data channel may be a previously established data channel, or the query result may be that the DC object of the target application has not been cached, and the corresponding data channel may be a newly created data channel.
[0068] Specifically, the software module can obtain the query result of the data channel corresponding to the target application through the cache function, and the software module can restart the target application based on the data channel corresponding to the query result; in one example, the query result may not find the data channel corresponding to the target application, and the software module can re-call the data channel creation interface to re-create the data channel corresponding to the target application; in another example, the query result may be that the data channel corresponding to the target application is found, and this query result indicates that the data channel previously established by the target application has not been cleared, that is, the data channel previously established by the target application still exists, and the target application can be restarted based on the still existing data channel.
[0069] In the above data channel processing method, if the target application meets the target restart condition, the data channel object corresponding to the target application is queried through the cache function to obtain the query result; the target restart condition is that the target application successfully establishes a data channel with the other end, and in the same call, the target application is closed and then restarted; based on the data channel corresponding to the query result, the target application is restarted. By adopting this method, it is possible to avoid repeatedly creating multiple data channel objects for the same application, save communication resources, and reduce end-to-end latency.
[0070] In one embodiment, the query result is that the data channel object of the target application is not found. Specifically, this query result indicates that the data channel object corresponding to the target application is not cached, that is, the data channel corresponding to the target application has been cleared, which can also be understood as a cache miss. Accordingly, the specific implementation process of the step "restarting the target application based on the data channel corresponding to the query result" may include:
[0071] A data channel establishment request is sent to the chip through the data channel creation interface, so that the chip and the network re-negotiate signaling to establish the data channel, and restart the target application based on the data channel.
[0072] The data channel creation interface may be an interface for creating a DC; the data channel establishment request is used to request the chip to establish a data channel for a target application.
[0073] Specifically, if the software module fails to query the data channel object of the target application, the software module can call the data channel creation interface again, and send a data channel establishment request to the chip through the data channel creation interface, and the data channel establishment request is used to enable the chip to re-establish the data channel for the target application; after receiving the data channel establishment request, the chip can renegotiate with the network based on the data channel establishment request to establish a data channel for the target application. After successfully establishing the data channel of the target application, the target application can be restarted.
[0074] In one example, before the data channel object corresponding to the target application is queried, the processing method of the data channel may also include: after the target application successfully establishes at least one data channel DC with the opposite end, the software module may cache all DC objects of the target application; the software module may also cache all DC objects of each application; the target application may be closed in response to the application closing instruction triggered by the user, and the application closing instruction may be an instruction triggered by the user to close the target application, then it may be determined based on the business logic whether the data channel is closed; if it is determined based on the business logic that the data channel of the target application needs to be closed, the software module may call the interface for closing the DC, and send the closing event to the chip, and after the chip receives the closing event, it may remove the data channel associated with the target application based on the received closing event, that is, remove the data channel of the target application, and generate a data channel closing notification message (that is, a data channel removal notification message), and the chip may return the data channel closing notification message to the software module, and after receiving the data channel closing notification message, the software module may locally clear the data channel object corresponding to the target application that has been cached. Based on this, after the software module subsequently determines that the target application meets the target restart condition, the query result may be that the data channel object corresponding to the target application is not queried.
[0075] In one example, the data channel closing notification message returned by the chip may carry identification information of the target application, and the software module may locally clear the data channel object corresponding to the identification information of the target application based on the identification information of the target application in the data channel closing notification message.
[0076] Optionally, if it is determined based on business logic that the data channel of the target application does not need to be closed, that is, the interface for closing the DC is not called, the software module will not send a data channel closing notification message to the chip, and the chip will not be aware of it.
[0077] In this embodiment, the data channel of the target application can be dismantled in time, and the data channel corresponding to the target application can be cleared in time, so as to avoid the chip carrying too many data channels for the same application and avoid the software module locally storing too many data channel objects corresponding to the target application, thereby improving the utilization rate of the chip's communication resources and improving the utilization rate of the terminal's resources.
[0078] In one embodiment, the query result is a data channel object of the target application. Specifically, this query result indicates that the data channel previously established by the target application has not been cleared, that is, the data channel previously established by the target application still exists. At this time, the target application can be restarted based on the existing data channel. Accordingly, the specific implementation process of the step "restarting the target application based on the data channel corresponding to the query result" may include:
[0079] A notification message indicating that the data channel has been successfully created is returned to the target application, so that the target application determines that the data channel of the target application has been successfully created based on the notification message, and restarts based on the data channel.
[0080] Among them, the notification message is used to indicate the target application that the software module has locally cached the data channel object corresponding to the target application, that is, the data channel of the target application has not been cleared, and the notification message can be a notification message that the data channel has been successfully created, so that the target application that receives the notification message can determine that the data channel corresponding to the target application has been successfully created.
[0081] Specifically, when the software module finds that the data channel corresponding to the target application is cached, it determines that the data channel of the target application has not been cleared. The software module can generate a notification message and send the notification message to the target application. After receiving the notification message, the target application can determine that the data channel of the target application exists, and the target application can be directly restarted.
[0082] In this embodiment, before creating the data channel corresponding to the target application, it is possible to query whether the data channel of the target application exists by querying whether the data channel object is cached, thereby avoiding the chip from repeatedly creating data channels for the same application, avoiding chip resources waste, and avoiding increased end-to-end latency caused by repeated creation of data channels.
[0083] In one embodiment, as shown in FIG3 , the data channel processing method further includes:
[0084] Step 302: After the target application establishes a data channel with the terminal, a data channel object corresponding to the target application is cached.
[0085] The data channel object includes target capabilities; the target capabilities include one or more of sending data, closing DC, obtaining DC tags, obtaining substream identifiers of SCTP connections, and obtaining call IDs. The DC tags are used to identify different data channels.
[0086] Specifically, after the target application successfully establishes at least one data channel with the peer terminal, the software module can cache all DC objects of the target application; optionally, the software module can also cache all DC objects of each application. The target capabilities include at least one or more of the following: sending data, closing DC, obtaining DC Label, where Label is the attribute of the DC data channel and is used to mark different DC data channels, obtaining stream id, where streamid is the substream mark of the SCTP connection, and each DC object in the same SCTP connection corresponds to a unique stream id, and obtaining call ID.
[0087] Step 304: If the target application is closed and the interface for closing the data channel is called, a closing event is sent to the chip so that the chip dismantles the data channel corresponding to the target application and returns a data channel closing notification message to the software module; the data channel closing notification message is received, and the data channel object corresponding to the target application is cleared based on the data channel closing notification message.
[0088] Specifically, the target application can be closed in response to an application closing instruction triggered by the user. The application closing instruction can be an instruction triggered by the user to close the target application. Then, it can be determined based on the business logic whether the data channel is closed; if it is determined based on the business logic that the data channel of the target application needs to be closed, the software module can call the interface to close the DC and send a closing event to the chip. After receiving the closing event, the chip can dismantle the data channel associated with the target application based on the received closing event, that is, dismantle the data channel of the target application, and generate a data channel closing notification message (that is, a data channel dismantling notification message), and the chip can return the data channel closing notification message to the software module.
[0089] After receiving the data channel closing notification message, the software module can clear the cached data channel object corresponding to the target application locally. Based on this, after the software module subsequently determines that the target application meets the target restart condition, the query result may be that the data channel object corresponding to the target application is not found.
[0090] Step 306: If the target application is closed and the interface for closing the data channel is not called, the closing event is not transmitted to the chip so that the chip is unaware.
[0091] Specifically, if the interface for shutting down DC is not called, the terminal has no special operation, the chip has no perception, and the upper-layer application is shut down; if the interface for shutting down DC is not called, the software module does not pass the shutdown event to the chip, the chip has no perception, and subsequent operations are handled by the software module.
[0092] In this embodiment, the data channel of the target application can be dismantled in time, and the data channel corresponding to the target application can be cleared in time, so as to avoid the chip carrying too many data channels for the same application and avoid the software module locally storing too many data channel objects corresponding to the target application, thereby improving the utilization rate of the chip's communication resources and improving the utilization rate of the terminal's resources.
[0093] In one embodiment, as shown in FIG4 , the data channel processing method further includes:
[0094] Step 402: Receive a call request sent by a target application, where the call request is used to create a data channel.
[0095] Specifically, when the target application has successfully established a data channel with the other end, the software module will cache all data channel objects of each application; after the user triggers the function of closing the target application provided by the software module, the target application can be closed; if the user starts the target application again, the target application calls the interface for creating a data channel through the software module, and requests the chip to re-establish the data channel; that is, the target application can send a call request to the software module, and the call request is used to call the interface for creating a data channel, and request the chip to re-create the DC through the interface for creating a data channel. Based on this, after receiving the call request sent by the target application, the software module can determine that the target application meets the target restart condition, and the software module can query whether the data channel object of the target application has been cached through the cache function. The call request is a request initiated by the DC application to create a data channel.
[0096] In this embodiment, the timeliness of querying cache objects can be improved.
[0097] In one embodiment, FIG5 provides a flow chart of a method for processing a data channel. As shown in FIG5, the method includes the following steps:
[0098] Step 1: After the application (target application) successfully establishes at least one DC with the peer, the software module caches all DC objects of all applications, and each DC object has the target capability.
[0099] Step 2: When the user triggers the function of closing a specific application provided by the software module, whether to call the interface for closing DC can be determined by the business logic; specifically, when the user closes a specific application, whether the application triggers the call of the interface for closing DC is determined by the business logic.
[0100] Step 3.a. When the software module calls the interface for closing DC, it will synchronize the closing event to the chip, triggering the state chip to remove the DC associated with the specific application; specifically, if the interface for closing DC is called, the software module needs to pass the closing event to the chip, then the chip will remove the DC associated with the specific application and needs to notify the software module. After receiving the notification that DC is closed from the chip, the software module clears the DC object of the specific application.
[0101] Step 3.b: If the interface for closing DC is not called, the terminal has no special operation, the chip has no perception, and the upper-layer application is closed; specifically, if the interface for closing DC is not called, the software module does not pass the closing event to the chip, the chip has no perception, and subsequent operations are handled by the software module.
[0102] Step 4: When the user starts the same specific application again, the application will re-use the interface for creating DC through the software module to request the chip to re-establish DC; specifically, when the same specific application (target application) is restarted, the software module queries the cache function to see whether the DC object of the specific application has been cached.
[0103] Step 5.a: The terminal performs signaling re-negotiation with the network and re-establishes DC for the specific application.
[0104] Step 5.b: The software module returns the cached DC object to the specific application without notifying the chip.
[0105] Step 6. The same specific application is successfully restarted and can be used normally.
[0106] The data channel processing method provided in this embodiment can solve the problem of chip and network resource waste or even saturation caused by the user restarting the same application during a call.
[0107] In one embodiment, the target application may be an application deployed on a terminal or on an application server, and may be determined based on the actual application scenario; each target application may establish multiple data channels with the other end, and each data channel is configured with a data channel object corresponding to the data channel, and the data channel corresponds to the data channel object one by one. The interface for closing the DC in the above embodiment may be an interface between the target application and the software module. The user-triggered target application closing instruction (the user's closing option for closing a specific application) may be provided by the target application or by the software module. The operation of restarting the target application may be triggered by the user or by the application server; the software module may be implemented through operating systems such as Android, Hongmeng, IOS, etc., or by middleware (SDK).
[0108] The data channel processing method provided in this embodiment can implement the DC caching function in the software module, realize chip-unawareness while ensuring user experience, thereby saving end-to-end network resources and reducing end-to-end latency. In the data channel processing method provided in this embodiment, after the application successfully establishes at least one DC with the other end, the software module caches all DC objects of all applications, each DC object contains a series of necessary attributes, and when the same specific application is restarted, the software module queries whether the DC object of the specific application has been cached in the cache function. Caching all DC objects of all applications can ensure that the query results of the data channel object corresponding to the target application through the cache function in subsequent embodiments are accurate.
[0109] In the data channel processing method provided in this embodiment, the user closes a specific application. Whether the application triggers the call to close the DC interface is determined by the business logic. The application can decide whether to call the DC closing interface based on actual needs. Only when the target application calls the interface will the underlying chip remove the DC. If the target application does not call the interface, only the software module will perform corresponding processing without re-establishing the SCTP link, thereby avoiding end-to-end delay.
[0110] The software module in the data channel processing method provided in this embodiment returns the cached DC object to the specific application. The software module returns the cached DC object to shield the chip's perception, and there is no need for re-signaling negotiation between the end networks.
[0111] It should be understood that, although the various steps in the flowcharts of Figures 1-5 are displayed in sequence according to the indications of the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless there is a clear description in this article, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least a part of the steps in Figures 1-5 may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0112] In one embodiment, as shown in FIG6 , a data channel processing device 600 is provided, which is applied to a software module and includes:
[0113] The query module 601 is used to query the data channel object corresponding to the target application through the cache function to obtain the query result if the target application meets the target restart condition; the target restart condition is that the target application successfully establishes a data channel with the other end, and in the same call, the target application is closed and then restarted;
[0114] The starting module 602 is used to restart the target application based on the data channel corresponding to the query result.
[0115] In one embodiment, the query result is that the data channel object of the target application is not found; the startup module is specifically used to:
[0116] A data channel establishment request is sent to the chip through a data channel creation interface, so that the chip re-negotiates with the network to establish a data channel through signaling, and restarts the target application based on the data channel.
[0117] In one embodiment, the query result is a data channel object of the target application; the startup module is specifically used to:
[0118] A notification message indicating that the data channel has been successfully created is returned to the target application, so that the target application determines that the data channel of the target application has been successfully created based on the notification message, and restarts based on the data channel.
[0119] In one embodiment, the device further comprises:
[0120] A cache module, configured to cache a data channel object corresponding to the target application after the target application establishes a data channel with the terminal, wherein the data channel object includes a target capability;
[0121] a sending module, configured to send a closing event to the chip if the target application is closed and an interface for closing a data channel is called, so that the chip removes the data channel corresponding to the target application and returns a data channel closing notification message to the software module;
[0122] A first receiving module, configured to receive the data channel closing notification message, and clear the data channel object corresponding to the target application based on the data channel closing notification message;
[0123] The sending module is also used for not transmitting the closing event to the chip if the target application is closed and the interface for closing the data channel is not called, so that the chip is unaware.
[0124] In one embodiment, the device further comprises:
[0125] The second receiving module is used to receive a call request sent by the target application, where the call request is used to create a data channel.
[0126] In one of the embodiments, the target capability includes one or more of sending data, closing DC, obtaining DC label, obtaining substream identifier of SCTP connection, and obtaining call ID, and the DC label is used to identify different data channels.
[0127] For the specific definition of the data channel processing device, please refer to the definition of the data channel processing method above, which will not be repeated here. Each module in the above-mentioned data channel processing device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0128] In one embodiment, a communication device is provided, see FIG7. FIG7 is a schematic diagram of the structure of a terminal device corresponding to a software module provided in an embodiment of the present invention. The terminal device 700 shown in FIG7 includes: at least one processor 701, a memory 702, at least one network interface 704 and a user interface 703. The various components in the terminal device 700 are coupled together through a bus system 705. It can be understood that the bus system 705 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 705 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, various buses are marked as bus systems 705 in FIG7. In addition, in an embodiment of the present invention, a transceiver 706 is also included, and the transceiver can be a plurality of components, that is, a transmitter and a receiver, providing a unit for communicating with various other devices on a transmission medium.
[0129] The user interface 703 may include a display, a keyboard, or a pointing device (eg, a mouse, a trackball, a touch pad, or a touch screen).
[0130] It can be understood that the memory 702 in the embodiment of the present invention can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct RAM bus random access memory (DRRAM). The memory 702 of the system and method described in the embodiments of the present invention is intended to include, but is not limited to, these and any other suitable types of memory.
[0131] In some implementations, the memory 702 stores the following elements, executable modules or data structures, or a subset thereof, or an extended set thereof: an operating system 7021 and an application 7022 .
[0132] The operating system 7021 includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., which are used to implement various basic services and process hardware-based tasks. The application 7022 includes various application programs, such as a media player (MediaPlayer), a browser (Browser), etc., which are used to implement various application services. The program for implementing the method of the embodiment of the present invention can be included in the application 7022.
[0133] In an embodiment of the present invention, by calling a program or instruction stored in the memory 702, specifically, it can be a program or instruction stored in the application 7022, wherein the processor is used to query the data channel object corresponding to the target application through the cache function if the target application meets the target restart condition to obtain the query result; the target restart condition is that the target application successfully establishes a data channel with the other end, and in the same call, the target application is closed and then restarted; based on the data channel corresponding to the query result, the target application is restarted.
[0134] Part or all of the methods disclosed in the above embodiments of the present invention may also be applied to the processor 701, or implemented by the processor 701, or implemented by the processor 701 in cooperation with other components (such as a transceiver). The processor 701 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method may be completed by an integrated logic circuit of hardware or software instructions in the processor 701. The above processor 701 may be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present invention may be implemented or executed. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiments of the present invention may be directly embodied as being executed by a hardware decoding processor, or may be executed by a combination of hardware and software modules in a decoding processor. The software module may be located in a storage medium mature in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 702, and the processor 701 reads the information in the memory 702 and completes the steps of the above method in combination with its hardware.
[0135] It is to be understood that the embodiments described in the embodiments of the present invention may be implemented by hardware, software, firmware, middleware, microcode or a combination thereof. For hardware implementation, the processing unit may be implemented in one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSP devices, DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), general purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions described in the present application or a combination thereof.
[0136] For software implementation, the technology described in the embodiments of the present invention can be implemented by a module (such as a process, function, etc.) that performs the functions described in the embodiments of the present invention. The software code can be stored in a memory and executed by the processor 701. The memory can be implemented in the processor 701 or outside the processor 701.
[0137] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0138] If the target application meets the target restart condition, the data channel object corresponding to the target application is queried through the cache function to obtain the query result; the target restart condition is that the target application successfully establishes a data channel with the other end, and in the same call, the target application is closed and then restarted;
[0139] Restart the target application based on the data channel corresponding to the query result.
[0140] In one embodiment, the query result is that the data channel object of the target application is not found; when the computer program is executed by the processor, the following steps are also implemented:
[0141] A data channel establishment request is sent to the chip through a data channel creation interface, so that the chip re-negotiates with the network to establish a data channel through signaling, and restarts the target application based on the data channel.
[0142] In one embodiment, the query result is a data channel object of the target application; when the computer program is executed by the processor, the following steps are also implemented:
[0143] A notification message indicating that the data channel has been successfully created is returned to the target application, so that the target application determines that the data channel of the target application has been successfully created based on the notification message, and restarts based on the data channel.
[0144] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0145] After the target application establishes a data channel with the terminal, caching a data channel object corresponding to the target application, the data channel object including target capabilities;
[0146] If the target application is closed and the interface for closing the data channel is called, a closing event is sent to the chip so that the chip removes the data channel corresponding to the target application and returns a data channel closing notification message to the software module;
[0147] receiving the data channel closing notification message, and clearing the data channel object corresponding to the target application based on the data channel closing notification message;
[0148] If the target application is closed and the interface for closing the data channel is not called, the closing event is not transmitted to the chip, so that the chip is unaware.
[0149] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0150] A call request sent by the target application is received, where the call request is used to create a data channel.
[0151] In one of the embodiments, the target capability includes one or more of sending data, closing DC, obtaining DC label, obtaining substream identifier of SCTP connection, and obtaining call ID, and the DC label is used to identify different data channels.
[0152] The embodiment of the present application also provides a computer program product including instructions, which, when executed on a computer, enables the computer to execute the steps described in the above embodiment.
[0153] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).
[0154] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0155] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A method for processing a data channel, characterized in that: Applied to a software module, the method comprises: If the target application meets the target restart condition, the data channel object corresponding to the target application is queried through the cache function to obtain the query result; the target restart condition is that the target application successfully establishes a data channel with the other end, and in the same call, the target application is closed and then restarted; Restart the target application based on the data channel corresponding to the query result.
2. The method according to claim 1, characterized in that The query result is that the data channel object of the target application is not found; and restarting the target application based on the data channel corresponding to the query result includes: A data channel establishment request is sent to the chip through a data channel creation interface, so that the chip re-negotiates with the network to establish a data channel through signaling, and restarts the target application based on the data channel.
3. The method according to claim 1, characterized in that The query result is a data channel object of the target application; and restarting the target application based on the data channel corresponding to the query result includes: A notification message indicating that the data channel has been successfully created is returned to the target application, so that the target application determines that the data channel of the target application has been successfully created based on the notification message, and restarts based on the data channel.
4. The method according to claim 1, characterized in that: The method further comprises: After the target application establishes a data channel with the terminal, caching a data channel object corresponding to the target application, the data channel object including target capabilities; If the target application is closed and the interface for closing the data channel is called, a closing event is sent to the chip so that the chip removes the data channel corresponding to the target application and returns a data channel closing notification message to the software module; the data channel closing notification message is received, and the data channel object corresponding to the target application is cleared based on the data channel closing notification message; If the target application is closed and the interface for closing the data channel is not called, the closing event is not transmitted to the chip, so that the chip is unaware.
5. The method according to claim 1, characterized in that The method further comprises: A call request sent by the target application is received, where the call request is used to create a data channel.
6. The method according to claim 1, characterized in that The target capability includes one or more of sending data, closing DC, obtaining DC label, obtaining sub-stream identifier of SCTP connection and obtaining call ID, and the DC label is used to identify different data channels.
7. A data channel processing device, characterized in that: Applied to a software module, the device comprises: A query module, used for querying the data channel object corresponding to the target application through the cache function to obtain a query result if the target application meets the target restart condition; the target restart condition is that the target application successfully establishes a data channel with the opposite end, and in the same call, the target application is closed and then restarted; A startup module is used to restart the target application based on the data channel corresponding to the query result.
8. A communication device, comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Cited By
Processing method and apparatus for data channel, and communication device, storage medium and computer program product
WO2026036597A1
