Connection method and connection device

By displaying authentication and connection information on electronic devices and using camera scanning to automatically initiate connection requests and identity verification, the cumbersome connection process for electronic devices is solved, achieving an efficient automatic connection process.

CN115665886BActive Publication Date: 2025-12-09VIVO MOBILE COMM CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202211329671.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-27
Publication Date
2025-12-09
Estimated Expiration
2042-10-27

AI Technical Summary

Technical Problem

In existing technologies, the process of establishing a data connection between electronic devices is cumbersome, requiring users to manually confirm their identity information and connection requests, resulting in low connection efficiency.

Method used

By displaying authentication and connection information on electronic devices, using a camera to scan and obtain the other party's information, and automatically initiating connection requests and identity verification, the connection process is simplified.

Benefits of technology

It enables automatic connection and identity verification between electronic devices, simplifies the connection process, improves connection efficiency, and avoids manual operation by users.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115665886B_ABST
    Figure CN115665886B_ABST
Patent Text Reader

Abstract

The application discloses a connection method and a connection device, belongs to the technical field of communication, and is applied to a first electronic device. The connection method comprises the following steps: in the case that the first electronic device displays authentication information, scanning and acquiring connection information displayed by a second electronic device; according to the connection information, sending a connection request to a target device; wherein the target device comprises the second electronic device or a target server; and receiving connection result information sent by the target device.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application belongs to the technical field of communication, and particularly relates to a connection method and a connection device. BACKGROUND

[0002] In the related art, electronic devices can be connected through Bluetooth, Wi-Fi, near field communication (NFC) and other network technologies to realize data interaction.

[0003] Generally, to control different electronic devices to establish a data connection, the electronic device of a connection initiator needs to send a connection request to the electronic device of the other party, and the electronic device of the other party needs to obtain the identity information of the electronic device of the connection initiator after receiving the connection request, and then display the identity information and the connection request, and manually select whether to receive the connection by the user. Therefore, the steps of establishing a connection are cumbersome. SUMMARY

[0004] The embodiments of the present application aim to provide a connection method and a connection device, which can simplify the steps of establishing a connection between electronic devices and improve the connection efficiency.

[0005] In a first aspect, the embodiments of the present application provide a connection method applied to a first electronic device, and the connection method comprises the following steps.

[0006] In the case that the first electronic device displays authentication information, scanning and obtaining connection information displayed by a second electronic device;

[0007] According to the connection information, sending a connection request to a target device; wherein the target device comprises the second electronic device or a target server;

[0008] Receiving connection result information sent by the target device.

[0009] In a second aspect, the embodiments of the present application provide a connection method applied to a second electronic device, and the connection method comprises the following steps.

[0010] In the case that the second electronic device displays connection information, scanning and obtaining authentication information displayed by a first electronic device;

[0011] Receiving a connection request sent by the first electronic device according to the connection information, and verifying the authentication information;

[0012] In the case that the authentication information passes the verification, establishing a connection with the first electronic device according to the connection request;

[0013] Sending corresponding connection results to the first electronic device.

[0014] In a third aspect, the embodiments of the present application provide a connection method, applied to a second electronic device, and the connection method comprises the following steps:

[0015] In the case that the second electronic device displays the connection information, the authentication information displayed by the first electronic device is scanned and acquired;

[0016] The target server is determined according to the connection information, and the authentication information is sent to the target server.

[0017] In a fourth aspect, the embodiments of the present application provide a connection device, applied to a first electronic device, and the connection device comprises the following steps:

[0018] The first scanning module is configured to scan and acquire the connection information displayed by the second electronic device in the case that the first electronic device displays the authentication information;

[0019] The first connection module is configured to send a connection request to a target device according to the connection information;

[0020] The first receiving module is configured to receive a connection result sent by the target device.

[0021] In a fifth aspect, the embodiments of the present application provide a connection device, applied to a second electronic device, and the connection device comprises the following steps:

[0022] The second scanning module is configured to scan and acquire the authentication information displayed by the first electronic device in the case that the second electronic device displays the connection information;

[0023] The second receiving module is configured to receive a connection request sent by the first electronic device according to the connection information, and to verify the authentication information;

[0024] The second connection module is configured to establish a connection with the first electronic device according to the connection request in the case that the authentication information passes the verification.

[0025] The first sending module is configured to send a corresponding connection result to the first electronic device.

[0026] In a sixth aspect, the embodiments of the present application provide a connection device, applied to a second electronic device, and the connection device comprises the following steps:

[0027] The third scanning module is configured to scan and acquire the authentication information displayed by the first electronic device in the case that the second electronic device displays the connection information;

[0028] The second sending module is configured to determine a target server according to the connection information, and to send the authentication information to the target server.

[0029] In a seventh aspect, an embodiment of the present application provides a first electronic device, comprising a processor and a memory, the memory storing programs or instructions executable on the processor, and the programs or instructions, when executed by the processor, implement steps of the method in the first aspect.

[0030] In an eighth aspect, an embodiment of the present application provides a second electronic device, comprising a processor and a memory, the memory storing programs or instructions executable on the processor, and the programs or instructions, when executed by the processor, implement steps of the method in the second aspect and / or the third aspect.

[0031] In a ninth aspect, an embodiment of the present application provides a readable storage medium, the readable storage medium storing programs or instructions, and the programs or instructions, when executed by a processor, implement steps of the method in the first aspect, the second aspect and / or the third aspect.

[0032] In a tenth aspect, an embodiment of the present application provides a chip, the chip comprising a processor and a communication interface, the communication interface coupled to the processor, and the processor configured to execute programs or instructions to implement steps of the method in the first aspect, the second aspect and / or the third aspect.

[0033] In an eleventh aspect, an embodiment of the present application provides a computer program product stored in a storage medium, and the program product is executed by at least one processor to implement the method in the first aspect, the second aspect and / or the third aspect.

[0034] In the embodiments of the present application, when the first electronic device needs to establish a connection with a target device, the first electronic device displays its own authentication information, the second electronic device displays the connection information of the target device, and the first electronic device scans the connection information while the second electronic device scans the authentication information.

[0035] After scanning the corresponding information, the first electronic device initiates a connection request to the target device according to the scanned connection information, and the target device determines whether to establish a connection with the first electronic device according to the authentication information scanned by the second electronic device. If the authentication information is verified, the target device establishes a connection with the first electronic device according to the connection request. In this process, the connection initiation and identity authentication processes are performed simultaneously, and the user does not need to manually establish a connection, thereby simplifying the steps of establishing a data connection by the electronic device, optimizing the connection process, and improving the connection efficiency. BRIEF DESCRIPTION OF DRAWINGS

[0036] Figure 1 FIG. 1 shows one of the flowcharts of the connection method according to an embodiment of the present application;

[0037] Figure 2 FIG. 2 shows a schematic diagram of the first electronic device and the second electronic device according to an embodiment of the present application.

[0038] Figure 3 Fig. 2 shows a flow chart of a connection method according to an embodiment of the application;

[0039] Figure 4 Fig. 3 shows a logic diagram of establishing a data connection between a first electronic device and a second electronic device according to an embodiment of the application;

[0040] Figure 5 Fig. 4 shows a flow chart of a connection method according to an embodiment of the application;

[0041] Figure 6 Fig. 5 shows a logic diagram of establishing a data connection between a first electronic device and a target server through a second electronic device according to an embodiment of the application;

[0042] Figure 7 Fig. 6 shows a structure block diagram of a connection apparatus according to an embodiment of the application;

[0043] Figure 8 Fig. 7 shows a structure block diagram of a connection apparatus according to an embodiment of the application;

[0044] Figure 9 Fig. 8 shows a structure block diagram of a connection apparatus according to an embodiment of the application;

[0045] Figure 10 Fig. 9 shows a structure block diagram of a first electronic device according to an embodiment of the application;

[0046] Figure 11 Fig. 10 shows a structure block diagram of a second electronic device according to an embodiment of the application;

[0047] Figure 12 Fig. 11 shows a hardware structure diagram of an electronic device according to an embodiment of the application. DETAILED DESCRIPTION

[0048] The technical solutions in the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art belong to the scope of protection of the present application.

[0049] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally a class and do not limit the number of objects, for example, the first object can be one or more. In addition, "and / or" in the specification and claims indicates at least one of the connected objects, and the character " / ", generally indicates that the objects before and after are in a "or" relationship.

[0050] The connection method and the connection device provided by the embodiments of the present application will be described in detail below in combination with the drawings, specific embodiments and application scenarios.

[0051] In some embodiments of the present application, a connection method is provided, applied to a first electronic device, Figure 1 One of the flowcharts of the connection method according to the embodiments of the present application is shown, as Figure 1 The connection method includes:

[0052] Step 102, in the case that the first electronic device displays authentication information, scanning and acquiring connection information displayed by the second electronic device;

[0053] Step 104, according to the connection information, initiating a connection request to the target device;

[0054] Wherein, the target device verifies the authentication information scanned by the second electronic device, in the case that the authentication information passes the verification, the target device establishes a connection with the first electronic device according to the connection request sent by the first electronic device, and sends a connection result to the first electronic device;

[0055] Step 106, receiving the connection result sent by the target device.

[0056] In the embodiments of the present application, the first electronic device can display authentication information through the display screen, and the second electronic device can display connection information through the display screen. Figure 2 The schematic diagram of the first electronic device and the second electronic device according to the embodiments of the present application is shown, as Figure 2 The first electronic device 202 and the second electronic device 204 can both be electronic devices with two screens, the authentication information 2024 is displayed on the back screen 2022 of the first electronic device 202, and the connection information 2044 is displayed on the back screen 2042 of the second electronic device 204.

[0057] At this time, the first electronic device 202 and the second electronic device 204 are "back to back", the rear camera 2026 of the first electronic device 202 scans the connection information 2044 displayed by the second electronic device 204, and the rear camera 2046 of the second electronic device 204 scans the authentication information 2024 displayed by the first electronic device 202.

[0058] After the scanning is completed, the first electronic device obtains the connection information, and the second electronic device obtains the authentication information.

[0059] It can be understood that the embodiments of the present application can also be used for electronic devices with only one screen, the first electronic device displays the authentication information on the main screen, the second electronic device displays the connection information on the main screen, the first electronic device and the second electronic device are "face to face", the first electronic device scans the connection information through the front camera, and the second electronic device scans the authentication information through the front camera.

[0060] After the first electronic device and the second electronic device scan the corresponding information, the first electronic device initiates a connection request to the target device according to the scanned connection information, and at the same time, the target device judges whether to receive the connection request according to the authentication information scanned by the second electronic device, if the authentication information is verified, the target device establishes a connection with the first electronic device according to the connection request of the first electronic device, and returns a connection result to the first electronic device. After receiving the connection result, the first electronic device confirms that the connection is successfully established.

[0061] The target device can be the second electronic device, that is, the first electronic device and the second electronic device establish a data connection. The target device can also be a target server, that is, the first electronic device establishes a connection with the target server through the second electronic device.

[0062] In the embodiments of the present application, when establishing a connection between electronic devices, the process of initiating a connection and the process of identity verification can be performed at the same time, and the user does not need to manually confirm whether to establish a connection during the connection process, which simplifies the steps of establishing a data connection of the electronic device, optimizes the connection process, and improves the connection efficiency.

[0063] In some embodiments of the present application, after receiving the connection result information sent by the target device, the connection method further comprises:

[0064] In the case that the target device is the second electronic device, a connection is established with the second electronic device;

[0065] In the case that the target device is a target server, the connection result information includes login information;

[0066] Logging into the target server according to the login information.

[0067] In the embodiments of the present application, the target device can be a second electronic device or a target server. Specifically, when the target device is the second electronic device, the first electronic device scans the connection information of the second electronic device when displaying the authentication information. The second electronic device scans the authentication information of the first electronic device when displaying the connection information.

[0068] The first electronic device initiates a connection request to the second electronic device according to the connection information, the second electronic device checks the authentication information, and when the check is passed, the second electronic device establishes a connection with the first electronic device, thereby completing the establishment of the connection.

[0069] When the target device is the target server, the first electronic device scans the connection information of the second electronic device when displaying the authentication information. The second electronic device scans the authentication information of the first electronic device when displaying the connection information.

[0070] The first electronic device initiates a connection request to the target server according to the connection information, the second electronic device sends the scanned authentication information to the target server, the target server checks the authentication information, and when the check is passed, the target server returns a connection result to the first electronic device according to the connection request of the first electronic device, the connection result carrying login information of the target server, and the first electronic device logs in to the target server according to the login information after receiving the connection result. Thus, the establishment of the connection is completed.

[0071] The embodiments of the present application can simplify the connection steps between two electronic devices, and can also simplify the steps of establishing a connection between the first electronic device and the target server through the second electronic device as a medium, thereby optimizing the process of establishing a connection between electronic devices and between an electronic device and a server.

[0072] In some embodiments of the present application, the number of second electronic devices is N, and N is a positive integer. When the first electronic device displays the authentication information, the connection information displayed by the second electronic device is scanned and acquired, specifically including:

[0073] When the first electronic device displays the authentication information, N connection information respectively displayed by N second electronic devices is scanned and acquired.

[0074] According to the connection information, a connection request is sent to the target device, specifically including:

[0075] According to the N connection information, a connection request is sent to N target devices, wherein the N target devices correspond one-to-one to the N connection information.

[0076] In the embodiments of the present application, the first electronic device can simultaneously initiate connection requests to multiple target devices, thereby establishing connections with the multiple target devices at one time. Specifically, the first electronic device displays its authentication information on its own display screen, and the N second electronic devices respectively display the connection information of the N target devices. It can be understood that the target devices herein can be the second electronic devices or target servers.

[0077] For example, M of the N second electronic devices display their own connection information, and P of the N second electronic devices respectively display the connection information of the corresponding P target servers, where N=M+P.

[0078] The first electronic device scans the connection information displayed by the N second electronic devices one by one, or the first electronic device takes an image of the multiple second electronic devices at one time through the camera, and identifies the connection information in the image one by one.

[0079] After the first electronic device scans and obtains the N connection information, it sends a connection request to the N target devices at the same time. After the M of the N second electronic devices scan the authentication information of the first electronic device, the M second electronic devices authenticate the authentication information, and the P second electronic devices forward the authentication information to the corresponding P target servers.

[0080] The first electronic device can continuously receive the connection information sent by the N target devices within a preset time, thereby establishing connections with the N target devices.

[0081] The embodiments of the present application can enable an electronic device to establish connections with multiple target devices at one time, and do not require manual operation of the user during the process of establishing connections between the electronic device and the multiple target devices, thereby simplifying the steps of establishing connections between the electronic device and the multiple target devices and improving the connection efficiency.

[0082] In some embodiments of the present application, the connection information includes: Bluetooth connection information of the target device, hotspot network information of the target device, and network address information of the target device.

[0083] In the embodiments of the present application, when the target device is a second electronic device, the connection information specifically includes Bluetooth connection information of the second electronic device, and the first electronic device establishes a Bluetooth connection with the second electronic device through the Bluetooth connection information of the second electronic device.

[0084] When the target device is a second electronic device, the connection information specifically includes hotspot network information of the second electronic device, and the first electronic device establishes a P2P Wi-Fi connection with the second electronic device through the hotspot network information of the second electronic device.

[0085] When the target device is a target server, the connection information specifically includes a network address of the target server, and the first electronic device initiates a network connection to the target server through the network address of the target server.

[0086] In some embodiments of the present application, a connection method is provided, applied to a second electronic device, Figure 3 A flowchart of a connection method according to an embodiment of the present application is shown in FIG. 2, which includes the following steps. Figure 3

[0087] Step 302, in the case that the second electronic device displays the connection information, scan and acquire the authentication information displayed by the first electronic device;

[0088] Step 304, receive a connection request sent by the first electronic device according to the connection information, and verify the authentication information;

[0089] Step 306, in the case that the authentication information passes the verification, establish a connection with the first electronic device;

[0090] Step 308, send a corresponding connection result to the first electronic device.

[0091] In an embodiment of the present application, for the second electronic device, i.e., the target device, the first electronic device initiates a connection to the second electronic device, and the first electronic device displays the authentication information through the display screen, and the second electronic device displays the connection information through the display screen.

[0092] Specifically, Figure 4 A logic diagram of the first electronic device and the second electronic device establishing a data connection according to an embodiment of the present application is shown in FIG. 3, which includes the following steps. Figure 4 As shown in FIG. 3, the first electronic device scans the connection information displayed by the second electronic device through the camera, and sends a connection request to the second electronic device according to the scanned connection information.

[0093] After the second electronic device scans the authentication information, it records the authentication information, and judges whether a connection request carrying the same authentication information, i.e., the connection request sent by the first electronic device, is received. If the connection request is received, the second electronic device verifies the authentication information according to the scanned authentication information. If the second electronic device verifies that the authentication information passes the verification, the second electronic device establishes a connection with the first electronic device.

[0094] If the connection request is not received, the second electronic device continuously receives the connection request of the first electronic device within a preset time period, and clears the expired (within a preset range, such as the time from scanning the authentication information exceeds a threshold) authentication information. If the connection request is not received within the preset time, the second electronic device returns to the scenario of displaying the connection information and scanning the authentication information, and reattempts to establish a connection.​

[0095] After the data connection is established, the second electronic device sends the connection result to the first electronic device through the established data connection. After receiving the connection result sent by the second electronic device through the data connection, the first electronic device determines that the connection establishment is successful.

[0096] The process of initiating connection and the process of identity verification can be performed simultaneously when the connection between the electronic devices is established, and the user does not need to manually confirm whether the connection is established in the connection process, which simplifies the steps of establishing the data connection of the electronic device, optimizes the connection process, and improves the connection efficiency.

[0097] In some embodiments of the present application, a connection method is provided, applied to a second electronic device, Figure 5 A third flowchart of the connection method according to an embodiment of the present application is shown in FIG. 5, which shows that the connection method includes: Figure 5

[0098] Step 502, in the case that the second electronic device displays the connection information, scanning and acquiring the authentication information displayed by the first electronic device;

[0099] Step 504, determining a target server according to the connection information, and sending the authentication information to the target server;

[0100] In the case that the target server receives the connection request sent by the first electronic device, the target server verifies the authentication information, and in the case that the authentication information passes the verification, the target server establishes the connection with the first electronic device according to the connection request of the first electronic device, and sends the connection result to the first electronic device.

[0101] In the embodiment of the present application, for the scenario that the target device is the target server and the first electronic device initiates the connection to the target server, the first electronic device displays the authentication information through the display screen, and the second electronic device displays the connection information through the display screen.

[0102] Specifically, Figure 6 A logic schematic diagram of the first electronic device establishing the data connection with the target server through the second electronic device according to an embodiment of the present application is shown in FIG. 6, which shows that the first electronic device scans the connection information displayed by the second electronic device through the camera, and sends the connection request to the target server according to the scanned connection information. Figure 6

[0103] After the second electronic device scans the authentication information, the authentication information is sent to the target server, and the target server verifies the authentication information. If the target server verifies that the authentication information passes the verification, the target server establishes the connection with the first electronic device according to the connection request of the first electronic device. ​​

[0104] It can be understood that the data connection between the first electronic device and the target server can be implemented through the Internet or a local area network, and the embodiments of the present application do not limit this.

[0105] After the data connection is established, the target server sends a connection result to the first electronic device. After receiving the connection result returned by the target server, the first electronic device determines that the connection is successfully established.

[0106] The embodiments of the present application establish a connection between the first electronic device and the target server through the second electronic device as a medium. In this process, the connection initiation process and the identity verification step can be performed simultaneously, simplifying the steps of the electronic device when establishing a data connection to the target server, optimizing the connection process, and improving the connection efficiency.

[0107] The connection method provided by the embodiments of the present application can be executed by a connection device. The connection device provided by the embodiments of the present application is described by taking the connection device executing the connection method as an example.

[0108] In some embodiments of the present application, a connection device is provided, which is applied to a first electronic device, Figure 7 One of the structural block diagrams of the connection device according to the embodiments of the present application is shown, as shown in Figure 7 The connection device 700 includes:

[0109] The first scanning module 702 is configured to scan and acquire connection information displayed by a second electronic device in the case that the first electronic device displays authentication information.

[0110] The first connection module 704 is configured to send a connection request to a target device according to the connection information; wherein the target device verifies the authentication information scanned by the second electronic device, establishes a connection with the first electronic device in the case that the authentication information passes the verification, and sends a connection result to the first electronic device.

[0111] The first receiving module 706 is configured to receive the connection result sent by the target device.

[0112] In the embodiments of the present application, when establishing a connection between electronic devices, the connection initiation process and the identity verification process can be performed simultaneously, and the user does not need to manually confirm whether the connection is established during the connection process, which simplifies the steps of the electronic device when establishing a data connection, optimizes the connection process, and improves the connection efficiency.

[0113] In some embodiments of the present application, the target device is the second electronic device; or

[0114] The target device is a target server, and after the second electronic device scans the authentication information, the second electronic device sends the authentication information to the target server.

[0115] The embodiment of the application can simplify the connection step between two electronic devices, and can also simplify the step of establishing a connection between the first electronic device and the target server through the second electronic device as a medium, thereby optimizing the process of establishing a connection between electronic devices and between an electronic device and a server.

[0116] In some embodiments of the application, the first connection module is further configured to establish a connection with the second electronic device when the target device is the second electronic device.

[0117] When the target device is a target server, the connection result information includes login information.

[0118] The connection device further includes:

[0119] The login module is configured to log in to the target server according to the login information.

[0120] The embodiment of the application can simplify the connection step between two electronic devices, and can also simplify the step of establishing a connection between the first electronic device and the target server through the second electronic device as a medium, thereby optimizing the process of establishing a connection between electronic devices and between an electronic device and a server.

[0121] In some embodiments of the application, the number of second electronic devices is N, and N is a positive integer.

[0122] The first scanning module is specifically configured to scan and obtain N pieces of connection information respectively displayed by N second electronic devices when the first electronic device displays the authentication information.

[0123] The first connection module is specifically configured to send a connection request to N target devices according to the N pieces of connection information, wherein the N target devices correspond one-to-one to the N pieces of connection information.

[0124] The embodiment of the application can enable an electronic device to establish a connection with multiple target devices at a time, and does not require manual operation of the user in the process of establishing a connection between the electronic device and the multiple target devices, thereby simplifying the step of establishing a connection between the electronic device and the multiple target devices and improving the connection efficiency.

[0125] In some embodiments of the application, the connection information includes:

[0126] Bluetooth connection information of the target device, hotspot network information of the target device, and network address information of the target server.

[0127] In the embodiments of the present application, when the target device is the second electronic device, the connection information specifically includes Bluetooth connection information of the second electronic device, and the first electronic device establishes a Bluetooth connection with the second electronic device through the Bluetooth connection information of the second electronic device.

[0128] When the target device is the second electronic device, the connection information specifically includes hotspot network information of the second electronic device, and the first electronic device establishes a P2P Wi-Fi connection with the second electronic device through the hotspot network information of the second electronic device.

[0129] When the target device is the target server, the connection information specifically includes a network address of the target server, and the first electronic device initiates a network connection to the target server through the network address of the target server.

[0130] In some embodiments of the present application, a connection apparatus is provided, applied to a second electronic device, Figure 8 Fig. 2 shows a structural block diagram of the connection apparatus according to an embodiment of the present application, as shown in the figure, Figure 8 The connection apparatus 800 includes:

[0131] The second scanning module 802 is configured to scan and acquire the authentication information displayed by the first electronic device when the second electronic device displays the connection information.

[0132] The second receiving module 804 is configured to receive a connection request sent by the first electronic device according to the connection information, and to verify the authentication information.

[0133] The second connection module 806 is configured to establish a connection with the first electronic device according to the connection request when the authentication information passes the verification.

[0134] The first sending module 808 is configured to send a corresponding connection result to the first electronic device.

[0135] In the embodiments of the present application, when a connection is established between electronic devices, the process of initiating the connection and the process of identity verification can be performed simultaneously, and the user does not need to manually confirm whether the connection is established during the connection process, which simplifies the steps of establishing a data connection by the electronic device, optimizes the connection process, and improves the connection efficiency.

[0136] In some embodiments of the present application, a connection apparatus is provided, applied to a second electronic device, Figure 9 Fig. 3 shows a structural block diagram of the connection apparatus according to an embodiment of the present application, as shown in the figure, Figure 9 The connection apparatus 900 includes:

[0137] The third scanning module 902 is configured to scan the authentication information displayed by the first electronic device when the second electronic device displays the connection information.

[0138] The second sending module 904 is configured to determine a target server according to the connection information, and send the authentication information to the target server.

[0139] The target server, upon receiving the connection request sent by the first electronic device, checks the authentication information, and, upon passing the check, establishes a connection with the first electronic device according to the connection request of the first electronic device, and sends a connection result to the first electronic device.

[0140] The embodiment of the present application establishes a connection between the first electronic device and the target server through the second electronic device as a medium. In this process, the process of initiating the connection and the step of identity check can be performed simultaneously, which simplifies the steps of establishing a data connection between the electronic device and the target server, optimizes the connection process, and improves the connection efficiency.

[0141] The connection apparatus in the embodiment of the present application can be an electronic device or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices other than the terminal. For example, the electronic device can be a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic device, a Mobile Internet Device (MID), an augmented reality (AR) / virtual reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The electronic device can also be a server, a Network Attached Storage (NAS), a personal computer (PC), a television (TV), a teller machine, or a self-service machine, etc. The embodiment of the present application is not limited in this regard.

[0142] The connection apparatus in the embodiment of the present application can be an apparatus with an operating system. The operating system can be an Android operating system, an iOS operating system, or other possible operating systems. The embodiment of the present application is not limited in this regard.

[0143] The connection apparatus provided by the embodiment of the present application can implement each process implemented by the method embodiments. To avoid repetition, details are not described herein.

[0144] Optionally, the embodiment of the present application further provides a first electronic device, Figure 10A structural block diagram of the first electronic device according to an embodiment of the present application is shown in FIG. 1. Figure 10 As shown in FIG. 1, the first electronic device 1000 includes a processor 1002, a memory 1004, a program or instruction stored in the memory 1004 and executable on the processor 1002, which, when executed by the processor 1002, implements various processes of the above method embodiments and achieves the same technical effects. To avoid repetition, details are not described herein.

[0145] Optionally, the present application also provides a second electronic device, Figure 11 A structural block diagram of the second electronic device according to an embodiment of the present application is shown in FIG. 2. Figure 11 As shown in FIG. 2, the second electronic device 1100 includes a processor 1102, a memory 1104, a program or instruction stored in the memory 1104 and executable on the processor 1102, which, when executed by the processor 1102, implements various processes of the above method embodiments and achieves the same technical effects. To avoid repetition, details are not described herein.

[0146] It should be noted that the electronic device in the embodiments of the present application includes the mobile electronic device and the non-mobile electronic device described above.

[0147] Figure 12 A hardware structural schematic diagram of an electronic device according to an embodiment of the present application.

[0148] The electronic device 1200 includes, but is not limited to, a radio frequency unit 1201, a network module 1202, an audio output unit 1203, an input unit 1204, a sensor 1205, a display unit 1206, a user input unit 1207, an interface unit 1208, a memory 1209, and a processor 1210, etc.

[0149] Those skilled in the art can understand that the electronic device 1200 can also include a power supply (such as a battery) for powering various components, and the power supply can be logically connected to the processor 1210 through a power management system, so as to realize functions such as management of charging, discharging, and power consumption management through the power management system. Figure 12 The electronic device structure shown in FIG. 3 does not constitute a limitation on the electronic device, and the electronic device can include more or fewer components than those shown, or combine certain components, or different component arrangements, which are not described herein.

[0150] The processor 1210 is configured to, in a case where the first electronic device displays authentication information, scan and acquire connection information displayed by the second electronic device; according to the connection information, send a connection request to a target device, wherein the target device includes the second electronic device or a target server; and receive connection result information sent by the target device.

[0151] In the embodiments of the present application, when a connection is established between electronic devices, the process of initiating the connection and the process of identity verification can be performed simultaneously, and the user does not need to manually confirm whether the connection is established during the connection process, thereby simplifying the steps of establishing a data connection by the electronic device, optimizing the connection process, and improving the connection efficiency.

[0152] Optionally, in the case that the target device is the second electronic device, the processor 1210 is further configured to establish a connection with the second electronic device;

[0153] In the case that the target device is the target server, the connection result information includes login information.

[0154] The processor 1210 is further configured to log in to the target server according to the login information.

[0155] The embodiments of the present application can simplify the connection steps between two electronic devices, and can also simplify the connection steps between the first electronic device and the target server through the second electronic device as a medium, thereby optimizing the connection process between electronic devices and the connection process between the electronic device and the server.

[0156] Optionally, the number of the second electronic devices is N, and N is a positive integer.

[0157] The processor 1210 is further configured to, in the case that the first electronic device displays the authentication information, scan and obtain N pieces of connection information respectively displayed by N second electronic devices; and according to the N pieces of connection information, send a connection request to N target devices, wherein the N target devices correspond to the N pieces of connection information one by one.

[0158] The embodiments of the present application can enable the electronic device to establish a connection with multiple target devices at a time, and the user does not need to manually operate during the process of establishing a connection between the electronic device and the multiple target devices, thereby simplifying the steps of establishing a connection between the electronic device and the multiple target devices and improving the connection efficiency.

[0159] Optionally, the processor 1210, in the case that the second electronic device displays the connection information, scans and obtains the authentication information displayed by the first electronic device; receives a connection request sent by the first electronic device according to the connection information, and verifies the authentication information; in the case that the authentication information passes the verification, establishes a connection with the first electronic device; and sends a corresponding connection result to the first electronic device.

[0160] In the embodiments of the present application, when a connection is established between electronic devices, the process of initiating the connection and the process of identity verification can be performed simultaneously, and the user does not need to manually confirm whether the connection is established during the connection process, thereby simplifying the steps of establishing a data connection by the electronic device, optimizing the connection process, and improving the connection efficiency.

[0161] Optionally, the processor 1210 is further configured to, when the second electronic device displays the connection information, scan the authentication information displayed by the first electronic device; determine a target server according to the connection information, and send the authentication information to the target server.

[0162] The embodiment of the present application establishes a connection between the first electronic device and the target server through the second electronic device as a medium. In this process, the process of initiating the connection and the step of identity verification can be performed at the same time, which simplifies the steps of establishing a data connection from the electronic device to the target server, optimizes the connection process, and improves the connection efficiency.

[0163] It should be understood that in the embodiment of the present application, the input unit 1204 can include a graphics processing unit (GPU) 12041 and a microphone 12042. The graphics processing unit 12041 processes image data of still pictures or videos obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 1206 can include a display panel 12061, which can be configured in the form of a liquid crystal display, an organic light-emitting diode, etc. The user input unit 1207 includes at least one of a touch panel 12071 and other input devices 12072. The touch panel 12071 is also called a touch screen. The touch panel 12071 can include a touch detection device and a touch controller. The other input devices 12072 can include, but are not limited to, a physical keyboard, function keys (such as volume control keys, on-off keys, etc.), a trackball, a mouse, an operating lever, and the like, which will not be described here.

[0164] The memory 1209 can be used to store software programs and various data. The memory 1209 can mainly include a first storage area storing programs or instructions and a second storage area storing data, wherein the first storage area can store an operating system, application programs or instructions required by at least one function (such as a sound playing function, an image playing function, etc.), and the like. In addition, the memory 1209 can include a volatile memory or a non-volatile memory, or the memory 1209 can include both volatile and non-volatile memories. The non-volatile memory can be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically EPROM (EEPROM), or a flash memory. The volatile memory can be a Random Access Memory (RAM), a Static RAM (SRAM), a Dynamic RAM (DRAM), a Synchronous DRAM (SDRAM), a Double Data Rate SDRAM (DDR SDRAM), an Enhanced SDRAM (ESDRAM), a Synch link DRAM (SLDRAM), and a Direct Rambus RAM (DRRAM). The memory 1209 in the embodiments of the present application includes but is not limited to these and any other suitable types of memories.

[0165] The processor 1210 can include one or more processing units; optionally, the processor 1210 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and an application program, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It can be understood that the above-mentioned modem processor can also not be integrated into the processor 1210.

[0166] The embodiments of the present application also provide a readable storage medium, and the readable storage medium stores programs or instructions, the programs or instructions are executed by a processor to realize various processes of the above-mentioned method embodiments and achieve the same technical effects. To avoid repetition, details are not described here.

[0167] The processor is a processor in the electronic device in the above embodiments. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disc or an optical disc, and the like.

[0168] The embodiment of the present application further provides a chip, which includes a processor and a communication interface. The communication interface is coupled with the processor. The processor is used to run programs or instructions, to realize various processes of the above method embodiments, and to achieve the same technical effects. To avoid repetition, details are not described herein.

[0169] It should be understood that the chip mentioned in the embodiment of the present application can also be referred to as a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0170] The embodiment of the present application provides a computer program product. The program product is stored in a storage medium. The program product is executed by at least one processor to realize various processes of the above method embodiments, and to achieve the same technical effects. To avoid repetition, details are not described herein.

[0171] It should be noted that, in this document, the term "comprising" or "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed, or further includes elements inherent to such a process, method, article or device. Without more limitations, the element defined by the statement "comprising a" does not exclude the presence of additional identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the method and device in the embodiment of the present application is not limited to the order of performing the functions as shown or discussed, but can also include performing the functions in a substantially simultaneous manner or in a reverse order, for example, the described method can be performed in an order different from that described, and various steps can also be added, omitted or combined. In addition, the features described with reference to certain examples can be combined in other examples.

[0172] Through the above description of the embodiments, those skilled in the art can clearly understand that the above-mentioned example methods can be realized by means of software and a necessary general hardware platform, and of course, can also be realized by hardware, but in many cases, the former is a better embodiment. Based on such understanding, the technical solutions of the present application can be embodied in the form of a computer software product in essence or in the form of a part that contributes to the prior art, which is stored in a storage medium (such as a ROM / RAM, a magnetic disc, an optical disc), and includes a plurality of instructions for causing a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods of various embodiments of the present application.

[0173] The embodiments of the present application are described above in combination with the drawings, but the present application is not limited to the above-mentioned specific embodiments, and the above-mentioned specific embodiments are only illustrative, not restrictive. Those skilled in the art can make many forms under the inspiration of the present application without departing from the scope of the present application and the scope protected by the claims.

Claims

1. A connection method applied to a first electronic device, characterized in that, The connection method comprises: In the case that the first electronic device displays authentication information, scanning and acquiring connection information displayed by a second electronic device, wherein the authentication information is used for the second electronic device to scan; According to the connection information, a connection request is sent to a target device, wherein the connection request comprises the authentication information, and the target device comprises the second electronic device or a target server, and the target device judges whether to receive the connection request according to the authentication information scanned by the second electronic device, and if the authentication information is verified, the target device establishes a connection with the first electronic device according to the connection request of the first electronic device; Connection result information sent by the target device is received.

2. The method of joining according to claim 1, wherein, After the connection result information sent by the target device is received, the connection method further comprises: In the case that the target device is the second electronic device, a connection is established with the second electronic device; In the case that the target device is the target server, the connection result information comprises login information; According to the login information, the target server is logged in.

3. The method of joining according to claim 1, wherein The number of the second electronic devices is N, and N is a positive integer; in the case that the first electronic device displays authentication information, scanning and acquiring connection information displayed by a second electronic device, specifically comprising: In the case that the first electronic device displays authentication information, scanning and acquiring N connection information displayed by N second electronic devices respectively; According to the connection information, a connection request is sent to a target device, specifically comprising: According to the N connection information, the connection request is sent to N target devices, wherein the N target devices correspond to the N connection information one by one.

4. A connection method applied to a second electronic device, comprising: The connection method comprises: In the case that the second electronic device displays connection information, scanning and acquiring authentication information displayed by a first electronic device, wherein the connection information is used for the first electronic device to scan, so that the first electronic device initiates a connection request to the second electronic device according to the connection information; A connection request sent by the first electronic device according to the connection information is received, and the authentication information is verified; The connection request comprises the authentication information; In the case that the authentication information is verified, a connection with the first electronic device is established according to the connection request; A corresponding connection result is sent to the first electronic device.

5. A connection method applied to a second electronic device, comprising: The method comprises: In the case that the second electronic device displays connection information, scanning and acquiring authentication information displayed by a first electronic device, wherein the connection information is used for the first electronic device to scan, so that the first electronic device initiates a connection request to a target server according to the connection information; The connection request comprises the authentication information; According to the connection information, the target server is determined, and the authentication information is sent to the target server; The target server is configured to determine whether to receive the connection request according to the authentication information scanned by the second electronic device, and if the authentication information is verified, the target server establishes a connection with the first electronic device according to the connection request of the first electronic device.

6. A connection apparatus applied to a first electronic device, characterized in that, The connection device comprises: The first scanning module is configured to scan and acquire connection information displayed by a second electronic device in a case where the first electronic device displays authentication information, wherein the authentication information is used for scanning by the second electronic device; The first connection module is configured to send a connection request to a target device according to the connection information, wherein the connection request comprises the authentication information, and the target device comprises the second electronic device or a target server, the target device determines whether to receive the connection request according to the authentication information scanned by the second electronic device, and if the authentication information is verified, the target device establishes a connection with the first electronic device according to the connection request of the first electronic device; The first receiving module is configured to receive connection result information sent by the target device.

7. The connection device of claim 6, wherein The first connection module is further configured to establish a connection with the second electronic device in a case where the target device is the second electronic device; In a case where the target device is the target server, the connection result information comprises login information; The connection device further comprises: The login module is configured to log in to the target server according to the login information.

8. The connection device according to claim 7, characterized in that The number of the second electronic devices is N, and N is a positive integer; The first scanning module is specifically configured to scan and acquire N pieces of connection information displayed by N second electronic devices respectively in the case where the first electronic device displays authentication information; The first connection module is specifically configured to send the connection request to N target devices according to the N pieces of connection information, wherein the N target devices correspond to the N pieces of connection information one by one.

9. A connection apparatus applied to a second electronic device, characterized in that, The device comprises: The second scanning module is configured to scan and acquire authentication information displayed by a first electronic device in a case where the second electronic device displays connection information, wherein the connection information is used for scanning by the first electronic device, so that the first electronic device initiates a connection request to the second electronic device according to the connection information; The second receiving module is configured to receive the connection request sent by the first electronic device according to the connection information, and to verify the authentication information; The connection request comprises the authentication information; The second connection module is configured to establish a connection with the first electronic device according to the connection request in a case where the authentication information is verified; The first sending module is configured to send corresponding connection results to the first electronic device.

10. A connection apparatus applied to a second electronic device, characterized in that, The device comprises: The third scanning module is configured to scan and acquire the authentication information displayed by the first electronic device in a case where the second electronic device displays the connection information, wherein the connection information is used for the first electronic device to perform scanning, so that the first electronic device initiates a connection request to a target server according to the connection information; The authentication information is included in the connection request; The second sending module is configured to determine the target server according to the connection information, and send the authentication information to the target server; The target server is configured to determine whether to receive the connection request according to the authentication information scanned by the second electronic device, and if the authentication information is verified, the target server establishes a connection with the first electronic device according to the connection request of the first electronic device.

Citation Information

Patent Citations

  • Two-dimensional code-based wireless screen transmission authentication method and system

    CN105159643A

  • Terminal, and Bluetooth connection method

    CN105578398A

  • Authentication method, system and device thereof

    CN108809969A