CN107623612A - Flow methods of exhibiting and device, computer equipment, computer-readable recording medium - Google Patents

Flow methods of exhibiting and device, computer equipment, computer-readable recording medium Download PDF

Info

Publication number
CN107623612A
CN107623612A CN201710924220.7A CN201710924220A CN107623612A CN 107623612 A CN107623612 A CN 107623612A CN 201710924220 A CN201710924220 A CN 201710924220A CN 107623612 A CN107623612 A CN 107623612A
Authority
CN
China
Prior art keywords
flow
sim card
virtual sim
query result
data
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.)
Granted
Application number
CN201710924220.7A
Other languages
Chinese (zh)
Other versions
CN107623612B (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

Landscapes

  • Telephonic Communication Services (AREA)
  • Telephone Function (AREA)

Abstract

The application is related to a kind of flow methods of exhibiting and device, computer equipment, computer-readable recording medium.Methods described includes:Receive flow displaying request;The flow displaying request is responded, request generation flow query statement is shown according to the flow, the flow query statement is used for the flow status for inquiring about virtual SIM card;The flow query statement is sent to virtual SIM card operating system, calls the traffic statistics interface in service framework to obtain flow Query Result by virtual SIM card operating system;The flow status page is shown according to the flow Query Result;When the flow Query Result updates, the flow Query Result after renewal is obtained, and shows the flow status page after renewal.It is capable of the data on flows information of accurate statistics virtual SIM card, allows users to understand in real time the flow service condition of virtual SIM card, improve Consumer's Experience.

Description

Flow methods of exhibiting and device, computer equipment, computer-readable recording medium
Technical field
The application is related to communication technical field, more particularly to a kind of flow methods of exhibiting and device, computer equipment, meter Calculation machine readable storage medium storing program for executing.
Background technology
Flow, refer to that Internet Service Provider is supplied to user terminal within a period of time using accessing the data of network Amount.With the development of internet, user gradually increases the usage amount of mobile phone flow, during flow use, Yong Hutong Often it should be understood that terminal uses the situation of flow.
When user to overseas after need to use flow function of surfing the Net, can be by way of flow package pre-purchase Function of surfing the Net is realized, more extra charges can be produced beyond flow package.Traditional user terminal is unable in accurate statistics set meal Flow status and show user, cause user can not understand the flow in the flow package pre-purchaseing in real time and use feelings Condition.
The content of the invention
The embodiment of the present application provides a kind of flow methods of exhibiting and device, computer equipment, computer-readable recording medium, It with the data on flows information of accurate statistics virtual SIM card and can show on the subscriber terminal, allow users in real time understand virtually The flow service condition of SIM card.
A kind of flow methods of exhibiting, methods described include:
Receive flow displaying request;
The flow displaying request is responded, request generation flow query statement is shown according to the flow, the flow is looked into Ask the flow status that instruction is used to inquire about virtual SIM card;
The flow query statement is sent to virtual SIM card operating system, is called and serviced by virtual SIM card operating system Traffic statistics interface in framework is to obtain flow Query Result;
The flow status page is shown according to the flow Query Result;
When the flow Query Result updates, the flow Query Result after renewal is obtained, and shows the flow after renewal Status page.
A kind of flow exhibiting device, it is characterised in that described device includes:
Request receiving module, for receiving flow displaying request;
Respond module, for responding the flow displaying request, show that request generation flow inquiry refers to according to the flow Order, the flow query statement are used for the flow status for inquiring about virtual SIM card;
Instruction sending module, for sending the flow query statement to virtual SIM card operating system, pass through virtual SIM Card operation system calls the traffic statistics interface in service framework to obtain flow Query Result;
Display module, for showing the flow status page according to the flow Query Result;
Update module, for when the flow Query Result updates, obtaining the flow Query Result after renewal, and show The flow status page after renewal.
A kind of computer equipment, including memory and processor, computer-readable instruction are stored in the memory, institute When stating instruction by the computing device so that the step of described flow methods of exhibiting is realized during the computing device.
A kind of computer-readable recording medium, is stored thereon with computer program, and the computer program is held by processor The step of described flow methods of exhibiting is realized during row.
Above-mentioned flow methods of exhibiting and device, computer equipment, computer-readable recording medium, shown by receiving flow Request, request generation flow query statement is shown according to the flow, sending the flow to virtual SIM card operating system inquires about Instruction, the traffic statistics interface in service framework is called to obtain flow Query Result by virtual SIM card operating system, according to The flow Query Result shows the flow status page, is capable of the data on flows information of accurate statistics virtual SIM card, and work as institute When stating the renewal of flow Query Result, the flow Query Result after renewal is obtained, the flow status page after displaying renewal, makes user The flow service condition of virtual SIM card can be understood in real time, improve Consumer's Experience.
Brief description of the drawings
, below will be to embodiment or existing in order to illustrate more clearly of the embodiment of the present application or technical scheme of the prior art There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of application, for those of ordinary skill in the art, on the premise of not paying creative work, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is the applied environment figure of flow methods of exhibiting in one embodiment;
Fig. 2 is the part Organization Chart of terminal in one embodiment;
Fig. 3 is the schematic flow sheet of flow methods of exhibiting in one embodiment;
Fig. 4 is the schematic flow sheet of flow methods of exhibiting in another embodiment;
Fig. 5 is the structured flowchart of flow exhibiting device in one embodiment;
Fig. 6 is the structured flowchart of flow exhibiting device in another embodiment;
Fig. 7 is the internal structure schematic diagram of terminal in one embodiment;
Fig. 8 is the internal structure schematic diagram of server in one embodiment;
Fig. 9 is the block diagram of the part-structure of the mobile phone related to the terminal of the embodiment of the present application offer.
Embodiment
In order that the object, technical solution and advantage of the application are more clearly understood, it is right below in conjunction with drawings and Examples The application is further elaborated.It should be appreciated that specific embodiment described herein is only to explain the application, and It is not used in restriction the application.
Fig. 1 is the applied environment figure of flow methods of exhibiting in one embodiment.As shown in figure 1, the application environment includes clothes Business device 110 and terminal 120.Server 110 is the server that VNO is used to provide network traffics to terminal 120, It can be Cloud Server.Server 110 can provide Virtual User identification module (Subscriber Identity to terminal 120 Module, SIM) card data and the service of network service is realized using the virtual SIM card.Virtual SIM card refers to no physics SIM card entity carrier, virtual SIM card.May be provided with terminal 110 virtual SIM card application program (Application, APP) 121, virtual SIM card operating system 122 and virtual SIM card adaptation layer 123.Virtual SIM card APP 121, virtual SIM The application processor that card operation system 122 and virtual SIM card adaptation layer 123 may be disposed in terminal 120 In (Application Processor, AP).The server 110 can be grasped by virtual SIM card APP 121 to virtual SIM card Make system 122 and send virtual SIM card data;Virtual SIM card operating system 122 can be realized by virtual SIM card adaptation layer 123 Radio-frequency communication control software with being arranged in BBP (Baseband Processor, BP) is communicated, to realize Network service is carried out using virtual SIM card.
Wherein, server 110 can be supplied to the relevant interfaces of virtual SIM card APP 121 of terminal 120, pass through the interface Realize the communication between terminal 120.The interface may include user and equipment control, set meal and order management, SIM resources plus The interfaces such as close transmission.Server 110 can be with REST ful application programming interfaces (Application Programming Interface, API) mode to virtual SIM card APP 121 provide relevant interface.That is realized is carried out using virtual SIM card The content of network service includes but is not limited to realize the interactive maintenance of virtual SIM card data, the dynamic renewal of state and flow Statistics and speed limit etc., for example the storage that can realize to virtual SIM card data is deleted and virtual SIM card enables closing etc..
Fig. 2 is the part Organization Chart of terminal in one embodiment, and the module included in the Organization Chart is and virtual SIM card phase The module of pass.As shown in Fig. 2 virtual SIM card operating system, virtual SIM card adaptation layer, void are may be provided with the application layer of terminal Intend SIM card APP and phone directory/information module.Ccf layer (Framework layers) may be provided with Telephony interface layers and Radio interface layer (Radio Interface Layer, RIL) java layers.Modem (Modem module) can be by including base One module of the compositions such as provided with processor, radio frequency and other peripheral chips, it is GSM/GPRS Modem modules.Wherein, Telephony interface layers are used to provide general interface, and virtual SIM card operating system passes through Telephony interface layers and Modem Module carries out Socket interactions, can be achieved to determine whether virtual SIM card, the groove position of virtual SIM card etc..Virtual SIM card Operating system is interacted by virtual SIM card adaptation layer with switching to the Modem module progress Socket of virtual SIM card passage, can Realize the activation to virtual SIM card, close, and the function such as network communicating function and traffic monitoring is carried out using virtual SIM card. It should be understood that the structure shown in Fig. 2, only the part of module related to application scheme, is not formed to the application The restriction for the computer equipment that scheme is applied thereon, specific computer equipment can include than shown in figure more or more Few module, either combine certain module or there is different module arrangements.For example double card pipe can be also set on ccf layer Module is managed, the double card management module can be communicated with Telephony interface layers.
In one embodiment, terminal can provide a user the management operation circle of virtual SIM card by virtual SIM card APP Face, and detect act on associative operation in the management operation interface when, produce corresponding virtual SIM card process instruction, and The process instruction is sent to virtual SIM card operating system.The system that the virtual SIM card operating system can simulate true SIM card Logic, realize agreement and file system for carrying out the related specifications needed for network service.Virtual SIM card operating system can The process instruction from virtual SIM card App is received, is sent and the process instruction pair to Modem module through virtual SIM card adaptation layer The message answered, instruction Modem module carries out corresponding processing to virtual SIM card basic data, and can receive Modem module and make Response message, common realize carry out network communicating function using virtual SIM card.Wherein, the agreement of above-mentioned related specifications can Including International Organization for standardization (International Organization for Standardization, ISO) 7816 with And 3 generation collaborative project (3rd Generation Partnership Project, 3GPP) on Universal Integrated Circuit Card (Universal Integrated Circuit Card, UICC) and Universal Subscriber Identity identification module (Universal Subscriber Identity Module, USIM) etc. specification agreement.
In one embodiment, weights corresponding to being set in advance to virtual SIM card adaptation layer so that can be by virtual SIM card adaptation layer is communicated with RIL layers.For example virtual SIM card adaptation layer can be set with phone process same levels Authority.
In one embodiment, the process instruction may include that the set meal purchase to respective virtual SIM card instructs, enables finger Make, flow query statement, failure instruction and out code etc..That is realized is carried out in network service using virtual SIM card Hold and include but is not limited to realize the interactive maintenance of virtual SIM card information, the dynamic renewal of state and the statistics and speed limit of flow Deng, for example, can realize to virtual SIM card information storage delete and virtual SIM card enable closing etc..
As shown in figure 3, in one embodiment, there is provided a kind of flow methods of exhibiting, the present embodiment are shown with the flow Method illustrates applied to the terminal 120 of the application environment in above-mentioned Fig. 1.The flow methods of exhibiting specifically includes following step Suddenly:
Step 302:Receive flow displaying request.
Specifically, application program is installed in terminal, the application rollouts flow status page can be passed through.Terminal receives User can pass through touch control operation, gesture operation to flow displaying request caused by application triggers, flow displaying request With the triggering of at least one of acoustic control operation.Alternatively, the detectable user of terminal passes through the triggering application journey such as button, touch-screen Inquiry button in sequence, triggering flow displaying request;Or terminal detects the gesture operation of user, identify that the gesture operation is Flow displaying instruction, triggering flow displaying request;Or terminal receives voice signal, identify that the voice signal shows for flow Instruction, triggering flow displaying request.
Step 304:The flow displaying request is responded, request generation flow query statement, institute are shown according to the flow State the flow status that flow query statement is used to inquire about virtual SIM card.
Wherein, the application program generation flow query statement in terminal, flow query statement are used to inquire about virtual SIM The flow status of card.After the displaying request of Client-initiated flow is received, application program is obtained by virtual SIM card operating system Take first time flow Query Result.
In one embodiment, terminal shows the flow status page by virtual SIM card APP, and user is by operating the void Intend SIM card APP and initiate flow displaying request, so as to occur the virtual SIM card flow of real-time update on virtual SIM card APP The page of state.
Step 306:The flow query statement is sent to virtual SIM card operating system, passes through virtual SIM card operating system The traffic statistics interface in service framework is called to obtain flow Query Result.
Wherein, the application program in terminal calls traffic statistics interface to read kernel stream by virtual SIM card operating system The data on flows in statistics file is measured, and obtains after the data on flows is carried out caching process by virtual SIM card operating system and returns The flow Query Result returned, the caching process represent that first the data on flows is stored in internal memory, and in the internal memory Data on flows total amount reach and the data on flows in internal memory serialized and write in serializing file after pre-set limit.
Specifically, the application program in terminal is to call to core network to assist by Socket when using network function Layer is discussed, the transmitting-receiving process of network data is completed by core protocol layer.When there is network access generation, this is counted by core protocol layer Individual network access be caused by which uid module the data volume that sends and receives how many, and these data recorded interior In depositing.When service framework layer needs to access these datas on flows, a proc file is mapped out simultaneously by core protocol layer Data on flows is write in this file and read for service framework layer.
In one embodiment, service framework includes flow read module, by flow read module NetworkManagementService provides interface, passes through jni by the NetworkStatsFactory in flow read module Call the data for reading kernel traffic statistics proc file system.
In one embodiment, caching and serialization module are also included in service framework, the caching and serialization module will First it is buffered in internal memory from the data on flows that kernel is read according to certain form, and protects cache contents when needing It is stored in serializing file or recovers data from serializing file to caching the inside.It is very long by one that traffic statistics are required to preservation Data on flows in the section time, to be got when needing inquiry.These information are stored in internal memory at first, and are set The upper limit of one flow total amount, has reached this upper limit, it is necessary to serialize the data on flows in internal memory and dump to finger In fixed file, accordingly even when after shutdown, then historical traffic data will not also be lost when starting shooting.
Step 308:The flow status page is shown according to the flow Query Result.
Specifically, the application program in terminal is shown after flow Query Result is obtained according to present flow rate Query Result The flow status page.
In one embodiment, during by the data on flows in virtual SIM card operating system inquiry kernel, obtain Flow Query Result corresponding to the data on flows divided is identified in kernel traffic statistics file according to different application, wherein, Each application program has a UID (User Identification, user's mark) in system, is answered according to UID inquiries are different With the data on flows of program.According to the flow Query Result with different UID, shown in displayed page corresponding to different UID Flow status.
In one embodiment, at least one of broken line graph, bar shaped statistical chart, fan-shaped statistical chart shape can be passed through Formula shows the flow status page corresponding to different UID.
Step 310:When the flow Query Result updates, the flow Query Result after renewal is obtained, and show The flow status page after renewal.
Wherein, the flow Query Result real-time update that the application program in terminal returns according to virtual SIM card operating system The flow status page.
In one embodiment, the application program in terminal according to the flow Query Result Dynamic Display after renewal Data on flows accounts for the ratio of total flow data, for example, the progress that displaying total flow data are nibbled, allows users to intuitively find out With the contrast of flow and remaining utilizable flow.Application program in terminal can also count the subitem flow shape of different application State, for example, showing that different application identifies by least one of broken line graph, bar shaped statistical chart, fan-shaped statistical chart form Corresponding flow status, allow users to intuitively contrast the flow accounting that different application uses.
Above-mentioned flow methods of exhibiting, flow displayed page is read according to the flow displaying request received, passes through virtual SIM Card operation system calls the traffic statistics interface in service framework to obtain flow Query Result, and according to the flow of real-time update The flow status page after Query Result displaying renewal.The flow methods of exhibiting is capable of the flow number of accurate statistics virtual SIM card It is believed that ceasing, and show the flow information of virtual SIM card on the subscriber terminal by virtual SIM card application program, allow users to The flow service condition of virtual SIM card is understood in real time, improves Consumer's Experience.
As shown in figure 4, in one embodiment, the flow methods of exhibiting is further comprising the steps of.
Step 402:Traffic statistics interface in service framework is invoked periodically with more by virtual SIM card operating system New flow Query Result, obtains the flow Query Result after renewal.
Wherein, virtual SIM card operating system automatically periodically inquires about the data on flows of virtual SIM card, and real-time update Flow Query Result returns to the application program in terminal.Meanwhile virtual SIM card operating system itself can also judge virtual SIM Whether the flow in card is used up, and virtual SIM card can be closed if you run out then virtual SIM card operating system.
In one embodiment, virtual SIM card operating system having used every one minute current virtual SIM card of inquiry Whether data on flows exceedes the available total flow data of set meal, if currently used data on flows exceeds the utilizable flow number of set meal According to when then close current virtual SIM card.It is understood that virtual SIM card operating system can also be according to other times interval Inquired about, such as 30 seconds, 2 minutes etc..
Step 404:Judge that whether being exceeded with data on flows for virtual SIM card is virtual according to the flow Query Result Total flow data in SIM card.If so, step 406 is performed, if it is not, performing step 402.
Step 406:It is shown as the status page that flow has been used up.
In one embodiment, the utilizable flow in virtual SIM card APP discoveries set meal can be sent after using up to server Expired request is used up, and currently having been uploaded with flow, set meal is closed if asking successfully, and current order status is changed to Use up;Set meal is actively closed if failure is asked, and queue is added expired request is used up, is sent when waiting network next time, Order status can be also changed to use up simultaneously.
In the present embodiment, judge that whether being exceeded with data on flows for virtual SIM card is empty according to the flow Query Result Intend the total flow data in SIM card, if so, being shown as the status page that flow has been used up.Allow users in real time understand virtually The set meal service condition of SIM card, improves Consumer's Experience.
As shown in figure 5, in one embodiment, there is provided a kind of flow exhibiting device, the device include request receiving module 501st, respond module 502, instruction sending module 503, display module 504, update module 505.
Request receiving module 501, for receiving flow displaying request.
Respond module 502, for responding the flow displaying request, request generation flow inquiry is shown according to the flow Instruction, the flow query statement are used for the flow status for inquiring about virtual SIM card.
Instruction sending module 503, for sending the flow query statement to virtual SIM card operating system, by virtual SIM card operating system calls the traffic statistics interface in service framework to obtain flow Query Result.
Display module 504, for showing the flow status page according to the flow Query Result.
Update module 505, for when the flow Query Result updates, obtaining the flow inquiry knot after renewal Fruit, and show the flow status page after renewal.
In one embodiment, instruction sending module 503 is additionally operable to obtain in the kernel traffic statistics file according to not Flow Query Result corresponding to the data on flows divided with application identities.
Display module 504 is additionally operable to, according to the flow Query Result, different application mark pair be shown in displayed page The flow status answered.
In one embodiment, display module 504 is additionally operable to by broken line graph, bar shaped statistical chart, fan-shaped statistical chart At least one of form displaying different application mark corresponding to the flow status page.
In one embodiment, display module 504 is additionally operable to the flow number according to flow Query Result displaying According to the ratio for accounting for total flow data.
In one embodiment, flow displaying request passes through at least one in touch control operation, gesture operation and acoustic control operation Kind triggering.
Above-mentioned flow exhibiting device, flow displayed page is read according to the flow displaying request received, passes through virtual SIM Card operation system calls the traffic statistics interface in service framework to be looked into obtain flow Query Result according to the flow of real-time update Ask the flow status page after result displaying renewal.The flow exhibiting device is capable of the data on flows of accurate statistics virtual SIM card Information, and the flow information of virtual SIM card is shown by virtual SIM card application program on the subscriber terminal, allow users to reality When understand virtual SIM card flow service condition, improve Consumer's Experience.
As shown in fig. 6, in one embodiment, there is provided another flow exhibiting device, the device include acquisition module 601st, judge module 602 and display module 603.
Acquisition module 601, for the traffic statistics being invoked periodically by virtual SIM card operating system in service framework Interface obtains the flow Query Result after renewal to update flow Query Result.
Judge module 602, for whether being surpassed with data on flows for virtual SIM card to be judged according to the flow Query Result The total flow data crossed in virtual SIM card.
Display module 603, after being in the judged result of judge module 602, show the status page that flow has been used up Face.
In the present embodiment, judge that whether being exceeded with data on flows for virtual SIM card is empty according to the flow Query Result Intend the total flow data in SIM card, if so, being shown as the status page that flow has been used up.Allow users in real time understand virtually The set meal service condition of SIM card, improves Consumer's Experience.
The division of modules is only used for for example, in other embodiments, will can flow in above-mentioned flow exhibiting device Amount exhibiting device is divided into different modules as required, to complete all or part of function of above-mentioned flow exhibiting device.
Fig. 7 is the internal structure schematic diagram of terminal (or electronic equipment etc.) in one embodiment.As shown in fig. 7, the terminal Including the processor, memory and network interface connected by system bus.Wherein, the processor, which is used to provide, calculates and controls Ability, support the operation of whole computer equipment.Memory is used for data storage, program etc., is stored on memory at least one Computer program, the computer program can be executed by processor, to realize the data processing method provided in the embodiment of the present application. Memory may include the non-volatile memory mediums such as magnetic disc, CD, read-only memory (Read-Only Memory, ROM), Or random access memory (Random-Access-Memory, RAM) etc..For example, in one embodiment, memory includes non- Volatile storage medium and built-in storage.Non-volatile memory medium be stored with operating system and and be stored with for realize with The data of the flow methods of exhibiting correlation suitable for computer equipment provided in the embodiment of the present application, for example can be stored with and count Calculate the interface data that virtual SIM card APP and SDK on machine equipment are communicated, and related virtual SIM card information etc..It is interior Memory provides height for the operating system in non-volatile memory medium and suitable for the data processing method of computer equipment The running environment of speed caching.Network interface can be Ethernet card or wireless network card etc., for entering with the computer equipment of outside Row communication.The computer equipment can be mobile phone, tablet personal computer or personal digital assistant or Wearable etc..
Fig. 8 is the internal structure schematic diagram of server (or high in the clouds etc.) in one embodiment.As shown in figure 8, the server Including processor, non-volatile memory medium, built-in storage and the network interface connected by system bus.Wherein, the processing Device is used to provide calculating and control ability, supports the operation of whole computer equipment.Memory is used for data storage, program etc.. Memory may include the non-volatile memory mediums such as magnetic disc, CD, read-only memory (Read-Only Memory, ROM), Or random access memory (Random-Access-Memory, RAM) etc..For example, in one embodiment, memory includes non- Volatile storage medium and built-in storage.Non-volatile memory medium is stored with operating system and is stored with for realizing and this The data of the flow methods of exhibiting correlation suitable for computer equipment provided in application embodiment, for example can be stored with and calculate The interface data that virtual SIM card APP and SDK on machine equipment are communicated, and related virtual SIM card information etc..Internal memory Reservoir provides at a high speed for the operating system in non-volatile memory medium and suitable for the data processing method of computer equipment The running environment of caching.Network interface can be Ethernet card or wireless network card etc., for being carried out with the computer equipment of outside Communication.Server can with independent server either multiple server groups into server cluster realize.This area skill Art personnel are appreciated that the structure shown in Fig. 8, only the block diagram of the part-structure related to application scheme, not structure The restriction for the server that paired application scheme is applied thereon, specific server can include it is more more than shown in figure or Less part, either combine some parts or arranged with different parts.
The embodiment of the present application additionally provides a kind of computer-readable recording medium.One or more can perform comprising computer The non-volatile computer readable storage medium storing program for executing of instruction, when the computer executable instructions are executed by one or more processors When so that the computing device flow methods of exhibiting described in each embodiment as described above.
The embodiment of the present application additionally provides a kind of computer program product.A kind of computer program product for including instruction, When run on a computer so that computer performs the flow methods of exhibiting described in the various embodiments described above.
The embodiment of the present application additionally provides a kind of computer equipment.As shown in figure 9, for convenience of description, illustrate only with The related part of the embodiment of the present application, particular technique details do not disclose, refer to the embodiment of the present application method part.The calculating Machine equipment can be include mobile phone, tablet personal computer, PDA (Personal Digital Assistant, personal digital assistant), Any terminal devices such as POS (Point of Sales, point-of-sale terminal), vehicle-mounted computer, Wearable, using computer equipment as Exemplified by mobile phone:
Fig. 9 is the block diagram of the part-structure of the mobile phone related to the computer equipment of the embodiment of the present application offer.Reference chart 9, mobile phone includes:Radio frequency (Radio Frequency, RF) circuit 910, memory 920, input block 930, display unit 940, Sensor 950, voicefrequency circuit 960, Wireless Fidelity (wireless fidelity, WiFi) module 970, processor 980 and The grade part of power supply 990.It will be understood by those skilled in the art that the handset structure shown in Fig. 9 does not form the restriction to mobile phone, can With including than illustrating more or less parts, either combining some parts or different parts arrangement.
Wherein, RF circuits 910 can be used for receive and send messages or communication process in, the reception and transmission of signal can be by base stations After downlink information receives, handled to processor 980;Up data can also be sent to base station.Generally, RF circuits include but Be not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier (Low Noise Amplifier, LNA), duplexer etc..In addition, RF circuits 910 can also be communicated by radio communication with network and other equipment.Above-mentioned channel radio Letter can use any communication standard or agreement, including but not limited to global system for mobile communications (Global System of Mobile communication, GSM), general packet radio service (General Packet Radio Service, GPRS), CDMA (Code Division Multiple Access, CDMA), WCDMA (Wideband Code Division Multiple Access, WCDMA), Long Term Evolution (Long Term Evolution, LTE)), Email, Short Message Service (Short Messaging Service, SMS) etc..
Memory 920 can be used for storage software program and module, and processor 980 is stored in memory 920 by operation Software program and module, so as to perform the various function application of mobile phone and data processing.Memory 920 can mainly include Program storage area and data storage area, wherein, program storage area can storage program area, the application journey needed at least one function Sequence (such as the application program of sound-playing function, application program of image player function etc.) etc.;Data storage area can store root Created data (such as voice data, address list etc.) etc. are used according to mobile phone.In addition, memory 920 can be included at a high speed Random access memory, can also include nonvolatile memory, a for example, at least disk memory, flush memory device or Other volatile solid-state parts.
Input block 930 can be used for the numeral or character information for receiving input, and produces and set with the user of mobile phone 900 And the key signals input that function control is relevant.Specifically, input block 930 may include contact panel 931 and other inputs Equipment 932.Contact panel 931, alternatively referred to as touch-screen, collect touch operation (such as user of the user on or near it Use the operation of any suitable object such as finger, stylus or annex on contact panel 931 or near contact panel 931), And corresponding attachment means are driven according to formula set in advance.In one embodiment, contact panel 931 may include to touch inspection Survey two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation The signal brought, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and will It is converted into contact coordinate, then gives processor 980, and the order sent of reception processing device 980 and can be performed.In addition, The polytypes such as resistance-type, condenser type, infrared ray and surface acoustic wave can be used to realize contact panel 931.Except touch surface Plate 931, input block 930 can also include other input equipments 932.Specifically, other input equipments 932 can be included but not The one or more being limited in physical keyboard, function key (such as volume control button, switch key etc.) etc..
Display unit 940 can be used for display by user input information or be supplied to user information and mobile phone it is various Menu.Display unit 940 may include display panel 941.In one embodiment, liquid crystal display (Liquid can be used Crystal Display, LCD), the form such as Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED) To configure display panel 941.In one embodiment, contact panel 931 can cover display panel 941, when contact panel 931 is examined After measuring the touch operation on or near it, processor 980 is sent to determine the type of touch event, is followed by subsequent processing device 980 provide corresponding visual output according to the type of touch event on display panel 941.Although in fig.9, contact panel 931 and display panel 941 are the parts independent as two to realize the input of mobile phone and input function, but in some implementations In example, contact panel 931 and display panel 941 can be integrated and realize input and the output function of mobile phone.
Mobile phone 900 may also include at least one sensor 950, such as optical sensor, motion sensor and other sensings Device.Specifically, optical sensor may include ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 941, and proximity transducer can close display panel when mobile phone is moved in one's ear 941 and/or backlight.Motion sensor may include acceleration transducer, can detect by acceleration transducer and adds in all directions The size of speed, size and the direction of gravity are can detect that when static, application (such as the horizontal/vertical screen available for identification mobile phone posture Switching), Vibration identification correlation function (such as pedometer, tap) etc.;In addition, mobile phone can also configure gyroscope, barometer, humidity Other sensors such as meter, thermometer, infrared ray sensor etc..
Voicefrequency circuit 960, loudspeaker 961 and microphone 962 can provide the COBBAIF between user and mobile phone.Audio-frequency electric Electric signal after the voice data received conversion can be transferred to loudspeaker 961, sound is converted to by loudspeaker 961 by road 960 Signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 962, is turned after being received by voicefrequency circuit 960 Voice data is changed to, then after voice data output processor 980 is handled, another mobile phone can be sent to through RF circuits 910, or Person exports voice data to memory 920 so as to subsequent treatment.
WiFi belongs to short range wireless transmission technology, and mobile phone can help user's transceiver electronicses postal by WiFi module 970 Part, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and accessed.Although Fig. 9 is shown WiFi module 970, but it is understood that, it is simultaneously not belonging to must be configured into for mobile phone 900, can omit as needed.
Processor 980 is the control centre of mobile phone, using various interfaces and the various pieces of connection whole mobile phone, is led to Cross operation or perform the software program and/or module being stored in memory 920, and call and be stored in memory 920 Data, the various functions and processing data of mobile phone are performed, so as to carry out integral monitoring to mobile phone.In one embodiment, handle Device 980 may include one or more processing units.In one embodiment, processor 980 can integrate application processor and modulation Demodulator, wherein, application processor mainly handles operating system, user interface and application program etc.;Modem is mainly located Manage radio communication.It is understood that above-mentioned modem can not also be integrated into processor 980.Such as the processor 980 can integrate application processor and BBP, BBP with and other peripheral chips etc. can form modem. Mobile phone 900 also includes the power supply 990 (such as battery) to all parts power supply, it is preferred that power supply can pass through power management system System is logically contiguous with processor 980, so as to realize the work(such as management charging, electric discharge and power managed by power-supply management system Energy.
In one embodiment, mobile phone 900 can also include camera, bluetooth module etc..
In the embodiment of the present application, when the computing device included by the mobile phone stores computer program on a memory Realize the flow methods of exhibiting described in the various embodiments described above.
Any reference to memory, storage, database or other media used in this application may include non-volatile And/or volatile memory.Suitable nonvolatile memory may include read-only storage (ROM), programming ROM (PROM), Electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include arbitrary access Memory (RAM), it is used as external cache.By way of illustration and not limitation, RAM is available in many forms, such as It is static RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM).
Embodiment described above only expresses the several embodiments of the application, and its description is more specific and detailed, but simultaneously Therefore the limitation to the application the scope of the claims can not be interpreted as.It should be pointed out that for one of ordinary skill in the art For, on the premise of the application design is not departed from, various modifications and improvements can be made, these belong to the guarantor of the application Protect scope.Therefore, the protection domain of the application patent should be determined by the appended claims.

Claims (10)

1. a kind of flow methods of exhibiting, methods described include:
Receive flow displaying request;
The flow displaying request is responded, request generation flow query statement is shown according to the flow, the flow inquiry refers to Make the flow status for inquiring about virtual SIM card;
The flow query statement is sent to virtual SIM card operating system, service framework is called by virtual SIM card operating system In traffic statistics interface to obtain flow Query Result;
The flow status page is shown according to the flow Query Result;
When the flow Query Result updates, the flow Query Result after renewal is obtained, and shows the flow status after renewal The page.
2. flow methods of exhibiting according to claim 1, it is characterised in that described to be adjusted by virtual SIM card operating system With the traffic statistics interface in service framework to obtain flow Query Result, including:
Traffic statistics interface is called to read the data on flows in kernel traffic statistics file by virtual SIM card operating system;
The flow Query Result that the data on flows return after caching process by virtual SIM card operating system is obtained, it is described Caching process represents that first the data on flows is stored in internal memory, and the data on flows total amount in the internal memory reaches default The data on flows in internal memory is serialized and write in serializing file after limit value.
3. flow methods of exhibiting according to claim 2, it is characterised in that methods described also includes:
Flow corresponding to obtaining the data on flows divided in the kernel traffic statistics file according to different application mark is looked into Ask result;
According to the flow Query Result, flow status corresponding to different application mark are shown in the flow status page.
4. flow methods of exhibiting according to claim 3, it is characterised in that described that difference is shown in the flow status page Flow status corresponding to application identities, including:
By showing different answer at least one of broken line graph, bar shaped statistical chart, fan-shaped statistical chart form displayed page The flow status corresponding to mark.
5. flow methods of exhibiting according to claim 1, it is characterised in that the flow status page after the displaying renewal Including:
The ratio of total flow data is accounted for according to the data on flows of flow Query Result Dynamic Display after the renewal.
6. flow methods of exhibiting according to claim 1, it is characterised in that methods described also includes:
The traffic statistics interface being invoked periodically by virtual SIM card operating system in service framework is tied with updating flow inquiry Fruit, obtain the flow Query Result after renewal;
The total stream whether exceeded with data on flows in virtual SIM card of virtual SIM card is judged according to the flow Query Result Measure data;
If so, it is shown as the status page that flow has been used up.
7. flow methods of exhibiting according to claim 1, it is characterised in that the flow displaying request is grasped by touch-control The triggering of at least one of work, gesture operation and acoustic control operation.
8. a kind of flow exhibiting device, it is characterised in that described device includes:
Request receiving module, for receiving flow displaying request;
Respond module, for responding the flow displaying request, request generation flow query statement, institute are shown according to the flow State the flow status that flow query statement is used to inquire about virtual SIM card;
Instruction sending module, for sending the flow query statement to virtual SIM card operating system, grasped by virtual SIM card Making system calls the traffic statistics interface in service framework to obtain flow Query Result;
Display module, for showing the flow status page according to the flow Query Result;
Update module, for when the flow Query Result updates, obtaining the flow Query Result after renewal, and show renewal The flow status page afterwards.
9. a kind of computer equipment, including memory and processor, computer-readable instruction is stored in the memory, it is described When instruction is by the computing device so that the stream as any one of claim 1 to 7 is realized during the computing device The step of measuring methods of exhibiting.
10. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that the computer program The step of flow methods of exhibiting as any one of claim 1 to 7 is realized when being executed by processor.
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 true CN107623612A (en) 2018-01-23
CN107623612B 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)

Cited By (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
CN110635966A (en) * 2019-08-20 2019-12-31 华能四川水电有限公司 Visual display system, method, medium and electronic equipment for flow data
CN111654851A (en) * 2020-03-20 2020-09-11 北京小米移动软件有限公司 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 (9)

* 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
US20160330784A1 (en) * 2015-05-08 2016-11-10 Simo Holdings Inc. Virtual subscriber identity module for mobile communication device
CN106211132A (en) * 2016-07-05 2016-12-07 努比亚技术有限公司 Virtual SIM card recognition methods and terminal
CN106375978A (en) * 2015-07-20 2017-02-01 中兴通讯股份有限公司 Flow monitoring method and terminal
US20170127270A1 (en) * 2015-11-02 2017-05-04 Lenovo (Beijing) Limited Device, method, and program product for establishing a data connection
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

Patent Citations (9)

* 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
US20160330784A1 (en) * 2015-05-08 2016-11-10 Simo Holdings Inc. Virtual subscriber identity module for mobile communication device
CN106375978A (en) * 2015-07-20 2017-02-01 中兴通讯股份有限公司 Flow monitoring method and terminal
US20170127270A1 (en) * 2015-11-02 2017-05-04 Lenovo (Beijing) Limited Device, method, and program product for establishing a data connection
CN106211132A (en) * 2016-07-05 2016-12-07 努比亚技术有限公司 Virtual SIM card recognition methods 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

Cited By (5)

* 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
CN110635966A (en) * 2019-08-20 2019-12-31 华能四川水电有限公司 Visual display system, method, medium and electronic equipment for flow data
CN111654851A (en) * 2020-03-20 2020-09-11 北京小米移动软件有限公司 SIM card information display method, SIM card information display device and storage medium
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

Also Published As

Publication number Publication date
CN107623612B (en) 2020-01-10

Similar Documents

Publication Publication Date Title
CN107734584A (en) The method and apparatus of network connection switching, computer equipment, readable storage medium storing program for executing
CN107820331A (en) Call method, device, computer equipment and readable storage medium storing program for executing
CN107484154A (en) Data switching method and apparatus, terminal, computer-readable recording medium
CN107708084B (en) Data processing method and device, computer equipment and computer readable storage medium
CN104166614B (en) The frame per second detection method and relevant apparatus of a kind of mobile device
WO2018014745A1 (en) Network search method and device after roaming ends
CN107770746B (en) Data processing method and device, computer equipment and computer readable storage medium
CN107707369A (en) The method and apparatus of flow order management, computer equipment, readable storage medium storing program for executing
CN107682910B (en) Traffic resource sharing method and device, mobile terminal and storage medium
CN107623612A (en) Flow methods of exhibiting and device, computer equipment, computer-readable recording medium
CN104901991B (en) Virtual resource transfer method, device and system
CN107277752B (en) Bluetooth connecting method, device, computer equipment and computer readable storage medium
CN107635220A (en) Network service processing method, device, storage medium and terminal
CN107682851A (en) Information processing method, device, mobile terminal and computer-readable recording medium
CN107690131A (en) Information processing method, device, mobile terminal and computer-readable recording medium
CN107734495A (en) Information processing method, device, storage medium and terminal
CN107682833A (en) Method, apparatus, mobile terminal and the storage medium that control flow uses
US11109226B2 (en) Information process method, computer readable storage medium and computer device
CN107391198A (en) Method for scheduling task and device, computer-readable recording medium, mobile terminal
CN107743305A (en) Load method and apparatus, the computer equipment of configuration information
CN107484201A (en) Flow statistical method and device, terminal, computer-readable recording medium
CN107708092B (en) Flow information update method and device, terminal, computer readable storage medium
CN107708107A (en) Network service processing method, device, storage medium and terminal
CN107682832A (en) Data processing method and device, computer equipment, computer-readable recording medium
CN107743080B (en) Flow statistical method and device, computer 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