Information processing method, apparatus and device
Patent Information
- Application Number
- CN202210917315.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-01
- Publication Date
- 2026-09-22
- Estimated Expiration
- 2042-08-01
AI Technical Summary
[0002]目前,两个设备建立连接后,两个设备间仅能进行信息传输,智能性较差
[0041]通过以上方案可知,本申请提供的一种信息处理方法、装置及设备,第一设备可以获得模式切换指令,响应于模式切换指令,将第一设备由第一工作模式切换为第二工作模式,其中,在第一工作模式下,第一设备的目标部件的控制权限属于第一设备,在第二工作模式下,目标部件的控制权限属于与第一设备建立通信连接的第二设备。基于本申请,第一设备的目标部件的控制权限不再专属于第一设备,而是可以由与第一设备建立通信连接的第二设备进行控制,提高了第一设备与第二设备间交互的智能性。
Smart Images

Figure CN115292690B_ABST
Abstract
Description
Technical Field
[0001] This application relates to an information processing method, apparatus, and device. Background Technology
[0002] Currently, after two devices establish a connection, they can only transmit information between them, resulting in poor intelligence. Summary of the Invention
[0003] This application provides an information processing method, apparatus, and device, including the following technical solutions:
[0004] An information processing method for a first device, the method comprising:
[0005] Obtain mode switching command;
[0006] In response to the mode switching command, the first device is switched from a first operating mode to a second operating mode; wherein, in the first operating mode, the control authority of the target component of the first device belongs to the first device; in the second operating mode, the control authority of the target component belongs to the second device that has established a communication connection with the first device.
[0007] Preferably, in the above method, obtaining the mode switching instruction includes:
[0008] If the first device establishes a communication connection with the second device through the target class interface, the component list of the first device is displayed; in response to the selection instruction for the target component in the component list, a mode switching instruction is generated.
[0009] or,
[0010] A target input operation is detected; in response to the target input operation and the pre-selected target component of the first device, a mode switching instruction is generated;
[0011] or,
[0012] If the first device establishes a communication connection with the second device through the target class interface, and the target component of the first device is selected in advance, a mode switching instruction is generated;
[0013] or,
[0014] A target input operation is detected; in response to the target input operation, a component list of the first device is displayed; in response to a selection instruction for a target component in the component list, a mode switching instruction is generated.
[0015] The above method, preferably, also includes:
[0016] After switching the first device from the first working mode to the second working mode, if a target input operation is detected, the control authority of the display screen of the first device is switched from the second device to the first device.
[0017] The interactive information is displayed on the screen, and the interactive information is used to determine whether to switch the first device from the second working mode to the first working mode.
[0018] If, based on the interaction information, it is determined that the first device should be switched from the second working mode to the first working mode, then the first device should be switched from the second working mode to the first working mode.
[0019] Preferably, in the above method, switching the first device from the first working mode to the second working mode includes:
[0020] If the first device establishes a communication connection with the second device through the target class interface, the first device will switch from the first working mode to the second working mode.
[0021] The above method, preferably, also includes:
[0022] If the first device also establishes a communication connection with the third device through a non-target class interface, a list of objects is displayed; the objects in the list of objects include the target class interface, the non-target class interface, and the first device;
[0023] If a selection instruction is received for the target class interface in the object list, the first device is switched from the first operating mode to the second operating mode.
[0024] The above method, preferably, also includes:
[0025] If a switching instruction is received for the non-target interface and the target interface, the control authority over the display screen of the first device will be switched from the second device to the third device.
[0026] The above method, preferably, also includes:
[0027] Monitor whether the target application meets the conditions;
[0028] In response to the target application meeting the conditions, the first device is switched from the second operating mode to the first operating mode.
[0029] The above method, preferably, also includes:
[0030] Obtain the invocation command for the target component sent by the second device;
[0031] The target component responds to the invocation command.
[0032] An information processing device, comprising:
[0033] The acquisition module is used to acquire mode switching instructions;
[0034] A switching module is used to switch the first device from a first working mode to a second working mode in response to the mode switching command; wherein, in the first working mode, the control authority of the target component of the first device belongs to the first device; and in the second working mode, the control authority of the target component belongs to the second device that has established a communication connection with the first device.
[0035] A device, the device being a first device, the first device having a target component, the first device being capable of establishing a communication connection with a second device; the first device having a first operating mode and a second operating mode; the first device being capable of switching from the first operating mode to the second operating mode, or switching from the second operating mode to the first operating mode, when certain conditions are met;
[0036] In the first operating mode, the control authority of the target component of the first device belongs to the first device; in the second operating mode, the control authority of the target component belongs to the second device that has established a communication connection with the first device.
[0037] An electronic device, comprising:
[0038] Memory, used to store programs;
[0039] A processor for calling and executing the program in the memory, thereby implementing the steps of the information processing method as described in any of the preceding claims.
[0040] A readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the information processing method as described in any of the preceding claims.
[0041] As can be seen from the above solutions, the information processing method, apparatus, and device provided in this application allow a first device to receive a mode switching command. In response to the mode switching command, the first device switches from a first operating mode to a second operating mode. In the first operating mode, control of the target component belongs to the first device; in the second operating mode, control of the target component belongs to a second device that has established a communication connection with the first device. Based on this application, the control of the target component of the first device is no longer exclusively owned by the first device, but can be controlled by a second device that has established a communication connection with the first device, thus improving the intelligence of the interaction between the first and second devices. Attached Figure Description
[0042] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0043] Figure 1 A flowchart illustrating an implementation of the information processing method provided in this application embodiment;
[0044] Figure 2 A flowchart illustrating one implementation of the mode switching instruction provided in this application embodiment;
[0045] Figure 3 An example diagram showing the connection of a first device and a second device via a TYPE-C interface, as provided in the embodiments of this application;
[0046] Figure 4a An example diagram of a component list provided for an embodiment of this application;
[0047] Figure 4b Another example diagram of the component list provided for embodiments of this application;
[0048] Figure 5 Another structural diagram of obtaining mode switching instructions provided in an embodiment of this application;
[0049] Figure 6 Another structural diagram of obtaining mode switching instructions provided in an embodiment of this application;
[0050] Figure 7 A schematic diagram of the structure of an information processing apparatus provided in an embodiment of this application;
[0051] Figure 8 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application.
[0052] The terms "first," "second," "third," "fourth," etc. (if present) in the specification, claims, and accompanying drawings are used to distinguish similar parts and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in a sequence other than that illustrated herein. Detailed Implementation
[0053] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.
[0054] The information processing method provided in this application embodiment can be used in an electronic device (referred to as the first device for ease of description and distinction). The first device may have an independent operating system. For example, the operating system may be the Android operating system or other operating systems, such as the Windows operating system. For example, the first device may be a large-screen display device for office collaboration, such as a conference all-in-one machine.
[0055] Please see Figure 1 The flowchart below shows an implementation of the information processing method provided in this application, which may include:
[0056] Step S101: Obtain the mode switching instruction.
[0057] Optionally, the mode switching command can be triggered by the user performing a preset operation to generate the mode switching command on the first device. For example, the user can click a specific button on the first device to trigger the generation of the mode switching command, or the user can perform a specific gesture to trigger the generation of the mode switching command on the first device, or the user can trigger the generation of the mode switching command on the first device through specific voice content.
[0058] When the first device generates a mode switching command triggered by a gesture, the first device has an image acquisition unit to acquire the user's gesture information. When the first device generates a mode switching command triggered by voice, the first device has a voice acquisition unit to acquire the user's voice content.
[0059] Optionally, the mode switching command can also be automatically generated by the first device according to preset logic.
[0060] Optionally, the mode switching instruction can be triggered after the second device establishes a communication connection with the first device, or it can be triggered before the second device establishes a communication connection with the first device.
[0061] Step S102: In response to the mode switching command, the first device is switched from the first working mode to the second working mode; wherein, in the first working mode, the control authority of the target component of the first device belongs to the first device; in the second working mode, the control authority of the target component belongs to the second device that has established a communication connection with the first device.
[0062] The target component is determined before receiving the mode switching command. Therefore, the target component can be determined after the second device establishes a communication connection with the first device, or it can be determined before the second device establishes a communication connection with the first device.
[0063] As an example, the target component can be an input or output component of the first device. For instance, the target component can be a camera, microphone, speaker, or a certain type of interface of the first device.
[0064] In the first operating mode, the first device has control authority over the target component, while the second device does not. In the second operating mode, the first device does not have control authority over the target component, while the second device has control authority over the target component.
[0065] Optionally, in the first operating mode, the first device also has control over the display screen of the first device (here, the display screen refers to the system screen), while the second device does not have control over the display screen of the first device; in the second operating mode, the first device does not have control over the display screen of the first device, while the second device still has control over the display screen of the first device. That is, the aforementioned target component does not include the display screen of the first device.
[0066] The information processing method provided in this application allows a first device to receive a mode switching command and, in response to the command, switch from a first operating mode to a second operating mode. In the first operating mode, control of the target component belongs to the first device; in the second operating mode, control of the target component belongs to a second device that has established a communication connection with the first device. Based on this application, control of the target component of the first device is no longer exclusively owned by the first device, but can be controlled by a second device that has established a communication connection with the first device. In other words, after the first and second devices establish a communication connection, not only can information be transmitted between the two devices, but the second device can also control the target component of the first device, thereby improving the intelligence of the interaction between the first and second devices.
[0067] As mentioned above, a mode switching command can be obtained before the first device and the second device establish a communication connection. To achieve this, a switching circuit can be set up in the first device for each target component. In the switching circuit set up for a certain target component (for ease of description and distinction, it is called target component A), one path (for ease of description and distinction, it is called the first path) is used to establish a communication connection between target component A and a specific component of the first device so that the first device can control target component A. The other path in the switching circuit 1 (for ease of description and distinction, it is called the second path) is used to establish a communication connection between target component A and the target interface (the target interface is used for the first device and the second device to establish a communication connection).
[0068] When the first device has the aforementioned switching circuit, when it is necessary to switch the first device from the first operating mode to the second operating mode, the user can trigger the first device to obtain a mode switching command before the first device and the second device establish a communication connection through the target interface, or the user can trigger the first device to obtain a switching command after the first device and the second device establish a communication connection through the target interface. Specifically, regardless of whether the first device obtains a mode switching command before the first device and the second device establish a communication connection through the target interface, or after the first device and the second device establish a communication connection through the target interface, the user can trigger the first device to generate a mode switching command by performing a preset operation.
[0069] Of course, if the first device has the aforementioned switching circuit, the first device can also automatically trigger the generation of a mode switching command according to preset logic.
[0070] In the first operating mode, target component A of the first device is connected to the first path of switching circuit 1, while not connected to the second path of switching circuit 1. This means target component A is attached to the first device, establishing a communication connection between target component A and a specific component of the first device, while disconnecting the communication connection with the target interface. Upon receiving a mode switching command, the first device can respond by disconnecting target component A from the first path of switching circuit 1 and establishing a connection between target component A and the second path of switching circuit 1. This means target component A is attached to the second device, causing the first device to switch from the first operating mode to the second operating mode. Thus, in the second operating mode, if the second device establishes a communication connection with the first device through the target interface, the second device can establish a communication connection with target component A through the second path of switching circuit 1, thereby enabling the second device to control target component A of the first device.
[0071] By incorporating a switching circuit in the first device, the user can trigger the first device to obtain a mode switching command either before or after the first and second devices establish a communication connection via the target interface. This enhances user convenience. However, this method requires a switching circuit in the first device, making its structure complex. To simplify the structure of the first device, this application proposes implementing it based on port virtualization technology. This method requires the first device to establish a communication connection with the second device before generating the mode switching command, but it eliminates the need for a switching circuit in the first device, thus simplifying its structure.
[0072] Optionally, after receiving the mode switching command, the first device may respond to the mode switching command by using port virtualization technology to package and mount the port resources of the target component to the second device, so that the first device switches from the first working mode to the second working mode.
[0073] The target component can only be mounted on one device at a time.
[0074] Optionally, a flowchart of one implementation of obtaining the mode switching instruction provided in this application embodiment is as follows: Figure 2 As shown, it may include:
[0075] Step S201: If the first device establishes a communication connection with the second device through the target class interface, display the component list of the first device.
[0076] In other words, the target interface for establishing the communication connection between the first device and the second device is a target class interface. When the first device detects that a device has connected to it through the target class interface in the first operating mode, it will display a component list.
[0077] As an example, the target interface can be a Universal Serial Bus (USB) interface, which can be a traditional USB interface or a Type-C interface. Figure 3 The diagram shown is an example of a first device and a second device connected via a TYPE-C interface according to an embodiment of this application. In this example, the first device is a large-screen conferencing device, and the second device is a PC.
[0078] As an example, the component list may only display identification identifiers (including text and / or image identifiers, etc.) of those components in the first device that can be mounted to the second device via port virtualization technology or switching circuitry. For example, the components listed in the component list may include, but are not limited to: USB interface, camera, microphone, speaker, etc. After the target component is mounted to the second device via port virtualization technology or switching circuitry, it can be controlled by the second device. In this example, the USB interface in the component list is an interface independent of the USB interface used to connect the first and second devices.
[0079] As an example, the component list may include identification marks (including text and / or image marks, etc.) of those components in the first device that can be connected to the second device via port virtualization technology or switching circuitry (i.e., target components), as well as identification marks of those components that cannot be connected to the second device via port virtualization technology or switching circuitry (i.e., non-target components). For example, the components listed in the component list may include, but are not limited to: various types of interfaces (e.g., USB interface, HDMI interface (High Definition Multimedia Interface), DP interface (Display Port), etc.), the display screen, camera, microphone, speaker, etc. of the first device. Among them, HDMI interface and DP interface are components that cannot be connected to the second device via port virtualization technology or switching circuitry. Non-target components in this application may be interfaces that cannot be connected to the second device via port virtualization technology or switching circuitry.
[0080] In this example, the USB interface in the component list includes at least the USB interface for connecting the first device and the second device, and may further include other USB interfaces that are independent of the USB interface for connecting the first device and the second device.
[0081] In other words, if the first device has at least two USB ports, and the second device establishes a communication connection with the first device through one of the USB ports, the other USB ports can be selected as target components and mounted on the second device.
[0082] Optionally, if the component list contains identifiers for non-target components, the components can be displayed in a multi-level manner to facilitate user selection. In this method, the target interface for establishing the communication connection between the first and second devices, along with the identifiers for non-target components, are displayed at one level. The target component list is then displayed after the user selects the target interface. For example... Figure 4a and Figure 4b As shown, Figure 4aThis is an example diagram of a component list provided in an embodiment of this application. In this example, the target interface is a TYPE-C interface, and the component list includes: a TYPE-C interface, an HDMI interface, a DP interface, and an identifier of the first device (e.g., ...). Figure 4a (View Plus); if the user is in Figure 4a The interface shown indicates that a TYPE-C interface has been selected. A list of target components will be displayed on the right side (i.e., camera identification, speaker identification, and two USB identification icons), as shown below. Figure 4b The diagram shown is another example of a component list provided in an embodiment of this application. If the user does not select the TYPE-C interface, the aforementioned camera identification mark, speaker identification mark, and two USB identification marks will not be displayed to the right of the TYPE-C interface.
[0083] Optionally, if the user selects only the TYPE-C interface and not any target component from the target component list, the first device may switch control of its display screen to the device that has established a communication connection with the first device via the TYPE-C interface. If the user selects both the TYPE-C interface and at least one target component from the target component list, the first device may switch control of the selected at least one target component to the device that has established a communication connection with the first device via the TYPE-C interface (i.e., the first device switches from the first operating mode to the second operating mode) and simultaneously switch control of its display screen to the device that has established a communication connection with the first device via the TYPE-C interface.
[0084] Optionally, the purpose of displaying the identification mark of the first device in the component list is to allow the user to choose whether to switch the control of the first device's display screen to another device that has established a communication connection with the first device. If the user selects the identification mark of the first device in the component list, the control of the first device's display screen will not be switched to another device that has established a communication connection with the first device, and the first device will not be switched from the first working mode to the second working mode. If the user does not select the identification mark of the first device in the component list, but selects an interface, the first device can switch the control of the first device's display screen to the device connected to the selected interface. If the interface selected by the user belongs to the target class interface that connects the first device and the second device, and a target component is selected, the first device will also be switched from the first working mode to the second working mode.
[0085] Of course, the identification mark of the first device may not be in the component list. In this case, if the user does not select any identification mark of any component in the component list, it is assumed that the user has selected the first device, and the control of the display screen of the first device will not be switched to other devices that have established a communication connection with the first device. If the user selects a certain interface, the first device can switch the control of the display screen of the first device to the device connected to the selected interface.
[0086] Users can submit their selections using specific virtual buttons (such as the submit button) in the component list interface.
[0087] Step S202: In response to the selection instruction for the target component in the component list, generate a mode switching instruction.
[0088] If the selection instruction is for a target component in the component list, a mode switching instruction is generated; if the selection instruction is for a non-target component in the component list, the generation of a mode switching instruction is prohibited, i.e., no mode switching instruction is generated.
[0089] The above embodiments describe the process by which the first device automatically triggers the generation of a mode switching command after detecting that it has established a connection with the second device through a target class interface. During this process, the user needs to select the target component to be mounted to the second device. In an optional embodiment, the target component can be selected instead of the first device during the generation of the mode switching command. Instead, the user selects the target component in the settings software provided by the first device before the first device connects to the second device through the target class interface. When the first device detects that the second device has connected to it through the target class interface, it checks whether the target component has been pre-selected in the settings software. If it is determined that the target component has been pre-selected in the settings software, a mode switching command is generated; otherwise, the generation of the mode switching command is prohibited. That is, if the first device establishes a communication connection with the second device through the target class interface and the target component of the first device has been pre-selected, a mode switching command is generated.
[0090] In the above embodiments, the first device automatically triggers the generation of a mode switching command when it detects that the second device has accessed the first device through the target class interface. In other embodiments, the user can also manually trigger the first device to generate the mode switching command. Based on this, another structural diagram of obtaining the mode switching command provided in this application embodiment is shown below. Figure 5 As shown, it may include:
[0091] Step S501: Target input operation detected.
[0092] The target input operation may include, but is not limited to, any of the following: clicking a specific button on the first device, a specific gesture input operation, or a specific voice content input operation.
[0093] Step S502: In response to the target input operation and the target component of the pre-selected first device, a mode switching instruction is generated.
[0094] The target component can be pre-selected through the setting software provided by the first device. For details on the specific implementation, please refer to the aforementioned embodiments, which will not be repeated here.
[0095] Another structural diagram of the mode switching instruction provided in this application embodiment is shown below. Figure 6 As shown, it may include:
[0096] Step S601: Target input operation detected.
[0097] The target input operation may include, but is not limited to, any of the following: clicking a specific button on the first device, a specific gesture input operation, or a specific voice content input operation.
[0098] Step S602: In response to the target input operation, display the component list of the first device.
[0099] Step S603: In response to the selection instruction for the target component in the component list, generate a mode switching instruction.
[0100] The process of displaying a list of components of the first device and generating a mode switching instruction in response to a selection instruction for a target component in the list can be found in the foregoing embodiments and will not be repeated here.
[0101] After switching the first device from the first operating mode to the second operating mode, the information processing method provided in this application may further include:
[0102] If a target input operation is detected, the control of the display screen of the first device is switched from the second device to the first device.
[0103] The target input operation may include, but is not limited to, any of the following: clicking a specific button on the first device, a specific gesture input operation, or a specific voice content input operation.
[0104] After the first device switches from the first working mode to the second working mode, a target input operation is detected, indicating that the user may want to switch the first device back from the second working mode to the first working mode. If the target input operation is detected after the first device switches from the first working mode to the second working mode, this application does not immediately switch the first device back from the second working mode to the first working mode, but first switches the control permission of the display screen of the first device from the second device to the first device.
[0105] Interactive information is displayed on the screen to determine whether to switch the first device from the second working mode to the first working mode.
[0106] Optionally, the interactive information displayed on the screen of the first device may be a question asking the user whether to switch the first device from the second working mode to the first working mode, as well as options representing "yes" and "no". If the user selects the option representing "yes", the first device will switch the first device from the second working mode to the first working mode. If the user selects the option representing "no", the first device will not switch the first device from the second working mode to the first working mode, that is, the first device will remain in the second working mode.
[0107] Optionally, the interactive information displayed on the screen of the first device may be an option representing the first device and the second device. If the user selects the option representing the first device, the first device determines to switch the first device from the second working mode to the first working mode. If the user selects the option representing the second device, the first device determines not to switch the first device from the second working mode to the first working mode, that is, the first device remains in the second working mode.
[0108] If it is determined based on the interaction information that the first device should be switched from the second working mode to the first working mode, the first device should be switched from the second working mode to the first working mode.
[0109] Furthermore, if it is determined based on the interaction information that the first device should not be switched from the second working mode to the first working mode, the control authority of the display screen of the first device is switched from the first device to the second device, and the switching of the first device from the second working mode to the first working mode is prohibited, that is, the first device remains in the second working mode.
[0110] In an optional embodiment, one way to switch the first device from the first operating mode to the second operating mode is as follows:
[0111] If the first device establishes a communication connection with the second device through the target class interface, the first device will switch from the first working mode to the second working mode.
[0112] In other words, the first device will only switch from the first working mode to the second working mode if the first device establishes a communication connection with the second device through the target class interface.
[0113] If the first device establishes a communication connection with the second device through a non-target class interface, then switching the first device from the first working mode to the second working mode is prohibited.
[0114] Furthermore, after the first device switches from the first working mode to the second working mode, if it detects that the communication connection between the first device and the second device has been lost, it switches back from the second working mode to the first working mode.
[0115] In some cases, a user may connect multiple devices to the first device simultaneously. For example, in addition to establishing a communication connection with the second device through the target class interface, the first device may also establish a communication connection with the third device through a non-target class interface. In this case, an object list can be displayed, which includes the aforementioned target class interface, the aforementioned non-target class interface, and the first device.
[0116] The purpose of displaying the list of objects is to allow the user to choose whether to use the target class interface (or the second device), the non-target class interface (or the third device), or the first device.
[0117] If a selection instruction is obtained for the target class interface in the object list, the first device can be switched from the first operating mode to the second operating mode.
[0118] If the user selects a target class interface from the object list, indicating that the user wants to use the second device, the first device will generate a selection instruction for the target class interface. In response to this selection instruction, the first device can switch from the first operating mode to the second operating mode. Specifically, if the user selects a target class interface from the object list, and the user has previously selected a target component of the first device, the first device can generate a mode switching instruction, thereby switching the first device from the first operating mode to the second operating mode. Alternatively, if the user selects a target class interface from the object list, the first device's component list can be displayed; in response to a selection instruction for a target component in the component list, a mode switching instruction is generated, thereby switching the first device from the first operating mode to the second operating mode. Of course, if the user has not previously selected or has not selected a target component, the first device will not switch from the first operating mode to the second operating mode.
[0119] If the user selects a non-target class interface or the first device, it means that the user does not want to use the second device. In this case, the first device will not generate a selection instruction for the target class interface, and will not switch from the first working mode to the second working mode.
[0120] If the user selects a non-target class interface, it means that the user wants to use a third device. The first device will then generate a selection instruction for the non-target class interface. In response to this selection instruction, the first device will switch control of the display screen from the first device to the third device.
[0121] If the user selects the first device, it means that the user wants to use the first device. The first device will then generate a selection command for the first device. In response to the selection command, the first device will prevent the control of the display screen of the first device from being switched from the first device to the third device, and will also prevent the switching from the first working mode to the second working mode, that is, it will remain in the first working mode.
[0122] Furthermore, if the first device establishes a communication connection with the second device through a target-type interface and also establishes a communication connection with the third device through a non-target-type interface, and if a switching instruction is received for the non-target-type interface and the target-type interface, the control authority over the display screen of the first device will be switched from the second device to the third device, thus achieving the switching of the signal source of the first device without plugging or unplugging the second and third devices.
[0123] Furthermore, after switching the control permission of the display screen of the first device from the second device to the third device, if a switching instruction for non-target interface and target interface is obtained again, the control permission of the display screen of the first device will be switched from the second device to the third device.
[0124] For example, a first device establishes a communication connection with a second device via a TYPE-C interface and with a third device via a DP interface. Since the first device can only have one signal source at a time, the traditional approach is to disconnect one of the second or third devices from the first device, thus breaking the communication connection. This application, however, achieves automatic switching between the TYPE-C and DP interfaces without disconnecting the second and third devices by triggering a switching command from the first device for the non-target interface and the target interface. This simplifies user operation.
[0125] As an example, the switching command for non-target class interfaces and target class interfaces can be triggered by a user performing a specified operation on a specific key. Optionally, the specific key here can be the one used to trigger the generation mode switching command mentioned above, and the specified operation is a different operation from the operation used to trigger the generation mode switching command mentioned above. For example, the user can trigger the generation of the above mode switching command by clicking the specific key, and trigger the switching command for non-target class interfaces and target class interfaces by double-clicking the specific key.
[0126] In an optional embodiment, after the first device switches from the first operating mode to the second operating mode, the operating system can still run in the background.
[0127] Furthermore, the information processing method provided in the embodiments of this application may also include:
[0128] The first device can monitor whether the target application meets the conditions. The target application can be an application of a specific category, or it can be an application on a whitelist. Both the specific category and the whitelist can be set by the user according to their preferences.
[0129] The conditions that the target application meets may include: the target application needs to output information through the target component, etc.
[0130] As an example, the target application could be a telephone, instant messaging software, etc. The target application could meet the following conditions: upon receiving an incoming call request, it needs to output an incoming call notification message; or, upon receiving a video call request, it needs to output a video call request message, etc.
[0131] If the conditions are met, the first device will be switched from the second working mode to the first working mode, that is, the control of the target component will be returned to the first device.
[0132] Furthermore, after the first device switches from the first operating mode to the second operating mode, the information processing method provided in this application embodiment may further include:
[0133] The first device receives a call command for the target component sent by the second device.
[0134] The first device responds to the call command through the target component.
[0135] Optionally, the above-mentioned response to the call command via the target component may include:
[0136] The target information in the second device is output through the target component; and / or,
[0137] Environmental information is collected by the target component and sent to the second device; and / or,
[0138] The second device accesses the external devices of the first device through the target component.
[0139] For example, if the target component is a camera and / or microphone, the second device can send a call command to the camera and / or microphone of the first device through the target class interface. Then, the camera and / or microphone of the first device will start and perform image and / or audio acquisition. The camera and / or microphone will transmit the acquired images and / or audio to the second device through the target class interface.
[0140] For example, if the target component is a speaker, the second device can send a call command to the speaker of the first device. This call command carries the audio information to be output from the second device, and then the speaker of the first device starts up and outputs audio.
[0141] For example, if the target component is a certain interface, the second device can send a call command to the first device through the target interface, and then communicate with the fourth device that is connected to the first device through that interface.
[0142] Corresponding to the method embodiments, this application also provides an information processing apparatus. A schematic diagram of the structure of the information processing apparatus provided in the embodiments of this application is shown below. Figure 7 As shown, it may include:
[0143] Acquisition module 701 and switching module 702; wherein,
[0144] Module 701 is used to obtain mode switching instructions;
[0145] The switching module 702 is used to switch the first device from a first working mode to a second working mode in response to the mode switching command; wherein, in the first working mode, the control authority of the target component of the first device belongs to the first device; in the second working mode, the control authority of the target component belongs to the second device that has established a communication connection with the first device.
[0146] The information processing apparatus provided in this application embodiment allows a first device to receive a mode switching command. In response to the command, the first device switches from a first operating mode to a second operating mode. In the first operating mode, control of a target component belongs to the first device. In the second operating mode, control of the target component belongs to a second device that has established a communication connection with the first device. Based on this application, control of the target component of the first device is no longer exclusively owned by the first device, but can be controlled by a second device that has established a communication connection with the first device, thus improving the intelligence of the interaction between the first and second devices.
[0147] In an optional embodiment, the obtaining module 701 is used to:
[0148] If the first device establishes a communication connection with the second device through the target class interface, the component list of the first device is displayed; in response to the selection instruction for the target component in the component list, a mode switching instruction is generated.
[0149] or,
[0150] A target input operation is detected; in response to the target input operation and the pre-selected target component of the first device, a mode switching instruction is generated;
[0151] or,
[0152] If the first device establishes a communication connection with the second device through the target class interface, and the target component of the first device is selected in advance, a mode switching instruction is generated;
[0153] or,
[0154] A target input operation is detected; in response to the target input operation, a component list of the first device is displayed; in response to a selection instruction for a target component in the component list, a mode switching instruction is generated.
[0155] In an optional embodiment, the switching module 702 is further configured to:
[0156] After switching the first device from the first working mode to the second working mode, if a target input operation is detected, the control authority of the display screen of the first device is switched from the second device to the first device.
[0157] The interactive information is displayed on the screen, and the interactive information is used to determine whether to switch the first device from the second working mode to the first working mode.
[0158] If, based on the interaction information, it is determined that the first device should be switched from the second working mode to the first working mode, then the first device should be switched from the second working mode to the first working mode.
[0159] In an optional embodiment, the switching module 702 is used to:
[0160] If the first device establishes a communication connection with the second device through the target class interface, the first device will switch from the first working mode to the second working mode.
[0161] In an optional embodiment, the switching module 702 is further configured to:
[0162] If the first device also establishes a communication connection with the third device through a non-target class interface, a list of objects is displayed; the objects in the list of objects include the target class interface, the non-target class interface, and the first device;
[0163] If a selection instruction is received for the target class interface in the object list, the first device is switched from the first operating mode to the second operating mode.
[0164] In an optional embodiment, the switching module 702 is further configured to:
[0165] If a switching instruction is received for the non-target interface and the target interface, the control authority over the display screen of the first device will be switched from the second device to the third device.
[0166] In an optional embodiment, the switching module 702 is further configured to:
[0167] Monitor whether the target application meets the conditions;
[0168] In response to the target application meeting the conditions, the first device is switched from the second operating mode to the first operating mode.
[0169] In an optional embodiment, the information processing apparatus further includes a response module for:
[0170] Obtain the invocation command for the target component sent by the second device;
[0171] The target component responds to the invocation command.
[0172] In addition to the method embodiments, this application also provides a device, which is a first device. The first device has a target component and is capable of establishing a communication connection with a second device. The first device has a first working mode and a second working mode. The first device can switch from the first working mode to the second working mode or from the second working mode to the first working mode when certain conditions are met.
[0173] In the first operating mode, the control authority over the target component of the first device belongs to the first device; in the second operating mode, the control authority over the target component belongs to the second device that has established a communication connection with the first device.
[0174] When the conditions are met, the first device switches from the first working mode to the second working mode, or switches from the second working mode to the first working mode. The specific implementation of this can be found in the foregoing embodiments, and will not be repeated here.
[0175] Corresponding to the method embodiments, this application also provides an electronic device, a schematic diagram of which is shown below. Figure 8 As shown, it may include: at least one processor 1, at least one communication interface 2, at least one memory 3, and at least one communication bus 4.
[0176] In this embodiment, the number of processor 1, communication interface 2, memory 3, and communication bus 4 is at least one, and processor 1, communication interface 2, and memory 3 communicate with each other through communication bus 4.
[0177] Processor 1 may be a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of this application.
[0178] Memory 3 may include high-speed RAM, and may also include non-volatile memory, such as at least one disk storage device.
[0179] The memory 3 stores a program, and the processor 1 can call the program stored in the memory 3. The program is used for:
[0180] Obtain mode switching command;
[0181] In response to the mode switching command, the first device is switched from a first operating mode to a second operating mode; wherein, in the first operating mode, the control authority of the target component of the first device belongs to the first device; in the second operating mode, the control authority of the target component belongs to the second device that has established a communication connection with the first device.
[0182] Optionally, the refined and extended functions of the program can be found in the description above.
[0183] This application embodiment also provides a storage medium that can store a program suitable for execution by a processor, the program being used for:
[0184] Obtain mode switching command;
[0185] In response to the mode switching command, the first device is switched from a first operating mode to a second operating mode; wherein, in the first operating mode, the control authority of the target component of the first device belongs to the first device; in the second operating mode, the control authority of the target component belongs to the second device that has established a communication connection with the first device.
[0186] Optionally, the refined and extended functions of the program can be found in the description above.
[0187] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0188] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. Furthermore, the couplings or direct couplings or communication connections shown or discussed may be indirect couplings or communication connections through interfaces, devices, or units, and may be electrical, mechanical, or other forms.
[0189] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0190] In addition, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0191] It should be understood that in the embodiments of this application, the claims, various embodiments, and features can be combined with each other to solve the aforementioned technical problems.
[0192] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0193] The above description of the disclosed embodiments enables those skilled in the art to make or use this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. An information processing method for a first device, the method comprising: Obtain mode switching command; In response to the mode switching command, the first device is switched from a first working mode to a second working mode; wherein, in the first working mode, the control authority over the target component of the first device belongs to the first device, and the second device does not have the control authority over the target component; In the second operating mode, the control authority over the target component belongs to the second device that has established a communication connection with the first device, and the first device does not have control authority over the target component.
2. The method according to claim 1, wherein obtaining the mode switching instruction comprises: If the first device establishes a communication connection with the second device through the target class interface, the component list of the first device is displayed; In response to a selection instruction for a target component in the component list, a mode switching instruction is generated; or, A target input operation is detected; in response to the target input operation and the pre-selected target component of the first device, a mode switching instruction is generated; or, If the first device establishes a communication connection with the second device through the target class interface, and the target component of the first device is selected in advance, a mode switching instruction is generated; or, A target input operation is detected; in response to the target input operation, a list of components of the first device is displayed; In response to a selection instruction for a target component in the component list, a mode switching instruction is generated.
3. The method according to claim 2, further comprising: After switching the first device from the first working mode to the second working mode, if a target input operation is detected, the control authority of the display screen of the first device is switched from the second device to the first device. The interactive information is displayed on the screen, and the interactive information is used to determine whether to switch the first device from the second working mode to the first working mode. If, based on the interaction information, it is determined that the first device should be switched from the second working mode to the first working mode, then the first device should be switched from the second working mode to the first working mode.
4. The method according to claim 1, wherein switching the first device from the first working mode to the second working mode comprises: If the first device establishes a communication connection with the second device through the target class interface, the first device will switch from the first working mode to the second working mode.
5. The method according to claim 4, further comprising: If the first device also establishes a communication connection with the third device through a non-target class interface, a list of objects is displayed; the objects in the list of objects include the target class interface, the non-target class interface, and the first device; If a selection instruction is received for the target class interface in the object list, the first device is switched from the first operating mode to the second operating mode.
6. The method according to claim 5, further comprising: If a switching instruction is received for the non-target interface and the target interface, the control authority over the display screen of the first device will be switched from the second device to the third device.
7. The method according to claim 1, further comprising: Monitor whether the target application meets the conditions; In response to the target application meeting the conditions, the first device is switched from the second operating mode to the first operating mode.
8. The method according to claim 1, further comprising: Obtain the invocation command for the target component sent by the second device; The target component responds to the invocation command.
9. An information processing apparatus, comprising: The acquisition module is used to acquire mode switching instructions; A switching module is used to switch the first device from a first working mode to a second working mode in response to the mode switching command; wherein, in the first working mode, the control authority of the target component of the first device belongs to the first device, and the second device does not have the control authority over the target component; In the second operating mode, the control authority over the target component belongs to the second device that has established a communication connection with the first device, and the first device does not have control authority over the target component.
10. A device, the device being a first device, the first device having a target component, the first device being capable of establishing a communication connection with a second device; the first device having a first operating mode and a second operating mode; the first device being capable of switching from the first operating mode to the second operating mode, or switching from the second operating mode to the first operating mode, when certain conditions are met; in, In the first working mode, the control authority over the target component of the first device belongs to the first device, and the second device does not have the control authority over the target component. In the second operating mode, the control authority over the target component belongs to the second device that has established a communication connection with the first device, and the first device does not have control authority over the target component.
Citation Information
Patent Citations
Equipment sharing method, device and system
CN110287036A