CN105677602B - A kind of device and method of the multiplexed port of terminal - Google Patents

A kind of device and method of the multiplexed port of terminal Download PDF

Info

Publication number
CN105677602B
CN105677602B CN201511027017.7A CN201511027017A CN105677602B CN 105677602 B CN105677602 B CN 105677602B CN 201511027017 A CN201511027017 A CN 201511027017A CN 105677602 B CN105677602 B CN 105677602B
Authority
CN
China
Prior art keywords
port
chip
switching mechanism
switch
terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201511027017.7A
Other languages
Chinese (zh)
Other versions
CN105677602A (en
Inventor
李春林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201511027017.7A priority Critical patent/CN105677602B/en
Publication of CN105677602A publication Critical patent/CN105677602A/en
Application granted granted Critical
Publication of CN105677602B publication Critical patent/CN105677602B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/382Information transfer, e.g. on bus using universal interface adapter
    • G06F13/385Information transfer, e.g. on bus using universal interface adapter for adaptation of a particular data processing system to different peripheral devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0042Universal serial bus [USB]

Landscapes

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

Abstract

The embodiment of the invention discloses a kind of devices of the multiplexed port of terminal, including the first chip, the second chip, USB socket and switching mechanism;The first port of switching mechanism connects the data pin of the first chip, and second port connects the data pin of the second chip, and third port connects the data pin of USB socket, the equipment that USB socket connects exterior of terminal;First chip when for needing to be communicated with the equipment of exterior of terminal, issues the first link order to the switching mechanism;Each chip when for needing to be communicated with another chip, issues the second link order to the switching mechanism;Switching mechanism, for when receiving the first link order, connecting itself first port and third port;When receiving the second link order, itself first port and second port are connected, so, it is possible the utilization efficiency for improving terminal USB interface.The embodiment of the invention also provides a kind of methods of the multiplexed port of terminal.

Description

A kind of device and method of the multiplexed port of terminal
Technical field
The present invention relates to the data transmission technology of terminal more particularly to a kind of device and method of the multiplexed port of terminal.
Background technique
Currently, intelligent mobile terminal using more and more extensive, smart phone, tablet computer (Portable Android Device, PAD) etc. functions it is stronger and stronger;Demand with people to message transmission rate is growing, many mobile devices Realize that double-channel data is downloaded using dual processor mode, processor can integrate to be realized on chip;Here, processor can For being modulated demodulation;In practical applications, mobile terminal is set through two different client identification modules (Subscriber Identity Module, SIM) card while downloading data, to realize twin-channel data downloading;Due to Final double-channel data will gather, and the processing such as data aggregate be carried out, then needing to carry out between two processors Data transmission.
In the prior art, dual processor can be realized by two chips, that is, each processor be integrated in one it is right On the chip answered;Here it is possible to realize summarizing for double-channel data using the channel of data transmission, specifically, can pass through The data-interfaces of two chips establishes data transmission channel;In addition, mobile terminal usually can use data-interface from outside Data are copied, further, for two chips in mobile terminal, are required to download program from outside by data-interface; Meanwhile the manufacturer of mobile terminal is in research and development, production mobile terminal, and by data-interface to two in mobile terminal Processor carries out factory mode operation.Here, data-interface can be USB interface.
As can be seen that the function that data-interface is realized includes following several: establishing the data transmission between two processors Channel, each processor are from mobile terminal excopy data;However, there is usually one data for mobile terminal Interface;Therefore, the above two above function how is realized on mobile terminals, there is not yet existing implementation method at present.
Summary of the invention
In order to solve the above technical problems, an embodiment of the present invention is intended to provide a kind of device of the multiplexed port of terminal and sides Method improves the utilization efficiency of terminal USB interface.
The technical scheme of the present invention is realized as follows:
The embodiment of the invention provides a kind of devices of the multiplexed port of terminal, including the first chip, the second chip, USB Socket and switching mechanism;The switching mechanism have first port, second port and third port, the first of the switching mechanism Port connects the data pin of the first chip, and the second port of the switching mechanism connects the data pin of the second chip, described The data pin of the third port connection USB socket of switching mechanism, the equipment of the USB socket connection exterior of terminal;Wherein,
First chip when for needing to be communicated with the equipment of exterior of terminal, issues the to the switching mechanism One link order;Each chip when for needing to be communicated with another chip, issues the second connection to the switching mechanism Instruction;
The switching mechanism, for when receiving the first link order, connecting itself first port and third port;? When receiving the second link order, itself first port and second port are connected.
In above scheme, second chip, when for needing to be communicated with the equipment of exterior of terminal, to the switch Mechanism issues third link order;
The switching mechanism is also used to connect itself second port and third port when receiving third link order.
In above scheme, the switching mechanism includes: first switch and the second switch;Wherein, the first switch has Moved end, the first non-moving end and the second non-moving end, the first port of the switching mechanism are the moved end of the first switch;Described Two switches connect between the first non-moving end and the second non-moving end of the first switch, and the second port of the switching mechanism is the The common node of two switches and the first non-moving end of first switch, the third port of the switching mechanism are second switch and first The common node of second non-moving end of switch;
First chip when for needing to be communicated with the equipment of exterior of terminal, issues the to the first switch One link order;Second chip when for needing to be communicated with the equipment of exterior of terminal, is issued to the second switch Third link order;First chip when for needing to be communicated with the second chip, issues second to the first switch Link order;
The first switch, for when receiving the first link order, connecting itself moved end and the second non-moving end;It is receiving When to the second link order, itself moved end and the first non-moving end are connected;
The second switch, for controlling itself in an ON state when receiving third link order.
In above scheme, described device further includes drive module, and the USB socket has sideband channel pin, the USB The sideband channel pin of socket connects drive module, and the sideband channel pin of the USB socket includes at least one following pin: SBU1 pin, SBU2 pin;
The equipment of the exterior of terminal, for sending the to USB socket when needing with the first chip communication in terminal One trigger signal;Need with terminal in the second chip communication when, to USB socket send the second trigger signal;
The USB socket sends the to drive module by sideband channel pin for when receiving the first trigger signal One activation signal;When receiving the second trigger signal, the second activation signal is sent to drive module by sideband channel pin;
The drive module, for when receiving the first activation signal, the first port and the of switching mechanism is connected in control Three ports;When receiving the second activation signal, the second port and third port of switching mechanism are connected in control.
In above scheme, the switching mechanism, for when receiving the first link order, cut off itself first port with The connecting path between connecting path and the second port of itself and third port between second port;Receiving third When link order, connecting path between itself first port and second port and the first port of itself and the are cut off Connecting path between three ports;When receiving the second link order, cut off between itself first port and third port Connecting path between connecting path and the second port of itself and third port.
The embodiment of the invention also provides a kind of method of the multiplexed port of terminal, terminal includes: the first chip, second Chip, USB socket and switching mechanism;The switching mechanism has first port, second port and third port, the switching on and shutting down The first port of structure connects the data pin of the first chip, and the data that the second port of the switching mechanism connects the second chip are drawn Foot, the data pin of the third port connection USB socket of the switching mechanism, the equipment of the USB socket connection exterior of terminal; The described method includes:
When the first chip needs are communicated with the equipment of exterior of terminal, the first connection is issued to the switching mechanism Instruction;The switching mechanism connects itself first port and third port when receiving the first link order;
When each chip needs are communicated with another chip, the second link order is issued to the switching mechanism;Institute Switching mechanism is stated when receiving the second link order, connects itself first port and second port.
In above scheme, the method also includes:
When the second chip needs are communicated with the equipment of exterior of terminal, third connection is issued to the switching mechanism Instruction;The switching mechanism connects itself second port and third port when receiving third link order.
In above scheme, the switching mechanism includes: first switch and the second switch;Wherein, the first switch has Moved end, the first non-moving end and the second non-moving end, the first port of the switching mechanism are the moved end of the first switch;Described Two switches connect between the first non-moving end and the second non-moving end of the first switch, and the second port of the switching mechanism is the The common node of two switches and the first non-moving end of first switch, the third port of the switching mechanism are second switch and first The common node of second non-moving end of switch;
When the first chip needs are communicated with the equipment of exterior of terminal, the first connection is issued to the switching mechanism Instruction, specifically: when the first chip needs are communicated with the equipment of exterior of terminal, first is issued to the first switch Link order;
The switching mechanism connects itself first port and third port when receiving the first link order, specifically: The first switch connects itself moved end and the second non-moving end when receiving the first link order;
When the second chip needs are communicated with the equipment of exterior of terminal, third connection is issued to the switching mechanism Instruction, specifically: when the second chip needs are communicated with the equipment of exterior of terminal, third is issued to the second switch Link order;
The switching mechanism connects itself second port and third port when receiving third link order, specifically: The second switch controls itself in an ON state when receiving third link order;
When first chip needs are communicated with another chip, the second link order, tool are issued to the switching mechanism Body are as follows: when the first chip needs are communicated with second chip, issue the second link order to the first switch;
The switching mechanism connects itself first port and second port when receiving the second link order, specifically: The first switch connects itself moved end and the first non-moving end when receiving the second link order.
In above scheme, the terminal further includes drive module, and the USB socket has sideband channel pin, the USB The sideband channel pin of socket connects drive module, and the sideband channel pin of the USB socket includes at least one following pin: SBU1 pin, SBU2 pin;
The method also includes:
The equipment of the exterior of terminal need with terminal in the first chip communication when, to USB socket send first touching It signals;Need with terminal in the second chip communication when, to USB socket send the second trigger signal;
The USB socket sends first to drive module by sideband channel pin and swashs when receiving the first trigger signal Signal living;When receiving the second trigger signal, the second activation signal is sent to drive module by sideband channel pin;
For the drive module when receiving the first activation signal, first port and the third end of switching mechanism are connected in control Mouthful;When receiving the second activation signal, the second port and third port of switching mechanism are connected in control.
In above scheme, the method also includes:
The switching mechanism is cut off between itself first port and second port when receiving the first link order Connecting path between connecting path and the second port of itself and third port;When receiving third link order, cutting The connection between connecting path and the first port of itself and third port between itself first port and second port Access;When receiving the second link order, cut off connecting path between itself first port and third port and itself Second port and third port between connecting path.
A kind of device and method of its multiplexed port of terminal provided in an embodiment of the present invention, including the first chip, second Chip, USB socket and switching mechanism;The switching mechanism has first port, second port and third port, the switching on and shutting down The first port of structure connects the data pin of the first chip, and the data that the second port of the switching mechanism connects the second chip are drawn Foot, the data pin of the third port connection USB socket of the switching mechanism, the equipment of the USB socket connection exterior of terminal; Wherein, first chip when for needing to be communicated with the equipment of exterior of terminal, issuing first to the switching mechanism and connecting Connect instruction;Each chip when for needing to be communicated with another chip, issuing the second connection to the switching mechanism and referring to It enables;The switching mechanism, for when receiving the first link order, connecting itself first port and third port;It is receiving When the second link order, itself first port and second port are connected;In this way, a USB interface of terminal is used only In the case of, it can be established with timesharing between the data channel between two chips and each chip and the equipment of exterior of terminal Data channel, and it is conducive to the operation of factory mode, improve the utilization efficiency of terminal USB interface.
Detailed description of the invention
The hardware structural diagram of Fig. 1 each embodiment one optional mobile terminal to realize the present invention;
Fig. 2 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is the front view of mobile terminal in first embodiment of the invention;
Fig. 4 is the rearview of mobile terminal in first embodiment of the invention;
Fig. 5 is the schematic diagram that mobile terminal is hold by one hand in first embodiment of the invention;
Fig. 6 is the composed structure schematic diagram of the device of the multiplexed port of terminal in first embodiment of the invention;
Fig. 7 is the composed structure signal of switching mechanism in the device of the multiplexed port of terminal in first embodiment of the invention Figure;
Fig. 8 is that the double-channel data of mobile terminal in the prior art realizes the structural schematic diagram summarized;
Fig. 9 is the composed structure schematic diagram of the device of the multiplexed port of terminal in second embodiment of the invention;
Figure 10 is the composed structure schematic diagram of the device of the multiplexed port of third embodiment of the invention terminal;
Figure 11 is the flow chart of the method for the multiplexed port of the terminal of the embodiment of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The mobile terminal of each embodiment of the present invention is realized in description with reference to the drawings.In subsequent description, use For indicate element such as " module ", " component " or " unit " suffix only for being conducive to explanation of the invention, itself There is no specific meanings.Therefore, " module " can be used mixedly with " component ".
Mobile terminal can be implemented in a variety of manners.For example, terminal described in the embodiment of the present invention may include all Such as mobile phone, smart phone, laptop, digit broadcasting receiver, personal digital assistant (PDA), tablet computer (PAD), the mobile terminal of portable media player (PMP), navigation device etc. and such as number TV, desktop computer Etc. fixed terminal.Hereinafter it is assumed that terminal is mobile terminal.However, it will be understood by those skilled in the art that in addition to special Except element for moving purpose, the construction of embodiment according to the present invention can also apply to the terminal of fixed type.
The hardware structural diagram of Fig. 1 each embodiment one optional mobile terminal to realize the present invention.
Mobile terminal 100 may include wireless communication unit 110, interface unit 170, controller 180 and power supply unit 190 Etc..Fig. 1 shows the mobile terminal with various assemblies, it should be understood that being not required for implementing all groups shown Part.More or fewer components can alternatively be implemented.The element of mobile terminal will be discussed in more detail below.
Wireless communication unit 110 generally includes one or more components, allows mobile terminal 100 and wireless communication system Or the radio communication between network.For example, wireless communication unit may include broadcasting reception module 111, mobile communication module 112, at least one of wireless Internet module 113 and short range communication module 114.
Broadcasting reception module 111 receives broadcast singal and/or broadcast from external broadcast management server via broadcast channel Relevant information.Broadcast channel may include satellite channel and/or terrestrial channel.Broadcast management server, which can be, to be generated and sent The broadcast singal and/or broadcast related information generated before the server or reception of broadcast singal and/or broadcast related information And send it to the server of terminal.Broadcast singal may include TV broadcast singal, radio signals, data broadcasting Signal etc..Moreover, broadcast singal may further include the broadcast singal combined with TV or radio signals.Broadcast phase Closing information can also provide via mobile communications network, and in this case, broadcast related information can be by mobile communication mould Block 112 receives.Broadcast singal can exist in a variety of manners, for example, it can be with the electronics of digital multimedia broadcasting (DMB) Program guide (EPG), digital video broadcast-handheld (DVB-H) electronic service guidebooks (ESG) etc. form and exist.Broadcast Receiving module 111 can receive signal broadcast by using various types of broadcast systems.Particularly, broadcasting reception module 111 It can be wide by using such as multimedia broadcasting-ground (DMB-T), digital multimedia broadcasting-satellite (DMB-S), digital video It broadcasts-holds (DVB-H), forward link media (MediaFLO@) Radio Data System, received terrestrial digital broadcasting integrated service (ISDB-T) etc. digit broadcasting system receives digital broadcasting.Broadcasting reception module 111, which may be constructed such that, to be adapted to provide for extensively Broadcast the various broadcast systems and above-mentioned digit broadcasting system of signal.
Mobile communication module 112 sends radio signals to base station (for example, access point, node B etc.), exterior terminal And at least one of server and/or receive from it radio signal.Such radio signal may include that voice is logical Talk about signal, video calling signal or according to text and/or Multimedia Message transmission and/or received various types of data.
The Wi-Fi (Wireless Internet Access) of the support mobile terminal of wireless Internet module 113.The module can be internally or externally It is couple to terminal.Wi-Fi (Wireless Internet Access) technology involved in the module may include WLAN (WLAN) (Wi-Fi), nothing Line width band (Wibro), worldwide interoperability for microwave accesses (Wimax), high-speed downlink packet access (HSDPA) etc..
Short range communication module 114 is the module for supporting short range communication.Some examples of short-range communication technology include indigo plant ToothTM, radio frequency identification (RFID), Infrared Data Association (IrDA), ultra wide band (UWB), purple honeybeeTMEtc..
Interface unit 170 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example, External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing Line data port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Identification module can be storage and use each of mobile terminal 100 for verifying user It plants information and may include subscriber identification module (UIM), client identification module (SIM), Universal Subscriber identification module (USIM) Etc..In addition, the device (hereinafter referred to as " identification device ") with identification module can take the form of smart card, therefore, know Other device can be connect via port or other attachment devices with mobile terminal 100.Interface unit 170, which can be used for receiving, to be come from The input (for example, data information, electric power etc.) of external device (ED) and the input received is transferred in mobile terminal 100 One or more elements can be used for transmitting data between mobile terminal and external device (ED).
In addition, when mobile terminal 100 is connect with external base, interface unit 170 may be used as allowing will be electric by it Power, which is provided from pedestal to the path or may be used as of mobile terminal 100, allows the various command signals inputted from pedestal to pass through it It is transferred to the path of mobile terminal.The various command signals or electric power inputted from pedestal, which may be used as mobile terminal for identification, is The no signal being accurately fitted on pedestal.
The overall operation of the usually control mobile terminal of controller 180.For example, controller 180 executes and voice communication, data Communication, video calling etc. relevant control and processing.Controller 180 can be with execution pattern identifying processing, will be in touch screen The handwriting input of upper execution or picture draw input and are identified as character or image.
Power supply unit 190 receives external power or internal power under the control of controller 180 and provides operation each member Electric power appropriate needed for part and component.
Various embodiments described herein can be to use the calculating of such as computer software, hardware or any combination thereof Machine readable medium is implemented.Hardware is implemented, embodiment described herein can be by using application-specific IC (ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), scene can Programming gate array (FPGA), controller, microcontroller, microprocessor, is designed to execute function described herein processor At least one of electronic unit is implemented, and in some cases, such embodiment can be implemented in controller 180. For software implementation, the embodiment of such as process or function can with allow to execute the individual of at least one functions or operations Software module is implemented.Software code can by the software application (or program) write with any programming language appropriate Lai Implement.
So far, mobile terminal is described according to its function.In the following, for the sake of brevity, will description such as folded form, Slide type mobile terminal in various types of mobile terminals of board-type, oscillating-type, slide type mobile terminal etc., which is used as, to be shown Example.Therefore, the present invention can be applied to any kind of mobile terminal, and be not limited to slide type mobile terminal.
Mobile terminal 100 as shown in Figure 1 may be constructed such that using via frame or grouping send data it is all if any Line and wireless communication system and satellite-based communication system operate.
Referring now to Fig. 2 description communication system that wherein mobile terminal according to the present invention can operate.
Different air interface and/or physical layer can be used in such communication system.For example, used by communication system Air interface includes such as frequency division multiple access (FDMA), time division multiple acess (TDMA), CDMA (CDMA) and universal mobile communications system System (UMTS) (particularly, long term evolution (LTE)), global system for mobile communications (GSM) etc..As non-limiting example, under The description in face is related to cdma communication system, but such introduction is equally applicable to other types of system.
With reference to Fig. 2, cdma wireless communication system may include multiple mobile terminals 100, multiple base stations (BS) 270, base station Controller (BSC) 275 and mobile switching centre (MSC) 280.MSC280 is configured to and Public Switched Telephony Network (PSTN) 290 form interface.MSC280 is also structured to form interface with the BSC275 that can be couple to base station 270 via back haul link. Back haul link can be constructed according to any in several known interfaces, and the interface includes such as E1/T1, ATM, IP, PPP, frame relay, HDSL, ADSL or xDSL.It will be appreciated that system may include multiple BSC275 as shown in Figure 2.
Each BS270 can service one or more subregions (or region), by multidirectional antenna or the day of direction specific direction Each subregion of line covering is radially far from BS270.Alternatively, each subregion can be by two or more for diversity reception Antenna covering.Each BS270, which may be constructed such that, supports multiple frequency distribution, and the distribution of each frequency has specific frequency spectrum (for example, 1.25MHz, 5MHz etc.).
What subregion and frequency were distributed, which intersects, can be referred to as CDMA Channel.BS270 can also be referred to as base station transceiver System (BTS) or other equivalent terms.In this case, term " base station " can be used for broadly indicating single BSC275 and at least one BS270.Base station can also be referred to as " cellular station ".Alternatively, each subregion of specific BS270 can be claimed For multiple cellular stations.
As shown in Figure 2, broadcast singal is sent to the mobile terminal operated in system by broadcsting transmitter (BT) 295 100.Broadcasting reception module 111 as shown in Figure 1 is arranged at mobile terminal 100 to receive the broadcast sent by BT295 Signal.In fig. 2 it is shown that several global positioning system (GPS) satellites 300.The help of satellite 300 positions multiple mobile terminals At least one of 100.
In Fig. 2, multiple satellites 300 are depicted, it is understood that, it is useful to can use any number of satellite acquisition Location information.GPS module 115 as shown in Figure 1 is generally configured to cooperate with satellite 300 to obtain desired positioning and believe Breath.It substitutes GPS tracking technique or except GPS tracking technique, the other of the position that can track mobile terminal can be used Technology.In addition, at least one 300 property of can choose of GPS satellite or extraly processing satellite dmb transmission.
As a typical operation of wireless communication system, BS270 receives the reverse link from various mobile terminals 100 Signal.Mobile terminal 100 usually participates in call, information receiving and transmitting and other types of communication.Certain base station 270 is received each anti- It is handled in specific BS270 to link signal.The data of acquisition are forwarded to relevant BSC275.BSC provides call The mobile management function of resource allocation and the coordination including the soft switching process between BS270.The number that BSC275 will also be received According to MSC280 is routed to, the additional route service for forming interface with PSTN290 is provided.Similarly, PSTN290 with MSC280 forms interface, and MSC and BSC275 form interface, and BSC275 controls BS270 correspondingly with by forward link signals It is sent to mobile terminal 100.
Based on above-mentioned mobile terminal hardware configuration and communication system, each embodiment of the invention out.
First embodiment
First embodiment of the invention provides a kind of device of the multiplexed port of terminal, in the first embodiment of the invention, The device can be realized by terminal.
Here, two processors can be used to handle data in terminal, and terminal can be fixed terminal, are also possible to move Terminal.
Here, mobile terminal include but is not limited to mobile phone, smart phone, laptop, digit broadcasting receiver, PDA, PAD, PMP, navigation device etc..
Here, if mobile terminal has operating system, which can be UNIX, Linux, Windows, Android (Android), Windows Phone etc..
It is illustrated in case where mobile terminal is mobile phone below.
In the first embodiment of the invention, Fig. 3 is the front view of mobile terminal in first embodiment of the invention, and Fig. 4 is this The rearview of mobile terminal in invention first embodiment.
Here, which also has portability, and specifically, mobile terminal may be implemented to be hold by one hand, and Fig. 5 is this hair The schematic diagram of mobile terminal is hold by one hand in bright first embodiment.
Fig. 6 is the composed structure schematic diagram of the device of the multiplexed port of terminal in first embodiment of the invention, such as Fig. 6 institute Show, which is located in terminal, comprising: the first chip 600, the second chip 601, USB socket 602 and switching mechanism 603.
Here, the function of each chip, which can according to need, is configured, and the circuit devcie that each chip integrates can also To be configured as needed, for example, being integrated at least one following device: power management integrated circuit on each chip (Power Management Integrated Circuit, PMIC), application processor, modem.
Specifically, the function that the function that the first chip is realized and the second chip are realized is different, for example, the first chip pair The data of a receiving channel carry out demodulation process in terminal, and the second chip carries out the data of another receiving channel in terminal Demodulation process.
In practical applications, each chip has data pin, and illustratively, the data pin of each chip can be Usb data pin, that is, there is D+ pin and D- pin, D+ pin indicates that data line anode, D- pin indicate number on each chip According to line cathode.
Here, each chip can be supported support as USB host as USB device.
Specifically, the switching mechanism 603 has first port K1, second port K2 and third port K3, the switch The data pin of the first chip of first port K1 connection 600 of mechanism 603, the second port K2 connection of the switching mechanism 603 The data pin of second chip 601, the data pin of the third port K3 connection USB socket 602 of the switching mechanism 603.
Here, USB socket 602 is the data-interface of the equipment of terminal and exterior of terminal, in terminal needs and exterior of terminal Equipment carry out data interaction when, can use USB socket connection exterior of terminal equipment;It is understood that USB socket 602 have D+ pin and D- pin;USB socket 602 also has power pins, which can be VBUS pin, in USB When socket needs to work normally, VBUS pin accesses power supply, and the voltage of power supply is usually 5V.
Here, the equipment of exterior of terminal can be computer, tablet computer, mobile phone etc..
Further, USB socket 602 can have sideband channel pin, and the sideband channel pin of USB socket connects driving Module, the sideband channel pin of USB socket include at least one following pin: SBU1 pin, SBU2 pin;Here, USB socket 602 can be Type c-type USB socket, be also possible to other USB sockets with sideband channel pin.
It is understood that the third port K3 of switching mechanism 603 includes two subports, one of subport connection The D+ pin of USB socket 602, another subport connect the D- pin of USB socket 602;When the data pin packet of each chip When including D+ pin and D- pin, the first port K1 of switching mechanism 603 also includes two subports, one of subport connection The D+ pin of first chip 600, another subport connect the D- pin of the first chip 600;The second port of switching mechanism 603 K2 also includes two subports, and one of subport connects the D+ pin of the second chip 601, another subport connection second The D- pin of chip 601.
In first embodiment of the invention, the communication with the second chip is may be implemented in the first chip, also may be implemented and terminal The communication of external equipment.
Specifically, the switching mechanism 603 at least has there are three types of working condition, the first work is in switching mechanism When state, the second port K2 of switching mechanism 603 is connected with third port K3;Second of working condition is in switching mechanism When, the first port K1 of switching mechanism 603 is connected with third port K3;When switching mechanism is in the third working condition, open The first port K1 of shutting mechanism 603 is connected with second port K2.
In practical applications, the switching mechanism can receive external command, and determine that itself works as according to external command Preceding working condition.
Specifically, the first chip 600, when for needing to be communicated with the equipment of exterior of terminal, to the switching mechanism Issue the first link order.
The switching mechanism 603, for when receiving the first link order, connecting itself first port K1 and third end Mouth K3;And cut off the connecting path between itself first port K1 and second port K2 and the second port K2 of itself with Connecting path between third port K3;Obviously, the data pin of the data pin of the first chip 600 and USB socket 602 at this time Connection is formed, in this way, the first chip can be realized and be led to the equipment of exterior of terminal based on itself access between USB Letter.
Specifically, each chip when for needing to be communicated with another chip, issues second to the switching mechanism Link order.
The switching mechanism 603, is also used to when receiving the second link order, connects the first port K1 and second of itself Port K2, and cut off the connecting path between itself first port K1 and third port K3 and the second port K2 of itself With the connecting path between third port K3;In this way, the data pin of two chips is switched on, data are may be implemented in two chips Interaction.
Specifically, second chip 601, when for needing to be communicated with the equipment of exterior of terminal, to the switch Mechanism issues third link order.
The switching mechanism 603 is also used to connect itself second port K2 and third when receiving third link order Port K3, and cut off the connecting path between itself first port K1 and second port K2 and the first port K1 of itself With the connecting path between third port K3;Obviously, the data pin of the second chip 601 and the data of USB socket 602 are drawn at this time Foot forms connection, in this way, the second chip can be realized and be carried out with the equipment of exterior of terminal based on itself access between USB Communication.
For the implementation of switching mechanism, specifically, Fig. 7 is the multiplexed port of terminal in first embodiment of the invention Device in switching mechanism composed structure schematic diagram;As shown in fig. 7, the switching mechanism 603 includes: 700 He of first switch Second switch 701;Wherein,
The first switch 700 has moved end 7001, the first non-moving end 7002 and the second non-moving end 7003, and described second opens Closing 701 has first port 7011 and second port 7012;The first port K1 of the switching mechanism 603 is the first switch 700 moved end 7001.
The second switch 701 connect the first non-moving end 7002 of the first switch 700 and the second non-moving end 7003 it Between, the second port K2 of the switching mechanism 603 is the second port 7012 and the first of first switch 700 of second switch 701 The common node of non-moving end 7002, the third port K3 of the switching mechanism 603 are second switch 701 and first switch 700 The common node of second non-moving end 7002.
In practical applications, first switch can be single-pole double throw (the Single Pole controlled by external command Double Throw, SPDT) switch, specifically, first switch hasPin and DIR pin, whereinPin can be with Pin is enabled for low level,When pin foot accesses low level signal, first switch is in closed state, first switch Moved end and the first non-moving end are connected, or are connected with the second non-moving end;?When pin accesses high level signal, first switch It is in an off state, the moved end of first switch is not connected with any one non-moving end;?Pin foot accesses low level signal When, it can be high level signal or low level signal according to the received level signal of DIR pin, to determine that connection first is motionless End or the second non-moving end.
Here, first switch can also be twin-channel SPDT switch, moved end and the first motionless termination when first switch When logical, the D+ pin of the first chip connects the D+ pin of the second chip, and the D- foot of the first chip connects the D- foot of the second chip;The When the moved end and the second non-moving end of one switch are connected, the D+ pin of the D+ pin connection USB socket of the first chip, the first chip The D- pin of D- pin connection USB socket.
In practical applications, second switch can be single-pole single-throw(SPST (the Single Pole controlled by external command Single Throw, SPST) switch, specifically, second switch hasPin, wherein/EN foot can be enabled for low level Pin, in/EN foot access low level, second switch is in closed state, and first port and the second port of second switch connect It is logical;In/EN foot access high level, second switch is in an off state, the first port of first switch not with second port.
Second switch is also possible to SPDT switch, in this case, neglects a non-moving end of SPDT switch.
In practical applications, when the first port of second switch is connected with second port, the D+ pin of the second chip connects Connect the D+ pin of USB socket, the D- pin of the D- pin connection USB socket of the second chip.
Here, first chip 600 when for needing to be communicated with the equipment of exterior of terminal, is opened to described first It closes and issues the first link order.
Second chip 601 when for needing to be communicated with the equipment of exterior of terminal, is issued to the second switch Third link order.
First chip 600 when for needing to be communicated with the second chip, issuing second to the first switch and connecting Connect instruction.
The first switch 700, for when receiving the first link order, connecting itself moved end and the second non-moving end; When receiving the second link order, itself moved end and the first non-moving end are connected.
The second switch 701, for controlling itself in an ON state when receiving third link order.
It is compared below by with the implementation of existing terminal data interface, to illustrate that the present invention can achieve the effect that.
Fig. 8 is the structural schematic diagram that the double-channel data realization of mobile terminal in the prior art summarizes, as shown in figure 8, In mobile terminal, the modulation /demodulation of double-channel data is realized respectively using two processors, the two processors are remembered respectively For processor 1 and processor 2, processor 1 realizes that processor 2 is realized using fourth chip 801 using third chip 800;Third Chip 800 is also integrated with application processor (AP);In the terminal, there are two also setting up before RF transceiver, two radio frequencies End and two antennas, the two RF transceivers are respectively the first RF transceiver 802 and the second RF transceiver 803, this two A radio-frequency front-end is respectively the first radio-frequency front-end 804 and the second radio-frequency front-end 805, the two antennas are respectively first antenna 806 With the second antenna 807;For third chip 800, pass through the first RF transceiver 802, the first radio-frequency front-end 804 and first antenna 806 receive data of eating dishes without rice or wine;For fourth chip 801, pass through the second RF transceiver 803, the second radio-frequency front-end 805 and second Antenna 807 receives data of eating dishes without rice or wine.
In practical applications, each processor after receiving the data, carries out demodulation process, by the signal after demodulation process It is sent in AP, the processing such as data aggregate is carried out by AP.
As can be seen that may only have a high speed interface, as only one USB connects for third chip Mouthful, then the interface that this USB interface is not communicated with fourth chip still, or from exterior of terminal copy data interface, It is also the channel of plant operation downloading program, this is to say, realizes three functions with this interface.
For fourth chip, may only have a high speed interface, such as only one USB interface, this USB The channel for interface or factory mode the downloading program not communicated with third chip still, that is to say, that this interface is real Existing two functions.
Compared with prior art, it using the device of the multiplexed port of the terminal of first embodiment of the invention, is being used only eventually In the case where one USB interface at end, data channel, each chip and the exterior of terminal between two chips can be established with timesharing Equipment between data channel, and be conducive to factory mode operation, improve the utilization efficiency of terminal USB interface.
Second embodiment
In order to more embody the purpose of the present invention, on the basis of first embodiment of the invention, further lifted Example explanation.
Second embodiment of the invention provides a kind of device of the multiplexed port of terminal, the terminal of second embodiment of the invention Multiplexed port device compared with the device of the multiplexed port of the terminal of first embodiment of the invention, increase drive module, Working condition for control switch mechanism.
Fig. 9 is the composed structure schematic diagram of the device of the multiplexed port of terminal in second embodiment of the invention, such as Fig. 9 institute Show, which includes: the first chip 600, the second chip 601, USB socket 602, switching mechanism 603 and drive module 604;
Wherein, the implementation of the first chip 600, the second chip 601, USB socket 602 and switching mechanism 603 exists It makes an explanation in first embodiment of the invention, explanation is not repeated herein.
Specifically, the sideband channel pin of the USB socket 602 connects drive module 604;
The equipment of the exterior of terminal, for sending the to USB socket when needing with the first chip communication in terminal One trigger signal;Need with terminal in the second chip communication when, to USB socket send the second trigger signal;
The USB socket 602, for being sent out to drive module by sideband channel pin when receiving the first trigger signal Send the first activation signal;When receiving the second trigger signal, the second activation is sent to drive module by sideband channel pin and is believed Number.
The drive module 604, for when receiving the first activation signal, control connect switching mechanism first port and Third port;When receiving the second activation signal, the second port and third port of switching mechanism are connected in control.
Here, drive module is when receiving the first activation signal, the first port and second port of cut-out switch mechanism it Between connecting path and switching mechanism second port and third port between connecting path;Receiving the second activation letter Number when, the first port of connecting path and switching mechanism between the first port and second port of cut-out switch mechanism with Connecting path between third port.
Using the device of the multiplexed port of the terminal of second embodiment of the invention, in the USB interface that terminal is used only In the case where, the number between the data channel between two chips, each chip and the equipment of exterior of terminal can be established with timesharing According to channel, and it is conducive to the operation of factory mode, improves the utilization efficiency of terminal USB interface.
3rd embodiment
In order to more embody the purpose of the present invention, on the basis of first embodiment of the invention and second embodiment, into Row is further to be illustrated.
In third embodiment of the invention, it is illustrated so that USB socket is Type c-type USB socket as an example.
Figure 10 is the composed structure schematic diagram of the device of the multiplexed port of third embodiment of the invention terminal, such as Figure 10 institute Show, the device include: fifth chip Y1, the 6th chip Y2, Type c-type USB socket X1, third switch S1, the 4th switch S2, DC-DC circuit T1 and the 6th chip drives module E1.
Specifically, fifth chip Y1 at least has following pin: interrupting 1 pin, VBUS pin, 1 pin of control, control Make 2 pins, control 3 pins, D+ pin, D- pin;6th chip Y2 at least has following pin: VBUS pin, D+ draw Foot, D- pin;6th chip drives module E1 includes at least 2 input pins and 3 output pins, this 2 input pins point 1 pin, 2 pins of input Wei not be inputted, this 3 output pins are respectively to export 3 pins of 1 pin, 2 pins of output and output; Type c-type USB socket X1 includes at least following pin: D+ pin, D- pin, VBUS pin, SBU1 pin and SBU2 pin.
One end of 4th switch S2 is C1 foot and D1 foot, and the other end is C2 foot and D2 foot, when the 4th switch S2 closure, the The C1 foot of four switch S2 connects C2 foot, and the D1 foot of the 4th switch S2 connects D2 foot;When the 4th switch disconnects, the 4th switch S2's Access between C1 foot and C2 foot is cut off, and the access between the D1 foot and D2 foot of the 4th switch S2 is cut off;4th switch S2 Also havePin,When pin accesses low level signal, the 4th switch S2 closure;Conversely,Pin access is high When level signal, the 4th switch S2 is disconnected.
There are two moved ends for third switch S1 tool, the two moved ends are expressed as A1 foot and B1 foot;Third switch S1 has Four non-moving ends, this four non-moving ends are respectively A2 foot, B2 foot, A3 foot and B3 foot, and third switch S1 also hasPin and DIR pin;?When pin accesses low level signal and DIR pin access high level signal, the A1 foot of third switch connects A2 The B1 foot of foot, third switch connects B2 foot;?When pin accesses low level signal and DIR pin access low level signal, the The A1 foot of three switches connects A3 foot, and the B1 foot of third switch connects B4 foot.
Third switch S1'sPin connect fifth chip Y1 1 pin of control and the 6th chip drives module E1 it is defeated The common node of 2 pins out, 2 pin of control of the DIR pin connection fifth chip of third switch S1;The A1 foot of third switch S1 The D+ pin of fifth chip is connected, B1 foot connects the D- pin of fifth chip Y1;The B3 foot and the 4th switch S2 of third switch S1 D2 foot common node connection Type c-type USB socket X1 D- pin, the A3 foot of third switch S1 and the 4th switch S2's The D+ pin of the common node connection Type c-type USB socket X1 of C2 foot;The A2 foot of third switch S1 and the C1 of the 4th switch S2 The common node of foot connects the D+ pin of the 6th chip Y2, the public section of the D1 foot of the B2 foot and the 4th switch S2 of third switch S1 The D- pin of the 6th chip Y2 of point connection.
1 pin of interruption of 1 pin of the output connection fifth chip Y1 of 6th chip drives module E1, the 6th chip drives mould 3 pin of output of block E1 connects the 4th switch S2's1 pin of input of pin, the 6th chip drives module E1 connects Type The SBU1 pin of c-type USB socket X1,2 pin of the input connection Type c-type USB socket X1's of the 6th chip drives module E1 SBU2 pin;The VBUS pin of the VBUS pin connection fifth chip Y1 of Type c-type USB socket X1;The control of fifth chip Y1 3 pins connect the control terminal of DC-DC circuit T1, and the output end of DC-DC circuit T1 connects the VBUS pin of the 6th chip Y2.
In third embodiment of the invention, fifth chip can be used as USB host or USB device, the 6th chip only when Do USB device use;DC-DC circuit T1 can generate the voltage of 5V under the control of fifth chip, for supplying the 6th Chip makees the plug/unplug detection of USB;In example, DC-DC circuit can integrate to be realized in fifth chip, can also be separately provided Outside fifth chip.
In practical applications, the 6th chip drives module can be made into using integrated circuit or discrete component, receive to come From the input of Type c-type USB socket, and output phase should control and state logic, other circuits is instructed to complete circuit switching;
Three kinds of situations are divided to make an explanation the implementation of third embodiment of the invention below.
1) fifth chip needs are communicated with the 6th chip.
Fifth chip is as USB host, and the 6th chip is as USB device;1 pin of the control output of fifth chip is low Level signal, 2 pins of control export high level signal;Third switch existsThe control for the signal that pin and DIR pin are received Under, connection A1 foot and A2 foot, and it is connected to B1 foot and B2 foot;
For 3 pin of the control output high level signal of fifth chip to DC-DC circuit, DC-DC circuit is receiving high level control When signal processed, the VBUS pin of output 5V level to the 6th chip;After the VBUS pin of 6th chip powers on, the D+ pin of itself It can change with the level of D- pin, fifth chip is after detecting this variation, it is believed that have USB device insertion, initiate Enumeration process makes to establish data transmission channel between fifth chip and the 6th chip.
2) fifth chip needs are communicated with the computer (PC) of exterior of terminal.
The computer of exterior of terminal is as USB host, and fifth chip is as USB device;PC exports 5V power supply extremely The VBUS pin of Type c-type USB socket, the VBUS pin of fifth chip control the control 3 of itself after received 5V level Pin exports low level signal, and DC-DC circuit stops working after receiving low level control signal, no longer to the 6th chip VBUS pin provide 5V level.
1 pin of control of fifth chip exports low level signal, and 2 pin of control of fifth chip exports low level signal, Third switch existsUnder the control for the signal that pin and DIR pin are received, connection A1 foot and A3 foot, and it is connected to B1 foot and B3 Foot;At this point, PC detects the D+ pin of fifth chip and the level of D- pin, it is believed that have USB device insertion, initiate to enumerate Process makes to establish data transmission channel between the PC of exterior of terminal and fifth chip.
3) the 6th chip needs are communicated with the PC of exterior of terminal.
PC connection Type c-type USB socket, the SBU1 pin and SBU2 pin of Type c-type USB socket are received to come from PC Trigger signal after, send corresponding trigger signal to 1 pin of input of the 6th chip drives module and 2 pins of input respectively, To activate the 6th chip drives module;After 6th chip drives module is activated, letter is interrupted in 1 pin of the output output for controlling itself Number, for notifying fifth chip to prepare to disconnect the data transmission channel with the 6th chip;The output 2 of 6th chip drives module is drawn Foot is switched to thirdPin exports high level signal, by third switchThe level of pin is drawn high, and forces to disconnect the Data transmission channel between five chips and the 6th chip;What 3 pin of output of the 6th chip drives module was switched to the 4thPin export low level signal, the 4th switch itselfWhen pin receives low level signal, it is connected to C2 foot and C1 Foot, and it is connected to D2 foot and D1 foot;The 6th chip is established to the data channel between PC.
Fifth chip controls the level and third switch of 1 pin of control of itself after receiving interrupt signalPin Level be consistent, to avoid generate electric leakage;Meanwhile to DC-DC circuit export low level signal, prevent DC-DC circuit from 5V level is exported to the VBUS pin of the 6th chip;Fifth chip to DC-DC circuit output low level signal the t second after, then High level signal is exported to DC-DC circuit, here, t is setting value, and setting delay in t second is in order to ensure fifth chip and the Data channel between six chips really disconnects;DC-DC circuit is when receiving high-level control signal, output 5V level to the 6th The VBUS pin of chip;Hereafter, PC detects the level change on the D+ pin and D- pin of the 6th chip, and initiation was enumerated Journey establishes the USB connection between the 6th chip.
Further, the 6th chip drives module can also only connect SBU1 pin or SBU2 pin.
In device layout, third can also be switched to the position for being layer adjacent to the 4th switch, and open third as far as possible It closes and the 4th switchs close to the 6th chip, reduce due to data path multiplexing and influence of the bring to signal integrity.
Using the device of the multiplexed port of the terminal of third embodiment of the invention, in the USB interface that terminal is used only In the case where, the number between the data channel between two chips, each chip and the equipment of exterior of terminal can be established with timesharing According to channel, and it is conducive to the operation of factory mode, improves the utilization efficiency of terminal USB interface.
Fourth embodiment
For the method for the embodiment of the present invention, the embodiment of the invention also provides the methods of the multiplexed port of terminal, here, Terminal includes: the first chip, the second chip, USB socket and switching mechanism;The switching mechanism has first port, second end Mouth and third port, the data pin of first port the first chip of connection of the switching mechanism, the second of the switching mechanism Port connects the data pin of the second chip, and the data pin of the third port connection USB socket of the switching mechanism is described The equipment of USB socket connection exterior of terminal.
Figure 11 is the flow chart of the method for the multiplexed port of the terminal of the embodiment of the present invention, as shown in figure 11, this method packet It includes:
Step 1100: when the first chip needs are communicated with the equipment of exterior of terminal, being sent out to the switching mechanism First link order out;When each chip needs are communicated with another chip, the second connection is issued to the switching mechanism Instruction;
Step 1101: the switching mechanism connects itself first port and third end when receiving the first link order Mouthful;The switching mechanism connects itself first port and second port when receiving the second link order.
Further, this method further include:
When the second chip needs are communicated with the equipment of exterior of terminal, third connection is issued to the switching mechanism Instruction;The switching mechanism connects itself second port and third port when receiving third link order.
Specifically, the switching mechanism includes: first switch and the second switch;Wherein, the first switch has dynamic End, the first non-moving end and the second non-moving end, the first port of the switching mechanism are the moved end of the first switch;Described second Switch connects between the first non-moving end and the second non-moving end of the first switch, and the second port of the switching mechanism is second The common node of switch and the first non-moving end of first switch, the third port of the switching mechanism are that second switch is opened with first The common node for the second non-moving end closed;
When the first chip needs are communicated with the equipment of exterior of terminal, the first connection is issued to the switching mechanism Instruction, specifically: when the first chip needs are communicated with the equipment of exterior of terminal, first is issued to the first switch Link order;
The switching mechanism connects itself first port and third port when receiving the first link order, specifically: The first switch connects itself moved end and the second non-moving end when receiving the first link order;
When the second chip needs are communicated with the equipment of exterior of terminal, third connection is issued to the switching mechanism Instruction, specifically: when the second chip needs are communicated with the equipment of exterior of terminal, third is issued to the second switch Link order;
The switching mechanism connects itself second port and third port when receiving third link order, specifically: The second switch controls itself in an ON state when receiving third link order;
When first chip needs are communicated with another chip, the second link order, tool are issued to the switching mechanism Body are as follows: when the first chip needs are communicated with second chip, issue the second link order to the first switch;
The switching mechanism connects itself first port and second port when receiving the second link order, specifically: The first switch connects itself moved end and the first non-moving end when receiving the second link order.
Further, the terminal further includes drive module, and the USB socket is with sideband channel pin;The USB The sideband channel pin of socket connects drive module, and the sideband channel pin of the USB socket includes at least one following pin: SBU1 pin, SBU2 pin;
The method also includes:
The equipment of the exterior of terminal need with terminal in the first chip communication when, to USB socket send first touching It signals;Need with terminal in the second chip communication when, to USB socket send the second trigger signal;
The USB socket sends first to drive module by sideband channel pin and swashs when receiving the first trigger signal Signal living;When receiving the second trigger signal, the second activation signal is sent to drive module by sideband channel pin.
For the drive module when receiving the first activation signal, first port and the third end of switching mechanism are connected in control Mouthful;When receiving the second activation signal, the second port and third port of switching mechanism are connected in control.
Further, the method also includes:
The switching mechanism is cut off between itself first port and second port when receiving the first link order Connecting path between connecting path and the second port of itself and third port;When receiving third link order, cutting The connection between connecting path and the first port of itself and third port between itself first port and second port Access;When receiving the second link order, cut off connecting path between itself first port and third port and itself Second port and third port between connecting path.
Using the method for the multiplexed port of the terminal of fourth embodiment of the invention, in the USB interface that terminal is used only In the case where, the number between the data channel between two chips, each chip and the equipment of exterior of terminal can be established with timesharing According to channel, and it is conducive to the operation of factory mode, improves the utilization efficiency of terminal USB interface.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program Product.Therefore, the shape of hardware embodiment, software implementation or embodiment combining software and hardware aspects can be used in the present invention Formula.Moreover, the present invention, which can be used, can use storage in the computer that one or more wherein includes computer usable program code The form for the computer program product implemented on medium (including but not limited to magnetic disk storage and optical memory etc.).
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the scope of the present invention.

Claims (10)

1. a kind of device of the multiplexed port of terminal, which is characterized in that described device is located in terminal, and described device includes first Chip, the second chip, USB socket and switching mechanism;The switching mechanism has first port, second port and third port, The first port of the switching mechanism connects the data pin of the first chip, and the second port of the switching mechanism connects the second core The data pin of piece, the data pin of the third port connection USB socket of the switching mechanism, the USB socket connect terminal External equipment;Wherein,
First chip when for needing to be communicated with the equipment of exterior of terminal, issuing first to the switching mechanism and connecting Connect instruction;Each chip when for needing to be communicated with another chip, issuing the second connection to the switching mechanism and referring to It enables;
The switching mechanism, for when receiving the first link order, connecting itself first port and third port;It is receiving When the second link order, itself first port and second port are connected;
Described device further includes drive module, and the USB socket has sideband channel pin, the sideband channel of the USB socket Pin connects drive module, and the sideband channel pin of the USB socket includes at least one following pin: SBU1 pin, SBU2 Pin;The drive module, for when receiving the first activation signal, first port and the third end of switching mechanism to be connected in control Mouthful;When receiving the second activation signal, the second port and third port of switching mechanism are connected in control.
2. the apparatus according to claim 1, which is characterized in that second chip, for needing to set with exterior of terminal For when being communicated, third link order is issued to the switching mechanism;
The switching mechanism is also used to connect itself second port and third port when receiving third link order.
3. the apparatus of claim 2, which is characterized in that the switching mechanism includes: first switch and the second switch; Wherein, the first switch has moved end, the first non-moving end and the second non-moving end, and the first port of the switching mechanism is described The moved end of first switch;The second switch connects between the first non-moving end and the second non-moving end of the first switch, described The second port of switching mechanism is the common node of the first non-moving end of second switch and first switch, the of the switching mechanism Three ports are the common node of the second non-moving end of second switch and first switch;
First chip when for needing to be communicated with the equipment of exterior of terminal, issuing first to the first switch and connecting Connect instruction;Second chip when for needing to be communicated with the equipment of exterior of terminal, issues third to the second switch Link order;First chip when for needing to be communicated with the second chip, issues the second connection to the first switch Instruction;
The first switch, for when receiving the first link order, connecting itself moved end and the second non-moving end;Receiving When two link orders, itself moved end and the first non-moving end are connected;
The second switch, for controlling itself in an ON state when receiving third link order.
4. the apparatus of claim 2, which is characterized in that the equipment of the exterior of terminal, in needs and terminal When interior first chip communication, the first trigger signal is sent to USB socket;Need with terminal in the second chip communication when, The second trigger signal is sent to USB socket;
The USB socket, for sending first to drive module by sideband channel pin and swashing when receiving the first trigger signal Signal living;When receiving the second trigger signal, the second activation signal is sent to drive module by sideband channel pin.
5. according to the described in any item devices of claim 2 to 4, which is characterized in that the switching mechanism, for receiving first When link order, connecting path between itself first port and second port and the second port of itself and the are cut off Connecting path between three ports;When receiving third link order, cut off between itself first port and second port Connecting path between connecting path and the first port of itself and third port;When receiving the second link order, cutting The connection between connecting path and the second port of itself and third port between itself first port and third port Access.
6. a kind of method of the multiplexed port of terminal, which is characterized in that terminal includes: the first chip, the second chip, USB socket And switching mechanism;The switching mechanism has first port, second port and third port, the first port of the switching mechanism The data pin of the first chip is connected, the second port of the switching mechanism connects the data pin of the second chip, the switch The data pin of the third port connection USB socket of mechanism, the equipment of the USB socket connection exterior of terminal;The method packet It includes:
When the first chip needs are communicated with the equipment of exterior of terminal, the first connection is issued to the switching mechanism and is referred to It enables;The switching mechanism connects itself first port and third port when receiving the first link order;
When each chip needs are communicated with another chip, the second link order is issued to the switching mechanism;It is described to open Shutting mechanism connects itself first port and second port when receiving the second link order,
The terminal further includes drive module, and the USB socket has sideband channel pin, the sideband channel of the USB socket Pin connects drive module, and the sideband channel pin of the USB socket includes at least one following pin: SBU1 pin, SBU2 Pin;For the drive module when receiving the first activation signal, the first port and third port of switching mechanism are connected in control;? When receiving the second activation signal, the second port and third port of switching mechanism are connected in control.
7. according to the method described in claim 6, it is characterized in that, the method also includes:
When the second chip needs are communicated with the equipment of exterior of terminal, third connection is issued to the switching mechanism and is referred to It enables;The switching mechanism connects itself second port and third port when receiving third link order.
8. the method according to the description of claim 7 is characterized in that the switching mechanism includes: first switch and the second switch; Wherein, the first switch has moved end, the first non-moving end and the second non-moving end, and the first port of the switching mechanism is described The moved end of first switch;The second switch connects between the first non-moving end and the second non-moving end of the first switch, described The second port of switching mechanism is the common node of the first non-moving end of second switch and first switch, the of the switching mechanism Three ports are the common node of the second non-moving end of second switch and first switch;
When the first chip needs are communicated with the equipment of exterior of terminal, the first connection is issued to the switching mechanism and is referred to It enables, specifically: when the first chip needs are communicated with the equipment of exterior of terminal, first is issued to the first switch and is connected Connect instruction;
The switching mechanism connects itself first port and third port when receiving the first link order, specifically: it is described First switch connects itself moved end and the second non-moving end when receiving the first link order;
When the second chip needs are communicated with the equipment of exterior of terminal, third connection is issued to the switching mechanism and is referred to It enables, specifically: when the second chip needs are communicated with the equipment of exterior of terminal, third is issued to the second switch and is connected Connect instruction;
The switching mechanism connects itself second port and third port when receiving third link order, specifically: it is described Second switch controls itself in an ON state when receiving third link order;
When first chip needs are communicated with another chip, the second link order is issued to the switching mechanism, specifically: When the first chip needs are communicated with second chip, the second link order is issued to the first switch;
The switching mechanism connects itself first port and second port when receiving the second link order, specifically: it is described First switch connects itself moved end and the first non-moving end when receiving the second link order.
9. the method according to the description of claim 7 is characterized in that the method also includes:
The equipment of the exterior of terminal need with terminal in the first chip communication when, to USB socket send first triggering letter Number;Need with terminal in the second chip communication when, to USB socket send the second trigger signal;
The USB socket sends the first activation to drive module by sideband channel pin and believes when receiving the first trigger signal Number;When receiving the second trigger signal, the second activation signal is sent to drive module by sideband channel pin.
10. method according to any one of claims 7 to 9, which is characterized in that the method also includes:
The switching mechanism cuts off the connection between itself first port and second port when receiving the first link order Connecting path between access and the second port of itself and third port;When receiving third link order, itself is cut off First port and second port between connecting path and the first port of itself and third port between connection it is logical Road;When receiving the second link order, cut off connecting path between itself first port and third port and itself Connecting path between second port and third port.
CN201511027017.7A 2015-12-30 2015-12-30 A kind of device and method of the multiplexed port of terminal Active CN105677602B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201511027017.7A CN105677602B (en) 2015-12-30 2015-12-30 A kind of device and method of the multiplexed port of terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201511027017.7A CN105677602B (en) 2015-12-30 2015-12-30 A kind of device and method of the multiplexed port of terminal

Publications (2)

Publication Number Publication Date
CN105677602A CN105677602A (en) 2016-06-15
CN105677602B true CN105677602B (en) 2018-12-04

Family

ID=56298301

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201511027017.7A Active CN105677602B (en) 2015-12-30 2015-12-30 A kind of device and method of the multiplexed port of terminal

Country Status (1)

Country Link
CN (1) CN105677602B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018014474A1 (en) * 2016-07-20 2018-01-25 中兴通讯股份有限公司 Audio switching method, device, terminal, earpiece and storage medium
CN107222235B (en) * 2017-06-29 2023-02-03 上海传英信息技术有限公司 LTE communication device
US20200272591A1 (en) * 2017-12-15 2020-08-27 Sony Corporation Port circuit, method for supplying power for electronic device via port circuit and electronic device
CN108226764A (en) * 2017-12-20 2018-06-29 北京松果电子有限公司 Debugging apparatus and adjustment method
CN108259953A (en) * 2018-03-06 2018-07-06 深圳康佳信息网络有限公司 Interface multiplexing circuit, method for multiplexing interface and the set-top box of set-top box
CN109840240B (en) * 2018-12-31 2021-05-04 武汉芯动科技有限公司 Chip, distributed computing device and method
CN115048324A (en) * 2021-03-09 2022-09-13 中兴通讯股份有限公司 Multiplexing method, circuit, electronic device and storage medium of USB interface

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101089835A (en) * 2007-05-30 2007-12-19 华为技术有限公司 Control method, system and equipment of single serial port multi-CPU
CN100571432C (en) * 2007-07-24 2009-12-16 中兴通讯股份有限公司 Duplex method for communication port in the portable terminal
CN101668350A (en) * 2008-09-01 2010-03-10 联想(北京)有限公司 Mobile-terminal state-switching method and mobile terminal
CN103067907A (en) * 2012-12-20 2013-04-24 中兴通讯股份有限公司 Multi-mode terminals and switching method of multi-mode terminals

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8666331B2 (en) * 2012-02-09 2014-03-04 Broadcom Corporation Cascading baseband processors

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101089835A (en) * 2007-05-30 2007-12-19 华为技术有限公司 Control method, system and equipment of single serial port multi-CPU
CN100571432C (en) * 2007-07-24 2009-12-16 中兴通讯股份有限公司 Duplex method for communication port in the portable terminal
CN101668350A (en) * 2008-09-01 2010-03-10 联想(北京)有限公司 Mobile-terminal state-switching method and mobile terminal
CN103067907A (en) * 2012-12-20 2013-04-24 中兴通讯股份有限公司 Multi-mode terminals and switching method of multi-mode terminals

Also Published As

Publication number Publication date
CN105677602A (en) 2016-06-15

Similar Documents

Publication Publication Date Title
CN105677602B (en) A kind of device and method of the multiplexed port of terminal
CN105893304B (en) A kind of terminal and its implementation for supporting double network data transmission
CN206135901U (en) Non - alien frequencies goes upward carrier wave polymerization circuit and device
CN111031150B (en) Terminal and communication method of terminal
CN108365860B (en) Terminal equipment
CN105354093A (en) Memory management method and mobile terminal
CN105406889A (en) Method and device for determining network type and mobile terminal
CN103067907A (en) Multi-mode terminals and switching method of multi-mode terminals
CN101340660A (en) Multi-mode mobile terminal and multi-mode switching method
CN104955080A (en) Mobile terminal work mode control method and device as well as mobile terminal
CN105162491A (en) Antenna and control method for radiofrequency signals transmitted by antenna
US20240080780A1 (en) LTE NR Power Control for EN-DC
CN109687889A (en) Radio circuit and terminal
CN102622643A (en) Secure digital card capable of transmitting data via wireless network
CN106027113A (en) Method for improving stability of antenna and terminal
CN105578509A (en) Multi-channel based data service processing method and apparatus
CN106130569A (en) A kind of antenna assembly and terminal
CN105517084A (en) Service processing method, service processing apparatus and mobile terminal in hybrid network types
CN104469992A (en) Multimode mobile terminal
CN201904781U (en) WiFi (wireless fidelity) base station antenna system capable of supplying non-interfering channels simultaneously
CN105407521A (en) Terminal service processing method and device as well as mobile terminal
CN204559569U (en) Active distributed antenna system and relaying terminal thereof
CN101707814A (en) PHS/GSM dual-mode mobile phone system based on PHS mobile station
CN103458074B (en) Mobile terminal and rear cover
CN105406891A (en) Carrier aggregation mode setting method for communication terminal and communication terminal

Legal Events

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