Information processing method and electronic device
By detecting the type of accessory device and matching the processing method, and using synthetic applications or control commands to process input and output information, the problem of the single information processing method of electronic devices is solved, and diversified information processing effects are achieved.
Patent Information
- Application Number
- CN202211732489.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-30
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2042-12-30
AI Technical Summary
Existing electronic devices, when connected to accessories, only perform the functions of those accessories, resulting in a single information processing method and a lack of diversity.
By detecting the type information of the accessory device, the matching processing method is determined, and the input and output information of the accessory device and the target device is processed using preset synthetic applications or control commands to achieve diversified information processing.
This technology enables electronic devices to perform diverse information processing based on the type of accessory after being connected, thereby improving the flexibility of information processing and the user experience.
Smart Images

Figure CN116017192B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of information technology, and more specifically, to an information processing method and an electronic device. Background Technology
[0002] Given the increasing popularity of mobile office work in various scenarios, users have many accessory needs in different locations. However, currently, accessories need to be connected to the interface of the electronic device system settings for data communication and power supply.
[0003] However, in existing electronic devices, after connecting an accessory, the operation of the structure with the same function in the electronic device is stopped, and only the accessory is used to perform the relevant functions, resulting in the electronic device having a single way of processing information. Summary of the Invention
[0004] In view of the above, this application provides an information processing method and an electronic device, as follows:
[0005] An information processing method, comprising:
[0006] If an accessory device is detected connected to the first interface of an electronic device, the type information of the accessory device is determined;
[0007] Determine the processing method for matching the type information;
[0008] The processing method is related to the target device of the accessory device and / or the electronic device, and the target device is of the same type as the accessory device.
[0009] Optionally, the above method, if the type of the accessory device is an input type, determines the processing method for matching the type information, including:
[0010] The first input information and the second input information are processed to obtain the target input information. The first input information is the input information collected by the accessory device, and the second input information is the input information collected by the target device of the electronic device.
[0011] The target input information is provided to a first application so that the first application can process the target input information.
[0012] Optionally, in the above method, processing the first input information and the second input information to obtain the target input information includes:
[0013] The first acquisition parameter of the accessory device and the second acquisition parameter of the target device are obtained, wherein the first acquisition range corresponding to the first acquisition parameter is greater than the second acquisition range corresponding to the second acquisition parameter;
[0014] The control preset synthesis application determines the target part information in the first input information corresponding to the second input information based on the first acquisition parameter and the second acquisition parameter, and replaces the target part information in the first input information with the second input information to obtain the target input information.
[0015] Optionally, in the above method, the acquisition direction of the target device is a first direction, the acquisition direction of the accessory device is a second direction, the electronic device includes a first body and a second body rotatably connected, the first interface is at a first end of the first body, the second end of the first body is connected to the second body, the first body is provided with an output component, the second body is provided with an input component, the first direction matches the output direction of the output component, and the second direction is the direction towards the input component. The step of processing the first input information and the second input information to obtain the target input information includes:
[0016] The first input information is identified to obtain the input action, and the first input information is different from the second input information.
[0017] Determine the control command corresponding to the input action;
[0018] The second input information is processed based on the control command to obtain the target input information.
[0019] Optionally, in the above method, if the accessory device is of output type, the processing method corresponding to the type of the accessory device is selected, including:
[0020] Obtain the information to be output;
[0021] The information to be output is processed to obtain first output information and second output information;
[0022] The first output information and the second output information are respectively output to the target device through the accessory device.
[0023] Optionally, in the above method, processing the information to be output to obtain first output information and second output information; and outputting the first output information and second output information to the target device respectively through the accessory device, includes:
[0024] Extract the information belonging to the first application from the information to be output to obtain the first output information;
[0025] The output information belonging to the second application is taken as the second output information, where the second application is an application other than the first application.
[0026] The first output information is output to the first output component of the target device;
[0027] The second output information is output from the second output component of the accessory device;
[0028] In the case where the electronic device is not connected to an accessory device, the second output information is output in the first output component in a manner that obscures the first output information.
[0029] Optionally, in the above method, the first interface is located at a first position, the target device is located at a second position, the distance between the first position and the bearing surface is greater than the distance between the second position and the bearing surface, and the step of processing the information to be output to obtain first output information and second output information; and outputting the first output information and the second output information to the target device through the accessory device respectively, includes:
[0030] Extract audio information with a frequency higher than a preset frequency from the information to be output to obtain the first output information;
[0031] The remaining information in the information to be output, excluding the first output information, is taken as the second output information;
[0032] The first output information is output through the accessory device;
[0033] The second output information is output through the target device.
[0034] Optionally, in the above method, processing the information to be output to obtain first output information and second output information; and outputting the first output information and second output information to the target device respectively through the accessory device, includes:
[0035] Based on the first audio firmware of the electronic device, the audio firmware of the accessory device is identified, and the information to be output is copied to obtain the first output information and the second output information;
[0036] The first output information is output through the accessory device;
[0037] The second output information is output through the target device.
[0038] Optionally, in the above method, the processing method for determining the matching type information includes:
[0039] The target device is determined based on the type information of the accessory equipment;
[0040] Based on the fact that the accessory device and the target device meet the preset operating conditions, a target processing object is determined, wherein the target processing object is one of the accessory device and the target device.
[0041] An electronic device, comprising:
[0042] Target device;
[0043] The first interface is used to connect to accessory devices;
[0044] A processor is configured to, if it detects that an accessory device is connected to a first interface of an electronic device, determine type information of the accessory device; and determine a processing method that matches the type information; wherein the processing method is related to a target device of the accessory device and / or the electronic device, the target device being of the same type as the accessory device. Attached Figure Description
[0045] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only embodiments of this application. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.
[0046] Figure 1 This is a flowchart of an embodiment 1 of an information processing method provided in this application;
[0047] Figure 2 This is a flowchart of an embodiment 2 of an information processing method provided in this application;
[0048] Figure 3 This is a flowchart of an embodiment 3 of an information processing method provided in this application;
[0049] Figure 4 This is a flowchart of embodiment 4 of the information processing method provided in this application;
[0050] Figure 5 This is a schematic diagram of a scenario in embodiment 4 of an information processing method provided in this application;
[0051] Figure 6 This is a flowchart of embodiment 5 of the information processing method provided in this application;
[0052] Figure 7 This is a schematic diagram of a scenario in embodiment 5 of an information processing method provided in this application;
[0053] Figure 8 This is a flowchart of an embodiment 6 of an information processing method provided in this application;
[0054] Figure 9 This is a flowchart of embodiment 7 of an information processing method provided in this application;
[0055] Figure 10This is a schematic diagram of a scenario in embodiment 7 of an information processing method provided in this application;
[0056] Figure 11 This is another scenario diagram in Embodiment 7 of an information processing method provided in this application;
[0057] Figure 12 This is a flowchart of embodiment 8 of the information processing method provided in this application;
[0058] Figure 13 This is a schematic diagram of a scenario in embodiment 8 of an information processing method provided in this application;
[0059] Figure 14 This is a flowchart of embodiment 9 of the information processing method provided in this application;
[0060] Figure 15 This is a flowchart of an embodiment 10 of an information processing method provided in this application;
[0061] Figure 16 This is a flowchart of an embodiment 11 of an information processing method provided in this application;
[0062] Figure 17 This is a flowchart of an embodiment 12 of an information processing method provided in this application;
[0063] Figure 18 This is a pin diagram of the first interface in Embodiment 12 of the information processing method provided in this application;
[0064] Figure 19 This is a schematic diagram of the structure of an embodiment of an electronic device provided in this application;
[0065] Figure 20 This is a schematic diagram of the connection portion in an embodiment of an electronic device provided in this application. Detailed Implementation
[0066] 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 skilled in the art without creative effort are within the scope of protection of this application.
[0067] like Figure 1 The diagram shown is a flowchart of an embodiment 1 of an information processing method provided in this application. The method is applied to an electronic device and includes the following steps:
[0068] Step S101: If an accessory device is detected connected to the first interface of the electronic device, determine the type information of the accessory device;
[0069] The electronic device is provided with a first interface, which can connect to an accessory device.
[0070] Specifically, when the accessory device is detected to be connected to the first interface, the device information of the accessory device can be read to determine the type information of the accessory device.
[0071] The type information of this accessory device includes input type and output type.
[0072] When the accessory device is an input type, it can collect input information and send it to the electronic device through the first interface, so that the electronic device can process the input information collected by the accessory device.
[0073] In the case of the output type of the accessory device, the accessory device is able to receive the output information of the electronic device in order to output the output information.
[0074] Step S102: Determine the processing method for matching the type information.
[0075] The processing method is related to the target device of the accessory device and / or the electronic device, and the target device is of the same type as the accessory device.
[0076] Once the type of accessory device is determined, a target device of the same type can be selected from the electronic devices.
[0077] Among them, the matching processing method is determined based on this type of information.
[0078] This processing method is the processing method related to the accessory equipment and / or the target device.
[0079] The processing method can be either using an accessory device or a target device, or it can be using both an accessory device and a target device.
[0080] It should be noted that the priority of the first interface can be the same as the priority of the target device of the electronic device, thus enabling the use of accessory devices and the target device.
[0081] In practice, the first interface can be a pogo pin interface.
[0082] The process of determining the processing method will be described in detail in subsequent embodiments, but will not be described in detail in this embodiment.
[0083] In practice, after determining that the first interface is connected to the accessory device, power is supplied to the accessory device based on the power supply pin of the first interface.
[0084] In summary, this embodiment provides an information processing method in which an electronic device has a target device. After an accessory device is connected to the first interface of the electronic device, the type information of the accessory device is determined, and a processing method matching the type information is determined. Specifically, the processing method is based on the accessory device and / or the target device in the electronic device. Since the accessory device and the target device are of the same type, and the accessory device is connected to the first interface of the electronic device, a processing method matching the type information of the accessory device is selected. For the electronic device connected to the accessory device, there are multiple processing methods that can be executed, and the electronic device can implement a variety of information processing methods.
[0085] like Figure 2 The diagram shown is a flowchart of an embodiment 2 of an information processing method provided in this application. The method includes the following steps:
[0086] Step S201: If an accessory device is detected connected to the first interface of the electronic device, determine the type information of the accessory device;
[0087] Step S201 is the same as step S101 in Embodiment 1, and will not be described again in this embodiment.
[0088] Step S202: Process the first input information and the second input information to obtain the target input information;
[0089] Wherein, the first input information is the input information collected by the accessory device, and the second input information is the input information collected by the target device of the electronic device.
[0090] In this embodiment, the type of the accessory device is input type.
[0091] Specifically, the accessory device can be an image acquisition device or an audio acquisition device, such as a camera or a microphone.
[0092] In this embodiment, the processing method involves processing the first input information collected by the accessory device and the second input information collected by the target device.
[0093] The first and second input information are processed to obtain the target input information.
[0094] The processing of the first input information and the second input information can be done by combining the two, such as combining the two or processing one based on the other. The process of this processing is described in detail in subsequent embodiments and will not be described in detail in this embodiment.
[0095] Specifically, step S202 is as follows:
[0096] Step S2021: Invoke the preset compositing application;
[0097] Step S2022: Control the preset synthesis application to synthesize the first input information and the second input information to obtain the target input information.
[0098] Among them, the electronic device has a preset synthesis application that can synthesize the input information.
[0099] Accordingly, the first input information and the second input information are input into the preset synthesis application, which then synthesizes the two to obtain the target input information.
[0100] The synthesis can be splicing, overlaying, replacing, filtering, etc., and this embodiment does not limit the specific method of synthesis.
[0101] As an example, the accessory device is connected to the external microphone of the electronic device through the first interface. The target device is the microphone of the electronic device. The acquisition directions of the accessory device and the target device are different. The acquisition direction of the target device is towards the user. The second input information acquired by the target device mainly consists of the audio emitted by the user using the electronic device. The acquisition direction of the accessory device is towards the environment. The first input information acquired by the accessory device mainly consists of the ambient audio of the electronic device. The preset synthesis application performs noise reduction processing on the second input information based on the ambient audio in the first input information to obtain the target input information with higher clarity of the user's voice.
[0102] Step S203: Provide the target input information to the first application so that the first application processes the target input information.
[0103] The electronic device also includes a first application, which is an application corresponding to the first input information and the second input information, and is capable of processing the first input information and the second input information.
[0104] In this embodiment, the target input information obtained by processing the first input information and the second input information is information of the same type as the first input information and the second input information.
[0105] For example, if the first input information and the second input information are audio information, the first application can be an application with audio processing capabilities; if the first input information and the second input information are image information, the first application can be an application with image processing capabilities; if the first input information and the second input information are video information, the first application can be an application with video processing capabilities.
[0106] In summary, in the information processing method provided in this embodiment, if the type of the accessory device is an input type, the first input information collected by the accessory device and the second input information collected by the target device are processed to obtain target input information, and the target input information is provided to the first application so that the first application can process based on the target input information. The processing method is to process the first input information of the accessory device and the second input information of the target device and apply them to the first application.
[0107] like Figure 3 The diagram shown is a flowchart of an embodiment 3 of an information processing method provided in this application. The method includes the following steps:
[0108] Step S301: If an accessory device is detected connected to the first interface of the electronic device, determine the type information of the accessory device;
[0109] Step S301 is the same as step S201 in Embodiment 2, and will not be described again in this embodiment.
[0110] Step S302: Obtain the first acquisition parameters of the accessory device and the second acquisition parameters of the target device;
[0111] Wherein, the first acquisition range corresponding to the first acquisition parameter is greater than the second acquisition range corresponding to the second acquisition parameter.
[0112] Specifically, it interacts with the connected accessory device to obtain the first acquisition parameters of the accessory device; and obtains the second acquisition parameters of the target device from the setting parameters stored in the electronic device.
[0113] In practice, the first acquisition range can be determined based on the first acquisition parameter, and the second acquisition range can be determined based on the second acquisition parameter. This application does not restrict the specific parameter types of the first acquisition parameter and the second acquisition parameter.
[0114] Since the acquisition range of the accessory device is larger than that of the target device, the content corresponding to the input information acquired by the target device is included in the content corresponding to the input information acquired by the accessory device.
[0115] In practice, the accessory device can be a wide-angle camera, and the target device can be a regular camera. The wide-angle camera has a larger acquisition range than the regular camera.
[0116] Step S303: Control the preset synthesis application to determine the target part information in the first input information that corresponds to the second input information based on the first acquisition parameter and the second acquisition parameter, and replace the target part information in the first input information with the second input information to obtain the target input information;
[0117] The target information can be all the content in the second input information, or it can be content that meets important requirements, such as a person in the middle of the image in the second input information, or content that occupies a large area of the image.
[0118] Wherein, the first input information is the input information collected by the accessory device, and the second input information is the input information collected by the target device of the electronic device.
[0119] The electronic device has a pre-installed synthesis application that can combine two input information into a target input information.
[0120] The preset synthesis application determines the acquisition range of the accessory device and the target device based on the first acquisition parameter and the second acquisition parameter, and then processes the first input information and the second input information based on the acquisition range of the two to obtain the target input information.
[0121] Specifically, if the pixel count or sharpness parameters of the target portion in the second input information are better than the corresponding portion in the first input information, then the target portion information in the second input information can be used to replace the content in the first input information.
[0122] Specifically, determining the target portion information in the first input information that corresponds to the second input information includes: determining the target portion information in the first input information based on the fact that the first acquisition range includes the second acquisition range, wherein the image content corresponding to the target portion information is the same as the image content corresponding to the second input information.
[0123] Since the acquisition range of the accessory device is larger than that of the target device, and their acquisition ranges overlap, the content of the first input information acquired by the accessory device includes the content of the second input information acquired by the target device. Accordingly, the corresponding content in the first input information acquired by the target device is replaced with the portion of the first input information that has better clarity or pixel count, so that the target portion of the final target input information is of higher quality.
[0124] In practice, a simple splicing method can also be used to splice the second input information with the first input information, such as placing the image of the second input information in a corner of the image of the first input information to achieve a picture-in-picture effect.
[0125] Step S304: Provide the target input information to the first application so that the first application processes the target input information.
[0126] Step S304 is the same as step S203 in Example 2, and will not be described again in this example.
[0127] In summary, in the information processing method provided in this embodiment, since the acquisition range of the accessory device is larger than that of the target device, the content of the first input information acquired by the accessory device includes the content of the second input information acquired by the target device. Therefore, the preset synthesis application is controlled to determine the target part information corresponding to the second input information in the first input information based on the first acquisition parameters of the accessory device and the second acquisition parameters of the target device. The target part information in the first input information is replaced with the second input information to obtain the target input information, so that the target part information in the final target input information is better.
[0128] like Figure 4 The diagram shown is a flowchart of an embodiment 4 of an information processing method provided in this application. The method includes the following steps:
[0129] Step S401: If an accessory device is detected connected to the first interface of the electronic device, determine the type information of the accessory device;
[0130] Step S401 is the same as step S201 in Embodiment 2, and will not be described again in this embodiment.
[0131] Step S402: Identify the first input information to obtain the input action;
[0132] The first input information is different from the second input information.
[0133] The first input information is the input information collected by the accessory device, and the second input information is the input information collected by the target device of the electronic device.
[0134] Wherein, the acquisition direction of the target device is a first direction, the acquisition direction of the accessory device is a second direction, the electronic device includes a first body and a second body rotatably connected, the first interface is at a first end of the first body, the second end of the first body is connected to the second body, the first body is provided with an output component, the second body is provided with an input component, the first direction matches the output direction of the output component, and the second direction is the direction toward the input component.
[0135] In a specific implementation, the electronic device can be a laptop computer equipped with an image acquisition device. The first body has an AB-side structure and a display screen as an output component. The image acquisition device is located at the edge of the first body, and the other edge of the first body is rotatably connected to a second body. The second body has a C-side structure and a keyboard area and / or touch area as an input component. Furthermore, the electronic device also has a first interface for connecting to an accessory device. This accessory device is used to acquire first input information, and the target device acquires second input information. The first and second input information are of the same type.
[0136] Specifically, the target device acquires images in a direction that matches the output direction of the output component. When a user uses the electronic device, the target acquisition device can acquire the user's image. The first interface can be located on the first body, and the acquisition direction of the accessory device connected to it is towards the input component. When the operating body is placed on the input component, the input information acquired by the accessory device contains the image of the operating body. The operating body can specifically be the user's hand, which can make various gestures.
[0137] Specifically, the target device can be a regular camera used to capture ordinary images.
[0138] Specifically, the accessory device is an infrared camera / depth camera, which captures images containing the user's hand placed on the input component area and nearby on the second body. Based on the captured images, the user's gestures can be analyzed.
[0139] Specifically, the system identifies the first input information collected by the accessory device to obtain the input action performed by the user.
[0140] For example, the user's hand moves from left to right, or the user makes a fist gesture.
[0141] like Figure 5The diagram illustrates a scenario where an electronic device includes a first body 501 and a second body 502 rotatably connected. The first body has an output component 5011 (display screen), and the second body has an input component 5021 (keyboard). When the user uses the electronic device, the first and second bodies are at a certain angle. The target device 5012, located on the first body, has its acquisition direction aligned with the output direction of the output component. This target device acquires second input information, including an image of the user's face. A first interface 5013 is located on the first body, and the accessory device 503 connected to this interface has its acquisition direction facing the input component. When the user's hand is placed above the area of the input component, the first input information acquired by the target device includes an image of the user's hand. The acquisition range is indicated by dashed lines in the diagram.
[0142] Step S403: Determine the control command corresponding to the input action;
[0143] The input action is identified to determine its corresponding control command.
[0144] For example, the input action is to slide your hand from left to right, and the corresponding control command is to blur the face in the second input information.
[0145] For example, the input action is to clench a fist, and the corresponding control command is to replace the image containing a face with other preset images, etc.
[0146] Of course, in actual implementation, the input action and the corresponding control instruction can be set according to the actual situation. This application does not restrict the specific action of the input action and the corresponding control instruction.
[0147] Step S404: Process the second input information based on the control command to obtain the target input information;
[0148] After determining the control command, the target device collects the second input information based on the control command.
[0149] For example, if the control instruction is to blur the face, then the face in the second input information will be blurred to obtain the target input information.
[0150] For example, the control command replaces the face image with another preset image, and the second input information is replaced with a preset image to obtain the target input information.
[0151] Step S405: Provide the target input information to the first application so that the first application processes the target input information.
[0152] Step S405 is the same as step S203 in Example 2, and will not be described again in this example.
[0153] In summary, in the information processing method provided in this embodiment, the acquisition direction of the target device matches the output direction of the output component in the electronic device, and the acquisition direction of the accessory device is towards the input component in the electronic device. When the user uses the electronic device, the first input information acquired by the accessory device includes information about the user's hand, and the second input information acquired by the target device includes information about the user's face. Based on the first input information, the user's input action through hand input can be determined. After determining the control command corresponding to the input action, the second input information is processed based on the control command to obtain the target input information. This realizes the processing of the second input information acquired by the target device based on the first input information acquired by the accessory device.
[0154] like Figure 6 The flowchart shown is a 5th embodiment of an information processing method provided in this application. The method includes the following steps:
[0155] Step S601: If an accessory device is detected connected to the first interface of the electronic device, determine the type information of the accessory device;
[0156] Step S601 is the same as step S201 in Embodiment 2, and will not be described again in this embodiment.
[0157] Step S602: Overlap a portion of the second input information with the first input information, so that the first input information and the second input information are concatenated to obtain the target input information;
[0158] The acquisition direction of the accessory device is a third direction, and the acquisition direction of the target device is a fourth direction, with the third direction and the fourth direction being opposite.
[0159] Wherein, the first input information is the input information collected by the accessory device, and the second input information is the input information collected by the target device of the electronic device.
[0160] Among them, the accessory device and the target device are cameras, which can collect the first input information and the second input information as images.
[0161] Moreover, the acquisition direction of the accessory device and the target device is opposite, and the content of the images acquired by the two devices is not the same.
[0162] Specifically, the first input information collected by the accessory device is combined with the second input information collected by the target device to obtain the target input information.
[0163] Specifically, a region containing non-essential content is determined in the first input information, and the image of the second input information is placed in that region to stitch the first input information and the second input information together.
[0164] For example, the area containing non-essential content could be a corner of the image, such as the bottom left corner or the top right corner.
[0165] Specifically, the first input information and the second input information can be concatenated in a left-right or top-bottom arrangement.
[0166] like Figure 7 The diagram shows a scene, which is a meeting scene. The scene includes a whiteboard 701, an electronic device 702, and an accessory device 703 connected to the first interface on the electronic device. The whiteboard is placed on one side of the electronic device, and the user is on the other side of the electronic device. The accessory device captures an image of the area where the whiteboard is located, and the target device 7021 on the electronic device captures an image of the side where the user is located. The user writes meeting-related content on the whiteboard.
[0167] Specifically, the first image captured by the accessory device contains a whiteboard, and the second image captured by the target device contains the user's face. The second image is stitched together with the first image, and the face image is placed in the lower right corner of the first image to obtain the target input information.
[0168] Step S603: Provide the target input information to the first application so that the first application processes the target input information.
[0169] Step S603 is the same as step S203 in Example 2, and will not be described again in this example.
[0170] In summary, the information processing method provided in this embodiment overlaps a portion of the second input information with a portion of the first input information, so that the two are spliced together to obtain the target input information, thereby achieving the purpose of splicing the input information collected from the target device and the accessory device.
[0171] like Figure 8 The flowchart shown is a sample of embodiment 6 of an information processing method provided in this application. The method includes the following steps:
[0172] Step S801: If an accessory device is detected connected to the first interface of the electronic device, determine the type information of the accessory device;
[0173] Step S801 is the same as step S101 in Embodiment 1, and will not be described again in this embodiment.
[0174] Step S802: Obtain the information to be output;
[0175] The type of the accessory device is an output type.
[0176] In this embodiment, the processing method used is to output using an accessory device and a target device.
[0177] Specifically, the accessory device can be a light output device, an image output device, or an audio output device, such as a lamp, a display screen, or a speaker.
[0178] The information to be output can be output through an accessory device or through the target device.
[0179] In this embodiment, the accessory device and the target device are controlled to output based on the information to be output.
[0180] Step S803: Process the information to be output to obtain first output information and second output information;
[0181] The information to be output is processed to obtain two output information: the first output information and the second output information.
[0182] The first output information and the second output information can be the same information, not exactly the same information, or completely different information.
[0183] It should be noted that the process of obtaining the first output information and the second output information by processing the information to be processed will be described in detail in subsequent embodiments, and will not be described in detail in this embodiment.
[0184] Step S804: Output the first output information and the second output information to the target device through the accessory device, respectively.
[0185] Specifically, the first output information is output through the accessory device, and the second output information is output through the target device.
[0186] In this system, the accessory device and the target device each output their respective output information, and the output effects are superimposed, resulting in a better output effect compared to using only the accessory device or the target device for output.
[0187] In summary, in the information processing method provided in this embodiment, if the type of the accessory device is output type, the information to be output is processed to obtain the first output information and the second output information, which are then output through the accessory device and the target device respectively. The two structures output the corresponding output information respectively, resulting in better output effect and improved user experience.
[0188] like Figure 9 The diagram shown is a flowchart of an embodiment 7 of an information processing method provided in this application. The method includes the following steps:
[0189] Step S901: If an accessory device is detected connected to the first interface of the electronic device, determine the type information of the accessory device;
[0190] Step S902: Obtain the information to be output;
[0191] Steps S901-902 are the same as steps S801-802 in Example 6, and will not be described again in this example.
[0192] Step S903: Extract the output information belonging to the first application from the output information to obtain the first output information;
[0193] The first application can be an application running in the foreground on an electronic device.
[0194] Specifically, the system of the electronic device obtains all the information to be output, extracts the information to be output belonging to the first application, and uses the information to be output of the first application as the first output information.
[0195] Step S904: Take the output information belonging to the second application from the output information to be output as the second output information;
[0196] The second application is any application other than the first application.
[0197] In addition to the first application running in the foreground, electronic devices also have a second application running in the background.
[0198] Among them, the remaining output information excluding the output information belonging to the first application is taken as the second output information.
[0199] Generally, when the information to be output is display information, the display area required to output the first output information is greater than the display area required to output the second output information.
[0200] Specifically, the information to be output by the second application is the information that the application running in the background needs to display, including notifications, system information, download progress, and other information.
[0201] It should be noted that this application does not limit the specific content of the information to be output by the first application, and is not limited to notifications, system information, download progress, etc.
[0202] Step S905: Output the first output information to the first output component of the target device;
[0203] Step S906: Output the second output information to the second output component of the accessory device.
[0204] In the case where the electronic device is not connected to an accessory device, the second output information is output in the first output component in a manner that obscures the first output information.
[0205] The first output component of the target device is a display screen on an electronic device, the accessory device is an external display device that can be connected to the electronic device through a first interface, and the second output component is a display screen on the accessory device.
[0206] Specifically, the display area of the first output component of the target device is larger than that of the accessory device, and it can display more content.
[0207] Correspondingly, the first output information containing more content is output on the first output component of the target device, and the second output information containing less content is output on the second output component of the accessory device.
[0208] If the electronic device is not connected to an accessory device, both the second output information and the first output information are output from the first output component, and the second output information is output in a manner that obscures the first output information.
[0209] like Figure 10 The diagram shows a scenario including an electronic device 1001 and an accessory device 1002 connected through a first interface of the electronic device. The electronic device has a display screen 10011, and the accessory device has a display screen 10021. The display screen 10011 displays the output content of an application running in the foreground, and the display screen 10021 displays the output content of other applications running in the background.
[0210] It should be noted that in this schematic diagram, the first interface is located on the side of the electronic device. However, the location of the first interface is not limited to this and can be located at any position on the electronic device, as long as the output direction of its output component is consistent with the output direction of the target device's output component.
[0211] like Figure 11 The diagram shows another scenario, which includes an electronic device with a display screen 1101. The first area 11011 of the display screen displays the output content of an application running in the background, and the display screen also displays the output content of an application running in the foreground. The content displayed in the first area is the output content of the foreground application, which is obscured by the output content of the background application.
[0212] It should be noted that in this embodiment, the display screen of the accessory device is smaller than the screen of the electronic device. In actual implementation, if the display screen of the accessory device is larger than the screen of the electronic device, the first application can be an application running in the background of the electronic device. Accordingly, the display area required for the content of the first output information is smaller than that required for the content of the second output information.
[0213] In summary, in the information processing method provided in this embodiment, the information to be output belonging to the first application is extracted from the information to be output as the first output information, and the other information to be output from the information to be output is used as the second output information. The first output information is output on the first output component of the target device, and the second output information is output on the second output component of the accessory device. Moreover, if the electronic device is not connected to the accessory device, the second output information can also be output in the first output component, and it is output in a way that obscures the first output information. The information to be output is split into two parts and output in the output components of the target device and the accessory device respectively. The second output information no longer obscures the first output information, making it convenient for the user to view.
[0214] like Figure 12 The flowchart shown is an embodiment 8 of an information processing method provided in this application. The method includes the following steps:
[0215] Step S1201: If an accessory device is detected connected to the first interface of the electronic device, determine the type information of the accessory device;
[0216] Step S1202: Obtain the information to be output;
[0217] Steps S1201-1202 are the same as steps S801-802 in Example 6, and will not be described again in this example.
[0218] Step S1203: Extract audio information with a frequency higher than a preset frequency from the information to be output to obtain the first output information;
[0219] The first interface is located at a first position, the target device is located at a second position, and the distance between the first position and the bearing surface is greater than the distance between the second position and the bearing surface.
[0220] The electronic device is placed on a support surface. The target device in the electronic device is located at a second position. The first interface in the electronic device is located at a first position. The distance between the first position and the support surface is greater than the distance between the second position and the support surface. The first interface is connected to an accessory device. The distance between the accessory device and the support surface is greater than the distance between the target device and the support surface.
[0221] Specifically, when the electronic device is connected to the accessory device, the accessory device is positioned higher than the target device.
[0222] Specifically, the accessory device and the target device are speakers used to output audio information.
[0223] like Figure 13 The diagram shows a scenario including an electronic device 1301 and an accessory device 1302 connected to the electronic device via a first interface 13011. The first interface is positioned higher than the target device 13012 in the electronic device.
[0224] Specifically, audio information with frequencies higher than a preset frequency is extracted from the information to be output to obtain the first output information.
[0225] Specifically, the first output information is the high-pitched part of the information to be output.
[0226] Step S1204: Take the remaining information in the information to be output, excluding the first output information, as the second output information;
[0227] In this output information, apart from audio information with frequencies higher than a preset frequency which is non-high frequency audio information, the remaining information in the first output information is used as the second output information.
[0228] Specifically, the second output information is non-high-frequency audio information.
[0229] Step S1205: Output the first output information through the accessory device;
[0230] Specifically, the first high-frequency output information is output through an accessory device.
[0231] The accessory device is positioned high, enabling the high-frequency portion of audio information to be output from a speaker at a higher location.
[0232] Step S1206: Output the second output information through the target device.
[0233] Specifically, the non-high-frequency second output information is output through the target device.
[0234] The target device is positioned low, enabling the output of the non-high-frequency audio information from the speaker at a lower position.
[0235] Specifically, in this embodiment, the high-frequency part of the audio information is output from a higher speaker, while the other lower-frequency parts are output from a lower speaker, resulting in a better listening experience for the user.
[0236] In summary, in the information processing method provided in this embodiment, an electronic device is placed on a support surface, a target device in the electronic device is set at a second position, and a first interface in the electronic device is set at a first position. The distance between the first position and the support surface is greater than the distance between the second position and the support surface. The first interface is connected to an accessory device, and the distance from the accessory device to the support surface is greater than the distance between the target device and the support surface. Audio information higher than a preset frequency in the information to be output is extracted to obtain first output information, and the remaining information is used as second output information. The first output information is output on the accessory device, and the second output information is output on the target device. This achieves the output of the high-frequency part of the audio information by a speaker at a higher position, and the output of the non-high-frequency part of the audio information by a speaker at a lower position, thereby improving the user's auditory experience.
[0237] like Figure 14 The diagram shown is a flowchart of an embodiment 9 of an information processing method provided in this application. The method includes the following steps:
[0238] Step S1401: If an accessory device is detected connected to the first interface of the electronic device, determine the type information of the accessory device;
[0239] Step S1402: Obtain the information to be output;
[0240] Steps S1401-1402 are the same as steps S801-802 in Example 6, and will not be described again in this example.
[0241] Step S1403: Based on the first audio firmware of the electronic device, the audio firmware of the accessory device is obtained, and the information to be output is copied to obtain the first output information and the second output information;
[0242] When the accessory device is connected to the first interface of the electronic device, the accessory device acts as an external speaker, and the first audio firmware of the electronic device identifies the audio firmware of the accessory device.
[0243] Specifically, the first audio firmware of the electronic device is the audio firmware (audiocodec) of the electronic device system, which is capable of recognizing the audio firmware of external accessory devices.
[0244] In a specific implementation, after the electronic device is connected to the accessory device, the audio information to be output is originally output through the accessory device. However, in this embodiment, the first audio firmware of the electronic device recognizes the audio firmware of the accessory device, and the driver of the electronic device copies the audio information to be output and transmits it to the control unit inside the system.
[0245] The information to be output is copied to obtain two identical output information: the first output information and the second output information.
[0246] Step S1405: Output the first output information through the accessory device;
[0247] Step S1406: Output the second output information through the target device.
[0248] Specifically, the first output information and the second output information are output through the accessory device and the target device, respectively.
[0249] Specifically, the control unit inside the system transmits the first and second output information to the accessory device and the target device, respectively, for output.
[0250] In summary, the information processing method provided in this embodiment includes: identifying the audio firmware of the accessory device based on the first audio firmware of the electronic device; copying the information to be output to obtain first output information and second output information; outputting the first output information through the accessory device; and outputting the second output information through the target device. In this embodiment, after identifying the audio firmware of the accessory device based on the first audio firmware in the electronic device, copying the information to be output to obtain first output information and second output information, and outputting the first output information and second output information through the accessory device and the target device respectively, the output information output by the two structures respectively results in better output effect and improved user experience.
[0251] like Figure 15 The flowchart shown is a representation of an embodiment 10 of an information processing method provided in this application. The method includes the following steps:
[0252] Step S1501: If an accessory device is detected connected to the first interface of the electronic device, determine the type information of the accessory device;
[0253] Step S1502: Obtain the information to be output;
[0254] Steps S1501-1502 are the same as steps S801-802 in Example 6, and will not be described again in this example.
[0255] Step S1503: Copy the information to be output to obtain the first output information and the second output information;
[0256] The information to be output is information that can control the lighting effects of the accessory device / target device.
[0257] Specifically, the information to be output is copied to obtain two identical output information: the first output information and the second output information.
[0258] Step S1504: Control the accessory device to output a first lighting effect based on the first output information;
[0259] The first output information is used to control the accessory device to output a first lighting effect.
[0260] Specifically, the accessory device is an adsorption lamp / strip lamp, which can be connected to electronic equipment via a pogo pin.
[0261] Step S1505: Control the target device to output a second lighting effect based on the second output information.
[0262] Among them, the matching of the first lighting effect and the second lighting effect.
[0263] The second output information is used to control the target device of the electronic device to output a second lighting effect.
[0264] Specifically, the target device may be a light strip installed in the keyboard area of an electronic device, on the outside of the keyboard, or around the display screen.
[0265] Specifically, matching the first lighting effect and the second lighting effect includes either being identical or having the same display method.
[0266] For example, the first lighting effect and the second lighting effect are the same, specifically the flashing frequency, brightness, color, and color changing frequency of the lights are all the same.
[0267] For example, the first lighting effect and the second lighting effect can be matched, or the flashing frequency, brightness, and color changing frequency of the lights can be the same, but the colors can be different.
[0268] In summary, in the information processing method provided in this embodiment, both the accessory device and the target device are equipped with lights, and both can output lighting effects. The output information is copied to obtain first output information and second output information. The accessory device is controlled to output a first lighting effect based on the first output information, and the target device is controlled to output a second lighting effect based on the second output information. Since the accessory device and the target device output lighting effects based on the same output information, the overall lighting effect output by the electronic device is improved.
[0269] like Figure 16 The diagram shown is a flowchart of an embodiment 11 of an information processing method provided in this application. The method includes the following steps:
[0270] Step S1601: If an accessory device is detected connected to the first interface of the electronic device, determine the type information of the accessory device;
[0271] Step S1601 is the same as step S101 in Example 1, and will not be described again in this example.
[0272] Step S1602: Determine the target device based on the type information of the accessory device;
[0273] Among these, a target device of the same type as the accessory device is identified from several devices in the electronic device based on the type of the accessory device.
[0274] For example, the accessory device is an image acquisition device that identifies the camera in the electronic device as the target device.
[0275] For example, if the accessory is a microphone, the microphone in the electronic device is identified as the target device.
[0276] Step S1603: Based on the fact that the accessory device and the target device meet the preset operating conditions, determine the target processing object.
[0277] The target processing object is one of the accessory device and the target device.
[0278] Among them, meeting the preset operating conditions means that it is in the running state.
[0279] Specifically, based on the fact that both the accessory device and the target device are in operation, one of the target device and the accessory device is selected as the target processing object.
[0280] The target processing object either collects input information or outputs output information.
[0281] Among them, non-target processing objects in the target device and accessory equipment can be suspended or can also be operated normally, but they do not respond to the input information collected by the non-target processing object, or do not output the information to be output through the non-target processing object.
[0282] The determination of whether the accessory device and the target device meet the preset operating conditions includes:
[0283] Step S16031: Obtain the first input information collected by the accessory device and the second input information collected by the target device;
[0284] If the accessory device and the target device are used as input structures, the target processing object is determined based on the input information collected by both.
[0285] Step S16032: Based on the analysis of the first input information and the second input information, determine the device corresponding to the input information that meets the preset selection conditions as the target processing object.
[0286] Specifically, the analysis is performed based on the first and second input information to determine the input information with better performance.
[0287] For example, when the input information is audio information, better performing audio information means higher clarity or less noise.
[0288] For example, when the input information is image information, the image with better performance is one with higher clarity or a larger target object area in the image.
[0289] In practice, if either the accessory device or the target device is not operational, the operational device is directly selected as the target for processing, and input information is collected or output information is generated.
[0290] In summary, in the information processing method provided in this embodiment, when the accessory device and the target device meet the preset operating conditions, one of the accessory device and the target device is selected as the target processing object, so that input information is collected or output information is output based on the target processing object.
[0291] like Figure 17 The flowchart shown is a representation of an embodiment 12 of an information processing method provided in this application. The method includes the following steps:
[0292] Step S1701: Detect whether there is a connection signal on the first pin of the first interface;
[0293] The first interface has multiple pins, with the first pin used to detect connection signals.
[0294] Specifically, the electronic device's system detects whether a device is connected via this first pin.
[0295] For example, the electronic device's system sends a detection signal to the first pin. If feedback is received, it is determined that a device is connected; if no feedback is received within a preset time period, it is determined that no device is connected.
[0296] Specifically, the preset time period can be an agreed duration, such as 30 seconds. This application does not impose any restrictions on the value of the preset time period.
[0297] If a connection signal is detected at the first interface, steps S1702-1705 are executed; otherwise, step S1708 is executed.
[0298] Step S1702: Based on the detection of a connection signal on the first pin, determine that the first interface is connected to an accessory device;
[0299] Specifically, based on the detection of a connection signal on the first pin, it is determined that the first interface is connected to an accessory device.
[0300] The accessory device has an interface corresponding to the first interface to enable interface connection between the two.
[0301] In practice, the first interface can be a pogo pin.
[0302] Step S1703: Obtain the protocol identifier of the accessory device based on the second pin of the first interface;
[0303] The second pin of the first interface is used for information exchange with the accessory device.
[0304] Specifically, the protocol identifier of the accessory device is obtained through this second pin.
[0305] Specifically, the protocol identifier includes USB (Universal Serial Bus) 2.0 identifier, USB 3.0 identifier, etc. This application does not restrict the protocol used by the accessory device.
[0306] Step S1704: Determine the target transmission protocol used by the accessory device based on the protocol identifier;
[0307] Different protocol identifiers correspond to different transmission protocols.
[0308] Specifically, the target transmission protocol used by the accessory device is determined based on the protocol identifier.
[0309] The accessory device can use at least one transmission protocol. Based on the connection between the accessory device and the electronic device, after obtaining the protocol identifier of the accessory device, the target transmission protocol adopted by the accessory device is determined based on the protocol identifier.
[0310] If the accessory device supports only one transmission protocol, then that transmission protocol will be used as the target transmission protocol for the accessory device.
[0311] When the accessory device supports multiple transmission protocols, and the electronic device only supports one of the transmission protocols, the transmission protocol supported by the electronic device is determined as the target transmission protocol adopted by the accessory device.
[0312] When both the accessory device and the electronic device support multiple transmission protocols, one of them can be selected as the target transmission protocol.
[0313] The accessory devices support transmission protocols with corresponding data transmission pins.
[0314] In practice, the first interface can also use a single pin to achieve the functions of both the first and second pins.
[0315] Step S1705: Based on the target transmission protocol, select the target data transmission pin for data transmission;
[0316] After determining the target transmission protocol, a target data transmission pin corresponding to the target transmission protocol is selected, and data transmission is performed based on the target data transmission pin.
[0317] Figure 18 The diagram shows the pinout of the first interface, which uses an 11-pin pogo pin. The 11 pins of the first interface include a pair of power supply pins (5VALW), a set of three pins supporting the USB 2.0 protocol (USB D+ / -) and a first ground (GND1), a set of five pins supporting the USB 3.0 / 2.0 protocol (USB TX+ / -, USB RX+ / -) and a second ground (GND2), and a connection detection pin (IDpin).
[0318] The connection detection pin detects whether there is an accessory device connected. There is a pair of power supply pins, each supporting 5V (volts) 2A (amperes), for a total of 5V 4A of power supply.
[0319] Step S1706: Determine the type information of the accessory device;
[0320] Step S1707: Determine the processing method for matching the type information;
[0321] Steps S1706-1707 are the same as steps S101-102 in Example 1, and will not be described again in this example.
[0322] Step S1708: Based on the fact that no connection signal is detected on the first pin within a preset time period, control the power supply pin and data transmission pin of the first interface to stop working.
[0323] If no connection signal is detected on the first pin of the first interface within a preset time period, it indicates that no accessory device is connected to the first interface.
[0324] Specifically, if it is determined that no accessory device is connected to the first interface, the first pin notifies the system through the connected FPC (Flexible Printed Circuit) so that the system control power supply pin and data transmission pin stop working, thereby reducing the power consumption of the electronic device.
[0325] In summary, in the information processing method provided in this embodiment, the presence of connection information is detected based on the first pin of the first interface to determine whether an accessory device is connected to the first interface. If the first interface is connected to an accessory device, the target transmission protocol used by the accessory device is determined based on the protocol identifier of the accessory device. Then, the target data transmission pin in the first interface is determined based on the target transmission protocol to perform data transmission. If the first interface is not connected to an accessory device, the power supply pin and data transmission protocol in the first interface are controlled to stop working, ensuring that data interaction with the connected accessory device is possible. Moreover, it ensures that the power consumption of the electronic device is reduced when no accessory device is connected.
[0326] Corresponding to the above-described embodiment of an information processing method provided in this application, this application also provides an embodiment of an electronic device that applies the information processing method.
[0327] like Figure 19 The diagram shown is a structural schematic of an embodiment of an electronic device provided in this application. The electronic device includes the following structure: a target device 1901, a first interface 1902, and a processor 1903.
[0328] The first interface 1902 is used to connect to an accessory device;
[0329] The processor 1903 is configured to, if it detects that an accessory device is connected to a first interface of an electronic device, determine the type information of the accessory device; and determine a processing method that matches the type information; wherein the processing method is related to a target device of the accessory device and / or the electronic device, and the target device is of the same type as the accessory device.
[0330] For a detailed explanation of the specific functions of the processor, please refer to the explanations in the aforementioned method embodiments 1-12. It will not be described in detail in this embodiment.
[0331] The target device can be either an information acquisition device or an information output device.
[0332] The target device can be located anywhere within the electronic device, and this application does not impose any restrictions on its location.
[0333] The first interface can be a pogopin interface.
[0334] In practice, in order to improve the connection reliability between the accessory device and the electronic device, an adsorption structure is provided on the outside of the first interface so that the accessory device and the electronic device can be adsorbed together by the adsorption structure when connected through the first interface.
[0335] The adsorption structure can be a magnet.
[0336] like Figure 20 The diagram shows a connection part in an electronic device. The connection part includes a first interface and an adsorption structure. The first interface includes several pins. In the diagram, the first interface includes a pin area 2001 corresponding to 11 pins. The adsorption structure consists of two sets of magnets 2002-2003 disposed next to the pin.
[0337] Correspondingly, one end of the accessory device is provided with a probe structure corresponding to the socket, and the number and size of the probe match the sockets of the first interface.
[0338] In summary, this embodiment provides an electronic device with a target device. After an accessory device is connected to the first interface of the electronic device, the type information of the accessory device is determined, and a processing method matching the type information is determined. Specifically, it is a processing method related to the accessory device and / or the target device in the electronic device. Since the accessory device and the target device are of the same type, and the accessory device is connected to the first interface of the electronic device, a processing method matching the type information of the accessory device is selected. For the electronic device connected to the accessory device, there are multiple processing methods that can be executed, and the electronic device can realize diverse information processing methods.
[0339] Corresponding to the above-described embodiment of an information processing method provided in this application, this application also provides a readable storage medium corresponding to the information processing method.
[0340] The readable storage medium stores a computer program that is invoked and executed by a processor to implement the steps of the information processing method as described in any of the preceding claims.
[0341] For details on the specific implementation of the information processing method by executing the computer program stored in the readable storage medium, please refer to the aforementioned information processing method embodiments.
[0342] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. The apparatus provided in the embodiments is described simply because it corresponds to the method provided in the embodiments; relevant parts can be found in the method section.
[0343] The above description of the provided 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 provided herein.
Claims
1. An information processing method, comprising: If an accessory device is detected connected to the first interface of an electronic device, the type information of the accessory device is determined; Determine the processing method for matching the type information; wherein the processing method is related to the target device of the accessory device and / or the electronic device, and the target device is of the same type as the accessory device; If the type of the accessory device is an input type, determine the processing method matching the type information, including: identifying the first input information, obtaining the input action, and determining the control instruction corresponding to the input action; processing the second input information based on the control instruction to obtain the target input information; the first input information is the input information collected by the accessory device, and the second input information is the input information collected by the target device of the electronic device, and the first input information is different from the second input information. The target input information is provided to the first application so that the first application can process the target input information; Wherein, the acquisition direction of the target device is a first direction, the acquisition direction of the accessory device is a second direction, the electronic device includes a first body and a second body rotatably connected, the first interface is at a first end of the first body, the second end of the first body is connected to the second body, the first body is provided with an output component, the second body is provided with an input component, the first direction matches the output direction of the output component, and the second direction is the direction toward the input component.
2. The method according to claim 1, wherein if the accessory device is of type output, selecting a processing method corresponding to the type of the accessory device includes: Obtain the information to be output; The information to be output is processed to obtain first output information and second output information; The first output information and the second output information are respectively output to the target device through the accessory device.
3. The method according to claim 2, wherein the information to be output is processed to obtain first output information and second output information; Outputting the first output information and the second output information to the target device via the accessory device, respectively, includes: Extract the information belonging to the first application from the information to be output to obtain the first output information; The output information belonging to the second application is taken as the second output information, where the second application is an application other than the first application. The first output information is output to the first output component of the target device; The second output information is output from the second output component of the accessory device; In the case where the electronic device is not connected to an accessory device, the second output information is output in the first output component in a manner that obscures the first output information.
4. The method according to claim 2, wherein the first interface is disposed at a first position, the target device is disposed at a second position, the distance between the first position and the bearing surface is greater than the distance between the second position and the bearing surface, and the information to be output is processed to obtain first output information and second output information; Outputting the first output information and the second output information to the target device via the accessory device, respectively, includes: Extract audio information with a frequency higher than a preset frequency from the information to be output to obtain the first output information; The remaining information in the information to be output, excluding the first output information, is taken as the second output information; The first output information is output through the accessory device; The second output information is output through the target device.
5. The method according to claim 2, wherein the information to be output is processed to obtain first output information and second output information; Outputting the first output information and the second output information to the target device via the accessory device, respectively, includes: Based on the first audio firmware of the electronic device, the audio firmware of the accessory device is identified, and the information to be output is copied to obtain the first output information and the second output information; The first output information is output through the accessory device; The second output information is output through the target device.
6. The method according to claim 1, wherein determining the processing method for matching the type information includes: The target device is determined based on the type information of the accessory equipment; Based on the fact that the accessory device and the target device meet the preset operating conditions, a target processing object is determined, wherein the target processing object is one of the accessory device and the target device.
7. An electronic device, comprising: Target device; The first interface is used to connect to accessory devices; A first body and a second body are rotatably connected, the first interface is at the first end of the first body, the second end of the first body is connected to the second body, the first body is provided with an output component, and the second body is provided with an input component; A processor is configured to, if it detects that an accessory device is connected to a first interface of an electronic device, determine type information of the accessory device; and determine a processing method that matches the type information; wherein the processing method is related to a target device of the accessory device and / or the electronic device, and the target device is of the same type as the accessory device; If the accessory device is of type input, the processor determines the processing method matching the type information as follows: identifying first input information, obtaining an input action, and determining the control instruction corresponding to the input action; processing second input information based on the control instruction to obtain target input information; the first input information is input information acquired by the accessory device, and the second input information is input information acquired by the target device of the electronic device, wherein the first input information and the second input information are different; providing the target input information to a first application so that the first application processes the target input information, wherein the acquisition direction of the target device is a first direction, the acquisition direction of the accessory device is a second direction, the first direction matches the output direction of the output component, and the second direction is the direction toward the input component.
Citation Information
Patent Citations
Video camera
JP1996289182A
Robot teaching device
JP1999085250A
Method and apparatus for switching to external loudspeaker
WO2017166686A1
Display device, wireless transmitting apparatus, and audio output control method
WO2022042578A1
