CN107623612B - Flow display method and device, computer equipment and computer readable storage medium - Google Patents

Flow display method and device, computer equipment and computer readable storage medium Download PDF

Info

Publication number
CN107623612B
CN107623612B CN201710924220.7A CN201710924220A CN107623612B CN 107623612 B CN107623612 B CN 107623612B CN 201710924220 A CN201710924220 A CN 201710924220A CN 107623612 B CN107623612 B CN 107623612B
Authority
CN
China
Prior art keywords
flow
sim card
virtual sim
traffic
query result
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201710924220.7A
Other languages
Chinese (zh)
Other versions
CN107623612A (en
Inventor
苏志伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710924220.7A priority Critical patent/CN107623612B/en
Publication of CN107623612A publication Critical patent/CN107623612A/en
Application granted granted Critical
Publication of CN107623612B publication Critical patent/CN107623612B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The application relates to a flow display method and device, computer equipment and a computer readable storage medium. The method comprises the following steps: receiving a flow display request; responding to the flow display request, and generating a flow query instruction according to the flow display request, wherein the flow query instruction is used for querying the flow state of the virtual SIM card; sending the flow query instruction to a virtual SIM card operating system, and calling a flow statistic interface in a service framework through the virtual SIM card operating system to obtain a flow query result; displaying a flow state page according to the flow query result; and when the flow query result is updated, acquiring the updated flow query result and displaying an updated flow state page. The flow data information of the virtual SIM card can be accurately counted, so that a user can know the flow use condition of the virtual SIM card in real time, and the user experience is improved.

Description

Flow display method and device, computer equipment and computer readable storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a traffic display method and apparatus, a computer device, and a computer-readable storage medium.
Background
Traffic, refers to the amount of data that a network service provider provides to a user terminal for use in accessing a network over a period of time. With the development of the internet, the usage amount of the mobile phone traffic by the user gradually increases, and in the process of traffic usage, the user usually needs to know the situation of the terminal usage traffic.
When a user needs to use the traffic internet surfing function after going abroad, the internet surfing function can be realized in a mode of purchasing a traffic package in advance, and more extra cost can be generated when the traffic package is exceeded. The traditional user terminal cannot accurately count the flow state in the package and display the flow state to the user, so that the user cannot know the flow use condition in the flow package purchased in advance in real time.
Disclosure of Invention
The embodiment of the application provides a flow display method and device, computer equipment and a computer readable storage medium, which can accurately count flow data information of a virtual SIM card and display the flow data information on a user terminal, so that a user can know the flow use condition of the virtual SIM card in real time.
A method of traffic exposure, the method comprising:
receiving a flow display request;
responding to the flow display request, and generating a flow query instruction according to the flow display request, wherein the flow query instruction is used for querying the flow state of the virtual SIM card;
sending the flow query instruction to a virtual SIM card operating system, and calling a flow statistic interface in a service framework through the virtual SIM card operating system to obtain a flow query result;
displaying a flow state page according to the flow query result;
and when the flow query result is updated, acquiring the updated flow query result and displaying an updated flow state page.
A flow display apparatus, the apparatus comprising:
the request receiving module is used for receiving a flow display request;
the response module is used for responding to the flow display request and generating a flow query instruction according to the flow display request, wherein the flow query instruction is used for querying the flow state of the virtual SIM card;
the instruction sending module is used for sending the flow query instruction to the virtual SIM card operating system and calling a flow statistic interface in the service framework through the virtual SIM card operating system to obtain a flow query result;
the display module is used for displaying a flow state page according to the flow query result;
and the updating module is used for acquiring the updated flow query result and displaying the updated flow state page when the flow query result is updated.
A computer device comprising a memory and a processor, the memory having stored therein computer readable instructions that, when executed by the processor, cause the processor to perform the steps of the traffic volume display method.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the traffic exposure method.
According to the flow display method and device, the computer equipment and the computer readable storage medium, the flow display request is received, the flow query instruction is generated according to the flow display request, the flow query instruction is sent to the virtual SIM card operating system, the flow statistic interface in the service frame is called through the virtual SIM card operating system to obtain the flow query result, the flow state page is displayed according to the flow query result, the flow data information of the virtual SIM card can be accurately counted, the updated flow query result is obtained when the flow query result is updated, the updated flow state page is displayed, a user can know the flow use condition of the virtual SIM card in real time, and user experience is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a diagram of an application environment of a traffic display method in one embodiment;
FIG. 2 is a partial block diagram of a terminal in one embodiment;
FIG. 3 is a flow diagram illustrating a method of traffic display in one embodiment;
FIG. 4 is a flow chart illustrating a method of traffic display in another embodiment;
FIG. 5 is a block diagram of a flow display device in one embodiment;
FIG. 6 is a block diagram showing the construction of a flow display device in another embodiment;
fig. 7 is a schematic diagram of the internal structure of the terminal in one embodiment;
FIG. 8 is a diagram showing an internal configuration of a server in one embodiment;
fig. 9 is a block diagram of a partial structure of a mobile phone related to a terminal according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
Fig. 1 is an application environment diagram of a traffic display method in one embodiment. As shown in fig. 1, the application environment includes a server 110 and a terminal 120. The server 110 is a server, which may be a cloud server, used by a virtual network operator to provide network traffic to the terminal 120. The server 110 may provide the terminal 120 with virtual Subscriber Identity Module (SIM) card data and services for implementing network communication using the virtual SIM card. A virtual SIM card refers to a virtual SIM card without a physical SIM card physical carrier. The terminal 110 may be provided with a virtual SIM Application (APP) 121, a virtual SIM operating system 122, and a virtual SIM adaptation layer 123. The virtual SIM card APP 121, the virtual SIM card operating system 122 and the virtual SIM card adapting layer 123 may all be disposed in an Application Processor (AP) on the terminal 120. The server 110 may send virtual SIM card data to the virtual SIM card operating system 122 through the virtual SIM card APP 121; the virtual SIM card operating system 122 may implement communication with radio frequency communication control software disposed in a Baseband Processor (Baseband Processor, BP) through the virtual SIM card adaptation layer 123, so as to implement network communication using the virtual SIM card.
Among other things, the server 110 may provide the virtual SIM card APP 121 of the terminal 120 with an associated interface through which communication with the terminal 120 is enabled. The interface may include interfaces for user and equipment management, package and order management, encrypted transmission of SIM resources, etc. The server 110 may provide the virtual SIM card APP 121 with a related interface in the form of a REST full Application Programming Interface (API). The implemented content of network communication using the virtual SIM card includes, but is not limited to, implementing interactive management of virtual SIM card data, dynamic update of state, statistics and rate limitation of traffic, and the like, such as implementing deletion of storage of virtual SIM card data and enabling and closing of the virtual SIM card.
Fig. 2 is a partial architecture diagram of a terminal, including modules associated with a virtual SIM card, according to one embodiment. As shown in fig. 2, a virtual SIM card operating system, a virtual SIM card adapting layer, a virtual SIM card APP, and a phonebook/information module may be disposed on the application layer of the terminal. A Telephony Interface Layer and a Radio Interface Layer (RIL) java Layer may be disposed in the Framework Layer (Framework Layer). The Modem (Modem module) can be a module consisting of a baseband processor, radio frequency and other peripheral chips, and is a GSM/GPRS Modem module. The Telephony interface layer is used for providing a universal interface, and the virtual SIM card operating system performs Socket interaction with the Modem module through the Telephony interface layer, so that whether a virtual SIM card exists or not and the position of a card slot of the virtual SIM card can be judged. The virtual SIM card operating system performs Socket interaction with the Modem module switched to the virtual SIM card channel through the virtual SIM card adapting layer, and can realize the functions of activating and closing the virtual SIM card, performing network communication function and flow monitoring by using the virtual SIM card, and the like. It is to be understood that the structure shown in fig. 2 is only a part of the modules related to the present application, and does not constitute a limitation to the computer device to which the present application is applied, and a specific computer device may include more or less modules than those shown in the drawings, or combine some modules, or have a different module arrangement. For example, a dual card management module can be arranged on the framework layer, and the dual card management module can communicate with the Telephony interface layer.
In one embodiment, the terminal may provide a management operation interface of the virtual SIM card to the user through the virtual SIM card APP, and when detecting a relevant operation acting on the management operation interface, generate a corresponding virtual SIM card processing instruction, and send the processing instruction to the virtual SIM card operating system. The virtual SIM operating system can simulate the system logic of a real SIM card, implementing a protocol and file system of relevant specifications required for network communication. The virtual SIM card operating system can receive a processing instruction from the virtual SIM card App, send a message corresponding to the processing instruction to the Modem module through the virtual SIM card adapting layer, instruct the Modem module to perform corresponding processing on the virtual SIM card basic data, receive response information made by the Modem module, and jointly realize the function of using the virtual SIM card to perform network communication. The above-mentioned related protocols may include protocols of International Organization for Standardization (ISO) 7816 and 3rd Generation Partnership Project (3 GPP) specifications for Universal Integrated Circuit Card (UICC) and Universal Subscriber Identity Module (USIM).
In one embodiment, the virtual SIM card adaptation layer may be preset with corresponding weights, so that communication with the RIL layer may be performed through the virtual SIM card adaptation layer. For example, the virtual SIM card adaptation layer may be set with the same level of rights as the phone process.
In one embodiment, the processing instructions may include package purchase instructions, enable instructions, traffic query instructions, disable instructions, close instructions, and the like for the corresponding virtual SIM card. The implemented content of network communication using the virtual SIM card includes, but is not limited to, implementing interactive management of virtual SIM card information, dynamic update of state, statistics and rate limitation of traffic, and the like, such as implementing deletion of storage of the virtual SIM card information and enabling and closing of the virtual SIM card.
As shown in fig. 3, in an embodiment, a traffic display method is provided, and this embodiment is illustrated by applying the traffic display method to the terminal 120 of the application environment in fig. 1. The flow display method specifically comprises the following steps:
step 302: a traffic exposure request is received.
Specifically, an application program is installed on the terminal, and a flow state page can be displayed through the application program. The terminal receives a flow display request generated by the user for triggering the application program, wherein the flow display request can be triggered by at least one of touch operation, gesture operation and sound control operation. Optionally, the terminal may detect that the user triggers an inquiry button on the application program through a key, a touch screen, or the like, to trigger the flow display request; or the terminal detects the gesture operation of the user, recognizes the gesture operation as a flow display instruction, and triggers a flow display request; or the terminal receives the voice signal, recognizes the voice signal as a flow display instruction, and triggers a flow display request.
Step 304: and responding to the flow display request, and generating a flow query instruction according to the flow display request, wherein the flow query instruction is used for querying the flow state of the virtual SIM card.
The application program on the terminal generates a flow query instruction, and the flow query instruction is used for querying the flow state of the virtual SIM card. After receiving a flow display request initiated by a user, an application program obtains a first flow query result through a virtual SIM card operating system.
In one embodiment, the terminal displays the page of the traffic state through the virtual SIM card APP, and the user initiates a traffic display request by operating the virtual SIM card APP, so that the page of the virtual SIM card traffic state updated in real time appears on the virtual SIM card APP.
Step 306: and sending the flow query instruction to a virtual SIM card operating system, and calling a flow statistic interface in a service framework through the virtual SIM card operating system to obtain a flow query result.
The method comprises the steps that an application program on a terminal calls a flow counting interface through a virtual SIM card operating system to read flow data in a kernel flow counting file, and obtains a flow query result returned after the virtual SIM card operating system caches the flow data, wherein caching means that the flow data are stored in a memory at first, and the flow data in the memory are serialized and written into a serialized file after the total amount of the flow data in the memory reaches a preset limit value.
Specifically, when the application program on the terminal uses the network function, the application program is called to the kernel network protocol layer through the Socket, and the kernel protocol layer completes the transceiving processing of the network data. When network access occurs, the kernel protocol layer counts the quantity of data sent and received by which uid module generates the network access, and records the data into the memory. When the service framework layer needs to access the flow data, a proc file is mapped by the kernel protocol layer and the flow data is written into the file for the service framework layer to read.
In one embodiment, the service framework includes a traffic reading module, a NetworkManagementService in the traffic reading module provides an interface, and NetworkStatsFactory in the traffic reading module reads data of the kernel traffic statistics proc file system through jni call.
In one embodiment, the service framework further includes a caching and serialization module, where the caching and serialization module caches the traffic data read from the kernel in the memory according to a certain format, and stores the cached content in the serialization file or restores the data from the serialization file into the cache when necessary. Traffic statistics need to be able to store traffic data over a long period of time in order to be retrieved when a query is needed. The information is firstly stored in the memory, an upper limit of the total flow is set, and when the upper limit is reached, the flow data in the memory needs to be serialized and transferred to a specified file, so that the historical flow data cannot be lost when the computer is started again even after the computer is shut down.
Step 308: and displaying a flow state page according to the flow query result.
Specifically, after the application program on the terminal obtains the traffic query result, the application program displays a traffic state page according to the current traffic query result.
In one embodiment, in the process of querying the flow data in the kernel through the virtual SIM card operating system, a flow query result corresponding to the flow data divided according to different application identifiers in the kernel flow statistical file is obtained, where each application program in the system has a User Identification (UID), and the flow data of different application programs is queried according to the UID. And displaying the flow states corresponding to the different UIDs in a display page according to the flow query results with the different UIDs.
In one embodiment, the traffic status pages corresponding to different UIDs may be presented in at least one of a polyline statistical chart, a bar statistical chart, and a sector statistical chart.
Step 310: and when the flow query result is updated, acquiring the updated flow query result and displaying an updated flow state page.
And the application program on the terminal updates the flow state page in real time according to the flow query result returned by the virtual SIM card operating system.
In one embodiment, the application program on the terminal dynamically displays the proportion of the used flow data to the total flow data according to the updated flow query result, for example, displays the progress of the total flow data being eaten by silkworm, so that the user can visually see the comparison between the used flow and the remaining available flow. The application program on the terminal can also count the subentry traffic states of different applications, for example, the traffic states corresponding to different application identifications are displayed in at least one form of a polyline statistical graph, a bar statistical graph and a fan statistical graph, so that a user can visually compare the traffic proportion used by different applications.
According to the flow display method, the flow display page is read according to the received flow display request, the flow statistic interface in the service frame is called through the virtual SIM card operating system to obtain the flow query result, and the updated flow state page is displayed according to the real-time updated flow query result. The flow display method can accurately count the flow data information of the virtual SIM card, and display the flow information of the virtual SIM card on the user terminal through the virtual SIM card application program, so that a user can know the flow use condition of the virtual SIM card in real time, and the user experience is improved.
As shown in fig. 4, in one embodiment, the traffic display method further includes the following steps.
Step 402: and periodically calling a flow statistic interface in the service framework through the virtual SIM card operating system to update the flow query result and obtain the updated flow query result.
The virtual SIM card operating system automatically and periodically inquires the flow data of the virtual SIM card, updates the flow inquiry result in real time and returns the flow inquiry result to an application program on the terminal. Meanwhile, the virtual SIM card operating system can also judge whether the flow in the virtual SIM card is used up, and if the flow in the virtual SIM card is used up, the virtual SIM card operating system can close the virtual SIM card.
In one embodiment, the virtual SIM card operating system queries every minute whether the used traffic data of the current virtual SIM card exceeds the total traffic data available for the package, and closes the current virtual SIM card if the currently used traffic data exceeds the available traffic data for the package. It will be appreciated that the virtual SIM card operating system may also query according to other time intervals, such as 30 seconds, 2 minutes, etc.
Step 404: and judging whether the used flow data of the virtual SIM card exceeds the total flow data in the virtual SIM card according to the flow query result. If yes, go to step 406, otherwise go to step 402.
Step 406: shown as a status page with the flow exhausted.
In one embodiment, after discovering that the available traffic in the package is exhausted, the virtual SIM card APP sends an exhausted expiration request to the server, uploads the currently used traffic, and closes the package if the request is successful, and changes the current order state to exhausted; if the request fails, the package is closed actively, the expired exhausted request is added into the queue, and when the next networking is performed, the request is sent out, and meanwhile, the order state is changed into exhausted.
In this embodiment, whether the used flow data of the virtual SIM card exceeds the total flow data in the virtual SIM card is determined according to the flow query result, and if yes, the page is displayed as a state page with the used flow. The user can know the package service condition of the virtual SIM card in real time, and the user experience is improved.
As shown in fig. 5, in one embodiment, a traffic exposing apparatus is provided, and the apparatus includes a request receiving module 501, a response module 502, an instruction sending module 503, an exposing module 504, and an updating module 505.
A request receiving module 501, configured to receive a traffic display request.
A response module 502, configured to respond to the traffic display request, and generate a traffic query instruction according to the traffic display request, where the traffic query instruction is used to query a traffic state of the virtual SIM card.
The instruction sending module 503 is configured to send the traffic query instruction to the virtual SIM card operating system, and call a traffic statistics interface in the service framework through the virtual SIM card operating system to obtain a traffic query result.
A display module 504, configured to display a traffic status page according to the traffic query result.
The updating module 505 is configured to, when the traffic query result is updated, obtain an updated traffic query result, and display an updated traffic status page.
In an embodiment, the instruction sending module 503 is further configured to obtain a traffic query result corresponding to traffic data divided according to different application identifiers in the kernel traffic statistic file.
The display module 504 is further configured to display, according to the traffic query result, traffic states corresponding to different application identifiers in a display page.
In one embodiment, the presentation module 504 is further configured to present the traffic status page corresponding to the different application identifiers in at least one of a polyline statistical graph, a bar statistical graph, and a sector statistical graph.
In one embodiment, the presentation module 504 is further configured to present a ratio of used traffic data to total traffic data according to the traffic query result.
In one embodiment, the traffic exposure request is triggered by at least one of a touch operation, a gesture operation, and a voice operation.
The flow display device reads a flow display page according to the received flow display request, calls a flow counting interface in the service frame through the virtual SIM card operating system to obtain a flow query result, and displays an updated flow state page according to the real-time updated flow query result. The flow display device can accurately count the flow data information of the virtual SIM card, and display the flow information of the virtual SIM card on the user terminal through the virtual SIM card application program, so that a user can know the flow use condition of the virtual SIM card in real time, and the user experience is improved.
As shown in fig. 6, in one embodiment, another traffic display apparatus is provided, and the apparatus includes an obtaining module 601, a determining module 602, and a displaying module 603.
The obtaining module 601 is configured to periodically invoke a traffic statistics interface in the service framework through the virtual SIM card operating system to update the traffic query result, and obtain the updated traffic query result.
The determining module 602 is configured to determine whether the used traffic data of the virtual SIM card exceeds the total traffic data in the virtual SIM card according to the traffic query result.
A displaying module 603, configured to display a status page with exhausted flow after the determination result of the determining module 602 is yes.
In this embodiment, whether the used flow data of the virtual SIM card exceeds the total flow data in the virtual SIM card is determined according to the flow query result, and if yes, the page is displayed as a state page with the used flow. The user can know the package service condition of the virtual SIM card in real time, and the user experience is improved.
The division of each module in the flow rate display device is only used for illustration, and in other embodiments, the flow rate display device may be divided into different modules as needed to complete all or part of the functions of the flow rate display device.
Fig. 7 is a schematic diagram of an internal structure of a terminal (or an electronic device, etc.) in one embodiment. As shown in fig. 7, the terminal includes a processor, a memory, and a network interface connected through a system bus. Wherein, the processor is used for providing calculation and control capability and supporting the operation of the whole computer equipment. The memory is used for storing data, programs and the like, and at least one computer program is stored on the memory, and can be executed by the processor to realize the data processing method provided in the embodiment of the application. The Memory may include a non-volatile storage medium such as a magnetic disk, an optical disk, a Read-Only Memory (ROM), or a Random-Access-Memory (RAM). For example, in one embodiment, the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and data for implementing the traffic display method applicable to the computer device provided in the embodiment of the present application, for example, interface data for communicating with the virtual SIM cards APP and SDK on the computer device, and related virtual SIM card information may be stored. The internal memory provides a cached execution environment for an operating system in the non-volatile storage medium and a data processing method applicable to the computer device. The network interface may be an ethernet card or a wireless network card, etc. for communicating with an external computer device. The computer device may be a mobile phone, a tablet computer or a personal digital assistant or a wearable device, etc.
Fig. 8 is a schematic diagram of an internal structure of a server (or a cloud, etc.) in one embodiment. As shown in fig. 8, the server includes a processor, a nonvolatile storage medium, an internal memory, and a network interface connected through a system bus. Wherein, the processor is used for providing calculation and control capability and supporting the operation of the whole computer equipment. The memory is used to store data, programs, and the like. The Memory may include a non-volatile storage medium such as a magnetic disk, an optical disk, a Read-Only Memory (ROM), or a Random-Access-Memory (RAM). For example, in one embodiment, the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and data used for implementing the traffic display method applicable to the computer device provided in the embodiment of the present application, for example, interface data for communicating with the virtual SIM cards APP and SDK on the computer device, and related virtual SIM card information may be stored. The internal memory provides a cached execution environment for an operating system in the non-volatile storage medium and a data processing method applicable to the computer device. The network interface may be an ethernet card or a wireless network card, etc. for communicating with an external computer device. The server may be implemented as a stand-alone server or as a server cluster consisting of a plurality of servers. Those skilled in the art will appreciate that the architecture shown in fig. 8 is a block diagram of only a portion of the architecture associated with the subject application, and does not constitute a limitation on the servers to which the subject application applies, as a particular server may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
The embodiment of the application also provides a computer readable storage medium. One or more non-transitory computer-readable storage media containing computer-executable instructions that, when executed by one or more processors, cause the processors to perform a method of traffic exposure as described in the embodiments above.
The embodiment of the application also provides a computer program product. A computer program product comprising instructions which, when run on a computer, cause the computer to perform the traffic exposure method described in the embodiments above.
The embodiment of the application also provides computer equipment. As shown in fig. 9, for convenience of explanation, only the parts related to the embodiments of the present application are shown, and details of the technology are not disclosed, please refer to the method part of the embodiments of the present application. The computer device may be any terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), a vehicle-mounted computer, a wearable device, and the like, taking the computer device as the mobile phone as an example:
fig. 9 is a block diagram of a partial structure of a mobile phone related to a computer device provided in an embodiment of the present application. Referring to fig. 9, the handset includes: radio Frequency (RF) circuit 910, memory 920, input unit 930, display unit 940, sensor 950, audio circuit 960, wireless fidelity (WiFi) module 970, processor 980, and power supply 990. Those skilled in the art will appreciate that the handset configuration shown in fig. 9 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The RF circuit 910 may be used for receiving and transmitting signals during information transmission or communication, and may receive downlink information of a base station and then process the downlink information to the processor 980; the uplink data may also be transmitted to the base station. Typically, the RF circuitry includes, but is not limited to, an antenna, at least one Amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuit 910 may also communicate with networks and other devices via wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to Global System for mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE)), e-mail, Short Messaging Service (SMS), and the like.
The memory 920 may be used to store software programs and modules, and the processor 980 may execute various functional applications and data processing of the mobile phone by operating the software programs and modules stored in the memory 920. The memory 920 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function (such as an application program for a sound playing function, an application program for an image playing function, and the like), and the like; the data storage area may store data (such as audio data, an address book, etc.) created according to the use of the mobile phone, and the like. Further, the memory 920 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 930 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone 900. Specifically, the input unit 930 may include a touch panel 931 and other input devices 932. The touch panel 931, which may also be referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 931 (e.g., a user operating the touch panel 931 or near the touch panel 931 by using a finger, a stylus, or any other suitable object or accessory), and drive the corresponding connection device according to a preset program. In one embodiment, the touch panel 931 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 980, and can receive and execute commands sent by the processor 980. In addition, the touch panel 931 may be implemented by various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The input unit 930 may include other input devices 932 in addition to the touch panel 931. In particular, other input devices 932 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), and the like.
The display unit 940 may be used to display information input by the user or information provided to the user and various menus of the mobile phone. The display unit 940 may include a display panel 941. In one embodiment, the Display panel 941 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. In one embodiment, the touch panel 931 may overlay the display panel 941, and when the touch panel 931 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 980 to determine the type of touch event, and then the processor 980 provides a corresponding visual output on the display panel 941 according to the type of touch event. Although in fig. 9, the touch panel 931 and the display panel 941 are two independent components to implement the input and output functions of the mobile phone, in some embodiments, the touch panel 931 and the display panel 941 may be integrated to implement the input and output functions of the mobile phone.
Cell phone 900 may also include at least one sensor 950, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display panel 941 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 941 and/or backlight when the mobile phone is moved to the ear. The motion sensor can comprise an acceleration sensor, the acceleration sensor can detect the magnitude of acceleration in each direction, the magnitude and the direction of gravity can be detected when the mobile phone is static, and the motion sensor can be used for identifying the application of the gesture of the mobile phone (such as horizontal and vertical screen switching), the vibration identification related functions (such as pedometer and knocking) and the like; the mobile phone may be provided with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor.
Audio circuitry 960, speaker 961 and microphone 962 may provide an audio interface between a user and a cell phone. The audio circuit 960 may transmit the electrical signal converted from the received audio data to the speaker 961, and convert the electrical signal into a sound signal for output by the speaker 961; on the other hand, the microphone 962 converts the collected sound signal into an electrical signal, converts the electrical signal into audio data after being received by the audio circuit 960, and then outputs the audio data to the processor 980 for processing, and then the audio data can be transmitted to another mobile phone through the RF circuit 910, or the audio data can be output to the memory 920 for subsequent processing.
WiFi belongs to short-distance wireless transmission technology, and the mobile phone can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 970, and provides wireless broadband Internet access for the user. Although fig. 9 shows WiFi module 970, it is to be understood that it does not belong to the essential components of cell phone 900 and may be omitted as desired.
The processor 980 is a control center of the mobile phone, connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 920 and calling data stored in the memory 920, thereby integrally monitoring the mobile phone. In one embodiment, processor 980 may include one or more processing units. In one embodiment, the processor 980 may integrate an application processor and a modem, wherein the application processor primarily handles operating systems, user interfaces, applications, and the like; the modem handles primarily wireless communications. It is to be appreciated that the modem may not be integrated into the processor 980. For example, the processor 980 may integrate an application processor and a baseband processor, which may constitute a modem with other peripheral chips, etc. The handset 900 also includes a power supply 990 (e.g., a battery) for supplying power to various components, which may preferably be logically connected to the processor 980 via a power management system, such that the power management system may be used to manage charging, discharging, and power consumption.
In one embodiment, the cell phone 900 may also include a camera, a bluetooth module, and the like.
In the embodiment of the present application, when a processor included in the mobile phone executes a computer program stored on a memory, the traffic display method described in the above embodiments is implemented.
Any reference to memory, storage, database, or other medium used herein may include non-volatile and/or volatile memory. Suitable non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM), which acts as external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and bus dynamic RAM (RDRAM).
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method for traffic display, the method comprising:
receiving a flow display request;
responding to the flow display request, and generating a flow query instruction according to the flow display request, wherein the flow query instruction is used for querying the flow state of the virtual SIM card;
sending the flow query instruction to a virtual SIM card operating system, and calling a flow statistic interface in a service framework through the virtual SIM card operating system to obtain a flow query result;
displaying a flow state page according to the flow query result;
when the flow query result is updated, acquiring the updated flow query result and displaying an updated flow state page;
the step of calling a traffic statistic interface in the service framework through the virtual SIM card operating system to obtain a traffic query result comprises the following steps: and the virtual SIM card operating system receives a processing instruction from the virtual SIM card App, sends a message corresponding to the processing instruction to the Modem module through the virtual SIM card adapting layer, and instructs the Modem module to perform corresponding processing on the virtual SIM card basic data.
2. The traffic exposure method according to claim 1, wherein the invoking, by the virtual SIM card operating system, the traffic statistics interface in the service framework to obtain the traffic query result comprises:
calling a flow statistic interface through a virtual SIM card operating system to read flow data in the kernel flow statistic file;
and obtaining a flow query result returned after the virtual SIM card operating system caches the flow data, wherein the caching represents that the flow data are stored in a memory firstly, and the flow data in the memory are serialized and written into a serialized file after the total amount of the flow data in the memory reaches a preset limit value.
3. The traffic display method of claim 2, further comprising:
acquiring a flow query result corresponding to flow data divided according to different application identifiers in the kernel flow statistical file;
and displaying the flow states corresponding to different application identifications in a flow state page according to the flow query result.
4. The traffic display method according to claim 3, wherein the displaying the traffic states corresponding to the different application identifiers in the traffic state page includes:
and displaying the flow states corresponding to different application identifications in the page through at least one of a broken line statistical chart, a bar statistical chart and a fan statistical chart.
5. The traffic display method according to claim 1, wherein the displaying the updated traffic status page comprises:
and dynamically displaying the proportion of the used flow data in the total flow data according to the updated flow query result.
6. The traffic display method of claim 1, further comprising:
periodically calling a flow statistic interface in a service framework through a virtual SIM card operating system to update a flow query result and obtain an updated flow query result;
judging whether the used flow data of the virtual SIM card exceeds the total flow data in the virtual SIM card according to the flow query result;
if yes, showing the state page with the exhausted flow.
7. The flow display method according to claim 1, wherein the flow display request is triggered by at least one of a touch operation, a gesture operation, and an acoustic control operation.
8. A flow display apparatus, the apparatus comprising:
the request receiving module is used for receiving a flow display request;
the response module is used for responding to the flow display request and generating a flow query instruction according to the flow display request, wherein the flow query instruction is used for querying the flow state of the virtual SIM card;
the instruction sending module is used for sending the flow query instruction to the virtual SIM card operating system and calling a flow statistic interface in the service framework through the virtual SIM card operating system to obtain a flow query result; the virtual SIM card operating system receives a processing instruction from the virtual SIM card App, sends a message corresponding to the processing instruction to the Modem module through the virtual SIM card adapting layer, and instructs the Modem module to perform corresponding processing on the virtual SIM card basic data;
the display module is used for displaying a flow state page according to the flow query result; and the updating module is used for acquiring the updated flow query result and displaying the updated flow state page when the flow query result is updated.
9. A computer device comprising a memory and a processor, the memory having stored therein computer readable instructions which, when executed by the processor, cause the processor to carry out the steps of the traffic display method according to any one of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the traffic volume exhibition method according to any one of claims 1 to 7.
CN201710924220.7A 2017-09-30 2017-09-30 Flow display method and device, computer equipment and computer readable storage medium Expired - Fee Related CN107623612B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710924220.7A CN107623612B (en) 2017-09-30 2017-09-30 Flow display method and device, computer equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710924220.7A CN107623612B (en) 2017-09-30 2017-09-30 Flow display method and device, computer equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN107623612A CN107623612A (en) 2018-01-23
CN107623612B true CN107623612B (en) 2020-01-10

Family

ID=61090284

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710924220.7A Expired - Fee Related CN107623612B (en) 2017-09-30 2017-09-30 Flow display method and device, computer equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN107623612B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110245586A (en) * 2019-05-28 2019-09-17 贵州卓霖科技有限公司 A kind of data statistical approach based on gesture identification, system, medium and equipment
CN110635966B (en) * 2019-08-20 2022-09-09 华能四川能源开发有限公司 Visual display system, method, medium and electronic equipment for flow data
CN111654851B (en) * 2020-03-20 2023-07-25 北京小米移动软件有限公司 SIM card information display method, SIM card information display device and storage medium
CN116760708A (en) * 2023-06-26 2023-09-15 广州易尊网络科技股份有限公司 Device flow control method, system and storage medium based on WeChat applet

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102981940A (en) * 2011-09-02 2013-03-20 研祥智能科技股份有限公司 Detection system of Linux operating system state and detection method of Linux operation system state
CN104216806A (en) * 2014-07-24 2014-12-17 英方软件(上海)有限公司 Capture and transmission method for serialized operation logs of file system and system thereof
CN104486138A (en) * 2014-11-25 2015-04-01 北京奇虎科技有限公司 Flow monitoring method and device and monitoring server
CN106375978A (en) * 2015-07-20 2017-02-01 中兴通讯股份有限公司 Flow monitoring method and terminal
CN106855775A (en) * 2016-12-30 2017-06-16 深圳天珑无线科技有限公司 Using display methods and device using flow
CN107682833A (en) * 2017-09-30 2018-02-09 广东欧珀移动通信有限公司 Method, apparatus, mobile terminal and the storage medium that control flow uses

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108141724B (en) * 2015-05-08 2022-12-16 深圳市斯凯荣科技有限公司 Virtual subscriber identity module for mobile communication device
CN105338515B (en) * 2015-11-02 2020-08-25 联想(北京)有限公司 Data service transmission method and mobile communication equipment
CN106211132B (en) * 2016-07-05 2021-04-09 努比亚技术有限公司 Virtual SIM card identification method and terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102981940A (en) * 2011-09-02 2013-03-20 研祥智能科技股份有限公司 Detection system of Linux operating system state and detection method of Linux operation system state
CN104216806A (en) * 2014-07-24 2014-12-17 英方软件(上海)有限公司 Capture and transmission method for serialized operation logs of file system and system thereof
CN104486138A (en) * 2014-11-25 2015-04-01 北京奇虎科技有限公司 Flow monitoring method and device and monitoring server
CN106375978A (en) * 2015-07-20 2017-02-01 中兴通讯股份有限公司 Flow monitoring method and terminal
CN106855775A (en) * 2016-12-30 2017-06-16 深圳天珑无线科技有限公司 Using display methods and device using flow
CN107682833A (en) * 2017-09-30 2018-02-09 广东欧珀移动通信有限公司 Method, apparatus, mobile terminal and the storage medium that control flow uses

Also Published As

Publication number Publication date
CN107623612A (en) 2018-01-23

Similar Documents

Publication Publication Date Title
CN107484154B (en) Data switching method and device, terminal and computer readable storage medium
US10304461B2 (en) Remote electronic service requesting and processing method, server, and terminal
CN107682910B (en) Traffic resource sharing method and device, mobile terminal and storage medium
CN107623612B (en) Flow display method and device, computer equipment and computer readable storage medium
CN107820331A (en) Call method, device, computer equipment and readable storage medium storing program for executing
CN107770746B (en) Data processing method and device, computer equipment and computer readable storage medium
WO2018014745A1 (en) Network search method and device after roaming ends
CN107708084B (en) Data processing method and device, computer equipment and computer readable storage medium
CN107220132B (en) Method, equipment and storage medium for monitoring file creation information
CN108600516B (en) Data acquisition method, mobile terminal and computer readable storage medium
CN107484201B (en) Flow statistical method and device, terminal and computer readable storage medium
CN106326489B (en) Method and device for updating network resources
CN104965722A (en) Method and apparatus for displaying information
CN108509788B (en) Information sharing method and device, computer readable storage medium and terminal
CN103713943A (en) Native terminal operating system based application function realization method and device
US11109226B2 (en) Information process method, computer readable storage medium and computer device
CN107682832B (en) Data processing method and device, computer equipment and computer readable storage medium
CN107682552B (en) Information processing method, device, mobile terminal and computer readable storage medium
US9742901B2 (en) Method, apparatus and terminal device for obtaining call log
CN107743303B (en) Information processing method, device, mobile terminal and computer readable storage medium
CN107708092B (en) Flow information update method and device, terminal, computer readable storage medium
CN110430252B (en) Resource data processing method and device, equipment and readable storage medium
WO2019062381A1 (en) Information processing method, device and mobile terminal, and computer readable storage medium
CN112997507B (en) Audio system control method, device, terminal and computer readable storage medium
CN110032430A (en) Applied program processing method and device, electronic equipment, computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200110