Traffic statistics method and electronic device
By displaying the SIM card identifiers and mobile data usage information of other devices on a single electronic device, the problem of having to check data usage on each device individually in existing technologies is solved, thus simplifying operations and improving the user experience.
Patent Information
- Application Number
- CN202110882120.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-02
- Publication Date
- 2026-01-23
- Estimated Expiration
- 2041-08-02
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.
A method for traffic statistics is provided that reduces user operations by displaying mobile data usage information of other electronic devices associated with the same phone number on an electronic device, including displaying the SIM card identifier and mobile data usage information.
The ability to view mobile data usage of multiple connected devices on a single electronic device improves the user experience and reduces the number of steps required.
Smart Images

Figure CN115942268B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of intelligent terminals, in particular to a traffic statistics method and an electronic device. BACKGROUND
[0002] In a multi-terminal service, the SIM cards of multiple electronic devices of a user can be associated with the same phone number, so that the multiple electronic devices can share one phone number and package resources, and can realize independent cellular mobile communication respectively. In simple terms, multiple electronic devices use the same phone number, and each electronic device can use the phone number to make and receive calls, and each electronic device can use the mobile traffic service associated with the phone number.
[0003] However, in the existing mobile traffic statistics service, each electronic device can only count the mobile traffic consumption on the device, and if a user wants to know the use of the traffic package corresponding to a phone number, the user can only check the mobile traffic consumption data on each device one by one, which is cumbersome and has poor user experience. SUMMARY
[0004] The present application provides a traffic statistics method and an electronic device, which can view the mobile traffic use of other electronic devices associated with the same phone number on one electronic device, reduce user operations, and improve user experience.
[0005] In a first aspect, the present application provides a traffic statistics method applied to a first electronic device, the first electronic device being provided with a first SIM card, the first SIM card being associated with a first phone number, and the method comprising: displaying a first interface, the first interface displaying a first control; the first control corresponding to a second SIM card associated with the first phone number; the second SIM card being provided in a second electronic device; detecting a selection operation on the first control; displaying a second interface, the second interface displaying mobile traffic information corresponding to the second SIM card. The SIM card can be a card-type SIM card or an embedded SIM card, etc. The method can view the mobile traffic use of the second electronic device associated with the same phone number on the first electronic device, reduce user operations, and improve user experience.
[0006] In a possible implementation, the second interface displays a second control; a selection operation on the second control is detected; a third interface is displayed, the third interface displaying mobile traffic information of each application in the second electronic device, and the application corresponding mobile traffic information being used to record the mobile traffic consumed by the application through the second SIM card.
[0007] In a possible implementation, the second interface displays mobile traffic information of each application in the second electronic device, and the mobile traffic information of the application is used to record mobile traffic consumed by the application through the second SIM card.
[0008] In a possible implementation, before displaying the first interface, the method further includes: obtaining a card identifier of the second SIM card; and displaying the first interface includes: displaying the first interface according to the card identifier of the second SIM card, and the first control corresponds to the card identifier of the second SIM card. The card identifier can be an IMSI or an ICCID.
[0009] In a possible implementation, before displaying the second interface, the method further includes: obtaining mobile traffic information corresponding to the second SIM card; and displaying the second interface includes: displaying the second interface according to the mobile traffic information corresponding to the second SIM card.
[0010] In a possible implementation, the card identifier of the second SIM card is obtained in the following manners: the card identifier of the second SIM card is obtained from a first server, the card identifier of the second SIM card is transmitted to the first server by the second electronic device; or the card identifier of the second SIM card is obtained from the second electronic device; or the card identifier of the second SIM card is obtained from a first application, the first application is an application that opens a service associated with the first telephone number of the second SIM card; or the card identifier of the second SIM card is obtained from information input by a user in a target interface.
[0011] In a possible implementation, the mobile traffic information corresponding to the second SIM card is obtained in the following manners: the mobile traffic information corresponding to the second SIM card is obtained from a first server, and the mobile traffic information corresponding to the second SIM card is transmitted to the first server by the second electronic device; or the mobile traffic information corresponding to the second SIM card is obtained from the second electronic device.
[0012] In a possible implementation, the first interface displays a third control, the third control corresponds to a third SIM card associated with the first telephone number, the third SIM card is arranged in a third electronic device, and the third interface displays mobile traffic information corresponding to the third SIM card in response to a selection operation on the third control.
[0013] In a possible implementation, the second SIM card is an eSIM card.
[0014] In a second aspect, an embodiment of the present application provides 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 one of the first aspect.
[0015] In a third aspect, the embodiments of the present application provide a computer readable storage medium, which stores a computer program, and when the computer program is run on a computer, the computer program causes the computer to execute the method of any one of the first aspect.
[0016] In a fourth aspect, the present application provides a computer program, which when executed by a computer, is used to execute the method of the first aspect.
[0017] In a possible design, the program in the fourth aspect can be stored in a storage medium packaged together with the processor in whole or in part, or stored in a storage medium not packaged together with the processor in whole or in part. BRIEF DESCRIPTION OF DRAWINGS
[0018] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the embodiments will be briefly introduced as follows. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative effort on the basis of these drawings.
[0019] Figure 1 Structure diagram of an embodiment of the electronic device of the present application;
[0020] Figure 2 Interface implementation schematic diagram of the process of the multi-terminal service of the present application;
[0021] Figure 3A Direct connection schematic diagram of two electronic devices of the embodiment of the present application;
[0022] Figure 3B Indirect connection schematic diagram of two electronic devices of the embodiment of the present application;
[0023] Figure 3C Indirect connection schematic diagram between smart watches of the embodiment of the present application;
[0024] Figure 3D Indirect connection schematic diagram between a mobile phone and a smart watch of the embodiment of the present application;
[0025] Figure 4A Interface schematic diagram of the traffic statistics method of the present application;
[0026] Figure 4B Flowchart of an embodiment of the traffic statistics method of the present application;
[0027] Figure 5 Flowchart of another embodiment of the traffic statistics method of the present application;
[0028] Figure 6Data schematic diagram stored in the server designated for the present application;
[0029] Figure 7 User interface schematic diagram of the present application;
[0030] Figure 8 Flow chart of another embodiment of the traffic statistics method of the present application;
[0031] Figure 9 Software structure schematic diagram of the electronic device of the present application;
[0032] Figure 10 Schematic diagram of data interaction between modules of two electronic devices through direct connection of the present application;
[0033] Figure 11 Schematic diagram of data interaction between modules of two electronic devices through indirect connection of the present application. DETAILED DESCRIPTION
[0034] The terms used in the embodiment part of the present application are only used for explaining the specific embodiments of the present application, and are not intended to limit the present application.
[0035] First, the terms involved in the present application are exemplarily and non- limitingly described.
[0036] Embedded-SIM (eSIM):
[0037] The concept of eSIM card is to directly embed the function of traditional SIM card into the device chip, instead of adding it into the device as an independent removable part. Users do not need to insert a physical SIM card. This practice will allow users to choose operator packages more flexibly, or change operators at any time without the need to unlock the device or purchase a new device. The future universal eSIM standard will save more mobile device usage costs for ordinary consumers and enterprise users, and bring more convenience and security.
[0038] International Mobile Subscriber Identity (IMSI):
[0039] IMSI is an identification code used to distinguish different users in a cellular network, which is not repeated in all cellular networks. A handset stores IMSI in a 64-bit field and sends it to the network. IMSI can be used to query the information of a user in a home location register (HLR) or a visitor location register (VLR). In order to avoid being identified and tracked by a listener, a randomly generated temporary mobile subscriber identity (TMSI) is used to replace IMSI in most cases for communication between the handset and the network. IMSI is generally stored in a SIM card.
[0040] Mobile data traffic:
[0041] "Mobile data traffic" refers to the data traffic generated by using mobile communication technologies such as general packet radio service (GPRS), enhanced data rates 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), long term evolution (LTE), etc. to access the Internet or use related data value-added services. Mobile data traffic generally does not include the traffic generated by accessing the Internet through other means such as wireless local area network (WLAN) and circuit switched data service (CSD), does not include the data traffic deducted for content-based data value-added services (such as multimedia messaging, address book manager, full song download, flash news, etc.), and does not include the data traffic generated by group customers and industry applications.
[0042] One number multi-terminal service:
[0043] In the first multi-terminal service, multiple electronic devices share a telephone number and package resources, that is, independent cellular mobile communication can be realized. In a popular way, multiple electronic devices use the same number, and each electronic device can use the number to make and receive calls, and each electronic device can use the number associated with the traffic service. For example, if a user uses the same telephone number to access the network on a mobile phone, a smart watch, and a vehicle terminal, the mobile phone, the smart watch, and the vehicle terminal share the package resources and the superimposed traffic table of the telephone number, and the out-of-town cost standard is the same. If a call is made to the user's telephone number, the mobile phone, the smart watch, and the vehicle terminal associated with the telephone number will receive the call at the same time, and the user can answer the call on any electronic device. The user can also use any of the mobile phone, the smart watch, and the vehicle terminal to make a call. Whether the call is made or received, the telephone number presented to the outside is the telephone number, which avoids the user managing multiple telephone numbers on multiple electronic devices and brings great convenience to the user.
[0044] However, in the existing traffic statistics service, each electronic device can only count the mobile data traffic consumption on the electronic device itself. If the user wants to know the usage of the traffic package, the user can only view the traffic consumption data of each electronic device one by one, which is cumbersome and has poor user experience.
[0045] Therefore, the present application provides a traffic statistics method and an electronic device, which can view the traffic usage of other electronic devices on one electronic device, reduce user operations, and improve user experience.
[0046] The method provided by the embodiments of the present application can be applied to an electronic device, and the electronic device is built-in with a SIM card, for example, a mobile phone, a vehicle device, a wearable device such as smart glasses and a smart watch, etc. The SIM card can be a card-type SIM card (i.e., the traditional SIM card) or an eSIM card, etc.
[0047] For example, Figure 1A structural diagram of the electronic device 100 is shown. The electronic device 100 can 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, an antenna 1, an 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 headset interface 170D, a sensor module 180, a key 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 can include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light 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.
[0048] It can be understood that the structure shown in the embodiments of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 can include more or fewer components than shown, or combine certain components, or split certain components, or different component arrangements. The components shown can be implemented in hardware, software, or a combination of software and hardware.
[0049] The processor 110 can include one or more processing units, for example: the processor 110 can include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units can be independent devices, or can be integrated into one or more processors.
[0050] The controller can generate operation control signals according to instruction operation codes and timing signals, and complete the control of fetching and executing instructions.
[0051] The processor 110 can also include a memory that stores instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The cache memory can hold instructions or data that the processor 110 has recently used or is likely to use again. If the processor 110 needs to use the instructions or data again, it can be retrieved directly from the cache memory. This avoids repeated accesses to the main memory, reducing the latency of the processor 110 and thus improving the efficiency of the system.
[0052] In some embodiments, the processor 110 can include one or more interfaces. The interfaces can 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.
[0053] The I2C interface is a bidirectional synchronous serial bus that includes a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 can include multiple sets of I2C buses. The processor 110 can be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces. For example, the processor 110 can be coupled to the touch sensor 180K through an I2C interface, enabling the processor 110 and the touch sensor 180K to communicate through the I2C bus interface and implement the touch function of the electronic device 100.
[0054] The I2S interface can be used for audio communication. In some embodiments, the processor 110 can include multiple sets of I2S buses. The processor 110 can be coupled to the audio module 170 through the I2S bus, enabling communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can deliver audio signals to the wireless communication module 160 through the I2S interface, enabling the function of answering a phone call through a Bluetooth headset.
[0055] The PCM interface can also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 170 can be coupled with the wireless communication module 160 through a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 through the PCM interface, realizing the function of answering a phone call through a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
[0056] The UART interface is a general-purpose serial data bus used for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is usually 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 through the UART interface, realizing the Bluetooth function. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 through the UART interface, realizing the function of playing music through a Bluetooth headset.
[0057] The MIPI interface can be used to connect the processor 110 and peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes the camera serial interface (CSI), the display serial interface (DSI), etc. In some embodiments, the processor 110 and the camera 193 communicate through the CSI interface, realizing the shooting function of the electronic device 100. The processor 110 and the display screen 194 communicate through the DSI interface, realizing the display function of the electronic device 100.
[0058] The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 and the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the 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.
[0059] The USB interface 130 is an interface that conforms to the USB standard specification, which can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 100, or to transmit data between the electronic device 100 and peripheral devices. It can also be used to connect a headset to play audio through the headset. The interface can also be used to connect other electronic devices, such as AR devices, etc.
[0060] It can be understood that the interface connection relationship between the modules shown in the embodiments of the present application is only illustrative and does not constitute a limitation on the structure of the electronic device 100. In other embodiments of the present application, the electronic device 100 can also use different interface connection modes or a combination of multiple interface connection modes in the above embodiments.
[0061] The charging management module 140 is configured to receive 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 can receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 can receive wireless charging input through a wireless charging coil of the electronic device 100. The charging management module 140 can charge the battery 142 and also supply power to the electronic device through the power management module 141.
[0062] The power management module 141 is configured to connect 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 to supply power to the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be configured to monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage, impedance). In other embodiments, the power management module 141 can also be arranged in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be arranged in the same device.
[0063] The wireless communication function of the electronic device 100 can be realized through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor.
[0064] The antenna 1 and the antenna 2 are configured to transmit and receive electromagnetic wave signals. Each antenna in the electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization rate of the antennas. For example, the antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In other embodiments, the antenna can be used in combination with a tuning switch.
[0065] The mobile communication module 150 can provide a solution for wireless communication including 2G / 3G / 4G / 5G, etc. applied to the electronic device 100. The mobile communication module 150 can include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves by the antenna 1, and perform filtering, amplification, etc. on the received electromagnetic waves, and transfer to a modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor, and radiate as electromagnetic waves through the antenna 1. In some embodiments, at least part of the functional modules of the mobile communication module 150 can be disposed in the processor 110. In some embodiments, at least part of the functional modules of the mobile communication module 150 can be disposed in the same device as at least part of the modules of the processor 110.
[0066] The modem processor can include a modulator and a demodulator. The modulator is configured to modulate a low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is configured to demodulate a 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. The low-frequency baseband signal processed by the baseband processor is transmitted to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the microphone 170B, etc.), or displays an image or a video through the display screen 194. In some embodiments, the modem processor can be a separate device. In other embodiments, the modem processor can be independent of the processor 110, and disposed in the same device as the mobile communication module 150 or other functional modules.
[0067] The wireless communication module 160 can provide a solution for wireless communication including wireless local area networks (WLAN) (e.g., wireless fidelity (Wi-Fi) network), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR) technology, etc. applied to the electronic device 100. The wireless communication module 160 can be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives an electromagnetic wave via the antenna 2, frequency-modulates and filters the electromagnetic wave signal, and transmits the processed signal to the processor 110. The wireless communication module 160 can also receive a signal to be transmitted from the processor 110, frequency-modulate it, amplify it, and radiate it as an electromagnetic wave via the antenna 2.
[0068] In some embodiments, the antenna 1 and the mobile communication module 150 of the electronic device 100 are coupled, and the antenna 2 and the wireless communication module 160 are coupled, so that the electronic device 100 can communicate with a network and other devices through wireless communication technology. The wireless communication technology can 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 technology, etc. The GNSS can include a global positioning system (GPS), a global navigation satellite system (GLONASS), a beidu navigation satellite system (BDS), a quasi-zenith satellite system (QZSS), and / or a satellite based augmentation systems (SBAS).
[0069] The electronic device 100 implements a display function through a GPU, a display screen 194, and an application processor, etc. The GPU is a microprocessor for image processing, which is connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 can include one or more GPUs, which execute program instructions to generate or change display information.
[0070] The display screen 194 is configured to display images, videos, and the like. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flex light-emitting diode (FLED), a Miniled, a MicroLed, a Micro-oLed, a quantum dot light emitting diodes (QLED), or the like. In some embodiments, the electronic device 100 can include one or N display screens 194, where N is a positive integer greater than 1.
[0071] The electronic device 100 can implement the photographing function through the ISP, the camera 193, the video codec, the GPU, the display screen 194, and the application processor.
[0072] The ISP is configured to process the data fed back by the camera 193. For example, when taking a photo, the shutter is opened, the light is transmitted to the camera photosensitive element through the lens, the light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing to convert it into an image visible to the naked eye. The ISP can also optimize the noise, brightness, and skin color of the image. The ISP can also optimize the exposure, color temperature, and other parameters of the shooting scene. In some embodiments, the ISP can be disposed in the camera 193.
[0073] The camera 193 is configured to capture still images or videos. An object generates an optical image through a lens and projects it onto a photosensitive element. 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 transmitted to the ISP to convert it into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV, or the like format. In some embodiments, the electronic device 100 can include one or N cameras 193, where N is a positive integer greater than 1.
[0074] The digital signal processor is used to process digital signals, in addition to being able to process digital image signals, it can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy, etc.
[0075] The video codec is used to compress or decompress digital video. The electronic device 100 can support one or more video codecs. In this way, the electronic device 100 can play or record videos in multiple encoding formats, such as: moving picture experts group (MPEG) 1, MPEG 2, MPEG 3, MPEG 4, etc.
[0076] The NPU is a neural-network (NN) calculation processor, which can quickly process input information by drawing on the structure of a biological neural network, such as the transmission mode between human brain neurons, and can also continuously self-learn. Through the NPU, the electronic device 100 can realize intelligent cognition applications, such as: image recognition, face recognition, voice recognition, text understanding, etc.
[0077] The external memory 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 memory interface 120 to realize data storage functions. For example, music, video, etc. Files are saved in the external memory card.
[0078] The internal memory 121 can be used to store computer executable program codes, which include instructions. The internal memory 121 can include a program storage area and a data storage area. The program storage area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function, etc.), etc. The data storage area can store data created during the use of the electronic device 100 (such as audio data, a phonebook, etc.), etc. In addition, the internal memory 121 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various function applications and data processing of the electronic device 100 by running instructions stored in the internal memory 121 and / or instructions stored in the memory disposed in the processor.
[0079] The electronic device 100 can realize audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor, etc. For example, music playing, recording, etc.
[0080] The audio module 170 is configured to convert digital audio information into an analog audio signal output, and to convert an analog audio input into a digital audio signal. The audio module 170 can also be configured to encode and decode audio signals. In some embodiments, the audio module 170 can be disposed in the processor 110, or some of the functions of the audio module 170 can be disposed in the processor 110.
[0081] The speaker 170A, also referred to as a "loudspeaker", is configured to convert an audio electrical signal into a sound signal. The electronic device 100 can listen to music or listen to a hands-free call through the speaker 170A.
[0082] The receiver 170B, also referred to as a "earpiece", is configured to convert an audio electrical signal into a sound signal. When the electronic device 100 receives a call or a voice message, the user can listen to the voice by holding the receiver 170B close to the ear.
[0083] The microphone 170C, also referred to as a "microphone", "transducer", is configured to convert a sound signal into an electrical signal. When making a call or sending a voice message, the user can make a sound by holding the mouth close to the microphone 170C, and input the sound signal into the microphone 170C. The electronic device 100 can be provided with at least one microphone 170C. In other embodiments, the electronic device 100 can be provided with two microphones 170C, in addition to collecting sound signals, noise reduction functions can also be realized. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C, in addition to collecting sound signals, noise reduction, and can also identify the source of the sound, realize directional recording function, etc.
[0084] The earphone interface 170D is configured to connect a wired earphone. The earphone interface 170D can be a USB interface 130, or a 3.5mm open mobile terminal platform (OMTP) standard interface, a cellular telecommunications industry association of the USA (CTIA) standard interface.
[0085] The pressure sensor 180A is configured to sense a pressure signal, and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be disposed on the display screen 194. The pressure sensor 180A
[0086] There are many types of pressure sensors, such as impedance pressure sensors, inductance pressure sensors, and capacitance pressure sensors. A capacitance pressure sensor can include at least two parallel plates of conductive material. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure according to 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 according to the pressure sensor 180A. The electronic device 100 can also calculate the position of the touch according to the detection signal of 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 instructions. For example, when a touch operation with a touch operation intensity less than a first pressure threshold is applied to a short message application icon, an instruction to view a short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold is applied to the short message application icon, an instruction to create a new short message is executed.
[0087] The gyroscope sensor 180B can be used to determine the motion posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (i.e., the x, y, and z axes) can be determined by the gyroscope sensor 180B. The gyroscope sensor 180B can be used for anti-shake photography. For example, when the shutter is pressed, the gyroscope sensor 180B detects the angle of the shaking of the electronic device 100, calculates the distance that the lens module needs to compensate according to the angle, and lets the lens offset the shaking of the electronic device 100 by reverse movement to achieve anti-shake. The gyroscope sensor 180B can also be used for navigation and motion sensing game scenarios.
[0088] The barometric pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude, assists in positioning and navigation by using the air pressure value measured by the barometric pressure sensor 180C.
[0089] The magnetic sensor 180D includes a Hall sensor. The electronic device 100 can detect the opening and closing of a flip cover by using the magnetic sensor 180D. 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 according to the magnetic sensor 180D. Further, according to the detected opening and closing state of the cover or the opening and closing state of the flip cover, the electronic device 100 can set features such as automatic unlocking of the flip cover.
[0090] The acceleration sensor 180E can detect the magnitude of acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the acceleration sensor 180E can detect the magnitude and direction of gravity. The acceleration sensor 180E can also be used to identify the posture of the electronic device, and can be applied to landscape / portrait screen switching and pedometer applications.
[0091] The distance sensor 180F is configured to measure distance. The electronic device 100 can measure distance by infrared or laser. In some embodiments, the electronic device 100 can utilize the distance sensor 180F to measure distance to achieve fast focus when taking a picture.
[0092] The proximity light sensor 180G can include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The light emitting diode can be an infrared light emitting diode. The electronic device 100 emits infrared light outwardly through the light emitting diode. The electronic device 100 detects infrared reflected light from nearby objects using the photodiode. When sufficient reflected light is detected, the electronic device 100 can determine 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 can utilize the proximity light sensor 180G to detect that a user is holding the electronic device 100 close to the ear for a phone call, so as to automatically turn off the screen to save power. The proximity light sensor 180G can also be used for automatic unlocking and locking of the screen in a case mode or a pocket mode.
[0093] The ambient light sensor 180L is configured to sense ambient light brightness. The electronic device 100 can adaptively adjust the display screen 194 brightness according to the sensed ambient light brightness. The ambient light sensor 180L can also be used to automatically adjust white balance when taking a picture. The ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in a pocket to prevent accidental touch.
[0094] The fingerprint sensor 180H is configured to collect a fingerprint. The electronic device 100 can utilize the collected fingerprint characteristics to implement fingerprint unlocking, access application lock, fingerprint picture taking, fingerprint call answering, and the like.
[0095] The temperature sensor 180J is configured to detect temperature. In some embodiments, the electronic device 100 utilizes the temperature detected by the temperature sensor 180J to implement temperature processing strategies. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold value, the electronic device 100 reduces the performance of a processor located near the temperature sensor 180J to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold value, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 caused by low temperature. In other embodiments, when the temperature is lower than yet another threshold value, the electronic device 100 performs voltage boosting on the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
[0096] Touch sensor 180K, also referred to as "touch device". Touch sensor 180K can be disposed on display screen 194, and touch sensor 180K and display screen 194 form a touch screen, also referred to as "touch panel". Touch sensor 180K is configured to detect touch operations applied to or near the touch sensor 180K. The touch sensor can transmit the detected touch operation to the application processor to determine the touch event type. Visual output related to the touch operation can be provided through display screen 194. In other embodiments, touch sensor 180K can also be disposed on the surface of electronic device 100, which is different from the position of display screen 194.
[0097] Bone conduction sensor 180M can obtain vibration signals. In some embodiments, bone conduction sensor 180M can obtain vibration signals of the human body's vocal vibration bone block. Bone conduction sensor 180M can also contact the human body pulse to receive blood pressure pulsation signals. In some embodiments, bone conduction sensor 180M can also be disposed in a headset to form a bone conduction headset. Audio module 170 can analyze voice signals based on the vibration signals of the vocal vibration bone block obtained by the bone conduction sensor 180M to realize voice functions. The application processor can analyze heart rate information based on the blood pressure pulsation signals obtained by the bone conduction sensor 180M to realize heart rate detection functions.
[0098] Keys 190 include power on / off keys, volume keys, and the like. Keys 190 can be mechanical keys. They can also be touch keys. Electronic device 100 can receive key inputs and generate key signal inputs related to user settings and function control of electronic device 100.
[0099] Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts and also for touch vibration feedback. For example, touch operations applied to different applications (such as taking pictures, playing audio, etc.) can correspond to different vibration feedback effects. Touch operations applied to different regions of display screen 194 can also correspond to different vibration feedback effects. Different application scenarios (such as time reminders, received messages, alarms, games, etc.) can also correspond to different vibration feedback effects. Touch vibration feedback effects can also be customizable.
[0100] Indicator 192 can be an indicator light, which can be used to indicate charging status, power changes, and also to indicate messages, missed calls, notifications, and the like.
[0101] The SIM card interface 195 is configured to connect a SIM card. The SIM card can be connected to or disconnected from the electronic device 100 by being inserted into or pulled out of the SIM card interface 195. 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, and the like. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external storage cards. The electronic device 100 interacts with a network through the SIM card to implement functions such as calling 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.
[0102] The software system of the electronic device 100 can use a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. Specifically, the software system can be an Android system, a Harmony system, or the like.
[0103] For ease of understanding, the following embodiments of the present application will take an electronic device with the structure shown in Figure 1 The method provided by the embodiments of the present application will be described in detail with reference to the electronic device with the structure shown in
[0104] First, the process of opening a one-number multi-terminal service by a user will be described by way of example.
[0105] For example, the user opens a one-number multi-terminal service for a mobile phone and a smart watch. The user can establish a connection between the mobile phone and the smart watch by using NFC, Bluetooth, WiFi, or the like.
[0106] The telephone number associated with the SIM card of the mobile phone is assumed to be 12345678900. It should be noted that the mobile phone can have two or more SIM cards, and the SIM card of the mobile phone in the present application can be any SIM card in the mobile phone.
[0107] The user downloads and installs an application 1 for opening a one-number multi-terminal service in the mobile phone, opens an interface 210 shown in Figure 2 for example, in the application 1, and the interface 210 displays a list of devices connected to the mobile phone, including the smart watch. The user selects the “online opening eSIM” control corresponding to the smart watch, and accordingly, can enter an interface 220 shown in Figure 2The interface 220 shown in FIG. 13 displays the device identifier of the smart watch, the card identifier of the eSIM card of the smart watch, and the telephone number "12345678900" to be associated. Optionally, the device identifier can be an IMEI; the card identifier of the eSIM card can be an integrate circuit card identity (ICCID), or an IMSI, or an embedded UICC identity (EUICC ID), etc.
[0108] It should be noted that the device identifier and the card identifier can be obtained by the application 1 from the smart watch via the mobile phone, or manually filled by the user, which is not limited herein.
[0109] It should be noted that the telephone number to be associated can be manually filled by the user; or the application 1 can obtain the telephone number associated with the SIM card in the mobile phone from the application 2 in the mobile phone for managing the SIM card, so as to be automatically displayed in the interface 220; or if the mobile phone includes multiple SIM cards, a primary SIM card can be set among the multiple SIM cards, and the application 1 can obtain the telephone number associated with the primary SIM card from the application 2 in the mobile phone, so as to be automatically displayed in the interface 220.
[0110] The user selects the "Confirm" control in the interface 220, and correspondingly, the application 1 in the mobile phone receives the selection operation of the user on the "Confirm" control, and sends a one-number multi-terminal service request message to the operator server, which can carry the telephone number 12345678900 and the card identifier (such as IMSI or ICCID or EUICC ID) of the eSIM in the smart watch; optionally, it can also carry the device identifier (such as IMEI) of the smart watch.
[0111] The operator server side receives the one-number multi-terminal service request message, completes the one-number multi-terminal service opening process, and feeds back a confirmation message to the application 1 in the mobile phone.
[0112] The application 1 in the mobile phone displays, for example, the interface 230 shown in FIG. 14 to the user, and prompts the user that the one-number multi-terminal service is successfully handled. Figure 2
[0113] The application 1 in the mobile phone can feed back a notification message to the smart watch that the one-number multi-terminal service is successfully handled.
[0114] It should be noted that the above only shows the process and interface associated with the flow statistics of the embodiments of the present application in the process of the user handling the one-terminal multi-terminal service, and does not limit the handling process of the one-terminal multi-terminal service. For example, in the handling process of the one-terminal multi-terminal service, the above interface may be different, and the process may also include other possible processes such as reading service instructions, user inputting name and ID number, smart watch downloading eSim Profile to eSIM card, etc., which will not be described here.
[0115] In the embodiments of the present application, for the convenience of description, if an eSIM card of an electronic device is associated with a telephone number, it is also called that the electronic device is associated with the telephone number. For example, an eSIM card of a mobile phone is associated with a telephone number 12345678900, which is also called that the mobile phone is associated with the telephone number 12345678900.
[0116] The following describes a possible implementation manner of data transmission between two electronic devices associated with the same telephone number in the flow statistics method of the present application.
[0117] Referring to Figure 3A , the electronic device 1 and the electronic device 2 associated with the same telephone number can directly establish a connection through NFC, Bluetooth, or WiFi, etc., and data interaction is performed through the connection. For the convenience of description, the connection established between the above two electronic devices is called direct connection in the embodiments of the present application.
[0118] Referring to Figure 3B , the electronic device 1 and the electronic device 2 can be connected to a data relay device, and then the electronic device 1 and the electronic device 2 can realize data interaction through the data relay device. This connection manner can also be called indirect connection between two electronic devices through a data relay device. For the convenience of description, the connection is also called indirect connection in the embodiments of the present application.
[0119] Optionally, the above data relay device is a server, for example, a cloud server. The electronic device can log in the server through an account in a network connection manner, and a connection is established between the electronic device and the server. The user logs in the server through the same account on the two electronic devices, and then the server can forward the data of one electronic device to the other electronic device based on the same account.
[0120] Optionally, the above data relay device is an electronic device associated with the same telephone number as the above two electronic devices. For example, referring to Figure 3C , the mobile phone, the smart watch 1 and the smart watch 2 are associated with the same telephone number, a Bluetooth connection is established between the smart watch 1 and the mobile phone, and a Bluetooth connection is established between the smart watch 2 and the mobile phone. Then, the smart watch 1 and the smart watch 2 can perform data interaction through the mobile phone.
[0121] It should be noted that the direct connection and the indirect connection can coexist or switch with each other when the data interaction is performed between the two electronic devices. For example, referring to FIG. 8, the mobile phone and the smart watch can be directly connected through Bluetooth, and the mobile phone logs in the server by using the account 1 through the network connection, and the smart watch logs in the server by using the account 1 through the network connection. Therefore, the mobile phone and the smart watch are indirectly connected through the server, and the direct connection and the indirect connection exist between the mobile phone and the smart watch, and the data can be transmitted through the direct connection and the indirect connection respectively. Alternatively, the data interaction between the mobile phone and the smart watch can be switched from the direct connection to the indirect connection, or switched from the indirect connection to the direct connection during the data interaction. Figure 3D It should be noted that the direct connection and the indirect connection can coexist or switch with each other when the data interaction is performed between the two electronic devices. For example, referring to FIG. 8, the mobile phone and the smart watch can be directly connected through Bluetooth, and the mobile phone logs in the server by using the account 1 through the network connection, and the smart watch logs in the server by using the account 1 through the network connection. Therefore, the mobile phone and the smart watch are indirectly connected through the server, and the direct connection and the indirect connection exist between the mobile phone and the smart watch, and the data can be transmitted through the direct connection and the indirect connection respectively. Alternatively, the data interaction between the mobile phone and the smart watch can be switched from the direct connection to the indirect connection, or switched from the indirect connection to the direct connection during the data interaction.
[0122] The following describes the statistical information of the mobile traffic data usage of the electronic device in the traffic statistical method of the present application.
[0123] As shown in Table 1 below, the electronic device can count the information of each application using different network interfaces to transmit data in each time period. Table 1 includes the fields of "time period", "network port", "application identifier", "data volume", etc. The network port field is used to record the data transmission method used by the application, which can include but is not limited to mobile traffic method, WLAN method, Bluetooth method, etc. It is assumed that port #1 in Table 1 represents the mobile traffic method using eSIM card, port #2 represents the WLAN method, and port #3 represents the Bluetooth method. The application identifier field is used to record the identifier of the application. The data volume is used to record the data volume.
[0124] For example, the first record indicates that, from 1:00 to 2:00, application A transmits 2.3M data using the mobile traffic method.
[0125]
[0126]
[0127] Table 1
[0128] The electronic device can retrieve the record corresponding to "port #1" from the above Table 1 to obtain the mobile traffic consumption information of each application, and further calculate the total amount of mobile traffic consumed by the electronic device in a specified time period (for example, a billing period), the total amount of mobile traffic consumed by each application in a specified time period (for example, a billing period), and the like based on the above consumption information.
[0129] It should be noted that a plurality of SIM cards can be provided in the electronic device, at this time, different SIM cards used by traffic can be distinguished by different values of the network port, and the electronic device can also obtain the mobile traffic consumed by each application through a certain SIM card by different values of the network port.
[0130] Figure 4A An interface diagram of the traffic counting method of the application. Figure 4A In the one multi-terminal service, the telephone number 1 is associated with three SIM cards, including the SIM card of device 1, the SIM card of device 2, and the SIM card of device 3. Figure 4A The interface shown in the above is an example of the interface displayed in device 1.
[0131] The traffic counting method of the embodiment of the application can be executed by an application in the electronic device, for the convenience of description, the application in the electronic device for mobile traffic counting and display is referred to as a traffic management application, and the above traffic management application can be, for example, a "setting" application in the electronic device.
[0132] Referring to Figure 4A The interface 410 is an example diagram of a mobile traffic consumption query interface provided in the traffic management application, and a list of SIM cards associated in the one multi-terminal service is shown in the interface 410, for example Figure 4A In the above, three SIM cards are associated, which are the SIM card of device 1, the SIM card of device 2, and the SIM card of device 3.
[0133] If the user selects the "view" control corresponding to a certain SIM card in the SIM card list, for example, the "view" control 411 of the SIM card of device 2, the traffic management application can display the mobile traffic consumption information display interface of the SIM card of device 2, for example Figure 4A shown in the interface 420 of the above. The mobile traffic consumption information display interface of device 2 can be used to display the total amount of mobile traffic consumed by the SIM card of device 2, the total amount of mobile traffic consumed by device 2 every day, and other mobile traffic consumption information, for example, a mobile traffic statistical chart of device 2 consumed every day in the last 7 days, the total amount of mobile traffic consumed by device 2 is 403.90MB, and the like.
[0134] Optionally, Figure 4A In the interface 420 of the above, a control for triggering the mobile traffic query consumed by the application in device 2 can also be displayed, for example, the "view" control 421 in the interface 420, and the user selects the "view" control 421, and the traffic management application can display the mobile traffic consumption information display interface of the application in device 2, for example Figure 4A shown in the interface 430 of the above, wherein the total amount of mobile traffic consumed by each application installed in device 2 through the SIM is shown.
[0135] Optionally, the mobile traffic consumption query control of the application in the device 2 can not be displayed in the interface 420, but the mobile traffic consumed by each application through the SIM in the interface 430 can be directly displayed in the interface 420, for example, as shown in the interface 440.
[0136] It should be noted that, Figure 4A The mobile traffic consumption information displayed in the interface can be the mobile traffic consumption information in a billing cycle of an operator, so that the display of the above consumption information is more targeted, and it is more helpful for the user to understand the consumption of mobile traffic in a billing cycle.
[0137] It should be noted that, Figure 4A The mobile traffic consumption information displayed in the interface can also include mobile traffic consumption information that is not counted according to the billing cycle, which is not limited by the present application.
[0138] Figure 4B The flowchart of an embodiment of the traffic counting method of the present application can be applied to a first electronic device, the first electronic device is provided with a first SIM card, and the first SIM card is associated with a first telephone number; as shown in Figure 4B The method can include:
[0139] Step 401: The first electronic device displays a first interface, and the first interface displays a first control; the first control corresponds to a second SIM card associated with the first telephone number; the second SIM card is arranged in a second electronic device.
[0140] The first interface can be the aforementioned mobile traffic consumption query interface, for example, the interface 410. The first control can be the "view" control corresponding to the device 2 and the device 3 in the interface 410.
[0141] Step 402: The first electronic device detects a selection operation on the first control, displays a second interface, and the second interface displays mobile traffic information corresponding to the second SIM card.
[0142] The second interface can be the aforementioned mobile traffic consumption information display interface of the SIM card, for example, the interface 420.
[0143] Optionally, the second interface can also display a second control, and the method can further include step 403.
[0144] Step 403: The first electronic device detects a selection operation on the second control, displays a third interface, and the third interface displays mobile traffic information consumed by each application in the second electronic device through the second SIM card.
[0145] The second control can be the aforementioned "view" control 421. The third interface can be an interface for displaying mobile traffic consumption information of the application, such as the interface 430.
[0146] Optionally, the second control can not be provided in the second interface, and the mobile traffic consumption information of each application in the second electronic device through the second SIM card can be directly displayed.
[0147] Figure 4B The traffic statistics method shown achieves the viewing of the mobile traffic consumed by the second electronic device through the second SIM card on the first electronic device, and further achieves the viewing of the mobile traffic consumed by each application in the second electronic device through the second SIM card, reduces user operations, and improves user experience.
[0148] Referring to Figure 5 A flowchart of an embodiment of the traffic statistics method is shown, and it is assumed in the method that the first electronic device is provided with a first SIM card, and the first SIM card is associated with a first telephone number. The first electronic device can include only the first SIM card, or can include multiple SIM cards, and the first SIM card is any one of the multiple SIM cards. The method takes as an example that a user can query mobile traffic consumption information of multiple SIMs associated with the same telephone number from the first electronic device. As shown in the flowchart, the method can include the following steps. Figure 5
[0149] Step 501: The first electronic device stores card identifiers of multiple SIM cards associated with the first telephone number.
[0150] The card identifier of the SIM card can be an IMSI or an ICCID of the SIM card.
[0151] Optionally, the first electronic device can further store device identifiers of electronic devices in which the multiple SIM cards are located. The device identifier can be an IMEI of the electronic device.
[0152] For example, it is assumed that the first telephone number is associated with two SIM cards, which are a first SIM card and a second SIM card, the second SIM card is provided 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. The first electronic device can store the following information.
[0153] The list of SIM cards associated with the first telephone number: IMSI001, IMSI002.
[0154] If the first electronic device is provided with a third SIM card in addition to the first SIM card, the third SIM card is associated with a second telephone number, the second telephone number is associated with the 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 provided in the third electronic device, the first electronic device can store the following information:
[0155] The SIM card list associated with the first telephone number: IMSI001, IMSI002;
[0156] The SIM card list associated with the second telephone number: IMSI003, IMSI004.
[0157] In a possible implementation, the first electronic device can obtain the card identifier of the SIM card associated with the first telephone number from the specified server.
[0158] Each electronic device associated with the same telephone number can respectively access the specified server, and send the card identifier of the SIM card in the device and the associated telephone number to the specified server; correspondingly, the specified server can store the card identifiers of the multiple SIM cards associated with the telephone number based on the telephone number. Therefore, each electronic device associated with the same telephone number can obtain the card identifier of the other SIM card from the specified server.
[0159] For example, the SIM card of device 1 to the SIM card of device 4 are respectively associated with a mobile phone number A, and devices 1 to 4 can respectively access the specified server, and send the card identifier of the SIM card in the device and the mobile phone number A associated with the SIM card to the specified server; the SIM card of device 5 to the SIM card of device 6 are respectively associated with a mobile phone number B, and devices 5 and 6 can respectively access the specified server, and send the card identifier of the SIM card in the device and the mobile phone number B associated with the SIM card to the specified server; correspondingly, the specified server stores data such as Figure 6
[0160] The SIM card list associated with the mobile phone number A: IMSI(1), IMSI(2), IMSI(3), IMSI(4);
[0161] The SIM card list associated with the mobile phone number B: IMSI(5), IMSI(6).
[0162] Therefore, devices 1 to 4 can query the SIM card list corresponding to the mobile phone number A from the specified server, and devices 5 and 6 can query the SIM card list corresponding to the mobile phone number B from the specified server.
[0163] In order to ensure user privacy, the electronic device can access the above-mentioned designated server through an account, and the above-mentioned SIM card list in the designated server can correspond to the account, only the device logged in the corresponding account can access the designated server to obtain the SIM card list corresponding to the account. For example:
[0164] The user logs in account 1 in device 1-device 4 respectively, and device 1-device 4 can access the designated server through the account, and send the card identification of the SIM card in the device and the mobile phone number A associated with the SIM card to the designated server; then, the designated server stores the following information corresponding relationship:
[0165] Mobile phone A, [IMSI(1), IMSI(2), IMSI(3), IMSI(4)], account 1;
[0166] Only when the user logs in account 1 in a device, the device can access the designated server through account 1, and query the eSIM card list [IMSI(1), IMSI(2), IMSI(3), IMSI(4)] corresponding to account 1 from the designated server.
[0167] In another possible implementation, the first electronic device can obtain the card identification of the SIM card in the other electronic device associated with the first telephone number from the other electronic device.
[0168] The first electronic device and the second electronic device can be directly connected through NFC, Bluetooth, WiFi and the like, and the first electronic device and the second electronic device determine through the direct connection that both devices are associated with the first telephone number, and then the first electronic device sends the card identification of the SIM card associated with the first telephone number in the device to the opposite electronic device.
[0169] For example, the mobile phone and the smart watch can establish a connection through Bluetooth, and the mobile phone and the smart watch can exchange data through the Bluetooth connection, and the mobile phone and the smart watch determine that the opposite device is associated with the first telephone number, and then the mobile phone sends the card identification of the first SIM card associated with the first telephone number in the mobile phone to the smart watch, and the smart watch sends the card identification of the SIM card associated with the first telephone number in the smart watch to the mobile phone.
[0170] In a third possible implementation, if the first electronic device is installed with an application for opening a one-number multi-terminal service, such as the application 1 in the foregoing example, the first electronic device can obtain the card identification of the SIM card associated with the first telephone number from the application 1. For example, in the foregoing example, the mobile phone can be installed with the application 1, and the traffic management application in the mobile phone can obtain the card identification of the other SIM card associated with the first telephone number from the application 1, and the other SIM card refers to the SIM card associated with the first telephone number except the first SIM card.
[0171] In a fourth possible implementation, the first electronic device can provide a user interface 710 as shown in FIG. 7 for the user to manually configure and modify the card identity of the other SIM card associated with the same phone number. Figure 7
[0172] It should be noted that the execution timing of the first electronic device obtaining the card identity of the other SIM card can include, but is not limited to, when the first electronic device opens the one-card multi-terminal 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.
[0173] It should be noted that if the association between the SIM card of a certain electronic device and the phone number is cancelled or replaced, it can also be synchronized to other electronic devices in the above manner in this step.
[0174] Step 502: The first electronic device stores the mobile traffic consumption information of the first SIM card.
[0175] The first electronic device can store, for example, the traffic statistics information shown in Table 1, which includes the mobile traffic consumption information of the first SIM card.
[0176] The mobile traffic consumption information can include, but is not limited to, the mobile traffic consumed by the first electronic device through the first SIM card, the mobile traffic consumed by each application in the first electronic device through the first SIM card, etc.
[0177] Optionally, the above mobile traffic consumption information can be the information of the mobile traffic consumed in the current billing period.
[0178] Step 503: The first electronic device obtains and stores the mobile traffic consumption information of the other SIM card associated with the first phone number.
[0179] In a possible implementation, the first electronic device can obtain the mobile traffic consumption information of the above other SIM card from a designated server.
[0180] Each electronic device associated with the same phone number can access the designated server respectively, and send the traffic statistics information of the device to the designated server; correspondingly, the designated server can store the traffic statistics information of each electronic device. Thus, each electronic device associated with the same phone number can obtain the traffic statistics information of other electronic devices from the designated server.
[0181] The designated server can store the traffic statistics information of each electronic device respectively, or combine the traffic statistics information of the electronic devices associated with the same telephone number, and obtain the traffic statistics information shown in Table 2, for example, in which the device 1 to device 3 are associated with the same telephone number.
[0182]
[0183]
[0184] Table 2
[0185] Then, the designated server can send the combined traffic statistics information shown in Table 2 to the corresponding device 1, device 2 and device 3, for example.
[0186] It should be noted that, since the update frequency of the traffic information in the electronic device is high, each electronic device associated with the same telephone number can periodically upload the traffic statistics information to the designated server to update the traffic statistics information stored in the designated server, or periodically download the traffic statistics information of other electronic devices from the designated server. The data upload period and the data download period can be the same or different. The specific value of the above period is not limited in the embodiments of the present application.
[0187] It should be noted that, the above is an example of sending the traffic statistics information from the electronic device to the designated server, and the electronic device can only send the mobile traffic consumption information of the SIM card to the designated server, and correspondingly, each electronic device can obtain the mobile traffic consumption information of other electronic devices from the designated server. The specific implementation can be referred to the foregoing description, which is not described here.
[0188] In another possible implementation, the first electronic device can obtain the mobile traffic consumption information of other SIM cards from other electronic devices associated with the first telephone number.
[0189] The first electronic device and the second electronic device can establish a direct connection, and data interaction is performed through the direct connection, the SIM of the opposite device is determined to be associated with the first telephone number, the mobile traffic consumption information of the SIM card in the device is sent to the opposite device, or the traffic statistics information of the device is sent to the opposite device.
[0190] Optionally, if the first electronic device obtains the traffic statistics information of other electronic devices, the traffic statistics information of the device and the traffic statistics information of other electronic devices can be counted and combined, and the combined processing result shown in Table 2, for example, can be obtained. Similarly, the first electronic device can also count and combine the mobile traffic consumption information of multiple SIM cards. The specific method can be referred to the implementation of counting and combining the traffic statistics information, which is not described here.
[0191] In actual implementation, the first electronic device can support both of the above two possible implementation manners, so that the first electronic device can obtain the mobile traffic consumption information of the other SIM card in different scenarios.
[0192] Step 504: The first electronic device displays the traffic statistics information of the other electronic device.
[0193] The implementation of this step can refer to the corresponding description in Figure 4A .
[0194] When the first electronic device displays the mobile traffic consumption query interface shown in, for example, 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 above mobile traffic 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 a corresponding "view" control can also be set for each SIM card.
[0195] When the first electronic device displays the mobile traffic consumption information display interface of the SIM card shown in, for example, interface 420, the first electronic device can obtain the mobile traffic 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 obtain the consumption information required by the above display interface by statistics, such as the mobile traffic consumed by the SIM card in the current billing period, the mobile traffic consumed by the SIM card in each day within 7 days, and the like. The corresponding statistical results are displayed in the mobile traffic consumption information display interface.
[0196] When the first electronic device displays the interface shown in, for example, interface 430, the first electronic device can also obtain the mobile traffic consumed by each application in a specified time period (for example, the current billing period) by statistics according to the mobile traffic consumption information of the SIM card, and display the mobile traffic consumption information of the application in the application's mobile traffic consumption information display interface.
[0197] Optionally, the first electronic device can also display a traffic usage reminder to the user.
[0198] If the mobile traffic consumed by the first phone number or the mobile traffic consumed by a certain device based on the first phone number or the mobile traffic consumed by a certain time period based on the first phone number reaches a preset value, the user can be reminded by sound, vibration, interface display, and the like, to prevent the user from using the traffic excessively.
[0199] Figure 5The flow statistics method shown realizes viewing mobile traffic consumption information of other SIM cards associated with the same telephone number on one electronic device, can view mobile traffic usage of multiple SIM cards associated with the same telephone number on one electronic device, reduces user operation, and improves user experience.
[0200] Figure 8 is a flowchart of an embodiment of the flow statistics method of the present application, which takes the association of the SIM card of a mobile phone and the eSIM card of a smart watch with a first telephone number as an example, and in this embodiment, the mobile phone and the smart watch perform data interaction through direct connection, such as Figure 8 as shown, comprising:
[0201] Step 801: The mobile phone establishes a connection with the smart watch, the mobile phone obtains the device identifier IMEI001 of the smart watch, and the card identifier IMSI001 of the eSIM card in the smart watch.
[0202] Step 802: The first application in the mobile phone detects the user's operation of opening the eSIM for the smart watch, obtains the card identifier IMSI001 of the eSIM card in the smart watch, obtains the first telephone number associated with the eSIM card in the smart watch, and executes the opening process corresponding to the opening operation of the eSIM according to the first telephone number and the card identifier IMSI001 of the eSIM card in the smart watch. The opening process can refer to the foregoing process description of opening the eSIM, which will not be described here.
[0203] Step 803: The first application of the mobile phone sends a first notification message to the traffic management application, and the first notification message can include: the first telephone number, the device identifier IMEI001, and the card identifier IMSI001.
[0204] At this time, the traffic management application can store information such as shown in Table 3 below. Wherein, IMEI002 is the device identifier of the mobile phone, and IMSI002 is the card identifier of the SIM card in the mobile phone.
[0205] Telephone number Device identification Card identification First telephone number IMEI001 IMSI001 First telephone number IMEI002 IMSI002
[0206] Table 3
[0207] Step 804: The traffic management application of the mobile phone stores the correspondence between the above-mentioned first telephone number and the device identifier IMEI001 and the card identifier IMSI001.
[0208] Step 805: The traffic management application of the mobile phone sends a traffic information request message to the smart watch according to the device identifier IMEI001, and the traffic information request message can include: the card identifier IMSI001. The traffic request message is used to request the mobile traffic consumption information of the SIM card indicated by the card identifier IMSI001.
[0209] Step 806: The traffic management application of the smart watch acquires the mobile traffic consumption information corresponding to the card identifier IMSI001, and sends the acquired mobile traffic message information to the traffic management application of the mobile phone.
[0210] Step 807: The traffic management application of the mobile phone stores the mobile traffic consumption information corresponding to the card identifier IMSI001.
[0211] It should be noted that the above steps 805 to 807 can be triggered to be executed according to a preset traffic update period, so that the mobile phone stores the latest mobile traffic consumption information of the eSIM card in the smart watch. The specific value of the traffic update period is not limited in the embodiments of the present application.
[0212] Optionally, the traffic management application of the smart watch can send the traffic statistics information in the smart watch to the mobile phone in step 806, and the traffic management application of the mobile phone can store the traffic statistics information, or retrieve the mobile traffic consumption information according to the card identifier IMSI001 and store it.
[0213] Step 808: The traffic management application of the mobile phone displays a mobile traffic consumption query interface according to the detected user operation, and the interface can display a "view" control corresponding to the SIM card of the mobile phone and a "view" control corresponding to the eSIM card of the smart watch.
[0214] The implementation of the mobile traffic consumption query interface can refer to the interface 410 in, which will not be described here. Figure 4A
[0215] It should be noted that the "view" control corresponding to the SIM card of the mobile phone in the mobile traffic consumption query interface can correspond to the card identifier IMSI002 of the SIM card of the mobile phone, and the "view" control corresponding to the eSIM card of the smart watch can correspond to the card identifier IMSI001 of the eSIM card of the smart watch.
[0216] Step 809: The traffic management application of the mobile phone detects a selection operation on the "view" control corresponding to the eSIM card, acquires the mobile traffic consumption information corresponding to the card identifier IMSI001, and displays a mobile traffic display interface accordingly.
[0217] The implementation of the mobile traffic display interface can refer to the interface 420 in, which will not be described here. Figure 4A
[0218] Step 810: The traffic management application of the mobile phone detects the viewing operation on the application in the smart watch, and generates the mobile traffic consumption information display interface of the application according to the mobile traffic consumption information corresponding to the card identifier IMSI001. The mobile traffic consumption information display interface displays the mobile traffic consumption information of each application in the smart watch, for example, the mobile traffic consumed by each application in the current billing period.
[0219] The implementation of the mobile traffic consumption information display interface of the application can refer to the interface 430 in Figure 4A , which will not be described here.
[0220] Figure 8 The method shown takes the mobile phone and the smart watch as an example, which perform data interaction through direct connection. In another embodiment provided by the present application, the mobile phone and the smart watch can perform data interaction through indirect connection in Figure 8 . The difference between this embodiment and the embodiment shown in Figure 8 is mainly that the connection used for data interaction is different. The specific implementation of this embodiment will not be described here.
[0221] Figure 9 Fig. 6 shows a software structure block diagram of an electronic device provided by an embodiment of the present application. The layered architecture divides the software into several layers, each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom, they are application layer, framework layer, Android runtime and system library, and kernel layer.
[0222] The application layer (Application, App) can include a series of application packages. The application packages can include the first application, the traffic management application and the like described above. In addition, the application layer can be divided into three modules of interface, logic and data, and the modules communicate with each other through software interfaces. Among them, the interface module is used for information display for user interaction; the logic module is used for information processing; and the data module is used for data storage.
[0223] Specifically, as shown in Figure 9 , the interface module includes:
[0224] The UI module is used to display the interfaces described in the foregoing embodiments, such as the mobile traffic consumption query interface, the mobile traffic display interface of the SIM card, the mobile traffic display interface of the application in the device, and the like.
[0225] The logic module includes:
[0226] The one-to-many terminal information management module is used to store information such as the list of telephone numbers associated with SIM cards;
[0227] The multi-terminal traffic information management module is configured to store mobile traffic consumption information of the SIM card associated with the first phone number. The SIM card associated with the first phone number can include a SIM card associated with the first phone number in the local device and a SIM card associated with the first phone number in other electronic devices.
[0228] The local traffic statistics module is configured to perform traffic usage statistics of the local device and record traffic statistics information.
[0229] The UI module, the multi-terminal information management module, the multi-terminal traffic information management module, and the local traffic statistics module can be modules in an application, such as a traffic management application.
[0230] The framework layer (FWK) provides an application programming interface (API) and a programming framework for application programs in the application layer. The application program framework layer includes some pre-defined functions. For example Figure 9 a communication protocol framework as shown in FIG. 1B.
[0231] The system library can include a plurality of functional modules. For example Figure 9 a data transmission module as shown in FIG. 1C.
[0232] The kernel layer is a layer between hardware and software. The kernel layer can include a communication driver and the like.
[0233] In a possible implementation, a schematic diagram of data interaction between two electronic devices is shown in FIG. 1D, for example. Figure 10 In the schematic diagram, the multi-terminal information management modules of the electronic device 1 and the electronic device 2 are directly connected to synchronize the card identifiers of the SIM cards associated with the same phone number. The multi-terminal traffic information management modules of the electronic device 1 and the electronic device 2 are directly connected to synchronize the mobile traffic consumption information of the SIM cards associated with the same phone number.
[0234] In another possible implementation, a schematic diagram of data interaction between two electronic devices is shown in FIG. 1E, for example. Figure 11 In the schematic diagram, the multi-terminal information management modules of the electronic device 1 and the electronic device 2 are indirectly connected through an information relay device to synchronize the card identifiers of the SIM cards associated with the same phone number. The multi-terminal traffic information management modules of the electronic device 1 and the electronic device 2 are indirectly connected through an information relay device to synchronize the mobile traffic consumption information of the SIM cards associated with the same phone number.
[0235] It should be noted that the above Figures 1 to 9The electronic device in the embodiment of the application is provided with a SIM card, which can be a traditional card-type SIM card or an eSIM card, and the embodiment of the application is not limited in this aspect.
[0236] The application further provides an electronic device, which comprises a storage medium and a central processing unit, the storage medium can be a non-volatile storage medium, the storage medium stores a computer executable program, the central processing unit is connected with the non-volatile storage medium and executes the computer executable program to realize the method of the application Figures 1 to 8 The method provided in the embodiment.
[0237] The embodiment of the application further provides a computer readable storage medium, which stores a computer program, and when the computer program is run on a computer, the computer is enabled to execute the method of the application Figures 1 to 8 The method provided in the embodiment.
[0238] The embodiment of the application further provides a computer program product, which comprises a computer program, and when the computer program is run on a computer, the computer is enabled to execute the method of the application Figures 1 to 8 The method provided in the embodiment.
[0239] In the embodiment of the application, "at least one" means one or more, and "multiple" means two or more. The association relationship of the associated objects is described by "and / or", which means that there can be three kinds of relationships, for example, A and / or B, which means that A exists alone, A and B exist simultaneously, and B exists alone. Wherein A and B can be singular or plural. The character " / " generally represents an "or" relationship between the associated objects before and after it. "At least one of the following" and similar expressions mean any combination of these items, including any combination of single or multiple items. For example, at least one of a, b and c can mean a, b, c, a and b, a and c, b and c, or a and b and c, wherein a, b and c can be single or multiple.
[0240] Those skilled in the art can realize that the units and algorithm steps described in the embodiments disclosed herein can be realized by electronic hardware, computer software and combination of electronic hardware and computer software. Whether the functions are realized by hardware or software depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to realize the described functions for each specific application, but such implementation should not be considered beyond the scope of the application.
[0241] Those skilled in the art can clearly understand that, for the convenience and brevity of the description, the specific working process of the system, device and unit described above can refer to the corresponding process in the foregoing method embodiments, which will not be described here.
[0242] In several embodiments provided in the present application, any function, if realized in the form of a software function unit and sold or used as an independent product, can be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application or the parts of the technical solutions that essentially contribute to the prior art can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a plurality of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various media that can store program codes.
[0243] The above description is merely a specific implementation of the present application. Any person skilled in the art can easily think of changes or replacements within the technical scope disclosed in the present application, which should be covered by the protection scope of the present application. The protection scope of the present application should be subject to 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, The first SIM card being associated with the first phone number means that the first SIM card uses the first phone number to access the network; the method includes: A first interface is displayed, and a first control is displayed on the first interface; the first control corresponds to a second SIM card associated with the first phone number; the second SIM card is located in a second electronic device; the second SIM card associated with the first phone number refers to a second SIM card that uses the first phone number to access the network; the second electronic device is directly connected to the first electronic device; Upon detecting a selection operation on the first control, the system obtains the mobile data information corresponding to the second SIM card from the second electronic device based on the direct connection, and displays a second interface based on the mobile data information corresponding to the second SIM card. The second interface displays the mobile data 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, Before displaying the first interface, the method further includes: Obtain the card identifier of the second SIM card; The first display interface includes: The first interface is displayed according to the card identifier of the second SIM card, and the first control corresponds to the card identifier of the second SIM card.
5. 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.
6. The method according to any one of claims 1 to 3, 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.
7. The method according to any one of claims 1 to 3, characterized in that, The second SIM card is an eSIM card.
8. 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 7.
9. 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 7.
Citation Information
Patent Citations
Terminal device network traffic monitoring method and device
CN103905260A
Query method and system for telephone expenses and traffic
CN109413600A
Methods, Procedures and Framework to Provision an eSIM and Make It Multi-SIM Capable Using Primary Account Information
US20170048645A1