CN116709295A - Data acquisition method and terminal equipment - Google Patents

Data acquisition method and terminal equipment Download PDF

Info

Publication number
CN116709295A
CN116709295A CN202211608345.6A CN202211608345A CN116709295A CN 116709295 A CN116709295 A CN 116709295A CN 202211608345 A CN202211608345 A CN 202211608345A CN 116709295 A CN116709295 A CN 116709295A
Authority
CN
China
Prior art keywords
sim card
data
ril
acquire
terminal device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202211608345.6A
Other languages
Chinese (zh)
Other versions
CN116709295B (en
Inventor
牛潇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202211608345.6A priority Critical patent/CN116709295B/en
Publication of CN116709295A publication Critical patent/CN116709295A/en
Application granted granted Critical
Publication of CN116709295B publication Critical patent/CN116709295B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
    • H04W8/20Transfer of user or subscriber data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
    • H04W8/20Transfer of user or subscriber data
    • H04W8/205Transfer to or from user equipment or user record carrier
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

The application provides a data acquisition method and terminal equipment, which are beneficial to improving the probability of acquiring the data of a SIM card, thereby being beneficial to solving the problem that the cellular data service cannot be activated after HOTA upgrading. The method comprises the following steps: after the system upgrading of the terminal equipment is finished and restarted, requesting to acquire the data of the SIM card, wherein the data of the SIM card is used for activating the cellular data service; in case that the data of the SIM card is not acquired, the acquisition of the data of the SIM card is re-requested before restarting the terminal device again.

Description

Data acquisition method and terminal equipment
Technical Field
The present application relates to the field of terminal technologies, and in particular, to a data acquisition method and a terminal device.
Background
With the rapid development of the terminal market, the product updating speed is faster and faster, more and more terminal software problems are exposed, and the requirements of users on solving the software problems are higher and higher. Currently, terminals may address terminal software issues for users through online upgrade (OTA) techniques (e.g., HOTA upgrades).
Taking HOTA as an example, during HOTA upgrades, the communication interface (Qualcommmessage interface, QMI) of the modem may need to be restarted. After the HOTA upgrade of the terminal is completed and the terminal is restarted, QMI may not be restored, so that the terminal cannot acquire the data of the subscriber identity module (subscriber identity module, SIM) card from the modem through QMI, that is, there is no data of the SIM card available to activate the cellular data service, thereby causing the user to be unable to normally use the cellular data for surfing.
Disclosure of Invention
The application provides a data acquisition method and terminal equipment, which are beneficial to improving the probability of acquiring the data of a SIM card, thereby being beneficial to solving the problem that the cellular data service cannot be activated after HOTA upgrading.
In a first aspect, the present application provides a data acquisition method, applied to a terminal device, where the method includes: after the system upgrading of the terminal equipment is finished and restarted, requesting to acquire data of a Subscriber Identity Module (SIM) card, wherein the data of the SIM card are used for activating cellular data service; in case that the data of the SIM card is not acquired, the acquisition of the data of the SIM card is re-requested before restarting the terminal device again.
In general, the terminal device may involve a restart of QMI during a system upgrade (e.g., HOTA upgrade). After the system upgrade of the terminal device is completed and restarted, QMI may not be completely restored, at which time there is a case that the acquisition fails if the terminal device acquires data of the SIM through the QMI request. After the data of the SIM card is failed to be acquired, the terminal equipment cannot activate the cellular data service, so that the user cannot use the cellular data to surf the internet.
Based on the technical scheme of the application, after the system upgrade is completed and restarted, if the data of the SIM card is not acquired, the terminal equipment can actively acquire the data of the SIM card before the user manually restarts the terminal equipment or before the terminal equipment automatically restarts the terminal equipment. Therefore, the method is favorable for re-acquiring the data of the SIM card under the condition that the user is not felt, improves the probability of acquiring the data of the SIM card, and solves the problem that the cellular data service cannot be activated after the HOTA is upgraded.
With reference to the first aspect, in certain implementations of the first aspect, the terminal device includes a radio interface layer (radio interface layer, RIL). Re-requesting the data of the SIM card, including: re-requesting to acquire the data of the SIM card through the RIL; or, based on the power-on and power-off operation of the SIM card, re-requesting to acquire the data of the SIM card.
The application provides two methods for re-acquiring the data of the SIM card. In the first method, the RIL requests the data of the SIM card from the modem again through QMI in case the data of the SIM card is not acquired. In the second method, the RIL instructs the SIM card to perform a power-on and power-off operation if no data of the SIM card is acquired. The data of the SIM card is re-requested from the modem through QMI based on the power-on and power-off operation of the SIM card.
The two modes can increase the times of re-acquiring the data of the SIM card, are simple in implementation mode, are beneficial to solving the abnormal problem in the process of activating the cellular data service without participation of the user, and improve the use experience of the user.
With reference to the first aspect, in certain implementations of the first aspect, the terminal device includes a RIL. Re-requesting the data of the SIM card, including: re-requesting to acquire the data of the SIM card through the RIL; in the case where the data of the SIM card is not acquired through the RIL, the acquisition of the data of the SIM card is re-requested based on the power-on and power-off operation of the SIM card.
In the application, the terminal equipment combines two methods for acquiring the data of the SIM card, firstly carries out the first method and then carries out the second method. The first method is simpler and more convenient, and the user does not feel the method. The two methods are combined and implemented, so that the probability of automatically acquiring the data of the SIM card is increased, and the problem that the cellular data service cannot be activated after the system is upgraded is solved.
With reference to the first aspect, in certain implementations of the first aspect, the terminal device includes a RIL. Re-requesting the data of the SIM card, including: re-requesting to acquire data of the SIM card based on the power-on and power-off operation of the SIM card; in the case that the data of the SIM card is not acquired based on the power-on and power-off operation of the SIM card, the data of the SIM card is re-requested to be acquired through the RIL.
In the application, the terminal equipment combines two methods for acquiring the data of the SIM card, firstly implements the second method and then implements the first method. Thus, the probability of acquiring the data of the SIM card is improved, and the problem that the cellular data service cannot be activated after the system is upgraded is solved.
With reference to the first aspect, in certain implementation manners of the first aspect, the re-requesting, by the RIL, to obtain data of the SIM card includes: before the RIL sends the error report instruction, the data of the SIM card is re-requested to be acquired through the RIL, and the error report instruction is used for indicating that the data of the SIM card is not acquired.
In the present application, if QMI is not restored, then RIL returns an error instruction to RIL after sending a request to acquire data of SIM card to modem through QMI, indicating failure to acquire data of SIM card. After the RIL receives the error report instruction, the RIL sends the error report instruction to the call service. Before the RIL receives the error report instruction to the RIL sends the error report instruction to the call service, the RIL may re-request to acquire the data of the SIM card. This is advantageous in order to avoid additional delays to the flow of activating the cellular data service.
With reference to the first aspect, in some implementations of the first aspect, the number of times of re-requesting to acquire data of the SIM card by the RIL does not exceed a preset threshold. This is advantageous in order to avoid that excessive number of retries have an impact on the normal flow of activating the cellular data service.
With reference to the first aspect, in certain implementations of the first aspect, the terminal device further includes a call service. Based on the power-on and power-off operation of the SIM card, re-requesting to acquire the data of the SIM card comprises the following steps: re-requesting the RIL for obtaining the data of the SIM card through a call service based on the powering-on and powering-off operation of the SIM card; and re-requesting to acquire the data of the SIM card through the RIL.
In the application, the power-on and power-off operation of the SIM card triggers the call service to send a request for acquiring the data of the SIM card to the RIL again, and then the RIL can send the request for acquiring the data of the SIM card to the modem through the QMI again based on the request, so that the retry frequency is increased, and the probability of acquiring the data of the SIM card is improved.
In a second aspect, the present application provides a terminal device, which may also be referred to as a terminal (terminal), a User Equipment (UE), a Mobile Station (MS), a Mobile Terminal (MT), or the like. The terminal device may be a mobile phone, a personal computer (personal computer, PC), a smart television, a wearable device, a tablet (Pad), a computer with wireless transceiving function, a Virtual Reality (VR) terminal device, an augmented reality (augmented reality, AR) terminal device, a wireless terminal in industrial control (industrial control), a wireless terminal in unmanned (self-driving), a wireless terminal in teleoperation (remote medical surgery), a wireless terminal in smart grid (smart grid), a wireless terminal in transportation security (transportation safety), a wireless terminal in smart city (smart city), a wireless terminal in smart home (smart home), or the like.
The terminal device includes: comprising the following steps: a processor and a memory; the memory stores computer-executable instructions; the processor executes computer-executable instructions stored in the memory to cause the terminal device to perform a method as in the first aspect.
In a third aspect, the present application provides a computer-readable storage medium storing a computer program. The computer program, when executed by a processor, implements a method as in the first aspect.
In a fourth aspect, the application provides a computer program product comprising a computer program which, when run, causes a computer to perform the method as in the first aspect.
In a fifth aspect, the application provides a chip comprising a processor for invoking a computer program in memory to perform the method according to the first aspect.
It should be understood that the second to fifth aspects of the present application correspond to the technical solutions of the first aspect of the present application, and the advantages obtained by each aspect and the corresponding possible embodiments are similar, and are not repeated.
Drawings
Fig. 1 is a schematic structural diagram of a terminal device to which the embodiment of the present application is applicable;
FIG. 2 is a block diagram of a software architecture of a terminal device to which embodiments of the present application are applicable;
fig. 3 is a schematic flow chart of a method of activating a cellular data service;
fig. 4 is a schematic diagram of an icon of a cellular data service according to an embodiment of the present application;
fig. 5 to 9 are schematic flowcharts of a data acquisition method according to an embodiment of the present application.
Detailed Description
The technical scheme of the application will be described below with reference to the accompanying drawings.
In order to facilitate the clear description of the technical solutions of the embodiments of the present application, the following will briefly introduce some terms related to the embodiments of the present application:
in the embodiment of the application, the words "first", "second", etc. are used to distinguish identical items or similar items having substantially the same function and action, and the sequence thereof is not limited. It will be appreciated by those of skill in the art that the words "first," "second," and the like do not limit the amount and order of execution, and that the words "first," "second," and the like do not necessarily differ.
In the present application, the words "exemplary" or "such as" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "for example" should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion.
Furthermore, "at least one" means one or more, and "a plurality" means two or more. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a alone, a and B together, and B alone, wherein a, B may be singular or plural. The character "/" generally indicates that the context-dependent object is an "or" relationship. "at least one of" or the like means any combination of these items, including any combination of single item(s) or plural items(s). For example, at least one (one) of a, b, and c may represent: a, b, or c, or a and b, or a and c, or b and c, or a, b and c, wherein a, b and c can be single or multiple.
The "at … …" in the embodiment of the present application may be an instant when a certain situation occurs, or may be a period of time after a certain situation occurs, which is not particularly limited. In addition, the display interface provided by the embodiment of the application is only used as an example, and the display interface can also comprise more or less contents.
Fig. 1 is a schematic structural diagram of a terminal device to which the embodiment of the present application is applicable. As shown in fig. 1, the terminal device 100 may include: processor 110, external memory interface 120, internal memory 121, usb interface 130, charge management module 140, power management module 141, battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headset interface 170D, sensor module 180, keys 190, motor 191, indicator 192, camera 193, display 194, and subscriber identity module (subscriber identification module, SIM) card interface 195, etc. It is to be understood that the configuration illustrated in the present embodiment does not constitute a specific limitation on the terminal device 100. In other embodiments of the application, terminal device 100 may include more or less components than illustrated, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 110 may include one or more processing units, such as: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, a display processing unit (display process unit, DPU), and/or a neural-network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors. In some embodiments, the terminal device 100 may also include one or more processors 110. The processor may be a neural hub and a command center of the terminal device 100. The processor can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution. A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 uses or recycles. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. This avoids repeated accesses and reduces the latency of the processor 110, thereby improving the efficiency of the terminal device 100.
In some embodiments, the processor 110 may include one or more interfaces. The interfaces 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 receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, and/or a USB interface, among others. The USB interface 130 is an interface conforming to the USB standard, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 130 may be used to connect a charger to charge the terminal device 100, or may be used to transfer data between the terminal device 100 and a peripheral device. And can also be used for connecting with a headset, and playing audio through the headset.
It should be understood that the interfacing relationship between the modules illustrated in the embodiment of the present application is illustrated schematically, and does not constitute a structural limitation of the terminal device 100. In other embodiments of the present application, the terminal device 100 may also use different interfacing manners, or a combination of multiple interfacing manners in the foregoing embodiments.
The wireless communication function of the terminal device 100 can be implemented 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. The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the terminal device 100 may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed into a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution including 2G/3G/4G/5G wireless communication applied to the terminal device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier, etc. The mobile communication module 150 may receive electromagnetic waves from the antenna 1, perform processes such as filtering, amplifying, and the like on the received electromagnetic waves, and transmit the processed electromagnetic waves to the modem processor for demodulation. The mobile communication module 150 can amplify the signal modulated by the modem processor, and convert the signal into electromagnetic waves through the antenna 1 to radiate. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be provided in the same device as at least some of the modules of the processor 110.
The 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 for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low frequency baseband signal to the baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs sound signals through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or video through the display screen 194. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 150 or other functional module, independent of the processor 110.
The wireless communication module 160 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN), bluetooth, global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), NFC, infrared technology (IR), etc. applied on the terminal device 100. The wireless communication module 160 may be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signals, filters the electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation via the antenna 2.
In some embodiments, antenna 1 and mobile communication module 150 of terminal device 100 are coupled, and antenna 2 and wireless communication module 160 are coupled, such that terminal device 100 may communicate with a network and other devices via wireless communication techniques. The wireless communication techniques may include GSM, GPRS, CDMA, WCDMA, TD-SCDMA, LTE, GNSS, WLAN, NFC, FM, and/or IR techniques, among others. The GNSS may include a global satellite positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a Beidou satellite navigation system (bei dou navigation satellite system, BDS), a quasi zenith satellite system (quasi-zenith satellite system, QZSS) and/or a satellite based augmentation system (satellite based augmentation systems, SBAS).
The terminal device 100 may implement a display function through a GPU, a display screen 194, an application processor, and the like. The application processor may include an NPU and/or a DPU. The GPU is a microprocessor for image processing, and is connected to the display 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute instructions to generate or change display information. The NPU is a neural-network (NN) computing processor, and can rapidly process input information by referencing a biological neural network structure, for example, referencing a transmission mode between human brain neurons, and can also continuously perform self-learning. Applications such as intelligent awareness of the terminal device 100 may be implemented by the NPU, for example: image recognition, face recognition, speech recognition, text understanding, etc. The DPU is also referred to as a display sub-system (DSS) for adjusting the color of the display screen 194, and may adjust the color of the display screen via a color three-dimensional (3D) look-up table (LUT). The DPU can also perform processes such as scaling, noise reduction, contrast enhancement, backlight brightness management, hdr processing, display parameter Gamma adjustment, and the like on the picture.
The display screen 194 is used to display images, videos, and the like. The display 194 includes a display panel. The display panel may employ a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (OLED), an active-matrix organic light emitting diode (AMOLED), a flexible light-emitting diode (FLED), miniled, microLed, micro-OLED, or a quantum dot light-emitting diode (quantum dot light emitting diodes, QLED). In some embodiments, the terminal device 100 may include 1 or N display screens 194, N being a positive integer greater than 1.
The terminal device 100 may implement photographing functions through an ISP, one or more cameras 193, a video codec, a GPU, one or more display screens 194, an application processor, and the like.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to realize expansion of the memory capability of the terminal device 100. The external memory card communicates with the processor 110 through an external memory interface 120 to implement data storage functions. For example, data files such as music, photos, videos, etc. are stored in an external memory card.
The internal memory 121 may be used to store one or more computer programs, including instructions. The processor 110 may cause the terminal device 100 to execute various functional applications, data processing, and the like by executing the above-described instructions stored in the internal memory 121. The internal memory 121 may include a storage program area and a storage data area. The storage program area can store an operating system; the storage area may also store one or more applications (e.g., gallery, contacts, etc.), and so forth. The storage data area may store data (e.g., photos, contacts, etc.) created during use of the terminal device 100, etc. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like. In some embodiments, the processor 110 may cause the terminal device 100 to perform various functional applications and data processing by executing instructions stored in the internal memory 121, and/or instructions stored in a memory provided in the processor 110.
The terminal device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playing, recording, etc. Wherein the audio module 170 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be disposed in the processor 110, or a portion of the functional modules of the audio module 170 may be disposed in the processor 110. The speaker 170A, also referred to as a "horn," is used to convert audio electrical signals into sound signals. The terminal device 100 can listen to music or to handsfree talk through the speaker 170A. A receiver 170B, also referred to as a "earpiece", is used to convert the audio electrical signal into a sound signal. When the terminal device 100 receives a call or voice message, it is possible to receive voice by approaching the receiver 170B to the human ear. Microphone 170C, also known as a "microphone" or "microphone," is used to convert sound signals into electrical signals. When making a call or transmitting voice information, the user can sound near the microphone 170C through the mouth, inputting a sound signal to the microphone 170C. The terminal device 100 may be provided with at least one microphone 170C. In other embodiments, the terminal device 100 may be provided with two microphones 170C, and may implement a noise reduction function in addition to collecting sound signals. In other embodiments, the terminal device 100 may be further provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify the source of sound, implement directional recording functions, etc. The earphone interface 170D is used to connect a wired earphone. The earphone interface 170D may be a USB interface 130, or may be a 3.5mm open mobile terminal platform (open mobile terminal platform, OMTP) standard interface, or may be a american cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
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 sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
The software system of the terminal device 100 may employ a layered architecture, an event driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the application takes an Android (Android) system with a layered architecture as an example, and illustrates a software structure of the terminal device 100.
Fig. 2 is a block diagram of a software architecture of a terminal device to which an embodiment of the present application is applicable. The layered architecture divides the software system of the terminal device 100 into several layers, each layer having a distinct role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the Android system may be divided into an application layer (APP), an application framework layer (application framework), an Zhuoyun rows (Android run) and libraries, a hardware abstraction layer (hardware abstraction layer, HAL), and a kernel layer (kernel). In some embodiments, the terminal device 100 also includes hardware (e.g., microphone, speaker).
The application layer may include a series of application packages that run applications by calling an application program interface (application programming interface, API) provided by the application framework layer. As shown in fig. 2, the application package may include applications for cameras, calendars, maps, conversations, music, WLAN, bluetooth, video, social, gallery, navigation, short messages, etc.
The application framework layer provides APIs and programming frameworks for application programs of the application layer. The application framework layer includes a number of predefined functions. As shown in FIG. 2, the application framework layer may include a window manager, a content provider, a resource manager, a notification manager, a view system, a telephony manager, and the like.
The window manager is used for managing window programs. The window manager can acquire the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
The content provider is used to store and retrieve data and make such data accessible to applications. The data may include video images, audio, calls made and received, browsing history and bookmarks, phonebooks, etc.
The view system includes visual controls, such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, a display interface including a text message notification icon may include a view displaying text and a view displaying a picture.
The call manager (telephony manager) is used to provide a call state of the terminal device 100, obtain call information (e.g., device information, SIM card information, and network information), listen to a call state (e.g., call state, service state, signal strength state), and can invoke a telephone dialer to make a call. In the embodiment of the application, the telephone manager is called a telephone (telephone) service.
The SIM card is a chip card with a microprocessor, and is internally provided with five modules, namely a central processing unit (central process unit, CPU), a program memory, a working memory, a data memory and a serial communication unit. The SIM card can realize the whole process of storing data (phonebook, short message, etc.) and completing the customer identity authentication and the customer information encryption algorithm under the security condition.
The resource manager provides various resources for the application program, such as localization strings, icons, pictures, layout files, video files, and the like.
The notification manager allows the application to display notification information in a status bar, can be used to communicate notification type messages, can automatically disappear after a short dwell, and does not require user interaction. Such as notification manager is used to inform that the download is complete, message alerts, etc. The notification manager may also be a notification in the form of a chart or scroll bar text that appears on the system top status bar, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, a text message is presented in a status bar, a presentation sound is emitted, the terminal device 100 vibrates, and an indicator light blinks.
The android runtime includes a core library and virtual machines. And the android running time is responsible for scheduling and managing an android system. The core library consists of two parts: one part is a function to be called by a java language used by the java API framework, and the other part is a core library of android. The application layer and the application framework layer run in a virtual machine. The virtual machine executes java files of the application program layer and the application program framework layer as binary files. The virtual machine is used for executing the functions of object life cycle management, stack management, thread management, security and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface manager (surface manager), media library (media library), three-dimensional graphics processing library (e.g., openGL ES), two-dimensional graphics engine (e.g., SGL), wireless RIL, etc.
The surface manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications. Media libraries support a variety of commonly used audio, video format playback and recording, still image files, and the like. The media library may support a variety of audio video encoding formats, such as: MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, etc. The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like. The 2D graphics engine is a drawing engine for 2D drawing.
The modems of different manufacturers of android platforms are quite different, and the problem to be solved by RIL is to adapt to modems of different manufacturers. In the android platform, the RIL is located between the application framework layer and the modem, and includes two parts, RIL Daemon (RILD) and Vendor RIL. Wherein the RILD initializes the Vendor RIL, manages all communications from the telephony service, and dispatches them to the Vendor RIL as a requested command (solicited commands). The Vendor RIL manages all communications with the radio hardware and is distributed to the RILD via unsolicited commands (un solicited commands). Illustratively, the RIL provided by the high pass is referred to as qcil.
The hardware abstraction layer is an abstract interface driven by the device kernel, and provides an application program interface for accessing the bottom layer device for a java API framework at a higher level. The hardware abstraction layer may include a plurality of library modules, e.g., a display module, an audio module, a bluetooth module, a Wi-Fi module, etc., each of which may implement an interface for a particular type of hardware component. When the framework API requires access to the device hardware, the Android system will load the library module for that hardware component.
The kernel layer is a layer between hardware and software. The kernel layer is used for driving the hardware so that the hardware works. The kernel layer at least includes a display driver, an audio driver, a bluetooth driver, a Wi-Fi driver, a modem, and the like, which is not limited in the embodiment of the present application.
HOTA upgrade is an online upgrade solution, can be applied to an android system, and can solve the problem of terminal software. However, through big data statistics, various software problems exist in the HOTA upgrading process, for example, most users encounter the problem that the data traffic cannot be normally used for surfing the internet after the HOTA upgrading.
Fig. 3 is a schematic flow chart of a method 300 of activating cellular data services. In general, the terminal device may involve updating a software configuration (modem software configuration, MBN) file of the modem during the HOTA upgrade, and after the HOTA upgrade is completed, the terminal device may restart, after which the terminal device may perform the steps of the method 300 to activate the cellular data service. The MBN file is an integrated package file containing a set of embedded file system (embedded file system, EFS), non-volatile storage (NV) parameters that are customized by a particular operator. Each operator will have a specific MBN file contained in the modem's code.
The method 300 involves internal interactions of the terminal device, and in particular interactions between the SIM card, the call service, the RIL, and the modem. The method 300 includes steps S301 to S306, which are as follows:
S301, the SIM card sends a broadcast message to the call service, where the broadcast message is used to indicate that the SIM card has been switched from a card-less state (absent) to an online (present) state. Accordingly, the call service receives the broadcast message.
In general, the card status of a SIM card may include a presence status (present), a card-off status (error), and a card-free status (absent). When the card state is in the on-line state, the terminal device can normally communicate through the SIM card. When the contact between the SIM card and the metal contact of the mobile phone is poor or the battery is loose, the state of the SIM card can be a card-falling state or a card-free state, and the SIM card is not available.
S302, the call service sends a request for acquiring the data of the SIM card to the RIL. Accordingly, the RIL receives the request to acquire the data of the SIM card.
The data of the SIM card comprises the following types:
(1) Fixedly stored data, which is written by the SIM card center before the terminal device is sold, includes an international mobile subscriber identity (international mobile subscriber identification number, IMSI), an authentication Key (KI), authentication and encryption algorithms, etc. The data of the part of the SIM card is important application data when the SIM card is started and the SIM card is added into an operator network.
Where IMSI is an identification number that is used to distinguish between unnecessary subscribers in a cellular network and is not repeated in all cellular networks. After the call service obtains the IMSI, the call service can analyze the information such as the card number, APN and the like of the SIM card according to the IMSI. The APN is a parameter which needs to be configured when the terminal equipment surfs the internet and is used for identifying the accessed service. The APNs of the same service for different operators are different, e.g. access to internet services, with APN for operator a being cmnet and APN for operator B being 3gnet.
After the call service acquires the APN, the call service can activate the cellular data service according to the APN, namely, establish the connection of the data service with the network side, so that uplink and downlink cellular data can be transmitted.
(2) SIM card dynamic data about the network, such as location area identification codes (location area identification, LAI), public telephone network codes to prohibit access, etc. The data of the part of the SIM card is dynamic application data of the SIM card when the operator network updates the position information.
(3) SIM card related service codes such as personal identification number (personal identification number, PIN), PIN Unlock Key (PUK), billing rate, etc.
(4) The telephone directory is provided as a modifiable memory module to the user for storing telephone numbers entered by the user at any time.
S303, RIL sends request for obtaining data of SIM card to modem through QMI. Accordingly, the modem receives the request to acquire the data of the SIM card.
It should be understood that QMI is an interface provided by baseband chip vendors for application layer to underlying modems to communicate. The call service access modem needs to pass RIL, which needs to read the data of the SIM card from the modem through QMI.
S304, the modem sends an error report instruction (error 38) to the RIL, wherein the error report instruction is used for indicating that the data of the SIM card is not acquired. Accordingly, the RIL receives the error-reporting instruction.
S305, RIL sends error report instruction to call service. Accordingly, the call service receives the error report instruction.
S306, the call service updates the card status of the SIM card to a loaded status.
It should be understood that although the call service does not acquire the data of the SIM card and cannot activate the cellular service data according to the APN in the data of the SIM card, the call service still continues to update the card status of the SIM card to the loading completion status. In the loading completion state, the call service can normally provide services such as call, access network and the like, but no cellular data is available after the access network.
In S304, the RIL receives the error report instruction from the modem, and indicates that the data of the SIM card is not acquired, which is because, in the HOTA upgrade process, if there is a protocol-related update in the upgrade process, the terminal device updates the relevant configuration of the MBN file, and because the MBN file is a software configuration file of the modem, the modem also needs to be restarted when updating the MBN file, and the interface of the modem also needs to be restarted, and the interface of the modem includes QMI. After the HOTA upgrade is restarted, if the QMI is not restored to normal at this time, the RIL cannot acquire the data of the SIM card through the QMI, which may also be understood as that the data of the SIM card read by the RIL is empty. Thus, the call service cannot normally load the data of the SIM card, the APN is empty, and the cellular data service cannot be activated, so that the problem that the user cannot use the cellular network to surf the internet is caused.
Fig. 4 is a schematic diagram of an icon of a cellular data service according to an embodiment of the present application.
As shown by a in fig. 4, is a schematic icon of a failure of activation of the cellular data service, and b in fig. 4 is a schematic icon of a successful activation of the cellular data service. Comparing the icons identified by the boxes in fig. 4, it can be seen that in the case of a failure in activation of the cellular data service, the status bar of the mobile phone does not indicate a flag for transmission of uplink and downlink data services. And in case of successful activation of the cellular data service, the status bar of the mobile phone displays a flag indicating transmission of the uplink and downlink data service.
As shown in b of fig. 4, the status bar of the mobile phone displays an icon of the cellular data service, that is, a flag indicating the transmission of the uplink and downlink data services.
Currently, when a user finds that cellular data cannot be used for surfing the internet after the user restarts the HOTA upgrade at the terminal device, the user can restart the terminal device to solve the problem. However, this method requires manual operation by the user, which affects the user experience.
In view of this, an embodiment of the present application provides a data acquisition method, in which a terminal device performs HOTA upgrade, and after updating an MBN file and restarting, the terminal device may add a retry mechanism in the process of acquiring data of a SIM card, and retry to acquire the data of the SIM card. Thus, the probability of acquiring the data of the SIM card is increased, and the success rate of activating the cellular data service is improved. In addition, the method does not need manual operation of a user, and the terminal equipment can automatically trigger a retry mechanism, so that the use experience of the user is improved.
The retry mechanism of the embodiment of the application comprises a scheme one: RIL retry protocol. In the first scheme, after the terminal device performs HOTA upgrade, updates the MBN file and restarts, the RIL sends a request for acquiring the data of the SIM card to the modem through QMI after receiving the request for acquiring the data of the SIM card sent by the call service. If the RIL does not acquire the data of the SIM card, the RIL initiates a re-query and sends a request for acquiring the data of the SIM card to the modem through the QMI.
The terminal device of the embodiment of the application can be a mobile phone or a tablet and other devices supporting a cellular board (a SIM card can be inserted).
Fig. 5 is a schematic flow chart of a data acquisition method 500 according to an embodiment of the present application. After the HOTA upgrade of the terminal device is completed and restarted, the terminal device may perform the steps of method 500. The steps of method 500 may be interactively performed by a SIM card, a call service, RIL, and a modem of the terminal device. The terminal device may have a structure as shown in fig. 1 and/or fig. 2, but embodiments of the present application are not limited thereto.
The method 500 includes S501 to S509, which specifically include the following steps:
s501, the SIM card sends a first broadcast message to the call service, where the first broadcast message is used to indicate that the SIM card has been switched from a card-less state to an on-line state. Accordingly, the call service receives the first broadcast message.
S502, the call service sends a request for acquiring the data of the SIM card to the RIL. Accordingly, the RIL receives the request to acquire the data of the SIM card.
The request for acquiring the data of the SIM card in this step is illustratively a get_imsi message. The description of the data of the SIM card may be referred to in the description of S302, and will not be repeated here.
S503, the RIL sends a request to acquire data of the SIM card to the modem through QMI. Accordingly, the modem receives the request to acquire the data of the SIM card.
The request for acquiring data of the SIM card in this step is illustratively a qcril_ uim _request_get_imsi message.
S504, the modem sends an error report instruction (error 38) to the RIL, wherein the error report instruction is used for indicating that the data of the SIM card is not acquired. Accordingly, the RIL receives the error-reporting instruction.
In this step, if the QMI interface does not return to normal after updating the MBN file and restarting the MBN file in the process of performing the HOTA upgrade, when the RIL requests the modem to acquire the data of the SIM card through the QMI, the modem returns an error report instruction to the RIL, indicating that the data of the SIM card cannot be acquired.
S505, RIL starts the retry mechanism to inquire the data of the SIM card again.
It should be noted that, after the RIL receives the error reporting instruction, a preset time period exists before the RIL sends the error reporting instruction to the call service, that is, the RIL will send the error reporting instruction to the call service after the RIL receives the error reporting instruction.
Optionally, the RIL may retry querying the data of the SIM card within the preset period of time, which is in favor of avoiding extra delay to the flow of activating the cellular data service, and reducing the impact to providing the normal service after the call service.
If the QMI returns to normal during the period from when the RIL receives the error report instruction to when the RIL transmits the error report instruction to the call service, the RIL may re-query the data of the SIM card through the QMI, and S506 is performed.
Optionally, the number of RIL re-requests to acquire the data of the SIM card does not exceed a preset threshold, which may be preconfigured by the developer.
The preset threshold is illustratively 2. If the RIL successfully queries the data of the SIM card upon the first re-query, the RIL stops the query and S506 is performed. If the RIL fails the first re-query, the modem returns an error-reporting instruction to the RIL. The RIL does not send an error report instruction to the call service after receiving the error report instruction, continues to perform the second re-query, and performs S506 when the re-query is successful in the second time. If the second inquiry also fails, the RIL sends an error report instruction to the call service.
S506, the modem sends the data of the SIM card to the RIL through QMI. Accordingly, the RIL receives the data of the SIM card.
S507, RIL sends SIM card data to the call service. Accordingly, the call service receives the data of the SIM card.
S508, the call service updates the state of the SIM card to be the loading completion state.
S509, the call service loads the data of the SIM card and activates the cellular data service. The data of the call service loading the SIM card may also be described as a card following operation performed by the call service, where the card following operation indicates that corresponding content is displayed on the user interface according to the data of the SIM card. For example, an APN acquired from data of a SIM card is displayed at an interface of a set-radio and a network-mobile network-APN of a mobile phone.
In this step, because the call service can obtain the data of the SIM card, the call service can analyze the APN according to the IMSI in the data of the SIM card, send a PDN data establishment request to the network side according to the APN, and after the connection establishment of the PDN data service is successful, the terminal device can transmit cellular data with the network side.
The above description of the solution for RIL retry in conjunction with fig. 5 uses the time from when the RIL receives the error report instruction to when the RIL sends the error report instruction to the call service to try to retrieve the data of the SIM card, which is beneficial to avoiding additional delay to the process of activating the cellular data service. The method is simple to realize, and improves the probability of acquiring the data of the SIM card, thereby being beneficial to solving the problem that the cellular data service cannot be activated after the HOTA is upgraded.
The retry mechanism of the embodiment of the application comprises a scheme II: RIL instructs the SIM card to power up and down. In the second scheme, after the terminal device performs HOTA upgrade, updates the MBN file and restarts, the RIL sends a request for acquiring the data of the SIM card to the modem through QMI after receiving the request for acquiring the data of the SIM card sent by the call service. If the RIL does not acquire the data of the SIM card, the RIL indicates the power-on and power-off operation of the SIM card so as to acquire the data of the SIM card again.
To avoid interference to the user caused by frequent power-on and power-off operations, the RIL typically instructs the SIM card to perform the power-on and power-off operation at most once.
Fig. 6 is a schematic flow chart of another data acquisition method 600 provided by an embodiment of the present application. After the end device system upgrade is completed and restarted, the end device may perform the steps of method 600. The steps of method 600 may be interactively performed by a SIM card, a call service, RIL, and a modem of the terminal device. The terminal device may have a structure as shown in fig. 1 and/or fig. 2, but embodiments of the present application are not limited thereto.
The method 600 includes S601 to S613, which specifically include the following steps:
s601, the SIM card sends a first broadcast message to the call service, wherein the first broadcast message is used for indicating that the SIM card is switched from a card-free state to an online state. Accordingly, the call service receives the first broadcast message.
It should be appreciated that the switching of the SIM card from the card-less state to the on-line state in this step is due to the completion of the HOTA upgrade of the terminal device and the restart. The restarting process of the terminal equipment involves starting up and then shutting down, the terminal equipment shuts down firstly, and the SIM card is in a card-free state after shutting down. And then the terminal equipment is started, and the card state of the SIM card is switched from the card-free state to the on-line state after the terminal equipment is started.
S602, the call service sends a request for acquiring the data of the SIM card to the RIL. Accordingly, the RIL receives the request to acquire the data of the SIM card.
S603, the RIL sends a request to acquire data of the SIM card to the modem through QMI. Accordingly, the modem receives the request to acquire the data of the SIM card.
S604, the modem sends an error report instruction to the RIL, wherein the error report instruction is used for indicating that the data of the SIM card is not acquired. Accordingly, the RIL receives the error-reporting instruction.
S601 to S604 are similar to S501 to S504, and are not repeated here.
Similar to the description for S504, the RIL may instruct the SIM card to perform a power-on/power-off operation within a preset duration after receiving the error-reporting instruction. The preset time length is a time length corresponding to the time period from when the RIL receives the error reporting instruction to when the RIL sends the error reporting instruction to the call service. If the RIL successfully acquires the data of the SIM card within the preset time length, the RIL does not send an error reporting instruction to the call service.
S605, the RIL sends a power-on and power-off instruction to the SIM card, and instructs the SIM card to execute the power-on and power-off operation once. Correspondingly, the SIM card receives the power-on and power-off instruction.
S606, the SIM card executes power-on and power-off operation.
The SIM card executes power-on and power-off operations, and the method comprises the following steps: the SIM card firstly sets the card state as a card-free state, and the power-off operation is executed when the SIM card sets the card-free state; and then the SIM card sets the card state as an on-line state, and the on-line state is the power-on operation.
S607, the SIM card sends a second broadcast message to the call service, where the second broadcast message is used to indicate that the SIM card has been switched from the card-less state to the online state. Accordingly, the call service receives the second broadcast message.
S608, the call service sends a request to the RIL to acquire the data of the SIM card. Accordingly, the RIL receives the request to acquire the data of the SIM card.
The request for acquiring the data of the SIM card in this step is illustratively a get_imsi message. The description of the data of the SIM card may be referred to in the description of S302, and will not be repeated here.
S609, the RIL sends a request to acquire data of the SIM card to the modem through QMI. Accordingly, the modem receives the request to acquire the data of the SIM card.
The request for acquiring data of the SIM card in this step is illustratively a qcril_ uim _request_get_imsi message.
In the process that the SIM card performs a power-on and power-off operation once, the call service issues a request for acquiring the SIM card to the RIL again and the RIL requests the modem to acquire the SIM card again through the QMI, if the QMI has been restored to normal, S610 is performed.
S610, the modem sends the data of the SIM card to the RIL through QMI. Accordingly, the RIL receives the data of the SIM card.
S611, RIL sends the data of SIM card to the call service. Accordingly, the call service receives the data of the SIM card.
S612, the call service updates the state of the SIM card to be the loading completion state.
S613, the call service loads the data of the SIM card and activates the cellular data service.
The scheme of controlling the SIM card to perform the power-on and power-off operation by the RIL is described above in connection with fig. 6, and the scheme utilizes the time from the RIL receiving the error-reporting instruction to the RIL sending the error-reporting instruction to the call service to reinitiate a request for obtaining the data of the SIM card through the power-on and power-off operation of the SIM card, without the need of manually restarting the terminal device by the user to perform the power-on and power-off operation of the SIM card, thereby being beneficial to reducing the user operation and improving the probability of obtaining the data of the SIM card, and being beneficial to solving the problem that the cellular data service cannot be activated after the HOTA is upgraded.
The first and second embodiments described above may be implemented alone or in combination.
Fig. 7 is a schematic flow chart of yet another data acquisition method 700 provided in an embodiment of the present application, after the HOTA upgrade of the terminal device is completed and restarted, the terminal device may perform the steps of the method 700. The steps of method 700 may be interactively performed by a SIM card, a call service, RIL, and a modem of the terminal device. The terminal device may have a structure as shown in fig. 1 and/or fig. 2, but embodiments of the present application are not limited thereto.
The method 700 includes S701 to S715. S701 to S705 are similar to S501 to S505, and will not be described here again. In S706, the RIL determines that the data of the SIM card is not queried, at which time the QMI may still not be restored, so the RIL still cannot acquire the data of the SIM card from the modem through the QMI. The RIL determines that the data of the SIM card is not queried, including: the RIL receives an error command from the modem to determine that the data of the SIM card was not queried. In this case, the RIL performs S707 to instruct the SIM card to perform a power-on and power-off operation once. S707 to S715 are similar to S605 to S613, and are not described here.
In the embodiment of the application, the terminal equipment combines the scheme I and the scheme II, and in the scene that the terminal equipment updates the MBN file and restarts in the HOTA upgrading process, if the RIL does not acquire the data of the SIM card, the RIL firstly acquires the data of the SIM card. If the data of the SIM card is not obtained yet, the RIL instructs the SIM card to perform a power-on and power-off operation, so that the call service sends a request for obtaining the data of the SIM card once again to the RIL, and the RIL obtains the data of the SIM card from the modem again through the QMI. In the method, the terminal equipment can automatically perform the power-on and power-off operation of the SIM card under the condition that the retry mechanism is not effective, and the user does not need to manually restart the terminal equipment, so that the user can acquire the data of the SIM card under the condition of no sense, and the recovery of the cellular data service is finished.
The above description in connection with fig. 7 is that the terminal device executes scheme one first and then executes scheme two if scheme one fails. The terminal device may execute the second scheme first, and execute the first scheme when the second scheme fails.
Fig. 8 is a schematic flow chart of yet another data acquisition method 800 provided by an embodiment of the present application, after the HOTA upgrade of the terminal device is completed and restarted, the terminal device may perform the steps of the method 800. The steps of method 800 may be interactively performed by a SIM card, a call service, RIL, and a modem of the terminal device. The terminal device may have a structure as shown in fig. 1 and/or fig. 2, but embodiments of the present application are not limited thereto.
The method 800 includes S801 to S815. S801 to S809 are similar to S601 to S609, and are not described here. In S810, the modem sends an error report instruction to the RIL, where the error report instruction is used to indicate that the data of the SIM card is not acquired. Accordingly, the RIL receives the error-reporting instruction. S811 to S815 are similar to S505 to S509 and will not be described here again.
In the embodiments described in fig. 5 to 8, whether the RIL described in the first scheme requests to acquire the data of the SIM card from the modem through QMI again, or the RIL described in the second scheme instructs the SIM card to perform the power-on/power-off operation, so that the call service issues a request to acquire the data of the SIM card again, both methods are to retry to acquire the data of the SIM card. In the first scheme, the call service sends a request for acquiring the data of the SIM card to the RIL once, and the RIL performs an operation of re-querying the data of the SIM card. In the second method, the call service re-sends a request for acquiring the data of the SIM card to the RIL based on the power-on and power-off operation executed by the SIM card, and the RIL re-inquires the data of the SIM card.
To sum up, fig. 9 is a schematic flowchart of yet another data acquisition method 900 according to an embodiment of the present application. The steps of method 900 may be performed by a terminal device, which may have a structure as shown in fig. 1 and/or fig. 2, but embodiments of the present application are not limited thereto. The method 900 includes S901 and S902, and the specific steps are as follows:
s901, after the system upgrade of the terminal equipment is completed and restarted, the data of the SIM card is requested to be acquired and used for activating the cellular data service.
In this step, the system upgrade is illustratively an HOTA upgrade. The terminal device will automatically restart after the HOTA upgrade is completed. After the terminal device is restarted, the terminal device will request to acquire the data of the SIM card, which can be used to activate the cellular data service.
Specifically, the terminal device may analyze an APN according to an IMSI in data of the SIM card, where the APN is used to establish data connection with a network side to transmit uplink and downlink cellular data.
S902, when the data of the SIM card is not acquired, the data of the SIM card is re-requested to be acquired before restarting the terminal device again.
In this step, restarting the terminal device again means that the user manually restarts the terminal device. According to the technical scheme provided by the embodiment of the application, before the terminal equipment is manually restarted to acquire the data of the SIM card, the data of the SIM card is automatically requested again, so that a user is free from abnormal sense in the process of activating the cellular data service, the operation of the user is reduced, and the use experience of the user is improved.
The terminal equipment comprises a call service, RIL and a modem.
The requesting of acquiring the data of the SIM card in S901 includes: the call service sends a request to the RIL to acquire the data of the SIM card. The RIL sends a request to the modem to acquire data of the SIM card through the QMI interface.
In S902, if the data of the SIM card is not obtained, the terminal device requests to obtain the data of the SIM card again.
In one possible implementation, the terminal device re-requests to acquire the data of the SIM card, including: re-requesting to acquire the data of the SIM card through the RIL; or, based on the power-on and power-off operation of the SIM card, re-requesting to acquire the data of the SIM card.
Re-requesting, by the RIL, the data of the SIM card, including: the terminal device requests the data of the SIM card from the modem through the QMI interface again through the RIL. See, for example, the description of scheme one above in conjunction with fig. 5, which is not repeated here.
Based on the power-on and power-off operation of the SIM card, re-requesting to acquire the data of the SIM card comprises the following steps: re-requesting the RIL for obtaining the data of the SIM card through a call service based on the powering-on and powering-off operation of the SIM card; and re-requesting to acquire the data of the SIM card through the RIL. See, for example, the description of scheme two above in conjunction with fig. 6, which is not repeated here.
In another possible implementation manner, the terminal device re-requests to acquire the data of the SIM card, including: re-requesting to acquire the data of the SIM card through the RIL; in the case where the data of the SIM card is not acquired through the RIL, the acquisition of the data of the SIM card is re-requested based on the power-on and power-off operation of the SIM card. The description of the first execution scheme and the second execution scheme in conjunction with fig. 7 is specifically referred to above, and will not be repeated here.
In yet another possible implementation manner, the terminal device re-requests to acquire the data of the SIM card, including: re-requesting to acquire data of the SIM card based on the power-on and power-off operation of the SIM card; in the case that the data of the SIM card is not acquired based on the power-on and power-off operation of the SIM card, the data of the SIM card is re-requested to be acquired through the RIL. The description of the first execution scheme two and the second execution scheme one in conjunction with fig. 8 is specifically referred to above, and will not be repeated here.
It should be understood that the sequence numbers of the above processes do not mean the order of execution, and the execution order of the processes should be determined by the functions and internal logic of the processes, and should not be construed as limiting the implementation process of the embodiments of the present application.
The embodiment of the application provides a terminal device, which comprises: comprising the following steps: a processor and a memory; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory to cause the terminal device to perform the method described above.
The embodiment of the application provides a chip. The chip comprises a processor for invoking a computer program in a memory to perform the technical solutions in the above embodiments. The principle and technical effects of the present application are similar to those of the above-described related embodiments, and will not be described in detail herein.
The embodiment of the application also provides a computer readable storage medium. The computer-readable storage medium stores a computer program. The computer program realizes the above method when being executed by a processor. The methods described in the above embodiments may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. If implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer readable media can include computer storage media and communication media and can include any medium that can transfer a computer program from one place to another. The storage media may be any target media that is accessible by a computer.
In one possible implementation, the computer readable medium may include random access memory (random access memory, RAM), read-only memory (ROM), compact disk (compact disc read-only memory, CD-ROM) or other optical disk memory, magnetic disk memory or other magnetic storage device, or any other medium targeted for carrying or storing the desired program code in the form of instructions or data structures, and accessible by a computer. Also, any connection is properly termed a computer-readable medium. For example, if the software is transmitted from a website, server, or other remote source using a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (digital subscriber line, DSL), or wireless technologies such as infrared, radio, and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium. Disk and disc, as used herein, includes optical disc, laser disc, optical disc, digital versatile disc (digital versatile disc, DVD), floppy disk and blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.
Embodiments of the present application provide a computer program product comprising a computer program which, when executed, causes a computer to perform the above-described method.
Embodiments of the present application are described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processing unit of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processing unit of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The foregoing detailed description of the application has been presented for purposes of illustration and description, and it should be understood that the foregoing is by way of illustration and description only, and is not intended to limit the scope of the application.

Claims (10)

1. A data acquisition method, applied to a terminal device, the method comprising:
after the system upgrading of the terminal equipment is finished and restarted, requesting to acquire data of a Subscriber Identity Module (SIM) card, wherein the data of the SIM card are used for activating a cellular data service;
and under the condition that the data of the SIM card is not acquired, re-requesting to acquire the data of the SIM card before restarting the terminal equipment again.
2. The method according to claim 1, wherein the terminal device comprises a radio interface layer RIL;
the re-requesting to acquire the data of the SIM card includes:
re-requesting to acquire the data of the SIM card through the RIL; or alternatively, the first and second heat exchangers may be,
and re-requesting to acquire the data of the SIM card based on the power-on and power-off operation of the SIM card.
3. The method according to claim 1, wherein the terminal device comprises a radio interface layer RIL;
the re-requesting to acquire the data of the SIM card includes:
re-requesting to acquire the data of the SIM card through the RIL;
and under the condition that the data of the SIM card is not acquired through the RIL, re-requesting to acquire the data of the SIM card based on the power-on and power-off operation of the SIM card.
4. The method according to claim 1, wherein the terminal device comprises a radio interface layer RIL;
the re-requesting to acquire the data of the SIM card includes:
re-requesting to acquire data of the SIM card based on the power-on and power-off operation of the SIM card;
and re-requesting to acquire the data of the SIM card through the RIL under the condition that the data of the SIM card is not acquired based on the power-on and power-off operation of the SIM card.
5. The method according to any one of claims 2 to 4, wherein said requesting the acquisition of the data of the SIM card by the RIL re-request comprises:
and before the RIL sends an error report instruction, re-requesting to acquire the data of the SIM card through the RIL, wherein the error report instruction is used for indicating that the data of the SIM card is not acquired.
6. The method according to any one of claims 2 to 5, wherein the number of times data of the SIM card is acquired by the RIL re-request does not exceed a preset threshold.
7. The method according to any of claims 2 to 6, wherein the terminal device further comprises a call service;
the re-requesting to acquire the data of the SIM card based on the power-on and power-off operation of the SIM card includes:
Re-requesting the RIL for acquiring the data of the SIM card through the call service based on the power-on and power-off operation of the SIM card;
and re-requesting to acquire the data of the SIM card through the RIL.
8. A terminal device, comprising: a processor and a memory, wherein,
the memory is used for storing a computer program;
the processor is configured to invoke and execute the computer program to cause the terminal device to perform the method of any of claims 1 to 7.
9. A computer readable storage medium for storing a computer program which, when run on a computer, causes the computer to perform the method of any one of claims 1 to 7.
10. A computer program product comprising a computer program which, when run, causes a computer to perform the method of any one of claims 1 to 7.
CN202211608345.6A 2022-12-14 2022-12-14 Data acquisition method and terminal equipment Active CN116709295B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211608345.6A CN116709295B (en) 2022-12-14 2022-12-14 Data acquisition method and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211608345.6A CN116709295B (en) 2022-12-14 2022-12-14 Data acquisition method and terminal equipment

Publications (2)

Publication Number Publication Date
CN116709295A true CN116709295A (en) 2023-09-05
CN116709295B CN116709295B (en) 2024-04-09

Family

ID=87832779

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211608345.6A Active CN116709295B (en) 2022-12-14 2022-12-14 Data acquisition method and terminal equipment

Country Status (1)

Country Link
CN (1) CN116709295B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105813006A (en) * 2014-12-30 2016-07-27 中国移动通信集团公司 Information upgrading method, terminal equipment, network management equipment and system
CN106331269A (en) * 2015-06-24 2017-01-11 小米科技有限责任公司 Subscriber identification module (SIM) substitution method, device and system
CN113419751A (en) * 2021-05-26 2021-09-21 荣耀终端有限公司 System upgrading method and device for terminal equipment
CN113784331A (en) * 2020-06-09 2021-12-10 华为技术有限公司 Method and device for updating data of user identity module card system
CN115278642A (en) * 2021-04-30 2022-11-01 华为技术有限公司 Method for acquiring information of SIM card, electronic equipment and terminal equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105813006A (en) * 2014-12-30 2016-07-27 中国移动通信集团公司 Information upgrading method, terminal equipment, network management equipment and system
CN106331269A (en) * 2015-06-24 2017-01-11 小米科技有限责任公司 Subscriber identification module (SIM) substitution method, device and system
CN113784331A (en) * 2020-06-09 2021-12-10 华为技术有限公司 Method and device for updating data of user identity module card system
CN115278642A (en) * 2021-04-30 2022-11-01 华为技术有限公司 Method for acquiring information of SIM card, electronic equipment and terminal equipment
CN113419751A (en) * 2021-05-26 2021-09-21 荣耀终端有限公司 System upgrading method and device for terminal equipment

Also Published As

Publication number Publication date
CN116709295B (en) 2024-04-09

Similar Documents

Publication Publication Date Title
WO2021036809A1 (en) Subscriber identity module (sim) management method and electronic device
CN110602686B (en) Method for using remote SIM module and electronic equipment
US20230054451A1 (en) Communication Connection Method and Electronic Device
EP4243556A1 (en) Method for monitoring link and terminal device
US11895215B2 (en) Application server access method and terminal
CN117014859A (en) Address book-based device discovery method, audio and video communication method and electronic device
CN116709295B (en) Data acquisition method and terminal equipment
CN113709720B (en) SIM dual-mode card abnormity optimization method and electronic equipment
EP4287048A1 (en) Login authentication method and electronic device
CN114461239B (en) Software upgrading system and software upgrading method
CN117425227A (en) Method and device for establishing session based on WiFi direct connection
CN116056050A (en) Audio playing method, electronic equipment and system
CN116709584B (en) Method for connecting car machine and terminal equipment
CN116077943B (en) Method for scheduling system resources and related device
CN116737049B (en) Audio playing method and terminal equipment
CN116033592B (en) Method and device for using cellular communication function
CN116709582B (en) Method for assisting conversation and electronic equipment
WO2024067170A1 (en) Device management method and electronic device
CN117289807A (en) Communication method, communication system and mouse
CN116367214A (en) Call state monitoring method, device and storage medium
CN117729650A (en) Mobile network connection method and electronic equipment
CN117729561A (en) System upgrading method, terminal and storage medium
CN117041465A (en) Video call optimization method, electronic equipment and storage medium
CN118033541A (en) Spatial position determining method, system and equipment thereof
CN116137720A (en) Method for reducing power consumption and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant