CN114625236A - Information processing method and device - Google Patents

Information processing method and device Download PDF

Info

Publication number
CN114625236A
CN114625236A CN202210332792.7A CN202210332792A CN114625236A CN 114625236 A CN114625236 A CN 114625236A CN 202210332792 A CN202210332792 A CN 202210332792A CN 114625236 A CN114625236 A CN 114625236A
Authority
CN
China
Prior art keywords
mode
processing device
signal
path
trigger
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.)
Granted
Application number
CN202210332792.7A
Other languages
Chinese (zh)
Other versions
CN114625236B (en
Inventor
陈忠华
罗雄鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN202210332792.7A priority Critical patent/CN114625236B/en
Publication of CN114625236A publication Critical patent/CN114625236A/en
Application granted granted Critical
Publication of CN114625236B publication Critical patent/CN114625236B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/3287Power saving characterised by the action undertaken by switching off individual functional units in the computer system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2201/00Indexing scheme relating to error detection, to error correction, and to monitoring
    • G06F2201/86Event-based monitoring
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2201/00Indexing scheme relating to error detection, to error correction, and to monitoring
    • G06F2201/865Monitoring of software

Abstract

The application provides an information processing method and device, comprising the following steps: obtaining a first trigger signal; if the connected processing device is in a first mode, transmitting a first switching signal to the processing device through a first path in response to the first trigger signal, so that the processing device can be switched from the first mode to a third mode; if the connected processing device is in a second mode, transmitting a second switching signal to the processing device through a second path in response to the first trigger signal, so 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, the power consumption of the second mode is lower than the power consumption of the third mode; the first and second pathways are different.

Description

Information processing method and device
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 computers, desktop computers) can support the wake-up function of the input device connected through the interface to some extent, but in some cases cannot support it.
For example, after the host product enters the super power saving mode, the controller in the host product for controlling the interface and the power of the interface are both 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 the above, the present application provides an information processing method, comprising:
an information processing method comprising:
obtaining a first trigger signal;
if the connected processing device is in a first mode, transmitting a first switching signal to the processing device through a first path in response to the first trigger signal, so that the processing device can be switched from the first mode to a third mode;
if the connected processing device is in a second mode, transmitting a second switching signal to the processing device through a second path in response to the first trigger signal, so 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, the power consumption of the second mode is lower than the power consumption of the third mode; the first and second pathways are different.
Optionally, in the 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 over 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 a first switching signal to a processing device through a first path includes: transmitting the first switching signal to processing equipment through a first path corresponding to a first pin;
the transmitting a second switching signal to the processing device over a second path includes: transmitting the second switching signal to a processing device through a second path corresponding to a second pin;
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 comprises:
detecting a first trigger operation, and generating a first trigger signal based on the first trigger operation; or
Receiving a first trigger signal sent by a connected input device, wherein the first trigger signal is generated by an operation body executing a first trigger operation on the input device;
wherein, obtain the second trigger signal, correspondingly include:
detecting a second trigger operation, and generating a second trigger signal based on the second trigger operation; or
And receiving a second trigger signal sent by the connected input device, wherein the second trigger signal is generated by an operation body executing a second trigger operation on the input device.
Alternatively, the method described above,
if the input device is connected, after the processing device is switched to the third mode, the method further includes:
receiving a notification signal transmitted by the processing device through a first path within a preset time period after transmission;
acquiring device information of the input device based on the notification signal;
and feeding back the equipment information to the processing equipment through a first path.
Optionally, before obtaining the first trigger signal, the method further includes:
determining that the processing device is in the second mode if the time for which the first detection signal from the processing device is not received exceeds a time threshold;
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 includes:
based on determining that the processing device is in the first mode, forwarding the first detection signal to a connected input device;
based on determining that the processing device is in the second mode, generating a second detection signal, 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 path within a preset time period after the transmission, determining that the processing device is in a first mode;
and if the notification signal is not received through the first channel within a preset time period after the sending, determining that the processing equipment is in the second mode, and sending a second switching signal to the processing equipment through the second channel.
Optionally, the method further includes:
based on the processing device being in a first mode, sending the first trigger signal as a first switching signal to a processing device;
and generating a second switching signal according to the first trigger signal based on the fact that the connected processing equipment is in the second mode.
An information processing apparatus comprising:
a connection device including a first path and a second path connecting the processing apparatuses;
a processor for obtaining a first trigger signal;
if the connected processing device is in a first mode, transmitting a first switching signal to the processing device through a first path in response to the first trigger signal, so that the processing device can be switched from the first mode to a third mode;
if the connected processing device is in a second mode, transmitting a second switching signal to the processing device through a second path in response to the first trigger signal, so 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, the power consumption of the second mode is lower than the power consumption of the third mode; the first and second pathways are different.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on the provided drawings without creative efforts.
Fig. 1 is a flowchart of an information processing method embodiment 1 provided in the present application;
fig. 2 is a flowchart of an information processing method embodiment 2 provided in the present application;
fig. 3 is a flowchart of an information processing method embodiment 3 provided in the present application;
fig. 4 is a schematic system diagram of embodiment 3 of an information processing method provided in the present application;
fig. 5 is a flowchart of an information processing method embodiment 4 provided in the present application;
fig. 6 is a flowchart of an information processing method embodiment 5 provided by the present application;
FIG. 7 is a system diagram of an embodiment 5 of an information processing method provided by the present application;
FIG. 8 is a flow chart of embodiment 6 of an information processing method provided by the present application;
fig. 9 is a flowchart of embodiment 7 of an information processing method provided in the present application;
FIG. 10 is a flow chart 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 in the present application;
fig. 12 is a flowchart of an embodiment 10 of an information processing method provided in the present application;
fig. 13 is a schematic structural diagram of an information processing apparatus embodiment 1 provided in the present application;
FIG. 14 is a schematic diagram of a connection device in embodiment 1 of an information processing device provided in the present application;
fig. 15 is a schematic view of an application scenario of an information processing apparatus embodiment 1 provided in the present application;
fig. 16 is a schematic structural diagram of an information processing apparatus embodiment 2 provided in the present application;
fig. 17 is a schematic view of an application scenario of embodiment 2 of an information processing apparatus provided in the present application;
fig. 18 is a schematic structural diagram of an information processing apparatus according to embodiment 3 of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The electronic device for executing the information processing method used in the present application may be an external device that connects the processing device and the input device, or the input device may have two signal transmission paths between the electronic device and the processing device, and transmit different signals.
As shown in fig. 1, a flowchart of embodiment 1 of an information processing method provided by 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;
and under the condition that the processing equipment is in the first mode or the second mode, the obtained trigger signal is a first trigger signal, and the first trigger signal is used for triggering the processing equipment to be switched into the third mode.
The first trigger signal is generated based on a trigger operation, and the trigger operation may be a trigger operation executed on the input device or a trigger operation executed on an input structure of the electronic device.
As an example, the user presses an enter key on a keyboard, and based on the key trigger operation, a first trigger signal is generated.
Step S102: if the connected processing device is in a first mode, transmitting a first switching signal to the processing device through a first path in response to the first trigger signal, so that the processing device can be switched from the first mode to a third mode;
the electronic equipment and the processing equipment are provided with two paths for transmitting signals, namely 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 mode, and the processing device can switch from the first switching mode to the third mode after receiving the first switching signal.
Step S103: if the connected processing device is in a second mode, a second switching signal is transmitted to the processing device over a second path in response to the first trigger signal, 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.
For example, the processing device is in a sleep mode in which the first mode and the second mode are different modes, and the processing device is in a normal operation mode in which it can receive 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 channel between the electronic equipment and the processing equipment.
In a specific implementation, when the processing device is in the first mode, the first path between the processing device and the electronic device is capable of transmitting signals, and when the processing device is in the second mode, the first path between the processing device and the electronic device is not capable of transmitting signals.
The second switching signal is a signal for triggering the processing device to switch to the third mode, 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 further performs mode switching, a transmission path for transmitting a 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, the transmission of a first switching signal to the processing device through a first path is prohibited, and 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 path.
In summary, in the information processing method provided in this embodiment, when a connected processing device is in two first modes or second modes with lower power consumption, after receiving a first trigger signal, different switching signals are transmitted to the processing device through different paths based on different modes, so that the processing device is switched to a third mode with higher power consumption. In the scheme, the processing equipment can be switched to the third mode by adopting different modes of responding to the first trigger signal based on the fact that the processing equipment is in different modes.
As shown in fig. 2, a flowchart of 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: if the connected processing device is in a first mode, transmitting a first switching signal to the processing device through a first path in response to the first trigger signal, so that the processing device can be switched from the first mode to a third mode;
step S203: if the connected processing device is in a second mode, transmitting a second switching signal to the processing device through a second path in response to the first trigger signal, so that the processing device can switch from the second mode to the third mode;
steps S201 to 203 are the same as 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 at different timings, and the contents/types may be the same or different.
For example, the fact that the contents of the second trigger signal and the first trigger signal are the same means that the same key is triggered; 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 of the same type, which means the same type of operation trigger signal, such as signals generated by operating a keyboard or signals generated by operating a mouse;
for example, the second trigger signal and the first trigger signal are different in type, which means that the second trigger signal is not a signal triggered by one type of operation, such as a signal 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 manner completely different from the switching mode.
Step S205: transmitting the second trigger signal to the processing device in the third mode over the first path.
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, when the processing device is in the second mode, part of the applications are stopped, the processing device is disconnected from the first path of the electronic device, and only the second path is maintained; and in the first mode, only part of the applications are stopped, and the first path and the second path of the processing equipment and the electronic equipment are conducted. Also, the application stopped in the second mode is greater than or equal to the application stopped in the first mode.
And when the processing equipment is in the third mode, the application of the processing equipment runs normally and is conducted with the first channel and the second channel of the electronic equipment.
As an example, the first path is a USB (Universal Serial Bus) Bus, and the second path is a CC (Configuration Channel). When the USB interface is powered off, the first channel is disconnected. In the first mode, the processing device is in a power saving mode, only part of the applications are stopped, only part of the controller is stopped, and the USB interface is kept powered on.
It should be noted that, in the embodiment of the present application, a USB interface is taken as an example for description, but the specific implementation is not limited to this, an interface of another protocol may also be used in the processing device and the electronic device, and when the processing device is in a certain specific mode, the interface cannot perform signal transmission with the electronic device due to power failure or some reason, and when the processing device is in another specific mode, the interface is powered back on or other reasons enable signal transmission with the electronic device.
And after the processing equipment is switched to the third mode, the subsequently received second trigger signal is transmitted through the first channel.
Specifically, after the processing device switches back to the third mode, power is supplied to the USB interface, the USB bus is turned on, and the received trigger signal (the second trigger signal) is transmitted through the USB bus.
The second trigger signal is used to trigger the processing device to respond in a manner completely different from switching to the third mode, and the response is specifically performed for an application running in the processing device.
For example, the second trigger signal is the 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 over 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 signal is transmitted to the processing device through the first path, which is used as a default path for transmitting the second trigger signal.
As shown in fig. 3, a flowchart of embodiment 3 of an information processing method provided in the present application, where the method is applied to an electronic device, includes the following steps:
step S301: obtaining a first trigger signal;
step S301 is the same as 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 path corresponding to a first pin, so that the processing equipment can be switched from the first mode to a third mode;
the electronic device is provided with an interface, and the interface is provided with a plurality of pins, such as a first pin and a second pin.
The first pin corresponds to the first channel, and the second pin corresponds to the second channel.
And if the connected processing equipment is in the first mode, responding to the first trigger signal, and transmitting the first switching signal to the processing equipment through the first path corresponding to the first pin.
Step S303: and if the connected processing equipment is in a second mode, responding to the first trigger signal, and transmitting the second switching signal to the processing equipment through a second path corresponding to a 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 the 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 according to the mode of the connected processing equipment, and then the pin is transmitted to the processing equipment according to the path corresponding to the pin.
If the interface is a USB-typeC interface, the electronic equipment is connected with the processing equipment through a USB-typeC data line. The USB-typeC interface comprises two paths, wherein the USB bus is used as one path for transmitting signals of a USB bus protocol, and the CC is used as the other path for transmitting signals of other protocols.
Fig. 4 is a schematic system diagram, which includes a processing device 401 and an electronic device 402, where the processing device and the electronic device respectively use a USB-typeC interface, where the interface corresponds to two channels, including a first channel USB-bus and a second channel CC.
Of course, the connection mode between the processing device and the electronic device is not limited to the above.
In a specific implementation, an interface is provided in the electronic device, the interface has a plurality of pins, a specific pin can correspond to both the first path and the second path, and different paths adopt different protocols, so that when responding to the first trigger signal, and when determining different paths, the protocol corresponding to the path is adopted, so that the determined path can transmit a corresponding switching signal.
For example, it is determined that the first path is adopted to transmit the switching signal, and a protocol corresponding to the first path is adopted to transmit the first switching signal; and determining to adopt the second path to transmit the switching signal and adopt a protocol corresponding to the second path to transmit the second switching signal.
In a specific implementation, the electronic device may further include two interfaces, where the first interface has a first pin corresponding to the first path, and the second interface has a 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; and if the target adopts the second path, determining a second pin corresponding to the second path, and sending the second switching signal to the second path through the second pin.
In summary, in an information processing method provided by this embodiment, the transmitting a first switching signal to a processing device through a first path includes: transmitting the first switching signal to processing equipment through a first path corresponding to a first pin; the transmitting a second switching signal to the processing device over a second path includes: transmitting the second switching signal to a processing device through a second path corresponding to a 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 the switching signal is transmitted to the processing equipment through the paths, the 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 embodiment 4 of an information processing method provided by the present application 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 keyboard and mouse, a microphone, a camera or other devices with functions of collecting input information, and the electronic device and the processing device have two paths, and the two paths can transmit different switching signals.
For example, when a user clicks a certain 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: if the connected processing device is in a first mode, transmitting a first switching signal to the processing device through a first path in response to the first trigger signal, so that the processing device can be switched from the first mode to a third mode;
step S503: if the connected processing device is in a second mode, transmitting a second switching signal to the processing device through a second path in response to the first trigger signal, so that the processing device can switch from the second mode to the third mode;
steps S501 to 503 are the same as steps S201 to 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 trigger operation and the first trigger operation are only triggered at different timings, and may be the same operation or different operations.
For example, the same operation may be that both trigger operations are clicking the space bar in the keyboard; the different operation may be that the first trigger operation and the second trigger operation are different keys in 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 operation.
Step S505: transmitting the second trigger signal to the processing device in the third mode over the first path.
Step S505 is the same as step S205 in embodiment 2, and details are not described in this embodiment.
In summary, in the information processing method provided in this embodiment, obtaining the 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: detecting a second trigger operation, and generating a second trigger signal based on the second trigger operation. In this scheme, the electronic device serves 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 the same type or the same type, and the same type or the same trigger signal can trigger different responses of the processing device.
As shown in fig. 6, a flowchart of embodiment 5 of an information processing method provided by the present application includes the following steps:
step S601: receiving a first trigger signal sent by a connected input device, wherein the first trigger signal is generated by an operation body executing a first trigger operation on the input device;
in this embodiment, the electronic device is further connected to an input device, the input device is provided with an input structure, and a user can execute a trigger operation through the input structure provided in the input device.
The electronic equipment is used as a peripheral of the processing equipment and is used for connecting the processing equipment and the input equipment.
Specifically, the electronic device may employ a docking station, a display, and the like, but is not limited thereto.
For example, the electronic device is a keyboard and mouse, a microphone, a camera or other devices with functions of collecting input information, and generally, a path is formed between the input device and the electronic device, and the path can transmit the same type of signals as the first path.
Accordingly, the first trigger signal may be a mouse movement signal, a mouse click signal, a keyboard click signal (such as a key value), a wake-up sound message, or the like.
For example, when a user clicks a certain 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.
Fig. 7 is a schematic system diagram including 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, wherein the interface corresponds to two paths, including a first path USB-bus and a second path CC; and the electronic equipment and the input equipment adopt a USB-typeA interface, and the electronic equipment and the input equipment have a path which can transmit the same information as the first path. The electronic device selects different paths to transmit the first switching signal or the second switching signal based on the mode of the processing device.
Step S602: if the connected processing device is in a first mode, transmitting a first switching signal to the processing device through a first path in response to the first trigger signal, so that the processing device can be switched from the first mode to a third mode;
step S603: if the connected processing device is in a second mode, transmitting a second switching signal to the processing device through a second path in response to the first trigger signal, so that the processing device can switch from the second mode to the third mode;
steps S601 to 603 are the same as steps S201 to 203 in embodiment 2, and are not described in detail in this embodiment.
Step S604: receiving a second trigger signal sent by a connected input device, wherein the second trigger signal is generated by an operation body executing a second trigger operation on the input device;
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 trigger operation and the first trigger operation are only different in trigger timing, and may be the same operation or different operations.
For example, the same operation may be that the two trigger operations are clicking the same key in the keyboard/mouse; the different operations may be that the first trigger operation and the second trigger operation are to click different keys in the keyboard/mouse, respectively.
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 operation.
Step S605: transmitting the second trigger signal to the processing device in the third mode over the first path.
Step S605 is the same as step S205 in embodiment 2, and details are not described in this embodiment.
In summary, in the information processing method provided in this embodiment, obtaining the first trigger signal includes: receiving a first trigger signal sent by a connected input device, wherein the first trigger signal is generated by an operation body executing a first trigger operation on the input device; 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 an operation body executing a second trigger operation on the input device. In the scheme, the electronic device serves as an intermediate device and receives the trigger signals of the input devices, the trigger signals can be of the same type or the same type, and when the processing device is in the first mode or the second mode and the third mode, the same type or the same trigger signals can trigger different responses of the processing device.
As shown in fig. 8, a flowchart of embodiment 6 of an information processing method provided by the present application is a method, including the following steps:
step S801: receiving a first trigger signal sent by connected input equipment;
step S802: if the connected processing device is in a first mode, transmitting a first switching signal to the processing device through a first path in response to the first trigger signal, so that the processing device can be switched from the first mode to a third mode;
step S803: if the connected processing device is in a second mode, transmitting a second switching signal to the processing device through a second path in response to the first trigger signal, so that the processing device can switch from the second mode to the third mode;
steps S801 to 803 are the same as 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 within a preset time period after transmission;
wherein the processing device switches to the third mode after the electronic device transmits the first/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, 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 devices connected to each interface, so as to implement an enumeration process of the processing device in switching to the third mode.
For example, if the processing device switches from the second mode to the third mode and each interface thereof is powered again, the processing device needs to determine whether or not a device is connected to each device thereof and the condition of the connected device.
Wherein the processing device is switchable to the third mode and generates the notification signal within a preset time period after the first/second switching signal is transmitted.
Wherein the notification signal is transmitted to the electronic device through 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 device has switched to the third mode when the notification signal transmitted through the first path is received within the preset time period.
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 the devices connected with the interface of the processing device to be acquired based on the notification signal.
And if the electronic equipment is used as the intermediate connection equipment, acquiring the equipment information of the input equipment connected with the electronic equipment based on the notification signal.
The device information includes, but is not limited to, various information such as configuration, manufacturer, product description, model, etc. of the device.
Step S806: and feeding back the equipment information to the processing equipment through a first path.
And the electronic equipment and the processing equipment transmit the equipment information through a first channel.
Wherein the first lane is a USB bus and the second lane is a CC configuration channel. Between the electronic device and the processing device, configuration-related information is transmitted over the second path, and the remaining information is transmitted over the first path.
The device information is transmitted to the processing device through the first path, so that the processing device determines the condition of the interface connection device.
The electronic equipment can also send own equipment information and the equipment information of the input equipment to the processing equipment.
If the electronic device is provided with an input structure and the electronic device can be used as an input device, only the configuration information of the electronic device can be sent to the processing device.
Step S807: receiving a second trigger signal sent by a connected input device, wherein the second trigger signal is generated by an operation body executing a second trigger operation on the input device;
step S808: transmitting the second trigger signal to the processing device in the third mode over the first path.
Steps S807-808 are the same as steps S604-605 in embodiment 5, and are not described in detail in this embodiment.
In summary, in the information processing method provided by this embodiment, if an input device is connected, after the processing device switches to the third mode, the notification signal sent by the processing device through the first channel is received within a preset time period after the processing device sends the notification signal; acquiring device information of the input device based on the notification signal; and feeding back the equipment information to the processing equipment through a first path. In this scheme, the processing device may switch to the third mode and generate the notification signal within a preset time period after the first switching signal/the second switching signal is transmitted, and the notification signal transmitted through the first path within the preset time period may determine that the processing device has switched to the third mode and the target determines device information of devices connected to their respective interfaces, and then obtain parameter information of the input device based on the notification signal and feed back the parameter information to the processing device through the first path, thereby completing an enumeration process in which the processing device switches back to the third device.
As shown in fig. 9, a flowchart of embodiment 7 of an information processing method provided by the present application, where the method is applied to an electronic device, 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 the 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 to be kept clear, specifically, a first detection signal is generated and sent to the processing device to detect the condition of the first path.
The first detection signal is sent according to an appointed period, and the duration of the specific period may be set according to an actual situation, which is not limited in this embodiment.
If the electronic device can receive the first detection signal from the processing device, it may be determined that the processing device is in the first mode.
It should be noted that the second path may transmit other detection signals, and the detection signal transmitted by the second path is not limited in this application.
Step S902: determining that the processing device is in the second mode if the time for which the first detection signal from the processing device is not received exceeds a time threshold;
the value of the time threshold is a value greater than a 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 this application.
When the processing equipment is in the second mode, the first path is disconnected, and the first detection signal is not transmitted.
If the first detection signal from the processing device is not received beyond the time threshold, it indicates that the processing device is not generating the first detection signal any more, that is, the processing device is in the second mode.
Step S903: obtaining a first trigger signal;
step S904: if the connected processing device is in a first mode, transmitting a first switching signal to the processing device through a first path in response to the first trigger signal, so that the processing device can be switched from the first mode to a third mode;
step S905: if the connected processing device is in a second mode, a second switching signal is transmitted to the processing device over a second path in response to the first trigger signal, such that the processing device can switch from the second mode to the third mode.
Steps S903 to 905 are the same as steps S101 to 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: determining that the processing device is in the second mode if the time for which the first detection signal from the processing device is not received exceeds a time threshold; and if a first detection signal from the processing equipment is received, determining that the processing equipment is in the first mode. In this scheme, since the processing device generates the first detection signal or does not generate the detection signal when the processing device is in the 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.
As shown in fig. 10, a flowchart of embodiment 8 of an information processing method provided in the present application, where the method is applied to an electronic device, includes the following steps:
step S1001: if a first detection signal from the processing device is received, determining that the processing device is in the first mode;
step S1001 is the same as step S901 in embodiment 7, and details are not described 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, the input device is provided with an input structure, and a user can execute a trigger operation through the input structure provided in the input device.
The first detection signal is used for detecting whether a path between the processing device and the input device is unblocked, and the electronic device is arranged between the processing device and the input device, when the mode of the processing device changes, the processing device is powered off and powered back on the USB interface, and the path between the input device and the electronic device is not affected.
Wherein, if receive this processing apparatus's first detected signal, need further to forward this first detected signal to the input device of connection to make this processing apparatus detect whether its connection with input device is unobstructed based on its first detected signal, should connect and include two routes: a first path and a path between the processing device and the input device.
Step S1003: determining that the processing device is in the second mode if the time for which the first detection signal from the processing device is not received exceeds a time threshold;
step S1003 is the same as step S902 in embodiment 7, and details are not described in this embodiment.
Step S1004: generating a second detection signal, and sending the second detection signal to the input device;
wherein the second detection signal and the first detection signal satisfy the same condition.
If the processing device is determined to be in the second mode, the electronic device still needs to detect whether the connection between the electronic device and the input device is smooth.
Specifically, the electronic device generates a second detection signal satisfying the same condition as the first detection signal, and sends the second detection signal to the input device, so as to simulate the connection between the processing device and the input device.
Specifically, the same condition is that the first detection signal is the same as or similar to the second detection signal, and the first detection signal is indistinguishable from the second detection signal as viewed from the input device side and can respond to the two detection signals in the same manner.
Step S1005: obtaining a first trigger signal;
step S1006: if the connected processing device is in a first mode, transmitting a first switching signal to the processing device through a first path in response to the first trigger signal, so that the processing device can be switched from the first mode to a third mode;
step S1007: if the connected processing device is in a second mode, a second switching signal is transmitted to the processing device over a second path in response to the first trigger signal, such that the processing device can switch from the second mode to the third mode.
Steps S1005-1007 are the same as steps S903-905 in embodiment 7, and are not described in detail in this embodiment.
In summary, the information processing method provided in this embodiment further includes: based on determining that the processing device is in the first mode, forwarding the first detection signal to a connected input device; based on determining that the processing device is in the second mode, generating a second detection signal, 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 receiving a first detection signal, the electronic equipment forwards the first detection signal to the connected input equipment so as to keep the channel between the processing equipment and the input equipment to be connected; if the processing device is in the second mode, generating a second detection signal meeting the same condition as the first detection signal so as to keep the channel between the electronic device and the input device connected, so as to ensure 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 embodiment 9 of an information processing method provided in the present application, where the method is applied to an electronic device, includes the following steps:
step S1101: obtaining a first trigger signal;
step S1101 is the same as step S101 in embodiment 1, and details are not described 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 the first path.
Specifically, after obtaining the first trigger signal, the first switching signal is sent based on the default first path in response to the first trigger signal.
And after the first switching signal is sent, timing is started, and timing time is obtained to determine whether the notification signal is received through the first channel within a preset time period.
If the processing device can receive the first switching signal through the first path, 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 device connection condition of each interface of the processing device, 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 devices connected to each interface, so that an enumeration process of the processing device in switching to the third mode is realized.
Wherein, if the processing device is capable of receiving the first switching signal through the first path, the processing device is capable of switching to the third mode and generating the notification signal within a preset time period after transmitting the first switching signal.
Step S1103: if a notification signal is received through a first path within a preset time period after the transmission, determining that the processing device is in a first mode;
if the notification signal is received through the first path within a preset time period after the transmission, it is known that the first trigger signal transmitted through the first path 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 path.
And if the notification signal sent by the processing device through the first path is received, the processing device is indicated to respond to the first switching signal and has switched to the third mode.
Step S1104: and if the notification signal is not received through the first channel within a preset time period after the sending, determining that the processing equipment is in the second mode, and sending a second switching signal to the processing equipment through the second channel.
If the notification signal is not received through the first path within a preset time period after the transmission, it indicates that the processing device does not respond to the first switching signal, and it may be determined that the processing device is in the second mode.
Accordingly, a second switching signal is sent to the processing device using the second path to cause the processing device to switch from the second mode to the third mode.
If the second switching signal is sent to the processing equipment through the second path, the notification signal sent by the processing equipment through the first path is received within a preset time period, the processing equipment is determined to be switched to the third state, and the first path is continuously adopted to send the second trigger signal subsequently.
In a specific 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 path within a preset time period after the transmission, determining that the processing device is in a first mode; and if the notification signal is not received through the first channel within a preset time period after the sending, determining that the processing equipment is in the second mode, and sending a second switching signal to the processing equipment through the second channel. In the scheme, a switching signal is sent through a first path in response to a first trigger signal, whether a notification signal is received through the first path within a preset time period after sending is determined, the processing equipment is in a first mode or a second mode, and if the processing equipment is in the second mode, a second switching signal is sent to the processing equipment through the second path, 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 provided in the present application is applied to an electronic device, and the method includes the following steps:
step S1201: obtaining a first trigger signal;
step S1201 is the same as step S101 in embodiment 1, and details are not described in this embodiment.
Step S1202: if the connected processing device is in a first mode, responding to the first trigger signal, and transmitting the first trigger signal as a first switching signal to the processing device through a first path, so that the processing device can be switched from the first mode to a third mode;
and responding to the first trigger signal if the processing equipment is in the first mode.
And if the first trigger signal and the first path adopt the same protocol, the first trigger signal is used as a first switching signal and is transmitted to the processing equipment through the first path.
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;
the second path and the first trigger signal adopt different protocols, when the processing equipment is in the second mode, and when the processing equipment responds to the first trigger signal, the switching signal needs to be sent through the second path.
Specifically, a second switching signal is generated according to the first trigger signal.
The second path is a configuration channel, and configuration events can be transmitted on the second path, and correspondingly, the USB bus protocol information is converted into the configuration events.
It should be noted that, a new event type support is added to the USB PD (USB Power Delivery) 3.1 Specification (Universal Serial Bus Power Delivery Specification, Revision 3.1, May 2021), and includes: power State Change (Power State Change), Power button Press/Release (Power button Press/Release), Controller Initiated wake up (Controller Initiated wake). The new PD specification described above is supported by a Type-C host. Therefore, the host has an opportunity to be awakened by a specific event on the CC channel on the Type-C port from the outside under the situation of keeping super power saving (the USB controller is closed, and the USB port power is closed).
In the present application, the received first trigger signal is converted into a standard wake-up event in the form of a Power button Press/Release (Power button Press/Release) or a 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 determines that the second switching signal is a standard wake-up event, and wakes up a structure of a processor controller and the like of the processing device that is in a sleep mode in the super power saving mode, where the structure of the controller and the like is in the sleep mode when the processing device is in the second mode, and no longer controls power supply to the first path portion in the interface, so that the first path may not transmit a signal.
Step S1204: transmitting a second switching signal 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 conforms to the protocol of the second path, and the second switching signal is transmitted to the processing device through the second path, so that the processing device receives the second switching signal and switches to the third mode.
In summary, the information processing method provided in this embodiment further includes: based on the processing device being in a first mode, sending the first trigger signal as a first switching signal to a processing device; and generating a second switching signal according to the first trigger signal based on the fact that the connected processing equipment is in the second mode. In the scheme, based on the fact that the processing equipment is in the first mode, the first trigger signal is directly used as the first switching signal and sent to the processing equipment, and other processing is not needed; based on the second mode of the processing equipment, the second switching signal is generated according to the first trigger signal, the switching function is enabled, different switching signals are transmitted aiming at different channels, and the processing equipment is ensured to be capable of receiving the switching signal and switching 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.
Fig. 13 is a schematic structural diagram of an embodiment 1 of an information processing apparatus provided in the present application, where the apparatus is applied to an electronic device, and the electronic device is connected to a processing device, and the apparatus includes the following structures: a connection device 1301 and a processor 1302;
the connection device 1301 includes a first path 1303 and a second path 1304 for connecting processing devices;
wherein, the processor 1302 is configured to obtain a first trigger signal;
if the connected processing device is in a first mode, transmitting a first switching signal to the processing device through a first path in response to the first trigger signal, so that the processing device can be switched from the first mode to a third mode;
if the connected processing device is in a second mode, transmitting a second switching signal to the processing device through a second path in response to the first trigger signal, so 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, the power consumption of the second mode is lower than the power consumption of the third mode; the first and second pathways are different.
The processor is a structure having information processing capability in the electronic device, and the specific structure adopted by the processor is not limited in this application.
Wherein the connection device comprises a first interface, the first interface comprising: a first pin and a second pin; the first pin corresponds to a first channel; the second pin corresponds to a second path.
Fig. 14 is a schematic diagram of a connection device, which employs a first interface 1401 including a first pin 1402 and a second pin 1403.
The first channel corresponding to the first pin is used for transmitting UBS bus protocol data, and the second channel 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, and is transmitted by a USB DP/DN signal, 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 required to be used in the corresponding first interface.
Fig. 15 is a schematic diagram of an application scenario of the present embodiment, where the scenario includes a processing device 1501 and an electronic device 1502; among them, the processing device 1501 has a USB controller (USB host controller), a Power Management Unit (PMU), and a PD controller 1 (Power Delivery controller). The electronic device 1502 includes a processor therein.
The processing equipment comprises a power management unit, a USB bus (bus), a power supply unit and a power supply unit, wherein the power supply unit is used for managing the power supply condition of the USB controller in the processing equipment, when the processing equipment is in a first mode (power saving mode) or a third mode (normal operation mode), the power supply unit supplies power to the USB controller, the USB controller receives or transmits signals meeting the protocol of the USB controller through the USB bus, when the processing equipment is in a second mode (super power saving mode), the power supply unit stops being the USB controller, the USB controller stops operating, and the USB controller cannot receive or transmit signals through the USB bus. And the PD controller is capable of receiving or transmitting signals through the CC in each of the three modes. The processor of the electronic device is connected with the USB controller of the processing device through the 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 transmits a first switching signal to a USB controller of the processing equipment through the USB bus when the processing equipment is in a first mode; 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 over 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:
determining that the processing device is in the second mode if the time for which the first detection signal from the processing device is not received exceeds a time threshold;
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 path within a preset time period after the transmission, determining that the processing device is in a first mode;
and if the notification signal is not received through the first channel within a preset time period after the sending, determining that the processing equipment is in the second mode, and sending a second switching signal to the processing equipment through the second channel.
The structural functions of the processor may refer to the explanations in the foregoing method embodiments, which are not described in detail in this embodiment.
In summary, in the information processing apparatus provided in this embodiment, when a connected processing device is in two first modes or second modes with lower power consumption, after receiving a first trigger signal, different switching signals are transmitted to the processing device through different paths based on different modes, so that the processing device is switched to a third mode with higher power consumption. According to the scheme, the processing equipment can be switched to the third mode by adopting different modes of responding to the first trigger signal based on the fact that the processing equipment is in different modes.
Fig. 16 is a schematic structural diagram of an embodiment 2 of an information processing apparatus provided in the present application, where the apparatus is applied to an electronic device, and the electronic device is connected to a processing device, and the apparatus includes the following structures: a connection apparatus 1601, a processor 1602, and a second interface 1603;
the structural function of the connecting device 1601 is the same as the corresponding structure in embodiment 1, and details are not described in this embodiment.
The second interface 1603 is used for connecting an input device, and the input device can generate a first trigger signal or a second trigger signal based on a received trigger operation;
if the processing equipment is in the first mode, the first interface receives a first detection signal sent by the processing equipment, and the processor forwards the first detection signal to the connected input equipment through the second interface;
and if the processing equipment is in the second mode, the processor generates a second detection signal and sends the second detection signal to the connected input equipment through the second interface, and the second signal and the first signal meet the same condition.
In this embodiment, the electronic device is an intermediate connection device serving 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 path between the processing device and the input device is unblocked, 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.
Wherein, when the processing device is in the second mode, it no longer generates the first detection signal, and 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 within a preset time period after transmission; acquiring device information of the input device based on a notification signal; and feeding back the equipment information to the processing equipment through a first path.
Fig. 17 is a schematic diagram of an application scenario of the present embodiment, where the scenario includes a processing device 1701 and an electronic device 1702; among them, the processing apparatus 1701 has a USB controller (USB host controller), a Power Management Unit (PMU), and a PD controller 1 (Power Delivery controller). Among other things, the processor in the electronic device 1702 includes a target controller and a PD controller 2.
The processing device comprises a power management unit, a USB bus and a processing device, wherein the power management unit is used for managing the power supply condition of the USB controller in the processing device, when the processing device is in a first mode (power saving mode) or a third mode (normal operation mode), the power management unit supplies power to the USB controller, the USB controller receives or transmits signals meeting the protocol of the USB controller through the USB bus, when the processing device is in a second mode (super power saving mode), the power management unit stops being the USB controller, the USB controller stops operating, and the USB controller cannot receive or transmit signals through the USB bus. And the PD controller is capable of receiving or transmitting signals through the CC in each of the 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 transmits a first switching signal to a USB controller of the processing equipment through the USB bus when the processing equipment is in a first mode; 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 and transmits a second switching signal to the PD controller 1 of the processing device via the CC.
When the processing device is in the first mode and the third mode, the USB controller generates a detection signal, the detection signal is transmitted to a target controller of the electronic device through the USB bus, and the target controller forwards the detection signal to the input device so as to detect the connection between the processing device and the input device; when the processing equipment is in the second mode, the USB controller does not generate the detection signal, and the target controller of the electronic equipment simulates the USB controller to generate the detection signal and sends the detection signal to the input equipment so as to realize the detection of the connection of the input equipment.
In summary, the information processing apparatus provided in this embodiment further includes: a second interface for connecting an input device, the input device being capable of generating a first trigger signal or a second trigger signal based on a received trigger operation; if the processing equipment is in the first mode, the first interface receives a first detection signal sent by the processing equipment, and the processor forwards the first detection signal to the connected input equipment through the second interface; and if the processing equipment is in the second mode, the processor generates a second detection signal and sends the second detection signal to the connected input equipment through the second interface, and 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 receiving a first detection signal, the electronic equipment forwards the first detection signal to the connected input equipment so as to keep the channel between the processing equipment and the input equipment to be connected; if the processing device is in the second mode, generating a second detection signal meeting the same condition as the first detection signal so as to keep the channel between the electronic device and the input device connected, so as to ensure that the first trigger signal input by the input device can be obtained by the electronic device.
Fig. 18 is a schematic structural diagram of an information processing apparatus embodiment 3 provided in the present application, where the apparatus is applied to an electronic device, and 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 structural functions of the connection device 1801 and the processor 1802 are consistent with the corresponding structures in embodiment 1, and are not described in detail in this embodiment.
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 disposed in the electronic device, and a user can execute a trigger operation through the input unit disposed 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 keyboard mouse, a microphone, a camera, or the like having a connection device and a processor.
For example, when the electronic device is a keyboard and mouse, the input unit may be a key.
The second trigger operation and the first trigger operation are only triggered at different timings, 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 operation.
In summary, in an information processing apparatus provided in this embodiment, an electronic device serves as a device that receives a trigger operation, and when a processing device is in a first mode or a second mode and is in a third mode, the trigger operation received by the electronic device generates a trigger signal, where the trigger signal may be the same type or the same type, and the same type or the same trigger signal can 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 to implement the steps of the information processing method according to any one of the above.
Specifically, the information processing method implemented by the electronic device may refer to the foregoing information processing method embodiment.
Wherein the readable storage medium has stored thereon a computer program, which is called and executed by a processor, implementing the steps of the information processing method according to any one of the above.
Specifically, the computer program stored in the readable storage medium executes the information processing method, and the information processing method embodiments described above may be referred to.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. For the device provided by the embodiment, the description is relatively simple because the device corresponds to the method provided by the embodiment, and the relevant points can be referred to the method part for description.
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;
if the connected processing device is in a first mode, transmitting a first switching signal to the processing device through a first path in response to the first trigger signal, so that the processing device can be switched from the first mode to a third mode;
if the connected processing device is in a second mode, transmitting a second switching signal to the processing device through a second path in response to the first trigger signal, so 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 and second pathways are different.
2. The method of claim 1, after the processing device switches to the third mode, further comprising:
obtaining a second trigger signal;
transmitting the second trigger signal to the processing device in the third mode over the first path;
wherein the power consumption of the first mode is higher than the power consumption of the second mode.
3. The method of claim 1, wherein the first and second light sources are selected from the group consisting of,
the transmitting a first switching signal to a processing device through a first path comprises: transmitting the first switching signal to processing equipment through a first path corresponding to a first pin;
the transmitting a second switching signal to the processing device over a second path includes: transmitting the second switching signal to a processing device through a second path corresponding to a second pin;
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 comprises:
detecting a first trigger operation, and generating a first trigger signal based on the first trigger operation; or
Receiving a first trigger signal sent by a connected input device, wherein the first trigger signal is generated by an operation body executing a first trigger operation on the input device;
wherein, obtain the second trigger signal, correspondingly include:
detecting a second trigger operation, and generating a second trigger signal based on the second trigger operation; or
And receiving a second trigger signal sent by the connected input device, wherein the second trigger signal is generated by an operation body executing a second trigger operation on the input device.
5. The method of claim 4, wherein the first and second light sources are selected from the group consisting of,
if the input device is connected, after the processing device is switched to the third mode, the method further includes:
receiving a notification signal transmitted by the processing device through a first path within a preset time period after transmission;
acquiring device information of the input device based on the notification signal;
and feeding back the equipment information to the processing equipment through a first path.
6. The method of claim 1, prior to obtaining the first trigger signal, further comprising:
determining that the processing device is in the second mode if the time for which the first detection signal from the processing device is not received exceeds a time threshold;
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:
based on determining that the processing device is in the first mode, forwarding the first detection signal to a connected input device;
based on determining that the processing device is in the second mode, generating a second detection signal, 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 of 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 path within a preset time period after the transmission, determining that the processing device is in a first mode;
and if the notification signal is not received through the first channel within a preset time period after the sending, determining that the processing equipment is in the second mode, and sending a second switching signal to the processing equipment through the second channel.
9. The method of claim 1, further comprising:
based on the processing device being in a first mode, sending the first trigger signal as a first switching signal to a processing device;
and generating a second switching signal according to the first trigger signal based on the fact that the connected processing equipment is in the second mode.
10. An information processing apparatus comprising:
a connection device including a first path and a second path connecting the processing apparatuses;
a processor for obtaining a first trigger signal;
if the connected processing device is in a first mode, transmitting a first switching signal to the processing device through a first path in response to the first trigger signal, so that the processing device can be switched from the first mode to a third mode;
if the connected processing device is in a second mode, transmitting a second switching signal to the processing device through a second path in response to the first trigger signal, so 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, the power consumption of the second mode is lower than the power consumption of the third mode; the first and second pathways are different.
CN202210332792.7A 2022-03-31 2022-03-31 Information processing method and device Active CN114625236B (en)

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 true CN114625236A (en) 2022-06-14
CN114625236B 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 (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070055900A1 (en) * 2005-09-05 2007-03-08 Samsung Electronics Co., Ltd. Computer system and power supplying method thereof
US20130275792A1 (en) * 2012-04-11 2013-10-17 Broadcom Corporation System and Method for Switching in an Energy Efficient Network
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 forming 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

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070055900A1 (en) * 2005-09-05 2007-03-08 Samsung Electronics Co., Ltd. Computer system and power supplying method thereof
US20130275792A1 (en) * 2012-04-11 2013-10-17 Broadcom Corporation System and Method for Switching in an Energy Efficient Network
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 forming 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
CN114625236B (en) 2023-11-21

Similar Documents

Publication Publication Date Title
US8001406B2 (en) Method and apparatus for managing power of portable information device
US9310838B2 (en) Power management method for switching power mode of a computer system based on detection of a human interface device
US7139861B2 (en) Input/output unit access switching system and method
US10007316B2 (en) State control method and apparatus and portable terminal
TW493120B (en) Waking up system and method for universal serial bus of wireless computer input device
TW200821846A (en) System and method for universal serial bus hub port reversal
EP2953003A1 (en) Touch screen terminal and working method thereof
US20120260084A1 (en) Method for switching system state and portable terminal
CN103294376A (en) Electronic equipment and display method, as well as terminal equipment and method of switching mode
US10884467B2 (en) System events in universal serial bus (USB) devices
KR20130071357A (en) Control system and relay apparatus
KR20080058904A (en) Image display apparatus having network communicating function and control method thereof
WO2008085798A1 (en) Wireless power state control
US9652254B2 (en) System status control method and portable terminal
CN114596853A (en) Control device and audio processing method
CN114625236B (en) Information processing method and device
WO2023045683A1 (en) Charging control method, electronic device, and charging control system
CN110300447A (en) A kind of control method and equipment
US20180314317A1 (en) Electronic device and method
JP2017078957A (en) Information processing apparatus, control method of information processing apparatus, and program
JP6938991B2 (en) Information processing equipment, programs and information processing systems
CN108933906B (en) Management system and management method of high-definition video matrix input/output daughter card
CN106020406B (en) Control method, connector and electronic equipment
WO2019059922A1 (en) Power indications
CN109739564B (en) Electronic equipment and control method

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