CN105718405A - Mobile terminal and method for USB interface multiplex of processors of mobile terminal - Google Patents

Mobile terminal and method for USB interface multiplex of processors of mobile terminal Download PDF

Info

Publication number
CN105718405A
CN105718405A CN201610059714.9A CN201610059714A CN105718405A CN 105718405 A CN105718405 A CN 105718405A CN 201610059714 A CN201610059714 A CN 201610059714A CN 105718405 A CN105718405 A CN 105718405A
Authority
CN
China
Prior art keywords
processor
mobile terminal
interface
path
upper computer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610059714.9A
Other languages
Chinese (zh)
Other versions
CN105718405B (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.)
Nubia Technology Co Ltd
Original Assignee
Nubia 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201610059714.9A priority Critical patent/CN105718405B/en
Publication of CN105718405A publication Critical patent/CN105718405A/en
Priority to PCT/CN2016/096401 priority patent/WO2017128708A1/en
Application granted granted Critical
Publication of CN105718405B publication Critical patent/CN105718405B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/382Information transfer, e.g. on bus using universal interface adapter
    • G06F13/387Information transfer, e.g. on bus using universal interface adapter for adaptation of different data processing systems to different peripheral devices, e.g. protocol converters for incompatible systems, open system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4063Device-to-bus coupling
    • G06F13/4068Electrical coupling

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • Computer Hardware Design (AREA)

Abstract

The invention discloses a mobile terminal which is applied to multi-channel communication.The mobile terminal comprises a first processor, a second processor, a control module and a USB external port, wherein the USB external port comprises a first path interface and a second path interface.The control module is used for determining whether the mobile terminal is connected with an upper computer through the first path interface or the second path interface when it is detected that the mobile terminal is connected with the upper computer.The control module is further used for connecting a USB interface in the first processor to the first path interface when the mobile terminal is connected with the upper computer through the first path interface, or connecting the USB interface in the first processor to the second processor when data communication is carried out between the first processor and the second processor.The invention further discloses a method for USB interface multiplex of the processors of the mobile terminal.By means of the mobile terminal and the method, multiplex of the USB interfaces in the processors can be achieved.

Description

Mobile terminal and method for multiplexing USB interface of processor of mobile terminal
Technical Field
The invention relates to the technical field of communication, in particular to a mobile terminal and a USB interface multiplexing method of a processor of the mobile terminal.
Background
In the multi-channel communication mobile terminal, the main processor only has one group of USB interfaces, on one hand, the USB interfaces need to be communicated with the secondary processor, and on the other hand, the USB interfaces need to be communicated with devices such as computers.
This is inconvenient to use since there is only one USB interface in the processor of the mobile terminal.
Disclosure of Invention
The invention mainly aims to provide a mobile terminal and a method for multiplexing a USB interface of a processor thereof, aiming at realizing the multiplexing of the USB interface in the processor.
In order to achieve the above object, the present invention provides a mobile terminal, which is applied to multi-channel communication, and includes:
the system comprises a first processor, a second processor, a control module and a USB external port, wherein the USB external port comprises a first path of interface and a second path of interface,
the control module is used for determining whether the mobile terminal is connected with the upper computer through the first path of interface or the second path of interface when detecting that the mobile terminal is connected with the upper computer;
the control module is also used for connecting a USB interface in the first processor to the first path interface when the mobile terminal is connected with the upper computer through the first path interface; or when data communication is carried out between the first processor and the second processor, the USB interface in the first processor is connected to the second processor.
Optionally, the control module comprises:
the receiving unit is used for receiving a switching command triggered by a user when the mobile terminal is connected with the upper computer through the first path of interface;
and the switching unit is used for connecting the USB interface in the first processor to the first path interface according to the switching command.
Optionally, the first processor is configured to switch a state of the first processor to a slave device state when the USB interface in the first processor is connected to the first path interface; or,
switching the state of the first processor to a master state when data communication is performed between the first processor and the second processor; or,
and when the USB interface in the first processor is not connected to the first path interface or data communication is not carried out between the first processor and the second processor, switching the state of the first processor to be null.
Optionally, the mobile terminal further includes:
a first electronic switch which is connected with the power supply,
the control module is further used for controlling the first electronic switch to be in a first state when the mobile terminal is connected with the upper computer through a first path of interface, so that a USB interface in the first processor is connected to the first path of interface; or when data communication is carried out between the first processor and the second processor, the first electronic switch is in a second state, so that the USB interface in the first processor is connected to the second processor; or when the mobile terminal is not connected with the upper computer through the first path of interface or data communication is not carried out between the first processor and the second processor, the first electronic switch is controlled to be in a third state.
Optionally, the mobile terminal further includes:
a second electronic switch connected between the second processor and the USB external port,
the first processor is further used for controlling the second electronic switch to be closed when the mobile terminal is connected with the upper computer through the second path of interface, so that the second processor is connected with the upper computer, and the first electronic switch is controlled to be in a third state through the control module.
Optionally, the mobile terminal further includes:
a first subscriber identity module, a second subscriber identity module, a first logic switch and a second logic switch,
the first processor is further used for outputting a first preset voltage to control the first logic switch to be in a fourth state when a user uses a first user identification card for voice communication, so that the first user identification card is connected to the first processor; or when the user uses a second user identification card to carry out voice communication, outputting a second preset voltage to control the second logic switch to be in a fifth state so that the second user identification card is connected to the first processor;
the control module is further configured to disconnect data communication between the first processor and the second processor when the first electronic switch is in the first state.
Optionally, the mobile terminal further includes:
the slave equipment power supply module is used for providing preset voltage for the second processor when data communication is carried out between the first processor and the second processor; or when the mobile terminal is connected with the upper computer through the second interface, providing preset voltage for the second interface.
In addition, to achieve the above object, the present invention further provides a method for multiplexing a USB interface of a processor of a mobile terminal, the method being applied to a mobile terminal for multi-channel communication, the method including:
when the mobile terminal is detected to be connected with an upper computer, determining whether the mobile terminal is connected with the upper computer through a first path of interface or a second path of interface;
when the mobile terminal is connected with the upper computer through the first path of interface, the USB interface in the first processor is connected to the first path of interface; or when data communication is carried out between the first processor and the second processor, the USB interface in the first processor is connected to the second processor.
Optionally, when the mobile terminal is connected to the upper computer through the first path of interface, the step of switching the state of the first processor into the state of the slave device includes:
when the mobile terminal is connected with the upper computer through the first path of interface, receiving a switching command triggered by a user;
and connecting the USB interface in the first processor to the first path interface according to the switching command.
Optionally, when a USB interface in the first processor is connected to the first path interface, switching the state of the first processor to a slave device state; or,
switching the state of the first processor to a master state when data communication is performed between the first processor and the second processor; or,
and when the mobile terminal is not connected with the upper computer through the first path of interface or data communication is not carried out between the first processor and the second processor, the state of the first processor is switched to be null.
The mobile terminal of the present invention, which is applied to multi-channel communication, includes: the mobile terminal comprises a first processor, a second processor, a control module and a USB external port, wherein the USB external port comprises a first path interface and a second path interface, and the control module is used for determining whether the mobile terminal is connected with an upper computer through the first path interface or the second path interface when detecting that the mobile terminal is connected with the upper computer; the control module is also used for connecting a USB interface in the first processor to the first path interface when the mobile terminal is connected with the upper computer through the first path interface; or when data communication is carried out between the first processor and the second processor, the USB interface in the first processor is connected to the second processor. Through the mode, the USB interface of the first processor of the mobile terminal is connected to the USB external port or the second processor according to the use condition of the first processor in the mobile terminal, so that the multiplexing of the USB interface in the processor is realized.
Drawings
Fig. 1 is a schematic hardware configuration diagram of a preferred mobile terminal implementing various embodiments of the present invention;
fig. 2 is a schematic structural diagram of a mobile terminal according to a first embodiment of the present invention;
FIG. 3 is a functional block diagram of a control module according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a mobile terminal according to a second embodiment of the present invention;
fig. 5 is a schematic structural diagram of a multi-channel communication mobile terminal according to the present invention;
FIG. 6 is a flowchart illustrating a first embodiment of a method for multiplexing USB interfaces of a mobile terminal processor according to the present invention;
fig. 7 is a schematic detailed flow chart of switching the state of the first processor to the state of the slave device when the mobile terminal is connected to the upper computer through the first path interface in the embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
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 device, 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 a mobile terminal 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 170, a controller 180, and a power supply unit 190, and the like. 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 at least one of a mobile communication module 112, 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 may include 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, or 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.
The interface unit 170 serves as an interface through which at least one external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The identification module may store various information for authenticating a user using the mobile terminal 100 and may include a User Identity Module (UIM), a Subscriber Identity Module (SIM), a Universal Subscriber Identity Module (USIM), and the like. In addition, a device having an identification module (hereinafter, referred to as an "identification device") may take the form of a smart card, and thus, the identification device may be connected with the mobile terminal 100 via a port or other connection means. The interface unit 170 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal and the external device.
In addition, when the mobile terminal 100 is connected with an external cradle, the interface unit 170 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 serve as an input device and an output device. 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 devices), 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 device 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 controller 180 may perform a pattern recognition process to recognize a handwriting input or a picture drawing input performed on the touch screen as a character or an image.
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 Device (DSPD), a Programmable Logic Device (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 above mobile terminal hardware structure and communication system, the present invention provides various embodiments of the method for multiplexing USB interfaces of the mobile terminal and the mobile terminal processor.
Referring to fig. 2, fig. 2 is a schematic structural diagram of a mobile terminal according to a first embodiment of the present invention.
In the first embodiment of the mobile terminal of the present invention, the mobile terminal is applied to multi-channel communication, and when the present invention is applied to multi-channel communication, since the first processor 100 in the mobile terminal has only one USB interface, it should be understood that the SIM card in the embodiment of the present invention is used as an explanation, in order to implement that two SIM cards can simultaneously use dual 4G or dual wifi data communication, instead of one SIM card using 4G communication and the other SIM card using only 3G or 2G communication in the prior art.
The mobile terminal of the present invention comprises:
the system comprises a first processor 200, a second processor 210, a control module 220 and a USB external port 230, wherein the USB external port 230 comprises a first road interface 231 and a second road interface 232. In this embodiment, the first processor 200 is respectively connected to the second processor 210, the control module 220, and the first way interface 231, and the second processor 210 is further connected to the second way interface 232. The specific implementation can be connected through other modes according to the core idea of the invention.
The control module 220 is configured to determine whether the mobile terminal is connected to the upper computer through the first road interface 231 or the second road interface 232 when detecting that the mobile terminal is connected to the upper computer.
In this embodiment, the USB external port 230 may be the interface unit 170 in fig. 1, and the first processor 200 may be the controller 180 in fig. 1. The second processor 210 may use a processor of the same type as the first processor 200, or may use a processor with relatively weak processing capability with respect to the first processor 200, in this embodiment, to save cost, the second processor 210 uses a processor with relatively weak processing capability with respect to the first processor 200, and the second processor 210 only has data receiving and transmitting functions, and transmits received data to the first processor 200 for processing.
Control module 220 detects through USB external port 230 in real time whether mobile terminal connects to the host computer through USB external port 230, the host computer includes electronic equipment that can pass through USB external other equipment such as computer, TV, mobile terminal is connected to during the host computer, this mobile terminal can regard as the slave unit of host computer, only right during the connection the mobile terminal charges except.
When the mobile terminal is connected to the upper computer through the USB external port 230, it is determined whether the mobile terminal is connected to the upper computer through the first path interface 231 or the second path interface 232. It should be noted that in this embodiment, the first path interface 231 is generally used for performing an operation of viewing and copying a part of contents of the mobile terminal through the upper computer when the user connects the mobile terminal to the upper computer, and an interface used when the user connects the mobile terminal to the upper computer is the first path interface 231. Second way interface 232 is typically an interface that a technician would use to debug the functionality of second processor 210, etc. Of course, the user may also use the first channel interface 231 to perform debugging and other functions.
The control module 220 is further configured to connect the USB interface in the first processor 200 to the first channel interface 231 when the mobile terminal is connected to the upper computer through the first channel interface 231; or when data communication is performed between the first processor 200 and the second processor 210, the USB interface in the first processor 200 is connected to the second processor 210.
When the control module 220 determines that the mobile terminal is connected to the upper computer through the first path of interface 231, the control module 220 connects the USB interface in the first processor 200 to the first path of interface 231, so that the mobile terminal is connected to the upper computer.
Particularly, the device is flexible for users to set, thereby being convenient to use. As shown in fig. 3, the control module 220 includes:
the receiving unit 221 is configured to receive a switching command triggered by a user when the mobile terminal is connected to the upper computer through the first path of interface.
When the mobile terminal is connected with the upper computer through the first path of interface, the upper computer or a display interface of the mobile terminal can be prompted, for example, whether the mobile terminal is connected with the upper computer or not is detected to be switched. Of course, application scenarios, such as charging only, data transmission with an upper computer, and the like, may also be displayed. A user can select corresponding options on a display interface of the upper computer or the mobile terminal, so that a switching command is generated or not generated, for example, when the user selects switching, the switching command is generated, otherwise, the switching command is not generated; or when the user selects to only charge, the switching command is not generated, otherwise, the switching command is generated.
A switching unit 222, configured to connect the USB interface in the first processor to the first path interface according to the switching command.
The mobile terminal receives the switching command triggered by the user, connects the USB interface in the first processor 200 to the first path interface 231, otherwise does not connect the USB interface in the first processor to the first path interface.
If the control module 220 does not detect that the mobile terminal is connected to the upper computer through the first path interface 231, it is determined whether data communication is performed between the first processor 200 and the second processor 210, and it should be specifically noted that the data communication described herein refers to communication performed through a USB data transmission channel of the first processor 200, and is not communication performed through a universal serial port channel between the first processor 200 and the second processor 210, where the universal serial port channel is used for the second processor 210 to send status information to the first processor 200. Communicating data between the first processor 200 and the second processor 210 includes: the first processor 200 sends data to the second processor 210 or the second processor 210 sends data to the first processor 200. If data communication is performed between the first processor 200 and the second processor 210, the USB interface in the first processor 200 is connected to the second processor 210.
If it is detected that the mobile terminal is connected to the upper computer through the second road interface 232, the USB interface controlling the first processor 200 is not connected to the first road interface 231, nor connected to the second processor 210.
When the USB interface of the first processor 200 is connected to the second processor 210, in order to enable the second processor 210 to normally receive the data sent by the first processor 200, a specific voltage is required, where the voltage is greater than the voltage when the second processor 210 operates alone, specifically, in this embodiment, the voltage of the second processor 210 is 5V added to the voltage when the USB interface of the first processor 200 is connected to the second processor 210.
Those skilled in the art will recognize that: the core idea of the present invention is to switch the connection state of the USB interface of the first process in the mobile terminal according to the situation of using the mobile terminal by the user, and the above situations may not be in sequence, that is, it is determined whether to perform data communication between the first processor 200 and the second process 210, or before or simultaneously detecting whether the mobile terminal is connected to the upper computer through the USB external port 230.
In order to ensure normal operation of voice service in specific implementation, priority of voice service may be set to be higher than priority of data service by setting priority. In addition, in the actual use process, when two SIM cards are connected, the first processor 200 and the second processor 210 confirm whether the connected SIM card is in place at regular intervals, and specifically, confirm whether the connected SIM card is in place at intervals of 28 seconds. After confirming whether the connected SIM card is in place, the corresponding SIM card is switched back to the corresponding processor. Because the USB connection state is switched by millisecond and the card reading confirms whether the current use is also millisecond, the priority mode can preferentially ensure the normal operation of the voice service and the SIM card switching can not influence the normal service transmission.
Further, in order to facilitate the mobile terminal to perform corresponding activities when the USB interface of the first processor 200 is connected to different locations, the present invention sets the first processor 200 in the mobile terminal to different states at the locations where the USB interface of the first processor 100 is connected to different locations, specifically:
the first processor 200 is configured to switch a state of the first processor 200 into a slave device state when the mobile terminal is connected to the upper computer through the first path interface 231; or, when data communication is performed between the first processor 200 and the second processor 210, the state of the first processor 200 is switched to a master device state; or, when the mobile terminal is not connected to the upper computer through the first path interface 231 or data communication is not performed between the first processor 200 and the second processor 210, the state of the first processor 200 is switched to null.
Because the mobile terminal can perform different tasks when the USB interface of the first processor 200 is connected to different locations, for example, when the mobile terminal is used as a slave device of an upper computer in this embodiment, the USB interface of the first processor 200 of the mobile terminal is connected to the upper computer, and cannot perform data communication with the second processor 210, in order to avoid conflict generated during use and make the mobile terminal unable to be used normally, this embodiment will set the first processor 200 in the mobile terminal to different states at different locations where the USB interface of the first processor 100 is connected: the first processor 200 is configured to switch a state of the first processor 200 into a slave device state when the mobile terminal is connected to the upper computer through the first path interface 231; or, when data communication is performed between the first processor 200 and the second processor 210, the state of the first processor 200 is switched to a master device state; or, when the mobile terminal is not connected to the upper computer through the first path interface 231 or data communication is not performed between the first processor 200 and the second processor 210, the state of the first processor 200 is switched to null.
The mobile terminal of the present invention, which is applied to multi-channel communication, includes: the mobile terminal comprises a first processor, a second processor, a control module and a USB external port, wherein the USB external port comprises a first path interface and a second path interface, and the control module is used for determining whether the mobile terminal is connected with an upper computer through the first path interface or the second path interface when detecting that the mobile terminal is connected with the upper computer; the control module is also used for connecting a USB interface in the first processor to the first path interface when the mobile terminal is connected with the upper computer through the first path interface; or when data communication is carried out between the first processor and the second processor, the USB interface in the first processor is connected to the second processor. Through the mode, the USB interface of the first processor of the mobile terminal is connected to the USB external port or the second processor according to the use condition of the first processor in the mobile terminal, so that the multiplexing of the USB interface in the processor is realized.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a mobile terminal according to a second embodiment of the present invention.
In this embodiment, the mobile terminal is applied to multi-channel communication, and when the invention is applied to multi-channel communication, because the first processor 100 in the mobile terminal has only one USB interface, in order to implement that two SIM cards can simultaneously use dual 4G or dual wifi data communication, instead of using 4G communication for one SIM card and only 3G or 2G communication for the other SIM card in the prior art. The mobile terminal in this embodiment includes:
the system comprises a first processor 200, a second processor 210, a control module 220, a USB external port 230, a first electronic switch S1, a second electronic switch S2, and a slave device power supply module 240, wherein the USB external port 230 comprises a first road interface 231 and a second road interface 232.
In this embodiment, the first electronic switch S1 is respectively connected to the first processor 200, the second processor 210, the control module 220, and the first way interface 231, the first processor 200 is further respectively connected to the control module 220, the slave device power supply module 240, the second electronic switch S2, and the second way interface 232, and the second processor 210 is further respectively connected to the second electronic switch S2, and the second way interface 232. The specific implementation can be connected through other modes according to the core idea of the invention.
Specifically, referring to fig. 5, the first processor 200 in the mobile terminal for multi-channel communication may include: the second processor 210 may include, in the application processing module 202 and the first modem module 201: a second modem module 221, wherein the mobile terminal further includes: the first SIM card 250, the second SIM card 260, the first logic switch 270, the second logic switch 280, the first radio frequency connected to the first modem module 201, and the second radio frequency connected to the second modem module 221. The first modem module 201 and the second modem module 221 may correspond to the mobile communication module 112 in fig. 1.
The first processor 200 is further configured to output a first preset voltage to control the first logic switch 270 to be in a fourth state when a user uses the first SIM card 250 for voice communication, so that the first SIM card 250 is connected to the first modem module 201; 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 the fifth state, so that the second SIM card 260 is connected to the first modem module 201.
In this embodiment, when the user uses the first SIM card 250 for voice communication, the first modem module 201 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 module 201; and when the output level is low, the first SIM card 250 is connected to the second modem module 221. Or when outputting a high level, the second logic switch 280 is turned on, so that the second SIM card 260 is connected to the first modem module 201; and when the output level is low, the second SIM card 260 is connected to the second modem module 221.
In the first embodiment of the present invention, if the first SIM card 250 is connected to the first modem module 201, 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 module 201. Thus, the first SIM card 250 can perform CS voice and PS data services through the first network.
Similarly, if the second SIM card 260 is connected to the first modem module 201, the second SIM card 260 may reside in the PS domain and the CS domain of the first network through the first modem module 201. 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 module 221, the first SIM card 250 may reside in the PS domain of the second network through the second modem module 221. 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 module 221, the second SIM card 260 may reside in the PS domain of the second network through the second modem module 221. 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 module 201 supports PS data service and CS voice service, and the second modem module 221 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 module 221 has the CS voice service, the first modem module 201 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 module 201 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 processing module 202 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 module 201 outputs a first control command to control the first and second logic switches 28070 so that the first SIM card 250 is connected to the first modem module 201. The process of performing the CS voice service through the first SIM card 250 includes:
first, a voice communication connection is established: the application processing module transmits the operation instruction to the first modem module 201, and sends a RRC connection request and other flows 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 modulation and demodulation module 201; the first radio frequency transmits the signal processed by the first modem module 201. The voice downlink transmission process comprises the following steps: the first radio frequency receives the downlink signal and transmits the downlink signal to the first modem module 201; the digital signal processing chip (ADSP) performs audio processing on the signal processed by the first modem module 201 and transmits the signal to a coder-decoder (codec); the coder-decoder performs analog-to-digital conversion on the received signal and then transmits the signal to the receiver.
The application processing module 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 module 201 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 module 201. The process of performing the CS voice service through the second SIM card 260 includes:
first, a voice communication connection is established: the application processing module transmits the operation instruction to the first modem module 201, and sends a RRC connection request and other flows 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 modulation and demodulation module 201; the first radio frequency transmits the signal processed by the first modem module 201. The voice downlink transmission process comprises the following steps: the first radio frequency receives the downlink signal and transmits the downlink signal to the first modem module 201; the digital signal processing chip performs audio processing on the signal processed by the first modulation and demodulation module 201 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 processing module 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 module 201 outputs a first control instruction to control the first logic switch 270 to conduct a connection channel between the first SIM card 250 and the first modem module 201, and also outputs a second control instruction to control the first logic switch 270 to conduct a connection channel between the first SIM card 250 and the second modem module 221, 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 module 201 is conducted, the transmission flow of the PS data service is as follows: the application processing module receives data and transmits the data to the first modulation and demodulation module 201; the first radio frequency transmits the uplink signal processed by the first modem module 201 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 module 201 for processing; the application processing module outputs the downlink signal processed by the first modem module 201.
If the connection channel between the first SIM card 250 and the second modem module 221 is conducted, the transmission flow of the PS data service is as follows: the application processing module receives the data and transmits the data to the second modem module 221; the radio frequency 2 transmits the uplink signal processed by the second modem module 221 to the LTE network, receives the downlink signal from the LTE network, and transmits the downlink signal to the second modem module 221 for processing; the application processing module outputs the downlink signal processed by the second modem module 221.
If the operation instruction is to perform the PS data service through the second SIM card 260, the first modem module 201 may output a first control instruction to control the second logic switch 280 to conduct the connection channel between the second SIM card 260 and the first modem module 201, and may also output a second control instruction to control the second logic switch 280 to conduct the connection channel between the second SIM card 260 and the second modem module 221, 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 module 201 is conducted, the transmission flow of the PS data service is as follows: the application processing module receives data and transmits the data to the first modulation and demodulation module 201; the first radio frequency transmits the uplink signal processed by the first modem module 201 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 module 201 for processing; the application processing module outputs the downlink signal processed by the first modem module 201.
If the connection channel between the second SIM card 260 and the second modem module 221 is conducted, the transmission flow of the PS data service is as follows: the application processing module receives the data and transmits the data to the second modem module 221; the radio frequency 2 transmits the uplink signal processed by the second modem module 221 to a second network (4G network), receives a downlink signal from the second network (4G network), and transmits the downlink signal to the second modem module 221 for processing; the application processing module outputs the downlink signal processed by the second modem module 221.
The control module is further configured to disconnect data communication between the first processor and the second processor when the first electronic switch is in the first state.
The control module 220 is configured to determine whether the mobile terminal is connected to the upper computer through the first road interface 231 or the second road interface 232 when detecting that the mobile terminal is connected to the upper computer.
In this embodiment, the USB external port 230 may be the interface unit 170 in fig. 1, and the first processor 200 may be the controller 180 in fig. 1. The second processor 210 may use a processor of the same type as the first processor 200, or may use a processor with relatively weak processing capability with respect to the first processor 200, in this embodiment, to save cost, the second processor 210 uses a processor with relatively weak processing capability with respect to the first processor 200, and the second processor 210 only has data receiving and transmitting functions, and transmits received data to the first processor 200 for processing.
Control module 220 detects through USB external port 230 in real time whether mobile terminal connects to the host computer through USB external port 230, the host computer includes electronic equipment that can pass through USB external other equipment such as computer, TV, mobile terminal is connected to during the host computer, this mobile terminal can regard as the slave unit of host computer, only right during the connection the mobile terminal charges except.
When the mobile terminal is connected to the upper computer through the USB external port 230, it is determined whether the mobile terminal is connected to the upper computer through the first path interface 231 or the second path interface 232. It should be noted that in this embodiment, the first path interface 231 is generally used for performing an operation of viewing and copying a part of contents of the mobile terminal through the upper computer when the user connects the mobile terminal to the upper computer, and an interface used when the user connects the mobile terminal to the upper computer is the first path interface 231. Second way interface 232 is typically an interface that a technician would use to debug the functionality of second processor 210, etc. Of course, the user may also use the first channel interface 231 to perform debugging and other functions.
The control module 220 is further configured to control the first electronic switch S1 to be in a first state when the mobile terminal is connected to the upper computer through the first channel interface 131, so that the USB interface in the first processor is connected to the first channel interface 231; or when data communication is performed between the first processor 200 and the second processor 210, the first electronic switch S1 is in the second state, so that the USB interface in the first processor 200 is connected to the second processor 210; or when the mobile terminal is not connected to the upper computer through the first path interface 231 or data communication is not performed between the first processor 200 and the second processor 210, controlling the first electronic switch S1 to be in the third state.
The first processor 200 is further configured to control the second electronic switch S2 to be closed when the mobile terminal is connected to the upper computer through the second road interface 232, so that the second processor 210 is connected to the upper computer, and control the first electronic switch S1 to be in a third state through the control module 220.
When the control module 220 determines that the mobile terminal is connected to the upper computer through the first channel interface 231, the control module 220 controls the first electronic switch S1 to be in a first state, in this embodiment, the first state is that the first electronic switch S1 is closed to one end of the first channel interface 231, and the USB interface in the first processor 200 is connected to the first channel interface 231, so that the mobile terminal is connected to the upper computer.
Particularly, the device is flexible for users to set, thereby being convenient to use. The control module 220 includes:
the receiving unit 221 is configured to receive a switching command triggered by a user when the mobile terminal is connected to the upper computer through the first path of interface.
When the mobile terminal is connected with the upper computer through the first path of interface, the upper computer or a display interface of the mobile terminal can be prompted, for example, whether the mobile terminal is connected with the upper computer or not is detected to be switched. Of course, application scenarios, such as charging only, data transmission with an upper computer, and the like, may also be displayed. A user can select corresponding options on a display interface of the upper computer or the mobile terminal, so that a switching command is generated or not generated, for example, when the user selects switching, the switching command is generated, otherwise, the switching is not performed; or when the user selects to only charge, the switching command is not generated, otherwise, the switching command is generated.
A switching unit 222, configured to connect the USB interface in the first processor to the first path interface according to the switching command.
The mobile terminal receives the switching command triggered by the user, and controls the first electronic switch S1 to be in a first state, in this embodiment, the first state is that the first electronic switch S1 is closed to one end of the first channel interface 231, so as to connect the USB interface in the first processor 200 to the first channel interface 231, otherwise, no switching is performed. Of course, the first electronic switch S1 may also be implemented by software.
If the control module 220 does not detect that the mobile terminal is connected to the upper computer through the first path interface 231, it is determined whether data communication is performed between the first processor 200 and the second processor 210, and it should be specifically noted that the data communication described herein refers to communication performed through a USB data transmission channel of the first processor 200, and is not communication performed through a universal serial port channel between the first processor 200 and the second processor 210, where the universal serial port channel is used for the second processor 210 to send status information to the first processor 200. Communicating data between the first processor 200 and the second processor 210 includes: the first processor 200 sends data to the second processor 210 or the second processor 210 sends data to the first processor 200. If data communication is performed between the first processor 200 and the second processor 210, the USB interface in the first processor 200 is connected to the second processor 210. When the data communication is not performed between the first processor 200 and the second processor 210, the first electronic switch S1 is in the second state, in this embodiment, the first electronic switch S1 is closed to one end of the second processor 210, so that the USB interface in the first processor 200 is connected to the second processor 210. When the mobile terminal is not connected with the upper computer through the first path of interface or data communication is not performed between the first processor and the second processor, the first electronic switch is controlled to be in a third state, and the third state is suspended, namely, is not closed.
If it is detected that the mobile terminal is connected to the upper computer through the second road interface 232, the USB interface controlling the first processor 200 is not connected to the first road interface 231, nor connected to the second processor 210.
A slave device power supply module 240, configured to provide a preset voltage for the second processor 210 when data communication is performed between the first processor 200 and the second processor 210; or when the mobile terminal is connected to the upper computer through the second road interface 232, a preset voltage is provided for the second road interface 232.
When the USB interface of the first processor 200 is connected to the second processor 210, in order to enable the second processor 210 to normally receive data sent by the first processor 200, a specific voltage is required, where the voltage is greater than a voltage when the second processor 210 operates alone, specifically, in this embodiment, when the USB interface of the first processor 200 is connected to the second processor 210, the slave device power supply module 240 is controlled to provide a preset voltage for the second processor 210, where the preset voltage may be set according to an actual situation, for example, the preset voltage is 5V; meanwhile, since the second channel interface 232 of the USB external port 230 can normally operate only by an extra voltage when being used normally, the second channel interface 232 is supplied with the preset voltage when the mobile terminal is connected to the upper computer through the second channel interface 232.
Those skilled in the art will recognize that: the core idea of the present invention is to switch the connection state of the USB interface of the first process in the mobile terminal according to the situation of using the mobile terminal by the user, and the above situations may not be in sequence, that is, it is determined whether to perform data communication between the first processor 200 and the second process 210, or before or simultaneously detecting whether the mobile terminal is connected to the upper computer through the USB external port 230.
In order to ensure normal operation of voice service in specific implementation, priority of voice service may be set to be higher than priority of data service by setting priority. In addition, in the actual use process, after the user equipment is started, the communication between the user equipment and the data card is carried out once in 28 seconds so as to confirm whether the data card is in place and ensure the normal communication. The one 28 second communication is controlled by a processing chip connected to the data card, for example, the processing chip sends a null data to the data card, if a response is received, the data card is confirmed to be in place, otherwise the data card is not in place.
The first modem module 201 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 acknowledgement of the data card;
if 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 module 201), and the first SIM card 250 is not connected to the first modem module 201, the first modem module 201 is further configured to issue a first control instruction to control the logic switch 1 to turn on a connection path between the first SIM card 250 and the first modem module 201.
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 module 201), and the second SIM card 260 is not connected to the first modem module 201, the first modem module 201 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 module 221 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 confirmed in place (it is default that the first SIM card 250 should be connected to the second modem module 221), and the first SIM card 250 is not connected to the second modem module 221, the first modem module 201 is further configured to issue a first control instruction to control the logic switch 1 to turn on the connection path between the first SIM card 250 and the second modem module 221.
If 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 module 221), and the second SIM card 260 is not connected to the second modem module 221, the first modem module 201 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 second modem module 221.
For example, if the second SIM card 260 originally connected to the second modem module 221 is switched to connect to the first modem module 201 (for example, to the first modem module 201 for PS data service), the second modem module 221 needs to be switched back every 28 seconds, that is, the logic switch 2 is controlled to connect to the second modem module 221 to complete the confirmation of the data card being 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 module 221, the first processing chip needs to be switched back every 28 seconds, that is, the first processing chip is connected to the first modem module 201 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 module 221 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.
The priority of the voice service is set to be higher than that of the data service by setting the priority, so that the normal operation of the voice service can be preferentially ensured in the process of confirming the position of the data card.
According to the above in-place confirmation mechanism, when the first SIM card 250 is connected to the second modem module 221 for data service transmission, the first SIM card 250 may also be connected to the first modem module 201 for voice transmission. It is only necessary to ensure that the first SIM card 250 is in place when confirming in place.
According to the above in-place confirmation mechanism, when the second SIM card 260 is connected to the second modem module 221 for data service transmission, the second SIM card 260 is further connected to the first modem module 201 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 in-place confirmation mechanism, when the first SIM card 250 is connected to the first modem module 201 for data service transmission and voice service, the second SIM card 260 is further connected to the second modem module 221 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 in-place confirmation mechanism, when the second SIM card 260 is connected to the first modem module 201 for data service transmission and voice service, the first SIM card 250 is also connected to the second modem module 221 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.
Further, in order to facilitate the mobile terminal to perform corresponding activities when the USB interface of the first processor 200 is connected to different locations, the present invention sets the first processor 200 in the mobile terminal to different states at the locations where the USB interface of the first processor 100 is connected to different locations, specifically:
the first processor 200 is configured to switch a state of the first processor 200 into a slave device state when the mobile terminal is connected to the upper computer through the first path interface 231; or, when data communication is performed between the first processor 200 and the second processor 210, the state of the first processor 200 is switched to a master device state; or, when the mobile terminal is not connected to the upper computer through the first path interface 231 or data communication is not performed between the first processor 200 and the second processor 210, the state of the first processor 200 is switched to null.
Because the mobile terminal can perform different tasks when the USB interface of the first processor 200 is connected to different locations, for example, when the mobile terminal is used as a slave device of an upper computer in this embodiment, the USB interface of the first processor 200 of the mobile terminal is connected to the upper computer, and cannot perform data communication with the second processor 210, in order to avoid conflict generated during use and make the mobile terminal unable to be used normally, this embodiment will set the first processor 200 in the mobile terminal to different states at different locations where the USB interface of the first processor 100 is connected: the first processor 200 is configured to switch a state of the first processor 200 into a slave device state when the mobile terminal is connected to the upper computer through the first path interface 231; or, when data communication is performed between the first processor 200 and the second processor 210, the state of the first processor 200 is switched to a master device state; or, when the mobile terminal is not connected to the upper computer through the first path interface 231 or data communication is not performed between the first processor 200 and the second processor 210, the state of the first processor 200 is switched to null.
The invention further provides a method for multiplexing the USB interface of the mobile terminal processor.
Referring to fig. 6, in a first embodiment of the method for multiplexing USB interfaces of a mobile terminal processor of the present invention, the method includes:
step S10, when detecting that the mobile terminal is connected with an upper computer, determining whether the mobile terminal is connected with the upper computer through a first path interface or a second path interface;
the embodiment can be implemented based on the circuit structure diagram of fig. 2, and of course, the invention can also be applied to other mobile terminals according to the core idea of the invention, the invention detects whether the mobile terminal is connected to an upper computer through the USB external port 230 in real time, the upper computer includes electronic devices such as a computer and a television which can be externally connected to other devices through USB, when the mobile terminal is connected to the upper computer, the mobile terminal can be regarded as a slave device of the upper computer, except for the case of charging the mobile terminal only when the mobile terminal is connected.
When the mobile terminal is connected to the upper computer through the USB external port 230, it is determined whether the mobile terminal is connected to the upper computer through the first path interface 231 or the second path interface 232. It should be noted that in this embodiment, the first path interface 231 is generally used for performing an operation of viewing and copying a part of contents of the mobile terminal through the upper computer when the user connects the mobile terminal to the upper computer, and an interface used when the user connects the mobile terminal to the upper computer is the first path interface 231. Second way interface 232 is typically an interface that a technician would use to debug the functionality of second processor 210, etc. Of course, the user may also use the first channel interface 231 to perform debugging and other functions.
Step S20, when the mobile terminal is connected with the upper computer through the first path interface, the USB interface in the first processor is connected with the first path interface; or when data communication is carried out between the first processor and the second processor, the USB interface in the first processor is connected to the second processor.
When the control module 220 determines that the mobile terminal is connected to the upper computer through the first path of interface 231, the control module 220 connects the USB interface in the first processor 200 to the first path of interface 231, so that the mobile terminal is connected to the upper computer.
Specifically, referring to fig. 7, when the mobile terminal is connected to the upper computer through the first path of interface, the process of switching the state of the first processor to the state of the slave device includes:
step S21, when the mobile terminal is connected with the upper computer through the first path interface, receiving a switching command triggered by a user;
when the mobile terminal is connected with the upper computer through the first path of interface, the upper computer or a display interface of the mobile terminal can be prompted, for example, whether the mobile terminal is connected with the upper computer or not is detected to be switched. Of course, application scenarios, such as charging only, data transmission with an upper computer, and the like, may also be displayed. A user can select corresponding options on a display interface of the upper computer or the mobile terminal, so that a switching command is generated or not generated, for example, when the user selects switching, the switching command is generated, otherwise, the switching command is not generated; or when the user selects to only charge, the switching command is not generated, otherwise, the switching command is generated.
Step S22, according to the switch command, connect the USB interface in the first processor to the first channel interface.
The mobile terminal receives the switching command triggered by the user, connects the USB interface in the first processor 200 to the first path interface 231, otherwise does not connect the USB interface in the first processor to the first path interface.
If the control module 220 does not detect that the mobile terminal is connected to the upper computer through the first path interface 231, it is determined whether data communication is performed between the first processor 200 and the second processor 210, and it should be specifically noted that the data communication described herein refers to communication performed through a USB data transmission channel of the first processor 200, and is not communication performed through a universal serial port channel between the first processor 200 and the second processor 210, where the universal serial port channel is used for the second processor 210 to send status information to the first processor 200. Communicating data between the first processor 200 and the second processor 210 includes: the first processor 200 sends data to the second processor 210 or the second processor 210 sends data to the first processor 200. If data communication is performed between the first processor 200 and the second processor 210, the USB interface in the first processor 200 is connected to the second processor 210.
If it is detected that the mobile terminal is connected to the upper computer through the second road interface 232, the USB interface controlling the first processor 200 is not connected to the first road interface 231, nor connected to the second processor 210.
When the USB interface of the first processor 200 is connected to the second processor 210, in order to enable the second processor 210 to normally receive the data sent by the first processor 200, a specific voltage is required, where the voltage is greater than the voltage when the second processor 210 operates alone, specifically, in this embodiment, the voltage of the second processor 210 is 5V added to the voltage when the USB interface of the first processor 200 is connected to the second processor 210.
Those skilled in the art will recognize that: the core idea of the present invention is to switch the connection state of the USB interface of the first process in the mobile terminal according to the situation of using the mobile terminal by the user, and the above situations may not be in sequence, that is, it is determined whether to perform data communication between the first processor 200 and the second process 210, or before or simultaneously detecting whether the mobile terminal is connected to the upper computer through the USB external port 230.
In order to ensure normal operation of voice service in specific implementation, priority of voice service may be set to be higher than priority of data service by setting priority. In addition, in the actual use process, when two SIM cards are connected, the first processor 200 and the second processor 210 confirm whether the connected SIM card is in place at regular intervals, and specifically, confirm whether the connected SIM card is in place at intervals of 28 seconds. After confirming whether the connected SIM card is in place, the corresponding SIM card is switched back to the corresponding processor. Because the USB connection state is switched by millisecond and the card reading confirms whether the current use is also millisecond, the priority mode can preferentially ensure the normal operation of the voice service and the SIM card switching can not influence the normal service transmission.
Step S30, when the USB interface in the first processor is connected to the first path interface, switching the state of the first processor to a slave device state; or, when data communication is performed between the first processor and the second processor, the state of the first processor is switched to a master device state; or when the mobile terminal is not connected with the upper computer through the first path of interface or data communication is not carried out between the first processor and the second processor, the state of the first processor is switched to be empty.
Because the mobile terminal can perform different tasks when the USB interface of the first processor 200 is connected to different locations, for example, when the mobile terminal is used as a slave device of an upper computer in this embodiment, the USB interface of the first processor 200 of the mobile terminal is connected to the upper computer, and cannot perform data communication with the second processor 210, in order to avoid conflict generated during use and make the mobile terminal unable to be used normally, this embodiment will set the first processor 200 in the mobile terminal to different states at different locations where the USB interface of the first processor 100 is connected: the first processor 200 is configured to switch a state of the first processor 200 into a slave device state when the mobile terminal is connected to the upper computer through the first path interface 231; or, when data communication is performed between the first processor 200 and the second processor 210, the state of the first processor 200 is switched to a master device state; or, when the mobile terminal is not connected to the upper computer through the first path interface 231 or data communication is not performed between the first processor 200 and the second processor 210, the state of the first processor 200 is switched to null.
The mobile terminal of the present invention, which is applied to multi-channel communication, includes: the mobile terminal comprises a first processor, a second processor, a control module and a USB external port, wherein the USB external port comprises a first path interface and a second path interface, and the control module is used for determining whether the mobile terminal is connected with an upper computer through the first path interface or the second path interface when detecting that the mobile terminal is connected with the upper computer; the control module is also used for connecting a USB interface in the first processor to the first path interface when the mobile terminal is connected with the upper computer through the first path interface; or when data communication is carried out between the first processor and the second processor, the USB interface in the first processor is connected to the second processor. Through the mode, the USB interface of the first processor of the mobile terminal is connected to the USB external port or the second processor according to the use condition of the first processor in the mobile terminal, so that the multiplexing of the USB interface in the processor is realized.
With continuing reference to fig. 6, and with further reference to fig. 4 and 5, the method for multiplexing the USB interface of the mobile terminal processor according to the embodiment includes:
step S10, when detecting that the mobile terminal is connected with an upper computer, determining whether the mobile terminal is connected with the upper computer through a first path interface or a second path interface;
in this embodiment, the mobile terminal is applied to multi-channel communication, and when the invention is applied to multi-channel communication, because the first processor 100 in the mobile terminal has only one USB interface, in order to implement that two SIM cards can simultaneously use dual 4G or dual wifi data communication, instead of using 4G communication for one SIM card and only 3G or 2G communication for the other SIM card in the prior art. The mobile terminal in this embodiment includes:
the system comprises a first processor 200, a second processor 210, a control module 220, a USB external port 230, a first electronic switch S1, a second electronic switch S2, and a slave device power supply module 240, wherein the USB external port 230 comprises a first road interface 231 and a second road interface 232.
In this embodiment, the first electronic switch S1 is respectively connected to the first processor 200, the second processor 210, the control module 220, and the first way interface 231, the first processor 200 is further respectively connected to the control module 220, the slave device power supply module 240, the second electronic switch S2, and the second way interface 232, and the second processor 210 is further respectively connected to the second electronic switch S2, and the second way interface 232. The specific implementation can be connected through other modes according to the core idea of the invention.
Specifically, referring to fig. 5, the first processor 200 in the mobile terminal for multi-channel communication may include: the second processor 210 may include, in the application processing module 202 and the first modem module 201: a second modem module 221, wherein the mobile terminal further includes: the first SIM card 250, the second SIM card 260, the first logic switch 270, the second logic switch 280, the first radio frequency connected to the first modem module 201, and the second radio frequency connected to the second modem module 221. The first modem module 201 and the second modem module 221 may correspond to the mobile communication module 112 in fig. 1.
The first processor 200 is further configured to output a first preset voltage to control the first logic switch 270 to be in a fourth state when a user uses the first SIM card 250 for voice communication, so that the first SIM card 250 is connected to the first modem module 201; 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 the fifth state, so that the second SIM card 260 is connected to the first modem module 201.
In this embodiment, when the user uses the first SIM card 250 for voice communication, the first modem module 201 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 module 201; and when the output level is low, the first SIM card 250 is connected to the second modem module 221. Or when outputting a high level, the second logic switch 280 is turned on, so that the second SIM card 260 is connected to the first modem module 201; and when the output level is low, the second SIM card 260 is connected to the second modem module 221.
In the first embodiment of the present invention, if the first SIM card 250 is connected to the first modem module 201, 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 module 201. Thus, the first SIM card 250 can perform CS voice and PS data services through the first network.
Similarly, if the second SIM card 260 is connected to the first modem module 201, the second SIM card 260 may reside in the PS domain and the CS domain of the first network through the first modem module 201. 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 module 221, the first SIM card 250 may reside in the PS domain of the second network through the second modem module 221. 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 module 221, the second SIM card 260 may reside in the PS domain of the second network through the second modem module 221. 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 module 201 supports PS data service and CS voice service, and the second modem module 221 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 module 221 has the CS voice service, the first modem module 201 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 module 201 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 processing module 202 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 module 201 outputs a first control command to control the first and second logic switches 28070 so that the first SIM card 250 is connected to the first modem module 201. The process of performing the CS voice service through the first SIM card 250 includes:
first, a voice communication connection is established: the application processing module transmits the operation instruction to the first modem module 201, and sends a RRC connection request and other flows 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 modulation and demodulation module 201; the first radio frequency transmits the signal processed by the first modem module 201. The voice downlink transmission process comprises the following steps: the first radio frequency receives the downlink signal and transmits the downlink signal to the first modem module 201; the digital signal processing chip (ADSP) performs audio processing on the signal processed by the first modem module 201 and transmits the signal to a coder-decoder (codec); the coder-decoder performs analog-to-digital conversion on the received signal and then transmits the signal to the receiver.
The application processing module 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 module 201 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 module 201. The process of performing the CS voice service through the second SIM card 260 includes:
first, a voice communication connection is established: the application processing module transmits the operation instruction to the first modem module 201, and sends a RRC connection request and other flows 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 modulation and demodulation module 201; the first radio frequency transmits the signal processed by the first modem module 201. The voice downlink transmission process comprises the following steps: the first radio frequency receives the downlink signal and transmits the downlink signal to the first modem module 201; the digital signal processing chip performs audio processing on the signal processed by the first modulation and demodulation module 201 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 processing module 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 module 201 outputs a first control instruction to control the first logic switch 270 to conduct a connection channel between the first SIM card 250 and the first modem module 201, and also outputs a second control instruction to control the first logic switch 270 to conduct a connection channel between the first SIM card 250 and the second modem module 221, 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 module 201 is conducted, the transmission flow of the PS data service is as follows: the application processing module receives data and transmits the data to the first modulation and demodulation module 201; the first radio frequency transmits the uplink signal processed by the first modem module 201 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 module 201 for processing; the application processing module outputs the downlink signal processed by the first modem module 201.
If the connection channel between the first SIM card 250 and the second modem module 221 is conducted, the transmission flow of the PS data service is as follows: the application processing module receives the data and transmits the data to the second modem module 221; the radio frequency 2 transmits the uplink signal processed by the second modem module 221 to the LTE network, receives the downlink signal from the LTE network, and transmits the downlink signal to the second modem module 221 for processing; the application processing module outputs the downlink signal processed by the second modem module 221.
If the operation instruction is to perform the PS data service through the second SIM card 260, the first modem module 201 may output a first control instruction to control the second logic switch 280 to conduct the connection channel between the second SIM card 260 and the first modem module 201, and may also output a second control instruction to control the second logic switch 280 to conduct the connection channel between the second SIM card 260 and the second modem module 221, 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 module 201 is conducted, the transmission flow of the PS data service is as follows: the application processing module receives data and transmits the data to the first modulation and demodulation module 201; the first radio frequency transmits the uplink signal processed by the first modem module 201 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 module 201 for processing; the application processing module outputs the downlink signal processed by the first modem module 201.
If the connection channel between the second SIM card 260 and the second modem module 221 is conducted, the transmission flow of the PS data service is as follows: the application processing module receives the data and transmits the data to the second modem module 221; the radio frequency 2 transmits the uplink signal processed by the second modem module 221 to a second network (4G network), receives a downlink signal from the second network (4G network), and transmits the downlink signal to the second modem module 221 for processing; the application processing module outputs the downlink signal processed by the second modem module 221.
The control module is further configured to disconnect data communication between the first processor and the second processor when the first electronic switch is in the first state.
The control module 220 is configured to determine whether the mobile terminal is connected to the upper computer through the first road interface 231 or the second road interface 232 when detecting that the mobile terminal is connected to the upper computer.
In this embodiment, the USB external port 230 may be the interface unit 170 in fig. 1, and the first processor 200 may be the controller 180 in fig. 1. The second processor 210 may use a processor of the same type as the first processor 200, or may use a processor with relatively weak processing capability with respect to the first processor 200, in this embodiment, to save cost, the second processor 210 uses a processor with relatively weak processing capability with respect to the first processor 200, and the second processor 210 only has data receiving and transmitting functions, and transmits received data to the first processor 200 for processing.
Control module 220 detects through USB external port 230 in real time whether mobile terminal connects to the host computer through USB external port 230, the host computer includes electronic equipment that can pass through USB external other equipment such as computer, TV, mobile terminal is connected to during the host computer, this mobile terminal can regard as the slave unit of host computer, only right during the connection the mobile terminal charges except.
When the mobile terminal is connected to the upper computer through the USB external port 230, it is determined whether the mobile terminal is connected to the upper computer through the first path interface 231 or the second path interface 232. It should be noted that in this embodiment, the first path interface 231 is generally used for performing an operation of viewing and copying a part of contents of the mobile terminal through the upper computer when the user connects the mobile terminal to the upper computer, and an interface used when the user connects the mobile terminal to the upper computer is the first path interface 231. Second way interface 232 is typically an interface that a technician would use to debug the functionality of second processor 210, etc. Of course, the user may also use the first channel interface 231 to perform debugging and other functions.
Step S20, when the mobile terminal is connected with the upper computer through the first path interface, the USB interface in the first processor is connected with the first path interface; or when data communication is carried out between the first processor and the second processor, the USB interface in the first processor is connected to the second processor.
The first processor 200 is further configured to control the second electronic switch S2 to be closed when the mobile terminal is connected to the upper computer through the second road interface 232, so that the second processor 210 is connected to the upper computer, and control the first electronic switch S1 to be in a third state through the control module 220.
When the control module 220 determines that the mobile terminal is connected to the upper computer through the first channel interface 231, the control module 220 controls the first electronic switch S1 to be in a first state, in this embodiment, the first state is that the first electronic switch S1 is closed to one end of the first channel interface 231, and the USB interface in the first processor 200 is connected to the first channel interface 231, so that the mobile terminal is connected to the upper computer.
Specifically, referring to fig. 7, when the mobile terminal is connected to the upper computer through the first path of interface, the process of switching the state of the first processor to the state of the slave device includes:
step S21, when the mobile terminal is connected with the upper computer through the first path interface, receiving a switching command triggered by a user;
when the mobile terminal is connected with the upper computer through the first path of interface, the upper computer or a display interface of the mobile terminal can be prompted, for example, whether the mobile terminal is connected with the upper computer or not is detected to be switched. Of course, application scenarios, such as charging only, data transmission with an upper computer, and the like, may also be displayed. A user can select corresponding options on a display interface of the upper computer or the mobile terminal, so that a switching command is generated or not generated, for example, when the user selects switching, the switching command is generated, otherwise, the switching command is not generated; or when the user selects to only charge, the switching command is not generated, otherwise, the switching command is generated.
Step S22, according to the switch command, connect the USB interface in the first processor to the first channel interface.
The mobile terminal receives the switching command triggered by the user, and controls the first electronic switch S1 to be in a first state, in this embodiment, the first state is that the first electronic switch S1 is closed to one end of the first channel interface 231, so as to connect the USB interface in the first processor 200 to the first channel interface 231, otherwise, no switching is performed. Of course, the first electronic switch S1 may also be implemented by software.
If the control module 220 does not detect that the mobile terminal is connected to the upper computer through the first path interface 231, it is determined whether data communication is performed between the first processor 200 and the second processor 210, and it should be specifically noted that the data communication described herein refers to communication performed through a USB data transmission channel of the first processor 200, and is not communication performed through a universal serial port channel between the first processor 200 and the second processor 210, where the universal serial port channel is used for the second processor 210 to send status information to the first processor 200. Communicating data between the first processor 200 and the second processor 210 includes: the first processor 200 sends data to the second processor 210 or the second processor 210 sends data to the first processor 200. If data communication is performed between the first processor 200 and the second processor 210, the USB interface in the first processor 200 is connected to the second processor 210. When the data communication is not performed between the first processor 200 and the second processor 210, the first electronic switch S1 is in the second state, in this embodiment, the first electronic switch S1 is closed to one end of the second processor 210, so that the USB interface in the first processor 200 is connected to the second processor 210. When the mobile terminal is not connected with the upper computer through the first path of interface or data communication is not performed between the first processor and the second processor, the first electronic switch is controlled to be in a third state, and the third state is suspended, namely, is not closed.
If it is detected that the mobile terminal is connected to the upper computer through the second road interface 232, the USB interface controlling the first processor 200 is not connected to the first road interface 231, nor connected to the second processor 210.
A slave device power supply module 240, configured to provide a preset voltage for the second processor 210 when data communication is performed between the first processor 200 and the second processor 210; or when the mobile terminal is connected to the upper computer through the second road interface 232, a preset voltage is provided for the second road interface 232.
When the USB interface of the first processor 200 is connected to the second processor 210, in order to enable the second processor 210 to normally receive data sent by the first processor 200, a specific voltage is required, where the voltage is greater than a voltage when the second processor 210 operates alone, specifically, in this embodiment, when the USB interface of the first processor 200 is connected to the second processor 210, the slave device power supply module 240 is controlled to provide a preset voltage for the second processor 210, where the preset voltage may be set according to an actual situation, for example, the preset voltage is 5V; meanwhile, since the second channel interface 232 of the USB external port 230 can normally operate only by an extra voltage when being used normally, the second channel interface 232 is supplied with the preset voltage when the mobile terminal is connected to the upper computer through the second channel interface 232.
Those skilled in the art will recognize that: the core idea of the present invention is to switch the connection state of the USB interface of the first process in the mobile terminal according to the situation of using the mobile terminal by the user, and the above situations may not be in sequence, that is, it is determined whether to perform data communication between the first processor 200 and the second process 210, or before or simultaneously detecting whether the mobile terminal is connected to the upper computer through the USB external port 230.
In order to ensure normal operation of voice service in specific implementation, priority of voice service may be set to be higher than priority of data service by setting priority. In addition, in the actual use process, after the user equipment is started, the communication between the user equipment and the data card is carried out once in 28 seconds so as to confirm whether the data card is in place and ensure the normal communication. The one 28 second communication is controlled by a processing chip connected to the data card, for example, the processing chip sends a null data to the data card, if a response is received, the data card is confirmed to be in place, otherwise the data card is not in place.
The first modem module 201 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 acknowledgement of the data card;
if 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 module 201), and the first SIM card 250 is not connected to the first modem module 201, the first modem module 201 is further configured to issue a first control instruction to control the logic switch 1 to turn on a connection path between the first SIM card 250 and the first modem module 201.
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 module 201), and the second SIM card 260 is not connected to the first modem module 201, the first modem module 201 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 module 221 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 confirmed in place (it is default that the first SIM card 250 should be connected to the second modem module 221), and the first SIM card 250 is not connected to the second modem module 221, the first modem module 201 is further configured to issue a first control instruction to control the logic switch 1 to turn on the connection path between the first SIM card 250 and the second modem module 221.
If 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 module 221), and the second SIM card 260 is not connected to the second modem module 221, the first modem module 201 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 second modem module 221.
For example, if the second SIM card 260 originally connected to the second modem module 221 is switched to connect to the first modem module 201 (for example, to the first modem module 201 for PS data service), the second modem module 221 needs to be switched back every 28 seconds, that is, the logic switch 2 is controlled to connect to the second modem module 221 to complete the confirmation of the data card being 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 module 221, the first processing chip needs to be switched back every 28 seconds, that is, the first processing chip is connected to the first modem module 201 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 module 221 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.
The priority of the voice service is set to be higher than that of the data service by setting the priority, so that the normal operation of the voice service can be preferentially ensured in the process of confirming the position of the data card.
According to the above in-place confirmation mechanism, when the first SIM card 250 is connected to the second modem module 221 for data service transmission, the first SIM card 250 may also be connected to the first modem module 201 for voice transmission. It is only necessary to ensure that the first SIM card 250 is in place when confirming in place.
According to the above in-place confirmation mechanism, when the second SIM card 260 is connected to the second modem module 221 for data service transmission, the second SIM card 260 is further connected to the first modem module 201 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 in-place confirmation mechanism, when the first SIM card 250 is connected to the first modem module 201 for data service transmission and voice service, the second SIM card 260 is further connected to the second modem module 221 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 in-place confirmation mechanism, when the second SIM card 260 is connected to the first modem module 201 for data service transmission and voice service, the first SIM card 250 is also connected to the second modem module 221 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.
Further, in order to facilitate the mobile terminal to perform corresponding activities when the USB interface of the first processor 200 is connected to different locations, the present invention sets the first processor 200 in the mobile terminal to different states at the locations where the USB interface of the first processor 100 is connected to different locations, specifically:
the first processor 200 is configured to switch a state of the first processor 200 into a slave device state when the mobile terminal is connected to the upper computer through the first path interface 231; or, when data communication is performed between the first processor 200 and the second processor 210, the state of the first processor 200 is switched to a master device state; or, when the mobile terminal is not connected to the upper computer through the first path interface 231 or data communication is not performed between the first processor 200 and the second processor 210, the state of the first processor 200 is switched to null.
Because the mobile terminal can perform different tasks when the USB interface of the first processor 200 is connected to different locations, for example, when the mobile terminal is used as a slave device of an upper computer in this embodiment, the USB interface of the first processor 200 of the mobile terminal is connected to the upper computer, and cannot perform data communication with the second processor 210, in order to avoid conflict generated during use and make the mobile terminal unable to be used normally, this embodiment will set the first processor 200 in the mobile terminal to different states at different locations where the USB interface of the first processor 100 is connected: the first processor 200 is configured to switch a state of the first processor 200 into a slave device state when the mobile terminal is connected to the upper computer through the first path interface 231; or, when data communication is performed between the first processor 200 and the second processor 210, the state of the first processor 200 is switched to a master device state; or, when the mobile terminal is not connected to the upper computer through the first path interface 231 or data communication is not performed between the first processor 200 and the second processor 210, the state of the first processor 200 is switched to null.
Step S30, when the USB interface in the first processor is connected to the first path interface, switching the state of the first processor to a slave device state; or, when data communication is performed between the first processor and the second processor, the state of the first processor is switched to a master device state; or when the mobile terminal is not connected with the upper computer through the first path of interface or data communication is not carried out between the first processor and the second processor, the state of the first processor is switched to be empty.
Because the mobile terminal can perform different tasks when the USB interface of the first processor 200 is connected to different locations, for example, when the mobile terminal is used as a slave device of an upper computer in this embodiment, the USB interface of the first processor 200 of the mobile terminal is connected to the upper computer, and cannot perform data communication with the second processor 210, in order to avoid conflict generated during use and make the mobile terminal unable to be used normally, this embodiment will set the first processor 200 in the mobile terminal to different states at different locations where the USB interface of the first processor 100 is connected: the first processor 200 is configured to switch a state of the first processor 200 into a slave device state when the mobile terminal is connected to the upper computer through the first path interface 231; or, when data communication is performed between the first processor 200 and the second processor 210, the state of the first processor 200 is switched to a master device state; or, when the mobile terminal is not connected to the upper computer through the first path interface 231 or data communication is not performed between the first processor 200 and the second processor 210, the state of the first processor 200 is switched to null.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
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 foregoing description, for purposes of explanation, used specific nomenclature to provide a thorough understanding of the invention. However, it will be apparent to one skilled in the art that the specific details are not required in order to practice the invention. The foregoing descriptions of specific embodiments of the present invention have been presented for purposes of illustration and description. They are not intended to be exhaustive or to limit the invention to the precise forms disclosed. Many modifications and variations are possible in light of the above teaching. The embodiments are shown and described in order to best explain the principles of the invention and its practical applications, to thereby enable others skilled in the art to best utilize the invention and various embodiments with various modifications as are suited to the particular use contemplated. It is intended that the scope of the invention be defined by the following claims and their equivalents.

Claims (10)

1. A mobile terminal, wherein the mobile terminal is applied to multi-channel communication, and wherein the mobile terminal comprises:
the system comprises a first processor, a second processor, a control module and a USB external port, wherein the USB external port comprises a first path of interface and a second path of interface,
the control module is used for determining whether the mobile terminal is connected with the upper computer through the first path of interface or the second path of interface when detecting that the mobile terminal is connected with the upper computer;
the control module is also used for connecting a USB interface in the first processor to the first path interface when the mobile terminal is connected with the upper computer through the first path interface; or when data communication is carried out between the first processor and the second processor, the USB interface in the first processor is connected to the second processor.
2. The mobile terminal of claim 1, wherein the control module comprises:
the receiving unit is used for receiving a switching command triggered by a user when the mobile terminal is connected with the upper computer through the first path of interface;
and the switching unit is used for connecting the USB interface in the first processor to the first path interface according to the switching command.
3. The mobile terminal of claim 2,
the first processor is used for switching the state of the first processor into a slave device state when a USB interface in the first processor is connected to the first path interface; or,
switching the state of the first processor to a master state when data communication is performed between the first processor and the second processor; or,
and when the USB interface in the first processor is not connected to the first path interface or data communication is not carried out between the first processor and the second processor, switching the state of the first processor to be null.
4. The mobile terminal of claim 1, wherein the mobile terminal further comprises:
a first electronic switch which is connected with the power supply,
the control module is further used for controlling the first electronic switch to be in a first state when the mobile terminal is connected with the upper computer through a first path of interface, so that a USB interface in the first processor is connected to the first path of interface; or when data communication is carried out between the first processor and the second processor, the first electronic switch is in a second state, so that the USB interface in the first processor is connected to the second processor; or when the mobile terminal is not connected with the upper computer through the first path of interface or data communication is not carried out between the first processor and the second processor, the first electronic switch is controlled to be in a third state.
5. The mobile terminal of claim 4, wherein the mobile terminal further comprises:
a second electronic switch connected between the second processor and the USB external port,
the first processor is further used for controlling the second electronic switch to be closed when the mobile terminal is connected with the upper computer through the second path of interface, so that the second processor is connected with the upper computer, and the first electronic switch is controlled to be in a third state through the control module.
6. The mobile terminal of claim 4, wherein the first processor comprises a first modem module and an application processing module, and wherein the second processor comprises a second modem module, the mobile terminal further comprising:
a first subscriber identity module, a second subscriber identity module, a first logic switch and a second logic switch,
the first processor is further used for outputting a first preset voltage to control the first logic switch to be in a fourth state when a user uses a first subscriber identity card for voice communication, so that the first subscriber identity card is connected to the first modulation and demodulation module; or when the user uses a second user identification card to carry out voice communication, outputting a second preset voltage to control the second logic switch to be in a fifth state, so that the second user identification card is connected to the first modulation and demodulation module;
the control module is further configured to disconnect data communication between the first processor and the second processor when the first electronic switch is in the first state.
7. The mobile terminal of claim 1, wherein the mobile terminal further comprises:
the slave equipment power supply module is used for providing preset voltage for the second processor when data communication is carried out between the first processor and the second processor; or when the mobile terminal is connected with the upper computer through the second interface, providing preset voltage for the second interface.
8. A method for multiplexing USB interfaces of a mobile terminal processor is characterized in that the method is applied to a mobile terminal for multi-channel communication, and comprises the following steps:
when the mobile terminal is detected to be connected with an upper computer, determining whether the mobile terminal is connected with the upper computer through a first path of interface or a second path of interface;
when the mobile terminal is connected with the upper computer through the first path of interface, the USB interface in the first processor is connected to the first path of interface; or when data communication is carried out between the first processor and the second processor, the USB interface in the first processor is connected to the second processor.
9. The method of claim 8, wherein the step of switching the state of the first processor to a slave device state when the mobile terminal is connected to the upper computer through the first path interface comprises:
when the mobile terminal is connected with the upper computer through the first path of interface, receiving a switching command triggered by a user;
and connecting the USB interface in the first processor to the first path interface according to the switching command.
10. The method of claim 9, wherein the method further comprises:
when a USB interface in the first processor is connected to the first path interface, switching the state of the first processor into a slave device state; or,
switching the state of the first processor to a master state when data communication is performed between the first processor and the second processor; or,
and when the mobile terminal is not connected with the upper computer through the first path of interface or data communication is not carried out between the first processor and the second processor, the state of the first processor is switched to be null.
CN201610059714.9A 2016-01-28 2016-01-28 The method that the USB interface of mobile terminal and its processor is multiplexed Active CN105718405B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610059714.9A CN105718405B (en) 2016-01-28 2016-01-28 The method that the USB interface of mobile terminal and its processor is multiplexed
PCT/CN2016/096401 WO2017128708A1 (en) 2016-01-28 2016-08-23 Mobile terminal, method for multiplexing usb interface, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610059714.9A CN105718405B (en) 2016-01-28 2016-01-28 The method that the USB interface of mobile terminal and its processor is multiplexed

Publications (2)

Publication Number Publication Date
CN105718405A true CN105718405A (en) 2016-06-29
CN105718405B CN105718405B (en) 2018-11-02

Family

ID=56155203

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610059714.9A Active CN105718405B (en) 2016-01-28 2016-01-28 The method that the USB interface of mobile terminal and its processor is multiplexed

Country Status (2)

Country Link
CN (1) CN105718405B (en)
WO (1) WO2017128708A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017128708A1 (en) * 2016-01-28 2017-08-03 努比亚技术有限公司 Mobile terminal, method for multiplexing usb interface, and storage medium
CN107094316A (en) * 2017-03-30 2017-08-25 努比亚技术有限公司 Mobile terminal and its data transmission method
CN107766272A (en) * 2017-09-28 2018-03-06 歌尔科技有限公司 Wear display device and wear the control method of display device
CN109947556A (en) * 2017-12-21 2019-06-28 北京比特大陆科技有限公司 Method for allocating tasks
CN114371385A (en) * 2021-12-23 2022-04-19 中国电子科技集团公司第五十八研究所 Design method of port multiplexing test circuit

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110502381B (en) * 2019-08-19 2023-09-19 惠州Tcl移动通信有限公司 Mobile terminal, serial port debugging method thereof and computer readable medium
CN112328175A (en) * 2020-11-03 2021-02-05 中电科特种飞机系统工程有限公司 Device for reading flight control data

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US972621A (en) * 1910-01-24 1910-10-11 William A Hutchison Ice-cream cutter.
TWI295885B (en) * 2002-06-03 2008-04-11 Action Star Entpr Co Ltd Ubs sharer for use with an usb device
CN101668350A (en) * 2008-09-01 2010-03-10 联想(北京)有限公司 Mobile-terminal state-switching method and mobile terminal
CN101765243A (en) * 2009-12-16 2010-06-30 中兴通讯股份有限公司 CDMA and GSM bimodule digital mobile communication terminal
CN101932138A (en) * 2009-06-23 2010-12-29 Lg电子株式会社 Duplex MODEM and control method thereof
CN203167074U (en) * 2013-01-11 2013-08-28 青岛海信移动通信技术股份有限公司 Mobile terminal configured with reuse interface
CN203643893U (en) * 2013-11-01 2014-06-11 北京壹人壹本信息科技有限公司 Terminal equipment
US8972621B1 (en) * 2011-09-28 2015-03-03 Cypress Semiconductor Corporation Methods, systems, and physical computer-readable media for multiplexing a single end-point memory structure between USB interfaces
CN105227702A (en) * 2015-05-28 2016-01-06 盛耀无线通讯科技(北京)有限公司 A kind of bilateral cell phone platform USB socket

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080109587A1 (en) * 2006-11-02 2008-05-08 Motorola, Inc. Switch control of usb transceiver between a plurality of processors
CN201359725Y (en) * 2009-01-21 2009-12-09 青岛海信移动通信技术股份有限公司 USB interface circuit and portable hand-held device provided with the circuit
CN101710313B (en) * 2009-11-23 2011-12-28 中兴通讯股份有限公司 Dynamically configurable USB port multiplexing method, system and device
US10515040B2 (en) * 2013-09-11 2019-12-24 Lenovo (Singapore) Pte. Ltd. Data bus host and controller switch
CN203658996U (en) * 2014-01-16 2014-06-18 青岛海信移动通信技术股份有限公司 Chip interface multiplex circuit and mobile terminal
CN105718405B (en) * 2016-01-28 2018-11-02 努比亚技术有限公司 The method that the USB interface of mobile terminal and its processor is multiplexed

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US972621A (en) * 1910-01-24 1910-10-11 William A Hutchison Ice-cream cutter.
TWI295885B (en) * 2002-06-03 2008-04-11 Action Star Entpr Co Ltd Ubs sharer for use with an usb device
CN101668350A (en) * 2008-09-01 2010-03-10 联想(北京)有限公司 Mobile-terminal state-switching method and mobile terminal
CN101932138A (en) * 2009-06-23 2010-12-29 Lg电子株式会社 Duplex MODEM and control method thereof
CN101765243A (en) * 2009-12-16 2010-06-30 中兴通讯股份有限公司 CDMA and GSM bimodule digital mobile communication terminal
US8972621B1 (en) * 2011-09-28 2015-03-03 Cypress Semiconductor Corporation Methods, systems, and physical computer-readable media for multiplexing a single end-point memory structure between USB interfaces
CN203167074U (en) * 2013-01-11 2013-08-28 青岛海信移动通信技术股份有限公司 Mobile terminal configured with reuse interface
CN203643893U (en) * 2013-11-01 2014-06-11 北京壹人壹本信息科技有限公司 Terminal equipment
CN105227702A (en) * 2015-05-28 2016-01-06 盛耀无线通讯科技(北京)有限公司 A kind of bilateral cell phone platform USB socket

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017128708A1 (en) * 2016-01-28 2017-08-03 努比亚技术有限公司 Mobile terminal, method for multiplexing usb interface, and storage medium
CN107094316A (en) * 2017-03-30 2017-08-25 努比亚技术有限公司 Mobile terminal and its data transmission method
CN107094316B (en) * 2017-03-30 2020-07-14 山东和同信息科技股份有限公司 Mobile terminal and data transmission method thereof
CN107766272A (en) * 2017-09-28 2018-03-06 歌尔科技有限公司 Wear display device and wear the control method of display device
CN109947556A (en) * 2017-12-21 2019-06-28 北京比特大陆科技有限公司 Method for allocating tasks
CN114371385A (en) * 2021-12-23 2022-04-19 中国电子科技集团公司第五十八研究所 Design method of port multiplexing test circuit

Also Published As

Publication number Publication date
CN105718405B (en) 2018-11-02
WO2017128708A1 (en) 2017-08-03

Similar Documents

Publication Publication Date Title
CN105653486B (en) The method that the USB interface of mobile terminal and its processor is multiplexed
CN105718405B (en) The method that the USB interface of mobile terminal and its processor is multiplexed
CN106413128B (en) Projection method and mobile terminal
US10237901B2 (en) Method and apparatus for connecting with controlled smart device, and storage medium
CN105682191B (en) Mobile terminal and Wi-Fi control method
CN105722059B (en) Mobile terminal and communication method of dual-modem system
EP2437463B1 (en) Apparatus and method for providing service in service zone
CN106210328B (en) Information display device and method
CN106131815A (en) Mobile terminal and the method realizing data service switching
CN104980588B (en) A kind of method and apparatus for detecting mobile terminal state
CN109101447B (en) Method and terminal for parallel execution of OTG function and charging function
JP2016534624A (en) Wireless LAN automatic connection method, wireless LAN automatic connection device, program, and recording medium
CN106020482A (en) Control method, virtual reality device and mobile terminal
CN106507422B (en) Mobile terminal and network switching method
CN105744646B (en) A kind of mobile terminal and communication means
CN106375840A (en) Screen projection device, mobile terminal and screen projection connection method
CN105682083B (en) A kind of communication means of mobile terminal and duplex MODEM system
CN107682541B (en) Audio control method for screen projection, mobile terminal and storage medium
CN106412316A (en) Media resource playing control device and method
CN108401081B (en) VOLTE network performance test method and device
CN105722246B (en) Network speed superposition device and method
CN106878976B (en) Mobile terminal and data sharing method of dual systems
CN105657691B (en) Mobile terminal and data sharing method of double-chip system thereof
CN105516972A (en) Network connection method and device
CN105898183A (en) Method for controlling video call and mobile terminal

Legal Events

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