CN110262985B - Processing method and electronic equipment - Google Patents

Processing method and electronic equipment Download PDF

Info

Publication number
CN110262985B
CN110262985B CN201910561713.8A CN201910561713A CN110262985B CN 110262985 B CN110262985 B CN 110262985B CN 201910561713 A CN201910561713 A CN 201910561713A CN 110262985 B CN110262985 B CN 110262985B
Authority
CN
China
Prior art keywords
electronic device
interface
instruction
processor
input device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910561713.8A
Other languages
Chinese (zh)
Other versions
CN110262985A (en
Inventor
班学历
肖启华
莫志坚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201910561713.8A priority Critical patent/CN110262985B/en
Publication of CN110262985A publication Critical patent/CN110262985A/en
Application granted granted Critical
Publication of CN110262985B publication Critical patent/CN110262985B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/10Program control for peripheral devices
    • 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/4022Coupling between buses using switching circuits, e.g. switching matrix, connection or expansion network

Landscapes

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

Abstract

The application provides a processing method and electronic equipment, after receiving a first instruction, based on at least the first instruction, the input device of the first electronic equipment and the second electronic equipment are electrically connected through the interface, so that a signal received by the input device of the first electronic equipment is transmitted to the second electronic equipment, wherein the first instruction comprises information representing that the second electronic equipment is connected with the interface used for connecting external equipment in the first electronic equipment. Therefore, the purpose that the input device based on the first electronic equipment directly operates the second electronic equipment is achieved, and compared with the prior art that only the second electronic equipment is taken as a hard disk, a data interaction mode between the second electronic equipment and the input device of the first electronic equipment is increased.

Description

Processing method and electronic equipment
Technical Field
The present application relates to the field of electronic devices, and more particularly, to a processing method and an electronic device.
Background
The electronic device can be connected with an external device, for example, a notebook can be connected with a mobile phone or a tablet; after the external device is connected with the electronic device, the external device can be used as a hard disk of the electronic device, and the electronic device can view data stored in the external device.
The data interaction between the external equipment and the electronic equipment is single.
Disclosure of Invention
In view of the above, the present application provides a processing method and an electronic device.
In order to achieve the above purpose, the present application provides the following technical solutions:
in a first aspect, a processing method is applied to a first electronic device, and the processing method includes:
receiving a first instruction, wherein the first instruction comprises information for representing connection between second electronic equipment and an interface used for connecting external equipment in the first electronic equipment;
and electrically connecting the input device of the first electronic equipment and the second electronic equipment through the interface at least based on a first instruction so as to transmit the signal received by the input device of the first electronic equipment to the second electronic equipment.
In a second aspect, a first electronic device, comprises:
an interface for connecting an external device;
input means for receiving a signal;
a processor to:
receiving a first instruction, wherein the first instruction comprises information for representing connection between second electronic equipment and an interface used for connecting external equipment in the first electronic equipment;
and electrically connecting the input device of the first electronic equipment and the second electronic equipment through the interface at least based on a first instruction so as to transmit the signal received by the input device of the first electronic equipment to the second electronic equipment.
According to the technical scheme, after the first instruction is received, the input device of the first electronic device and the second electronic device are electrically connected through the interface at least based on the first instruction, so that the signal received by the input device of the first electronic device is transmitted to the second electronic device, wherein the first instruction includes information representing that the second electronic device is connected with the interface, used for connecting the external device, of the first electronic device. Therefore, the purpose that the input device based on the first electronic equipment directly operates the second electronic equipment is achieved, and compared with the prior art that only the second electronic equipment is taken as a hard disk, a data interaction mode between the second electronic equipment and the input device of the first electronic equipment is increased.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on the provided drawings without creative efforts.
Fig. 1 is a schematic diagram of an interface displayed on a display screen of a smart phone being the same as an interface displayed on a display screen of a notebook computer;
FIG. 2 is a flow chart of a processing method provided by an embodiment of the present application;
3a-3b are schematic diagrams illustrating the interface displayed on the display screen of the smart phone being asynchronous with the interface displayed on the display screen of the notebook computer;
4a-4c are schematic diagrams illustrating a process by which a user's misoperation causes a display screen of a smart phone to display a shopping interface;
FIGS. 5a-5b are schematic circuit diagrams of a first electronic device;
fig. 6 is a block diagram of a hardware structure of a first electronic device according to an embodiment of the present disclosure;
fig. 7 is a schematic diagram of another circuit structure of the first electronic device.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Electronic devices, such as PCs (personal computers), notebooks, and desktop computers, have interfaces for connecting external devices. The electronic device may be connected to an external device via an interface, for example a notebook may be connected to a smartphone or tablet.
At present, after an external device is connected to an electronic device, if the external device is to be controlled through an input device of the electronic device, two methods are mainly included: firstly, the external device can be used as a hard disk of the electronic device, that is, if the external device is connected with the electronic device, a display included in the electronic device can display data stored in the external device, and the electronic device can be controlled by an input device of the electronic device, so that the purpose of viewing the data stored in the external device through a display screen of the electronic device is achieved; secondly, the external device can project the operation interface displayed by the display screen of the external device to the display screen of the electronic device, the operation interface of the external device displayed on the display screen of the electronic device can be controlled by the input device of the electronic device, for example, the electronic device may obtain a click operation of the input device on a display screen of the electronic device, and based on the click operation, the electronic device may obtain an instruction corresponding to the click operation and representing the user's intention, and sends the instruction to the external device, the external device responds to the instruction and displays the corresponding operation interface, and the information of the operation interface corresponding to the instruction is sent to the electronic equipment, and the display screen of the electronic equipment displays the operation interface corresponding to the instruction, thereby realizing the purpose of operating the external equipment through the electronic equipment, in this case, if the external device has a display screen, the display screen of the external device is synchronized with the display screen of the electronic device. Taking the example that the external device is a smart phone and the electronic device is a notebook computer, referring to fig. 1, if the smart phone is projected to the notebook computer, the interface displayed by the display screen of the notebook computer is the same as the interface displayed by the display screen of the smart phone.
In summary, in both of the above-mentioned methods, the electronic device itself is operated by the input device to interact with the external device, and the external device is not directly operated by the input device.
In summary, there is no technology for directly transmitting the signal received by the input device to the external device to operate the external device, so that the data interaction manner between the external device and the electronic device is single.
The application provides a processing method and a first electronic device to solve the problems. The following is a description of the processing method provided in the embodiments of the present application.
Referring to fig. 2, a flowchart of a processing method provided in the embodiment of the present application is shown, where the method specifically includes:
step S100, receiving a first instruction, wherein the first instruction comprises information for representing connection between a second electronic device and an interface used for connecting an external device in the first electronic device.
In an alternative embodiment, the first electronic device may be an electronic device such as a desktop computer, a mobile terminal (e.g., a smart phone), an ipad, or the like.
In an alternative embodiment, the second electronic device may be an electronic device such as a desktop computer, a mobile terminal (e.g., a smartphone), an ipad, or the like.
In an alternative embodiment, the interface may be a Type C interface or a USB interface, and the embodiment of the present application does not limit the Type of the interface.
In an alternative embodiment, if the second electronic device is connected to the interface of the first electronic device, a first instruction may be obtained that characterizes information that the second electronic device is connected to the interface.
In an alternative embodiment, if the first electronic device includes a plurality of interfaces, the interface connected to the second electronic device may be specifically which interface is obtained through the first instruction.
For example, if the second electronic device is a smart phone and the first electronic device is a notebook computer, if the smart phone is connected to the Type C interface of the notebook computer, the information that the smart phone is connected to the Type C interface of the notebook computer can be obtained through the first instruction.
In an alternative embodiment, in the embodiment of the present application, an interface may be separately set up in the first electronic device, that is, the interface is only used for being connected to a second electronic device that needs to be directly controlled by the input device of the first electronic device, that is, after the second electronic device is connected to the first electronic device through the interface, it is considered that the second electronic device needs to be directly controlled by the input device of the first electronic device.
Step S110, based on at least a first instruction, electrically connecting the input device of the first electronic device and the second electronic device through the interface, so that a signal received by the input device of the first electronic device is transmitted to the second electronic device.
In an optional embodiment, if the input device of the first electronic device is electrically connected to the second electronic device through the interface, if the user operates the input device, for example, performs a click operation, then if the input device can obtain a corresponding click signal based on the click operation, for example, the user clicks a "K" key in the keyboard, the keyboard can obtain a signal corresponding to the "K" key, and the obtained click signal can be transmitted to the second electronic device, so as to implement control of the second electronic device by the input device.
In an alternative embodiment, the input device includes, but is not limited to, at least one of the following: keyboard, touch pad and mouse.
In an optional embodiment, the second electronic device may include a display screen itself, or the second electronic device may further be externally connected to the display screen, in this embodiment of the application, the input device of the first electronic device may operate the second electronic device, the second electronic device may respond to the corresponding signal, and the user may view an operation result for the second electronic device through the display screen included in the second electronic device itself or the externally connected display screen.
Taking the first electronic device as a notebook computer and the second electronic device as a smart phone as an example, if the smart phone is connected to an interface of the notebook computer, the keyboard of the notebook computer may be electrically connected to the smart phone through the interface, for example, as shown in fig. 3a-3b, the keyboard of the notebook computer is directly connected to the smart phone; if the user wants to check the amplified photos in the gallery of the smart phone, the user can click corresponding keys in a keyboard of the notebook computer, and the keyboard sends a signal A corresponding to the operation of touching the keys by the user to the smart phone; so that the smartphone can respond based on signal a to perform the corresponding operation. For example, as shown in fig. 3b, the smartphone magnifies the first picture taken on day 25/6 in the library in response to signal a.
In the process, the interface displayed by the display screen of the smart phone is not related to the interface displayed by the display screen of the notebook computer.
For another example, if the second electronic device is a smart phone including a touch screen, the user may be browsing images on a web page, and if an advertisement suddenly appears on the web page, for example, "you can click to buy" shown in fig. 4 a; if the user does not want to buy, then the user can click on the "x" in the upper right corner of the advertisement to close the advertisement, see FIG. 4 b; since "x" is small and the user's finger is generally large, the user may miss the purchase page by clicking the error in the process of clicking "x", for example, the user clicks "x" in fig. 4b, but the user interface jumps to the purchase page shown in fig. 4c due to the miss operation. The above process is poor in user experience.
By adopting the embodiment, if a first instruction for representing information of connection between the smart phone and the keyboard of the notebook computer is received, the smart phone can be electrically connected with the keyboard of the notebook computer, so that a user can directly operate the smart phone through an input device of the notebook computer, for example, the user can click the input device, for example, a backspace key on the keyboard to close an advertisement, and the key in the keyboard is large, so that the user can not have misoperation, and the user experience is better; in addition, as the user can directly operate the smart phone through the keyboard, a data interaction mode between the smart phone and the keyboard is increased.
In an alternative embodiment, if the input device is a touch pad, it is understood that the signals that the touch pad can receive include at least one of: a click signal (e.g., a single click signal or a double click signal), a swipe signal (e.g., a slide up signal, or a slide down signal, or a slide left signal, or a slide right signal, or a set trajectory signal, etc.), and a touch signal (e.g., a signal where a touch pressure is greater than or equal to a first threshold, or a signal where a touch time is greater than or equal to a second threshold, etc.).
If the touchpad transmits the received signal to the second electronic device, the second electronic device may respond to the signal at the current position of the cursor in the display screen of the second electronic device, for example, if the user performs a double-click operation on the touchpad, the touchpad obtains a double-click signal, and then correspondingly performs the double-click operation at the current position of the cursor in the display screen of the second electronic device; if the user performs a left shift operation on the touch pad, and the touch pad obtains a left sliding signal, then correspondingly, the left shift operation is performed at the current position of the cursor on the display screen of the second electronic device.
In an alternative embodiment, in the case where the second electronic device is electrically connected to the input device of the first electronic device through the interface, the input device may control the second electronic device but may not control the first electronic device. I.e. the input means may not control the first electronic device during the time period in which the input means controls the second electronic device. For example, still referring to fig. 3a-3b, in the case that the smartphone is electrically connected to the keyboard of the notebook computer, the user operates on the keyboard, and then the keyboard only controls the smartphone to magnify the image, but in the process, the notebook computer is not controlled.
In an alternative embodiment, the first electronic device has at least four states, which are respectively an S0 (operating state), an S3 (standby) state, an S4 (sleep) state, and an S5 (power off) state. In an alternative embodiment, the processing method provided in the embodiment of the present application may be applicable regardless of the state of the first electronic device.
In summary, the present application provides a processing method applied to a first electronic device, and after receiving a first instruction, based on at least the first instruction, the input apparatus of the first electronic device and the second electronic device are electrically connected through the interface, so that a signal received by the input apparatus of the first electronic device is transmitted to the second electronic device, where the first instruction includes information representing that the second electronic device is connected to the interface of the first electronic device, which is used for connecting an external device. Therefore, the purpose that the input device based on the first electronic equipment directly operates the second electronic equipment is achieved, and compared with the prior art that only the second electronic equipment is taken as a hard disk, a data interaction mode between the second electronic equipment and the input device of the first electronic equipment is increased.
In an alternative embodiment, the type of the second electronic device may be divided into two types, one being capable of responding to a signal transmitted to itself by the input device and one being incapable of responding to a signal transmitted to itself by the input device.
For example, the second electronic device is a storage device such as a hard disk that stores only data, and if the first electronic device is required to control the storage device, the storage device needs to be controlled by an input device, and even if the input device of the first electronic device is directly connected to the storage device, the storage device cannot be directly operated by the input device, that is, the second electronic device cannot respond to a signal transmitted to itself by the input device.
Based on this, in an optional embodiment, in the step S110 of the processing method provided in the embodiment of the present application, a process of electrically connecting, based on at least the first instruction, the input device of the first electronic device and the second electronic device through the interface may specifically include:
and A1, if the first instruction is received, acquiring the device information of the second electronic device through the interface, wherein the device information represents whether the second electronic device can respond to the signal received by the input device.
In an alternative embodiment, if the interface is a Type C interface, the device information of the second electronic device may be obtained through the CC2/CC1 pin in the Type C interface.
A2, if the device information indicates that the second electronic device can respond to the signal received by the input device, electrically connecting the input device of the first electronic device and the second electronic device through the interface.
Optionally, the intention of the user may be further obtained through device information, for example, if the device information indicates that the second electronic device cannot respond to the signal received by the input device, the user connects the second electronic device to the first electronic device through the interface, and the user may not need to directly control the second electronic device through the input device of the first electronic device, for example, only the first electronic device may be required to provide power for the second electronic device.
In summary, the embodiment of the application can determine whether the second electronic device can respond to the signal received by the input device based on the device information, and further, the second electronic device which cannot respond to the signal received by the input device is not electrically connected with the interface of the first electronic device, so that the user experience is improved.
In an alternative embodiment, the interface is a separate interface for the first electronic device, that is, the interface can only be connected to a second electronic device that needs to be directly controlled by the input device of the first electronic device, but the function of the interface is limited to this and cannot be used for other devices, which results in waste of the interface.
In an alternative embodiment, the interface may be an existing interface in the first electronic device, and is a function multiplexing for the existing interface, that is, the second electronic device is connected to the first electronic device through the interface, which does not necessarily indicate that the user wants the input device of the first electronic device to directly control the second electronic device. For example, if the second electronic device is a smart phone and the first electronic device is a notebook computer, it may be that the user electrically connects the smart phone to the keyboard of the notebook computer through the interface, and the smart phone is used to charge the smart phone.
Based on this, in an optional embodiment, a second instruction may be further received, where the second instruction may include information for controlling a second electronic device connected to the interface by using the input device of the first electronic device, and if the second instruction is received, indicating that the user may want to control the second electronic device through the input device, the second electronic device may be electrically connected to the input device of the first electronic device. That is, in the step S110, based on at least the first instruction, the process of electrically connecting the input device and the second electronic device through the interface may specifically include:
and electrically connecting the input device and the second electronic equipment through the interface at least based on the first instruction and the second instruction.
In an alternative embodiment, there are various ways to obtain the second instruction, and the embodiments of the present application provide, but are not limited to, the following.
The first method comprises the following steps: and determining to obtain a second instruction when the preset key is detected to be touched and pressed.
The preset keys can be virtual keys or physical keys.
And the second method comprises the following steps: and detecting a preset touch track, and determining to obtain a second instruction.
The preset touch track comprises: and at least one of preset touch duration, preset touch times and a preset sliding track.
And the third is that: and detecting the preset voice, and determining to obtain a second instruction.
And fourthly: and detecting a preset gesture, and determining to obtain a second instruction.
In summary, according to the embodiment of the application, the second instruction is further added on the basis of the first instruction, so that the process of electrically connecting the input device and the second electronic device better conforms to the user intention, and the user experience is better.
Referring to the foregoing description of the embodiments, in an alternative embodiment, the type of the second electronic device may be divided into two types, one being capable of responding to a signal transmitted to itself by the input device and one being incapable of responding to a signal transmitted to itself by the input device.
Based on this, in an optional embodiment, the electrically connecting the input device and the second electronic device through the interface based on at least the first instruction and the second instruction may specifically include:
b1, if the first instruction and the second instruction are received, acquiring device information of the second electronic device through the interface, where the device information indicates whether the second electronic device can respond to the signal received by the input device.
In an alternative embodiment, if the interface is a Type C interface, the device information of the second electronic device may be obtained through the CC2/CC1 pin in the Type C interface.
And B2, if the device information indicates that the second electronic device can respond to the signal received by the input device, electrically connecting the input device of the first electronic device and the second electronic device through the interface.
This step corresponds to the step a2 in the above embodiment, and reference may be made to the foregoing description for details, which are not repeated herein.
That is, the intention of the user is further determined by the device information, for example, if the device information indicates that the second electronic device cannot respond to the signal received by the input device, the user connects the second electronic device to the first electronic device through the interface, and the intention should not be to directly control the second electronic device by using the input device of the first electronic device.
In summary, the embodiment of the application can determine whether the second electronic device can respond to the signal received by the input device based on the device information, and further, the second electronic device which cannot respond to the signal received by the input device is not electrically connected with the interface of the first electronic device, so that the user experience is improved.
In an alternative embodiment, the embodiments of the present application further provide, but are not limited to, the following.
In the first case, if the second instruction is not received, the input device is controlled to be electrically connected with the first processor in the first electronic device, so that the signal received by the input device is transmitted to the first electronic device.
The foregoing embodiments have explained that the second instruction may include information for controlling the second electronic device connected to the interface using the input means of the first electronic device; if the second instruction is received, the characteristic that the user may want to control the second electronic device through the input device is received. Similarly, if the second instruction is not received, even if the first instruction is received, the user may not want to control the second electronic device through the input device, that is, the user may want to control the first electronic device through the input device.
Secondly, if a third instruction is received, the input device is controlled to be electrically connected with a first processor in the first electronic equipment, so that the signal received by the input device is transmitted to the first electronic equipment;
wherein the third instruction includes information characterizing disconnection of the second electronic device from the interface.
In an alternative embodiment, the first processor may be a Central Processing Unit (CPU).
In an alternative embodiment, in the case that the input device controls the second electronic apparatus, if the second electronic apparatus is disconnected from the interface, it is characterized that the user does not need to control the second electronic apparatus through the input device, after receiving a third instruction, the input device and the first processor in the first electronic apparatus may be controlled to be electrically connected based on the third instruction, so that the signal received by the input device may be transmitted to the first electronic apparatus, and the first processor may perform a corresponding operation in response to the signal received by the input device.
Thirdly, if the device information indicates that the second electronic device cannot respond to the signal received by the input device, the input device is controlled to be electrically connected with the first processor in the first electronic device, so that the signal received by the input device is transmitted to the first electronic device.
It has been explained in the foregoing that if the second electronic device cannot respond to the signal received by the input device, that is, the device information indicates that the second electronic device cannot respond to the signal received by the input device, even if the input device of the first electronic device is directly connected to the storage device, the storage device cannot be directly operated through the input device. In this case, the input device may be electrically connected to the first processor in the first electronic device.
In an optional embodiment, even if the first instruction and/or the second instruction is received, if the device information indicates that the second electronic device cannot respond to the signal received by the input device, the input device and the first processor in the first electronic device are controlled to be electrically connected.
A specific process of "electrically connecting the input device of the first electronic device and the second electronic device through the interface" in the embodiment of the present application is described below.
In an optional embodiment, the first electronic device may further include a first selection switch and a second selection switch, where a first transmission terminal of the first selection switch is connected to the interface, a second transmission terminal of the first selection switch is connected to a second transmission terminal of the second selection switch, and a third transmission terminal of the first selection switch is connected to the first interface of the first processor in the first electronic device; the first transmission end of the second selection switch is connected with the input device, and the third transmission end of the second selection switch is connected with the second interface of the first processor.
In an alternative embodiment, the purpose of electrically connecting the input device of the first electronic device and the second electronic device may be achieved based on the first selection switch and the second selection switch, that is, in the step S110 (or the step a1 or the step B1), the process of electrically connecting the input device of the first electronic device and the second electronic device through the interface may at least include:
and controlling the first transmission end of the first selection switch to be connected with the second transmission end of the first selection switch, and controlling the first transmission end of the second selection switch to be connected with the second transmission end of the second selection switch.
Fig. 5a is a schematic diagram of a circuit structure of the first electronic device. In fig. 5a, the first processor 111 includes at least a first interface 1 and a second interface 2; the first selection switch 15 at least includes a first transmission terminal 151, a second transmission terminal 152 and a third transmission terminal 153; similarly, the second selection switch 16 at least includes a first transmission terminal 161, a second transmission terminal 162 and a third transmission terminal 163. If the first transmission terminal 151 of the first selection switch 15 is connected to the second transmission terminal 152 of the first selection switch 15 and the first transmission terminal 161 of the second selection switch 16 is connected to the second transmission terminal 162 of the second selection switch 16, the interface 12 can be electrically connected to the input device 13, and if the second electronic device is electrically connected to the interface 12, the purpose of electrically connecting the input device 13 of the first electronic device and the second electronic device through the interface 12 can be achieved.
The following describes a specific process of "controlling the input device and the first processor in the first electronic device to be electrically connected" in the embodiment of the present application.
In an alternative embodiment, the purpose of electrically connecting the input device and the first processor in the first electronic device may be achieved based on the first selection switch and the second selection switch, that is, the process of controlling the electrical connection between the input device and the first processor in the first electronic device at least may include:
and controlling the first transmission end of the first selection switch to be connected with the third transmission end of the first selection switch, and controlling the first transmission end of the second selection switch to be connected with the third transmission end of the second selection switch.
Referring to fig. 5b, if the first transmission terminal 151 of the first selection switch 15 is connected to the third transmission terminal 153 of the first selection switch 15, and the first transmission terminal 161 of the second selection switch 16 is connected to the third transmission terminal 163 of the second selection switch 16, that is, the interface 12 is connected to the first interface of the first processor 111, and the input device 13 is connected to the second interface 2 of the first processor 111, that is, the interface 12, the input device 13 and the first processor 111 are electrically connected, so that the purpose of electrically connecting the input device 13 and the first processor 111 through the interface 12 is achieved.
Based on the processing method, an embodiment of the present application further provides a first electronic device, where the first electronic device has an interface for connecting an external device.
Alternatively, fig. 6 shows a block diagram of a hardware structure of the first electronic device, and referring to fig. 6, the hardware structure of the first electronic device may include: at least one processor 11, at least one interface 12, at least one input device 13 and a communication bus 14.
In the embodiment of the present application, the number of the processor 11, the interface 12, the input device 13 and the communication bus 14 is at least one, and the processor 11, the interface 12 and the input device 13 are communicated with each other through the communication bus 14.
The processor 11 includes at least one of a Central Processing Unit (CPU), an Embedded Controller (EC), and a Power delivery Controller (PD).
The interface 12 may be used for connecting an input device of a first electronic apparatus to a second electronic apparatus, so that the input device of the first electronic apparatus can at least perform data interaction with the second electronic apparatus through the interface 12.
In an alternative embodiment, the processor 11 may be configured to:
receiving a first instruction, wherein the first instruction comprises information for representing connection between second electronic equipment and an interface used for connecting external equipment in the first electronic equipment;
and electrically connecting the input device of the first electronic equipment and the second electronic equipment through the interface at least based on a first instruction so as to transmit the signal received by the input device of the first electronic equipment to the second electronic equipment.
Alternatively, the detailed function and the extended function of the processor 11 may refer to the description of the processing method above.
In an alternative embodiment, the processor 11 may include at least one of the first processor 111, the second processor 112, and the third processor 113, see fig. 7 in particular.
In an alternative embodiment, the first processor 111 has a first power consumption; the second processor 112 has a second power consumption lower than the first power consumption; the third processor has a third power consumption lower than the first power consumption.
In an alternative embodiment, the second processor can switch the first processor from the inactive state to the active state, for example if the second processor is the EC and the first processor is the CPU, then the EC can switch the CPU from the inactive state to the active state.
In an alternative embodiment, the third processor is a PD.
In an alternative embodiment, the interface 12 may include a plurality of pins, for example including at least: a first pin 121 and a second pin 122.
Optionally, the first pin 121 may be electrically connected to the third processor 113, and optionally, the third processor 113 may obtain the device information of the second electronic device based on the first pin 121 of the interface 12.
Alternatively, the first pin 121 may be electrically connected to the second processor 112 (not shown in fig. 7), and then the second processor 112 may obtain the device information of the second electronic device based on the first pin 121 of the interface 12.
The second pin 122 may be electrically connected to the first transmission terminal 151 of the first selection switch 15, so as to electrically connect the interface 12 with the input device 13 through the first selection switch 15, or electrically connect the interface 12 with the first processor 111 through the first selection switch 15.
In an alternative embodiment, if the interface is a Type C interface, the first pin may be a CC2/CC1 pin and the second pin may be a USB2N/P _ B/T pin.
In an alternative embodiment, referring to fig. 7, if the first pin 121 of the interface 12 is electrically connected to the third processor 113, the third processor 113 may detect whether the second electronic device is electrically connected to the interface 12, that is, can receive the first command. In an alternative embodiment, the third processor 113 may send the first instruction to the second processor 112.
In an alternative embodiment, if the first pin 121 of the interface 12 is electrically connected to the second processor 112 (not shown in fig. 7), the second processor 112 may receive the first instruction, and the second processor 112 may further send the first instruction to the third processor 113.
Based on the above description, in an alternative embodiment, the specific implementation based on the processor 11 may be any of the following.
In the first case, the processor 11 may be a first processor 111, e.g. a CPU.
In an alternative embodiment, if the second processor 112 receives the first instruction, the first instruction may be sent to the first processor 111, so that the first processor 111 electrically connects the input device 13 of the first electronic device and the second electronic device through the interface 12 based on at least the received first instruction, so that the signal received by the input device 13 of the first electronic device is transmitted to the second electronic device. For example, the first processor 111 controls a first selection switch and a second selection switch so that the input device 13 and the second electronic apparatus are electrically connected through the interface 12.
In an optional embodiment, if the third processor 113 receives the first instruction, the first instruction may be sent to the first processor 111, so that the first processor 111 electrically connects the input device 13 of the first electronic device and the second electronic device through the interface 12 based on at least the received first instruction, so that the signal received by the input device 13 of the first electronic device is transmitted to the second electronic device. For example, the first processor 111 controls a first selection switch and a second selection switch so that the input device 13 and the second electronic apparatus are electrically connected through the interface 12.
In the second case, the processor 11 may be a second processor 112, such as an EC.
In an alternative embodiment, if the second processor 112 receives the first instruction, the input device 13 of the first electronic device and the second electronic device may be electrically connected through the interface 12 based on at least the received first instruction, so that the signal received by the input device 13 of the first electronic device is transmitted to the second electronic device. For example, the second processor 112 controls a first selection switch and a second selection switch so that the input device 13 and the second electronic apparatus are electrically connected through the interface 12.
In an alternative embodiment, if the third processor 113 receives the first instruction, the first instruction may be sent to the second processor 112, so that the second processor 112 electrically connects the input device 13 of the first electronic device and the second electronic device through the interface 12 based on at least the received first instruction, so that the signal received by the input device 13 of the first electronic device is transmitted to the second electronic device. For example, the second processor 112 controls a first selection switch and a second selection switch so that the input device 13 and the second electronic apparatus are electrically connected through the interface 12.
In a third case, the processor 11 may be a third processor 113, such as a PD.
In an alternative embodiment, if the second processor 112 receives the first instruction, the first instruction may be sent to the third processor 113, so that the third processor 113 electrically connects the input device 13 of the first electronic device and the second electronic device through the interface 12 based on at least the received first instruction, so that the signal received by the input device 13 of the first electronic device is transmitted to the second electronic device. For example, the third processor 113 controls the first selection switch and the second selection switch so that the input device 13 and the second electronic apparatus are electrically connected through the interface 12.
In an alternative embodiment, if the third processor 113 receives the first instruction, the input device 13 of the first electronic device and the second electronic device may be electrically connected through the interface 12 based on at least the received first instruction, so that the signal received by the input device 13 of the first electronic device is transmitted to the second electronic device. For example, the third processor 113 controls the first selection switch and the second selection switch so that the input device 13 and the second electronic apparatus are electrically connected through the interface 12.
In an alternative embodiment, referring to fig. 7, if the second instruction can be obtained through a preset key connected to the second processor 112, the second processor 112 may receive the second instruction, and the second processor 112 may further send the second instruction to the third processor 113.
In an alternative embodiment, if the second instruction is obtained through a preset key connected to the third processor 113, the third processor 113 may receive the second instruction, and the third processor 113 may further send the second instruction to the second processor 112.
Based on the above description, in an alternative embodiment, the specific implementation based on the processor 11 may be any of the following cases.
In a fourth case, the processor 11 may be a first processor 111, e.g. a CPU.
In an alternative embodiment, if the second processor 112 receives the first instruction, the first instruction may be sent to the first processor 111; if the third processor 113 receives the first instruction, the first instruction may be sent to the first processor 111.
In an alternative embodiment, if the second processor 112 receives the second instruction, the second instruction may be sent to the first processor 111; if the third processor 113 receives the second instruction, the second instruction may be sent to the first processor 111.
The first processor 111 may electrically connect the input device 13 of the first electronic device and the second electronic device through the interface 12 based on at least the received first instruction and the second instruction, so that the signal received by the input device 13 of the first electronic device is transmitted to the second electronic device.
In an alternative embodiment, referring to fig. 7, if the third processor 113 is electrically connected to the first pin 121 of the interface 12, the third processor 113 may obtain the device information of the second electronic device, and the third processor 113 may further send the device information of the second electronic device to the first processor 111, then if the first processor 111 receives the first instruction and the second instruction, if the device information indicates that the second electronic device is capable of responding to the signal received by the input device 13, the input device 13 of the first electronic device and the second electronic device are electrically connected through the interface 12.
In a fifth case, the processor 11 may be a second processor 112, such as an EC.
In an alternative embodiment, the second processor 112 may itself receive the first instruction; in an alternative embodiment, if the third processor 113 receives the first instruction, the first instruction may be sent to the second processor 112.
In an alternative embodiment, the second processor 112 may itself receive the second instruction; in an alternative embodiment, if the third processor 113 receives the second instruction, the second instruction may be sent to the second processor 112.
The second processor 112 may electrically connect the input device 13 of the first electronic device and the second electronic device through the interface 12 based on at least the received first instruction and the second instruction, so that the signal received by the input device 13 of the first electronic device is transmitted to the second electronic device.
In an alternative embodiment, referring to fig. 7, if the third processor 113 is electrically connected to the first pin 121 of the interface 12, the third processor 113 may obtain the device information of the second electronic device, and the third processor 113 may further send the device information of the second electronic device to the second processor 112, then if the second processor 112 receives the first instruction and the second instruction, if the device information indicates that the second electronic device can respond to the signal received by the input device 13, the input device 13 of the first electronic device and the second electronic device are electrically connected through the interface 12.
In a sixth case, the processor 11 may be a third processor 113, such as a PD.
In an alternative embodiment, if the second processor 112 receives the first instruction, the first instruction may be sent to the third processor 113; in an alternative embodiment, the third processor 113 may itself receive the first instruction.
In an alternative embodiment, if the second processor 112 receives the second instruction, the second instruction may be sent to the third processor 113; in an alternative embodiment, the third processor 113 may itself receive the second instruction.
The third processor 113 may electrically connect the input device 13 of the first electronic device and the second electronic device through the interface 12 based on at least the received first instruction and the second instruction, so that the signal received by the input device 13 of the first electronic device is transmitted to the second electronic device.
In an alternative embodiment, referring to fig. 7, if the third processor 113 is electrically connected to the first pin 121 of the interface 12, the third processor 113 itself can obtain the device information of the second electronic device, and if the third processor 113 receives the first instruction and the second instruction, the input device 13 of the first electronic device and the second electronic device are electrically connected through the interface 12 if the device information indicates that the second electronic device can respond to the signal received by the input device 13.
The embodiment of the application also provides a readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the processing method is realized.
It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. For the device or system type embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
It is further noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A processing method is applied to a first electronic device and comprises the following steps:
receiving a first instruction, wherein the first instruction comprises information for representing connection between second electronic equipment and an interface used for connecting external equipment in the first electronic equipment;
controlling a selection switch in a first electronic device to electrically connect an input device of the first electronic device and the second electronic device through the interface based on at least a first instruction, so that a signal received by the input device of the first electronic device is transmitted to the second electronic device;
if a third instruction is received, controlling a selection switch in first electronic equipment to electrically connect the input device and a first processor in the first electronic equipment, so that a signal received by the input device is transmitted to the first electronic equipment; the third instruction includes information characterizing a disconnection of the second electronic device from the interface.
2. The processing method of claim 1, further comprising:
receiving a second instruction, wherein the second instruction comprises information for representing that the second electronic equipment connected with the interface is controlled by the input device;
the electrically connecting the input device and the second electronic device through the interface based on at least a first instruction comprises:
and electrically connecting the input device and the second electronic equipment through the interface at least based on the first instruction and the second instruction.
3. The processing method of claim 2, further comprising any of:
and if the second instruction is not received, controlling the input device to be electrically connected with a first processor in the first electronic equipment so as to transmit the signal received by the input device to the first electronic equipment.
4. The processing method of claim 2, the electrically connecting the input device and the second electronic device through the interface based on at least the first instruction and the second instruction comprising:
if the first instruction and the second instruction are received, acquiring equipment information of the second electronic equipment through the interface, wherein the equipment information represents whether the second electronic equipment can respond to the signal received by the input device;
and if the device information indicates that the second electronic device can respond to the signal received by the input device, electrically connecting the input device of the first electronic device and the second electronic device through the interface.
5. The processing method of claim 1, wherein electrically connecting, based on at least the first instruction, the input device of the first electronic device and the second electronic device through the interface comprises:
if the first instruction is received, acquiring equipment information of the second electronic equipment through the interface, wherein the equipment information represents whether the second electronic equipment can respond to the signal received by the input device;
and if the device information indicates that the second electronic device can respond to the signal received by the input device, electrically connecting the input device of the first electronic device and the second electronic device through the interface.
6. The processing method according to claim 4 or 5, further comprising:
and if the device information indicates that the second electronic device cannot respond to the signal received by the input device, controlling the input device to be electrically connected with a first processor in the first electronic device so as to transmit the signal received by the input device to the first electronic device.
7. The processing method according to any one of claims 1 to 5, the first electronic device further comprising:
a first selection switch, a first transmission end of which is connected with the interface, a second transmission end of which is connected with a second transmission end of a second selection switch, and a third transmission end of which is connected with a first interface of a first processor in the first electronic device;
a first transmission end of the second selection switch is connected with the input device, and a third transmission end of the second selection switch is connected with a second interface of the first processor;
the electrically connecting the input device of the first electronic device and the second electronic device through the interface comprises:
and controlling the first transmission end of the first selection switch to be connected with the second transmission end of the first selection switch, and controlling the first transmission end of the second selection switch to be connected with the second transmission end of the second selection switch.
8. The processing method of claim 3, the first electronic device further comprising:
a first selection switch, a first transmission end of which is connected with the interface, a second transmission end of which is connected with a second transmission end of a second selection switch, and a third transmission end of which is connected with a first interface of a first processor in the first electronic device;
a first transmission end of the second selection switch is connected with the input device, and a third transmission end of the second selection switch is connected with a second interface of the first processor;
the controlling the input device to be electrically connected with the first processor in the first electronic device comprises:
and controlling the first transmission end of the first selection switch to be connected with the third transmission end of the first selection switch, and controlling the first transmission end of the second selection switch to be connected with the third transmission end of the second selection switch.
9. A first electronic device, comprising:
an interface for connecting an external device;
input means for receiving a signal;
a processor to:
receiving a first instruction, wherein the first instruction comprises information for representing connection between second electronic equipment and an interface used for connecting external equipment in the first electronic equipment;
controlling a selection switch in a first electronic device to electrically connect an input device of the first electronic device and the second electronic device through the interface based on at least a first instruction, so that a signal received by the input device of the first electronic device is transmitted to the second electronic device;
if a third instruction is received, controlling a selection switch in first electronic equipment to electrically connect the input device and a first processor in the first electronic equipment, so that a signal received by the input device is transmitted to the first electronic equipment; the third instruction includes information characterizing a disconnection of the second electronic device from the interface.
10. The first electronic device of claim 9, comprising any of:
the processor is a first processor and has a first power consumption;
the processor is a second processor having a second power consumption lower than the first power consumption; the second processor can switch the first processor from a non-working state to a working state;
the processor is a third processor having a third power consumption lower than the first power consumption.
CN201910561713.8A 2019-06-26 2019-06-26 Processing method and electronic equipment Active CN110262985B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910561713.8A CN110262985B (en) 2019-06-26 2019-06-26 Processing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910561713.8A CN110262985B (en) 2019-06-26 2019-06-26 Processing method and electronic equipment

Publications (2)

Publication Number Publication Date
CN110262985A CN110262985A (en) 2019-09-20
CN110262985B true CN110262985B (en) 2021-09-14

Family

ID=67921906

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910561713.8A Active CN110262985B (en) 2019-06-26 2019-06-26 Processing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN110262985B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112558825A (en) * 2019-09-26 2021-03-26 华为技术有限公司 Information processing method and electronic equipment
CN111800890B (en) * 2020-06-30 2023-09-19 联想(北京)有限公司 Processing method and input device
CN113918256A (en) * 2021-09-30 2022-01-11 联想(北京)有限公司 Control method and device and electronic equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN207586864U (en) * 2017-12-14 2018-07-06 西安航空学院 A kind of Novel Communication device
CN108780337A (en) * 2016-01-26 2018-11-09 劳欧·帕瑞堤 The personal digital assistant of image can be captured including the smart mobile phone, keyboard and the tablet computer that are all assembled together

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002073250A (en) * 2000-08-31 2002-03-12 Kazuhiko Akiho Cover with character
CN1967510A (en) * 2005-11-18 2007-05-23 鸿富锦精密工业(深圳)有限公司 System and method to control computer by input device of external device
CN102622157A (en) * 2011-01-27 2012-08-01 西安龙飞软件有限公司 Method for achieving handwriting input of computer equipment by using mobile phone touch screen
CN204721395U (en) * 2015-05-21 2015-10-21 朱德全 Polymorphic mobile phone system
CN109871190B (en) * 2015-06-16 2022-05-31 广州视睿电子科技有限公司 Wireless screen transmission method, expansion equipment and wireless screen transmission system
CN109669659B (en) * 2019-01-15 2023-08-29 深圳安柠科技有限公司 Electronic equipment for connecting mobile terminal for data processing

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108780337A (en) * 2016-01-26 2018-11-09 劳欧·帕瑞堤 The personal digital assistant of image can be captured including the smart mobile phone, keyboard and the tablet computer that are all assembled together
CN207586864U (en) * 2017-12-14 2018-07-06 西安航空学院 A kind of Novel Communication device

Also Published As

Publication number Publication date
CN110262985A (en) 2019-09-20

Similar Documents

Publication Publication Date Title
EP2924550B1 (en) Split-screen display method and electronic device thereof
CN106681635B (en) Split screen false touch prevention method and device and mobile terminal
CN110262985B (en) Processing method and electronic equipment
CN108153466A (en) Operating method, mobile terminal and storage medium based on double screen
EP2490116A1 (en) Method for providing background of locked screen, electronic device and computer program product using the same
JP4764918B2 (en) Electronic devices and touch screen displays
CN105045454A (en) Method for preventing from wrongly touching terminal and terminal
WO2019041779A1 (en) Terminal interface switching, moving and gesture processing method and device and terminal
US9152316B2 (en) Electronic device, controlling method thereof, and non-transitory storage medium
US7949708B2 (en) Using a remote handheld device as a local device
CN107357458B (en) Touch key response method and device, storage medium and mobile terminal
CN108549510A (en) Figure calibration method, equipment and storage medium for showing boarding application
US10001962B2 (en) Control method, control apparatus, and electronic device
CN109165075A (en) Application display method, device, electronic equipment and storage medium
EP3039556B1 (en) Method, apparatus, and recording medium for interworking with external terminal
CN107562262B (en) Method for responding touch operation, terminal and computer readable storage medium
US20140043267A1 (en) Operation Method of Dual Operating Systems, Touch Sensitive Electronic Device Having Dual Operating Systems, and Computer Readable Storage Medium Having Dual Operating Systems
CN112286612A (en) Information display method and device and electronic equipment
US20190196707A1 (en) User interface for cross-device requests
US8988369B1 (en) Restricted carousel with built-in gesture customization
CN104025007A (en) Detecting a first and a second touch to associate a data file with a graphical data object
WO2014034369A1 (en) Display control device, thin-client system, display control method, and recording medium
CN107092433B (en) Touch control method and device of touch control all-in-one machine
US20190302952A1 (en) Mobile device, computer input system and computer readable storage medium
CN110727522A (en) Control method and electronic equipment

Legal Events

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