Machine Connection Method, Device, Machine, and Storage Medium
The method and apparatus facilitate seamless device connections across local and wide area networks by generating and managing compatible connection codes, improving connection success rates and user experience.
Patent Information
- Application Number
- JP2024512069
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2022-04-22
- Filing Date
- 2023-03-28
- Publication Date
- 2025-07-30
- Estimated Expiration
- 2043-03-28
AI Technical Summary
Current wireless screen projection technologies face challenges in connecting devices across local and wide area networks, with low compatibility and success rates due to the limitations of connection codes, especially in environments with high security requirements.
A method and apparatus that generate and manage both local area network (LAN) and wide area network (WAN) connection codes, allowing devices to connect seamlessly by associating and storing these codes on a server, enabling connection requests through either network type based on the displayed code.
Enhances connection success rates and compatibility across different network environments by simplifying the user experience, reducing the need for multiple codes and operations, and ensuring secure connections.
Smart Images

Figure 0007714858000006 
Figure 0007714858000007 
Figure 0007714858000008
Abstract
Description
Technical Field
[0001] (Cross - reference to related applications) This application claims priority to a Chinese patent application with application number 202210430422.7 filed with the China National Intellectual Property Administration on April 22, 2022, and all of its content is incorporated herein by reference.
[0002] Embodiments of this application relate to the field of communications, and in particular, to a device connection method, apparatus, device, and storage medium.
Background Art
[0003] Currently, 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 performing wireless screen projection, it is necessary to input a connection code on the screen projection transmitting side to connect the screen projection transmitting side and the screen projection receiving side. The current connection code can only be used in scenarios where both the screen projection transmitting side and the screen projection receiving side are located within the same local area network (LAN). The connection code is used as at least one of a random verification code or an address code. However, when the screen projection transmitting side is only connected to a wide area network (WAN), or when the screen projection transmitting side cannot directly connect to the address of the screen projection receiving side, the screen projection transmitting side cannot be connected to the screen projection receiving side with the connection code. Also, in some environments with high information security, the connection code is not compatible with the environment and may even be unusable.
Summary of the Invention
[0004] Embodiments of this application provide a device connection method, apparatus, device, and storage medium that can improve the success rate of device connection when there is compatibility between a local area network and a wide area network, and solve the technical problems of low compatibility of the connection code and low success rate of device connection in the prior art.
[0005] In the first aspect, the device connection method according to the embodiments of the present application is generating a first connection code based on device information, and sending a 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 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 a first device via a local area network or a wide area network, where the connection request is generated by the first device based on the first connection code or the second connection code; responding to the connection request and connecting to the first device via the local area network or the wide area network.
[0006] In the second aspect, the device connection method according to the embodiments of the present application is receiving a first connection code or a 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; when the second connection code is received, requesting the server to receive the first connection code associated with the second connection code; sending a first connection request to a second device via the local area network based on the first connection code; when the first connection code is received and the establishment of the connection corresponding to the first connection request fails, requesting the server to receive the second connection code associated with the first connection code; After confirming that the establishment of the connection corresponding to the first connection request has failed, based on the second connection code, sending a second connection request to the second device via the wide area network.
[0007] In a third aspect, the device connection apparatus according to the embodiments of the present application includes a connection code generation module, a connection code display module, and a connection response module. The connection code generation module generates a first connection code based on device information, and is used to send a request for a second connection code and the first connection code to a server so that the server saves the first connection code and the second connection code in an associated manner. 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 displays the first connection code or the second connection code, and is used to receive a connection request sent by a first device via a local area network or a wide area network. The connection request is 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, the device connection apparatus according to the embodiments 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 to receive 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. When the second connection code is received, the first connection code request module is used to request the server to receive a first connection code associated with the second connection code. Based on the first connection code, the first connection request module is used to send a first connection request to a second device via the local area network. When the first connection code is received and the establishment of the connection corresponding to the first connection request fails, the second connection code request module is used to request the server to receive a second connection code associated with the first connection code. After confirming that the establishment of the 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.
[0009] In a fifth aspect, the device connection device according to the embodiment of the present application includes a processor and a memory. The memory stores a computer program and is used to transmit the computer program to the processor. The processor is used to execute the device connection method described in the first aspect or the second aspect according to the instructions in the computer program.
[0010] In a sixth aspect, a storage medium storing computer-executable instructions according to the embodiment of the present application is used to execute the device connection method described in the first aspect or the second aspect when the computer-executable instructions are executed by a computer processor.
[0011] As described above, in the embodiments of the present application, only one connection code is displayed on the second device, and the first device can be connected 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 there is no 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, reducing the learning cost and operation cost of the user. The embodiments of the present application can solve the technical problems that the compatibility of connection codes in the prior art is low and the success rate of device connection is low.
Brief Description of the Drawings
[0012]
Figure 1
Figure 2
Figure 3
Figure 4
Figure 5
Figure 6
Figure 7
Figure 8
Figure 9
Figure 10
Figure 11
Figure 12
Figure 13
Modes for Carrying Out the Invention
[0013] The following description and the accompanying drawings fully disclose specific embodiments of the present application so that those skilled in the art can implement them. The examples show only possible variations. Independent members and functions are optional unless explicitly required, and the order of operations may vary. Parts and features of some embodiments may be included in or replace parts and features of other embodiments. The scope of the embodiments of the present application includes the entire scope of the claims and all obtainable equivalents of the claims. In this specification, various embodiments may be individually or collectively referred to by the term "invention", but this is for convenience only. When multiple inventions are actually disclosed, there is no intention to automatically limit the scope of the present application to any single invention or inventive concept. In this specification, relational terms such as first and second are only for distinguishing one entity or operation from another entity and operation, and do not require or imply any actual relationship or order between these entities or operations. And by using terms such as "comprising", "including" or any other variation to attempt non-exclusive inclusion, a process, method or device connection device that includes a series of elements includes not only these elements but also other elements not explicitly shown. Each example in this specification is described step by step. Each example focuses on the differences from other examples, and the same and similar parts between each example may be referred to each other. For the structures, products, etc. disclosed in the examples, since they correspond to the methods disclosed in the examples, they are briefly described, and for related parts, reference may be made to the description of the method part.
[0014] As shown in FIG. 1, FIG. 1 is a schematic diagram of a first scene when devices according to embodiments of the present application are connected to each other. The first device 10 and the second device 20 can communicate with each other. Here, the first device 10 may be a device such as a mobile phone, a tablet computer, a desktop computer, a Windows, Mac or Chrome notebook, or other portable devices, and the second device 20 may 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, and the wireless communication network may be understood as any network that does not require connecting the first device 10 and the second device 20 with a network cable. For example, RF (Radio Frequency), optical communication or infrared communication, such as infrared interface (IrDA), diffuse infrared, wireless local area network (WLAN), worldwide interoperability for microwave access (WiMax), wireless local area network (WiFi), wireless local area network direct (WiFi Direct), Bluetooth (registered trademark), or any other wireless communication network well known to those skilled in the art such as optical network (LiFi). Of course, in other embodiments, the first device 10 and the second device 20 may be connected via a wired communication network.
[0015] After the first device 10 and the second device 20 are connected, they can perform information interaction. For example, the first device 10 can send the currently displayed screen data to the second device 20, and the currently displayed screen data can include one or more of audio data and video data. After receiving the screen data sent from the first device 10, the second device 20 processes the received screen data and displays it on its own page, and screen projection can be realized. Exemplarily, the first device 10 can encode the current screen data and send the encoded screen data to the second device 20. The second device 20 receives and decodes the encoded screen data to obtain the decoded screen data, and the second device 20 can display the decoded screen data. In the following, a specific description will be given by taking the example that the first device 10 and the second device 20 are connected via a wireless local area network.
[0016] Exemplarily, as shown in FIG. 2, FIG. 2 is a schematic diagram of a second scene when devices according to an embodiment of the present application are connected to each other. The first device 10 and the second device 20 are located within 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 via the local area network. When the first device 10 needs to be screen-projected onto 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 searches for the second device 20 within the local area network based on the local area network connection code and can perform information interaction such as the above screen projection process with the second device 20 via the local area network. However, when the first device 10 and the second device 20 are not located within the same local area network, information interaction cannot be performed using the above local area network connection code. For example, when the second device 20 is a mobile phone and the user uses the mobile phone via a mobile communication network, it cannot be connected to the first device 10 using the above local area network connection code.
[0017] Based on this, the embodiments of the present application provide a device connection method. As shown in FIG. 3, FIG. 3 is a flowchart 1 of a device connection method according to an embodiment of the present application. The method can be applied to the 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 the second connection code and the first connection code are sent to a server so that the server associates and stores the first connection code and 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.
[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 within the server 30 adopt different ports to provide different services respectively, and the port number of the server 30 is the number of different ports. A hotspot refers to the conversion of a device's GPRS, 3G, or 4G signal into a wireless local area network signal and broadcasting it so that other devices can use it. 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 a hotspot into multiple sub-networks that require different identity verifications. Each sub-network requires independent identity verification, and only users who pass the identity verification can enter the corresponding sub-network, preventing unauthorized users from entering the wireless local area network. The hotspot password refers to the password required to connect to the wireless local area network of the hotspot, and the hotspot can be connected only when 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 factory shipment and is used to identify each device in the network.
[0020] The first connection code refers to a connection code for connecting different devices within 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, or only as the address code of the local area network, or as both 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 contains the verification information of the device. For example, the first device 10 discovers the list of the second device 20 through the protocol of the local area network (such as the Simple Service Discovery Protocol or the Multicast DNS Protocol), then matches a specific receiving end from the list of the second device 20 with the connection code, indirectly discovers the second device 20, and connects to it. The address code refers to a connection code containing IP address information, and the address code contains the IP address information of the device. For example, information such as the IP address is mapped to the connection code according to a certain mapping relationship, and after the screen projection transmitting device inputs the connection code, it can directly discover and connect to the screen projection receiving device.
[0021] In one embodiment, the first connection code is, by default, a six-character connection code. The character refers to a unit or symbol such as a writing element, and includes letters, numbers, arithmetic symbols, punctuation marks and other symbols, as well as some function symbols. In this embodiment, the characters of the first connection code may be composed of any one or more of numbers or letters. Exemplarily, the first connection code may be CDF96Q or WS7U89, etc. In this embodiment, the specific content of the first connection code is not limited. Since the first connection code can be extended to seven or more characters, it can be understood that more IP address information, change bits, ports or other network information can be added. Specifically, in this embodiment, the process by which the second device 20 generates the first connection code based on its own device information is specifically, as shown in Table 1, to divide the IPv4 private address in the local area network into four segments according to the RFC 1918 standard. Dividing the IPv4 private address in the local area network into four segments is shown in Table 1.
[0022]
Table 1
[0023] After splitting the IPv4 private address, the first device 10 fills information such as the IP address, port, random bits, check bits, and type bits into 30 binary bits of the connection code. Specifically, when 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 bits, port, and IP address information in order from the most significant bit to the least significant bit, as shown in Table 2.
[0024] [Table 2] When the IP address of the second device 20 is a Class B private segment address, the binary bits of the connection code represent the type, check bits, port, and IP address information in order from the most significant bit to the least significant bit, as shown in Table 3.
[0025] [Table 3] When the IP address of the second device 20 is a Class C private segment address, the binary bits of the connection code represent the type, check bits, port, and IP address information in order from the most significant bit to the least significant bit, as shown in Table 4.
[0026] [Table 4] Here, the type bit represents the type of the 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 extended segment is 11. The check bit is a number obtained by combining the bits other than the check bit in the connection code, and it is the remainder of the number divided by 4. For the connection code input by the user, the check bit is calculated and compared with the check bit stored in the connection code, so as to confirm whether the user has made a wrong input. The change bit is randomly generated in the range of 0 to 15. Since the change bit can affect other parts, the change bit is replaced with any other four bits to avoid only one character in the six connection codes being changed. The port is used to save the subscript of the port array and may be obtained from the service port number in the device information. 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 in the device information.
[0027] After generating the first connection code, the second device 20 uploads the first connection code to the server 30. The server 30 refers to a device for providing computing services or application services to other devices in a network. At the same time, the second device 20 sends a request for the second connection code to the server 30. After receiving the request, the server 30 generates the second connection code and simultaneously saves the second connection code in association 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 local area networks or metropolitan area networks in different regions. Since different devices can access each other in the wide area network, if the uniqueness of each wide area network connection code is not ensured, errors 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 specific devices in the wide area network. In one embodiment, the server 30 can use, as the wide area network connection code, the connection code among the first connection codes that corresponds to the reserved extended segment of the IP address.
[0028] In step 102, display the first connection code or the second connection code, and receive the connection request sent by the first device via the local area network or the wide area network. The connection request is generated by the first device based on the first connection code or the second connection code.
[0029] After the second device 20 sends a request for applying for a second connection code to the server 30, it can display the first connection code or the second connection code. For example, the second device 20 can display the connection code at a random position on the screen, or can also set a specific area on the screen to display the connection code. When the second device 20 needs to display the first connection code, it needs to receive the first connection code replied by 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. 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. Here, 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 to be connected. Exemplarily, as shown in FIG. 4, FIG. 4 is a schematic diagram of an application scenario of a device connection method according to an embodiment of the present application, including the first device 10, the second device 20, and the 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. After receiving the first connection code or the second connection code, the second device 20 displays 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. If the connection code is the first connection code, the first device 10 analyzes the first connection code, 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 via the local area network based on the IP address information and the verification information.For example, analyze Bit29-28 of the first connection code as the type, and according to the type obtained by the analysis, determine how to analyze bit27-0 of the first connection code. When the type is 00, it indicates that the IP address type among the connection codes is a Class A private segment address. Analyze Bit27-26 of the first connection code as the check bit, analyze Bit25-24 of the first connection code as the port, and analyze Bit23-0 of the connection code as the IP address information. Analyze the connection codes of other IP address types by analogy in turn. Thereby, 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 the local area network. In another embodiment, after receiving the first connection code, the first device 10 obtains the second connection code associated with the first connection code from the server 30, analyzes the verification information from the second connection code, and based on the verification information, sends a connection request to the second device 20 via the wide area network. Or, in another embodiment, after the connection from the first device 10 to the second device 20 via the local area network fails, the first device 10 obtains the second connection code associated with the first connection code from the server 30, analyzes the verification information from the second connection code, and based on the verification information, sends a connection request to the second device 20 via the wide area network. Thereby, even 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 the wide area network.
[0030] When the second connection code is displayed on the second device 20, the user inputs the second connection code into the second device 10. In one embodiment, after receiving the second connection code, the first device 10 can directly send a connection request to the second device via a wide area network based on the second connection code, whereby the first device and the second device are connected via 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 based on the first connection code, sends a connection request to the second device 20 via a 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 sends a connection request to the first device 10 via the wide area network based on the second connection code. Thus, even when the user inputs the second connection code, the first device 10 may be connected to the second device 20 via the local area network.
[0031] In step 103, in response to the connection request, connect to the first device via a local area network or a wide area network.
[0032] After the second device 20 receives the connection request from the first device 10, when the connection request is sent via the local area network, the second device 20 establishes a connection with the first device 10 via the local area network, and when the connection request is sent via the 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, 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. If the second device receives the second connection code, the second connection code is displayed on the second device. Subsequently, when the user 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. Thus, the second device may be connected to the first device. In the embodiments of the present application, only one connection code is displayed on the second device, and the first device can be connected 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 there is no 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, reducing the learning cost and operation cost of the user.
[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, and this method includes the following steps.
[0035] In step 201, a first connection code is generated based on device information, and a request for the second connection code and the first connection code are sent to the server so that the server saves the first connection code and the second connection code in association. 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, the second connection code returned from the server is received.
[0037] In this embodiment, when the server 30 receives a request for application of a second connection code sent from the second device 20, the server 30 generates a second connection code, associates and stores the second connection code with the first connection code, and then sends the second connection code to the second device 20. As a result, the second device 20 receives the second connection code returned from the server 30.
[0038] In step 203, the 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. The connection request is 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. As a result, the user inputs the second connection code into the first device 10. 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. 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. After determining that the second connection code is the second connection code of the wide area network, the first device 10 obtains the first connection code associated with the second connection code from the server 30 based on the second connection code. Then, the first device 10 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 to establish a connection with the second device 20 via the wide area network.
[0040] In step 204, in response to the connection request, connect 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, sends a request for the second connection code to the server, and after receiving the second connection code returned from the server, the second device displays the second connection code. Then, when the user inputs the second connection code into the first device, the first connection code associated with the second connection code can be obtained from the server, and thereby, the second device can be connected via a local area network or a wide area network. The second connection code can simultaneously have compatibility with the network environments of the local area network and the wide area network. The user only needs to input the second connection code into the first device during use. In different network environments, the connection operation performed by the user on the first device is the same, and the user does not need to learn different operations according to the network environment, reducing the learning cost and operation cost of the user.
[0042] Furthermore, it should be noted that in this embodiment, the second connection code is a connection code including at least six characters.
[0043] In this embodiment, the second connection code and the first connection code are the same, and both are connection codes containing six characters by default, so they have a 30-bit binary encoding space. However, the second connection code may be extended to seven or more characters 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, class B private segment address, or class C private segment address, that is, the IP address is not within 10.0.0.0~10.255.255.255, 172.16.0.0~172.31.255.255, or 192.168.0.0~192.168.255.255, but is a public IP address (such as 202.102.34.128 often used by overseas users), the above second connection code cannot be used in the combination of six digits + characters. At this time, the second connection code can be extended to the combination of eight digits + characters. At this time, the encoding space of the second connection code is 32 8 =2 40 That is, the second connection code has a 40-bit binary encoding space. Compared with the second connection code consisting of six characters, the encoding space is expanded, and the global IPv4 address can be encoded.
[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 the data check result, and the data check result is not equal to the check result of at least one piece of data among the random bits. 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 specific data, and the specific data is 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 signed encoding space is not used, and thus, 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. That is, when the type of the local area network IP segment is a Class A private segment address, the check bit is bit27-26; when the type of the local area network IP segment is a Class B private segment address, the check bit is bit27-25; when the type of the local area network IP segment is a Class C private segment address or a reserved extended segment, the check bit is bit27-22. The random bit of the second connection code is used to store a random number randomly generated by the server 30. Specifically, when the second connection code is a Class A private segment address, the random bit is bit25-0, that is, the port and IP address information are filled with random numbers; when the second connection code is a Class B private segment address, the random bit is bit24-0, that is, the change bit, the port, and the IP address information are filled with random numbers; when the second connection code is a Class C private segment address, the random bit is bit21-0, that is, the change bit, the port, and the IP address information are filled with random numbers; when the second connection code is a reserved extended segment, the 30-bit binary encoding space of the second connection code is shown in Table 5, and the random bit is bit21-0, that is, the reserved bit is filled with random numbers.
[0047]
Table 5
[0048] Class A private segment address: For the random bits, when multiplying three types of verification failure cases according to the change range of binary bits [0~25], 2 26 ×(2 2-1 ) = 201326492, there are approximately 200 million cases.
[0049] Class B private segment address: For the random bits, when multiplying seven types of verification failure cases according to the change range of binary bits [0~24], 2 25 ×(2 3-1 ) = 234881024, there are approximately 230 million cases.
[0050] Class C private segment address: For the random bits, when multiplying sixty-three types of verification failure cases according to the change range of binary bits [0~21], 2 22 ×(2 6-1 ) = 264241152, there are approximately 260 million cases.
[0051] Reserved segment: For the change range of binary bits [0-21], when multiplying sixty-three types of verification failure cases, 2 22 ×(2 6-1 ) = 264241152, there are approximately 260 million cases.
[0052] That is, there are a total of 960 million types of the second connection code that can be changed. Even if a total of 1 million devices go online, it only accounts for 1 / 1000 of the whole, and it can meet the actual usage needs.
[0053] As described above, in the embodiment of the present application, among the encoding spaces of the first connection code, the encoding space where the check bit is not equal to the check result of specific data is expanded to the second connection code. In the process of the server generating the second connection code, the change range of the second connection code is large, and the uniqueness of the second connection code is ensured. Thereby, security problems caused by comprehensively listing unintentionally or maliciously are avoided. Next, the presentation forms of the second connection code and the first connection code are unified, and all are presented in the form of characters. The second connection code and the first connection code only need to be at least 6 digits. The input by the user is simple, the user can easily operate, and the user experience is improved.
[0054] As shown in FIG. 6, FIG. 6 is a flowchart of a device connection method applied to a first device 10 according to an embodiment of the present application. The method includes the following steps.
[0055] In step 301, the first connection code or the second connection code is received. The first connection code is used as at least one of the verification code and the address code of the local area network, and the second connection code is used as the verification code of the wide area network.
[0056] When the first connection code or the second connection code is displayed on the second device 20, the user inputs the first connection code or the second connection code on the second device 20 into the first device. Exemplarily, a software application for device connection is installed on the first device 10. After the user starts 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 connection code is displayed on the second device 20, the user inputs the second connection code into the software interface of the first device 10. When the first connection code is displayed on the second device 20, the user inputs the first connection code into the software interface of the first device 10.
[0057] In step 302, when the second connection code is received, request the server to receive the 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 the first connection code or the second connection code. Specifically, after receiving the connection code, the first device 10 first obtains the type bit of the connection code, determines the type of the local area network IP segment corresponding to the connection code, and then checks the length of the check bit according to the relationship between the type of the local area network IP segment and the check bit length, thereby obtaining the check result from the check bit, and then it can be determined whether the check result is equal to the check results of at least one of the remaining data. If so (Yes), the connection code is the first connection code; if not (No), the connection code is the second connection code. Exemplarily, in one embodiment, the first device 10 first obtains bits 29-28 of the connection code, that is, the type bit of the connection code, determines 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. Then it obtains bits 27-26 of the connection code, that is, the check bit, and determines whether the data check result of the check bit is equal to the check results of at least one of the 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 is true for other cases, and the specific process is as shown in FIG. 7, which 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 reception request for the first connection code associated with the second connection code to the server 30. After receiving the request, the server 30 queries the relevant first connection code based on the second connection code and sends the first connection code to the first device 10. Exemplarily, in one embodiment, after receiving the second connection code, the first device 10 sends a query request for the information of the second device to the server 30 based on the second connection code. After receiving the request, the server 30 queries the information of the second device based on the second connection code, thereby obtaining the first connection code associated with the second connection code and sending the first connection code to the first device 10.
[0060] In step 303, based on the first connection code, a first connection request is sent to the second device via the local area network.
[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 IP address information, sends the first connection request to the second device 20 via the local area network, and establishes a connection with the second device 20 via the local area network.
[0062] In step 304, if the first connection code is received and the establishment of the connection corresponding to the first connection request fails, the server is requested to receive the 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, sends the first connection request to the second device 20 via the local area network, and establishes a connection with 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 further sends a request to receive a second connection code associated with the first connection code to the server 30. The process by which the first device 10 requests the second connection code is the same as the process of requesting the first connection code. For the specific process, reference can be made to step 303, and the description is omitted in this embodiment.
[0064] In step 305, after confirming that the establishment of the connection corresponding to the first connection request has failed, a second connection request is sent to the second device via the wide area network based on the second connection code.
[0065] In step 304 or step 305, after the first device 10 sends a 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 confirms 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] Exemplarily, in the scene shown in FIG. 4, the second device 20 displays a screen projection creation button on the screen. The user clicks on 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 has been clicked or selected, it starts to obtain its own device information, generates a first connection code C58JBS based on the device information. At the same time, the second device 20 sends a request for applying for a second connection code to the server 30. After receiving the request, the server 30 generates a second connection code DXD5AG and saves it in association with the first connection code C58JBS.
[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. Next, the user launches the software application for device connection on the first device 10, enters the connection code DXD5AG in 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 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. Next, the server 30 sends the first connection code C58JBS to the first device 10. 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 connecting to the second device 20 via the wide area network.
[0068] In another embodiment, as shown in FIG. 9, when 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. Next, the user starts the software application on the first device 10, enters 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, determines 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 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 the second connection code DXD5AG associated with the first code C58JBS. Next, 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 connecting to the second device 20 via the wide area network.
[0069] After the first device 10 and the second device 20 are connected via the wide area network or the local area network, screen projection can be performed between the first device 10 and the second device 20. For example, the first device 10 sends, via the wide area network or the local area network, audio data including the video data of the screen currently displayed on the screen and the audio data of the played sound to the second device 20. After receiving the video data and the audio data, the second device 20 decrypts the video data and the audio data, displays the screen corresponding to the screen, and plays the corresponding sound.
[0070] As described 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. If the connection code input by the user is the first connection code, it is connected to the second device via a local area network. If the connection fails, the second connection code associated with the first connection code is obtained from the server, and it is connected to the second device via a wide area network. If the connection code input by the user is the second connection code, the first connection code associated with the second connection code is obtained from the server, and it is first connected to the second device via a local area network. If the connection fails, it is connected to the second device via a 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 via a local area network or a wide area network, thereby being able to simultaneously have compatibility with the network environment of the local area network or the wide area network. Next, if the first device cannot be connected to the second device via the local area network, it may be automatically switched to be connected to the second device via the wide area network, so that it is avoided that the connection cannot be made when the first device cannot be connected to the local area network, and the connection success rate is greatly improved. Also, considering that the local area network has a wide bandwidth, low latency, and no Internet traffic charges, the first device is preferentially connected to the second device via the local area network regardless of whether it has received the first connection code or the second connection code. If the connection via the local area network fails, it is switched to the wide area network for connection, so that the security 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 FIG. 10. After generating the first connection code C58JBS of the local area network, the second device 20 detects whether it is connected to the wide area network. If not, the second device 20 displays the first connection code C58JBS on the screen. Next, the user starts the software application for device connection on the first device 10, enters the connection code C58JBS in the connection code input box of the software application, and then the software application of the second device 20 analyzes the connection code C58JBS, determines 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 via the local area network. After the connection between the first device 10 and the second device 20 via the local area network is successful, subsequent screen projection operations can be performed.
[0072] In one embodiment, the second connection code is associated with service information.
[0073] Service information refers to information including service functions and service data. In this embodiment, since the wide area network connection code is used only as a verification code and has no service attributes, in one embodiment, the second device 20 can also upload the service information to the server 30. Then, after the first device receives the second connection code and the connection with the second device 20 is successful, the server 30 associates the service information with the second connection code so as to execute the corresponding service function. In one embodiment, the second connection code can be associated with a plurality of service information. Thereby, after the first device 10 inputs the second connection code, different service functions can be realized, and thus all expandable service functions can be unified by one second connection code.
[0074] Correspondingly, when the second connection code and the first connection request are received, or when it is confirmed that the establishment of the connection corresponding to the second connection request is successful, it further includes executing 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 service action corresponding to the service information related to the second connection code. The service service action refers to the operations 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, video conferencing software is executed on the second device 20. The video conferencing software is used to realize the connection between devices and is used to transmit the screen captured by the camera on the device and the sound recorded by the microphone. If the room number of the video conference is 1234567890, the room number 1234567890 can be uploaded to the server 30 as service data and used as the service information of the second connection code DXD5AG. 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 conferencing software of the first device 10, the second device 10 is connected to the first device 10 via the wide area network. At the same time, the first device 10 accesses the server 30 and obtains the room number associated with the second connection code DXD5AG from the server 30. The video conferencing software on the first device 10 may be directly incorporated into the room for the video conference. In one embodiment, in addition to the video conference, the service information of service functions such as screen interaction or remote assistance may be associated with the second connection code. Thereby, after the user inputs the second connection code DXD5AG in other sub-function interfaces of the video conferencing software of the first device 10, the corresponding screen interaction function or remote assistance function can also be realized. Screen interaction refers to the function that two connected devices can control the screens displayed on each other's screens. Remote assistance refers to the function that one of two connected devices can control the other.
[0076] As described above, in the embodiment of the present application, by associating the second connection code with service information, after the first device receives the second connection code and successfully connects to the first device, it can execute the service action associated with the service information. In this process, the user does not need to perform additional operations, and while expanding the function of the connection code, the user experience is also improved.
[0077] As shown in FIG. 11, FIG. 11 is a schematic diagram of a device connection apparatus according to an embodiment of the present application. The device connection apparatus includes a connection code generation module 401, a connection code display module 402, and a connection response module 403. The connection code generation module 401 generates a first connection code based on device information and is used to send a 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 402 displays the first connection code or the second connection code and is used to receive a connection request sent by the first device via a local area network or a wide area network. 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 via a local area network or a wide area network in response to the connection request.
[0078] Based on the above embodiment, it further includes a connection code receiving module. The connection code receiving module generates a first connection code based on device information and is used to receive the second connection code returned from the server after sending a request for the second connection code and the first connection code to the server.
[0079] Correspondingly, the connection code display module 402 is used to display the first connection code or the second connection code, specifically, it is 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 the data check result, and the data check result is not equal to the check result of at least one piece of data among the random bits. The random bit is used to store a random number.
[0082] As shown in FIG. 12, FIG. 12 shows that the device connection apparatus 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 to receive the first connection code or the second connection code. The first connection code is used as at least one of the verification code and the address code of the local area network. The second connection code is used as the verification code of the wide area network. The first connection code request module 405 is used to request the server to receive the first connection code associated with the second connection code when the second connection code is received. The first connection request module 406 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 407 is used to request the server to receive the 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 the second device via a wide area network based on the second connection code after confirming that the establishment of the connection corresponding to the first connection request has failed.
[0083] The device connection apparatus provided above may be used to execute 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 embodiments of the above device connection apparatus, each unit and module included are only divided according to functional logic, but are not limited to the above division, and any component that can realize the corresponding function is acceptable. Also, the specific names of each functional unit are only for easy mutual distinction and do not limit the protection scope of this application.
[0085] FIG. 13 is a schematic structural diagram of a device connection device according to an 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 of the device connection device may be one or more. In FIG. 13, one processor 500 is taken as an example. The processor 500, the memory 501, the input device 502, and the output device 503 of the device connection device may be connected via a bus or in other ways. In FIG. 13, the connection via a bus is taken as an example.
[0086] Memory 501 can be used as a computer-readable storage medium to store software programs, computer-executable programs, and program instructions / modules corresponding to the device connection method in the embodiments of the present application (for example, the connection code generation module 401, the connection code display module 402, and the connection response module 403 of the device connection apparatus). 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 implement the above device connection method.
[0087] Memory 501 can mainly include a program storage area and a data storage area. Here, the program storage area may store an operating system and application programs required for at least one function, and the data storage area may store data created according to the use of the device connection device. Further, memory 501 can include a high-speed random access memory and can 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 devices. In some embodiments, memory 501 can further include a memory provided remotely from processor 500, and these remote memories may be connected to the device connection device via a network. Examples of the above 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 numerical or character information and generate key signal inputs related to user settings and function controls of the device connection device. The output device 503 can include a display device such as a display screen. Further, the device connection device can further include a communication device for realizing communication with an external device (such as a camera).
[0089] The above-mentioned device connection device includes a corresponding device connection apparatus, may be used to execute any device connection method, and has corresponding functions and beneficial effects.
[0090] Those skilled in the art can clearly understand that, for the sake of convenience and brevity of description, regarding the specific operation processes of the above-mentioned devices and apparatuses, they can refer to the corresponding processes in the embodiments of the method, and the description here is omitted.
[0091] In addition, the embodiments of the present application further provide a storage medium including computer-executable instructions, and when the computer-executable instructions are executed by a computer processor, they are used to execute related operations among the device connection methods provided in any of the embodiments, and have corresponding functions and beneficial effects.
[0092] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, a system, or a computer program product.
[0093] Therefore, this application can adopt a complete hardware embodiment, a complete software embodiment, or an embodiment combining hardware and software. Moreover, this application can adopt the form of a computer program product implemented on one or more computer-readable storage media (including but not limited to magnetic disk memory, CD-ROM, optical memory, etc.) containing computer-usable program code. This application will be described with reference to the flowcharts and / or block diagrams of the method, apparatus (system), and computer program product according to the embodiments of this application. It should be understood that the computer program instructions can implement each flow and / or block in the flowchart and / or block diagram, and the combinations of flows and / or blocks in the flowchart and / or block diagram. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to generate a machine, whereby one or more flows in the flowchart and / or one or more blocks in the block diagram can be realized by the instructions executed by the processor of the computer or other programmable data processing devices. These computer program instructions may be stored in a computer-readable memory that can guide the computer or other programmable data processing devices to operate in a specific manner, thereby generating a manufactured product including an instruction device by the instructions stored in the computer-readable memory, and the instruction device realizes the functions specified in one or more flows in the flowchart and / or one or more blocks in the block diagram.These computer program instructions may be loaded onto a computer or other programmable data processing apparatus, causing the computer or other programmable apparatus to perform a series of operational steps to generate a computer-implemented process, thereby providing steps for realizing the functions specified in one flow or a plurality of flows in a flowchart and / or one block or a plurality of blocks in a block diagram when executed on the computer or other programmable apparatus.
[0094] In one typical configuration, a computing device includes one or more processors (CPUs), an input / output interface, a network interface, and a memory. The memory can include forms such as non-persistent memory in a computer-readable medium, random access memory (RAM), and / or non-volatile memory, for example, read-only memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
[0095] A computer-readable medium includes permanent and non-permanent, removable and non-removable media that can store information by any method or technology. The information may be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include 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 technologies, read-only disc read-only memory (CD-ROM), digital versatile disc (DVD), or other optical memory, magnetic cassettes, magnetic tape, magnetic disk memory, or other magnetic memory, or any other non-transmission media, but are not limited thereto. As defined herein, a computer-readable medium does not include transitory media such as modulated data signals and carrier waves.
[0096] Also, it should be noted that the term "comprising", "including" or any variation thereof is intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that includes a list of elements does not include only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element limited by the phrase "comprising one..." does not exclude the presence of further identical elements in the process, method, article, or apparatus that includes the element.
[0097] It should be noted that the above is only the preferred embodiments of the examples of this application and the applicable technical principles. Those skilled in the art will understand that the examples of this application are not limited to the specific examples described in this specification, and various obvious changes, readjustments and substitutions can be made without departing from the protection scope of the examples of this application. Therefore, although the above examples are used to explain the examples of this application in more detail, the examples of this application are not limited to the above examples only, and can include many other equivalent examples without departing from the spirit of the examples of this application. The scope of the examples of this application is determined by the appended claims.
Claims
1. A device connection method executed by a second device, comprising: generating a first connection code based on device information, and sending a 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, 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, receiving a first connection request sent by a first device via a local area network, or displaying the second connection code returned from the server as a result of the request, and receiving a second connection request sent by the first device via a wide area network, wherein the first connection request is generated by the first device based on the displayed first connection code, and the second connection request is generated by the first device based on the displayed second connection code; responding to the first connection request by connecting to the first device via the local area network, or responding to the second connection request by connecting to the first device via the wide area network; A device connection method comprising the above steps.
2. After the step of generating a first connection code based on device information and sending a request for the second connection code and the first connection code to the server, further comprising the step of receiving the second connection code returned from the server, and displaying 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 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 piece of data among the random bits. The random bit is used to store a random number. The device connection method according to claim 3.
5. A device connection method executed by a first device, comprising: receiving a first connection code or a second connection code input by a user, 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; when the second connection code is received, requesting the server to send a first connection code associated with the second connection code, and based on the first connection code sent from the server as a result of the request, sending a first connection request to a second device via the local area network. When the establishment of the connection corresponding to the first connection request fails, sending a second connection request to the second device via the wide area network based on the received second connection code; when the first connection code is received, sending a third connection request to a second device via the local area network based on the received first connection code. When the establishment of the connection corresponding to the third connection request fails, requesting the server to send a second connection code associated with the first connection code, and based on the second connection code sent from the server as a result of the request, sending a fourth connection request to the second device via the wide area network; A device connection method including the above steps.
6. The second connection code is associated with service information. When the first device has received the second connection code and it is confirmed that the establishment of the connection corresponding to the first connection request, the second connection request, the third connection request, or the fourth connection request has been successful, the method further includes the step of executing a service action corresponding to the service information. The device connection method according to claim 5.
7. A device connection apparatus, including a connection code generation module, a connection code display module, and a connection response module. The connection code generation module generates a first connection code based on device information and is used to send a 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 displays the first connection code and receives a first connection request sent by a first device via a local area network, or displays the second connection code returned from the server as a result of the request and is used to receive a second connection request sent by the first device via a wide area network. The first connection request is generated by the first device based on the displayed first connection code, and the second connection request is generated by the first device based on the displayed second connection code. The connection response module is used to connect to the first device via the local area network in response to the first connection request, or to connect to the first device via the wide area network in response to the second connection request. Device connection apparatus.
8. A device connection apparatus, including a connection code reception 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 to receive the first connection code or the second connection code input by the user. The first connection code is used as at least one of the verification code and the address code of the local area network. The second connection code is used as the verification code of the wide area network. When the second connection code is received, the first connection code request module is used to request the server to send the first connection code associated with the second connection code. The first connection request module is used to send a first connection request to the second device via the local area network based on the first connection code sent from the server as a result of the request. 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 received second connection code when the establishment of the connection corresponding to the first connection request fails. When the first connection code is received, the first connection request module is used to send a third connection request to the second device via the local area network based on the received first connection code. The second connection code request module is used to request the server to send the second connection code associated with the first connection code when the establishment of the connection corresponding to the third connection request fails. The second connection request module is used to send a fourth connection request to the second device via the wide area network based on the second connection code sent from the server as a result of the request. Device connection device.
9. An interactive intelligent panel, including a processor and a memory, the memory stores a computer program and is used 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 the instructions in the computer program. Interactive intelligent panel.
10. A storage medium storing computer-executable instructions, wherein the computer-executable instructions are used to execute 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