Processing method and first equipment

By scanning the device identifier and establishing an encrypted data channel, the device interconnection process is simplified, and the problems of cumbersome key exchange and insufficient security are solved, and safe and efficient interconnection between devices is achieved.

CN119071347APending Publication Date: 2024-12-03LENOVO (BEIJING) LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411047699.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-31
Publication Date
2024-12-03

AI Technical Summary

Technical Problem

When existing devices are interconnected, the key exchange process is cumbersome, resulting in poor experience and insufficient trust mechanism, which makes it susceptible to third-party interception.

Method used

The identification of the second device is obtained by scanning the first connecting element. If the match is successful, a first data channel is established to transmit the target data, including the destination address and the key; at the same time, the second connecting element responds to the connection request and establishes the second data channel, Encrypted communication using different connection protocols and keys to ensure data security.

Benefits of technology

Simplifies the device interconnection process, improves the user experience, and ensures the security of key exchange through encrypted channels, preventing threats from data during subsequent channels.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119071347A_ABST
    Figure CN119071347A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a processing method and first equipment, and the method comprises the steps: obtaining a first identifier of second equipment and a second identifier of a second program based on scanning of a first connection element; the first connection element corresponds to a first connection protocol; if the second equipment is determined to be successfully matched target equipment based on the first identifier and the second identifier is successfully matched with the target identifier, transmitting first target data based on a first data channel of the first connection element; the first identifier determines that the second device represents that the data transmitted by the first data channel is security data for the successfully matched target device, and the first target data comprises a destination address and a key; and establishing a second data channel based on the second connection element with the second device in response to the connection request based on the second connection element, the first connection element being different from the second connection element, the second connection element corresponding to the second connection protocol, the connection request being a request initiated by the second program based on the destination address and encrypted based on the key.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to a processing method and a first device. Background Art

[0002] When two devices based on the device interconnection discovery protocol are connected, in order to ensure the trust mechanism between the devices, device trust authentication is usually required to achieve device interconnection.

[0003] Usually, each time two devices are connected, one device takes a picture of the QR code displayed on the other end to exchange keys to complete the connection. This process is rather cumbersome, resulting in a poor experience. Summary of the invention

[0004] The embodiments of the present application provide a processing method and a first device.

[0005] The technical solution of this application is implemented as follows:

[0006] In a first aspect, an embodiment of the present application provides a processing method, the method comprising:

[0007] Based on the scanning of the first connection element, a first identification of the second device and a second identification of the second program are obtained; the first connection element corresponds to the first connection protocol;

[0008] If the second device is determined to be a successfully matched target device based on the first identifier, and the second identifier matches the target identifier successfully, the first target data is transmitted based on the first data channel of the first connection element; the determination by the first identifier that the second device is a successfully matched target device indicates that the data transmitted by the first data channel is secure data, and the first target data includes a destination address and a key;

[0009] Based on the second connection element responding to the connection request, a second data channel based on the second connection element is established with the second device, wherein the first connection element is different from the second connection element, the second connection element corresponds to a second connection protocol, and the connection request is a request initiated by the second program based on the destination address and encrypted based on the key.

[0010] In the above processing method, determining that the second device is a successfully matched target device based on the first identifier includes:

[0011] Querying an identification list based on the first identification, the identification list including target devices that have been successfully matched;

[0012] If the first identifier belongs to the identifier list, it is determined that the second device is a successfully matched target device.

[0013] In the above processing method, determining that the second device is a successfully matched target device based on the first identifier includes:

[0014] Pairing with the second device based on the first identifier;

[0015] If pairing with the second device is successful, the second device is determined to be a successfully matched target device.

[0016] In the above processing method, the method further comprises:

[0017] If the second data channel based on the second connection element is successfully established with the second device in response to the connection request, it indicates that the data transmitted through the second data channel is secure data; wherein the second data channel is a channel for transmitting data between the first program and the second program.

[0018] In the above processing method, the scanning based on the first connection element includes:

[0019] Based on the first connection element scan, a third identifier of at least one functional module of the first program is obtained.

[0020] In the above processing method, after the second data channel based on the second connection element is successfully established with the second device based on the second connection element responding to the connection request, the method further includes:

[0021] Displaying the target function module matching the third identifier to provide it for user selection;

[0022] In response to a trigger instruction for a first target functional module, second target data of the first target functional module is transmitted based on the second data channel and the key.

[0023] In the above processing method, before transmitting the first target data based on the first data channel of the first connection element, the method further includes:

[0024] The destination address and the key are created to establish a connection with a second device based on the destination address and the key.

[0025] In the above processing method, the step of establishing a second data channel based on the second connection element with the second device based on the second connection element responding to the connection request includes at least one of the following:

[0026] If the first device and the second device belong to the same local area network, establishing the second data channel based on the network address of the first device and the network address of the second device;

[0027] If the second device and the first device do not belong to the same local area network, use the second device as a connecting node of the network so that the first device is directly connected to the connecting node to establish the second data channel;

[0028] If the first device and the second device do not belong to the same local area network, the first device is controlled to be in a shared network mode so that the second device connects to the first device to establish the second data channel.

[0029] In a second aspect, an embodiment of the present application provides a first device, the device comprising:

[0030] A scanning unit, configured to obtain a first identifier of a second device and a second identifier of a second program based on scanning of a first connection element; the first connection element corresponds to a first connection protocol;

[0031] a data transmission unit, configured to transmit first target data based on the first data channel of the first connection element if the second device is determined to be a successfully matched target device based on the first identifier, and the second identifier matches the target identifier successfully; the determination by the first identifier that the second device is a successfully matched target device indicates that the data transmitted through the first data channel is secure data, and the first target data includes a destination address and a key;

[0032] Establish a connection unit, used for establishing a second data channel based on the second connection element with the second device in response to the connection request based on the second connection element, wherein the first connection element is different from the second connection element, the second connection element corresponds to a second connection protocol, and the connection request is a request initiated by the second program based on the destination address and encrypted based on the key.

[0033] In a third aspect, an embodiment of the present application provides a first device, including:

[0034] A first connection element, configured to establish a connection with a second device based on a first connection protocol;

[0035] A second connection element, configured to establish a connection with the second device based on a second connection protocol;

[0036] Processor for:

[0037] Based on the scanning of the first connection element, a first identifier of the second device and a second identifier of the second program are obtained; the first connection element corresponds to the first connection protocol;

[0038] If the second device is determined to be a successfully matched target device based on the first identifier, and the second identifier matches the target identifier successfully, the first target data is transmitted based on the first data channel of the first connection element; the determination by the first identifier that the second device is a successfully matched target device indicates that the data transmitted by the first data channel is secure data, and the first target data includes a destination address and a key;

[0039] Based on the second connection element responding to the connection request, a second data channel based on the second connection element is established with the second device, wherein the first connection element is different from the second connection element, the second connection element corresponds to a second connection protocol, and the connection request is a request initiated by the second program based on the destination address and encrypted based on the key.

[0040] An embodiment of the present application provides a processing method and a first device, the method comprising: obtaining a first identifier of a second device and a second identifier of a second program based on scanning of a first connection element; the first connection element corresponds to a first connection protocol; if the second device is determined to be a successfully matched target device based on the first identifier, and the second identifier matches the target identifier successfully, then transmitting the first target data through a first data channel based on the first connection element; the first identifier determines that the second device is a successfully matched target device, indicating that the data transmitted through the first data channel is secure data, and the first target data includes a destination address and a key; based on the second connection element responding to a connection request, establishing a second data channel based on the second connection element with the second device, wherein the first connection element is different from the second connection element, the second connection element corresponds to the second connection protocol, and the connection request is a request initiated by the second program based on the destination address and encrypted based on the key. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1 A flow chart of a processing method provided in an embodiment of the present application;

[0042] Figure 2 An exemplary processing method flow provided for the embodiment of the present application Figure 1 ;

[0043] Figure 3 An exemplary processing method flow provided for the embodiment of the present application Figure 2 ;

[0044] Figure 4 A schematic diagram of the composition structure of a first device provided in an embodiment of the present application Figure 1 ;

[0045] Figure 5 A schematic diagram of the composition structure of a first device provided in an embodiment of the present application Figure 2 . DETAILED DESCRIPTION

[0046] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0047] The present application embodiment provides a processing method, which is applied to a first device. Figure 1 A flow chart of a processing method provided in an embodiment of the present application is as follows: Figure 1 As shown, the processing method may include steps S101 to S103:

[0048] Step S101: based on scanning with a first connection element, obtain a first identifier of a second device and a second identifier of a second program; the first connection element corresponds to a first connection protocol.

[0049] In the embodiment of the present application, the first device obtains the first identification of the second device and the second identification of the second program based on scanning of the first connection element; the first connection element corresponds to the first connection protocol.

[0050] In some embodiments, the first connection element can be an electronic component that implements the first connection protocol on the first device. For example, if the first connection protocol is a Bluetooth connection protocol, the first connection element is a Bluetooth module. If the first connection protocol is a ZigBee connection protocol, the first connection element is a ZigBee module. If the first connection protocol is a Universal Serial Bus (USB) connection protocol, the first connection element is a USB interface. If the first connection protocol is a Transmission Control Protocol (TCP) / Internet Protocol (IP), the first connection element is a WiFi module. The specific first connection element and the first connection protocol can be selected according to actual conditions, and the embodiments of the present application are not limited here.

[0051] In some embodiments, the first program on the first device is scanned based on the first connection element. At this time, a second device appears within the scanning range of the first connection element. The first device can obtain the device identification of the second device based on the first connection element, that is, the first identification, and at the same time obtain the second identification of the second program on the second device waiting to establish a connection with the first program.

[0052] In one example, if the first connection element is a Bluetooth module on the first device, the first device scans based on the Bluetooth module to find the second device, thereby, the first device can obtain the first identifier of the second device and the second identifier of the second program on the second device through the Bluetooth module.

[0053] Step S102: If the second device is determined to be a successfully matched target device based on the first identifier, and the second identifier matches the target identifier successfully, the first target data is transmitted through the first data channel based on the first connection element; the first identifier determines that the second device is a successfully matched target device, indicating that the data transmitted through the first data channel is secure data, and the first target data includes a destination address and a key.

[0054] In an embodiment of the present application, after the first device obtains the first identifier of the second device and the second identifier of the second program, if the second device is determined to be a successfully matched target device based on the first identifier, and the second identifier matches the target identifier successfully, the first target data is transmitted based on the first data channel of the first connecting element; the first identifier determines that the second device is a successfully matched target device, indicating that the data transmitted through the first data channel is secure data, and the first target data includes a destination address and a key.

[0055] In one embodiment, before the first program locally on the first device initiates a scan for the second device based on the first connection element, the first device and the second device may have established a connection based on the first connection element. Based on this, after obtaining the first identifier of the second device, the first device searches for the device identifiers of all devices that are connected to itself based on the first connection element. If the first identifier is found, it indicates that the first device has been successfully matched with the second device in advance, that is, the second device is a successfully matched target device. Alternatively, the first device is paired with the second device based on the first identifier of the second device. If the pairing is successful, it means that the second device is a successfully matched target device. At the same time, the second identifier of the second program needs to be successfully matched with the target identifier. Then, the first target data can be sent to the second device based on the first data channel established between the first device and the second device due to the successful match, so that the second program on the second device can establish a second data channel with the first program on the first device based on the first target data to transmit data. Since the first data channel is established between the first device and the second device due to the successful match, the security of the data can be guaranteed when sending data to the second device through the first data channel.

[0056] In one example, if the first connecting element is a Bluetooth module on the first device, before the first program on the first device initiates scanning based on the Bluetooth module, the first device has successfully paired with the second device based on the Bluetooth module to establish a communication connection. Therefore, the device identifier of the second device has been stored on the first device. After obtaining the first identifier of the second device, the first device can compare the first identifier with the device identifier of the second device pre-stored on the first device. If they are the same and the second identifier of the second program matches the target identifier successfully, the first device can directly use the Generic Attribute Profile (GATT) channel corresponding to the Bluetooth module to send the first target data including the destination address and the key to the second device; accordingly, if the first device has not established a connection with the second device based on the Bluetooth module in advance, it can also perform Bluetooth pairing with the second device based on the first identifier after obtaining the first identifier of the second device. If the pairing is successful, the first device can also directly use the Bluetooth GATT channel to send the first target data including the destination address and the key to the second device.

[0057] In one example, the target identifier is an identifier corresponding to the first program installed on the first device. The first program may be an interconnection software used for interconnecting the first device and the second device. For example, the target identifier is UUID (00005246-0000-1000-8000-00805f9b34fb). The UUID is unique. Therefore, the second identifier of the second program can be matched with the target identifier to further determine whether the second program is also the same interconnection software as the first program, that is, to determine whether the second device supports the interconnection software. Only when it is determined that the Bluetooth matching between the first device and the second device is successful and the second device and the first device also support the interconnection software, can the second device complete the device interconnection operation based on the interconnection software with the first device based on the Bluetooth GATT channel.

[0058] In one embodiment, the interconnection software can be understood as software that can realize convenient connection and data transmission between different devices. The interconnection software includes at least the following functions: file sharing (allowing users to transfer and share files between different devices), multi-screen connection (connecting multiple devices to form a working environment for mutual data synchronization), remote control (taking one device as the main control, connecting other devices and remotely controlling them), shared clipboard (clipboard contents can be shared between different devices, and information can be copied and pasted conveniently and quickly), etc.; the specific interconnection software can be determined according to actual conditions, and the embodiments of the present application do not make specific limitations here.

[0059] In one embodiment, during the key exchange process, if the channel for transmitting the key is not secure, the key is likely to be intercepted by a third party, thereby threatening the security of the first device and the second device when they subsequently transmit data through the established second data channel. Therefore, the first device needs to exchange keys with the second device based on a secure first connection channel, thereby ensuring the security of the key exchange process.

[0060] Step S103: based on the second connection element responding to the connection request, establishing a second data channel based on the second connection element with the second device, wherein the first connection element is different from the second connection element, the second connection element corresponds to the second connection protocol, and the connection request is a request initiated by the second program based on the destination address and encrypted based on the key.

[0061] In an embodiment of the present application, after the first device transmits the first target data to the second device through a first data channel based on the first connection element, the first device establishes a second data channel based on the second connection element with the second device based on the response of the second connection element to the connection request, wherein the first connection element is different from the second connection element, the second connection element corresponds to the second connection protocol, and the connection request is a request initiated by the second program based on the destination address and encrypted based on a key.

[0062] In some embodiments, the second connection element can be an electronic component that implements the second connection protocol on the first device. If the second connection protocol is a device interconnection protocol, then the second connection element can be a wireless communication module that implements device interconnection, such as a Bluetooth model, a ZigBee module, and a WiFi module, or a wired communication module that implements device interconnection, such as a USB interface; the specific second connection element and the second connection protocol can be selected according to actual conditions, and the embodiments of the present application are not limited here.

[0063] In one embodiment, after the first device sends first target data including a destination address and a key to the second device using a first data channel pre-established with the second device based on a first connection element, a second program in the second device waiting to connect with the first program can send a key-encrypted connection request to the first device based on the received destination address, so as to achieve the purpose of establishing a second data channel with the first device based on the second connection element. As a result, the second connection element on the first device can establish a second data channel with the second device upon receiving the connection request, thereby interacting with the second device based on the second data channel.

[0064] In one example, the first connecting element is a Bluetooth module, and the second connecting element is a wireless communication module for device interconnection. After the first device determines that a first data channel has been established with the second device through the Bluetooth module in advance, the first device can send first target data including a destination address and a key to the second device through the first data channel. The second program on the second device establishes a second data channel for device interconnection with the first program on the first device based on the destination address, so that data can be exchanged between the first device and the second device through the first data channel of the Bluetooth module and / or the second data channel of the wireless communication module.

[0065] Based on this, the present application can perform data interaction based on the first data channel pre-established between the two devices to complete the establishment of the second data channel. Since the first data channel is established based on the condition that the first device and the second device are successfully matched, the security of the data can be guaranteed when data is interacted through the first data channel. At the same time, establishing the second data channel based on the first data channel can make the establishment of the second data channel more convenient.

[0066] In an optional embodiment of the present application, the first device determines that the second device is a successfully matched target device based on the first identifier, including the following steps: querying an identifier list based on the first identifier, the identifier list includes target devices that have been successfully matched; if the first identifier belongs to the identifier list, determining that the second device is a successfully matched target device.

[0067] In one embodiment, after obtaining the first identifier of the second device, the first device obtains the device identifiers of all devices with which connections have been established in advance, i.e., an identifier list, and searches for the first identifier from the identifier list. If the identifier list includes the first identifier, it means that the first device has already established a connection with the second device in advance, i.e., the second device is a target device that has been successfully matched in advance.

[0068] Based on this, the present application can quickly determine whether the second device is a successfully matched target device based on the identification list, so that data can be interacted with the second device based on the first data channel successfully established by matching with the second device, thereby improving the speed of establishing the second data channel.

[0069] In an optional embodiment of the present application, the first device determines that the second device is a successfully matched target device based on the first identifier, including the following steps: pairing with the second device based on the first identifier; if pairing with the second device is successful, determining that the second device is a successfully matched target device.

[0070] In one embodiment, after obtaining the first identifier of the second device, the first device may first search from the identifier list whether the first identifier is stored, and if not, pair with the second device based on the first identifier. Alternatively, the first device may directly pair with the second device based on the first identifier without searching from the identifier list. If the pairing is successful, the second device is determined to be the successfully matched target device.

[0071] Based on this, the present application does not limit the second device to be pre-matched with the first device, thereby improving the flexibility of establishing the second data channel.

[0072] In an optional embodiment of the present application, if the first device responds to the connection request based on the second connection element and successfully establishes a second data channel based on the second connection element with the second device, it indicates that the data transmitted through the second data channel is secure data; wherein the second data channel is a channel for transmitting data between the first program and the second program.

[0073] In one embodiment, the second connection element of the first device receives a connection request and successfully establishes a second data channel with the second device based on the connection request, indicating that the first device and the second device are interconnected based on the second connection element. At this time, the security of data can be guaranteed when the first program on the first device transmits data with the second program on the second device through the second data channel.

[0074] Based on this, the present application can ensure the security of the data interaction process when the destination address and key are exchanged between the first data channel and the second device, thereby ensuring the security of the device interconnection process.

[0075] In an optional embodiment of the present application, the first device scans based on the first connection element, including the following steps: based on the first connection element scan, obtaining a third identifier of at least one functional module of the first program.

[0076] In one embodiment, the first device can determine, based on scanning of the first connection element, a first program on the first device waiting to connect to a second program on the second device, and determine a module identifier of at least one functional module on the first program, i.e., a third identifier. The module identifier of each functional module can be different, i.e., the number of third identifiers is one or more; the specific third identifier can be selected according to actual conditions, and the embodiment of the present application is not limited here.

[0077] In one example, the first program is the first interconnected software on the first device, and the second program is the second interconnected software on the second device. The first device can scan through the Bluetooth module to obtain a third identifier of at least one functional module on the first interconnected software. The interconnected software may include multiple functions, such as mirroring screen projection function, file sharing and transmission function, information synchronization function, etc.; the specific functions of the interconnected software can be determined according to actual conditions, and the embodiments of the present application are not limited here.

[0078] In an optional embodiment of the present application, if the first device responds to the connection request based on the second connection element and successfully establishes a second data channel based on the second connection element with the second device, it also includes the following steps: displaying the target function module matching the third identifier to provide it to the user for selection; in response to a trigger instruction for the first target function module, transmitting the second target data of the first target function module based on the second data channel and the key.

[0079] In one embodiment, after the first device successfully establishes a second data channel based on a second connecting element with the second device, the first device displays at least one target function module in the first program to provide a selection to the user. After the user selects the first target function module from the first program, the first device can transmit the second target data of the first target function module to the second device based on the second data channel established between the first device and the key.

[0080] In one example, the first program is the first interconnected software on the first device, and the second program is the second interconnected software on the second device. The first device displays the mirroring screen projection function, the file sharing and transmission function, and the information synchronization function on the first interconnected software. At this time, if the user selects the mirroring screen projection function, the first device can transmit the second target data of the mirroring screen projection function to the second device based on the second data channel.

[0081] Based on this, the present application can provide users with a variety of different functions so that users can flexibly select data corresponding to different functions for transmission, thereby improving the user experience when using device interconnection.

[0082] In an optional embodiment of the present application, before the first device transmits the first target data based on the first data channel of the first connection element, the following steps are further included: creating a destination address and a key to establish a connection with the second device based on the destination address and the key.

[0083] In one embodiment, the first device needs to create a destination address for establishing a second data channel with the second device, and a key for transmitting data in the second data channel, and then send the first target data including the destination address and the key to the second device through the first data channel established with the second device based on the first connection element. At this time, the second device can initiate a request to establish the second data channel to the first device based on the received destination address and the key.

[0084] In an optional embodiment of the present application, based on the second connection element responding to the connection request, a second data channel based on the second connection element is established with the second device, including at least one of the following: if the first device and the second device belong to the same local area network, the second data channel is established based on the network address of the first device and the network address of the second device; if the first device and the second device do not belong to the same local area network, the second device is used as a connection node for networking so that the first device is directly connected to the connection node to establish the second data channel; if the first device and the second device do not belong to the same local area network, the first device is controlled to be in a shared network mode so that the second device connects to the first device to establish the second data channel.

[0085] In one embodiment, when the first device establishes the second data channel with the second device, different channel establishment modes may be selected according to whether the first device and the second device belong to the same local area network.

[0086] In one embodiment, since the first device first scans the second device based on the first connecting element, the first device can determine whether the first device and the second device belong to the same local area network. At this time, the first device can send indication information to the second device through the first data channel, for indicating the establishment of a second data channel with the second device through any of the above-mentioned methods; conversely, when the second device receives the first target data, the second device can determine whether the first device and the second device belong to the same local area network. At this time, the second device can send indication information to the first device through the first data channel, for indicating the establishment of a second data channel with the first device through any of the above-mentioned methods.

[0087] In some embodiments, if the second connection element is a WiFi module, the second data channel is established based on the WiFi module, and the specific establishment method is as follows:

[0088] As an example, if the first device and the second device are located in the same Local Area Network (LAN), the WiFi module between the first device and the second device can establish a second data channel based on the network address between the two devices. The second data channel can be based on the underlying Ethernet frame or based on a higher-layer Transmission Control Protocol (TCP) / Internet Protocol (IP).

[0089] For example, if the first device and the second device are not located in the same Local Area Network (LAN), the second device can use its own WiFi module as a connection node for networking, so that the second device plays a role of transfer or routing. Based on this, the first device can directly connect to this connection node based on its own WiFi module, thereby establishing a second data channel.

[0090] As an example, if the first device and the second device are not located in the same Local Area Network (LAN), the first device can configure the first device to a shared network mode through its own WiFi module. In the shared network mode, the first device will enable certain specific network functions or services. Based on this, the second device can connect to the first device through its own WiFi module. If the connection is successful, a second data channel is established.

[0091] Based on this, the present application can propose different methods for establishing the second data channel when the first device and the second device are in any local area network scenario, thereby making the establishment process of the second data channel more flexible, not restricted by the network where the first device and the second device are located, and making device interconnection more convenient.

[0092] Based on the above embodiments, the present application embodiment uses a mobile phone as an example of the first device, a tablet as an example of the second device, a Bluetooth module as an example of the first connection element, and a device interconnection module as an example of the second connection element to explain the above embodiments. Figure 2 , specifically including the following steps S201 to S207:

[0093] Step S201: The mobile phone scans based on the Bluetooth module and finds the tablet computer.

[0094] Specifically, the mobile phone performs Bluetooth scanning based on the Bluetooth Low Energy (BLE) technology of the Bluetooth module, discovers or identifies nearby Bluetooth devices, that is, the tablet computer, through a universally unique identifier (UUID), and obtains the Bluetooth address (BLE addr) of the tablet computer, which is the first identifier mentioned above.

[0095] Step S202: Determine whether the mobile phone and the tablet computer have been successfully paired via the Bluetooth module.

[0096] Specifically, after obtaining the BLE addr (Bluetooth address) of the tablet computer, the mobile phone can determine whether it has been successfully paired with the tablet computer based on Bluetooth in advance through the BLE addr. If it is determined that the pairing is successful, the process proceeds to step S203; if it is determined that the pairing is not successful, the process proceeds to step S207.

[0097] Step S203: The mobile phone establishes a second data channel for device interconnection with the tablet computer based on Bluetooth pairing.

[0098] Specifically, if the mobile phone and the tablet computer have been successfully paired based on Bluetooth, the mobile phone can exchange the destination address and key with the tablet computer based on the Bluetooth GATT channel, that is, the first data channel mentioned above, thereby establishing a second data channel for device interconnection with the tablet computer, including the following steps S204 to S206.

[0099] Step S204: The mobile phone establishes a GATT channel with the tablet computer via the Bluetooth address of the tablet computer.

[0100] Specifically, the mobile phone establishes a GATT channel with the tablet computer through the Bluetooth address of the tablet computer. The GATT channel is an encrypted channel, and the data transmitted through the GATT channel can ensure the security of the data.

[0101] Step S205: The mobile phone sends the destination address and the key to the tablet computer through the GATT channel.

[0102] Specifically, after the mobile phone establishes a GATT channel with the tablet computer, it can send the destination address of the mobile phone, such as the mobile phone IP address (IP Addresses, IPs), the mobile phone fingerprint information (Fingerprint, fp), and the key used for data interaction with the tablet computer, such as a token, to the tablet computer through the GATT channel.

[0103] Step S206: The tablet computer establishes a second data channel for device interconnection with the mobile phone based on the destination address and the key.

[0104] Specifically, the tablet computer is interconnected with the mobile device based on the destination address and the key, and simultaneously establishes a second data channel for device interconnection, such as data transmission in the interconnection software.

[0105] Step S207: The mobile phone displays a QR code and waits for the tablet computer to successfully pair with the mobile phone through the QR code, thereby establishing a second data channel.

[0106] In summary, if the mobile phone and the tablet computer have been paired via Bluetooth, the keys and destination addresses can be exchanged directly through the Bluetooth encrypted GATT channel to complete the device interconnection between the mobile phone and the tablet computer. This saves the step of scanning the QR code, making the device interconnection process more convenient. However, if the mobile phone and the tablet computer have not been paired via Bluetooth, the original QR code scanning method can be used to complete the device interconnection between the mobile phone and the tablet computer.

[0107] In another optional example of the present application, the interconnection software on the mobile phone can also monitor the Bluetooth pairing event of the mobile phone, and after finding that the mobile phone and the tablet have completed Bluetooth pairing, a pop-up window prompts the user whether the device needs to be interconnected, referring to Figure 3 , specifically including the following steps S301 to S307:

[0108] Step S301: The mobile phone monitors whether there is a new tablet computer that has successfully paired with Bluetooth.

[0109] Specifically, if it exists, the process proceeds to step S302, and if it does not exist, the process proceeds to step S301 based on monitoring.

[0110] Step S302: The mobile phone performs a scan based on the Bluetooth module to determine whether the tablet computer supports device interconnection.

[0111] Specifically, if the tablet computer supports device interconnection, the process proceeds to step S303 ; if not, the process proceeds to step S301 based on monitoring.

[0112] Step S303: The mobile phone establishes a second data channel for device interconnection with the tablet computer based on Bluetooth pairing.

[0113] Step S304: The mobile phone establishes a GATT channel with the tablet computer via the Bluetooth address of the tablet computer.

[0114] Step S305: The mobile phone sends the destination address and the key to the tablet computer through the GATT channel.

[0115] Step S306: The tablet computer establishes a second data channel for device interconnection with the mobile phone based on the destination address and the key.

[0116] In summary, the interconnection software can monitor Bluetooth pairing events. After discovering that a new device has completed Bluetooth pairing, a prompt can be popped up to ask the user whether the device needs to be paired. After the user allows, the key exchange of the interconnection software is triggered to complete the device interconnection between the two devices. In this way, the step of scanning the QR code can be saved, making the device interconnection process more convenient.

[0117] The embodiment of the present application provides a processing method, which includes: based on scanning with a first connection element, obtaining a first identifier of a second device and a second identifier of a second program; the first connection element corresponds to a first connection protocol; if the second device is determined to be a successfully matched target device based on the first identifier, and the second identifier matches the target identifier successfully, transmitting the first target data based on the first data channel of the first connection element; the first identifier determines that the second device is a successfully matched target device, indicating that the data transmitted through the first data channel is secure data, and the first target data includes a destination address and a key; based on the second connection element responding to a connection request, establishing a second data channel based on the second connection element with the second device, wherein the first connection element is different from the second connection element, the second connection element corresponds to the second connection protocol, and the connection request is a request initiated by the second program based on the destination address and encrypted based on the key; by adopting the above implementation scheme, the present application can perform data interaction based on the first data channel pre-established between the two devices to complete the establishment of the second data channel. Since the first data channel is established based on the condition that the first device and the second device match successfully, the security of the data can be guaranteed when performing data interaction through the first data channel, and at the same time, establishing the second data channel based on the first data channel can make the establishment of the second data channel more convenient.

[0118] Based on the above embodiment, in another embodiment of the present application, a first device is provided. Figure 4 A schematic diagram of the composition structure of a first device provided in this application Figure 1 ,like Figure 4 As shown, the first device 400 includes:

[0119] A scanning unit 401 is used to obtain a first identifier of a second device and a second identifier of a second program based on scanning of a first connection element; the first connection element corresponds to a first connection protocol;

[0120] The data transmission unit 402 is configured to transmit first target data based on the first data channel of the first connection element if the second device is determined to be a successfully matched target device based on the first identifier, and the second identifier matches the target identifier successfully; the determination by the first identifier that the second device is a successfully matched target device indicates that the data transmitted through the first data channel is secure data, and the first target data includes a destination address and a key;

[0121] Establishing a connection unit 403, for establishing a second data channel based on the second connection element with the second device in response to the connection request based on the second connection element, wherein the first connection element is different from the second connection element, the second connection element corresponds to a second connection protocol, and the connection request is a request initiated by the second program based on the destination address and encrypted based on the key.

[0122] In some embodiments, the first device 400 further includes: a query unit and a determination unit;

[0123] The query unit is used to query an identification list based on the first identification, wherein the identification list includes target devices that have been successfully matched;

[0124] The determining unit is configured to determine that the second device is a successfully matched target device if the first identifier belongs to the identifier list.

[0125] In some embodiments, the first device 400 further includes: a pairing unit;

[0126] The pairing unit is configured to pair with the second device based on the first identifier;

[0127] The determining unit is further configured to determine that the second device is a successfully matched target device if pairing with the second device is successful.

[0128] In some embodiments, if a second data channel based on the second connection element is successfully established with the second device in response to the connection request, it indicates that the data transmitted through the second data channel is secure data; wherein the second data channel is a channel for transmitting data between the first program and the second program.

[0129] In some embodiments, the scanning unit 401 is further configured to obtain a third identifier of at least one functional module of the first program based on scanning of the first connection element.

[0130] In some embodiments, the first device 400 further includes: a display unit;

[0131] The display unit is used to display the target function module matching the third identifier to provide it for user selection;

[0132] The data transmission unit 402 is further configured to transmit second target data of the first target function module based on the second data channel and the key in response to a trigger instruction for the first target function module.

[0133] In some embodiments, the first device 400 further includes: a creating unit;

[0134] The creation unit is configured to create the destination address and the key, so as to establish a connection with the second device based on the destination address and the key.

[0135] In some embodiments, the connection establishing unit 403 is also used to establish the second data channel based on the network address of the first device and the network address of the second device if the first device belongs to the same local area network as the second device; if the first device does not belong to the same local area network as the second device, use the second device as a connecting node for networking so that the first device directly connects to the connecting node to establish the second data channel; if the first device does not belong to the same local area network as the second device, control the first device to be in a shared network mode so that the second device connects to the first device to establish the second data channel.

[0136] The embodiment of the present application provides a first device, which includes: a scanning unit, a data transmission unit and a connection establishment unit; wherein the scanning unit is used to obtain a first identifier of a second device and a second identifier of a second program based on scanning of a first connection element; the first connection element corresponds to a first connection protocol; the data transmission unit is used to transmit first target data based on a first data channel of the first connection element if the second device is determined to be a successfully matched target device based on the first identifier and the second identifier matches the target identifier successfully; the first identifier determines that the second device is a successfully matched target device, indicating that the data transmitted through the first data channel is secure data, and the first target data includes a destination address and a key; the connection establishment unit is used to transmit first target data based on a first data channel of the second connection element The connection element responds to the connection request and establishes a second data channel based on the second connection element with the second device, wherein the first connection element is different from the second connection element, the second connection element corresponds to the second connection protocol, and the connection request is a request initiated by the second program based on the destination address and encrypted based on the key; using the above implementation scheme, the present application can perform data interaction based on the first data channel pre-established between the two devices to complete the establishment of the second data channel. Since the first data channel is established based on the condition that the first device and the second device are successfully matched, data security can be guaranteed when data is interacted through the first data channel. At the same time, establishing the second data channel based on the first data channel can make the establishment of the second data channel more convenient.

[0137] Figure 5 This is a schematic diagram of the composition structure of an image processing device provided in an embodiment of the present application. In practical applications, based on the same disclosed concept of the above embodiments, Figure 5 As shown, the first device 400 of this embodiment further includes: a first connection element 404 , a second connection element 405 and a processor 406 .

[0138] In the process of a specific embodiment, the scanning unit 401 can be implemented by the first connecting element 404 located on the image processing device 13, and the data transmission unit 402, the connection establishment unit 403, the query unit, the determination unit, the pairing unit, the display unit and the creation unit can be implemented by the processor 406 located on the first device 400, and the processor 406 can be at least one of an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), a digital signal processor (Digital Signal Processor, DSP), a digital signal processing first device (Digital Signal Processing Device, DSPD), a programmable logic first device (Programmable Logic Device, PLD), a field programmable gate array (Field Programmable Gate Array, FPGA), a CPU, a controller, a microcontroller, and a microprocessor. It can be understood that for different first devices 400, the electronic device used to implement the above-mentioned processor function can also be other, and this embodiment does not specifically limit it.

[0139] In the embodiment of the present application, the first device 400 further includes a communication bus and a memory, and the communication bus is used to realize the connection and communication between the first connection element 404, the second connection element 405, the processor 406 and the memory; when the processor 406 executes the running program stored in the memory, the following processing method is implemented:

[0140] Based on the scanning of the first connection element, a first identification of the second device and a second identification of the second program are obtained; the first connection element corresponds to the first connection protocol;

[0141] If the second device is determined to be a successfully matched target device based on the first identifier, and the second identifier matches the target identifier successfully, the first target data is transmitted based on the first data channel of the first connection element; the determination by the first identifier that the second device is a successfully matched target device indicates that the data transmitted by the first data channel is secure data, and the first target data includes a destination address and a key;

[0142] Based on the second connection element responding to the connection request, a second data channel based on the second connection element is established with the second device, wherein the first connection element is different from the second connection element, the second connection element corresponds to a second connection protocol, and the connection request is a request initiated by the second program based on the destination address and encrypted based on the key.

[0143] In some embodiments, the processor 406 is further configured to query an identification list based on the first identification, the identification list including target devices that have been successfully matched; if the first identification belongs to the identification list, the second device is determined to be a successfully matched target device.

[0144] In some embodiments, the processor 406 is further configured to pair with the second device based on the first identifier; if pairing with the second device is successful, the second device is determined to be a successfully matched target device.

[0145] In some embodiments, the processor 406 is further used to successfully establish a second data channel based on the second connection element with the second device if the second connection element responds to the connection request, indicating that the data transmitted through the second data channel is secure data; wherein the second data channel is a channel for transmitting data between the first program and the second program.

[0146] In some embodiments, the processor 406 is further configured to obtain a third identifier of at least one functional module of the first program based on scanning of the first connection element.

[0147] In some embodiments, the processor 406 is also used to display the target function module matching the third identifier to provide it for user selection; in response to a trigger instruction for the first target function module, the second target data of the first target function module is transmitted based on the second data channel and the key.

[0148] In some embodiments, the processor 406 is further configured to create the destination address and the key, so as to establish a connection with the second device based on the destination address and the key.

[0149] In some embodiments, the processor 406 is further used to establish the second data channel based on the network address of the first device and the network address of the second device if the first device belongs to the same local area network as the second device; if the first device does not belong to the same local area network as the second device, use the second device as a connecting node for networking so that the first device directly connects to the connecting node to establish the second data channel; if the first device does not belong to the same local area network as the second device, control the first device to be in a shared network mode so that the second device connects to the first device to establish the second data channel.

[0150] An embodiment of the present application also provides a computer program product, including a computer program or instructions, which, when executed by one or more processors, implements the steps in the above-mentioned processing method.

[0151] An embodiment of the present application also provides a computer-readable storage medium having a computer program stored thereon. The computer-readable storage medium stores one or more programs. The one or more programs can be executed by one or more processors and applied to a first device. The computer program implements the processing method as described above.

[0152] It should be noted here that the description of the above storage medium and device embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium and device embodiments of this application, please refer to the description of the method embodiments of this application for understanding.

[0153] The above-mentioned computer storage medium / memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory (Flash Memory), a magnetic surface memory, an optical disk, or a compact disc read-only memory (CD-ROM) and the like; it can also be various terminals including one or any combination of the above-mentioned memories, such as mobile phones, computers, tablet devices, personal digital assistants, etc.

[0154] It should be understood that "one embodiment" or "an embodiment" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the size of the serial number of each step / process mentioned above does not mean the order of execution, and the execution order of each step / process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application. The serial numbers of the embodiments of the present application mentioned above are for description only and do not represent the advantages and disadvantages of the embodiments.

[0155] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.

[0156] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.

[0157] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0158] In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be a separate unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0159] A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM), magnetic disks or optical disks, etc., various media that can store program codes.

[0160] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can essentially or in other words, the part that contributes to the relevant technology can be embodied in the form of a software product, which is stored in a storage medium and includes a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks, or optical disks.

[0161] The above is only an implementation method of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application.

Claims

1. A processing method, the method comprising: Based on the scanning of the first connection element, obtaining a first identification of the second device and a second identification of the second program; The first connection element corresponds to a first connection protocol; If it is determined based on the first identifier that the second device is a successfully matched target device, and the second identifier successfully matches the target identifier, transmitting first target data based on the first data channel of the first connecting element; The first identifier determines that the second device is a successfully matched target device, indicating that the data transmitted by the first data channel is secure data, and the first target data includes a destination address and a key; Based on the second connection element responding to the connection request, a second data channel based on the second connection element is established with the second device, wherein the first connection element is different from the second connection element, the second connection element corresponds to a second connection protocol, and the connection request is a request initiated by the second program based on the destination address and encrypted based on the key.

2. The method according to claim 1, wherein determining the second device as a successfully matched target device based on the first identifier comprises: Querying an identification list based on the first identification, the identification list including target devices that have been successfully matched; If the first identifier belongs to the identifier list, it is determined that the second device is a successfully matched target device.

3. The method according to claim 1, wherein determining the second device as a successfully matched target device based on the first identifier comprises: Pairing with the second device based on the first identifier; If pairing with the second device is successful, the second device is determined to be a successfully matched target device.

4. The method according to claim 2 or 3, further comprising: If the second data channel based on the second connection element is successfully established with the second device in response to the connection request, it indicates that the data transmitted through the second data channel is secure data; wherein the second data channel is a channel for transmitting data between the first program and the second program.

5. The method according to claim 4, wherein the scanning based on the first connection element comprises: Based on the first connection element scan, a third identifier of at least one functional module of the first program is obtained.

6. The method according to claim 5, after the second data channel based on the second connection element is successfully established with the second device based on the second connection element responding to the connection request, the method further comprises: Displaying the target function module matching the third identifier to provide it for user selection; In response to a trigger instruction for a first target functional module, second target data of the first target functional module is transmitted based on the second data channel and the key.

7. The method according to claim 1, before transmitting the first target data based on the first data channel of the first connection element, the method further comprises: The destination address and the key are created to establish a connection with a second device based on the destination address and the key.

8. According to the method of any one of claims 1-3 and 5-7, the establishing a second data channel based on the second connection element with the second device based on the second connection element responding to the connection request comprises at least one of the following: If the first device and the second device belong to the same local area network, establishing the second data channel based on the network address of the first device and the network address of the second device; If the second device and the first device do not belong to the same local area network, use the second device as a connecting node of the network so that the first device is directly connected to the connecting node to establish the second data channel; If the first device and the second device do not belong to the same local area network, the first device is controlled to be in a shared network mode so that the second device connects to the first device to establish the second data channel.

9. A first device, comprising: A scanning unit, configured to obtain a first identifier of a second device and a second identifier of a second program based on scanning of the first connecting element; The first connection element corresponds to a first connection protocol; a data transmission unit, configured to transmit first target data based on the first data channel of the first connection element if it is determined based on the first identifier that the second device is a successfully matched target device and the second identifier successfully matches the target identifier; The first identifier determines that the second device is a successfully matched target device, indicating that the data transmitted by the first data channel is secure data, and the first target data includes a destination address and a key; Establish a connection unit, used for establishing a second data channel based on the second connection element with the second device in response to the connection request based on the second connection element, wherein the first connection element is different from the second connection element, the second connection element corresponds to a second connection protocol, and the connection request is a request initiated by the second program based on the destination address and encrypted based on the key.

10. A first device, comprising: A first connection element, configured to establish a connection with a second device based on a first connection protocol; A second connection element, configured to establish a connection with the second device based on a second connection protocol; Processor for: Based on the scanning of the first connection element, a first identifier of the second device and a second identifier of the second program are obtained; the first connection element corresponds to the first connection protocol; If it is determined based on the first identifier that the second device is a successfully matched target device, and the second identifier successfully matches the target identifier, transmitting first target data based on the first data channel of the first connecting element; The first identifier determines that the second device is a successfully matched target device, indicating that the data transmitted by the first data channel is secure data, and the first target data includes a destination address and a key; Based on the second connection element responding to the connection request, a second data channel based on the second connection element is established with the second device, wherein the first connection element is different from the second connection element, the second connection element corresponds to a second connection protocol, and the connection request is a request initiated by the second program based on the destination address and encrypted based on the key.