Data flow detection method of communication device

The application processor starts the network packet sharing mode based on the IPA channel, and the modem counts the data traffic consumed by the entire communication device, solving the problem of missing shared data traffic in the IPA channel transmission in the prior art, and achieving higher data traffic detection accuracy.

CN113938941BActive Publication Date: 2025-03-11SPREADTRUM COMMUNICATION (SHANGHAI) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111217429.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-19
Publication Date
2025-03-11
Estimated Expiration
2041-10-19

AI Technical Summary

Technical Problem

When the prior art transmits shared data through IPA channels, the network card statistics method will miss the traffic of shared data transmitted by the IPA channel, resulting in a decrease in statistical losses and accuracy.

Method used

The network packet sharing mode based on the IPA channel is initiated by the application processor, and the modem is counted by the data traffic consumed by the entire communication device as the traffic consumed by the shared data.

Benefits of technology

This method reduces statistical deviation, improves the accuracy of data traffic detection, and avoids the problem of missing shared data traffic transmitted by IPA channels.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113938941B_ABST
    Figure CN113938941B_ABST
Patent Text Reader

Abstract

A method for detecting data flow of a communication device, the communication device comprising: an application processor; a modem, the modem communicating with the application processor via an Internet Protocol Packet Acceleration (IPA) channel, the IPA channel being used to transmit shared network data packets; the method for detecting data flow comprises: the application processor starting a network data packet sharing mode based on the IPA channel; the modem counting the data flow consumed by the communication device, and using the data flow consumed by the communication device as the data flow consumed by the shared data. The statistical deviation of the present invention is small and the accuracy is high.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a method for detecting data flow of a communication device. Background Art

[0002] With the development of 5G technology, there are more and more 5G products and applications, and the technology of sharing the network between smart terminals and personal computers (PCs) is gaining more and more attention.

[0003] Commonly used shared network technologies are mostly software-based shared network technologies, such as hotspot-based shared network technologies. As 5G technology increases its demand for communication speed, hardware-based shared network technologies have been introduced, namely shared network technologies based on Internet Protocol Packet Accelerator (IP Packet Accelerator, IPA) channels, such as Universal Serial Bus (USB) shared network technologies.

[0004] In the prior art, regardless of the hardware sharing mode (such as network data packet sharing based on IPA channels) or software sharing (such as hotspot sharing), the traffic shared to other terminals (such as PCs) is detected by counting traffic through the network card.

[0005] However, for the method of transmitting shared data through the IPA channel, since the IPA channel does not pass through the network card, in the prior art, the network card statistics method will miss the flow of shared data transmitted by the IPA channel, resulting in statistical loss and reduced accuracy.

[0006] There is an urgent need for a data flow detection method for a communication device to improve the problem of missing the flow of shared data transmitted through an IPA channel. Summary of the invention

[0007] The technical problem solved by the present invention is to provide a method for detecting data flow of a communication device, which has small statistical deviation and high accuracy.

[0008] To solve the above technical problems, an embodiment of the present invention provides a data flow detection method for a communication device, wherein the communication device includes: an application processor; a modem, wherein the modem communicates with the application processor via an Internet Protocol Packet Acceleration (IPA) channel, and the IPA channel is used to transmit shared network data packets; the data flow detection method includes: the application processor starts a network data packet sharing mode based on the IPA channel; the modem counts the data flow consumed by the communication device, and uses the data flow consumed by the communication device as the data flow consumed by the shared data.

[0009] Optionally, before the modem counts the data traffic consumed by the communication device, the data traffic detection method also includes: the application processor sends a network data packet sharing startup message to the modem; wherein the modem counts the data traffic consumed by the communication device in response to receiving the network data packet sharing startup message.

[0010] Optionally, before the application processor starts the network data packet sharing mode based on the IPA channel, the application processor sends the network data packet sharing start message to the modem; or, after the application processor starts the network data packet sharing mode based on the IPA channel, the application processor sends the network data packet sharing start message to the modem.

[0011] Optionally, the application processor includes a network packet sharing module and a radio interface layer RIL module; the application processor sends a network packet sharing startup message to the modem, including: the network packet sharing module starts the network packet sharing mode based on the IPA channel, configures and sends the network packet sharing startup message to the RIL module; the RIL module sends the network packet sharing startup message to the modem based on the RIL protocol.

[0012] Optionally, the modem includes a data service management DSM module; the modem counting data traffic consumed by the communication device includes: using the DSM module to count data traffic consumed by the communication device when accessing a core network based on an access layer protocol.

[0013] Optionally, the application processor starting the network data packet sharing mode based on the IPA channel includes: the application processor starting the network data packet sharing mode based on the IPA channel in response to an external instruction.

[0014] Optionally, the modem counting the data traffic consumed by the communication device includes: the modem periodically counting the data traffic consumed by the communication device within a previous cycle duration; and the modem periodically sending the counted data traffic within the previous cycle duration to the application processor.

[0015] Optionally, the data flow detection method further includes: the application processor establishing a correspondence between the data flow counted within each cycle duration and the time.

[0016] Optionally, the data traffic detection method further includes: the application processor performs cumulative statistics on the data traffic counted within each cycle duration in different time periods.

[0017] Optionally, the data traffic detection method further includes: when the communication device is turned off, the application processor stores and clears the accumulated statistical data traffic.

[0018] Optionally, the shared network data packet is applied to one or more of the following: Universal Serial Bus USB sharing, Peripheral IE high-speed sharing, wireless WIFI sharing and Ethernet sharing; wherein the IPA channel is used to transmit one or more of the following: shared data of the USB shared network, shared data of the PCIE shared network, shared data of the WIFI shared network and shared data of the Ethernet shared network.

[0019] Compared with the prior art, the technical solution of the embodiment of the present invention has the following beneficial effects:

[0020] In an embodiment of the present invention, after starting the network data packet sharing mode based on the IPA channel, the modem counts the data traffic consumed by the communication device and uses it as the traffic consumed by the shared data. Using the above scheme, the statistical subject is replaced with the modem, and the statistical object is replaced with the traffic consumed by the entire communication device. Since the modem counts the traffic of the entire communication device that accesses the core network based on the access layer protocol, the traffic of the shared data transmitted by the IPA channel will not be missed. In addition, since the traffic consumed by sharing is much larger than the traffic consumed by the communication device itself, the traffic consumed by the entire communication device is used as the shared consumption traffic, and the statistical deviation is small and the accuracy is high.

[0021] Furthermore, since the method of first determining when the IPA channel starts to transmit shared data and then triggering the statistical step is relatively complex and requires additional hardware support, which will increase costs, in an embodiment of the present invention, an application processor is used to send a network data packet sharing startup message to the modem, and the modem responds to receiving the network data packet sharing startup message and counts the data traffic consumed by the communication device. This technical solution can trigger statistics based on the step of receiving the message, and the technical solution has low complexity, low cost, and is easier to implement.

[0022] Furthermore, the modem counting the data traffic consumed by the communication device includes: the modem periodically counting the data traffic consumed by the communication device in the previous cycle duration; the modem periodically sending the data traffic counted in the previous cycle duration to the application processor. The application processor establishes a correspondence between the data traffic counted in each cycle duration and the time. The scheme of the embodiment of the present invention can reduce the statistical difficulty of the modem, and the modem only needs to upload statistical data periodically, further reducing the complexity of the technical scheme. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 is a schematic diagram of a working scenario of a communication device in an embodiment of the present invention;

[0024] Figure 2 is a flow chart of a data flow detection method of a communication device in an embodiment of the present invention;

[0025] Figure 3 is a flow chart of another data flow detection method of a communication device in an embodiment of the present invention;

[0026] Figure 4 is a schematic diagram of a working scenario of another communication device in an embodiment of the present invention;

[0027] Figure 5 is a schematic diagram of a working scenario of another communication device in an embodiment of the present invention;

[0028] Figure 6 It is a structural schematic diagram of a communication device in an embodiment of the present invention. DETAILED DESCRIPTION

[0029] In the prior art, regarding the shared network technology, a hardware mode shared network technology, i.e., a shared network technology based on the IPA channel, is introduced. However, regardless of the hardware sharing mode (such as network data packet sharing based on the IPA channel) or the software sharing mode (such as hotspot sharing), the traffic shared to other terminals (such as PCs) is detected by counting the traffic of the network card.

[0030] After research, the inventor of the present invention found that for the method of transmitting shared data through the IPA channel, since the IPA channel does not pass through the network card, in the prior art, the network card statistics method will miss the traffic of shared data transmitted by the IPA channel, and only count the traffic consumed by the current communication device itself, resulting in the counted data traffic being less than the actual consumed data traffic. Moreover, since the traffic consumed due to sharing is often much larger than the traffic consumed by the communication device itself, only counting the traffic consumed by the current communication device itself will bring greater losses to the communication operator.

[0031] In an embodiment of the present invention, after starting the network data packet sharing mode based on the IPA channel, the modem counts the data traffic consumed by the communication device and uses it as the traffic consumed by the shared data. Using the above scheme, the statistical subject is replaced with the modem, and the statistical object is replaced with the traffic consumed by the entire communication device. Since the modem counts the traffic of the entire communication device that accesses the core network based on the access layer protocol, the traffic of the shared data transmitted by the IPA channel will not be missed. In addition, since the traffic consumed by sharing is much larger than the traffic consumed by the communication device itself, the traffic consumed by the entire communication device is used as the shared consumption traffic, and the statistical deviation is small and the accuracy is high.

[0032] In order to make the above-mentioned objects, features and beneficial effects of the present invention more obvious and easy to understand, specific embodiments of the present invention are described in detail below with reference to the accompanying drawings.

[0033] Combined with reference Figure 1 and Figure 2 , Figure 1 is a schematic diagram of a working scenario of a communication device in an embodiment of the present invention, Figure 2 It is a flow chart of a data flow detection method of a communication device in an embodiment of the present invention.

[0034] The communication device may include: an application processor (AP) 10 and a modem (Modem) 20, wherein the modem 20 communicates with the application processor 10 via an Internet Protocol Packet Acceleration (IPA) channel 30, and the IPA channel 30 is used to transmit shared network data packets.

[0035] The network data packet for sharing may be data for sharing with other terminals (such as PCs), such as Internet Protocol (IP) data packets or other appropriate shared data carriers.

[0036] Specifically, a first end of the IPA channel 30 is connected to an application processor 10 of the communication device, and a second end is connected to a modem 20 of the communication device, for transmitting shared data to other terminals (such as PCs).

[0037] Furthermore, the shared network data packet can be applied to one or more of the following: Universal Serial Bus USB sharing, high-speed peripheral device interconnection PCIE sharing, wireless WIFI sharing and Ethernet sharing; wherein the IPA channel is used to transmit one or more of the following: shared data of the USB shared network, shared data of the PCIE shared network, shared data of the WIFI shared network and shared data of the Ethernet shared network.

[0038] It is understandable that the shared scenarios of the shared network data packets and the shared data transmitted by the IPA channel should correspond one to one. For example, when applied to USB sharing, the IPA channel is used to transmit the shared data of the USB sharing network.

[0039] Specifically, USB sharing can be used to indicate a scenario in which a PC shares Internet access through a USB port.

[0040] Peripheral component interconnect express (PCI-Express or PCIE) sharing can be used to indicate a scenario in which a host computer shares Internet access through PCIE.

[0041] The host computer may refer to a computer that can directly issue control commands, such as a PC, a host computer or a master computer, an upper computer, etc. The host computer is opposite to the lower computer, which is a computer that directly controls the device to obtain the device status, such as a single-chip microcomputer.

[0042] In the WIFI sharing scenario, other terminals can share the Internet through WIFI and IPA channels.

[0043] It should be noted that in the embodiment of the present invention, the communication device can support the software sharing mode while supporting the hardware sharing mode. For example, when supporting the network data packet sharing mode based on the IPA channel, it can also support WIFI sharing Internet access.

[0044] The Ethernet sharing scenario can be used to indicate that the host computer shares Internet access through Ethernet.

[0045] It is understandable that the embodiments of the present invention are not limited to the above four sharing scenarios. As long as the network data packet sharing mode based on the IPA channel is supported, it can fall within the protection scope of the embodiments of the present invention.

[0046] Figure 2 The data flow detection method of the communication device in the embodiment may include steps S21 to S23:

[0047] Step S21: the application processor starts a network data packet sharing mode based on the IPA channel;

[0048] Step S22: the modem counts the data traffic consumed by the communication device, and uses the data traffic consumed by the communication device as the data traffic consumed by the shared data.

[0049] It is understandable that, in a specific implementation, the method can be implemented in the form of a software program, and the software program runs in a processor integrated inside a chip or a chip module.

[0050] In the specific implementation of step S21, the network data packet sharing mode based on the IPA channel is started by the application processor.

[0051] Further, the step of the application processor starting the network data packet sharing mode based on the IPA channel may include: the application processor starting the network data packet sharing mode based on the IPA channel in response to an external instruction.

[0052] Specifically, the external instruction can be input by the user, such as when the user decides to share the network with the PC for surfing or downloading, the user can input an opening instruction. The external instruction can also be pre-set, and the network data packet sharing mode based on the IPA channel is started by reading the records in the database.

[0053] In the specific implementation of step S22, the modem counts the flow of network data packets transmitted via the IPA channel.

[0054] Further, the step of the modem counting the data traffic consumed by the communication device may include: the modem periodically counting the data traffic consumed by the communication device within a previous cycle duration; the modem periodically sending the counted data traffic within the previous cycle duration to the application processor.

[0055] In an embodiment of the present invention, the modem periodically counts the data traffic consumed by the communication device in the previous cycle duration, and the modem periodically sends the data traffic counted in the previous cycle duration, and the application processor can subsequently perform data processing, such as establishing a corresponding relationship between the data traffic counted in each cycle duration and the time. The scheme of the embodiment of the present invention can reduce the statistical difficulty of the modem, and the modem only needs to periodically upload statistical data, further reducing the complexity of the technical scheme.

[0056] Furthermore, before the modem counts the data traffic consumed by the communication device, it also includes: the application processor sends a network data packet sharing startup message to the modem; wherein the modem counts the data traffic consumed by the communication device in response to receiving the network data packet sharing startup message.

[0057] In an embodiment of the present invention, since the method of first judging when the IPA channel starts to transmit shared data and then triggering the statistical step is relatively complex and requires additional hardware equipment support, which will increase the cost, in an embodiment of the present invention, an application processor is used to send a network data packet sharing startup message to the modem, and the modem responds to receiving the network data packet sharing startup message to count the data traffic consumed by the communication device. The technical solution can trigger statistics based on the step of receiving the message, and the technical solution has low complexity, low cost, and is easier to implement.

[0058] Further, the application processor may send a network data packet sharing start message to the modem before or after starting the IPA channel-based network data packet sharing mode.

[0059] Reference Figure 3 , Figure 3 is a flow chart of another method for detecting data flow of a communication device in an embodiment of the present invention. The method for detecting data flow of another communication device may include Figure 2 The steps S21 and S22 shown may further include step S31 or step S32.

[0060] like Figure 3 As shown, before the application processor starts the network data packet sharing mode based on the IPA channel, step S31 may also be included: the application processor sends the network data packet sharing start message to the modem.

[0061] Alternatively, after the application processor starts the network data packet sharing mode based on the IPA channel, the method may further include step S32: the application processor sends the network data packet sharing start message to the modem.

[0062] In the embodiment of the present invention, the step of using the application processor to send a network data packet sharing start message to the modem can be flexibly set, so that the modem responds to receiving the network data packet sharing start message.

[0063] Reference Figure 4 , Figure 4 FIG. 1 is a schematic diagram of another working scenario of a communication device in an embodiment of the present invention. Figure 4 and Figure 1 The differences between them are explained.

[0064] exist Figure 4 In another communication device shown, the application processor 10 may include a network data packet sharing module 101 and a radio interface layer (RIL) module 103 , and may also include a network module 102 .

[0065] The first end of the IPA channel 30 is coupled to the RIL module 103 of the application processor 10 , and the second end is coupled to the DSM module 201 of the modem 20 , for transmitting shared data to other terminals (such as PCs).

[0066] The coupling relationship is used to represent a direct connection relationship or an indirect connection relationship.

[0067] Furthermore, the step of the application processor 10 sending a network data packet sharing startup message to the modem 20 may include: the network data packet sharing module 101 starts the network data packet sharing mode based on the IPA channel 30, configures and sends the network data packet sharing startup message to the RIL module 103; the RIL module 103 may send a network data packet sharing startup message to the modem 20 based on the RIL protocol.

[0068] Furthermore, the modem 20 may include a data service management (DSM) module 201; the step of the modem 20 counting the data traffic consumed by the communication device may include: using the DSM module 201 to count the data traffic of the communication device accessing the core network based on the access layer protocol.

[0069] In an embodiment of the present invention, after starting the network data packet sharing mode based on the IPA channel 30, the network data packet sharing module 101 configures and sends the network data packet sharing startup message to the RIL module 103, and the RIL module 103 sends the network data packet sharing startup message to the DSM module 201 of the modem 20 based on the RIL protocol, and the DSM module 201 counts the data flow of the communication device accessing the core network based on the access layer protocol, and uses it as the flow consumed by the shared data. By adopting the above scheme, the statistical subject is replaced by the DSM module 201 in the modem 20, and the statistical object is replaced by the data flow of the communication device accessing the core network based on the access layer protocol, and the flow of the entire communication device accessing the core network includes the flow of the shared data transmitted by the IPA channel 30, so there is no statistical loss and the accuracy is high.

[0070] Furthermore, the application processor 10 may establish a correspondence between the data flow counted within each cycle duration and the time.

[0071] In the embodiment of the present invention, by establishing a correspondence between the data flow counted in each period and the time, the application processor 10 can record the flow information of each period so as to perform statistics and / or display in a specific application.

[0072] Furthermore, the step of establishing a correspondence between the data traffic counted in each cycle duration and the time may be performed by the network module 102 .

[0073] Furthermore, the data traffic detection method may further include: the application processor performs cumulative statistics on the data traffic counted in each cycle duration in 10 time periods.

[0074] In the embodiment of the present invention, by accumulating statistics of data traffic in each cycle duration in different time periods, the application processor 10 can record the traffic information of each time period so as to count and / or display the traffic peak or valley conditions in a specific application.

[0075] Furthermore, the step of performing cumulative statistics on the data traffic counted within each cycle duration in different time periods may be executed by the network module 102 .

[0076] Furthermore, the data traffic detection method may further include: when the communication device is turned off, the application processor 10 stores and clears the accumulated statistical data traffic.

[0077] In the embodiment of the present invention, by storing and clearing the accumulated statistical data traffic, the application processor 10 can release the storage space in time and effectively reduce the system burden.

[0078] Furthermore, the steps of storing and clearing the accumulated statistical data traffic may be performed by the network module 102 .

[0079] Reference Figure 5 , Figure 5 FIG. 1 is a schematic diagram of a working scenario of another communication device in an embodiment of the present invention. Figure 5 and Figure 1 The differences between them are explained.

[0080] exist Figure 5 In another communication device shown, the application processor 10 may further include a Tele interface 104 and a display module 105 , and the modem 20 may further include an L4 module 202 .

[0081] The network module 102 can display data traffic information to the user through the display module 105, for example, the data traffic counted in each cycle duration described above, the correspondence between the data traffic counted in each cycle duration and the time, and the data traffic counted in each time period, etc.

[0082] The Tele interface 104 can be used to convert languages. For example, the network data packet sharing module 101 can use Java language, which can be converted into C language through the Tele interface 104 to achieve information interaction with the RIL module 103.

[0083] At one end of the modem 20 , the shared data may be received through a 3rd Generation Partnership Project (3GPP) layer 4 (Layer 4, L4) module based on the L4 protocol, and then further appropriate processing steps may be performed.

[0084] Specifically, for example, the shared data is processed based on a layer 2 (Layer 2, L2) protocol and / or a layer 1 (Layer 1, L1) protocol and then accessed to a core network, etc., which is not limited here.

[0085] In the embodiment of the present invention, the transmission of shared data can be better supported through the Tele interface 104 and the L4 module 202 .

[0086] Reference Figure 6 , Figure 6 It is a structural schematic diagram of a communication device in an embodiment of the present invention.

[0087] The apparatus 600 includes at least one processor 601 and at least one memory 602 for storing computer programs and / or data. The memory 602 is coupled to the processor 601. The processor 601 is configured to execute the computer programs and / or data stored in the memory 602 to implement the above and Figure 1 The communication method shown. The coupling in the embodiment of the present application is an interval coupling or communication connection between devices, units or modules, which can be electrical, mechanical or other forms, and is used for information exchange between devices, units or modules. As another implementation, the memory 602 can also be located outside the device 600. The processor 601 can operate in conjunction with the memory 602. The processor 601 may execute a computer program stored in the memory 602. At least one of the at least one memory may be included in the processor.

[0088] In some embodiments, the apparatus 600 may further include a communication interface 603, which is used to communicate with other devices via a transmission medium, so that the modules in the apparatus 600 can communicate with other devices. Exemplarily, the communication interface 603 may be a transceiver, circuit, bus, module or other type of communication interface.

[0089] The embodiment of the present application does not limit the connection medium between the communication interface 603, the processor 601 and the memory 602. Figure 6 The memory 602 and the communication interface 603 are connected to the processor 601. Of course, in the embodiment of the present application, the memory 602, the communication interface 603, and the processor 601 can also be connected through a bus, which can be divided into an address bus, a data bus, a control bus, etc.

[0090] In the embodiments of the present application, the processor may be a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component, and may implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of the present application. The general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application may be directly embodied as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.

[0091] In the embodiment of the present application, the memory may be a non-volatile memory, such as a hard disk drive (HDD) or a solid-state drive (SSD), etc., or a volatile memory (volatile memory), such as a random-access memory (RAM). The memory is any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory in the embodiment of the present application may also be a circuit or any other device that can realize a storage function, for storing computer programs and / or data.

[0092] In the method provided in the embodiment of the present application, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program is loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, a network device, a user device or other programmable device. The computer program may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instruction may be transmitted from a website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or a data center that includes one or more available media integrated. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a digital video disc (DVD)), or a semiconductor medium (eg, an SSD).

[0093] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

[0094] Regarding the various modules / units included in the various devices and products described in the above embodiments, they can be software modules / units, or hardware modules / units, or they can be partially software modules / units and partially hardware modules / units. For example, for various devices and products applied to or integrated in a chip, the various modules / units included therein can all be implemented in the form of hardware such as circuits, or at least some of the modules / units can be implemented in the form of software programs, which run on a processor integrated inside the chip, and the remaining (if any) modules / units can be implemented in the form of hardware such as circuits; for various devices and products applied to or integrated in a chip module, the various modules / units included therein can all be implemented in the form of hardware such as circuits, and different modules / units can be located in the same component (such as a chip, circuit module, etc.) or different components of the chip module, or at least some of the modules / units can be implemented in the form of hardware such as circuits. The element can be implemented in the form of a software program, which runs on a processor integrated inside the chip module, and the remaining (if any) modules / units can be implemented in the form of hardware such as circuits; for various devices and products applied to or integrated in the terminal, the various modules / units contained therein can be implemented in the form of hardware such as circuits, and different modules / units can be located in the same component (for example, chip, circuit module, etc.) or in different components in the terminal, or, at least some modules / units can be implemented in the form of a software program, which runs on a processor integrated inside the terminal, and the remaining (if any) modules / units can be implemented in the form of hardware such as circuits.

[0095] Although the present invention is disclosed as above, the present invention is not limited thereto. Any person skilled in the art can make various changes and modifications without departing from the spirit and scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the scope defined by the claims.

Claims

1. A method for detecting data flow of a communication device, characterized in that: The communication device comprises: Application processor; a modem, the modem communicating with the application processor via an Internet Protocol Packet Acceleration (IPA) channel, the IPA channel being used to transmit shared network packets; The data flow detection method comprises: The application processor starts a network data packet sharing mode based on an IPA channel; The modem counts the data traffic consumed by the communication device, and uses the data traffic consumed by the communication device as the data traffic consumed by the shared data; Before the modem counts the data traffic consumed by the communication device, the method further includes: The application processor sends a network data packet sharing start message to the modem; wherein the modem counts data flow consumed by the communication device in response to receiving the network data packet sharing start message; The modem includes a data service management DSM module; The DSM module is used to count the data flow of the communication device accessing the core network based on the access layer protocol.

2. The data flow detection method according to claim 1, characterized in that: Before the application processor starts the network data packet sharing mode based on the IPA channel, the application processor sends the network data packet sharing start message to the modem; Alternatively, after the application processor starts the network data packet sharing mode based on the IPA channel, the application processor sends the network data packet sharing start message to the modem.

3. The data flow detection method according to claim 1, characterized in that: The application processor includes a network data packet sharing module and a radio interface layer RIL module; The application processor sending a network data packet sharing start message to the modem comprises: The network data packet sharing module starts the network data packet sharing mode based on the IPA channel, configures and sends the network data packet sharing start message to the RIL module; The RIL module sends a network data packet sharing start message to the modem based on the RIL protocol.

4. The data flow detection method according to claim 1, characterized in that: The application processor starts the network data packet sharing mode based on the IPA channel, including: The application processor starts the network data packet sharing mode based on the IPA channel in response to an external instruction.

5. The data flow detection method according to claim 1, characterized in that: The modem counting the data traffic consumed by the communication device includes: The modem periodically counts the data flow consumed by the communication device within a previous period; The modem periodically sends the data traffic counted within the previous period to the application processor.

6. The data flow detection method according to claim 5, characterized in that: Also includes: The application processor establishes a correspondence between the statistical data flow and the time in each cycle duration.

7. The data flow detection method according to claim 5 or 6, characterized in that: Also includes: The application processor performs cumulative statistics on the data traffic counted within each cycle duration in different time periods.

8. The data flow detection method according to claim 7, characterized in that: Also includes: When the communication device is turned off, the application processor stores and clears the accumulated statistical data traffic.

9. The data flow detection method according to claim 1, characterized in that: The shared network packets are applied to one or more of the following: Universal Serial Bus (USB) sharing, high-speed peripheral device interconnection (PCIE) sharing, wireless WIFI sharing, and Ethernet sharing; The IPA channel is used to transmit one or more of the following: Shared data of USB shared network, shared data of PCIE shared network, shared data of WIFI shared network and shared data of Ethernet shared network.

Citation Information

Patent Citations

  • Techniques for managing wireless communications using a distributed wireless local area network driver model

    CN106465445A

  • Mechanism to provide lte voice, internet and embms services over ethernet for connected home architecture

    CN107113617A