CN110457180B - Method and device for loading mobile terminal software package and storage medium - Google Patents

Method and device for loading mobile terminal software package and storage medium Download PDF

Info

Publication number
CN110457180B
CN110457180B CN201910693321.7A CN201910693321A CN110457180B CN 110457180 B CN110457180 B CN 110457180B CN 201910693321 A CN201910693321 A CN 201910693321A CN 110457180 B CN110457180 B CN 110457180B
Authority
CN
China
Prior art keywords
frequency
software package
mobile terminal
signal
module
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.)
Active
Application number
CN201910693321.7A
Other languages
Chinese (zh)
Other versions
CN110457180A (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.)
Xizang Songyan Technology Co ltd
Original Assignee
Xizang Songyan Technology 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 Xizang Songyan Technology Co ltd filed Critical Xizang Songyan Technology Co ltd
Priority to CN201910693321.7A priority Critical patent/CN110457180B/en
Publication of CN110457180A publication Critical patent/CN110457180A/en
Application granted granted Critical
Publication of CN110457180B publication Critical patent/CN110457180B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3058Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computing Systems (AREA)
  • Quality & Reliability (AREA)
  • Telephone Function (AREA)

Abstract

The application discloses a loading method, a loading device and a storage medium of a mobile terminal software package. The mobile terminal comprises a signal generation module, and the method comprises the following steps: detecting a frequency change of the signal output by the signal generating module; inquiring from a preset frequency identification table to obtain a software package identification corresponding to the frequency change; and loading the software package corresponding to the software package identifier in the mobile terminal, so that the software package required by the mobile terminal can be accurately acquired and loaded.

Description

Method and device for loading mobile terminal software package and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and apparatus for loading a mobile terminal software package, and a storage medium.
Background
Currently, mobile terminal market competition is intense, mobile terminal manufacturers often derive multiple products on the same software and hardware platform in order to reduce production cost, and the difference between the products is very small, for example, two products only have different CAMERAs (CAMERA), or near field communication functions are different to adapt to different market demands. For example, mobile terminal manufacturers have a client a and a client B, which have the same requirements for the mobile terminal except that the camela is different, and the client a needs to add an additional near field communication function.
Because the difference of the demands of two clients is small, the mobile terminal can realize the demands of the two clients by using the same software. In the prior art, different mobile terminal types are identified mainly through detecting voltage, namely, a power supply management module outputs power supply voltage to a terminal type detection module, the terminal type detection module outputs divided voltage after dividing the power supply voltage through a terminal resistor, the mobile terminal type can be identified according to the divided voltage, and then corresponding software packages are loaded on the mobile terminal.
Although the above solution can identify the mobile terminal type, when the number of products derived by the manufacturer of the mobile terminal is large, because the solution needs to correspond one voltage range to one terminal type (for example, 0.6V-1.0V corresponds to one terminal type) in order to consider factors such as errors, when the number of products derived is large (that is, the number of customers with small difference between the terminals is large), each voltage range of the solution is necessarily compressed, which will easily cause false detection, resulting in loading of the wrong software package by the mobile terminal. In addition, when the termination resistor for voltage division is damaged, it cannot be detected, and false detection is caused.
Disclosure of Invention
The embodiment of the application provides a loading method, a loading device and a storage medium for a mobile terminal software package, which can accurately acquire and load the software package required by a mobile terminal.
The embodiment of the application provides a loading method of a mobile terminal software package, wherein the mobile terminal comprises a signal generation module, and the method comprises the following steps:
detecting a frequency change of the signal output by the signal generating module;
inquiring from a preset frequency identification table to obtain a software package identification corresponding to the frequency change;
and loading the software package corresponding to the software package identifier in the mobile terminal.
Further, the detecting the frequency change of the signal output by the signal generating module specifically includes:
When detecting that the signal generation module outputs a target signal, acquiring the time difference between the rising edge or the falling edge of the target signal and the rising edge or the falling edge of the previous output signal, and taking the reciprocal of the time difference as the frequency of the signal generation module outputting the target signal;
and acquiring frequency changes of a plurality of target signals output by the signal generation module.
Further, the frequency variation includes a frequency variation from a first frequency to a second frequency;
The software package identification corresponding to the frequency change is obtained by inquiring from a preset frequency identification table, and the method specifically comprises the following steps:
detecting whether the first frequency and the second frequency are both preset effective frequencies;
if yes, judging that the signal generation module works normally, and inquiring from a preset frequency identification table to obtain a software package identification corresponding to the first frequency change to the second frequency.
Further, the method further comprises:
And when the first frequency or the second frequency is detected not to be the preset effective frequency, judging that the signal generating module works abnormally, and sending prompt information to the mobile terminal.
Further, before the software package identifier corresponding to the frequency change is obtained by querying from a preset frequency identifier table, the method further comprises:
setting the frequency change from any one of the preset effective frequencies to the other effective frequency;
Assigning a unique software package identifier to each set frequency variation;
And storing each set frequency change in the frequency identification table corresponding to the software package identification thereof.
The embodiment of the application also provides a loading device of the mobile terminal software package, the mobile terminal comprises a signal generation module, and the device comprises:
The frequency detection module is used for detecting the frequency change of the signal output by the signal generation module;
The inquiry module is used for inquiring and obtaining the software package identification corresponding to the frequency change from a preset frequency identification table; and
And the loading module is used for loading the software package corresponding to the software package identifier in the mobile terminal.
Further, the frequency detection module includes:
the frequency acquisition unit is used for acquiring the time difference between the rising edge or the falling edge interruption of the target signal and the previous output signal when the signal generation module outputs the target signal is detected, and taking the reciprocal of the time difference as the frequency of the signal generation module outputting the target signal; and
And the frequency change acquisition unit is used for acquiring the frequency change of the plurality of target signals output by the signal generation module.
Further, the frequency variation includes a frequency variation from a first frequency to a second frequency;
The query module comprises:
The detection unit is used for detecting whether the first frequency and the second frequency are both preset effective frequencies or not;
The inquiring unit is used for judging that the signal generating module works normally when the first frequency and the second frequency are both preset effective frequencies, and inquiring from a preset frequency identification table to obtain a software package identification corresponding to the first frequency change to the second frequency; and
And the prompting unit is used for judging that the signal generating module works abnormally when the first frequency or the second frequency is detected not to be the preset effective frequency, and sending prompting information to the mobile terminal.
Further, the apparatus further comprises:
the setting module is used for setting the frequency change from any one of the preset effective frequencies to the other effective frequency;
The distribution module is used for distributing unique software package identifiers to each set frequency change; and
And the storage module is used for storing each set frequency change and the software package identifier thereof in the frequency identifier table correspondingly.
Embodiments of the present application also provide a computer readable storage medium having stored therein a plurality of instructions adapted to be loaded by a processor to perform the method of loading a mobile terminal software package of any of the above.
The loading method, the loading device and the storage medium of the mobile terminal software package can detect the frequency change output by the signal generation module, and identify the corresponding software package identifier according to the frequency change so as to accurately load the required software package on the mobile terminal according to the software package identifier; whether the frequency output by the signal generating module is effective frequency is detected, so that whether the signal generating module is damaged is detected, false detection caused by the damage of the signal generating module is avoided, and the accuracy of loading the required software package of the mobile terminal is further improved.
Drawings
The technical solution and other advantageous effects of the present application will be made apparent by the following detailed description of the specific embodiments of the present application with reference to the accompanying drawings.
Fig. 1 is a flow chart of a loading method of a mobile terminal software package according to an embodiment of the present application.
Fig. 2 is another flow chart of a loading method of a mobile terminal software package according to an embodiment of the present application.
Fig. 3 is a schematic structural diagram of a loading device for a mobile terminal software package according to an embodiment of the present application.
Fig. 4 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application.
Fig. 5 is another schematic structural diagram of a mobile terminal according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to fall within the scope of the application.
A method of loading a software package for a mobile terminal, the mobile terminal including a signal generation module, the method comprising: detecting a frequency change of the signal output by the signal generating module; inquiring from a preset frequency identification table to obtain a software package identification corresponding to the frequency change; and loading the software package corresponding to the software package identifier in the mobile terminal.
As shown in fig. 1, fig. 1 is a flow chart of a loading method of a mobile terminal software package according to an embodiment of the present application, where the mobile terminal includes a signal generating module, and a specific flow of the loading method of the mobile terminal software package may be as follows:
101. and detecting the frequency change of the output signal of the signal generation module.
In this embodiment, the signal generating module is disposed in the mobile terminal, and is configured to output signals with different frequencies according to a software package required by the mobile terminal. By detecting signals with different frequencies, the frequency change of the signals can be obtained.
The mobile terminal is also provided with a signal control module which is used for supplying power to the signal generation module to enable the signal generation module to work or stopping supplying power to the signal generation module to enable the signal generation module to stop working. When the mobile terminal needs to load the software package, the signal control module supplies power to the signal generation module, and the signal generation module is controlled to start working, namely signals with different frequencies are output.
Specifically, step 101 includes:
When detecting that the signal generation module outputs a target signal, acquiring the time difference between the rising edge or the falling edge of the target signal and the rising edge or the falling edge of the previous output signal, and taking the reciprocal of the time difference as the frequency of the signal generation module outputting the target signal;
and acquiring frequency changes of a plurality of target signals output by the signal generation module.
In this embodiment, the signal generating module continuously outputs signals at different frequencies after starting the operation, for example, the signal generating module outputs a signal at frequency 1 first and then outputs a signal at frequency 2, where frequency 1 is different from frequency 2. And sequentially acquiring two continuous signals according to the output sequence, calculating the time difference between rising edge or falling edge interruption of the two continuous signals, and taking the inverse of the time difference to serve as the frequency of the two continuous signals output by the signal generation module. Similarly, the frequency of other signals output by the signal generating module is calculated, and the frequency change of the signals output by the signal generating module can be obtained. For example, the frequency of the first signal to the fourth signal is output by the signal generating module as frequency 1, the frequency of the fifth signal is output as frequency 2, and the frequency change of the signal output by the signal generating module is changed from frequency 1 to frequency 2.
102. Inquiring from a preset frequency identification table to obtain the software package identification corresponding to the frequency change.
In this embodiment, the preset frequency identification table is a corresponding relation table between various frequency changes and various software package identifications, and each frequency change corresponds to only one software package identification. The software package identifiers are the identification codes of the software packages, and each software package has a unique software package identifier. The package identifier may be represented by an identification number composed of an arabic numeral or an identification code composed of an arabic numeral and a letter, so long as different packages can be distinguished, and is not particularly limited herein. After the software package identifier is obtained, the signal control module stops supplying power to the signal generation module, namely the signal generation module stops outputting signals.
Further, the frequency change includes a change in frequency from a first frequency to a second frequency, and step 102 specifically includes:
detecting whether the first frequency and the second frequency are both preset effective frequencies;
if yes, judging that the signal generation module works normally, and inquiring from a preset frequency identification table to obtain a software package identification corresponding to the first frequency change to the second frequency.
In this embodiment, the preset effective frequency is all possible frequencies output by the signal generating module. After the frequency of the signal output by the signal generating module is detected, the effectiveness of the frequency is further detected. If the frequency of the signal output by the signal generating module is effective, namely the frequency is the preset effective frequency, the signal generating module is indicated to work normally and is not damaged, and the corresponding software package identification can be queried according to the frequency change of the signal output by the signal generating module.
Further, the method further comprises:
And when the first frequency or the second frequency is detected not to be the preset effective frequency, judging that the signal generating module works abnormally, and sending prompt information to the mobile terminal.
If the frequency of the signal output by the signal generating module is invalid, that is, the frequency is not the preset effective frequency, the signal generating module is abnormal and damaged, and a prompt message indicating that the signal generating module is damaged can be sent to the mobile terminal so as to prompt the mobile terminal to replace the signal generating module. When the signal generation module of the mobile terminal is damaged, the corresponding software package identifier of the mobile terminal is not acquired any more so as to avoid false detection.
103. And loading the software package corresponding to the software package identifier in the mobile terminal.
In this embodiment, different software package identifiers are set based on the requirements of small differences of the mobile terminal, and driving programs of corresponding devices, namely software packages, are loaded on the mobile terminal based on the different software package identifiers so as to meet the requirements of the different differences, thereby avoiding the problem of false detection caused by compressed voltage ranges when the requirements of the small differences are more in the prior art.
As can be seen from the above, the loading method of the mobile terminal software package provided by the application can detect the frequency variation output by the signal generating module, and identify the corresponding software package identifier according to the frequency variation, so as to accurately load the required software package on the mobile terminal according to the software package identifier; whether the frequency output by the signal generating module is effective frequency is detected, so that whether the signal generating module is damaged is detected, false detection caused by the damage of the signal generating module is avoided, and the accuracy of loading the required software package of the mobile terminal is further improved.
As shown in fig. 2, fig. 2 is another flow chart of a loading method of a mobile terminal software package according to an embodiment of the present application, and the specific flow may be as follows:
201. the frequency variation of various effective frequency components and the corresponding software package identifications are stored in a frequency identification table.
Specifically, step 201 includes:
setting the frequency change from any one of the preset effective frequencies to the other effective frequency;
Assigning a unique software package identifier to each set frequency variation;
And storing each set frequency change in the frequency identification table corresponding to the software package identification thereof.
For example, the preset effective frequencies include frequency 1, frequency 2 and frequency 3, and a frequency change from frequency 1 to frequency 2 can be set, and the corresponding software package is identified as 01; frequency 1 to frequency 3, the corresponding software package is identified as 02; a frequency change from frequency 2 to frequency 1, the corresponding software package identified as 03; frequency 2 to frequency 3, the corresponding software package is identified as 04; a frequency change from frequency 3 to frequency 1, the corresponding software package identified as 05; the frequency 3 to frequency 2 frequency change, the corresponding software package is identified as 06. And storing the frequency changes from the frequency 1 to the frequency 2 in the frequency identification table corresponding to the software package identification 01, and similarly storing other frequency changes in the frequency identification table corresponding to the corresponding software package identifications for subsequent inquiry of the software package identifications according to the frequency changes.
202. And starting a signal generating module in the mobile terminal to enable the signal generating module to output a variable-frequency signal.
It should be noted that, the signal generating modules in different types of mobile terminals output different signal frequency changes to distinguish the software packages required by the mobile terminals.
203. The detection signal generation module outputs the frequency change of the signal and identifies the corresponding software package identification according to the frequency change.
For example, when it is detected that the frequency of the signal output by the signal generating module changes from frequency 1 to frequency 3, the frequency identification table may be queried to identify that the software package corresponding to the change from frequency 1 to frequency 3 is identified as 02.
204. The control signal generation module stops working and loads the software package corresponding to the software package identifier on the mobile terminal.
It should be noted that, in order to reduce the production cost, mobile terminal manufacturers often derive multiple mobile terminals on the same software and hardware platform. For example, the four types of mobile terminals are different in the first device, the second device, and the third device. The first device has one, two and three suppliers, the second device has one, two and two suppliers, and the third device has one, two, three and four suppliers, and the four mobile terminals are as follows: a first device of the mobile terminal, a second device of the mobile terminal, a third device of the mobile terminal, and a corresponding software package identifier of 01; the mobile terminal II uses a first device for the third device, uses a second device for the first device, uses a third device for the fourth device, and the corresponding software package mark is 04; a third mobile terminal uses a first device for third, uses a second device for second, uses a third device for first, and the corresponding software package mark is 05; and the mobile terminal IV uses a first device for the second device, uses a second device for the second device, uses a third device for the second device, and the corresponding software package identifier is 06.
The first signal generation module is used by the mobile terminal I, the second signal generation module is used by the mobile terminal II, the third signal generation module is used by the mobile terminal III, and the fourth signal generation module is used by the mobile terminal IV. The frequency of the output signal of the first signal generating module is changed from frequency 1 to frequency 2, the frequency of the output signal of the second signal generating module is changed from frequency 2 to frequency 3, the frequency of the output signal of the third signal generating module is changed from frequency 3 to frequency 1, and the frequency of the output signal of the fourth signal generating module is changed from frequency 3 to frequency 2.
When detecting that the frequency of the output signal of the first signal generating module in the first mobile terminal is changed from frequency 1 to frequency 2, inquiring from the frequency identification table to obtain the corresponding software package identifier of 01, thereby obtaining the related information of the first device, the second device and the third device for the third device, and loading the driving program of the corresponding device, namely the software package, on the first mobile terminal. When detecting that the frequency of the signal output by the second signal generating module in the second mobile terminal is changed from the frequency 2 to the frequency 3, inquiring from the frequency identification table to obtain the corresponding software package identification as 04, thereby obtaining the related information of the first device for the third device, the second device for the first device and the third device for the fourth device so as to load the driving program of the corresponding device on the second mobile terminal. And similarly, loading corresponding software packages on the mobile terminal III and the mobile terminal IV.
As can be seen from the above, the loading method of the mobile terminal software package provided by the application can detect the frequency variation output by the signal generating module, and identify the corresponding software package identifier according to the frequency variation, so as to accurately load the required software package on the mobile terminal according to the software package identifier.
According to the method described in the above embodiments, this embodiment will be further described from the perspective of a loading device of a mobile terminal software package, where the loading device of the mobile terminal software package may be integrated into a mobile terminal, and the mobile terminal may include a mobile phone, a tablet computer, and so on.
Referring to fig. 3, fig. 3 specifically describes a loading device of a mobile terminal software package provided in an embodiment of the present application, where the loading device of the mobile terminal software package may include: a frequency detection module 10, a query module 20 and a loading module 30, wherein:
(1) Frequency detection module 10
The frequency detection module 10 is used for detecting the frequency change of the signal output by the signal generation module.
In this embodiment, the frequency detection module 10 is integrated in a controller of the mobile terminal, and a GPIO1 pin of the controller is connected to an OUT pin of the signal generation module. The device also comprises a signal control module 40, wherein the signal control module 40 is respectively connected with the signal generation module and the frequency detection module 10. After the signal control module 40 controls the signal generation module to start working, the signal rising edge interruption at the GPIO1 is set, the time difference between the rising edge interruption of two continuous signals is obtained, the frequency of the output signal of the signal generation module is calculated by taking the reciprocal, and then the frequency change of the output signal of the signal generation module is detected.
Specifically, the frequency detection module 10 includes:
the frequency acquisition unit is used for acquiring the time difference between the rising edge or the falling edge interruption of the target signal and the previous output signal when the signal generation module outputs the target signal is detected, and taking the reciprocal of the time difference as the frequency of the signal generation module outputting the target signal; and
And the frequency change acquisition unit is used for acquiring the frequency change of the plurality of target signals output by the signal generation module.
(2) Query module 20
And the query module 20 is configured to query and obtain a software package identifier corresponding to the frequency change from a preset frequency identifier table.
Further, the frequency variation includes a frequency variation from a first frequency to a second frequency;
The query module 20 includes:
The detection unit is used for detecting whether the first frequency and the second frequency are both preset effective frequencies or not;
The inquiring unit is used for judging that the signal generating module works normally when the first frequency and the second frequency are both preset effective frequencies, and inquiring from a preset frequency identification table to obtain a software package identification corresponding to the first frequency change to the second frequency; and
And the prompting unit is used for judging that the signal generating module works abnormally when the first frequency or the second frequency is detected not to be the preset effective frequency, and sending prompting information to the mobile terminal.
(3) Load module 30
And the loading module 30 is used for loading the software package corresponding to the software package identifier in the mobile terminal.
Further, the apparatus further comprises:
the setting module is used for setting the frequency change from any one of the preset effective frequencies to the other effective frequency;
The distribution module is used for distributing unique software package identifiers to each set frequency change; and
And the storage module is used for storing each set frequency change and the software package identifier thereof in the frequency identifier table correspondingly.
As can be seen from the above, the loading device for the mobile terminal software package provided by the application can detect the frequency variation output by the signal generating module, and identify the corresponding software package identifier according to the frequency variation, so as to accurately load the required software package on the mobile terminal according to the software package identifier; whether the frequency output by the signal generating module is effective frequency is detected, so that whether the signal generating module is damaged is detected, false detection caused by the damage of the signal generating module is avoided, and the accuracy of loading the required software package of the mobile terminal is further improved.
In addition, the embodiment of the application also provides a mobile terminal which can be a smart phone, a tablet personal computer and other devices. As shown in fig. 4, the mobile terminal 400 includes a processor 401, a memory 402. The processor 401 is electrically connected to the memory 402.
The processor 401 is a control center of the mobile terminal 400, 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 application programs stored in the memory 402 and calling data stored in the memory 402, thereby performing overall monitoring of the mobile terminal.
In this embodiment, the processor 401 in the mobile terminal 400 loads the instructions corresponding to the processes of one or more application programs into the memory 402 according to the following steps, and the processor 401 executes the application programs stored in the memory 402, so as to implement various functions:
detecting a frequency change of the signal output by the signal generating module;
inquiring from a preset frequency identification table to obtain a software package identification corresponding to the frequency change;
and loading the software package corresponding to the software package identifier in the mobile terminal.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application. The mobile terminal 300 may include components such as RF circuitry 310, memory 320 including one or more computer-readable storage media, input unit 330, display unit 340, sensor 350, audio circuitry 360, speaker 361, microphone 362, transmission module 370, processor 380 including one or more processing cores, and power supply 390. Those skilled in the art will appreciate that the mobile terminal structure shown in fig. 5 is not limiting of the mobile terminal and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
The RF circuit 310 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 310 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 the like. The RF circuitry 310 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 networks described above may use a variety of 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 institute of electrical and electronics engineers standards IEEE 802.11a,IEEE 802.11b,IEEE802.11g and/or IEEE802.11 n), voice over internet protocol (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, as well as any other suitable communication protocols, even those not currently developed.
The memory 320 may be used to store software programs and modules, such as program instructions/modules corresponding to the loading method and apparatus of the mobile terminal software package in the above embodiments, and the processor 380 executes the software programs and modules stored in the memory 320, thereby performing various function applications and data processing, that is, implementing the loading function of the mobile terminal software package. Memory 320 may include high-speed random access memory, and 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 320 may further include memory located remotely from processor 380, which may be connected to mobile terminal 300 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 330 may be used to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 330 may include a touch-sensitive surface 331 as well as other input devices 332. The touch-sensitive surface 331, also referred to as a touch display screen or a touch pad, may collect touch operations thereon or thereabout by a user (e.g., operations of the user on the touch-sensitive surface 331 or thereabout using any suitable object or accessory such as a finger, stylus, etc.), and actuate the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 331 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, converts it into touch point coordinates, and sends the touch point coordinates to the processor 380, and can receive and execute commands sent from the processor 380. In addition, the touch-sensitive surface 331 may be implemented in a variety of types, such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch-sensitive surface 331, the input unit 330 may also comprise other input devices 332. In particular, other input devices 332 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 trackball, mouse, joystick, etc.
The display unit 340 may be used to display information input by a user or information provided to the user and various graphical user interfaces of the mobile terminal 300, which may be composed of graphics, text, icons, video, and any combination thereof. The display unit 340 may include a display panel 341, and optionally, the display panel 341 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 331 may overlay the display panel 341 and, upon detection of a touch operation thereon or thereabout by the touch sensitive surface 331, is communicated to the processor 380 to determine the type of touch event, and the processor 380 then provides a corresponding visual output on the display panel 341 based on the type of touch event. Although in fig. 5 the touch sensitive surface 331 and the display panel 341 are implemented as two separate components for input and output functions, in some embodiments the touch sensitive surface 331 may be integrated with the display panel 341 to implement the input and output functions.
The mobile terminal 300 may also include at least one sensor 350, 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 341 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 341 and/or the backlight when the mobile terminal 300 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 300 are not described in detail herein.
Audio circuitry 360, speaker 361, and microphone 362, the microphone 362 providing an audio interface between a user and the mobile terminal 300. The audio circuit 360 may transmit the received electrical signal converted from audio data to the speaker 361, and the electrical signal is converted into a sound signal by the speaker 361 and output; on the other hand, the microphone 362 converts the collected sound signals into electrical signals, receives the electrical signals from the audio circuit 360, converts the electrical signals into audio data, outputs the audio data to the processor 380 for processing, and transmits the audio data to, for example, another terminal via the RF circuit 310, or outputs the audio data to the memory 320 for further processing. Audio circuitry 360 may also include an ear bud jack to provide communication of the peripheral ear bud with mobile terminal 300.
The mobile terminal 300 may facilitate user email, web browsing, streaming media access, etc. via the transmission module 370 (e.g., wi-Fi module), which provides wireless broadband internet access to the user. Although fig. 5 shows the transmission module 370, it is understood that it does not belong to the essential constitution of the mobile terminal 300, and may be omitted entirely as needed within the scope of not changing the essence of the invention.
Processor 380 is the control center of mobile terminal 300, connects the various parts of the overall handset using various interfaces and lines, and performs various functions and processes data of mobile terminal 300 by running or executing software programs and/or modules stored in memory 320, and invoking data stored in memory 320, thereby performing overall monitoring of the handset. Optionally, processor 380 may include one or more processing cores; in some embodiments, processor 380 may integrate an application processor that primarily processes operating systems, user interfaces, applications, etc., with a modem processor that primarily processes wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 380.
The mobile terminal 300 also includes a power supply 390 (e.g., a battery) that provides power to the various components, and in some embodiments, may be logically coupled to the processor 380 via a power management system to perform functions such as managing charging, discharging, and power consumption via the power management system. Power supply 390 may also include one or more of any of a DC or AC 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 300 may further include a camera (e.g., front camera, rear camera), a bluetooth module, etc., which will not be described 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:
detecting a frequency change of the signal output by the signal generating module;
inquiring from a preset frequency identification table to obtain a software package identification corresponding to the frequency change;
and loading the software package corresponding to the software package identifier in the mobile terminal.
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 instructions controlling associated hardware, which may be stored in a computer-readable storage medium and loaded and executed by a processor. To this end, an embodiment of the present invention provides a storage medium having stored therein a plurality of instructions capable of being loaded by a processor to perform the steps of any of the loading methods of the mobile terminal software package provided by the embodiments of the present invention.
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 can execute steps in the loading method of any mobile terminal software package provided by the embodiment of the present invention, so that the beneficial effects that can be achieved by the loading method of any mobile terminal software package provided by the embodiment of the present invention 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.
In view of the foregoing, it will be evident to those skilled in the art that these embodiments are thus presented in terms of a preferred embodiment, and that these embodiments are not limited to the particular embodiments disclosed herein, as these embodiments are intended to be included within the scope of the application as defined by the following claims.

Claims (10)

1. A method for loading a software package of a mobile terminal, wherein the mobile terminal comprises a signal generation module and a signal control module, the method comprising:
Detecting a frequency change of the signal output by the signal generating module; the signals output by the signal generating module are signals with different frequencies;
the signal control module is used for supplying power to the signal generation module when the mobile terminal needs to load a software package so that the signal generation module works to output signals with different frequencies, or stopping supplying power to the signal generation module so that the signal generation module stops working;
Inquiring from a preset frequency identification table to obtain a software package identification corresponding to the frequency change; the preset frequency identification table is a corresponding relation table of various frequency changes and various software package identifications, and each frequency change corresponds to only one software package identification; after the software package identifier is acquired, the signal control module stops supplying power to the signal generation module so as to control the signal generation module to stop outputting signals;
and loading the software package corresponding to the software package identifier in the mobile terminal.
2. The method for loading a software package of a mobile terminal according to claim 1, wherein the detecting the frequency change of the signal output by the signal generating module specifically comprises:
When detecting that the signal generation module outputs a target signal, acquiring the time difference between the rising edge or the falling edge of the target signal and the rising edge or the falling edge of the previous output signal, and taking the reciprocal of the time difference as the frequency of the signal generation module outputting the target signal;
and acquiring frequency changes of a plurality of target signals output by the signal generation module.
3. The method of loading a mobile terminal software package according to claim 1, wherein the frequency change comprises a change in frequency from a first frequency to a second frequency;
The software package identification corresponding to the frequency change is obtained by inquiring from a preset frequency identification table, and the method specifically comprises the following steps:
detecting whether the first frequency and the second frequency are both preset effective frequencies;
if yes, judging that the signal generation module works normally, and inquiring from a preset frequency identification table to obtain a software package identification corresponding to the first frequency change to the second frequency.
4. A method of loading a mobile terminal software package according to claim 3, the method further comprising:
And when the first frequency or the second frequency is detected not to be the preset effective frequency, judging that the signal generating module works abnormally, and sending prompt information to the mobile terminal.
5. The method for loading a software package of a mobile terminal according to claim 1, further comprising, before the querying from a preset frequency identification table to obtain a software package identifier corresponding to the frequency change:
setting the frequency change from any one of the preset effective frequencies to the other effective frequency;
Assigning a unique software package identifier to each set frequency variation;
And storing each set frequency change in the frequency identification table corresponding to the software package identification thereof.
6. A loading device for a mobile terminal software package, wherein the mobile terminal comprises a signal generation module and a signal control module, the device comprising:
The frequency detection module is used for detecting the frequency change of the signal output by the signal generation module; the signals output by the signal generating module are signals with different frequencies;
the signal control module is used for supplying power to the signal generation module when the mobile terminal needs to load a software package so that the signal generation module works to output signals with different frequencies, or stopping supplying power to the signal generation module so that the signal generation module stops working;
The inquiry module is used for inquiring and obtaining the software package identification corresponding to the frequency change from a preset frequency identification table; the preset frequency identification table is a corresponding relation table of various frequency changes and various software package identifications, and each frequency change corresponds to only one software package identification; after the software package identifier is acquired, the signal control module stops supplying power to the signal generation module so as to control the signal generation module to stop outputting signals;
And
And the loading module is used for loading the software package corresponding to the software package identifier in the mobile terminal.
7. The loading device of a mobile terminal software package according to claim 6, wherein the frequency detection module comprises:
the frequency acquisition unit is used for acquiring the time difference between the rising edge or the falling edge interruption of the target signal and the previous output signal when the signal generation module outputs the target signal is detected, and taking the reciprocal of the time difference as the frequency of the signal generation module outputting the target signal; and
And the frequency change acquisition unit is used for acquiring the frequency change of the plurality of target signals output by the signal generation module.
8. The loading device of a mobile terminal software package according to claim 6, wherein the frequency variation comprises a frequency variation from a first frequency to a second frequency;
The query module comprises:
The detection unit is used for detecting whether the first frequency and the second frequency are both preset effective frequencies or not;
The inquiring unit is used for judging that the signal generating module works normally when the first frequency and the second frequency are both preset effective frequencies, and inquiring from a preset frequency identification table to obtain a software package identification corresponding to the first frequency change to the second frequency; and
And the prompting unit is used for judging that the signal generating module works abnormally when the first frequency or the second frequency is detected not to be the preset effective frequency, and sending prompting information to the mobile terminal.
9. The loading device of a mobile terminal software package according to claim 6, wherein the device further comprises:
the setting module is used for setting the frequency change from any one of the preset effective frequencies to the other effective frequency;
The distribution module is used for distributing unique software package identifiers to each set frequency change; and
And the storage module is used for storing each set frequency change and the software package identifier thereof in the frequency identifier table correspondingly.
10. A computer readable storage medium, characterized in that the storage medium has stored therein a plurality of instructions adapted to be loaded by a processor to perform the loading method of the mobile terminal software package of any of claims 1 to 5.
CN201910693321.7A 2019-07-30 2019-07-30 Method and device for loading mobile terminal software package and storage medium Active CN110457180B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910693321.7A CN110457180B (en) 2019-07-30 2019-07-30 Method and device for loading mobile terminal software package and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910693321.7A CN110457180B (en) 2019-07-30 2019-07-30 Method and device for loading mobile terminal software package and storage medium

Publications (2)

Publication Number Publication Date
CN110457180A CN110457180A (en) 2019-11-15
CN110457180B true CN110457180B (en) 2024-04-26

Family

ID=68483992

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910693321.7A Active CN110457180B (en) 2019-07-30 2019-07-30 Method and device for loading mobile terminal software package and storage medium

Country Status (1)

Country Link
CN (1) CN110457180B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102222183A (en) * 2011-04-28 2011-10-19 奇智软件(北京)有限公司 Mobile terminal software package safety detection method and system thereof
JP2015152976A (en) * 2014-02-10 2015-08-24 Kddi株式会社 Communication frequency estimation apparatus, communication frequency estimation system, mobile communication terminal device, communication frequency estimation method, and computer program
WO2016086654A1 (en) * 2014-12-03 2016-06-09 广州广电运通金融电子股份有限公司 Remote upgrade method and system for software on self-service terminal, and upgrade package creation method
CN105758441A (en) * 2016-02-16 2016-07-13 惠州Tcl移动通信有限公司 Mobile terminal board type detection method and system
WO2018094839A1 (en) * 2016-11-25 2018-05-31 宇龙计算机通信科技(深圳)有限公司 Method and device for installing preloaded application of mobile terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103338254B (en) * 2013-06-28 2015-05-27 腾讯科技(深圳)有限公司 Terminal across application pushing method, device, terminal and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102222183A (en) * 2011-04-28 2011-10-19 奇智软件(北京)有限公司 Mobile terminal software package safety detection method and system thereof
JP2015152976A (en) * 2014-02-10 2015-08-24 Kddi株式会社 Communication frequency estimation apparatus, communication frequency estimation system, mobile communication terminal device, communication frequency estimation method, and computer program
WO2016086654A1 (en) * 2014-12-03 2016-06-09 广州广电运通金融电子股份有限公司 Remote upgrade method and system for software on self-service terminal, and upgrade package creation method
CN105758441A (en) * 2016-02-16 2016-07-13 惠州Tcl移动通信有限公司 Mobile terminal board type detection method and system
WO2018094839A1 (en) * 2016-11-25 2018-05-31 宇龙计算机通信科技(深圳)有限公司 Method and device for installing preloaded application of mobile terminal

Also Published As

Publication number Publication date
CN110457180A (en) 2019-11-15

Similar Documents

Publication Publication Date Title
CN107094294B (en) Network connection method and device
CN107277912B (en) Radio frequency interference processing method, device, storage medium and terminal
CN106293308B (en) Screen unlocking method and device
US10657347B2 (en) Method for capturing fingerprint and associated products
CN108958606B (en) Split screen display method and device, storage medium and electronic equipment
CN109714476B (en) Data processing method and device, mobile terminal and storage medium
CN113489630A (en) Network distribution method, device, storage medium and electronic terminal
CN109639370B (en) Near field communication antenna detection method and device, mobile terminal and storage medium
CN113141575B (en) Method, device and equipment for updating tracking area list and storage medium
CN111026457B (en) Hardware configuration method and device, storage medium and terminal equipment
CN110851014B (en) Touch recognition method and device, storage medium and terminal equipment
CN106547400B (en) Method, device and terminal for reporting information
CN110457180B (en) Method and device for loading mobile terminal software package and storage medium
CN112867171B (en) WIFI connection method and device, storage medium and mobile terminal
CN110849407B (en) Sensor testing method and device, storage medium and electronic equipment
CN112367425B (en) Volume adjusting method and device and terminal
CN109831771B (en) Bluetooth searching method and device, mobile terminal and storage medium
CN112286849A (en) Wireless charging base data switching method and system, storage medium and terminal equipment
CN113613310A (en) WIFI connection method and device, storage medium and mobile terminal
US11259222B2 (en) Mobile terminal and method and system for switching and controlling call link of mobile terminal
CN112486350A (en) Detection method and device for touch screen of mobile terminal, storage medium and mobile terminal
CN111308303A (en) Method and device for detecting radio frequency power amplifier of mobile terminal
CN109995441B (en) Communication information processing method, device and storage medium
CN111405649B (en) Information transmission method and device and mobile terminal
CN105278967B (en) System updating method, device and system of mobile terminal

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
TA01 Transfer of patent application right

Effective date of registration: 20240401

Address after: 404-6, Floor 4, Building A, Management Center, No. 1, Qihui Avenue Road, Liuwu New District, Lhasa, Xizang Autonomous Region, 850000

Applicant after: Xizang Songyan Technology Co.,Ltd.

Country or region after: China

Address before: 516006 Zhongkai hi tech Zone, Huizhou, Guangdong, 86 Chang seven Road West

Applicant before: HUIZHOU TCL MOBILE COMMUNICATION Co.,Ltd.

Country or region before: China

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant