Device connection method, device, device, and storage medium

The method and device improve wireless screen projection connectivity by generating dual network codes and switching connection attempts between LAN and WAN, addressing compatibility issues and enhancing success rates and user experience.

JP2024534831AActive Publication Date: 2024-09-26GUANGZHOU SHIZHEN INFORMATION TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
JP2024512069
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2022-04-22
Filing Date
2023-03-28
Publication Date
2024-09-26
Estimated Expiration
2043-03-28

AI Technical Summary

Technical Problem

Existing wireless screen projection technologies face challenges in connecting devices across local area networks (LAN) and wide area networks (WAN) due to incompatible connection codes, leading to low success rates and security issues.

Method used

A method and device that generate and utilize both a local area network verification code and a wide area network verification code, allowing devices to connect seamlessly across different network types by associating these codes with a server and switching connection attempts between LAN and WAN as needed.

Benefits of technology

Enhances connection success rates by ensuring compatibility across various network environments, simplifying user operations, and reducing learning and operational costs while maintaining security and efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024534831000001
    Figure 2024534831000001
Patent Text Reader

Abstract

This application discloses a device connection method, apparatus, device and storage medium in the field of communication. The method includes the steps of: generating a first connection code based on device information; sending a request for a second connection code and the first connection code to a server, so that the server associates and stores the first connection code and the second connection code, where the first connection code is used as at least one of a verification code and an address code of a local area network, and the second connection code is used as a verification code of a wide area network; displaying the first connection code or the second connection code and receiving a connection request sent by the first device through the local area network or the wide area network, where the connection request is generated by the first device based on the first connection code or the second connection code; and connecting to the first device through the local area network or the wide area network in response to the connection request. The embodiment of the application can improve the success rate of device connection when the local area network and the wide area network are compatible, and solves the technical problem of low compatibility of connection codes and low success rate of device connection in the prior art. [Representative diagram] Figure 3
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] (CROSS-REFERENCE TO RELATED APPLICATIONS) This application claims priority to a Chinese patent application bearing application number 202210430422.7, filed with the China Patent Office on April 22, 2022, the entire contents of which are incorporated by reference into this application.

[0002] The embodiments of the present application relate to the field of communications, and in particular to a device connection method, an apparatus, a device, and a storage medium. [Background technology]

[0003] At present, with the continuous development of network technology, the application scenarios of wireless screen projection technology in the fields of office and education are increasing. Before wireless screen projection, a connection code needs to be input into the screen projection sender to connect the screen projection sender and the screen projection receiver. The current connection code can only be used in the scenarios where both the screen projection sender and the screen projection receiver are located in the same local area network LAN, and the connection code is used as at least one of a random verification code or an address code. However, if the screen projection sender is only connected to a wide area network WAN, or if the screen projection sender cannot directly connect to the address of the screen projection receiver, the screen projection sender cannot connect to the screen projection receiver with the connection code, and in some environments with high information security, the connection code may not be compatible with the environment or even be usable. Summary of the Invention

[0004] The embodiments of the present application provide an equipment connection method, apparatus, device, and storage medium that can improve the success rate of equipment connection when there is compatibility between local area networks and wide area networks, and solve the technical problems of low compatibility of connection codes and low success rate of equipment connection in the prior art.

[0005] In a first aspect, a device connection method according to an embodiment of the present application includes: generating a first connection code based on device information, and sending a request for a second connection code and the first connection code to a server, so that the server associates and stores the first connection code with the second connection code, wherein the first connection code is used as at least one of a verification code and an address code of a local area network, and the second connection code is used as a verification code of a wide area network; displaying the first connection code or the second connection code and receiving a connection request sent by a first device over a local area network or a wide area network, the connection request being generated by the first device based on the first connection code or the second connection code; In response to the connection request, connecting to the first device via the local area network or the wide area network.

[0006] In a second aspect, a device connection method according to an embodiment of the present application includes: receiving a first connection code or a second connection code, the first connection code being used as at least one of an identification code and an address code of a local area network, and the second connection code being used as an identification code of a wide area network; if the second connection code is received, requesting a server to receive a first connection code associated with the second connection code; sending a first connection request to a second device over the local area network based on the first connection code; if the first connection code is received and establishment of a connection corresponding to the first connection request fails, requesting the server to receive a second connection code associated with the first connection code; and after determining that establishment of a connection corresponding to the first connection request has failed, sending a second connection request to the second device via the wide area network based on the second connection code.

[0007] In a third aspect, a device connection device according to an embodiment of the present application includes a connection code generation module, a connection code display module, and a connection response module; The connection code generating module is used to generate a first connection code based on device information, and to send a request for a second connection code and the first connection code to a server, so that the server associates and stores the first connection code with the second connection code, the first connection code being used as at least one of a verification code and an address code of a local area network, and the second connection code being used as a verification code of a wide area network; the connection code display module is used to display the first connection code or the second connection code and receive a connection request sent by a first device via a local area network or a wide area network, the connection request being generated by the first device based on the first connection code or the second connection code; The connection response module is used to connect to the first device via the local area network or the wide area network in response to the connection request.

[0008] In a fourth aspect, a device connection device according to an embodiment of the present application includes a connection code receiving module, a first connection code request module, a first connection request module, a second connection code request module, and a second connection request module; The connection code receiving module is used for receiving a first connection code or a second connection code, the first connection code is used as at least one of a verification code and an address code of a local area network, and the second connection code is used as a verification code of a wide area network; the first connection code request module is used to, when the second connection code is received, request a server to receive a first connection code associated with the second connection code; the first connection request module is used to send a first connection request to a second device via the local area network based on the first connection code; the second connection code request module is used to request the server to receive a second connection code associated with the first connection code when the first connection code is received and establishment of a connection corresponding to the first connection request fails; The second connection request module is used to send a second connection request to the second device via the wide area network based on the second connection code after determining that the establishment of a connection corresponding to the first connection request has failed.

[0009] In a fifth aspect, a device connection device according to an embodiment of the present application includes a processor and a memory, the memory is used to store a computer program and to transmit the computer program to the processor; The processor is adapted to carry out the device connection method described in the first or second aspect in response to instructions in the computer program.

[0010] In a sixth aspect, a storage medium storing computer-executable instructions according to an embodiment of the present application is used to perform the device connection method described in the first or second aspect when the computer-executable instructions are executed by a computer processor.

[0011] As described above, in the embodiment of the present application, with only one connection code displayed on the second device, the first device can connect to the second device via a local area network or a wide area network, and can simultaneously have compatibility with the network environments of the local area network and the wide area network; the user only needs to obtain one connection code during use, and does not need to obtain different connection codes and perform repeated connection operations; regardless of whether the first connection code or the second connection code is displayed, the connection operation performed by the user on the first device is the same, and the user does not need to learn different operations for different connection codes, thereby reducing the user's learning costs and operation costs. The embodiments of the present application can solve the technical problems of the prior art, that is, the low compatibility of connection cords and the low success rate of device connection. [Brief description of the drawings]

[0012] [Figure 1] FIG. 2 is a schematic diagram of a scene when devices according to an embodiment of the present application are connected to each other; [Diagram 2] FIG. 1 is a schematic diagram of a scene when devices in a local area network are connected to each other according to an embodiment of the present application; [Diagram 3] 2 is a flowchart of a device connection method according to an embodiment of the present application. [Figure 4] 1 is a schematic diagram of a scene in which a device connection method according to an embodiment of the present application is applied; [Diagram 5] 4 is a flowchart of another device connection method according to an embodiment of the present application. [Figure 6] 4 is a flowchart of another device connection method according to an embodiment of the present application. [Figure 7] 1 is a flowchart of an analysis of a connection code by a first device according to an embodiment of the present application; [Figure 8] FIG. 11 is a schematic diagram of a process of another device connection method according to an embodiment of the present application. [Figure 9] FIG. 11 is a schematic diagram of a process of another device connection method according to an embodiment of the present application. [Figure 10] FIG. 11 is a schematic diagram of a process of another device connection method according to an embodiment of the present application. [Figure 11] FIG. 2 is a structural schematic diagram of another device connection device according to an embodiment of the present application; [Figure 12] FIG. 2 is a structural schematic diagram of another device connection device according to an embodiment of the present application; [Figure 13] FIG. 1 is a structural schematic diagram of a device connection device according to an embodiment of the present application. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0013] The following description and the accompanying drawings sufficiently illustrate specific embodiments of the present application so that those skilled in the art can practice the present invention. The examples illustrate only possible variations. Independent components and features are optional, unless expressly required, and the order of operations may vary. Portions and features of some embodiments may be included in or substituted for portions and features of other embodiments. The scope of the embodiments of the present application includes the entire claims and all obtainable equivalents of the claims. Although various embodiments may be individually or collectively referred to by the term "invention" in this specification, this is for convenience only and is not intended to automatically limit the scope of the present application to any single invention or inventive concept when multiple inventions are actually disclosed. In this specification, relational terms such as first and second are merely intended to distinguish one entity or operation from another entity and operation, and do not require or imply that any actual relationship or order exists between these entities or operations. And, by using the terms "comprehensive", "comprises" or any other variations to include a non-exclusive inclusion, a process, method, or device-connecting device that includes a set of elements includes not only those elements, but also other elements not expressly shown. Each embodiment in this description is described step by step, and each embodiment is described with an emphasis on the differences from other embodiments, and the same and similar parts between the embodiments may be referred to each other. Structures, products, etc. disclosed in the embodiments are briefly described as they correspond to the methods disclosed in the embodiments, and reference may be made to the method description for relevant parts.

[0014] As shown in Fig. 1, Fig. 1 is a schematic diagram of a first scene when devices according to an embodiment of the present application are connected to each other. A first device 10 and a second device 20 can interact with each other. Here, the first device 10 can be a device such as a mobile phone, a tablet computer, a desktop computer, a Windows, Mac or Chrome notebook, or other portable device, and the second device 20 can be a device such as an interactive smart tablet, an interactive tablet, a projector, a screen and / or a television. The first device 10 and the second device 20 are connected to each other, for example, the first device 10 and the second device 20 may be connected via a wireless communication network, which may be understood as any network that does not require the first device 10 and the second device 20 to be connected by a network cable, for example, RF (Radio Frequency), optical communication or infrared communication, such as infrared data interface (IrDA), diffuse infra-red, wireless local area network (WLAN), worldwide interoperability for microwave access (WiMax), wireless local area network (WiFi), wireless local area network direct (WiFi Direct), Bluetooth, or optical network (LiFi), etc., any other wireless communication network well known to those skilled in the art. Of course, in other embodiments, the first device 10 and the second device 20 may be connected via a wired communication network.

[0015] The first device 10 and the second device 20 may perform information interaction after being connected. For example, the first device 10 may transmit currently displayed screen data to the second device 20, and the currently displayed screen data may include one or more of audio data and video data. After receiving the screen data transmitted from the first device 10, the second device 20 may process the received screen data and display it on its own page to realize screen projection. Exemplarily, the first device 10 may encode the current screen data and transmit the encoded screen data to the second device 20, and the second device 20 may receive and decode the encoded screen data to obtain the decoded screen data, and the second device 20 may display the decoded screen data. In the following, a specific example will be described in which the first device 10 and the second device 20 are connected via a wireless local area network.

[0016] For example, as shown in FIG. 2, FIG. 2 is a schematic diagram of a second scene when the devices according to the embodiment of the present application are connected to each other, the first device 10 and the second device 20 are located in the same local area network, the local area network refers to a private network formed in a local area, the first device 10 and the second device 20 are connected through the local area network, when the first device 10 needs to be screen projected to the second device 20, the second device 20 generates and displays a local area network connection code according to a certain rule, after the local area network connection code is input into the first device 10, the first device 10 can search for the second device 20 in the local area network based on the local area network connection code, and perform information interaction with the second device 20 through the local area network, such as the above-mentioned screen projection process. However, if the first device 10 and the second device 20 are not located in the same local area network, information interaction cannot be performed using the local area network connection code. For example, if the second device 20 is a mobile phone and a user uses the mobile phone through a mobile communication network, the user cannot connect to the first device 10 using the local area network connection code.

[0017] On this basis, an embodiment of the present application provides a device connection method. As shown in Fig. 3, Fig. 3 is a flow chart 1 of the device connection method according to the embodiment of the present application. The method can be applied to a second device 20 and includes the following steps:

[0018] In step 101, a first connection code is generated based on device information, and a request for a second connection code and the first connection code are sent to a server, so that the server associates and stores the first connection code with the second connection code, and the first connection code is used as at least one of a verification code and an address code of a local area network, and the second connection code is used as a verification code of a wide area network.

[0019] In this embodiment, the second device 20 first generates a first connection code based on its own device information. Here, the device information includes, for example, a local area network IP, a service port number, a hotspot IP, a hotspot SSID (Service Set Identifier), a hotspot password, and / or a physical address. Here, the local area network IP refers to the network address of the local area network, the service port number is the port number of the server 30, and various services in the server 30 adopt different ports to provide different services respectively, and the port numbers of the server 30 are the numbers of different ports. The hotspot refers to the device converting GPRS, 3G or 4G signals into wireless local area network signals and broadcasting them for other devices to use, and the hotspot IP is the address of the wireless local area network. The hotspot SSID refers to the division of a wireless local area network of one hotspot into multiple sub-networks requiring different identity verification, each sub-network requiring independent identity verification, and only users who have passed identity authentication can enter the corresponding sub-network, preventing unauthorized users from entering the wireless local area network. A hotspot password refers to the password required to connect to a hotspot's wireless local area network, and you can only connect to the hotspot if the password is correct. The physical address refers to the address of the device that broadcasts the hotspot. The physical address is set by the manufacturer at the time of shipment from the factory and is used to identify each device in the network.

[0020] The first connection code refers to a connection code for connecting different devices in the same local area network. In this embodiment, the first connection code is used as at least one of the verification code and the address code of the local area network, that is, the first connection code may be used only as the verification code of the local area network, may be used only as the address code of the local area network, or may be used as the verification code and the address code of the local area network. The verification code refers to a connection code for matching a specific device, and the verification code includes the verification information of the device. For example, the first device 10 discovers the list of the second device 20 through a protocol of the local area network (such as a simple service discovery protocol or a multicast DNS protocol), and then matches a specific receiver from the list of the second device 20 with the connection code, thereby indirectly discovering and connecting to the second device 20. The address code refers to a connection code including IP address information, and the address code includes the IP address information of the device, for example, information such as an IP address is mapped to the connection code according to a certain mapping relationship, and the screen projection transmitting device can directly develop and connect to the screen projection receiving device after inputting the connection code.

[0021] In one embodiment, the first connection code is a connection code of six characters by default, and a character refers to a unit or symbol such as a grapheme, including alphabets, numbers, arithmetic symbols, punctuation symbols and other symbols, and some functional symbols. In this embodiment, the characters of the first connection code may be any one or more types of numbers or alphabets. Exemplarily, the first connection code may be CDF96Q or WS7U89, etc., and the specific content of the first connection code in this embodiment is not limited. It can be understood that the first connection code can be extended to seven or more characters, so that more IP address information, change bits, ports or other network information can be added. Specifically, in this embodiment, the process of the second device 20 generating the first connection code based on its own device information is to divide the IPv4 private address in the local area network into four segments according to the RFC 1918 standard, as shown in Table 1, and dividing the IPv4 private address in the local area network into four segments is shown in Table 1.

[0022] [Table 1] The first connection code is a 6-digit number or alphabet connection code. The 6-digit number + letter has 36 characters, 0 to 9 and A to Z (case-insensitive). If we exclude the four characters "0" and "1" and the alphabets "I" and "O" that are easily misrecognized by users, 32 characters remain. Therefore, the coding space of the connection code is 32 6 =2 30 That is, a coding space of 30 binary bits in which content can be stored.

[0023] After dividing the IPv4 private address, the first device 10 writes information such as the IP address, port, random bit, check bit, and type bit into 30 binary bits of the connection code. Specifically, if the IP address of the second device 20 is a Class A private segment address, the binary bits of the connection code represent the type, check bit, port, and IP address information from high to low, as shown in Table 2.

[0024] [Table 2] If the IP address of the second device 20 is a class B private segment address, the binary bits of the connection code represent type, check bit, port and IP address information from high to low order as shown in Table 3.

[0025] [Table 3] If the IP address of the second device 20 is a class C private segment address, the binary bits of the connection code represent type, check bit, port and IP address information from high to low order as shown in Table 4.

[0026] [Table 4] Here, the type bit represents the type of IP address, the type bit of the class A private segment address is 00, the type bit of the class B private segment address is 01, the type bit of the class C private segment address is 10, and the type bit of the reserved extension segment is 11. The check bit is a number that combines bits other than the check bit in the connection code, and the number is a remainder of 4. For the connection code entered by the user, the check bit is calculated and compared with the check bit stored in the connection code, thereby making it possible to check whether the user has entered it incorrectly. The change bit is randomly generated in the range of 0 to 15, and since the change bit can affect other parts, the change bit is replaced with any other four bits to avoid changing only one character of the six connection codes. The port is used to store the subscript of the port array and may be obtained from the service port number of the device information, and the IP address information represents the IP address in the local area network of the second device 20 and may be obtained by the local area network IP of the device information.

[0027] After generating the first connection code, the second device 20 uploads the first connection code to the server 30, where the server 30 refers to a device for providing computing or application services to other devices in a network. At the same time, the second device 20 sends an application request for a second connection code to the server 30, where the server 30 generates a second connection code after receiving the request, and at the same time associates and stores the second connection code with the first connection code. It should be noted that in this embodiment, the second connection code is a connection code used in a wide area network, and the second connection code enables the connection of different devices in the wide area network. Here, the wide area network refers to a remote network that connects computer communications in a local area network or a metropolitan area network in different regions, and different devices can access each other in the wide area network. Therefore, if the uniqueness of each wide area network connection code is not ensured, an error will occur in the connection to other devices, resulting in serious problems such as information leakage. Therefore, the second connection code is used as a verification code in the wide area network and is used to match a specific device in the wide area network. In one embodiment, the server 30 can use the first connection code, whose IP address corresponds to the reserved extension segment, as the wide area network connection code.

[0028] In step 102, a first connection code or a second connection code is displayed, and a connection request sent by the first device via a local area network or a wide area network is received, and the connection request is generated by the first device based on the first connection code or the second connection code.

[0029] The second device 20 can display the first connection code or the second connection code after sending the application request for the second connection code to the server 30. For example, the second device 20 can display the connection code at a random position on the screen, or can set a specific area on the screen to display the connection code. If the second device 20 needs to display the first connection code, it needs to receive the first connection code returned from the server 30. Next, the user inputs the first connection code or the second connection code into the first device 10 based on the first connection code or the second connection code displayed on the second device 20, and after receiving the first connection code or the second connection code, the first device 10 generates a connection request based on the first connection code or the second connection code, where the connection request is used to request a connection with the second device 20, and the connection request is generated based on the received first connection code or the second connection code to which the first device 10 is connected. Illustratively, as shown in FIG. 4, FIG. 4 is a schematic diagram of an application scene of a device connection method according to an embodiment of the present application, including a first device 10, a second device 20 and a server 30, the first device 10 is connected to a wide area network, the second device 20 is connected to a wide area network and a local area network, the second device 20 displays the first connection code or the second connection code after receiving the first connection code or the second connection code, and the user inputs the connection code displayed on the second device 20 into the first device 10. After receiving the input connection code, the first device 10 first determines whether the connection code is the first connection code or the second connection code, and if the connection code is the first connection code, the first device 10 analyzes the first connection code and obtains the IP address information and verification information of the second device 20 from the first connection code, and then sends a connection request to the second device 20 through the local area network according to the IP address information and the verification information.For example, Bits 29-28 of the first connection code are analyzed as a type, and how to analyze Bits 27-0 of the first connection code can be determined according to the type obtained by the analysis. If the type is 00, it indicates that the IP address type of the connection code is a class A private segment address, Bits 27-26 of the first connection code are analyzed as a check bit, Bits 25-24 of the first connection code are analyzed as a port, and Bits 23-0 of the connection code are analyzed as IP address information, and the connection code of other IP address types is also analyzed in sequence. In this way, after the user inputs the first connection code into the first device 10, the first device 10 may be connected to the second device 20 via a local area network. In another embodiment, after receiving the first connection code, the first device 10 may obtain a second connection code associated with the first connection code from the server 30, analyze verification information from the second connection code, and transmit a connection request to the second device 20 via a wide area network based on the verification information. Or in another embodiment, after the first device 10 fails to connect to the second device 20 via the local area network, the first device 10 obtains a second connection code associated with the first connection code from the server 30, parses verification information from the second connection code, and sends a connection request to the second device 20 via the wide area network based on the verification information. Thus, the first device 10 may be connected to the second device 20 via the wide area network even after the user inputs the first connection code into the first device 10.

[0030] When the second device 20 displays the second connection code, the user inputs the second connection code into the second device 10. In one embodiment, after the first device 10 receives the second connection code, the first device 10 can directly send a connection request to the second device through a wide area network based on the second connection code, so that the first device and the second device are connected through the wide area network. In another embodiment, after the first device 10 receives the second connection code, the first device 10 obtains a first connection code associated with the second connection code from the server 30 based on the second connection code, and sends a connection request to the second device 20 through a local area network based on the first connection code, and if the connection from the first device 10 to the second device 20 through the local area network fails, the first device 10 further sends a connection request to the first device 10 through a wide area network based on the second connection code, so that the first device 10 may be connected to the second device 20 through the local area network even when the user inputs the second connection code.

[0031] In step 103, in response to the connection request, a connection is made to the first device via a local area network or a wide area network.

[0032] After the second device 20 receives a connection request from the first device 10, if the connection request is sent via a local area network, the second device 20 establishes a connection with the first device 10 via the local area network, and if the connection request is sent via a wide area network, the second device 20 establishes a connection with the first device 10 via the wide area network.

[0033] As described above, the second device uploads the generated first connection code to the server and applies for the second connection code to the server, and if the second device does not receive the second connection code, the first connection code is displayed on the second device, and if the second device receives the second connection code, the second connection code is displayed on the second device. If the user then inputs the first connection code or the second connection code into the first device, the first device can send a connection request to the second device via a local area network or a wide area network, and the second device may be connected to the first device. In the embodiment of the present application, with only one connection code displayed on the second device, the first device can connect to the second device via a local area network or a wide area network, and can simultaneously have compatibility with the network environments of the local area network and the wide area network; the user only needs to obtain one connection code during use, and does not need to obtain different connection codes and perform repeated connection operations; when the first connection code or the second connection code is displayed, the connection operation performed by the user on the first device is the same, and the user does not need to learn different operations for different connection codes, thereby reducing the user's learning costs and operation costs.

[0034] As shown in FIG. 5, FIG. 5 is a flowchart of another device connection method applied to the second device 20 according to an embodiment of the present application, which includes the following steps.

[0035] In step 201, a first connection code is generated based on device information, and a request for a second connection code and the first connection code are sent to a server, so that the server associates and stores the first connection code with the second connection code, and the first connection code is used as at least one of a verification code and an address code of a local area network, and the second connection code is used as a verification code of a wide area network.

[0036] In step 202, a second connection code is received back from the server.

[0037] In this embodiment, when the server 30 receives an application request for a second connection code sent from the second device 20, the server 30 generates a second connection code, associates the second connection code with the first connection code, stores the second connection code, and then sends the second connection code to the second device 20, so that the second device 20 receives the second connection code returned from the server 30.

[0038] In step 203, a second connection code is displayed and a connection request sent by the first device via the local area network or the wide area network is received, the connection request being generated by the first device based on the first connection code or the second connection code.

[0039] After receiving the second connection code, the second device 20 displays the second connection code, so that the user inputs the second connection code into the first device 10, and after receiving the input second connection code, the first device 10 sends a connection request via a wide area network or a local area network, and the connection request is generated by the first device 10 based on the first connection code or the second connection code. Specifically, in one embodiment, after the second device 20 displays the second connection code, the user inputs the second connection code displayed on the second device 20 into the first device 10; the first device 10 analyzes the input connection code, and determines that the second connection code is a second connection code of a wide area network, and then obtains a first connection code associated with the second connection code from the server 30 based on the second connection code; and then generates a first connection request based on the first connection code and sends the first connection request to the second device 20 via the local area network; if the connection from the first device 10 to the second device 20 via the local area network fails, the first device 10 further generates a second connection request based on the second connection code, and sends the second connection request to the second device 20 via the wide area network, so as to connect with the second device 20 via the wide area network.

[0040] In step 204, in response to the connection request, a connection is made to the first device via a local area network or a wide area network.

[0041] As described above, after generating the first connection code, the second device uploads the first connection code to the server and sends an application request for the second connection code to the server; after receiving the second connection code returned by the server, the second device displays the second connection code; then, the user inputs the second connection code into the first device, and obtains the first connection code associated with the second connection code from the server, thereby connecting to the second device via a local area network or a wide area network; the second connection code can be compatible with the network environments of the local area network and the wide area network at the same time; the user only needs to input the second connection code into the first device during use; even in different network environments, the connection operations performed by the user on the first device are the same; the user does not need to learn different operations according to the network environment, which reduces the user's learning costs and operation costs.

[0042] As a further explanation, in this embodiment, the second connection code is a connection code that includes at least six characters.

[0043] In this embodiment, the second connection code and the first connection code are the same, and both of them are connection codes including 6 characters by default, so that they have a binary coding space of 30 bits, but the second connection code may be extended to 7 characters or more according to the actual situation. For example, if the IPv4 address of the first device 10 is special and does not belong to the class A private segment address, the class B private segment address, or the class C private segment address, that is, if the IP address is not in the range of 10.0.0.0 to 10.255.255.255, 172.16.0.0 to 172.31.255.255, or 192.168.0.0 to 192.168.255.255, but is a public IP address (such as 202.102.34.128, which is often used by overseas users), the above second connection code cannot be used with a combination of 6 digits + letters. At this time, the second connection code can be expanded to a combination of 8-digit numbers and letters, and the coding space of the second connection code can be expanded to 32 8 =2 40 That is, the second connection code has an encoding space of 40 binaries, which is larger than the second connection code consisting of 6 characters and can encode global IPv4 addresses.

[0044] Based on the above embodiment, the second connection code includes a type bit, a check bit and a random bit, the type bit is used to store the type of the local area network IP segment, the type of the local area network IP segment is associated with the bit length of the check bit, the check bit is used to store a data check result, and the data check result is not equal to the check result of at least one data of the random bit, and the random bit is used to store a random number.

[0045] In the first connection code, regardless of whether the type of the local area network IP segment is a class A private segment address, a class B private segment address, or a class C private segment address, the data of the check bit must be equal to the check result of the specific data, and the specific data is a part or all of the data of the remaining bits of the first connection code. If the check bit is not equal to the check result of the specific data, the 30-bit binary encoding space is not used, and therefore the 30-bit binary encoding space in which the check bit is not equal to the check result of the specific data may be used as the second connection code.

[0046] Specifically, the second connection code includes a type bit, a check bit, and a random bit, the type bit is used to store the type of the local area network IP segment, and the type of the local area network IP segment is associated with the bit length of the check bit, i.e., if the type of the local area network IP segment is a class A private segment address, the check bit is bit 27-26, if the type of the local area network IP segment is a class B private segment address, the check bit is bit 27-25, if the type of the local area network IP segment is a class C private segment address or a reserved extension segment, the check bit is bit 27-22. The random bit of the second connection code is used to store a random number randomly generated by the server 30. Specifically, if the second connection code is a class A private segment address, the random bit is bit25-0, i.e., the port and IP address information are filled with random numbers; if the second connection code is a class B private segment address, the random bit is bit24-0, i.e., the change bit, port and IP address information are filled with random numbers; if the second connection code is a class C private segment address, the random bit is bit21-0, i.e., the change bit, port and IP address information are filled with random numbers; if the second connection code is a reserved extended segment, the 30-bit binary coding space of the second connection code is shown in Table 5, and the random bit is bit21-0, i.e., the reserved bit is filled with random numbers.

[0047] [Table 5] As mentioned above, the 30-bit binary coding space of the second connection code has four situations, and in any situation, the check bit of the second connection code has a data check result that is not equal to the check result of at least one of the data of the random bits, so that the first connection code and the second connection code can be distinguished from each other. Then, when the first device receives the connection code, it can determine that the received connection code is the first connection code or the second connection code according to the data check result of the check bit of the first connection code. In addition, the coding method of the second connection code can also make the change range of the second connection code as large as possible, specifically, the following situations exist for different types of local area network IP segments:

[0048] Class A Private Segment Address: The random bit is multiplied by three types of verification failure cases according to the change range of the binary bit [0~25], resulting in 2 26 ×(2 2-1 )=201326492, which means there are approximately 200 million cases.

[0049] Class B Private Segment Address: The random bit is multiplied by 7 types of verification failure cases according to the change range of the binary bit [0~24], resulting in 2 25 ×(2 3-1 )=234881024, which means there are approximately 230 million cases.

[0050] Class C Private Segment Address: The random bit is multiplied by 63 types of verification failure cases according to the change range of the binary bit [0~21], resulting in 2 22 ×(2 6-1 )=264241152, which means there are approximately 260 million cases.

[0051] Reserved segment: Depending on the change range of binary bits [0-21], 63 different validation failure cases can be multiplied to 2 22 ×(2 6-1 )=264241152, which means there are approximately 260 million cases.

[0052] That is to say, the second connection code can be changed in a total of 960 million different ways. Even if a total of 1 million devices are brought online, this is only 1 / 1000 of the total, and can meet the actual usage needs.

[0053] As mentioned above, in the embodiment of the present application, the coding space of the first connection code, in which the check bit is not equal to the check result of specific data, is extended to the second connection code, so that in the process of the server generating the second connection code, the second connection code has a large change range and the uniqueness of the second connection code is ensured, thereby avoiding security problems caused by unintentional or malicious exhaustive listing. Secondly, the presentation form of the second connection code and the first connection code is unified and all are presented in the form of characters, and the second connection code and the first connection code only need to have at least six digits, which is simple for the user to input, easy for the user to operate, and improves the user experience.

[0054] As shown in Fig. 6, Fig. 6 is a flowchart of a device connection method applied to the first device 10 according to an embodiment of the present application. The method includes the following steps.

[0055] In step 301, a first connection code or a second connection code is received, the first connection code is used as at least one of an identification code and an address code of a local area network, and the second connection code is used as an identification code of a wide area network.

[0056] When the second device 20 displays the first connection code or the second connection code, the user inputs the first connection code or the second connection code on the second device 20 into the first device. Exemplarily, the first device 10 is equipped with a software application for device connection, and after the user launches the software application, the software interface of the software application prompts the user to input the connection code, for example, the first device 10 displays an input box on the screen for the user to input the connection code. When the second device 20 displays the second connection code, the user inputs the second connection code into the software interface of the first device 10, and when the second device 20 displays the first connection code, the user inputs the first connection code into the software interface of the first device 10.

[0057] In step 302, if a second connection code is received, a request is made to the server to receive a first connection code associated with the second connection code.

[0058] After receiving the connection code, the first device 10 first determines whether the connection code is a first connection code or a second connection code. Specifically, after receiving the connection code, the first device 10 first obtains the type bit of the connection code to determine the type of the local area network IP segment corresponding to the connection code, then checks the length of the check bit according to the association between the type of the local area network IP segment and the check bit length, thereby obtaining a check result from the check bit, and then determines whether the check result is equal to the check result of at least one remaining data, if yes (Yes), the connection code is the first connection code, if not (No), the connection code is the second connection code. For example, in one embodiment, the first device 10 first obtains bits 29-28 of the connection code, i.e., the type bits of the connection code, to determine the type of the local area network IP segment corresponding to the connection code, if bits 29-28 of the connection code are 00, the type of the local area network IP segment corresponding to the connection code is a class A private segment address, obtains bits 27-26 of the connection code, i.e., the check bits, to determine whether the data check result of the check bits is equal to the check result of at least one remaining data, if so, "Yes", the connection code is the first connection code, if not, "No", the connection code is the second connection code. The same applies to other cases, and the specific process is as shown in FIG. 7, and the description is omitted in this embodiment.

[0059] In this embodiment, when the first device 10 confirms that the received connection code is the second connection code, it accesses the server 30 and sends a request to the server 30 to receive the first connection code associated with the second connection code, and the server 30 queries the associated first connection code based on the second connection code after receiving the request, and sends the first connection code to the first device 10. Exemplarily, in one embodiment, the first device 10 sends a query request for information of the second device to the server 30 based on the second connection code after receiving the second connection code, and the server 30 queries the information of the second device based on the second connection code after receiving the request, thereby obtaining the first connection code associated with the second connection code, and sends the first connection code to the first device 10.

[0060] In step 303, a first connection request is sent to a second device via a local area network based on the first connection code.

[0061] After receiving the first connection code, the first device 10 analyzes the verification information and IP address information of the second device 20 from the first connection code, generates a first connection request based on the verification information and the IP address information, and sends the first connection request to the second device 20 via the local area network, thereby establishing a connection with the second device 20 via the local area network.

[0062] In step 304, if a first connection code is received and establishment of a connection corresponding to the first connection request fails, a request is made to the server to receive a second connection code associated with the first connection code.

[0063] When the user inputs a connection code into the first device 10, the first device 10 determines that the connection code is the first connection code, generates a first connection request based on the first connection code, and sends the first connection request to the second device 20 through the local area network, so as to establish a connection with the second device 20 through the local area network. If the connection between the first device 10 and the second device 20 through the local area network fails, the first device 10 further sends a request to the server 30 to receive a second connection code associated with the first connection code. The process of the first device 10 requesting the second connection code is similar to the process of requesting the first connection code, and the specific process can be referred to in step 303, and the description is omitted in this embodiment.

[0064] In step 305, after determining that the establishment of a connection corresponding to the first connection request has failed, a second connection request is sent to a second device via the wide area network based on the second connection code.

[0065] In step 304 or 305, after the first device 10 sends the first connection request to the second device 20 via the local area network, if the connection between the first device 10 and the second device 20 via the local area network fails, the first device 10, after confirming that the establishment of the connection corresponding to the first connection request has failed, further analyzes verification information from the second connection code, generates a second connection request based on the verification information, sends the second connection request to the second device 20 via the wide area network, and establishes a connection with the second device 20 via the wide area network.

[0066] For example, in the scene shown in FIG. 4, the second device 20 displays a screen projection creation button on the screen, and the user clicks the screen projection creation button to send a screen projection creation command to the second device 20; or the user uses a device such as a remote control to select the screen projection creation button and send a screen projection creation command to the second device 20. When the second device 20 detects that the screen projection creation button is clicked or selected, it starts to obtain its own device information and generates a first connection code C58JBS based on the device information. At the same time, the second device 20 sends an application request for a second connection code to the server 30. After receiving the request, the server 30 generates a second connection code DXD5AG, and associates and stores the first connection code C58JBS and the second connection code DXD5AG.

[0067] In one embodiment, as shown in FIG. 8, when the server 30 returns the second connection code DXD5AG to the second device 20, the second device 20 displays the second connection code DXD5AG on the screen; then, the user launches a software application for device connection on the first device 10, and inputs the connection code DXD5AG into the connection code input box of the software application; then, the software application of the second device 20 analyzes the connection code DXD5AG, determines the type of the connection code DXD5AG, and after determining that the DXD5AG is the second connection code, the second device 20 accesses the server 30 and requests the server 30 to receive the first connection code C58JBS associated with the second connection code DXD5AG; then, the server 30 sends the first connection code C58JBS to the first device 10; and the software application of the first device 10 generates a first connection request based on the first connection code C58JBS, and sends the first connection request to the second device 20 via the local area network. If the connection between the first device 10 and the second device 20 via the local area network fails, the first device 10 generates a second connection request based on the second connection code DXD5AG and sends the second connection request to the second device 20 via the wide area network, thereby being connected to the second device 20 via the wide area network.

[0068] In another embodiment, as shown in FIG. 9, if the server 30 does not return the second connection code DXD5AG to the second device 20, the second device 20 displays the first connection code C58JBS, and then the user launches a software application on the first device 10 and inputs the connection code C58JBS into the connection code input box of the software application, and then the software application of the second device 20 analyzes the connection code C58JBS and determines the type of the connection code C58JBS. After determining that C58JBS is the first connection code, the software application of the first device 10 generates a first connection request based on the first connection code C58JBS and sends the first connection request to the second device 20 via the local area network. If the connection between the first device 10 and the second device 20 via the local area network fails, the second device 20 accesses the server 30 and requests the server 30 to receive a second connection code DXD5AG associated with the first code C58JBS, and then the server 30 sends the second connection code DXD5AG to the first device 10, and the first device 10 generates a second connection request based on the second connection code DXD5AG and sends the second connection request to the second device 20 via the wide area network, thereby being connected to the second device 20 via the wide area network.

[0069] After the first device 10 and the second device 20 are connected via a wide area network or a local area network, screen projection can be performed between the first device 10 and the second device 20. For example, the first device 10 transmits audio data including video data of a screen currently displayed on a screen and audio data of a sound being played to the second device 20 via the wide area network or the local area network, and after receiving the video data and audio data, the second device 20 decodes the video data and audio data, displays a corresponding screen on a screen, and plays the corresponding sound.

[0070] As mentioned above, in the embodiment of the present application, after receiving the connection code input by the user, the first device first determines the type of the connection code, and if the connection code input by the user is the first connection code, it is connected to the second device through the local area network, and if the connection fails, it obtains the second connection code associated with the first connection code from the server, and then connects to the second device through the wide area network. If the connection code input by the user is the second connection code, it obtains the first connection code associated with the second connection code from the server, and then connects to the second device through the local area network, and if the connection fails, it is connected to the second device through the wide area network. In the embodiment of the present application, after receiving the first connection code or the second connection code, the first device may be connected to the server through the local area network or the wide area network, thereby simultaneously having compatibility with the network environment of the local area network or the wide area network. Then, when the first device cannot connect to the second device through the local area network, it may automatically switch to connect to the second device through the wide area network, which avoids the inability to connect when the first device cannot connect to the local area network, and greatly improves the connection success rate. In addition, considering the wide bandwidth, low latency, and no Internet traffic charges of the local area network, the first device will preferentially connect to the second device via the local area network regardless of whether it receives the first connection code or the second connection code, and if the connection via the local area network fails, it will switch to the wide area network for connection, so that the safety of information interaction can be improved and unnecessary traffic costs can be avoided.

[0071] In another embodiment, when the first device 10 and the second device 20 are only connected to a local area network and not connected to a wide area network, the connection process between the first device 10 and the second device 20 is shown in Figure 10. After the second device 20 generates the first connection code C58JBS of the local area network, it detects whether it is connected to a wide area network, if not, "No", the second device 20 displays the first connection code C58JBS on the screen. Next, the user launches a software application for device connection on the first device 10, and inputs the connection code C58JBS into the connection code input box of the software application; then, the software application of the second device 20 analyzes the connection code C58JBS, judges the type of the connection code C58JBS, and after determining that C58JBS is the first connection code, the software application of the first device 10 generates a first connection request according to the first connection code C58JBS and sends the first connection request to the second device 20 through the local area network; after the connection between the first device 10 and the second device 20 through the local area network is successful, the subsequent screen projection operation can be performed.

[0072] In one embodiment, the second connection code is associated with the service information.

[0073] The service information refers to information including service functions and service data. In this embodiment, the wide area network connection code is only used as a verification code and has no service attributes, so in one embodiment, the second device 20 can also upload the service information to the server 30, and the server 30 associates the service information with the second connection code, so that the first device 10 executes the corresponding service function after receiving the second connection code and successfully connects with the second device 20. In one embodiment, the second connection code can be associated with multiple pieces of service information, so that the first device 10 can realize different service functions after inputting the second connection code, thereby unifying all the expandable service functions by one second connection code.

[0074] Correspondingly, when it is determined that the second connection code and the first connection request are received or that the connection corresponding to the second connection request has been successfully established, the method further includes performing a service action corresponding to the service information.

[0075] In one embodiment, when the first device 10 receives the second connection code, if the connection from the first device 10 to the second device 20 via the local area network or wide area network is successful, the first device 10 is further used to execute a service action corresponding to the service information related to the second connection code. The service action refers to the operation and means for executing the service function. Exemplarily, in one embodiment, the second device 20 applies for the second connection code DXD5AG to the server 30, and at the same time, the video conferencing software is executed on the second device 20, and the video conferencing software refers to the software used to realize the connection between the devices and to transmit the screen captured by the camera and the sound recorded by the microphone on the device. If the room number of the video conference is 1234567890, the room number 1234567890 can be uploaded to the server 30 as service data to be used as the service information of the second connection code DXD5AG, and the server 30 associates the second connection code DXD5AG with the room number 1234567890. Then, when the user inputs the second connection code DXD5AG into the video conference sub-function interface of the video conference software of the first equipment 10, the second equipment 10 is connected to the first equipment 10 through the wide area network, and at the same time, the first equipment 10 accesses the server 30 and obtains the room number associated with the second connection code DXD5AG from the server 30, and the video conference software on the first equipment 10 may be directly integrated into the room for video conference. In one embodiment, in addition to video conferencing, service information of service functions such as screen dialogue or remote assistance may be associated with the second connection code, so that a user can also realize the corresponding screen dialogue function or remote assistance function after inputting the second connection code DXD5AG in another sub-function interface of the video conferencing software of the first device 10, where screen dialogue refers to the function that two devices connected to each other can control the screens displayed on each other's screens, and remote assistance refers to the function that one of the two devices connected to each other can control the other.

[0076] As described above, the embodiment of the present application associates the second connection code with service information, so that the first device can execute a service action associated with the service information after receiving the second connection code and successfully connecting with the first device; in this process, the user does not need to perform additional operations, and the user experience is improved while extending the functionality of the connection code.

[0077] As shown in FIG. 11, FIG. 11 is a schematic diagram of an equipment connection device according to an embodiment of the present application, the equipment connection device includes: a connection code generation module 401, a connection code display module 402 and a connection response module 403; The connection code generating module 401 is used to generate a first connection code according to device information, and send a request for a second connection code and the first connection code to the server, so that the server associates and stores the first connection code with the second connection code; the first connection code is used as at least one of a verification code and an address code of a local area network, and the second connection code is used as a verification code of a wide area network; The connection code display module 402 is used to display the first connection code or the second connection code and receive a connection request sent by the first device through the local area network or the wide area network, where the connection request is generated by the first device based on the first connection code or the second connection code; The connection response module 403 is used to connect to the first device over a local area network or a wide area network in response to a connection request.

[0078] Based on the above embodiment, the device further includes a connection code receiving module, which is used to generate a first connection code based on device information, send a second connection code application request and the first connection code to the server, and then receive the second connection code returned from the server.

[0079] Correspondingly, the connection code display module 402 is used to display the first connection code or the second connection code, specifically, used to display the second connection code.

[0080] Based on the above embodiment, the second connection code is a connection code that includes at least six characters.

[0081] Based on the above embodiment, the second connection code includes a type bit, a check bit and a random bit, the type bit is used to store the type of the local area network IP segment, the type of the local area network IP segment is associated with the bit length of the check bit, the check bit is used to store a data check result, and the data check result is not equal to the check result of at least one data of the random bit, and the random bit is used to store a random number.

[0082] As shown in FIG. 12, the device connection device according to the embodiment of the present application includes a connection code receiving module 404, a first connection code request module 405, a first connection request module 406, a second connection code request module 407, and a second connection request module 408; The connection code receiving module 404 is used for receiving a first connection code or a second connection code, the first connection code is used as at least one of a verification code and an address code of a local area network, and the second connection code is used as a verification code of a wide area network; The first connection code request module 405 is used to, when a second connection code is received, request the server to receive a first connection code associated with the second connection code; The first connection request module 406 is used to send a first connection request to a second device through a local area network based on the first connection code; The second connection code request module 407 is used to request the server to receive a second connection code associated with the first connection code when the first connection code is received and the establishment of the connection corresponding to the first connection request fails; The second connection request module 408 is used to send a second connection request to a second device via a wide area network based on the second connection code after determining that the establishment of a connection corresponding to the first connection request has failed.

[0083] The device connection device provided above may be used to implement the device connection method according to any of the above embodiments, and has corresponding functions and beneficial effects.

[0084] It should be noted that in the above embodiment of the device connection device, each unit and module included is only divided according to functional logic, but is not limited to the above division, as long as it can realize the corresponding function, and the specific names of each functional unit are only for easy mutual distinction, and are not intended to limit the scope of protection of this application.

[0085] FIG. 13 is a structural schematic diagram of a device connection device according to one embodiment of the present application. As shown in FIG. 13, the device connection device includes a processor 500, a memory 501, an input device 502, and an output device 503. The number of processors 500 in the device connection device may be one or more. One processor 500 is taken as an example in FIG. 13. The processor 500, memory 501, input device 502, and output device 503 of the device connection device may be connected via a bus, or may be connected in other manners. Connection via a bus is taken as an example in FIG. 13.

[0086] The memory 501, as a computer-readable storage medium, can be used to store software programs, computer-executable programs, and modules such as program instructions / modules (e.g., the connection code generating module 401, the connection code display module 402, and the connection response module 403 of the device connection device) corresponding to the device connection method in the embodiments of the present application. The processor 500 executes the software programs, instructions, and modules stored in the memory 501 to execute various functional applications and data processing of the device connection device, that is, to realize the above-mentioned device connection method.

[0087] The memory 501 may mainly include a program storage area and a data storage area, where the program storage area may store an operating system and an application program required for at least one function, and the data storage area may store data created in response to the use of the device-connected device. The memory 501 may also include a high-speed random access memory, and may further include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 501 may further include a memory provided remotely to the processor 500, and these remote memories may be connected to the device-connected device via a network. Examples of the network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0088] The input device 502 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the device connection device. The output device 503 may include a display device such as a display screen. The device connection device may further include a communication device for realizing communication with an external device (such as a camera).

[0089] The above-mentioned device connection devices include corresponding device connection devices and may be used to implement any device connection method, and have corresponding functions and beneficial effects.

[0090] Those skilled in the art can clearly understand that for convenience and concise description, the specific operating processes of the above-mentioned devices and equipment can refer to the corresponding processes in the embodiments of the method, and the description will be omitted here.

[0091] Additionally, embodiments of the present application further provide a storage medium including computer-executable instructions that, when executed by a computer processor, are used to perform relevant operations of the device connection methods provided in any of the embodiments and have corresponding functionality and beneficial effects.

[0092] Those skilled in the art should understand that the embodiments of the present application may be provided as a method, a system, or a computer program product.

[0093] Therefore, the present application may adopt an entirely hardware embodiment, an entirely software embodiment, or an embodiment that combines hardware and software. Moreover, the present application may adopt the form of a computer program product embodied in one or more computer usable storage media (including, but not limited to, magnetic disk memory, CD-ROM, optical memory, etc.) that contain computer usable program code. The present application is described with reference to flowcharts and / or block diagrams of the method, apparatus (system), and computer program product according to the embodiments of the present application. It should be understood that each flow and / or block of the flowcharts and / or block diagrams, and combinations of flows and / or blocks in the flowcharts and / or block diagrams, can be realized by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, whereby the instructions executed by the processor of the computer or other programmable data processing device generate an apparatus for implementing the function specified in one or more flows in the flowcharts and / or one or more blocks in the block diagrams. These computer program instructions may be stored in a computer readable memory that can direct a computer or other programmable data processing apparatus to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture that includes an instruction apparatus that implements the functions specified in one or more flows in the flowcharts and / or one or more blocks in the block diagrams.These computer program instructions may be loaded into a computer or other programmable data processing device and cause the computer or other programmable device to execute a series of operational steps to generate a computer-implemented process, whereby the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more flows in the flowcharts and / or one or more blocks in the block diagrams.

[0094] In one typical configuration, a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory. The memory can include non-persistent memory, random access memory (RAM), and / or non-volatile memory in a computer-readable medium, such as read-only memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.

[0095] Computer-readable media includes persistent and non-persistent, removable and non-removable media capable of storing information by any method or technology. Information may be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory, electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical memory, magnetic cassette, magnetic tape, magnetic disk memory or other magnetic memory, or any other non-transmission medium that may be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transitory media, such as modulated data signals and carrier waves.

[0096] It should also be understood that the terms "comprehensive," "including," or any variation thereof, are intended to cover a non-exclusive inclusion such that a process, method, product, or apparatus that includes a set of elements includes not only those elements, but also other elements not expressly set forth, or includes the inherent elements of such process, method, product, or apparatus. Absent further limitations, an element qualified by the phrase "including a..." does not exclude the presence of other identical elements in the process, method, product, or apparatus that includes the element.

[0097] It should be noted that the above are only preferred embodiments and the technical principles applied in the embodiments of the present application. Those skilled in the art will understand that the embodiments of the present application are not limited to the specific embodiments described herein, and various obvious modifications, adjustments and substitutions can be made without departing from the scope of protection of the embodiments of the present application. Therefore, although the embodiments of the present application are described in more detail in the above embodiments, the embodiments of the present application are not limited to only the above embodiments, and can include many other equivalent embodiments without departing from the spirit of the embodiments of the present application, and the scope of the embodiments of the present application is determined by the appended claims.

Claims

1. A device connection method, comprising: generating a first connection code based on device information, and sending an application request for the second connection code and the first connection code to a server, so that the server associates and stores the first connection code with the second connection code, the first connection code being used as at least one of a verification code and an address code of a local area network, and the second connection code being used as a verification code of a wide area network; displaying the first connection code or the second connection code and receiving a connection request sent by a first device over a local area network or a wide area network, the connection request being generated by the first device based on the first connection code or the second connection code; in response to the connection request, connecting to the first device via the local area network or the wide area network; A method for connecting devices including:

2. After the step of generating a first connection code based on the device information and sending a request for a second connection code and the first connection code to a server, receiving a second connection code returned from the server; Display the second connection code The device connection method according to claim 1 .

3. The second connection code is a connection code including at least six characters. The device connection method according to claim 1 .

4. The second connection code includes a type bit, a check bit and a random bit, the type bit is used to store a type of the local area network IP segment, the type of the local area network IP segment is associated with a bit length of the check bit, the check bit is used to store a data check result, and the data check result is not equal to a data check result of at least one of the random bits, and the random bit is used to store a random number. The device connection method according to claim 3.

5. A device connection method, comprising: receiving a first connection code or a second connection code, the first connection code being used as at least one of an identification code and an address code of a local area network, and the second connection code being used as an identification code of a wide area network; if the second connection code is received, requesting a server to transmit a first connection code associated with the second connection code; sending a first connection request to a second device over the local area network based on the first connection code; if the first connection code is received and establishment of a connection corresponding to the first connection request fails, requesting the server to send a second connection code associated with the first connection code; sending a second connection request to the second device over the wide area network based on the second connection code; A method for connecting devices including:

6. the second connection code is associated with service information; The method further includes performing a service action corresponding to the service information when the second connection code and the first connection request are received or when it is determined that a connection corresponding to the second connection request has been successfully established. The device connection method according to claim 5.

7. A device connection device, comprising: a connection code generation module, a connection code display module, and a connection response module; The connection code generating module is used to generate a first connection code according to device information, and to send an application request for the second connection code and the first connection code to the server, so that the server associates and stores the first connection code with the second connection code; the first connection code is used as at least one of a verification code and an address code of a local area network, and the second connection code is used as a verification code of a wide area network; the connection code display module is used for displaying the first connection code or the second connection code and receiving a connection request sent by a first device via a local area network or a wide area network, the connection request being generated by the first device based on the first connection code or the second connection code; The connection response module is used to connect to the first device via the local area network or the wide area network in response to the connection request. Equipment connection device.

8. A device connection device, comprising: a connection code receiving module, a first connection code request module, a first connection request module, a second connection code request module, and a second connection request module; The connection code receiving module is used for receiving a first connection code or a second connection code, the first connection code is used as at least one of a verification code and an address code of a local area network, and the second connection code is used as a verification code of a wide area network; the first connection code request module is used to request a server to transmit a first connection code associated with the second connection code when the second connection code is received; the first connection request module is used to send a first connection request to a second device via the local area network based on the first connection code; the second connection code request module is used to request the server to send a second connection code associated with the first connection code when the first connection code is received and establishment of a connection corresponding to the first connection request fails; The second connection request module is used to send a second connection request to the second device via the wide area network based on the second connection code after determining that the establishment of a connection corresponding to the first connection request has failed. Equipment connection device.

9. An interactive intelligent panel, comprising a processor and a memory, the memory is used to store a computer program and to transmit the computer program to the processor; The processor is used to execute the device connection method according to any one of claims 1 to 6 in response to instructions in the computer program. Interactive intelligent panel.

10. A storage medium storing computer executable instructions, the computer executable instructions being used to perform the device connection method according to any one of claims 1 to 6 when executed by a computer processor.

Citation Information

Patent Citations

  • Communication method and mobile phone

    JP2005192163A

  • Network system, apparatus and server

    JP2013196511A

  • Communication system, communication method, and display device

    JP2015179935A

  • Communication system, terminal, method, program, radio base station, communication relay method, and program

    JP2016005156A

  • Information processing device, information processing program, information processing system and information processing method

    JP2016170782A