Traffic statistical method and electronic equipment
By displaying mobile data usage information from other devices on a single electronic device, this technology solves the problem of having to check data usage on each device individually, enabling cross-device data usage statistics and improving the user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-02
- Publication Date
- 2026-04-07
AI Technical Summary
In existing mobile data usage statistics services, each electronic device can only track mobile data consumption on that device. Users need to check each device individually, which is cumbersome and results in a poor user experience.
This invention provides a data usage statistics method that allows users to view the mobile data usage of other electronic devices associated with the same phone number on one electronic device. The method displays relevant mobile data usage information through detection control operations, supports the acquisition of card identification and mobile data usage information, and enables cross-device data usage statistics.
It reduces user operations, improves user experience, allows users to view data usage of multiple devices on one device, and simplifies the query of data plan usage.
Smart Images

Figure CN121815202A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of smart terminal technology, and in particular to traffic statistics methods and electronic devices. Background Technology
[0002] In the "One Number, Multiple Devices" service, a user's Subscriber Identity Module (SIM) cards across multiple electronic devices can be associated with the same phone number. This allows multiple electronic devices to share a single phone number and data plan, enabling independent cellular mobile communication on each device. Simply put, multiple electronic devices use the same phone number; each device can use this number to make and receive calls, and each device can also access the mobile data service associated with that phone number.
[0003] However, existing mobile data usage statistics services can only track mobile data consumption on each electronic device. If a user wants to know the data usage of a specific phone number's data plan, they have to check the mobile data consumption data on each electronic device individually, which is cumbersome and results in a poor user experience. Summary of the Invention
[0004] This application provides a traffic statistics method and an electronic device that allows users to view the mobile data usage of other electronic devices associated with the same phone number on a single electronic device, reducing user operations and improving user experience.
[0005] Firstly, this application provides a data usage statistics method applied to a first electronic device. The first electronic device has a first SIM card associated with a first phone number. The method includes: displaying a first interface with a first control; the first control corresponding to a second SIM card associated with the first phone number; the second SIM card being installed in a second electronic device; detecting a selection operation on the first control and displaying a second interface showing mobile data usage information corresponding to the second SIM card. The SIM card can be a card-type SIM card or an embedded SIM card, etc. This method allows users to view the mobile data usage of a second electronic device associated with the same phone number on the first electronic device, reducing user operations and improving user experience.
[0006] In one possible implementation, the method further includes: displaying a second control on a second interface; detecting a selection operation on the second control and displaying a third interface, the third interface displaying mobile data traffic information of each application in the second electronic device, the mobile data traffic information corresponding to the application being used to record the mobile data traffic consumed by the application through the second SIM card.
[0007] In one possible implementation, the second interface displays mobile data traffic information for each application in the second electronic device, wherein the mobile data traffic information of the applications is used to record the mobile data traffic consumed by the applications through the second SIM card.
[0008] In one possible implementation, before displaying the first interface, the method further includes: obtaining the card identifier of the second SIM card; displaying the first interface includes: displaying the first interface according to the card identifier of the second SIM card, wherein the first control corresponds to the card identifier of the second SIM card. The card identifier can be IMSI or ICCID.
[0009] In one possible implementation, before displaying the second interface, the method further includes: obtaining mobile data traffic information corresponding to the second SIM card; displaying the second interface includes: displaying the second interface based on the mobile data traffic information corresponding to the second SIM card.
[0010] In one possible implementation, obtaining the card identifier of the second SIM card includes: obtaining the card identifier of the second SIM card from a first server, wherein the card identifier of the second SIM card is transmitted to the first server by a second electronic device; or, obtaining the card identifier of the second SIM card from a second electronic device; or, obtaining the card identifier of the second SIM card from a first application, wherein the first application is an application that activates the service of associating the second SIM card with the first phone number; or, obtaining information input by the user from a target interface to obtain the card identifier of the second SIM card.
[0011] In one possible implementation, obtaining the mobile data traffic information corresponding to the second SIM card includes: obtaining the mobile data traffic information corresponding to the second SIM card from a first server, wherein the mobile data traffic information corresponding to the second SIM card is transmitted from a second electronic device to the first server; or, obtaining the mobile data traffic information corresponding to the second SIM card from a second electronic device.
[0012] In one possible implementation, the method further includes: a third control displayed on a first interface; the third control corresponding to a third SIM card associated with a first phone number; the third SIM card being installed in a third electronic device; upon detecting a selection operation on the third control, a third interface is displayed, which displays mobile data usage information corresponding to the third SIM card.
[0013] In one possible implementation, the second SIM card is an eSIM card.
[0014] In a second aspect, embodiments of this application provide an electronic device, including: one or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory, and the one or more computer programs include instructions that, when executed by the device, cause the device to perform the method of any of the first aspects.
[0015] Thirdly, embodiments of this application provide a computer-readable storage medium storing a computer program that, when run on a computer, causes the computer to perform the method of any one of the first aspects.
[0016] Fourthly, this application provides a computer program that, when executed by a computer, performs the method of the first aspect.
[0017] In one possible design, the program in the fourth aspect can be stored wholly or partially on a storage medium packaged with the processor, or it can be stored wholly or partially on a memory not packaged with the processor. Attached Figure Description
[0018] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0019] Figure 1 This is a structural diagram of one embodiment of the electronic device of this application; Figure 2 This is a schematic diagram of the interface implementation of the one-number-multiple-terminals service activation process in this application; Figure 3A This is a schematic diagram illustrating the direct connection between two electronic devices according to an embodiment of this application; Figure 3B This is a schematic diagram illustrating the indirect connection between two electronic devices according to an embodiment of this application; Figure 3C This is a schematic diagram illustrating the indirect connection between smartwatches in embodiments of this application; Figure 3D This is an indirect schematic diagram of the relationship between a mobile phone and a smartwatch in an embodiment of this application; Figure 4A This is a schematic diagram of the interface for the traffic statistics method in this application; Figure 4B This is a flowchart of one embodiment of the traffic statistics method of this application; Figure 5 This is a flowchart of another embodiment of the traffic statistics method of this application; Figure 6 A diagram illustrating the data stored in the server specified in this application; Figure 7 A schematic diagram of the user interface for this application; Figure 8 This is a flowchart of yet another embodiment of the traffic statistics method of this application; Figure 9 This is a schematic diagram of the software structure of the electronic device of this application; Figure 10 This is a schematic diagram illustrating data interaction between modules of two electronic devices through direct connection in this application; Figure 11 This is a schematic diagram illustrating data interaction between modules of two electronic devices via indirect connection. Detailed Implementation
[0020] The terminology used in the implementation section of this application is for the purpose of explaining specific embodiments of this application only, and is not intended to limit this application.
[0021] First, the terms used in this application will be described illustratively and not restrictively.
[0022] Embedded SIM (eSIM): The concept of an eSIM card is to embed the functionality of a traditional SIM card directly into the device's chip, rather than adding it as a separate, removable component. Users no longer need to insert a physical SIM card. This approach will allow users greater flexibility in choosing carrier plans or switching carriers at any time without unlocking the device or purchasing a new one. The establishment of a universal eSIM standard in the future will save ordinary consumers and enterprise users more on mobile device usage costs, while also bringing greater convenience and security.
[0023] International Mobile Subscriber Identity (IMSI): An IMSI is a unique identifier used to distinguish different users across cellular networks. The mobile phone stores the IMSI in a 64-bit field and sends it to the network. The IMSI can be used to query user information in the Home Location Register (HLR) or Visitor Location Register (VLR). To avoid being identified and tracked by eavesdroppers, in most cases, communication between the mobile phone and the network uses a randomly generated Temporary Mobile Subscriber Identity (TMSI) instead of the IMSI. The IMSI is typically stored in the SIM card.
[0024] Mobile data traffic: "Mobile data traffic" refers to data traffic generated when accessing the internet or using related value-added data services through mobile communication technologies such as General Packet Radio Service (GPRS), Enhanced Data Rate for GSM Evolution (EDGE), Time Division-Synchronous Code Division Multiple Access (TD-SCDMA), High Speed Downlink Packet Access (HSDPA), Wideband Code Division Multiple Access (WCDMA), and Long Term Evolution (LTE). Mobile data traffic generally does not include traffic generated when accessing the internet through other means such as Wireless Local Area Network (WLAN) and Circuit Switched Data (CSD), nor does it include data traffic deducted from content-based value-added data services (such as MMS, address book management, full-song downloads, and news flashes), nor does it include data traffic generated by corporate clients and industry applications.
[0025] One number, multiple terminals service: In the "One Number, Multiple Devices" service, multiple electronic devices share a single phone number and data plan, enabling independent cellular mobile communication. Simply put, multiple electronic devices use the same number, and each device can use that number to make and receive calls, as well as access the associated data service. For example, if a user uses the same phone number to access the network on a mobile phone, smartwatch, and in-vehicle terminal, these devices share the phone number's data plan and data allowance, with identical out-of-plan charges. When a call is made to this user's phone number, all associated devices (mobile phone, smartwatch, and in-vehicle terminal) will simultaneously receive the call, and the user can answer it on any of these devices. Conversely, the user can also make calls using any of these devices. Whether calling or receiving, the same phone number is always displayed, eliminating the need for users to manage multiple phone numbers across different devices and providing significant convenience.
[0026] However, existing data usage statistics services can only track the mobile data consumption of each electronic device. If users want to know the usage of their data plan, they have to check the data consumption data of each electronic device individually, which is cumbersome and results in a poor user experience.
[0027] Therefore, this application proposes a traffic statistics method and an electronic device that can view the traffic usage of other electronic devices on one electronic device, reducing user operations and improving user experience.
[0028] The method provided in this application can be applied to electronic devices that have a built-in SIM card, such as mobile phones, in-vehicle devices, wearable devices such as smart glasses, smartwatches, etc. The SIM card can be a card-type SIM card (i.e., the traditional SIM card mentioned above), or an eSIM card, etc.
[0029] For example, Figure 1 A schematic diagram of the structure of electronic device 100 is shown. Electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, antenna 1, antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone jack 170D, a sensor module 180, buttons 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an accelerometer sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0030] It is understood that the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0031] Processor 110 may include one or more processing units, such as application processors (APs), modem processors, graphics processing units (GPUs), image signal processors (ISPs), controllers, video codecs, digital signal processors (DSPs), baseband processors, and / or neural network processing units (NPUs). These different processing units may be independent devices or integrated into one or more processors.
[0032] The controller can generate operation control signals based on the instruction opcode and timing signals to complete the control of instruction fetching and execution.
[0033] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0034] In some embodiments, the processor 110 may include one or more interfaces. Interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0035] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple I2C buses. The processor 110 can couple to the touch sensor 180K, charger, flash, camera 193, etc., through different I2C bus interfaces. For example, the processor 110 can couple to the touch sensor 180K through the I2C interface, enabling the processor 110 and the touch sensor 180K to communicate through the I2C bus interface, thereby realizing the touch function of the electronic device 100.
[0036] The I2S interface can be used for audio communication. In some embodiments, the processor 110 may include multiple I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 via the I2S interface to enable the function of answering phone calls through a Bluetooth headset.
[0037] The PCM interface can also be used for audio communication, sampling, quantizing, and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via the PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface, enabling the function of answering phone calls through a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
[0038] The UART interface is a universal serial data bus used for asynchronous communication. This bus can be a bidirectional communication bus. It converts the data to be transmitted between serial and parallel communication. In some embodiments, the UART interface is typically used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 via the UART interface to implement Bluetooth functionality. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 via the UART interface to enable music playback through Bluetooth headphones.
[0039] The MIPI interface can be used to connect the processor 110 to peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes a camera serial interface (CSI) and a display serial interface (DSI). In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to enable the electronic device 100 to capture images. The processor 110 and the display screen 194 communicate via the DSI interface to enable the electronic device 100 to display images.
[0040] The GPIO interface can be configured via software. It can be configured as a control signal or a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 to a camera 193, a display screen 194, a wireless communication module 160, an audio module 170, a sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.
[0041] USB port 130 is a USB standard compliant interface, specifically a Mini USB port, Micro USB port, USB Type-C port, etc. USB port 130 can be used to connect a charger to charge electronic device 100, and can also be used for data transfer between electronic device 100 and peripheral devices. It can also be used to connect headphones for audio playback. This interface can also be used to connect other electronic devices, such as AR devices.
[0042] It is understood that the interface connection relationships between the modules illustrated in the embodiments of the present invention are merely illustrative and do not constitute a structural limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may also employ different interface connection methods or combinations of multiple interface connection methods as described in the above embodiments.
[0043] The charging management module 140 receives charging input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 receives charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 receives wireless charging input via the wireless charging coil of the electronic device 100. While charging the battery 142, the charging management module 140 can also supply power to the electronic device via the power management module 141.
[0044] The power management module 141 connects the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, providing power to the processor 110, internal memory 121, display screen 194, camera 193, and wireless communication module 160, etc. The power management module 141 can also monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage current, impedance). In some other embodiments, the power management module 141 may also be located within the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may be located in the same device.
[0045] The wireless communication function of electronic device 100 can be realized through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor, etc.
[0046] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover one or more communication frequency bands. Different antennas can also be multiplexed to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in conjunction with tuning switches.
[0047] The mobile communication module 150 can provide solutions for wireless communication, including 2G / 3G / 4G / 5G, applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1. In some embodiments, at least some functional modules of the mobile communication module 150 may be housed in the processor 110. In some embodiments, at least some functional modules of the mobile communication module 150 and at least some modules of the processor 110 may be housed in the same device.
[0048] The modem processor may include a modulator and a demodulator. The modulator modulates the low-frequency baseband signal to be transmitted into a mid-to-high frequency signal. The demodulator demodulates the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After processing by the baseband processor, the low-frequency baseband signal is transmitted to the application processor. The application processor outputs sound signals through an audio device (not limited to speaker 170A, receiver 170B, etc.) or displays images or videos through the display screen 194. In some embodiments, the modem processor may be a separate device. In other embodiments, the modem processor may be independent of the processor 110 and may be housed in the same device as the mobile communication module 150 or other functional modules.
[0049] The wireless communication module 160 can provide solutions for wireless communication applications on the electronic device 100, including wireless local area networks (WLANs) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via antenna 2, performs frequency modulation and filtering of the electromagnetic wave signals, and sends the processed signal to processor 110. The wireless communication module 160 can also receive signals to be transmitted from processor 110, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.
[0050] In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, enabling electronic device 100 to communicate with networks and other devices via wireless communication technology. The wireless communication technology may include Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technologies, etc. The GNSS may include the Global Positioning System (GPS), the Global Navigation Satellite System (GLONASS), the BeiDou Navigation Satellite System (BDS), the Quasi-Zenith Satellite System (QZSS), and / or satellite-based augmentation systems (SBAS).
[0051] Electronic device 100 implements display functions through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.
[0052] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. The display panel may be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a miniature LED, a microLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, electronic device 100 may include one or N displays 194, where N is a positive integer greater than 1.
[0053] Electronic device 100 can perform shooting functions through ISP, camera 193, video codec, GPU, display 194 and application processor.
[0054] The ISP (Image Signal Processor) is used to process data fed back from the camera 193. For example, when taking a picture, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, and the camera's photosensitive element transmits the electrical signal to the ISP for processing, transforming it into an image visible to the naked eye. The ISP can also perform algorithmic optimization of image noise, brightness, and skin tone. The ISP can also optimize parameters such as exposure and color temperature of the shooting scene. In some embodiments, the ISP can be set in the camera 193.
[0055] Camera 193 is used to capture still images or videos. An object is projected onto a photosensitive element by generating an optical image through the lens. The photosensitive element can be a charge-coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, which is then passed to an ISP for conversion into a digital image signal. The ISP outputs the digital image signal to a DSP for processing. The DSP converts the digital image signal into image signals in standard RGB, YUV, or other formats. In some embodiments, the electronic device 100 may include one or N cameras 193, where N is a positive integer greater than 1.
[0056] Digital signal processors (DSPs) are used to process digital signals. Besides digital image signals, they can also process other digital signals. For example, when electronic device 100 selects a frequency, the DSP can perform Fourier transforms on the frequency energy.
[0057] Video codecs are used to compress or decompress digital video. Electronic device 100 may support one or more video codecs. Thus, electronic device 100 can play or record videos in various encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
[0058] An NPU (Neural Processing Unit) is a computational processor for neural networks (NNs). By borrowing the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it can rapidly process input information and continuously learn on its own. NPUs can enable intelligent cognitive applications in electronic devices, such as image recognition, facial recognition, speech recognition, and text understanding.
[0059] The external storage interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external storage interface 120 to perform data storage functions. For example, music, video, and other files can be saved on the external memory card.
[0060] Internal memory 121 can be used to store computer executable program code, which includes instructions. Internal memory 121 may include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as sound playback, image playback, etc.), etc. The data storage area may store data created during the use of electronic device 100 (such as audio data, phonebook, etc.). Furthermore, internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc. Processor 110 executes various functional applications and data processing of electronic device 100 by running instructions stored in internal memory 121 and / or instructions stored in memory located in the processor.
[0061] Electronic device 100 can implement audio functions, such as music playback and recording, through audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, and application processor.
[0062] The audio module 170 is used to convert digital audio information into analog audio signals for output, and also to convert analog audio input into digital audio signals. The audio module 170 can also be used for encoding and decoding audio signals. In some embodiments, the audio module 170 may be located in the processor 110, or some functional modules of the audio module 170 may be located in the processor 110.
[0063] The speaker 170A, also known as a "loudspeaker," is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music or make hands-free calls through the speaker 170A.
[0064] The receiver 170B, also known as the "earpiece," is used to convert audio electrical signals into sound signals. When the electronic device 100 answers a telephone call or voice message, the receiver 170B can be brought close to the ear to listen to the voice.
[0065] Microphone 170C, also known as a "microphone" or "voice transducer," is used to convert sound signals into electrical signals. When making a phone call or sending a voice message, the user can speak by bringing their mouth close to microphone 170C, inputting the sound signal into microphone 170C. Electronic device 100 may have at least one microphone 170C. In some embodiments, electronic device 100 may have two microphones 170C, which, in addition to collecting sound signals, can also perform noise reduction. In other embodiments, electronic device 100 may also have three, four, or more microphones 170C, which can collect sound signals, reduce noise, identify the sound source, and perform directional recording, etc.
[0066] The 170D headphone jack is used to connect wired headphones. The 170D headphone jack can be a USB 130 interface or a 3.5mm Open Mobile Terminal Platform (OMTP) standard interface, a CTIA (Cellular Telecommunications Industry Association of the USA) standard interface.
[0067] Pressure sensor 180A is used to sense pressure signals and can convert the pressure signals into electrical signals. In some embodiments, pressure sensor 180A may be disposed on display screen 194. Pressure sensor 180A There are many types of pressure sensors, such as impedance pressure sensors, inductive pressure sensors, and capacitive pressure sensors. A capacitive pressure sensor may consist of at least two parallel plates with conductive material. When force is applied to the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the pressure intensity based on the change in capacitance. When a touch operation is applied to the display screen 194, the electronic device 100 detects the intensity of the touch operation based on the pressure sensor 180A. The electronic device 100 can also calculate the touch position based on the detection signal from the pressure sensor 180A. In some embodiments, touch operations applied to the same touch position but with different touch operation intensities can correspond to different operation commands. For example, when a touch operation with an intensity less than a first pressure threshold is applied to the SMS application icon, a command to view an SMS is executed. When a touch operation with an intensity greater than or equal to the first pressure threshold is applied to the SMS application icon, a command to create a new SMS is executed.
[0068] The gyroscope sensor 180B can be used to determine the motion attitude of the electronic device 100. In some embodiments, the gyroscope sensor 180B can determine the angular velocity of the electronic device 100 about three axes (i.e., the x, y, and z axes). The gyroscope sensor 180B can be used for image stabilization. For example, when the shutter is pressed, the gyroscope sensor 180B detects the angle of the shake of the electronic device 100, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to counteract the shake of the electronic device 100 by moving in the opposite direction, thus achieving image stabilization. The gyroscope sensor 180B can also be used in navigation and motion-sensing game scenarios.
[0069] The barometric pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates altitude using the air pressure value measured by the barometric pressure sensor 180C to assist in positioning and navigation.
[0070] The magnetic sensor 180D includes a Hall sensor. The electronic device 100 can use the magnetic sensor 180D to detect the opening and closing of the flip cover. In some embodiments, when the electronic device 100 is a flip phone, the electronic device 100 can detect the opening and closing of the flip cover using the magnetic sensor 180D. Then, based on the detected opening and closing state of the cover or the flip cover, features such as automatic flip unlocking can be set.
[0071] The 180E accelerometer can detect the magnitude of acceleration of electronic device 100 in various directions (typically three axes). When electronic device 100 is stationary, it can detect the magnitude and direction of gravity. It can also be used to identify the posture of electronic devices and applied to applications such as screen orientation switching and pedometers.
[0072] A distance sensor 180F is used to measure distance. Electronic device 100 can measure distance via infrared or laser. In some embodiments, during a shooting scene, electronic device 100 can utilize the distance sensor 180F to measure distance for rapid focusing.
[0073] The proximity sensor 180G may include, for example, a light-emitting diode (LED) and a light detector, such as a photodiode. The LED may be an infrared LED. The electronic device 100 emits infrared light outward through the LED. The electronic device 100 uses the photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 can determine that there is no object near the electronic device 100. The electronic device 100 may use the proximity sensor 180G to detect when a user holds the electronic device 100 close to their ear for a call, so as to automatically turn off the screen to save power. The proximity sensor 180G can also be used in holster mode and pocket mode for automatic unlocking and locking of the screen.
[0074] The ambient light sensor 180L is used to sense the brightness of ambient light. The electronic device 100 can adaptively adjust the brightness of the display screen 194 based on the sensed ambient light brightness. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also work with the proximity sensor 180G to detect whether the electronic device 100 is in a pocket to prevent accidental touches.
[0075] The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can utilize the characteristics of the collected fingerprints to achieve fingerprint unlocking, accessing application locks, taking photos with fingerprints, answering calls with fingerprints, etc.
[0076] Temperature sensor 180J is used to detect temperature. In some embodiments, electronic device 100 uses the temperature detected by temperature sensor 180J to execute a temperature handling strategy. For example, when the temperature reported by temperature sensor 180J exceeds a threshold, electronic device 100 performs thermal protection by reducing the performance of a processor located near temperature sensor 180J to reduce power consumption. In other embodiments, when the temperature is below another threshold, electronic device 100 heats battery 142 to prevent abnormal shutdown of electronic device 100 due to low temperature. In still other embodiments, when the temperature is below yet another threshold, electronic device 100 boosts the output voltage of battery 142 to prevent abnormal shutdown due to low temperature.
[0077] Touch sensor 180K, also known as a "touch device," can be located on display screen 194. The touch sensor 180K and display screen 194 together form a touchscreen, also known as a "touchscreen." Touch sensor 180K detects touch operations applied to or near it. The touch sensor can transmit the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through display screen 194. In other embodiments, touch sensor 180K may also be located on the surface of electronic device 100, in a different position than display screen 194.
[0078] The bone conduction sensor 180M can acquire vibration signals. In some embodiments, the bone conduction sensor 180M can acquire vibration signals from the vibrating bone segments of the human vocal cords. The bone conduction sensor 180M can also contact the human pulse to receive blood pressure signals. In some embodiments, the bone conduction sensor 180M can also be incorporated into headphones to form bone conduction headphones. The audio module 170 can parse the voice signals from the vibrating bone segments of the vocal cords acquired by the bone conduction sensor 180M to realize voice functionality. The application processor can parse heart rate information from the blood pressure signals acquired by the bone conduction sensor 180M to realize heart rate detection functionality.
[0079] Buttons 190 include a power button, volume buttons, etc. Buttons 190 can be mechanical buttons or touch-sensitive buttons. Electronic device 100 can receive button input and generate key signal inputs related to user settings and function control of electronic device 100.
[0080] Motor 191 can generate vibration alerts. Motor 191 can be used for incoming call vibration alerts or for touch vibration feedback. For example, different vibration feedback effects can correspond to touch operations performed on different applications (such as taking photos, playing audio, etc.). Motor 191 can also correspond to different vibration feedback effects for touch operations performed on different areas of the display screen 194. Different application scenarios (such as time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also be customized.
[0081] Indicator 192 can be an indicator light, used to indicate charging status, power changes, or to indicate messages, missed calls, notifications, etc.
[0082] The SIM card interface 195 is used to connect a SIM card. The SIM card can be inserted into or removed from the SIM card interface 195 to make contact with and separate from the electronic device 100. The electronic device 100 can support one or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc. Multiple cards can be inserted into the same SIM card interface 195 simultaneously. The multiple cards can be of the same or different types. The SIM card interface 195 is also compatible with different types of SIM cards. The SIM card interface 195 is also compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to realize functions such as calls and data communication. In some embodiments, the electronic device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
[0083] The software system of Electronic Device 100 can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. Specifically, it can be an Android system, HarmonyOS, etc.
[0084] For ease of understanding, the following embodiments of this application will be described using the following methods: Figure 1 Taking the electronic device with the structure shown as an example, the method provided in the embodiments of this application will be specifically described in conjunction with the accompanying drawings and application scenarios.
[0085] First, we will illustrate the process of users activating the one-number-multiple-terminals service involved in the traffic statistics method of this application with an example.
[0086] Taking the example of a user activating the "One Number, Multiple Devices" service on both their mobile phone and smartwatch, the user can establish a connection between their mobile phone and smartwatch via NFC, Bluetooth, WiFi, or other methods.
[0087] The phone number associated with the SIM card of the mobile phone is assumed to be: 12345678900. It should be noted that the mobile phone may have two or more SIM cards, and in this application, the SIM card of the mobile phone can be any of the SIM cards in the mobile phone.
[0088] Users download and install application 1 on their mobile phones to activate the one-number-multiple-devices service. They then open, for example... Figure 2 The interface 210 shown displays a list of devices connected to the mobile phone, including "smartwatches". Users can select the "Activate eSIM Online" control for the smartwatch, which will then lead to, for example... Figure 2The interface 220 shown displays the smartwatch's device identifier, the smartwatch's eSIM card identifier, and the phone number to be associated, "12345678900". Optionally, the device identifier can be an IMEI; the eSIM card identifier can be an Integrated Circuit Card Identity (ICCID), an IMSI, or an Embedded Universal Integrated Circuit Card Identity (EUICC ID), etc.
[0089] It should be noted that the device identifier and card identifier mentioned above can be obtained by application 1 from the smartwatch via the mobile phone, or can be manually filled in by the user, etc., which is not limited here.
[0090] It should be noted that the phone number to be associated can be manually entered by the user; or, application 1 can obtain the phone number associated with the SIM card in the phone from application 2, which is used to manage the SIM card in the phone, and then automatically display it in interface 220; or, if the phone contains multiple SIM cards, a primary SIM card can be set among the multiple SIM cards, and application 1 can obtain the phone number associated with the primary SIM card from application 2 in the phone, and then automatically display it in interface 220.
[0091] When the user selects the "Confirm" control on interface 220, the mobile application 1 receives the user's selection operation on the "Confirm" control and sends a One Number Multiple Terminals Service Request message to the operator's server. The message may carry: the phone number 12345678900, the card identifier of the eSIM in the smartwatch (such as IMSI, ICCID, or EUICC ID); optionally, it may also carry: the device identifier of the smartwatch (such as IMEI).
[0092] Once the operator's server receives the aforementioned One Number Multiple Terminals Service request message, it completes the One Number Multiple Terminals Service activation process and sends a confirmation message to application 1 on the mobile phone. The mobile application 1 shows the user, for example Figure 2 The interface 230 shown in the image prompts the user that the "One Number, Multiple Terminals" service has been successfully processed.
[0093] The mobile phone application 1 can send a notification message to the smartwatch that the "One Number, Multiple Devices" service has been successfully processed.
[0094] It should be noted that the above only shows the process and interface related to traffic statistics in the embodiment of this application during the user's application for the One Number Multiple Devices service, and is not intended to limit the application process of the One Number Multiple Devices service. For example, the above interface may differ during the application process of the One Number Multiple Devices service, and the process may also include reading the service instructions, the user entering their name and ID number, the smartwatch downloading the eSim Profile to the eSIM card, and other possible processes, which will not be described in detail here.
[0095] In this embodiment of the application, for ease of description, if an electronic device’s eSIM card is associated with a phone number, it is also referred to as the electronic device being associated with that phone number. For example, if a mobile phone’s eSIM card is associated with the phone number 12345678900, it is also referred to as the mobile phone being associated with the phone number 12345678900.
[0096] The following describes a possible implementation method for data transmission between two electronic devices associated with the same phone number in the traffic statistics method of this application.
[0097] See Figure 3A Electronic devices 1 and 2, which share the same phone number, can establish a direct connection via NFC, Bluetooth, or WiFi to exchange data. For ease of description, the connection established between the two electronic devices in this embodiment is referred to as a direct connection.
[0098] See Figure 3B Electronic device 1 and electronic device 2 can each be connected to a data relay device, and data interaction between electronic device 1 and electronic device 2 can be achieved through the data relay device. This connection method can also be referred to as an indirect connection between two electronic devices through a data relay device. For ease of description, this connection is also referred to as an indirect connection in the embodiments of this application.
[0099] Optionally, the data relay device mentioned above is a server, such as a cloud server. Electronic devices can log in to the server using an account via a network connection and establish a connection with the server. If a user logs in to the server on two electronic devices using the same account, the server can forward data from one electronic device to the other based on that same account.
[0100] Optionally, the aforementioned data relay device is an electronic device associated with the same telephone number as the two aforementioned electronic devices. For example, see... Figure 3C As shown, the mobile phone, smartwatch 1, and smartwatch 2 are associated with the same phone number. Smartwatch 1 establishes a Bluetooth connection with the mobile phone, and smartwatch 2 establishes a Bluetooth connection with the mobile phone. Therefore, smartwatch 1 and smartwatch 2 can exchange data through the mobile phone.
[0101] It should be noted that when data is exchanged between two electronic devices, the aforementioned direct and indirect connections can coexist or be switched between each other. For example: See Figure 3D As shown, the phone and smartwatch can connect directly via Bluetooth. Simultaneously, the phone logs into the server using account 1 via a network connection, and the smartwatch also logs into the server using account 1 via a network connection. Therefore, the phone and smartwatch are indirectly connected through the server. Both direct and indirect connections exist between the phone and smartwatch, allowing data transmission through both methods. Alternatively, during data interaction, the connection can switch from direct to indirect, or vice versa.
[0102] The following describes the statistical information on the use of mobile data traffic in electronic devices in the traffic statistics method of this application.
[0103] As shown in Table 1 below, electronic devices can track information about the data transmitted by each application using different network interfaces during each time period. Table 1 includes fields such as "Time Period," "Network Port," "Application Identifier," and "Data Volume." The "Network Port" field records the data transmission method used by the application. Data transmission methods can include, but are not limited to, mobile data, WLAN, Bluetooth, etc. For example, in Table 1, port #1 represents mobile data using an eSIM card, port #2 represents WLAN, and port #3 represents Bluetooth. The "Application Identifier" field records the application's identifier. The "Data Volume" field records the amount of data transmitted.
[0104] For example, the first record indicates that between 1:00 and 2:00, application A sent 2.3M of data using mobile data.
[0105] Table 1 Electronic devices can retrieve the record corresponding to "Port #1" from Table 1 above to obtain the mobile data consumption information of each application. Based on the consumption information, they can calculate the total amount of mobile data consumed by the electronic device within a specified time period (e.g., a billing cycle), the total amount of mobile data consumed by each application within a specified time period (e.g., a billing cycle), and other information.
[0106] It should be noted that electronic devices can have multiple SIM cards. In this case, different SIM cards can be distinguished by different network port values. Similarly, electronic devices can obtain the mobile data consumption of each application through a certain SIM card by different network port values.
[0107] Figure 4AThis is a schematic diagram of the interface for the traffic statistics method in this application. Figure 4A Taking the "One Number, Multiple Devices" service as an example, where phone number 1 is associated with SIM cards from device 1 to device 3 (a total of 3 SIM cards), this explanation will be provided. Figure 4A The interface shown is an example of the interface displayed on device 1.
[0108] The traffic statistics method in this application embodiment can be executed by an application in an electronic device. For ease of description, the application in the electronic device used for mobile traffic statistics and display is referred to as a traffic management application. The traffic management application can be, for example, the "Settings" application in the electronic device.
[0109] See Figure 4A Interface 410 is an example diagram of a mobile data consumption query interface provided in a data management application. Interface 410 displays a list of SIM cards associated with the One Number, Multiple Devices service, for example... Figure 4A There are 3 SIM cards associated with the device: SIM card of device 1 to SIM card of device 3.
[0110] If a user selects the "View" control corresponding to a specific SIM card in the SIM card list, such as the "View" control 411 for the SIM card in device 2, the data management application can display a screen showing the mobile data consumption information of the SIM card in device 2. Figure 4A As shown in interface 420. The mobile data consumption information display interface of device 2 can be used to display the total amount of mobile data consumed by the SIM card of device 2, the total amount of mobile data consumed by device 2 every day, and other mobile data consumption information. For example, interface 420 displays a statistical chart of the mobile data consumed by device 2 every day for the past 7 days, and the total amount of mobile data consumed by device 2 is 403.90MB, etc.
[0111] Optionally, Figure 4A The interface 420 may also display controls for triggering a query of mobile data consumption by applications on device 2, such as the "View" control 421 in interface 420. When the user selects the "View" control 421, the data management application can display a screen showing the mobile data consumption information of applications on device 2. Figure 4A The interface 430 shows the total amount of mobile data consumed by the various applications installed on device 2 via SIM.
[0112] Optionally, instead of displaying the mobile data usage query control for applications on device 2 in interface 420, the mobile data usage consumed by each application via SIM shown in interface 430 can be directly displayed in interface 420, as shown in interface 440.
[0113] It should be noted that, Figure 4AThe mobile data consumption information displayed on the interface can be the mobile data consumption information for a billing cycle of a certain operator, which makes the display of the above consumption information more targeted and more helpful for users to understand the mobile data consumption in a billing cycle.
[0114] It should be noted that, Figure 4A The mobile data consumption information displayed in the interface may also include mobile data consumption information that is not counted according to the billing cycle, and this application does not limit this.
[0115] Figure 4B This is a flowchart illustrating one embodiment of the traffic statistics method of this application. It can be applied to a first electronic device, which has a first SIM card associated with a first phone number; for example... Figure 4B As shown, the method may include: Step 401: The first electronic device displays a first interface, which displays a first control; the first control corresponds to a second SIM card associated with the first phone number; the second SIM card is installed in the second electronic device.
[0116] The first interface can be the aforementioned mobile data consumption query interface, such as interface 410. The first control can be the "view" control corresponding to device 2 and device 3 in interface 410.
[0117] Step 402: The first electronic device detects the selection operation for the first control and displays the second interface, which displays the mobile data information corresponding to the second SIM card.
[0118] The second interface can be the aforementioned interface displaying the mobile data consumption information of the SIM card, such as interface 420.
[0119] Optionally, the second interface may also display a second control, in which case the method may further include step 403.
[0120] Step 403: The first electronic device detects the selection operation for the second control and displays a third interface, which displays the mobile data consumption information of each application in the second electronic device through the second SIM card.
[0121] The second control can be the aforementioned "view" control 421; the third interface can be the application's mobile data consumption information display interface, such as interface 430.
[0122] Optionally, the second interface may not include a second control; instead, it may directly display the mobile data usage information consumed by various applications in the second electronic device through the second SIM card.
[0123] Figure 4BThe traffic statistics method shown enables users to view the mobile data consumption of a second electronic device via the second SIM card on the first electronic device. Furthermore, it allows users to view the mobile data consumption of various applications on the second electronic device via the second SIM card, reducing user operations and improving user experience.
[0124] See Figure 5 This is a flowchart illustrating an embodiment of the data traffic statistics method of this application. The method assumes that a first electronic device has a first SIM card associated with a first phone number. The first electronic device may include only the first SIM card or multiple SIM cards, where the first SIM card is any one of the multiple SIM cards. The method uses the example of a user querying mobile data traffic consumption information for multiple SIM cards associated with the same phone number from the first electronic device. Figure 5 As shown, the method may include: Step 501: The first electronic device stores the card identifiers of multiple SIM cards associated with the first phone number.
[0125] The card identifier of the aforementioned SIM card can be the SIM card's IMSI or ICCID, etc.
[0126] Optionally, the first electronic device may also store the device identifier of the electronic device where the aforementioned multiple SIM cards are located, and the device identifier may be the IMEI of the electronic device.
[0127] For example, suppose the first phone number is associated with two SIM cards, namely the first SIM card and the second SIM card. The second SIM card is installed in a second electronic device. The card identifier of the first SIM card is IMSI001, and the card identifier of the second SIM card is IMSI002. Then the first electronic device can store the following information: The list of SIM cards associated with the first phone number: IMSI001, IMSI002.
[0128] If the first electronic device has a third SIM card in addition to the first SIM card, the third SIM card is associated with a second phone number, and the second phone number is associated with a third SIM card (assuming the card identifier is IMSI003) and a fourth SIM card (assuming the card identifier is IMSI004), and the fourth SIM card is located in the third electronic device, then the first electronic device can store the following information: The list of SIM cards associated with the first phone number: IMSI001, IMSI002; List of SIM cards associated with the second phone number: IMSI003, IMSI004.
[0129] In one possible implementation, the first electronic device can obtain the card identifier of the SIM card associated with the first phone number from a designated server.
[0130] Each electronic device associated with the same phone number can access a designated server and send its SIM card identifier and associated phone number to the server. Correspondingly, the designated server can store the identifiers of multiple SIM cards associated with a phone number. Thus, each electronic device associated with the same phone number can obtain the identifiers of other SIM cards from the designated server.
[0131] For example, SIM cards in devices 1 through 4 are associated with phone number A. Devices 1 through 4 can each access a designated server to send the SIM card identifier and the associated phone number A to the designated server. Similarly, SIM cards in devices 5 through 6 are associated with phone number B. Devices 5 and 6 can each access a designated server to send the SIM card identifier and the associated phone number B to the designated server. Correspondingly, the designated server stores, for example... Figure 6 The data shown: List of SIM cards associated with mobile number A: IMSI (1), IMSI (2), IMSI (3), IMSI (4); List of SIM cards associated with mobile number B: IMSI (5), IMSI (6).
[0132] Then, devices 1 to 4 can query the specified server for the list of SIM cards corresponding to mobile phone number A, and devices 5 and 6 can query the specified server for the list of SIM cards corresponding to mobile phone number B.
[0133] To ensure user privacy, electronic devices can access the designated server through an account. The SIM card list on this server will then correspond to the account. Only devices logged into the corresponding account can access the designated server and retrieve the SIM card list associated with that account. For example: Users log in to account 1 on devices 1 through 4 respectively. Devices 1 through 4 can access a designated server through this account and send the SIM card identifier and the mobile phone number A associated with the SIM card to the designated server. The designated server then stores the following correspondence: Phone A, [IMSI(1), IMSI(2), IMSI(3), IMSI(4)], Account 1; Therefore, only when a user logs in account 1 on a certain device can that device access the specified server through account 1 and query the eSIM card list [IMSI(1), IMSI(2), IMSI(3), IMSI(4)] corresponding to account 1 from the specified server.
[0134] In another possible implementation, the first electronic device can obtain the card identifier of the SIM card in another electronic device that is associated with the first phone number.
[0135] The first electronic device and the second electronic device can be directly connected via NFC, Bluetooth, WiFi, etc. If the first electronic device and the second electronic device determine that both devices are associated with the first phone number through this direct connection, then the card identifier of the SIM card associated with the first phone number in the first electronic device will be sent to the other electronic device.
[0136] For example, a mobile phone and a smartwatch can establish a connection via Bluetooth and exchange data through the Bluetooth connection. Once the mobile phone and the smartwatch determine that the other device is associated with a first phone number, the mobile phone can send the card identifier of the first SIM card associated with the first phone number to the smartwatch, and the smartwatch can send the card identifier of the SIM card associated with the first phone number to the mobile phone.
[0137] In a third possible implementation, if the first electronic device has an application installed for activating the One Number, Multiple Terminals service, such as application 1 in the previous example, then the first electronic device can obtain the card identifier of the SIM card associated with the first phone number from application 1. For example, in the previous example, application 1 can be installed on the mobile phone, and the data management application on the mobile phone can obtain the card identifiers of other SIM cards associated with the first phone number from application 1. The aforementioned other SIM cards refer to SIM cards other than the first SIM card among the SIM cards associated with the first phone number.
[0138] In a fourth possible implementation, the first electronic device can provide the user with, for example... Figure 7 The user settings interface 710 shown allows users to manually configure and modify the card identifiers of other SIM cards associated with the same phone number.
[0139] It should be noted that the timing of the first electronic device obtaining the card identifier of other SIM cards may include, but is not limited to: when the first electronic device activates the one-card-multiple-terminals service of the SIM card, or after the SIM card is inserted into the first electronic device, or when the SIM card in the first electronic device is replaced, etc.
[0140] It should be noted that if the association between a SIM card and a phone number on an electronic device is canceled or changed, it can also be synchronized to other electronic devices using the methods described in this step.
[0141] Step 502: The first electronic device stores the mobile data consumption information of the first SIM card.
[0142] The first electronic device may store, for example, the traffic statistics shown in Table 1 above, which includes mobile data consumption information of the first SIM card.
[0143] Mobile data consumption information may include, but is not limited to: mobile data consumed by the first electronic device through the first SIM card; mobile data consumed by various applications in the first electronic device through the first SIM card, etc.
[0144] Optionally, the aforementioned mobile data consumption information may be information on mobile data consumed within the current billing cycle.
[0145] Step 503: The first electronic device acquires and stores mobile data consumption information of other SIM cards associated with the first phone number.
[0146] In one possible implementation, the first electronic device can obtain mobile data consumption information of the other SIM cards from a designated server.
[0147] Each electronic device associated with the same phone number can access a designated server and send its own traffic statistics to the server; correspondingly, the designated server can store the traffic statistics of each electronic device. Thus, electronic devices associated with the same phone number can obtain the traffic statistics of other electronic devices from the designated server.
[0148] The designated server can store the traffic statistics of each electronic device separately, or it can merge the traffic statistics of multiple electronic devices associated with the same phone number to obtain traffic statistics as shown in Table 2 below, where device 1 to device 3 are associated with the same phone number.
[0149] Table 2 Then, the designated server can send the merged traffic statistics information, as shown in Table 2, to the corresponding device 1, device 2, and device 3.
[0150] It should be noted that, due to the high update frequency of traffic information in electronic devices, various electronic devices associated with the same phone number can periodically upload traffic statistics to a designated server to update the traffic statistics stored on the server; alternatively, they can periodically download traffic statistics from other electronic devices from the designated server. The data upload and download cycles can be the same or different. The specific values of the aforementioned cycles are not limited in this embodiment.
[0151] It should be noted that the above example uses an electronic device sending data usage statistics to a designated server. An electronic device can also send only the mobile data usage information of its SIM card to the designated server. Correspondingly, each electronic device can obtain the mobile data usage information of other electronic devices from the designated server. For details on the implementation, please refer to the preceding description, which will not be repeated here.
[0152] In another possible implementation, the first electronic device can obtain mobile data consumption information of other SIM cards from other electronic devices associated with the first phone number.
[0153] A direct connection can be established between the first electronic device and the second electronic device to exchange data, determine the SIM card associated with the other device and send the mobile data consumption information of the SIM card in this device to the other device, or send the data usage statistics information of this device to the other device.
[0154] Optionally, if the first electronic device obtains traffic statistics information from other electronic devices, it can perform statistical and merging processing on the traffic statistics information of its own device and the traffic statistics information of other electronic devices to obtain, for example, the merging processing result shown in Table 2 above. Similarly, the first electronic device can also perform statistical and merging processing on the mobile data consumption information of multiple SIM cards. The specific method can be found in the implementation of traffic statistics information statistical and merging processing, which will not be elaborated here.
[0155] In practice, the first electronic device can support both of the above possible implementation methods at the same time, so that the first electronic device can obtain the mobile data consumption information of other SIM cards in different scenarios.
[0156] Step 504: The first electronic device displays the traffic statistics information of other electronic devices.
[0157] This step can be implemented by referring to... Figure 4A The corresponding explanation is provided in the document.
[0158] When the first electronic device displays, for example, the mobile data consumption query interface shown in interface 410, the first electronic device can obtain the SIM card list associated with the first phone number stored in step 501, and display the mobile data consumption query interface according to the SIM card list. The query interface displays the description information of each SIM card recorded in the SIM card list, such as "SIM card of device 1" in the interface, and can also set a corresponding "view" control for each SIM card.
[0159] When the first electronic device displays the mobile data consumption information display interface of the SIM card, such as interface 420, it can obtain the mobile data consumption information of the SIM card from the information pre-stored in steps 502 and 503 according to the card identifier of the SIM card, and statistically obtain the consumption information required for the display interface, such as the mobile data consumed by the SIM card in the current billing cycle, the mobile data consumed every day in 7 days, etc., and display the corresponding statistical results on the mobile data consumption information display interface.
[0160] When the first electronic device displays an interface such as interface 430, it can also calculate the mobile data consumption of each application within a specified time period (e.g., the current billing cycle) based on the mobile data consumption information of the SIM card, and display it in the application's mobile data consumption information display interface.
[0161] Optionally, the first electronic device can also display data usage alerts to the user.
[0162] If the mobile data consumed by the first phone number, or the mobile data consumed by a device based on the first phone number, or the mobile data consumed by the first phone number within a certain time period, reaches a preset value, the user can be reminded through sound, vibration, interface display, etc., to prevent the user from exceeding the data limit.
[0163] Figure 5 The traffic statistics method shown enables users to view the mobile data consumption information of other SIM cards associated with the same phone number on a single electronic device. This allows users to view the mobile data usage of multiple SIM cards associated with the same phone number on one electronic device, reducing user operations and improving user experience.
[0164] Figure 8 This is a flowchart of one embodiment of the traffic statistics method of this application. In this embodiment, a first phone number is associated with the SIM card of a mobile phone and the eSIM card of a smartwatch. In this embodiment, the mobile phone and the smartwatch interact with each other through a direct connection. Figure 8 As shown, it includes: Step 801: The mobile phone establishes a connection with the smartwatch. The mobile phone obtains the device identifier IMEI001 of the smartwatch and the card identifier IMSI001 of the eSIM in the smartwatch.
[0165] Step 802: The first application on the phone detects the user's eSIM activation operation for the smartwatch, obtains the card identifier IMSI001 of the eSIM card in the smartwatch, obtains the first phone number associated with the eSIM card in the smartwatch, and executes the activation process corresponding to the eSIM activation operation based on the first phone number and the card identifier IMSI001 of the eSIM card in the smartwatch. This activation process can be referred to the aforementioned eSIM activation process description, and will not be repeated here.
[0166] Step 803: The first application on the mobile phone sends a first notification message to the traffic management application. The first notification message may include: the first phone number, the device identifier IMEI001, and the card identifier IMSI001.
[0167] At this time, the traffic management application can store information such as that shown in Table 3 below. Here, IMEI002 is the device identifier of the mobile phone, and IMSI002 is the card identifier of the SIM card in the mobile phone.
[0168] Table 3 Step 804: The mobile phone's data management application stores the correspondence between the first phone number and the device identifier IMEI001 and card identifier IMSI001.
[0169] Step 805: The phone's data management application sends a data usage request message to the smartwatch based on the device identifier IMEI001. The data usage request message may include the card identifier IMSI001. The data usage request message is used to request mobile data usage information of the SIM card indicated by the card identifier IMSI001.
[0170] Step 806: The smartwatch's data management application obtains the mobile data consumption information corresponding to the card identifier IMSI001, and sends the obtained mobile data message information to the phone's data management application.
[0171] Step 807: The mobile data consumption information corresponding to the memory card identifier IMSI001 in the mobile phone's data management application.
[0172] It should be noted that steps 805 to 807 above can be triggered according to a preset data update cycle, thereby enabling the mobile phone to store the latest mobile data consumption information of the eSIM card in the smartwatch. The specific value of the data update cycle is not limited in this embodiment.
[0173] Optionally, in step 806, the smartwatch's data usage management application can send data usage statistics from the smartwatch to the mobile phone, and the mobile phone's data usage management application can store the data usage statistics, or retrieve and store mobile data consumption information based on the card identifier IMSI001.
[0174] Step 808: The mobile data management application displays a mobile data consumption query interface based on the detected user operation. The interface can display the "View" control for the mobile phone's SIM card and the "View" control for the smartwatch's eSIM card.
[0175] For the implementation of the mobile data usage query interface, please refer to... Figure 4A The interface 410 is not described in detail here.
[0176] It should be noted that the "view control" for the mobile data consumption query interface corresponds to the card identifier IMSI002 of the mobile phone's SIM card, and the "view" control for the smartwatch's eSIM card corresponds to the card identifier IMSI001 of the smartwatch's eSIM card.
[0177] Step 809: The phone's data management application detects the selection operation of the "view" control for the eSIM card, obtains the mobile data consumption information corresponding to the card identifier IMSI001, and displays the mobile data display interface accordingly.
[0178] For the implementation of the mobile data usage display interface, please refer to... Figure 4A The interface 420 is not described in detail here.
[0179] Step 810: The mobile phone's data management application detects the viewing operation for the application on the smartwatch and generates a mobile data consumption information display interface for the application based on the mobile data consumption information corresponding to the card identifier IMSI001. The display interface shows the mobile data consumption information of each application on the smartwatch, such as the mobile data consumed by each application in the current billing cycle.
[0180] The implementation of the application's mobile data consumption information display interface can be referenced. Figure 4A The interface 430 is not described in detail here.
[0181] Figure 8 The method shown exemplifies data interaction between a mobile phone and a smartwatch via a direct connection. In another embodiment provided in this application, the mobile phone and smartwatch can interact via an indirect connection. Figure 8 The data interaction involved in this embodiment is related to... Figure 8 The main difference between the embodiments shown lies in the different connections used for data interaction; the specific implementation of this embodiment will not be described here.
[0182] Figure 9The diagram shown is a software structure block diagram of an electronic device according to an embodiment of this application. The layered architecture divides the software into several layers, each with a clear role and function. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: the application layer, the framework layer, the Android runtime and system libraries, and the kernel layer.
[0183] The application layer (App) can include a series of application packages. These application packages can include the aforementioned primary application, traffic management application, etc. Furthermore, the application layer can be divided into three modules: interface, logic, and data. These modules communicate with each other through software interfaces. Specifically, the interface module is used for information display and user interaction; the logic module is used for information processing; and the data module is used for data storage.
[0184] Specifically, such as Figure 9 As shown, the interface modules include: The UI module is used to display the interfaces described in the foregoing embodiments, such as the mobile data consumption query interface, the SIM card mobile data display interface, and the mobile data display interface of applications in the device.
[0185] The logic module includes: The One Number, Multiple Terminals Information Management Module is used to store information such as a list of SIM cards associated with phone numbers; The multi-terminal data usage management module stores mobile data consumption information of SIM cards associated with a first phone number. The SIM cards associated with the first phone number can include: SIM cards located in the device itself, and SIM cards located in other electronic devices outside the device.
[0186] The local traffic statistics module is used to count the traffic usage of this device and record the traffic statistics information.
[0187] The aforementioned UI module, multi-terminal information management module, multi-terminal traffic information management module, and local traffic statistics module can be modules within an application, such as a traffic management application.
[0188] The framework layer (FWK) provides application programming interfaces (APIs) and programming frameworks for applications in the application layer. The application framework layer includes predefined functions. For example... Figure 9 The communication protocol framework shown.
[0189] A system library can include multiple functional modules. For example... Figure 9 The data transmission module shown.
[0190] The kernel layer is the layer between hardware and software. The kernel layer can contain communication drivers, and so on.
[0191] In one possible implementation, a schematic diagram of data interaction between two electronic devices is shown below. Figure 10 As shown. Specifically, the one-number-multi-terminal information management modules of electronic devices 1 and 2 synchronize the card identifiers of SIM cards associated with the same phone number via a direct connection; the multi-terminal traffic information management modules of electronic devices 1 and 2 synchronize mobile data consumption information of SIM cards associated with the same phone number via a direct connection.
[0192] In another possible implementation, a schematic diagram of data interaction between two electronic devices is shown below. Figure 11 As shown. Specifically, the one-number-multi-terminal information management modules of electronic devices 1 and 2 are indirectly connected via an information relay device to synchronize the card identifiers of SIM cards associated with the same phone number; the multi-terminal traffic information management modules of electronic devices 1 and 2 are also indirectly connected via an information relay device to synchronize the mobile data consumption information of SIM cards associated with the same phone number.
[0193] It should be noted that the above Figures 1 to 9 The embodiment shown in this application takes setting a SIM card in an electronic device as an example. The SIM card can be a traditional card-type SIM card or an eSIM card. This embodiment does not limit the specific type of SIM card.
[0194] This application also provides an electronic device, the device including a storage medium and a central processing unit (CPU). The storage medium may be a non-volatile storage medium storing a computer-executable program. The CPU is connected to the non-volatile storage medium and executes the computer-executable program to implement this application. Figures 1-8 The method provided in the illustrated embodiment.
[0195] This application also provides a computer-readable storage medium storing a computer program that, when run on a computer, causes the computer to execute this application. Figures 1-8 The method provided in the illustrated embodiment.
[0196] This application also provides a computer program product, which includes a computer program that, when run on a computer, causes the computer to execute this application. Figures 1-8 The method provided in the illustrated embodiment.
[0197] In this application embodiment, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent the existence of A alone, A and B simultaneously, or B alone. A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one of the following" and similar expressions refer to any combination of these items, including any combination of singular or plural items. For example, at least one of a, b, and c can represent: a, b, c, a and b, a and c, b and c, or a and b and c, where a, b, and c can be single or multiple.
[0198] Those skilled in the art will recognize that the units and algorithm steps described in the embodiments disclosed herein can be implemented using electronic hardware, computer software, or a combination of electronic hardware and software. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0199] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0200] In the several embodiments provided in this application, any function, if implemented as a software functional unit and sold or used as an independent product, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, essentially, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0201] The above description is merely a specific embodiment of this application. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the protection scope of this application. The protection scope of this application should be determined by the protection scope of the claims.
Claims
1. A traffic statistics method, applied to a first electronic device, wherein the first electronic device is equipped with a first SIM card, and the first SIM card is associated with a first phone number, characterized in that, include: Obtain information about the second SIM card, which is associated with the first SIM card and is located in the second electronic device; Obtain the mobile data usage information corresponding to the second SIM card; The second interface is displayed, showing the mobile data usage information corresponding to the second SIM card.
2. The method according to claim 1, characterized in that, Also includes: The second interface displays a second control; Upon detecting a selection operation on the second control, a third interface is displayed. The third interface displays mobile data traffic information for each application in the second electronic device. The mobile data traffic information corresponding to the application is used to record the mobile data traffic consumed by the application through the second SIM card.
3. The method according to claim 1, characterized in that, Also includes: The second interface displays mobile data usage information for each application in the second electronic device. This mobile data usage information is used to record the mobile data usage consumed by the application through the second SIM card.
4. The method according to any one of claims 1 to 3, characterized in that, The method further includes: displaying the first interface. The first interface is displayed according to the card identifier of the second SIM card, and the first control corresponds to the second SIM card.
5. The method according to any one of claims 1 to 3, characterized in that, The fourth interface is displayed, which shows the mobile data usage information corresponding to the first SIM card and the mobile data usage information corresponding to the second SIM card.
6. The method according to claim 4, characterized in that, The step of obtaining the card identifier of the second SIM card includes: The card identifier of the second SIM card is obtained from the first server, and the card identifier of the second SIM card is transmitted from the second electronic device to the first server; or, Obtain the card identifier of the second SIM card from the second electronic device; or, Obtain the card identifier of the second SIM card from the first application, wherein the first application is the application that activates the service associated with the first phone number on the second SIM card; or... Obtain the user input information from the target interface to get the card identifier of the second SIM card.
7. The method according to claim 5, characterized in that, The step of obtaining the mobile data traffic information corresponding to the second SIM card includes: The mobile data usage information corresponding to the second SIM card is obtained from the first server, and the mobile data usage information corresponding to the second SIM card is transmitted from the second electronic device to the first server; or... Obtain mobile data usage information corresponding to the second SIM card from the second electronic device.
8. The method according to any one of claims 1 to 7, characterized in that, Also includes: The first interface displays a third control; the third control corresponds to a third SIM card associated with the first phone number; The third SIM card is installed in the third electronic device; Upon detecting a selection operation on the third control, a third interface is displayed, which shows the mobile data usage information corresponding to the third SIM card.
9. The method according to any one of claims 1 to 8, characterized in that, The second SIM card is an eSIM card.
10. An electronic device, characterized in that, include: One or more processors; Memory; And one or more computer programs, wherein the one or more computer programs are stored in the memory, the one or more computer programs including instructions that, when executed by the device, cause the device to perform the method of any one of claims 1 to 9.
11. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when run on a computer, causes the computer to perform the method described in any one of claims 1 to 9.