Device pairing method, device, storage medium and electronic device

Receiving device information through near-field communication and generating communication identifiers, the problems of low device pairing efficiency and low accuracy in the prior art are solved, and efficient and accurate wireless network communication connection is achieved.

CN119325155BActive Publication Date: 2025-05-06GUANGZHOU SHIYUAN ELECTRONICS CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411866999.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-18
Publication Date
2025-05-06
Estimated Expiration
2044-12-18

AI Technical Summary

Technical Problem

In the prior art, the equipment pairing efficiency is low and the accuracy is low, and the manual operation steps are cumbersome, making it difficult to quickly and accurately establish a wireless network communication connection between multiple electronic devices.

Method used

Receive device information through near-field communication, generate a communication identifier, and establish a wireless network communication connection based on the identifier, simplify manual operation steps, and improve pairing efficiency and accuracy.

Benefits of technology

Improves the efficiency and accuracy of device pairing, simplifies manual operation steps, and ensures the security and accuracy of wireless network communication connections.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119325155B_ABST
    Figure CN119325155B_ABST
Patent Text Reader

Abstract

The present application provides a device pairing method, storage medium and electronic device, which is applied in the field of computer technology, and includes: the second device sends the device information of the second device to the first device based on the near field communication mode, the first device generates a communication identifier based on the device information, the first device sends the communication identifier to the second device based on the near field communication mode, and the first device and the second device establish a communication connection using a wireless network communication mode based on the communication identifier. The method can generate a communication identifier based on the device information obtained using the near field communication mode, and determine the communication identifier based on the near field communication mode, which improves the efficiency of device pairing, simplifies the manual operation steps, establishes a wireless network communication connection using the communication identifier, and improves the accuracy of the wireless network communication connection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and more specifically, to a device pairing method, storage medium and electronic device in the field of computer technology. Background Art

[0002] In application scenarios where multiple devices need to work together, in order to enable multiple electronic devices deployed in the application scenarios to work together, it is necessary to establish wireless network communication between the multiple electronic devices. In the prior art, manual operation is often used to configure network settings for electronic devices so that wireless network communication can be established between two electronic devices. The manual operation steps are cumbersome and prone to errors, and the device pairing efficiency and accuracy are low. It is necessary to propose a more efficient device pairing method. Summary of the invention

[0003] The embodiments of the present application provide a device pairing method, a storage medium, and an electronic device. The method can determine a communication identifier based on a near-field communication method, thereby improving the efficiency of device pairing, simplifying the manual operation steps, establishing a wireless network communication connection with a communication identifier, and improving the accuracy of the wireless network communication connection.

[0004] In a first aspect, an embodiment of the present application provides a device pairing method, which is applied to a first device, and the method includes:

[0005] Receiving device information sent by the second device based on a near field communication method;

[0006] Generate a communication identifier based on the device information, and send the communication identifier to the second device using near field communication;

[0007] Based on the communication identifier, a communication connection is established with the second device using a wireless network communication method.

[0008] Through the above technical solution, a communication identifier is generated based on the device information obtained by the near-field communication method. Determining the communication identifier based on the near-field communication method improves the efficiency of device pairing and simplifies the manual operation steps. A wireless network communication connection is established with the communication identifier, thereby improving the accuracy of the wireless network communication connection.

[0009] In a second aspect, an embodiment of the present application provides a wireless pairing method, which is applied to a second device, and the method includes:

[0010] Based on the near field communication method, the device information of the second device is sent to the first device;

[0011] Based on the near field communication method, receiving a communication identifier sent by the first device, where the communication identifier is generated based on the device information;

[0012] Based on the communication identifier, a communication connection is established with the first device using a wireless network communication method.

[0013] Through the above technical solution, the device information is sent to the first device based on the near field communication method to determine the communication identifier. The communication identifier determined based on the near field communication method improves the device pairing efficiency and simplifies the manual operation steps. The wireless network communication connection is established with the communication identifier, which improves the accuracy of the wireless network communication connection.

[0014] In a third aspect, an embodiment of the present application provides a computer storage medium, which stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the above-mentioned method steps.

[0015] In a fourth aspect, an embodiment of the present application provides an electronic device, which may include: a processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the above-mentioned method steps. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0017] Figure 1 is a structural schematic diagram of a first device and a second device provided in an embodiment of the present application;

[0018] Figure 2 This is one of the flow diagrams of a device pairing method based on a first device side and a second device side provided in an embodiment of the present application;

[0019] Figure 3 This is a second flow chart of a device pairing method based on a first device side and a second device side provided in an embodiment of the present application;

[0020] Figure 4 This is a schematic diagram of a process for establishing a communication connection using a near field communication method provided in an embodiment of the present application;

[0021] Figure 5 This is a schematic diagram of a process for establishing a communication connection using a wireless network communication method provided by an embodiment of the present application;

[0022] Figure 6 This is an example schematic diagram of target information transmission provided by an embodiment of the present application;

[0023] Figure 7This is one of the flowcharts of a device pairing method applied to a first device provided in an embodiment of the present application;

[0024] Figure 8 This is a second flow chart of a device pairing method applied to a first device provided in an embodiment of the present application;

[0025] Fig. 9 This is one of the flowcharts of a device pairing method applied to a second device provided in an embodiment of the present application;

[0026] Fig.10 This is a second flow chart of a device pairing method applied to a second device provided in an embodiment of the present application;

[0027] Fig.11 This is one of the structural schematic diagrams of a device pairing apparatus applied to a first device provided in an embodiment of the present application;

[0028] Fig.12 This is a second structural diagram of a device pairing apparatus applied to a first device provided in an embodiment of the present application;

[0029] Fig.13 is a structural schematic diagram of an electronic device applied to a first device provided in an embodiment of the present application;

[0030] Fig.14 This is one of the structural schematic diagrams of a device pairing apparatus applied to a second device provided in an embodiment of the present application;

[0031] Fig.15 This is a second structural diagram of a device pairing apparatus applied to a second device provided in an embodiment of the present application;

[0032] Fig.16 It is a structural schematic diagram of an electronic device applied to a second device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0033] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0034] In application scenarios that require multiple devices to work together, it is necessary to use wireless network communication to establish a communication connection between devices to facilitate data transmission between devices to complete the collaborative work. For example, the application scenario may be a mobile recording and broadcasting scenario for temporary activities, live broadcasts with venue restrictions, etc. It is necessary to set up multiple camera devices, multiple microphone devices, and recording and broadcasting host devices in the scene to quickly build a recording and broadcasting scene that meets the needs of video, sound reception, scene control, etc. In order to enable the devices in the scene to work together, communication connections need to be established between the camera device and the recording and broadcasting host device, and between the microphone device and the recording and broadcasting host device to achieve data transmission functions such as video data and audio data. Among them, the wireless network communication method can be a long-distance wireless transmission method, for example, a wireless fidelity (WiFi) communication method. It can be understood that in a real wireless environment, there will be many wireless devices sending radio wave signals, so each device may receive many radio wave signals. In order to make the wireless network communication between devices that have established a communication connection more secure and accurate, two devices need to establish a communication connection in a wireless network communication method based on an agreed communication identifier. In the prior art, manual operation is often used to manually configure a communication identifier for a device that needs to establish a communication connection in a wireless network communication method, so that the configured communication identifier can be used to establish a communication connection between devices. However, the manual operation steps are cumbersome and prone to errors, and the device pairing efficiency is low and the accuracy is low.

[0035] To improve the efficiency and accuracy of device pairing, please refer to Figure 1, a structural schematic diagram of a first device and a second device is provided for an embodiment of the present application. The devices in the embodiments of the present application may include a near field communication module and a wireless network communication module, wherein the wireless network communication module is used to implement a wireless network communication mode, and the near field communication module is used to implement a near field communication mode, wherein the near field communication mode may be a short-range wireless transmission mode, for example, near field communication (NFC), radio frequency identification (RFID), etc. The device pairing method provided in the embodiment of the present application may be implemented by a computer program and may be run on a device pairing device based on the von Neumann system. The computer program may be integrated in an application or run as an independent tool application. The device pairing device can be the first device or the second device that needs to be paired, or it can be a module or application in the first device or the second device for implementing the device pairing method. The device pairing device can control the near-field communication module and the wireless network communication module contained in the device, so that the first device and the second device can use the near-field communication method and the wireless network communication method to exchange data. The first device and the second device are two electronic devices that can be paired. For example, in a mobile recording and broadcasting scenario, the first device can be a recording and broadcasting host device, and the second device can be a camera device or a microphone device. After the first device and the second device establish a communication connection via a wireless network communication method, the second device can send the collected audio data or video data to the first device via a wireless network communication method for playback and display.

[0036] In the present application, a near field communication method can be used to determine the communication identifier between two devices that need to be paired, wherein the communication identifier can be a service set identifier (SSID), which is the name of a wireless network and can be used to identify a wireless local area network (WLAN), thereby helping the device to identify and connect to the correct wireless network and establish a communication connection using the correct wireless network communication method. For example, since the near field communication method can perform point-to-point data transmission within a very short distance, it is a convenient and efficient data transmission method. The user or relevant staff only needs to bring the near field communication module of the first device and the near field communication module of the second device close to or touch each other, so that the first device and the second device can use the near field communication method to determine the communication identifier, and then establish a communication connection using the wireless network communication method for the first device and the second device based on the communication identifier, and when the wireless network communication method is used for data interaction in the future, the communication identifier can still be used as an identifier to improve the accuracy and security of data interaction.

[0037] The device pairing method provided in this application is described in detail below in conjunction with specific embodiments.

[0038] See also Figure 2 , provides a flow chart of a device pairing method based on a first device side and a second device side for an embodiment of the present application. Figure 2 As shown, the embodiment of the present application is described based on the first device side and the second device side, and may include the following steps S101-S104.

[0039] S101: The second device sends device information of the second device to the first device based on near field communication.

[0040] Specifically, the user or relevant staff can adjust the near-field communication modules of the first device and the second device that need to be paired to an on state. After the near-field communication modules are turned on, they will scan within the effective range of the near-field communication method. Therefore, the user or relevant staff can bring the near-field communication module of the first device close to or in contact with the near-field communication module of the second device. When the near-field communication module of the second device detects the near-field communication module of the first device, the second device can send the device information of the second device to the first device based on the near-field communication method, wherein the device information is characteristic information that can be used to distinguish the second device from other electronic devices, and is used to characterize the identity and uniqueness of the second device, such as a Media Access Control Address (MAC), an Internet Protocol Address (IP), a device serial number, etc.

[0041] S102: The first device generates a communication identifier based on the device information.

[0042] Specifically, after the first device receives the device information of the second device, it can generate a communication identifier based on the device information. For example, the first device can also directly use the device information of the second device as the communication identifier, further ensuring the uniqueness of the communication identifier and also ensuring its accuracy in subsequent data interaction processes.

[0043] S103: The first device sends a communication identifier to the second device based on near field communication.

[0044] Specifically, the first device may send the generated communication identifier to the second device based on the near field communication method, so as to inform the second device to establish a communication connection with the first device based on the communication identifier.

[0045] S104: Based on the communication identifier, the first device and the second device establish a communication connection using a wireless network communication method.

[0046] Specifically, the first device and the second device can establish a communication connection based on the communication identifier and adopt the wireless network communication method. For example, the first device can send a wireless connection request containing the communication identifier to the second device via the wireless network communication method. The second device receives the wireless connection request and determines that it contains the previously set communication identifier, so that it can be determined that the wireless connection request comes from the first device, and returns wireless connection response information to the second device based on the wireless network communication method, thereby establishing a communication connection between the first device and the second device via the wireless network communication method, that is, realizing the pairing of the wireless network communication method of the first device and the second device, which facilitates the subsequent data exchange between the first device and the second device using the wireless network communication method to achieve collaborative work.

[0047] In the embodiment of the present application, the second device sends the device information of the second device to the first device based on the near field communication method, the first device generates a communication identifier based on the device information, the first device sends the communication identifier to the second device based on the near field communication method, and based on the communication identifier, the first device and the second device establish a communication connection using a wireless network communication method. The communication identifier is generated based on the device information obtained using the near field communication method, and the communication identifier is determined based on the near field communication method, which improves the efficiency of device pairing, simplifies the manual operation steps, and establishes a wireless network communication connection using the communication identifier, thereby improving the accuracy of the wireless network communication connection.

[0048] See also Figure 3 , provides a flow chart of a device pairing method based on a first device side and a second device side for an embodiment of the present application. Figure 3 As shown, the embodiment of the present application is described based on the first device side and the second device side, and may include the following steps S201-S208.

[0049] S201: Based on a preset fixed identifier, a first device and a second device establish a communication connection by using a near field communication method.

[0050] Specifically, the device pairing device can set the same preset fixed identifier for the first device and the second device that need to be paired. The preset fixed identifier can be the initial setting of the device pairing device, and can also be set by the user or relevant staff. The user or relevant staff can adjust the near-field communication modules of the first device and the second device that need to be paired to the on state. After the near-field communication modules are turned on, they will scan within the effective range of the near-field communication method. Therefore, the user or relevant staff can bring the near-field communication module of the first device and the near-field communication module of the second device close to or in contact with each other. When the near-field communication module of the second device and the near-field communication module of the first device detect each other, they can exchange the preset fixed identifiers that have been set. If the data received through the near-field communication method matches the preset fixed identifier, a communication connection can be established with the other party using the near-field communication method, that is, the first device and the second device are paired using the near-field communication method.

[0051] Optional, please also see Figure 4 , a schematic diagram of a process for establishing a communication connection by using a near field communication method is provided for an embodiment of the present application, and step S201 may further include the following steps:

[0052] S301: The first device generates a near field connection request for a near field communication mode based on a preset fixed identifier.

[0053] Specifically, the first device can generate a near field connection request for the near field communication mode according to the preset fixed identifier, that is, the near field connection request includes the preset fixed identifier, which is convenient for other devices to obtain and identify, and is used to request other devices to establish a communication connection in the near field communication mode. The preset fixed identifier can avoid establishing a communication connection with other irrelevant devices or wrong devices, and further improve the accuracy of establishing the communication connection between the first device and the second device.

[0054] S302: The first device sends a near field connection request to the second device based on a near field communication method.

[0055] Specifically, the first device can send a near-field connection request to the second device based on the near-field communication method to request to establish a connection request with the second device. It can be understood that the first device can use the near-field communication method to send the near-field connection request to the outside, and all electronic devices within the effective range of the near-field communication method can detect the near-field connection request based on the near-field communication method, but only electronic devices that can recognize the preset fixed identifier can establish a communication connection with the first device using the near-field communication method.

[0056] S303: If the preset fixed identifier exists in the near field connection request, the second device sends near field connection response information to the first device based on the near field communication method.

[0057] Specifically, after the second device obtains the near-field connection request of the first device based on the near-field communication method, it can determine whether there is a preset fixed identifier in the near-field connection request. If there is a preset fixed identifier in the near-field connection request, the second device can determine that the near-field connection request comes from the first device that can be paired with the second device, and send a near-field connection response information to the first device based on the near-field communication method. The near-field connection response information is used to indicate agreement to the near-field connection request sent by the first device.

[0058] Optionally, the near field connection response information may also include a preset fixed identifier. When the first device receives the near field connection response information, it may also determine the identity of the second device based on the preset fixed identifier, thereby determining the authenticity of the near field connection response information.

[0059] S304: The first device establishes a communication connection with the second device using near field communication.

[0060] Specifically, after the first device receives the near field connection response information, the first device and the second device may establish a communication connection using a near field communication manner.

[0061] It is understandable that the second device may generate a near field connection request and send it to the first device, and then the first device may generate a near field connection response message and send it to the second device, thereby establishing a communication connection between the first device and the second device in a wireless network communication mode.

[0062] S202: Based on the near field communication method, the second device sends the device information of the second device to the first device.

[0063] Specifically, after the second device establishes a communication connection with the first device in a near field communication manner, the device information of the second device can be sent to the first device based on the near field communication manner. It can be understood that after verifying the preset fixed identifier in the near field connection request of the first device, the device information is sent to the first device, which can avoid the device information of the second device from being sent to irrelevant or wrong electronic devices, thereby ensuring the security of the device information.

[0064] S203: The first device generates a communication identifier based on the device information.

[0065] Specifically, after the first device receives the device information of the second device, it can generate a communication identifier based on the device information. For example, the first device can also directly use the device information of the second device as the communication identifier, further ensuring the uniqueness of the communication identifier and also ensuring its accuracy in subsequent data interaction processes.

[0066] Optionally, the first device and the second device can be any two devices that need to be paired in the application scenario. The first device can generate a communication identifier based on the device information of the second device, or the second device can generate a communication identifier based on the device information of the first device. However, it is understandable that in some application scenarios, in order to achieve unified management of multiple devices, users or relevant staff need to set up management devices for unified management of other electronic devices, such as a recording and broadcasting host device in a mobile recording and broadcasting scenario. The recording and broadcasting host device can be used to display and play video data and audio data collected by other camera devices and microphone devices. Users or relevant staff can also control other camera devices and microphone devices through the recording and broadcasting host device, such as controlling the switch, shooting angle, volume, etc. of the device. Therefore, the management device often needs to establish a communication connection with multiple other electronic devices. In order to enable the management device to better distinguish different electronic devices, when the first device is a management device, the device pairing device can control the second device to send device information, and the first device generates a communication identifier based on the device information of the second device, thereby using the device information to distinguish different second devices.

[0067] S204: The first device sends the communication identifier to the second device by using near field communication.

[0068] Specifically, the first device may send the generated communication identifier to the second device based on the near field communication method, so as to inform the second device to establish a communication connection with the first device based on the communication identifier.

[0069] S205: Based on the communication identifier, the first device and the second device establish a communication connection using a wireless network communication method.

[0070] Specifically, the first device and the second device may establish a communication connection based on the communication identifier by using a wireless network communication method.

[0071] Optional, please also see Figure 5 , a schematic diagram of a process for establishing a communication connection by using a wireless network communication method is provided for an embodiment of the present application, and step S205 may further include the following steps:

[0072] S401: The first device generates a wireless connection request for a wireless network communication mode based on a communication identifier.

[0073] Specifically, the first device can generate a wireless connection request for a wireless network communication mode based on the communication identifier, that is, the wireless connection request can include a communication identifier. Since the communication identifier is generated based on the device information of the second device, the communication identifier in the wireless connection request can be used to enable the wireless connection request to be sent to the second device, further improving the accuracy of establishing a communication connection between the first device and the second device.

[0074] Optionally, the first device may use the communication identifier as a header of the wireless connection request. Since the communication identifier may be device information of the second device, or may include device information of the second device, the wireless connection request is a wireless connection request designated to be sent to the second device.

[0075] S402: The first device sends a wireless connection request to the second device based on a wireless network communication method.

[0076] Specifically, the first device may send the generated wireless connection request to the second device based on the wireless network communication mode.

[0077] S403: If the wireless connection request contains a communication identifier, the second device sends wireless connection response information to the first device based on the wireless network communication method.

[0078] Specifically, after the second device obtains the wireless connection request of the first device based on the wireless network connection method, it can determine whether there is a communication identifier in the wireless connection request. If there is a communication identifier in the wireless connection request, the second device can determine that the wireless connection request comes from the first device that can be paired with the second device, and send wireless connection response information to the first device based on the wireless network communication method. The wireless connection response information is used to indicate agreement to the wireless connection request sent by the first device.

[0079] Optionally, the wireless connection response information may also include a communication identifier. After receiving the wireless connection response information, the first device may also determine the identity of the second device based on the communication identifier, thereby determining the authenticity of the wireless connection response information.

[0080] S404: The first device establishes a communication connection with the second device using a wireless network communication method.

[0081] Specifically, after the first device receives the wireless connection response information, the first device and the second device may establish a communication connection using a wireless network communication manner.

[0082] Optionally, when the first device detects that a wireless network communication connection has been successfully established with the second device, it can output a connection success message, which can be a voice message or a pop-up message, etc., to prompt the user or relevant staff that the wireless network communication mode of the first device and the second device is successfully paired. For example, in a mobile recording and broadcasting scenario, the first device is a recording and broadcasting host device, and the second device is a camera device. If the first device detects that a wireless network communication connection has been successfully established with the second device, the first device can output a connection success message of "Camera device pairing successful". Similarly, when the second device detects that a wireless network communication connection has been successfully established with the first device, it can also output a connection success message.

[0083] Optionally, after the first device detects that a communication connection is successfully established with the second device in a wireless network communication mode, it indicates that the first device can exchange data with the second device, and the second device can send the collected audio data or video data to the first device, so the connection success information can be that the audio data or video data collected by the second device is output on the first device. For example, if the second device is a camera device and the first device is a recording and broadcasting host device, the connection success information can be that the picture collected by the second device is displayed on the first device, thereby intuitively showing that the first device and the second device are successfully paired. Similarly, if the first device is a camera device and the second device is a microphone device, the connection success information can be that the audio collected by the second device is output on the first device.

[0084] S206: The first device obtains target information for the second device, and generates target communication information based on the communication identifier and the target information.

[0085] Specifically, since the first device and the second device have established a communication connection in a wireless network communication mode, data can be exchanged between the first device and the second device. For example, the second device can send the collected audio data and video data to the first device for display output. The first device can be a management device set by the user or relevant staff to manage other electronic devices, so the first device can obtain target information for the second device, and the target information can be used to control the second device, wherein the target information can be input by the user or relevant staff. Since the first device and the second device are established based on a communication identifier, in order to ensure accuracy and security during data interaction, the first device and the second device can also use the communication identifier when interacting with data, so the first device can generate target communication information based on the communication identifier and the target information. For example, the communication identifier can be the packet header data of the target communication information.

[0086] S207, based on the wireless network communication mode, the first device sends the target communication information to the second device.

[0087] Specifically, the first device may send the generated target communication information to the second device based on a wireless communication manner.

[0088] S208: If the target communication information contains a communication identifier, the second device obtains the target information from the target communication information and responds to the target information.

[0089] Specifically, when the second device receives the target communication information based on the wireless network communication method, it can determine whether the target communication information has a communication identifier. If there is a communication identifier, it can be determined that the target communication information comes from the first device. The second device can obtain the target information in the target communication information and respond to the target information.

[0090] Optionally, the target information obtained by the first device may come from a third device, and the first device may receive the target information for the second device sent by the third device based on a wireless network communication method, wherein a communication connection exists between the third device and the first device in a wireless network communication method, thereby realizing the collaborative work of multiple devices in the scene, and the management device of the first device may be used for unified collaborative management. For example, please refer to Figure 6 , an example schematic diagram of target information transmission is provided for an embodiment of the present application, the first device may be a recording and broadcasting host, the second device may be a camera device, and the third device may be a mobile terminal device. The first device may establish a communication connection with the second device in a wireless network communication mode based on a communication identifier B, and the first device may establish a communication connection with the third device in a wireless network communication mode based on a communication identifier A. A user or relevant staff may use the first device to manage electronic devices such as the second device and the third device. For example, a user or relevant staff may input target information for the second device on the first device, and the target information may be control information such as a camera angle and a camera position of the camera device. Then, the first device may generate target communication information based on the communication identifier B and the target information and send it to the second device, so that the second device responds to the target information. Similarly, the target information can also be sent to the first device by other electronic devices. For example, the user or relevant staff can input the target information for the second device on the third device, and the third device can generate the first communication information based on the target information and the communication identifier A, and send it to the first device based on the wireless network communication method. After the first device identifies the communication identifier A from the first communication information, it can obtain the target information from the first communication information, and generate the target communication information based on the communication identifier B and the target information and send it to the second device, so that the second device responds to the target information.

[0091] In the embodiment of the present application, based on a preset fixed identifier, the first device and the second device establish a communication connection using near field communication. The connection is established by using the preset fixed identifier to improve the accuracy of pairing using the near field communication method, thereby ensuring the security of device information. Based on the near field communication method, the second device sends the device information of the second device to the first device. The first device generates a communication identifier based on the device information. The first device sends the communication identifier to the second device using the near field communication method. Based on the communication identifier, the first device and the second device establish a communication connection using a wireless network communication method, and a connection success message can be output after the communication connection is successfully established to prompt the user or relevant staff. The communication identifier is generated based on the device information obtained using the near field communication method, and the communication identifier is determined based on the near field communication method, which improves the efficiency of device pairing and simplifies the manual operation steps. The wireless network communication connection is established using the communication identifier, which improves the accuracy of the wireless network communication connection. The first device obtains target information for the second device, generates target communication information based on the communication identifier and the target information, and based on the wireless network communication method, the first device sends the target communication information to the second device. If the communication identifier exists in the target communication information, the second device obtains the target information in the target communication information and responds to the target information. The communication connection is used to achieve the collaborative work of the first device and the second device.

[0092] See also Figure 7 , a schematic diagram of a flow chart of a device pairing method applied to a first device is provided in an embodiment of the present application, such as Figure 7 As shown, the embodiment of the present application is described based on the first device side and may include the following steps S501-S503.

[0093] S501: Receive device information sent by a second device based on a near field communication method.

[0094] Specifically, the user or relevant staff can adjust the near-field communication modules of the first device and the second device that need to be paired to an on state. After the near-field communication modules are turned on, they will scan within the effective range of the near-field communication method. Therefore, the user or relevant staff can bring the near-field communication module of the first device close to or in contact with the near-field communication module of the second device. When the near-field communication module of the second device detects the near-field communication module of the first device, the second device can send the device information of the second device to the first device based on the near-field communication method, and the first device can receive the device information sent by the second device, wherein the device information is characteristic information that can be used to distinguish the second device from other electronic devices, and is used to characterize the identity and uniqueness of the second device, such as a MAC address, an IP address, a device serial number, etc.

[0095] S502: Generate a communication identifier based on the device information, and send the communication identifier to the second device using near field communication.

[0096] Specifically, after receiving the device information of the second device, the first device can generate a communication identifier based on the device information. For example, the first device can also directly use the device information of the second device as the communication identifier, further ensuring the uniqueness of the communication identifier and the accuracy in the subsequent data interaction process. The communication identifier can also be sent to the second device using near field communication.

[0097] S503: Establish a communication connection with the second device using a wireless network communication method based on the communication identifier.

[0098] Specifically, the first device and the second device can establish a communication connection based on the communication identifier and adopt the wireless network communication method. For example, the first device can send a wireless connection request containing the communication identifier to the second device via the wireless network communication method. The second device receives the wireless connection request and determines that it contains the previously set communication identifier, so that it can be determined that the wireless connection request comes from the first device, and returns wireless connection response information to the second device based on the wireless network communication method, thereby establishing a communication connection between the first device and the second device via the wireless network communication method, that is, realizing the pairing of the wireless network communication method of the first device and the second device, which facilitates the subsequent data exchange between the first device and the second device using the wireless network communication method to achieve collaborative work.

[0099] In the embodiment of the present application, based on the near field communication method, the device information of the second device is sent to the first device, based on the near field communication method, the communication identifier sent by the first device is received, the communication identifier is generated based on the device information, and based on the communication identifier, a communication connection is established with the first device using a wireless network communication method. Based on the use of the near field communication method to send the device information to the first device to determine the communication identifier, the communication identifier is determined based on the near field communication method, which improves the efficiency of device pairing, simplifies the manual operation steps, establishes a wireless network communication connection with the communication identifier, and improves the accuracy of the wireless network communication connection.

[0100] See also Figure 8 , a schematic diagram of a flow chart of a device pairing method applied to a first device is provided in an embodiment of the present application, such as Figure 8 As shown, the embodiment of the present application is described based on the first device side and may include the following steps S601-S606.

[0101] S601: Based on a preset fixed identifier, establish a communication connection with a second device by using a near field communication method.

[0102] For details, please refer to the relevant description of step S201 in the above embodiment, which will not be repeated here.

[0103] Optionally, the first device may generate a near field connection request for the near field communication method based on a preset fixed identifier, send the near field connection request to the second device based on the near field communication method, receive the near field connection response information returned by the second device for the near field connection request based on the near field communication method, and establish a communication connection with the second device using the near field communication method. For details, please refer to the relevant description of steps S301-S304 in the above embodiment, which will not be repeated here.

[0104] S602: Receive device information sent by a second device based on near field communication.

[0105] Specifically, after the second device establishes a communication connection with the first device in a near field communication manner, the second device can send device information to the first device, and the first device can receive the device information sent by the second device based on the near field communication manner. It can be understood that after verifying the preset fixed identifier in the near field connection request of the first device, the device information is sent to the first device, which can avoid the device information of the second device from being sent to irrelevant or wrong electronic devices, thereby ensuring the security of the device information.

[0106] S603: Generate a communication identifier based on the device information, and send the communication identifier to the second device using near field communication.

[0107] Specifically, after the first device receives the device information of the second device, it can generate a communication identifier based on the device information and can send the generated communication identifier to the second device based on the near field communication method, so as to inform the second device to establish a communication connection with the first device based on the communication identifier. For details, please refer to the relevant descriptions of steps S203 and S204 in the above embodiments, which will not be repeated here.

[0108] S604: Establish a communication connection with the second device using a wireless network communication method based on the communication identifier.

[0109] Specifically, the first device may establish a communication connection with the second device using a wireless network communication method based on the communication identifier.

[0110] Optionally, the first device may generate a wireless connection request for the wireless network communication mode based on the communication identifier, send the wireless connection request to the second device based on the wireless network communication mode, receive the wireless connection response information returned by the second device for the wireless connection request based on the wireless network communication mode, and establish a communication connection with the second device using the wireless network communication mode. For details, please refer to the relevant description of steps S401-S404 in the above embodiment, which will not be repeated here.

[0111] S605: Acquire target information for the second device, and generate target communication information based on the communication identifier and the target information.

[0112] Specifically, the first device may obtain target information for the second device, and generate target communication information according to the communication identifier and the target information. For details, please refer to the relevant description of step S206 in the above embodiment, which will not be repeated here.

[0113] S606: Send the target communication information to the second device based on the wireless network communication method.

[0114] Specifically, the first device may send the generated target communication information to the second device based on a wireless communication manner, so that the second device may respond to the target information in the target communication information.

[0115] Optionally, the target information acquired by the first device may come from a third device, and the first device may receive the target information for the second device sent by the third device based on a wireless network communication method, wherein a communication connection exists between the third device and the first device via the wireless network communication method.

[0116] In the embodiment of the present application, based on a preset fixed identifier, a communication connection is established with the second device using a near field communication method, based on the near field communication method, the device information sent by the second device is received, and a connection is established through a preset fixed identifier to improve the accuracy of the near field communication pairing, thereby ensuring the security of the device information. A communication identifier is generated based on the device information, and the communication identifier is sent to the second device using a near field communication method. Based on the communication identifier, a communication connection is established with the second device using a wireless network communication method, and a connection success message can be output after the communication connection is successfully established to prompt the user or relevant staff, and the device information is sent to the first device based on the near field communication method to determine the communication identifier. The communication identifier is determined based on the near field communication method to improve the efficiency of device pairing and simplify the manual operation steps, and the wireless network communication connection is established with the communication identifier, which improves the accuracy of the wireless network communication connection. The first device obtains the target information for the second device, generates the target communication information based on the communication identifier and the target information, and sends the target communication information to the second device based on the wireless network communication method so that the second device responds to the target information, and the communication connection is used to achieve the collaborative work of the first device and the second device.

[0117] See also Fig. 9 , a flow chart of a device pairing method applied to a second device is provided for an embodiment of the present application, such as Fig. 9 As shown, the embodiment of the present application is described based on the second device side and may include the following steps S701-S703.

[0118] S701, sending device information of the second device to the first device based on near field communication.

[0119] Specifically, the user or relevant staff can adjust the near-field communication modules of the first device and the second device that need to be paired to an on state. After the near-field communication modules are turned on, they will scan within the effective range of the near-field communication method. Therefore, the user or relevant staff can bring the near-field communication module of the first device close to or in contact with the near-field communication module of the second device. When the near-field communication module of the second device detects the near-field communication module of the first device, the second device can send the device information of the second device to the first device based on the near-field communication method, wherein the device information is characteristic information that can be used to distinguish the second device from other electronic devices, and is used to characterize the identity and uniqueness of the second device, such as a MAC address, an IP address, a device serial number, etc.

[0120] S702: Receive a communication identifier sent by a first device based on a near field communication method.

[0121] Specifically, the first device can generate a communication identifier based on the received device information and send it to the second device. The second device can receive the communication identifier sent by the first device based on near field communication. The second device can establish a communication connection with the first device based on the communication identifier.

[0122] S703: Establish a communication connection with the first device using a wireless network communication method based on the communication identifier.

[0123] Specifically, the first device and the second device can establish a communication connection based on the communication identifier and adopt the wireless network communication method. For example, the first device can send a wireless connection request containing the communication identifier to the second device via the wireless network communication method. The second device receives the wireless connection request and determines that it contains the previously set communication identifier, so that it can be determined that the wireless connection request comes from the first device, and returns wireless connection response information to the second device based on the wireless network communication method, thereby establishing a communication connection between the first device and the second device via the wireless network communication method, that is, realizing the pairing of the wireless network communication method of the first device and the second device, which facilitates the subsequent data exchange between the first device and the second device using the wireless network communication method to achieve collaborative work.

[0124] In the embodiment of the present application, based on the near field communication method, the device information sent by the second device is received, a communication identifier is generated based on the device information, the communication identifier is sent to the second device using the near field communication method, and based on the communication identifier, a communication connection is established with the second device using the wireless network communication method. The communication identifier is generated based on the device information obtained using the near field communication method, and the communication identifier is determined based on the near field communication method, which improves the efficiency of device pairing, simplifies the manual operation steps, and establishes a wireless network communication connection with the communication identifier, thereby improving the accuracy of the wireless network communication connection.

[0125] See also Fig.10 , a flow chart of a device pairing method applied to a second device is provided for an embodiment of the present application, such as Fig.10 As shown, the embodiment of the present application is described based on the second device side and may include the following steps S801-S806.

[0126] S801: Establish a communication connection with a first device using near field communication based on a preset fixed identifier.

[0127] For details, please refer to the relevant description of step S201 in the above embodiment, which will not be repeated here.

[0128] Optionally, the second device can receive a near-field connection request sent by the first device based on a near-field communication method. If there is a preset fixed identifier in the near-field connection request, the second device can send a near-field connection response message to the first device based on the near-field communication method, and establish a communication connection with the first device using the near-field communication method. For details, please refer to steps S301-S304 of the above embodiment, which will not be repeated here.

[0129] S802: Send device information of the second device to the first device based on near field communication.

[0130] Specifically, after the second device establishes a communication connection with the first device in a near field communication manner, the device information of the second device can be sent to the first device based on the near field communication manner. It can be understood that after verifying the preset fixed identifier in the near field connection request of the first device, the device information is sent to the first device, which can avoid the device information of the second device from being sent to irrelevant or wrong electronic devices, thereby ensuring the security of the device information.

[0131] S803: Receive a communication identifier sent by the first device based on a near field communication method.

[0132] Specifically, the first device can generate a communication identifier based on the received device information and send it to the second device. The second device can receive the communication identifier sent by the first device based on near field communication. The second device can establish a communication connection with the first device based on the communication identifier.

[0133] S804: Establish a communication connection with the first device using a wireless network communication method based on the communication identifier.

[0134] Specifically, the second device may establish a communication connection with the first device using a wireless network communication method based on the communication identifier.

[0135] Optionally, the second device can receive a wireless connection request sent by the first device based on a wireless network communication method. If there is a communication identifier in the wireless connection request, the second device can send a wireless connection response message to the first device based on the wireless network communication method, and establish a communication connection with the first device using the wireless network communication method. For details, please refer to the relevant description of steps S401-S404 of the above embodiment, which will not be repeated here.

[0136] S805: Receive target communication information sent by the first device based on the wireless network communication method.

[0137] Specifically, since the first device and the second device have established a communication connection via a wireless network communication method, data can be exchanged between the first device and the second device, and the second device can receive the target communication information sent by the first device based on the wireless network communication method. For details, please refer to the relevant description of step S206 in the above embodiment, which will not be repeated here.

[0138] S806: If the target communication information contains a communication identifier, the target information is obtained from the target communication information and a response is made to the target information.

[0139] Specifically, when the second device receives the target communication information based on the wireless network communication method, it can determine whether the target communication information has a communication identifier. If there is a communication identifier, it can be determined that the target communication information comes from the first device. The second device can obtain the target information in the target communication information and respond to the target information.

[0140] Optionally, the target communication information is generated by the first device based on the target information sent by the third device, and the third device has a communication connection with the first device in a wireless network communication manner. For details, please refer to the relevant description of step S208 in the above embodiment, which will not be repeated here.

[0141] In the embodiment of the present application, based on a preset fixed identifier, a communication connection is established with the first device using a near field communication method, based on the near field communication method, the device information of the second device is sent to the first device, and a connection is established through a preset fixed identifier to improve the accuracy of pairing in the near field communication method, thereby ensuring the security of the device information. Based on the near field communication method, a communication identifier sent by the first device is received, and based on the communication identifier, a communication connection is established with the first device using a wireless network communication method, and a connection success message can be output after the communication connection is successfully established to prompt the user or relevant staff, and a communication identifier is generated based on the device information obtained using the near field communication method, and the communication identifier is determined based on the near field communication method to improve the efficiency of device pairing and simplify the manual operation steps, and a wireless network communication connection is established with the communication identifier, thereby improving the accuracy of the wireless network communication connection. Based on the wireless network communication method, the target communication information sent by the first device is received, and if the communication identifier exists in the target communication information, the target information is obtained in the target communication information and responded to the target information, and the communication connection is used to achieve the collaborative work of the first device and the second device.

[0142] The following will be combined with the attached Fig.11 -Attached Fig.12 , the device pairing device provided in the embodiment of the present application is introduced in detail. It should be noted that the attached Fig.11 -Attached Fig.12 The device pairing device in the present application is used to execute Figure 7 and Figure 8 For the convenience of explanation, only the part related to the embodiment of the present application is shown. For the specific technical details not disclosed, please refer to the present application. Figure 7 and Figure 8 The embodiment shown.

[0143] See also Fig.11 , which shows a schematic diagram of the structure of a device pairing device applied to a first device provided by an exemplary embodiment of the present application. The device pairing device can be implemented as all or part of a device through software, hardware or a combination of both. The device 1 includes a device information acquisition unit 11, an identifier generation unit 12 and a first communication establishment unit 13.

[0144] The device information acquiring unit 11 is used to receive the device information sent by the second device based on the near field communication method;

[0145] an identifier generating unit 12, configured to generate a communication identifier based on the device information, and send the communication identifier to the second device using the near field communication method;

[0146] The first communication establishing unit 13 is used to establish a communication connection with the second device by using a wireless network communication method based on the communication identifier.

[0147] In this embodiment, based on the near field communication method, the device information sent by the second device is received, a communication identifier is generated based on the device information, the communication identifier is sent to the second device using the near field communication method, and based on the communication identifier, a communication connection is established with the second device using the wireless network communication method. The communication identifier is generated based on the device information obtained using the near field communication method, and the communication identifier is determined based on the near field communication method, which improves the efficiency of device pairing, simplifies the manual operation steps, and establishes a wireless network communication connection with the communication identifier, thereby improving the accuracy of the wireless network communication connection.

[0148] See also Fig.12 , which shows a schematic diagram of the structure of a device pairing device applied to a first device provided by an exemplary embodiment of the present application. The device pairing device can be implemented as all or part of the device through software, hardware or a combination of both. The device 1 includes a first near field connection unit 14, a device information acquisition unit 11, an identifier generation unit 12, a first communication establishment unit 13 and a communication information sending unit 15.

[0149] The first near field connection unit 14 is configured to establish a communication connection with the second device in a near field communication manner based on a preset fixed identifier.

[0150] Optionally, the first near field connection unit 14 is specifically configured to generate a near field connection request for a near field communication mode based on a preset fixed identifier;

[0151] Based on the near field communication mode, sending the near field connection request to the second device;

[0152] Based on the near field communication mode, near field connection response information returned by the second device in response to the near field connection request is received, and a communication connection is established with the second device using the near field communication mode.

[0153] The device information acquiring unit 11 is used to receive the device information sent by the second device based on the near field communication method;

[0154] an identifier generating unit 12, configured to generate a communication identifier based on the device information, and send the communication identifier to the second device using the near field communication method;

[0155] The first communication establishing unit 13 is used to establish a communication connection with the second device by using a wireless network communication method based on the communication identifier.

[0156] Optionally, the first communication establishing unit 13 is specifically configured to generate a wireless connection request for a wireless network communication mode based on the communication identifier;

[0157] Based on the wireless network communication mode, sending the wireless connection request to the second device;

[0158] Based on the wireless network communication mode, wireless connection response information returned by the second device in response to the wireless connection request is received, and a communication connection is established with the second device using the wireless network communication mode.

[0159] A communication information sending unit 15, configured to obtain target information for the second device, and generate target communication information based on the communication identifier and the target information;

[0160] Based on the wireless network communication mode, the target communication information is sent to the second device, so that the second device responds to the target information.

[0161] Optionally, the target communication sending unit 15 is specifically used to receive target information for the second device sent by a third device based on the wireless network communication mode, and the third device has a communication connection with the first device in the wireless network communication mode.

[0162] In this embodiment, based on a preset fixed identifier, a communication connection is established with the second device using a near field communication method, based on the near field communication method, the device information sent by the second device is received, and a connection is established through a preset fixed identifier to improve the accuracy of the near field communication pairing, thereby ensuring the security of the device information. A communication identifier is generated based on the device information, and the communication identifier is sent to the second device using a near field communication method. Based on the communication identifier, a communication connection is established with the second device using a wireless network communication method, and a connection success message can be output after the communication connection is successfully established to prompt the user or relevant staff. Based on the near field communication method, the device information is sent to the first device to determine the communication identifier. The communication identifier is determined based on the near field communication method to improve the device pairing efficiency and simplify the manual operation steps. The wireless network communication connection is established with the communication identifier, and the accuracy of the wireless network communication connection is improved. The first device obtains the target information for the second device, generates the target communication information based on the communication identifier and the target information, and sends the target communication information to the second device based on the wireless network communication method so that the second device responds to the target information. The communication connection is used to achieve the collaborative work of the first device and the second device.

[0163] Please refer to Fig.13, which shows a structural block diagram of an electronic device applied to a first device provided by an exemplary embodiment of the present application. The electronic device in the present application may include one or more of the following components: a processor 110, a memory 120, an input device 130, an output device 140, and a bus 150. The processor 110, the memory 120, the input device 130, and the output device 140 may be connected via a bus 150.

[0164] The processor 110 may include one or more processing cores. The processor 110 uses various interfaces and lines to connect various parts of the entire electronic device, and executes various functions and processes data of the terminal 100 by running or executing instructions, programs, code sets or instruction sets stored in the memory 120, and calling data stored in the memory 120. Optionally, the processor 110 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 110 can integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes the operating system, user pages, and applications; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 110, but may be implemented separately through a communication chip.

[0165] The memory 120 may include a random access memory (RAM) or a read-only memory (ROM). Optionally, the memory 120 includes a non-transitory computer-readable medium (Non-Transitory Computer-Readable Storage Medium). The memory 120 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 120 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc. The operating system may be an Android system, including a system deeply developed based on the Android system, an IOS system developed by Apple, including a system deeply developed based on the IOS system, or other systems.

[0166] The memory 120 can be divided into an operating system space and a user space. The operating system runs in the operating system space, and native and third-party applications run in the user space. In order to ensure that different third-party applications can achieve good operating results, the operating system allocates corresponding system resources to different third-party applications. However, the requirements for system resources in different application scenarios in the same third-party application are also different. For example, in the local resource loading scenario, the third-party application has higher requirements for disk reading speed; in the animation rendering scenario, the third-party application has higher requirements for GPU performance. The operating system and third-party applications are independent of each other, and the operating system often cannot perceive the current application scenario of the third-party application in a timely manner, resulting in the operating system being unable to perform targeted system resource adaptation according to the specific application scenario of the third-party application.

[0167] In order for the operating system to distinguish the specific application scenarios of third-party applications, it is necessary to open up data communication between third-party applications and the operating system so that the operating system can obtain the current scenario information of third-party applications at any time, and then perform targeted system resource adaptation based on the current scenario.

[0168] The input device 130 is used to receive input commands or data, and includes but is not limited to a keyboard, a mouse, a camera, a microphone, or a touch device. The output device 140 is used to output commands or data, and includes but is not limited to a display device and a speaker. In one example, the input device 130 and the output device 140 can be combined, and the input device 130 and the output device 140 are touch screen displays.

[0169] The touch display screen can be designed as a full screen, a curved screen or a special-shaped screen. The touch display screen can also be designed as a combination of a full screen and a curved screen, or a combination of a special-shaped screen and a curved screen, which is not limited in the embodiments of the present application.

[0170] In addition, those skilled in the art can understand that the structure of the electronic device shown in the above drawings does not constitute a limitation on the electronic device, and the electronic device may include more or fewer components than shown in the drawings, or combine certain components, or arrange the components differently. For example, the electronic device also includes radio frequency circuits, input units, sensors, audio circuits, wireless fidelity (WiFi) modules, power supplies, Bluetooth modules and other components, which will not be described in detail here.

[0171] exist Fig.13 In the electronic device shown, the processor 110 may be used to call the device pairing application stored in the memory 120, and specifically perform the following operations:

[0172] Based on the near field communication method, receiving the device information sent by the second device;

[0173] Generate a communication identifier based on the device information, and send the communication identifier to the second device using the near field communication method;

[0174] Based on the communication identifier, a communication connection is established with the second device using a wireless network communication manner.

[0175] In one embodiment, before acquiring the device information of the second device, the processor 110 further performs the following operations:

[0176] Based on the preset fixed identifier, a communication connection is established with the second device using near field communication.

[0177] In one embodiment, when the processor 110 establishes a communication connection with the second device in a near field communication manner based on a preset fixed identifier, the processor 110 specifically performs the following operations:

[0178] Generate a near field connection request for a near field communication mode based on a preset fixed identifier;

[0179] Based on the near field communication mode, sending the near field connection request to the second device;

[0180] Based on the near field communication mode, near field connection response information returned by the second device in response to the near field connection request is received, and a communication connection is established with the second device using the near field communication mode.

[0181] In one embodiment, when the processor 110 establishes a communication connection with the second device using a wireless network communication method based on the communication identifier, the processor 110 specifically performs the following operations:

[0182] generating a wireless connection request for a wireless network communication mode based on the communication identifier;

[0183] Based on the wireless network communication mode, sending the wireless connection request to the second device;

[0184] Based on the wireless network communication mode, wireless connection response information returned by the second device in response to the wireless connection request is received, and a communication connection is established with the second device using the wireless network communication mode.

[0185] In one embodiment, when executing the device pairing method, the processor 110 further performs the following operations:

[0186] Acquire target information for the second device, and generate target communication information based on the communication identifier and the target information;

[0187] Based on the wireless network communication mode, the target communication information is sent to the second device, so that the second device responds to the target information.

[0188] In an embodiment, when the processor 110 executes the acquisition of target information for the second device, the processor 110 specifically performs the following operations:

[0189] Based on the wireless network communication mode, target information for the second device sent by a third device is received, and the third device has a communication connection with the first device using the wireless network communication mode.

[0190] In one embodiment, the first device includes a near field communication module and a wireless network communication module.

[0191] In this embodiment, based on a preset fixed identifier, a communication connection is established with the second device using a near field communication method, based on the near field communication method, the device information sent by the second device is received, and a connection is established through a preset fixed identifier to improve the accuracy of the near field communication pairing, thereby ensuring the security of the device information. A communication identifier is generated based on the device information, and the communication identifier is sent to the second device using a near field communication method. Based on the communication identifier, a communication connection is established with the second device using a wireless network communication method, and a connection success message can be output after the communication connection is successfully established to prompt the user or relevant staff. Based on the near field communication method, the device information is sent to the first device to determine the communication identifier. The communication identifier is determined based on the near field communication method to improve the device pairing efficiency and simplify the manual operation steps. The wireless network communication connection is established with the communication identifier, and the accuracy of the wireless network communication connection is improved. The first device obtains the target information for the second device, generates the target communication information based on the communication identifier and the target information, and sends the target communication information to the second device based on the wireless network communication method so that the second device responds to the target information. The communication connection is used to achieve the collaborative work of the first device and the second device.

[0192] The following will be combined with the attached Fig.14 -Attached Fig.15 , the device pairing device provided in the embodiment of the present application is introduced in detail. It should be noted that the attached Fig.14 -Attached Fig.15 The device pairing device in the present application is used to execute Fig. 9 and Fig.10 For the convenience of explanation, only the part related to the embodiment of the present application is shown. For the specific technical details not disclosed, please refer to the present application. Figure 7 and Figure 8 The embodiment shown.

[0193] See also Fig.14 , which shows a schematic diagram of the structure of a device pairing device applied to a second device provided by an exemplary embodiment of the present application. The device pairing device can be implemented as all or part of the device through software, hardware or a combination of both. The device 2 includes a device information sending unit 21, an identifier receiving unit 22 and a second communication establishing unit 23.

[0194] The device information sending unit 21 is used to send the device information of the second device to the first device based on the near field communication method;

[0195] an identifier receiving unit 22, configured to receive a communication identifier sent by the first device based on the near field communication mode, wherein the communication identifier is generated based on the device information;

[0196] The second communication establishing unit 23 is used to establish a communication connection with the first device by using a wireless network communication method based on the communication identifier.

[0197] In this embodiment, based on the near field communication method, the device information sent by the second device is received, a communication identifier is generated based on the device information, the communication identifier is sent to the second device using the near field communication method, and based on the communication identifier, a communication connection is established with the second device using the wireless network communication method. The communication identifier is generated based on the device information obtained using the near field communication method, and the communication identifier is determined based on the near field communication method, which improves the efficiency of device pairing, simplifies the manual operation steps, and establishes a wireless network communication connection with the communication identifier, thereby improving the accuracy of the wireless network communication connection.

[0198] See also Fig.15 , which shows a schematic diagram of the structure of a device pairing device applied to a second device provided by an exemplary embodiment of the present application. The device pairing device can be implemented as all or part of the device through software, hardware or a combination of both. The device 2 includes a second near field connection unit 24, a device information sending unit 21, an identifier receiving unit 22, a second communication establishing unit 23 and a communication information receiving unit 25.

[0199] The second near field connection unit 24 is configured to establish a communication connection with the first device in a near field communication manner based on a preset fixed identifier.

[0200] Optionally, the second near field connection unit 24 is specifically configured to receive a near field connection request sent by the first device based on a near field communication mode;

[0201] If there is a preset fixed identifier in the near field connection request, near field connection response information is sent to the first device based on the near field communication method, and a communication connection is established with the first device using the near field communication method.

[0202] The device information sending unit 21 is used to send the device information of the second device to the first device based on the near field communication method;

[0203] an identifier receiving unit 22, configured to receive a communication identifier sent by the first device based on the near field communication mode, wherein the communication identifier is generated based on the device information;

[0204] The second communication establishing unit 23 is used to establish a communication connection with the first device by using a wireless network communication method based on the communication identifier.

[0205] Optionally, the second communication establishing unit 23 is specifically configured to receive a wireless connection request sent by the first device based on a wireless network communication mode;

[0206] If the communication identifier exists in the wireless connection request, wireless connection response information is sent to the first device based on the wireless network communication mode, and a communication connection is established with the first device using the wireless network communication mode.

[0207] A communication information receiving unit 25, configured to receive target communication information sent by the first device based on the wireless network communication mode;

[0208] If the communication identifier exists in the target communication information, target information is obtained from the target communication information and a response is made to the target information.

[0209] Optionally, the target communication information is generated by the first device based on the target information sent by a third device, and the third device has a communication connection with the first device in the wireless network communication mode.

[0210] In this embodiment, based on a preset fixed identifier, a communication connection is established with the first device using a near field communication method, based on the near field communication method, the device information of the second device is sent to the first device, and a connection is established through a preset fixed identifier to improve the accuracy of pairing in the near field communication method, thereby ensuring the security of the device information. Based on the near field communication method, a communication identifier sent by the first device is received, and based on the communication identifier, a communication connection is established with the first device using a wireless network communication method, and a connection success message can be output after the communication connection is successfully established to prompt the user or relevant staff, and a communication identifier is generated based on the device information obtained using the near field communication method, and the communication identifier is determined based on the near field communication method to improve the efficiency of device pairing and simplify the manual operation steps, and a wireless network communication connection is established with the communication identifier, thereby improving the accuracy of the wireless network communication connection. Based on the wireless network communication method, the target communication information sent by the first device is received, and if the communication identifier exists in the target communication information, the target information is obtained in the target communication information and responded to the target information, and the communication connection is used to achieve the collaborative work of the first device and the second device.

[0211] Please refer to Fig.16 , which shows a block diagram of an electronic device applied to a second device provided by an exemplary embodiment of the present application. The electronic device in the present application may include one or more of the following components: a processor 210, a memory 220, an input device 230, an output device 240, and a bus 250. The processor 210, the memory 220, the input device 230, and the output device 240 may be connected via a bus 250.

[0212] The processor 210 may include one or more processing cores. The processor 210 uses various interfaces and lines to connect various parts of the entire electronic device, and executes various functions and processes data of the electronic device 200 by running or executing instructions, programs, code sets or instruction sets stored in the memory 220, and calling data stored in the memory 220. Optionally, the processor 210 can be implemented in at least one hardware form of DSP, FPGA, and PLA. The processor 210 can integrate one or a combination of CPU, GPU, modem, etc. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to handle wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 210, but may be implemented separately through a communication chip.

[0213] The memory 220 may include RAM or ROM. Optionally, the memory 220 includes a non-transitory computer-readable medium. The memory 220 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 220 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc. The operating system may be an Android system, including a system deeply developed based on the Android system, an IOS system developed by Apple, including a system deeply developed based on the IOS system or other systems. The data storage area may also store data created by the electronic device during use, such as a phone book, audio and video data, chat record data, etc.

[0214] The memory 220 can be divided into an operating system space and a user space. The operating system runs in the operating system space, and native and third-party applications run in the user space. In order to ensure that different third-party applications can achieve good operating results, the operating system allocates corresponding system resources to different third-party applications. However, the requirements for system resources in different application scenarios in the same third-party application are also different. For example, in the local resource loading scenario, the third-party application has higher requirements for disk reading speed; in the animation rendering scenario, the third-party application has higher requirements for GPU performance. The operating system and third-party applications are independent of each other, and the operating system often cannot perceive the current application scenario of the third-party application in a timely manner, resulting in the operating system being unable to perform targeted system resource adaptation according to the specific application scenario of the third-party application.

[0215] In order for the operating system to distinguish the specific application scenarios of third-party applications, it is necessary to open up data communication between third-party applications and the operating system so that the operating system can obtain the current scenario information of third-party applications at any time, and then perform targeted system resource adaptation based on the current scenario.

[0216] The input device 230 is used to receive input commands or data, and includes but is not limited to a keyboard, a mouse, a camera, a microphone, or a touch device. The output device 240 is used to output commands or data, and includes but is not limited to a display device and a speaker. In one example, the input device 230 and the output device 240 can be combined, and the input device 230 and the output device 240 are touch screen displays.

[0217] The touch display screen can be designed as a full screen, a curved screen or a special-shaped screen. The touch display screen can also be designed as a combination of a full screen and a curved screen, or a combination of a special-shaped screen and a curved screen, which is not limited in the embodiments of the present application.

[0218] In addition, those skilled in the art can understand that the structure of the electronic device shown in the above drawings does not constitute a limitation on the electronic device, and the electronic device may include more or fewer components than shown, or combine certain components, or arrange the components differently. For example, the electronic device also includes components such as a radio frequency circuit, an input unit, a sensor, an audio circuit, a WiFi module, a power supply, and a Bluetooth module, which will not be described in detail here.

[0219] exist Fig.16 In the electronic device shown, the processor 210 may be used to call the device pairing configuration application stored in the memory 220, and specifically perform the following operations:

[0220] Based on the near field communication method, the device information of the second device is sent to the first device;

[0221] Based on the near field communication mode, receiving a communication identifier sent by the first device, wherein the communication identifier is generated based on the device information;

[0222] Based on the communication identifier, a communication connection is established with the first device using a wireless network communication manner.

[0223] In one embodiment, before executing the near field communication method to send the device information of the second device to the first device, the processor 210 further performs the following operations:

[0224] Based on the preset fixed identifier, a communication connection is established with the first device using near field communication.

[0225] In one embodiment, when the processor 210 establishes a communication connection with the first device in a near field communication manner based on a preset fixed identifier, the processor 210 specifically performs the following operations:

[0226] Based on the near field communication method, receiving the near field connection request sent by the first device;

[0227] If there is a preset fixed identifier in the near field connection request, near field connection response information is sent to the first device based on the near field communication method, and a communication connection is established with the first device using the near field communication method.

[0228] In one embodiment, when the processor 210 establishes a communication connection with the first device using a wireless network communication method based on the communication identifier, the processor 210 specifically performs the following operations:

[0229] Based on the wireless network communication mode, receiving the wireless connection request sent by the first device;

[0230] If the communication identifier exists in the wireless connection request, wireless connection response information is sent to the first device based on the wireless network communication mode, and a communication connection is established with the first device using the wireless network communication mode.

[0231] In one embodiment, when executing the device pairing method, the processor 210 further performs the following operations:

[0232] Based on the wireless network communication mode, receiving target communication information sent by the first device;

[0233] If the communication identifier exists in the target communication information, target information is obtained from the target communication information and a response is made to the target information.

[0234] In one embodiment, the target communication information is generated by the first device based on the target information sent by a third device, and the third device has a communication connection with the first device in the wireless network communication mode.

[0235] In one embodiment, the second device includes a near field communication module and a wireless network communication module.

[0236] In the embodiment of the present application, based on a preset fixed identifier, a communication connection is established with the first device using a near field communication method, based on the near field communication method, the device information of the second device is sent to the first device, and a connection is established through a preset fixed identifier to improve the accuracy of pairing in the near field communication method, thereby ensuring the security of the device information. Based on the near field communication method, a communication identifier sent by the first device is received, and based on the communication identifier, a communication connection is established with the first device using a wireless network communication method, and a connection success message can be output after the communication connection is successfully established to prompt the user or relevant staff, and a communication identifier is generated based on the device information obtained using the near field communication method, and the communication identifier is determined based on the near field communication method to improve the efficiency of device pairing and simplify the manual operation steps, and a wireless network communication connection is established with the communication identifier, thereby improving the accuracy of the wireless network communication connection. Based on the wireless network communication method, the target communication information sent by the first device is received, and if the communication identifier exists in the target communication information, the target information is obtained in the target communication information and responded to the target information, and the communication connection is used to achieve the collaborative work of the first device and the second device.

[0237] It should be noted that the device pairing apparatus provided in the above embodiment only uses the division of the above functional modules as an example when executing the device pairing method. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device pairing apparatus and the device pairing method embodiment provided in the above embodiment belong to the same concept, and the implementation process thereof is detailed in the method embodiment, which will not be repeated here.

[0238] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0239] An embodiment of the present application also provides a computer storage medium, which can store multiple instructions, and the instructions are suitable for being loaded by a processor and executing the device pairing method as described in the embodiment shown above. The specific execution process can be found in the specific description of the embodiment shown above, and will not be repeated here.

[0240] The present application also provides a computer program product, which stores at least one instruction, and the at least one instruction is loaded by the processor and executes the device pairing method as described in the embodiment shown above. The specific execution process can be found in the specific description of the embodiment shown above, and will not be repeated here.

[0241] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only storage memory, or a random access memory, etc.

[0242] The above disclosure is only the preferred embodiment of the present application, which certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.

[0243] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals involved in the embodiments of this specification are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions. For example, the device information, communication identifiers, etc. involved in this specification are all obtained with full authorization.

Claims

1. A device pairing method, characterized in that: Applied to a first device, the method includes: Receiving device information sent by the second device based on a near field communication method; Generate a communication identifier based on the device information, and send the communication identifier to the second device using the near field communication method; Based on the communication identifier, establish a communication connection with the second device using a wireless network communication method; Acquire target information for the second device, and generate target communication information based on the communication identifier and the target information, where the target information is information input by a user or sent by other electronic devices and is used to control the second device; Based on the wireless network communication mode, sending the target communication information to the second device, so that the second device responds to the target information; The establishing a communication connection with the second device using a wireless network communication method based on the communication identifier includes: Generate a wireless connection request designated to be sent to the second device by using the communication identifier as a packet header; Based on the wireless network communication mode, sending the wireless connection request to the second device; Based on the wireless network communication mode, wireless connection response information returned by the second device in response to the wireless connection request is received, and a communication connection is established with the second device using the wireless network communication mode.

2. The method according to claim 1, characterized in that Before acquiring the device information of the second device, the method further includes: Based on the preset fixed identifier, a communication connection is established with the second device using near field communication.

3. The method according to claim 2, characterized in that The establishing of a communication connection with the second device in a near field communication manner based on a preset fixed identifier includes: Generate a near field connection request for a near field communication mode based on a preset fixed identifier; Based on the near field communication mode, sending the near field connection request to the second device; Based on the near field communication mode, near field connection response information returned by the second device in response to the near field connection request is received, and a communication connection is established with the second device using the near field communication mode.

4. The method according to claim 1, characterized in that: The acquiring target information for the second device includes: Based on the wireless network communication mode, target information for the second device sent by a third device is received, and the third device has a communication connection with the first device using the wireless network communication mode.

5. The method according to claim 1, characterized in that The first device includes a near field communication module and a wireless network communication module.

6. A wireless pairing method, characterized in that: Applied to the second device, the method includes: Based on the near field communication method, the device information of the second device is sent to the first device; Based on the near field communication mode, receiving a communication identifier sent by the first device, wherein the communication identifier is generated based on the device information; Based on the communication identifier, establish a communication connection with the first device using a wireless network communication method; Based on the wireless network communication mode, receiving target communication information sent by the first device; If the communication identifier exists in the target communication information, obtaining target information from the target communication information and responding to the target information, wherein the target information is information input by a user or sent by other electronic devices and used to control the second device; The establishing a communication connection with the first device using a wireless network communication method based on the communication identifier includes: Based on the wireless network communication mode, receiving a wireless connection request sent by the first device, wherein the wireless connection request is a wireless connection request with a communication identifier as a packet header and is designated to be sent to the second device; If the communication identifier exists in the wireless connection request, wireless connection response information is sent to the first device based on the wireless network communication mode, and a communication connection is established with the first device using the wireless network communication mode.

7. The method according to claim 6, characterized in that Before sending the device information of the second device to the first device based on the near field communication method, the method further includes: Based on the preset fixed identifier, a communication connection is established with the first device using near field communication.

8. The method according to claim 7, characterized in that The establishing of a communication connection with the first device in a near field communication manner based on a preset fixed identifier includes: Based on the near field communication method, receiving the near field connection request sent by the first device; If there is a preset fixed identifier in the near field connection request, near field connection response information is sent to the first device based on the near field communication method, and a communication connection is established with the first device using the near field communication method.

9. The method according to claim 6, characterized in that The target communication information is generated by the first device based on the target information sent by the third device, and the third device has a communication connection with the first device in the wireless network communication mode.

10. The method according to claim 6, characterized in that The second device includes a near field communication module and a wireless network communication module.

11. A computer storage medium, characterized in that: The computer storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the method steps as claimed in any one of claims 1 to 5 and 6 to 10.

12. An electronic device, characterized in that: include: A processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the method steps as claimed in any one of claims 1 to 5 and 6 to 10.

Citation Information

Patent Citations

  • Equipment connection method and device and storage medium

    CN113784456A

  • Communication method and system between distributed devices and related devices

    CN115915492A