Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It will be apparent that the described embodiments are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
The terms first, second, third and the like in the description and in the claims of the present application and in the above-described figures, if any, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the objects so described may be interchanged where appropriate. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion.
In the detailed description, the drawings and examples set forth below to describe the principles disclosed herein are for illustration only and are not to be construed as limiting the scope of the disclosure. Those skilled in the art will understand that the principles of the present application may be implemented in any suitably arranged system. Exemplary embodiments will be described in detail, examples of which are illustrated in the accompanying drawings. Further, a mobile terminal according to an exemplary embodiment will be described in detail with reference to the accompanying drawings. Like reference symbols in the drawings indicate like elements.
The terminology used in this detailed description is for the purpose of describing particular embodiments only and is not intended to be limiting of the concepts of the application. The use of expressions in the singular encompasses plural forms of expressions unless the context clearly dictates otherwise. In this specification, it should be understood that terms such as "comprises," "comprising," "includes," and "including" are intended to specify the presence of the stated features, integers, steps, actions, or combinations thereof, disclosed in the specification, but are not intended to preclude the presence or addition of one or more other features, integers, steps, actions, or groups thereof. Like reference numerals in the drawings refer to like parts.
In the description of the present application, it should be noted that, unless explicitly specified and limited otherwise, the terms "mounted," "connected," and "connected" are to be construed broadly, and may be either fixedly connected, detachably connected, or integrally connected, for example; can be mechanically connected, electrically connected or can be communicated with each other; can be directly connected or indirectly connected through an intermediate medium, and can be communicated with the inside of two elements or the interaction relationship of the two elements. The specific meaning of the terms in this application will be understood by those of ordinary skill in the art as the case may be.
The following disclosure provides many different embodiments or examples for implementing different structures of the present application. In order to simplify the disclosure of the present application, the components and arrangements of specific examples are described below. Of course, they are merely examples and are not intended to limit the present application. Furthermore, the present application may repeat reference numerals and/or letters in the various examples, which are for the purpose of brevity and clarity, and which do not in themselves indicate the relationship between the various embodiments and/or arrangements discussed. In addition, the present application provides examples of various specific processes and materials, but one of ordinary skill in the art may recognize the application of other processes and/or the use of other materials.
Specifically, referring to fig. 1, an embodiment of the present application provides a frequency band upgrading method, which is used for a mobile terminal, and includes the following steps.
Step S11, obtaining a modem file.
In the embodiment of the application, the latest modem file is acquired in advance on the server and stored in the mobile terminal.
See fig. 2. Step S11 specifically includes the following steps.
Step S21, detecting whether the modem file is complete.
Referring to fig. 3, step S21 specifically includes the following steps.
Step S31, the modem file is divided into a plurality of pieces of data at intervals of designated bits.
In the embodiment of the present application, the MODEM file may be, for example, 100 mbytes in size, and may be divided into several segments, for example, 1M is one segment.
Step S32, performing specified logic operation on the segments of data, and judging that the modem file is complete when the result of the specified logic operation is a specified value; and when the result of the appointed logic operation is a non-appointed value, judging that the modem file is incomplete.
In this embodiment of the present application, the specified logic operation may be a first and then second and then the operation result should be a specified value, because a certain redundant field needs to be added to ensure that the logic operation is a specified value after the MODEM file is generated; or writing the value after the logic operation in the MODEM file itself, and then reading the specified value from the MODEM file itself, so that the specified values of different MODEM files can be different.
And step S22, when the completeness of the modem file is detected, storing the modem file into a memory.
In the embodiment of the application, the memory is a power-down nonvolatile memory, so that the loss of the modem file caused by unexpected shutdown of the mobile terminal can be avoided.
Step S12, judging whether the mobile terminal invokes any frequency band.
And step S13, restarting the modem and loading the modem file when judging that the mobile terminal does not call any frequency band.
In the embodiment of the application, when the mobile terminal does not call any frequency band, the modem is restarted and the modem file is loaded, so that the frequency band is updated.
Referring to fig. 4, step S13 specifically includes the following steps.
Step S41, the modem is turned off.
Step S42, updating the modem file to the modem.
Step S43, the modem is restarted.
With continued reference to fig. 1, step S14 is performed to obtain first binary data corresponding to a frequency band except the frequency band in the modem file when it is determined that the mobile terminal invokes the frequency band.
Step S15, copying the address content corresponding to the first binary data and the corresponding length into the modem.
In this embodiment, before the step of copying the address content and the corresponding length corresponding to the first binary data into a partition of the memory in the modem, an identifier needs to be set to indicate that the frequency band upgrade is not completed.
And S16, when the mobile terminal does not call the frequency band, acquiring second binary data corresponding to the frequency band.
And S17, copying the address content corresponding to the second binary data and the corresponding length into the modem.
In this embodiment, after the step of copying the address content and the corresponding length corresponding to the second binary data into a partition of the memory in the modem, a bit identifier is cleared to indicate that the frequency band upgrade is completed.
Referring to fig. 5, an embodiment of the present application provides a frequency band upgrading system, where the frequency band upgrading method is used for a mobile terminal, and the frequency band upgrading system includes an obtaining module 501, a judging module 502, a loading module 503, a first obtaining module 504, a first copying module 505, a second obtaining module 506, and a second copying module 507.
The acquisition module 501 is configured to acquire a modem file.
In the embodiment of the application, the latest modem file is acquired in advance on the server and stored in the mobile terminal.
See fig. 6. The obtaining module 501 specifically includes: the detection module 601 and the storage module 602.
The detection module 601 is configured to detect whether the modem file is complete.
Referring to fig. 7, the detection module 601 specifically includes a segmentation module 701 and a logic operation module 702.
The partitioning module 701 is configured to partition the modem file into a plurality of pieces of data every other designated bit.
In the embodiment of the present application, the MODEM file may be, for example, 100 mbytes in size, and may be divided into several segments, for example, 1M is one segment.
The logic operation module 702 is connected to the division module 701. The logic operation module 702 is configured to perform a specified logic operation on the pieces of data. When the result of the appointed logic operation is an appointed value, judging that the modem file is complete; and when the result of the appointed logic operation is a non-appointed value, judging that the modem file is incomplete.
In this embodiment of the present application, the specified logic operation may be a first and then second and then the operation result should be a specified value, because a certain redundant field needs to be added to ensure that the logic operation is a specified value after the MODEM file is generated; or writing the value after the logic operation in the MODEM file itself, and then reading the specified value from the MODEM file itself, so that the specified values of different MODEM files can be different.
The storage module 602 is connected to the detection module 601. The storage module 602 is configured to store the modem file into the memory when the integrity of the modem file is detected.
In the embodiment of the application, the memory is a power-down nonvolatile memory, so that the loss of the modem file caused by unexpected shutdown of the mobile terminal can be avoided.
The judging module 502 is connected with the acquiring module 501. The judging module 502 is configured to judge whether the mobile terminal invokes any frequency band.
The loading module 503 is connected to the judging module 502. The loading module 503 is configured to restart the modem and load the modem file when it is determined that the mobile terminal does not invoke any frequency band.
In the embodiment of the application, when the mobile terminal does not call any frequency band, the modem is restarted and the modem file is loaded, so that the frequency band is updated.
Referring to fig. 8, the loading module 503 specifically includes: a shutdown module 801, an update module 802, and a restart module 803.
The shutdown module 801 is used to shut down the modem.
The update module 802 is connected to the shutdown module 801. The updating module 802 is configured to update the modem file into the modem.
The restart module 803 is connected to the update module 802. The restart module 803 is configured to restart the modem.
With continued reference to fig. 5, the first acquisition module 504 is coupled to the loading module 503. The first obtaining module 504 is configured to obtain, when it is determined that the mobile terminal invokes a frequency band, first binary data corresponding to a frequency band other than the frequency band in the modem file.
The first replication module 505 is connected to the first acquisition module 504. The first copying module 505 is configured to copy the address content corresponding to the first binary data and the corresponding length into the modem.
In this embodiment, before the step of copying the address content and the corresponding length corresponding to the first binary data into a partition of the memory in the modem, an identifier needs to be set to indicate that the frequency band upgrade is not completed.
The second acquisition module 506 is connected to the first replication module 505. The second obtaining module 506 is configured to obtain second binary data corresponding to the frequency band when the frequency band is disconnected.
The second copy module 507 is connected to the second acquisition module 506. The second copying module 507 is configured to copy the address content corresponding to the second binary data and the corresponding length to the modem.
In this embodiment, after the step of copying the address content and the corresponding length corresponding to the second binary data into a partition of the memory in the modem, a bit identifier is cleared to indicate that the frequency band upgrade is completed.
Referring to fig. 9, the embodiment of the present application further provides a mobile terminal 900, where the mobile terminal 900 may be a mobile phone, a tablet, a computer, or other devices. As shown in fig. 9, the mobile terminal 900 includes a processor 901 and a memory 902. The processor 901 is electrically connected to the memory 902.
The processor 901 is a control center of the mobile terminal 900, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by running or loading an application program stored in the memory 902 and calling data stored in the memory 902, thereby performing overall monitoring of the mobile terminal.
In this embodiment, the mobile terminal 900 is provided with a plurality of storage partitions, where the plurality of storage partitions include a system partition and a target partition, and the processor 901 in the mobile terminal 900 loads instructions corresponding to the processes of one or more application programs into the memory 902 according to the following steps, and the processor 901 executes the application programs stored in the memory 902, so as to implement various functions:
obtaining a modem file;
judging whether the mobile terminal invokes any frequency band or not;
restarting a modem and loading the modem file when judging that the mobile terminal does not call any frequency band;
when judging that the mobile terminal calls a frequency band, acquiring first binary data corresponding to the frequency band except the frequency band in the modem file;
copying address content corresponding to the first binary data and corresponding length into the modem;
when the mobile terminal does not call the frequency band, acquiring second binary data corresponding to the frequency band; and
and copying the address content corresponding to the second binary data and the corresponding length into the modem.
Referring to fig. 10, fig. 10 shows a specific block diagram of a mobile terminal 1000 according to an embodiment of the present application, where the mobile terminal 1000 may be used to implement the frequency band upgrading method provided in the foregoing embodiment. The mobile terminal 1000 can be a cell phone or tablet. The mobile terminal 1000 includes the following components.
The RF circuit 1010 is configured to receive and transmit electromagnetic waves, and to perform mutual conversion between the electromagnetic waves and the electrical signals, thereby communicating with a communication network or other devices. RF circuitry 1010 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. The RF circuitry 1010 may communicate with various networks such as the internet, intranets, wireless networks, or other devices via wireless networks. The wireless network may include a cellular telephone network, a wireless local area network, or a metropolitan area network. The wireless network may use various communication standards, protocols, and technologies including, but not limited to, global system for mobile communications (Global System for Mobile Communication, GSM), enhanced mobile communications technology (Enhanced Data GSM Environment, EDGE), wideband code division multiple access technology (Wideband Code Division Multiple Access, WCDMA), code division multiple access technology (Code Division Access, CDMA), time division multiple access technology (Time Division Multiple Access, TDMA), wireless fidelity technology (Wireless Fidelity, wi-Fi) (e.g., american society of electrical and electronic engineers standard IEEE802.11a, IEEE 802.11.11 b, IEEE802.11g, and/or IEEE802.11 n), internet telephony (Voice over Internet Protocol, voIP), worldwide interoperability for microwave access (Worldwide Interoperability for Microwave Access, wi-Max), other protocols for mail, instant messaging, and short messaging, and any other suitable communication protocols, even those not currently developed.
The memory 1020 may be used to store software programs and modules, such as program instructions/modules corresponding to the frequency band upgrade method in the above embodiments, and the processor 1080 executes the software programs and modules stored in the memory 1020, thereby performing various functional applications and data processing, that is, implementing the functions of the frequency band upgrade method. Memory 1020 may include high-speed random access memory, but may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory. In some examples, memory 1020 may further include memory located remotely from processor 1080 and may be connected to mobile terminal 1000 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input unit 1030 may be used for receiving input numeric or character information and generating keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 1030 may include a touch-sensitive surface 1031 and other input devices 1032. The touch-sensitive surface 1031, also referred to as a touch display screen or touch pad, may collect touch operations thereon or thereabout by a user (e.g., operations of the user on the touch-sensitive surface 1031 or thereabout using any suitable object or accessory such as a finger, stylus, etc.), and actuate the corresponding connection device according to a pre-set program. Alternatively, the touch sensitive surface 1031 may comprise two parts, a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device and converts it into touch point coordinates, which are then sent to the processor 1080 and can receive commands from the processor 1080 and execute them. In addition, the touch sensitive surface 1031 may be implemented in a variety of types, such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch-sensitive surface 1031, the input unit 1030 may include other input devices 1032. In particular, other input devices 1032 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a track ball, a mouse, a joystick, etc.
The display unit 1040 may be used to display information input by a user or information provided to a user and various graphical user interfaces of the mobile terminal 1000, which may be composed of graphics, text, icons, video, and any combination thereof. The display unit 1040 may include a display panel 1041, and alternatively, the display panel 1041 may be configured in the form of an LCD (Liquid Crystal Display ), an OLED (Organic Light-Emitting Diode), or the like. Further, the touch sensitive surface 1031 can overlay the display panel 1041, and upon detection of a touch operation thereon or thereabout by the touch sensitive surface 1031, is communicated to the processor 1080 to determine a type of touch event, and the processor 1080 then provides a corresponding visual output on the display panel 1041 based on the type of touch event. Although in fig. 10 the touch-sensitive surface 1031 and the display panel 1041 are implemented as two separate components for input and output functions, in some embodiments the touch-sensitive surface 1031 may be integrated with the display panel 1041 to implement the input and output functions.
The mobile terminal 1000 can also include at least one sensor 1050, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 1041 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 1041 and/or the backlight when the mobile terminal 1000 moves to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and the direction when the mobile phone is stationary, and can be used for applications of recognizing the gesture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that may also be configured with the mobile terminal 1000 are not described in detail herein.
Audio circuitry 1060, speaker 1061, microphone 1062 may provide an audio interface between a user and mobile terminal 1000. Audio circuit 1060 may transmit the received electrical signal after audio data conversion to speaker 1061 for conversion by speaker 1061 into an audio signal output; on the other hand, microphone 1062 converts the collected sound signals into electrical signals, which are received by audio circuit 1060 and converted into audio data, which are processed by audio data output processor 1080 for transmission to, for example, another terminal via RF circuit 1010 or for output to memory 1020 for further processing. Audio circuitry 1060 may also include an ear bud jack to provide communication of a peripheral ear bud with mobile terminal 1000.
The mobile terminal 1000 can facilitate user email, web browsing, streaming media access, etc., via a transmission module 1070 (e.g., wi-Fi module) that provides wireless broadband internet access to the user. Although fig. 10 shows a transmission module 1070, it is to be understood that it does not belong to the necessary constitution of the mobile terminal 1000, and can be omitted entirely as required within the scope not changing the essence of the invention.
Processor 1080 is a control center of mobile terminal 1000 and connects the various parts of the overall handset using various interfaces and lines, and performs the various functions of mobile terminal 1000 and processes data by running or executing software programs and/or modules stored in memory 1020 and invoking data stored in memory 1020, thereby performing overall monitoring of the handset. Optionally, processor 1080 may include one or more processing cores; in some embodiments, processor 1080 may integrate an application processor primarily handling operating systems, user interfaces, applications, and the like, with a modem processor primarily handling wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 1080.
The mobile terminal 1000 can also include a power source 1090 (e.g., a battery) for powering the various components, which can, in some embodiments, be logically connected to the processor 1080 by a power management system so as to perform functions such as managing charging, discharging, and power consumption by the power management system. The power source 1090 may also include one or more of any of a direct current or alternating current power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the mobile terminal 1000 can also include a camera (e.g., front camera, rear camera), a bluetooth module, etc., and will not be described in detail herein. In particular, in this embodiment, the display unit of the mobile terminal is a touch screen display, the mobile terminal further includes a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs including instructions for:
obtaining a modem file;
judging whether the mobile terminal invokes any frequency band or not;
restarting a modem and loading the modem file when judging that the mobile terminal does not call any frequency band;
when judging that the mobile terminal calls a frequency band, acquiring first binary data corresponding to the frequency band except the frequency band in the modem file;
copying address content corresponding to the first binary data and corresponding length into the modem;
when the mobile terminal does not call the frequency band, acquiring second binary data corresponding to the frequency band; and
and copying the address content corresponding to the second binary data and the corresponding length into the modem.
In the implementation, each module may be implemented as an independent entity, or may be combined arbitrarily, and implemented as the same entity or several entities, and the implementation of each module may be referred to the foregoing method embodiment, which is not described herein again.
Those of ordinary skill in the art will appreciate that all or a portion of the steps of the various methods of the above embodiments may be performed by instructions or by controlling associated hardware, which may be stored in a computer-readable storage medium and loaded and executed by a processor. To this end, embodiments of the present application provide a storage medium having stored therein a plurality of instructions capable of being loaded by a processor to perform steps in any of the frequency band upgrade methods provided by embodiments of the present application.
Wherein the storage medium may include: read Only Memory (ROM), random access Memory (RAM, random Access Memory), magnetic or optical disk, and the like.
The instructions stored in the storage medium may perform steps in any frequency band upgrading method provided in the embodiments of the present application, so that the beneficial effects that any frequency band upgrading method provided in the embodiments of the present application can be achieved, which are detailed in the previous embodiments and are not described herein. The specific implementation of each operation above may be referred to the previous embodiments, and will not be described herein.
The embodiment of the application provides a frequency band upgrading method, a system, a storage medium and a mobile terminal, wherein a modem file is obtained, when the mobile terminal does not call any frequency band, the modem is restarted and the modem file is loaded, when the mobile terminal calls a frequency band, first binary data corresponding to the frequency band except the frequency band in the modem file is obtained, address content and corresponding length corresponding to the first binary data are copied to the modem, when the mobile terminal does not call the frequency band, second binary data corresponding to the frequency band is obtained, address content and corresponding length corresponding to the second binary data are copied to the modem, and therefore the corresponding problem can be solved without restarting the mobile terminal when the mobile terminal performs frequency band upgrading, and convenience is brought to users.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to related descriptions of other embodiments.
The above describes in detail a method, a system, a storage medium and a mobile terminal for upgrading a frequency band provided by the embodiments of the present application, and specific examples are applied to describe the principles and implementations of the present application, where the description of the above embodiments is only used to help understand the technical solution and core ideas of the present application; those of ordinary skill in the art will appreciate that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.