WO2012079457A1 - Interface switching control method, and portable terminal and portable mobile device using same - Google Patents

Interface switching control method, and portable terminal and portable mobile device using same Download PDF

Info

Publication number
WO2012079457A1
WO2012079457A1 PCT/CN2011/083137 CN2011083137W WO2012079457A1 WO 2012079457 A1 WO2012079457 A1 WO 2012079457A1 CN 2011083137 W CN2011083137 W CN 2011083137W WO 2012079457 A1 WO2012079457 A1 WO 2012079457A1
Authority
WO
WIPO (PCT)
Prior art keywords
interface
state
portable terminal
control
electronic device
Prior art date
Application number
PCT/CN2011/083137
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 联想(北京)有限公司
Priority to US13/993,261 priority Critical patent/US9588927B2/en
Publication of WO2012079457A1 publication Critical patent/WO2012079457A1/en

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/40Bus structure
    • G06F13/4004Coupling between buses
    • G06F13/4027Coupling between buses using bus bridges
    • 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
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/1613Constructional details or arrangements for portable computers
    • G06F1/1626Constructional details or arrangements for portable computers with a single-body enclosure integrating a flat display, e.g. Personal Digital Assistants [PDAs]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Definitions

  • a portable terminal of a hybrid system architecture is a PC embedded in at least one other system based on a PC (Personal Computer) having only one system. Different systems can work together to take advantage of their respective strengths.
  • Portable terminals of the existing common hybrid system architecture usually integrate a main system (for example, an X86 system) and a slave system (for example, an ARM system), and a shared device such as a keyboard, a network card, or the like can be shared between the master system and the slave system. Display, storage device, Audio, etc.
  • the system is usually integrated on the slave device where the display screen is located, and the master system is integrated on the master device where the keyboard is located.
  • the master device and the slave device can work together in combination, or can work independently.
  • the display is used by the slave device.
  • the display can be used by either the master device or the slave device.
  • the existing master device and the slave device need to unify the interface bus when sharing the shared device, that is, each device uses the same interface bus to mount the shared device. . Therefore, in order to be compatible with all interfaces of one of the devices, the interface of the other device must be extended to maintain consistency between the two.
  • the ARM system requires the interface to respond quickly and consumes low power
  • the X86 system requires the interface bus to be common to reduce the number of drive mounts. The way to unify the interface will reduce the system performance of the portable terminal and will not meet the needs of each system.
  • An object of the embodiments of the present invention is to provide an interface switching control method, a portable terminal, a portable mobile device, and an input device, to solve the problem of unified interface setting between a master device and a slave device in the prior art, resulting in system performance degradation. Unable to meet the needs of each system.
  • the embodiment of the present application provides the following technical solutions:
  • An interface switching control method is applied to a portable terminal including a first device and a second device, the first device Connecting to the shared device by using the first interface, the second device is connected to the shared device by using a second interface, where the portable terminal has a first state in which the first device and the second device are connected, and the first device a second state in which the device and the second device are separated, the method includes:
  • the first interface is controlled to be in a non-enabled state while controlling the second interface to be in an enabled state.
  • the first interface is different from the second interface.
  • the detected state of the portable terminal includes: receiving a level signal transmitted by the interface connector;
  • the level signal is a high level signal, it is determined that the portable terminal is in the first state, and when the level signal is a low level signal, determining that the portable terminal is in the second state.
  • a portable terminal comprising: a first device, a second device, and a shared device, wherein the first device is connected to the shared device by using the first interface, and the second device is connected to the shared device by using the second interface, the portable device
  • the terminal has a first state in which the first device and the second device are connected, and a second state in which the first device and the second device are separated, and the second device further includes:
  • a detecting unit configured to detect a state in which the portable terminal is located, and generate a detection result
  • control unit configured to: when the detection result indicates that the portable terminal is in the first state, control the first interface to be in an enabled state, and control the second interface to be in an inactive state, so as to enable The first device responds to information input by the shared device.
  • the control unit is further configured to: when the detection result indicates that the portable terminal is in the second state, control the second interface to be in an enabled state, so that the second device responds to the shared device input Information.
  • the control unit is further configured to control the first interface to be in a non-enabled state while controlling the second interface to be in an enabled state.
  • the detecting unit includes:
  • a level signal receiving unit configured to receive a level signal transmitted by the interface connector
  • a terminal state determining unit configured to determine that the portable terminal is in a first state when the level signal is a high level signal, and determine that the portable terminal is in a first state when the level signal is a low level signal Two states.
  • a portable mobile device the portable mobile device includes a shared device and a connection port, the shared device has a first interface and a second interface, wherein the connection port is used for connecting with an electronic device, when When the portable mobile device is connected to the electronic device, the first interface is connected to the electronic device through the connection port, and the portable mobile device further includes:
  • a detecting unit configured to detect a state in which the portable mobile device is located, and generate a detection result
  • control unit configured to: when the detection result indicates that the portable mobile device is connected to the electronic device, to control the first interface to be in an enabled state, and to control the second interface to be in a disabled state, So that the electronic device responds to information input by the shared device.
  • the control unit is further configured to: when the detection result indicates that the portable mobile device is disconnected from the electronic device, control the second interface to be in an enabled state, so that the portable mobile device responds to the Share information entered by the device.
  • the control unit is further configured to control the first interface to be in a non-enabled state while controlling the second interface to be in an enabled state.
  • An input device comprising:
  • a first interface configured to be connected to the first electronic device
  • a second interface configured to be connected to the second electronic device
  • An input unit for providing an operation to the operating body
  • An obtaining unit connected to the input unit, for obtaining input information when the operating body operates the input unit;
  • control unit configured to connect the obtaining unit, the first interface, and the second interface, respectively, to transmit the input information obtained by the obtaining unit to the first interface and the second interface, And controlling one of the first interface and the second interface to be in an enabled state according to a predetermined policy, and the other is in a non-enabled state.
  • the control unit includes:
  • a command receiving unit configured to receive a button enable command
  • the enabling control unit is configured to control one of the first interface and the second interface to be in an enabled state according to the indication of the button enable command, and the other is in a non-enabled state.
  • the control unit includes:
  • a message receiving unit configured to receive, when the first electronic device is connected to or disconnected from the second electronic device, a connection status message sent by any one of the first electronic device and the second electronic device;
  • An enabling control unit configured to: when the connection status message indicates that the first electronic device and the second electronic device are connected, control the first interface to be in an enabled state, and control the second interface to be disabled a state, and when the connection status message indicates that the first electronic device and the second electronic device are disconnected, controlling the first interface to be in a disabled state, and controlling the second interface to be in an enabled state.
  • the control unit includes:
  • connection detecting unit configured to detect a connection state between the first electronic device and the second electronic device, to generate a detection result
  • a state enabling unit configured to: when the detection result indicates that the first electronic device and the second electronic device are connected, control the first interface to be in an enabled state, and control the second interface to be in an inactive state And when the detection result indicates that the first electronic device and the second electronic device are disconnected, controlling the first interface to be in a non-enabled state, and controlling the second interface to be in an enabled state.
  • the portable device provided in the present application includes the first device and the second device, where the first device is connected to the shared device through the first interface, and the second device is connected to the shared device through the second interface.
  • the portable terminal has a first state in which the first device and the second device are connected, and a second state in which the first device and the second device are separated, detecting a state in which the portable terminal is located, generating a detection result, when The detection result indicates that when the portable terminal is in the first state, the first interface is controlled to be in an enabled state, and the second interface is controlled to be in a non-enabled state, so that the first device responds to the information input by the shared device.
  • the ARM system requires the interface to respond quickly and the power consumption is low, and the X86 system requires the interface bus to be universal.
  • the use of a unified interface will reduce the system performance of the portable terminal and cannot meet the requirements of each system. For example, if USB is used as the interface of a shared device (such as a touch screen), although the X86 system can be used to reduce the number of drive mounts, when the ARM system is used, the power consumption is large and wake up from sleep due to the USB drive. To remount, the system response will be slowed down.
  • FIG. 1 is a flowchart of a first embodiment of an interface switching control method according to the present application
  • FIG. 2 is a flowchart of a second embodiment of an interface switching control method according to the present application.
  • FIG. 3 is a schematic structural diagram of a detection control module in a slave device of a portable terminal according to the present application
  • FIG. 4A is a schematic diagram of an overall architecture of a slave device that performs interface switching control according to an embodiment of the present application
  • FIG. 4B is a schematic diagram of an overall architecture of a master device that performs interface switching control according to an embodiment of the present application
  • Embodiment block diagram is a schematic diagram of an overall architecture of a slave device that performs interface switching control according to an embodiment of the present application.
  • FIG. 6 is a block diagram of an embodiment of a portable mobile device of the present application.
  • FIG. 7 is a block diagram of an embodiment of an input device of the present application.
  • DETAILED DESCRIPTION OF THE INVENTION In various embodiments of the present application below, some embodiments provide an interface switching control method, and some embodiments provide a portable terminal, a portable mobile device, and an input device.
  • the interface switching control method in the embodiment of the present application is applied to a portable terminal that includes a first device and a second device, where the first device is connected to the shared device by using the first interface, and the second device is connected to the shared device by using the second interface.
  • a shared device connection the portable terminal having a first state in which the first device and the second device are connected, and a second state in which the first device and the second device are separated.
  • the shared device in this embodiment may be an input device.
  • the input device may be a touch input device, for example, a touch screen.
  • the shared device can be integrated with the first device or integrated with the second device.
  • the first device of the portable terminal may be a master device running the X86 system
  • the second device may be a slave device running the ARM system.
  • the first interface may be specifically a USB interface
  • the second interface may be specifically a UART interface.
  • the shared input device is a touch screen integrated with the slave device
  • the master device and the slave device are in the first state, that is, the X86 system and the ARM system are combined to work
  • the USB interface can be enabled only to enable the master device.
  • the system can respond to the input information of the touch screen.
  • the UART interface can be enabled only, so that the ARM system of the slave device can respond to the input information of the touch screen. .
  • the first interface conforms to system requirements/specifications of the first device.
  • the second interface meets the system requirements of the second device
  • the second interface is different from the first interface.
  • the first device running the X86 system the USB interface is its common interface, and the system has its own driver. Therefore, the touch screen is connected to the system in USB mode. No additional mounting drivers are required.
  • the second device running the ARM system uses the UART as the interface of the ARM system, the power consumption is lower than that of the USB, and the UART does not need to be additionally mounted on the ARM system, so the touch screen responds faster than the USB.
  • FIG. 1 a flowchart of a first embodiment of an interface switching control method according to the present application, where a first device is a master device, and a second device is a slave device:
  • Step 101 Detecting a state in which the portable terminal is located, and generating a detection result.
  • the integrated device and the slave device are integrated, and the slave device and the master device respectively have a connection port, and the master device and the slave device can be physically connected or disconnected through the connection port.
  • the slave device detects whether the portable terminal is in the first state in which the master device and the slave device are connected according to the connection condition of the connection port, or is the second state in which the master device is disconnected from the slave device.
  • the shared device may be connected to the first interface and the second interface disposed on the slave device by using a control unit in the slave device, or may be configured on the shared device by using the first interface and the second interface.
  • the master device can be connected to the shared device through the first interface, and the slave device can be connected to the shared device through the second interface.
  • Step 102 When the detection result indicates that the portable terminal is in the first state, control the first interface to be in an enabled state, and control the second interface to be in a non-enabled state, so that the first device responds to the information input by the shared device.
  • the first interface is enabled by the control unit in the slave device, and the second interface is disabled.
  • the master device can respond to the information input by the shared device through the first interface.
  • FIG. 2 is a flowchart of a second embodiment of an interface switching control method according to the present application, where a first device is a master device, and a second device is a slave device:
  • Step 201 Detect a state in which the portable terminal is located.
  • the shared device and the slave device are integrated as an example, and the slave device and the master device respectively have a connection port, and the master device and the slave device can be physically connected or disconnected through the connection port.
  • the slave device detects whether the portable terminal is in the first state in which the master device and the slave device are connected according to the connection condition of the connection port, or is the second state in which the master device is disconnected from the slave device.
  • the state detection may be performed by the level indication of the level signal.
  • the level signal transmitted by the interface connector When the level signal transmitted by the interface connector is received, if the level signal is a high level signal, it is determined that the portable terminal is in the first state, if the level When the signal is a low level signal, it is determined that the portable terminal is in the second state.
  • the shared device may be connected to the first interface and the second interface disposed on the slave device through a control unit in the slave device, respectively, or the first interface and the second interface may also be disposed on the shared device.
  • the master device can be connected to the shared device through the first interface, and the slave device can be connected to the shared device through the second interface.
  • Step 202 Determine, according to the detection result, a state in which the portable terminal is located. If it is the first state, step 203 is performed; if it is the second state, step 204 is performed.
  • Step 203 Control the first interface to be in an enabled state, and control the second interface to be in a non-enabled state, so that the first device responds to the information input by the shared device, and ends the current process.
  • the first interface is enabled by the control unit in the slave device, and the second interface is disabled, and the master device can pass the first The interface responds to information entered by the shared device.
  • Step 204 Control the second interface to be in an enabled state, so that the second device responds to information input by the shared device.
  • the shared device integrated with the slave device at this time can operate under the control of the slave device system, and thus is controlled by the control unit in the slave device.
  • the second interface is enabled, and the slave device can respond to the information input by the shared device through the second interface.
  • the control unit of the slave device can control the first interface to be in a non-enabled state while controlling the second interface to be in an enabled state.
  • FIG. 3 a schematic structural diagram of a detection control module in a portable terminal slave device for performing interface switching control using the above method embodiment
  • the touch screen of the portable terminal is integrated with the slave device
  • the control unit EC in the slave device is integrated.
  • Control the interface enable For example, suppose a master device running an X86 system is called a PE, and a slave device running an ARM operating system is called an SE.
  • Figure 3 shows the control unit MCU in the touch screen detection control module.
  • the MCU is connected to the interface connector CONNECTOR.
  • the two interfaces USB and UART are connected to the CONNECTOR and MCU respectively.
  • the touch screen detection control module communicates with the ARM system slave device through CONNECTOR. SE is connected.
  • the detection information obtained by the EC detection can be transmitted to the MCU through CONNECTOR, and when either of the two interfaces USB and UART is enabled, the input information transmitted by T0UCHPANEL can be supplied to the PE or SE response through the connection of the enabled interface with the CONNECTOR.
  • SE and PE work in a hybrid system:
  • the level signal TP_SEU is pulled high to generate a high level signal
  • the MCU detects the TP_SEU as a high level signal through the touch screen detection control module CONNECTOR, and thus the USB interface ENABLE (enable), and the UART interface DISABLE (not enabled).
  • the external interface of the touch screen T0UCHPANEL is USB, that is, the PE responds to the input information of the touch screen through the USB interface. Since the X86 system runs on the PE, and the USB interface is a universal interface, and the X86 system has its own USB interface driver, there is no need to additionally mount the driver.
  • SE and PE work independently:
  • the EC in the SE detects the PE pull-out, the level signal TP_SEU is pulled low to generate a low-level signal, and the MCU detects the TP_SEU as a low-level signal through the touch screen detection control module CONNECTOR, so the UART interface ENABLE (Enable), and the USB interface DISABLE (not enabled).
  • the external interface of the touch screen T0UCHPANEL is a UART, that is, the SE responds to the input information of the touch screen through the UART interface. Since the ARM system runs on the SE, the UART is used as the interface of the ARM system. Compared with the interface using the USB as the ARM system, the power consumption can be reduced, and the UART does not need to be additionally mounted in the ARM system, so the response speed is faster than the USB. .
  • FIG. 4A a schematic diagram of an overall architecture of a slave device applying interface switching control according to an embodiment of the present application is shown.
  • FIG. 4B an overall architecture of a master device applying interface switching control according to an embodiment of the present application is shown. schematic diagram.
  • Shockocking is the connection port of the slave device
  • SLATEDocking is the connection port of the master device.
  • the master device and the slave device are physically connected and physically disconnected by the above-mentioned BASEDocking and SLATEDocking.
  • the multi-touch module Multi-Touch is connected to the display LCD, the Multi-Touch is connected to the control unit MCU, and the Multi-Touch includes an interface connector.
  • the MCU is connected through the Multi-Touch.
  • the port connector detects that TP_SEU is a high level signal.
  • the MCU controls the USB interface to be enabled. If the UART interface is not enabled, the master device can respond to the input information of the display LCD through the USB interface, because the UART interface is not enabled.
  • the slave device cannot respond to the input information of the display LCD through the UART interface; if the BASEDocking and SLATEDocking are disconnected, the MCU detects that the TP_SEU is a low level signal through the interface connector in the Mult i-Touch, at this time, the MCU
  • the slave device can respond to the input information of the display LCD through the UART interface, regardless of whether the USB interface is enabled or not, because the master device and the slave device are physically disconnected, so the master The device cannot respond to the information input by the LCD display through the USB interface, but in order to save system power consumption, the MCU can control the USB interface to be disabled.
  • the present application also provides an embodiment of a portable terminal, a portable mobile device, and an input device.
  • FIG. 5 it is a block diagram of an embodiment of a portable terminal of the present application.
  • the portable terminal includes: a first device 510, a second device 520, a sharing device 530, a first interface 540, and a second interface 550.
  • the first device 510 is connected to the sharing device 530 through the first interface 540
  • the second device 520 is connected to the sharing device 530 through the second interface 550.
  • the portable terminal has a first state in which the first device 510 and the second device 520 are connected, and A second state in which the device 510 and the second device 520 are separated.
  • first interface 540 and the second interface 550 may be disposed in the second device 520 or may be disposed in the shared device 530; further, the shared device 530 may be integrated with the second device.
  • the above various parts are separately described in FIG.
  • the second device 520 may include: a detecting unit 521, configured to detect a state in which the portable terminal is located, to generate a detection result; and a control unit 522, configured to: when the detection result indicates the portable When the terminal is in the first state, the first interface is controlled to be in an enabled state, and the second interface is controlled to be in a non-enabled state, so that the first device responds to information input by the shared device.
  • control unit 522 is further configured to: when the detection result indicates that the portable terminal is in the second state, control the second interface 550 to be in an enabled state, so that the second device 520 responds to the The information input by the sharing device 530; and preferably, the control unit 522 is further configured to control the first interface 540 to be in a non-enabled state while controlling the second interface 550 to be in an enabled state.
  • the detecting unit 521 may include: (not shown): a level signal receiving unit, configured to receive a level signal transmitted by the interface connector; and a terminal state determining unit, configured to: when the level signal is a high level signal And determining that the portable terminal is in the first state, and determining that the portable terminal is in the second state when the level signal is a low level signal.
  • FIG. 6 a block diagram of an embodiment of a portable mobile device of the present application is shown.
  • the portable mobile device includes: a sharing device 610, a connection port 620, a detecting unit 630, and a control unit 640.
  • the shared device 610 includes a first interface 611 and a second interface 612.
  • the connection port 620 is configured to be connected to an electronic device, and the first interface 611 is connected to the electronic device through the connection port 620 when the portable mobile device is connected to the electronic device.
  • the detecting unit 630 can be configured to detect a state in which the portable mobile device is located, and generate a detection result.
  • the control unit 640 can be configured to, when the detection result indicates that the portable mobile device is connected to the electronic device, to control the first interface 611 to be in an enabled state, and to control the second interface 612 to be in a non-enable manner
  • the energy state is such that the electronic device responds to information input by the sharing device 610.
  • control unit 640 is further configured to: when the detection result indicates that the portable mobile device is disconnected from the electronic device, control the second interface 612 to be in an enabled state, so that the portable mobile The device is responsive to the information input by the shared device 610; and preferably, the control unit 640 is further configured to control the first interface 611 to be disabled while controlling the second interface 612 to be in an enabled state. status.
  • the input device includes: a first interface 710, a second interface 720, an input unit 730, an obtaining unit 740, and a control unit 750.
  • the input device is a touch input device.
  • the first interface 710 can be used to connect with the first electronic device.
  • the second interface 720 can be used to connect to the second electronic device.
  • the input unit 730 can be used to provide an operation to the operating body.
  • the obtaining unit 740 is connected to the input unit 730 and can be used to obtain input information when the operating unit operates the input unit.
  • the control unit 750 is connected to the obtaining unit 740, the first interface 710 and the second interface 720, respectively, and can be used to transmit the input information obtained by the obtaining unit 730 to the first interface 710 and
  • the second interface 720 controls one of the first interface 710 and the second interface 720 to be in an enabled state and the other in a non-enabled state according to a predetermined policy.
  • control unit 750 may include: (not shown): a command receiving unit, configured to receive a button enable command; an enable control unit, configured to control the first interface according to the indication of the button enable command One of the second interfaces is in an enabled state and the other is in a disabled state.
  • control unit 750 may include (not shown): a message receiving unit, configured to receive the first electronic device and the second electronic device when the first electronic device is connected to or disconnected from the second electronic device Any one of the devices a connection status message sent by the sub-device; an enabling control unit, configured to control, when the connection status message indicates that the first electronic device and the second electronic device are connected, to control the first interface to be in an enabled state, and to control the The second interface is in a non-enabled state, and when the connection status message indicates that the first electronic device and the second electronic device are disconnected, controlling the first interface to be in a non-enabled state, and controlling the The second interface is enabled.
  • control unit 750 may also include: (not shown): a connection detecting unit, configured to detect a connection state between the first electronic device and the second electronic device, to generate a detection result; a state enabling unit, configured to When the detection result indicates that the first electronic device and the second electronic device are connected, controlling the first interface to be in an enabled state, and controlling the second interface to be in a non-enabled state, when the detection result is When the first electronic device and the second electronic device are disconnected, the first interface is controlled to be in a non-enabled state, and the second interface is controlled to be in an enabled state.
  • a connection detecting unit configured to detect a connection state between the first electronic device and the second electronic device, to generate a detection result
  • a state enabling unit configured to When the detection result indicates that the first electronic device and the second electronic device are connected, controlling the first interface to be in an enabled state, and controlling the second interface to be in a non-enabled state, when the detection result is When the first electronic device and the second electronic device are disconnected,
  • the portable terminal in the present application includes a first device and a second device, wherein the first device is connected to the shared device through the first interface, and the second device is connected to the shared device through the second interface, and is portable.
  • the terminal has a first state in which the first device and the second device are connected, and a second state in which the first device and the second device are separated, detecting a state in which the portable terminal is located, generating a detection result, when the detection result is displayed
  • the first interface is controlled to be in an enabled state
  • the second interface is controlled to be in a non-enabled state, so that the first device responds to the information input by the shared device.
  • the embodiment of the present application implements real-time switching control of the shared device interface, and optimizes the interface control of the portable terminal of the hybrid system architecture; and enables the interfaces required by each device according to the state of the portable terminal, thereby It satisfies the system performance of different devices and reduces system power consumption.
  • the technology in the embodiments of the present application can be implemented by means of software plus a necessary general hardware platform.
  • the technical solution in the embodiments of the present application may be embodied in the form of a software product in essence or in the form of a software product, and the computer software product may be stored in a storage medium, such as waking up/should. , a diskette, an optical disk, etc., including instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform the methods described in various embodiments of the present application or portions of the embodiments.
  • a computer device which may be a personal computer, server, or network device, etc.

Landscapes

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

Abstract

An interface switching control method, and portable terminal and portable mobile device using same. The method applies to a portable terminal comprising a first device and a second device. The first device is connected to a shared device through a first interface, and the second device is connected the shared device through a second interface. The portable terminal has a first state of the first device connected to the second device, and a second state of the first device disconnected from the second device. The method comprises: detecting the current state of the portable terminal; when the detection result indicates the portable terminal is in the first state, control the first interface to be in the enabled state and control the second interface to be in the disabled state. The method realizes real-time switching control for the shared device interface, and optimizes interface control for the portable terminal in a hybrid system architecture. According to the different states of the portable device, interfaces needed on the devices are enabled, satisfying system performance of different devices.

Description

接口切换控制方法及使用该方法的便携终端和便携移动设备 技术领域 本申请涉及通信技术领域, 特别涉及一种接口切换控制方法、 便携终端、 便携移动设 备及输入设备。 背景技术 混合系统架构的便携终端, 是在现有仅有一个系统的 PC (Personal Computer, 个人 计算机) 基础上, 嵌入其它至少一个系统的 PC。 不同系统之间可以融合工作, 发挥各自优 势。 现有常见的混合系统架构的便携终端通常集成了一个主系统 (例如, X86 系统) 和一 个从系统 (例如, ARM系统), 主系统和从系统之间可以共用共享设备, 如键盘、 网卡、 显 示屏、 存储设备、 Audio 等。 以笔记本电脑为例, 通常从系统集成在显示屏所在的从设备 上, 而主系统集成在键盘所在的主设备上, 主设备和从设备之间可以组合在一起工作, 也 可以各自独立工作, 当独立工作时, 显示屏由从设备使用, 当组合在一起工作时, 显示屏 可以由主设备或者从设备任意一方使用。  TECHNICAL FIELD The present application relates to the field of communications technologies, and in particular, to an interface switching control method, a portable terminal, a portable mobile device, and an input device. BACKGROUND OF THE INVENTION A portable terminal of a hybrid system architecture is a PC embedded in at least one other system based on a PC (Personal Computer) having only one system. Different systems can work together to take advantage of their respective strengths. Portable terminals of the existing common hybrid system architecture usually integrate a main system (for example, an X86 system) and a slave system (for example, an ARM system), and a shared device such as a keyboard, a network card, or the like can be shared between the master system and the slave system. Display, storage device, Audio, etc. Taking a notebook computer as an example, the system is usually integrated on the slave device where the display screen is located, and the master system is integrated on the master device where the keyboard is located. The master device and the slave device can work together in combination, or can work independently. When working independently, the display is used by the slave device. When working together in combination, the display can be used by either the master device or the slave device.
在对现有混合架构的便携终端进行研究的过程中发现, 现有主设备和从设备在共用共 享设备时, 需要统一接口总线的设置, 即每个设备都采用相同的接口总线挂载共享设备。 因此, 为了兼容其中一个设备的所有接口, 必须要对另一个设备的接口进行扩展, 以保持 二者的一致性。 但是, 对于混合系统的便携终端来说, 根据各个设备的系统性能需求不同, ARM系统要求接口能够快速响应、 功耗低, 而 X86系统要求接口总线通用, 以减少驱动挂 载的数量, 因此采用统一接口的方式将会降低便携终端的系统性能, 无法满足各个系统的 需求。  In the process of researching the portable terminal of the existing hybrid architecture, it is found that the existing master device and the slave device need to unify the interface bus when sharing the shared device, that is, each device uses the same interface bus to mount the shared device. . Therefore, in order to be compatible with all interfaces of one of the devices, the interface of the other device must be extended to maintain consistency between the two. However, for portable terminals of hybrid systems, depending on the system performance requirements of each device, the ARM system requires the interface to respond quickly and consumes low power, while the X86 system requires the interface bus to be common to reduce the number of drive mounts. The way to unify the interface will reduce the system performance of the portable terminal and will not meet the needs of each system.
发明内容 本申请实施例的目的在于提供一种接口切换控制方法、 便携终端、 便携移动设备及输 入设备, 以解决现有技术中在主设备和从设备之间统一接口设置, 导致系统性能降低, 无 法满足各个系统需求的问题。 SUMMARY OF THE INVENTION An object of the embodiments of the present invention is to provide an interface switching control method, a portable terminal, a portable mobile device, and an input device, to solve the problem of unified interface setting between a master device and a slave device in the prior art, resulting in system performance degradation. Unable to meet the needs of each system.
为解决上述技术问题, 本申请实施例提供如下技术方案:  To solve the above technical problem, the embodiment of the present application provides the following technical solutions:
一种接口切换控制方法, 应用于包含第一设备和第二设备的便携终端, 所述第一设备 通过第一接口与共享设备连接, 所述第二设备通过第二接口与所述共享设备连接, 所述便 携终端具有所述第一设备和第二设备连接的第一状态, 以及所述第一设备和所述第二设备 分离的第二状态, 所述方法包括: An interface switching control method is applied to a portable terminal including a first device and a second device, the first device Connecting to the shared device by using the first interface, the second device is connected to the shared device by using a second interface, where the portable terminal has a first state in which the first device and the second device are connected, and the first device a second state in which the device and the second device are separated, the method includes:
检测所述便携终端所处的状态, 产生一检测结果;  Detecting a state in which the portable terminal is located, and generating a detection result;
当所述检测结果表示所述便携终端处于所述第一状态时, 控制所述第一接口处于使能 状态, 以及控制所述第二接口处于非使能状态, 以使所述第一设备响应所述共享设备输入 的信息。  When the detection result indicates that the portable terminal is in the first state, controlling the first interface to be in an enabled state, and controlling the second interface to be in a non-enabled state, so that the first device responds The information input by the shared device.
还包括:  Also includes:
当所述检测结果表示所述便携终端处于所述第二状态时, 控制所述第二接口处于使能 状态, 以使所述第二设备响应所述共享设备输入的信息。  When the detection result indicates that the portable terminal is in the second state, controlling the second interface to be in an enabled state, so that the second device responds to the information input by the shared device.
还包括:  Also includes:
在控制所述第二接口处于使能状态的同时, 控制所述第一接口处于非使能状态。  The first interface is controlled to be in a non-enabled state while controlling the second interface to be in an enabled state.
所述第一接口与所述第二接口不同。 所检测所述便携终端所处的状态包括: 接收接口连接器传输的电平信号;  The first interface is different from the second interface. The detected state of the portable terminal includes: receiving a level signal transmitted by the interface connector;
当所述电平信号为高电平信号时, 确定所述便携终端处于所述第一状态, 当所述电平 信号为低电平信号时, 确定所述便携终端处于所述第二状态。  When the level signal is a high level signal, it is determined that the portable terminal is in the first state, and when the level signal is a low level signal, determining that the portable terminal is in the second state.
一种便携终端, 包括第一设备、 第二设备和共享设备, 所述第一设备通过第一接口与 共享设备连接, 所述第二设备通过第二接口与所述共享设备连接, 所述便携终端具有所述 第一设备和第二设备连接的第一状态, 以及所述第一设备和所述第二设备分离的第二状态, 其特征在于, 所述第二设备还包括:  A portable terminal, comprising: a first device, a second device, and a shared device, wherein the first device is connected to the shared device by using the first interface, and the second device is connected to the shared device by using the second interface, the portable device The terminal has a first state in which the first device and the second device are connected, and a second state in which the first device and the second device are separated, and the second device further includes:
检测单元, 用于检测所述便携终端所处的状态, 产生一检测结果;  a detecting unit, configured to detect a state in which the portable terminal is located, and generate a detection result;
控制单元, 用于当所述检测结果表示所述便携终端处于所述第一状态时, 控制所述第 一接口处于使能状态, 以及控制所述第二接口处于非使能状态, 以使所述第一设备响应所 述共享设备输入的信息。  a control unit, configured to: when the detection result indicates that the portable terminal is in the first state, control the first interface to be in an enabled state, and control the second interface to be in an inactive state, so as to enable The first device responds to information input by the shared device.
所述控制单元, 还用于当所述检测结果表示所述便携终端处于所述第二状态时, 控制 所述第二接口处于使能状态, 以使所述第二设备响应所述共享设备输入的信息。  The control unit is further configured to: when the detection result indicates that the portable terminal is in the second state, control the second interface to be in an enabled state, so that the second device responds to the shared device input Information.
所述控制单元, 还用于在控制所述第二接口处于使能状态的同时, 控制所述第一接口 处于非使能状态。 所述检测单元包括: The control unit is further configured to control the first interface to be in a non-enabled state while controlling the second interface to be in an enabled state. The detecting unit includes:
电平信号接收单元, 用于接收接口连接器传输的电平信号;  a level signal receiving unit, configured to receive a level signal transmitted by the interface connector;
终端状态确定单元, 用于当所述电平信号为高电平信号时, 确定所述便携终端处于第 一状态, 当所述电平信号为低电平信号时, 确定所述便携终端处于第二状态。  a terminal state determining unit, configured to determine that the portable terminal is in a first state when the level signal is a high level signal, and determine that the portable terminal is in a first state when the level signal is a low level signal Two states.
一种便携移动设备, 所述便携移动设备包括一共享设备和一连接端口, 所述共享设备 具有第一接口和第二接口, 其中, 所述连接端口用于与一电子设备连接, 当所述便携移动 设备与所述电子设备连接时, 所述第一接口通过所述连接端口与所述电子设备连接, 所述 便携移动设备还包括:  A portable mobile device, the portable mobile device includes a shared device and a connection port, the shared device has a first interface and a second interface, wherein the connection port is used for connecting with an electronic device, when When the portable mobile device is connected to the electronic device, the first interface is connected to the electronic device through the connection port, and the portable mobile device further includes:
检测单元, 用于检测所述便携移动设备所处的状态, 产生一检测结果;  a detecting unit, configured to detect a state in which the portable mobile device is located, and generate a detection result;
控制单元, 用于当所述检测结果表示所述便携移动设备与所述电子设备连接时, 用于 控制所述第一接口处于使能状态, 以及控制所述第二接口处于非使能状态, 以使所述电子 设备响应所述共享设备输入的信息。  a control unit, configured to: when the detection result indicates that the portable mobile device is connected to the electronic device, to control the first interface to be in an enabled state, and to control the second interface to be in a disabled state, So that the electronic device responds to information input by the shared device.
所述控制单元, 还用于当所述检测结果表示所述便携移动设备与所述电子设备断开连 接时, 控制所述第二接口处于使能状态, 以使所述便携移动设备响应所述共享设备输入的 信息。  The control unit is further configured to: when the detection result indicates that the portable mobile device is disconnected from the electronic device, control the second interface to be in an enabled state, so that the portable mobile device responds to the Share information entered by the device.
所述控制单元, 还用于在控制所述第二接口处于使能状态的同时, 控制所述第一接口 处于非使能状态。  The control unit is further configured to control the first interface to be in a non-enabled state while controlling the second interface to be in an enabled state.
一种输入设备, 所述输入设备包括:  An input device, the input device comprising:
第一接口, 用于与第一电子设备连接;  a first interface, configured to be connected to the first electronic device;
第二接口, 用于与第二电子设备连接;  a second interface, configured to be connected to the second electronic device;
输入单元, 用于提供给操作体进行操作;  An input unit for providing an operation to the operating body;
获得单元, 与所述输入单元连接, 用于获得所述操作体对所述输入单元进行操作时的 输入信息;  An obtaining unit, connected to the input unit, for obtaining input information when the operating body operates the input unit;
控制单元, 分别与所述获得单元、 所述第一接口和所述第二接口连接, 用于将所述获 得单元获得的所述输入信息传输给所述第一接口以及所述第二接口, 并按照预定的策略控 制所述第一接口和所述第二接口中的一个处于使能状态, 另一个处于非使能状态。  a control unit, configured to connect the obtaining unit, the first interface, and the second interface, respectively, to transmit the input information obtained by the obtaining unit to the first interface and the second interface, And controlling one of the first interface and the second interface to be in an enabled state according to a predetermined policy, and the other is in a non-enabled state.
所述控制单元包括:  The control unit includes:
命令接收单元, 用于接收按键使能命令; 使能控制单元, 用于根据所述按键使能命令的指示, 控制所述第一接口和所述第二接 口中的一个处于使能状态, 另一个处于非使能状态。 a command receiving unit, configured to receive a button enable command; The enabling control unit is configured to control one of the first interface and the second interface to be in an enabled state according to the indication of the button enable command, and the other is in a non-enabled state.
所述控制单元包括:  The control unit includes:
消息接收单元, 用于当所述第一电子设备与所述第二电子设备相连或断开时, 接收所 述第一电子设备和第二电子设备中的任意一个电子设备发送的连接状态消息; 使能控制单元, 用于当所述连接状态消息表示所述第一电子设备和第二电子设备连接 时, 控制所述第一接口处于使能状态, 以及控制所述第二接口处于非使能状态, 以及当所 述连接状态消息表示所述第一电子设备和第二电子设备断开连接时, 控制所述第一接口处 于非使能状态, 以及控制所述第二接口处于使能状态。  a message receiving unit, configured to receive, when the first electronic device is connected to or disconnected from the second electronic device, a connection status message sent by any one of the first electronic device and the second electronic device; An enabling control unit, configured to: when the connection status message indicates that the first electronic device and the second electronic device are connected, control the first interface to be in an enabled state, and control the second interface to be disabled a state, and when the connection status message indicates that the first electronic device and the second electronic device are disconnected, controlling the first interface to be in a disabled state, and controlling the second interface to be in an enabled state.
所述控制单元包括:  The control unit includes:
连接检测单元, 用于检测所述第一电子设备与第二电子设备之间的连接状态, 产生一 检测结果;  a connection detecting unit, configured to detect a connection state between the first electronic device and the second electronic device, to generate a detection result;
状态使能单元, 用于当所述检测结果表示所述第一电子设备和第二电子设备连接时, 控制所述第一接口处于使能状态, 以及控制所述第二接口处于非使能状态, 当所述检测结 果表示所述第一电子设备和第二电子设备断开时, 控制所述第一接口处于非使能状态, 以 及控制所述第二接口处于使能状态。  a state enabling unit, configured to: when the detection result indicates that the first electronic device and the second electronic device are connected, control the first interface to be in an enabled state, and control the second interface to be in an inactive state And when the detection result indicates that the first electronic device and the second electronic device are disconnected, controlling the first interface to be in a non-enabled state, and controlling the second interface to be in an enabled state.
由以上本申请实施例提供的技术方案可见, 本申请中的便携终端包括第一设备和第二 设备, 其中第一设备通过第一接口与共享设备连接, 第二设备通过第二接口与共享设备连 接, 便携终端具有所述第一设备和第二设备连接的第一状态, 以及第一设备和所述第二设 备分离的第二状态, 检测便携终端所处的状态, 产生一检测结果, 当检测结果表示便携终 端处于所述第一状态时, 控制第一接口处于使能状态, 以及控制第二接口处于非使能状态, 以使第一设备响应共享设备输入的信息。 以 X86系统、 ARM为例, 现有技术中对于混合系 统的便携终端来说, 根据各个设备的系统性能需求不同, ARM系统要求接口能够快速响应、 功耗低, 而 X86系统要求接口总线通用, 以减少驱动挂载的数量, 因此采用统一接口的方 式将会降低便携终端的系统性能, 无法满足各个系统的需求。 例如, 若统一使用 USB作为 共享设备(如触摸屏)的接口, 虽然满足了 X86系统可以减少驱动挂载的数目, 但是在 ARM 系统使用的时候, 功耗较大且从休眠唤醒的时候由于 USB驱动要重新挂载, 必然使系统响 应变慢。 与现有技术相比, 本申请实施例为共享设备提供了至少两个接口, 并且实现了对 共享设备的接口的实时切换控制, 优化了混合系统架构的便携终端的接口控制; 通过根据 便携终端所处状态的不同, 将各个设备所需使用的接口进行使能, 从而满足了不同设备的 系统性能, 降低了系统功耗。 附图说明 图 1为本申请接口切换控制方法的第一实施例流程图; The portable device provided in the present application includes the first device and the second device, where the first device is connected to the shared device through the first interface, and the second device is connected to the shared device through the second interface. Connecting, the portable terminal has a first state in which the first device and the second device are connected, and a second state in which the first device and the second device are separated, detecting a state in which the portable terminal is located, generating a detection result, when The detection result indicates that when the portable terminal is in the first state, the first interface is controlled to be in an enabled state, and the second interface is controlled to be in a non-enabled state, so that the first device responds to the information input by the shared device. Taking the X86 system and ARM as an example, in the prior art, for the portable terminal of the hybrid system, according to the system performance requirements of each device, the ARM system requires the interface to respond quickly and the power consumption is low, and the X86 system requires the interface bus to be universal. In order to reduce the number of drive mounts, the use of a unified interface will reduce the system performance of the portable terminal and cannot meet the requirements of each system. For example, if USB is used as the interface of a shared device (such as a touch screen), although the X86 system can be used to reduce the number of drive mounts, when the ARM system is used, the power consumption is large and wake up from sleep due to the USB drive. To remount, the system response will be slowed down. Compared with the prior art, the embodiment of the present application provides at least two interfaces for the shared device, and implements real-time switching control of the interface of the shared device, and optimizes interface control of the portable terminal of the hybrid system architecture; The state of the portable terminal is different, and the interfaces required for each device are enabled, thereby satisfying the system performance of different devices and reducing the system power consumption. BRIEF DESCRIPTION OF DRAWINGS FIG. 1 is a flowchart of a first embodiment of an interface switching control method according to the present application;
图 2为本申请接口切换控制方法的第二实施例流程图;  2 is a flowchart of a second embodiment of an interface switching control method according to the present application;
图 3为本申请一种便携终端从设备内的检测控制模块的结构示意图;  3 is a schematic structural diagram of a detection control module in a slave device of a portable terminal according to the present application;
图 4A为应用本申请实施例进行接口切换控制的一个从设备的整体架构示意图; 图 4B为应用本申请实施例进行接口切换控制的一个主设备的整体架构示意图; 图 5为本申请便携终端的实施例框图;  4A is a schematic diagram of an overall architecture of a slave device that performs interface switching control according to an embodiment of the present application; FIG. 4B is a schematic diagram of an overall architecture of a master device that performs interface switching control according to an embodiment of the present application; Embodiment block diagram;
图 6为本申请便携移动设备的实施例框图;  6 is a block diagram of an embodiment of a portable mobile device of the present application;
图 7为本申请输入设备的实施例框图。 具体实施方式 在如下本申请的多个实施例中, 有些实施例提供了一种接口切换控制方法, 有些实施 例提供了一种便携终端、 便携移动设备及输入设备。  7 is a block diagram of an embodiment of an input device of the present application. DETAILED DESCRIPTION OF THE INVENTION In various embodiments of the present application below, some embodiments provide an interface switching control method, and some embodiments provide a portable terminal, a portable mobile device, and an input device.
为了使本技术领域的人员更好地理解本申请实施例中的技术方案, 并使本申请实施例 的上述目的、 特征和优点能够更加明显易懂, 下面结合附图对本申请实施例中技术方案作 进一步详细的说明。  The above-mentioned objects, features, and advantages of the embodiments of the present application can be more clearly understood and understood by those skilled in the art. Give further details.
本申请实施例中的接口切换控制方法应用在包含第一设备和第二设备的便携终端中, 其中, 第一设备通过第一接口与共享设备连接, 所述第二设备通过第二接口与所述共享设 备连接, 所述便携终端具有所述第一设备和第二设备连接的第一状态, 以及所述第一设备 和所述第二设备分离的第二状态。 其中, 本实施例中的共享设备可以为一输入设备, 更进 一步, 该输入设备可以为一触摸输入设备, 例如, 触摸屏。 共享设备可以与第一设备集成 一体, 也可以与第二设备集成一体。  The interface switching control method in the embodiment of the present application is applied to a portable terminal that includes a first device and a second device, where the first device is connected to the shared device by using the first interface, and the second device is connected to the shared device by using the second interface. A shared device connection, the portable terminal having a first state in which the first device and the second device are connected, and a second state in which the first device and the second device are separated. The shared device in this embodiment may be an input device. Further, the input device may be a touch input device, for example, a touch screen. The shared device can be integrated with the first device or integrated with the second device.
例如, 便携终端的第一设备可以具体为运行 X86系统的主设备, 第二设备可以具体为 运行 ARM系统的从设备, 第一接口可以具体为 USB接口, 第二接口可以具体为 UART接口。 假设共享输入设备为与从设备集成一体的触摸屏, 则当主设备和从设备处于第一状态, 即 X86系统和 ARM系统组成混合系统进行工作时, 可以仅使能 USB接口, 以使主设备上的 X86 系统可以响应触摸屏的输入信息, 当主设备和从设备处于第二状态, 即 X86系统和 ARM系 统分别单独使用时, 则可以仅使能 UART接口, 以使从设备的 ARM系统可以响应触摸屏的输 入信息。 通过在便携终端处于不同的连接状态时, 使能不同的接口, 以适应不同系统的需 求, 节约系统功耗。 For example, the first device of the portable terminal may be a master device running the X86 system, and the second device may be a slave device running the ARM system. The first interface may be specifically a USB interface, and the second interface may be specifically a UART interface. Assuming that the shared input device is a touch screen integrated with the slave device, when the master device and the slave device are in the first state, that is, the X86 system and the ARM system are combined to work, the USB interface can be enabled only to enable the master device. X86 The system can respond to the input information of the touch screen. When the master device and the slave device are in the second state, that is, the X86 system and the ARM system are respectively used separately, the UART interface can be enabled only, so that the ARM system of the slave device can respond to the input information of the touch screen. . By enabling different interfaces when the portable terminals are in different connection states, to meet the needs of different systems, system power consumption is saved.
所述第一接口符合第一设备的系统要求 /规范。所述第二接口符合第二设备的系统要求 The first interface conforms to system requirements/specifications of the first device. The second interface meets the system requirements of the second device
/规范。更进一步,所述第二接口与所述第一接口不同。例如,运行了 X86系统的第一设备, USB接口为其通用接口, 且系统已自带驱动。 因此, 触摸屏以 USB的方式接入系统。 无须 额外挂载驱动。 另外, 运行了 ARM系统的第二设备, 使用 UART作为 ARM系统的接口, 功耗 较 USB低, 且 UART在 ARM系统下无须额外挂载驱动, 因此触摸屏响应速度比 USB快。 /specification. Further, the second interface is different from the first interface. For example, the first device running the X86 system, the USB interface is its common interface, and the system has its own driver. Therefore, the touch screen is connected to the system in USB mode. No additional mounting drivers are required. In addition, the second device running the ARM system uses the UART as the interface of the ARM system, the power consumption is lower than that of the USB, and the UART does not need to be additionally mounted on the ARM system, so the touch screen responds faster than the USB.
参见图 1, 为本申请接口切换控制方法的第一实施例流程图, 其中第一设备为主设备, 第二设备为从设备: Referring to FIG. 1, a flowchart of a first embodiment of an interface switching control method according to the present application, where a first device is a master device, and a second device is a slave device:
步骤 101 : 检测便携终端所处的状态, 产生一检测结果。  Step 101: Detecting a state in which the portable terminal is located, and generating a detection result.
以共享设备与从设备集成一体为例, 在从设备和主设备上分别具有连接端口, 通过连 接端口可以使主设备和从设备在物理上实现连接或者断开。 本实施例中, 由从设备根据连 接端口的连接情况检测便携终端是处于主设备和从设备相连的第一状态, 还是主设备与从 设备断开的第二状态。  For example, the integrated device and the slave device are integrated, and the slave device and the master device respectively have a connection port, and the master device and the slave device can be physically connected or disconnected through the connection port. In this embodiment, the slave device detects whether the portable terminal is in the first state in which the master device and the slave device are connected according to the connection condition of the connection port, or is the second state in which the master device is disconnected from the slave device.
其中, 共享设备可以分别通过从设备内的控制单元与设置在从设备上的第一接口和第 二接口相连, 或者也可以将第一接口和第二接口设置在共享设备上。 主设备可以通过第一 接口与共享设备连接, 从设备可以通过第二接口与共享设备连接。  The shared device may be connected to the first interface and the second interface disposed on the slave device by using a control unit in the slave device, or may be configured on the shared device by using the first interface and the second interface. The master device can be connected to the shared device through the first interface, and the slave device can be connected to the shared device through the second interface.
步骤 102 : 当检测结果表示便携终端处于第一状态时, 控制第一接口处于使能状态, 以及控制第二接口处于非使能状态, 以使第一设备响应共享设备输入的信息。  Step 102: When the detection result indicates that the portable terminal is in the first state, control the first interface to be in an enabled state, and control the second interface to be in a non-enabled state, so that the first device responds to the information input by the shared device.
本申请实施例中, 当检测结果表示便携终端处于主设备和从设备相连的第一状态时, 由从设备内的控制单元控制第一接口使能, 以及控制第二接口非使能, 此时主设备可以通 过第一接口响应共享设备输入的信息。  In the embodiment of the present application, when the detection result indicates that the portable terminal is in the first state in which the master device and the slave device are connected, the first interface is enabled by the control unit in the slave device, and the second interface is disabled. The master device can respond to the information input by the shared device through the first interface.
参见图 2, 为本申请接口切换控制方法的第二实施例流程图, 其中第一设备为主设备, 第二设备为从设备: 2 is a flowchart of a second embodiment of an interface switching control method according to the present application, where a first device is a master device, and a second device is a slave device:
步骤 201 : 检测便携终端所处的状态。 仍然以共享设备与从设备集成一体为例, 在从设备和主设备上分别具有连接端口, 通 过连接端口可以使主设备和从设备在物理上实现连接或者断开。 本实施例中, 由从设备根 据连接端口的连接情况检测便携终端是处于主设备和从设备相连的第一状态, 还是主设备 与从设备断开的第二状态。 具体的, 可以通过电平信号的高低指示进行状态检测, 在接收 到接口连接器传输的电平信号时, 如果电平信号为高电平信号, 则确定便携终端处于第一 状态, 如果电平信号为低电平信号, 则确定便携终端处于第二状态。 Step 201: Detect a state in which the portable terminal is located. For example, the shared device and the slave device are integrated as an example, and the slave device and the master device respectively have a connection port, and the master device and the slave device can be physically connected or disconnected through the connection port. In this embodiment, the slave device detects whether the portable terminal is in the first state in which the master device and the slave device are connected according to the connection condition of the connection port, or is the second state in which the master device is disconnected from the slave device. Specifically, the state detection may be performed by the level indication of the level signal. When the level signal transmitted by the interface connector is received, if the level signal is a high level signal, it is determined that the portable terminal is in the first state, if the level When the signal is a low level signal, it is determined that the portable terminal is in the second state.
例如, 共享设备可以分别通过从设备内的控制单元与设置在从设备上的第一接口和第 二接口相连, 或者也可以将第一接口和第二接口设置在共享设备上。 主设备可以通过第一 接口与共享设备连接, 从设备可以通过第二接口与共享设备连接。  For example, the shared device may be connected to the first interface and the second interface disposed on the slave device through a control unit in the slave device, respectively, or the first interface and the second interface may also be disposed on the shared device. The master device can be connected to the shared device through the first interface, and the slave device can be connected to the shared device through the second interface.
步骤 202 : 根据检测结果判断便携终端所处的状态, 若为第一状态, 则执行步骤 203 ; 若为第二状态, 则执行步骤 204。  Step 202: Determine, according to the detection result, a state in which the portable terminal is located. If it is the first state, step 203 is performed; if it is the second state, step 204 is performed.
步骤 203 : 控制所述第一接口处于使能状态, 以及控制所述第二接口处于非使能状态, 以使所述第一设备响应所述共享设备输入的信息, 结束当前流程。  Step 203: Control the first interface to be in an enabled state, and control the second interface to be in a non-enabled state, so that the first device responds to the information input by the shared device, and ends the current process.
当检测结果表示便携终端处于主设备和从设备相连的第一状态时, 由从设备内的控制 单元控制第一接口使能, 以及控制第二接口非使能, 此时主设备可以通过第一接口响应共 享设备输入的信息。  When the detection result indicates that the portable terminal is in the first state in which the master device and the slave device are connected, the first interface is enabled by the control unit in the slave device, and the second interface is disabled, and the master device can pass the first The interface responds to information entered by the shared device.
步骤 204: 控制所述第二接口处于使能状态, 以使所述第二设备响应所述共享设备输 入的信息。  Step 204: Control the second interface to be in an enabled state, so that the second device responds to information input by the shared device.
当检测结果表示便携终端处于主设备和从设备断开的第二状态时, 此时与从设备集成 为一体的共享设备可以在从设备系统控制下工作, 因此由从设备内的控制单元控制第二接 口使能, 从设备可以通过第二接口响应共享设备输入的信息。  When the detection result indicates that the portable terminal is in the second state in which the master device and the slave device are disconnected, the shared device integrated with the slave device at this time can operate under the control of the slave device system, and thus is controlled by the control unit in the slave device. The second interface is enabled, and the slave device can respond to the information input by the shared device through the second interface.
此时, 由于主设备和从设备在物理状态上已经断开, 因此无论第一接口是否使能, 主 设备都无法通过第一接口响应共享设备的输入信息。 但是, 为了进一步节省第一接口的功 耗, 从设备的控制单元可以在控制第二接口处于使能状态的同时, 控制第一接口处于非使 能状态。  At this time, since the master device and the slave device are disconnected in the physical state, the master device cannot respond to the input information of the shared device through the first interface regardless of whether the first interface is enabled or not. However, in order to further save the power consumption of the first interface, the control unit of the slave device can control the first interface to be in a non-enabled state while controlling the second interface to be in an enabled state.
参见图 3, 为应用上述方法实施例进行接口切换控制的一种便携终端从设备内的检测 控制模块的结构示意图, 该便携终端的触摸屏与从设备集成为一体, 由从设备内的控制单 元 EC对接口使能进行控制。 例如, 假设运行 X86系统的主设备称为 PE, 运行 ARM操作系统的从设备称为 SE。 图 3 中示出了触摸屏检测控制模块中的控制单元 MCU, 该 MCU与接口连接器 CONNECTOR相连, 两个接口 USB和 UART分别与 CONNECTOR和 MCU相连, 触摸屏检测控制模块通过 CONNECTOR 对外与 ARM系统从设备 SE相连。 EC检测得到的检测信息可以通过 CONNECTOR传输给 MCU, 并且当两个接口 USB和 UART中的任意一个使能时, T0UCHPANEL传输的输入信息可以通过 使能的接口与 CONNECTOR的连接供给 PE或者 SE响应。 Referring to FIG. 3, a schematic structural diagram of a detection control module in a portable terminal slave device for performing interface switching control using the above method embodiment, the touch screen of the portable terminal is integrated with the slave device, and the control unit EC in the slave device is integrated. Control the interface enable. For example, suppose a master device running an X86 system is called a PE, and a slave device running an ARM operating system is called an SE. Figure 3 shows the control unit MCU in the touch screen detection control module. The MCU is connected to the interface connector CONNECTOR. The two interfaces USB and UART are connected to the CONNECTOR and MCU respectively. The touch screen detection control module communicates with the ARM system slave device through CONNECTOR. SE is connected. The detection information obtained by the EC detection can be transmitted to the MCU through CONNECTOR, and when either of the two interfaces USB and UART is enabled, the input information transmitted by T0UCHPANEL can be supplied to the PE or SE response through the connection of the enabled interface with the CONNECTOR.
具体来说, 当 SE插入到 PE时, SE和 PE组成混合系统工作:  Specifically, when SE is inserted into the PE, SE and PE work in a hybrid system:
SE内的 EC检测到有 PE接入, 则将电平信号 TP— SEU拉高, 生成高电平信号, MCU通 过触摸屏检测控制模块 CONNECTOR检测到 TP— SEU为高电平信号, 于是将 USB接口 ENABLE (使能), 并将 UART接口 DISABLE (非使能)。此时,触摸屏 T0UCHPANEL的对外接口为 USB, 即由 PE通过该 USB接口响应触摸屏的输入信息。 由于 PE上运行 X86系统, 而 USB接口为 通用接口, 且 X86系统已自带 USB接口的驱动, 因此, 无须再额外挂载驱动。  When the EC in the SE detects PE access, the level signal TP_SEU is pulled high to generate a high level signal, and the MCU detects the TP_SEU as a high level signal through the touch screen detection control module CONNECTOR, and thus the USB interface ENABLE (enable), and the UART interface DISABLE (not enabled). At this time, the external interface of the touch screen T0UCHPANEL is USB, that is, the PE responds to the input information of the touch screen through the USB interface. Since the X86 system runs on the PE, and the USB interface is a universal interface, and the X86 system has its own USB interface driver, there is no need to additionally mount the driver.
当 SE从 PE内拔出时, SE和 PE分别独立工作:  When the SE is pulled out of the PE, SE and PE work independently:
SE内的 EC检测到 PE拔出, 则将电平信号 TP— SEU拉低, 生成低电平信号, MCU通过 触摸屏检测控制模块 CONNECTOR检测到 TP— SEU为低电平信号, 于是将 UART接口 ENABLE (使能), 并将 USB接口 DISABLE (非使能)。此时,触摸屏 T0UCHPANEL的对外接口为 UART, 即由 SE通过该 UART接口响应触摸屏的输入信息。 由于 SE上运行 ARM系统, 使用 UART作 为 ARM系统的接口, 与使用 USB作为 ARM系统的接口相比, 可以降低功耗, 并且 UART在 ARM系统下无须额外挂载驱动, 因此响应速度也比 USB快。  When the EC in the SE detects the PE pull-out, the level signal TP_SEU is pulled low to generate a low-level signal, and the MCU detects the TP_SEU as a low-level signal through the touch screen detection control module CONNECTOR, so the UART interface ENABLE (Enable), and the USB interface DISABLE (not enabled). At this time, the external interface of the touch screen T0UCHPANEL is a UART, that is, the SE responds to the input information of the touch screen through the UART interface. Since the ARM system runs on the SE, the UART is used as the interface of the ARM system. Compared with the interface using the USB as the ARM system, the power consumption can be reduced, and the UART does not need to be additionally mounted in the ARM system, so the response speed is faster than the USB. .
进一步, 参见图 4A, 示出了应用本申请实施例进行接口切换控制的一个从设备的整体 架构示意图; 参见图 4B, 示出了应用本申请实施例进行接口切换控制的一个主设备的整体 架构示意图。 Further, referring to FIG. 4A, a schematic diagram of an overall architecture of a slave device applying interface switching control according to an embodiment of the present application is shown. Referring to FIG. 4B, an overall architecture of a master device applying interface switching control according to an embodiment of the present application is shown. schematic diagram.
结合图 4A和图 4B可知, 其中 BASEDocking为从设备的连接端口, SLATEDocking为主 设备的连接端口。主设备和从设备通过上述 BASEDocking和 SLATEDocking实现物理连接和 物理断开。  As shown in FIG. 4A and FIG. 4B, where the Shockocking is the connection port of the slave device, SLATEDocking is the connection port of the master device. The master device and the slave device are physically connected and physically disconnected by the above-mentioned BASEDocking and SLATEDocking.
在图 4A所示的从设备中, 多触摸模组 Multi-Touch与显示屏 LCD相连, Multi-Touch 与控制单元 MCU相连, Multi-Touch内包含接口连接器。根据 BASEDocking和 SLATEDocking 之间的连接状态, 若 BASEDocking和 SLATEDocking连接, 则 MCU通过 Multi-Touch内的接 口连接器检测到 TP— SEU为高电平信号, 此时 MCU控制 USB接口使能, UART接口非使能, 则主设备可以通过 USB接口响应显示屏 LCD的输入信息, 由于 UART接口非使能, 因此从设 备无法通过该 UART接口响应显示屏 LCD的输入信息; 若 BASEDocking和 SLATEDocking断 开, 则 MCU通过 Mult i-Touch内的接口连接器检测到 TP— SEU为低电平信号, 此时 MCU控 制 USB接口非使能, UART接口使能, 则从设备可以通过 UART接口响应显示屏 LCD的输入 信息, 而无论 USB接口是否使能, 由于主设备与从设备之间已经物理断开, 因此主设备都 无法通过 USB接口响应 LCD显示屏输入的信息, 但是为了节约系统功耗, 可以由 MCU控制 USB接口非使能。 In the slave device shown in FIG. 4A, the multi-touch module Multi-Touch is connected to the display LCD, the Multi-Touch is connected to the control unit MCU, and the Multi-Touch includes an interface connector. According to the connection status between BASEDocking and SLATEDocking, if BASEDocking and SLATEDocking are connected, the MCU is connected through the Multi-Touch. The port connector detects that TP_SEU is a high level signal. At this time, the MCU controls the USB interface to be enabled. If the UART interface is not enabled, the master device can respond to the input information of the display LCD through the USB interface, because the UART interface is not enabled. Therefore, the slave device cannot respond to the input information of the display LCD through the UART interface; if the BASEDocking and SLATEDocking are disconnected, the MCU detects that the TP_SEU is a low level signal through the interface connector in the Mult i-Touch, at this time, the MCU When the control USB interface is disabled and the UART interface is enabled, the slave device can respond to the input information of the display LCD through the UART interface, regardless of whether the USB interface is enabled or not, because the master device and the slave device are physically disconnected, so the master The device cannot respond to the information input by the LCD display through the USB interface, but in order to save system power consumption, the MCU can control the USB interface to be disabled.
与本申请接口切换控制方法的实施例相对应, 本申请还提供了便携终端、 便携移动设 备及输入设备的实施例。 Corresponding to the embodiment of the interface switching control method of the present application, the present application also provides an embodiment of a portable terminal, a portable mobile device, and an input device.
参见图 5, 为本申请便携终端的实施例框图。 该便携终端包括: 第一设备 510、 第二设 备 520、 共享设备 530、 第一接口 540和第二接口 550。 第一设备 510通过第一接口 540与 共享设备 530连接, 第二设备 520通过第二接口 550与共享设备 530连接, 便携终端具有 第一设备 510和第二设备 520连接的第一状态, 以及第一设备 510和第二设备 520分离的 第二状态。 在应用时, 第一接口 540和第二接口 550可以设置在第二设备 520内, 也可以 设置在共享设备 530内; 进一步, 该共享设备 530可以与第二设备集成一体。 为了示例清 楚, 图 5中将上述各个部分分开描述。  Referring to FIG. 5, it is a block diagram of an embodiment of a portable terminal of the present application. The portable terminal includes: a first device 510, a second device 520, a sharing device 530, a first interface 540, and a second interface 550. The first device 510 is connected to the sharing device 530 through the first interface 540, and the second device 520 is connected to the sharing device 530 through the second interface 550. The portable terminal has a first state in which the first device 510 and the second device 520 are connected, and A second state in which the device 510 and the second device 520 are separated. In the application, the first interface 540 and the second interface 550 may be disposed in the second device 520 or may be disposed in the shared device 530; further, the shared device 530 may be integrated with the second device. For the sake of clarity, the above various parts are separately described in FIG.
根据本发明的实施例, 第二设备 520可以包括: 检测单元 521, 用于检测所述便携终 端所处的状态, 产生一检测结果; 控制单元 522, 用于当所述检测结果表示所述便携终端 处于所述第一状态时, 控制所述第一接口处于使能状态, 以及控制所述第二接口处于非使 能状态, 以使所述第一设备响应所述共享设备输入的信息。  According to an embodiment of the present invention, the second device 520 may include: a detecting unit 521, configured to detect a state in which the portable terminal is located, to generate a detection result; and a control unit 522, configured to: when the detection result indicates the portable When the terminal is in the first state, the first interface is controlled to be in an enabled state, and the second interface is controlled to be in a non-enabled state, so that the first device responds to information input by the shared device.
进一步, 控制单元 522还可以用于当所述检测结果表示所述便携终端处于所述第二状 态时,控制所述第二接口 550处于使能状态, 以使所述第二设备 520响应所述共享设备 530 输入的信息; 以及优选的, 所述控制单元 522还可以用于在控制所述第二接口 550处于使 能状态的同时, 控制所述第一接口 540处于非使能状态。  Further, the control unit 522 is further configured to: when the detection result indicates that the portable terminal is in the second state, control the second interface 550 to be in an enabled state, so that the second device 520 responds to the The information input by the sharing device 530; and preferably, the control unit 522 is further configured to control the first interface 540 to be in a non-enabled state while controlling the second interface 550 to be in an enabled state.
具体的, 检测单元 521可以包括(未示出): 电平信号接收单元, 用于接收接口连接器 传输的电平信号; 终端状态确定单元, 用于当所述电平信号为高电平信号时, 确定所述便 携终端处于第一状态, 当所述电平信号为低电平信号时, 确定所述便携终端处于第二状态。 参见图 6, 为本申请便携移动设备的实施例框图。 如图 6所示, 该便携移动设备包括: 共享设备 610、 连接端口 620、 检测单元 630和控制单元 640。 其中, 共享设备 610内包括 第一接口 611和第二接口 612。 连接端口 620用于与一电子设备连接, 当所述便携移动设 备与所述电子设备连接时,所述第一接口 611通过所述连接端口 620与所述电子设备连接。 Specifically, the detecting unit 521 may include: (not shown): a level signal receiving unit, configured to receive a level signal transmitted by the interface connector; and a terminal state determining unit, configured to: when the level signal is a high level signal And determining that the portable terminal is in the first state, and determining that the portable terminal is in the second state when the level signal is a low level signal. Referring to FIG. 6, a block diagram of an embodiment of a portable mobile device of the present application is shown. As shown in FIG. 6, the portable mobile device includes: a sharing device 610, a connection port 620, a detecting unit 630, and a control unit 640. The shared device 610 includes a first interface 611 and a second interface 612. The connection port 620 is configured to be connected to an electronic device, and the first interface 611 is connected to the electronic device through the connection port 620 when the portable mobile device is connected to the electronic device.
例如, 检测单元 630可以用于检测所述便携移动设备所处的状态, 产生一检测结果。 控制单元 640可以用于当所述检测结果表示所述便携移动设备与所述电子设备连接时, 用 于控制所述第一接口 611处于使能状态, 以及控制所述第二接口 612处于非使能状态, 以 使所述电子设备响应所述共享设备 610输入的信息。  For example, the detecting unit 630 can be configured to detect a state in which the portable mobile device is located, and generate a detection result. The control unit 640 can be configured to, when the detection result indicates that the portable mobile device is connected to the electronic device, to control the first interface 611 to be in an enabled state, and to control the second interface 612 to be in a non-enable manner The energy state is such that the electronic device responds to information input by the sharing device 610.
进一步, 所述控制单元 640还可以用于当所述检测结果表示所述便携移动设备与所述 电子设备断开连接时, 控制所述第二接口 612处于使能状态, 以使所述便携移动设备响应 所述共享设备 610输入的信息; 以及优选的, 所述控制单元 640还可以用于在控制所述第 二接口 612处于使能状态的同时, 控制所述第一接口 611处于非使能状态。  Further, the control unit 640 is further configured to: when the detection result indicates that the portable mobile device is disconnected from the electronic device, control the second interface 612 to be in an enabled state, so that the portable mobile The device is responsive to the information input by the shared device 610; and preferably, the control unit 640 is further configured to control the first interface 611 to be disabled while controlling the second interface 612 to be in an enabled state. status.
参见图 7, 为本申请输入设备的实施例框图。 如图 7所示, 该输入设备包括: 第一接 口 710、 第二接口 720、 输入单元 730、 获得单元 740、 控制单元 750。 该输入设备优选的, 为一触摸输入设备。 Referring to FIG. 7, a block diagram of an embodiment of an input device of the present application is shown. As shown in FIG. 7, the input device includes: a first interface 710, a second interface 720, an input unit 730, an obtaining unit 740, and a control unit 750. Preferably, the input device is a touch input device.
例如, 第一接口 710可以用于与第一电子设备连接。 第二接口 720可以用于与第二电 子设备连接。 输入单元 730可以用于提供给操作体进行操作。 获得单元 740与所述输入单 元 730连接, 可以用于获得所述操作体对所述输入单元进行操作时的输入信息。 控制单元 750分别与所述获得单元 740、所述第一接口 710和所述第二接口 720连接, 可以用于将所 述获得单元 730获得的所述输入信息传输给所述第一接口 710以及所述第二接口 720, 并 按照预定的策略控制所述第一接口 710和所述第二接口 720中的一个处于使能状态, 另一 个处于非使能状态。  For example, the first interface 710 can be used to connect with the first electronic device. The second interface 720 can be used to connect to the second electronic device. The input unit 730 can be used to provide an operation to the operating body. The obtaining unit 740 is connected to the input unit 730 and can be used to obtain input information when the operating unit operates the input unit. The control unit 750 is connected to the obtaining unit 740, the first interface 710 and the second interface 720, respectively, and can be used to transmit the input information obtained by the obtaining unit 730 to the first interface 710 and The second interface 720 controls one of the first interface 710 and the second interface 720 to be in an enabled state and the other in a non-enabled state according to a predetermined policy.
具体的, 控制单元 750可以包括 (未示出): 命令接收单元, 用于接收按键使能命令; 使能控制单元, 用于根据所述按键使能命令的指示, 控制所述第一接口和所述第二接口中 的一个处于使能状态, 另一个处于非使能状态。  Specifically, the control unit 750 may include: (not shown): a command receiving unit, configured to receive a button enable command; an enable control unit, configured to control the first interface according to the indication of the button enable command One of the second interfaces is in an enabled state and the other is in a disabled state.
或者, 控制单元 750可以包括(未示出): 消息接收单元, 用于当所述第一电子设备与 所述第二电子设备相连或断开时, 接收所述第一电子设备和第二电子设备中的任意一个电 子设备发送的连接状态消息; 使能控制单元, 用于当所述连接状态消息表示所述第一电子 设备和第二电子设备连接时, 控制所述第一接口处于使能状态, 以及控制所述第二接口处 于非使能状态, 以及当所述连接状态消息表示所述第一电子设备和第二电子设备断开连接 时, 控制所述第一接口处于非使能状态, 以及控制所述第二接口处于使能状态。 Alternatively, the control unit 750 may include (not shown): a message receiving unit, configured to receive the first electronic device and the second electronic device when the first electronic device is connected to or disconnected from the second electronic device Any one of the devices a connection status message sent by the sub-device; an enabling control unit, configured to control, when the connection status message indicates that the first electronic device and the second electronic device are connected, to control the first interface to be in an enabled state, and to control the The second interface is in a non-enabled state, and when the connection status message indicates that the first electronic device and the second electronic device are disconnected, controlling the first interface to be in a non-enabled state, and controlling the The second interface is enabled.
或者, 控制单元 750也可以包括(未示出): 连接检测单元, 用于检测所述第一电子设 备与第二电子设备之间的连接状态, 产生一检测结果; 状态使能单元, 用于当所述检测结 果表示所述第一电子设备和第二电子设备连接时, 控制所述第一接口处于使能状态, 以及 控制所述第二接口处于非使能状态, 当所述检测结果表示所述第一电子设备和第二电子设 备断开时, 控制所述第一接口处于非使能状态, 以及控制所述第二接口处于使能状态。  Alternatively, the control unit 750 may also include: (not shown): a connection detecting unit, configured to detect a connection state between the first electronic device and the second electronic device, to generate a detection result; a state enabling unit, configured to When the detection result indicates that the first electronic device and the second electronic device are connected, controlling the first interface to be in an enabled state, and controlling the second interface to be in a non-enabled state, when the detection result is When the first electronic device and the second electronic device are disconnected, the first interface is controlled to be in a non-enabled state, and the second interface is controlled to be in an enabled state.
通过以上的实施方式的描述可知, 本申请中的便携终端包括第一设备和第二设备, 其 中第一设备通过第一接口与共享设备连接, 第二设备通过第二接口与共享设备连接, 便携 终端具有所述第一设备和第二设备连接的第一状态, 以及第一设备和所述第二设备分离的 第二状态, 检测便携终端所处的状态, 产生一检测结果, 当检测结果表示便携终端处于所 述第一状态时, 控制第一接口处于使能状态, 以及控制第二接口处于非使能状态, 以使第 一设备响应共享设备输入的信息。 本申请实施例实现了对共享设备接口的实时切换控制, 优化了混合系统架构的便携终端的接口控制; 通过根据便携终端所处状态的不同, 将各个 设备所需使用的接口进行使能, 从而满足了不同设备的系统性能, 降低了系统功耗。 The portable terminal in the present application includes a first device and a second device, wherein the first device is connected to the shared device through the first interface, and the second device is connected to the shared device through the second interface, and is portable. The terminal has a first state in which the first device and the second device are connected, and a second state in which the first device and the second device are separated, detecting a state in which the portable terminal is located, generating a detection result, when the detection result is displayed When the portable terminal is in the first state, the first interface is controlled to be in an enabled state, and the second interface is controlled to be in a non-enabled state, so that the first device responds to the information input by the shared device. The embodiment of the present application implements real-time switching control of the shared device interface, and optimizes the interface control of the portable terminal of the hybrid system architecture; and enables the interfaces required by each device according to the state of the portable terminal, thereby It satisfies the system performance of different devices and reduces system power consumption.
本领域的技术人员可以清楚地了解到本申请实施例中的技术可借助软件加必需的通用 硬件平台的方式来实现。 基于这样的理解, 本申请实施例中的技术方案本质上或者说对现 有技术做出贡献的部分可以以软件产品的形式体现出来, 该计算机软件产品可以存储在存 储介质中, 如 醒/應、 磁碟、 光盘等, 包括若干指令用以使得一台计算机设备 (可以是 个人计算机, 服务器, 或者网络设备等) 执行本申请各个实施例或者实施例的某些部分所 述的方法。 本说明书中的各个实施例均采用递进的方式描述, 各个实施例之间相同相似的部分互 相参见即可, 每个实施例重点说明的都是与其他实施例的不同之处。 尤其, 对于系统实施 例而言, 由于其基本相似于方法实施例, 所以描述的比较简单, 相关之处参见方法实施例 的部分说明即可。 以上所述的本申请实施方式, 并不构成对本申请保护范围的限定。 任何在本申请的精 神和原则之内所作的修改、 等同替换和改进等, 均应包含在本申请的保护范围之内 Those skilled in the art can clearly understand that the technology in the embodiments of the present application can be implemented by means of software plus a necessary general hardware platform. Based on such understanding, the technical solution in the embodiments of the present application may be embodied in the form of a software product in essence or in the form of a software product, and the computer software product may be stored in a storage medium, such as waking up/should. , a diskette, an optical disk, etc., including instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform the methods described in various embodiments of the present application or portions of the embodiments. The various embodiments in the present specification are described in a progressive manner, and the same or similar parts between the various embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment. The embodiments of the present application described above are not intended to limit the scope of the present application. Any fine in this application Modifications, equivalent substitutions and improvements made within God and Principles shall be covered by the scope of this application.

Claims

权利要求 Rights request
1、 一种接口切换控制方法, 应用于包含第一设备和第二设备的便携终端, 所述第一设 备通过第一接口与共享设备连接, 所述第二设备通过第二接口与所述共享设备连接, 所述 便携终端具有所述第一设备和第二设备连接的第一状态, 以及所述第一设备和所述第二设 备分离的第二状态, 其中, 所述方法包括: An interface switching control method is applied to a portable terminal including a first device and a second device, wherein the first device is connected to the shared device through the first interface, and the second device is shared with the second device through the second interface. The device is connected, the portable terminal has a first state in which the first device and the second device are connected, and a second state in which the first device and the second device are separated, where the method includes:
检测所述便携终端所处的状态, 产生一检测结果;  Detecting a state in which the portable terminal is located, and generating a detection result;
当所述检测结果表示所述便携终端处于所述第一状态时, 控制所述第一接口处于使能 状态, 以及控制所述第二接口处于非使能状态, 以使所述第一设备响应所述共享设备输入 的信息。  When the detection result indicates that the portable terminal is in the first state, controlling the first interface to be in an enabled state, and controlling the second interface to be in a non-enabled state, so that the first device responds The information input by the shared device.
2、 根据权利要求 1所述的方法, 还包括:  2. The method of claim 1 further comprising:
当所述检测结果表示所述便携终端处于所述第二状态时, 控制所述第二接口处于使能 状态, 以使所述第二设备响应所述共享设备输入的信息。  When the detection result indicates that the portable terminal is in the second state, controlling the second interface to be in an enabled state, so that the second device responds to the information input by the shared device.
3、 根据权利要求 2所述的方法, 还包括:  3. The method of claim 2, further comprising:
在控制所述第二接口处于使能状态的同时, 控制所述第一接口处于非使能状态。 The first interface is controlled to be in a non-enabled state while controlling the second interface to be in an enabled state.
4、 根据权利要求 1所述的方法, 其中, 所检测所述便携终端所处的状态包括: 接收接口连接器传输的电平信号; 4. The method according to claim 1, wherein the detected state of the portable terminal comprises: receiving a level signal transmitted by the interface connector;
当所述电平信号为高电平信号时, 确定所述便携终端处于所述第一状态, 当所述电平 信号为低电平信号时, 确定所述便携终端处于所述第二状态。  When the level signal is a high level signal, it is determined that the portable terminal is in the first state, and when the level signal is a low level signal, determining that the portable terminal is in the second state.
5、 一种便携终端, 其特征在于, 包括第一设备、 第二设备和共享设备, 所述第一设备 通过第一接口与共享设备连接, 所述第二设备通过第二接口与所述共享设备连接, 所述便 携终端具有所述第一设备和第二设备连接的第一状态, 以及所述第一设备和所述第二设备 分离的第二状态, 其中, 所述第二设备还包括:  A portable terminal, comprising: a first device, a second device, and a shared device, wherein the first device is connected to the shared device by using the first interface, and the second device is shared with the second device by using the second interface The device is connected, the portable terminal has a first state in which the first device and the second device are connected, and a second state in which the first device and the second device are separated, wherein the second device further includes :
检测单元, 用于检测所述便携终端所处的状态, 产生一检测结果;  a detecting unit, configured to detect a state in which the portable terminal is located, and generate a detection result;
控制单元, 用于当所述检测结果表示所述便携终端处于所述第一状态时, 控制所述第 一接口处于使能状态, 以及控制所述第二接口处于非使能状态, 以使所述第一设备响应所 述共享设备输入的信息。  a control unit, configured to: when the detection result indicates that the portable terminal is in the first state, control the first interface to be in an enabled state, and control the second interface to be in an inactive state, so as to enable The first device responds to information input by the shared device.
6、 根据权利要求 5所述的便携终端, 其中, 所述控制单元, 还用于当所述检测结果表示所述便携终端处于所述第二状态时, 控制 所述第二接口处于使能状态, 以使所述第二设备响应所述共享设备输入的信息。 6. The portable terminal according to claim 5, wherein The control unit is further configured to: when the detection result indicates that the portable terminal is in the second state, control the second interface to be in an enabled state, so that the second device responds to the shared device input Information.
7、 根据权利要求 6所述的便携终端, 其中,  7. The portable terminal according to claim 6, wherein
所述控制单元, 还用于在控制所述第二接口处于使能状态的同时, 控制所述第一接口 处于非使能状态。  The control unit is further configured to control the first interface to be in a non-enabled state while controlling the second interface to be in an enabled state.
8、 根据权利要求 5所述的便携终端, 其中, 所述检测单元包括:  The portable terminal according to claim 5, wherein the detecting unit comprises:
电平信号接收单元, 用于接收接口连接器传输的电平信号;  a level signal receiving unit, configured to receive a level signal transmitted by the interface connector;
终端状态确定单元, 用于当所述电平信号为高电平信号时, 确定所述便携终端处于第 一状态, 当所述电平信号为低电平信号时, 确定所述便携终端处于第二状态。  a terminal state determining unit, configured to determine that the portable terminal is in a first state when the level signal is a high level signal, and determine that the portable terminal is in a first state when the level signal is a low level signal Two states.
9、 一种便携移动设备, 所述便携移动设备包括一共享设备和一连接端口, 所述共享设 备具有第一接口和第二接口, 其中, 所述连接端口用于与一电子设备连接, 当所述便携移 动设备与所述电子设备连接时, 所述第一接口通过所述连接端口与所述电子设备连接, 所 述便携移动设备还包括:  A portable mobile device, the portable mobile device comprising a shared device and a connection port, the shared device having a first interface and a second interface, wherein the connection port is used for connecting with an electronic device, When the portable mobile device is connected to the electronic device, the first interface is connected to the electronic device by using the connection port, and the portable mobile device further includes:
检测单元, 用于检测所述便携移动设备所处的状态, 产生一检测结果;  a detecting unit, configured to detect a state in which the portable mobile device is located, and generate a detection result;
控制单元, 用于当所述检测结果表示所述便携移动设备与所述电子设备连接时, 用于 控制所述第一接口处于使能状态, 以及控制所述第二接口处于非使能状态, 以使所述电子 设备响应所述共享设备输入的信息。  a control unit, configured to: when the detection result indicates that the portable mobile device is connected to the electronic device, to control the first interface to be in an enabled state, and to control the second interface to be in a disabled state, So that the electronic device responds to information input by the shared device.
10、 根据权利要求 9所述的便携移动设备, 其中,  10. The portable mobile device according to claim 9, wherein
所述控制单元, 还用于当所述检测结果表示所述便携移动设备与所述电子设备断开连 接时, 控制所述第二接口处于使能状态, 以使所述便携移动设备响应所述共享设备输入的 信息。  The control unit is further configured to: when the detection result indicates that the portable mobile device is disconnected from the electronic device, control the second interface to be in an enabled state, so that the portable mobile device responds to the Share information entered by the device.
11、 根据权利要求 10所述的便携终端, 其中,  11. The portable terminal according to claim 10, wherein
所述控制单元, 还用于在控制所述第二接口处于使能状态的同时, 控制所述第一接口 处于非使能状态。  The control unit is further configured to control the first interface to be in a non-enabled state while controlling the second interface to be in an enabled state.
12、 一种输入设备, 包括:  12. An input device, comprising:
第一接口, 用于与第一电子设备连接;  a first interface, configured to be connected to the first electronic device;
第二接口, 用于与第二电子设备连接;  a second interface, configured to be connected to the second electronic device;
输入单元, 用于提供给操作体进行操作; 获得单元, 与所述输入单元连接, 用于获得所述操作体对所述输入单元进行操作时的 输入信息; An input unit for providing an operation to the operating body; An obtaining unit, connected to the input unit, for obtaining input information when the operating body operates the input unit;
控制单元, 分别与所述获得单元、 所述第一接口和所述第二接口连接, 用于将所述获 得单元获得的所述输入信息传输给所述第一接口以及所述第二接口, 并按照预定的策略控 制所述第一接口和所述第二接口中的一个处于使能状态, 另一个处于非使能状态。  a control unit, configured to connect the obtaining unit, the first interface, and the second interface, respectively, to transmit the input information obtained by the obtaining unit to the first interface and the second interface, And controlling one of the first interface and the second interface to be in an enabled state according to a predetermined policy, and the other is in a non-enabled state.
13、 根据权利要求 12所述的输入设备, 其中, 所述控制单元包括:  The input device according to claim 12, wherein the control unit comprises:
命令接收单元, 用于接收按键使能命令;  a command receiving unit, configured to receive a button enable command;
使能控制单元, 用于根据所述按键使能命令的指示, 控制所述第一接口和所述第二接 口中的一个处于使能状态, 另一个处于非使能状态。  And an enabling control unit, configured to control one of the first interface and the second interface to be in an enabled state and the other to be in an inactive state according to the indication of the button enable command.
14、 根据权利要求 12所述的输入设备, 其中, 所述控制单元包括:  The input device according to claim 12, wherein the control unit comprises:
消息接收单元, 用于当所述第一电子设备与所述第二电子设备相连或断开时, 接收所 述第一电子设备和第二电子设备中的任意一个电子设备发送的连接状态消息; 使能控制单元, 用于当所述连接状态消息表示所述第一电子设备和第二电子设备连接 时, 控制所述第一接口处于使能状态, 以及控制所述第二接口处于非使能状态, 以及当所 述连接状态消息表示所述第一电子设备和第二电子设备断开连接时, 控制所述第一接口处 于非使能状态, 以及控制所述第二接口处于使能状态。  a message receiving unit, configured to receive, when the first electronic device is connected to or disconnected from the second electronic device, a connection status message sent by any one of the first electronic device and the second electronic device; An enabling control unit, configured to: when the connection status message indicates that the first electronic device and the second electronic device are connected, control the first interface to be in an enabled state, and control the second interface to be disabled a state, and when the connection status message indicates that the first electronic device and the second electronic device are disconnected, controlling the first interface to be in a disabled state, and controlling the second interface to be in an enabled state.
15、 根据权利要求 12所述的输入设备, 其中, 所述控制单元包括:  The input device according to claim 12, wherein the control unit comprises:
连接检测单元, 用于检测所述第一电子设备与第二电子设备之间的连接状态, 产生一 检测结果;  a connection detecting unit, configured to detect a connection state between the first electronic device and the second electronic device, to generate a detection result;
状态使能单元, 用于当所述检测结果表示所述第一电子设备和第二电子设备连接时, 控制所述第一接口处于使能状态, 以及控制所述第二接口处于非使能状态, 当所述检测结 果表示所述第一电子设备和第二电子设备断开时, 控制所述第一接口处于非使能状态, 以 及控制所述第二接口处于使能状态。  a state enabling unit, configured to: when the detection result indicates that the first electronic device and the second electronic device are connected, control the first interface to be in an enabled state, and control the second interface to be in an inactive state And when the detection result indicates that the first electronic device and the second electronic device are disconnected, controlling the first interface to be in a non-enabled state, and controlling the second interface to be in an enabled state.
PCT/CN2011/083137 2010-12-13 2011-11-29 Interface switching control method, and portable terminal and portable mobile device using same WO2012079457A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US13/993,261 US9588927B2 (en) 2010-12-13 2011-11-29 Interface switching control methods, and portable terminals and portable mobile devices using the same

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201010586883.0 2010-12-13
CN201010586883.0A CN102567238B (en) 2010-12-13 2010-12-13 Interface switching control method, portable terminal device, portable mobile equipment and input equipment

Publications (1)

Publication Number Publication Date
WO2012079457A1 true WO2012079457A1 (en) 2012-06-21

Family

ID=46244082

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/083137 WO2012079457A1 (en) 2010-12-13 2011-11-29 Interface switching control method, and portable terminal and portable mobile device using same

Country Status (3)

Country Link
US (1) US9588927B2 (en)
CN (1) CN102567238B (en)
WO (1) WO2012079457A1 (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103268300B (en) * 2013-05-17 2016-04-20 浙江正泰中自控制工程有限公司 A kind of serial interface circuit of serial communication management server
US20150002743A1 (en) * 2013-07-01 2015-01-01 Mediatek Inc. Video data displaying system and video data displaying method
TW201537351A (en) * 2014-03-21 2015-10-01 Wistron Corp Electronic device
EP3137981A4 (en) 2014-04-30 2017-12-06 Hewlett-Packard Development Company, L.P. Multi architecture manager
US9471201B1 (en) * 2014-05-20 2016-10-18 Google Inc. Laptop-to-tablet mode adaptation
US20160147259A1 (en) * 2014-11-21 2016-05-26 Kabushiki Kaisha Toshiba Electronic device
US20170220069A1 (en) * 2016-01-28 2017-08-03 Hong Fu Jin Precision Industry (Shenzhen) Co., Ltd. Docking apparatus and control method thereof
CN107436768A (en) * 2017-08-01 2017-12-05 合肥联宝信息技术有限公司 A kind of bus control method and electronic equipment
US10955888B2 (en) 2018-01-29 2021-03-23 Via Labs, Inc. Universal serial bus device and method for dynamically defining a power source or sink status for downstream facing ports
CN109062846B (en) * 2018-01-29 2020-08-25 威锋电子股份有限公司 Universal serial bus device and operation method thereof
CN109991866B (en) * 2019-03-31 2021-02-19 联想(北京)有限公司 Electronic equipment and control method
CN112134774B (en) * 2020-09-22 2022-04-22 Oppo广东移动通信有限公司 Client front-end device, communication control method for client front-end device, and storage medium
CN112905117A (en) * 2021-02-08 2021-06-04 青岛九日软件科技服务有限责任公司 Data storage method with double-interface memory

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1117318A (en) * 1993-11-01 1996-02-21 艾利森.Ge.流动通讯有限公司 Multiprocessor data memory sharing
CN2672715Y (en) * 2003-11-27 2005-01-19 岳文祥 Composite portable electronic device
CN101616506A (en) * 2008-06-25 2009-12-30 英特尔公司 Technology with distributed management of the wireless device of shared resource between wireless module
CN201628885U (en) * 2010-02-03 2010-11-10 张菊 Dual-mode electronic device

Family Cites Families (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2568261B2 (en) * 1988-11-21 1996-12-25 沖電気工業株式会社 Cartridge connection circuit
US6470284B1 (en) * 1999-08-05 2002-10-22 02 Micro International Limited Integrated PC card host controller for the detection and operation of a plurality of expansion cards
US7197584B2 (en) * 2001-01-26 2007-03-27 Dell Products L.P. Removable personal digital assistant in a dual personal computer/personal digital assistant computer architecture
US20030112585A1 (en) * 2001-12-13 2003-06-19 Silvester Kelan Craig Multiprocessor notebook computer with a tablet PC conversion capability
WO2005067604A2 (en) * 2004-01-05 2005-07-28 Oqo Incorporated Docking station for mobile computing device
US20090197641A1 (en) * 2008-02-06 2009-08-06 Broadcom Corporation Computing device with handheld and extended computing units
CN101359316B (en) * 2007-08-03 2010-06-30 联芯科技有限公司 Method and apparatus for implementing general-purpose serial bus USB OTG
KR101441683B1 (en) * 2007-10-05 2014-09-17 엘지전자 주식회사 Portable computer having Auxiliary IO apparatus and Method of creation of system thereof
US8117370B2 (en) * 2008-02-06 2012-02-14 Broadcom Corporation IC for handheld computing unit of a computing device
US20090198989A1 (en) * 2008-02-06 2009-08-06 Broadcom Corporation Bios for a computing device with handheld and extended computing units
US20090196280A1 (en) * 2008-02-06 2009-08-06 Broadcom Corporation Extension unit and handheld computing unit
US20100037072A1 (en) * 2008-08-06 2010-02-11 Sunman Engineering, Inc. Detachable Vehicle Computing Device
CN101847043B (en) * 2009-03-25 2012-11-21 联想(北京)有限公司 Method for sharing storage equipment and mobile terminal
TW201042466A (en) * 2009-05-28 2010-12-01 Inst Information Industry Hybrid computer systems
US8793405B2 (en) * 2009-09-29 2014-07-29 Lenovo (Beijing) Co., Ltd. Portable terminal and control method thereof, portable device and control method thereof
CN201628880U (en) * 2010-01-25 2010-11-10 张菊 Notebook computer
CN102207748B (en) * 2010-03-31 2015-03-25 联想(北京)有限公司 Electronic equipment and input method
US8909838B2 (en) * 2010-06-24 2014-12-09 Microsoft Corporation Detachable computer with variable performance computing environment
US9594711B2 (en) * 2010-12-24 2017-03-14 Lenovo (Singapore) Pte. Ltd. Systems and methods for achieving continuation of experience between components in a hybrid environment
US9507558B2 (en) * 2010-12-24 2016-11-29 Lenovo (Singapore) Pte. Ltd. Systems and methods for shared display in a hybrid environment
US8566489B2 (en) * 2010-12-24 2013-10-22 Lenovo (Singapore) Pte. Ltd. Systems and methods for sharing a wireless antenna in a hybrid environment
US8682962B2 (en) * 2010-12-24 2014-03-25 Levono (Singapore) Pte. Ltd. Systems and methods for communicating and switching between components in a hybrid computing environment
US9002925B2 (en) * 2010-12-24 2015-04-07 Lenovo (Singapore) Pte. Ltd. Systems and methods for communicating between components in a hybrid environment
CN102567103B (en) * 2010-12-27 2015-03-25 联想(北京)有限公司 Terminal and switching method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1117318A (en) * 1993-11-01 1996-02-21 艾利森.Ge.流动通讯有限公司 Multiprocessor data memory sharing
CN2672715Y (en) * 2003-11-27 2005-01-19 岳文祥 Composite portable electronic device
CN101616506A (en) * 2008-06-25 2009-12-30 英特尔公司 Technology with distributed management of the wireless device of shared resource between wireless module
CN201628885U (en) * 2010-02-03 2010-11-10 张菊 Dual-mode electronic device

Also Published As

Publication number Publication date
US20130282947A1 (en) 2013-10-24
US9588927B2 (en) 2017-03-07
CN102567238B (en) 2015-12-16
CN102567238A (en) 2012-07-11

Similar Documents

Publication Publication Date Title
WO2012079457A1 (en) Interface switching control method, and portable terminal and portable mobile device using same
CN102778943B (en) Condition control method, device and portable terminal device
US9310838B2 (en) Power management method for switching power mode of a computer system based on detection of a human interface device
EP2402863B1 (en) Wireless internet access device, SD control chip, and method for data communication
US8490177B2 (en) Apparatus and method for variable authentication requirements
US8938568B2 (en) Multi-processor electronic systems
US10831700B2 (en) Methods and apparatus for reducing power consumption within embedded systems
US8738953B2 (en) Power-saving device for universal serial bus modem apparatus and method thereof
US9141401B2 (en) Method for switching system state and portable terminal
KR20090040410A (en) Device having multiple graphics subsystems and reduced power consumption mode, software and methods
US20100241889A1 (en) Power management system and method
WO2013063972A1 (en) Communication method, communication apparatus and electronic device
JP2001242965A (en) Computer system, information processing device, and power supply system
US20120030433A1 (en) Method, Mobile Terminal and Computer Program Product for Sharing Storage Device
JP2015170292A (en) semiconductor device
US10394309B2 (en) Power gated communication controller
US20080282099A1 (en) Information processing apparatus and power saving control method
US9652254B2 (en) System status control method and portable terminal
US9087031B2 (en) Method and program for selective suspension of USB device
US9098259B1 (en) Secure digital input/output low-power mode
US9122479B2 (en) Network processor and energy saving method thereof
WO2016045363A1 (en) Method for cpu to control wifi module via hsic bus interface
WO2011088753A1 (en) Method for managing power supply of display and display
EP2904503B1 (en) Methods and apparatus for reducing power consumption within embedded systems

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: 11848209

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 13993261

Country of ref document: US

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 11848209

Country of ref document: EP

Kind code of ref document: A1