Information processing method based on electronic device interaction and first electronic device

By obtaining identity information and determining communication protocols between electronic devices, the problem of compatibility between electronic pens and tablets is solved, cross-brand device interoperability is achieved, and resource waste and inconvenience are avoided.

CN113645599BActive Publication Date: 2024-10-22LENOVO (BEIJING) LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110931612.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-13
Publication Date
2024-10-22
Estimated Expiration
2041-08-13

AI Technical Summary

Technical Problem

There may be compatibility issues between electronic pens and tablets produced by different manufacturers, resulting in users being able to use only a single brand of tablets, resulting in a waste of resources and inconvenience.

Method used

By establishing a connection between electronic devices, the identity information of the tablet computer is obtained, and the corresponding communication protocol is determined based on the information and sent to the tablet computer so that it can communicate with the electronic pen.

Benefits of technology

It achieves compatibility between electronic devices, allowing users to use electronic pens on tablet computers of different models and brands, avoiding resource waste and usage troubles.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113645599B_ABST
    Figure CN113645599B_ABST
Patent Text Reader

Abstract

The present application discloses an information processing method based on electronic device interaction and a first electronic device, which is applied to the first electronic device, including: obtaining the identity information of the second electronic device when determining to establish the first connection with the second electronic device; obtaining the first communication protocol corresponding to the identity information based on the identity information; based on the data path formed after connecting with the second electronic device, sending the first communication protocol to the second electronic device, so that the second electronic device can communicate with the first electronic device based on the first communication protocol. The method enables the first electronic device to establish a data path with any type and model of the second electronic device, so as to utilize the second electronic device, and prevent the second electronic device from being unable to be used due to incompatibility, resulting in waste of resources and causing trouble for the user.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the application field of electronic device interaction, and in particular to an information processing method based on electronic device interaction and a first electronic device. Background Art

[0002] Electronic pens include active pens and passive pens, etc., which can communicate and connect with electronic devices such as tablet computers, and can be used as input devices to perform input operations on the electronic devices. However, due to the large number of manufacturers producing electronic pens and electronic devices, compatibility issues are likely to occur between electronic pens and electronic devices. For example, the communication protocols of active pens produced by different manufacturers are different, making the active pens incompatible with a variety of tablet computers. Users can only interact with a single tablet computer (such as a tablet computer produced by the same manufacturer) using an active pen, and cannot use it on more other tablet computers, which undoubtedly causes a waste of resources for users. Summary of the invention

[0003] The purpose of the embodiment of the present application is to provide an information processing method based on electronic device interaction and a first electronic device, the method is applied in the first electronic device, and the method includes:

[0004] When it is determined that the first connection is established with the second electronic device, obtaining identity information of the second electronic device;

[0005] Acquire a first communication protocol corresponding to the identity information based on the identity information;

[0006] Based on the data path formed after connecting with the second electronic device, the first communication protocol is sent to the second electronic device, so that the second electronic device can communicate with the first electronic device based on the first communication protocol.

[0007] Optionally, the acquiring, based on the identity information, a first communication protocol corresponding to the identity information includes:

[0008] According to the identity information, retrieve a communication protocol corresponding to the identity information from a plurality of communication protocols stored in the first electronic device;

[0009] The retrieved communication protocol is determined as the first communication protocol.

[0010] Optionally, the identity information includes at least one of the following: type information and identification information; before acquiring the first communication protocol, the method further includes:

[0011] Identify the type information and / or identification information of the second electronic device;

[0012] At least based on the type information and / or identification information, determine an association relationship between the type information and / or identification information and a communication protocol;

[0013] Based on the association relationship, the first communication protocol is determined.

[0014] Optionally, the method further includes determining whether the second electronic device has the first communication protocol, which specifically includes:

[0015] Sending a first instruction to the second electronic device to obtain a specific data packet sent by the second electronic device;

[0016] Analyze the first data segment in the specific data packet to generate a corresponding analysis result;

[0017] Based on the analysis result, it is determined whether the second electronic device has the first communication protocol.

[0018] Optionally, the sending the first communication protocol to the second electronic device based on the data path formed after the connection with the second electronic device includes:

[0019] acquiring the data path based on a connection mode with the second electronic device;

[0020] The first communication protocol is sent to the second electronic device through the data path, so that the second electronic device stores the first communication protocol and associates the first communication protocol with the first electronic device.

[0021] Optionally, the method further comprises:

[0022] When it is determined that the second electronic device is connected to the first electronic device again, the second electronic device is driven to call the first communication protocol that has been stored to communicate with the first electronic device.

[0023] Optionally, the method further comprises:

[0024] When it is determined that the second electronic device has the first communication protocol, a second instruction is sent to the second electronic device so that the second electronic device communicates with the first electronic device based on the first communication protocol, including receiving input data sent by the second electronic device.

[0025] Optionally, the method further comprises:

[0026] Determining whether the second electronic device is connected to the first electronic device;

[0027] When the connection is not established, prompt information is generated to guide the second electronic device to perform a connection operation.

[0028] Optionally, the first electronic device stores a plurality of first communication protocols corresponding to different second electronic devices and identity information of the second electronic device, wherein the first communication protocol is associated with the identity information.

[0029] The embodiment of the present application further provides a first electronic device, including:

[0030] an acquisition module, configured to acquire identity information of the second electronic device when determining that the first connection is established with the second electronic device;

[0031] Acquire a first communication protocol corresponding to the identity information based on the identity information;

[0032] The processing module is configured to send the first communication protocol to the second electronic device based on a data path formed after connecting with the second electronic device, so that the second electronic device can communicate with the first electronic device based on the first communication protocol.

[0033] The information processing method of the present application enables a first electronic device to establish a data path with a second electronic device of any type and model, thereby being able to utilize the second electronic device and preventing the second electronic device from being unable to be used due to incompatibility, resulting in a waste of resources and causing inconvenience to the user. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 A flowchart of an information processing method based on electronic device interaction according to an embodiment of the present application;

[0035] Figure 2 For the embodiments of this application Figure 1 A flowchart of an embodiment of step S20;

[0036] Figure 3 A flowchart of a specific embodiment of the information processing method of the embodiment of the present application;

[0037] Figure 4 A flowchart of another specific embodiment of the information processing method of the embodiment of the present application;

[0038] Figure 5 For the embodiments of this application Figure 1 A flowchart of an embodiment of step S30;

[0039] Figure 6 A flowchart of the interaction between a tablet computer and an electronic pen according to an embodiment of the present application;

[0040] Figure 7 This is a schematic diagram of the connection state between a tablet computer and an electronic pen according to an embodiment of the present application;

[0041] Figure 8 This is a structural block diagram of the first electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0042] Various aspects and features of the present application are described herein with reference to the accompanying drawings.

[0043] It should be understood that various modifications may be made to the embodiments of the present application. Therefore, the above description should not be considered as limiting, but only as an example of an embodiment. Other modifications within the scope and spirit of the present application will occur to those skilled in the art.

[0044] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the present application and, together with the general description of the present application given above and the detailed description of the embodiments given below, serve to explain the principles of the present application.

[0045] These and other characteristics of the present application will become apparent from the following description of a preferred form of embodiment given as a non-limiting example with reference to the accompanying drawings.

[0046] It should also be understood that although the present application has been described with reference to some specific examples, those skilled in the art will be able to readily implement many other equivalent forms of the present application.

[0047] The above and other aspects, features and advantages of the present application will become more apparent in view of the following detailed description when taken in conjunction with the accompanying drawings.

[0048] Specific embodiments of the present application are described hereinafter with reference to the accompanying drawings; however, it should be understood that the embodiments applied for are merely examples of the present application, which may be implemented in a variety of ways. Well-known and / or repeated functions and structures are not described in detail to avoid unnecessary or redundant details that obscure the present application. Therefore, the specific structural and functional details applied for herein are not intended to be limiting, but merely serve as a basis and representative basis for the claims to teach those skilled in the art to use the present application in a variety of ways with substantially any suitable detailed structure.

[0049] This specification may use the phrases "in one embodiment," "in another embodiment," "in yet another embodiment," or "in other embodiments," all of which may refer to one or more of the same or different embodiments according to the present application.

[0050] An information processing method based on electronic device interaction in an embodiment of the present application is applied to a first electronic device, where the first electronic device can be a tablet computer, a PC or other device, and the first electronic device can be connected to a second electronic device such as an electronic pen, so that the first electronic device and the second electronic device work together. The method of this embodiment includes: obtaining the identity information of the second electronic device when determining that the first connection is established with the second electronic device. The first electronic device can obtain various situations related to the second electronic device from the identity information, including obtaining the first communication protocol used by the second electronic device to communicate with the first electronic device and other devices, such as a near-field wireless communication protocol or a base station communication protocol, or a wired communication protocol. However, the second electronic device may not have the first communication protocol temporarily, and the first electronic device can send the first communication protocol to the second electronic device after obtaining the first communication protocol, so that the second electronic device can interact with the first electronic device based on the first communication protocol.

[0051] Among them, the first electronic device faces multiple second electronic devices of different models and types. When acquiring the corresponding first communication protocol based on the identity information, in one embodiment, the corresponding acquisition method can be adopted based on the model information and / or type information of the second electronic device to quickly and conveniently acquire the first communication protocol. In another embodiment, the identity information of all models and types of second electronic devices can be uniformly stored and directly obtained from the memory when called, so as to achieve unified management and unified call. Therefore, even when facing different second electronic devices, the first electronic device can normally use the second electronic device, such as using various types of electronic pens for input operations, thereby avoiding waste of resources.

[0052] The information processing method based on electronic device interaction is described in detail below with reference to the accompanying drawings. Figure 1 As shown, the method comprises the following steps:

[0053] S10: When it is determined that the first connection with the second electronic device is established, obtain the identity information of the second electronic device.

[0054] The second electronic device may not be compatible with the first electronic device when it leaves the factory, so the first electronic device may not be able to exchange data with the second electronic device. For example, the second electronic device may be an electronic pen (such as an active pen) that can perform input operations on the first electronic device such as a tablet computer. However, if the electronic pen is not compatible with the tablet computer when it leaves the factory, the electronic pen cannot perform input operations on the tablet computer based on the first communication protocol that matches it.

[0055] In this embodiment, the first electronic device obtains the identity information of the second electronic device when determining to establish the first connection with the second electronic device. The identity information can be expressed in a variety of forms, such as a string, an ID number, information in an agreed form, etc. There can also be a variety of means to obtain the identity information. In one embodiment, the first electronic device sends a request message to the second electronic device to request identity acquisition, and the second electronic device responds and sends its own identity information to the first electronic device. In another embodiment, the second electronic device can actively report its own identity information after connecting to the first electronic device. In yet another embodiment, the first electronic device itself pre-stores the identity information of multiple second electronic devices.

[0056] In addition, on the one hand, when the first electronic device establishes the first connection with the second electronic device, in order to be able to establish contact with the second electronic device and conduct effective data communication every time (including the usage scenario of the first connection), the first electronic device can obtain the identity information of the second electronic device for subsequent operations.

[0057] On the other hand, when the second electronic device is not connected to the first electronic device for the first time, the first electronic device and the second electronic device may have established a valid data path in history. At this time, the first electronic device can also obtain the identity information of the second electronic device to determine the relevant information of the second electronic device currently connected to it.

[0058] S20: Acquire a first communication protocol corresponding to the identity information based on the identity information.

[0059] The first communication protocol may be a communication protocol used by the first electronic device and the second electronic device for data communication. Before data interaction with the first electronic device, the second electronic device may not have the first communication protocol, and thus cannot communicate with the first electronic device immediately.

[0060] The first electronic device needs to obtain a first communication protocol corresponding to the identity information of the second electronic device according to the identity information of the second electronic device, so that the first electronic device and the second electronic device can both implement data communication with each other based on the first communication protocol.

[0061] The first electronic device faces multiple second electronic devices of different models and types. When acquiring the corresponding first communication protocol based on the identity information, a means of acquisition adapted to the corresponding first communication protocol can be adopted according to the actual application scenario. In one embodiment, the identity information includes the model information and / or type information of the second electronic device. The first electronic device can obtain the first communication protocol based on the model information and / or type information of the second electronic device by calling the server, thereby quickly and conveniently acquiring the first communication protocol. In another embodiment, facing a limited number of types of second electronic devices, a plurality of first communication protocols with a smaller amount of data can be stored in the first electronic device, and directly called when used. The method of acquiring the first communication protocol is simple and convenient. Of course, the first communication protocol can also be uniformly stored and managed in advance according to other actual application scenarios, and the operation of acquiring the first communication protocol can be performed based on the current application scenario when used.

[0062] S30: Based on the data path formed after connecting with the second electronic device, the first communication protocol is sent to the second electronic device, so that the second electronic device can communicate with the first electronic device based on the first communication protocol.

[0063] Specifically, although after the first electronic device is connected to the second electronic device, if the second electronic device does not have the first communication protocol, it cannot interact with the first electronic device. However, after the first electronic device is connected to the second electronic device, a data path can be formed between the two. On the one hand, the first electronic device is wired to the second electronic device through a physical interface, and a data path can be formed through the wired line. On the other hand, when the second electronic device is within the wireless broadcast range of the first electronic device, the first electronic device can send a broadcast signal to the second electronic device by actively broadcasting so that the second electronic device responds, thereby also being able to establish a data path.

[0064] After the data path is formed, the first electronic device can send the acquired first communication protocol to the second electronic device through the data path. The second electronic device communicates with the first electronic device using the first communication protocol.

[0065] For example, combined with Figure 6 and Figure 7 The first electronic device is a tablet computer, the second electronic device is an active pen (electronic pen), and the second electronic device can use Bluetooth or USB protocol to communicate with the first electronic device to input information to the first electronic device.

[0066] The information processing method of the present application enables a first electronic device to establish a data path with a second electronic device of any type and model, thereby being able to utilize the second electronic device and preventing the second electronic device from being unable to be used due to incompatibility, resulting in a waste of resources and causing inconvenience to the user.

[0067] In one embodiment of the present application, the first communication protocol corresponding to the identity information is obtained based on the identity information, such as Figure 2 As shown, including:

[0068] S210: According to the identity information, retrieve a communication protocol corresponding to the identity information from a plurality of communication protocols stored in the first electronic device.

[0069] The first electronic device may store multiple communication protocols in its memory, and each communication protocol corresponds to a second electronic device, that is, the second electronic device communicates with the first electronic device through the first communication protocol adapted thereto. The first electronic device may be a near field wireless communication protocol, a base station communication protocol, or a wired communication protocol, etc.

[0070] The first electronic device calls a pre-stored communication protocol that is compatible with the second electronic device according to the identity information of the second electronic device. In one embodiment, if the second electronic device itself corresponds to multiple types of communication protocols, one of the communication protocols can be selected according to a preset arrangement sequence. In another embodiment, if the second electronic device itself corresponds to multiple types of communication protocols, the communication protocol used in the previous communication can be selected to establish communication with the first electronic device.

[0071] S220: Determine the retrieved communication protocol as the first communication protocol.

[0072] Specifically, all communication protocols may be determined as the first communication protocol. In this embodiment, the communication protocol called by the first electronic device is determined as the first communication protocol.

[0073] For example, in the current usage scenario, the second electronic device itself corresponds to multiple types of communication protocols. The first electronic device determines one of the communication protocols as the first communication protocol based on historical data, and then sends the first communication protocol to the second electronic device.

[0074] In one embodiment of the present application, the identity information includes at least one of the following: type information and identification information; before obtaining the first communication protocol, such as Figure 3 As shown, the method also includes:

[0075] S40: Identify the type information and / or identification information of the second electronic device.

[0076] The identity information of the second electronic device includes type information or identification information. The second electronic device can carry the type information and / or identification information. The first electronic device identifies the type information and / or identification information of the second electronic device through a data path, thereby determining the identity of the second electronic device.

[0077] S50: Determine an association relationship between the type information and / or identification information and a communication protocol at least based on the type information and / or identification information.

[0078] There is an association relationship between the type information and / or identification information and the communication protocol. The association relationship can be specifically constructed based on the communication protocol of the second electronic device. The association relationship is determined by the type information and / or identification information during use. The determined association relationship can be stored in the first electronic device or in the server.

[0079] For example, when the second electronic device is a Bluetooth device, the first association relationship with the Bluetooth protocol may be determined according to the identification information of the Bluetooth device.

[0080] S60: Determine the first communication protocol based on the association relationship.

[0081] The association relationship is the relationship between the type information and / or identification information and the communication protocol. Therefore, the first communication protocol can be determined based on the association relationship. For example, the first communication protocol is determined to be the Bluetooth protocol based on the above first association relationship.

[0082] In one embodiment of the present application, the method further includes determining whether the second electronic device has the first communication protocol, such as Figure 4 As shown, specifically including:

[0083] S710, sending a first instruction to the second electronic device to obtain a specific data packet sent by the second electronic device;

[0084] S720, analyzing the first data segment in the specific data packet to generate a corresponding analysis result;

[0085] S730: Based on the analysis result, determine whether the second electronic device has the first communication protocol.

[0086] Specifically, the second electronic device may store the first communication protocol, or may not originally have the first communication protocol. The first electronic device needs to make a judgment on the problem, and can communicate with the second electronic device in an operation mode adapted thereto based on the judgment result.

[0087] The first electronic device sends a first instruction to the second electronic device through a data path, requesting the second electronic device to send information that can determine whether it has the first communication protocol, and after receiving the first instruction, the second electronic device sends a specific data packet to the first electronic device, the specific data packet includes multiple data segments, wherein the first data segment indicates whether the second electronic device has the first communication protocol. The first electronic device can determine whether the second electronic device has the first communication protocol by analyzing the first data segment.

[0088] In addition, the specific data packet also has other data segments, including other information of the second electronic device. For example, when the identity information is not stored in the first electronic device (the identity information may also be originally stored on the first electronic device), the second electronic device can send its identity information to the first electronic device through other data segments. It can also send the second communication protocol it also has to the first electronic device. The first electronic device can determine the communication protocol that the second electronic device also has.

[0089] In one embodiment of the present application, the first communication protocol is sent to the second electronic device based on the data path formed after connecting with the second electronic device, such as Figure 5 As shown, including:

[0090] S310: Acquire the data path based on the connection mode with the second electronic device.

[0091] The first electronic device and the second electronic device have different connection modes, such as wireless connection and wired connection, and different connection modes correspond to different data paths. For example, the first electronic device and the second electronic device are connected via a USB cable, and a data path can be formed via the USB cable.

[0092] S320: Send the first communication protocol to the second electronic device through the data path, so that the second electronic device stores the first communication protocol and associates the first communication protocol with the first electronic device.

[0093] The first electronic device may store a variety of communication protocols, including a first communication protocol. The first electronic device sends the first communication protocol to the second electronic device, and the second electronic device stores the first communication protocol in its own memory so that it can be used at any time to communicate with the first electronic device.

[0094] However, the first electronic device may not use the first communication protocol in the current situation. After determining that it needs to communicate with the second electronic device through the first communication protocol, the first communication protocol can be associated with itself for subsequent use. In this way, the first electronic device does not need to associate a large number of different types of communication protocols, but only associates them when they are used, saving system resources of the first electronic device and avoiding slowing down the operating efficiency of the first electronic device.

[0095] In one embodiment of the present application, the method further comprises the following steps:

[0096] When it is determined that the second electronic device is connected to the first electronic device again, the second electronic device is driven to call the first communication protocol that has been stored to communicate with the first electronic device.

[0097] Specifically, after the second electronic device communicates with the first electronic device for the first time, it receives the first communication protocol sent by the first electronic device. The second electronic device can store the first communication protocol in its own memory. When the second electronic device is connected to the first electronic device again, the first electronic device can drive the second electronic device to call the first communication protocol that has been stored to communicate with the first electronic device without having to determine the communication protocol again, thereby improving processing efficiency.

[0098] In one embodiment of the present application, the method further comprises the following steps:

[0099] When it is determined that the second electronic device has the first communication protocol, a second instruction is sent to the second electronic device so that the second electronic device communicates with the first electronic device based on the first communication protocol, including receiving input data sent by the second electronic device.

[0100] Specifically, if the second electronic device already has the first communication protocol when it is first connected to the first electronic device, the first electronic device does not need to send the first communication protocol to the second electronic device again. Instead, the first electronic device sends a second instruction to the second electronic device to inform the second electronic device that it can directly use the first communication protocol for communication. After the second electronic device receives the second instruction, it can directly communicate with the first electronic device based on the first communication protocol.

[0101] In one embodiment, in combination Figure 7 The second electronic device can be an input device of the first electronic device. For example, the first electronic device is a tablet computer, and the second electronic device is an active pen (electronic pen). The second electronic device can input data to the first electronic device through the first communication protocol.

[0102] In one embodiment of the present application, the method further includes:

[0103] Determining whether the second electronic device is connected to the first electronic device;

[0104] When the connection is not established, prompt information is generated to guide the second electronic device to perform a connection operation.

[0105] Specifically, when the second electronic device is connected to the first electronic device, a connection error may occur, so that no data path is established. The first electronic device can judge the connection status. If it is determined that no connection is established between the first electronic device and the second electronic device, a prompt message can be generated to prompt the user. In one embodiment, the prompt message can also be used to guide the second electronic device to perform a connection operation. For example, the user is informed in the form of graphics and text so that the user can reconnect the second electronic device to the first electronic device.

[0106] In addition, combined Figure 7 In one embodiment, the first electronic device may also display relevant information of the second electronic device, such as information about the second electronic device using the first communication protocol, ID information, power information, etc., for the convenience of the user.

[0107] In one embodiment of the present application, the first electronic device stores a plurality of first communication protocols corresponding to different second electronic devices and identity information of the second electronic device, wherein the first communication protocol is associated with the identity information.

[0108] Specifically, the first electronic device not only stores multiple first communication protocols, but also stores identity information of multiple different second electronic devices, and the first communication protocol has an association relationship with the identity information. This allows the corresponding first communication protocol to be determined directly based on the association relationship after the identity information of the second electronic device is determined. Of course, the first electronic device may not store the identity information, but obtain the identity information by requesting it from the second electronic device or from other devices such as the server.

[0109] The present application also provides a first electronic device, such as Figure 8 As shown, including:

[0110] an acquisition module, configured to acquire identity information of the second electronic device when determining that the first connection is established with the second electronic device;

[0111] A first communication protocol corresponding to the identity information is acquired based on the identity information.

[0112] Specifically, the second electronic device may not be compatible with the first electronic device when it leaves the factory, so the first electronic device may not be able to exchange data with the second electronic device. For example, the second electronic device may be an electronic pen (such as an active pen) that can perform input operations on the first electronic device such as a tablet computer. However, if the electronic pen does not match the tablet computer when it leaves the factory, the electronic pen cannot perform input operations on the tablet computer based on the first communication protocol that matches it.

[0113] In this embodiment, the acquisition module acquires the identity information of the second electronic device when it is determined that the first electronic device and the second electronic device have established a connection for the first time. The identity information can be expressed in a variety of forms, such as a character string, an ID number, information in an agreed form, etc. There can also be a variety of means to obtain the identity information. In one embodiment, the acquisition module sends a request message to the second electronic device to request identity acquisition, and the second electronic device responds and sends its own identity information to the first electronic device. In another embodiment, the second electronic device can actively report its own identity information after connecting to the first electronic device. In yet another embodiment, the first electronic device itself pre-stores the identity information of multiple second electronic devices.

[0114] In addition, on the one hand, when the first electronic device establishes the first connection with the second electronic device, in order to be able to establish contact with the second electronic device and conduct effective data communication every time (including the usage scenario of the first connection), the acquisition module can obtain the identity information of the second electronic device for subsequent operations.

[0115] On the other hand, when the second electronic device is not connected to the first electronic device for the first time, the first electronic device and the second electronic device may have established a valid data path in history. At this time, the acquisition module can also obtain the identity information of the second electronic device to determine the relevant information of the second electronic device currently connected to it.

[0116] The first communication protocol may be a communication protocol used by the first electronic device and the second electronic device for data communication. Before data interaction with the first electronic device, the second electronic device may not have the first communication protocol, and thus cannot communicate with the first electronic device immediately.

[0117] The first electronic device needs to obtain a first communication protocol corresponding to the identity information of the second electronic device according to the identity information of the second electronic device, so that the first electronic device and the second electronic device can both implement data communication with each other based on the first communication protocol.

[0118] The first electronic device faces multiple second electronic devices of different models and types. When acquiring the corresponding first communication protocol based on the identity information, it can adopt a means adapted thereto according to the actual application scenario. In one embodiment, the identity information includes the model information and / or type information of the second electronic device. The first electronic device can obtain the first communication protocol based on the model information and / or type information of the second electronic device by calling the server, thereby quickly and conveniently acquiring the first communication protocol. In another embodiment, facing a limited number of types of second electronic devices, a plurality of first communication protocols with a smaller amount of data can be stored in the first electronic device, and directly called when used. The method of acquiring the first communication protocol is simple and convenient. Of course, the first communication protocol can also be uniformly stored and managed in advance according to other actual application scenarios, and the operation of acquiring the first communication protocol can be performed based on the current application scenario when used.

[0119] The first communication protocol may be a communication protocol used by the first electronic device and the second electronic device for data communication. Before data interaction with the first electronic device, the second electronic device may not have the first communication protocol, and thus cannot communicate with the first electronic device immediately.

[0120] The acquisition module needs to acquire the first communication protocol corresponding to the identity information according to the identity information of the second electronic device, so that the first electronic device and the second electronic device can both achieve data communication with each other based on the first communication protocol.

[0121] The first electronic device faces multiple second electronic devices of different models and types. When the acquisition module acquires the corresponding first communication protocol based on the identity information, it can adopt an acquisition method that is compatible with it according to the actual application scenario. In one embodiment, the identity information includes the model information and / or type information of the second electronic device. The first electronic device can be based on the model information and / or type information of the second electronic device. The acquisition module acquires it in the form of a call on the server side, so as to quickly and conveniently acquire the first communication protocol. In another embodiment, facing a limited number of types of second electronic devices, a plurality of first communication protocols with a small amount of data can be stored in the first electronic device, and the acquisition module directly calls it when in use, and the method of acquiring the first communication protocol is simple and convenient. Of course, the first communication protocol can also be uniformly stored and managed in advance according to other actual application scenarios, and the operation of acquiring the first communication protocol can be performed based on the current application scenario when in use.

[0122] The processing module is configured to send the first communication protocol to the second electronic device based on a data path formed after connecting with the second electronic device, so that the second electronic device can communicate with the first electronic device based on the first communication protocol.

[0123] Specifically, although after the first electronic device is connected to the second electronic device, if the second electronic device does not have the first communication protocol, it cannot interact with the first electronic device. However, after the first electronic device is connected to the second electronic device, a data path can be formed between the two. On the one hand, the first electronic device is wired to the second electronic device through a physical interface, and a data path can be formed through the wired line. On the other hand, when the second electronic device is within the wireless broadcast range of the first electronic device, the processing module can send a broadcast signal to the second electronic device by actively broadcasting so that the second electronic device responds, thereby also being able to establish a data path.

[0124] After the data path is formed, the processing module can send the acquired first communication protocol to the second electronic device through the data path. The second electronic device communicates with the first electronic device using the first communication protocol.

[0125] For example, the first electronic device is a tablet computer, and the second electronic device is an active pen. The second electronic device can communicate with the first electronic device using Bluetooth or USB protocol to input information to the first electronic device.

[0126] In one embodiment of the present application, the acquisition module is further configured as follows:

[0127] According to the identity information, retrieve a communication protocol corresponding to the identity information from a plurality of communication protocols stored in the first electronic device;

[0128] The retrieved communication protocol is determined as the first communication protocol.

[0129] In one embodiment of the present application, the identity information includes at least one of the following: type information and identification information; before acquiring the first communication protocol, the electronic device further includes an identification module, and the identification module is configured to:

[0130] Identify the type information and / or identification information of the second electronic device;

[0131] At least based on the type information and / or the identification information, determine an association relationship between the type information and / or the identification information and the communication protocol;

[0132] Based on the association relationship, the first communication protocol is determined.

[0133] In one embodiment of the present application, the electronic device further includes an identification module, and the identification module is configured to: determine whether the second electronic device has the first communication protocol, which specifically includes:

[0134] Sending a first instruction to the second electronic device to obtain a specific data packet sent by the second electronic device;

[0135] Analyze the first data segment in the specific data packet to generate a corresponding analysis result;

[0136] Based on the analysis result, it is determined whether the second electronic device has the first communication protocol.

[0137] In one embodiment of the present application, the processing module is further configured to:

[0138] acquiring the data path based on a connection mode with the second electronic device;

[0139] The first communication protocol is sent to the second electronic device through the data path, so that the second electronic device stores the first communication protocol and associates the first communication protocol with the first electronic device.

[0140] In one embodiment of the present application, the processing module is further configured to:

[0141] When it is determined that the second electronic device is connected to the first electronic device again, the second electronic device is driven to call the first communication protocol that has been stored to communicate with the first electronic device.

[0142] In one embodiment of the present application, the processing module is further configured to:

[0143] When it is determined that the second electronic device has the first communication protocol, a second instruction is sent to the second electronic device so that the second electronic device communicates with the first electronic device based on the first communication protocol, including receiving input data sent by the second electronic device.

[0144] In one embodiment of the present application, the electronic device further includes a prompt module, and the prompt module is configured to:

[0145] Determining whether the second electronic device is connected to the first electronic device;

[0146] When the connection is not established, prompt information is generated to guide the second electronic device to perform a connection operation.

[0147] In one embodiment of the present application, the first electronic device stores a plurality of first communication protocols corresponding to different second electronic devices and identity information of the second electronic device, wherein the first communication protocol is associated with the identity information.

[0148] The above embodiments are only exemplary embodiments of the present application and are not intended to limit the present application. The protection scope of the present application is defined by the claims. Those skilled in the art may make various modifications or equivalent substitutions to the present application within the essence and protection scope of the present application, and such modifications or equivalent substitutions shall also be deemed to fall within the protection scope of the present application.

Claims

1. An information processing method based on electronic device interaction, applied to a first electronic device, the method comprising: When it is determined that the first connection is established with the second electronic device, obtaining identity information of the second electronic device, wherein the second electronic device is an electronic pen; acquiring a first communication protocol corresponding to the identity information based on the identity information, wherein the first electronic device stores a plurality of communication protocols; Based on the data path formed after connecting with the second electronic device, the first communication protocol is sent to the second electronic device, so that the second electronic device can communicate with the first electronic device based on the first communication protocol, and input information to the first electronic device based on the communication.

2. The method according to claim 1, wherein obtaining the first communication protocol corresponding to the identity information based on the identity information comprises: According to the identity information, retrieve a communication protocol corresponding to the identity information from a plurality of communication protocols stored in the first electronic device; The retrieved communication protocol is determined as the first communication protocol.

3. The method according to claim 2, wherein the identity information comprises at least one of the following: type information and identification information; before obtaining the first communication protocol, the method further comprises: Identify the type information and / or identification information of the second electronic device; At least based on the type information and / or the identification information, determine an association relationship between the type information and / or the identification information and the communication protocol; Based on the association relationship, the first communication protocol is determined.

4. The method according to claim 1, further comprising determining whether the second electronic device has the first communication protocol, which specifically comprises: Sending a first instruction to the second electronic device to obtain a specific data packet sent by the second electronic device; Analyze the first data segment in the specific data packet to generate a corresponding analysis result; Based on the analysis result, it is determined whether the second electronic device has the first communication protocol.

5. The method according to claim 1, wherein the sending the first communication protocol to the second electronic device based on the data path formed after the connection with the second electronic device comprises: acquiring the data path based on a connection mode with the second electronic device; The first communication protocol is sent to the second electronic device through the data path, so that the second electronic device stores the first communication protocol and associates the first communication protocol with the first electronic device.

6. The method according to claim 5, further comprising: When it is determined that the second electronic device is connected to the first electronic device again, the second electronic device is driven to call the first communication protocol that has been stored to communicate with the first electronic device.

7. The method according to claim 1, further comprising: When it is determined that the second electronic device has the first communication protocol, a second instruction is sent to the second electronic device so that the second electronic device communicates with the first electronic device based on the first communication protocol, including receiving input data sent by the second electronic device.

8. The method according to claim 1, further comprising: Determining whether the second electronic device is connected to the first electronic device; When the connection is not established, prompt information is generated to guide the second electronic device to perform a connection operation.

9. The method according to claim 1, wherein the first electronic device stores a plurality of first communication protocols corresponding to different second electronic devices and identity information of the second electronic devices, wherein: The first communication protocol is associated with the identity information.

10. A first electronic device, comprising: an acquisition module, configured to acquire identity information of a second electronic device when it is determined that the first connection is established with the second electronic device, wherein the second electronic device is an electronic pen; acquiring a first communication protocol corresponding to the identity information based on the identity information, wherein the first electronic device stores a plurality of communication protocols; A processing module is configured to send the first communication protocol to the second electronic device based on a data path formed after connecting with the second electronic device, so that the second electronic device can communicate with the first electronic device based on the first communication protocol, and input information to the first electronic device based on the communication.