WO2023011202A1 - 流量统计方法和电子设备 - Google Patents

流量统计方法和电子设备 Download PDF

Info

Publication number
WO2023011202A1
WO2023011202A1 PCT/CN2022/107063 CN2022107063W WO2023011202A1 WO 2023011202 A1 WO2023011202 A1 WO 2023011202A1 CN 2022107063 W CN2022107063 W CN 2022107063W WO 2023011202 A1 WO2023011202 A1 WO 2023011202A1
Authority
WO
WIPO (PCT)
Prior art keywords
sim card
electronic device
interface
card
mobile
Prior art date
Application number
PCT/CN2022/107063
Other languages
English (en)
French (fr)
Inventor
杨怀毅
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to EP22851916.1A priority Critical patent/EP4354911A1/en
Publication of WO2023011202A1 publication Critical patent/WO2023011202A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/24Accounting or billing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/14Charging, metering or billing arrangements for data wireline or wireless communications
    • H04L12/1432Metric aspects
    • H04L12/1435Metric aspects volume-based
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M15/00Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M15/00Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
    • H04M15/58Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP based on statistics of usage or network monitoring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M15/00Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
    • H04M15/83Notification aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M15/00Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
    • H04M15/83Notification aspects
    • H04M15/84Types of notifications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M15/00Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
    • H04M15/83Notification aspects
    • H04M15/85Notification aspects characterised by the type of condition triggering a notification
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M17/00Prepayment of wireline communication systems, wireless communication systems or telephone systems
    • H04M17/10Account details or usage
    • H04M17/103Account details or usage using SIMs (USIMs) or calling cards

Definitions

  • the present application relates to the technical field of intelligent terminals, in particular to a traffic statistics method and electronic equipment.
  • the subscriber identity module (Subscriber Identity Module, SIM) card of multiple electronic devices of the user can be associated with the same phone number, so that multiple electronic devices can share a phone number and package resources, and can realize independent cellular mobile communication.
  • SIM Subscriber Identity Module
  • multiple electronic devices use the same phone number, each electronic device can use the phone number to make and receive calls, and each electronic device can use the mobile data service associated with the phone number.
  • each electronic device can only count the mobile traffic consumption on the device. If the user wants to know the usage of the traffic package corresponding to a certain phone number, he can only check each electronic device one by one. The mobile traffic on each device consumes data, the operation is cumbersome, and the user experience is poor.
  • the present application provides a traffic statistics method and an electronic device, which can check the mobile traffic usage of other electronic devices associated with the same phone number on one electronic device, reduce user operations, and improve user experience.
  • the present application provides a traffic statistics method, which is applied to a first electronic device, where a first SIM card is set in the first electronic device, and the first SIM card is associated with a first phone number, including: displaying a first interface, The first control is displayed on the first interface; the first control corresponds to the second SIM card associated with the first phone number; the second SIM card is set in the second electronic device; a selection operation for the first control is detected, and the display In the second interface, mobile traffic information corresponding to the second SIM card is displayed on the second interface.
  • the SIM card may be a card-type SIM card or an embedded SIM card or the like.
  • the method can check the mobile data usage of the second electronic device associated with the same phone number on the first electronic device, thereby reducing user operations and improving user experience.
  • the method further includes: displaying the second control on the second interface; detecting a selection operation for the second control, and displaying a third interface, in which each control in the second electronic device is displayed.
  • the mobile traffic information of the application the mobile traffic information corresponding to the application is used to record the mobile traffic consumed by the application through the second SIM card.
  • the second interface displays the mobile traffic information of each application in the second electronic device, and the mobile traffic information of the application is used to record the mobile traffic consumed by the application through the second SIM card.
  • the first interface before displaying the first interface, it also includes: acquiring the card identification of the second SIM card; displaying the first interface includes: displaying the first interface according to the card identification of the second SIM card, the first control Corresponds to the card ID of the second SIM card.
  • the card ID can be IMSI or ICCID.
  • displaying the second interface before displaying the second interface, it also includes: acquiring mobile traffic information corresponding to the second SIM card; displaying the second interface includes: displaying the second interface according to the mobile traffic information corresponding to the second SIM card .
  • obtaining the card identification of the second SIM card includes: obtaining the card identification of the second SIM card from the first server, and the card identification of the second SIM card is transmitted to the first server by the second electronic device ; Or, obtain the card identification of the second SIM card from the second electronic device; or, obtain the card identification of the second SIM card from the first application, and the first application is an application for opening the service associated with the second SIM card associated with the first phone number; Or, acquire the information input by the user from the target interface to obtain the card identifier of the second SIM card.
  • obtaining the mobile traffic information corresponding to the second SIM card includes: obtaining the mobile traffic information corresponding to the second SIM card from the first server, and the mobile traffic information corresponding to the second SIM card is provided by the second electronic The device transmits to the first server; or, the mobile traffic information corresponding to the second SIM card is acquired from the second electronic device.
  • a third control is displayed on the first interface; the third control corresponds to a third SIM card associated with the first phone number; the third SIM card is set in the third electronic device; A selection operation for the third control is detected, and a third interface is displayed, in which mobile traffic information corresponding to the third SIM card is displayed.
  • the second SIM card is an eSIM card.
  • the embodiment of the present application provides an electronic device, including: one or more processors; memory; and one or more computer programs, wherein one or more computer programs are stored in the memory, one or more
  • the computer program includes instructions which, when executed by the device, cause the device to perform the method of any one of the first aspects.
  • an embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored, and when running on a computer, the computer executes the method of any one of the first aspect.
  • the present application provides a computer program for executing the method in the first aspect when the computer program is executed by a computer.
  • all or part of the program in the fourth aspect may be stored on a storage medium packaged with the processor, or part or all may be stored on a memory not packaged with the processor.
  • FIG. 1 is a structural diagram of an embodiment of the electronic device of the present application
  • Fig. 2 is a schematic diagram of the interface realization of the No. 1 multi-terminal service opening process of the application
  • FIG. 3A is a schematic diagram of the direct connection of two electronic devices according to the embodiment of the present application.
  • FIG. 3B is a schematic diagram of the indirect connection of two electronic devices according to the embodiment of the present application.
  • Fig. 3C is a schematic diagram of the indirect connection between smart watches according to the embodiment of the present application.
  • Fig. 3D is an indirect schematic diagram between the mobile phone and the smart watch according to the embodiment of the present application.
  • FIG. 4A is a schematic interface diagram of the traffic statistics method of the present application.
  • FIG. 4B is a flowchart of an embodiment of the traffic statistics method of the present application.
  • Fig. 5 is a flow chart of another embodiment of the traffic statistics method of the present application.
  • FIG. 6 is a schematic diagram of the data stored in the designated server of this application.
  • Figure 7 is a schematic diagram of the user setting interface of this application.
  • FIG. 8 is a flowchart of another embodiment of the traffic statistics method of the present application.
  • Fig. 9 is a schematic diagram of the software structure of the electronic device of the present application.
  • FIG. 10 is a schematic diagram of data interaction between modules of two electronic devices of the present application through direct connection
  • FIG. 11 is a schematic diagram of data interaction between modules of two electronic devices in the present application through an indirect connection.
  • Embedded SIM card (Embedded-SIM, eSIM):
  • the concept of the eSIM card is to embed the functions of the traditional SIM card directly on the device chip, instead of being added to the device as an independent removable part, and the user does not need to insert a physical SIM card.
  • This approach will allow users to choose operator packages more flexibly, or change operators at any time without unlocking the device and purchasing a new device.
  • the establishment of a common eSIM standard in the future will save more mobile device usage costs for ordinary consumers and business users, and bring more convenience and security.
  • IMSI International Mobile Subscriber Identity
  • IMSI is an identification code that is used to distinguish different users in a cellular network and is not repeated in all cellular networks.
  • the phone stores the IMSI in a 64-bit field and sends it to the network.
  • the IMSI can be used to query user information in a Home Location Register (Home Location Register, HLR) or a Visitor Location Register (Visitor Location Register, VLR).
  • HLR Home Location Register
  • VLR Visitor Location Register
  • TMSI Temporary Mobile Subscriber Identity
  • the IMSI is generally stored in the SIM card.
  • Mobile data traffic refers to data traffic transmitted through General Packet Radio Service (GPRS), Enhanced Data Rate for GSM Evolution (EDGE), Time Division Synchronous Code Division Multiple Access (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 ) and other mobile communication technologies to access the Internet or use related data value-added services to generate data traffic.
  • GPRS General Packet Radio Service
  • EDGE Enhanced Data Rate for GSM Evolution
  • TD-SCDMA Time Division Synchronous Code Division Multiple Access
  • HSDPA High Speed Downlink Packet Access
  • WCDMA Wideband Code Division Multiple Access
  • LTE Long Term Evolution
  • Mobile data traffic generally does not include the traffic generated by accessing the Internet through wireless local area network (Wireless Local Area Network, WLAN), circuit switched data service (Circuit Switch Data, CSD) and other methods, and does not include data value-added services charged by content (such as MMS, number book manager, full song download, newsletter, etc.) does not include the data traffic generated by group customers and industry applications.
  • wireless local area network Wireless Local Area Network, WLAN
  • circuit switched data service Circuit Switch Data, CSD
  • content such as MMS, number book manager, full song download, newsletter, etc.
  • multiple electronic devices share a phone number and package resource to realize independent cellular mobile communication.
  • multiple electronic devices use the same number, each electronic device can use this number to make and receive calls, and each electronic device can use the traffic service associated with this number.
  • the mobile phone, smart watch, and vehicle-mounted terminal share the package resources and superimposed flow meter of the phone number, and the tariff standard outside the package is the same; if Make a call to the user's phone number, and the mobile phone, smart watch, and vehicle-mounted terminal associated with the phone 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 the mobile phone, smart watch, and vehicle-mounted terminal Any device in the phone can make a call; whether it is the calling or the called, the phone number presented to the outside is the phone number, which prevents the user from managing multiple phone numbers on multiple electronic devices and brings great convenience to the user.
  • 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, he can only check the traffic consumption data one by one electronic device, and the operation is cumbersome. , poor user experience.
  • the present application proposes a traffic statistics method and electronic equipment, which can check the traffic usage status of other electronic equipment on one electronic equipment, reduce user operations, and improve user experience.
  • the method provided in the embodiment of the present application can be applied to electronic devices, which have built-in SIM cards, such as mobile phones, vehicle-mounted devices, wearable devices such as smart glasses, smart watches, and so on.
  • SIM cards such as mobile phones, vehicle-mounted devices, wearable devices such as smart glasses, smart watches, and so on.
  • the aforementioned SIM card may be a card-type SIM card (that is, the aforementioned traditional SIM card), or an eSIM card, and the like.
  • FIG. 1 shows a schematic structural diagram of an electronic device 100 .
  • the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, and an antenna 2 , mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, and A subscriber identification module (subscriber identification module, SIM) card interface 195 and the like.
  • SIM subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air 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, bone conduction sensor 180M, etc.
  • the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100 .
  • the electronic device 100 may include more or fewer components than shown in the figure, or combine certain components, or separate certain components, or arrange different components.
  • the illustrated components can be realized in hardware, software or a combination of software and hardware.
  • the processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU), etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
  • application processor application processor, AP
  • modem processor graphics processing unit
  • GPU graphics processing unit
  • image signal processor image signal processor
  • ISP image signal processor
  • controller video codec
  • digital signal processor digital signal processor
  • baseband processor baseband processor
  • neural network processor neural-network processing unit
  • the controller can generate an operation control signal according to the instruction opcode and timing signal, and complete the control of fetching and executing the instruction.
  • a memory may also be provided in the processor 110 for storing instructions and data.
  • the memory in processor 110 is a cache memory.
  • the memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated access is avoided, and the waiting time of the processor 110 is reduced, thus improving the efficiency of the system.
  • processor 110 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transmitter (universal asynchronous receiver/transmitter, UART) interface, mobile industry processor interface (mobile industry processor interface, MIPI), general-purpose input and output (general-purpose input/output, GPIO) interface, subscriber identity module (subscriber identity module, SIM) interface, and /or universal serial bus (universal serial bus, USB) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transmitter
  • MIPI mobile industry processor interface
  • GPIO general-purpose input and output
  • subscriber identity module subscriber identity module
  • SIM subscriber identity module
  • USB universal serial bus
  • the I2C interface is a bidirectional synchronous serial bus, including a serial data line (serial data line, SDA) and a serial clock line (derail clock line, SCL).
  • processor 110 may include multiple sets of I2C buses.
  • the processor 110 can be respectively coupled to the touch sensor 180K, the charger, the flashlight, the camera 193 and the like through different I2C bus interfaces.
  • the processor 110 may be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 and the touch sensor 180K communicate through the I2C bus interface to realize the touch function of the electronic device 100 .
  • the I2S interface can be used for audio communication.
  • processor 110 may include multiple sets of I2S buses.
  • the processor 110 may be coupled to the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170 .
  • the audio module 170 can transmit audio signals to the wireless communication module 160 through the I2S interface, so as to realize the function of answering calls through the Bluetooth headset.
  • the PCM interface can also be used for audio communication, sampling, quantizing and encoding the analog signal.
  • the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface.
  • the audio module 170 can also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
  • the UART interface is a universal 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.
  • a UART interface is generally used to connect the processor 110 and the wireless communication module 160.
  • the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to realize the Bluetooth function.
  • the audio module 170 can transmit audio signals to the wireless communication module 160 through the UART interface, so as to realize the function of playing music through the Bluetooth headset.
  • the MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193 .
  • MIPI interface includes camera serial interface (camera serial interface, CSI), display serial interface (display serial interface, DSI), etc.
  • the processor 110 communicates with the camera 193 through the CSI interface to realize the shooting function of the electronic device 100 .
  • the processor 110 communicates with the display screen 194 through the DSI interface to realize the display function of the electronic device 100 .
  • the GPIO interface can be configured by software.
  • the GPIO interface can be configured as a control signal or as a data signal.
  • the GPIO interface can be used to connect the processor 110 with the camera 193 , the display screen 194 , the wireless communication module 160 , the audio module 170 , the sensor module 180 and so on.
  • the GPIO interface can also be configured as an I2C interface, I2S interface, UART interface, MIPI interface, etc.
  • the USB interface 130 is an interface conforming to the USB standard specification, specifically, it can be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like.
  • the USB interface 130 can be used to connect a charger to charge the electronic device 100 , and can also be used to transmit data between the electronic device 100 and peripheral devices. It can also be used to connect headphones and play audio through them. This interface can also be used to connect other electronic devices, such as AR devices.
  • the interface connection relationship between the modules shown in the embodiment of the present invention is only a schematic illustration, and does not constitute a structural limitation of the electronic device 100 .
  • the electronic device 100 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
  • the charging management module 140 is configured to receive a charging input from a charger.
  • the charger may be a wireless charger or a wired charger.
  • the charging management module 140 can receive charging input from the wired charger through the USB interface 130 .
  • the charging management module 140 may receive a wireless charging input through a wireless charging coil of the electronic device 100 . While the charging management module 140 is charging the battery 142 , it can also provide power for electronic devices through the power management module 141 .
  • the power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 .
  • the power management module 141 receives the input from the battery 142 and/or the charging management module 140 to provide power for 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 used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance).
  • the power management module 141 may also be disposed in the processor 110 .
  • the power management module 141 and the charging management module 140 may also be set in the same device.
  • the wireless communication function of the electronic device 100 can be realized by the antenna 1 , the antenna 2 , the mobile communication module 150 , the wireless communication module 160 , a modem processor, a baseband processor, and the like.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in electronic device 100 may be used to cover single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas.
  • Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
  • the antenna may be used in conjunction with a tuning switch.
  • the mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G applied on the electronic device 100.
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA) and the like.
  • the mobile communication module 150 can receive electromagnetic waves through the antenna 1, filter and amplify the received electromagnetic waves, and send them to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signals modulated by the modem processor, and convert them into electromagnetic waves through the antenna 1 for radiation.
  • at least part of the functional modules of the mobile communication module 150 may be set in the processor 110 .
  • at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be set in the same device.
  • a modem processor may include a modulator and a demodulator.
  • the modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator sends the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the low-frequency baseband signal is passed to the application processor after being processed by the baseband processor.
  • the application processor outputs sound signals through audio equipment (not limited to speaker 170A, receiver 170B, etc.), or displays images or videos through display screen 194 .
  • the modem processor may be a stand-alone device.
  • the modem processor may be independent from the processor 110, and be set in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide wireless local area networks (wireless local area networks, WLAN) (such as wireless fidelity (Wireless Fidelity, Wi-Fi) network), bluetooth (bluetooth, BT), global navigation satellite, etc. applied on the electronic device 100.
  • System global navigation satellite system, GNSS
  • frequency modulation frequency modulation, FM
  • near field communication technology near field communication, NFC
  • infrared technology infrared, IR
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency-modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110 , frequency-modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
  • the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC , FM, and/or IR techniques, etc.
  • GSM global system for mobile communications
  • GPRS general packet radio service
  • code division multiple access code division multiple access
  • CDMA broadband Code division multiple access
  • WCDMA wideband code division multiple access
  • time division code division multiple access time-division code division multiple access
  • TD-SCDMA time-division code division multiple access
  • the GNSS may include a global positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a Beidou navigation satellite system (beidou navigation satellite system, BDS), a quasi-zenith satellite system (quasi -zenith satellite system (QZSS) and/or satellite based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • Beidou navigation satellite system beidou navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite based augmentation systems
  • the electronic device 100 realizes the display function through the GPU, the display screen 194 , and the application processor.
  • the GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
  • the display screen 194 is used 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 or an active matrix organic light emitting diode (active-matrix organic light emitting diode, AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diodes (quantum dot light emitting diodes, QLED), etc.
  • the electronic device 100 may include 1 or N display screens 194 , where N is a positive integer greater than 1.
  • the electronic device 100 can realize the shooting function through the ISP, the camera 193 , the video codec, the GPU, the display screen 194 and the application processor.
  • the ISP is used for processing the data fed back by the camera 193 .
  • the light is transmitted to the photosensitive element of the camera through the lens, and the light signal is converted into an electrical signal, and the photosensitive element of the camera transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye.
  • ISP can also perform algorithm optimization on image noise, brightness, and skin color.
  • ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP may be located in the camera 193 .
  • Camera 193 is used to capture still images or video.
  • the object generates an optical image through the lens and projects it to the photosensitive element.
  • the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the light signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal.
  • the ISP outputs the digital image signal to the DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other image signals.
  • the electronic device 100 may include 1 or N cameras 193 , where N is a positive integer greater than 1.
  • Digital signal processors are used to process digital signals. In addition to digital image signals, they 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 energy of the frequency point.
  • Video codecs are used to compress or decompress digital video.
  • the electronic device 100 may support one or more video codecs.
  • the electronic device 100 can play or record videos in various encoding formats, for example: moving picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4 and so on.
  • MPEG moving picture experts group
  • the NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • Applications such as intelligent cognition of the electronic device 100 can be realized through the NPU, such as image recognition, face recognition, speech recognition, text understanding, and the like.
  • the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, so as 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 implement a data storage function. Such as saving music, video and other files in the external memory card.
  • the internal memory 121 may be used to store computer-executable program codes including instructions.
  • the internal memory 121 may include an area for storing programs and an area for storing data.
  • the stored program 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.) and the like.
  • the storage data area can store data created during the use of the electronic device 100 (such as audio data, phonebook, etc.) and the like.
  • the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (universal flash storage, UFS) and the like.
  • the processor 110 executes various functional applications and data processing of the electronic device 100 by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
  • the electronic device 100 can implement audio functions through the audio module 170 , the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. Such as music playback, recording, etc.
  • the audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal.
  • the audio module 170 may also be used to encode and decode audio signals.
  • the audio module 170 may be set in the processor 110 , or some functional modules of the audio module 170 may be set in the processor 110 .
  • Speaker 170A also referred to as a "horn" is used to convert audio electrical signals into sound signals.
  • Electronic device 100 can listen to music through speaker 170A, or listen to hands-free calls.
  • Receiver 170B also called “earpiece” is used to convert audio electrical signals into sound signals.
  • the receiver 170B can be placed close to the human ear to receive the voice.
  • the microphone 170C also called “microphone” or “microphone” is used to convert sound signals into electrical signals. When making a phone call or sending a voice message, the user can put his mouth close to the microphone 170C to make a sound, and input the sound signal to the microphone 170C.
  • the electronic device 100 may be provided with at least one microphone 170C. In some other embodiments, the electronic device 100 may be provided with two microphones 170C, which may also implement a noise reduction function in addition to collecting sound signals. In some other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and realize directional recording functions, etc.
  • the earphone interface 170D is used for connecting wired earphones.
  • the earphone interface 170D can be a USB interface 130, or a 3.5mm open mobile terminal platform (OMTP) standard interface, or a cellular telecommunications industry association of the USA (CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA cellular telecommunications industry association of the USA
  • the pressure sensor 180A is used to sense the pressure signal and convert the pressure signal into an electrical signal.
  • pressure sensor 180A may be disposed on display screen 194 .
  • a capacitive pressure sensor may be comprised of at least two parallel plates with conductive material.
  • the electronic device 100 determines the intensity of pressure according to the change in capacitance.
  • the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A.
  • the electronic device 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A.
  • touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions.
  • the gyro sensor 180B can be used to determine the motion posture of the electronic device 100 .
  • the angular velocity of the electronic device 100 around three axes may be determined by the gyro sensor 180B.
  • the gyro sensor 180B can be used for image stabilization. Exemplarily, when the shutter is pressed, the gyro sensor 180B detects the shake angle of the electronic device 100, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to counteract the shake of the electronic device 100 through reverse movement to achieve anti-shake.
  • the gyro sensor 180B can also be used for navigation and somatosensory game scenes.
  • the air pressure sensor 180C is used to measure air pressure.
  • the electronic device 100 calculates the altitude based on the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
  • the magnetic sensor 180D includes a Hall sensor.
  • the electronic device 100 may use the magnetic sensor 180D to detect the opening and closing of the flip leather case.
  • the electronic device 100 when the electronic device 100 is a clamshell machine, the electronic device 100 can detect opening and closing of the clamshell according to the magnetic sensor 180D.
  • features such as automatic unlocking of the flip cover are set.
  • the acceleration sensor 180E can detect the acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic devices, and can be used in applications such as horizontal and vertical screen switching, pedometers, etc.
  • the distance sensor 180F is used to measure the distance.
  • the electronic device 100 may measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 may use the distance sensor 180F for distance measurement to achieve fast focusing.
  • Proximity light sensor 180G may include, for example, light emitting diodes (LEDs) and light detectors, such as photodiodes.
  • the light emitting diodes may be infrared light emitting diodes.
  • the electronic device 100 emits infrared light through the light emitting diode.
  • Electronic device 100 uses photodiodes to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it may be determined that there is an object near the electronic device 100 . When insufficient reflected light is detected, the electronic device 100 may determine that there is no object near the electronic device 100 .
  • the electronic device 100 can use the proximity light sensor 180G to detect that the user is holding the electronic device 100 close to the ear to make a call, so as to automatically turn off the screen to save power.
  • the proximity light sensor 180G can also be used in leather case mode, automatic unlock and lock screen in pocket mode.
  • the ambient light sensor 180L is used for sensing ambient light brightness.
  • the electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness.
  • the ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures.
  • the ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in the pocket, so as to prevent accidental touch.
  • the fingerprint sensor 180H is used to collect fingerprints.
  • the electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access to application locks, take pictures with fingerprints, answer incoming calls with fingerprints, and the like.
  • the temperature sensor 180J is used to detect temperature.
  • the electronic device 100 uses the temperature detected by the temperature sensor 180J to implement a temperature treatment strategy. For example, when the temperature reported by the temperature sensor 180J exceeds the threshold, the electronic device 100 may reduce the performance of the processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection.
  • the electronic device 100 when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to prevent the electronic device 100 from being shut down abnormally due to the low temperature.
  • the electronic device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
  • the touch sensor 180K is also called “touch device”.
  • the touch sensor 180K can be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”.
  • the touch sensor 180K is used to detect a touch operation on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • Visual output related to the touch operation can be provided through the display screen 194 .
  • the touch sensor 180K may also be disposed on the surface of the electronic device 100 , which is different from the position of the display screen 194 .
  • the bone conduction sensor 180M can acquire vibration signals. In some embodiments, the bone conduction sensor 180M can acquire the vibration signal of the vibrating bone mass of the human voice. The bone conduction sensor 180M can also contact the human pulse and receive the blood pressure beating signal. In some embodiments, the bone conduction sensor 180M can also be disposed in the earphone, combined into a bone conduction earphone.
  • the audio module 170 can analyze the voice signal based on the vibration signal of the vibrating bone mass of the vocal part acquired by the bone conduction sensor 180M, so as to realize the voice function.
  • the application processor can analyze the heart rate information based on the blood pressure beating signal acquired by the bone conduction sensor 180M, so as to realize the heart rate detection function.
  • the keys 190 include a power key, a volume key and the like.
  • the key 190 may be a mechanical key. It can also be a touch button.
  • the electronic device 100 can receive key input and generate key signal input related to user settings and function control of the electronic device 100 .
  • the motor 191 can generate a vibrating reminder.
  • the motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback.
  • touch operations applied to different applications may correspond to different vibration feedback effects.
  • the motor 191 may also correspond to different vibration feedback effects for touch operations acting on different areas of the display screen 194 .
  • Different application scenarios for example: time reminder, receiving information, alarm clock, games, etc.
  • the touch vibration feedback effect can also support customization.
  • the indicator 192 can be an indicator light, and can be used to indicate charging status, power change, and can also be used to indicate messages, missed calls, notifications, and the like.
  • the SIM card interface 195 is used for connecting a SIM card.
  • the SIM card can be connected and separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195 .
  • the electronic device 100 may support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
  • SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card etc. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards may be the same or different.
  • the SIM card interface 195 is also compatible with different types of SIM cards.
  • the SIM card interface 195 is also compatible with external memory cards.
  • the electronic device 100 interacts with the network through the SIM card to implement functions such as calling and data communication.
  • the electronic device 100 adopts an eSIM, that is, an embedded SIM card.
  • the eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100 .
  • the software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. Specifically, it can be Android system, Hongmeng system and so on.
  • the phone number associated with the SIM card of the mobile phone is assumed to be: 12345678900. It should be noted that there may be two or more SIM cards in the mobile phone, and the SIM card of the mobile phone in this application may be any SIM card in the mobile phone.
  • the user downloads and installs the application 1 for activating the one-number multi-terminal service in the mobile phone, and opens the interface 210 shown in Figure 2 in the application 1, for example, the interface 210 shows a list of devices connected to the mobile phone, including "smart watch” , the user selects the "Activate eSIM Online” control corresponding to the smart watch.
  • the user can enter the interface 220 shown in FIG. It shows the phone number "12345678900" to be associated.
  • the device identifier can be IMEI; the card identifier of the eSIM card can be an integrated circuit card identity (Integrate circuit card identity, ICCID), or an IMSI, or an embedded universal integrated circuit card identity (embedded UICC identity, EUICC ID )wait.
  • ICCID integrated circuit card identity
  • EUICC ID embedded universal integrated circuit card identity
  • the above-mentioned device identification and card identification can be obtained by the application 1 from the smart watch through the mobile phone, or can be manually filled in by the user, etc., which are not limited here.
  • the above-mentioned phone number to be associated can be manually filled in by the user; or, application 1 can obtain the phone number associated with the SIM card in the mobile phone from the application 2 used to manage the SIM card in the mobile phone, and then automatically display it on the interface 220 Or, if multiple SIM cards are included in the mobile phone, the main SIM card can be set in the multiple SIM cards, and the application 1 can obtain the phone number associated with the main SIM card from the application 2 of the mobile phone, thereby automatically displaying it on the interface 220 .
  • the user selects the "confirm” control on the interface 220.
  • the application 1 of the mobile phone receives the user's selection operation on the "confirm” control, and sends a one-number multi-terminal service request message to the operator's server.
  • the message can carry: phone number 12345678900, the card identification of the eSIM in the smart watch (such as IMSI or ICCID or EUICC ID); optionally, it can also carry: the device identification of the smart watch (such as IMEI).
  • the server side of the operator receives the above-mentioned No. 1 multi-terminal service request message, completes the activation process of the No. 1 multi-terminal service, and feeds back a confirmation message to the application 1 of the mobile phone;
  • the application 1 of the mobile phone displays the interface 230 shown in FIG. 2 to the user, and prompts the user that the one-number multi-terminal service is successfully handled.
  • the application 1 of the mobile phone can feed back a notification message of successful handling of the No. 1 multi-terminal business to the smart watch.
  • the above only shows the process and interface associated with the traffic statistics of the embodiment of the application in the process of the user handling the one-number multi-terminal service, and is not intended to limit the handling process of the one-number multi-terminal service.
  • the process may also include other possible processes such as reading the business description, inputting the name and ID number by the user, and downloading the eSim Profile to the eSIM card by the smart watch. I will not repeat them here. .
  • an eSIM card of an electronic device is associated with a phone number
  • the electronic device is associated with the phone number
  • an eSIM card of a mobile phone is associated with a phone number 12345678900, also called a mobile phone
  • the electronic device 1 and the electronic device 2 associated with the same phone number can directly establish a connection through NFC, Bluetooth, or WiFi, and exchange data through the connection.
  • NFC wireless Fidelity
  • WiFi wireless Fidelity
  • the connection established between the foregoing two electronic devices is referred to as a direct connection.
  • the electronic device 1 and the electronic device 2 can be connected to the data transfer device respectively, then the data interaction between the electronic device 1 and the electronic device 2 can be realized through the data transfer device, and this connection method can also be called as between two electronic devices. Indirect connection through data relay equipment. For ease of description, this connection is also referred to as an indirect connection in this embodiment of the application.
  • the above-mentioned data transfer device is a server, such as a cloud server.
  • the electronic device can log in to the server with an account through a network connection, and establish a connection with the server. If the user logs in to the server with the same account on two electronic devices, the server can forward the data of one electronic device to another based on the same account. an electronic device.
  • the above-mentioned data transfer device is an electronic device associated with the same phone number as the above-mentioned two electronic devices.
  • the mobile phone, smart watch 1 and smart watch 2 are associated with the same phone number, the smart watch 1 establishes a Bluetooth connection with the mobile phone, and the smart watch 2 establishes a Bluetooth connection with the mobile phone, then the smart watch 1 Data interaction with the smart watch 2 can be performed through the mobile phone.
  • the above-mentioned direct connection and indirect connection may coexist, or may be switched to each other.
  • the mobile phone and the smart watch can be directly connected through Bluetooth.
  • the mobile phone uses the account 1 to log in to the server through the network connection
  • the smart watch uses the account 1 to log in to the server through the network connection.
  • the following describes the statistical information of the usage of mobile traffic data in the electronic device in the traffic statistics method of the present application.
  • the electronic device can collect statistics on the information that each application uses different network interfaces to transmit data in each time period.
  • Table 1 includes fields such as "time period”, “network port”, “application identifier” and “data volume”.
  • the network port field is used to record the data transmission method used by the application.
  • the data transmission method may include but is not limited to mobile traffic mode, WLAN mode, Bluetooth mode, etc. Assuming that port #1 in Table 1 represents the mobile traffic mode using eSIM card, Port #2 means WLAN mode, and port #3 means Bluetooth mode.
  • the application identification field is used to record the identification of the application. Amount of data is used to record the amount of data transferred.
  • the first record indicates: from 1 o'clock to 2 o'clock, application A sends 2.3M data using mobile traffic.
  • 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 then calculate the consumption of the electronic device within a specified time period (such as a billing cycle) based on the above consumption information.
  • information such as the total amount of mobile traffic, the total amount of mobile traffic consumed by each application within a specified period of time (for example, a billing cycle).
  • SIM cards can be set in the electronic device.
  • different SIM cards used by the traffic can be distinguished through different values of the network port, and the electronic device can also be obtained through different values of the network port.
  • the mobile data consumed by each application through a certain SIM card.
  • FIG. 4A is a schematic interface diagram of the traffic statistics method of the present application.
  • telephone number 1 is associated with three SIM cards from the SIM card of device 1 to the SIM card of device 3 as an example.
  • the interface shown in Fig. 4A is an example of the interface displayed on device 1 .
  • the traffic statistics method in this embodiment of the present application can be executed by an application in an electronic device.
  • the application used for mobile traffic statistics and display in an electronic device is called a traffic management application.
  • the above-mentioned traffic management application can be, for example, an The Settings app.
  • interface 410 in FIG. 4A it is an example diagram of the mobile data consumption query interface provided in the traffic management application.
  • the interface 410 shows a list of SIM cards associated with the No. 1 multi-terminal service. For example, in FIG. 4A , there are 3 SIM cards, which are the SIM card of device 1 to the SIM card of device 3.
  • the traffic management application can display the mobile traffic consumption information display interface of the SIM card of device 2, For example, as shown in interface 420 in FIG. 4A .
  • the mobile data consumption information display interface of device 2 can be used to display the total amount of mobile data consumed by the SIM card of device 2, the total amount of mobile data consumed by device 2 every day, and other mobile data consumption information. 2 Statistical chart of mobile traffic consumed every day in the last 7 days, the total amount of mobile traffic consumed by device 2 is 403.90MB, etc.
  • controls for triggering mobile data query consumed by applications in the device 2 may also be displayed, for example, the "view" control 421 in the interface 420, the user selects the "view” control 421, traffic management
  • the application can display the mobile data consumption information display interface of the application in the device 2, for example, as shown in the interface 430 of FIG. 4A , which shows the total amount of mobile data consumed by each application installed in the device 2 through the SIM.
  • the interface 420 may not display the mobile data query control consumed by the applications in the device 2, but the mobile data consumed by each application displayed on the interface 430 through the SIM is directly displayed on the interface 420, for example, as shown in the interface 440 .
  • the mobile traffic consumption information displayed on the interface in FIG. 4A may be the mobile traffic consumption information in one billing cycle of an operator, so that the display of the above consumption information is more targeted, and it is helpful for users to understand a billing cycle. It is more helpful in cases where mobile data is consumed during billing cycles.
  • the mobile data consumption information displayed on the interface in FIG. 4A may also include mobile data consumption information that is not counted according to the billing cycle, which is not limited in this application.
  • FIG 4B is a flowchart of an embodiment of the traffic statistics method of the present application, which can be applied to the first electronic device, the first electronic device is provided with a first SIM card, and the first SIM card is associated with a first phone number; as shown in Figure 4B , the method may include:
  • Step 401 The first electronic device displays a first interface, 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 set in the second electronic device.
  • the first interface may be the aforementioned mobile data consumption query interface, such as interface 410 .
  • the first control may be a “view” control corresponding to the device 2 and the device 3 in the interface 410 .
  • Step 402 The first electronic device detects a selection operation on the first control, and displays a second interface in which mobile traffic information corresponding to the second SIM card is displayed.
  • the second interface may be the aforementioned interface for displaying mobile data consumption information of the SIM card, such as interface 420 .
  • a second control may also be displayed on the second interface, and the method may further include step 403 .
  • Step 403 The first electronic device detects a selection operation on the second control, and displays a third interface, in which is displayed mobile data information consumed by applications in the second electronic device through the second SIM card.
  • the second control may be the aforementioned "view" control 421;
  • the third interface may be an application display interface of mobile traffic consumption information, such as the interface 430.
  • no second control may be set in the second interface, but the mobile traffic information consumed by each application in the second electronic device through the second SIM card is directly displayed.
  • the traffic statistics method shown in Fig. 4B realizes checking the mobile traffic consumed by the second electronic device through the second SIM card on the first electronic device, and then can also check the mobile traffic consumed by each application in the second electronic device through the second SIM card Mobile traffic reduces user operations and improves user experience.
  • FIG. 5 it is a flowchart of an embodiment of the traffic statistics method of the present application.
  • the first electronic device is provided with a first SIM card, and the first SIM card is associated with a first phone number.
  • the first electronic device may include only the first SIM card, or may include multiple SIM cards, and the first SIM card is any one of the above multiple SIM cards.
  • the user can query the mobile data consumption information of multiple SIMs associated with the same phone number from the first electronic device as an example.
  • the method may include:
  • Step 501 The first electronic device stores card identifiers of multiple Sim cards associated with the first phone number.
  • the above-mentioned card identifier of the SIM card may be the IMSI or ICCID of the SIM card.
  • the first electronic device may also store device identifiers of the electronic devices where the above-mentioned multiple SIM cards are located, and the above-mentioned device identifiers may be IMEIs of the electronic devices.
  • the second SIM card is set in the second electronic device, the card identifier of the first SIM card is IMSI001, and the second SIM card If the card ID of the SIM card is IMSI002, the following information may be stored in the first electronic device:
  • 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 the second phone number, and the second phone number is associated with the third SIM card (assuming that the card ID is IMSI003) and the fourth SIM card.
  • SIM card (assuming that the card identification is IMSI004)
  • the fourth SIM card is set in the third electronic device, then the following information may be stored in the first electronic device:
  • the SIM card list associated with the first phone number IMSI001, IMSI002;
  • the first electronic device may acquire the card identifier of the SIM card associated with the first phone number from a designated server.
  • Each electronic device associated with the same phone number can access the designated server separately, and send the card identification of the SIM card in the device and the associated phone number to the designated server; correspondingly, the designated server can store multiple phone numbers associated with the phone number based on the phone number. The card ID of the SIM card. Therefore, each electronic device associated with the same phone number can obtain the card identification of other SIM cards from the designated server.
  • the SIM card of device 1 to the SIM card of device 4 are respectively associated with mobile phone number A, and device 1 to device 4 can respectively access the designated server, and send the card ID of the SIM card in the device and the mobile phone number A associated with the SIM card To the designated server;
  • the SIM card of device 5 ⁇ the SIM card of device 6 are associated with mobile phone number B, and device 5 and device 6 can respectively access the designated server, and send the card ID of the SIM card in this device and the associated mobile phone number B to the designated server Server;
  • the data shown in Figure 6 is stored in the specified server:
  • devices 1 to 4 can query the designated server for the list of SIM cards corresponding to mobile phone number A
  • devices 5 and 6 can query the designated server for the list of SIM cards corresponding to mobile phone B.
  • the electronic device can access the above-mentioned specified server through an account, and the above-mentioned SIM card list in the specified server can correspond to the account, and only devices that log in to the corresponding account can access the specified server and obtain the list of SIM cards corresponding to the account.
  • the electronic device can access the above-mentioned specified server through an account, and the above-mentioned SIM card list in the specified server can correspond to the account, and only devices that log in to the corresponding account can access the specified server and obtain the list of SIM cards corresponding to the account.
  • the user logs in account 1 in devices 1 to 4 respectively, and devices 1 to 4 can access the designated server through this 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 corresponding relationship of the following information is stored in the specified server:
  • the device can access the designated server through account 1, and query the eSIM card list corresponding to account 1 from the designated server [IMSI(1), IMSI(2), IMSI( 3), IMSI(4)].
  • the first electronic device may acquire the card identification of the SIM card in the other electronic device from the other electronic device associated with the first phone number.
  • the first electronic device and the second electronic device can be directly connected through NFC, Bluetooth, WiFi, etc., and the first electronic device and the second electronic device determine through the direct connection that both devices are associated with the first phone number, then the device The card identification of the SIM card associated with the first phone number is sent to the peer electronic device.
  • 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.
  • the card identification of the first SIM card of a phone number is sent to the smart watch, and the smart watch sends the card identification of the SIM card associated with the first phone number in the smart watch to the mobile phone.
  • the first electronic device can obtain the associated first phone number from application 1.
  • Card ID of the SIM card for the number can be installed in the mobile phone, then the traffic management application in the mobile phone can obtain the card identification of other SIM cards associated with the first phone number from application 1, and the above-mentioned other SIM cards refer to the SIM card associated with the first phone number SIM cards other than the first SIM card in the card.
  • the first electronic device may provide the user with a user setting interface 710 such as shown in FIG. logo.
  • the execution timing for the first electronic device to obtain the card identification of other SIM cards may include but not limited to: when the first electronic device activates the SIM card multi-terminal service, or when the SIM card is inserted into the first electronic device After, or, when the SIM in the first electronic device is replaced, and so on.
  • Step 502 The first electronic device stores mobile traffic consumption information of the first SIM card.
  • the first electronic device may store, for example, traffic statistics information shown in Table 1 above, where the traffic statistics information includes mobile traffic consumption information of the first SIM card.
  • the mobile data consumption information may include but not limited to: mobile data consumed by the first electronic device through the first SIM card; mobile data consumed by applications in the first electronic device through the first SIM card, and so on.
  • the above mobile traffic consumption information may be information on mobile traffic consumed in the current billing period.
  • Step 503 The first electronic device obtains and stores mobile data consumption information of other SIM cards associated with the first phone number.
  • the first electronic device may acquire the mobile traffic consumption information of the other SIM card from a designated server.
  • Each electronic device associated with the same phone number can respectively access the designated server, 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. Therefore, each electronic device associated with the same phone number can obtain the traffic statistics information of other electronic devices from the designated server.
  • the designated server can separately store the traffic statistics information of each electronic device, and can also combine the traffic statistics information of multiple electronic devices associated with the same phone number to obtain, for example, the traffic statistics information shown in Table 2 below, where device 1 ⁇ Device 3 is associated with the same phone number.
  • the designated server may send the combined traffic statistics information shown in Table 2 to the corresponding device 1 , device 2 and device 3 .
  • each electronic device associated with the same phone number can periodically upload traffic statistics information to a designated server, and perform an analysis of the traffic statistics information stored in the designated server. Update; it is also possible to periodically download the traffic statistics information of other electronic devices from the designated server.
  • the data upload period and the data download period may be the same or different. The specific value of the foregoing cycle is not limited in this embodiment of the present application.
  • the electronic device sends traffic statistics information to the designated server as an example.
  • the electronic device can also only send the mobile traffic consumption information of the SIM card to the designated server.
  • each electronic device can obtain other electronic devices from the designated server. Mobile data consumption information for the device.
  • the first electronic device may acquire mobile traffic consumption information of other SIM cards from other electronic devices associated with the first phone number.
  • a direct connection can be established between the first electronic device and the second electronic device, data interaction can be performed through the direct connection, the SIM of the peer device is associated with the first phone number, and the mobile traffic consumption information of the SIM card in the device is sent to the peer End device, or send the traffic statistics information of this device to the peer device.
  • the first electronic device may perform statistics and merge processing on the traffic statistics information of its own device and the traffic statistics information of other electronic devices, to obtain, for example, the merge processing shown in Table 2 above result.
  • the first electronic device may also perform statistics and merge processing on the mobile traffic consumption information of multiple SIM cards.
  • the specific method may refer to the implementation of statistics and merge processing on traffic statistics information, which will not be repeated here.
  • the first electronic device may support the above two possible implementation manners at the same time, so that the first electronic device can obtain the mobile traffic consumption information of other SIM cards in different scenarios.
  • Step 504 the first electronic device displays traffic statistics information of other electronic devices.
  • the first electronic device may obtain the SIM card list associated with the first phone number stored in step 501, and display the mobile data consumption query interface according to the SIM card list.
  • the query interface displays the description information of each SIM card recorded in the SIM card list, such as "SIM card of device 1" in the interface, and a corresponding "view” control can also be set for each SIM card.
  • the first electronic device When the first electronic device displays, for example, the mobile traffic consumption information display interface of the SIM card shown in interface 420, it may acquire the mobile traffic consumption information of the SIM card from the information pre-stored in steps 502 and 503 according to the card identification of the SIM card , and obtain the consumption information required by the above display interface, such as the mobile traffic consumed by the SIM card in the current billing cycle, the mobile traffic consumed every day within 7 days, etc., and display the corresponding statistical results on the mobile traffic consumption information display interface.
  • the first electronic device when the first electronic device displays the interface shown in interface 430, it may also obtain the statistics of the mobile traffic consumed by each application in a specified time period (such as the current billing period) according to the mobile traffic consumption information of the SIM card. displayed on the mobile traffic consumption information display interface of .
  • the first electronic device may also display a traffic usage reminder to the user.
  • 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 based on the first phone number within a certain period of time reaches a preset value, you can use sound, vibration, interface Display and other means to remind users to prevent users from excessive usage of traffic.
  • the traffic statistics method shown in Figure 5 realizes viewing the mobile traffic consumption information of other SIM cards associated with the same phone number on one electronic device, and can view the mobile traffic of multiple SIM cards associated with the same phone number on one electronic device usage, reduce user operations, and improve user experience.
  • FIG 8 is a flow chart of an embodiment of the traffic statistics method of the present application.
  • the SIM card of the mobile phone and the eSIM card of the smart watch are associated with the first phone number as an example.
  • the mobile phone and the smart watch are connected directly through Connect for data interaction, as shown in Figure 8, including:
  • Step 801 the mobile phone establishes a connection with the smart watch, and the mobile phone obtains the device identifier IMEI001 of the smart watch and the card identifier IMSI001 of the eSIM in the smart watch.
  • Step 802 The first application in the mobile phone detects that the user has activated an eSIM for the smart watch, obtains the card identifier IMSI001 of the eSIM card in the smart watch, and obtains the first phone number associated with the eSIM card in the smart watch, and according to the first phone number Execute the activation process corresponding to the eSIM activation operation corresponding to the card identifier IMSI001 of the eSIM card in the smart watch.
  • the activation process please refer to the description of the eSIM activation process described above, which will not be repeated here.
  • Step 803 The first application of the mobile phone sends a first notification message to the traffic management application.
  • the first notification message may include: the first phone number, the device identifier IMEI001, and the card identifier IMSI001.
  • the traffic management application may store, for example, the information shown in Table 3 below.
  • IMEI002 is the equipment identification of the mobile phone
  • IMSI002 is the card identification of the SIM card in the mobile phone.
  • Step 804 The traffic management application of the mobile phone stores the correspondence between the above-mentioned first phone number and the device identifier IMEI001 and the card identifier IMSI001.
  • 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 may 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.
  • Step 806 The traffic management application of the smart watch obtains the mobile data consumption information corresponding to the card identifier IMSI001, and sends the obtained mobile traffic message information to the traffic management application of the mobile phone.
  • Step 807 The traffic management application of the mobile phone stores the mobile traffic consumption information corresponding to the IMSI001 identifier of the card.
  • the execution of the above steps 805 to 807 may be triggered according to a preset traffic update period, so that the latest mobile traffic consumption information of the eSIM card in the smart watch is stored in the mobile phone.
  • the specific value of the traffic update period is not limited in this embodiment of the present application.
  • the traffic management application of the smart watch can send the traffic statistics information in the smart watch to the mobile phone, 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 storage.
  • Step 808 The traffic management application of the mobile phone displays the mobile traffic consumption query interface according to the detected user operation.
  • the interface can display the "view” control corresponding to the SIM card of the mobile phone and the "view” control corresponding to the eSIM card of the smart watch.
  • 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
  • the "view” control corresponding to the eSIM card of the smart watch can be the same as the eSIM of the smart watch
  • the card ID of the card corresponds to IMSI001.
  • Step 809 The traffic management application of the mobile phone detects the selection operation of the "view” control of the eSIM card, obtains the mobile traffic consumption information corresponding to the card identifier IMSI001, and displays the mobile traffic display interface accordingly.
  • Step 810 The traffic management application of the mobile phone detects the viewing operation for the application in the smart watch, and generates a mobile data consumption information display interface of the application according to the mobile data consumption information corresponding to the card identifier IMSI001, and the display interface displays various information in the smart watch.
  • Mobile data consumption information of applications such as the mobile data consumed by each application in the current billing cycle.
  • FIG. 9 is a block diagram of a software structure of an electronic device provided by an embodiment of the present application.
  • the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate through software interfaces.
  • Android (Android) system is divided into four layers, from top to bottom are respectively application layer, framework layer, Android runtime (Android runtime) and system library, and kernel layer.
  • the application layer may include a series of application packages.
  • the application program package may include the above-mentioned first application, traffic management application, and the like.
  • the application layer can be divided into three modules: interface, logic and data, and each module communicates through a software interface. Among them, the interface module is used for information display for user interaction; the logic module is used for information processing; the data module is used for data storage.
  • the interface module includes:
  • the UI module is used to display the interface described in the foregoing embodiments, such as the above-mentioned mobile data consumption query interface, the mobile data display interface of the SIM card, the mobile data display interface applied in the device, and the like.
  • Logic modules include:
  • No. 1 multi-terminal information management module which is used to store information such as the list of SIM cards associated with phone numbers;
  • the multi-terminal flow information management module is used to store the mobile flow consumption information of the SIM card associated with the first phone number.
  • the SIM card associated with the first phone number may include: the SIM card associated with the first phone number in the machine, and the SIM card associated with the first phone number in other electronic devices other than the machine.
  • the local traffic statistics module is used to make statistics on the traffic usage of the device and record the traffic statistics information.
  • the aforementioned UI module, No. 1 multi-terminal information management module, multi-terminal traffic information management module, and local traffic statistics module may be modules in an application such as a traffic management application.
  • the framework layer (Framework, FWK) provides application programming interface (application programming interface, API) and programming framework for the application program of the application layer.
  • the application framework layer includes some predefined functions. For example, the communication protocol framework shown in Figure 9.
  • a system library can include multiple function modules.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer can contain communication drivers and so on.
  • FIG. 10 a schematic diagram of data exchange between two electronic devices is shown in FIG. 10 , for example.
  • the synchronization of the card identification of the SIM card associated with the same phone number is performed through a direct connection between the No. 1 multi-terminal information management module of the electronic device 1 and the electronic device 2; the multi-terminal flow information management module of the electronic device 1 and the electronic device 2
  • the mobile data consumption information of the SIM cards associated with the same phone number can be synchronized through a direct connection.
  • FIG. 11 a schematic diagram of data exchange between two electronic devices is shown in FIG. 11 , for example.
  • the number one multi-terminal information management module of the electronic device 1 and the electronic device 2 are indirectly connected through an information transfer device, and the card identification of the SIM card associated with the same phone number is synchronized; the multi-terminal of the electronic device 1 and the electronic device 2
  • the flow information management modules are indirectly connected through the information transfer device, and the mobile flow consumption information of the SIM cards associated with the same phone number is synchronized.
  • the SIM card is set in the electronic device as an example.
  • the SIM card can be a traditional card-type SIM card or an eSIM card.
  • the implementation of this application Examples are not limited.
  • the present application also provides an electronic device, the device includes a storage medium and a central processing unit, the storage medium may be a non-volatile storage medium, a computer executable program is stored in the storage medium, and the central processing unit and the The non-volatile storage medium is connected and executes the computer executable program to implement the method provided by the embodiments shown in FIGS. 1 to 8 of this application.
  • the embodiment of the present application also provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when it runs on a computer, the computer executes the program provided by the embodiments shown in Figures 1 to 8 of this application. method.
  • the embodiment of the present application also provides a computer program product, the computer program product includes a computer program, and when it is run on a computer, it causes the computer to execute the method provided in the embodiments shown in FIG. 1 to FIG. 8 of the present application.
  • "at least one” means one or more, and “multiple” means two or more.
  • “And/or” describes the association relationship of associated objects, indicating that there may be three kinds of relationships, for example, A and/or B may indicate that A exists alone, A and B exist simultaneously, or B exists alone. Among them, A and B can be singular or plural.
  • the character “/” generally indicates that the contextual objects are an “or” relationship.
  • “At least one of the following” and similar expressions refer to any combination of these items, including any combination of single items or plural items.
  • At least one of a, b, and c can represent: a, b, c, a and b, a and c, b and c or a and b and c, where a, b, c can be single, or Can be multiple.
  • any function is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium.
  • the technical solution of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (Read-Only Memory; hereinafter referred to as: ROM), random access memory (Random Access Memory; hereinafter referred to as: RAM), magnetic disk or optical disc, etc.
  • ROM read-only memory
  • RAM random access memory
  • magnetic disk or optical disc etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Physics & Mathematics (AREA)
  • Probability & Statistics with Applications (AREA)
  • Computer Security & Cryptography (AREA)
  • Telephone Function (AREA)

Abstract

一种流量统计方法和电子设备,该方法应用于第一电子设备,第一电子设备中设置有第一SIM卡,第一SIM卡关联第一电话号码,该方法包括:显示第一界面,第一界面中显示有第一控件;第一控件与关联第一电话号码的第二SIM卡对应;第二SIM卡设置于第二电子设备中;检测到针对于第一控件的选择操作,显示第二界面,第二界面中显示有第二SIM卡对应的移动流量信息。本申请能够在一个电子设备上查看关联同一电话号码的其他电子设备的移动流量使用情况,减少用户操作,提升用户体验。

Description

流量统计方法和电子设备
本申请要求于2021年8月2日提交中国专利局、申请号为202110882120.9、发明名称为“流量统计方法和电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及智能终端技术领域,特别涉及流量统计方法和电子设备。
背景技术
一号多终端业务中,用户多个电子设备的客户识别模块(Subscriber Identity Module,SIM)卡可以关联同一个电话号码,使多个电子设备能够共享一个电话号码和套餐资源,即可分别实现独立蜂窝移动通信。通俗地说,就是多个电子设备使用同一电话号码,每个电子设备上都可以使用该电话号码拨打和接听电话,而且,每个电子设备上都可以使用该电话号码关联的移动流量服务。
但是,现有的移动流量统计服务中,每个电子设备只能统计本设备上的移动流量消耗情况,如果用户希望获知某一电话号码对应的流量套餐的使用情况,只能逐个电子设备查看每个设备上的移动流量消耗数据,操作繁琐,用户体验差。
发明内容
本申请提供了一种流量统计方法和电子设备,能够在一个电子设备上查看关联同一电话号码的其他电子设备的移动流量使用情况,减少用户操作,提升用户体验。
第一方面,本申请提供了一种流量统计方法,应用于第一电子设备,第一电子设备中设置有第一SIM卡,第一SIM卡关联第一电话号码,包括:显示第一界面,第一界面中显示有第一控件;第一控件与关联第一电话号码的第二SIM卡对应;第二SIM卡设置于第二电子设备中;检测到针对于第一控件的选择操作,显示第二界面,第二界面中显示有第二SIM卡对应的移动流量信息。其中,SIM卡可以是卡片式SIM卡或者嵌入式SIM卡等。该方法能够在第一电子设备上查看关联同一电话号码的第二电子设备的移动流量使用情况,减少用户操作,提升用户体验。
在一种可能的实现方式中,还包括:第二界面中显示有第二控件;检测到针对于第二控件的选择操作,显示第三界面,第三界面中显示有第二电子设备中各应用的移动流量信息,应用对应的移动流量信息用于记录应用通过第二SIM卡消耗的移动流量。
在一种可能的实现方式中,还包括:第二界面中显示有第二电子设备中各应用 的移动流量信息,应用的移动流量信息用于记录应用通过第二SIM卡消耗的移动流量。
在一种可能的实现方式中,显示第一界面之前,还包括:获取第二SIM卡的卡标识;显示第一界面,包括:根据第二SIM卡的卡标识显示第一界面,第一控件与第二SIM卡的卡标识对应。其中的卡标识可以是IMSI或者ICCID。
在一种可能的实现方式中,显示第二界面之前,还包括:获取第二SIM卡对应的移动流量信息;显示第二界面,包括:根据第二SIM卡对应的移动流量信息显示第二界面。
在一种可能的实现方式中,获取第二SIM卡的卡标识,包括:从第一服务器获取第二SIM卡的卡标识,第二SIM卡的卡标识由第二电子设备传输至第一服务器;或者,从第二电子设备获取第二SIM卡的卡标识;或者,从第一应用获取第二SIM卡的卡标识,第一应用是开通第二SIM卡关联第一电话号码业务的应用;或者,从目标界面中获取用户输入的信息,得到第二SIM卡的卡标识。
在一种可能的实现方式中,获取第二SIM卡对应的移动流量信息,包括:从第一服务器获取第二SIM卡对应的移动流量信息,第二SIM卡对应的移动流量信息由第二电子设备传输至第一服务器;或者,从第二电子设备获取第二SIM卡对应的移动流量信息。
在一种可能的实现方式中,还包括:第一界面中显示有第三控件;第三控件与关联第一电话号码的第三SIM卡对应;第三SIM卡设置于第三电子设备中;检测到针对于第三控件的选择操作,显示第三界面,第三界面中显示有第三SIM卡对应的移动流量信息。
在一种可能的实现方式中,第二SIM卡是eSIM卡。
第二方面,本申请实施例提供一种电子设备,包括:一个或多个处理器;存储器;以及一个或多个计算机程序,其中一个或多个计算机程序被存储在存储器中,一个或多个计算机程序包括指令,当指令被设备执行时,使得设备执行第一方面任一项的方法。
第三方面,本申请实施例提供一种计算机可读存储介质,计算机可读存储介质中存储有计算机程序,当其在计算机上运行时,使得计算机执行第一方面任一项的方法。
第四方面,本申请提供一种计算机程序,当计算机程序被计算机执行时,用于执行第一方面的方法。
在一种可能的设计中,第四方面中的程序可以全部或者部分存储在与处理器封装在一起的存储介质上,也可以部分或者全部存储在不与处理器封装在一起的存储器上。
附图说明
为了更清楚地说明本发明实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于 本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。
图1为本申请电子设备一个实施例的结构图;
图2为本申请一号多终端业务开通过程的界面实现示意图;
图3A为本申请实施例两个电子设备的直接连接示意图;
图3B为本申请实施例两个电子设备的间接连接示意图;
图3C为本申请实施例智能手表之间的间接连接示意图;
图3D为本申请实施例手机和智能手表之间的间接示意图;
图4A为本申请流量统计方法的界面示意图;
图4B为本申请流量统计方法一个实施例的流程图;
图5为本申请流量统计方法另一个实施例的流程图;
图6为本申请指定服务器中存储的数据示意图;
图7为本申请用户设置界面示意图;
图8为本申请流量统计方法又一个实施例的流程图;
图9为本申请电子设备的软件结构示意图;
图10为本申请两个电子设备的模块之间通过直接连接进行数据交互的示意图;
图11为本申请两个电子设备的模块之间通过间接连接进行数据交互的示意图。
具体实施方式
本申请的实施方式部分使用的术语仅用于对本申请的具体实施例进行解释,而非旨在限定本申请。
首先对本申请涉及的名词进行示例性而非限定性的说明。
嵌入式SIM卡(Embedded-SIM,eSIM):
eSIM卡的概念就是将传统SIM卡的功能直接嵌入到设备芯片上,而不是作为独立的可移除零部件加入设备中,用户无需插入物理SIM卡。这一做法将允许用户更加灵活的选择运营商套餐,或者在无需解锁设备、购买新设备的前提下随时更换运营商。未来通用的eSIM标准建立将为普通消费者、企业用户节省更多移动设备使用成本,并带来更多的便利、安全性。
国际移动用户识别码(International Mobile Subscriber Identity,IMSI):
IMSI是用于区分蜂窝网络中不同用户的、在所有蜂窝网络中不重复的识别码。手机将IMSI存储于一个64比特的字段发送给网络。IMSI可以用来在归属位置寄存器(Home Location Register,HLR)或拜访位置寄存器(Visitor Location Register,VLR)中查询用户的信息。为了避免被监听者识别并追踪特定的用户,大部分情形下手机和网络之间的通信会使用随机产生的临时移动用户识别码(TMSI,Temporary Mobile Subscriber Identity)代替IMSI。IMSI一般存储于SIM卡中。
移动数据流量:
“移动数据流量”是指通过通用分组无线服务(General packet radio service,GPRS)、增强型数据速率GSM演进技术(Enhanced Data Rate for GSM Evolution, EDGE)、时分同步码分多址(Time Division-Synchronous Code Division Multiple Access,TD-SCDMA)、高速下行链路分组接入(High Speed Downlink Packet Access,HSDPA)、宽带码分多址(Wideband Code Division Multiple Access,WCDMA)、长期演进(Long Term Evolution,LTE)等移动通信技术上网或使用相关数据增值业务所产生的数据流量。移动数据流量一般不包含通过无线局域网(Wireless Local Area Network,WLAN)、电路交换数据业务(Circuit Switch Data,CSD)等其他方式上网所产生的流量,不包含按内容计费的数据增值业务(如彩信、号薄管家、全曲下载、快讯等)所核减的数据流量,也不包含集团客户及行业应用所产生的数据流量。
一号多终端业务:
一号多终端业务中,多个电子设备共享一个电话号码和套餐资源,即可实现独立蜂窝移动通信。通俗地说,就是多个电子设备使用同一号码,每个电子设备上都可以使用该号码拨打和接听电话,而且,每个电子设备上都可以使用该号码关联的流量服务。举例来说,如果用户在手机、智能手表、车载终端上使用相同的电话号码接入网络,手机、智能手表和车载终端共享电话号码的套餐资源和叠加流量表,套外的资费标准相同;如果给该用户的电话号码拨打电话,与该电话号码关联的手机、智能手表、车载终端将同时接收到来电,用户可以在任一电子设备上接听该电话;用户也可以使用手机、智能手表、车载终端中的任一设备拨打电话;无论是主叫或者被叫,对外呈现的电话号码均是该电话号码,避免用户在多个电子设备上管理多个电话号码,给用户带来很大方便。
但是,现有的流量统计服务中,每个电子设备只能统计电子设备自身上的移动数据流量消耗情况,如果用户希望获知流量套餐的使用情况,只能逐个电子设备查看流量消耗数据,操作繁琐,用户体验差。
为此,本申请提出一种流量统计方法和电子设备,能够在一个电子设备上查看其他电子设备上的流量使用情况,减少用户操作,提升用户体验。
本申请实施例提供的方法可以应用于电子设备,电子设备中内置有SIM卡,例如可以是:手机,车载设备,可穿戴设备例如智能眼镜、智能手表,等等。上述SIM卡可以是卡片式SIM卡(也即上述的传统SIM卡),或者eSIM卡,等。
示例性的,图1示出了电子设备100的结构示意图。电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。
可以理解的是,本发明实施例示意的结构并不构成对电子设备100的具体限定。 在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现电子设备100的触摸功能。
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接 口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现电子设备100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现电子设备100的显示功能。
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。
可以理解的是,本发明实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通 信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(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,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等) 等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。处理器110通过运行存储在内部存储器121的指令,和/或存储在设置于处理器中的存储器的指令,执行电子设备100的各种功能应用以及数据处理。
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器170A收听音乐,或收听免提通话。
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备100可以设置至少一个麦克风170C。在另一些实施例中,电子设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A
的种类很多,如阻抗式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备100根据压力传感器180A检测所述触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。
陀螺仪传感器180B可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器 180B检测电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。
气压传感器180C用于测量气压。在一些实施例中,电子设备100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。
磁传感器180D包括霍尔传感器。电子设备100可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当电子设备100是翻盖机时,电子设备100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。
加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。
距离传感器180F,用于测量距离。电子设备100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备100可以利用距离传感器180F测距以实现快速对焦。
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。电子设备100通过发光二极管向外发射红外光。电子设备100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定电子设备100附近有物体。当检测到不充分的反射光时,电子设备100可以确定电子设备100附近没有物体。电子设备100可以利用接近光传感器180G检测用户手持电子设备100贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。
环境光传感器180L用于感知环境光亮度。电子设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测电子设备100是否在口袋里,以防误触。
指纹传感器180H用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。
温度传感器180J用于检测温度。在一些实施例中,电子设备100利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,电子设备100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,电子设备100对电池142加热,以避免低温导致电子设备100异常关机。在其他一些实施例中,当温度低于又一阈值时,电子设备100对电池142的输出电压执行升压,以避免低温导致的异常关机。
触摸传感器180K,也称“触控器件”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应 用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨传导耳机。音频模块170可以基于所述骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器180M获取的血压跳动信号解析心率信息,实现心率检测功能。
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。电子设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备100中,不能和电子设备100分离。
电子设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。具体可以为安卓系统、鸿蒙系统等等。
为了便于理解,本申请以下实施例将以具有图1所示结构的电子设备为例,结合附图和应用场景,对本申请实施例提供的方法进行具体说明。
首先对本申请流量统计方法中涉及的用户开通一号多终端业务的过程进行举例说明。
以用户开通手机和智能手表的一号多终端业务为例。用户可以通过NFC、蓝牙、WiFi等方式将手机与智能手表建立连接。
手机的SIM卡关联的电话号码假设为:12345678900。需要说明的是,手机可能存在2张甚至2张以上的SIM卡,本申请中手机的SIM卡可以是手机中的任一张SIM 卡。
用户在手机中下载安装用于开通一号多终端业务的应用1,在应用1中打开例如图2所示的界面210,界面210中展示有与手机连接的设备列表,其中包括“智能手表”,用户选择智能手表对应的“在线开通eSIM”控件,相应的,可以进入例如图2中所示的界面220,界面220中展示有智能手表的设备标识,智能手表的eSIM卡的卡标识,还展示有要关联的电话号码“12345678900”。可选地,设备标识可以是IMEI;eSIM卡的卡标识可以是集成电路卡识别码(Integrate circuit card identity,ICCID),或者IMSI,或者嵌入式通用集成电路卡识别码(embedded UICC identity,EUICC ID)等。
需要说明的是,上述设备标识,卡标识可以由应用1通过手机从智能手表获取,也可以由用户手动填写等,这里不限定。
需要说明的是,上述要关联的电话号码可以由用户手动填写;或者,应用1可以从手机中用于管理SIM卡的应用2获取手机中SIM卡关联的电话号码,从而在界面220中自动显示;或者,如果手机中包括多张SIM卡,可以在多张SIM卡中设置有主SIM卡,应用1可以从手机的应用2获取主SIM卡关联的电话号码,从而在界面220自动显示。
用户在界面220中选择“确认”控件,相应的,手机的应用1接收到用户针对“确认”控件的选择操作,向运营商服务器发送一号多终端业务请求消息,消息中可以携带:电话号码12345678900,智能手表中eSIM的卡标识(例如IMSI或者ICCID或者EUICC ID);可选地,还可以携带:智能手表的设备标识(例如IMEI)。
运营商服务器侧接收到上述一号多种终端业务请求消息,完成一号多终端业务的开通流程,向手机的应用1反馈确认消息;
手机的应用1向用户展示例如图2中所示的界面230,向用户提示一号多终端业务办理成功。
手机的应用1可以向智能手表反馈一号多终端业务办理成功的通知消息。
需要说明的是,以上仅示出了用户办理一号多终端业务的过程中与本申请实施例流量统计相关联的流程和界面,并不用以限制一号多终端业务的办理流程,例如,在一号多终端业务的办理过程中,上述界面可能存在差异,流程中还可以包括阅读业务说明、用户输入姓名和身份证号、智能手表下载eSim Profile到eSIM卡等其他可能流程,这里不再赘述。
本申请实施例中,为便于描述,如果一个电子设备的eSIM卡关联有一电话号码,也称为该电子设备关联有该电话号码,例如手机的一个eSIM卡关联有电话号码12345678900,也称为手机关联有电话号码12345678900。
以下介绍本申请流量统计方法中关联有同一电话号码的两个电子设备之间进行数据传输的可能实现方式。
参见图3A,关联有同一电话号码的电子设备1和电子设备2之间可以通过NFC、蓝牙、或者WiFi等方式直接建立连接,通过该连接进行数据交互。为了便于描述, 本申请实施例中将上述两个电子设备之间建立的连接称为直接连接。
参见图3B,电子设备1和电子设备2可以分别连接数据中转设备,则电子设备1和电子设备2之间可以通过数据中转设备实现数据交互,该连接方式也可以称为两个电子设备之间通过数据中转设备间接连接。为了便于描述,本申请实施例中也将该连接称为间接连接。
可选的,上述数据中转设备是服务器,例如云服务器。电子设备可以通过网络连接的方式使用账号登录服务器,与服务器之间建立连接,用户在两个电子设备上通过同一账号登录服务器,则服务器可以基于该同一账号,将一个电子设备的数据转发至另一电子设备。
可选地,上述数据中转设备是与上述两个电子设备关联同一电话号码的电子设备。举例来说,参见图3C所示,手机、智能手表1和智能手表2关联同一电话号码,智能手表1与手机之间建立蓝牙连接,智能手表2与手机之间建立蓝牙连接,则智能手表1和智能手表2之间可以通过手机进行数据交互。
需要说明的是,在两个电子设备之间进行数据交互时,上述直接连接和间接连接可以共存,也可以相互切换。举例来说:参见图3D所示,手机和智能手表之间可以通过蓝牙直接连接,同时,手机通过网络连接的方式使用账号1登录服务器,智能手表通过网络连接的方式使用账号1登录服务器,则手机和智能手表之间通过服务器间接连接,手机和智能手表之间既存在直接连接,也存在间接连接,可以分别通过直接连接和间接连接传输数据;或者,手机和智能手表之间进行数据交互时,可以在数据交互过程中从直接连接切换至间接连接,或者从间接连接切换至直接连接。
以下对本申请流量统计方法中电子设备统计电子设备中移动流量数据使用情况的统计信息进行说明。
如下表1所示,电子设备可以统计每个应用在每个时间段中使用不同网络接口传输数据的信息。表1中包括“时间段”“网络端口”“应用标识”“数据量”等字段。网络端口字段用于记录应用使用的数据传输方式,数据传输方法可以包括但不限于移动流量方式、WLAN方式、蓝牙方式等等,假设表1中使用端口#1表示使用eSIM卡的移动流量方式,端口#2表示WLAN方式,端口#3表示蓝牙方式。应用标识字段用于记录应用的标识。数据量用于记录传输的数据量。
例如第一条记录表示:在1点~2点,应用A使用移动流量方式发送2.3M数据。
时间段 网络端口 应用标识 数据量
2021.07.01 01:01~2021.07.01 02:00 端口#1 应用A 2.3M
2021.07.01 01:01~2021.07.01 02:00 端口#1 应用B 4.6M
2021.07.01 01:01~2021.07.01 02:00 端口#3 应用C 6.3M
2021.07.01 01:01~2021.07.01 02:00 端口#2 应用C 5.8M
2021.07.01 02:01~2021.07.01 03:00 端口#1 应用D 20.1M
2021.07.01 02:01~2021.07.01 03:00 端口#1 应用E 27.3M
2021.07.01 02:01~2021.07.01 03:00 端口#3 应用B 29.3M
2021.07.01 03:01~2021.07.01 04:00 端口#2 应用C 22.3M
2021.07.01 03:01~2021.07.01 04:00 端口#2 应用D 21.3M
2021.07.01 04:01~2021.07.01 05:00 端口#3 应用A 62.3M
2021.07.01 04:01~2021.07.01 05:00 端口#1 应用B 82.3M
表1
电子设备可以从上述表1中检索出“端口#1”对应的记录,得到各个应用的移动流量消耗信息,进而可以基于上述消耗信息计算电子设备在指定时间段(例如一个计费周期)内消耗的移动流量总数量,每个应用在指定时间段(例如一个计费周期)内消耗的移动流量总数量等信息。
需要说明的是,电子设备中可以设置有多个SIM卡,此时,可以通过网络端口的不同取值来区分流量使用的不同SIM卡,则电子设备同样可以通过网络端口的不同取值来获取各个应用通过某一SIM卡消耗的移动流量。
图4A为本申请流量统计方法的界面示意图。图4A中以一号多终端业务中电话号码1关联有设备1的SIM卡~设备3的SIM卡共3张SIM卡为例进行说明,图4A中所示界面是设备1中显示的界面示例。
本申请实施例流量统计方法可以由电子设备中的应用执行,为方便描述,将电子设备中用于移动流量统计和显示的应用称为流量管理应用,上述流量管理应用例如可以是电子设备中的“设置”应用。
参见图4A中界面410,是流量管理应用中提供的移动流量消耗查询界面的示例图,在界面410中示出了一号多终端业务中关联的SIM卡的列表,例如图4A中关联有3个SIM卡,分别是设备1的SIM卡~设备3的SIM卡。
如果用户选择SIM卡列表中的某一SIM卡对应的“查看”控件,例如设备2的SIM卡的“查看”控件411,流量管理应用可以显示设备2的SIM卡的移动流量消耗信息展示界面,例如图4A中界面420所示。设备2的移动流量消耗信息展示界面可以用于展示设备2的SIM卡消耗的移动流量的总数量、设备2每天消耗的移动流量的总数量等等移动流量消耗信息,例如界面420中展示有设备2最近7天中每天消耗的移动流量统计图,设备2已经消耗的移动流量的总数量403.90MB等等。
可选地,图4A的界面420中,还可以展示有用于触发设备2中应用消耗的移动流量查询的控件,例如界面420中的“查看”控件421,用户选择“查看”控件421,流量管理应用可以展示设备2中应用的移动流量消耗信息展示界面,例如图4A的界面430所示,其中示出了设备2中安装的各个应用通过SIM消耗的移动流量的总数量。
可选地,界面420中也可以不展示设备2中应用消耗的移动流量查询控件,而是将界面430中显示的各个应用通过SIM消耗的移动流量直接在界面420中展示,例如界面440所示。
需要说明的是,图4A的界面中显示的移动流量消耗信息可以是一个运营商的一个计费周期中的移动流量消耗信息,从而使得上述消耗信息的显示更有针对性,对用户了解一个计费周期中消耗移动流量的情况更有帮助。
需要说明的是,图4A的界面中显示的移动流量消耗信息也可以包括不按照计费周期统计的移动流量消耗信息,本申请不限制。
图4B为本申请流量统计方法一个实施例的流程图,可以适用于第一电子设备,第一电子设备中设置有第一SIM卡,第一SIM卡关联有第一电话号码;如图4B所示,该方法可以包括:
步骤401:第一电子设备显示第一界面,第一界面中显示有第一控件;第一控件与关联第一电话号码的第二SIM卡对应;第二SIM卡设置于第二电子设备中。
其中,第一界面可以是前述的移动流量消耗查询界面,例如界面410。第一控件可以是界面410中设备2和设备3对应的“查看”控件。
步骤402:第一电子设备检测到针对于第一控件的选择操作,显示第二界面,第二界面中显示有第二SIM卡对应的移动流量信息。
其中,第二界面可以是前述的SIM卡的移动流量消耗信息展示界面,例如界面420。
可选地,第二界面中还可以显示有第二控件,则该方法还可以包括步骤403。
步骤403:第一电子设备检测到针对于第二控件的选择操作,显示第三界面,第三界面中显示有第二电子设备中各应用通过第二SIM卡消耗的移动流量信息。
其中,第二控件可以是前述的“查看”控件421;第三界面可以是应用的移动流量消耗信息展示界面,例如界面430。
可选地,第二界面中可以不设置第二控件,而是直接显示第二电子设备中各应用通过第二SIM卡消耗的移动流量信息。
图4B所示的流量统计方法,实现了在第一电子设备上查看第二电子设备通过第二SIM卡消耗的移动流量,进而还可以查看第二电子设备中各应用通过第二SIM卡消耗的移动流量,减少用户操作,提升用户体验。
参见图5,为本申请流量统计方法一个实施例的流程图,该方法中假设第一电子设备中设置有第一SIM卡,第一SIM卡关联有第一电话号码。第一电子设备中可以仅包括第一SIM卡,也可以包括多个SIM卡,第一SIM卡是上述多个SIM卡中的任一张SIM卡。该方法以用户可以从第一电子设备查询关联同一电话号码的多个SIM的移动流量消耗信息为例。如图5所示,该方法可以包括:
步骤501:第一电子设备存储关联第一电话号码的多个Sim卡的卡标识。
上述SIM卡的卡标识可以是SIM卡的IMSI或者ICCID等。
可选地,第一电子设备还可以存储上述多个SIM卡所在电子设备的设备标识,上述设备标识可以是电子设备的IMEI。
例如,假设第一电话号码关联SIM卡有2个,分别是第一SIM卡和第二SIM卡, 第二SIM卡设置于第二电子设备中,第一SIM卡的卡标识为IMSI001,第二SIM卡的卡标识为IMSI002,则第一电子设备中可以存储有以下信息:
第一电话号码关联的SIM卡列表:IMSI001,IMSI002。
如果第一电子设备中除第一SIM卡外还设置有第三SIM卡,第三SIM卡关联第二电话号码,第二电话号码关联有第三SIM卡(假设卡标识为IMSI003)和第四SIM卡(假设卡标识为IMSI004),第四SIM卡设置于第三电子设备,则第一电子设备中可以存储有以下信息:
第一电话号码关联的SIM卡列表:IMSI001,IMSI002;
第二电话号码关联的SIM卡列表:IMSI003,IMSI004。
在一种可能的实现方式中,第一电子设备可以从指定服务器获取关联第一电话号码的SIM卡的卡标识。
关联同一电话号码的各个电子设备可以分别访问指定服务器,将本设备中SIM卡的卡标识以及关联的电话号码发送至指定服务器;相应的,指定服务器中可以基于电话号码存储电话号码关联的多个SIM卡的卡标识。从而,关联同一电话号码的各个电子设备可以从指定服务器获取其他SIM卡的卡标识。
举例来说,设备1的SIM卡~设备4的SIM卡分别关联手机号A,设备1~设备4可以分别访问指定服务器,将本设备中SIM卡的卡标识以及SIM卡关联的手机号A发送给指定服务器;设备5的SIM卡~设备6的SIM卡分别关联手机号B,设备5和设备6可以分别访问指定服务器,将本设备中SIM卡的卡标识以及关联的手机号B发送给指定服务器;相应的,指定服务器中存储有例如图6所示的数据:
手机号A关联的SIM卡列表:IMSI(1),IMSI(2),IMSI(3),IMSI(4);
手机号B关联的SIM卡列表:IMSI(5),IMSI(6)。
则,设备1~设备4可以向指定服务器查询手机号A对应的SIM卡列表,设备5和设备6可以向指定服务器查询得到手机B对应的SIM卡列表。
为了保证用户隐私,电子设备可以通过账号访问上述指定服务器,则指定服务器中的上述SIM卡列表可以与账号对应,只有登录对应账号的设备才能访问指定服务器,获取该账号对应的SIM卡列表。举例来说:
用户在设备1~设备4中分别登录账号1,设备1~设备4可以通过该账号访问指定服务器,将本设备中SIM卡的卡标识以及SIM卡关联的手机号A发送给指定服务器;则,指定服务器中存储有以下信息的对应关系:
手机A,[IMSI(1),IMSI(2),IMSI(3),IMSI(4)],账号1;
则,只有用户在某一设备中登录了账号1,该设备才能够通过账号1访问指定服务器,并从指定服务器查询账号1对应的eSIM卡列表[IMSI(1),IMSI(2),IMSI(3),IMSI(4)]。
在另一种可能的实现方式中,第一电子设备可以从关联第一电话号码的其他电子设备获取其他电子设备中SIM卡的卡标识。
第一电子设备和第二电子设备可以通过NFC、蓝牙、WiFi等方式直接连接,第一电子设备和第二电子设备通过该直接连接确定两个设备均关联有第一电话号码, 则将本设备中与第一电话号码关联的SIM卡的卡标识发送给对端电子设备。
举例来说,手机和智能手表可以通过蓝牙建立连接,手机和智能手表可以通过蓝牙连接进行数据交互,手机和智能手表分别确定对端设备关联有第一电话号码,则手机可以将手机中关联第一电话号码的第一SIM卡的卡标识发送给智能手表,智能手表将智能手表中关联第一电话号码的SIM卡的卡标识发送给手机。
在第三种可能的实现方式中,如果第一电子设备中安装有用于开通一号多终端业务的应用,例如前述举例中的应用1,则第一电子设备可以从应用1获取关联第一电话号码的SIM卡的卡标识。例如前述举例中,手机中可以安装应用1,则手机中的流量管理应用可以从应用1获取关联第一电话号码的其他SIM卡的卡标识,上述其他SIM卡是指关联第一电话号码的SIM卡中除第一SIM卡之外的SIM卡。
在第四种可能的实现方式中,第一电子设备可以为用户提供例如图7所示的用户设置界面710,用户可以在设置界面710中手动配置和修改关联同一电话号码的其他SIM卡的卡标识。
需要说明的是,第一电子设备获取其他SIM卡的卡标识的执行时机可以包括但不限于:第一电子设备开通SIM卡的一卡多终端业务时,或者,SIM卡插入第一电子设备中后,或者,第一电子设备中的SIM被更换时,等等。
需要说明的是,如果某一电子设备的SIM卡与电话号码之间的关联关系取消或者更换,也可以通过本步骤中的上述方式同步至其他电子设备。
步骤502:第一电子设备存储第一SIM卡的移动流量消耗信息。
第一电子设备可以存储有例如上表1所示的流量统计信息,该流量统计信息中包括第一SIM卡的移动流量消耗信息。
移动流量消耗信息可以包括但不限于:第一电子设备通过第一SIM卡消耗的移动流量;第一电子设备中各应用通过第一SIM卡消耗的移动流量,等等。
可选地,上述移动流量消耗信息可以是当前计费周期内消耗的移动流量的信息。
步骤503:第一电子设备获取并存储关联第一电话号码的其他SIM卡的移动流量消耗信息。
在一种可能的实现方式中,第一电子设备可以从指定服务器获取上述其他SIM卡的移动流量消耗信息。
关联同一电话号码的各个电子设备可以分别访问指定服务器,将本设备的流量统计信息发送至指定服务器;相应的,指定服务器中可以存储每个电子设备的流量统计信息。从而,关联同一电话号码的各个电子设备可以从指定服务器获取其他电子设备的流量统计信息。
指定服务器可以分别存储每个电子设备的流量统计信息,也可以将关联同一电话号码的多个电子设备的流量统计信息进行合并处理,得到例如下表2所示的流量统计信息,其中的设备1~设备3关联同一电话号码。
Figure PCTCN2022107063-appb-000001
Figure PCTCN2022107063-appb-000002
表2
则,指定服务器可以将例如表2所示的合并后的流量统计信息发送给对应的设备1、设备2和设备3。
需要说明的是,由于电子设备中流量信息的更新频率较高,因此,关联同一电话号码的各个电子设备可以周期性的将流量统计信息上传至指定服务器,对指定服务器中存储的流量统计信息进行更新;也可以周期性的从指定服务器下载其他电子设备的流量统计信息。数据上传周期和数据下载周期可以相同或者不同。上述周期的具体取值本申请实施例不作限定。
需要说明的是,以上以电子设备向指定服务器发送流量统计信息为例,电子设备也可以仅将SIM卡的移动流量消耗信息发送至指定服务器,相应的,各个电子设备可以从指定服务器获取其他电子设备的移动流量消耗信息。具体实现可以参见前述描述,这里不赘述。
在另一种可能的实现方式中,第一电子设备可以从关联第一电话号码的其他电子设备获取其他SIM卡的移动流量消耗信息。
第一电子设备与第二电子设备之间可以建立直接连接,通过该直接连接进行数据交互,确定对端设备的SIM关联第一电话号码,将本设备中SIM卡的移动流量消耗 信息发送给对端设备,或者将本设备的流量统计信息发送至对端设备。
可选地,如果第一电子设备获取到其他电子设备的流量统计信息,可以对本设备的流量统计信息以及其他电子设备的流量统计信息进行统计和合并处理,得到例如上表2所示的合并处理结果。同样的,第一电子设备也可以对多个SIM卡的移动流量消耗信息进行统计和合并处理,具体方法可以参考流量统计信息进行统计和合并处理的实现,这里不赘述。
在实际实现中,第一电子设备可以同时支持上述两种可能的实现方式,以便第一电子设备可以在不同的场景下均能够获取到其他SIM卡的移动流量消耗信息。
步骤504:第一电子设备显示其他电子设备的流量统计信息。
本步骤的实现可以参考图4A中的对应说明。
第一电子设备显示例如界面410所示的移动流量消耗查询界面时,第一电子设备可以获取步骤501中存储的关联第一电话号码的SIM卡列表,根据SIM卡列表显示上述移动流量消耗查询界面,该查询界面中显示有SIM卡列表中记录的各个SIM卡的描述信息,例如界面中的“设备1的SIM卡”等,还可以为每个SIM卡设置对应的“查看”控件。
第一电子设备在显示例如界面420所示的SIM卡的移动流量消耗信息展示界面时,可以根据该SIM卡的卡标识从步骤502和步骤503预存的信息中获取该SIM卡的移动流量消耗信息,统计得到上述展示界面所需的消耗信息,例如当前计费周期中该SIM卡消耗的移动流量,7天内每天消耗的移动流量等等,在移动流量消耗信息展示界面显示对应的统计结果。
第一电子设备在显示例如界面430所示的界面时,也可以根据该SIM卡的移动流量消耗信息,统计得到每个应用在指定时间段(例如当前计费周期)消耗的移动流量,在应用的移动流量消耗信息展示界面中显示。
可选地,第一电子设备还可以向用户显示流量使用情况提醒。
如果第一电话号码消耗的移动流量或者某一设备基于第一电话号码消耗的移动流量、或者某个时间段内基于第一电话号码消耗的移动流量达到预设数值,可以通过声音、振动、界面显示等方式向用户进行提醒,以防止用户超量使用流量。
图5所示的流量统计方法,实现了在一个电子设备上查看关联同一电话号码的其他SIM卡的移动流量消耗信息,能够在一个电子设备上查看关联同一电话号码的多个SIM卡的移动流量使用情况,减少用户操作,提升用户体验。
图8是本申请流量统计方法一个实施例的流程图,该实施例中以手机的SIM卡和智能手表的eSIM卡关联第一电话号码为例,该实施例中手机和智能手表之间通过直接连接进行数据交互,如图8所示,包括:
步骤801:手机与智能手表建立连接,手机获取智能手表的设备标识IMEI001,以及智能手表中eSIM的卡标识IMSI001。
步骤802:手机中的第一应用检测到用户针对于智能手表的开通eSIM操作,获取智能手表中eSIM卡的卡标识IMSI001,获取智能手表中eSIM卡关联的第一电话 号码,根据第一电话号码和智能手表中eSIM卡的卡标识IMSI001执行开通eSIM操作对应的开通流程。该开通流程可以参考前述开通eSIM的流程说明,这里不赘述。
步骤803:手机的第一应用向流量管理应用发送第一通知消息,第一通知消息中可以包括:第一电话号码,设备标识IMEI001,卡标识IMSI001。
此时,流量管理应用可以存储有例如以下表3所示的信息。其中,IMEI002是手机的设备标识,IMSI002是手机中SIM卡的卡标识。
电话号码 设备标识 卡标识
第一电话号码 IMEI001 IMSI001
第一电话号码 IMEI002 IMSI002
表3
步骤804:手机的流量管理应用存储上述第一电话号码与设备标识IMEI001和卡标识IMSI001之间的对应关系。
步骤805:手机的流量管理应用根据设备标识IMEI001向智能手表发送流量信息请求消息,流量信息请求消息可以包括:卡标识IMSI001。流量请求消息用于请求卡标识IMSI001指示的SIM卡的移动流量消耗信息。
步骤806:智能手表的流量管理应用获取卡标识IMSI001对应的移动流量消耗信息,将获取到的移动流量消息信息发送至手机的流量管理应用。
步骤807:手机的流量管理应用存储卡标识IMSI001对应的移动流量消耗信息。
需要说明的是,可以按照预设的流量更新周期触发执行上述步骤805~步骤807,从而使得手机中存储有智能手表中eSIM卡的最新移动流量消耗信息。流量更新周期的具体取值本申请实施例不作限定。
可选地,步骤806中智能手表的流量管理应用可以将智能手表中的流量统计信息发送给手机,手机的流量管理应用可以存储该流量统计信息,或者根据卡标识IMSI001检索出移动流量消耗信息并存储。
步骤808:手机的流量管理应用根据检测到的用户操作,显示移动流量消耗查询界面,界面中可以显示手机的SIM卡对应的“查看”控件,以及智能手表的eSIM卡对应的“查看”控件。
移动流量消耗查询界面的实现可以参考图4A中的界面410,这里不赘述。
需要说明的是,移动流量消耗查询界面中手机的SIM卡对应的“查看控件”可以与手机的SIM卡的卡标识IMSI002对应,智能手表的eSIM卡对应的“查看”控件可以与智能手表的eSIM卡的卡标识IMSI001对应。
步骤809:手机的流量管理应用检测到针对于eSIM卡的“查看”控件的选择操作,获取卡标识IMSI001对应的移动流量消耗信息,据此显示移动流量展示界面。
移动流量展示界面的实现可以参考图4A中的界面420,这里不赘述。
步骤810:手机的流量管理应用检测到针对于智能手表中应用的查看操作,根据卡标识IMSI001对应的移动流量消耗信息生成应用的移动流量消耗信息展示界面,该展示界面中显示有智能手表中各应用的移动流量消耗信息,例如各应用在当前计费周期中消耗的移动流量。
应用的移动流量消耗信息展示界面的实现可以参考图4A中的界面430,这里不赘述。
图8所示的方法中,以手机和智能手表通过直接连接进行数据交互为例。在本申请提供的另一个实施例中,手机和智能手表可以通过间接连接的方式进行图8中涉及的数据交互,该实施例与图8所示实施例的区别主要在于数据交互使用的连接不同,该实施例的具体实现这里不赘述。
图9所示为本申请实施例提供的一种电子设备的软件结构框图。分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将安卓(Android)系统分为四层,从上至下分别为应用层,框架层,安卓运行时(Android runtime)和系统库,以及内核层。
应用层(Application,App)可以包括一系列应用程序包。应用程序包可以包括上述的第一应用、流量管理应用等。另外,应用层又可以分为界面、逻辑和数据三个模块,各模块之间通过软件接口通信。其中,界面模块用于信息展示,以供用户交互;逻辑模块用于信息处理;数据模块用于数据的存储。
具体的,如图9所示,界面模块包括:
UI模块,用于显示前述实施例中说明的界面,例如上述移动流量消耗查询界面、SIM卡的移动流量展示界面,设备中应用的移动流量展示界面等。
逻辑模块包括:
一号多终端信息管理模块,用于存储电话号码关联SIM卡列表等信息;
多终端流量信息管理模块,用于存储关联第一电话号码的SIM卡的移动流量消耗信息。其中关联第一电话号码的SIM卡可以包括:本机中关联第一电话号码的SIM卡,以及,本机之外其他电子设备中关联第一电话号码的SIM卡。
本机流量统计模块,用于进行本设备的流量使用情况统计,并记录流量统计信息。
上述UI模块、一号多终端信息管理模块、多终端流量信息管理模块、本机流量统计模块可以是一个应用例如流量管理应用中的模块。
框架层(Framework,FWK)为应用层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。例如图9中所示的通信协议框架。
系统库可以包括多个功能模块。例如图9中所示的数据传输模块。
内核层是硬件和软件之间的层。内核层可以包含通信驱动等等。
在一种可能的实现方式中,两个电子设备之间进行数据交互的示意图例如图10所示。其中,电子设备1与电子设备2的一号多终端信息管理模块之间通过直接连接进行关联同一电话号码的SIM卡的卡标识的同步;电子设备1与电子设备2的多终端流量信息管理模块之间可以通过直接连接进行关联同一电话号码的SIM卡的移动流量消耗信息的同步。
在另一种可能的实现方式中,两个电子设备之间进行数据交互的示意图例如图11所示。其中,电子设备1与电子设备2的一号多终端信息管理模块之间通过信息中转设备间接连接,进行关联同一电话号码的SIM卡的卡标识的同步;电子设备1与电子设备2的多终端流量信息管理模块之间通过信息中转设备间接连接,进行关 联同一电话号码的SIM卡的移动流量消耗信息的同步。
需要说明的是,以上图1至图9所示的本申请实施例中以电子设备中设置SIM卡为例,该SIM卡可以是传统的卡片式SIM卡,也可以是eSIM卡,本申请实施例不作限定。
本申请还提供一种电子设备,所述设备包括存储介质和中央处理器,所述存储介质可以是非易失性存储介质,所述存储介质中存储有计算机可执行程序,所述中央处理器与所述非易失性存储介质连接,并执行所述计算机可执行程序以实现本申请图1~图8所示实施例提供的方法。
本申请实施例还提供一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,当其在计算机上运行时,使得计算机执行本申请图1~图8所示实施例提供的方法。
本申请实施例还提供一种计算机程序产品,该计算机程序产品包括计算机程序,当其在计算机上运行时,使得计算机执行本申请图1~图8所示实施例提供的方法。
本申请实施例中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示单独存在A、同时存在A和B、单独存在B的情况。其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项”及其类似表达,是指的这些项中的任意组合,包括单项或复数项的任意组合。例如,a,b和c中的至少一项可以表示:a,b,c,a和b,a和c,b和c或a和b和c,其中a,b,c可以是单个,也可以是多个。
本领域普通技术人员可以意识到,本文中公开的实施例中描述的各单元及算法步骤,能够以电子硬件、计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,任一功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory;以下简称:ROM)、随机存取存储器(Random Access Memory;以下简称:RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本申请的具体实施方式,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。本申请的保护范围应以所述权利要求的保护范围为准。

Claims (11)

  1. 一种流量统计方法,应用于第一电子设备,所述第一电子设备中设置有第一SIM卡,所述第一SIM卡关联第一电话号码,其特征在于,包括:
    显示第一界面,所述第一界面中显示有第一控件;所述第一控件与关联所述第一电话号码的第二SIM卡对应;所述第二SIM卡设置于第二电子设备中;
    检测到针对于所述第一控件的选择操作,显示第二界面,所述第二界面中显示有第二SIM卡对应的移动流量信息。
  2. 根据权利要求1所述的方法,其特征在于,还包括:
    所述第二界面中显示有第二控件;
    检测到针对于所述第二控件的选择操作,显示第三界面,所述第三界面中显示有第二电子设备中各应用的移动流量信息,所述应用对应的移动流量信息用于记录所述应用通过所述第二SIM卡消耗的移动流量。
  3. 根据权利要求1所述的方法,其特征在于,还包括:
    所述第二界面中显示有第二电子设备中各应用的移动流量信息,所述应用的移动流量信息用于记录所述应用通过所述第二SIM卡消耗的移动流量。
  4. 根据权利要求1至3任一项所述的方法,其特征在于,所述显示第一界面之前,还包括:
    获取所述第二SIM卡的卡标识;
    所述显示第一界面,包括:
    根据所述第二SIM卡的卡标识显示所述第一界面,所述第一控件与所述第二SIM卡的卡标识对应。
  5. 根据权利要求1至3任一项所述的方法,其特征在于,所述显示第二界面之前,还包括:
    获取所述第二SIM卡对应的移动流量信息;
    所述显示第二界面,包括:
    根据所述第二SIM卡对应的移动流量信息显示所述第二界面。
  6. 根据权利要求4所述的方法,其特征在于,所述获取所述第二SIM卡的卡标识,包括:
    从第一服务器获取所述第二SIM卡的卡标识,所述第二SIM卡的卡标识由所述第二电子设备传输至所述第一服务器;或者,
    从所述第二电子设备获取所述第二SIM卡的卡标识;或者,
    从第一应用获取所述第二SIM卡的卡标识,所述第一应用是开通所述第二SIM卡关联所述第一电话号码业务的应用;或者,
    从目标界面中获取用户输入的信息,得到所述第二SIM卡的卡标识。
  7. 根据权利要求5所述的方法,其特征在于,所述获取所述第二SIM卡对应的移动流量信息,包括:
    从第一服务器获取所述第二SIM卡对应的移动流量信息,所述第二SIM卡对应 的移动流量信息由所述第二电子设备传输至所述第一服务器;或者,
    从所述第二电子设备获取所述第二SIM卡对应的移动流量信息。
  8. 根据权利要求1至7任一项所述的方法,其特征在于,还包括:
    所述第一界面中显示有第三控件;所述第三控件与关联所述第一电话号码的第三SIM卡对应;所述第三SIM卡设置于第三电子设备中;
    检测到针对于所述第三控件的选择操作,显示第三界面,所述第三界面中显示有所述第三SIM卡对应的移动流量信息。
  9. 根据权利要求1至8任一项所述的方法,其特征在于,所述第二SIM卡是eSIM卡。
  10. 一种电子设备,其特征在于,包括:
    一个或多个处理器;存储器;以及一个或多个计算机程序,其中所述一个或多个计算机程序被存储在所述存储器中,所述一个或多个计算机程序包括指令,当所述指令被所述设备执行时,使得所述设备执行权利要求1至9任一项所述的方法。
  11. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机程序,当其在计算机上运行时,使得计算机执行权利要求1至9任一项所述的方法。
PCT/CN2022/107063 2021-08-02 2022-07-21 流量统计方法和电子设备 WO2023011202A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
EP22851916.1A EP4354911A1 (en) 2021-08-02 2022-07-21 Traffic statistical method and electronic device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110882120.9 2021-08-02
CN202110882120.9A CN115942268A (zh) 2021-08-02 2021-08-02 流量统计方法和电子设备

Publications (1)

Publication Number Publication Date
WO2023011202A1 true WO2023011202A1 (zh) 2023-02-09

Family

ID=85155151

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/107063 WO2023011202A1 (zh) 2021-08-02 2022-07-21 流量统计方法和电子设备

Country Status (3)

Country Link
EP (1) EP4354911A1 (zh)
CN (1) CN115942268A (zh)
WO (1) WO2023011202A1 (zh)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109413600A (zh) * 2018-11-06 2019-03-01 广东小天才科技有限公司 一种话费及流量的查询方法及系统
CN110876139A (zh) * 2018-08-29 2020-03-10 上海博泰悦臻网络技术服务有限公司 共享手机卡套餐流量的方法、系统、电子设备、及车辆
US10701551B1 (en) * 2019-09-11 2020-06-30 T-Mobile Usa, Inc. Methods for sharing a virtual SIM card
CN112887926A (zh) * 2019-11-30 2021-06-01 华为技术有限公司 一种呼叫方法及装置
CN113038434A (zh) * 2019-12-09 2021-06-25 华为技术有限公司 设备注册方法、装置、移动终端和存储介质

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110876139A (zh) * 2018-08-29 2020-03-10 上海博泰悦臻网络技术服务有限公司 共享手机卡套餐流量的方法、系统、电子设备、及车辆
CN109413600A (zh) * 2018-11-06 2019-03-01 广东小天才科技有限公司 一种话费及流量的查询方法及系统
US10701551B1 (en) * 2019-09-11 2020-06-30 T-Mobile Usa, Inc. Methods for sharing a virtual SIM card
CN112887926A (zh) * 2019-11-30 2021-06-01 华为技术有限公司 一种呼叫方法及装置
CN113038434A (zh) * 2019-12-09 2021-06-25 华为技术有限公司 设备注册方法、装置、移动终端和存储介质

Also Published As

Publication number Publication date
CN115942268A (zh) 2023-04-07
EP4354911A1 (en) 2024-04-17

Similar Documents

Publication Publication Date Title
WO2020041952A1 (zh) 一种基于快递消息控制快递柜的方法及电子设备
EP4110004A1 (en) Wi-fi aware link establishment method and system, electronic device, and storage medium
WO2020062344A1 (zh) 一种数据传输方法及电子设备
US11843712B2 (en) Address book-based device discovery method, audio and video communication method, and electronic device
EP4152190A1 (en) Permission management method and apparatus for application, and electronic device
EP4192058A1 (en) Bluetooth communication method, terminal device, and computer-readable storage medium
EP3902235B1 (en) Application-based incoming call display method and terminal device
WO2023273540A1 (zh) 避免漏接电话的方法、系统、电子设备及存储介质
CN112181616B (zh) 任务处理方法及相关装置
CN110806926A (zh) 一种资源管控方法及设备
US20230125956A1 (en) Wireless Communication System and Method
CN111343326A (zh) 获取测试日志的方法及相关装置
CN114095599A (zh) 消息显示方法和电子设备
WO2022262492A1 (zh) 数据下载方法、装置和终端设备
CN113596919B (zh) 数据下载方法、装置和终端设备
EP4116822A1 (en) Method for displaying time, and electronic device
WO2022242412A1 (zh) 杀应用的方法及相关设备
EP4280596A1 (en) Video call method and related device
CN114554012B (zh) 来电接听方法、电子设备及存储介质
WO2023011202A1 (zh) 流量统计方法和电子设备
CN110737916A (zh) 通信终端及处理方法
WO2023160205A1 (zh) 进程的控制方法、电子设备及可读存储介质
WO2024093795A1 (zh) 一种设备替换的配置方法及装置
WO2023024945A1 (zh) 干扰消除方法、电子设备及存储介质
CN115706994A (zh) 访问控制方法和电子设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22851916

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2022851916

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 2022851916

Country of ref document: EP

Effective date: 20240109

WWE Wipo information: entry into national phase

Ref document number: 18291449

Country of ref document: US

NENP Non-entry into the national phase

Ref country code: DE