CN114625236B - Information processing method and device - Google Patents
Information processing method and device Download PDFInfo
- Publication number
- CN114625236B CN114625236B CN202210332792.7A CN202210332792A CN114625236B CN 114625236 B CN114625236 B CN 114625236B CN 202210332792 A CN202210332792 A CN 202210332792A CN 114625236 B CN114625236 B CN 114625236B
- Authority
- CN
- China
- Prior art keywords
- mode
- processing device
- signal
- path
- trigger signal
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3206—Monitoring of events, devices or parameters that trigger a change in power modality
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3234—Power saving characterised by the action undertaken
- G06F1/3287—Power saving characterised by the action undertaken by switching off individual functional units in the computer system
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2201/00—Indexing scheme relating to error detection, to error correction, and to monitoring
- G06F2201/86—Event-based monitoring
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2201/00—Indexing scheme relating to error detection, to error correction, and to monitoring
- G06F2201/865—Monitoring of software
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computing Systems (AREA)
- Mathematical Physics (AREA)
- Quality & Reliability (AREA)
- Computer Hardware Design (AREA)
- Telephone Function (AREA)
- Information Transfer Systems (AREA)
Abstract
The application provides an information processing method and device, comprising the following steps: obtaining a first trigger signal; transmitting a first switching signal to a processing device via a first path in response to the first trigger signal if the connected processing device is in a first mode, such that the processing device can switch from the first mode to a third mode; transmitting a second switching signal to the processing device through a second path in response to the first trigger signal if the connected processing device is in a second mode, such that the processing device can switch from the second mode to the third mode; wherein the power consumption of the first mode is lower than the power consumption of the third mode, and the power consumption of the second mode is lower than the power consumption of the third mode; the first passageway and the second passageway are different.
Description
Technical Field
The present application relates to the field of information technologies, and in particular, to an information processing method and apparatus.
Background
Existing host products (e.g., notebook, desktop) can support the wake-up function of an input device connected through an interface to some extent, but cannot support it in some cases.
For example, after the host product enters the super power saving mode, both the controller for controlling the interface and the power of the interface in the host product are turned off, and at this time, the wake-up information of the access device cannot be received through the interface.
Disclosure of Invention
In view of this, the present application provides an information processing method as follows:
an information processing method, comprising:
obtaining a first trigger signal;
transmitting a first switching signal to a processing device via a first path in response to the first trigger signal if the connected processing device is in a first mode, such that the processing device can switch from the first mode to a third mode;
transmitting a second switching signal to the processing device through a second path in response to the first trigger signal if the connected processing device is in a second mode, such that the processing device can switch from the second mode to the third mode;
wherein the power consumption of the first mode is lower than the power consumption of the third mode, and the power consumption of the second mode is lower than the power consumption of the third mode; the first passageway and the second passageway are different.
Optionally, in the above method, after the processing device switches to the third mode, the method further includes:
Obtaining a second trigger signal;
transmitting the second trigger signal to the processing device in the third mode through the first path;
wherein the power consumption of the first mode is higher than the power consumption of the second mode.
Alternatively, the method described above,
the transmitting the first switching signal to the processing device via the first path comprises: transmitting the first switching signal to processing equipment through a first channel corresponding to the first pin;
the transmitting the second switching signal to the processing device through the second path includes: transmitting the second switching signal to processing equipment through a second path corresponding to the second pin;
wherein the second pin and the first pin are different pins of the same interface.
Alternatively, the method described above,
wherein obtaining the first trigger signal includes:
detecting a first trigger operation, and generating a first trigger signal based on the first trigger operation; or (b)
Receiving a first trigger signal sent by connected input equipment, wherein the first trigger signal is generated by an operating body executing a first trigger operation on the input equipment;
the method comprises the steps of obtaining a second trigger signal, correspondingly comprising:
detecting a second trigger operation, and generating a second trigger signal based on the second trigger operation; or (b)
And receiving a second trigger signal sent by the connected input device, wherein the second trigger signal is generated by the operating body executing a second trigger operation on the input device.
Alternatively, the method described above,
if the input device is connected, the processing device switches to the third mode, and then further includes:
receiving a notification signal transmitted by the processing device through a first path based on a preset time period after transmission;
acquiring device information of the input device based on the notification signal;
and feeding back the device information to the processing device through a first channel.
Optionally, before the method for obtaining the first trigger signal, the method further includes:
if the time when the first detection signal from the processing equipment is not received exceeds a time threshold, determining that the processing equipment is in the second mode;
and if a first detection signal from the processing equipment is received, determining that the processing equipment is in the first mode.
Optionally, the method further comprises:
forwarding the first detection signal to a connected input device based on determining that the processing device is in a first mode;
and generating a second detection signal based on the fact that the processing device is in the second mode, and sending the second detection signal to the input device, wherein the second detection signal and the first detection signal meet the same condition.
Optionally, the method includes:
transmitting a first switching signal based on a first path in response to the first trigger signal;
if a notification signal is received through a first channel within a preset time period after transmission, determining that the processing equipment is in a first mode;
if the notification signal is not received through the first path within a preset time period after the transmission, determining that the processing equipment is in a second mode, and transmitting a second switching signal to the processing equipment through the second path.
Optionally, the method further comprises:
transmitting the first trigger signal as a first switching signal to a processing device based on the processing device being in a first mode;
and generating a second switching signal according to the first trigger signal based on the connected processing equipment being in a second mode.
An information processing apparatus comprising:
a connection device including a first path and a second path connecting the processing apparatus;
a processor for obtaining a first trigger signal;
transmitting a first switching signal to a processing device via a first path in response to the first trigger signal if the connected processing device is in a first mode, such that the processing device can switch from the first mode to a third mode;
Transmitting a second switching signal to the processing device through a second path in response to the first trigger signal if the connected processing device is in a second mode, such that the processing device can switch from the second mode to the third mode;
wherein the power consumption of the first mode is lower than the power consumption of the third mode, and the power consumption of the second mode is lower than the power consumption of the third mode; the first passageway and the second passageway are different.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present application, and that other drawings may be obtained according to the provided drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of an embodiment 1 of an information processing method provided by the present application;
FIG. 2 is a flowchart of an embodiment 2 of an information processing method provided by the present application;
FIG. 3 is a flowchart of an embodiment 3 of an information processing method provided by the present application;
FIG. 4 is a schematic diagram of a system of an embodiment 3 of an information processing method according to the present application;
FIG. 5 is a flowchart of an embodiment 4 of an information processing method provided by the present application;
FIG. 6 is a flowchart of an embodiment 5 of an information processing method provided by the present application;
FIG. 7 is a schematic diagram of a system of an embodiment 5 of an information processing method according to the present application;
FIG. 8 is a flowchart of an embodiment 6 of an information processing method provided by the present application;
FIG. 9 is a flowchart of an embodiment 7 of an information processing method provided by the present application;
FIG. 10 is a flowchart of an embodiment 8 of an information processing method provided by the present application;
FIG. 11 is a flowchart of an embodiment 9 of an information processing method provided by the present application;
FIG. 12 is a flowchart of an embodiment 10 of an information processing method provided by the present application;
fig. 13 is a schematic structural view of an embodiment 1 of an information processing apparatus provided by the present application;
fig. 14 is a schematic view of a connecting device in an embodiment 1 of an information processing apparatus according to the present application;
fig. 15 is a schematic view of an application scenario of embodiment 1 of an information processing apparatus provided by the present application;
fig. 16 is a schematic structural view of an embodiment 2 of an information processing apparatus provided by the present application;
fig. 17 is a schematic view of an application scenario of embodiment 2 of an information processing apparatus provided by the present application;
Fig. 18 is a schematic structural view of an information processing apparatus according to embodiment 3 of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The electronic device for executing the information processing method for the present application may be a peripheral device for connecting the processing device and the input device, or may be an input device, and two signal transmission paths are provided between the electronic device and the processing device, so as to respectively transmit different signals.
As shown in fig. 1, a flowchart of an embodiment 1 of an information processing method according to the present application is applied to an electronic device, where the electronic device is connected to a processing device, and the method includes the following steps:
step S101: obtaining a first trigger signal;
the obtained trigger signal is a first trigger signal when the processing device is in the first mode or the second mode, and the first trigger signal is used for triggering the processing device to switch to the third model.
The first trigger signal is generated based on a trigger operation, and the trigger operation may be a trigger operation performed on an input device or a trigger operation performed on an input structure of an electronic device.
As one example, a user presses an enter key on a keyboard, and based on the key trigger operation, a first trigger signal is generated.
Step S102: transmitting a first switching signal to a processing device via a first path in response to the first trigger signal if the connected processing device is in a first mode, such that the processing device can switch from the first mode to a third mode;
the electronic equipment and the processing equipment are provided with two paths for transmitting signals, a first path and a second path, wherein the first path and the second path are different.
And if the connected processing equipment is in the first mode, responding to the first trigger signal, and transmitting a first switching signal to the processing equipment through a first path between the electronic equipment and the processing equipment.
The first switching signal is a signal for triggering the processing device to switch to the third model, and the processing device can switch from the first switching mode to the third mode after receiving the first switching signal.
Step S103: and if the connected processing equipment is in a second mode, responding to the first trigger signal, and transmitting a second switching signal to the processing equipment through a second path so that the processing equipment can be switched from the second mode to the third mode.
The power consumption of the first mode is lower than that of the third mode, and the power consumption of the second mode is lower than that of the third mode.
For example, the processing device is in a first mode, the second mode is a sleep mode of different modes, and when the processing device is in a third mode, it is a normal operation mode capable of receiving signals from other devices connected thereto.
And if the connected processing equipment is in the second mode, responding to the first trigger signal, and transmitting a second switching signal to the processing equipment through a second path between the electronic equipment and the processing equipment.
In a specific implementation, when the processing device is in the first mode, the first channel between the processing device and the electronic device can transmit signals, and when the processing device is in the second mode, the first channel between the processing device and the electronic device cannot transmit signals, and correspondingly, in this embodiment, when the processing device is determined to be in the first mode, the first switching signal is transmitted to the processing device through the first channel, and when the processing device is determined to be in the second mode, the second switching signal is transmitted to the processing device through the second channel.
The second switching signal is a signal for triggering the processing device to switch to the third model, and the processing device can switch from the second switching mode to the third mode after receiving the second switching signal.
If the processing device performs mode switching, the transmission path for transmitting the switching signal between the electronic device and the processing device is correspondingly adjusted.
Specifically, if it is determined that the processing device is switched from the first mode to the second mode, transmitting a first switching signal to the processing device through a first path is prohibited, and transmitting a second switching signal to the processing device through a second path is controlled;
and if the processing equipment is determined to be switched from the second mode to the first mode, controlling to transmit a first switching signal to the processing equipment through a first channel.
In summary, in the information processing method provided in the present embodiment, after the connected processing device is in the first mode or the second mode with two lower power consumption, after the first trigger signal is received, different switching signals are transmitted to the processing device through different paths based on different modes, so that the processing device is switched to the third mode with higher power consumption. In the scheme, based on the fact that the processing equipment is in different modes and different modes for responding to the first trigger signals are adopted, the processing equipment can be switched to the third mode.
As shown in fig. 2, a flowchart of an embodiment 2 of an information processing method provided by the present application includes the following steps:
step S201: obtaining a first trigger signal;
step S202: transmitting a first switching signal to a processing device via a first path in response to the first trigger signal if the connected processing device is in a first mode, such that the processing device can switch from the first mode to a third mode;
step S203: transmitting a second switching signal to the processing device through a second path in response to the first trigger signal if the connected processing device is in a second mode, such that the processing device can switch from the second mode to the third mode;
steps S201 to 203 are identical to steps S101 to 103 in embodiment 1, and are not described in detail in this embodiment.
Step S204: obtaining a second trigger signal;
the second trigger signal and the first trigger signal only indicate signals of different occasions, and the content/type can be the same or different.
For example, the second trigger signal and the first trigger signal have the same content and refer to the same key trigger signal; the different contents of the second trigger signal and the first trigger signal refer to signals triggered by different keys.
For example, the second trigger signal and the first trigger signal are the same in type and refer to signals triggered by the same type of operation, such as signals generated by operating a keyboard or signals generated by operating a mouse;
for example, the different types of the second trigger signal and the first trigger signal refer to signals triggered by operation of not one type, such as signals generated by operating a keyboard and a mouse.
Wherein, in case the processing device is in the third mode, the obtained trigger signal is a second trigger signal for triggering the processing device to respond in a completely different way than the switching mode.
Step S205: and transmitting the second trigger signal to the processing equipment in the third mode through the first channel.
Wherein the power consumption of the first mode is higher than the power consumption of the second mode.
Wherein the power consumption of the processing device in the first mode is higher than the power consumption in the second mode.
Specifically, in the second mode, part of the application is stopped, and the processing device is disconnected from the first path of the electronic device, and only the second path is maintained; in the first mode, only part of the application is stopped, and the processing device is conducted with the first path and the second path of the electronic device. Moreover, the application stopped in the second mode is greater than or equal to the application stopped in the first mode.
And in the third mode, the processing device is normally operated and is communicated with the first path and the second path of the electronic device.
As one example, the first pathway is USB (Universal Serial Bus ) bus (bus) and the second pathway is CC (Configuration Channel ). In the second mode, the processing device is in super power saving or sleep mode, most of the applications stop, the controller and other structures stop running, the USB interface is powered off, and the first path is disconnected. In the first mode, the processing device is in a power saving mode, only part of applications are stopped, only part of the controllers are stopped, and the USB interface is kept powered.
In the embodiment of the present application, a USB interface is taken as an example for illustration, but the implementation is not limited to this, and an interface of other protocols may be used in the processing device and the electronic device, where the interface is powered off or some reason to cause that the interface cannot perform signal transmission with the electronic device when the processing device is in a specific mode, and is powered on or other reason to enable signal transmission with the electronic device when the interface is in other modes.
And the second trigger signals received subsequently are all transmitted through the first channel after the processing equipment is switched to the third mode, no matter whether the processing equipment is switched to the third mode from the first mode or the second mode.
Specifically, after the processing device switches back to the third mode, power is supplied to the USB interface, and if the USB bus is turned on, the received trigger signal (the second trigger signal) is transmitted through the USB bus.
Wherein the second trigger signal is used to trigger the processing device to respond in a completely different manner than switching to the third mode, the response being specifically for an application running in the processing device.
For example, the second trigger signal is a key value of a space, and the response to the second trigger signal in the processing device is to pause the video being played.
In summary, the information processing method provided in this embodiment further includes: obtaining a second trigger signal; transmitting the second trigger signal to the processing device in the third mode through the first path; wherein the power consumption of the first mode is higher than the power consumption of the second mode. In this scheme, after the processing device switches from the first mode or the second mode to the third mode, the obtained second trigger signals are all transmitted to the processing device through the first path, and the first path is used as a default path for transmitting the second trigger signals.
As shown in fig. 3, a flowchart of an embodiment 3 of an information processing method according to the present application is provided, and the method is applied to an electronic device, and includes the following steps:
step S301: obtaining a first trigger signal;
step S301 is identical to step S101 in embodiment 1, and details are not described in this embodiment.
Step S302: if the connected processing equipment is in a first mode, responding to the first trigger signal, and transmitting the first switching signal to the processing equipment through a first channel corresponding to a first pin, so that the processing equipment can be switched from the first mode to a third mode;
an interface is provided in the electronic device, and the interface has a plurality of pins, such as a first pin and a second pin.
The first pin corresponds to the first passage, and the second pin corresponds to the second passage.
And if the connected processing equipment is in the first mode, responding to the first trigger signal, and transmitting a first switching signal to the processing equipment through a first channel corresponding to the first pin.
Step S303: and if the connected processing equipment is in the second mode, responding to the first trigger signal, and transmitting the second switching signal to the processing equipment through a second path corresponding to the second pin, so that the processing equipment can be switched from the second mode to the third mode.
And if the connected processing equipment is in the second mode, responding to the second trigger signal, and transmitting a second switching signal to the processing equipment through a second path corresponding to the second pin.
After the first trigger signal is obtained, the corresponding pin is determined based on the mode of the connected processing equipment, and then the corresponding pin is transmitted to the processing equipment based on the corresponding path of the pin.
If the interface is a USB-typeC interface, the electronic equipment and the processing equipment are connected through a USB-typeC data line. The USB-typeC interface comprises two paths, wherein USB bus is used as one path for transmitting signals of the USB bus protocol, and CC is used as the other path for transmitting signals of other protocols.
As shown in fig. 4, a system schematic diagram is shown, which includes a processing device 401 and an electronic device 402, wherein the processing device and the electronic device respectively use a USB-typeC interface, and the interface corresponds to two paths, including a first path USB-bus and a second path CC.
Of course, the connection manner between the processing device and the present electronic device is not limited to the above.
In a specific implementation, an interface is provided in the electronic device, where the interface has a plurality of pins, and a special pin can correspond to both the first channel and the second channel, and different channels adopt different protocols, so when the first trigger signal is responded, when the different channels are determined, the protocols corresponding to the channels are adopted, so that the determined channels can transmit corresponding switching signals.
For example, determining to transmit the switching signal by using the first path, and transmitting the first switching signal by using a protocol corresponding to the first path; and determining to transmit the switching signal by adopting a second path, and transmitting a second switching signal by adopting a protocol corresponding to the second path.
In a specific implementation, the electronic device may further be provided with two interfaces, a first interface having a first pin, the first pin corresponding to the first path, and a second interface having a second pin, the second pin corresponding to the second path.
When responding to a first trigger signal, if a target adopts a first path, determining a first pin corresponding to the first path, and sending a first switching signal to the first path through the first pin; if the target adopts the second path, determining a second pin corresponding to the second path, and sending a second switching signal to the second path through the second pin.
In summary, in the information processing method provided in the present embodiment, the transmitting, to the processing device, the first switching signal through the first path includes: transmitting the first switching signal to processing equipment through a first channel corresponding to the first pin; the transmitting the second switching signal to the processing device through the second path includes: transmitting the second switching signal to processing equipment through a second path corresponding to the second pin; the second pin and the first pin are different pins of the same interface. In the scheme, based on the first different paths of different pins of the same interface, when switching signals are transmitted to processing equipment through the paths, different switching signals are transmitted to the processing equipment through the paths corresponding to the different pins.
As shown in fig. 5, a flowchart of an embodiment 4 of an information processing method provided by the present application, the method includes the following steps:
step S501: detecting a first trigger operation, and generating a first trigger signal based on the first trigger operation;
in this embodiment, an input structure is provided in the electronic device, and a user can execute a trigger operation through the input structure provided in the electronic device.
The electronic equipment and the processing equipment form a system, a user executes a trigger operation on the electronic equipment, and the electronic equipment detects the trigger operation to generate a trigger signal.
For example, the electronic device is a mouse, a microphone, a camera or other devices with the function of collecting input information, and two paths are arranged between the electronic device and the processing device, and the two paths can transmit different switching signals.
For example, a user clicks a key on a keyboard, the keyboard detects a trigger operation of the clicked key, and generates a first trigger signal based on the trigger operation.
Step S502: transmitting a first switching signal to a processing device via a first path in response to the first trigger signal if the connected processing device is in a first mode, such that the processing device can switch from the first mode to a third mode;
Step S503: transmitting a second switching signal to the processing device through a second path in response to the first trigger signal if the connected processing device is in a second mode, such that the processing device can switch from the second mode to the third mode;
steps S501-503 are identical to steps S201-203 in embodiment 2, and are not described in detail in this embodiment.
Step S504: detecting a second trigger operation, and generating a second trigger signal based on the second trigger operation;
after the processing device is switched to the third mode, the user executes a trigger operation on the electronic device, and the electronic device detects the trigger operation to generate a trigger signal.
The second triggering operation and the first triggering operation are different in triggering time, and may be the same operation or different operations.
For example, the same operation may be that both triggering operations are clicking on a space key in a keyboard; the different operations may be the first trigger operation and the second trigger operation being clicking different keys of the keyboard.
Accordingly, a second trigger signal is generated based on the detected second trigger operation.
Wherein the second trigger signal is the same type of trigger signal as the first trigger signal or the same trigger signal.
Wherein the same type of trigger signal is generated based on different trigger operations and the same trigger signal is generated based on the same trigger operations.
Step S505: and transmitting the second trigger signal to the processing equipment in the third mode through the first channel.
Step S505 is identical to step S205 in embodiment 2, and will not be described in detail in this embodiment.
In summary, in the information processing method provided in this embodiment, obtaining a first trigger signal includes: detecting a first trigger operation, and generating a first trigger signal based on the first trigger operation; obtaining a second trigger signal, comprising: and detecting a second trigger operation, and generating a second trigger signal based on the second trigger operation. In this solution, the electronic device is used as a device for receiving a trigger operation, and when the processing device is in the first mode or the second mode and when the processing device is in the third mode, the trigger operation received by the electronic device generates a trigger signal, where the trigger signal may be of the same type or the same type, and the same type or the same trigger signal may trigger different responses of the processing device.
As shown in fig. 6, a flowchart of an embodiment 5 of an information processing method provided by the present application, the method includes the following steps:
Step S601: receiving a first trigger signal sent by connected input equipment, wherein the first trigger signal is generated by an operating body executing a first trigger operation on the input equipment;
in this embodiment, the electronic device is further connected to an input device, where the input device is provided with an input structure, and a user can execute a triggering operation through the input structure provided in the input device.
The electronic device is used as a peripheral of the processing device and is used for connecting the processing device with the input device.
In particular, the electronic device may employ a docking station, a display, or the like, but is not limited thereto.
For example, the electronic device is a mouse, a microphone, a camera or other devices with the function of collecting input information, and generally, a channel is arranged between the input device and the electronic device, and the channel can transmit signals of the same type with the first channel.
Accordingly, the first trigger signal may be a mouse moving signal, a mouse clicking signal, a keyboard clicking signal (such as a key value), wake-up sound information, or the like.
For example, a user clicks a key on a keyboard, the keyboard detects a trigger operation of the clicked key, and generates a first trigger signal based on the trigger operation.
As shown in fig. 7, a system diagram includes a processing device 701, an electronic device 702, and an input device 703. The processing device 701 and the electronic device 702 respectively adopt a USB-typeC interface, where the interface corresponds to two paths, including a first path USB-bus and a second path CC; the electronic device and the input device adopt a USB-type A interface, and the electronic device and the input device are provided with a channel which can transmit the same information with the first channel. The trigger signal generated at the input device is transmitted to the electronic device through a channel between the electronic device and the input device, and the electronic device selects different channels to transmit the first switching signal or the second switching signal based on the mode of the processing device.
Step S602: transmitting a first switching signal to a processing device via a first path in response to the first trigger signal if the connected processing device is in a first mode, such that the processing device can switch from the first mode to a third mode;
step S603: transmitting a second switching signal to the processing device through a second path in response to the first trigger signal if the connected processing device is in a second mode, such that the processing device can switch from the second mode to the third mode;
Steps S601-603 are identical to steps S201-203 in embodiment 2, and detailed description is omitted in this embodiment.
Step S604: receiving a second trigger signal sent by connected input equipment, wherein the second trigger signal is generated by an operating body executing a second trigger operation on the input equipment;
after the processing device is switched to the third mode, the user executes a trigger operation on the input device, and the input device detects the trigger operation to generate a second trigger signal.
The second triggering operation and the first triggering operation are different in triggering time, and may be the same operation or different operations.
For example, the same operation may be that the two triggering operations are clicking on the same key in a keyboard/mouse; the different operations may be a first trigger operation and a second trigger operation that are separate clicks on different keys of the keyboard/mouse.
Accordingly, the second trigger signal is the same type of trigger signal as the first trigger signal, or the same trigger signal.
Wherein the same type of trigger signal is generated based on different trigger operations and the same trigger signal is generated based on the same trigger operations.
Step S605: and transmitting the second trigger signal to the processing equipment in the third mode through the first channel.
Step S605 is identical to step S205 in embodiment 2, and will not be described in detail in this embodiment.
In summary, in the information processing method provided in this embodiment, obtaining a first trigger signal includes: receiving a first trigger signal sent by connected input equipment, wherein the first trigger signal is generated by an operating body executing a first trigger operation on the input equipment; obtaining a second trigger signal, correspondingly comprising: and receiving a second trigger signal sent by the connected input device, wherein the second trigger signal is generated by the operating body executing a second trigger operation on the input device. In this solution, the electronic device acts as an intermediate device and receives a trigger signal of the input device, which may be of the same type or the same type, when the processing device is in the first mode or the second mode and when it is in the third mode, and the same type or the same trigger signal is capable of triggering different responses of the processing device.
As shown in fig. 8, a flowchart of an embodiment 6 of an information processing method provided by the present application, the method includes the following steps:
Step S801: receiving a first trigger signal sent by a connected input device;
step S802: transmitting a first switching signal to a processing device via a first path in response to the first trigger signal if the connected processing device is in a first mode, such that the processing device can switch from the first mode to a third mode;
step S803: transmitting a second switching signal to the processing device through a second path in response to the first trigger signal if the connected processing device is in a second mode, such that the processing device can switch from the second mode to the third mode;
steps S801 to 803 are identical to steps S601 to 603 in embodiment 5, and are not described in detail in this embodiment.
Step S804: receiving a notification signal transmitted by the processing device through a first path based on a preset time period after transmission;
wherein the processing device switches to the third mode after the electronic device transmits the first switching signal/the second switching signal to the processing device.
After the processing device is switched to the third mode, the processing device needs to determine the connection device condition of each interface, generates a notification signal, and sends the notification signal to each interface of the processing device to obtain device information of the device connected with each interface, so as to realize the enumeration process of the processing device in the switching to the third mode.
For example, the processing device switches from the second mode to the third mode, and its respective interfaces are powered back up, the processing device needs to determine whether its respective devices are connected to the device and the connected device status.
Wherein the processing device is capable of switching to the third mode and generating the notification signal within a preset period of time after the transmission of the first/second switching signal.
Wherein the notification signal is transmitted to the electronic device via the first path.
Specifically, the notification signal may be an enumeration signal generated after the processing device switches to the third state.
Specifically, it may be determined that the processing apparatus has been switched to the third mode when the notification signal transmitted through the first path is received within the preset period of time.
Step S805: acquiring device information of the input device based on the notification signal;
and after receiving the notification signal, determining the device signals of all devices needing to acquire the interface connection of the processing device based on the notification signal.
And the electronic device is used as an intermediate connection device, and acquires the device information of the input device connected with the electronic device based on the notification signal.
The device information includes, but is not limited to, configuration of the device, manufacturer, product description, model, and the like.
Step S806: and feeding back the device information to the processing device through a first channel.
The device information is transmitted between the electronic device and the processing device through a first channel.
Wherein the first pathway is USB bus and the second pathway is CC configuration pathway. Between the electronic device and the processing device, configuration related information is transmitted through the second path, and the remaining information is transmitted through the first path.
Wherein the device information is transmitted to the processing device via the first path to cause the processing device to determine a condition in which it interfaces with the device.
The electronic device may also send its own device information to the processing device together with the device information of the input device.
If the electronic device is provided with an input structure, the electronic device can be used as an input device, and only the configuration information of the electronic device can be sent to the processing device.
Step S807: receiving a second trigger signal sent by connected input equipment, wherein the second trigger signal is generated by an operating body executing a second trigger operation on the input equipment;
step S808: and transmitting the second trigger signal to the processing equipment in the third mode through the first channel.
Steps S807-808 are identical to steps S604-605 in embodiment 5, and are not described in detail in this embodiment.
In summary, in the information processing method provided in this embodiment, if the input device is connected, after the processing device switches to the third mode, the notification signal sent by the processing device through the first path is received based on a preset time period after the transmission; acquiring device information of the input device based on the notification signal; and feeding back the device information to the processing device through a first channel. In the scheme, in a preset time period after the first switching signal/the second switching signal is sent, the processing device can switch to a third mode, and generates a notification signal, the processing device can be determined to be switched to the third mode through the notification signal sent by the first channel in the preset time period, and the target determines the device information of each interface connected device, then the parameter information of the input device is obtained based on the notification signal, and is fed back to the processing device through the first channel, so that the enumeration process of switching the processing device back to the third device is completed.
As shown in fig. 9, a flowchart of an embodiment 7 of an information processing method according to the present application is provided, and the method is applied to an electronic device, and includes the following steps:
Step S901: if a first detection signal from the processing equipment is received, determining that the processing equipment is in the first mode;
in this embodiment, an input structure is provided in the electronic device, and a user can execute a trigger operation through the input structure provided in the electronic device.
Wherein the first detection signal is used to detect whether a first path between the processing device and an electronic device (also acting as an input device) is clear.
If the processing device is in the first mode, it needs to maintain the first path unblocked, specifically, by generating a first detection signal and sending the first detection signal to the processing device, so as to detect the condition of the first path.
The first detection signal is sent according to a default period, and the duration of a specific period can be set according to actual conditions, which is not limited in this embodiment.
The electronic device may determine that the processing device is in the first mode if the electronic device is capable of receiving the first detection signal from the processing device.
It should be noted that, the second path may transmit other detection signals, and the detection signals transmitted by the second path are not limited in the present application.
Step S902: if the time when the first detection signal from the processing equipment is not received exceeds a time threshold, determining that the processing equipment is in the second mode;
The value of the time threshold is a value larger than the transmission period of the first detection signal, for example, 2 times or 5 times of the period, and the specific value of the time threshold is not limited in the application.
When the processing device is in the second mode, the first channel of the processing device is disconnected, and the first detection signal is not transmitted any more.
If the first detection signal from the processing device is not received after the time threshold is exceeded, the processing device is not generating the first detection signal, i.e. the processing device is in the second mode.
Step S903: obtaining a first trigger signal;
step S904: transmitting a first switching signal to a processing device via a first path in response to the first trigger signal if the connected processing device is in a first mode, such that the processing device can switch from the first mode to a third mode;
step S905: and if the connected processing equipment is in a second mode, responding to the first trigger signal, and transmitting a second switching signal to the processing equipment through a second path so that the processing equipment can be switched from the second mode to the third mode.
Steps S903-905 are identical to steps S101-103 in embodiment 1, and are not described in detail in this embodiment.
In summary, the information processing method provided in this embodiment further includes: if the time when the first detection signal from the processing equipment is not received exceeds a time threshold, determining that the processing equipment is in the second mode; and if a first detection signal from the processing equipment is received, determining that the processing equipment is in the first mode. In this solution, since the first detection signal is generated or not generated when the processing device is in a different mode, the mode in which the processing device is located can be determined based on whether the first detection signal from the processing device is received or not.
As shown in fig. 10, a flowchart of an embodiment 8 of an information processing method according to the present application is provided, and the method is applied to an electronic device, and includes the following steps:
step S1001: if a first detection signal from the processing equipment is received, determining that the processing equipment is in the first mode;
step S1001 is identical to step S901 in embodiment 7, and is not described in detail in this embodiment.
Step S1002: forwarding the first detection signal to a connected input device;
in this embodiment, the electronic device is further connected to an input device, where the input device is provided with an input structure, and a user can execute a triggering operation through the input structure provided in the input device.
The first detection signal is used for detecting whether a passage between the processing equipment and the input equipment is smooth, and the electronic equipment is arranged between the processing equipment and the input equipment, when the mode of the processing equipment is changed, the power of the USB interface of the processing equipment is cut off and the power of the USB interface is supplied again, and the passage between the input equipment and the electronic equipment is not affected, so that in the scheme, the electronic equipment only needs to determine whether the first detection signal of the processing equipment is received or not.
If the first detection signal of the processing device is received, the first detection signal needs to be further forwarded to the connected input device, so that the processing device detects whether the connection between the processing device and the input device is unobstructed or not based on the first detection signal, and the connection comprises two paths: a first path and a path between the processing device and the input device.
Step S1003: if the time when the first detection signal from the processing equipment is not received exceeds a time threshold, determining that the processing equipment is in the second mode;
step S1003 corresponds to step S902 in embodiment 7, and details thereof are not described in this embodiment.
Step S1004: generating a second detection signal, and transmitting the second detection signal to the input device;
wherein the second detection signal and the first detection signal satisfy the same condition.
Wherein if it is determined that the processing device is in the second mode, the electronic device still needs to detect whether its connection with the input device is clear.
Specifically, the electronic device generates a second detection signal that satisfies the same condition as the first detection signal, and sends the second detection signal to the input device to simulate the connection between the processing device and the input device.
In particular, the same condition is that the first detection signal is identical or similar to the second detection signal, and the first detection signal is indistinguishable from the second detection signal as seen from the input device side, which can respond to both detection signals in the same manner.
Step S1005: obtaining a first trigger signal;
step S1006: transmitting a first switching signal to a processing device via a first path in response to the first trigger signal if the connected processing device is in a first mode, such that the processing device can switch from the first mode to a third mode;
step S1007: and if the connected processing equipment is in a second mode, responding to the first trigger signal, and transmitting a second switching signal to the processing equipment through a second path so that the processing equipment can be switched from the second mode to the third mode.
Steps S1005-1007 are identical to steps S903-905 in embodiment 7, and detailed description is omitted in this embodiment.
In summary, the information processing method provided in this embodiment further includes: forwarding the first detection signal to a connected input device based on determining that the processing device is in a first mode; and generating a second detection signal based on the fact that the processing device is in the second mode, and sending the second detection signal to the input device, wherein the second detection signal and the first detection signal meet the same condition. In the scheme, if the electronic equipment is connected with the input equipment, after the electronic equipment receives a first detection signal, the first detection signal is forwarded to the connected input equipment so as to keep the channel between the processing equipment and the input equipment connected; if the processing device is in the second mode, generating a second detection signal which meets the same condition as the first detection signal so as to keep the channel between the electronic device and the input device connected, so that the first trigger signal input by the input device can be obtained by the electronic device.
As shown in fig. 11, a flowchart of an embodiment 9 of an information processing method according to the present application is provided, and the method is applied to an electronic device, and includes the following steps:
Step S1101: obtaining a first trigger signal;
step S1101 is identical to step S101 in embodiment 1, and is not described in detail in this embodiment.
Step S1102: transmitting a first switching signal based on a first path in response to the first trigger signal;
the electronic device responds to the first trigger signal by default and sends a switching signal through a first channel.
Specifically, after the first trigger signal is obtained, the first switching signal is transmitted based on the default first path in response to the first trigger signal.
And, after the first switching signal is transmitted, starting to count time, and obtaining a count time to determine whether the notification signal is received through the first path within a preset time period.
If the processing device receives the first switching signal through the first channel, the processing device switches to the third mode, and after the processing device switches to the third mode, the processing device needs to determine the connection device condition of each interface, and the processing device generates a notification signal and sends the notification signal to each interface of the processing device to obtain device information of the devices connected by each interface, so as to realize the enumeration process of the processing device in switching to the third mode.
If the processing device can receive the first switching signal through the first channel, the processing device can switch to the third mode and generate the notification signal within a preset time period after the first switching signal is sent.
Step S1103: if a notification signal is received through a first channel within a preset time period after transmission, determining that the processing equipment is in a first mode;
if the notification signal is received through the first channel within a preset time period after the transmission, it is known that the first trigger signal transmitted through the first channel can be transmitted to the processing device, and the processing device is in the first mode and can receive the first trigger signal through the first channel.
If a notification signal sent by the processing device through the first channel is received, the processing device is indicated to respond to the first switching signal and has been switched to the third mode.
Step S1104: if the notification signal is not received through the first path within a preset time period after the transmission, determining that the processing equipment is in a second mode, and transmitting a second switching signal to the processing equipment through the second path.
If the notification signal is not received through the first channel within a preset time period after the transmission, the processing device is not responsive to the first switching signal, and the processing device can be determined to be in the second mode.
Thus, a second path is employed to send a second switching signal to the processing device to cause the processing device to switch from the second mode to the third mode.
And if the second switching signal is sent to the processing equipment through the second path, receiving a notification signal sent by the processing equipment through the first path within a preset time period, determining that the processing equipment is switched to a third state, and continuing to send the second trigger signal through the first path.
In an implementation, if the first trigger signal is obtained again, the first trigger signal is still sent through the first path.
In summary, the information processing method provided in this embodiment includes: transmitting a first switching signal based on a first path in response to the first trigger signal; if a notification signal is received through a first channel within a preset time period after transmission, determining that the processing equipment is in a first mode; if the notification signal is not received through the first path within a preset time period after the transmission, determining that the processing equipment is in a second mode, and transmitting a second switching signal to the processing equipment through the second path. In the scheme, in response to a first trigger signal, a switching signal is sent through a first channel, and whether the processing equipment is in a first mode or a second mode is determined based on whether a notification signal is received through the first channel in a preset time period after the switching signal is sent, if the processing equipment is in the second mode, the second switching signal is sent to the processing equipment through a second channel, so that the switching signal can be sent to the processing equipment.
As shown in fig. 12, a flowchart of an embodiment 10 of an information processing method according to the present application is provided, and the method is applied to an electronic device, and includes the following steps:
step S1201: obtaining a first trigger signal;
step S1201 corresponds to step S101 in embodiment 1, and details are not described in this embodiment.
Step S1202: transmitting the first trigger signal as a first switching signal to a processing device through a first path in response to the first trigger signal if the connected processing device is in a first mode, so that the processing device can switch from the first mode to a third mode;
and if the processing equipment is in the first mode, responding to the first trigger signal.
And the first trigger signal and the first channel adopt the same protocol, and the first trigger signal is used as a first switching signal to be transmitted to the processing equipment through the first channel.
Wherein the first trigger signal and the first switching signal are the same signal on different devices.
The protocol adopted by the first trigger signal may be a UBS bus protocol or the like.
Step S1203: if the connected processing equipment is in a second mode, responding to the first trigger signal, and generating a second switching signal according to the first trigger signal;
Wherein the second path and the first trigger signal employ different protocols, and when the processing device is in the second mode, the switching signal needs to be sent through the second path in response to the first trigger signal.
Specifically, a second switching signal is generated according to the first triggering signal.
The second path is a configuration channel, and the configuration event can be transmitted on the second path, and accordingly, the USB bus protocol information is converted into the configuration event.
It should be noted that a new event type support is added to the USB PD (USB Power Delivery, power transfer protocol) 3.1 specification (Universal Serial Bus Power Delivery Specification, revision 3.1, may 2021), which includes: power state change (Power State Change), power button press/Release (Power button Press/Release), controller initiates wake-up (Controller Initiated wake). The new PD specifications are supported by the Type-C host. The host terminal has the opportunity to wake up by the outside through a specific event on the CC channel on the Type-C port under the condition of keeping the super power saving (USB controller is closed and USB port power is closed).
Wherein in the present application, the received first trigger signal is converted to a standard wake-up event in the form of a power button press/Release (Power button Press/Release) or controller initiated wake-up (Controller Initiated wake) specified in the UBS PD3.1 specification.
Accordingly, in the present application, after the processing device receives the second switching signal, it is determined that the second switching signal is a standard wake-up event, and then a processor controller or the like of the processing device wakes up a structure that the processing device sleeps in a super power saving mode, and the controller or the like sleeps when the processing device is in the second mode, and does not control to supply power to the first path part in the interface, so that the first path cannot transmit a signal.
Step S1204: a second switching signal is transmitted to the processing device over a second path such that the processing device can switch from the second mode to the third mode.
After the second switching signal is generated, the second switching signal accords with a protocol of the second path, and the second switching signal is transmitted to the processing equipment through the second path, so that the processing equipment receives the second switching signal and switches to the third mode.
In summary, the information processing method provided in this embodiment further includes: transmitting the first trigger signal as a first switching signal to a processing device based on the processing device being in a first mode; and generating a second switching signal according to the first trigger signal based on the connected processing equipment being in a second mode. In the scheme, based on the fact that the processing equipment is in a first mode, the first trigger signal is directly used as a first switching signal to be sent to the processing equipment, and other processing is not needed; based on the processing equipment being in the second mode, generating a second switching signal according to the first trigger signal, enabling the conversion function, realizing the transmission of different switching signals for different channels, and ensuring that the processing equipment can receive the switching signal and switch to the third mode.
Corresponding to the embodiment of the information processing method provided by the application, the application also provides an embodiment of a device applying the information processing method.
As shown in fig. 13, a schematic structural diagram of an embodiment 1 of an information processing apparatus according to the present application is applied to an electronic device, where the electronic device is connected to a processing device, and the apparatus includes the following structures: a connection 1301 and a processor 1302;
wherein the connection means 1301 comprises a first path 1303 and a second path 1304 connecting processing apparatuses;
wherein, the processor 1302 is configured to obtain a first trigger signal;
transmitting a first switching signal to a processing device via a first path in response to the first trigger signal if the connected processing device is in a first mode, such that the processing device can switch from the first mode to a third mode;
transmitting a second switching signal to the processing device through a second path in response to the first trigger signal if the connected processing device is in a second mode, such that the processing device can switch from the second mode to the third mode;
wherein the power consumption of the first mode is lower than the power consumption of the third mode, and the power consumption of the second mode is lower than the power consumption of the third mode; the first passageway and the second passageway are different.
The processor is a structure with information processing capability in the electronic device, and the specific structure adopted by the processor is not limited in the application.
Wherein the connection device comprises a first interface comprising: a first pin and a second pin; the first pin corresponds to a first passage; the second pin corresponds to the second path.
As shown in fig. 14, a schematic diagram of a connection device employing a first interface 1401 that includes a first pin 1402 and a second pin 1403 is shown.
The first path corresponding to the first pin is used for transmitting UBS bus protocol data, and the second path is used for transmitting configuration event information.
In a specific implementation, the first interface is a USB typeC interface.
The UBS bus protocol data is a USB2.0 signal, particularly, USB DP/DN signal transmission is adopted, and the UBS bus protocol data is transmitted by two pins (D+ and D-) in a corresponding first interface; the configuration event information is transmitted through a configuration channel CC, and only one pin is needed in the corresponding first interface.
As shown in fig. 15, an application scenario of the present embodiment is schematically shown, where the scenario includes a processing device 1501 and an electronic device 1502; among other things, processing device 1501 has a USB controller (USB host controller), a power management unit (PMU, power management unit), and PD controller 1, (Power Delivery controller). Wherein the electronic device 1502 includes a processor therein.
The power management unit is used for managing the power supply condition of the USB controller in the processing equipment, wherein the power management unit supplies power to the USB controller when the processing equipment is in a first mode (power saving mode) or a third mode (normal running mode), the USB controller receives or transmits signals meeting the protocol of the USB controller through a USB bus (bus), and the power management unit stops being the USB controller when the processing equipment is in a second mode (super power saving mode), the USB controller stops running, and the USB controller cannot receive or transmit signals through the USB bus. And the PD controller can receive or transmit signals through the CC in each of three modes. The processor of the electronic device is connected with the USB controller of the processing device through a USB bus and connected with the PD controller 1 of the processing device through a Configuration Channel (CC). The target controller obtains a first trigger signal, and when the processing equipment is in a first mode, the target controller transmits a first switching signal to a USB controller of the processing equipment through a USB bus; when the processing device is in the second mode, a second switching signal is transmitted to the PD controller 1 of the processing device through the CC.
Optionally, after the processing device switches to the third mode, the processor is further configured to:
Obtaining a second trigger signal;
transmitting the second trigger signal to the processing device in the third mode through the first path;
wherein the power consumption of the first mode is higher than the power consumption of the second mode.
Optionally, before obtaining the first trigger signal, the processor is further configured to:
if the time when the first detection signal from the processing equipment is not received exceeds a time threshold, determining that the processing equipment is in the second mode;
and if a first detection signal from the processing equipment is received, determining that the processing equipment is in the first mode.
Optionally, the processor is configured to:
transmitting a first switching signal based on a first path in response to the first trigger signal;
if a notification signal is received through a first channel within a preset time period after transmission, determining that the processing equipment is in a first mode;
if the notification signal is not received through the first path within a preset time period after the transmission, determining that the processing equipment is in a second mode, and transmitting a second switching signal to the processing equipment through the second path.
The structural function of the processor may be explained in the foregoing method embodiment, which is not described in detail in this embodiment.
In summary, in the information processing apparatus provided in this embodiment, after the connected processing device is in the first mode or the second mode with two lower power consumption, after the first trigger signal is received, different switching signals are transmitted to the processing device through different paths based on different modes, so that the processing device is switched to the third mode with higher power consumption. According to the scheme, based on the fact that the processing equipment is in different modes and different modes for responding to the first trigger signals are adopted, the processing equipment can be switched to the third mode.
As shown in fig. 16, a schematic structural diagram of an embodiment 2 of an information processing apparatus according to the present application is applied to an electronic device, where the electronic device is connected to a processing device, and the apparatus includes the following structures: a connection means 1601, a processor 1602 and a second interface 1603;
the structure of the connection device 1601 is identical to that of embodiment 1, and details thereof are omitted in this embodiment.
Wherein the second interface 1603 is configured to connect to an input device capable of generating a first trigger signal or a second trigger signal based on a received trigger operation;
if the processing equipment is in a first mode, a first interface receives a first detection signal sent by the processing equipment, and the processor forwards the first detection signal to a connected input equipment through a second interface;
If the processing device is in the second mode, the processor generates a second detection signal, and sends the second detection signal to the connected input device through the second interface, wherein the second signal and the first signal meet the same condition.
In this embodiment, the electronic device is an intermediate connection device as a processing device and an input device.
When the processing device is in the first mode, the processing device generates a first detection signal, the first detection signal is used for detecting whether a passage between the processing device and the input device is smooth, and an electronic device is arranged between the processing device and the input device, so that the electronic device only needs to forward the received first detection signal to the input device.
When the processing device is in the second mode, the processing device does not generate the first detection signal any more, the electronic device simulates the processing device to generate the second detection signal, and forwards the second detection signal to the input device.
Wherein after the processing device switches to the third mode, the processor is further configured to:
receiving a notification signal transmitted by the processing device through a first path based on a preset time period after transmission; acquiring device information of the input device based on the notification signal; and feeding back the device information to the processing device through a first channel.
Fig. 17 is a schematic diagram of an application scenario in this embodiment, where the scenario includes a processing device 1701 and an electronic device 1702; among them, the processing apparatus 1701 has therein a USB controller (USB host controller), a power management unit (PMU, power management unit), and a PD controller 1, (Power Delivery controller). Wherein the processor in the electronic device 1702 includes a target controller and a PD controller 2.
The power management unit is used for managing the power supply condition of the USB controller in the processing equipment, wherein the power management unit supplies power to the USB controller when the processing equipment is in a first mode (power saving mode) or a third mode (normal running mode), the USB controller receives or transmits signals meeting the protocol of the USB controller through the USB bus, and the power management unit stops functioning as the USB controller when the processing equipment is in a second mode (super power saving mode), and the USB controller cannot receive or transmit signals through the USB bus. And the PD controller can receive or transmit signals through the CC in each of three modes.
The target controller of the electronic equipment is connected with the USB controller of the processing equipment through a USB bus, and the PD controller 2 of the electronic equipment is connected with the PD controller 1 of the processing equipment through a CC.
The target controller obtains a first trigger signal, and when the processing equipment is in a first mode, the target controller transmits a first switching signal to a USB controller of the processing equipment through a USB bus; when the processing device is in the second mode, the first trigger signal is sent to the PD controller 2, so that the PD controller 2 converts the trigger signal into a wake-up event to transmit a second switching signal to the PD controller 1 of the processing device through the CC.
And, when the processing device is in the first mode and the third mode, the USB controller thereof generates a detection signal which is transmitted to the target controller of the electronic device through the USB bus, and the target controller forwards the detection signal to the input device to detect the connection between the processing device and the input device; when the processing device is in the second mode, the USB controller does not generate a detection signal, and the target controller of the electronic device simulates the USB controller to generate the detection signal and sends the detection signal to the input device so as to realize detection of connection of the input device.
In summary, the information processing apparatus provided in this embodiment further includes: a second interface for connecting an input device capable of generating a first trigger signal or a second trigger signal based on a received trigger operation; if the processing equipment is in a first mode, a first interface receives a first detection signal sent by the processing equipment, and the processor forwards the first detection signal to a connected input equipment through a second interface; if the processing device is in the second mode, the processor generates a second detection signal, and sends the second detection signal to the connected input device through the second interface, wherein the second signal and the first signal meet the same condition. In the scheme, if the electronic equipment is connected with the input equipment, after the electronic equipment receives a first detection signal, the first detection signal is forwarded to the connected input equipment so as to keep the channel between the processing equipment and the input equipment connected; if the processing device is in the second mode, generating a second detection signal which meets the same condition as the first detection signal so as to keep the channel between the electronic device and the input device connected, so that the first trigger signal input by the input device can be obtained by the electronic device.
As shown in fig. 18, a schematic structural diagram of an embodiment 3 of an information processing apparatus according to the present application is applied to an electronic device, where the electronic device is connected to a processing device, and the apparatus includes the following structures: a connection device 1801, a processor 1802, and an input unit 1803;
the structure functions of the connection device 1801 and the processor 1802 are the same as those of the embodiment 1, and the description thereof is omitted in this embodiment.
Wherein, the input unit 1803 is configured to receive a trigger operation, where the trigger operation is used to generate a first trigger signal or a second trigger signal.
In this embodiment, an input unit is provided in the electronic device, and a user can execute a trigger operation through the input unit provided in the electronic device.
The electronic equipment and the processing equipment form a system, a user executes a trigger operation on the electronic equipment, and the electronic equipment detects the trigger operation to generate a trigger signal.
The electronic device may be a mouse, a microphone, a camera, etc. device having a connection means and a processor.
For example, when the electronic device is a mouse, the input unit may be a key.
The second triggering operation and the first triggering operation are different in triggering time, and may be the same operation or different operations.
Wherein the second trigger signal is the same type of trigger signal as the first trigger signal or the same trigger signal.
Wherein the same type of trigger signal is generated based on different trigger operations and the same trigger signal is generated based on the same trigger operations.
In summary, in the information processing apparatus provided in this embodiment, the electronic device is used as a device that receives a trigger operation, and when the processing device is in the first mode or the second mode and is in the third mode, the trigger operation received by the electronic device generates a trigger signal, where the trigger signal may be of the same type or the same type, and the same type or the same trigger signal may trigger different responses of the processing device.
Corresponding to the embodiment of the information processing method provided by the application, the application also provides the electronic equipment and the readable storage medium corresponding to the information processing method.
Wherein, this electronic equipment includes: a memory, a processor;
wherein the memory stores a processing program;
the processor is configured to load and execute the processing program stored in the memory, so as to implement the steps of the information processing method according to any one of the above.
The method for realizing the information processing of the electronic equipment is realized by referring to the embodiment of the information processing method.
Wherein the readable storage medium has stored thereon a computer program which is invoked and executed by a processor to implement the steps of the information processing method according to any of the above.
The computer program stored in the readable storage medium is executed to implement the information processing method, and the embodiment of the information processing method is referred to.
In the present specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different point from other embodiments, and identical and similar parts between the embodiments are all enough to refer to each other. The device provided in the embodiment corresponds to the method provided in the embodiment, so that the description is simpler, and the relevant points refer to the description of the method.
The previous description of the provided 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 provided herein.
Claims (10)
1. An information processing method, comprising:
obtaining a first trigger signal;
transmitting a first switching signal to a processing device via a first path in response to the first trigger signal if the connected processing device is in a first mode, such that the processing device can switch from the first mode to a third mode;
transmitting a second switching signal to the processing device through a second path in response to the first trigger signal if the connected processing device is in a second mode, such that the processing device can switch from the second mode to the third mode;
wherein the power consumption of the first mode is lower than the power consumption of the third mode, and the power consumption of the second mode is lower than the power consumption of the third mode; the first passageway and the second passageway are different.
2. The method of claim 1, further comprising, after the processing device switches to the third mode:
obtaining a second trigger signal;
transmitting the second trigger signal to the processing device in the third mode through the first path;
wherein the power consumption of the first mode is higher than the power consumption of the second mode.
3. The method according to claim 1,
The transmitting the first switching signal to the processing device via the first path comprises: transmitting the first switching signal to processing equipment through a first channel corresponding to the first pin;
the transmitting the second switching signal to the processing device through the second path includes: transmitting the second switching signal to processing equipment through a second path corresponding to the second pin;
wherein the second pin and the first pin are different pins of the same interface.
4. The method according to claim 1 or 2,
wherein obtaining the first trigger signal includes:
detecting a first trigger operation, and generating a first trigger signal based on the first trigger operation; or (b)
Receiving a first trigger signal sent by connected input equipment, wherein the first trigger signal is generated by an operating body executing a first trigger operation on the input equipment;
the method comprises the steps of obtaining a second trigger signal, correspondingly comprising:
detecting a second trigger operation, and generating a second trigger signal based on the second trigger operation; or (b)
And receiving a second trigger signal sent by the connected input device, wherein the second trigger signal is generated by the operating body executing a second trigger operation on the input device.
5. The method according to claim 4, wherein the method comprises,
If the input device is connected, the processing device switches to the third mode, and then further includes:
receiving a notification signal transmitted by the processing device through a first path based on a preset time period after transmission;
acquiring device information of the input device based on the notification signal;
and feeding back the device information to the processing device through a first channel.
6. The method of claim 1, further comprising, prior to obtaining the first trigger signal:
if the time when the first detection signal from the processing equipment is not received exceeds a time threshold, determining that the processing equipment is in the second mode;
and if a first detection signal from the processing equipment is received, determining that the processing equipment is in the first mode.
7. The method of claim 6, further comprising:
forwarding the first detection signal to a connected input device based on determining that the processing device is in a first mode;
and generating a second detection signal based on the fact that the processing device is in the second mode, and sending the second detection signal to the input device, wherein the second detection signal and the first detection signal meet the same condition.
8. The method according to claim 1, comprising:
Transmitting a first switching signal based on a first path in response to the first trigger signal;
if a notification signal is received through a first channel within a preset time period after transmission, determining that the processing equipment is in a first mode;
if the notification signal is not received through the first path within a preset time period after the transmission, determining that the processing equipment is in a second mode, and transmitting a second switching signal to the processing equipment through the second path.
9. The method of claim 1, further comprising:
transmitting the first trigger signal as a first switching signal to a processing device based on the processing device being in a first mode;
and generating a second switching signal according to the first trigger signal based on the connected processing equipment being in a second mode.
10. An information processing apparatus comprising:
a connection device including a first path and a second path connecting the processing apparatus;
a processor for obtaining a first trigger signal;
transmitting a first switching signal to a processing device via a first path in response to the first trigger signal if the connected processing device is in a first mode, such that the processing device can switch from the first mode to a third mode;
Transmitting a second switching signal to the processing device through a second path in response to the first trigger signal if the connected processing device is in a second mode, such that the processing device can switch from the second mode to the third mode;
wherein the power consumption of the first mode is lower than the power consumption of the third mode, and the power consumption of the second mode is lower than the power consumption of the third mode; the first passageway and the second passageway are different.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210332792.7A CN114625236B (en) | 2022-03-31 | 2022-03-31 | Information processing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210332792.7A CN114625236B (en) | 2022-03-31 | 2022-03-31 | Information processing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114625236A CN114625236A (en) | 2022-06-14 |
CN114625236B true CN114625236B (en) | 2023-11-21 |
Family
ID=81903382
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210332792.7A Active CN114625236B (en) | 2022-03-31 | 2022-03-31 | Information processing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114625236B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2013222279A (en) * | 2012-04-16 | 2013-10-28 | Denso Corp | Semiconductor device |
GB201508994D0 (en) * | 2015-02-25 | 2015-07-08 | Cirrus Logic Int Semiconductor Ltd | Connectors for audio data transfer |
CN107015629A (en) * | 2017-03-30 | 2017-08-04 | 联想(北京)有限公司 | Processing method and electronic equipment |
JP2017223836A (en) * | 2016-06-15 | 2017-12-21 | ブラザー工業株式会社 | Image processing device |
WO2018125504A1 (en) * | 2016-12-31 | 2018-07-05 | Intel Corporation | Apparatuses for periodic universal serial bus (usb) transaction scheduling at fractional bus intervals |
CN111381661A (en) * | 2019-11-28 | 2020-07-07 | 联想(北京)有限公司 | Control method, control device, electronic equipment and storage medium |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100714426B1 (en) * | 2005-09-05 | 2007-05-07 | 삼성전자주식회사 | Computer system and its power supply method |
US9009514B2 (en) * | 2012-04-11 | 2015-04-14 | Broadcom Corporation | System and method for switching in an energy efficient network |
-
2022
- 2022-03-31 CN CN202210332792.7A patent/CN114625236B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2013222279A (en) * | 2012-04-16 | 2013-10-28 | Denso Corp | Semiconductor device |
GB201508994D0 (en) * | 2015-02-25 | 2015-07-08 | Cirrus Logic Int Semiconductor Ltd | Connectors for audio data transfer |
JP2017223836A (en) * | 2016-06-15 | 2017-12-21 | ブラザー工業株式会社 | Image processing device |
WO2018125504A1 (en) * | 2016-12-31 | 2018-07-05 | Intel Corporation | Apparatuses for periodic universal serial bus (usb) transaction scheduling at fractional bus intervals |
CN107015629A (en) * | 2017-03-30 | 2017-08-04 | 联想(北京)有限公司 | Processing method and electronic equipment |
CN111381661A (en) * | 2019-11-28 | 2020-07-07 | 联想(北京)有限公司 | Control method, control device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN114625236A (en) | 2022-06-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9310838B2 (en) | Power management method for switching power mode of a computer system based on detection of a human interface device | |
CN102778943B (en) | Condition control method, device and portable terminal device | |
AU2012325677B2 (en) | PC power monitoring | |
US10565145B2 (en) | Felxconnect disconnect detection | |
US9141401B2 (en) | Method for switching system state and portable terminal | |
US10884467B2 (en) | System events in universal serial bus (USB) devices | |
TW200821846A (en) | System and method for universal serial bus hub port reversal | |
EP4290731A1 (en) | Charging control method, electronic device, and charging control system | |
CN110018976B (en) | Method for USB master device to respond to USB slave device and related device | |
CN103294376A (en) | Electronic equipment and display method, as well as terminal equipment and method of switching mode | |
US12093078B2 (en) | Docking stations | |
CN114625236B (en) | Information processing method and device | |
US9652254B2 (en) | System status control method and portable terminal | |
CN105094715B (en) | Electronic equipment | |
US11221664B2 (en) | Power state indications | |
CN101105710A (en) | USB apparatus control device and method | |
CN114924639B (en) | Electronic device and method for waking up micro control unit | |
CN108933906B (en) | Management system and management method of high-definition video matrix input/output daughter card | |
JP2017078957A (en) | Information processing apparatus, control method of information processing apparatus, and program | |
JP6938991B2 (en) | Information processing equipment, programs and information processing systems | |
CN108733418A (en) | Electronic system and control method | |
CN106020406A (en) | Control method, connector and electronic equipment | |
KR20100113653A (en) | Apparatus and method for power management of computer and monitor | |
CN118779262A (en) | Data sharing method, device and port replicator | |
CN118073922A (en) | Apparatus, power supply method, device, medium and program product for power supply connection |
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 |