CN108200546B - Data reporting method and device, mobile terminal and computer readable medium - Google Patents

Data reporting method and device, mobile terminal and computer readable medium Download PDF

Info

Publication number
CN108200546B
CN108200546B CN201711447794.6A CN201711447794A CN108200546B CN 108200546 B CN108200546 B CN 108200546B CN 201711447794 A CN201711447794 A CN 201711447794A CN 108200546 B CN108200546 B CN 108200546B
Authority
CN
China
Prior art keywords
data
reported
network
target data
mobile terminal
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
CN201711447794.6A
Other languages
Chinese (zh)
Other versions
CN108200546A (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 CN201711447794.6A priority Critical patent/CN108200546B/en
Publication of CN108200546A publication Critical patent/CN108200546A/en
Application granted granted Critical
Publication of CN108200546B publication Critical patent/CN108200546B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/24Accounting or billing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/16Threshold monitoring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/10Flow control between communication endpoints

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the application discloses a data reporting method, a data reporting device, a mobile terminal and a computer readable medium, which belong to the technical field of information processing, and the method comprises the following steps: judging whether a network currently accessed by the mobile terminal belongs to a charging network; if the data type of the target data to be reported in the mobile terminal belongs to the data type, acquiring the data type of the target data to be reported in the mobile terminal; acquiring the upper flow limit of the target data to be reported according to the data type; and sending the target data to be reported to a server according to the upper limit of the flow. Different flow rates can be set for different data types to be on-line, flow control is carried out on the sending of the data to be reported of each data type, and the influence on the benefit of a user due to overlarge flow rate is avoided.

Description

Data reporting method and device, mobile terminal and computer readable medium
Technical Field
The present application relates to the field of information processing technologies, and in particular, to a data reporting method and apparatus, a mobile terminal, and a computer readable medium.
Background
At present, mobile terminals such as mobile phones and tablet computers are increasingly popularized, the functions of the mobile terminals are also increasingly powerful, people can make calls and send short messages by using the mobile terminals, can also watch webpages, send microblogs and the like by using the mobile terminals, a large amount of information related to users and data generated by the mobile terminals during operation can be stored in the mobile terminals, and the behaviors of the users and the operation conditions of the mobile terminals can be analyzed by collecting the data. However, in the existing data collection process, the flow consumption of the user is not considered, and the benefit of the user is seriously damaged.
Disclosure of Invention
The application provides a data reporting method, a data reporting device, a mobile terminal and a computer readable medium, so as to overcome the defects.
In a first aspect, an embodiment of the present application provides a data reporting method, including: judging whether a network currently accessed by the mobile terminal belongs to a charging network; if the data type of the target data to be reported in the mobile terminal belongs to the data type, acquiring the data type of the target data to be reported in the mobile terminal; acquiring the upper flow limit of the target data to be reported according to the data type; and sending the target data to be reported to a server according to the upper limit of the flow.
In a second aspect, an embodiment of the present application further provides a data reporting apparatus, including: the device comprises a judging unit, a data type acquiring unit, a configuring unit and a reporting unit. And the judging unit is used for judging whether the network currently accessed by the mobile terminal belongs to the charging network. And the data type acquisition unit is used for acquiring the data type of the target data to be reported in the mobile terminal if the data type belongs to the data type. And the configuration unit is used for acquiring the upper flow limit of the target data to be reported according to the data type. And the reporting unit is used for sending the target data to be reported to a server according to the upper limit of the flow.
In a third aspect, an embodiment of the present application further provides a mobile terminal, which includes a memory and a processor, where the memory is coupled with the processor. The memory stores instructions that, when executed by the processor, cause the processor to: judging whether a network currently accessed by the mobile terminal belongs to a charging network; if the data type of the target data to be reported in the mobile terminal belongs to the data type, acquiring the data type of the target data to be reported in the mobile terminal; acquiring the upper flow limit of the target data to be reported according to the data type; and sending the target data to be reported to a server according to the upper limit of the flow.
In a fourth aspect, the present application also provides a computer-readable medium having program code executable by a processor, where the program code causes the processor to execute the above method.
According to the data reporting method and device, the mobile terminal and the computer readable medium provided by the embodiment of the application, when the network to which the mobile terminal is currently accessed is judged to be the charging network, the data type of the target data to be reported is used for setting the flow upper limit of the target data to be reported, and the target data to be reported is sent to the server according to the flow upper limit. Therefore, different flow rates can be set for different data types to be on-line, flow control is carried out on the sending of the data to be reported of each data type, and the influence on the benefit of a user due to overlarge flow rate is avoided.
Additional features and advantages of embodiments of the present application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of embodiments of the present application. The objectives and other advantages of the embodiments of the application may be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 shows an application scenario diagram of a data reporting method and apparatus provided in the embodiment of the present application;
fig. 2 is a flowchart illustrating a method for reporting data according to an embodiment of the present application;
fig. 3 is a flowchart illustrating a method for reporting data according to another embodiment of the present application;
fig. 4 shows a block diagram of a data reporting apparatus according to an embodiment of the present application;
fig. 5 is a block diagram of a data reporting apparatus according to another embodiment of the present application;
fig. 6 shows a schematic structural diagram of a mobile terminal provided in an embodiment of the present application;
fig. 7 shows a block diagram of modules of a mobile terminal according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
Fig. 1 shows an application scenario diagram of the data reporting method and apparatus provided in the embodiment of the present application. As shown in fig. 1, a user terminal 1 and a server 2 are located in a wireless network or a wired network, and the user terminal 1 and the server 2 perform data interaction.
In the embodiment of the present application, the user terminal 1 may be a mobile terminal device, and may include, for example, a smart phone, a tablet computer, an e-book reader, a laptop portable computer, a vehicle-mounted computer, a wearable mobile terminal, and the like.
In some embodiments, the client is installed within the user terminal 1. Specifically, the client may be an application installed in the user terminal 1. The operation of the user aiming at the client and the operation data of the client can be reported to the server. Specifically, the client includes a plurality of service modules, each of which represents a certain function of the client, for example, a call service. Each business module comprises a plurality of events, and the events represent specific operation behaviors, such as sharing a picture, publishing a comment and the like. The data of the client can be reported to the server under the condition of meeting the conditions. It should be noted that the number of clients may be multiple.
The server 2 is provided with a storage space for storing data of the client, for managing, storing user data, and providing user services. The server 2 may be an individual server, or a server cluster, or a local server, or a cloud server.
When the user terminal reports data to the server, if the flow is not limited, the benefit of the user is damaged. Therefore, in order to overcome the above-mentioned drawback, please refer to fig. 2, which shows that the present embodiment provides a data reporting method, which is used for controlling data reporting traffic. Specifically, the method comprises the following steps: s201 to S204.
S201: and judging whether the network currently accessed by the mobile terminal belongs to the charging network.
The charging network is a network which charges according to the flow, for example, 30 yuan packet 2G flow per month, the conversion is that each flow of data amount corresponds to a charge, and after a certain charge is paid, the flow of some networks does not generate additional charge no matter how much flow is used, for example, WiFi, and the flow of WiFi in the month is unlimited when a certain charge is paid per month.
Specifically, the manner of determining whether the network currently accessed by the mobile terminal belongs to the charging network may be: acquiring an identifier of a network currently accessed by the mobile terminal; judging whether the identifier of the currently accessed network belongs to a preset network identifier or not; if yes, the network accessed by the mobile terminal currently is judged to belong to a charging network, and if not, the network accessed by the mobile terminal currently is judged to belong to a non-charging network.
The method for acquiring the identifier of the current access network may be to first determine whether there is a network connection currently, and if so, look up the identifier of the network displayed on a status bar of the system of the mobile terminal, where the status bar is a status bar for displaying the current mobile phone power, the network status, and the signal strength. Of course, the identity of the network currently accessed by the mobile terminal, for example, getaction vetenetwork Info (), may also be obtained through a function within the system of the mobile terminal.
The preset network identifier is an identifier of a network belonging to a charging network type, and may be set by a user, for example, in china, networks such as 2G, 3G, and 4G belong to a charging network, and WiFi belongs to a non-charging network, or, although the traffic is charging, the cost is not too high, the user may classify the identifier of the network as a non-charging network.
Of course, the setting may also be performed in conjunction with a specific network service corresponding to the SIM card of the mobile terminal, for example, a 4G network of telecommunications used by the user, and the user subscribes to a monthly subscription service, that is, the flow rate per month is not limited. The adding is performed manually by the user, and certainly, the mobile terminal may interact with a server of an operator to obtain the traffic service of the user of the SIM card of the mobile terminal, for example, the mobile terminal sends a traffic service obtaining request to the server of the operator, where the traffic service obtaining request includes a mobile phone number of the mobile terminal, then, the server of the operator sends the traffic service corresponding to the mobile phone number to the mobile terminal, the mobile terminal obtains the traffic service of the user of the SIM card of the mobile terminal, and then determines whether the mobile terminal corresponds to a service with unlimited traffic, if so, the identifier of the network corresponding to the operator is classified as a non-charging network type, and if not, the identifier of the network corresponding to the operator is classified as a charging network type.
And when the identifier of the currently accessed network is judged to belong to the preset network identifier, judging that the currently accessed network of the mobile terminal belongs to the charging network.
Further, consider that in different regions, the corresponding charging networks are different, e.g., in china, WiFi belongs to a non-charging network, and in india, WiFi belongs to a charging network for charging by flow. Therefore, before judging whether the identifier of the currently accessed network belongs to the preset network identifier, the area to which the currently accessed network belongs can be obtained; and searching a charging network identifier corresponding to the area of the currently accessed network according to the corresponding relation between the preset area and the charging network identifier, and taking the searched charging network identifier as the preset network identifier.
The method for acquiring the area to which the currently accessed network belongs may be to acquire a network address of the currently accessed network, and acquire the area to which the currently accessed network belongs according to the network address, specifically, when the mobile terminal accesses the network, or acquire a network address, such as an IP address, of the user accessing the network, and the network address of the currently accessed network of the mobile terminal can be acquired through some instructions or codes. For example, if the network to which the mobile terminal currently accesses is a mobile communication network, e.g., a 4G network, the network address of the current access network of the mobile terminal is acquired through getLocal IpAddress (). If the network currently accessed by the mobile terminal is a wireless local area network, such as Wi-Fi, the network address of the currently accessed network of the mobile terminal is acquired through intoip (ipAddress).
After the network address is obtained, the location information of the mobile terminal corresponding to the network address can be obtained according to the preset corresponding relationship between the network address and the location information. For example, if 103.21.176.0 is the IP address of china, the corresponding location information is china, and if 195.090.053.000 is the IP address of the united states, the corresponding location information of the mobile terminal is the united states.
The corresponding relationship between the preset area and the charging network identifier may be set by the user according to actual experience, and certainly, the setting of the charging network identifier may also consider whether a certain network of the user corresponds to a service with unlimited traffic, if so, the network identifier is classified as a non-charging network identifier, and if not, the network identifier is classified as a charging network identifier.
S202: and acquiring the data type of the target data to be reported in the mobile terminal.
And when judging that the network accessed by the mobile terminal currently belongs to the charging network, acquiring the data type of the target data to be reported in the mobile terminal. The data to be reported comprise different types of user behavior data and operation data, such as APP starting, APP installation, mobile terminal blocking and mobile terminal bright screen. As an implementation manner, a plurality of embedded points are set in an application program or a system of a mobile terminal, each embedded point represents an operation behavior or an operation state of a user for the application program, for example, the start of the application program is used as one embedded point, the user opens a certain interface of the application program as one embedded point, and when the behaviors occur, that is, the embedded points are triggered, corresponding data can be stored in a local storage space corresponding to the application program, and the corresponding data is stored locally as data to be reported of the application program.
It should be noted that the target data to be reported may be collected by a collection component and sent to the server, and specifically, the collection component includes an SDK component or a system collection component. Wherein the SDK component is installed in the application program, is bound with the application program and can be updated along with the update of the application program. The SDK component is used for providing an access interface for other application programs to access data of the application programs, and can also actively acquire the data of the application programs and send the data to other application programs or terminals. The System acquisition component is an acquisition tool carried by a System of the user terminal, and for example, the System acquisition tool can be a Data Collection System (DCS), and is generally updated according to the update of the System.
The data types can include abnormal types and non-abnormal types, and the abnormal data is generally data generated by abnormal conditions such as dead cycles or stuck-at of the application program, and the data of the behaviors is often large. And the non-abnormal data is data under normal operation of an application program or a system. In addition, the non-abnormal data may be further subdivided into a higher-frequency type and a lower-frequency type, where the higher-frequency type is an operation behavior corresponding to the data type that occurs frequently, and the data is relatively large, and conversely, the lower-frequency type is an operation behavior corresponding to the data type that occurs infrequently, and the data is small.
S203: and acquiring the upper flow limit of the target data to be reported according to the data type.
Different upper flow limits can be set for different data types, and in particular, can be set by a user according to actual conditions. In one embodiment, a table of correspondence between data types and upper flow limits is preset in the mobile terminal. The corresponding table is internally provided with a plurality of data types and flow upper limits corresponding to the data types. For example, the first upper limit corresponds to the abnormal type, the second upper limit corresponds to the type with higher frequency, and the third upper limit corresponds to the type with lower frequency.
Further, the correspondence table includes a plurality of data types and a traffic upper limit corresponding to each data type, and a sum of the traffic upper limits corresponding to all the data types is less than or equal to a preset traffic threshold. The preset flow threshold may be a value set by a user according to actual use, and represents a flow value that the user can bear, and the cost is too high if the preset flow threshold is exceeded. In addition, the preset flow threshold set for different networks is also different, and may be set according to the charging standard of the currently accessed charging network, for example, a preset consumption threshold is set, and then the corresponding preset flow threshold is obtained according to the charging standard of the currently accessed network. For example, if the preset consumption threshold is 100 yuan, the charging standard of the network a is 10 yuan/G, that is, 10 yuan per G traffic, the preset traffic threshold corresponding to the network a is 10G, and the charging standard of the network B is 20 yuan/G, that is, 20 yuan per G traffic, and the preset traffic threshold corresponding to the network a is 5G. The sum of the upper flow limits of all the data types in the corresponding table is not greater than a preset flow threshold value, so that the flow of the data reported on the whole cannot exceed the preset flow threshold value.
S204: and sending the target data to be reported to a server according to the upper limit of the flow.
When data to be reported by a target is sent, data flow is continuously increased along with the continuously sent data, and the sent data is controlled according to the upper limit of the flow, so that the data flow of the sent data does not exceed the upper limit of the flow. Specifically, the target data to be reported is sent to a server through the currently accessed network, and data traffic generated when the target data to be reported is sent is monitored; and when the data traffic is monitored to reach the traffic upper limit, stopping sending the unsent part of the target data to be reported to the server through the currently accessed network.
The method comprises the steps of sending target data to be reported to a server in a currently accessed network through a data sending interface, monitoring data flow of the data of the sending interface, and stopping sending unsent parts of the target data to be reported to the server through the currently accessed network when the sent data flow reaches the upper limit of the flow. In addition, when the mobile terminal switches the network, according to the switched network, the unsent part of the target data to be reported is sent to the server, specifically, if the switched network is still a charging network, the unsent part of the target data to be reported is sent to the server according to the upper limit of the flow corresponding to the network, that is, the unsent part of the target data to be reported and the data volume corresponding to the upper limit of the flow are sent to the server. And if the switched network belongs to a non-charging network, all unsent parts in the target data to be reported are sent to the server.
In addition, considering that the data size of the data types other than the abnormal type is generally small, and the traffic upper limit may not be set, therefore, the traffic upper limit may be set separately for the abnormal type data type, specifically, please refer to fig. 3, which shows that the data reporting method provided in the embodiment of the present application is used for controlling the data reporting traffic. Specifically, the method comprises the following steps: s301 to S305.
S301: and judging whether the network currently accessed by the mobile terminal belongs to the charging network.
S302: and acquiring the data type of the target data to be reported in the mobile terminal.
S303: and judging whether the data type is abnormal or not.
Among them, the explanation of the abnormal type can refer to the foregoing embodiments. Specifically, the manner of determining whether the data type is abnormal is as follows: acquiring the running state of an application program corresponding to the target data to be reported; judging whether the running state of the application program is in an abnormal state or not; and if the data type is in an abnormal state, judging whether the data type is abnormal or not. (ii) a And if not, judging whether the data type is a non-abnormal type.
The data record of the application program is arranged in the mobile terminal, the data record comprises the running state of the application program, the corresponding running data, the operation behavior data and other data, and the data to be reported by the target is a part of the data. The running state of the application program includes an abnormal state and a non-abnormal state, and the abnormal state is predefined, for example, a state that the running state is dead, stuck or dead cycle is defined as the abnormal state, so when the running state of the application program corresponding to the target data to be reported is the above state, it is determined that the running state of the application program is the abnormal state, and the target data to be reported is an abnormal type.
S304: and configuring an upper flow limit for the target data to be reported according to a preset flow threshold, wherein the upper flow limit is smaller than or equal to the preset flow threshold.
Wherein the upper flow limit is not greater than a preset flow threshold. It should be noted that, if the upper flow limit corresponding to each abnormal data type is recorded in the flow correspondence table, when the upper flow limit is configured for the target data to be reported according to a preset flow threshold, the upper flow limits corresponding to all the data types are obtained in the flow correspondence table, the sum of all the upper flow limits is obtained, then the difference value between the preset flow threshold and the sum of the upper flow limits is obtained, and the upper flow limit is configured for the target data to be reported according to the difference value, so that the upper flow limit is less than or equal to the difference value.
S305: and sending the target data to be reported to a server according to the upper limit of the flow.
It should be noted that, for the parts not described in detail in the above steps, reference may be made to the foregoing embodiments, and details are not described herein again.
Referring to fig. 4, a data reporting apparatus 400 for controlling data reporting traffic according to an embodiment of the present application is shown. Specifically, the apparatus includes: a judging unit 401, a data type obtaining unit 402, a configuring unit 403 and a reporting unit 404.
The determining unit 401 is configured to determine whether a network currently accessed by the mobile terminal belongs to a charging network.
A data type obtaining unit 402, configured to obtain a data type of the target data to be reported in the mobile terminal if the target data belongs to the data type.
A configuration unit 403, configured to obtain, according to the data type, an upper traffic limit of the target data to be reported.
A reporting unit 404, configured to send the target data to be reported to a server according to the traffic upper limit.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
Referring to fig. 5, a data reporting apparatus 500 for controlling data reporting traffic is provided in an embodiment of the present application. Specifically, the apparatus includes: a judging unit 501, a data type obtaining unit 502, a configuring unit 503 and a reporting unit 504.
The determining unit 501 is configured to determine whether a network currently accessed by the mobile terminal belongs to a charging network.
A data type obtaining unit 502, configured to obtain a data type of the target data to be reported in the mobile terminal if the target data belongs to the data type.
A configuration unit 503, configured to obtain, according to the data type, an upper traffic limit of the target data to be reported.
Specifically, the configuration unit 503 includes a type determination sub-unit 5031 and a traffic configuration sub-unit 5032.
A determining subunit 5031, configured to determine whether the data type is an abnormal type.
A traffic configuring subunit 5032, configured to configure, if the data type is an abnormal type, a traffic upper limit for the target data to be reported according to a preset traffic threshold, where the traffic upper limit is smaller than or equal to the preset traffic threshold.
A reporting unit 504, configured to send the target data to be reported to a server according to the traffic upper limit.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
Referring to fig. 6, based on the method and apparatus, the embodiment of the present application further provides a mobile terminal 100, which includes an electronic body 10, where the electronic body 10 includes a housing 12 and a main display 120 disposed on the housing 12. The housing 12 may be made of metal, such as steel or aluminum alloy. In this embodiment, the main display 120 generally includes a display panel 111, and may also include a circuit or the like for responding to a touch operation performed on the display panel 111. The Display panel 111 may be a Liquid Crystal Display (LCD) panel, and in some embodiments, the Display panel 111 is a touch screen 109.
Referring to fig. 7, in an actual application scenario, the mobile terminal 100 may be used as a smart phone terminal, in which case the electronic body 10 generally further includes one or more processors 102 (only one is shown in the figure), a memory 104, an RF (Radio Frequency) module 106, an audio circuit 110, a sensor 114, an input module 118, and a power module 122. It will be understood by those skilled in the art that the structure shown in fig. 7 is merely illustrative and is not intended to limit the structure of the electronic body 10. For example, the electronics body section 10 may also include more or fewer components than shown in FIG. 7, or have a different configuration than shown in FIG. 6.
Those skilled in the art will appreciate that all other components are peripheral devices with respect to the processor 102, and the processor 102 is coupled to the peripheral devices through a plurality of peripheral interfaces 124. The peripheral interface 124 may be implemented based on the following criteria: universal Asynchronous Receiver/Transmitter (UART), General Purpose Input/Output (GPIO), Serial Peripheral Interface (SPI), and Inter-Integrated Circuit (I2C), but the present invention is not limited to these standards. In some examples, the peripheral interface 124 may comprise only a bus; in other examples, the peripheral interface 124 may also include other elements, such as one or more controllers, for example, a display controller for interfacing with the display panel 111 or a memory controller for interfacing with a memory. These controllers may also be separate from the peripheral interface 124 and integrated within the processor 102 or a corresponding peripheral.
The memory 104 may be used to store software programs and modules, and the processor 102 executes various functional applications and data processing by executing the software programs and modules stored in the memory 104. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the electronic body portion 10 or the primary display 120 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The RF module 106 is configured to receive and transmit electromagnetic waves, and achieve interconversion between the electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices. The RF module 106 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. The RF module 106 may communicate with various networks such as the internet, an intranet, a wireless network, or with other devices via a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network. The Wireless network may use various Communication standards, protocols, and technologies, including, but not limited to, Global System for Mobile Communication (GSM), Enhanced Mobile Communication (Enhanced Data GSM Environment, EDGE), wideband Code division multiple Access (W-CDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (WiFi) (e.g., IEEE802.1 a, IEEE802.11 b, IEEE802.1 g, and/or IEEE802.11 n), Voice over internet protocol (VoIP), world wide mail Access (Microwave for Wireless communications, wimax), and any other suitable protocol for instant messaging, and may even include those protocols that have not yet been developed.
The audio circuitry 110, earpiece 101, sound jack 103, microphone 105 collectively provide an audio interface between a user and the electronic body portion 10 or the main display 120. Specifically, the audio circuit 110 receives sound data from the processor 102, converts the sound data into an electrical signal, and transmits the electrical signal to the earpiece 101. The earpiece 101 converts the electrical signal into sound waves that can be heard by the human ear. The audio circuitry 110 also receives electrical signals from the microphone 105, converts the electrical signals to sound data, and transmits the sound data to the processor 102 for further processing. Audio data may be retrieved from the memory 104 or through the RF module 106. In addition, audio data may also be stored in the memory 104 or transmitted through the RF module 106.
The sensor 114 is disposed in the electronic body portion 10 or the main display 120, examples of the sensor 114 include, but are not limited to: light sensors, operational sensors, pressure sensors, gravitational acceleration sensors, and other sensors.
Specifically, the light sensors may include a light sensor 114F, a pressure sensor 114G. Among them, the pressure sensor 114G may detect a pressure generated by pressing on the mobile terminal 100. That is, the pressure sensor 114G detects pressure generated by contact or pressing between the user and the mobile terminal, for example, contact or pressing between the user's ear and the mobile terminal. Accordingly, the pressure sensor 114G may be used to determine whether contact or pressing has occurred between the user and the mobile terminal 100, as well as the magnitude of the pressure.
Referring to fig. 6 again, in the embodiment shown in fig. 6, the light sensor 114F and the pressure sensor 114G are disposed adjacent to the display panel 111. The light sensor 114F may turn off the display output when an object is near the main display 120, for example, when the electronic body portion 10 moves to the ear.
As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in various directions (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used for applications (such as horizontal and vertical screen switching, related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping) and the like for recognizing the attitude of the mobile terminal 100. In addition, the electronic body 10 may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer and a thermometer, which are not described herein,
in this embodiment, the input module 118 may include the touch screen 109 disposed on the main display 120, and the touch screen 109 may collect touch operations of the user (for example, operations of the user on or near the touch screen 109 using any suitable object or accessory such as a finger, a stylus, etc.) and drive the corresponding connection device according to a preset program. Optionally, the touch screen 109 may include 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 detection device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 102, and can receive and execute commands sent by the processor 102. In addition, the touch detection function of the touch screen 109 may be implemented by various types, such as resistive, capacitive, infrared, and surface acoustic wave.
The main display 120 is used to display information input by a user, information provided to the user, and various graphic user interfaces of the electronic body section 10, which may be composed of graphics, text, icons, numbers, video, and any combination thereof, and in one example, the touch screen 109 may be provided on the display panel 111 so as to be integrated with the display panel 111.
The power module 122 is used to provide power supply to the processor 102 and other components. Specifically, the power module 122 may include a power management system, one or more power sources (e.g., batteries or ac power), a charging circuit, a power failure detection circuit, an inverter, a power status indicator light, and any other components associated with the generation, management, and distribution of power within the electronic body portion 10 or the primary display 120.
The mobile terminal 100 further comprises a locator 119, the locator 119 being configured to determine an actual location of the mobile terminal 100. In this embodiment, the locator 119 implements the positioning of the mobile terminal 100 by using a positioning service, which is understood to be a technology or a service for obtaining the position information (e.g., longitude and latitude coordinates) of the mobile terminal 100 by using a specific positioning technology and marking the position of the positioned object on an electronic map.
It should be understood that the mobile terminal 100 described above is not limited to a smartphone terminal, but it should refer to a computer device that can be used in mobility. Specifically, the mobile terminal 100 refers to a mobile computer device equipped with an intelligent operating system, and the mobile terminal 100 includes, but is not limited to, a smart phone, a smart watch, a tablet computer, and the like.
To sum up, according to the data reporting method, the data reporting device, the mobile terminal, and the computer readable medium provided in the embodiments of the present application, when it is determined that a network to which the mobile terminal is currently connected is a charging network, a traffic upper limit is set for target data to be reported according to a data type of the target data to be reported, and the target data to be reported is sent to a server according to the traffic upper limit. Therefore, different flow rates can be set for different data types to be on-line, flow control is carried out on the sending of the data to be reported of each data type, and the influence on the benefit of a user due to overlarge flow rate is avoided.
In the description herein, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present application, "plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and the scope of the preferred embodiments of the present application includes other implementations in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present application.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (mobile terminal) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments. In addition, functional units in the embodiments of the present application may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Although embodiments of the present application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present application, and that variations, modifications, substitutions and alterations may be made to the above embodiments by those of ordinary skill in the art within the scope of the present application.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not necessarily depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (8)

1. A data reporting method is characterized by comprising the following steps:
judging whether a network currently accessed by the mobile terminal belongs to a charging network;
if the data belong to the target data to be reported, acquiring target data to be reported in the mobile terminal;
acquiring the running state of an application program corresponding to the target data to be reported;
judging whether the running state of the application program is in an abnormal state or not;
if the target data to be reported is in an abnormal state, judging that the data type of the target data to be reported is abnormal; configuring an upper flow limit for the target data to be reported;
sending the target data to be reported to a server according to the upper limit of the flow;
and if the data type of the target data to be reported is non-abnormal, not configuring the flow upper limit for the target data to be reported, and sending the target data to be reported to a server, wherein the non-abnormal data is the data under the normal operation of the application program.
2. The method of claim 1, wherein the configuring the upper flow limit for the target data to be reported comprises:
and configuring an upper flow limit for the target data to be reported according to a preset flow threshold, wherein the upper flow limit is smaller than or equal to the preset flow threshold.
3. The method according to claim 1 or 2, wherein the determining whether the network currently accessed by the mobile terminal belongs to a charging network comprises:
acquiring an identifier of a network currently accessed by the mobile terminal;
judging whether the identifier of the currently accessed network belongs to a preset network identifier or not;
if so, judging that the network currently accessed by the mobile terminal belongs to the charging network.
4. The method of claim 3, wherein before determining whether the identifier of the currently accessed network belongs to a preset network identifier, the method further comprises:
acquiring the region of the currently accessed network;
and searching a charging network identifier corresponding to the area of the currently accessed network according to the corresponding relation between the preset area and the charging network identifier, and taking the searched charging network identifier as the preset network identifier.
5. The method of claim 1, wherein sending the target data to be reported to a server according to the traffic upper limit comprises:
sending the target data to be reported to a server through the currently accessed network, and monitoring data traffic generated when the target data to be reported is sent;
and when the data traffic is monitored to reach the traffic upper limit, stopping sending the unsent part of the target data to be reported to the server through the currently accessed network.
6. A data reporting apparatus, comprising:
the judging unit is used for judging whether the network currently accessed by the mobile terminal belongs to a charging network;
a data type obtaining unit, configured to obtain target data to be reported in the mobile terminal, obtain an operating state of an application program corresponding to the target data to be reported, determine whether the operating state of the application program is in an abnormal state, and if the operating state is in the abnormal state, determine that the data type of the target data to be reported is an abnormal type;
a configuration unit, configured to configure an upper flow limit for the target data to be reported;
the reporting unit is used for sending the target data to be reported to a server according to the upper limit of the flow; and if the data type of the target data to be reported is non-abnormal, not configuring the flow upper limit for the target data to be reported, and sending the target data to be reported to a server, wherein the non-abnormal data is the data under the normal operation of the application program.
7. A mobile terminal comprising a memory and a processor, the memory coupled to the processor; the memory stores instructions that, when executed by the processor, cause the processor to perform the method of any of claims 1-5.
8. A computer-readable medium having program code executable by a processor, wherein the program code causes the processor to perform the method of any one of claims 1-5.
CN201711447794.6A 2017-12-27 2017-12-27 Data reporting method and device, mobile terminal and computer readable medium Expired - Fee Related CN108200546B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711447794.6A CN108200546B (en) 2017-12-27 2017-12-27 Data reporting method and device, mobile terminal and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711447794.6A CN108200546B (en) 2017-12-27 2017-12-27 Data reporting method and device, mobile terminal and computer readable medium

Publications (2)

Publication Number Publication Date
CN108200546A CN108200546A (en) 2018-06-22
CN108200546B true CN108200546B (en) 2020-11-10

Family

ID=62584679

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711447794.6A Expired - Fee Related CN108200546B (en) 2017-12-27 2017-12-27 Data reporting method and device, mobile terminal and computer readable medium

Country Status (1)

Country Link
CN (1) CN108200546B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110728588A (en) * 2018-07-17 2020-01-24 新智数字科技有限公司 Meter reading method, remote management platform and business system
CN109586845B (en) * 2018-11-08 2021-11-16 中国船舶重工集团公司第七一九研究所 Method and system for ocean vessel to shore based communication
CN111970132B (en) * 2020-06-29 2023-05-26 百度在线网络技术(北京)有限公司 Control method, device and server for OTA data packet issuing flow

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8560410B2 (en) * 2010-08-13 2013-10-15 T-Mobile Usa, Inc. Mapping a mobile device location to billing regions in internet protocol multimedia subsystems
CN105991415B (en) * 2015-02-12 2019-09-17 Oppo广东移动通信有限公司 A kind of information push method and mobile terminal
CN105554819A (en) * 2015-11-30 2016-05-04 东莞酷派软件技术有限公司 Data transmission method and device and mobile terminal
CN106060868A (en) * 2016-08-22 2016-10-26 安徽瑞宏信息科技有限公司 Network traffic monitoring method, device and terminal
CN107343091A (en) * 2017-06-27 2017-11-10 努比亚技术有限公司 Data reporting method and system

Also Published As

Publication number Publication date
CN108200546A (en) 2018-06-22

Similar Documents

Publication Publication Date Title
CN108235308B (en) Data reporting method and device, mobile terminal and computer readable medium
CN107391259B (en) Resource processing method and device, computer readable storage medium and mobile terminal
US20220155919A1 (en) Method for Displaying Different Application Shortcuts on Different Screens
CN108710456B (en) Application icon processing method and device and mobile terminal
CN108021642B (en) Application program recommendation method and device, mobile terminal and storage medium
CN108712561B (en) Authority management method, device, mobile terminal and storage medium
CN108990105B (en) Wireless communication transmission method, device, mobile terminal and computer readable storage medium
CN108762859B (en) Wallpaper display method and device, mobile terminal and storage medium
CN108446211B (en) Browser exception collection method and device, mobile terminal and storage medium
CN108777731B (en) Key configuration method and device, mobile terminal and storage medium
CN108235237B (en) Data reporting method and device, mobile terminal and computer readable medium
CN109120841B (en) Camera control method and device, mobile terminal and storage medium
CN107465841B (en) Fault information reporting method and terminal
CN108834132B (en) Data transmission method and equipment and related medium product
CN108200546B (en) Data reporting method and device, mobile terminal and computer readable medium
CN107295591B (en) Call method, device, computer storage medium and mobile terminal
CN109104521B (en) Method and device for correcting approaching state, mobile terminal and storage medium
CN107734618B (en) Application program closing method and device, storage medium and electronic equipment
CN110837343B (en) Snapshot processing method and device and terminal
CN110022405B (en) Radio frequency parameter adjusting method, device and storage medium
CN109688611B (en) Frequency band parameter configuration method, device, terminal and storage medium
CN108449787B (en) Connection control method and device and electronic equipment
CN107918517B (en) Screen rotation response method and device, mobile terminal and storage medium
CN110221736B (en) Icon processing method and device, mobile terminal and storage medium
CN107819938B (en) Corner mark configuration method and device, mobile terminal and server

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: 20201110