Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
A mobile terminal implementing various embodiments of the present invention will now be described with reference to the accompanying drawings. In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in themselves. Thus, "module" and "component" may be used in a mixture.
The mobile terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a smart phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a navigation mobile terminal, and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. In the following, it is assumed that the terminal is a mobile terminal. However, it will be understood by those skilled in the art that the configuration according to the embodiment of the present invention can be applied to a fixed type terminal in addition to elements particularly used for moving purposes.
Fig. 1 is a schematic diagram of a hardware structure of an optional mobile terminal for implementing various embodiments of the present invention.
The mobile terminal 100 may include a wireless communication unit 110, an a/V (audio/video) input unit 120, a user input unit 130, an output unit 150, a memory 160, an interface unit, a controller 180, and a power supply unit 190, etc. Fig. 1 illustrates a mobile terminal having various components, but it is to be understood that not all illustrated components are required to be implemented. More or fewer components may alternatively be implemented. Elements of the mobile terminal will be described in detail below.
The wireless communication unit 110 typically includes one or more components that allow radio communication between the mobile terminal 100 and a wireless communication system or network. For example, the wireless communication unit may include, but is not limited to, a mobile communication module 112 and a wireless internet module 113.
The mobile communication module 112 transmits and/or receives radio signals to and/or from at least one of a base station (e.g., access point, node B, etc.), an external terminal, and a server. Such radio signals may include voice call signals, video call signals, or various types of data transmitted and/or received according to text and/or multimedia messages.
The wireless internet module 113 supports wireless internet access of the mobile terminal. The module may be internally or externally coupled to the terminal. The wireless internet access technology to which the module relates may include WLAN (wireless LAN) (Wi-Fi), Wibro (wireless broadband), Wimax (worldwide interoperability for microwave access), HSDPA (high speed downlink packet access), and the like.
The a/V input unit 120 is used to receive an audio or video signal. The a/V input unit 120 includes, but is not limited to, a microphone 122, and the microphone 122 may receive sounds (audio data) via the microphone in a phone call mode, a recording mode, a voice recognition mode, and the like, and may be capable of processing such sounds into audio data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the mobile communication module 112 in case of a phone call mode. The microphone 122 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting audio signals.
The user input unit 130 may generate key input data according to a command input by a user to control various operations of the mobile terminal. The user input unit 130 allows a user to input various types of information, and may include a keyboard, dome sheet, touch pad (e.g., a touch-sensitive member that detects changes in resistance, pressure, capacitance, and the like due to being touched), scroll wheel, joystick, and the like. In particular, when the touch pad is superimposed on the display unit 151 in the form of a layer, a touch screen may be formed.
In addition, when the mobile terminal 100 is connected with an external cradle, the interface unit may serve as a path through which power is supplied from the cradle to the mobile terminal 100 or may serve as a path through which various command signals input from the cradle are transmitted to the mobile terminal. Various command signals or power input from the cradle may be used as signals for recognizing whether the mobile terminal is accurately mounted on the cradle. The output unit 150 is configured to provide output signals (e.g., audio signals, video signals, alarm signals, vibration signals, etc.) in a visual, audio, and/or tactile manner. The output unit 150 may include a display unit 151, an audio output module 152, and the like.
The display unit 151 may display information processed in the mobile terminal 100. For example, when the mobile terminal 100 is in a phone call mode, the display unit 151 may display a User Interface (UI) or a Graphical User Interface (GUI) related to a call or other communication (e.g., text messaging, multimedia file downloading, etc.). When the mobile terminal 100 is in a video call mode or an image capturing mode, the display unit 151 may display a captured image and/or a received image, a UI or GUI showing a video or an image and related functions, and the like.
Meanwhile, when the display unit 151 and the touch pad are overlapped with each other in the form of a layer to form a touch screen, the display unit 151 may function as an input mobile terminal and an output mobile terminal. The display unit 151 may include at least one of a Liquid Crystal Display (LCD), a thin film transistor LCD (TFT-LCD), an Organic Light Emitting Diode (OLED) display, a flexible display, a three-dimensional (3D) display, and the like. Some of these displays may be configured to be transparent to allow a user to view from the outside, which may be referred to as transparent displays, and a typical transparent display may be, for example, a TOLED (transparent organic light emitting diode) display or the like. Depending on the particular desired implementation, the mobile terminal 100 may include two or more display units (or other display mobile terminals), for example, the mobile terminal may include an external display unit (not shown) and an internal display unit (not shown). The touch screen may be used to detect a touch input pressure as well as a touch input position and a touch input area.
The audio output module 152 may convert audio data received by the wireless communication unit 110 or stored in the memory 160 into an audio signal and output as sound when the mobile terminal is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output module 152 may provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output module 152 may include a speaker, a buzzer, and the like.
The memory 160 may store software programs and the like for processing and controlling operations performed by the controller 180, or may temporarily store data (e.g., a phonebook, messages, still images, videos, and the like) that has been or will be output. Also, the memory 160 may store data regarding various ways of vibration and audio signals output when a touch is applied to the touch screen.
The memory 160 may include at least one type of storage medium including a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, and the like. Also, the mobile terminal 100 may cooperate with a network storage mobile terminal that performs a storage function of the memory 160 through a network connection.
The controller 180 generally controls the overall operation of the mobile terminal. For example, the controller 180 performs control and processing related to voice calls, data communications, video calls, and the like.
The power supply unit 190 receives external power or internal power and provides appropriate power required to operate various elements and components under the control of the controller 180.
The various embodiments described herein may be implemented in a computer-readable medium using, for example, computer software, hardware, or any combination thereof. For a hardware implementation, the embodiments described herein may be implemented using at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a digital signal processing mobile terminal (DSPD), a programmable logic mobile terminal (PLD), a Field Programmable Gate Array (FPGA), a processor, a controller, a microcontroller, a microprocessor, an electronic unit designed to perform the functions described herein, and in some cases, such embodiments may be implemented in the controller 180. For a software implementation, the implementation such as a process or a function may be implemented with a separate software module that allows performing at least one function or operation. The software codes may be implemented by software applications (or programs) written in any suitable programming language, which may be stored in the memory 160 and executed by the controller 180.
Up to this point, mobile terminals have been described in terms of their functionality. Hereinafter, a slide-type mobile terminal among various types of mobile terminals, such as a folder-type, bar-type, swing-type, slide-type mobile terminal, and the like, will be described as an example for the sake of brevity. Accordingly, the present invention can be applied to any type of mobile terminal, and is not limited to a slide type mobile terminal.
The mobile terminal 100 as shown in fig. 1 may be configured to operate with communication systems such as wired and wireless communication systems and satellite-based communication systems that transmit data via frames or packets.
Based on the hardware structure of the mobile terminal and the internal frame diagram, the mobile terminal and the upgrading method of the invention are provided.
Referring to fig. 2, fig. 2 is a schematic structural diagram of a mobile terminal in an embodiment of the present invention. The mobile terminal includes a first Modem 200(Modem1), a second Modem 210(Modem2), a Wifi module 230, a first logic switch 270, a second logic switch 280, a first SIM card 250, and a second SIM card 260, where the first Modem 200 and the second Modem 210 may be, for example, 180 in fig. 1, and may respectively run with corresponding applications ap, and of course, the first Modem 200 is further connected to a first radio frequency (not shown), and the second Modem 210 is further connected to the first radio frequency (not shown).
The first modem 200 is further configured to output a first preset voltage to control the first logic switch 270 to be in a first state when the user uses the first SIM card 250 for voice communication, so that the first SIM card 250 is connected to the first modem 200; or when the user uses the second SIM card 260 for voice communication, a second preset voltage is output to control the second logic switch 280 to be in a second state, so that the second SIM card 260 is connected to the first modem 200.
In the present embodiment, when the user performs voice communication using the first SIM card 250, the first modem 200 controls the first logic switch 270 and the second logic switch 280 by outputting a high-low level. For example, when outputting a high level, the first logic switch 270 is turned on, so that the first SIM card 250 is connected to the first modem 202; and outputs a low level, the first SIM card 250 is connected to the second modem 210. Or when outputting high level, the second logic switch 280 is turned on, so that the second SIM card 260 is connected to the first modem 202; and outputs a low level, the second SIM card 260 is connected to the second modem 210.
In the first embodiment of the present invention, if the first SIM card 250 is connected to the first modem 202, the first SIM card 250 may reside in a PS (Packet SWitching) domain and a CS (Circuit SWitching) domain of the first network through the first modem 202. Thus, the first SIM card 250 can perform CS voice and PS data services through the first network.
Likewise, if the second SIM card 260 is connected with the first modem 200, the second SIM card 260 may reside in the PS domain and the CS domain of the first network through the first modem 200. Thus, the second SIM card 260 can perform CS voice and PS data services through the first network.
If the first SIM card 250 establishes a connection with the second modem 210, the first SIM card 250 may reside in the PS domain of the second network through the second modem 210. Thus, the first SIM card 250 can perform PS data service through the second network.
Similarly, if the second SIM card 260 establishes a connection with the second modem 210, the second SIM card 260 may reside in the PS domain of the second network through the second modem 210. Thus, the second SIM card 260 can perform PS data services through the second network.
The first network and the second network may be different networks of different operators, or may be different or the same network of the same operator. The first network and the second network may both be 4G networks (e.g., 4G networks such as LTE networks).
The first modem 200 supports PS data service and CS voice service, and the second modem 210 supports only PS data service. When the data card (the first SIM card 250 or the second SIM card 260) connected to the second modem 210 has the CS voice service, the first modem 200 controls the logic switch (the first logic switch 270 or the second logic switch 280) so that the corresponding data card is connected to the first modem 200 to implement the CS voice service.
It should be understood that if it is a PS voice service, it is transmitted according to the transmission of a PS data service.
The application ap receives an operation instruction of the user, and if the operation instruction is to perform a CS voice service through the first SIM card 250: the first modem 200 outputs a first control command to control the first logic switch 270 so that the first SIM card 250 is connected to the first modem 200. The process of performing the CS voice service through the first SIM card 250 includes:
first, a voice communication connection is established: the application ap transmits the operation instruction to the first modem 200, and sends a RRC connection request and other processes to the eNodeB through the first radio frequency to establish a voice communication connection with the called party.
After the voice communication connection is established, the voice uplink transmission process is as follows: the microphone collects voice signals, and the coder-decoder receives the collected voice signals, performs analog-to-digital conversion on the voice signals and transmits the voice signals to the digital signal processing chip; the digital signal processing chip performs audio processing on the received signal and transmits the processed signal to the first modem 200; the first radio frequency transmits the signal processed by the first modem 200. The voice downlink transmission process comprises the following steps: the first radio frequency receives the downlink signal and transmits to the first modem 200; the digital signal processing chip (ADSP) performs audio processing on the signal processed by the first modem 200 and transmits the processed signal to a codec (codec); the coder-decoder performs analog-to-digital conversion on the received signal and then transmits the signal to the receiver.
The application ap receives an operation instruction of the user, and if the operation instruction is to perform the CS voice service through the second SIM card 260: the first modem 200 outputs a second control command to control the second logic switch 280 so that the second SIM card 260 is connected to the first modem 200. The process of performing the CS voice service through the second SIM card 260 includes:
first, a voice communication connection is established: the application ap transmits the operation instruction to the first modem 200, and sends a RRC connection request and other processes to the eNodeB through the first radio frequency to establish a voice communication connection with the called party.
After the voice communication connection is established, the voice uplink transmission process is as follows: the microphone collects voice signals, and the coder-decoder receives the collected voice signals, performs analog-to-digital conversion on the voice signals and transmits the voice signals to the digital signal processing chip; the digital signal processing chip performs audio processing on the received signal and transmits the processed signal to the first modem 200; the first radio frequency transmits the signal processed by the first modem 200. The voice downlink transmission process comprises the following steps: the first radio frequency receives the downlink signal and transmits to the first modem 200; the digital signal processing chip performs audio processing on the signal processed by the first modem 200 and transmits the signal to the codec; the coder-decoder performs analog-to-digital conversion on the received signal and then transmits the signal to the receiver.
The application ap receives an operation instruction of a user, and if the operation instruction is to perform a PS data service through the first SIM card 250, the first modem 200 outputs a first control instruction to control the first logic switch 270 to turn on a connection channel between the first SIM card 250 and the first modem 200, and also outputs a second control instruction to control the first logic switch 270 to turn on a connection channel between the first SIM card 250 and the second modem 210, which can both implement transmission of the PS data service.
Specifically, if the connection channel between the first SIM card 250 and the first modem 200 is conducted, the transmission flow of the PS data service is as follows: the application ap receives the data and transmits to the first modem 200; the first radio frequency transmits the uplink signal processed by the first modem 200 to the first network (4G network), receives the downlink signal from the first network (4G network), and transmits the downlink signal to the first modem 200 for processing; the application ap outputs the downstream signal processed by the first modem 200.
If the connection channel between the first SIM card 250 and the second modem 210 is conducted, the transmission flow of the PS data service is as follows: the application ap receives the data and transmits it to the second modem 210; the second radio frequency transmits the uplink signal processed by the second modem 210 to the LTE network, receives the downlink signal from the LTE network, and transmits the downlink signal to the second modem 210 for processing; the application ap outputs the downstream signal processed by the second modem 210.
If the operation command is to perform the PS data service through the second SIM card 260, the first modem 200 may output a first control command to control the second logic switch 280 to conduct the connection channel between the second SIM card 260 and the first modem 200, and may also output a second control command to control the second logic switch 280 to conduct the connection channel between the second SIM card 260 and the second modem 210, which may both implement the transmission of the PS data service.
Specifically, if the connection channel between the second SIM card 260 and the first modem 200 is conducted, the transmission flow of the PS data service is as follows: the application ap receives the data and transmits to the first modem 200; the first radio frequency transmits the uplink signal processed by the first modem 200 to the first network (4G network), receives the downlink signal from the first network (4G network), and transmits the downlink signal to the first modem 200 for processing; the application ap outputs the downstream signal processed by the first modem 200.
If the connection channel between the second SIM card 260 and the second modem 210 is turned on, the transmission flow of the PS data service is: the application ap receives the data and transmits it to the second modem 210; the second radio frequency transmits the uplink signal processed by the second modem 210 to the second network (4G network), receives the downlink signal from the second network (4G network), and transmits the downlink signal to the second modem 210 for processing; the application ap outputs the downstream signal processed by the second modem 210.
When the first electronic switch is in the first state, the mobile terminal disconnects the data communication between the first modem and the second process.
The first modem 200 may be the controller 180 of fig. 1. The second modem 210 may use the same type of modem as the first modem 200, or may use a modem with relatively low processing power compared to the first modem 200, in this embodiment, to save cost, the second modem 210 uses a modem with relatively low processing power compared to the first modem 200, and the second modem 210 only has data receiving and transmitting functions, and the received data is transmitted to the first modem 200 for processing.
The first modem 200 is further configured to send information to the first SIM card 250 or the second SIM card 260 at preset time intervals to perform in-place confirmation of the data card;
if the first SIM card 250 is not connected to the first modem 200 when the first SIM card 250 is confirmed in place (it is default that the first SIM card 250 should be connected to the first modem 200), the first modem 200 is further configured to issue a first control command to control the logic switch 1 to turn on a connection path between the first SIM card 250 and the first modem 200.
If the second SIM card 260 is confirmed in place (it is default that the second SIM card 260 should be connected to the first modem 200), and the second SIM card 260 is not connected to the first modem 200, the first modem 200 is further configured to issue a second control instruction to control the logic switch 2 to turn on the connection path between the second SIM card 260 and the first processing chip.
Similarly, the second modem 210 is further configured to send information to the first SIM card 250 or the second SIM card 260 at preset time intervals to perform on-site confirmation of the data card;
if the first SIM card 250 is not connected to the second modem 210 when the first SIM card 250 is confirmed in place (it is default that the first SIM card 250 should be connected to the second modem 210), the first modem 200 is further configured to issue a first control command to control the logic switch 1 to turn on the connection path between the first SIM card 250 and the second modem 210.
If the second SIM card 260 is not connected to the second modem 210 when the second SIM card 260 is confirmed in place (it is default that the first SIM card 250 should be connected to the second modem 210), the first modem 200 is further configured to issue a second control command to control the logic switch 2 to turn on the connection path between the second SIM card 260 and the second modem 210.
For example, if the second SIM card 260 originally connected to the second modem 210 is switched to the first modem 200 (for example, switched to the first modem 200 for PS data service), the second modem 210 needs to be switched back every 28 seconds, that is, the logic switch 2 is controlled to connect the second modem 210 to complete the confirmation that the data card is in place, and after the card reading confirmation is completed, the second SIM card 260 is switched back to the first processing chip again to ensure the normal operation of communication. And so on, if the first SIM card 250 originally connected to the first processing chip is switched to the second modem 210, the first processing chip needs to be switched back every 28 seconds, that is, the first processing chip is connected to the first modem 200 through the control logic switch 1 to complete the confirmation of the data card being in place, and after the card reading confirmation is completed, the first SIM card 250 is switched back to the second modem 210 again to ensure the normal operation of communication.
The switching time of the logic switch is millisecond level, and the card reading confirmation is also millisecond level when in-place use is confirmed, so that the normal service transmission is not influenced by the switching of the data card.
According to the above-mentioned on-site confirmation mechanism, when the first SIM card 250 is connected to the second modem 210 for data service transmission, the first SIM card 250 can also be connected to the first modem 200 for voice transmission at the same time. It is only necessary to ensure that the first SIM card 250 is in place when confirming in place.
According to the above-mentioned on-site confirmation mechanism, when the second SIM card 260 is connected to the second modem 210 for data service transmission, the second SIM card 260 is also connected to the first modem 200 for voice transmission. It is only necessary to ensure that the second SIM card 260 is in place when confirming in place.
According to the above-mentioned on-site confirmation mechanism, when the first SIM card 250 is connected to the first modem 200 for data service transmission and voice service, the second SIM card 260 is also connected to the second modem 210 for data service transmission. Only when in-place confirmation is needed, the first SIM card 250 and the second SIM card 260 are in place respectively.
According to the above-mentioned on-site confirmation mechanism, when the second SIM card 260 is connected to the first modem 200 for data service transmission and voice service, the first SIM card 250 is also connected to the second modem 210 for data service transmission. Only when in-place confirmation is needed, the first SIM card 250 and the second SIM card 260 are in place respectively.
The mobile terminal of the present invention is a dual-card dual-channel mobile terminal, wherein the first modem 200 and the second modem 210 are independent. The first modem 200 is further connected to a Wifi module, the first modem 200 is connected to the second modem 210 through a USB data transmission channel and a universal interface transmission channel, the USB transmission channel is used as a data transmission channel between the first modem 200 and the second modem 210, for example, package data, voice data, etc. are installed, and the universal interface transmission channel is used as a status transmission channel between the first modem 200 and the second modem 210.
The application ap is running on the first modem 200 and the second modem 210, and the user can provide an interactive interface to the user through the display module 151 in fig. 1, and operate the user input unit 130 in fig. 1, thereby completing the interaction with the mobile terminal. The application ap is used for processing some complex logic operations and also for sending operation instructions of the user on surfing the internet or calling to the first modem 200.
The first modem 200 and the second modem 210 include protocol stacks of various network systems for network interaction, where the protocol stacks include protocol codes specified in Communication standards such as LTE/WCDMA (Wideband Code Division Multiple Access)/GSM (Global System for Mobile Communication), Global System for Mobile Communication)/TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, Synchronous Time Division Multiple Access)/CDMA (Code Division Multiple Access)/EVDO. The mobile terminal interacts with the operator network through the protocol, that is, data traffic internet access, VOLTE (Voice Over LTE), or CS (Circuit SWitched) domain calling is performed.
The mobile terminal of the present invention may further include a data processing module for suppressing echo and noise in the call process, and a radio frequency module for transmitting data, etc., which are not described in detail herein.
When the second modem 210 is upgraded, the first modem 200 is further configured to obtain an upgrade instruction of the second modem 210, and enumerate a USB transmission channel between the first modem 200 and the second modem 210 according to the upgrade instruction;
the second modem 210 can check the system version to the server in real time, and when a new system version is inquired to be upgraded, the second modem 210 enters an upgrading procedure. When the second modem 210 enters the upgrade procedure, an upgrade order from the system is obtained and transmitted to the first modem 200. In a specific implementation, the first modem 200 may also verify a version of the slave system where the second modem 210 is located, and obtain an upgrade instruction of the slave system when the slave system where the second modem 210 is located needs to be upgraded.
When the first modem 200 obtains an upgrade order from the system, all interfaces between the first modem 200 and the second modem 210 are detected according to the upgrade order, and a USB transmission channel between the first modem 200 and the second modem 210 is enumerated for use by the second modem 210.
Specifically, the process of enumerating the USB transmission channel between the first modem 200 and the second modem 210 includes:
the first modem 200 is further configured to switch the first modem 200 to a slave device state according to the upgrade instruction, and switch the second modem 210 to a master device state;
in order to ensure that the first modem 200 in the mobile terminal occupies resources required for upgrading the slave system through other processing performed by the Wifi module and the like in the process of upgrading the slave system of the mobile terminal, in this embodiment, when the first modem 200 obtains the upgrade instruction, the state of the first modem 200 is switched to the slave device state, and the state of the second modem 210 is switched to the master device state, so that the method and the device can be performed normally.
The first modem 200 is further configured to enumerate the USB transmission channel.
When the state of the first modem 200 is switched to the slave device state and the second modem 210 is switched to the master device state, the first modem 200 detects all interfaces between the first modem 200 and the second modem 210 according to the upgrade instruction, and enumerates a USB transmission channel between the first modem 200 and the second modem 210, so as to be used by the second modem 210.
The second modem 210 recognizes that the first modem 200 enumerates the USB transmission channel, and registers the USB transmission channel.
The second modem 210 is further configured to configure the network interface corresponding to the USB transmission channel, and specifically, the second modem 210 configures a corresponding IP, a routing rule, a server DNS, and a gateway, where a specific process of the configuration is the same as a process of sharing a mobile terminal network to a computer through a USB by using an existing mobile terminal, and is not described herein any more. After the configuration is complete.
The second modem 210 is further configured to download an upgrade package through the Wifi module, and perform an upgrade operation according to the upgrade package.
After the second modem 210 is configured, the second modem 210 may download the upgrade package through the network interface by using the Wifi module 230, specifically, after the upgrade package is downloaded, the upgrade package may be stored in a corresponding storage device, and then, an upgrade operation is performed according to the upgrade package.
Specifically, the second modem 210 is further configured to detect the integrity of the upgrade package when downloading of the upgrade package is completed;
in order to ensure that the upgrade of the slave system where the second modem 210 is located is performed normally, when the second modem 210 finishes downloading the upgrade package, the mobile terminal further performs integrity verification on the downloaded upgrade package.
The second modem 210 is further configured to perform an upgrade operation according to the upgrade package when the upgrade package is complete.
When the downloaded upgrade package is complete, the second modem 210 performs an upgrade operation according to the upgrade package. If the downloaded upgrade package is incomplete, the second modem 210 continues downloading through the Wifi module 230 connected to the first modem 200, specifically, when the upgrade package is downloaded, if the upgrade package is incomplete, the upgrade package is deleted and downloaded through the Wifi module 230 connected to the first modem 200 again; or enable the usual breakpoint resume mechanism to continue downloading through the Wifi module 230 connected to the first modem 200.
Further, since the second modem 210 needs to pass through the ap applied in the first modem 200, in order not to affect other operations used by the user, when the second modem 210 is upgraded successfully, the second modem 210 sends the upgrade completed information to the first modem 200.
Further, when the first modem 200 receives the upgrade complete information sent by the second modem 210, the first modem 200 switches the first modem 200 to the master device state and switches the second modem 210 to the slave device state according to the information that the upgrade of the second modem 210 is successful.
The mobile terminal comprises a first modem, a second modem, a Wifi module, a first logic switch and a second logic switch, wherein the first modem is connected with the Wifi module, and the first modem is used for outputting a first preset voltage to control the first logic switch to be in a first state when a user uses a first SIM card for voice communication so that the first SIM card is connected to the first modem; or when the user uses a second SIM card to perform voice communication, outputting a second preset voltage to control the second logic switch to be in a second state, so that the second SIM card is connected to the first modem, and the first modem is further configured to obtain an upgrade instruction of the second modem, and enumerate a USB transmission channel between the first modem and the second modem according to the upgrade instruction; the second modem is used for identifying the USB transmission channel and registering a network interface corresponding to the USB transmission channel; the second modem is further configured to configure the network interface; the second modem is also used for downloading an upgrade package through Wifi and executing upgrade operation according to the upgrade package. Through the mode, the upgrading mobile terminal comprises two modems which are respectively connected with the SIM cards, so that the two SIM cards can simultaneously use a 4G network, and when the second modem is upgraded, the second modem configures a USB transmission channel enumerated by the first modem, so that an upgrading packet downloaded by using a Wifi module connected to the first modem can be transmitted through the USB transmission channel, and then upgrading operation is performed according to the upgrading packet.
Referring to fig. 3, fig. 3 is a flowchart illustrating an upgrade method according to a first embodiment of the present invention.
In this embodiment, the upgrade method includes:
step S10, the first modem obtains the upgrade order of the second modem, and enumerates a USB transmission channel between the first modem and the second modem according to the upgrade order;
the embodiment is described by taking the mobile terminal shown in fig. 2 as an example, and of course, a person skilled in the art can also apply the upgrading method of the present invention to other mobile terminals according to the core idea of the present invention.
The second modem 210 can check the system version to the server in real time, and when a new system version is inquired to be upgraded, the second modem 210 enters an upgrading procedure. When the second modem 210 enters the upgrade procedure, an upgrade order from the system is obtained and transmitted to the first modem 200. In a specific implementation, the first modem 200 may also verify a version of the slave system where the second modem 210 is located, and obtain an upgrade instruction of the slave system when the slave system where the second modem 210 is located needs to be upgraded.
When the first modem 200 obtains an upgrade order from the system, all interfaces between the first modem 200 and the second modem 210 are detected according to the upgrade order, and a USB transmission channel between the first modem 200 and the second modem 210 is enumerated for use by the second modem 210.
Specifically, as shown in fig. 4, the process of obtaining, by the first modem, an upgrade instruction of the second modem, and enumerating, according to the upgrade instruction, a USB transmission channel between the first modem and the second modem includes:
step S11, the first modem switches the first modem to a slave device state according to the upgrade instruction, and switches the second modem to a master device state;
in order to ensure that the first modem 200 in the mobile terminal occupies resources required for upgrading the slave system through other processing performed by the Wifi module and the like in the process of upgrading the slave system of the mobile terminal, in this embodiment, when the first modem 200 obtains the upgrade instruction, the state of the first modem 200 is switched to the slave device state, and the state of the second modem 210 is switched to the master device state, so that the method and the device can be performed normally.
Step S12, enumerating the USB transmission channel by the first modem.
When the state of the first modem 200 is switched to the slave device state and the second modem 210 is switched to the master device state, the first modem 200 detects all interfaces between the first modem 200 and the second modem 210 according to the upgrade instruction, and enumerates a USB transmission channel between the first modem 200 and the second modem 210, so as to be used by the second modem 210.
Step S20, the second modem identifies the USB transmission channel and registers a network interface corresponding to the USB transmission channel;
step S30, the second modem configuring the network interface;
the second modem 210 is further configured to configure the network interface corresponding to the USB transmission channel, and specifically, the second modem 210 configures a corresponding IP, a routing rule, a server DNS, and a gateway, where a specific process of the configuration is the same as a process of sharing a mobile terminal network to a computer through a USB by using an existing mobile terminal, and is not described herein any more. After the configuration is complete.
And step S40, the second modem downloads the upgrade package through the Wifi module and executes the upgrade operation according to the upgrade package.
After the second modem 210 is configured, the second modem 210 may download the upgrade package through the network interface by using the Wifi module 230, specifically, after the upgrade package is downloaded, the upgrade package may be stored in a corresponding storage device, and then, an upgrade operation is performed according to the upgrade package.
Specifically, the process that the second modem downloads the upgrade package through the Wifi module and executes the upgrade operation according to the upgrade package includes:
step S41, when the second modem finishes downloading the upgrade package, detecting the integrity of the upgrade package;
in order to ensure that the upgrade of the slave system where the second modem 210 is located is performed normally, when the second modem 210 finishes downloading the upgrade package, the mobile terminal further performs integrity verification on the downloaded upgrade package.
Step S42, if the upgrade package is complete, the second modem performs an upgrade operation according to the upgrade package.
When the downloaded upgrade package is complete, the second modem 210 performs an upgrade operation according to the upgrade package. If the downloaded upgrade package is incomplete, the second modem 210 continues downloading through the Wifi module 230 connected to the first modem 200, specifically, when the upgrade package is downloaded, if the upgrade package is incomplete, the upgrade package is deleted and downloaded through the Wifi module 230 connected to the first modem 200 again; or enable the usual breakpoint resume mechanism to continue downloading through the Wifi module 230 connected to the first modem 200.
The mobile terminal comprises a first modem, a second modem, a Wifi module, a first logic switch and a second logic switch, wherein the first modem is connected with the Wifi module, and the first modem is used for outputting a first preset voltage to control the first logic switch to be in a first state when a user uses a first SIM card for voice communication so that the first SIM card is connected to the first modem; or when the user uses a second SIM card to perform voice communication, outputting a second preset voltage to control the second logic switch to be in a second state, so that the second SIM card is connected to the first modem, and the first modem is further configured to obtain an upgrade instruction of the second modem, and enumerate a USB transmission channel between the first modem and the second modem according to the upgrade instruction; the second modem is used for identifying the USB transmission channel and registering a network interface corresponding to the USB transmission channel; the second modem is further configured to configure the network interface; the second modem is also used for downloading an upgrade package through Wifi and executing upgrade operation according to the upgrade package. Through the mode, the upgrading mobile terminal comprises two modems which are respectively connected with the SIM cards, so that the two SIM cards can simultaneously use a 4G network, and when the second modem is upgraded, the second modem configures a USB transmission channel enumerated by the first modem, so that an upgrading packet downloaded by using a Wifi module connected to the first modem can be transmitted through the USB transmission channel, and then upgrading operation is performed according to the upgrading packet.
Referring to fig. 6, fig. 6 is a flowchart illustrating an upgrade method according to a second embodiment of the present invention.
In this embodiment, the upgrade method includes:
step S10, the first modem obtains the upgrade order of the second modem, and enumerates a USB transmission channel between the first modem and the second modem according to the upgrade order;
the embodiment is described by taking the mobile terminal shown in fig. 2 as an example, and of course, a person skilled in the art can also apply the upgrading method of the present invention to other mobile terminals according to the core idea of the present invention.
The second modem 210 can check the system version to the server in real time, and when a new system version is inquired to be upgraded, the second modem 210 enters an upgrading procedure. When the second modem 210 enters the upgrade procedure, an upgrade order from the system is obtained and transmitted to the first modem 200. In a specific implementation, the first modem 200 may also verify a version of the slave system where the second modem 210 is located, and obtain an upgrade instruction of the slave system when the slave system where the second modem 210 is located needs to be upgraded.
When the first modem 200 obtains an upgrade order from the system, all interfaces between the first modem 200 and the second modem 210 are detected according to the upgrade order, and a USB transmission channel between the first modem 200 and the second modem 210 is enumerated for use by the second modem 210.
Specifically, as shown in fig. 5, the process of obtaining, by the first modem, an upgrade instruction of the second modem, and enumerating, according to the upgrade instruction, a USB transmission channel between the first modem and the second modem includes:
step S11, the first modem switches the first modem to a slave device state according to the upgrade instruction, and switches the second modem to a master device state;
in order to ensure that the first modem 200 in the mobile terminal occupies resources required for upgrading the slave system through other processing performed by the Wifi module and the like in the process of upgrading the slave system of the mobile terminal, in this embodiment, when the first modem 200 obtains the upgrade instruction, the state of the first modem 200 is switched to the slave device state, and the state of the second modem 210 is switched to the master device state, so that the method and the device can be performed normally.
Step S12, enumerating the USB transmission channel by the first modem.
When the state of the first modem 200 is switched to the slave device state and the second modem 210 is switched to the master device state, the first modem 200 detects all interfaces between the first modem 200 and the second modem 210 according to the upgrade instruction, and enumerates a USB transmission channel between the first modem 200 and the second modem 210, so as to be used by the second modem 210.
Step S20, the second modem identifies the USB transmission channel and registers a network interface corresponding to the USB transmission channel;
step S30, the second modem configuring the network interface;
the second modem 210 is further configured to configure the network interface corresponding to the USB transmission channel, and specifically, the second modem 210 configures a corresponding IP, a routing rule, a server DNS, and a gateway, where a specific process of the configuration is the same as a process of sharing a mobile terminal network to a computer through a USB by using an existing mobile terminal, and is not described herein any more. After the configuration is complete.
And step S40, the second modem downloads the upgrade package through the Wifi module and executes the upgrade operation according to the upgrade package.
After the second modem 210 is configured, the second modem 210 may download the upgrade package through the network interface by using the Wifi module 230, specifically, after the upgrade package is downloaded, the upgrade package may be stored in a corresponding storage device, and then, an upgrade operation is performed according to the upgrade package.
Specifically, the process that the second modem downloads the upgrade package through the Wifi module and executes the upgrade operation according to the upgrade package includes:
step S41, when the second modem finishes downloading the upgrade package, detecting the integrity of the upgrade package;
in order to ensure that the upgrade of the slave system where the second modem 210 is located is performed normally, when the second modem 210 finishes downloading the upgrade package, the mobile terminal further performs integrity verification on the downloaded upgrade package.
Step S42, if the upgrade package is complete, the second modem performs an upgrade operation according to the upgrade package.
When the downloaded upgrade package is complete, the second modem 210 performs an upgrade operation according to the upgrade package. If the downloaded upgrade package is incomplete, the second modem 210 continues downloading through the Wifi module 230 connected to the first modem 200, specifically, when the upgrade package is downloaded, if the upgrade package is incomplete, the upgrade package is deleted and downloaded through the Wifi module 230 connected to the first modem 200 again; or enable the usual breakpoint resume mechanism to continue downloading through the Wifi module 230 connected to the first modem 200.
Step S50, when the second modem is upgraded successfully, the second modem sends the upgrade completed information to the first modem.
Since the second modem 210 needs to pass the ap applied in the first modem 200, in order not to affect other operations used by the user, when the second modem 210 is upgraded successfully, the second modem 210 sends the upgrade completed information to the first modem 200.
Step S60, the first modem switches the first modem to the master device state and switches the second modem to the slave device state according to the information that the second modem is successfully upgraded.
After the first modem 200 receives the upgrade-completed information sent by the second modem 210, the first modem 200 switches the first modem 200 to the master device state and switches the second modem 210 to the slave device state according to the upgrade-successful information of the second modem 210.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.