WO2017128708A1 - Mobile terminal, method for multiplexing usb interface, and storage medium - Google Patents

Mobile terminal, method for multiplexing usb interface, and storage medium Download PDF

Info

Publication number
WO2017128708A1
WO2017128708A1 PCT/CN2016/096401 CN2016096401W WO2017128708A1 WO 2017128708 A1 WO2017128708 A1 WO 2017128708A1 CN 2016096401 W CN2016096401 W CN 2016096401W WO 2017128708 A1 WO2017128708 A1 WO 2017128708A1
Authority
WO
WIPO (PCT)
Prior art keywords
processor
mobile terminal
interface
upper computer
state
Prior art date
Application number
PCT/CN2016/096401
Other languages
French (fr)
Chinese (zh)
Inventor
薛晓君
Original Assignee
努比亚技术有限公司
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 努比亚技术有限公司 filed Critical 努比亚技术有限公司
Publication of WO2017128708A1 publication Critical patent/WO2017128708A1/en

Links

Images

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
    • 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
    • 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

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method and a storage medium for multiplexing a mobile terminal and a USB interface.
  • the main processor has only one set of USB interfaces.
  • the USB interface needs to maintain communication with the secondary processor.
  • the USB interface also needs to communicate with devices such as computers. Since the mobile terminal has only one USB interface in the processor, it is inconvenient to use.
  • the main purpose of the embodiments of the present invention is to provide a method for multiplexing a USB interface of a mobile terminal and a processor thereof, and a storage medium, which is intended to implement multiplexing of a USB interface in the processor.
  • a mobile terminal is provided in the embodiment of the present invention, where the mobile terminal is applied to multi-channel communication, and the mobile terminal includes:
  • USB external port includes a first interface and a second interface.
  • the control module is configured to determine, when the mobile terminal is connected to the upper computer, whether the mobile terminal is connected to the upper computer through the first interface or the second interface;
  • the control module is further configured to connect the USB interface in the first processor to the first way interface when the mobile terminal connects to the upper computer through the first way interface; or in the When the data communication is performed between the first processor and the second processor, the USB interface in the first processor is connected to the second processor.
  • the first interface is configured as an interface used when connecting the mobile terminal to the upper computer; and/or,
  • the second interface is configured as an interface used when debugging the second processor.
  • control module is further configured to determine whether data communication is performed between the first processor and the second process when the mobile terminal is not connected to the upper computer through the first path interface.
  • control module is further configured to: when detecting that the mobile terminal is connected to the upper computer through the second interface, control the USB interface of the first processor not to be connected to the first interface, nor Connect to the second processor.
  • control module includes:
  • a receiving unit configured to receive a user-triggered switching command when the mobile terminal connects to the upper computer through the first path interface
  • a switching unit configured to connect the USB interface in the first processor to the first path interface according to the switching command.
  • the first processor is configured to switch the state of the first processor to a slave device state when a USB interface in the first processor is connected to the first path interface;
  • the first processor is not connected to the first interface or the data is not communicated between the first processor and the second processor
  • the state is switched to empty.
  • the mobile terminal further includes:
  • the first electronic switch is the first electronic switch
  • the control module is further configured to connect to the mobile terminal by using a first path interface And controlling, in the first state, the first electronic switch to be in a first state, such that a USB interface in the first processor is connected to the first way interface; or in the first processor and the second Performing data communication between the processors, placing the first electronic switch in a second state, such that a USB interface in the first processor is connected to the second processor; or failing in the mobile terminal
  • the first interface is connected to the upper computer or the first electronic switch is controlled to be in a third state when no data communication is performed between the first processor and the second processor.
  • the mobile terminal further includes:
  • the first processor is further configured to control the second electronic switch to be closed when the mobile terminal is connected to the upper computer through the second interface, so that the second processor and the upper computer Connecting, and controlling, by the control module, the first electronic switch to be in a third state.
  • the mobile terminal further includes:
  • a first user identification card a second user identification card, a first logic switch, and a second logic switch
  • the first processor is further configured to output a first preset voltage to control the first logic switch to be in a fourth state when the user performs voice communication using the first user identification card, so that the first user identification card is connected.
  • a first preset voltage to control the first logic switch to be in a fourth state when the user performs voice communication using the first user identification card, so that the first user identification card is connected.
  • the control module is further configured to disconnect data communication between the first processor and the second process when the first electronic switch is in a first state.
  • the mobile terminal further includes:
  • a slave device power supply module configured to provide a preset voltage to the second processor when data communication is performed between the first processor and the second processor; or connect the mobile terminal through a second interface When the upper computer is in use, a preset voltage is provided for the second interface.
  • an embodiment of the present invention further provides a mobile terminal processor.
  • a method for multiplexing a USB interface the method being applied to a mobile terminal for multi-channel communication, the method comprising:
  • USB interface in the first processor Connecting the USB interface in the first processor to the first path interface when the mobile terminal connects to the upper computer through the first path interface; or in the first processor and the When data communication is performed between the second processors, the USB interface in the first processor is connected to the second processor.
  • the method further includes:
  • the method further includes:
  • the USB interface controlling the first processor is not connected to the first interface, nor is connected to the second processor.
  • the step of switching the state of the first processor to the slave device state includes:
  • the mobile terminal further includes: a first electronic switch; correspondingly, the method further includes:
  • the mobile terminal further includes: a second electronic switch connected between the second processor and the USB external port; correspondingly, the method further includes:
  • the first electronic switch is in a third state.
  • the first processor includes a first modem module and an application processing module
  • the second processor includes a second modem module
  • the mobile terminal further includes: a first subscriber identity card, The second user identification card, the first logic switch, and the second logic switch; correspondingly, the method further includes:
  • the method further includes:
  • the second interface provides a preset voltage.
  • an embodiment of the present invention further provides a first computer storage medium, where the computer storage medium stores a computer program, where the computer program is used to execute the USB interface of the mobile terminal processor described above. The method used.
  • the mobile terminal is applied to multi-channel communication, and includes: a first processor, a second processor, a control module, and a USB external port, wherein the USB external port includes a first interface and a second interface.
  • the control module is configured to: when detecting that the mobile terminal is connected to the upper computer, determine whether the mobile terminal is connected to the upper computer through the first interface or the second interface; the control The module is further configured to connect the USB interface in the first processor to the first path interface when the mobile terminal connects to the upper computer through the first path interface; or in the first process When data communication is performed between the device and the second processor, a USB interface in the first processor is connected to the second processor.
  • the embodiment of the present invention connects the USB interface of the first processor of the mobile terminal to the USB external port or the second processor according to the usage of the first processor in the mobile terminal, thereby implementing the USB interface in the processor. Reuse.
  • FIG. 1 is a schematic structural diagram of hardware of a preferred mobile terminal for implementing various embodiments of the present invention
  • FIG. 2 is a schematic structural diagram of a first embodiment of a mobile terminal according to the present invention.
  • FIG. 3 is a schematic diagram of a functional module of a control module according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a second embodiment of a mobile terminal according to the present invention.
  • FIG. 5 is a schematic structural diagram of a multi-channel communication mobile terminal according to an embodiment of the present invention.
  • FIG. 6 is a schematic flowchart of a first embodiment of a method for multiplexing a USB interface of a mobile terminal processor according to the present invention
  • FIG. 7 is a refinement flow diagram of switching the state of the first processor to the state of the slave device when the mobile terminal connects to the upper computer through the first path interface according to an embodiment of the present invention.
  • the mobile terminal can be implemented in various forms.
  • the terminal described in the present invention may include, for example, a mobile phone, a smart phone, a notebook computer, a digital broadcast receiver, a PDA (Personal Digital Assistant), a PAD (Tablet), a PMP (Portable Multimedia Player), a navigation device, etc.
  • Mobile terminals and fixed terminals such as digital TVs, desktop computers, and the like.
  • the terminal is a mobile terminal.
  • those skilled in the art will appreciate that configurations in accordance with embodiments of the present invention can be applied to fixed type terminals in addition to components that are specifically for mobile purposes.
  • FIG. 1 is a schematic diagram showing the hardware structure of a mobile terminal that implements 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, a power supply unit 190, and the like.
  • Figure 1 shows a mobile terminal with various components, but it should be understood that It is not required to implement all of the illustrated components. More or fewer components can be implemented instead. The elements of the mobile terminal will be described in detail below.
  • Wireless communication unit 110 typically includes one or more components that permit radio communication between mobile terminal 100 and a wireless communication system or network.
  • the wireless communication unit can include at least one of the mobile communication module 112 and the wireless internet module 113.
  • the mobile communication module 112 transmits the radio signals to and/or receives radio signals from at least one of a base station (e.g., an access point, a Node B, etc.), an external terminal, and a server.
  • a base station e.g., an access point, a Node B, etc.
  • Such radio signals may include voice call signals, video call signals, or various types of data transmitted and/or received in accordance with text and/or multimedia messages.
  • the wireless internet module 113 supports wireless internet access of the mobile terminal.
  • the module can be internally or externally coupled to the terminal.
  • the wireless Internet access technologies involved in the module may include WLAN (Wireless LAN) (Wi-Fi), Wibro (Wireless Broadband), Wimax (Worldwide Interoperability for Microwave Access), HSDPA (High Speed Downlink Packet Access), etc. .
  • the A/V input unit 120 is configured to receive an audio or video signal.
  • the A/V input unit 120 may include a microphone 122 that can receive sound (audio data) via a microphone in an operation mode of a telephone call mode, a recording mode, a voice recognition mode, and the like, and can process such sound as audio data.
  • the processed audio (voice) data can be converted to a format output that can be transmitted to the mobile communication base station via the mobile communication module 112 in the case of a telephone call mode.
  • the microphone 122 can implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated during the process of receiving and transmitting audio signals.
  • the user input unit 130 may generate key input data according to a command input by the user to control various operations of the mobile terminal.
  • the user input unit 130 allows the user to input various types of information, and may include a keyboard, a pot, a touch pad (eg, a touch sensitive component that detects changes in resistance, pressure, capacitance, etc. due to contact), a scroll wheel , rocker, etc.
  • a touch screen can be formed.
  • the interface unit 170 serves as an interface through which at least one external device can connect with the mobile terminal 100.
  • the external device may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port configured to connect a device having an identification module, audio input/output (I/O) port, video I/O port, headphone port, and more.
  • the identification module may be stored to verify various information used by the user using the mobile terminal 100 and may include a User Identification Module (UIM), a Customer Identification Module (SIM), a Universal Customer Identity Module (USIM), and the like.
  • the device having the identification module may take the form of a smart card, and thus the identification device may be connected to the mobile terminal 100 via a port or other connection device.
  • the interface unit 170 can be configured to receive input (eg, data information, power, etc.) from an external device and transmit the received input to one or more components within the mobile terminal 100 or can be used at the mobile terminal and external device Transfer data between.
  • the interface unit 170 may function as a path through which power is supplied from the base to the mobile terminal 100 or may be used as a transmission of various command signals allowing input from the base to the mobile terminal 100 The path to the terminal.
  • Various command signals or power input from the base can be used as signals for identifying whether the mobile terminal is accurately mounted on the base.
  • Output unit 150 is configured to provide an output signal (eg, an audio signal, a video signal, an alarm signal, a vibration signal, 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 can 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 can display a user interface (UI) or a graphical user interface (GUI) related to a call or other communication (eg, text messaging, multimedia file download, 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 image and related functions, and the like.
  • UI user interface
  • GUI graphical user interface
  • the display unit 151 can be used 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.
  • LCD liquid crystal display
  • TFT-LCD thin film transistor LCD
  • OLED organic light emitting diode
  • a flexible display a three-dimensional (3D) display, and the like.
  • 3D three-dimensional
  • 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 a transparent display, and a typical transparent display may be, for example, a TOLED (Transparent Organic Light Emitting Diode) display or the like.
  • TOLED Transparent Organic Light Emitting Diode
  • 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 can be used to detect touch input pressure as well as touch input position and 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 when the mobile terminal is in a call signal receiving mode, a call mode, a recording mode, a voice recognition mode, a broadcast receiving mode, and the like.
  • the audio signal is output as sound.
  • the audio output module 152 can provide audio output (eg, call signal reception sound, message reception sound, etc.) associated with a particular function performed by the mobile terminal 100.
  • the audio output module 152 can include a speaker, a buzzer, and the like.
  • the memory 160 may store a software program or the like for processing and control operations performed by the controller 180, or may temporarily store data (for example, a phone book, a message, a still image, a video, etc.) that has been output or is to be output. Moreover, the memory 160 can store data regarding vibrations and audio signals of various manners that are 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 (eg, SD or DX memory, etc.), a random access memory (RAM), a static random access memory (SRAM). , read only memory (ROM), electrically erasable programmable read only memory (EEPROM), programmable read only memory (PROM), magnetic memory, magnetic disk, optical disk, and the like.
  • the mobile terminal 100 can cooperate with a network storage device that performs a storage function of the memory 160 through a network connection.
  • the controller 180 typically controls the overall operation of the mobile terminal. For example, the controller 180 executes the language Control and processing related to audio calls, data communications, video calls, etc.
  • 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 under the control of the controller 180 and provides appropriate power required to operate the various components and components.
  • the various embodiments described herein can be implemented in a computer readable medium using, for example, computer software, hardware, or any combination thereof.
  • the embodiments described herein may be through the use of application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays ( An FPGA, a processor, a controller, a microcontroller, a microprocessor, at least one of the electronic units designed to perform the functions described herein, in some cases, such an embodiment may be at the controller 180 Implemented in the middle.
  • implementations such as procedures or functions may be implemented with separate software modules that permit the execution of at least one function or operation.
  • the software code can be implemented by a software application (or program) written in any suitable programming language, which can be stored in memory 160 and executed by
  • the mobile terminal has been described in terms of its function.
  • a slide type mobile terminal among various types of mobile terminals such as a folding type, a bar type, a swing type, a slide type mobile terminal, and the like will be described as an example. Therefore, 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 using a communication system such as a wired and wireless communication system and a satellite-based communication system that transmits data via frames or packets.
  • a communication system such as a wired and wireless communication system and a satellite-based communication system that transmits data via frames or packets.
  • FIG. 2 is a schematic structural diagram of a first embodiment of a mobile terminal according to the present invention.
  • the mobile terminal is applied to multi-channel communication
  • the embodiment of the present invention since the first processor 100 in the mobile terminal has only one USB interface, it should be understood that the user identification card in the embodiment of the present invention uses the SIM card as an explanation, so that two SIM cards can be implemented.
  • dual 4G or dual wifi data communication is used instead of one SIM card in the prior art using 4G communication, and the other SIM card can only use 3G or 2G communication.
  • the first processor 200 is connected to the second processor 210, the control module 220, and the first interface 231, and the second processor 210 is also connected to the second interface 232.
  • the core idea of the embodiment of the present invention may be connected by other means.
  • the control module 220 is configured to determine, when the mobile terminal is connected to the upper computer, whether the mobile terminal is connected to the upper computer through the first interface 231 or the second interface 232.
  • the USB external port 230 in this embodiment may be the interface unit 170 in FIG. 1
  • the first processor 200 may be the controller 180 in FIG. 1
  • the second processor 210 may use the same type of processor as the first processor 200, or may be a processor with a relatively weak processing capability relative to the first processor 200. In this embodiment, the second processor 210 uses a relative cost.
  • the first processor 200 has a processor with weak processing capability
  • the second processor 210 has only data receiving and transmitting functions, and the received data is sent to the first processor 200 for processing.
  • the control module 220 detects, in real time, whether the mobile terminal is connected to the upper computer through the USB external port 230 through the USB external port 230.
  • the upper computer includes an electronic device such as a computer or a television that can externally connect other devices through the USB, and the mobile terminal is connected to the mobile terminal.
  • the mobile terminal can be regarded as a slave device of the upper computer, except for the case where only the mobile terminal is charged when connected.
  • the mobile terminal When it is detected that the mobile terminal is connected to the upper computer through the USB external port 230, it is determined The mobile terminal is connected to the upper computer through the first interface 231 or the second interface 232.
  • the first path interface 231 is generally configured to perform an operation of viewing and copying part of the content of the mobile terminal by using a host computer when the user externally connects the mobile terminal to the upper computer.
  • the interface used when connecting the mobile terminal to the upper computer is the first interface 231.
  • the second interface 232 is typically an interface that a technician uses when debugging functions such as the second processor 210. Of course, the user can also use the first interface 231 for debugging and other functions.
  • the control module 220 is further configured to connect the USB interface in the first processor 200 to the first interface 231 when the mobile terminal is connected to the upper computer through the first 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.
  • control module 220 determines that the mobile terminal is connected to the upper computer through the first path interface 231, the control module 220 connects the USB interface in the first processor 200 to the first path interface 231, thereby The mobile terminal is connected to the upper computer.
  • control module 220 includes:
  • the receiving unit 221 is configured to receive a user-triggered switching command when the mobile terminal connects to the upper computer through the first path interface.
  • the display may be prompted on the display interface of the upper computer or the mobile terminal, for example, detecting whether the mobile terminal is connected to the upper computer and whether to perform switching.
  • application scenarios such as charging only, data transmission with the host computer, and the like.
  • the user may select a corresponding option on the display interface of the upper computer or the mobile terminal, so as to generate or not generate a handover command, for example, when the user selects the handover, a handover command is generated, otherwise the handover command is not generated; or the user selects only the handover command.
  • No switching command is generated, otherwise a switching command is generated.
  • the switching unit 222 is configured to connect the USB interface in the first processor to the first path interface according to the switching command.
  • 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 process 210, which requires special explanation.
  • the data communication referred to herein refers to communication through the USB data transmission channel of the first processor 200, and the first processor 200 and the second processing 210 do not communicate through a universal serial port.
  • the serial channel is configured to transmit status information to the first processor 200 by the second process 210.
  • Performing data communication between the first processor 200 and the second processor 210 includes: the first processor 200 transmitting data to the second processor 210, or the second processor 210 transmitting the data to the first processor 200 data. 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.
  • the USB interface that controls the first processor 200 is not connected to the first interface 231, nor to the second processor. 210.
  • the USB interface of the first processor 200 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, it needs a specific voltage, and the voltage is greater than the second.
  • the voltage of the processor 210 when it is operated alone, specifically, when the voltage of the second processor 210 is connected to the second processor 210 when the USB interface of the first processor 200 is connected to the second processor 210 in this embodiment.
  • the voltage is increased by 5V.
  • the connection state of the USB interface of the first process in the mobile terminal is switched, and the above situation may be determined in any order, that is, whether data communication between the first processor 200 and the second process 210 is performed. It can also be performed before detecting whether the mobile terminal is connected to the upper computer through the USB external port 230, or simultaneously.
  • the priority of the voice service may be set to be higher than the priority of the data service by setting a priority.
  • the first processor 200 and the second processor 210 confirm whether the connected SIM card is in place at regular intervals, specifically, every 28 seconds. Is the connected SIM card in place? After confirming whether the connected SIM card is in place, the corresponding SIM card will switch back to the corresponding processor. Because the USB connection state switching time is in milliseconds, and the time for reading the card to confirm whether it is in place is also in milliseconds. Therefore, setting the priority mode can ensure the normal operation of the voice service, and the switching of the SIM card does not affect the normal. Business transmission.
  • the embodiment of the present invention connects the mobile terminal in a different location of the USB interface of the first processor 100.
  • the first processor 200 sets different states, specifically:
  • the first processor 200 is configured to switch the state of the first processor 200 to a slave device state when the mobile terminal connects to the upper computer through the first path interface 231; or, in the first When the data communication between the processor 200 and the second processor 210 is performed, the state of the first processor 200 is switched to a master device state; or, the mobile terminal is not connected through the first path interface 231. When the upper computer does not perform data communication between the first processor 200 and the second processor 210, the state of the first processor 200 is switched to null.
  • the mobile terminal can perform different tasks when the USB interface of the first processor 200 is connected to different locations, such as the slave device of the host computer in the embodiment, the USB interface of the first processor 200 of the mobile terminal Connected to the host computer, can not be connected to the second processor 210 performs data communication, and the mobile terminal is not used normally in order to avoid conflicts in use.
  • the first processor 200 of the mobile terminal is set differently at a different location of the USB interface of the first processor 100.
  • the first processor 200 is configured to switch the state of the first processor 200 to a slave device state when the mobile terminal connects to the upper computer through the first path interface 231; or When the first processor 200 and the second processor 210 perform data communication, the state of the first processor 200 is switched to a master device state; or, the mobile terminal does not pass the first path.
  • the interface 231 is connected to the upper computer or when the data communication between the first processor 200 and the second processor 210 is not performed, the state of the first processor 200 is switched to null.
  • the mobile terminal is applied to multi-channel communication, and includes: a first processor, a second processor, a control module, and a USB external port, wherein the USB external port includes a first interface and a second interface.
  • the control module is configured to: when detecting that the mobile terminal is connected to the upper computer, determine whether the mobile terminal is connected to the upper computer through the first interface or the second interface; the control The module is further configured to connect the USB interface in the first processor to the first path interface when the mobile terminal connects to the upper computer through the first path interface; or in the first process When data communication is performed between the device and the second processor, a USB interface in the first processor is connected to the second processor.
  • the embodiment of the present invention connects the USB interface of the first processor of the mobile terminal to the USB external port or the second processor according to the usage of the first processor in the mobile terminal, thereby implementing the USB interface in the processor. Reuse.
  • FIG. 3 is a schematic structural diagram of a second embodiment of a mobile terminal according to the present invention.
  • the mobile terminal is applied to multi-channel communication.
  • the embodiment of the present invention since the first processor 100 in the mobile terminal has only one USB interface, two SIM cards can be used simultaneously. 4G or dual wifi data communication, instead of one SIM card using 4G communication in the prior art, and another SIM card can only use 3G or 2G communication.
  • Ben The mobile terminal in the embodiment includes:
  • the first electronic switch S1 is connected to the first processor 200, the second processor 210, the control module 220, and the first interface 231, and the first processor 200 is further connected to the control module 220 and the slave device power supply module 240, respectively.
  • the second electronic switch S2 is connected to the second interface 232, and the second processor 210 is also connected to the second electronic switch S2 and the second interface 232, respectively.
  • the core idea of the embodiment of the present invention may be connected by other means.
  • the first processor 200 in the mobile terminal for multi-channel communication may include: an application processing module 202 and a first modem module 201, where the second processor 210 may include: a second modulation solution
  • the module 221 further includes: a first SIM card 250, a second SIM card 260, a first logic switch 270, and a second logic switch 280, and a first radio frequency connected to the first modem module 201, A second radio frequency connected to the second modem module 221.
  • the first modem module 201 and the second modem module 221 may be equivalent to the mobile communication module 112 of FIG.
  • 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 the user performs voice communication using the first SIM card 250, 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, outputting a second preset voltage to control the second logic switch 280 to be in a fifth state, so that the The second SIM card 260 is connected to the first modem module 201.
  • the first modem module 201 controls the first logic switch 270 and the second logic switch 280 by outputting a high level. For example, when outputting a high level, the first logic switch 270 is turned on, causing the first SIM The card 250 is connected to the first modem module 201; and when the low level is output, the first SIM card 250 is connected to the second modem module 221. Or when the output level is high, 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 low level is output, the second SIM card 260 and the second modem module 221 are output. connection.
  • the first SIM card 250 may reside in the PS of the first network through the first modem module 201 ( Packet Switching, Packet Switching, and CS (Circuit Switching).
  • the first SIM card 250 can perform CS voice and PS data services through the first network.
  • the second SIM card 260 can reside in the PS domain and the CS domain of the first network through the first modem module 201.
  • the second SIM card 260 can perform CS voice and PS data services over the first network.
  • the first SIM card 250 can 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 services through the second network.
  • the second SIM card 260 can reside in the PS domain of the second network through the second modem module 221.
  • 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 different or identical networks of the same carrier.
  • the first network and the second network may both be 4G networks (eg, 4G networks such as LTE networks).
  • the first modem module 201 supports PS data services and CS voice services
  • the second modem module 221 supports only PS data services.
  • the first modem module 201 controls the logic switch (the first logic switch 270 or the The second logic switch 280) causes the corresponding data card to be connected to the first modem module 201 to implement the CS voice service.
  • the application processing module 202 receives the operation instruction of the user. If the operation instruction is the CS voice service through the first SIM card 250, the first modem module 201 outputs a first control command to control the first second logic switch 28070 so that the first The SIM card 250 is coupled to the first modem module 201.
  • the process of performing CS voice service through the first SIM card 250 includes:
  • a voice communication connection is established: the application processing module transmits the operation instruction to the first modem module 201, and sends an RRC connection request and the like to the eNodeB through the first radio frequency to establish a voice communication connection with the called party.
  • the voice uplink transmission process is: the microphone collects the voice signal, and the codec receives the collected voice signal and performs analog-to-digital conversion and transmits the signal to the digital signal processing chip; the digital signal processing chip performs audio processing on the received signal. And transmitting to the first modem module 201; the first radio frequency transmits the signal processed by the first modem module 201.
  • the downlink downlink transmission process is: 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 the codec.
  • a decoder codec performs analog-to-digital conversion on the received signal and transmits it to the handset.
  • the application processing module receives the operation instruction of the user. If the operation instruction is the CS voice service through the second SIM card 260, the first modem module 201 outputs the second control command to control the second logic switch 280 such that the second SIM card 260 It is connected to the first modem module 201.
  • the process of performing the CS voice service through the second SIM card 260 includes:
  • a voice communication connection is established: the application processing module transmits the operation instruction to the first modem module 201, and sends an RRC connection request and the like to the eNodeB through the first radio frequency to establish a voice communication connection with the called party.
  • the voice uplink transmission process is: the microphone collects the voice signal, and the codec receives the collected voice signal and performs analog-to-digital conversion and transmits the signal to the digital signal processing core.
  • the digital signal processing chip performs audio processing on the received signal and transmits the signal to the first modem module 201; the first RF transmits the signal processed by the first modem module 201.
  • the downlink downlink transmission process is: 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 modem module 201 and transmits the signal to the codec;
  • the codec performs analog-to-digital conversion on the received signal and transmits it to the handset.
  • the application processing module receives the operation instruction of the user. If the operation instruction is to perform the PS data service through the first SIM card 250, the first modem module 201 outputs the first control instruction to control the first logic switch 270 to turn on the first SIM card 250.
  • the connection channel with the first modem module 201 also outputs a second control command to control the first logic switch 270 to turn on the connection channel of the first SIM card 250 and the second modem module 221, which can implement the PS data service. Transmission.
  • the transmission process of the PS data service is: the application processing module receives the data, and transmits the data to the first modem module 201;
  • the radio frequency transmits the uplink signal processed by the first modem module 201 to the first network (4G network), and 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.
  • the transmission process of the PS data service is: the application processing module receives the data, and transmits the data to the second modem module 221;
  • the uplink signal processed by the second modem module 221 is transmitted to the LTE network, and the downlink signal from the LTE network is received and transmitted to the second modem module 221 for processing; and the application processing module processes the second modem module 221
  • the downstream signal is output.
  • the first modem module 201 may output a first control command to control the second logic switch 280 to turn on the second SIM card 260 and the first modem module 201.
  • Connection channel can also output a second control command to control the second logic
  • the switch 280 turns on the connection channel of the second SIM card 260 and the second modem module 221, which can realize the transmission of the PS data service.
  • the transmission process of the PS data service is: the application processing module receives the data, and transmits the data to the first modem module 201;
  • the radio frequency transmits the uplink signal processed by the first modem module 201 to the first network (4G network), and 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.
  • the transmission process of the PS data service is: the application processing module receives the data, and transmits the data to the second modem module 221;
  • the uplink signal processed by the second modem module 221 is transmitted to the second network (4G network), and the downlink signal from the second network (4G network) is received and transmitted to the second modem module 221 for processing; the application processing module
  • the downlink signal processed by the second modem module 221 is output.
  • the control module is further configured to disconnect data communication between the first processor and the second process when the first electronic switch is in a first state.
  • the control module 220 is configured to determine, when the mobile terminal is connected to the upper computer, whether the mobile terminal is connected to the upper computer through the first interface 231 or the second interface 232.
  • the USB external port 230 in this embodiment may be the interface unit 170 in FIG. 1
  • the first processor 200 may be the controller 180 in FIG. 1
  • the second processor 210 may use the same type of processor as the first processor 200, or may be a processor with a relatively weak processing capability relative to the first processor 200. In this embodiment, the second processor 210 uses a relative cost.
  • the first processor 200 has a processor with weak processing capability
  • the second processor 210 has only data receiving and transmitting functions, and the received data is sent to the first processor 200 for processing.
  • the control module 220 detects, in real time, whether the mobile terminal is connected to the upper computer through the USB external port 230 through the USB external port 230.
  • the upper computer includes an electronic device such as a computer or a television that can externally connect other devices through the USB, and the mobile terminal is connected to the mobile terminal.
  • the mobile terminal can be regarded as a slave device of the upper computer, except for the case where only the mobile terminal is charged when connected.
  • the first path interface 231 is generally configured to perform an operation of viewing and copying part of the content of the mobile terminal by using a host computer when the user externally connects the mobile terminal to the upper computer.
  • the interface used when connecting the mobile terminal to the upper computer is the first interface 231.
  • the second interface 232 is typically an interface that a technician uses when debugging functions such as the second processor 210.
  • the user can also use the first interface 231 for 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 interface 131, so that the first processor is in the first processor a USB interface is connected to the first 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 a second state, Enabling a USB interface in the first processor 200 to be connected to the second processor 210; or connecting the upper computer or the first processor 200 to the mobile terminal without using the first path interface 231 When the second processor 210 does not perform data communication, the first electronic switch S1 is controlled 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 interface 232, so that the second processor 210 is The upper computer is connected, and the first electronic switch S1 is controlled to be in a third state by the control module 220.
  • control module 220 determines that the mobile terminal is connected to the upper computer through the first path interface 231, the control module 220 controls the first electronic switch S1 to be in a first state, in the first state in this embodiment.
  • the first electronic switch S1 is closed to one end of the first interface 231, and the USB interface in the first processor 200 is connected to the first interface 231, so that the mobile terminal is connected to the upper computer.
  • the control module 220 includes:
  • the receiving unit 221 is configured to receive a user-triggered switching command when the mobile terminal connects to the upper computer through the first path interface.
  • the display may be prompted on the display interface of the upper computer or the mobile terminal, for example, detecting whether the mobile terminal is connected to the upper computer and whether to perform switching.
  • application scenarios such as charging only, data transmission with the host computer, and the like.
  • the user may select a corresponding option on the display interface of the upper computer or the mobile terminal, so as to generate or not generate a switching command, for example, when the user selects the switching, a switching command is generated, otherwise the user does not switch; or the user selects only charging. , does not generate a switch command, otherwise a switch command is generated.
  • the switching unit 222 is 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 the first state.
  • the first state is that the first electronic switch S1 is closed to one end of the first interface 231, thereby The USB interface in the first processor 200 is connected to the first path interface 231, otherwise no handover is performed.
  • the first electronic switch S1 can also be implemented by software.
  • control module 220 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 process 210, which requires special explanation.
  • the data communication referred to herein refers to communication through the USB data transmission channel of the first processor 200, not the first processor 200 and the second
  • the processes 210 communicate via a universal serial port that is configured to transmit status information to the first processor 200 by the second process 210.
  • Performing data communication between the first processor 200 and the second processor 210 includes: the first processor 200 transmitting data to the second processor 210, or the second processor 210 transmitting the data to the first processor 200 data.
  • the USB interface in the first processor 200 is connected to the second processor 210.
  • the first electronic switch S1 is in the second state, and in the embodiment, the first electronic switch S1 is closed to the second state.
  • One end of the processor 210 is such that a USB interface in the first processor 200 is connected to the second processor 210. Controlling the first electronic switch to be in a third state when the mobile terminal is not connected to the upper computer through a first path interface or when data communication is not performed between the first processor and the second processor In this embodiment, the third state is suspended, that is, not closed.
  • the USB interface that controls the first processor 200 is not connected to the first interface 231, nor to the second processor. 210.
  • the slave device power supply module 240 is configured to provide a preset voltage for the second processor 210 when performing data communication between the first processor 200 and the second processor 210; or When the two-way interface 232 is connected to the upper computer, a preset voltage is provided for the second interface 232.
  • the USB interface of the first processor 200 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, it needs a specific voltage, and the voltage is greater than the second.
  • the voltage of the processor 210 when it is operated alone.
  • the slave power supply module 240 is controlled to provide the second processor 210 with a preset. Set the voltage, the preset voltage can be set according to the actual situation, for example, the preset voltage is 5V; meanwhile, due to the USB external port 230
  • the second interface 232 When the second interface 232 is normally used, an additional voltage is required to operate normally.
  • the preset voltage When the mobile terminal connects the upper computer through the second interface 232, the preset voltage is provided for the second interface 232.
  • the core idea of the embodiment of the present invention is to switch the connection state of the first processed USB interface in the mobile terminal according to the situation in which the user uses the mobile terminal, and the foregoing may be determined in any order, that is, Whether data communication is performed between the first processor 200 and the second process 210 may also be performed before detecting whether the mobile terminal is connected to the upper computer through the USB external port 230, or simultaneously.
  • the priority of the voice service may be set to be higher than the priority of the data service by setting a priority.
  • the user equipment and the data card communicate once every 28 seconds to confirm whether the data card is in place to ensure normal communication.
  • the 28 second communication is controlled by the processing chip connected to the data card. For example, the processing chip sends a blank data to the data card. If the 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 a preset time interval for in-place confirmation of the data card;
  • the first The modem module 201 is further configured to issue a first control command to control the logic switch 1 to turn on the connection path of the first SIM card 250 and the first modem module 201.
  • the first The modem module 201 is further configured to issue a second control command to control the logic switch 2 to conduct a connection path between the second SIM card 260 and the first processing chip.
  • the second modem module 221 is further configured to forward to the first SIM at preset time intervals.
  • Card 250 or second SIM card 260 sends information for in-place confirmation of the data card;
  • the first The modem module 201 is further configured to issue a first control command to control the logic switch 1 to turn on the connection path of the first SIM card 250 and the second modem module 221.
  • the first The modem module 201 is further configured to issue a second control command to control the logic switch 2 to turn on the connection path of the second SIM card 260 and the second modem module 221.
  • the second SIM card 260 originally connected to the second modem module 221 is switched to be connected to the first modem module 201 (for example, switching to the first modem module 201 for PS data service), Every 28 seconds, it is required to switch back to the second modem module 221, that is, to connect to the second modem module 221 through the control logic switch 2, to complete the confirmation of the data card in place, after the card confirmation is completed, the second The SIM card 260 is switched back to the first processing chip again to ensure normal communication.
  • the first SIM card 250 originally connected to the first processing chip is switched and connected to the second modem module 221, it needs to switch back to the first processing chip every 28 seconds, that is, by controlling the logic switch 1 Connected to the first modem module 201 to complete the confirmation of the data card in place. After the card confirmation is completed, the first SIM card 250 is switched back to the second modem module 221 again to ensure normal communication.
  • the switching time of the logic switch is in the order of milliseconds, and the time for reading the card to confirm whether the bit is in place is also millisecond. Therefore, the switching of the data card does not affect the normal service transmission.
  • the priority of the voice service is set to be higher than the priority of the data service, so that the voice service can be preferentially guaranteed during the process of confirming the data card.
  • the first SIM card 250 and the second modem module 221 When the connection is for data service transmission, the first SIM card 250 can 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 the bit is confirmed.
  • the second SIM card 260 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 the bit is confirmed.
  • the second SIM card 260 is also connected to the second modem module 221 for data service transmission. . It is only necessary to ensure that the first SIM card 250 and the second SIM card 260 are in place when the bit is confirmed.
  • the in-position acknowledgment 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. . It is only necessary to ensure that the first SIM card 250 and the second SIM card 260 are in place when the bit is confirmed.
  • the embodiment of the present invention connects the mobile terminal in a different location of the USB interface of the first processor 100.
  • the first processor 200 sets different states, specifically:
  • the first processor 200 is configured to switch the state of the first processor 200 to a slave device state when the mobile terminal connects to the upper computer through the first path interface 231; or, in the first When the data communication between the processor 200 and the second processor 210 is performed, the state of the first processor 200 is switched to a master device state; or, the mobile terminal is not connected through the first path interface 231. When the upper computer does not perform data communication between the first processor 200 and the second processor 210, the state of the first processor 200 is switched to null.
  • the mobile terminal can perform different tasks when the USB interface of the first processor 200 is connected to different locations, for example, in the embodiment, when the mobile terminal is a slave device of the upper computer,
  • the USB interface of the first processor 200 of the mobile terminal is connected to the host computer, and cannot perform data communication with the second processor 210. In order to avoid the conflict in use, the mobile terminal cannot be used normally.
  • This embodiment will be in the first processor.
  • the USB interface of 100 is connected to different locations, and the first processor 200 of the mobile terminal is set to a different state.
  • the first processor 200 is configured to connect the upper terminal to the mobile terminal through the first interface 231.
  • the state of the first processor 200 is switched to the slave device state; or, when performing data communication between the first processor 200 and the second processor 210, the first process
  • the state of the device 200 is switched to the master device state; or, the mobile terminal is not connected to the host computer through the first path interface 231 or 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 embodiment of the invention further provides a method for multiplexing a USB interface of a mobile terminal processor.
  • the method includes:
  • Step S10 when detecting that the mobile terminal is connected to the upper computer, determining whether the mobile terminal is connected to the upper computer through the first interface or the second interface;
  • the present embodiment can be implemented based on the circuit structure diagram of FIG. 2, and of course, the core idea of the embodiment of the present invention can be applied to other mobile terminals.
  • the mobile terminal is detected by the USB external port 230 through the USB external port 230.
  • the upper computer Connecting to the upper computer, the upper computer includes an electronic device that can externally connect other devices through a USB, and the mobile terminal can be regarded as a slave device of the upper computer when the mobile terminal is connected to the upper computer. Except when charging the mobile terminal only when connected.
  • the first path interface 231 in this embodiment is generally configured as a user.
  • the operation of viewing and copying part of the content of the mobile terminal by the upper computer can be performed.
  • the interface used by the user to connect the mobile terminal to the upper computer is the first interface 231.
  • the second interface 232 is typically an interface that a technician uses when debugging functions such as the second processor 210.
  • the user can also use the first interface 231 for debugging and other functions.
  • Step S20 when the mobile terminal connects to the upper computer through the first path interface, connect a USB interface in the first processor to the first path interface; or in the first processor And performing a data communication with the second processor to connect the USB interface in the first processor to the second processor.
  • control module 220 determines that the mobile terminal is connected to the upper computer through the first path interface 231, the control module 220 connects the USB interface in the first processor 200 to the first path interface 231, thereby The mobile terminal is connected to the upper computer.
  • the process of switching the state of the first processor to the slave device state includes:
  • Step S21 when the mobile terminal connects to the upper computer through the first path interface, receiving a handover command triggered by the user;
  • the display may be prompted on the display interface of the upper computer or the mobile terminal, for example, detecting whether the mobile terminal is connected to the upper computer and whether to perform switching.
  • application scenarios such as charging only, data transmission with the host computer, and the like.
  • the user may select a corresponding option on the display interface of the upper computer or the mobile terminal, so as to generate or not generate a handover command, for example, when the user selects the handover, a handover command is generated, otherwise the handover command is not generated; or the user selects only the handover command.
  • no switching command is generated, otherwise a switching command is generated.
  • Step S22 connecting a USB interface in the first processor to the first path interface according to the switching command.
  • 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 process 210, which requires special explanation.
  • the data communication referred to herein refers to communication through the USB data transmission channel of the first processor 200, and the first processor 200 and the second processing 210 do not communicate through a universal serial port.
  • the serial channel is configured to transmit status information to the first processor 200 by the second process 210.
  • Performing data communication between the first processor 200 and the second processor 210 includes: the first processor 200 transmitting data to the second processor 210, or the second processor 210 transmitting the data to the first processor 200 data. 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.
  • the USB interface that controls the first processor 200 is not connected to the first interface 231, nor to the second processor. 210.
  • the USB interface of the first processor 200 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, it needs a specific voltage, and the voltage is greater than the second.
  • the voltage of the processor 210 when it is operated alone, specifically, when the voltage of the second processor 210 is connected to the second processor 210 when the USB interface of the first processor 200 is connected to the second processor 210 in this embodiment.
  • the voltage is increased by 5V.
  • the core idea of the embodiment of the present invention is to switch the connection state of the first processed USB interface in the mobile terminal according to the situation in which the user uses the mobile terminal, and the foregoing may be determined in any order, that is, Whether data communication between the first processor 200 and the second process 210 is performed may also detect whether the mobile terminal passes through a USB external port. 230 is performed before connecting to the host computer, or at the same time.
  • the priority of the voice service may be set to be higher than the priority of the data service by setting a priority.
  • the first processor 200 and the second processor 210 confirm whether the connected SIM card is in place at regular intervals, specifically, every 28 seconds. Is the connected SIM card in place? After confirming whether the connected SIM card is in place, the corresponding SIM card will switch back to the corresponding processor. Because the USB connection state switching time is in milliseconds, and the time for reading the card to confirm whether it is in place is also in milliseconds. Therefore, setting the priority mode can ensure the normal operation of the voice service, and the switching of the SIM card does not affect the normal. Business transmission.
  • Step S30 when the USB interface in the first processor is connected to the first path interface, switch the state of the first processor to a slave device state; or, in the first processor and the When the data communication between the second processors is performed, the state of the first processor is switched to a master device state; or the mobile terminal is not connected to the host computer through the first path interface or When no data communication is performed between a processor and the second processor, the state of the first processor is switched to null.
  • the mobile terminal can perform different tasks when the USB interface of the first processor 200 is connected to different locations, such as the slave device of the host computer in the embodiment, the USB interface of the first processor 200 of the mobile terminal The upper computer is connected, and the second processor 210 is not in data communication. In order to avoid the conflict in use, the mobile terminal cannot be used normally.
  • the USB interface of the first processor 100 is connected to different locations.
  • the first processor 200 in the mobile terminal is configured to be in a different state.
  • the first processor 200 is configured to: when the mobile terminal connects to the upper computer through the first path interface 231, the first processor 200 Switching the state to the slave device state; or switching the state of the first processor 200 to the master device state when data communication is performed between the first processor 200 and the second processor 210; or Connecting the upper computer to the mobile terminal without using the first path interface 231 Or, when 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 is applied to multi-channel communication, and includes: a first processor, a second processor, a control module, and a USB external port, wherein the USB external port includes a first interface and a second interface.
  • the control module is configured to: when detecting that the mobile terminal is connected to the upper computer, determine whether the mobile terminal is connected to the upper computer through the first interface or the second interface; the control The module is further configured to connect the USB interface in the first processor to the first path interface when the mobile terminal connects to the upper computer through the first path interface; or in the first process When data communication is performed between the device and the second processor, a USB interface in the first processor is connected to the second processor.
  • the embodiment of the present invention connects the USB interface of the first processor of the mobile terminal to the USB external port or the second processor according to the usage of the first processor in the mobile terminal, thereby implementing the USB interface in the processor. Reuse.
  • the USB interface multiplexing method of the mobile terminal processor of this embodiment includes:
  • Step S10 when detecting that the mobile terminal is connected to the upper computer, determining whether the mobile terminal is connected to the upper computer through the first interface or the second interface;
  • the mobile terminal is applied to multi-channel communication.
  • the embodiment of the present invention since the first processor 100 in the mobile terminal has only one USB interface, two SIM cards can be used simultaneously. 4G or dual wifi data communication, instead of one SIM card using 4G communication in the prior art, and another SIM card can only use 3G or 2G communication.
  • the mobile terminal in this embodiment includes:
  • the first electronic switch S1 is connected to the first processor 200, the second processor 210, the control module 220, and the first interface 231, and the first processor 200 is further connected to the control module 220 and the slave device power supply module 240, respectively.
  • the second electronic switch S2 is connected to the second interface 232, and the second processor 210 is also connected to the second electronic switch S2 and the second interface 232, respectively.
  • the core idea of the embodiment of the present invention may be connected by other means.
  • the first processor 200 in the mobile terminal for multi-channel communication may include: an application processing module 202 and a first modem module 201, where the second processor 210 may include: a second modulation solution
  • the module 221 further includes: a first SIM card 250, a second SIM card 260, a first logic switch 270, and a second logic switch 280, and a first radio frequency connected to the first modem module 201, A second radio frequency connected to the second modem module 221.
  • the first modem module 201 and the second modem module 221 may be equivalent to the mobile communication module 112 of FIG.
  • 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 the user performs voice communication using the first SIM card 250, 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, outputting a second preset voltage to control the second logic switch 280 to be in a fifth state, so that the The second SIM card 260 is connected to the first modem module 201.
  • the first modem module 201 controls the first logic switch 270 and the second logic switch 280 by outputting a high level.
  • the first logic switch 270 is turned on to connect the first SIM card 250 with the first modem module 201; and when the low level is output, the first SIM card 250 and the second modem module are 221 connections.
  • 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 low level is output, the second SIM card 260 and the second modem module 221 are output. connection.
  • the first SIM card 250 may reside in the PS of the first network through the first modem module 201 ( Packet Switching, Packet Switching, and CS (Circuit Switching).
  • the first SIM card 250 can perform CS voice and PS data services through the first network.
  • the second SIM card 260 can reside in the PS domain and the CS domain of the first network through the first modem module 201.
  • the second SIM card 260 can perform CS voice and PS data services over the first network.
  • the first SIM card 250 can 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 services through the second network.
  • the second SIM card 260 can reside in the PS domain of the second network through the second modem module 221.
  • 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 different or identical networks of the same carrier.
  • the first network and the second network may both be 4G networks (eg, 4G networks such as LTE networks).
  • the first modem module 201 supports PS data services and CS voice services
  • the second modem module 221 supports only PS data services.
  • the first modem module 201 controls the logic switch (the first logic switch 270 or the The second logic switch 280) causes the corresponding data card to be connected to the first modem module 201 to implement the CS voice service.
  • the application processing module 202 receives the operation instruction of the user. If the operation instruction is the CS voice service through the first SIM card 250, the first modem module 201 outputs a first control command to control the first second logic switch 28070 so that the first The SIM card 250 is coupled to the first modem module 201.
  • the process of performing CS voice service through the first SIM card 250 includes:
  • a voice communication connection is established: the application processing module transmits the operation instruction to the first modem module 201, and sends an RRC connection request and the like to the eNodeB through the first radio frequency to establish a voice communication connection with the called party.
  • the voice uplink transmission process is: the microphone collects the voice signal, and the codec receives the collected voice signal and performs analog-to-digital conversion and transmits the signal to the digital signal processing chip; the digital signal processing chip performs audio processing on the received signal. And transmitting to the first modem module 201; the first radio frequency transmits the signal processed by the first modem module 201.
  • the downlink downlink transmission process is: 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 the codec.
  • a decoder codec performs analog-to-digital conversion on the received signal and transmits it to the handset.
  • the application processing module receives the operation instruction of the user. If the operation instruction is the CS voice service through the second SIM card 260, the first modem module 201 outputs the second control command to control the second logic switch 280 such that the second SIM card 260 It is connected to the first modem module 201.
  • the process of performing the CS voice service through the second SIM card 260 includes:
  • a voice communication connection is established: the application processing module transmits the operation instruction to the first modem module 201, and sends an RRC connection request and the like to the eNodeB through the first radio frequency to establish a voice communication connection with the called party.
  • the voice uplink transmission process is: the microphone collects the voice signal, and the codec receives the collected voice signal and performs analog-to-digital conversion and transmits the signal to the digital signal processing chip; the digital signal processing chip performs audio processing on the received signal. And transmitting to the first modem module 201; the first radio frequency transmits the signal processed by the first modem module 201.
  • the downlink downlink transmission process is: 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 on the signal processed by the first modem module 201. Processing and transmitting to the codec; the codec performs analog-to-digital conversion on the received signal and transmits it to the handset.
  • the application processing module receives the operation instruction of the user. If the operation instruction is to perform the PS data service through the first SIM card 250, the first modem module 201 outputs the first control instruction to control the first logic switch 270 to turn on the first SIM card 250.
  • the connection channel with the first modem module 201 also outputs a second control command to control the first logic switch 270 to turn on the connection channel of the first SIM card 250 and the second modem module 221, which can implement the PS data service. Transmission.
  • the transmission process of the PS data service is: the application processing module receives the data, and transmits the data to the first modem module 201;
  • the radio frequency transmits the uplink signal processed by the first modem module 201 to the first network (4G network), and 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.
  • the transmission process of the PS data service is: the application processing module receives the data, and transmits the data to the second modem module 221;
  • the uplink signal processed by the second modem module 221 is transmitted to the LTE network, and the downlink signal from the LTE network is received and transmitted to the second modem module 221 for processing; and the application processing module processes the second modem module 221
  • the downstream signal is output.
  • the first modem module 201 may output a first control command to control the second logic switch 280 to turn on the second SIM card 260 and the first modem module 201.
  • the connection channel can also output a second control command to control the second logic switch 280 to turn on the connection channel of the second SIM card 260 and the second modem module 221, which can realize the transmission of the PS data service.
  • the transmission process of the PS data service is: the application processing module receives the data and transmits the data to the first modulation.
  • a demodulation module 201 the first radio frequency transmits the uplink signal processed by the first modem module 201 to the first network (4G network), and receives the downlink signal from the first network (4G network), and transmits the downlink signal to the first
  • the modem module 201 processes; the application processing module outputs the downlink signal processed by the first modem module 201.
  • the transmission process of the PS data service is: the application processing module receives the data, and transmits the data to the second modem module 221;
  • the uplink signal processed by the second modem module 221 is transmitted to the second network (4G network), and the downlink signal from the second network (4G network) is received and transmitted to the second modem module 221 for processing; the application processing module
  • the downlink signal processed by the second modem module 221 is output.
  • the control module is further configured to disconnect data communication between the first processor and the second process when the first electronic switch is in a first state.
  • the control module 220 is configured to determine, when the mobile terminal is connected to the upper computer, whether the mobile terminal is connected to the upper computer through the first interface 231 or the second interface 232.
  • the USB external port 230 in this embodiment may be the interface unit 170 in FIG. 1
  • the first processor 200 may be the controller 180 in FIG. 1
  • the second processor 210 may use the same type of processor as the first processor 200, or may be a processor with a relatively weak processing capability relative to the first processor 200. In this embodiment, the second processor 210 uses a relative cost.
  • the first processor 200 has a processor with weak processing capability
  • the second processor 210 has only data receiving and transmitting functions, and the received data is sent to the first processor 200 for processing.
  • the control module 220 detects, in real time, whether the mobile terminal is connected to the upper computer through the USB external port 230 through the USB external port 230.
  • the upper computer includes an electronic device such as a computer or a television that can externally connect other devices through the USB, and the mobile terminal is connected to the mobile terminal.
  • the mobile terminal can be regarded as a slave device of the upper computer, and only the mobile terminal is connected when connecting Except for charging.
  • the first path interface 231 is generally configured to perform an operation of viewing and copying part of the content of the mobile terminal by using a host computer when the user externally connects the mobile terminal to the upper computer.
  • the interface used when connecting the mobile terminal to the upper computer is the first interface 231.
  • the second interface 232 is typically an interface that a technician uses when debugging functions such as the second processor 210.
  • the user can also use the first interface 231 for debugging and other functions.
  • Step S20 when the mobile terminal connects to the upper computer through the first path interface, connect a USB interface in the first processor to the first path interface; or in the first processor And performing a data communication with the second processor to connect the USB interface in the first processor 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 interface 232, so that the second processor 210 is The upper computer is connected, and the first electronic switch S1 is controlled to be in a third state by the control module 220.
  • control module 220 determines that the mobile terminal is connected to the upper computer through the first path interface 231, the control module 220 controls the first electronic switch S1 to be in a first state, in the first state in this embodiment.
  • the first electronic switch S1 is closed to one end of the first interface 231, and the USB interface in the first processor 200 is connected to the first interface 231, so that the mobile terminal is connected to the upper computer.
  • the process of switching the state of the first processor to the slave device state includes:
  • Step S21 when the mobile terminal connects to the upper computer through the first path interface, receiving User-triggered switching command
  • the display may be prompted on the display interface of the upper computer or the mobile terminal, for example, detecting whether the mobile terminal is connected to the upper computer and whether to perform switching.
  • application scenarios such as charging only, data transmission with the host computer, and the like.
  • the user may select a corresponding option on the display interface of the upper computer or the mobile terminal, so as to generate or not generate a handover command, for example, when the user selects the handover, a handover command is generated, otherwise the handover command is not generated; or the user selects only the handover command.
  • no switching command is generated, otherwise a switching command is generated.
  • Step S22 connecting a 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 the first state.
  • the first state is that the first electronic switch S1 is closed to one end of the first interface 231, thereby The USB interface in the first processor 200 is connected to the first path interface 231, otherwise no handover is performed.
  • the first electronic switch S1 can also be implemented by software.
  • control module 220 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 process 210, which requires special explanation.
  • the data communication referred to herein refers to communication through the USB data transmission channel of the first processor 200, and the first processor 200 and the second processing 210 do not communicate through a universal serial port.
  • the serial channel is configured to transmit status information to the first processor 200 by the second process 210.
  • Performing data communication between the first processor 200 and the second processor 210 includes: the first processor 200 transmitting data to the second processor 210, or the second processor 210 transmitting the data to the first processor 200 data.
  • the USB interface in the first processor 200 is connected to the second processor 210.
  • the first electronic switch S1 is placed In the second state, the first electronic switch S1 is closed to one end of the second processor 210 in the embodiment, so that the USB interface in the first processor 200 is connected to the second processor 210. Controlling the first electronic switch to be in a third state when the mobile terminal is not connected to the upper computer through a first path interface or when data communication is not performed between the first processor and the second processor In this embodiment, the third state is suspended, that is, not closed.
  • the USB interface that controls the first processor 200 is not connected to the first interface 231, nor to the second processor. 210.
  • the slave device power supply module 240 is configured to provide a preset voltage for the second processor 210 when performing data communication between the first processor 200 and the second processor 210; or When the two-way interface 232 is connected to the upper computer, a preset voltage is provided for the second interface 232.
  • the USB interface of the first processor 200 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, it needs a specific voltage, and the voltage is greater than the second. The voltage of the processor 210 when it is operated alone. Specifically, when the USB interface of the first processor 200 is connected to the second processor 210 in this embodiment, the slave power supply module 240 is controlled to provide the second processor 210 with a preset.
  • the preset voltage can be set according to the actual situation, for example, the preset voltage is 5V; meanwhile, since the second interface 232 of the USB external port 230 can be normally used, an additional voltage is required to operate normally, while moving When the terminal is connected to the upper computer through the second interface 232, the preset voltage is provided for the second interface 232.
  • the core idea of the embodiment of the present invention is to switch the connection state of the first processed USB interface in the mobile terminal according to the situation in which the user uses the mobile terminal, and the foregoing may be determined in any order, that is, Whether data communication between the first processor 200 and the second process 210 is performed may also detect whether the mobile terminal passes through a USB external port. 230 is performed before connecting to the host computer, or at the same time.
  • the priority of the voice service may be set to be higher than the priority of the data service by setting a priority.
  • the user equipment and the data card communicate once every 28 seconds to confirm whether the data card is in place to ensure normal communication.
  • the 28 second communication is controlled by the processing chip connected to the data card. For example, the processing chip sends a blank data to the data card. If the 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 a preset time interval for in-place confirmation of the data card;
  • the first The modem module 201 is further configured to issue a first control command to control the logic switch 1 to turn on the connection path of the first SIM card 250 and the first modem module 201.
  • the first The modem module 201 is further configured to issue a second control command to control the logic switch 2 to conduct a connection path between the second SIM card 260 and the first processing chip.
  • the second modem module 221 is further configured to send information to the first SIM card 250 or the second SIM card 260 at a preset time interval for in-place confirmation of the data card;
  • the first The modem module 201 is further configured to issue a first control command to control the logic switch 1 to turn on the connection path of the first SIM card 250 and the second modem module 221.
  • the first modem module 201 is further configured to issue a second control command to control the logic switch 2 to turn on the connection path of the second SIM card 260 and the second modem module 221 .
  • the second SIM card 260 originally connected to the second modem module 221 is switched to be connected to the first modem module 201 (for example, switching to the first modem module 201 for PS data service), Every 28 seconds, it is required to switch back to the second modem module 221, that is, to connect to the second modem module 221 through the control logic switch 2, to complete the confirmation of the data card in place, after the card confirmation is completed, the second The SIM card 260 is switched back to the first processing chip again to ensure normal communication.
  • the first SIM card 250 originally connected to the first processing chip is switched and connected to the second modem module 221, it needs to switch back to the first processing chip every 28 seconds, that is, by controlling the logic switch 1 Connected to the first modem module 201 to complete the confirmation of the data card in place. After the card confirmation is completed, the first SIM card 250 is switched back to the second modem module 221 again to ensure normal communication.
  • the switching time of the logic switch is in the order of milliseconds, and the time for reading the card to confirm whether the bit is in place is also millisecond. Therefore, the switching of the data card does not affect the normal service transmission.
  • the priority of the voice service is set to be higher than the priority of the data service, so that the voice service can be preferentially guaranteed during the process of confirming the data card.
  • the first SIM card 250 when the first SIM card 250 is connected to the second modem module 221 for data service transmission, the first SIM card 250 can 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 the bit is confirmed.
  • the second SIM card 260 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 the bit is confirmed.
  • the second SIM card 260 is also coupled to the second modem. Module 221 is connected for data traffic transmission. It is only necessary to ensure that the first SIM card 250 and the second SIM card 260 are in place when the bit is confirmed.
  • the in-position acknowledgment 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. . It is only necessary to ensure that the first SIM card 250 and the second SIM card 260 are in place when the bit is confirmed.
  • the embodiment of the present invention connects the mobile terminal in a different location of the USB interface of the first processor 100.
  • the first processor 200 sets different states, specifically:
  • the first processor 200 is configured to switch the state of the first processor 200 to a slave device state when the mobile terminal connects to the upper computer through the first path interface 231; or, in the first When the data communication between the processor 200 and the second processor 210 is performed, the state of the first processor 200 is switched to a master device state; or, the mobile terminal is not connected through the first path interface 231. When the upper computer does not perform data communication between the first processor 200 and the second processor 210, the state of the first processor 200 is switched to null.
  • the mobile terminal can perform different tasks when the USB interface of the first processor 200 is connected to different locations, such as the slave device of the host computer in the embodiment, the USB interface of the first processor 200 of the mobile terminal The upper computer is connected, and the second processor 210 is not in data communication. In order to avoid the conflict in use, the mobile terminal cannot be used normally.
  • the USB interface of the first processor 100 is connected to different locations.
  • the first processor 200 in the mobile terminal is configured to be in a different state.
  • the first processor 200 is configured to: when the mobile terminal connects to the upper computer through the first path interface 231, the first processor 200 Switching the state to the slave device state; or switching the state of the first processor 200 to the master when data communication is performed between the first processor 200 and the second processor 210 a device status; or, when the mobile terminal is not connected to the upper computer through the first path interface 231 or when no data communication is 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, switch the state of the first processor to a slave device state; or, in the first processor and the When the data communication between the second processors is performed, the state of the first processor is switched to a master device state; or the mobile terminal is not connected to the host computer through the first path interface or When no data communication is performed between a processor and the second processor, the state of the first processor is switched to null.
  • the mobile terminal can perform different tasks when the USB interface of the first processor 200 is connected to different locations, such as the slave device of the host computer in the embodiment, the USB interface of the first processor 200 of the mobile terminal The upper computer is connected, and the second processor 210 is not in data communication. In order to avoid the conflict in use, the mobile terminal cannot be used normally.
  • the USB interface of the first processor 100 is connected to different locations.
  • the first processor 200 in the mobile terminal is configured to be in a different state.
  • the first processor 200 is configured to: when the mobile terminal connects to the upper computer through the first path interface 231, the first processor 200 Switching the state to the slave device state; or switching the state of the first processor 200 to the master device state when data communication is performed between the first processor 200 and the second processor 210; or The mobile terminal does not connect to the upper computer through the first path interface 231 or does not perform data communication between the first processor 200 and the second processor 210.
  • the first state of the switching processor 200 is empty.
  • the embodiment of the present invention further describes a first type of computer storage medium, wherein the first type of computer storage medium stores a computer program, and the computer program is used to execute the USB interface multiplexing method of the mobile terminal processor described above. .
  • the application processing module may be specifically
  • the processor module is implemented by a controller; the modem module can be implemented by a modem.
  • the foregoing embodiment method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is better.
  • Implementation Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk,
  • the optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the methods of various embodiments of the present invention.
  • the embodiment of the present invention can connect the USB interface of the first processor of the mobile terminal to the USB external port or the second processor according to the usage of the first processor in the mobile terminal, thereby implementing multiplexing of the USB interface in the processor.

Abstract

A mobile terminal (100), a method for multiplexing a USB interface of a processor of the mobile terminal, and a storage medium. The mobile terminal (100) is applied to multichannel communication, and 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 path interface (231) and a second path interface (232), the control module (220) is configured to determine whether the mobile terminal (100) is connected to an upper computer via the first path interface (231) or the second path interface (232) when it is detected that the mobile terminal (100) is connected to the upper computer, and the control module (220) is further configured to connect a USB interface of the first processor (200) to the first path interface (231) when the mobile terminal (100) is connected to the upper computer via the first path interface (231) or to connect a USB interface of the first processor (200) to the second processor (210) when data communication is performed between the first processor (200) and the second processor (210).

Description

移动终端和USB接口复用的方法、存储介质Method and storage medium for multiplexing mobile terminal and USB interface 技术领域Technical field
本发明涉及通信技术领域,尤其涉及一种移动终端和USB接口复用的方法、存储介质。The present invention relates to the field of communications technologies, and in particular, to a method and a storage medium for multiplexing a mobile terminal and a USB interface.
背景技术Background technique
在多通道通信的移动终端中主处理器只有一组USB接口,一方面该USB接口需要与次处理器保持通信,另一方面,此USB接口还需要与电脑等设备通信。由于移动终端的处理器中只有一个USB接口,所以不方便使用。In a multi-channel communication mobile terminal, the main processor has only one set of USB interfaces. On the one hand, the USB interface needs to maintain communication with the secondary processor. On the other hand, the USB interface also needs to communicate with devices such as computers. Since the mobile terminal has only one USB interface in the processor, it is inconvenient to use.
发明内容Summary of the invention
本发明实施例的主要目的在于提出一种移动终端和其处理器的USB接口复用的方法、存储介质,旨在实现处理器中的USB接口的复用。The main purpose of the embodiments of the present invention is to provide a method for multiplexing a USB interface of a mobile terminal and a processor thereof, and a storage medium, which is intended to implement multiplexing of a USB interface in the processor.
为实现上述目的,本发明实施例提供的一种移动终端,所述移动终端应用于多通道通信,所述移动终端包括:To achieve the above objective, a mobile terminal is provided in the embodiment of the present invention, where the mobile terminal is applied to multi-channel communication, and the mobile terminal includes:
第一处理器、第二处理器、控制模块和USB外接端口,其中所述USB外接端口包括第一路接口和第二路接口,a first processor, a second processor, a control module, and a USB external port, wherein the USB external port includes a first interface and a second interface.
所述控制模块配置为在检测到所述移动终端连接上位机时,确定所述移动终端是通过所述第一路接口还是所述第二路接口连接所述上位机;The control module is configured to determine, when the mobile terminal is connected to the upper computer, whether the mobile terminal is connected to the upper computer through the first interface or the second interface;
所述控制模块还配置为在所述移动终端通过所述第一路接口连接所述上位机时,将所述第一处理器中的USB接口连接至所述第一路接口;或者在所述第一处理器和所述第二处理器之间进行数据通信时,将所述第一处理器中的USB接口连接至所述第二处理器。 The control module is further configured to connect the USB interface in the first processor to the first way interface when the mobile terminal connects to the upper computer through the first way interface; or in the When the data communication is performed between the first processor and the second processor, the USB interface in the first processor is connected to the second processor.
上述方案中,所述第一路接口配置为将移动终端连接至上位机时所使用的接口;和/或,In the above solution, the first interface is configured as an interface used when connecting the mobile terminal to the upper computer; and/or,
所述第二路接口配置为调试第二处理器时所使用的接口。The second interface is configured as an interface used when debugging the second processor.
上述方案中,所述控制模块还配置为未检测到所述移动终端通过第一路接口连接所述上位机时,判断所述第一处理器与所述第二处理之间是否进行数据通信。In the above solution, the control module is further configured to determine whether data communication is performed between the first processor and the second process when the mobile terminal is not connected to the upper computer through the first path interface.
上述方案中,所述控制模块还配置为检测到所述移动终端通过第二路接口连接至所述上位机时,控制第一处理器的USB接口不连接至所述第一路接口,也不连接至第二处理器。In the above solution, the control module is further configured to: when detecting that the mobile terminal is connected to the upper computer through the second interface, control the USB interface of the first processor not to be connected to the first interface, nor Connect to the second processor.
上述方案中,所述控制模块包括:In the above solution, the control module includes:
接收单元,配置为在所述移动终端通过第一路接口连接所述上位机时,接收用户触发的切换命令;a receiving unit, configured to receive a user-triggered switching command when the mobile terminal connects to the upper computer through the first path interface;
切换单元,配置为根据所述切换命令,将所述第一处理器中的USB接口连接至所述第一路接口。And a switching unit configured to connect the USB interface in the first processor to the first path interface according to the switching command.
上述方案中,所述第一处理器配置为在所述第一处理器中的USB接口连接至所述第一路接口时,将所述第一处理器的状态切换为从属设备状态;或者,In the above solution, the first processor is configured to switch the state of the first processor to a slave device state when a USB interface in the first processor is connected to the first path interface; or
在所述第一处理器和所述第二处理器之间进行数据通信时,将所述第一处理器的状态切换为主设备状态;或者,And performing, when data communication between the first processor and the second processor, switching a state of the first processor to a master device state; or
在所述第一处理器中的USB接口未连接至所述第一路接口或者在所述第一处理器和所述第二处理器之间未进行数据通信时,将所述第一处理器的状态切换为空。The first processor is not connected to the first interface or the data is not communicated between the first processor and the second processor The state is switched to empty.
上述方案中,所述移动终端还包括:In the above solution, the mobile terminal further includes:
第一电子开关,The first electronic switch,
所述控制模块还配置为在所述移动终端是通过第一路接口连接所述上 位机时,控制所述第一电子开关处于第一状态,以使得所述第一处理器中的USB接口连接至所述第一路接口;或者在所述第一处理器和所述第二处理器之间进行数据通信时,将所述第一电子开关处于第二状态,以使得所述第一处理器中的USB接口连接至所述第二处理器;或者在所述移动终端未通过第一路接口连接所述上位机或者在所述第一处理器和所述第二处理器之间未进行数据通信时,控制所述第一电子开关处于第三状态。The control module is further configured to connect to the mobile terminal by using a first path interface And controlling, in the first state, the first electronic switch to be in a first state, such that a USB interface in the first processor is connected to the first way interface; or in the first processor and the second Performing data communication between the processors, placing the first electronic switch in a second state, such that a USB interface in the first processor is connected to the second processor; or failing in the mobile terminal The first interface is connected to the upper computer or the first electronic switch is controlled to be in a third state when no data communication is performed between the first processor and the second processor.
上述方案中,所述移动终端还包括:In the above solution, the mobile terminal further includes:
连接于所述第二处理器和所述USB外接端口之间的第二电子开关,a second electronic switch connected between the second processor and the USB external port,
所述第一处理器还配置为在所述移动终端通过所述第二路接口连接所述上位机时,控制所述第二电子开关闭合,以使得所述第二处理器与所述上位机连接,并通过所述控制模块控制所述第一电子开关处于第三状态。The first processor is further configured to control the second electronic switch to be closed when the mobile terminal is connected to the upper computer through the second interface, so that the second processor and the upper computer Connecting, and controlling, by the control module, the first electronic switch to be in a third state.
上述方案中,所述移动终端还包括:In the above solution, the mobile terminal further includes:
第一用户识别卡、第二用户识别卡、第一逻辑开关和第二逻辑开关,a first user identification card, a second user identification card, a first logic switch, and a second logic switch,
所述第一处理器还配置为在用户使用第一用户识别卡进行语音通信时,输出第一预设电压控制所述第一逻辑开关处于第四状态,以使得所述第一用户识别卡连接至所述第一处理器;或者在用户使用第二用户识别卡进行语音通信时,输出第二预设电压控制所述第二逻辑开关处于第五状态,以使得所述第二用户识别卡连接至所述第一处理器;The first processor is further configured to output a first preset voltage to control the first logic switch to be in a fourth state when the user performs voice communication using the first user identification card, so that the first user identification card is connected. To the first processor; or when the user uses the second user identification card for 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 process when the first electronic switch is in a first state.
上述方案中,所述移动终端还包括:In the above solution, the mobile terminal further includes:
从属设备供电模块,配置为在所述第一处理器和所述第二处理器之间进行数据通信时,为所述第二处理器提供预设电压;或者在移动终端通过第二路接口连接所述上位机时,为所述第二路接口提供预设电压。a slave device power supply module configured to provide a preset voltage to the second processor when data communication is performed between the first processor and the second processor; or connect the mobile terminal through a second interface When the upper computer is in use, a preset voltage is provided for the second interface.
此外,为实现上述目的,本发明实施例还提出一种移动终端处理器的 USB接口复用的方法,所述方法应用于多通道通信的移动终端,所述方法包括:In addition, in order to achieve the above object, an embodiment of the present invention further provides a mobile terminal processor. A method for multiplexing a USB interface, the method being applied to a mobile terminal for multi-channel communication, the method comprising:
在检测到所述移动终端连接上位机时,确定所述移动终端是通过第一路接口还是第二路接口连接所述上位机;When detecting that the mobile terminal is connected to the upper computer, determining whether the mobile terminal is connected to the upper computer through the first interface or the second interface;
在所述移动终端通过所述第一路接口连接所述上位机时,将所述第一处理器中的USB接口连接至所述第一路接口;或者在所述第一处理器和所述第二处理器之间进行数据通信时,将所述第一处理器中的USB接口连接至所述第二处理器。Connecting the USB interface in the first processor to the first path interface when the mobile terminal connects to the upper computer through the first path interface; or in the first processor and the When data communication is performed between the second processors, the USB interface in the first processor is connected to the second processor.
上述方案中,所述方法还包括:In the above solution, the method further includes:
未检测到所述移动终端通过第一路接口连接所述上位机时,判断所述第一处理器与所述第二处理之间是否进行数据通信.When it is not detected that the mobile terminal connects to the upper computer through the first path interface, it is determined whether data communication is performed between the first processor and the second process.
上述方案中,所述方法还包括:In the above solution, the method further includes:
检测到所述移动终端通过第二路接口连接至所述上位机时,控制第一处理器的USB接口不连接至所述第一路接口,也不连接至第二处理器。When detecting that the mobile terminal is connected to the upper computer through the second interface, the USB interface controlling the first processor is not connected to the first interface, nor is connected to the second processor.
上述方案中,所述在所述移动终端通过第一路接口连接所述上位机时,将所述第一处理器的状态切换为从属设备状态的步骤包括:In the above solution, when the mobile terminal connects to the upper computer through the first path interface, the step of switching the state of the first processor to the slave device state includes:
在所述移动终端通过第一路接口连接所述上位机时,接收用户触发的切换命令;Receiving a user-triggered handover command when the mobile terminal connects to the upper computer through a first path interface;
根据所述切换命令,将所述第一处理器中的USB接口连接至所述第一路接口。And connecting the USB interface in the first processor to the first path interface according to the switching command.
上述方案中,在所述第一处理器中的USB接口连接至所述第一路接口时,将所述第一处理器的状态切换为从属设备状态;或者,In the above solution, when the USB interface in the first processor is connected to the first path interface, the state of the first processor is switched to the slave device state; or
在所述第一处理器和所述第二处理器之间进行数据通信时,将所述第一处理器的状态切换为主设备状态;或者,And performing, when data communication between the first processor and the second processor, switching a state of the first processor to a master device state; or
在所述移动终端未通过第一路接口连接所述上位机或者在所述第一处 理器和所述第二处理器之间未进行数据通信时,将所述第一处理器的状态切换为空。Connecting to the upper computer or the first place at the mobile terminal without using a first path interface When no data communication is performed between the processor and the second processor, the state of the first processor is switched to null.
上述方案中,所述移动终端还包括:第一电子开关;对应地,所述方法还包括:In the above solution, the mobile terminal further includes: a first electronic switch; correspondingly, the method further includes:
在所述移动终端是通过第一路接口连接所述上位机时,控制所述第一电子开关处于第一状态,以使得所述第一处理器中的USB接口连接至所述第一路接口;或者在所述第一处理器和所述第二处理器之间进行数据通信时,将所述第一电子开关处于第二状态,以使得所述第一处理器中的USB接口连接至所述第二处理器;或者在所述移动终端未通过第一路接口连接所述上位机或者在所述第一处理器和所述第二处理器之间未进行数据通信时,控制所述第一电子开关处于第三状态。When the mobile terminal is connected to the upper computer through the first interface, controlling the first electronic switch to be in a first state, so that a USB interface in the first processor is connected to the first interface Or performing data communication between the first processor and the second processor, placing the first electronic switch in a second state, so that a USB interface in the first processor is connected to the The second processor; or controlling the first terminal when the mobile terminal is not connected to the upper computer through a first path interface or when data communication is not performed between the first processor and the second processor An electronic switch is in a third state.
上述方案中,所述移动终端还包括:连接于所述第二处理器和所述USB外接端口之间的第二电子开关;对应地,所述方法还包括:In the above solution, the mobile terminal further includes: a second electronic switch connected between the second processor and the USB external port; correspondingly, the method further includes:
在所述移动终端通过所述第二路接口连接所述上位机时,控制所述第二电子开关闭合,以使得所述第二处理器与所述上位机连接,并通过所述控制模块控制所述第一电子开关处于第三状态。Controlling, by the mobile terminal, the second electronic switch to be closed when the mobile terminal is connected to the upper computer through the second interface, so that the second processor is connected to the upper computer and controlled by the control module The first electronic switch is in a third state.
上述方案中,所述第一处理器包括第一调制解调模块和应用处理模块,所述第二处理器包括第二调制解调模块,所述移动终端还包括:第一用户识别卡、第二用户识别卡、第一逻辑开关和第二逻辑开关;对应地,所述方法还包括:In the above solution, the first processor includes a first modem module and an application processing module, the second processor includes a second modem module, and the mobile terminal further includes: a first subscriber identity card, The second user identification card, the first logic switch, and the second logic switch; correspondingly, the method further includes:
在用户使用第一用户识别卡进行语音通信时,输出第一预设电压控制所述第一逻辑开关处于第四状态,以使得所述第一用户识别卡连接至所述第一调制解调模块;或者在用户使用第二用户识别卡进行语音通信时,输出第二预设电压控制所述第二逻辑开关处于第五状态,以使得所述第二用户识别卡连接至所述第一调制解调模块; When the user performs voice communication using the first user identification card, outputting a first preset voltage to control the first logic switch to be in a fourth state, so that the first user identification card is connected to the first modem module Or outputting a second preset voltage to control the second logic switch to be in a fifth state when the user uses the second user identification card for voice communication, so that the second user identification card is connected to the first modulation solution Tuning module
在所述第一电子开关处于第一状态时,断开所述第一处理器与所述第二处理之间的数据通信。And disconnecting data communication between the first processor and the second process when the first electronic switch is in the first state.
上述方案中,所述方法还包括:In the above solution, the method further includes:
在所述第一处理器和所述第二处理器之间进行数据通信时,为所述第二处理器提供预设电压;或者在移动终端通过第二路接口连接所述上位机时,为所述第二路接口提供预设电压。Providing a preset voltage for the second processor when performing data communication between the first processor and the second processor; or when the mobile terminal is connected to the upper computer through a second interface The second interface provides a preset voltage.
此外,为实现上述目的,本发明实施例还提出第一种计算机存储介质,所述计算机存储介质中存储有计算机程序,所述计算机程序用于执行以上所述的移动终端处理器的USB接口复用的方法。In addition, in order to achieve the above object, an embodiment of the present invention further provides a first computer storage medium, where the computer storage medium stores a computer program, where the computer program is used to execute the USB interface of the mobile terminal processor described above. The method used.
本发明实施例移动终端,所述移动终端应用于多通道通信,包括:第一处理器、第二处理器、控制模块和USB外接端口,其中所述USB外接端口包括第一路接口和第二路接口,所述控制模块配置为在检测到所述移动终端连接上位机时,确定所述移动终端是通过所述第一路接口还是所述第二路接口连接所述上位机;所述控制模块还配置为在所述移动终端通过所述第一路接口连接所述上位机时,将所述第一处理器中的USB接口连接至所述第一路接口;或者在所述第一处理器和所述第二处理器之间进行数据通信时,将所述第一处理器中的USB接口连接至所述第二处理器。通过上述方式,本发明实施例根据移动终端中第一处理器的使用情况,将移动终端第一处理器的USB接口连接至USB外接端口或第二处理器,从而实现处理器中的USB接口的复用。In the embodiment of the present invention, the mobile terminal is applied to multi-channel communication, and includes: a first processor, a second processor, a control module, and a USB external port, wherein the USB external port includes a first interface and a second interface. The control module is configured to: when detecting that the mobile terminal is connected to the upper computer, determine whether the mobile terminal is connected to the upper computer through the first interface or the second interface; the control The module is further configured to connect the USB interface in the first processor to the first path interface when the mobile terminal connects to the upper computer through the first path interface; or in the first process When data communication is performed between the device and the second processor, a USB interface in the first processor is connected to the second processor. In the above manner, the embodiment of the present invention connects the USB interface of the first processor of the mobile terminal to the USB external port or the second processor according to the usage of the first processor in the mobile terminal, thereby implementing the USB interface in the processor. Reuse.
附图说明DRAWINGS
图1为实现本发明各个实施例的一种优选移动终端的硬件结构示意图;1 is a schematic structural diagram of hardware of a preferred mobile terminal for implementing various embodiments of the present invention;
图2为本发明移动终端第一实施例的结构示意图;2 is a schematic structural diagram of a first embodiment of a mobile terminal according to the present invention;
图3为本发明实施例中控制模块的一种功能模块示意图;3 is a schematic diagram of a functional module of a control module according to an embodiment of the present invention;
图4为本发明移动终端第二实施例的结构示意图; 4 is a schematic structural diagram of a second embodiment of a mobile terminal according to the present invention;
图5为本发明实施例用于多通道通信移动终端的一种结构示意图;FIG. 5 is a schematic structural diagram of a multi-channel communication mobile terminal according to an embodiment of the present invention; FIG.
图6为本发明移动终端处理器的USB接口复用的方法第一实施例的流程示意图;6 is a schematic flowchart of a first embodiment of a method for multiplexing a USB interface of a mobile terminal processor according to the present invention;
图7为本发明实施例中在所述移动终端通过第一路接口连接所述上位机时,将所述第一处理器的状态切换为从属设备状态的一种细化流程示意图。FIG. 7 is a refinement flow diagram of switching the state of the first processor to the state of the slave device when the mobile terminal connects to the upper computer through the first path interface according to an embodiment of the present invention.
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The implementation, functional features, and advantages of the present invention will be further described in conjunction with the embodiments.
具体实施方式detailed description
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
现在将参考附图描述实现本发明各个实施例的移动终端。在后续的描述中,使用用于表示元件的诸如“模块”、“部件”或“单元”的后缀仅为了有利于本发明的说明,其本身并没有特定的意义。因此,"模块"与"部件"可以混合地使用。A mobile terminal embodying various embodiments of the present invention will now be described with reference to the accompanying drawings. In the following description, the use of suffixes such as "module", "component" or "unit" for indicating an element is merely an explanation for facilitating the present invention, and does not have a specific meaning per se. Therefore, "module" and "component" can be used in combination.
移动终端可以以各种形式来实施。例如,本发明中描述的终端可以包括诸如移动电话、智能电话、笔记本电脑、数字广播接收器、PDA(个人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、导航装置等等的移动终端以及诸如数字TV、台式计算机等等的固定终端。下面,假设终端是移动终端。然而,本领域技术人员将理解的是,除了特别用于移动目的的元件之外,根据本发明的实施方式的构造也能够应用于固定类型的终端。The mobile terminal can be implemented in various forms. For example, the terminal described in the present invention may include, for example, a mobile phone, a smart phone, a notebook computer, a digital broadcast receiver, a PDA (Personal Digital Assistant), a PAD (Tablet), a PMP (Portable Multimedia Player), a navigation device, etc. Mobile terminals and fixed terminals such as digital TVs, desktop computers, and the like. In the following, it is assumed that the terminal is a mobile terminal. However, those skilled in the art will appreciate that configurations in accordance with embodiments of the present invention can be applied to fixed type terminals in addition to components that are specifically for mobile purposes.
图1为实现本发明各个实施例的移动终端的硬件结构示意图。FIG. 1 is a schematic diagram showing the hardware structure of a mobile terminal that implements various embodiments of the present invention.
移动终端100可以包括无线通信单元110、A/V(音频/视频)输入单元120、用户输入单元130、输出单元150、存储器160、接口单元170、控制器180和电源单元190等等。图1示出了具有各种组件的移动终端,但是应理解的是, 并不要求实施所有示出的组件。可以替代地实施更多或更少的组件。将在下面详细描述移动终端的元件。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, a power supply unit 190, and the like. Figure 1 shows a mobile terminal with various components, but it should be understood that It is not required to implement all of the illustrated components. More or fewer components can be implemented instead. The elements of the mobile terminal will be described in detail below.
无线通信单元110通常包括一个或多个组件,其允许移动终端100与无线通信系统或网络之间的无线电通信。例如,无线通信单元可以包括移动通信模块112、无线互联网模块113中的至少一个。 Wireless communication unit 110 typically includes one or more components that permit radio communication between mobile terminal 100 and a wireless communication system or network. For example, the wireless communication unit can include at least one of the mobile communication module 112 and the wireless internet module 113.
移动通信模块112将无线电信号发送到基站(例如,接入点、节点B等等)、外部终端以及服务器中的至少一个和/或从其接收无线电信号。这样的无线电信号可以包括语音通话信号、视频通话信号、或者根据文本和/或多媒体消息发送和/或接收的各种类型的数据。The mobile communication module 112 transmits the radio signals to and/or receives radio signals from at least one of a base station (e.g., an access point, a 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 in accordance with text and/or multimedia messages.
无线互联网模块113支持移动终端的无线互联网接入。该模块可以内部或外部地耦接到终端。该模块所涉及的无线互联网接入技术可以包括WLAN(无线LAN)(Wi-Fi)、Wibro(无线宽带)、Wimax(全球微波互联接入)、HSDPA(高速下行链路分组接入)等等。The wireless internet module 113 supports wireless internet access of the mobile terminal. The module can be internally or externally coupled to the terminal. The wireless Internet access technologies involved in the module may include WLAN (Wireless LAN) (Wi-Fi), Wibro (Wireless Broadband), Wimax (Worldwide Interoperability for Microwave Access), HSDPA (High Speed Downlink Packet Access), etc. .
A/V输入单元120配置为接收音频或视频信号。A/V输入单元120可以包括麦克风122,麦克风122可以在电话通话模式、记录模式、语音识别模式等等运行模式中经由麦克风接收声音(音频数据),并且能够将这样的声音处理为音频数据。处理后的音频(语音)数据可以在电话通话模式的情况下转换为可经由移动通信模块112发送到移动通信基站的格式输出。麦克风122可以实施各种类型的噪声消除(或抑制)算法以消除(或抑制)在接收和发送音频信号的过程中产生的噪声或者干扰。The A/V input unit 120 is configured to receive an audio or video signal. The A/V input unit 120 may include a microphone 122 that can receive sound (audio data) via a microphone in an operation mode of a telephone call mode, a recording mode, a voice recognition mode, and the like, and can process such sound as audio data. The processed audio (voice) data can be converted to a format output that can be transmitted to the mobile communication base station via the mobile communication module 112 in the case of a telephone call mode. The microphone 122 can implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated during the process of receiving and transmitting audio signals.
用户输入单元130可以根据用户输入的命令生成键输入数据以控制移动终端的各种操作。用户输入单元130允许用户输入各种类型的信息,并且可以包括键盘、锅仔片、触摸板(例如,检测由于被接触而导致的电阻、压力、电容等等的变化的触敏组件)、滚轮、摇杆等等。特别地,当触摸板以层的形式叠加在显示单元151上时,可以形成触摸屏。 The user input unit 130 may generate key input data according to a command input by the user to control various operations of the mobile terminal. The user input unit 130 allows the user to input various types of information, and may include a keyboard, a pot, a touch pad (eg, a touch sensitive component that detects changes in resistance, pressure, capacitance, etc. due to contact), a scroll wheel , rocker, etc. In particular, when the touch panel is superimposed on the display unit 151 in the form of a layer, a touch screen can be formed.
接口单元170用作至少一个外部装置与移动终端100连接可以通过的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、配置为连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。识别模块可以是存储用于验证用户使用移动终端100的各种信息并且可以包括用户识别模块(UIM)、客户识别模块(SIM)、通用客户识别模块(USIM)等等。另外,具有识别模块的装置(下面称为"识别装置")可以采取智能卡的形式,因此,识别装置可以经由端口或其它连接装置与移动终端100连接。接口单元170可以配置为接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到移动终端100内的一个或多个元件或者可以用于在移动终端和外部装置之间传输数据。The interface unit 170 serves as an interface through which at least one external device can connect with the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port configured to connect a device having an identification module, audio input/output (I/O) port, video I/O port, headphone port, and more. The identification module may be stored to verify various information used by the user using the mobile terminal 100 and may include a User Identification Module (UIM), a Customer Identification Module (SIM), a Universal Customer Identity Module (USIM), and the like. In addition, the device having the identification module (hereinafter referred to as "identification device") may take the form of a smart card, and thus the identification device may be connected to the mobile terminal 100 via a port or other connection device. The interface unit 170 can be configured to receive input (eg, data information, power, etc.) from an external device and transmit the received input to one or more components within the mobile terminal 100 or can be used at the mobile terminal and external device Transfer data between.
另外,当移动终端100与外部底座连接时,接口单元170可以用作允许通过其将电力从底座提供到移动终端100的路径或者可以用作允许从底座输入的各种命令信号通过其传输到移动终端的路径。从底座输入的各种命令信号或电力可以用作用于识别移动终端是否准确地安装在底座上的信号。输出单元150被构造为以视觉、音频和/或触觉方式提供输出信号(例如,音频信号、视频信号、警报信号、振动信号等等)。输出单元150可以包括显示单元151、音频输出模块152等等。In addition, when the mobile terminal 100 is connected to the external base, the interface unit 170 may function as a path through which power is supplied from the base to the mobile terminal 100 or may be used as a transmission of various command signals allowing input from the base to the mobile terminal 100 The path to the terminal. Various command signals or power input from the base can be used as signals for identifying whether the mobile terminal is accurately mounted on the base. Output unit 150 is configured to provide an output signal (eg, an audio signal, a video signal, an alarm signal, a vibration signal, 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.
显示单元151可以显示在移动终端100中处理的信息。例如,当移动终端100处于电话通话模式时,显示单元151可以显示与通话或其它通信(例如,文本消息收发、多媒体文件下载等等)相关的用户界面(UI)或图形用户界面(GUI)。当移动终端100处于视频通话模式或者图像捕获模式时,显示单元151可以显示捕获的图像和/或接收的图像、示出视频或图像以及相关功能的UI或GUI等等。The display unit 151 can 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 can display a user interface (UI) or a graphical user interface (GUI) related to a call or other communication (eg, text messaging, multimedia file download, 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 image and related functions, and the like.
同时,当显示单元151和触摸板以层的形式彼此叠加以形成触摸屏时, 显示单元151可以用作输入装置和输出装置。显示单元151可以包括液晶显示器(LCD)、薄膜晶体管LCD(TFT-LCD)、有机发光二极管(OLED)显示器、柔性显示器、三维(3D)显示器等等中的至少一种。这些显示器中的一些可以被构造为透明状以允许用户从外部观看,这可以称为透明显示器,典型的透明显示器可以例如为TOLED(透明有机发光二极管)显示器等等。根据特定想要的实施方式,移动终端100可以包括两个或更多显示单元(或其它显示装置),例如,移动终端可以包括外部显示单元(未示出)和内部显示单元(未示出)。触摸屏可用于检测触摸输入压力以及触摸输入位置和触摸输入面积。Meanwhile, when the display unit 151 and the touch panel are superposed on each other in the form of a layer to form a touch screen, The display unit 151 can be used 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 a transparent display, and a typical transparent display may be, for example, a TOLED (Transparent Organic Light Emitting Diode) display or the like. According to a particular desired embodiment, 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 can be used to detect touch input pressure as well as touch input position and touch input area.
音频输出模块152可以在移动终端处于呼叫信号接收模式、通话模式、记录模式、语音识别模式、广播接收模式等等模式下时,将无线通信单元110接收的或者在存储器160中存储的音频数据转换音频信号并且输出为声音。而且,音频输出模块152可以提供与移动终端100执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出模块152可以包括扬声器、蜂鸣器等等。The audio output module 152 may convert audio data received by the wireless communication unit 110 or stored in the memory 160 when the mobile terminal is in a call signal receiving mode, a call mode, a recording mode, a voice recognition mode, a broadcast receiving mode, and the like. The audio signal is output as sound. Moreover, the audio output module 152 can provide audio output (eg, call signal reception sound, message reception sound, etc.) associated with a particular function performed by the mobile terminal 100. The audio output module 152 can include a speaker, a buzzer, and the like.
存储器160可以存储由控制器180执行的处理和控制操作的软件程序等等,或者可以暂时地存储己经输出或将要输出的数据(例如,电话簿、消息、静态图像、视频等等)。而且,存储器160可以存储关于当触摸施加到触摸屏时输出的各种方式的振动和音频信号的数据。The memory 160 may store a software program or the like for processing and control operations performed by the controller 180, or may temporarily store data (for example, a phone book, a message, a still image, a video, etc.) that has been output or is to be output. Moreover, the memory 160 can store data regarding vibrations and audio signals of various manners that are output when a touch is applied to the touch screen.
存储器160可以包括至少一种类型的存储介质,存储介质包括闪存、硬盘、多媒体卡、卡型存储器(例如,SD或DX存储器等等)、随机访问存储器(RAM)、静态随机访问存储器(SRAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、可编程只读存储器(PROM)、磁性存储器、磁盘、光盘等等。而且,移动终端100可以与通过网络连接执行存储器160的存储功能的网络存储装置协作。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 (eg, SD or DX memory, etc.), a random access memory (RAM), a static random access memory (SRAM). , read only memory (ROM), electrically erasable programmable read only memory (EEPROM), programmable read only memory (PROM), magnetic memory, magnetic disk, optical disk, and the like. Moreover, the mobile terminal 100 can cooperate with a network storage device that performs a storage function of the memory 160 through a network connection.
控制器180通常控制移动终端的总体操作。例如,控制器180执行与语 音通话、数据通信、视频通话等等相关的控制和处理。控制器180可以执行模式识别处理,以将在触摸屏上执行的手写输入或者图片绘制输入识别为字符或图像。The controller 180 typically controls the overall operation of the mobile terminal. For example, the controller 180 executes the language Control and processing related to audio calls, data communications, video calls, etc. 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.
电源单元190在控制器180的控制下接收外部电力或内部电力并且提供操作各元件和组件所需的适当的电力。The power supply unit 190 receives external power or internal power under the control of the controller 180 and provides appropriate power required to operate the various components and components.
这里描述的各种实施方式可以以使用例如计算机软件、硬件或其任何组合的计算机可读介质来实施。对于硬件实施,这里描述的实施方式可以通过使用特定用途集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理装置(DSPD)、可编程逻辑装置(PLD)、现场可编程门阵列(FPGA)、处理器、控制器、微控制器、微处理器、被设计为执行这里描述的功能的电子单元中的至少一种来实施,在一些情况下,这样的实施方式可以在控制器180中实施。对于软件实施,诸如过程或功能的实施方式可以与允许执行至少一种功能或操作的单独的软件模块来实施。软件代码可以由以任何适当的编程语言编写的软件应用程序(或程序)来实施,软件代码可以存储在存储器160中并且由控制器180执行。The various embodiments described herein can be implemented in a computer readable medium using, for example, computer software, hardware, or any combination thereof. For hardware implementations, the embodiments described herein may be through the use of application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays ( An FPGA, a processor, a controller, a microcontroller, a microprocessor, at least one of the electronic units designed to perform the functions described herein, in some cases, such an embodiment may be at the controller 180 Implemented in the middle. For software implementations, implementations such as procedures or functions may be implemented with separate software modules that permit the execution of at least one function or operation. The software code can be implemented by a software application (or program) written in any suitable programming language, which can be stored in memory 160 and executed by controller 180.
至此,己经按照其功能描述了移动终端。下面,为了简要起见,将描述诸如折叠型、直板型、摆动型、滑动型移动终端等等的各种类型的移动终端中的滑动型移动终端作为示例。因此,本发明能够应用于任何类型的移动终端,并且不限于滑动型移动终端。So far, the mobile terminal has been described in terms of its function. Hereinafter, for the sake of brevity, a slide type mobile terminal among various types of mobile terminals such as a folding type, a bar type, a swing type, a slide type mobile terminal, and the like will be described as an example. Therefore, the present invention can be applied to any type of mobile terminal, and is not limited to a slide type mobile terminal.
如图1中所示的移动终端100可以被构造为利用经由帧或分组发送数据的诸如有线和无线通信系统以及基于卫星的通信系统来操作。The mobile terminal 100 as shown in FIG. 1 may be configured to operate using a communication system such as a wired and wireless communication system and a satellite-based communication system that transmits data via frames or packets.
基于上述移动终端硬件结构以及通信系统,提出本发明移动终端和移动终端处理器的USB接口复用的方法的各个实施例。Based on the above-described mobile terminal hardware structure and communication system, various embodiments of the method for multiplexing the USB interface of the mobile terminal and the mobile terminal processor of the present invention are proposed.
参阅图2,图2为本发明移动终端第一实施例的结构示意图。Referring to FIG. 2, FIG. 2 is a schematic structural diagram of a first embodiment of a mobile terminal according to the present invention.
在本发明移动终端第一实施例中,该移动终端应用于多通道通信,本 发明实施例应用于多通道通信时,由于移动终端中第一处理器100只有一个USB接口,应理解,本发明实施例中的用户识别卡以SIM卡作为解释说明,为实现两张SIM卡能够同时使用双4G或者双wifi数据通信,而不是现有技术中一张SIM卡使用4G通信,另一张SIM卡则只能使用3G或2G通信。In the first embodiment of the mobile terminal of the present invention, the mobile terminal is applied to multi-channel communication, When the embodiment of 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 user identification card in the embodiment of the present invention uses the SIM card as an explanation, so that two SIM cards can be implemented. At the same time, dual 4G or dual wifi data communication is used instead of one SIM card in the prior art using 4G communication, and the other SIM card can only use 3G or 2G communication.
本发明实施例移动终端包括:The mobile terminal of the embodiment of the present invention includes:
第一处理器200、第二处理器210、控制模块220和USB外接端口230,其中所述USB外接端口230包括第一路接口231和第二路接口232。本实施例中第一处理器200分别与第二处理器210、控制模块220、第一路接口231相连,第二处理器210还与第二路接口232相连。具体实施中可根据本发明实施例核心思想通过其他方式连接。The first processor 200, the second processor 210, the control module 220, and the USB external port 230, wherein the USB external port 230 includes a first way interface 231 and a second way interface 232. In this embodiment, the first processor 200 is connected to the second processor 210, the control module 220, and the first interface 231, and the second processor 210 is also connected to the second interface 232. In a specific implementation, the core idea of the embodiment of the present invention may be connected by other means.
所述控制模块220配置为在检测到所述移动终端连接上位机时,确定所述移动终端是通过所述第一路接口231还是所述第二路接口232连接所述上位机。The control module 220 is configured to determine, when the mobile terminal is connected to the upper computer, whether the mobile terminal is connected to the upper computer through the first interface 231 or the second interface 232.
其中,本实施例中USB外接端口230可以为图1中的接口单元170,第一处理器200可以为图1中的控制器180。第二处理器210可以使用与第一处理器200相同型号的处理器,也可以是相对第一处理器200相对处理能力弱的处理器,本实施例中为节省成本第二处理器210采用相对第一处理器200相对处理能力弱的处理器,第二处理器210只具有数据接收和发送功能,接收到的数据发送至第一处理器200进行处理。The USB external port 230 in this embodiment 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 the same type of processor as the first processor 200, or may be a processor with a relatively weak processing capability relative to the first processor 200. In this embodiment, the second processor 210 uses a relative cost. The first processor 200 has a processor with weak processing capability, the second processor 210 has only data receiving and transmitting functions, and the received data is sent to the first processor 200 for processing.
控制模块220实时通过USB外接端口230检测所述移动终端是否通过USB外接端口230连接至上位机,所述上位机包括电脑、电视等可以通过USB外接其他设备的电子设备,所述移动终端连接至所述上位机时,该移动终端可以认为为所述上位机的从属设备,连接时只对所述移动终端进行充电的情况除外。The control module 220 detects, in real time, whether the mobile terminal is connected to the upper computer through the USB external port 230 through the USB external port 230. The upper computer includes an electronic device such as a computer or a television that can externally connect other devices through the USB, and the mobile terminal is connected to the mobile terminal. In the case of the upper computer, the mobile terminal can be regarded as a slave device of the upper computer, except for the case where only the mobile terminal is charged when connected.
在检测到所述移动终端通过USB外接端口230连接至上位机时,确定 所述移动终端是通过第一路接口231还是所述第二路接口232连接所述上位机。在此需要说明的是本实施例中第一路接口231通常配置为用户将所述移动终端外接到上位机时,可以进行通过上位机查看、拷贝所述移动终端的部分内容的操作,通常用户将移动终端连接至上位机时使用的接口就是第一路接口231。第二路接口232通常为技术人员要使用调试第二处理器210等功能时使用的接口。当然用户也可以使用第一路接口231进行调试等功能。When it is detected that the mobile terminal is connected to the upper computer through the USB external port 230, it is determined The mobile terminal is connected to the upper computer through the first interface 231 or the second interface 232. It should be noted that, in this embodiment, the first path interface 231 is generally configured to perform an operation of viewing and copying part of the content of the mobile terminal by using a host computer when the user externally connects the mobile terminal to the upper computer. The interface used when connecting the mobile terminal to the upper computer is the first interface 231. The second interface 232 is typically an interface that a technician uses when debugging functions such as the second processor 210. Of course, the user can also use the first interface 231 for debugging and other functions.
所述控制模块220还配置为在所述移动终端通过所述第一路接口231连接所述上位机时,将所述第一处理器200中的USB接口连接至所述第一路接口231;或者在所述第一处理器200和所述第二处理器210之间进行数据通信时,将所述第一处理器200中的USB接口连接至所述第二处理器210。The control module 220 is further configured to connect the USB interface in the first processor 200 to the first interface 231 when the mobile terminal is connected to the upper computer through the first 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.
在所述控制模块220确定所述移动终端通过所述第一路接口231连接所述上位机时,控制模块220将第一处理器200中的USB接口连接至所述第一路接口231,从而使得所述移动终端连接至上位机。When the control module 220 determines that the mobile terminal is connected to the upper computer through the first path interface 231, the control module 220 connects the USB interface in the first processor 200 to the first path interface 231, thereby The mobile terminal is connected to the upper computer.
具体地,为方便用户灵活设置,从而方便使用。如图3所示,控制模块220包括:Specifically, it is convenient for the user to set up flexibly, so that it is convenient to use. As shown in FIG. 3, the control module 220 includes:
接收单元221,配置为在所述移动终端通过第一路接口连接所述上位机时,接收用户触发的切换命令。The receiving unit 221 is configured to receive a user-triggered switching command when the mobile terminal connects to the upper computer through the first path interface.
在所述移动终端通过第一路接口连接所述上位机时,可以在所述上位机或者所述移动终端的显示界面进行提示,比如检测移动终端连接至上位机,是否进行切换。当然还可以显示应用场景,比如仅进行充电、与上位机进行数据传输等。用户可以在所述上位机或者所述移动终端的显示界面进行选择对应的选项,从而产生或者不产生切换命令,比如用户选择切换时,产生切换命令,否则不产生切换命令;或者用户选择仅进行充电时, 不产生切换命令,否则产生切换命令。When the mobile terminal connects to the upper computer through the first path interface, the display may be prompted on the display interface of the upper computer or the mobile terminal, for example, detecting whether the mobile terminal is connected to the upper computer and whether to perform switching. Of course, it is also possible to display application scenarios, such as charging only, data transmission with the host computer, and the like. The user may select a corresponding option on the display interface of the upper computer or the mobile terminal, so as to generate or not generate a handover command, for example, when the user selects the handover, a handover command is generated, otherwise the handover command is not generated; or the user selects only the handover command. When charging, No switching command is generated, otherwise a switching command is generated.
切换单元222,配置为根据所述切换命令,将所述第一处理器中的USB接口连接至所述第一路接口。The switching unit 222 is configured to connect the USB interface in the first processor to the first path interface according to the switching command.
移动终端接收到用户触发的所述切换命令,将所述第一处理器200中的USB接口连接至所述第一路接口231,否则不将所述第一处理器中的USB接口连接至所述第一路接口。Receiving, by the mobile terminal, the switching command triggered by the user, connecting the USB interface in the first processor 200 to the first interface 231, otherwise not connecting the USB interface in the first processor to the The first interface is described.
如果控制模块220没有检测到所述移动终端通过第一路接口231连接所述上位机,则判断所述第一处理器200与所述第二处理210之间是否进行数据通信,需要特别说明的是此处所说的数据通信是指通过第一处理器200的USB数据传输通道进行通信,并非所述第一处理器200与所述第二处理210之间通过通用串口通道进行通信,所述通用串口通道配置为第二处理210向第一处理器200发送状态信息。在所述第一处理器200和所述第二处理器210之间进行数据通信包括:第一处理器200向第二处理器210发送数据,或者第二处理器210向第一处理器200发送数据。如果第一处理器200和所述第二处理器210之间进行数据通信,则将所述第一处理器200中的USB接口连接至所述第二处理器210。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 process 210, which requires special explanation. The data communication referred to herein refers to communication through the USB data transmission channel of the first processor 200, and the first processor 200 and the second processing 210 do not communicate through a universal serial port. The serial channel is configured to transmit status information to the first processor 200 by the second process 210. Performing data communication between the first processor 200 and the second processor 210 includes: the first processor 200 transmitting data to the second processor 210, or the second processor 210 transmitting the data to the first processor 200 data. 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.
如果检测到所述移动终端通过第二路接口232连接至所述上位机,则将控制第一处理器200的USB接口不连接至所述第一路接口231,也不连接至第二处理器210。If it is detected that the mobile terminal is connected to the upper computer through the second interface 232, the USB interface that controls the first processor 200 is not connected to the first interface 231, nor to the second processor. 210.
在第一处理器200的USB接口连接至第二处理器210时,为使得第二处理器210能够正常接收到第一处理器200发送的数据,其需要特定的电压,此时电压大于第二处理器210单独运行时的电压,具体地,本实施例中在第一处理器200的USB接口连接至第二处理器210时第二处理器210的电压为第二处理器210单独运行时的电压加5V。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, it needs a specific voltage, and the voltage is greater than the second. The voltage of the processor 210 when it is operated alone, specifically, when the voltage of the second processor 210 is connected to the second processor 210 when the USB interface of the first processor 200 is connected to the second processor 210 in this embodiment. The voltage is increased by 5V.
本领域技术人员可以知:本发明实施例的核心思想在于根据用户使用 移动终端的情况,切换该移动终端中第一处理的USB接口的连接状态,上述情况可以不分先后顺序,即判断所述第一处理器200与所述第二处理210之间是否进行数据通信也可以在检测所述移动终端是否通过USB外接端口230连接至上位机之前进行,或者同时进行。Those skilled in the art can know that the core idea of the embodiment of the present invention is to use according to the user. In the case of the mobile terminal, the connection state of the USB interface of the first process in the mobile terminal is switched, and the above situation may be determined in any order, that is, whether data communication between the first processor 200 and the second process 210 is performed. It can also be performed before detecting whether the mobile terminal is connected to the upper computer through the USB external port 230, or simultaneously.
具体实施中为确保语音业务的正常进行,可以通过设置优先级的方式,将语音业务的优先级设为高于数据业务的优先级。另外由于实际使用过程中,在连接两张SIM卡时,第一处理器200和第二处理器210每隔一定的时间都确认连接的SIM卡是否在位,具体地,每隔28秒会确认连接的SIM卡是否在位。在确认连接的SIM卡是否在位,对应的SIM卡会切换回对应的处理器。因为USB连接状态切换用时为毫秒级,且读卡确认是否在位的用时也为毫秒级,因此,设置优先级的方式,可优先保证语音业务的正常进行,并且SIM卡的切换不会影响正常的业务传输。In the specific implementation, to ensure the normal operation of the voice service, the priority of the voice service may be set to be higher than the priority of the data service by setting a priority. In addition, during the actual use, when the 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, specifically, every 28 seconds. Is the connected SIM card in place? After confirming whether the connected SIM card is in place, the corresponding SIM card will switch back to the corresponding processor. Because the USB connection state switching time is in milliseconds, and the time for reading the card to confirm whether it is in place is also in milliseconds. Therefore, setting the priority mode can ensure the normal operation of the voice service, and the switching of the SIM card does not affect the normal. Business transmission.
进一步地,为在第一处理器200的USB接口连接不同的位置时,方便移动终端进行对应的活动,本发明实施例在第一处理器100的USB接口连接不同的位置将所述移动终端中第一处理器200设置不同的状态,具体地: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 embodiment of the present invention connects the mobile terminal in a different location of the USB interface of the first processor 100. The first processor 200 sets different states, specifically:
所述第一处理器200配置为在所述移动终端通过第一路接口231连接所述上位机时,将所述第一处理器200的状态切换为从属设备状态;或者,在所述第一处理器200和所述第二处理器210之间进行数据通信时,将所述第一处理器200的状态切换为主设备状态;或者,在所述移动终端未通过第一路接口231连接所述上位机或者在所述第一处理器200和所述第二处理器210之间未进行数据通信时,将所述第一处理器200的状态切换为空。The first processor 200 is configured to switch the state of the first processor 200 to a slave device state when the mobile terminal connects to the upper computer through the first path interface 231; or, in the first When the data communication between the processor 200 and the second processor 210 is performed, the state of the first processor 200 is switched to a master device state; or, the mobile terminal is not connected through the first path interface 231. When the upper computer does not perform data communication between the first processor 200 and the second processor 210, the state of the first processor 200 is switched to null.
因为在第一处理器200的USB接口连接到不同的位置时,移动终端能够进行任务不同,比如在本实施例中移动终端作为上位机的从属设备时,移动终端的第一处理器200的USB接口连接了上位机,不能与第二处理器 210进行数据通信,为避免使用中产生冲突而使得移动终端不能正常使用,本实施例将在第一处理器100的USB接口连接不同的位置将所述移动终端中第一处理器200设置不同的状态具体地:所述第一处理器200配置为在所述移动终端通过第一路接口231连接所述上位机时,将所述第一处理器200的状态切换为从属设备状态;或者,在所述第一处理器200和所述第二处理器210之间进行数据通信时,将所述第一处理器200的状态切换为主设备状态;或者,在所述移动终端未通过第一路接口231连接所述上位机或者在所述第一处理器200和所述第二处理器210之间未进行数据通信时,将所述第一处理器200的状态切换为空。Because the mobile terminal can perform different tasks when the USB interface of the first processor 200 is connected to different locations, such as the slave device of the host computer in the embodiment, the USB interface of the first processor 200 of the mobile terminal Connected to the host computer, can not be connected to the second processor 210 performs data communication, and the mobile terminal is not used normally in order to avoid conflicts in use. In this embodiment, the first processor 200 of the mobile terminal is set differently at a different location of the USB interface of the first processor 100. Specifically, the first processor 200 is configured to switch the state of the first processor 200 to a slave device state when the mobile terminal connects to the upper computer through the first path interface 231; or When the first processor 200 and the second processor 210 perform data communication, the state of the first processor 200 is switched to a master device state; or, the mobile terminal does not pass the first path. The interface 231 is connected to the upper computer or when the data communication between the first processor 200 and the second processor 210 is not performed, the state of the first processor 200 is switched to null.
本发明实施例移动终端,所述移动终端应用于多通道通信,包括:第一处理器、第二处理器、控制模块和USB外接端口,其中所述USB外接端口包括第一路接口和第二路接口,所述控制模块配置为在检测到所述移动终端连接上位机时,确定所述移动终端是通过所述第一路接口还是所述第二路接口连接所述上位机;所述控制模块还配置为在所述移动终端通过所述第一路接口连接所述上位机时,将所述第一处理器中的USB接口连接至所述第一路接口;或者在所述第一处理器和所述第二处理器之间进行数据通信时,将所述第一处理器中的USB接口连接至所述第二处理器。通过上述方式,本发明实施例根据移动终端中第一处理器的使用情况,将移动终端第一处理器的USB接口连接至USB外接端口或第二处理器,从而实现处理器中的USB接口的复用。In the embodiment of the present invention, the mobile terminal is applied to multi-channel communication, and includes: a first processor, a second processor, a control module, and a USB external port, wherein the USB external port includes a first interface and a second interface. The control module is configured to: when detecting that the mobile terminal is connected to the upper computer, determine whether the mobile terminal is connected to the upper computer through the first interface or the second interface; the control The module is further configured to connect the USB interface in the first processor to the first path interface when the mobile terminal connects to the upper computer through the first path interface; or in the first process When data communication is performed between the device and the second processor, a USB interface in the first processor is connected to the second processor. In the above manner, the embodiment of the present invention connects the USB interface of the first processor of the mobile terminal to the USB external port or the second processor according to the usage of the first processor in the mobile terminal, thereby implementing the USB interface in the processor. Reuse.
参阅图3,图3为本发明移动终端第二实施例的结构示意图。Referring to FIG. 3, FIG. 3 is a schematic structural diagram of a second embodiment of a mobile terminal according to the present invention.
在本实施例中,该移动终端应用于多通道通信,本发明实施例应用于多通道通信时,由于移动终端中第一处理器100只有一个USB接口,为实现两张SIM卡能够同时使用双4G或者双wifi数据通信,而不是现有技术中一张SIM卡使用4G通信,另一张SIM卡则只能使用3G或2G通信。本 实施例中移动终端包括:In this embodiment, the mobile terminal is applied to multi-channel communication. When the embodiment of the present invention is applied to multi-channel communication, since the first processor 100 in the mobile terminal has only one USB interface, two SIM cards can be used simultaneously. 4G or dual wifi data communication, instead of one SIM card using 4G communication in the prior art, and another SIM card can only use 3G or 2G communication. Ben The mobile terminal in the embodiment includes:
第一处理器200、第二处理器210、控制模块220、USB外接端口230、第一电子开关S1、第二电子开关S2和从属设备供电模块240,其中所述USB外接端口230包括第一路接口231、第二路接口232。The first processor 200, the second processor 210, the control module 220, the USB external port 230, the first electronic switch S1, the second electronic switch S2, and the slave device power supply module 240, wherein the USB external port 230 includes the first path Interface 231, second interface 232.
本实施中第一电子开关S1分别与第一处理器200、第二处理器210、控制模块220和第一路接口231相连,第一处理器200还分别与控制模块220、从属设备供电模块240、第二电子开关S2和第二路接口232相连,第二处理器210还分别于第二电子开关S2、第二路接口232相连。具体实施中可根据本发明实施例核心思想通过其他方式连接。In this embodiment, the first electronic switch S1 is connected to the first processor 200, the second processor 210, the control module 220, and the first interface 231, and the first processor 200 is further connected to the control module 220 and the slave device power supply module 240, respectively. The second electronic switch S2 is connected to the second interface 232, and the second processor 210 is also connected to the second electronic switch S2 and the second interface 232, respectively. In a specific implementation, the core idea of the embodiment of the present invention may be connected by other means.
具体地,参阅图5,该用于多通道通信的移动终端中第一处理器200可以包括:应用处理模块202和第一调制解调模块201,第二处理器210可以包括:第二调制解调模块221,所述移动终端还包括:第一SIM卡250、第二SIM卡260、第一逻辑开关270和第二逻辑开关280,以及与第一调制解调模块201相连的第一射频,与第二调制解调模块221相连的第二射频。第一调制解调模块201和第二调制解调模块221可以相当于如图1中的移动通信模块112。Specifically, referring to FIG. 5, the first processor 200 in the mobile terminal for multi-channel communication may include: an application processing module 202 and a first modem module 201, where the second processor 210 may include: a second modulation solution The module 221 further includes: a first SIM card 250, a second SIM card 260, a first logic switch 270, and a second logic switch 280, and a first radio frequency connected to the first modem module 201, A second radio frequency connected to the second modem module 221. The first modem module 201 and the second modem module 221 may be equivalent to the mobile communication module 112 of FIG.
所述第一处理器200还配置为在用户使用第一SIM卡250进行语音通信时,输出第一预设电压控制所述第一逻辑开关270处于第四状态,以使得所述第一SIM卡250连接至所述第一调制解调模块201;或者在用户使用第二SIM卡260进行语音通信时,输出第二预设电压控制所述第二逻辑开关280处于第五状态,以使得所述第二SIM卡260连接至所述第一调制解调模块201。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 the user performs voice communication using the first SIM card 250, 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, outputting a second preset voltage to control the second logic switch 280 to be in a fifth state, so that the The second SIM card 260 is connected to the first modem module 201.
在本实施例中在用户使用第一SIM卡250进行语音通信时,第一调制解调模块201通过输出高低电平实现对第一逻辑开关270和第二逻辑开关280的控制。例如,当输出高电平时,第一逻辑开关270导通,使第一SIM 卡250与第一调制解调模块201连接;而输出低电平时,第一SIM卡250与第二调制解调模块221连接。或当输出高电平时,第二逻辑开关280导通,使第二SIM卡260与第一调制解调模块201连接;而输出低电平时,第二SIM卡260与第二调制解调模块221连接。In the present embodiment, when the user performs voice communication using the first SIM card 250, the first modem module 201 controls the first logic switch 270 and the second logic switch 280 by outputting a high level. For example, when outputting a high level, the first logic switch 270 is turned on, causing the first SIM The card 250 is connected to the first modem module 201; and when the low level is output, the first SIM card 250 is connected to the second modem module 221. Or when the output level is high, 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 low level is output, the second SIM card 260 and the second modem module 221 are output. connection.
在本发明的第一实施例中,若第一SIM卡250与第一调制解调模块201连接,则第一SIM卡250可通过第一调制解调模块201驻留在第一网络的PS(Packet Switching,分组交换)域和CS(Circuit Switching,电路交换)域。由此,第一SIM卡250可通过第一网络进行CS语音和PS数据业务。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 the PS of the first network through the first modem module 201 ( Packet Switching, Packet Switching, and CS (Circuit Switching). Thus, the first SIM card 250 can perform CS voice and PS data services through the first network.
同样的,若第二SIM卡260与第一调制解调模块201连接,则第二SIM卡260可通过第一调制解调模块201驻留在第一网络的PS域和CS域。由此,第二SIM卡260可通过第一网络进行CS语音和PS数据业务。Similarly, if the second SIM card 260 is connected to the first modem module 201, the second SIM card 260 can 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 over the first network.
若第一SIM卡250与第二调制解调模块221建立连接,则第一SIM卡250可通过第二调制解调模块221驻留在第二网络的PS域。由此,第一SIM卡250可通过第二网络进行PS数据业务。If the first SIM card 250 establishes a connection with the second modem module 221, the first SIM card 250 can 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 services through the second network.
同样的,若第二SIM卡260与第二调制解调模块221建立连接,则第二SIM卡260可通过第二调制解调模块221驻留在第二网络的PS域。由此,第二SIM卡260可通过第二网络进行PS数据业务。Similarly, if the second SIM card 260 establishes a connection with the second modem module 221, the second SIM card 260 can 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.
第一网络和第二网络可以是不同运营商的不同网络,也可是同一运营商的不同或相同网络。第一网络和第二网络可均为4G网络(例如,LTE网络等4G网络)。The first network and the second network may be different networks of different operators, or different or identical networks of the same carrier. The first network and the second network may both be 4G networks (eg, 4G networks such as LTE networks).
第一调制解调模块201支持PS数据业务和CS语音业务,第二调制解调模块221仅支持PS数据业务。当与第二调制解调模块221连接的数据卡(第一SIM卡250或第二SIM卡260)有CS语音业务时,第一调制解调模块201控制逻辑开关(第一逻辑开关270或第二逻辑开关280)使得相应的数据卡与第一调制解调模块201连接,以实现CS语音业务。 The first modem module 201 supports PS data services and CS voice services, and the second modem module 221 supports only PS data services. When the data card (the first SIM card 250 or the second SIM card 260) connected to the second modem module 221 has a CS voice service, the first modem module 201 controls the logic switch (the first logic switch 270 or the The second logic switch 280) causes the corresponding data card to be connected to the first modem module 201 to implement the CS voice service.
应理解,若为PS语音业务,则其按照PS数据业务的传输进行传输。应用处理模块202接收用户的操作指令,若操作指令为通过第一SIM卡250进行CS语音业务,则:第一调制解调模块201输出第一控制指令控制第一第二逻辑开关28070使得第一SIM卡250与第一调制解调模块201连接。通过第一SIM卡250进行CS语音业务的流程包括:It should be understood that if it is a PS voice service, it is transmitted according to the transmission of the PS data service. The application processing module 202 receives the operation instruction of the user. If the operation instruction is the CS voice service through the first SIM card 250, the first modem module 201 outputs a first control command to control the first second logic switch 28070 so that the first The SIM card 250 is coupled to the first modem module 201. The process of performing CS voice service through the first SIM card 250 includes:
首先,建立语音通信连接:应用处理模块将操作指令传输给第一调制解调模块201,通过第一射频向eNodeB发送RRC连接请求等流程以建立与被叫方的语音通信连接。First, a voice communication connection is established: the application processing module transmits the operation instruction to the first modem module 201, and sends an RRC connection request and the like to the eNodeB through the first radio frequency to establish a voice communication connection with the called party.
语音通信连接建立后,语音上行传输过程为:麦克风采集语音信号,编解码器接收采集的语音信号并进行模数转换后传输给数字信号处理芯片;数字信号处理芯片对接收到的信号进行音频处理并传输给第一调制解调模块201;第一射频将经第一调制解调模块201处理后的信号进行发送。语音下行传输过程为:第一射频接收下行信号并传输给第一调制解调模块201;数字信号处理芯片(ADSP)对经第一调制解调模块201处理后的信号进行音频处理并传输给编解码器(codec);编解码器对接收到的信号进行模数转换后传输至听筒。After the voice communication connection is established, the voice uplink transmission process is: the microphone collects the voice signal, and the codec receives the collected voice signal and performs analog-to-digital conversion and transmits the signal to the digital signal processing chip; the digital signal processing chip performs audio processing on the received signal. And transmitting to the first modem module 201; the first radio frequency transmits the signal processed by the first modem module 201. The downlink downlink transmission process is: 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 the codec. A decoder (codec); the codec performs analog-to-digital conversion on the received signal and transmits it to the handset.
应用处理模块接收用户的操作指令,若操作指令为通过第二SIM卡260进行CS语音业务,则:第一调制解调模块201输出第二控制指令控制第二逻辑开关280使得第二SIM卡260与第一调制解调模块201连接。通过第二SIM卡260进行CS语音业务的流程包括:The application processing module receives the operation instruction of the user. If the operation instruction is the CS voice service through the second SIM card 260, the first modem module 201 outputs the second control command to control the second logic switch 280 such that the second SIM card 260 It is connected to the first modem module 201. The process of performing the CS voice service through the second SIM card 260 includes:
首先,建立语音通信连接:应用处理模块将操作指令传输给第一调制解调模块201,通过第一射频向eNodeB发送RRC连接请求等流程以建立与被叫方的语音通信连接。First, a voice communication connection is established: the application processing module transmits the operation instruction to the first modem module 201, and sends an RRC connection request and the like to the eNodeB through the first radio frequency to establish a voice communication connection with the called party.
语音通信连接建立后,语音上行传输过程为:麦克风采集语音信号,编解码器接收采集的语音信号并进行模数转换后传输给数字信号处理芯 片;数字信号处理芯片对接收到的信号进行音频处理并传输给第一调制解调模块201;第一射频将经第一调制解调模块201处理后的信号进行发送。语音下行传输过程为:第一射频接收下行信号并传输给第一调制解调模块201;数字信号处理芯片对经第一调制解调模块201处理后的信号进行音频处理并传输给编解码器;编解码器对接收到的信号进行模数转换后传输至听筒。After the voice communication connection is established, the voice uplink transmission process is: the microphone collects the voice signal, and the codec receives the collected voice signal and performs analog-to-digital conversion and transmits the signal to the digital signal processing core. The digital signal processing chip performs audio processing on the received signal and transmits the signal to the first modem module 201; the first RF transmits the signal processed by the first modem module 201. The downlink downlink transmission process is: 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 modem module 201 and transmits the signal to the codec; The codec performs analog-to-digital conversion on the received signal and transmits it to the handset.
应用处理模块接收用户的操作指令,若操作指令为通过第一SIM卡250进行PS数据业务,则第一调制解调模块201输出第一控制指令控制第一逻辑开关270导通第一SIM卡250与第一调制解调模块201的连接通道,也输出第二控制指令控制第一逻辑开关270导通第一SIM卡250与第二调制解调模块221的连接通道,其均可实现PS数据业务的传输。The application processing module receives the operation instruction of the user. If the operation instruction is to perform the PS data service through the first SIM card 250, the first modem module 201 outputs the first control instruction to control the first logic switch 270 to turn on the first SIM card 250. The connection channel with the first modem module 201 also outputs a second control command to control the first logic switch 270 to turn on the connection channel of the first SIM card 250 and the second modem module 221, which can implement the PS data service. Transmission.
具体的,若导通第一SIM卡250与第一调制解调模块201的连接通道,则PS数据业务的传输流程为:应用处理模块接收数据,并传输给第一调制解调模块201;第一射频将第一调制解调模块201处理后的上行信号传输至第一网络(4G网络),以及接收来自第一网络(4G网络)的下行信号,并传输给第一调制解调模块201处理;应用处理模块将第一调制解调模块201处理后的下行信号进行输出。Specifically, if the connection path between the first SIM card 250 and the first modem module 201 is turned on, the transmission process of the PS data service is: the application processing module receives the data, and transmits the data to the first modem module 201; The radio frequency transmits the uplink signal processed by the first modem module 201 to the first network (4G network), and 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.
若导通第一SIM卡250与第二调制解调模块221的连接通道,则PS数据业务的传输流程为:应用处理模块接收数据,并传输给第二调制解调模块221;射频2将第二调制解调模块221处理后的上行信号传输至LTE网络,以及接收来自LTE网络的下行信号,并传输给第二调制解调模块221处理;应用处理模块将第二调制解调模块221处理后的下行信号进行输出。If the connection path between the first SIM card 250 and the second modem module 221 is turned on, the transmission process of the PS data service is: the application processing module receives the data, and transmits the data to the second modem module 221; The uplink signal processed by the second modem module 221 is transmitted to the LTE network, and the downlink signal from the LTE network is received and transmitted to the second modem module 221 for processing; and the application processing module processes the second modem module 221 The downstream signal is output.
若操作指令为通过第二SIM卡260进行PS数据业务,则第一调制解调模块201可输出第一控制指令控制第二逻辑开关280导通第二SIM卡260与第一调制解调模块201的连接通道,也可输出第二控制指令控制第二逻 辑开关280导通第二SIM卡260与第二调制解调模块221的连接通道,其均可实现PS数据业务的传输。If the operation command is to perform PS data service by using the second SIM card 260, the first modem module 201 may output a first control command to control the second logic switch 280 to turn on the second SIM card 260 and the first modem module 201. Connection channel, can also output a second control command to control the second logic The switch 280 turns on the connection channel of the second SIM card 260 and the second modem module 221, which can realize the transmission of the PS data service.
具体的,若导通第二SIM卡260与第一调制解调模块201的连接通道,则PS数据业务的传输流程为:应用处理模块接收数据,并传输给第一调制解调模块201;第一射频将第一调制解调模块201处理后的上行信号传输至第一网络(4G网络),以及接收来自第一网络(4G网络)的下行信号,并传输给第一调制解调模块201处理;应用处理模块将第一调制解调模块201处理后的下行信号进行输出。Specifically, if the connection path between the second SIM card 260 and the first modem module 201 is turned on, the transmission process of the PS data service is: the application processing module receives the data, and transmits the data to the first modem module 201; The radio frequency transmits the uplink signal processed by the first modem module 201 to the first network (4G network), and 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.
若导通第二SIM卡260与第二调制解调模块221的连接通道,则PS数据业务的传输流程为:应用处理模块接收数据,并传输给第二调制解调模块221;射频2将第二调制解调模块221处理后的上行信号传输至第二网络(4G网络),以及接收来自第二网络(4G网络)的下行信号,并传输给第二调制解调模块221处理;应用处理模块将第二调制解调模块221处理后的下行信号进行输出。If the connection path between the second SIM card 260 and the second modem module 221 is turned on, the transmission process of the PS data service is: the application processing module receives the data, and transmits the data to the second modem module 221; The uplink signal processed by the second modem module 221 is transmitted to the second network (4G network), and the downlink signal from the second network (4G network) is received and transmitted to the second modem module 221 for processing; the application processing module The downlink signal processed by the second modem module 221 is output.
所述控制模块还配置为在所述第一电子开关处于第一状态时,断开所述第一处理器与所述第二处理之间的数据通信。The control module is further configured to disconnect data communication between the first processor and the second process when the first electronic switch is in a first state.
所述控制模块220配置为在检测到所述移动终端连接上位机时,确定所述移动终端是通过所述第一路接口231还是所述第二路接口232连接所述上位机。The control module 220 is configured to determine, when the mobile terminal is connected to the upper computer, whether the mobile terminal is connected to the upper computer through the first interface 231 or the second interface 232.
其中,本实施例中USB外接端口230可以为图1中的接口单元170,第一处理器200可以为图1中的控制器180。第二处理器210可以使用与第一处理器200相同型号的处理器,也可以是相对第一处理器200相对处理能力弱的处理器,本实施例中为节省成本第二处理器210采用相对第一处理器200相对处理能力弱的处理器,第二处理器210只具有数据接收和发送功能,接收到的数据发送至第一处理器200进行处理。 The USB external port 230 in this embodiment 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 the same type of processor as the first processor 200, or may be a processor with a relatively weak processing capability relative to the first processor 200. In this embodiment, the second processor 210 uses a relative cost. The first processor 200 has a processor with weak processing capability, the second processor 210 has only data receiving and transmitting functions, and the received data is sent to the first processor 200 for processing.
控制模块220实时通过USB外接端口230检测所述移动终端是否通过USB外接端口230连接至上位机,所述上位机包括电脑、电视等可以通过USB外接其他设备的电子设备,所述移动终端连接至所述上位机时,该移动终端可以认为为所述上位机的从属设备,连接时只对所述移动终端进行充电的情况除外。The control module 220 detects, in real time, whether the mobile terminal is connected to the upper computer through the USB external port 230 through the USB external port 230. The upper computer includes an electronic device such as a computer or a television that can externally connect other devices through the USB, and the mobile terminal is connected to the mobile terminal. In the case of the upper computer, the mobile terminal can be regarded as a slave device of the upper computer, except for the case where only the mobile terminal is charged when connected.
在检测到所述移动终端通过USB外接端口230连接至上位机时,确定所述移动终端是通过第一路接口231还是所述第二路接口232连接所述上位机。在此需要说明的是本实施例中第一路接口231通常配置为用户将所述移动终端外接到上位机时,可以进行通过上位机查看、拷贝所述移动终端的部分内容的操作,通常用户将移动终端连接至上位机时使用的接口就是第一路接口231。第二路接口232通常为技术人员要使用调试第二处理器210等功能时使用的接口。当然用户也可以使用第一路接口231进行调试等功能。When it is detected that 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 interface 231 or the second interface 232. It should be noted that, in this embodiment, the first path interface 231 is generally configured to perform an operation of viewing and copying part of the content of the mobile terminal by using a host computer when the user externally connects the mobile terminal to the upper computer. The interface used when connecting the mobile terminal to the upper computer is the first interface 231. The second interface 232 is typically an interface that a technician uses when debugging functions such as the second processor 210. Of course, the user can also use the first interface 231 for debugging and other functions.
所述控制模块220还配置为在所述移动终端是通过第一路接口131连接所述上位机时,控制所述第一电子开关S1处于第一状态,以使得所述第一处理器中的USB接口连接至所述第一路接口231;或者在所述第一处理器200和所述第二处理器210之间进行数据通信时,将所述第一电子开关S1处于第二状态,以使得所述第一处理器200中的USB接口连接至所述第二处理器210;或者在所述移动终端未通过第一路接口231连接所述上位机或者在所述第一处理器200和所述第二处理器210之间未进行数据通信时,控制所述第一电子开关S1处于第三状态。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 interface 131, so that the first processor is in the first processor a USB interface is connected to the first 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 a second state, Enabling a USB interface in the first processor 200 to be connected to the second processor 210; or connecting the upper computer or the first processor 200 to the mobile terminal without using the first path interface 231 When the second processor 210 does not perform data communication, the first electronic switch S1 is controlled to be in the third state.
所述第一处理器200还配置为在所述移动终端通过所述第二路接口232连接所述上位机时,控制所述第二电子开关S2闭合,以使得所述第二处理器210与所述上位机连接,并通过所述控制模块220控制所述第一电子开关S1处于第三状态。 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 interface 232, so that the second processor 210 is The upper computer is connected, and the first electronic switch S1 is controlled to be in a third state by the control module 220.
在所述控制模块220确定所述移动终端通过所述第一路接口231连接所述上位机时,控制模块220,控制所述第一电子开关S1处于第一状态,本实施例中第一状态为第一电子开关S1闭合至第一路接口231的一端,将第一处理器200中的USB接口连接至所述第一路接口231,从而使得所述移动终端连接至上位机。When the control module 220 determines that the mobile terminal is connected to the upper computer through the first path interface 231, the control module 220 controls the first electronic switch S1 to be in a first state, in the first state in this embodiment. The first electronic switch S1 is closed to one end of the first interface 231, and the USB interface in the first processor 200 is connected to the first interface 231, so that the mobile terminal is connected to the upper computer.
具体地,为方便用户灵活设置,从而方便使用。控制模块220包括:Specifically, it is convenient for the user to set up flexibly, so that it is convenient to use. The control module 220 includes:
接收单元221,配置为在所述移动终端通过第一路接口连接所述上位机时,接收用户触发的切换命令。The receiving unit 221 is configured to receive a user-triggered switching command when the mobile terminal connects to the upper computer through the first path interface.
在所述移动终端通过第一路接口连接所述上位机时,可以在所述上位机或者所述移动终端的显示界面进行提示,比如检测移动终端连接至上位机,是否进行切换。当然还可以显示应用场景,比如仅进行充电、与上位机进行数据传输等。用户可以在所述上位机或者所述移动终端的显示界面进行选择对应的选项,从而产生或者不产生切换命令,比如用户选择切换时,产生切换命令,否则不切换;或者用户选择仅进行充电时,不产生切换命令,否则产生切换命令。When the mobile terminal connects to the upper computer through the first path interface, the display may be prompted on the display interface of the upper computer or the mobile terminal, for example, detecting whether the mobile terminal is connected to the upper computer and whether to perform switching. Of course, it is also possible to display application scenarios, such as charging only, data transmission with the host computer, and the like. The user may select a corresponding option on the display interface of the upper computer or the mobile terminal, so as to generate or not generate a switching command, for example, when the user selects the switching, a switching command is generated, otherwise the user does not switch; or the user selects only charging. , does not generate a switch command, otherwise a switch command is generated.
切换单元222,配置为根据所述切换命令,将所述第一处理器中的USB接口连接至所述第一路接口。The switching unit 222 is configured to connect the USB interface in the first processor to the first path interface according to the switching command.
移动终端接收到用户触发的所述切换命令,控制所述第一电子开关S1处于第一状态,本实施例中第一状态为第一电子开关S1闭合至第一路接口231的一端,从而将所述第一处理器200中的USB接口连接至所述第一路接口231,否则不进行切换。当然第一电子开关S1也可以通过软件实现。The mobile terminal receives the switching command triggered by the user, and controls the first electronic switch S1 to be in the first state. In this embodiment, the first state is that the first electronic switch S1 is closed to one end of the first interface 231, thereby The USB interface in the first processor 200 is connected to the first path interface 231, otherwise no handover is performed. Of course, the first electronic switch S1 can also be implemented by software.
如果控制模块220没有检测到所述移动终端通过第一路接口231连接所述上位机,则判断所述第一处理器200与所述第二处理210之间是否进行数据通信,需要特别说明的是此处所说的数据通信是指通过第一处理器200的USB数据传输通道进行通信,并非所述第一处理器200与所述第二 处理210之间通过通用串口通道进行通信,所述通用串口通道配置为第二处理210向第一处理器200发送状态信息。在所述第一处理器200和所述第二处理器210之间进行数据通信包括:第一处理器200向第二处理器210发送数据,或者第二处理器210向第一处理器200发送数据。如果第一处理器200和所述第二处理器210之间进行数据通信,则将所述第一处理器200中的USB接口连接至所述第二处理器210。在所述第一处理器200与所述第二处理210之间是否进行数据通信时,将所述第一电子开关S1处于第二状态,本实施例中将第一电子开关S1闭合至第二处理器210的一端,以使得所述第一处理器200中的USB接口连接至所述第二处理器210。在所述移动终端未通过第一路接口连接所述上位机或者在所述第一处理器和所述第二处理器之间未进行数据通信时,控制所述第一电子开关处于第三状态,本实施例中第三状态为悬空,即不闭合。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 process 210, which requires special explanation. The data communication referred to herein refers to communication through the USB data transmission channel of the first processor 200, not the first processor 200 and the second The processes 210 communicate via a universal serial port that is configured to transmit status information to the first processor 200 by the second process 210. Performing data communication between the first processor 200 and the second processor 210 includes: the first processor 200 transmitting data to the second processor 210, or the second processor 210 transmitting the data to the first processor 200 data. 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 performed between the first processor 200 and the second process 210, the first electronic switch S1 is in the second state, and in the embodiment, the first electronic switch S1 is closed to the second state. One end of the processor 210 is such that a USB interface in the first processor 200 is connected to the second processor 210. Controlling the first electronic switch to be in a third state when the mobile terminal is not connected to the upper computer through a first path interface or when data communication is not performed between the first processor and the second processor In this embodiment, the third state is suspended, that is, not closed.
如果检测到所述移动终端通过第二路接口232连接至所述上位机,则将控制第一处理器200的USB接口不连接至所述第一路接口231,也不连接至第二处理器210。If it is detected that the mobile terminal is connected to the upper computer through the second interface 232, the USB interface that controls the first processor 200 is not connected to the first interface 231, nor to the second processor. 210.
从属设备供电模块240,配置为在所述第一处理器200和所述第二处理器210之间进行数据通信时,为所述第二处理器210提供预设电压;或者在移动终端通过第二路接口232连接所述上位机时,为所述第二路接口232提供预设电压。The slave device power supply module 240 is configured to provide a preset voltage for the second processor 210 when performing data communication between the first processor 200 and the second processor 210; or When the two-way interface 232 is connected to the upper computer, a preset voltage is provided for the second interface 232.
在第一处理器200的USB接口连接至第二处理器210时,为使得第二处理器210能够正常接收到第一处理器200发送的数据,其需要特定的电压,此时电压大于第二处理器210单独运行时的电压,具体地,本实施例中在第一处理器200的USB接口连接至第二处理器210时,控制从属设备供电模块240为所述第二处理器210提供预设电压,所述预设电压可以根据实际情况进行设置,比如预设电压为5V;同时,由于USB外接端口230 的第二路接口232能正常使用时也需要额外的电压才能正常运行,在移动终端通过第二路接口232连接所述上位机时,为所述第二路接口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 the data sent by the first processor 200, it needs a specific voltage, and the voltage is greater than the second. The voltage of the processor 210 when it is operated alone. Specifically, when the USB interface of the first processor 200 is connected to the second processor 210 in this embodiment, the slave power supply module 240 is controlled to provide the second processor 210 with a preset. Set the voltage, the preset voltage can be set according to the actual situation, for example, the preset voltage is 5V; meanwhile, due to the USB external port 230 When the second interface 232 is normally used, an additional voltage is required to operate normally. When the mobile terminal connects the upper computer through the second interface 232, the preset voltage is provided for the second interface 232.
本领域技术人员可以知:本发明实施例的核心思想在于根据用户使用移动终端的情况,切换该移动终端中第一处理的USB接口的连接状态,上述情况可以不分先后顺序,即判断所述第一处理器200与所述第二处理210之间是否进行数据通信也可以在检测所述移动终端是否通过USB外接端口230连接至上位机之前进行,或者同时进行。A person skilled in the art can understand that the core idea of the embodiment of the present invention is to switch the connection state of the first processed USB interface in the mobile terminal according to the situation in which the user uses the mobile terminal, and the foregoing may be determined in any order, that is, Whether data communication is performed between the first processor 200 and the second process 210 may also be performed before detecting whether the mobile terminal is connected to the upper computer through the USB external port 230, or simultaneously.
具体实施中为确保语音业务的正常进行,可以通过设置优先级的方式,将语音业务的优先级设为高于数据业务的优先级。另外由于实际使用过程中,用户设备开机之后,用户设备和数据卡之间28秒通信一次,以确认数据卡是否在位保证通信的正常。该28秒通信一次是由与数据卡相连接的处理芯片控制的,例如,处理芯片向数据卡发送一空数据,若得到响应则确认数据卡在位,否则数据卡不在位。In the specific implementation, to ensure the normal operation of the voice service, the priority of the voice service may be set to be higher than the priority of the data service by setting a priority. In addition, due to the actual use, after the user equipment is turned on, the user equipment and the data card communicate once every 28 seconds to confirm whether the data card is in place to ensure normal communication. The 28 second communication is controlled by the processing chip connected to the data card. For example, the processing chip sends a blank data to the data card. If the response is received, the data card is confirmed to be in place, otherwise the data card is not in place.
第一调制解调模块201还配置为以预设时间间隔向第一SIM卡250或第二SIM卡260发送信息以进行数据卡的在位确认;The first modem module 201 is further configured to send information to the first SIM card 250 or the second SIM card 260 at a preset time interval for in-place confirmation of the data card;
若对第一SIM卡250进行在位确认时(默认第一SIM卡250应与第一调制解调模块201连接),第一SIM卡250未与第一调制解调模块201连接,则第一调制解调模块201还配置为发出第一控制指令以控制逻辑开关1导通第一SIM卡250与第一调制解调模块201的连接通路。If the first SIM card 250 is in-position confirmed (the default 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 The modem module 201 is further configured to issue a first control command to control the logic switch 1 to turn on the connection path of the first SIM card 250 and the first modem module 201.
若对第二SIM卡260进行在位确认时(默认第二SIM卡260应与第一调制解调模块201连接),第二SIM卡260未与第一调制解调模块201连接,则第一调制解调模块201还配置为发出第二控制指令以控制逻辑开关2导通第二SIM卡260与第一处理芯片的连接通路。If the second SIM card 260 is in-position confirmed (the default 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 The modem module 201 is further configured to issue a second control command to control the logic switch 2 to conduct a connection path between the second SIM card 260 and the first processing chip.
同样的,第二调制解调模块221还配置为以预设时间间隔向第一SIM 卡250或第二SIM卡260发送信息以进行数据卡的在位确认;Similarly, the second modem module 221 is further configured to forward to the first SIM at preset time intervals. Card 250 or second SIM card 260 sends information for in-place confirmation of the data card;
若对第一SIM卡250进行在位确认时(默认第一SIM卡250应与第二调制解调模块221连接),第一SIM卡250未与第二调制解调模块221连接,则第一调制解调模块201还配置为发出第一控制指令以控制逻辑开关1导通第一SIM卡250与第二调制解调模块221的连接通路。If the first SIM card 250 is in-position confirmed (the default 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 The modem module 201 is further configured to issue a first control command to control the logic switch 1 to turn on the connection path of the first SIM card 250 and the second modem module 221.
若对第二SIM卡260进行在位确认时(默认第一SIM卡250应与第二调制解调模块221连接),第二SIM卡260未与第二调制解调模块221连接,则第一调制解调模块201还配置为发出第二控制指令以控制逻辑开关2导通第二SIM卡260与第二调制解调模块221的连接通路。If the second SIM card 260 is in-position confirmed (the default 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 The modem module 201 is further configured to issue a second control command to control the logic switch 2 to turn on the connection path of the second SIM card 260 and the second modem module 221.
例如,若本来与第二调制解调模块221连接的第二SIM卡260被切换连接到第一调制解调模块201时(例如,切换至第一调制解调模块201以进行PS数据业务),每28秒需切换回第二调制解调模块221,即通过控制逻辑开关2使其连接到第二调制解调模块221,以完成数据卡在位的确认,待读卡确认完成后,第二SIM卡260被再次切换回第一处理芯片,以保证通信的正常进行。依此类推,若本来与第一处理芯片连接的第一SIM卡250被切换连接到第二调制解调模块221时,每28秒需切换回第一处理芯片,即通过控制逻辑开关1使其连接到第一调制解调模块201,以完成数据卡在位的确认,待读卡确认完成后,第一SIM卡250被再次切换回第二调制解调模块221,以保证通信的正常进行。For example, if the second SIM card 260 originally connected to the second modem module 221 is switched to be connected to the first modem module 201 (for example, switching to the first modem module 201 for PS data service), Every 28 seconds, it is required to switch back to the second modem module 221, that is, to connect to the second modem module 221 through the control logic switch 2, to complete the confirmation of the data card in place, after the card confirmation is completed, the second The SIM card 260 is switched back to the first processing chip again to ensure normal communication. And so on, if the first SIM card 250 originally connected to the first processing chip is switched and connected to the second modem module 221, it needs to switch back to the first processing chip every 28 seconds, that is, by controlling the logic switch 1 Connected to the first modem module 201 to complete the confirmation of the data card in place. After the card confirmation is completed, the first SIM card 250 is switched back to the second modem module 221 again to ensure normal communication.
逻辑开关的切换用时为毫秒级,且读卡确认是否在位的用时也为毫秒级,因此,数据卡的切换不会影响正常的业务传输。The switching time of the logic switch is in the order of milliseconds, and the time for reading the card to confirm whether the bit is in place is also millisecond. Therefore, the switching of the data card does not affect the normal service transmission.
通过设置优先级的方式,将语音业务的优先级设为高于数据业务的优先级,以保证在数据卡在位确认的过程中,可优先保证语音业务的正常进行。By setting the priority, the priority of the voice service is set to be higher than the priority of the data service, so that the voice service can be preferentially guaranteed during the process of confirming the data card.
根据上述的在位确认机制,在第一SIM卡250与第二调制解调模块221 连接进行数据业务传输时,第一SIM卡250还可同时与第一调制解调模块201连接进行语音传输。只需保证在位确认时,第一SIM卡250在位即可。According to the in-position acknowledgment mechanism described above, the first SIM card 250 and the second modem module 221 When the connection is for data service transmission, the first SIM card 250 can 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 the bit is confirmed.
根据上述的在位确认机制,第二SIM卡260与第二调制解调模块221连接进行数据业务传输时,第二SIM卡260还与第一调制解调模块201连接进行语音传输。只需保证在位确认时,第二SIM卡260在位即可。According to the in-position acknowledgment mechanism described above, 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 the bit is confirmed.
根据上述的在位确认机制,第一SIM卡250与第一调制解调模块201连接进行数据业务传输及语音业务时,第二SIM卡260还与第二调制解调模块221连接进行数据业务传输。只需保证在位确认时,第一SIM卡250核第二SIM卡260分别均在位即可。According to the in-position acknowledgment 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 also connected to the second modem module 221 for data service transmission. . It is only necessary to ensure that the first SIM card 250 and the second SIM card 260 are in place when the bit is confirmed.
根据上述的在位确认机制,第二SIM卡260与第一调制解调模块201连接进行数据业务传输及语音业务时,第一SIM卡250还与第二调制解调模块221连接进行数据业务传输。只需保证在位确认时,第一SIM卡250核第二SIM卡260分别均在位即可。According to the in-position acknowledgment 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. . It is only necessary to ensure that the first SIM card 250 and the second SIM card 260 are in place when the bit is confirmed.
进一步地,为在第一处理器200的USB接口连接不同的位置时,方便移动终端进行对应的活动,本发明实施例在第一处理器100的USB接口连接不同的位置将所述移动终端中第一处理器200设置不同的状态,具体地: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 embodiment of the present invention connects the mobile terminal in a different location of the USB interface of the first processor 100. The first processor 200 sets different states, specifically:
所述第一处理器200配置为在所述移动终端通过第一路接口231连接所述上位机时,将所述第一处理器200的状态切换为从属设备状态;或者,在所述第一处理器200和所述第二处理器210之间进行数据通信时,将所述第一处理器200的状态切换为主设备状态;或者,在所述移动终端未通过第一路接口231连接所述上位机或者在所述第一处理器200和所述第二处理器210之间未进行数据通信时,将所述第一处理器200的状态切换为空。The first processor 200 is configured to switch the state of the first processor 200 to a slave device state when the mobile terminal connects to the upper computer through the first path interface 231; or, in the first When the data communication between the processor 200 and the second processor 210 is performed, the state of the first processor 200 is switched to a master device state; or, the mobile terminal is not connected through the first path interface 231. When the upper computer does not perform data communication between the first processor 200 and the second processor 210, the state of the first processor 200 is switched to null.
因为在第一处理器200的USB接口连接到不同的位置时,移动终端能够进行任务不同,比如在本实施例中移动终端作为上位机的从属设备时, 移动终端的第一处理器200的USB接口连接了上位机,不能与第二处理器210进行数据通信,为避免使用中产生冲突而使得移动终端不能正常使用,本实施例将在第一处理器100的USB接口连接不同的位置将所述移动终端中第一处理器200设置不同的状态具体地:所述第一处理器200配置为在所述移动终端通过第一路接口231连接所述上位机时,将所述第一处理器200的状态切换为从属设备状态;或者,在所述第一处理器200和所述第二处理器210之间进行数据通信时,将所述第一处理器200的状态切换为主设备状态;或者,在所述移动终端未通过第一路接口231连接所述上位机或者在所述第一处理器200和所述第二处理器210之间未进行数据通信时,将所述第一处理器200的状态切换为空。Because the mobile terminal can perform different tasks when the USB interface of the first processor 200 is connected to different locations, for example, in the embodiment, when the mobile terminal is a slave device of the upper computer, The USB interface of the first processor 200 of the mobile terminal is connected to the host computer, and cannot perform data communication with the second processor 210. In order to avoid the conflict in use, the mobile terminal cannot be used normally. This embodiment will be in the first processor. The USB interface of 100 is connected to different locations, and the first processor 200 of the mobile terminal is set to a different state. Specifically, the first processor 200 is configured to connect the upper terminal to the mobile terminal through the first interface 231. Switching the state of the first processor 200 to the slave device state; or, when performing data communication between the first processor 200 and the second processor 210, the first process The state of the device 200 is switched to the master device state; or, the mobile terminal is not connected to the host computer through the first path interface 231 or is not performed between the first processor 200 and the second processor 210 At the time of data communication, the state of the first processor 200 is switched to null.
本发明实施例进一步提供一种移动终端处理器的USB接口复用的方法。The embodiment of the invention further provides a method for multiplexing a USB interface of a mobile terminal processor.
参照图6,在本发明移动终端处理器的USB接口复用的方法的第一实施例中,该方法包括:Referring to FIG. 6, in a first embodiment of a method for multiplexing a USB interface of a mobile terminal processor of the present invention, the method includes:
步骤S10,在检测到所述移动终端连接上位机时,确定所述移动终端是通过第一路接口还是第二路接口连接所述上位机;Step S10, when detecting that the mobile terminal is connected to the upper computer, determining whether the mobile terminal is connected to the upper computer through the first interface or the second interface;
本实施例可以基于图2的电路结构图实现,当然也可以根据本发明实施例核心思想应用到其他移动终端,本发明实施例实时通过USB外接端口230检测所述移动终端是否通过USB外接端口230连接至上位机,所述上位机包括电脑、电视等可以通过USB外接其他设备的电子设备,所述移动终端连接至所述上位机时,该移动终端可以认为为所述上位机的从属设备,连接时只对所述移动终端进行充电的情况除外。The present embodiment can be implemented based on the circuit structure diagram of FIG. 2, and of course, the core idea of the embodiment of the present invention can be applied to other mobile terminals. In the embodiment of the present invention, the mobile terminal is detected by the USB external port 230 through the USB external port 230. Connecting to the upper computer, the upper computer includes an electronic device that can externally connect other devices through a USB, and the mobile terminal can be regarded as a slave device of the upper computer when the mobile terminal is connected to the upper computer. Except when charging the mobile terminal only when connected.
在检测到所述移动终端通过USB外接端口230连接至上位机时,确定所述移动终端是通过第一路接口231还是所述第二路接口232连接所述上位机。在此需要说明的是本实施例中第一路接口231通常配置为用户将所 述移动终端外接到上位机时,可以进行通过上位机查看、拷贝所述移动终端的部分内容的操作,通常用户将移动终端连接至上位机时使用的接口就是第一路接口231。第二路接口232通常为技术人员要使用调试第二处理器210等功能时使用的接口。当然用户也可以使用第一路接口231进行调试等功能。When it is detected that 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 interface 231 or the second interface 232. It should be noted that the first path interface 231 in this embodiment is generally configured as a user. When the mobile terminal is externally connected to the upper computer, the operation of viewing and copying part of the content of the mobile terminal by the upper computer can be performed. Generally, the interface used by the user to connect the mobile terminal to the upper computer is the first interface 231. The second interface 232 is typically an interface that a technician uses when debugging functions such as the second processor 210. Of course, the user can also use the first interface 231 for debugging and other functions.
步骤S20,在所述移动终端通过所述第一路接口连接所述上位机时,将所述第一处理器中的USB接口连接至所述第一路接口;或者在所述第一处理器和所述第二处理器之间进行数据通信时,将所述第一处理器中的USB接口连接至所述第二处理器。Step S20, when the mobile terminal connects to the upper computer through the first path interface, connect a USB interface in the first processor to the first path interface; or in the first processor And performing a data communication with the second processor to connect the USB interface in the first processor to the second processor.
在所述控制模块220确定所述移动终端通过所述第一路接口231连接所述上位机时,控制模块220将第一处理器200中的USB接口连接至所述第一路接口231,从而使得所述移动终端连接至上位机。When the control module 220 determines that the mobile terminal is connected to the upper computer through the first path interface 231, the control module 220 connects the USB interface in the first processor 200 to the first path interface 231, thereby The mobile terminal is connected to the upper computer.
具体地,参阅图7,在所述移动终端通过第一路接口连接所述上位机时,将所述第一处理器的状态切换为从属设备状态的过程包括:Specifically, referring to FIG. 7, when the mobile terminal connects to the upper computer through the first path interface, the process of switching the state of the first processor to the slave device state includes:
步骤S21,在所述移动终端通过第一路接口连接所述上位机时,接收用户触发的切换命令;Step S21, when the mobile terminal connects to the upper computer through the first path interface, receiving a handover command triggered by the user;
在所述移动终端通过第一路接口连接所述上位机时,可以在所述上位机或者所述移动终端的显示界面进行提示,比如检测移动终端连接至上位机,是否进行切换。当然还可以显示应用场景,比如仅进行充电、与上位机进行数据传输等。用户可以在所述上位机或者所述移动终端的显示界面进行选择对应的选项,从而产生或者不产生切换命令,比如用户选择切换时,产生切换命令,否则不产生切换命令;或者用户选择仅进行充电时,不产生切换命令,否则产生切换命令。When the mobile terminal connects to the upper computer through the first path interface, the display may be prompted on the display interface of the upper computer or the mobile terminal, for example, detecting whether the mobile terminal is connected to the upper computer and whether to perform switching. Of course, it is also possible to display application scenarios, such as charging only, data transmission with the host computer, and the like. The user may select a corresponding option on the display interface of the upper computer or the mobile terminal, so as to generate or not generate a handover command, for example, when the user selects the handover, a handover command is generated, otherwise the handover command is not generated; or the user selects only the handover command. When charging, no switching command is generated, otherwise a switching command is generated.
步骤S22,根据所述切换命令,将所述第一处理器中的USB接口连接至所述第一路接口。 Step S22, connecting a USB interface in the first processor to the first path interface according to the switching command.
移动终端接收到用户触发的所述切换命令,将所述第一处理器200中的USB接口连接至所述第一路接口231,否则不将所述第一处理器中的USB接口连接至所述第一路接口。Receiving, by the mobile terminal, the switching command triggered by the user, connecting the USB interface in the first processor 200 to the first interface 231, otherwise not connecting the USB interface in the first processor to the The first interface is described.
如果控制模块220没有检测到所述移动终端通过第一路接口231连接所述上位机,则判断所述第一处理器200与所述第二处理210之间是否进行数据通信,需要特别说明的是此处所说的数据通信是指通过第一处理器200的USB数据传输通道进行通信,并非所述第一处理器200与所述第二处理210之间通过通用串口通道进行通信,所述通用串口通道配置为第二处理210向第一处理器200发送状态信息。在所述第一处理器200和所述第二处理器210之间进行数据通信包括:第一处理器200向第二处理器210发送数据,或者第二处理器210向第一处理器200发送数据。如果第一处理器200和所述第二处理器210之间进行数据通信,则将所述第一处理器200中的USB接口连接至所述第二处理器210。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 process 210, which requires special explanation. The data communication referred to herein refers to communication through the USB data transmission channel of the first processor 200, and the first processor 200 and the second processing 210 do not communicate through a universal serial port. The serial channel is configured to transmit status information to the first processor 200 by the second process 210. Performing data communication between the first processor 200 and the second processor 210 includes: the first processor 200 transmitting data to the second processor 210, or the second processor 210 transmitting the data to the first processor 200 data. 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.
如果检测到所述移动终端通过第二路接口232连接至所述上位机,则将控制第一处理器200的USB接口不连接至所述第一路接口231,也不连接至第二处理器210。If it is detected that the mobile terminal is connected to the upper computer through the second interface 232, the USB interface that controls the first processor 200 is not connected to the first interface 231, nor to the second processor. 210.
在第一处理器200的USB接口连接至第二处理器210时,为使得第二处理器210能够正常接收到第一处理器200发送的数据,其需要特定的电压,此时电压大于第二处理器210单独运行时的电压,具体地,本实施例中在第一处理器200的USB接口连接至第二处理器210时第二处理器210的电压为第二处理器210单独运行时的电压加5V。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, it needs a specific voltage, and the voltage is greater than the second. The voltage of the processor 210 when it is operated alone, specifically, when the voltage of the second processor 210 is connected to the second processor 210 when the USB interface of the first processor 200 is connected to the second processor 210 in this embodiment. The voltage is increased by 5V.
本领域技术人员可以知:本发明实施例的核心思想在于根据用户使用移动终端的情况,切换该移动终端中第一处理的USB接口的连接状态,上述情况可以不分先后顺序,即判断所述第一处理器200与所述第二处理210之间是否进行数据通信也可以在检测所述移动终端是否通过USB外接端口 230连接至上位机之前进行,或者同时进行。A person skilled in the art can understand that the core idea of the embodiment of the present invention is to switch the connection state of the first processed USB interface in the mobile terminal according to the situation in which the user uses the mobile terminal, and the foregoing may be determined in any order, that is, Whether data communication between the first processor 200 and the second process 210 is performed may also detect whether the mobile terminal passes through a USB external port. 230 is performed before connecting to the host computer, or at the same time.
具体实施中为确保语音业务的正常进行,可以通过设置优先级的方式,将语音业务的优先级设为高于数据业务的优先级。另外由于实际使用过程中,在连接两张SIM卡时,第一处理器200和第二处理器210每隔一定的时间都确认连接的SIM卡是否在位,具体地,每隔28秒会确认连接的SIM卡是否在位。在确认连接的SIM卡是否在位,对应的SIM卡会切换回对应的处理器。因为USB连接状态切换用时为毫秒级,且读卡确认是否在位的用时也为毫秒级,因此,设置优先级的方式,可优先保证语音业务的正常进行,并且SIM卡的切换不会影响正常的业务传输。In the specific implementation, to ensure the normal operation of the voice service, the priority of the voice service may be set to be higher than the priority of the data service by setting a priority. In addition, during the actual use, when the 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, specifically, every 28 seconds. Is the connected SIM card in place? After confirming whether the connected SIM card is in place, the corresponding SIM card will switch back to the corresponding processor. Because the USB connection state switching time is in milliseconds, and the time for reading the card to confirm whether it is in place is also in milliseconds. Therefore, setting the priority mode can ensure the normal operation of the voice service, and the switching of the SIM card does not affect the normal. Business transmission.
步骤S30,在所述第一处理器中的USB接口连接至所述第一路接口时,将所述第一处理器的状态切换为从属设备状态;或者,在所述第一处理器和所述第二处理器之间进行数据通信时,将所述第一处理器的状态切换为主设备状态;或者,在所述移动终端未通过第一路接口连接所述上位机或者在所述第一处理器和所述第二处理器之间未进行数据通信时,将所述第一处理器的状态切换为空。Step S30, when the USB interface in the first processor is connected to the first path interface, switch the state of the first processor to a slave device state; or, in the first processor and the When the data communication between the second processors is performed, the state of the first processor is switched to a master device state; or the mobile terminal is not connected to the host computer through the first path interface or When no data communication is performed between a processor and the second processor, the state of the first processor is switched to null.
因为在第一处理器200的USB接口连接到不同的位置时,移动终端能够进行任务不同,比如在本实施例中移动终端作为上位机的从属设备时,移动终端的第一处理器200的USB接口连接了上位机,不能与第二处理器210进行数据通信,为避免使用中产生冲突而使得移动终端不能正常使用,本实施例将在第一处理器100的USB接口连接不同的位置将所述移动终端中第一处理器200设置不同的状态具体地:所述第一处理器200配置为在所述移动终端通过第一路接口231连接所述上位机时,将所述第一处理器200的状态切换为从属设备状态;或者,在所述第一处理器200和所述第二处理器210之间进行数据通信时,将所述第一处理器200的状态切换为主设备状态;或者,在所述移动终端未通过第一路接口231连接所述上位机 或者在所述第一处理器200和所述第二处理器210之间未进行数据通信时,将所述第一处理器200的状态切换为空。Because the mobile terminal can perform different tasks when the USB interface of the first processor 200 is connected to different locations, such as the slave device of the host computer in the embodiment, the USB interface of the first processor 200 of the mobile terminal The upper computer is connected, and the second processor 210 is not in data communication. In order to avoid the conflict in use, the mobile terminal cannot be used normally. In this embodiment, the USB interface of the first processor 100 is connected to different locations. The first processor 200 in the mobile terminal is configured to be in a different state. Specifically, the first processor 200 is configured to: when the mobile terminal connects to the upper computer through the first path interface 231, the first processor 200 Switching the state to the slave device state; or switching the state of the first processor 200 to the master device state when data communication is performed between the first processor 200 and the second processor 210; or Connecting the upper computer to the mobile terminal without using the first path interface 231 Or, when 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.
本发明实施例移动终端,所述移动终端应用于多通道通信,包括:第一处理器、第二处理器、控制模块和USB外接端口,其中所述USB外接端口包括第一路接口和第二路接口,所述控制模块配置为在检测到所述移动终端连接上位机时,确定所述移动终端是通过所述第一路接口还是所述第二路接口连接所述上位机;所述控制模块还配置为在所述移动终端通过所述第一路接口连接所述上位机时,将所述第一处理器中的USB接口连接至所述第一路接口;或者在所述第一处理器和所述第二处理器之间进行数据通信时,将所述第一处理器中的USB接口连接至所述第二处理器。通过上述方式,本发明实施例根据移动终端中第一处理器的使用情况,将移动终端第一处理器的USB接口连接至USB外接端口或第二处理器,从而实现处理器中的USB接口的复用。In the embodiment of the present invention, the mobile terminal is applied to multi-channel communication, and includes: a first processor, a second processor, a control module, and a USB external port, wherein the USB external port includes a first interface and a second interface. The control module is configured to: when detecting that the mobile terminal is connected to the upper computer, determine whether the mobile terminal is connected to the upper computer through the first interface or the second interface; the control The module is further configured to connect the USB interface in the first processor to the first path interface when the mobile terminal connects to the upper computer through the first path interface; or in the first process When data communication is performed between the device and the second processor, a USB interface in the first processor is connected to the second processor. In the above manner, the embodiment of the present invention connects the USB interface of the first processor of the mobile terminal to the USB external port or the second processor according to the usage of the first processor in the mobile terminal, thereby implementing the USB interface in the processor. Reuse.
继续参阅图6,以及图4和图5,本实施例移动终端处理器的USB接口复用的方法包括:With reference to FIG. 6 and FIG. 4 and FIG. 5, the USB interface multiplexing method of the mobile terminal processor of this embodiment includes:
步骤S10,在检测到所述移动终端连接上位机时,确定所述移动终端是通过第一路接口还是第二路接口连接所述上位机;Step S10, when detecting that the mobile terminal is connected to the upper computer, determining whether the mobile terminal is connected to the upper computer through the first interface or the second interface;
在本实施例中,该移动终端应用于多通道通信,本发明实施例应用于多通道通信时,由于移动终端中第一处理器100只有一个USB接口,为实现两张SIM卡能够同时使用双4G或者双wifi数据通信,而不是现有技术中一张SIM卡使用4G通信,另一张SIM卡则只能使用3G或2G通信。本实施例中移动终端包括:In this embodiment, the mobile terminal is applied to multi-channel communication. When the embodiment of the present invention is applied to multi-channel communication, since the first processor 100 in the mobile terminal has only one USB interface, two SIM cards can be used simultaneously. 4G or dual wifi data communication, instead of one SIM card using 4G communication in the prior art, and another SIM card can only use 3G or 2G communication. The mobile terminal in this embodiment includes:
第一处理器200、第二处理器210、控制模块220、USB外接端口230、第一电子开关S1、第二电子开关S2和从属设备供电模块240,其中所述USB外接端口230包括第一路接口231、第二路接口232。 The first processor 200, the second processor 210, the control module 220, the USB external port 230, the first electronic switch S1, the second electronic switch S2, and the slave device power supply module 240, wherein the USB external port 230 includes the first path Interface 231, second interface 232.
本实施中第一电子开关S1分别与第一处理器200、第二处理器210、控制模块220和第一路接口231相连,第一处理器200还分别与控制模块220、从属设备供电模块240、第二电子开关S2和第二路接口232相连,第二处理器210还分别于第二电子开关S2、第二路接口232相连。具体实施中可根据本发明实施例核心思想通过其他方式连接。In this embodiment, the first electronic switch S1 is connected to the first processor 200, the second processor 210, the control module 220, and the first interface 231, and the first processor 200 is further connected to the control module 220 and the slave device power supply module 240, respectively. The second electronic switch S2 is connected to the second interface 232, and the second processor 210 is also connected to the second electronic switch S2 and the second interface 232, respectively. In a specific implementation, the core idea of the embodiment of the present invention may be connected by other means.
具体地,参阅图5,该用于多通道通信的移动终端中第一处理器200可以包括:应用处理模块202和第一调制解调模块201,第二处理器210可以包括:第二调制解调模块221,所述移动终端还包括:第一SIM卡250、第二SIM卡260、第一逻辑开关270和第二逻辑开关280,以及与第一调制解调模块201相连的第一射频,与第二调制解调模块221相连的第二射频。第一调制解调模块201和第二调制解调模块221可以相当于如图1中的移动通信模块112。Specifically, referring to FIG. 5, the first processor 200 in the mobile terminal for multi-channel communication may include: an application processing module 202 and a first modem module 201, where the second processor 210 may include: a second modulation solution The module 221 further includes: a first SIM card 250, a second SIM card 260, a first logic switch 270, and a second logic switch 280, and a first radio frequency connected to the first modem module 201, A second radio frequency connected to the second modem module 221. The first modem module 201 and the second modem module 221 may be equivalent to the mobile communication module 112 of FIG.
所述第一处理器200还配置为在用户使用第一SIM卡250进行语音通信时,输出第一预设电压控制所述第一逻辑开关270处于第四状态,以使得所述第一SIM卡250连接至所述第一调制解调模块201;或者在用户使用第二SIM卡260进行语音通信时,输出第二预设电压控制所述第二逻辑开关280处于第五状态,以使得所述第二SIM卡260连接至所述第一调制解调模块201。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 the user performs voice communication using the first SIM card 250, 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, outputting a second preset voltage to control the second logic switch 280 to be in a fifth state, so that the The second SIM card 260 is connected to the first modem module 201.
在本实施例中在用户使用第一SIM卡250进行语音通信时,第一调制解调模块201通过输出高低电平实现对第一逻辑开关270和第二逻辑开关280的控制。例如,当输出高电平时,第一逻辑开关270导通,使第一SIM卡250与第一调制解调模块201连接;而输出低电平时,第一SIM卡250与第二调制解调模块221连接。或当输出高电平时,第二逻辑开关280导通,使第二SIM卡260与第一调制解调模块201连接;而输出低电平时,第二SIM卡260与第二调制解调模块221连接。 In the present embodiment, when the user performs voice communication using the first SIM card 250, the first modem module 201 controls the first logic switch 270 and the second logic switch 280 by outputting a high level. For example, when outputting a high level, the first logic switch 270 is turned on to connect the first SIM card 250 with the first modem module 201; and when the low level is output, the first SIM card 250 and the second modem module are 221 connections. Or when the output level is high, 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 low level is output, the second SIM card 260 and the second modem module 221 are output. connection.
在本发明的第一实施例中,若第一SIM卡250与第一调制解调模块201连接,则第一SIM卡250可通过第一调制解调模块201驻留在第一网络的PS(Packet Switching,分组交换)域和CS(Circuit Switching,电路交换)域。由此,第一SIM卡250可通过第一网络进行CS语音和PS数据业务。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 the PS of the first network through the first modem module 201 ( Packet Switching, Packet Switching, and CS (Circuit Switching). Thus, the first SIM card 250 can perform CS voice and PS data services through the first network.
同样的,若第二SIM卡260与第一调制解调模块201连接,则第二SIM卡260可通过第一调制解调模块201驻留在第一网络的PS域和CS域。由此,第二SIM卡260可通过第一网络进行CS语音和PS数据业务。Similarly, if the second SIM card 260 is connected to the first modem module 201, the second SIM card 260 can 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 over the first network.
若第一SIM卡250与第二调制解调模块221建立连接,则第一SIM卡250可通过第二调制解调模块221驻留在第二网络的PS域。由此,第一SIM卡250可通过第二网络进行PS数据业务。If the first SIM card 250 establishes a connection with the second modem module 221, the first SIM card 250 can 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 services through the second network.
同样的,若第二SIM卡260与第二调制解调模块221建立连接,则第二SIM卡260可通过第二调制解调模块221驻留在第二网络的PS域。由此,第二SIM卡260可通过第二网络进行PS数据业务。Similarly, if the second SIM card 260 establishes a connection with the second modem module 221, the second SIM card 260 can 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.
第一网络和第二网络可以是不同运营商的不同网络,也可是同一运营商的不同或相同网络。第一网络和第二网络可均为4G网络(例如,LTE网络等4G网络)。The first network and the second network may be different networks of different operators, or different or identical networks of the same carrier. The first network and the second network may both be 4G networks (eg, 4G networks such as LTE networks).
第一调制解调模块201支持PS数据业务和CS语音业务,第二调制解调模块221仅支持PS数据业务。当与第二调制解调模块221连接的数据卡(第一SIM卡250或第二SIM卡260)有CS语音业务时,第一调制解调模块201控制逻辑开关(第一逻辑开关270或第二逻辑开关280)使得相应的数据卡与第一调制解调模块201连接,以实现CS语音业务。The first modem module 201 supports PS data services and CS voice services, and the second modem module 221 supports only PS data services. When the data card (the first SIM card 250 or the second SIM card 260) connected to the second modem module 221 has a CS voice service, the first modem module 201 controls the logic switch (the first logic switch 270 or the The second logic switch 280) causes the corresponding data card to be connected to the first modem module 201 to implement the CS voice service.
应理解,若为PS语音业务,则其按照PS数据业务的传输进行传输。应用处理模块202接收用户的操作指令,若操作指令为通过第一SIM卡250进行CS语音业务,则:第一调制解调模块201输出第一控制指令控制第一第二逻辑开关28070使得第一SIM卡250与第一调制解调模块201连接。 通过第一SIM卡250进行CS语音业务的流程包括:It should be understood that if it is a PS voice service, it is transmitted according to the transmission of the PS data service. The application processing module 202 receives the operation instruction of the user. If the operation instruction is the CS voice service through the first SIM card 250, the first modem module 201 outputs a first control command to control the first second logic switch 28070 so that the first The SIM card 250 is coupled to the first modem module 201. The process of performing CS voice service through the first SIM card 250 includes:
首先,建立语音通信连接:应用处理模块将操作指令传输给第一调制解调模块201,通过第一射频向eNodeB发送RRC连接请求等流程以建立与被叫方的语音通信连接。First, a voice communication connection is established: the application processing module transmits the operation instruction to the first modem module 201, and sends an RRC connection request and the like to the eNodeB through the first radio frequency to establish a voice communication connection with the called party.
语音通信连接建立后,语音上行传输过程为:麦克风采集语音信号,编解码器接收采集的语音信号并进行模数转换后传输给数字信号处理芯片;数字信号处理芯片对接收到的信号进行音频处理并传输给第一调制解调模块201;第一射频将经第一调制解调模块201处理后的信号进行发送。语音下行传输过程为:第一射频接收下行信号并传输给第一调制解调模块201;数字信号处理芯片(ADSP)对经第一调制解调模块201处理后的信号进行音频处理并传输给编解码器(codec);编解码器对接收到的信号进行模数转换后传输至听筒。After the voice communication connection is established, the voice uplink transmission process is: the microphone collects the voice signal, and the codec receives the collected voice signal and performs analog-to-digital conversion and transmits the signal to the digital signal processing chip; the digital signal processing chip performs audio processing on the received signal. And transmitting to the first modem module 201; the first radio frequency transmits the signal processed by the first modem module 201. The downlink downlink transmission process is: 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 the codec. A decoder (codec); the codec performs analog-to-digital conversion on the received signal and transmits it to the handset.
应用处理模块接收用户的操作指令,若操作指令为通过第二SIM卡260进行CS语音业务,则:第一调制解调模块201输出第二控制指令控制第二逻辑开关280使得第二SIM卡260与第一调制解调模块201连接。通过第二SIM卡260进行CS语音业务的流程包括:The application processing module receives the operation instruction of the user. If the operation instruction is the CS voice service through the second SIM card 260, the first modem module 201 outputs the second control command to control the second logic switch 280 such that the second SIM card 260 It is connected to the first modem module 201. The process of performing the CS voice service through the second SIM card 260 includes:
首先,建立语音通信连接:应用处理模块将操作指令传输给第一调制解调模块201,通过第一射频向eNodeB发送RRC连接请求等流程以建立与被叫方的语音通信连接。First, a voice communication connection is established: the application processing module transmits the operation instruction to the first modem module 201, and sends an RRC connection request and the like to the eNodeB through the first radio frequency to establish a voice communication connection with the called party.
语音通信连接建立后,语音上行传输过程为:麦克风采集语音信号,编解码器接收采集的语音信号并进行模数转换后传输给数字信号处理芯片;数字信号处理芯片对接收到的信号进行音频处理并传输给第一调制解调模块201;第一射频将经第一调制解调模块201处理后的信号进行发送。语音下行传输过程为:第一射频接收下行信号并传输给第一调制解调模块201;数字信号处理芯片对经第一调制解调模块201处理后的信号进行音频 处理并传输给编解码器;编解码器对接收到的信号进行模数转换后传输至听筒。After the voice communication connection is established, the voice uplink transmission process is: the microphone collects the voice signal, and the codec receives the collected voice signal and performs analog-to-digital conversion and transmits the signal to the digital signal processing chip; the digital signal processing chip performs audio processing on the received signal. And transmitting to the first modem module 201; the first radio frequency transmits the signal processed by the first modem module 201. The downlink downlink transmission process is: 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 on the signal processed by the first modem module 201. Processing and transmitting to the codec; the codec performs analog-to-digital conversion on the received signal and transmits it to the handset.
应用处理模块接收用户的操作指令,若操作指令为通过第一SIM卡250进行PS数据业务,则第一调制解调模块201输出第一控制指令控制第一逻辑开关270导通第一SIM卡250与第一调制解调模块201的连接通道,也输出第二控制指令控制第一逻辑开关270导通第一SIM卡250与第二调制解调模块221的连接通道,其均可实现PS数据业务的传输。The application processing module receives the operation instruction of the user. If the operation instruction is to perform the PS data service through the first SIM card 250, the first modem module 201 outputs the first control instruction to control the first logic switch 270 to turn on the first SIM card 250. The connection channel with the first modem module 201 also outputs a second control command to control the first logic switch 270 to turn on the connection channel of the first SIM card 250 and the second modem module 221, which can implement the PS data service. Transmission.
具体的,若导通第一SIM卡250与第一调制解调模块201的连接通道,则PS数据业务的传输流程为:应用处理模块接收数据,并传输给第一调制解调模块201;第一射频将第一调制解调模块201处理后的上行信号传输至第一网络(4G网络),以及接收来自第一网络(4G网络)的下行信号,并传输给第一调制解调模块201处理;应用处理模块将第一调制解调模块201处理后的下行信号进行输出。Specifically, if the connection path between the first SIM card 250 and the first modem module 201 is turned on, the transmission process of the PS data service is: the application processing module receives the data, and transmits the data to the first modem module 201; The radio frequency transmits the uplink signal processed by the first modem module 201 to the first network (4G network), and 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.
若导通第一SIM卡250与第二调制解调模块221的连接通道,则PS数据业务的传输流程为:应用处理模块接收数据,并传输给第二调制解调模块221;射频2将第二调制解调模块221处理后的上行信号传输至LTE网络,以及接收来自LTE网络的下行信号,并传输给第二调制解调模块221处理;应用处理模块将第二调制解调模块221处理后的下行信号进行输出。If the connection path between the first SIM card 250 and the second modem module 221 is turned on, the transmission process of the PS data service is: the application processing module receives the data, and transmits the data to the second modem module 221; The uplink signal processed by the second modem module 221 is transmitted to the LTE network, and the downlink signal from the LTE network is received and transmitted to the second modem module 221 for processing; and the application processing module processes the second modem module 221 The downstream signal is output.
若操作指令为通过第二SIM卡260进行PS数据业务,则第一调制解调模块201可输出第一控制指令控制第二逻辑开关280导通第二SIM卡260与第一调制解调模块201的连接通道,也可输出第二控制指令控制第二逻辑开关280导通第二SIM卡260与第二调制解调模块221的连接通道,其均可实现PS数据业务的传输。If the operation command is to perform PS data service by using the second SIM card 260, the first modem module 201 may output a first control command to control the second logic switch 280 to turn on the second SIM card 260 and the first modem module 201. The connection channel can also output a second control command to control the second logic switch 280 to turn on the connection channel of the second SIM card 260 and the second modem module 221, which can realize the transmission of the PS data service.
具体的,若导通第二SIM卡260与第一调制解调模块201的连接通道,则PS数据业务的传输流程为:应用处理模块接收数据,并传输给第一调制 解调模块201;第一射频将第一调制解调模块201处理后的上行信号传输至第一网络(4G网络),以及接收来自第一网络(4G网络)的下行信号,并传输给第一调制解调模块201处理;应用处理模块将第一调制解调模块201处理后的下行信号进行输出。Specifically, if the connection path between the second SIM card 260 and the first modem module 201 is turned on, the transmission process of the PS data service is: the application processing module receives the data and transmits the data to the first modulation. a demodulation module 201; the first radio frequency transmits the uplink signal processed by the first modem module 201 to the first network (4G network), and receives the downlink signal from the first network (4G network), and transmits the downlink signal to the first The modem module 201 processes; the application processing module outputs the downlink signal processed by the first modem module 201.
若导通第二SIM卡260与第二调制解调模块221的连接通道,则PS数据业务的传输流程为:应用处理模块接收数据,并传输给第二调制解调模块221;射频2将第二调制解调模块221处理后的上行信号传输至第二网络(4G网络),以及接收来自第二网络(4G网络)的下行信号,并传输给第二调制解调模块221处理;应用处理模块将第二调制解调模块221处理后的下行信号进行输出。If the connection path between the second SIM card 260 and the second modem module 221 is turned on, the transmission process of the PS data service is: the application processing module receives the data, and transmits the data to the second modem module 221; The uplink signal processed by the second modem module 221 is transmitted to the second network (4G network), and the downlink signal from the second network (4G network) is received and transmitted to the second modem module 221 for processing; the application processing module The downlink signal processed by the second modem module 221 is output.
所述控制模块还配置为在所述第一电子开关处于第一状态时,断开所述第一处理器与所述第二处理之间的数据通信。The control module is further configured to disconnect data communication between the first processor and the second process when the first electronic switch is in a first state.
所述控制模块220配置为在检测到所述移动终端连接上位机时,确定所述移动终端是通过所述第一路接口231还是所述第二路接口232连接所述上位机。The control module 220 is configured to determine, when the mobile terminal is connected to the upper computer, whether the mobile terminal is connected to the upper computer through the first interface 231 or the second interface 232.
其中,本实施例中USB外接端口230可以为图1中的接口单元170,第一处理器200可以为图1中的控制器180。第二处理器210可以使用与第一处理器200相同型号的处理器,也可以是相对第一处理器200相对处理能力弱的处理器,本实施例中为节省成本第二处理器210采用相对第一处理器200相对处理能力弱的处理器,第二处理器210只具有数据接收和发送功能,接收到的数据发送至第一处理器200进行处理。The USB external port 230 in this embodiment 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 the same type of processor as the first processor 200, or may be a processor with a relatively weak processing capability relative to the first processor 200. In this embodiment, the second processor 210 uses a relative cost. The first processor 200 has a processor with weak processing capability, the second processor 210 has only data receiving and transmitting functions, and the received data is sent to the first processor 200 for processing.
控制模块220实时通过USB外接端口230检测所述移动终端是否通过USB外接端口230连接至上位机,所述上位机包括电脑、电视等可以通过USB外接其他设备的电子设备,所述移动终端连接至所述上位机时,该移动终端可以认为为所述上位机的从属设备,连接时只对所述移动终端进行 充电的情况除外。The control module 220 detects, in real time, whether the mobile terminal is connected to the upper computer through the USB external port 230 through the USB external port 230. The upper computer includes an electronic device such as a computer or a television that can externally connect other devices through the USB, and the mobile terminal is connected to the mobile terminal. When the upper computer is in use, the mobile terminal can be regarded as a slave device of the upper computer, and only the mobile terminal is connected when connecting Except for charging.
在检测到所述移动终端通过USB外接端口230连接至上位机时,确定所述移动终端是通过第一路接口231还是所述第二路接口232连接所述上位机。在此需要说明的是本实施例中第一路接口231通常配置为用户将所述移动终端外接到上位机时,可以进行通过上位机查看、拷贝所述移动终端的部分内容的操作,通常用户将移动终端连接至上位机时使用的接口就是第一路接口231。第二路接口232通常为技术人员要使用调试第二处理器210等功能时使用的接口。当然用户也可以使用第一路接口231进行调试等功能。When it is detected that 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 interface 231 or the second interface 232. It should be noted that, in this embodiment, the first path interface 231 is generally configured to perform an operation of viewing and copying part of the content of the mobile terminal by using a host computer when the user externally connects the mobile terminal to the upper computer. The interface used when connecting the mobile terminal to the upper computer is the first interface 231. The second interface 232 is typically an interface that a technician uses when debugging functions such as the second processor 210. Of course, the user can also use the first interface 231 for debugging and other functions.
步骤S20,在所述移动终端通过所述第一路接口连接所述上位机时,将所述第一处理器中的USB接口连接至所述第一路接口;或者在所述第一处理器和所述第二处理器之间进行数据通信时,将所述第一处理器中的USB接口连接至所述第二处理器。Step S20, when the mobile terminal connects to the upper computer through the first path interface, connect a USB interface in the first processor to the first path interface; or in the first processor And performing a data communication with the second processor to connect the USB interface in the first processor to the second processor.
所述第一处理器200还配置为在所述移动终端通过所述第二路接口232连接所述上位机时,控制所述第二电子开关S2闭合,以使得所述第二处理器210与所述上位机连接,并通过所述控制模块220控制所述第一电子开关S1处于第三状态。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 interface 232, so that the second processor 210 is The upper computer is connected, and the first electronic switch S1 is controlled to be in a third state by the control module 220.
在所述控制模块220确定所述移动终端通过所述第一路接口231连接所述上位机时,控制模块220,控制所述第一电子开关S1处于第一状态,本实施例中第一状态为第一电子开关S1闭合至第一路接口231的一端,将第一处理器200中的USB接口连接至所述第一路接口231,从而使得所述移动终端连接至上位机。When the control module 220 determines that the mobile terminal is connected to the upper computer through the first path interface 231, the control module 220 controls the first electronic switch S1 to be in a first state, in the first state in this embodiment. The first electronic switch S1 is closed to one end of the first interface 231, and the USB interface in the first processor 200 is connected to the first interface 231, so that the mobile terminal is connected to the upper computer.
具体地,参阅图7,在所述移动终端通过第一路接口连接所述上位机时,将所述第一处理器的状态切换为从属设备状态的过程包括:Specifically, referring to FIG. 7, when the mobile terminal connects to the upper computer through the first path interface, the process of switching the state of the first processor to the slave device state includes:
步骤S21,在所述移动终端通过第一路接口连接所述上位机时,接收用 户触发的切换命令;Step S21, when the mobile terminal connects to the upper computer through the first path interface, receiving User-triggered switching command;
在所述移动终端通过第一路接口连接所述上位机时,可以在所述上位机或者所述移动终端的显示界面进行提示,比如检测移动终端连接至上位机,是否进行切换。当然还可以显示应用场景,比如仅进行充电、与上位机进行数据传输等。用户可以在所述上位机或者所述移动终端的显示界面进行选择对应的选项,从而产生或者不产生切换命令,比如用户选择切换时,产生切换命令,否则不产生切换命令;或者用户选择仅进行充电时,不产生切换命令,否则产生切换命令。When the mobile terminal connects to the upper computer through the first path interface, the display may be prompted on the display interface of the upper computer or the mobile terminal, for example, detecting whether the mobile terminal is connected to the upper computer and whether to perform switching. Of course, it is also possible to display application scenarios, such as charging only, data transmission with the host computer, and the like. The user may select a corresponding option on the display interface of the upper computer or the mobile terminal, so as to generate or not generate a handover command, for example, when the user selects the handover, a handover command is generated, otherwise the handover command is not generated; or the user selects only the handover command. When charging, no switching command is generated, otherwise a switching command is generated.
步骤S22,根据所述切换命令,将所述第一处理器中的USB接口连接至所述第一路接口。Step S22, connecting a USB interface in the first processor to the first path interface according to the switching command.
移动终端接收到用户触发的所述切换命令,控制所述第一电子开关S1处于第一状态,本实施例中第一状态为第一电子开关S1闭合至第一路接口231的一端,从而将所述第一处理器200中的USB接口连接至所述第一路接口231,否则不进行切换。当然第一电子开关S1也可以通过软件实现。The mobile terminal receives the switching command triggered by the user, and controls the first electronic switch S1 to be in the first state. In this embodiment, the first state is that the first electronic switch S1 is closed to one end of the first interface 231, thereby The USB interface in the first processor 200 is connected to the first path interface 231, otherwise no handover is performed. Of course, the first electronic switch S1 can also be implemented by software.
如果控制模块220没有检测到所述移动终端通过第一路接口231连接所述上位机,则判断所述第一处理器200与所述第二处理210之间是否进行数据通信,需要特别说明的是此处所说的数据通信是指通过第一处理器200的USB数据传输通道进行通信,并非所述第一处理器200与所述第二处理210之间通过通用串口通道进行通信,所述通用串口通道配置为第二处理210向第一处理器200发送状态信息。在所述第一处理器200和所述第二处理器210之间进行数据通信包括:第一处理器200向第二处理器210发送数据,或者第二处理器210向第一处理器200发送数据。如果第一处理器200和所述第二处理器210之间进行数据通信,则将所述第一处理器200中的USB接口连接至所述第二处理器210。在所述第一处理器200与所述第二处理210之间是否进行数据通信时,将所述第一电子开关S1处于 第二状态,本实施例中将第一电子开关S1闭合至第二处理器210的一端,以使得所述第一处理器200中的USB接口连接至所述第二处理器210。在所述移动终端未通过第一路接口连接所述上位机或者在所述第一处理器和所述第二处理器之间未进行数据通信时,控制所述第一电子开关处于第三状态,本实施例中第三状态为悬空,即不闭合。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 process 210, which requires special explanation. The data communication referred to herein refers to communication through the USB data transmission channel of the first processor 200, and the first processor 200 and the second processing 210 do not communicate through a universal serial port. The serial channel is configured to transmit status information to the first processor 200 by the second process 210. Performing data communication between the first processor 200 and the second processor 210 includes: the first processor 200 transmitting data to the second processor 210, or the second processor 210 transmitting the data to the first processor 200 data. 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 performed between the first processor 200 and the second process 210, the first electronic switch S1 is placed In the second state, the first electronic switch S1 is closed to one end of the second processor 210 in the embodiment, so that the USB interface in the first processor 200 is connected to the second processor 210. Controlling the first electronic switch to be in a third state when the mobile terminal is not connected to the upper computer through a first path interface or when data communication is not performed between the first processor and the second processor In this embodiment, the third state is suspended, that is, not closed.
如果检测到所述移动终端通过第二路接口232连接至所述上位机,则将控制第一处理器200的USB接口不连接至所述第一路接口231,也不连接至第二处理器210。If it is detected that the mobile terminal is connected to the upper computer through the second interface 232, the USB interface that controls the first processor 200 is not connected to the first interface 231, nor to the second processor. 210.
从属设备供电模块240,配置为在所述第一处理器200和所述第二处理器210之间进行数据通信时,为所述第二处理器210提供预设电压;或者在移动终端通过第二路接口232连接所述上位机时,为所述第二路接口232提供预设电压。The slave device power supply module 240 is configured to provide a preset voltage for the second processor 210 when performing data communication between the first processor 200 and the second processor 210; or When the two-way interface 232 is connected to the upper computer, a preset voltage is provided for the second interface 232.
在第一处理器200的USB接口连接至第二处理器210时,为使得第二处理器210能够正常接收到第一处理器200发送的数据,其需要特定的电压,此时电压大于第二处理器210单独运行时的电压,具体地,本实施例中在第一处理器200的USB接口连接至第二处理器210时,控制从属设备供电模块240为所述第二处理器210提供预设电压,所述预设电压可以根据实际情况进行设置,比如预设电压为5V;同时,由于USB外接端口230的第二路接口232能正常使用时也需要额外的电压才能正常运行,在移动终端通过第二路接口232连接所述上位机时,为所述第二路接口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 the data sent by the first processor 200, it needs a specific voltage, and the voltage is greater than the second. The voltage of the processor 210 when it is operated alone. Specifically, when the USB interface of the first processor 200 is connected to the second processor 210 in this embodiment, the slave power supply module 240 is controlled to provide the second processor 210 with a preset. Set the voltage, the preset voltage can be set according to the actual situation, for example, the preset voltage is 5V; meanwhile, since the second interface 232 of the USB external port 230 can be normally used, an additional voltage is required to operate normally, while moving When the terminal is connected to the upper computer through the second interface 232, the preset voltage is provided for the second interface 232.
本领域技术人员可以知:本发明实施例的核心思想在于根据用户使用移动终端的情况,切换该移动终端中第一处理的USB接口的连接状态,上述情况可以不分先后顺序,即判断所述第一处理器200与所述第二处理210之间是否进行数据通信也可以在检测所述移动终端是否通过USB外接端口 230连接至上位机之前进行,或者同时进行。A person skilled in the art can understand that the core idea of the embodiment of the present invention is to switch the connection state of the first processed USB interface in the mobile terminal according to the situation in which the user uses the mobile terminal, and the foregoing may be determined in any order, that is, Whether data communication between the first processor 200 and the second process 210 is performed may also detect whether the mobile terminal passes through a USB external port. 230 is performed before connecting to the host computer, or at the same time.
具体实施中为确保语音业务的正常进行,可以通过设置优先级的方式,将语音业务的优先级设为高于数据业务的优先级。另外由于实际使用过程中,用户设备开机之后,用户设备和数据卡之间28秒通信一次,以确认数据卡是否在位保证通信的正常。该28秒通信一次是由与数据卡相连接的处理芯片控制的,例如,处理芯片向数据卡发送一空数据,若得到响应则确认数据卡在位,否则数据卡不在位。In the specific implementation, to ensure the normal operation of the voice service, the priority of the voice service may be set to be higher than the priority of the data service by setting a priority. In addition, due to the actual use, after the user equipment is turned on, the user equipment and the data card communicate once every 28 seconds to confirm whether the data card is in place to ensure normal communication. The 28 second communication is controlled by the processing chip connected to the data card. For example, the processing chip sends a blank data to the data card. If the response is received, the data card is confirmed to be in place, otherwise the data card is not in place.
第一调制解调模块201还配置为以预设时间间隔向第一SIM卡250或第二SIM卡260发送信息以进行数据卡的在位确认;The first modem module 201 is further configured to send information to the first SIM card 250 or the second SIM card 260 at a preset time interval for in-place confirmation of the data card;
若对第一SIM卡250进行在位确认时(默认第一SIM卡250应与第一调制解调模块201连接),第一SIM卡250未与第一调制解调模块201连接,则第一调制解调模块201还配置为发出第一控制指令以控制逻辑开关1导通第一SIM卡250与第一调制解调模块201的连接通路。If the first SIM card 250 is in-position confirmed (the default 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 The modem module 201 is further configured to issue a first control command to control the logic switch 1 to turn on the connection path of the first SIM card 250 and the first modem module 201.
若对第二SIM卡260进行在位确认时(默认第二SIM卡260应与第一调制解调模块201连接),第二SIM卡260未与第一调制解调模块201连接,则第一调制解调模块201还配置为发出第二控制指令以控制逻辑开关2导通第二SIM卡260与第一处理芯片的连接通路。If the second SIM card 260 is in-position confirmed (the default 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 The modem module 201 is further configured to issue a second control command to control the logic switch 2 to conduct a connection path between the second SIM card 260 and the first processing chip.
同样的,第二调制解调模块221还配置为以预设时间间隔向第一SIM卡250或第二SIM卡260发送信息以进行数据卡的在位确认;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 a preset time interval for in-place confirmation of the data card;
若对第一SIM卡250进行在位确认时(默认第一SIM卡250应与第二调制解调模块221连接),第一SIM卡250未与第二调制解调模块221连接,则第一调制解调模块201还配置为发出第一控制指令以控制逻辑开关1导通第一SIM卡250与第二调制解调模块221的连接通路。If the first SIM card 250 is in-position confirmed (the default 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 The modem module 201 is further configured to issue a first control command to control the logic switch 1 to turn on the connection path of the first SIM card 250 and the second modem module 221.
若对第二SIM卡260进行在位确认时(默认第一SIM卡250应与第二调制解调模块221连接),第二SIM卡260未与第二调制解调模块221连接, 则第一调制解调模块201还配置为发出第二控制指令以控制逻辑开关2导通第二SIM卡260与第二调制解调模块221的连接通路。If the second SIM card 260 is in-place confirmed (the default first SIM card 250 should be connected to the second modem module 221), 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 command to control the logic switch 2 to turn on the connection path of the second SIM card 260 and the second modem module 221 .
例如,若本来与第二调制解调模块221连接的第二SIM卡260被切换连接到第一调制解调模块201时(例如,切换至第一调制解调模块201以进行PS数据业务),每28秒需切换回第二调制解调模块221,即通过控制逻辑开关2使其连接到第二调制解调模块221,以完成数据卡在位的确认,待读卡确认完成后,第二SIM卡260被再次切换回第一处理芯片,以保证通信的正常进行。依此类推,若本来与第一处理芯片连接的第一SIM卡250被切换连接到第二调制解调模块221时,每28秒需切换回第一处理芯片,即通过控制逻辑开关1使其连接到第一调制解调模块201,以完成数据卡在位的确认,待读卡确认完成后,第一SIM卡250被再次切换回第二调制解调模块221,以保证通信的正常进行。For example, if the second SIM card 260 originally connected to the second modem module 221 is switched to be connected to the first modem module 201 (for example, switching to the first modem module 201 for PS data service), Every 28 seconds, it is required to switch back to the second modem module 221, that is, to connect to the second modem module 221 through the control logic switch 2, to complete the confirmation of the data card in place, after the card confirmation is completed, the second The SIM card 260 is switched back to the first processing chip again to ensure normal communication. And so on, if the first SIM card 250 originally connected to the first processing chip is switched and connected to the second modem module 221, it needs to switch back to the first processing chip every 28 seconds, that is, by controlling the logic switch 1 Connected to the first modem module 201 to complete the confirmation of the data card in place. After the card confirmation is completed, the first SIM card 250 is switched back to the second modem module 221 again to ensure normal communication.
逻辑开关的切换用时为毫秒级,且读卡确认是否在位的用时也为毫秒级,因此,数据卡的切换不会影响正常的业务传输。The switching time of the logic switch is in the order of milliseconds, and the time for reading the card to confirm whether the bit is in place is also millisecond. Therefore, the switching of the data card does not affect the normal service transmission.
通过设置优先级的方式,将语音业务的优先级设为高于数据业务的优先级,以保证在数据卡在位确认的过程中,可优先保证语音业务的正常进行。By setting the priority, the priority of the voice service is set to be higher than the priority of the data service, so that the voice service can be preferentially guaranteed during the process of confirming the data card.
根据上述的在位确认机制,在第一SIM卡250与第二调制解调模块221连接进行数据业务传输时,第一SIM卡250还可同时与第一调制解调模块201连接进行语音传输。只需保证在位确认时,第一SIM卡250在位即可。According to the in-position acknowledgment mechanism, when the first SIM card 250 is connected to the second modem module 221 for data service transmission, the first SIM card 250 can 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 the bit is confirmed.
根据上述的在位确认机制,第二SIM卡260与第二调制解调模块221连接进行数据业务传输时,第二SIM卡260还与第一调制解调模块201连接进行语音传输。只需保证在位确认时,第二SIM卡260在位即可。According to the in-position acknowledgment mechanism described above, 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 the bit is confirmed.
根据上述的在位确认机制,第一SIM卡250与第一调制解调模块201连接进行数据业务传输及语音业务时,第二SIM卡260还与第二调制解调 模块221连接进行数据业务传输。只需保证在位确认时,第一SIM卡250核第二SIM卡260分别均在位即可。According to the in-position acknowledgment 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 also coupled to the second modem. Module 221 is connected for data traffic transmission. It is only necessary to ensure that the first SIM card 250 and the second SIM card 260 are in place when the bit is confirmed.
根据上述的在位确认机制,第二SIM卡260与第一调制解调模块201连接进行数据业务传输及语音业务时,第一SIM卡250还与第二调制解调模块221连接进行数据业务传输。只需保证在位确认时,第一SIM卡250核第二SIM卡260分别均在位即可。According to the in-position acknowledgment 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. . It is only necessary to ensure that the first SIM card 250 and the second SIM card 260 are in place when the bit is confirmed.
进一步地,为在第一处理器200的USB接口连接不同的位置时,方便移动终端进行对应的活动,本发明实施例在第一处理器100的USB接口连接不同的位置将所述移动终端中第一处理器200设置不同的状态,具体地: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 embodiment of the present invention connects the mobile terminal in a different location of the USB interface of the first processor 100. The first processor 200 sets different states, specifically:
所述第一处理器200配置为在所述移动终端通过第一路接口231连接所述上位机时,将所述第一处理器200的状态切换为从属设备状态;或者,在所述第一处理器200和所述第二处理器210之间进行数据通信时,将所述第一处理器200的状态切换为主设备状态;或者,在所述移动终端未通过第一路接口231连接所述上位机或者在所述第一处理器200和所述第二处理器210之间未进行数据通信时,将所述第一处理器200的状态切换为空。The first processor 200 is configured to switch the state of the first processor 200 to a slave device state when the mobile terminal connects to the upper computer through the first path interface 231; or, in the first When the data communication between the processor 200 and the second processor 210 is performed, the state of the first processor 200 is switched to a master device state; or, the mobile terminal is not connected through the first path interface 231. When the upper computer does not perform data communication between the first processor 200 and the second processor 210, the state of the first processor 200 is switched to null.
因为在第一处理器200的USB接口连接到不同的位置时,移动终端能够进行任务不同,比如在本实施例中移动终端作为上位机的从属设备时,移动终端的第一处理器200的USB接口连接了上位机,不能与第二处理器210进行数据通信,为避免使用中产生冲突而使得移动终端不能正常使用,本实施例将在第一处理器100的USB接口连接不同的位置将所述移动终端中第一处理器200设置不同的状态具体地:所述第一处理器200配置为在所述移动终端通过第一路接口231连接所述上位机时,将所述第一处理器200的状态切换为从属设备状态;或者,在所述第一处理器200和所述第二处理器210之间进行数据通信时,将所述第一处理器200的状态切换为主 设备状态;或者,在所述移动终端未通过第一路接口231连接所述上位机或者在所述第一处理器200和所述第二处理器210之间未进行数据通信时,将所述第一处理器200的状态切换为空。Because the mobile terminal can perform different tasks when the USB interface of the first processor 200 is connected to different locations, such as the slave device of the host computer in the embodiment, the USB interface of the first processor 200 of the mobile terminal The upper computer is connected, and the second processor 210 is not in data communication. In order to avoid the conflict in use, the mobile terminal cannot be used normally. In this embodiment, the USB interface of the first processor 100 is connected to different locations. The first processor 200 in the mobile terminal is configured to be in a different state. Specifically, the first processor 200 is configured to: when the mobile terminal connects to the upper computer through the first path interface 231, the first processor 200 Switching the state to the slave device state; or switching the state of the first processor 200 to the master when data communication is performed between the first processor 200 and the second processor 210 a device status; or, when the mobile terminal is not connected to the upper computer through the first path interface 231 or when no data communication is performed between the first processor 200 and the second processor 210, The state of the first processor 200 is switched to null.
步骤S30,在所述第一处理器中的USB接口连接至所述第一路接口时,将所述第一处理器的状态切换为从属设备状态;或者,在所述第一处理器和所述第二处理器之间进行数据通信时,将所述第一处理器的状态切换为主设备状态;或者,在所述移动终端未通过第一路接口连接所述上位机或者在所述第一处理器和所述第二处理器之间未进行数据通信时,将所述第一处理器的状态切换为空。Step S30, when the USB interface in the first processor is connected to the first path interface, switch the state of the first processor to a slave device state; or, in the first processor and the When the data communication between the second processors is performed, the state of the first processor is switched to a master device state; or the mobile terminal is not connected to the host computer through the first path interface or When no data communication is performed between a processor and the second processor, the state of the first processor is switched to null.
因为在第一处理器200的USB接口连接到不同的位置时,移动终端能够进行任务不同,比如在本实施例中移动终端作为上位机的从属设备时,移动终端的第一处理器200的USB接口连接了上位机,不能与第二处理器210进行数据通信,为避免使用中产生冲突而使得移动终端不能正常使用,本实施例将在第一处理器100的USB接口连接不同的位置将所述移动终端中第一处理器200设置不同的状态具体地:所述第一处理器200配置为在所述移动终端通过第一路接口231连接所述上位机时,将所述第一处理器200的状态切换为从属设备状态;或者,在所述第一处理器200和所述第二处理器210之间进行数据通信时,将所述第一处理器200的状态切换为主设备状态;或者,在所述移动终端未通过第一路接口231连接所述上位机或者在所述第一处理器200和所述第二处理器210之间未进行数据通信时,将所述第一处理器200的状态切换为空。Because the mobile terminal can perform different tasks when the USB interface of the first processor 200 is connected to different locations, such as the slave device of the host computer in the embodiment, the USB interface of the first processor 200 of the mobile terminal The upper computer is connected, and the second processor 210 is not in data communication. In order to avoid the conflict in use, the mobile terminal cannot be used normally. In this embodiment, the USB interface of the first processor 100 is connected to different locations. The first processor 200 in the mobile terminal is configured to be in a different state. Specifically, the first processor 200 is configured to: when the mobile terminal connects to the upper computer through the first path interface 231, the first processor 200 Switching the state to the slave device state; or switching the state of the first processor 200 to the master device state when data communication is performed between the first processor 200 and the second processor 210; or The mobile terminal does not connect to the upper computer through the first path interface 231 or does not perform data communication between the first processor 200 and the second processor 210. When the first state of the switching processor 200 is empty.
本发明实施例还记载了第一种计算机存储介质,所述第一种计算机存储介质中存储有计算机程序,所述计算机程序用于执行以上所述的移动终端处理器的USB接口复用的方法。The embodiment of the present invention further describes a first type of computer storage medium, wherein the first type of computer storage medium stores a computer program, and the computer program is used to execute the USB interface multiplexing method of the mobile terminal processor described above. .
这里,在实际应用中,本发明实施例所述的应用处理模块可以具体通 过处理器实现;所述控制模块可以具体通过控制器实现;调制解调模块可以具体通过调制解调器实现。Here, in an actual application, the application processing module according to the embodiment of the present invention may be specifically The processor module is implemented by a controller; the modem module can be implemented by a modem.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It is to be understood that the term "comprises", "comprising", or any other variants thereof, is intended to encompass a non-exclusive inclusion, such that a process, method, article, or device comprising a series of elements includes those elements. It also includes other elements that are not explicitly listed, or elements that are inherent to such a process, method, article, or device. An element that is defined by the phrase "comprising a ..." does not exclude the presence of additional equivalent elements in the process, method, item, or device that comprises the element.
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the embodiments of the present invention are merely for the description, and do not represent the advantages and disadvantages of the embodiments.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the foregoing embodiment method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is better. Implementation. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, The optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the methods of various embodiments of the present invention.
出于解释的目的,前面的描述使用了特定的术语,以提供对本发明的透彻理解。然而,对本领域的技术人员来说显而易见的是,为了实践本发明并不需要具体的细节。本发明的具体实施例的前述描述是为了图示和说明的目的而呈现。它们并不意在详尽的或将本发明限于所公开的准确形式。鉴于上面的教义,许多修改和变化是可能的。为了最好地解释本发明的原理及其实际应用而示出并描述了这些实施例,从而使本领域的其他技术人员能够最好地利用本发明和具有适于预期的特定使用的各种修改的各种实施例。意在本发明的范围由随后的权利要求和其等同物来限定。 For purposes of explanation, the foregoing description has been used in a specific However, it will be apparent to those skilled in the art that <RTIgt; The foregoing description of the specific embodiments of the invention has been presented They are not intended to be exhaustive or to limit the invention to the precise form disclosed. Many modifications and variations are possible in light of the above teachings. The embodiments are shown and described in order to best explain the principles of the invention and the embodiments of the invention Various embodiments. The scope of the invention is intended to be defined by the appended claims and their equivalents.
工业实用性Industrial applicability
本发明实施例能够根据移动终端中第一处理器的使用情况,将移动终端第一处理器的USB接口连接至USB外接端口或第二处理器,从而实现处理器中的USB接口的复用。 The embodiment of the present invention can connect the USB interface of the first processor of the mobile terminal to the USB external port or the second processor according to the usage of the first processor in the mobile terminal, thereby implementing multiplexing of the USB interface in the processor.

Claims (20)

  1. 一种移动终端,所述移动终端应用于多通道通信,所述移动终端包括:A mobile terminal is applied to multi-channel communication, and the mobile terminal includes:
    第一处理器、第二处理器、控制模块和USB外接端口,其中所述USB外接端口包括第一路接口和第二路接口,a first processor, a second processor, a control module, and a USB external port, wherein the USB external port includes a first interface and a second interface.
    所述控制模块配置为在检测到所述移动终端连接上位机时,确定所述移动终端是通过所述第一路接口还是所述第二路接口连接所述上位机;The control module is configured to determine, when the mobile terminal is connected to the upper computer, whether the mobile terminal is connected to the upper computer through the first interface or the second interface;
    所述控制模块还配置为在所述移动终端通过所述第一路接口连接所述上位机时,将所述第一处理器中的USB接口连接至所述第一路接口;或者在所述第一处理器和所述第二处理器之间进行数据通信时,将所述第一处理器中的USB接口连接至所述第二处理器。The control module is further configured to connect the USB interface in the first processor to the first way interface when the mobile terminal connects to the upper computer through the first way interface; or in the When the data communication is performed between the first processor and the second processor, the USB interface in the first processor is connected to the second processor.
  2. 如权利要求1所述的移动终端,其中,所述第一路接口配置为将移动终端连接至上位机时所使用的接口;和/或,The mobile terminal of claim 1, wherein the first path interface is configured as an interface used when connecting the mobile terminal to the upper computer; and/or,
    所述第二路接口配置为调试第二处理器时所使用的接口。The second interface is configured as an interface used when debugging the second processor.
  3. 如权利要求1所述的移动终端,其中,所述控制模块还配置为未检测到所述移动终端通过第一路接口连接所述上位机时,判断所述第一处理器与所述第二处理器之间是否进行数据通信。The mobile terminal of claim 1, wherein the control module is further configured to determine that the first processor and the second device are not detected when the mobile terminal connects to the upper computer through a first path interface Whether data communication is performed between the processors.
  4. 如权利要求1所述的移动终端,其中,所述控制模块还配置为检测到所述移动终端通过第二路接口连接至所述上位机时,控制第一处理器的USB接口不连接至所述第一路接口,也不连接至第二处理器。The mobile terminal of claim 1, wherein the control module is further configured to: when detecting that the mobile terminal is connected to the upper computer through a second path interface, control a USB interface of the first processor not to be connected to the mobile terminal The first interface is not connected to the second processor.
  5. 如权利要求1至4任一项所述的移动终端,其中,所述控制模块包括:The mobile terminal according to any one of claims 1 to 4, wherein the control module comprises:
    接收单元,配置为在所述移动终端通过第一路接口连接所述上位机时,接收用户触发的切换命令;a receiving unit, configured to receive a user-triggered switching command when the mobile terminal connects to the upper computer through the first path interface;
    切换单元,配置为根据所述切换命令,将所述第一处理器中的USB接 口连接至所述第一路接口。a switching unit configured to connect the USB in the first processor according to the switching command The port is connected to the first path interface.
  6. 如权利要求5所述的移动终端,其中,The mobile terminal of claim 5, wherein
    所述第一处理器配置为在所述第一处理器中的USB接口连接至所述第一路接口时,将所述第一处理器的状态切换为从属设备状态;或者,The first processor is configured to switch a state of the first processor to a slave device state when a USB interface in the first processor is connected to the first path interface; or
    在所述第一处理器和所述第二处理器之间进行数据通信时,将所述第一处理器的状态切换为主设备状态;或者,And performing, when data communication between the first processor and the second processor, switching a state of the first processor to a master device state; or
    在所述第一处理器中的USB接口未连接至所述第一路接口或者在所述第一处理器和所述第二处理器之间未进行数据通信时,将所述第一处理器的状态切换为空。The first processor is not connected to the first interface or the data is not communicated between the first processor and the second processor The state is switched to empty.
  7. 如权利要求1所述的移动终端,其中,所述移动终端还包括:The mobile terminal of claim 1, wherein the mobile terminal further comprises:
    第一电子开关,The first electronic switch,
    所述控制模块还配置为在所述移动终端是通过第一路接口连接所述上位机时,控制所述第一电子开关处于第一状态,以使得所述第一处理器中的USB接口连接至所述第一路接口;或者在所述第一处理器和所述第二处理器之间进行数据通信时,将所述第一电子开关处于第二状态,以使得所述第一处理器中的USB接口连接至所述第二处理器;或者在所述移动终端未通过第一路接口连接所述上位机或者在所述第一处理器和所述第二处理器之间未进行数据通信时,控制所述第一电子开关处于第三状态。The control module is further configured to control the first electronic switch to be in a first state when the mobile terminal is connected to the upper computer through a first path interface, so that the USB interface in the first processor is connected To the first interface; or to perform data communication between the first processor and the second processor, placing the first electronic switch in a second state, such that the first processor a USB interface is connected to the second processor; or the mobile terminal does not connect to the upper computer through the first path interface or does not perform data between the first processor and the second processor In communication, the first electronic switch is controlled to be in a third state.
  8. 如权利要求7所述的移动终端,其中,所述移动终端还包括:The mobile terminal of claim 7, wherein the mobile terminal further comprises:
    连接于所述第二处理器和所述USB外接端口之间的第二电子开关,a second electronic switch connected between the second processor and the USB external port,
    所述第一处理器还配置为在所述移动终端通过所述第二路接口连接所述上位机时,控制所述第二电子开关闭合,以使得所述第二处理器与所述上位机连接,并通过所述控制模块控制所述第一电子开关处于第三状态。The first processor is further configured to control the second electronic switch to be closed when the mobile terminal is connected to the upper computer through the second interface, so that the second processor and the upper computer Connecting, and controlling, by the control module, the first electronic switch to be in a third state.
  9. 如权利要求7所述的移动终端,其中,所述第一处理器包括第一调制解调模块和应用处理模块,所述第二处理器包括第二调制解调模块,所 述移动终端还包括:The mobile terminal of claim 7, wherein the first processor comprises a first modem module and an application processing module, and the second processor comprises a second modem module, The mobile terminal further includes:
    第一用户识别卡、第二用户识别卡、第一逻辑开关和第二逻辑开关,a first user identification card, a second user identification card, a first logic switch, and a second logic switch,
    所述第一处理器还配置为在用户使用第一用户识别卡进行语音通信时,输出第一预设电压控制所述第一逻辑开关处于第四状态,以使得所述第一用户识别卡连接至所述第一调制解调模块;或者在用户使用第二用户识别卡进行语音通信时,输出第二预设电压控制所述第二逻辑开关处于第五状态,以使得所述第二用户识别卡连接至所述第一调制解调模块;The first processor is further configured to output a first preset voltage to control the first logic switch to be in a fourth state when the user performs voice communication using the first user identification card, so that the first user identification card is connected. To the first modem module; or when the user uses the second user identification card for voice communication, outputting a second preset voltage to control the second logic switch to be in a fifth state, so that the second user identifies a card is connected to the first modem module;
    所述控制模块还配置为在所述第一电子开关处于第一状态时,断开所述第一处理器与所述第二处理之间的数据通信。The control module is further configured to disconnect data communication between the first processor and the second process when the first electronic switch is in a first state.
  10. 如权利要求1所述的移动终端,其中,所述移动终端还包括:The mobile terminal of claim 1, wherein the mobile terminal further comprises:
    从属设备供电模块,配置为在所述第一处理器和所述第二处理器之间进行数据通信时,为所述第二处理器提供预设电压;或者在移动终端通过第二路接口连接所述上位机时,为所述第二路接口提供预设电压。a slave device power supply module configured to provide a preset voltage to the second processor when data communication is performed between the first processor and the second processor; or connect the mobile terminal through a second interface When the upper computer is in use, a preset voltage is provided for the second interface.
  11. 一种移动终端处理器的USB接口复用的方法,所述方法应用于多通道通信的移动终端,所述移动终端包括:第一处理器、第二处理器、控制模块和USB外接端口,其中所述USB外接端口包括第一路接口和第二路接口,所述方法包括:A method for multiplexing a USB interface of a mobile terminal processor, the method being applied to a mobile terminal for multi-channel communication, the mobile terminal comprising: a first processor, a second processor, a control module, and a USB external port, wherein The USB external port includes a first path interface and a second path interface, and the method includes:
    在检测到所述移动终端连接上位机时,确定所述移动终端是通过第一路接口还是第二路接口连接所述上位机;When detecting that the mobile terminal is connected to the upper computer, determining whether the mobile terminal is connected to the upper computer through the first interface or the second interface;
    在所述移动终端通过所述第一路接口连接所述上位机时,将所述第一处理器中的USB接口连接至所述第一路接口;或者在所述第一处理器和所述第二处理器之间进行数据通信时,将所述第一处理器中的USB接口连接至所述第二处理器。Connecting the USB interface in the first processor to the first path interface when the mobile terminal connects to the upper computer through the first path interface; or in the first processor and the When data communication is performed between the second processors, the USB interface in the first processor is connected to the second processor.
  12. 如权利要求11所述的方法,其中,所述方法还包括:The method of claim 11 wherein the method further comprises:
    未检测到所述移动终端通过第一路接口连接所述上位机时,判断所述 第一处理器与所述第二处理器之间是否进行数据通信。When it is not detected that the mobile terminal connects to the upper computer through the first path interface, determining that the mobile terminal Whether data communication is performed between the first processor and the second processor.
  13. 如权利要求11所述的方法,其中,所述方法还包括:The method of claim 11 wherein the method further comprises:
    检测到所述移动终端通过第二路接口连接至所述上位机时,控制第一处理器的USB接口不连接至所述第一路接口,也不连接至第二处理器。When detecting that the mobile terminal is connected to the upper computer through the second interface, the USB interface controlling the first processor is not connected to the first interface, nor is connected to the second processor.
  14. 如权利要求11至13任一项所述的方法,其中,所述在所述移动终端通过第一路接口连接所述上位机时,将所述第一处理器的状态切换为从属设备状态的步骤包括:The method according to any one of claims 11 to 13, wherein the switching of the state of the first processor to the state of the slave device when the mobile terminal connects the upper computer through the first path interface The steps include:
    在所述移动终端通过第一路接口连接所述上位机时,接收用户触发的切换命令;Receiving a user-triggered handover command when the mobile terminal connects to the upper computer through a first path interface;
    根据所述切换命令,将所述第一处理器中的USB接口连接至所述第一路接口。And connecting the USB interface in the first processor to the first path interface according to the switching command.
  15. 如权利要求14所述的方法,其中,所述方法还包括:The method of claim 14 wherein said method further comprises:
    在所述第一处理器中的USB接口连接至所述第一路接口时,将所述第一处理器的状态切换为从属设备状态;或者,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
    在所述第一处理器和所述第二处理器之间进行数据通信时,将所述第一处理器的状态切换为主设备状态;或者,And performing, when data communication between the first processor and the second processor, switching a state of the first processor to a master device state; or
    在所述移动终端未通过第一路接口连接所述上位机或者在所述第一处理器和所述第二处理器之间未进行数据通信时,将所述第一处理器的状态切换为空。Switching the state of the first processor to when the mobile terminal is not connected to the upper computer through a first path interface or when data communication is not performed between the first processor and the second processor air.
  16. 如权利要求11所述的方法,其中,所述移动终端还包括:第一电子开关;对应地,所述方法还包括:The method of claim 11, wherein the mobile terminal further comprises: a first electronic switch; correspondingly, the method further comprises:
    在所述移动终端是通过第一路接口连接所述上位机时,控制所述第一电子开关处于第一状态,以使得所述第一处理器中的USB接口连接至所述第一路接口;或者在所述第一处理器和所述第二处理器之间进行数据通信时,将所述第一电子开关处于第二状态,以使得所述第一处理器中的USB 接口连接至所述第二处理器;或者在所述移动终端未通过第一路接口连接所述上位机或者在所述第一处理器和所述第二处理器之间未进行数据通信时,控制所述第一电子开关处于第三状态。When the mobile terminal is connected to the upper computer through the first interface, controlling the first electronic switch to be in a first state, so that a USB interface in the first processor is connected to the first interface Or performing data communication between the first processor and the second processor, placing the first electronic switch in a second state, such that the USB in the first processor The interface is connected to the second processor; or when the mobile terminal is not connected to the upper computer through the first path interface or when no data communication is performed between the first processor and the second processor, The first electronic switch is controlled to be in a third state.
  17. 如权利要求16所述的方法,其中,所述移动终端还包括:连接于所述第二处理器和所述USB外接端口之间的第二电子开关;对应地,所述方法还包括:The method of claim 16, wherein the mobile terminal further comprises: a second electronic switch connected between the second processor and the USB external port; correspondingly, the method further comprises:
    在所述移动终端通过所述第二路接口连接所述上位机时,控制所述第二电子开关闭合,以使得所述第二处理器与所述上位机连接,并通过所述控制模块控制所述第一电子开关处于第三状态。Controlling, by the mobile terminal, the second electronic switch to be closed when the mobile terminal is connected to the upper computer through the second interface, so that the second processor is connected to the upper computer and controlled by the control module The first electronic switch is in a third state.
  18. 如权利要求16所述的方法,其中,所述第一处理器包括第一调制解调模块和应用处理模块,所述第二处理器包括第二调制解调模块,所述移动终端还包括:第一用户识别卡、第二用户识别卡、第一逻辑开关和第二逻辑开关;对应地,所述方法还包括:The method of claim 16, wherein the first processor comprises a first modem module and an application processing module, the second processor comprises a second modem module, and the mobile terminal further comprises: a first user identification card, a second user identification card, a first logic switch, and a second logic switch; correspondingly, the method further includes:
    在用户使用第一用户识别卡进行语音通信时,输出第一预设电压控制所述第一逻辑开关处于第四状态,以使得所述第一用户识别卡连接至所述第一调制解调模块;或者在用户使用第二用户识别卡进行语音通信时,输出第二预设电压控制所述第二逻辑开关处于第五状态,以使得所述第二用户识别卡连接至所述第一调制解调模块;When the user performs voice communication using the first user identification card, outputting a first preset voltage to control the first logic switch to be in a fourth state, so that the first user identification card is connected to the first modem module Or outputting a second preset voltage to control the second logic switch to be in a fifth state when the user uses the second user identification card for voice communication, so that the second user identification card is connected to the first modulation solution Tuning module
    在所述第一电子开关处于第一状态时,断开所述第一处理器与所述第二处理之间的数据通信。And disconnecting data communication between the first processor and the second process when the first electronic switch is in the first state.
  19. 如权利要求11所述的方法,其中,所述方法还包括:The method of claim 11 wherein the method further comprises:
    在所述第一处理器和所述第二处理器之间进行数据通信时,为所述第二处理器提供预设电压;或者在移动终端通过第二路接口连接所述上位机时,为所述第二路接口提供预设电压。Providing a preset voltage for the second processor when performing data communication between the first processor and the second processor; or when the mobile terminal is connected to the upper computer through a second interface The second interface provides a preset voltage.
  20. 一种计算机存储介质,所述计算机存储介质中存储有计算机程序, 所述计算机程序用于执行前述权利要求11至19任一项所述的移动终端处理器的USB接口复用的方法。 A computer storage medium having a computer program stored therein The computer program is for performing the USB interface multiplexing method of the mobile terminal processor according to any of the preceding claims 11 to 19.
PCT/CN2016/096401 2016-01-28 2016-08-23 Mobile terminal, method for multiplexing usb interface, and storage medium WO2017128708A1 (en)

Applications Claiming Priority (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
CN201610059714.9 2016-01-28

Publications (1)

Publication Number Publication Date
WO2017128708A1 true WO2017128708A1 (en) 2017-08-03

Family

ID=56155203

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/096401 WO2017128708A1 (en) 2016-01-28 2016-08-23 Mobile terminal, method for multiplexing usb interface, and storage medium

Country Status (2)

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

Cited By (2)

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

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105718405B (en) * 2016-01-28 2018-11-02 努比亚技术有限公司 The method that the USB interface of mobile terminal and its processor is multiplexed
CN107094316B (en) * 2017-03-30 2020-07-14 山东和同信息科技股份有限公司 Mobile terminal and data transmission method thereof
CN107766272B (en) * 2017-09-28 2020-11-10 歌尔光学科技有限公司 Head-mounted display device and control method of head-mounted display device
CN109947556A (en) * 2017-12-21 2019-06-28 北京比特大陆科技有限公司 Method for allocating tasks

Citations (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
CN101710313A (en) * 2009-11-23 2010-05-19 中兴通讯股份有限公司 Method, system and device for multiplexing dynamically configurable USB port
CN203658996U (en) * 2014-01-16 2014-06-18 青岛海信移动通信技术股份有限公司 Chip interface multiplex circuit and mobile terminal
US20150074323A1 (en) * 2013-09-11 2015-03-12 Lenovo (Singapore) Pte. Ltd. Data bus host and controller switch
CN105718405A (en) * 2016-01-28 2016-06-29 努比亚技术有限公司 Mobile terminal and method for USB interface multiplex of processors of mobile terminal

Family Cites Families (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
CN101668350B (en) * 2008-09-01 2012-07-25 联想(北京)有限公司 Mobile-terminal state-switching method and mobile terminal
US8463976B2 (en) * 2009-06-23 2013-06-11 Lg Electronics Inc. Dual modem device and controlling method thereof
CN101765243B (en) * 2009-12-16 2012-10-10 中兴通讯股份有限公司 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

Patent Citations (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
CN101710313A (en) * 2009-11-23 2010-05-19 中兴通讯股份有限公司 Method, system and device for multiplexing dynamically configurable USB port
US20150074323A1 (en) * 2013-09-11 2015-03-12 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
CN105718405A (en) * 2016-01-28 2016-06-29 努比亚技术有限公司 Mobile terminal and method for USB interface multiplex of processors of mobile terminal

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110502381A (en) * 2019-08-19 2019-11-26 惠州Tcl移动通信有限公司 Mobile terminal and its serial port debugging method, computer-readable medium
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

Also Published As

Publication number Publication date
CN105718405A (en) 2016-06-29
CN105718405B (en) 2018-11-02

Similar Documents

Publication Publication Date Title
WO2017128708A1 (en) Mobile terminal, method for multiplexing usb interface, and storage medium
CN106030556B (en) Method for operating functions and resources of electronic device
CN105653486B (en) The method that the USB interface of mobile terminal and its processor is multiplexed
EP3301856B1 (en) Router management method, router and mobile terminal
US11350394B2 (en) Resource configuration method, apparatus, user equipment, and base station
WO2018076820A1 (en) Method and device for processing wireless link failure
KR20190126173A (en) Communication method and terminal for implementing dual card dual standby dual pass
JP6122558B2 (en) COMMUNICATION METHOD, COMMUNICATION DEVICE, PROGRAM, AND RECORDING MEDIUM
WO2017148354A1 (en) Mobile terminal, computer storage medium and network sharing method
CN105578385B (en) Method for transmitting and receiving data by electronic equipment and electronic equipment using same
US11910335B2 (en) Vehicle-to-everything synchronization method and device
US20130137368A1 (en) Method for establishing connection, module for establishing connection and terminal equipment
WO2021022474A1 (en) Mdt information sending method and apparatus, and mdt information receiving method and apparatus
US11742884B2 (en) Data transmission method and device, and communication system
US9723639B2 (en) Communication method and terminal
US20200229216A1 (en) Downlink control information transmission method and apparatus
WO2017206341A1 (en) Short message identification method and device
CN106878976B (en) Mobile terminal and data sharing method of dual systems
CN110036681B (en) Resource determination method and device
CN105657691B (en) Mobile terminal and data sharing method of double-chip system thereof
JP2021141561A (en) Method, device and medium for handling paging collision of dual sim portable phone, device and medium
US9210568B1 (en) Hardware-capability update method for a portable device with multiple SIM cards
US20240090068A1 (en) Request information sending method and device, and request information receiving method and device
JP2023552458A (en) Connection establishment method and device
WO2020206640A1 (en) Resource indication method, and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16887585

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16887585

Country of ref document: EP

Kind code of ref document: A1