CN102981692A - Input data processing method and terminal device thereof - Google Patents
Input data processing method and terminal device thereof Download PDFInfo
- Publication number
- CN102981692A CN102981692A CN2011102611542A CN201110261154A CN102981692A CN 102981692 A CN102981692 A CN 102981692A CN 2011102611542 A CN2011102611542 A CN 2011102611542A CN 201110261154 A CN201110261154 A CN 201110261154A CN 102981692 A CN102981692 A CN 102981692A
- Authority
- CN
- China
- Prior art keywords
- state
- terminal device
- external interface
- input module
- input
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 13
- 238000001514 detection method Methods 0.000 claims description 26
- 238000000034 method Methods 0.000 claims description 19
- 230000005540 biological transmission Effects 0.000 description 7
- 238000010586 diagram Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 1
- 238000003032 molecular docking Methods 0.000 description 1
Images
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses an input data processing method and a terminal device thereof, wherein the input data processing method comprises acquisition of a state of an input module and generation of state information. When the state information indicates that the input module is in a second state, input information is sent to a second terminal device through an outer connecting port if a first terminal device is in a working condition and the input information is sent to the second terminal device through the outer connecting port if the first terminal device is not in the working condition. According to the input data processing method and the terminal device thereof, the input module of the first terminal device can be used by the second terminal device.
Description
Technical Field
The present invention relates to the field of computer technologies, and in particular, to an input data processing method and a terminal device.
Background
A tablet computer is a small and portable computer, and uses a touch screen (also called a tablet technology) as a basic input device. The tablet pc has a touch screen that allows a user to work with a stylus or a digital pen rather than a conventional keyboard or mouse.
However, if specific characters need to be input into the tablet computer, the input can be performed only by built-in handwriting recognition, a soft keyboard on a screen, and the like, and the input efficiency is low. In order to improve the input efficiency, in the prior art, a keyboard and/or a mouse can be connected to the tablet computer through the docking station, so that the collocation use is realized. That is, for a user using a tablet computer, the input of the tablet computer may be expanded using a separate keyboard and/or mouse.
On the other hand, in the process of implementing the present invention, the inventor finds that, with the popularization of the notebook computer, most users are equipped with the notebook computer, and the notebook computer is provided with input devices such as a keyboard and a mouse, and if the input devices such as the keyboard and the mouse of the notebook computer can be used by a tablet computer, the users can be prevented from being equipped with separate expansion devices, so that the input efficiency can be improved, and meanwhile, the cost can be saved. Therefore, how to make the tablet computer reuse the input devices such as the keyboard and the mouse of the notebook computer is a technical problem that needs to be solved by the technical personnel in the field.
Disclosure of Invention
The invention provides an input data processing method and terminal equipment, so that an input module of the terminal equipment can be used by other terminal equipment.
In order to achieve the purpose, the invention provides the following scheme:
an input data processing method is applied to a first terminal device, the first terminal device is provided with an input module and an external interface, the external interface is used for being connected with a second terminal device, the input module is provided with a first state and a second state different from the first state, the first state is that input information obtained from the input module is processed and responded by the first terminal device, and the second state is that the input information obtained from the input module is processed and responded by the second terminal device; the method comprises the following steps:
obtaining the state of the input module and generating state information;
when the state information shows that the input module is in the second state, if the first terminal device is in the working state, the input information is sent to the second terminal device through the external interface; and if the first terminal equipment is in a non-working state, the input information is sent to the second terminal equipment through the external interface.
Wherein the obtaining the state of the input module and generating a state information comprises:
detecting whether the external interface is connected with the second terminal equipment or not to generate a detection result
When the detection result shows that the external interface is not connected with the second terminal device, generating state information showing that the input module is in a first state;
when the detection result shows that the external interface is connected with the second terminal device and the first terminal device is in a non-working state, generating state information showing that the input module is in a second state;
when the detection result shows that the external interface is connected with the second terminal device and the first terminal device is in a working state, acquiring a first state switching event; generating state information indicating that the input module is in a second state according to the first state switching event;
the first terminal equipment further comprises a central processing unit and an embedded controller, the embedded controller is connected with the external interface through the central processing unit to form a first channel, the embedded controller is connected with the external interface to form a second channel, and the first channel is connected with the external interface through the embedded controller
When the state information indicates that the input module is in the second state, if the first terminal device is in the working state, sending the input information to the second terminal device through the external interface includes:
sending the input information to the second terminal equipment through the first path or the second path;
when the state information indicates that the input module is in the second state, if the first terminal device is in a non-working state, sending the input information to the second terminal device through the external interface includes:
and sending the input information to the second terminal equipment by the central processing unit through the second path.
The first terminal device further comprises a central processing unit, an embedded controller and a switcher, wherein the switcher is arranged between the embedded controller and the external interface and is respectively connected with the embedded controller, the central processing unit and the external interface, and the first terminal device further comprises a central processing unit, an embedded controller and a switcher, wherein the switcher is connected with the embedded controller, the central processing unit and the external interface
When the state information indicates that the input module is in the second state, if the first terminal device is in the working state, sending the input information to the second terminal device through the external interface includes:
controlling the switcher to communicate the embedded controller with the external interface to form a third passage;
sending the input information to the second terminal device through the third path;
when the state information indicates that the input module is in the second state, if the first terminal device is in a non-working state, sending the input information to the second terminal device through the external interface includes:
controlling the switcher to communicate the embedded controller with the external interface to form the third channel;
and sending the input information to the second terminal equipment through the third path.
Preferably, the method further comprises:
when the state information indicates that the input module is in the first state, controlling the switcher to communicate the embedded controller with the central processor to form a fourth path;
and sending the input information to the central processing unit through the fourth path.
Preferably, the method further comprises:
and when the input module is detected to be switched from the first state to the second state, controlling the switch to disconnect the fourth path and establish the connection of the third path.
Wherein the first state switching event comprises:
detecting the switching operation through a preset inlet when the first terminal equipment is in a working state;
or,
detecting the operation that a preset key or a combination key is pressed when the first terminal equipment is in a working state;
or,
and detecting shutdown operation when the first terminal equipment is in a working state.
A terminal device is a first terminal device, the first terminal device is provided with an input module and an external interface, the external interface is used for being connected with a second terminal device, the input module is provided with a first state and a second state different from the first state, the first state is that input information obtained from the input module is processed and responded by the first terminal device, and the second state is that the input information obtained from the input module is processed and responded by the second terminal device; the first terminal device includes:
the state information generating unit is used for acquiring the state of the input module and generating state information;
an input information sending unit, configured to send the input information to the second terminal device through the external interface if the first terminal device is in a working state when the state information indicates that the input module is in the second state; and if the first terminal equipment is in a non-working state, the input information is sent to the second terminal equipment through the external interface.
Wherein the state information generating unit includes:
a detection subunit, configured to detect whether the external interface is connected to the second terminal device, and generate a detection result
The first state information generating subunit is configured to generate state information indicating that the input module is in the first state when the detection result indicates that the external interface is not connected to the second terminal device;
the second state information generating subunit is configured to generate state information indicating that the input module is in the second state when the detection result indicates that the external interface is connected to the second terminal device and the first terminal device is in the non-operating state;
a third state information generating subunit, configured to, when the detection result indicates that the external interface is connected to the second terminal device and the first terminal device is in a working state, obtain a first state switching event; generating state information indicating that the input module is in a second state according to the first state switching event;
the first terminal equipment further comprises a central processing unit and an embedded controller, the embedded controller is connected with the external interface through the central processing unit to form a first channel, the embedded controller is connected with the external interface to form a second channel, and the first channel is connected with the external interface through the embedded controller
The input information sending unit is specifically configured to, when the state information indicates that the input module is in the second state, send the input information to the second terminal device through the first path or the second path if the first terminal device is in the working state; and if the first terminal equipment is in a non-working state, the central processing unit sends the input information to the second terminal equipment through the second path.
The first terminal device further comprises a central processing unit, an embedded controller and a switcher, wherein the switcher is arranged between the embedded controller and the external interface and is respectively connected with the embedded controller, the central processing unit and the external interface, and the first terminal device further comprises a central processing unit, an embedded controller and a switcher, wherein the switcher is connected with the embedded controller, the central processing unit and the external interface
The input information sending unit is specifically configured to:
when the state information shows that the input module is in the second state, if the first terminal device is in the working state, the switcher is controlled to communicate the embedded controller with the external interface to form a third channel, and the input information is sent to the second terminal device through the third channel;
when the state information indicates that the input module is in the second state, if the first terminal device is in a non-working state, the switcher is controlled to communicate the embedded controller with the external interface to form a third channel, and the input information is sent to the second terminal device through the third channel.
Preferably, the first terminal device further includes:
the first switching unit is used for controlling the switcher to communicate the embedded controller with the central processing unit to form a fourth path when the state information indicates that the input module is in the first state;
and the sending unit is used for sending the input information to the central processing unit through the fourth path.
Preferably, the first terminal device further includes:
and the second switching unit is used for controlling the switch to disconnect the fourth channel and establish the connection of the third channel when the input module is detected to be switched from the first state to the second state.
According to the specific embodiment provided by the invention, the invention discloses the following technical effects:
in the embodiment of the invention, the input module of the first terminal equipment can be used by the second terminal no matter the first terminal equipment is in the working state or the non-working state. In other words, the input module has two modes corresponding to the first state and the second state of the input module, one mode is a conventional mode, and the other mode is a sharing mode. In the sharing mode, the input information obtained from the input module may be handed to the second terminal device for processing. Therefore, the input module of the first terminal equipment can be used by the second terminal equipment through the invention.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
FIG. 1 is a flow chart of a method provided by an embodiment of the present invention;
FIG. 2 is a flowchart of a method for obtaining a current status of an input module according to an embodiment of the present invention;
FIG. 3 is a diagram of a hardware configuration according to an embodiment of the present invention;
FIG. 4 is a diagram of another hardware configuration in an embodiment of the invention;
fig. 5 is a schematic diagram of a terminal device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present invention.
First, an embodiment of the present invention provides an input data processing method, which is applied to a first terminal device (e.g., a notebook computer, etc.), where the terminal device has an input module (e.g., a keyboard, a mouse, etc.) and an external interface (e.g., an external interface of a wired transmission module, such as a USB, etc., or an external interface of a wireless transmission module, such as a bluetooth, etc.). In the embodiment of the present invention, the input module has a first state and a second state different from the first state, where the first state is a state in which the input information obtained from the input module is processed and responded by the first terminal device, and the second state is a state in which the input information obtained from the input module is processed and responded by the second terminal device (e.g., a tablet computer, etc.). That is, the first terminal device is a device with an input module such as a keyboard (the input module is a part of the first terminal device, for example, a keyboard of a notebook), and the second terminal device is usually a device without a keyboard, and the input of information is realized through a touch screen. In the embodiment of the present invention, the input module as a part of the first terminal device may also be used by the second terminal device, so that if a user has both the first terminal device and the second terminal device, the extended input to the second terminal device can be realized without separately configuring other external input devices for the second terminal device. Specific implementations are described in detail below.
Referring to fig. 1, an input data processing method provided in an embodiment of the present invention includes the following steps:
s101: obtaining the state of the input module and generating state information;
s102: when the state information shows that the input module is in the second state, if the first terminal device is in the working state, the input information is sent to the second terminal device through the external interface; and if the first terminal equipment is in a non-working state, the input information is sent to the second terminal equipment through the external interface.
That is, in the embodiment of the present invention, the input module of the first terminal device can be used by the second terminal device regardless of whether the first terminal device is in the operating state or the non-operating state. In other words, the input module has two modes corresponding to the first state and the second state of the input module, one mode is a conventional mode, and the other mode is a sharing mode. In specific implementation, it may be determined whether the input information obtained from the input module should be handed to the first terminal device for processing or handed to the second terminal device for processing by determining which state the input module is currently in. Therefore, the input module of the first terminal equipment can be used by the second terminal equipment through the invention.
Referring to fig. 2, the current state of the input module may be obtained as follows:
s201: detecting whether an external interface of a first terminal device is connected with a second terminal device (including being connected with the second terminal device in a wired mode or being successfully paired with the second terminal device in a wireless mode), generating a detection result, entering a step S202 when the detection result shows that the external interface is not connected with the second terminal device, and entering a step S203 when the detection result shows that the external interface is connected with the second terminal device.
S202: generating state information indicating that the input module is in a first state; at this time, after the input information is acquired from the input module, the input information is directly handed to the first terminal device for processing.
S203: and judging whether the first terminal device is in a working state or a non-working state currently, if the first terminal device is in the working state currently, entering the step S204, and if the first terminal device is in the non-working state currently, entering the step S205.
S204: and acquiring a state switching event, generating state information indicating that the input module is in a second state when the state switching event is detected, and then sending the input information acquired from the input module to second terminal equipment for processing through an external interface. That is, if the first terminal device is in the operating state and is connected to the second terminal device through the external interface, the input module does not directly enter the second state, but remains in the first state, and before the state switching event is detected, the input information obtained from the input module is still given to the first terminal device for processing, and until the state switching event is detected, the input module will not enter the second state.
The state switching event may include a plurality of specific events, for example, a switching entry may be provided by software, and when an operation of switching by a user is detected (for example, by clicking a certain icon, clicking a "switching" button in a pop-up dialog box, and the like), the state switching event may be considered to be generated. Alternatively, a key or a combination key may be provided in advance, and when it is detected that the key or the combination key is pressed, it may be considered that a state switching event has occurred. In addition, the shutdown operation may also be regarded as a state switching event, that is, after the first terminal device is shutdown, the first terminal device does not need to acquire the input information from the input module, so that the input module may be switched to the second state at this time, and when the input information is acquired from the input module, the input information may be transmitted to the second terminal device through the external interface.
S205: and directly generating state information indicating that the input module is in the second state, and then sending the input information obtained from the input module to the second terminal equipment for processing through the external interface. That is, if the first terminal device is in the non-operating state and is connected to the second terminal device through the external interface of the first terminal device, the first terminal device does not need to process the input information obtained from the input module, and therefore the state information indicating that the input module is in the second state can be directly generated, and the input information obtained from the input module can be transmitted to the second terminal device through the external interface.
When the input module is in the second state, if the first terminal device is in the working state, the EC may send the input information to the second terminal device through the external interface through the CPU (at this time, the EC forms a first path with the external interface through the CPU, which is equivalent to sending the input information to the second terminal device through the first path), or the EC may directly send the input information to the second terminal device through the external interface (at this time, a second path is formed between the EC and the external interface, which is equivalent to sending the input information to the second terminal device through the second path); if the first terminal device is in the non-working state, the EC sends the input information to the second terminal device through the external interface (at this time, the input information is also sent to the second terminal device through the second channel).
That is, if the first terminal device is in the working state, the EC may directly send the input information to the second terminal device through the external interface, or the EC may send the input information to the second terminal device through the external interface through the relay of the CPU; and if the first terminal device is in a non-working state, the CPU cannot run, so that the data transmission cannot be realized, and at the moment, the input information can be directly transmitted to the second terminal device through the external interface through the EC. In other words, if the EC directly sends the input information to the second terminal device through the external interface, the first terminal device can be implemented whether in the working state or the non-working state; and if the input information is transmitted to the second terminal equipment through the external interface only through the transfer of the CPU, the input information can be transmitted only when the first terminal equipment is in a working state.
It should be noted that, since the external interface is usually connected to the south bridge of the first terminal device by default, the first path exists in the conventional first terminal device; the second path does not exist in the conventional first terminal device, and therefore, the second path can be established through hardware improvement. That is, the EC may be connected to the external interface such that the EC has access to the external interface.
In the embodiment of the present invention, the CPU is also configured to send the input information in the operating state of the first terminal device, so that the CPU can send the input information to the second terminal device through the external interface as long as it is detected that the input module is currently in the second state.
For the implementation of directly transmitting the input information to the second terminal device through the external interface through the EC, first, the EC is briefly introduced for understanding. In a particular group of systems, the control devices that are added to a fixed location to accomplish a certain task are called ECs. In a computer system, an EC is an 8-bit 8051 singlechip. In the running process of the computer, the EC acquires the information input from the input module and then delivers the information to the CPU for processing; the EC itself has a processor that can process instructions and can operate even if it is not powered on (i.e., the computer is not in an operating state) as long as the computer is connected to a power supply. That is, for the first terminal device, the EC may acquire the information input from the input module and execute a specific instruction regardless of whether it is in the power-on or power-off state.
Therefore, in the embodiment of the present invention, after the input module is detected to be in the second state, the EC may send the input information obtained from the input module to the second terminal device through the external interface. It should be noted that, when the external interface is an interface of a wireless transmission module (e.g., bluetooth, etc.), in order to enable the EC to send the input information to the second terminal device through the bluetooth module, some hardware improvements need to be performed on the first terminal device. This is because, as described above, in the conventional computer system, the bluetooth module is connected to the south bridge, and only the CPU has the right to use the bluetooth module, and in order to enable the EC to obtain the right to use the bluetooth module, the bluetooth module needs to be connected to the EC, so that the EC can transmit the input information to the second terminal device through the bluetooth module.
Of course, in order to ensure the normal operation of the first terminal device when the input module is in the first state, the first path and the second path may coexist, that is, at the same time, the external interface is connected to both the south bridge and the EC. For example, as shown in fig. 3, 301 is a keyboard (i.e., a concrete representation of an input module), 302 is an EC, 303 is a CPU, and 304 is an external interface. It can be seen that the external interface 304 is connected to both the CPU 303 and the EC 302, and therefore, a first path 305 can be formed through the EC 302, the CPU 303 and the external interface 304, and a second path 306 can be formed through the EC 302 and the external interface 304, and these two paths can coexist.
Alternatively, in another embodiment, a switch may be added to the first terminal device, the switch is disposed between the EC and the external interface, and the switch is connected to the EC, the CPU and the external interface, respectively, and by operating the switch, the bluetooth module may be connected to the south bridge of the CPU or the EC, that is, the usage right of the external interface may be switched between the CPU and the EC.
For example, in a specific implementation, when the first terminal device is in an operating state and the input module is in a first state, when a state switching request is received through the software entry, or a specified key or a combination key is pressed, or it is detected that a user performs a power-off operation, the switch may be triggered while state information indicating that the input module is in a second state is generated (that is, the input module is switched from the first state to the second state), and the bluetooth module is connected to the EC, that is, the switch is controlled to communicate the EC with the external interface to form a third path, so that the EC obtains a right to use the bluetooth module, and sends the input information to the second terminal device through the third path. Of course, if a state switching request is received again from the software portal, or a designated key or combination key is pressed, or a power-on operation is detected to be performed on the first terminal device, the switch is triggered to connect the bluetooth module to the south bridge while generating state information indicating that the input module is in the first state (i.e., to switch the input module back to the first state), so that the CPU regains the right to use the bluetooth module. Currently, if it is detected again that the input module is switched from the first state to the second state, the control switch disconnects the fourth path and establishes the connection of the third path.
As shown in fig. 4, 401 is a keyboard, 402 is an EC, 403 is a CPU, 404 is an external interface (e.g., a bluetooth module), and 405 is a switch. When the switch 405 is switched to the EC 402, a third path 407 is formed between the EC 402 and the external interface 404, and when the switch 405 is switched to the CPU 403, a fourth path is formed between the EC 402, the CPU 403, and the external interface 404.
In other words, in the implementation manner in which the EC sends the input information to the second terminal device through the interface of the wireless transmission module, in order to avoid affecting the normal operation of the first terminal device, after the first terminal device is powered on, the input module is defaulted to be in the first state, and the wireless transmission module is also defaulted to be connected to the south bridge. When the first terminal is powered off, the wireless transmission module can be directly connected to the EC, so that the input module can be used by the second terminal device in a non-working state.
Corresponding to the input data processing method provided by the embodiment of the present invention, the embodiment of the present invention further provides a terminal device, and for convenience of description, the terminal device is referred to as a first terminal device, the first terminal device has an input module and an external interface, the external interface is used for connecting with a second terminal device, the input module has a first state and a second state different from the first state, the first state is that input information obtained from the input module is processed and responded by the first terminal device, and the second state is that input information obtained from the input module is processed and responded by the second terminal device; referring to fig. 5, the first terminal device includes:
a state information generating unit 501, configured to obtain a state of the input module and generate state information;
an input information sending unit 502, configured to send the input information to the second terminal device through the external interface if the first terminal device is in a working state when the state information indicates that the input module is in the second state; and if the first terminal equipment is in a non-working state, the input information is sent to the second terminal equipment through the external interface.
The state information generating unit 501 may specifically include:
a detection subunit, configured to detect whether the external interface is connected to the second terminal device, and generate a detection result
The first state information generating subunit is configured to generate state information indicating that the input module is in the first state when the detection result indicates that the external interface is not connected to the second terminal device;
the second state information generating subunit is configured to generate state information indicating that the input module is in the second state when the detection result indicates that the external interface is connected to the second terminal device and the first terminal device is in the non-operating state;
a third state information generating subunit, configured to, when the detection result indicates that the external interface is connected to the second terminal device and the first terminal device is in a working state, obtain a first state switching event; generating state information indicating that the input module is in a second state according to the first state switching event;
when the first terminal equipment is specifically implemented, the first terminal equipment further comprises a central processing unit and an embedded controller, the embedded controller is connected with the external interface through the central processing unit to form a first channel, the embedded controller is connected with the external interface to form a second channel, and the first channel is connected with the external interface through the embedded controller
The input information sending unit 502 may be specifically configured to, when the state information indicates that the input module is in the second state, send the input information to the second terminal device through the first path or the second path if the first terminal device is in the working state; and if the first terminal equipment is in a non-working state, the central processing unit sends the input information to the second terminal equipment through the second path.
In another implementation manner, the first terminal device further includes a central processing unit, an embedded controller, and a switch, the switch is disposed between the embedded controller and the external interface, and the switch is respectively connected to the embedded controller, the central processing unit, and the external interface, wherein the switch is connected to the embedded controller, the central processing unit, and the external interface
The input information sending unit 502 may specifically be configured to:
when the state information shows that the input module is in the second state, if the first terminal device is in the working state, the switcher is controlled to communicate the embedded controller with the external interface to form a third channel, and the input information is sent to the second terminal device through the third channel;
when the state information indicates that the input module is in the second state, if the first terminal device is in a non-working state, the switcher is controlled to communicate the embedded controller with the external interface to form a third channel, and the input information is sent to the second terminal device through the third channel.
In practical applications, the first terminal device may further include:
the first switching unit is used for controlling the switcher to communicate the embedded controller with the central processing unit to form a fourth path when the state information indicates that the input module is in the first state;
and the sending unit is used for sending the input information to the central processing unit through the fourth path.
In addition, the first terminal device may further include:
and the second switching unit is used for controlling the switch to disconnect the fourth channel and establish the connection of the third channel when the input module is detected to be switched from the first state to the second state.
In the embodiment of the invention, the input module of the first terminal equipment can be used by the second terminal no matter the first terminal equipment is in the working state or the non-working state. In other words, the input module has two modes corresponding to the first state and the second state of the input module, one mode is a conventional mode, and the other mode is a sharing mode. In the sharing mode, the input information obtained from the input module may be handed to the second terminal device for processing. Therefore, the input module of the first terminal equipment can be used by the second terminal equipment through the invention.
It should be noted that the embodiment of the terminal device corresponds to the foregoing method embodiment, and therefore, for parts that are not described in detail in the embodiment of the terminal device, reference may be made to the description in the method embodiment, and details are not described here.
The input data processing method and the terminal device provided by the present invention are introduced in detail, and a specific example is applied in the text to explain the principle and the implementation of the present invention, and the description of the above embodiment is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, the specific embodiments and the application range may be changed. In view of the above, the present disclosure should not be construed as limiting the invention.
Claims (13)
1. An input data processing method is applied to a first terminal device, the first terminal device is provided with an input module and an external interface, the external interface is used for being connected with a second terminal device, the input module is provided with a first state and a second state different from the first state, the first state is that input information obtained from the input module is processed and responded by the first terminal device, and the second state is that the input information obtained from the input module is processed and responded by the second terminal device; the method comprises the following steps:
obtaining the state of the input module and generating state information;
when the state information shows that the input module is in the second state, if the first terminal device is in the working state, the input information is sent to the second terminal device through the external interface; and if the first terminal equipment is in a non-working state, the input information is sent to the second terminal equipment through the external interface.
2. The method of claim 1, the obtaining the state of the input module, generating a state information comprising:
detecting whether the external interface is connected with the second terminal equipment or not to generate a detection result
When the detection result shows that the external interface is not connected with the second terminal device, generating state information showing that the input module is in a first state;
when the detection result shows that the external interface is connected with the second terminal device and the first terminal device is in a non-working state, generating state information showing that the input module is in a second state;
when the detection result shows that the external interface is connected with the second terminal device and the first terminal device is in a working state, acquiring a first state switching event; generating state information indicating that the input module is in a second state according to the first state switching event;
3. the method of claim 1, wherein the first terminal device further comprises a central processing unit, an embedded controller, the embedded controller is connected with the external interface through the central processing unit to form a first path, the embedded controller is connected with the external interface to form a second path, and wherein the first path is connected with the external interface through the embedded controller
When the state information indicates that the input module is in the second state, if the first terminal device is in the working state, sending the input information to the second terminal device through the external interface includes:
sending the input information to the second terminal equipment through the first path or the second path;
when the state information indicates that the input module is in the second state, if the first terminal device is in a non-working state, sending the input information to the second terminal device through the external interface includes:
and sending the input information to the second terminal equipment by the central processing unit through the second path.
4. The method of claim 1, wherein the first terminal device further comprises a central processing unit, an embedded controller, and a switch disposed between the embedded controller and the external interface, the switch being connected to the embedded controller, the central processing unit, and the external interface, respectively, wherein
When the state information indicates that the input module is in the second state, if the first terminal device is in the working state, sending the input information to the second terminal device through the external interface includes:
controlling the switcher to communicate the embedded controller with the external interface to form a third passage;
sending the input information to the second terminal device through the third path;
when the state information indicates that the input module is in the second state, if the first terminal device is in a non-working state, sending the input information to the second terminal device through the external interface includes:
controlling the switcher to communicate the embedded controller with the external interface to form the third channel;
and sending the input information to the second terminal equipment through the third path.
5. The method of claim 4, further comprising:
when the state information indicates that the input module is in the first state, controlling the switcher to communicate the embedded controller with the central processor to form a fourth path;
and sending the input information to the central processing unit through the fourth path.
6. The method of claim 5, further comprising:
and when the input module is detected to be switched from the first state to the second state, controlling the switch to disconnect the fourth path and establish the connection of the third path.
7. The method of claim 2, the first state switching event comprising:
detecting the switching operation through a preset inlet when the first terminal equipment is in a working state;
or,
detecting the operation that a preset key or a combination key is pressed when the first terminal equipment is in a working state;
or,
and detecting shutdown operation when the first terminal equipment is in a working state.
8. A terminal device is a first terminal device, the first terminal device is provided with an input module and an external interface, the external interface is used for being connected with a second terminal device, the input module is provided with a first state and a second state different from the first state, the first state is that input information obtained from the input module is processed and responded by the first terminal device, and the second state is that the input information obtained from the input module is processed and responded by the second terminal device; the first terminal device includes:
the state information generating unit is used for acquiring the state of the input module and generating state information;
an input information sending unit, configured to send the input information to the second terminal device through the external interface if the first terminal device is in a working state when the state information indicates that the input module is in the second state; and if the first terminal equipment is in a non-working state, the input information is sent to the second terminal equipment through the external interface.
9. The terminal device according to claim 8, wherein the state information generating unit includes:
a detection subunit, configured to detect whether the external interface is connected to the second terminal device, and generate a detection result
The first state information generating subunit is configured to generate state information indicating that the input module is in the first state when the detection result indicates that the external interface is not connected to the second terminal device;
the second state information generating subunit is configured to generate state information indicating that the input module is in the second state when the detection result indicates that the external interface is connected to the second terminal device and the first terminal device is in the non-operating state;
a third state information generating subunit, configured to, when the detection result indicates that the external interface is connected to the second terminal device and the first terminal device is in a working state, obtain a first state switching event; generating state information indicating that the input module is in a second state according to the first state switching event;
10. the terminal device according to claim 8, wherein the first terminal device further comprises a central processing unit, an embedded controller, the embedded controller is connected with the external interface through the central processing unit to form a first path, the embedded controller is connected with the external interface to form a second path, and wherein
The input information sending unit is specifically configured to, when the state information indicates that the input module is in the second state, send the input information to the second terminal device through the first path or the second path if the first terminal device is in the working state; and if the first terminal equipment is in a non-working state, the central processing unit sends the input information to the second terminal equipment through the second path.
11. The terminal device according to claim 8, wherein the first terminal device further comprises a central processing unit, an embedded controller, and a switch disposed between the embedded controller and the external interface, the switch being connected to the embedded controller, the central processing unit, and the external interface, respectively, wherein
The input information sending unit is specifically configured to:
when the state information shows that the input module is in the second state, if the first terminal device is in the working state, the switcher is controlled to communicate the embedded controller with the external interface to form a third channel, and the input information is sent to the second terminal device through the third channel;
when the state information indicates that the input module is in the second state, if the first terminal device is in a non-working state, the switcher is controlled to communicate the embedded controller with the external interface to form a third channel, and the input information is sent to the second terminal device through the third channel.
12. The terminal device of claim 11, the first terminal device further comprising:
the first switching unit is used for controlling the switcher to communicate the embedded controller with the central processing unit to form a fourth path when the state information indicates that the input module is in the first state;
and the sending unit is used for sending the input information to the central processing unit through the fourth path.
13. The terminal device of claim 12, the first terminal device further comprising:
and the second switching unit is used for controlling the switch to disconnect the fourth channel and establish the connection of the third channel when the input module is detected to be switched from the first state to the second state.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011102611542A CN102981692A (en) | 2011-09-05 | 2011-09-05 | Input data processing method and terminal device thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011102611542A CN102981692A (en) | 2011-09-05 | 2011-09-05 | Input data processing method and terminal device thereof |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102981692A true CN102981692A (en) | 2013-03-20 |
Family
ID=47855794
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2011102611542A Pending CN102981692A (en) | 2011-09-05 | 2011-09-05 | Input data processing method and terminal device thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102981692A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104932854A (en) * | 2015-06-12 | 2015-09-23 | 联想(北京)有限公司 | Information processing method and electronic equipment |
CN106897237A (en) * | 2017-01-22 | 2017-06-27 | 硅谷数模半导体(北京)有限公司 | The method and apparatus switched by BIOS controlling bus equipment |
CN110262744A (en) * | 2019-05-20 | 2019-09-20 | 广州视源电子科技股份有限公司 | Switching method of touch device, terminal equipment and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1369762A (en) * | 2001-02-12 | 2002-09-18 | 民生科技股份有限公司 | Dual-purpose computer keyboard and method for automatically detecting interface state |
CN2512025Y (en) * | 2001-11-21 | 2002-09-18 | 宏景科技股份有限公司 | Two-way keyboard for personal computer and digital processor |
CN1652551A (en) * | 2005-02-17 | 2005-08-10 | 上海中策工贸有限公司 | External device for cell phone keyboard |
CN101017395A (en) * | 2006-02-10 | 2007-08-15 | 联想(北京)有限公司 | Small keyboard and portable equipment |
CN101770435A (en) * | 2009-01-05 | 2010-07-07 | 联想(北京)有限公司 | Data processing equipment and data processing method |
US20100318715A1 (en) * | 2009-06-10 | 2010-12-16 | Timothy Young | Method for sensing and auto switching between two usb input ports to a single port on the pda |
-
2011
- 2011-09-05 CN CN2011102611542A patent/CN102981692A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1369762A (en) * | 2001-02-12 | 2002-09-18 | 民生科技股份有限公司 | Dual-purpose computer keyboard and method for automatically detecting interface state |
CN2512025Y (en) * | 2001-11-21 | 2002-09-18 | 宏景科技股份有限公司 | Two-way keyboard for personal computer and digital processor |
CN1652551A (en) * | 2005-02-17 | 2005-08-10 | 上海中策工贸有限公司 | External device for cell phone keyboard |
CN101017395A (en) * | 2006-02-10 | 2007-08-15 | 联想(北京)有限公司 | Small keyboard and portable equipment |
CN101770435A (en) * | 2009-01-05 | 2010-07-07 | 联想(北京)有限公司 | Data processing equipment and data processing method |
US20100318715A1 (en) * | 2009-06-10 | 2010-12-16 | Timothy Young | Method for sensing and auto switching between two usb input ports to a single port on the pda |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104932854A (en) * | 2015-06-12 | 2015-09-23 | 联想(北京)有限公司 | Information processing method and electronic equipment |
CN104932854B (en) * | 2015-06-12 | 2018-07-06 | 联想(北京)有限公司 | A kind of information processing method and electronic equipment |
CN106897237A (en) * | 2017-01-22 | 2017-06-27 | 硅谷数模半导体(北京)有限公司 | The method and apparatus switched by BIOS controlling bus equipment |
CN110262744A (en) * | 2019-05-20 | 2019-09-20 | 广州视源电子科技股份有限公司 | Switching method of touch device, terminal equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8417971B2 (en) | Data processing device and data processing method | |
TWI544337B (en) | Dual-operating-system architecture for sharing usb devices, and method for sharing usb devices in a dual-operating-system architecture | |
CN107835033B (en) | Antenna tuning switch control method and device, terminal equipment and storage medium | |
US9658748B2 (en) | System and method of managing states of computer screen and controlling mobile communication terminal | |
CN101937345B (en) | Computer and computing system | |
CN106776385B (en) | Log log information transmission method and device and terminal | |
CN106657251A (en) | A data synchronization method and device | |
CN106484555A (en) | Abnormal detection and recovery method and mobile terminal | |
JP2012160917A (en) | Communication device and communication method | |
CN102778943A (en) | State control method and device and portable terminal | |
CN105138239A (en) | Application operation method, device and terminal equipment | |
CN107506251B (en) | Method and device for resetting intelligent equipment | |
CN106055947A (en) | Method, device and mobile terminal for unlocking mobile terminal by fingerprint | |
CN106250014A (en) | Application recommended method and device | |
CN101661304B (en) | Computer and input equipment sharing method thereof | |
CN106791084A (en) | Synchronization method of personalized parameters and mobile terminal | |
CN105933944A (en) | Optimized use method, device and mobile terminal of 4G network | |
WO2014176901A1 (en) | Method, device and storage medium for starting application in electronic apparatus | |
CN105807891A (en) | Screen control method, device and electronic equipment | |
US20140325449A1 (en) | Method, device and storage medium for starting application in electronic apparatus | |
CN106445721A (en) | Watchdog fault-tolerant processing method and mobile terminal | |
CN104680089B (en) | A kind of electronic equipment and system switching method | |
CN102981692A (en) | Input data processing method and terminal device thereof | |
CN106339862A (en) | Information processing method and mobile terminal | |
CN105792299A (en) | Optimal use method, device and mobile terminal of 3G network |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20130320 |