CN109861796B - Communication connection method, client, cloud and readable storage medium - Google Patents

Communication connection method, client, cloud and readable storage medium Download PDF

Info

Publication number
CN109861796B
CN109861796B CN201910163093.2A CN201910163093A CN109861796B CN 109861796 B CN109861796 B CN 109861796B CN 201910163093 A CN201910163093 A CN 201910163093A CN 109861796 B CN109861796 B CN 109861796B
Authority
CN
China
Prior art keywords
client
cloud
communication connection
identifier
check code
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910163093.2A
Other languages
Chinese (zh)
Other versions
CN109861796A (en
Inventor
王侠
曹选明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sengled Co Ltd
Original Assignee
Sengled Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sengled Co Ltd filed Critical Sengled Co Ltd
Priority to CN201910163093.2A priority Critical patent/CN109861796B/en
Publication of CN109861796A publication Critical patent/CN109861796A/en
Application granted granted Critical
Publication of CN109861796B publication Critical patent/CN109861796B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

According to the communication connection method, the client, the cloud and the readable storage medium, the configuration information sent by the terminal is received through the client; when the configuration information comprises a compatible identifier, the client sends a connection request to a cloud end, wherein the connection request comprises an unordered client identifier and the compatible identifier; the client feeds back a corresponding check code to the cloud after receiving a check code request returned by the cloud, so that the cloud sends an indication for indicating that the communication connection is successful to the client after completing the check on the client according to the check code and completing the communication connection with the client according to the unordered client identifier, the cloud can establish the connection with the client by using the unordered client identifier, the compatibility of the cloud with clients with different types of identifiers is realized, and the problem that the communication connection is urgently required to be solved due to the fact that the normal operation of the communication connection is ensured is solved.

Description

Communication connection method, client, cloud and readable storage medium
Technical Field
The present invention relates to computer technologies, and in particular, to a communication connection method, a client, a cloud, and a readable storage medium.
Background
The terminal-based APP and the cloud-based interactive connection are generally achieved through a client erected between the terminal-based APP and the cloud-based interactive connection.
Generally, the cloud establishes an identifier index through the identifier by obtaining the identifier of the client, and establishes a communication connection with the client through the identifier index, and the APP application of the terminal can interact with the client and the cloud.
In the prior art, the identification index is implemented based on the MAC address identification of the client. However, as the identification technology is upgraded, the unordered client identification gradually replaces the MAC address identification of the client to become the basis for establishing the identification index.
However, with the upgrade of the client identification technology, how to enable the cloud to establish connection with the client by using the unordered client identification to realize the compatibility of the cloud with clients with different types of identifications becomes a problem to be urgently solved for ensuring the normal operation of communication connection.
Disclosure of Invention
In view of the above-mentioned problems, the present invention provides a communication connection method, a client, a cloud and a readable storage medium.
In one aspect, the present invention provides a communication connection method, including:
a client receives configuration information sent by a terminal;
when the configuration information comprises a compatible identifier, the client sends a connection request to a cloud end, wherein the connection request comprises an unordered client identifier and the compatible identifier;
and the client feeds back a corresponding check code to the cloud after receiving a check code request returned by the cloud, so that the cloud sends an indication for indicating that the communication connection is successful to the client after completing the check on the client according to the check code and completing the communication connection with the client according to the unordered client identification.
Optionally, when the client fails to feed back the corresponding check code to the cloud after receiving the check code request returned by the cloud, the client receives an indication indicating that the communication connection fails from the cloud.
Optionally, the communication method further includes:
when the configuration information does not comprise a compatible identifier, the client sends a connection request comprising a client MAC address identifier to a cloud end so that the cloud end completes communication connection with the client according to the client MAC address;
receiving an indication from the cloud indicating that the communication connection was successful.
Optionally, before the client receives the configuration information sent by the terminal, the method further includes:
and sending the client attribute of the client to the terminal according to the indication of the terminal so that the terminal can generate and send the configuration information according to the indication of the client.
Optionally, the unordered client identifier is generated by the client according to a client MAC address and a random character string.
Optionally, the communication method further includes:
obtaining an MAC address string according to the client MAC address, wherein the MAC address string comprises a plurality of client MAC addresses which are connected end to end;
processing each character in the MAC address string by using a random algorithm to generate a random character string;
determining characters to be replaced in the random character string;
and replacing the characters to be replaced by using the characters in the MAC address identifier to obtain the unordered client identifier.
In another aspect, the present invention provides a communication connection method, including:
the cloud receives a connection request sent by a client;
under the condition that the connection request comprises a compatible identifier and an unordered client identifier, when the cloud end determines that a check code corresponding to the unordered client identifier is prestored, the cloud end sends a check code request to the client end;
and after the cloud end completes the verification of the client end according to the received check code fed back by the client end and completes the communication connection with the client end according to the unordered client end identification, the cloud end sends an indication for indicating the success of the communication connection to the client end.
Optionally, when the cloud determines that the check code corresponding to the unordered client identifier is not pre-stored, the cloud generates the check code of the unordered client identifier to be stored, and sends the check code to the client;
and the cloud end completes communication connection with the client end according to the unordered client end identification, and sends an indication for indicating successful communication connection to the client end.
Optionally, when the check code fed back by the client is not received within a preset time after the cloud sends the check code request to the client, the cloud sends an indication indicating that the communication connection fails to the client.
Optionally, when the connection request only includes the MAC address, the cloud completes communication connection with the client according to the client MAC address, and sends an indication indicating that the communication connection is successful to the client.
In yet another aspect, the present invention provides a client comprising
The first communication unit is used for receiving the configuration information sent by the terminal;
the first processing unit is used for generating a connection request comprising an unordered client identifier and a compatible identifier when the configuration information comprises the compatible identifier, so that the first communication unit sends the connection request to a cloud end;
the first communication unit is further configured to receive a check code request returned by the cloud, so that the first processing unit determines a corresponding check code according to the check code request; the first communication unit is further configured to feed back the check code to the cloud, and receive an indication sent by the cloud and used for indicating that the communication connection is successful, where the indication is sent by the cloud after the cloud completes the check on the client according to the check code and completes the communication connection with the client according to the unordered client identifier.
In another aspect, the present invention provides a cloud, including:
the second communication unit is used for receiving a connection request sent by the client;
the second processing unit is configured to obtain a check code request when determining the connection request sent by the receiving client and determining that a check code corresponding to the unordered client identifier is pre-stored, so that the second communication unit sends the check code request to the cloud;
the second communication unit is further configured to receive a check code fed back by the client, so that the second processing unit completes the check on the client according to the check code and completes the communication connection with the client according to the unordered client identifier; and is further configured to send an indication to the client indicating that the communication connection is successful.
In yet another aspect, the present invention provides a client, including: a memory, a processor, and a computer program;
wherein the computer program is stored in the memory and configured to be executed by the processor to implement the method of any of the preceding claims.
In another aspect, a cloud, comprising: a memory, a processor, and a computer program;
wherein the computer program is stored in the memory and configured to be executed by the processor to implement the method of any of the preceding claims.
In a final aspect, the invention provides a readable storage medium, characterized in that a computer program is stored thereon, which computer program is processed to be executed to implement the method as described in any of the previous items.
According to the communication connection method, the client, the cloud and the readable storage medium, the configuration information sent by the terminal is received through the client; when the configuration information comprises a compatible identifier, the client sends a connection request to a cloud end, wherein the connection request comprises an unordered client identifier and the compatible identifier; the client feeds back a corresponding check code to the cloud after receiving a check code request returned by the cloud, so that the cloud sends an indication for indicating that the communication connection is successful to the client after completing the check on the client according to the check code and completing the communication connection with the client according to the unordered client identifier, the cloud can establish the connection with the client by using the unordered client identifier, the compatibility of the cloud with clients with different types of identifiers is realized, and the problem that the communication connection is urgently required to be solved due to the fact that the normal operation of the communication connection is ensured is solved.
Drawings
FIG. 1 is a schematic diagram of a network architecture on which the present invention is based;
fig. 2 is a flowchart illustrating a communication connection method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram illustrating a process of generating an unordered client identifier according to the present invention;
fig. 4 is a flowchart illustrating a communication connection method according to a second embodiment of the present invention;
fig. 5 is a flowchart illustrating a communication connection method according to a third embodiment of the present invention;
fig. 6 is a schematic structural diagram of a client according to a fourth embodiment of the present invention;
fig. 7 is a schematic diagram of a hardware structure of a client according to a fifth embodiment of the present invention;
fig. 8 is a schematic structural diagram of a cloud according to a sixth embodiment of the present invention;
fig. 9 is a schematic diagram of a hardware structure of a cloud according to a seventh embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention.
The terminal-based APP and the cloud-based interactive connection are generally achieved through a client erected between the terminal-based APP and the cloud-based interactive connection.
Generally, the cloud establishes an identifier index through the identifier by obtaining the identifier of the client, and establishes a communication connection with the client through the identifier index, and the APP application of the terminal can interact with the client and the cloud.
In the prior art, the identification index is implemented based on the MAC address identification of the client. However, as the identification technology is upgraded, the unordered client identification gradually replaces the MAC address identification of the client to become the basis for establishing the identification index.
However, with the upgrade of the client identification technology, how to enable the cloud to establish connection with the client by using the unordered client identification to realize the compatibility of the cloud with clients with different types of identifications becomes a problem to be urgently solved for ensuring the normal operation of communication connection.
In order to solve the above problems, the present invention provides a communication connection method, a client, a cloud, and a readable storage medium.
Fig. 1 is a schematic diagram of a network architecture based on the present invention, as shown in fig. 1, the network architecture based on the present invention may include a cloud 1, a client 2, and an APP based on a terminal 3. Specifically, the cloud 1 is a server or a server cluster installed on the network side, and can communicate with the client 2 through a network connection. The client 2 may specifically be a hardware device such as a router or a communication liaison device erected locally, and on the basis of obtaining communication with the cloud 1 through network connection, the client may also perform data interaction with the APP on the terminal 3 through an internal local area network, so as to provide a communication bridge for interaction between the APP of the terminal 3 and the cloud 1. The terminal 3 may be a smart phone, a tablet computer, a desktop computer, or other devices, and may be loaded with APP applications to provide corresponding application functions for users.
Fig. 2 is a schematic flowchart of a communication connection method according to an embodiment of the present invention, and as shown in fig. 2, the communication connection method includes:
step 101, the client receives configuration information sent by the terminal.
Step 102, when the configuration information includes a compatible identifier, the client sends a connection request to a cloud, and the connection request includes an unordered client identifier and the compatible identifier.
And 103, the client feeds back a corresponding check code to the cloud after receiving a check code request returned by the cloud, so that the cloud sends an indication for indicating that the communication connection is successful to the client after completing the check on the client according to the check code and completing the communication connection with the client according to the unordered client identifier.
It should be noted that the execution subject of the communication connection method provided by the present invention may specifically be the client shown in fig. 1.
Firstly, when the APP of the terminal needs to interact with the cloud, the client sends the client attribute of the client to the terminal according to the indication of the terminal, and receives the configuration information sent by the terminal. Specifically, the client attribute is used to indicate an identifier type of the client, that is, whether the client performs identification by using a MAC address identifier or an unordered client identifier. After the client attribute received by the terminal, generating corresponding configuration information according to the client attribute, and sending the configuration information to the client; when the client attribute is identified by adopting an unordered client identification mode, the terminal adds a compatible identification in the configuration information for the client to receive and process, and when the client attribute is identified by adopting an MAC address identification mode, the terminal does not add the compatible identification in the configuration information for the client to receive and process.
Subsequently, after receiving the configuration information sent by the terminal, the client determines whether the configuration information includes the compatible identifier, and the client executes a corresponding connection processing mode according to whether the configuration information includes the compatible identifier.
Specifically, when the configuration information includes a compatible identifier, the client sends a connection request including the unordered client identifier and the compatible identifier to the cloud. And then, the cloud terminal generates a check code request according to the compatible identifier and returns the check code request to the client terminal. And finally, the client feeds back a corresponding check code to the cloud according to the check code request, so that the cloud sends an indication for indicating that the communication connection is successful to the client after completing the check on the client according to the check code and completing the communication connection with the client according to the unordered client identifier.
When the configuration information does not comprise a compatible identifier, the client sends a connection request comprising a client MAC address identifier to a cloud so that the cloud completes communication connection with the client according to the client MAC address; receiving an indication from the cloud indicating that the communication connection was successful.
In the communication connection method provided by this embodiment, configuration information sent by a terminal is received through a client; when the configuration information comprises a compatible identifier, the client sends a connection request to a cloud end, wherein the connection request comprises an unordered client identifier and the compatible identifier; the client feeds back a corresponding check code to the cloud after receiving a check code request returned by the cloud, so that the cloud sends an indication for indicating that the communication connection is successful to the client after completing the check on the client according to the check code and completing the communication connection with the client according to the unordered client identifier, the cloud can establish the connection with the client by using the unordered client identifier, the compatibility of the cloud with clients with different types of identifiers is realized, and the problem that the communication connection is urgently required to be solved due to the fact that the normal operation of the communication connection is ensured is solved.
In other alternative embodiments, in order to further improve the security of the communication connection of the present application, the unordered client identifier may be specifically generated by the client according to the client MAC address and the random character string. In particular, it can be obtained in the following way: obtaining an MAC address string according to the client MAC address, wherein the MAC address string comprises a plurality of client MAC addresses which are connected end to end; processing each character in the MAC address string by using a random algorithm to generate a random character string; determining characters to be replaced in the random character string; and replacing the characters to be replaced by using the characters in the MAC address identifier to obtain the unordered client identifier.
Fig. 3 is a schematic diagram of a generation flow of the unordered client identifier provided by the present invention, and as shown in fig. 3, if the MAC address of the client is 12 bytes, it is denoted as [ m1, m2, m3, … …, m12 ].
Firstly, MAC addresses of clients can be concatenated three times to obtain a MAC address string, that is, MACs [ m1, m2, m3, … …, m12, m1, m2, m3, … …, m12, m1, m2, m3, … …, m12] shown in fig. 3 is obtained, and the MACs can be a character string including 36 bytes; processing each character in the MAC address string by using a random algorithm to generate a 32-byte random character string KEY1, namely KEY1[ k1, k2, k3 … … and k32 ]; determining characters to be replaced of KEY1 in the random character string, [ k4, k7, k9, k11, k14, k16, k18, k22, k25, k27, k29, k31 ];
finally, the characters to be replaced are replaced by using the characters [ k1, k2, k3 … …, k12] in the MAC address identification, and the unordered client identification KEY-UUID, namely KEY-UUID [ k1, k2, k3, m1, k5, k6, m2, k8, m3, k10, m4, k12, k13, m5, k15, m6, k17, m7, k19, m7, k19, k20, k21, m8, k23, k24, m9, k26, m10, k28, m11, k30, m12, k32] is obtained.
According to the communication connection method provided by the embodiment of the invention, the configuration information sent by the terminal is received through the client; when the configuration information comprises a compatible identifier, the client sends a connection request to a cloud end, wherein the connection request comprises an unordered client identifier and the compatible identifier; the client feeds back a corresponding check code to the cloud after receiving a check code request returned by the cloud, so that the cloud sends an indication for indicating that the communication connection is successful to the client after completing the check on the client according to the check code and completing the communication connection with the client according to the unordered client identifier, the cloud can establish the connection with the client by using the unordered client identifier, the compatibility of the cloud with clients with different types of identifiers is realized, and the problem that the communication connection is urgently required to be solved due to the fact that the normal operation of the communication connection is ensured is solved.
Fig. 4 is a schematic flowchart of two communication connection methods provided in the embodiment of the present invention, and as shown in fig. 4, the communication connection method includes:
step 201, the cloud receives a connection request sent by a client.
Step 202, when the connection request includes a compatible identifier and an unordered client identifier, and when the cloud determines that a check code corresponding to the unordered client identifier is prestored, the cloud sends a check code request to the client.
And 203, after the cloud end completes the check on the client end according to the check code fed back by the client end and completes the communication connection with the client end according to the unordered client end identification, sending an indication for indicating the success of the communication connection to the client end.
It should be noted that the execution subject of the communication connection method provided by the present invention may specifically be the cloud shown in fig. 1.
In the communication connection process, the cloud end receives a connection request from the client. As described above, based on the difference of the client attributes of the client, the client will receive the configuration information sent by the terminal, and will determine whether the configuration information includes the compatible identifier.
When the client determines that the configuration information comprises the compatible identification, the connection request received by the cloud end comprises the compatible identification and the unordered client identification, at the moment, the cloud end detects whether the check code corresponding to the unordered client identification is prestored, and sends a check code request to the client end under the condition that the check code is determined to be prestored.
When the client side is in communication connection with the cloud side once, the unordered client side identification and the corresponding check code of the client side are prestored in the cloud side. The cloud end receives the check code fed back by the client end, checks the client end by using the received check code, completes communication connection with the client end according to the disordered client end identification after the check is completed, and sends an indication for indicating successful communication connection to the client end; correspondingly, when the cloud end determines that the check code corresponding to the unordered client identification is not prestored, the cloud end generates the check code of the unordered client identification for storage and sends the check code to the client end, and the cloud end completes communication connection with the client end according to the unordered client identification and sends an indication for indicating successful communication connection to the client end.
In addition, under the condition that the connection request only comprises the MAC address, the cloud end completes communication connection with the client according to the MAC address of the client, and sends an indication for indicating that the communication connection is successful to the client.
It should be noted that, in this embodiment, the method for communication connection corresponding to the client side may specifically refer to the description in the first embodiment, and details thereof are not repeated here.
In the communication connection method provided by the second embodiment, the connection request sent by the client is received through the cloud; under the condition that the connection request comprises a compatible identifier and an unordered client identifier, when the cloud end determines that a check code corresponding to the unordered client identifier is prestored, the cloud end sends a check code request to the client end; after the cloud end completes the verification of the client end according to the received check code fed back by the client end and completes the communication connection with the client end according to the unordered client end identification, an indication for indicating the success of the communication connection is sent to the client end, so that the cloud end can establish the connection with the client end by using the unordered client end identification, the compatibility of the cloud end with the client ends with different types of identifications is realized, and the problem that the normal operation of the communication connection is ensured and needs to be solved urgently is solved.
To further clearly show the communication connection flow provided by the present invention, fig. 5 is a schematic flow diagram of a communication connection method provided by a third embodiment of the present invention, as shown in fig. 5, the communication connection method includes:
301, a terminal acquires a client attribute sent by a client, and judges whether the identification type of the client is an unordered client identification or not according to the client attribute;
if yes, go to step 302; if not, go to step 315.
Step 302, the terminal generates configuration information including the compatible identifier, sends the configuration information to the client, and executes step 304.
Step 303, the terminal generates configuration information without the compatible identifier, sends the configuration information to the client, and executes step 304.
Step 304, the client judges whether the configuration information includes a compatible identifier;
if yes, go to step 305; if not, go to step 313.
Step 305, the client sends a connection request comprising the unordered client identifier and the compatible identifier to the cloud;
step 306, after receiving the connection request including the compatible identifier, the cloud determines whether a check code corresponding to the unordered client identifier is prestored;
if yes, go to step 307; if not, go to step 312.
Step 307, the cloud sends a check code request to the client;
step 308, the client determines whether the check code is provided according to the check code request;
if yes, go to step 309; if not, go to step 311.
Step 309, the cloud checks the client according to the received check code sent by the client;
step 310, after completing the communication connection with the client according to the unordered client identifier, the cloud sends an indication for indicating that the communication connection is successful to the client.
Step 311, the cloud sends an indication for indicating that the communication connection fails to the client.
Step 312, the cloud generates a check code, stores the check code in association with the unordered client identifier, and sends the check code to the client; step 310 is performed.
Step 313, the client sends a connection request including the MAC address identifier to the cloud;
and step 314, the cloud end completes communication connection with the client end according to the MAC address of the client end, and sends an indication for indicating that the communication connection is successful to the client end.
Step 315, the terminal generates configuration information without the compatible identifier, sends the configuration information to the client, and executes step 304.
The third embodiment may refer to the corresponding flow in the foregoing embodiments.
Fig. 6 is a schematic structural diagram of a client according to a fourth embodiment of the present invention, as shown in fig. 6, the client includes:
a first communication unit 10, configured to receive configuration information sent by a terminal;
a first processing unit 20, configured to, when the configuration information includes a compatible identifier, generate a connection request including an unordered client identifier and the compatible identifier, so that the first communication unit sends the connection request to a cloud;
the first communication unit is further configured to receive a check code request returned by the cloud, so that the first processing unit determines a corresponding check code according to the check code request; the first communication unit is further configured to feed back the check code to the cloud, and receive an indication sent by the cloud and used for indicating that the communication connection is successful, where the indication is sent by the cloud after the cloud completes the check on the client according to the check code and completes the communication connection with the client according to the unordered client identifier.
Optionally, when the client fails to feed back the corresponding check code to the cloud after receiving the check code request returned by the cloud, the client receives an indication indicating that the communication connection fails from the cloud.
Optionally, the communication method further includes:
when the configuration information does not comprise a compatible identifier, the client sends a connection request comprising a client MAC address identifier to a cloud end so that the cloud end completes communication connection with the client according to the client MAC address;
receiving an indication from the cloud indicating that the communication connection was successful.
Optionally, before the client receives the configuration information sent by the terminal, the method further includes:
and sending the client attribute of the client to the terminal according to the indication of the terminal so that the terminal can generate and send the configuration information according to the indication of the client.
Optionally, the unordered client identifier is generated by the client according to a client MAC address and a random character string.
Optionally, the communication method further includes:
obtaining an MAC address string according to the client MAC address, wherein the MAC address string comprises a plurality of client MAC addresses which are connected end to end;
processing each character in the MAC address string by using a random algorithm to generate a random character string;
determining characters to be replaced in the random character string;
and replacing the characters to be replaced by using the characters in the MAC address identifier to obtain the unordered client identifier.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process and corresponding beneficial effects of the system described above may refer to the corresponding process in the foregoing method embodiments, and are not described herein again.
The client receives the configuration information sent by the terminal through the client; when the configuration information comprises a compatible identifier, the client sends a connection request to a cloud end, wherein the connection request comprises an unordered client identifier and the compatible identifier; the client feeds back a corresponding check code to the cloud after receiving a check code request returned by the cloud, so that the cloud sends an indication for indicating that the communication connection is successful to the client after completing the check on the client according to the check code and completing the communication connection with the client according to the unordered client identifier, the cloud can establish the connection with the client by using the unordered client identifier, the compatibility of the cloud with clients with different types of identifiers is realized, and the problem that the communication connection is urgently required to be solved due to the fact that the normal operation of the communication connection is ensured is solved.
Fig. 7 is a schematic diagram of a hardware structure of a client according to a fifth embodiment of the present invention; as shown in fig. 7, the client includes:
a memory 41, a processor 42 and a computer program stored on the memory 41 and executable on the processor 42, the processor 42 executing the method of the above embodiment when executing the computer program.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process and corresponding beneficial effects of the system described above may refer to the corresponding process in the foregoing method embodiments, and are not described herein again.
Fig. 8 is a schematic structural diagram of a cloud according to a sixth embodiment of the present invention, as shown in fig. 8, the cloud includes:
a second communication unit 30, configured to receive a connection request sent by a client;
the second processing unit 40 is configured to obtain a check code request when determining the connection request sent by the receiving client and determining that a check code corresponding to the unordered client identifier is pre-stored, so that the second communication unit 30 sends the check code request to the cloud;
the second communication unit 30 is further configured to receive a check code fed back by the client, so that the second processing unit 40 completes the check on the client according to the check code and completes the communication connection with the client according to the unordered client identifier; and is further configured to send an indication to the client indicating that the communication connection is successful.
Optionally, when the cloud determines that the check code corresponding to the unordered client identifier is not pre-stored, the cloud generates the check code of the unordered client identifier to be stored, and sends the check code to the client;
and the cloud end completes communication connection with the client end according to the unordered client end identification, and sends an indication for indicating successful communication connection to the client end.
Optionally, when the check code fed back by the client is not received within a preset time after the cloud sends the check code request to the client, the cloud sends an indication indicating that the communication connection fails to the client.
Optionally, when the connection request only includes the MAC address, the cloud completes communication connection with the client according to the client MAC address, and sends an indication indicating that the communication connection is successful to the client.
The cloud terminal provided in the fourth embodiment receives the connection request sent by the client terminal through the cloud terminal; under the condition that the connection request comprises a compatible identifier and an unordered client identifier, when the cloud end determines that a check code corresponding to the unordered client identifier is prestored, the cloud end sends a check code request to the client end; after the cloud end completes the verification of the client end according to the received check code fed back by the client end and completes the communication connection with the client end according to the unordered client end identification, an indication for indicating the success of the communication connection is sent to the client end, so that the cloud end can establish the connection with the client end by using the unordered client end identification, the compatibility of the cloud end with the client ends with different types of identifications is realized, and the problem that the normal operation of the communication connection is ensured and needs to be solved urgently is solved.
In addition, fig. 9 is a schematic diagram of a hardware structure of a cloud according to a seventh embodiment of the present invention; as shown in fig. 9, the cloud includes:
a memory 51, a processor 52 and a computer program stored on the memory 51 and executable on the processor 52, the processor 52 executing the method of the above embodiment when executing the computer program.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process and corresponding beneficial effects of the system described above may refer to the corresponding process in the foregoing method embodiments, and are not described herein again.
Finally, the present invention also provides a readable storage medium comprising a computer program stored thereon, the computer program being processed to implement the method of any of the above embodiments.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (15)

1. A method of communication connection, comprising:
a client receives configuration information sent by a terminal;
when the configuration information comprises a compatible identifier, the client sends a connection request to a cloud end so that the cloud end completes communication connection with the client end according to the unordered client identifier, the connection request comprises the unordered client identifier and the compatible identifier, and the compatible identifier is used for enabling the client end to generate the connection request comprising the unordered client identifier and the compatible identifier;
and the client feeds back a corresponding check code to the cloud after receiving a check code request returned by the cloud, so that the cloud sends an indication for indicating that the communication connection is successful to the client after completing the check on the client according to the check code and completing the communication connection with the client according to the unordered client identification.
2. The communication connection method according to claim 1, wherein when the client fails to feed back the corresponding check code to the cloud after receiving the check code request returned by the cloud, the client receives an indication indicating a communication connection failure from the cloud.
3. The communication connection method according to claim 1, further comprising:
when the configuration information does not comprise a compatible identifier, the client sends a connection request comprising a client MAC address identifier to a cloud end so that the cloud end completes communication connection with the client according to the client MAC address;
receiving an indication from the cloud indicating that the communication connection was successful.
4. The communication connection method according to claim 1, wherein the client receives the configuration information sent by the terminal and further comprises:
and sending the client attribute of the client to the terminal according to the indication of the terminal so that the terminal can generate and send the configuration information according to the indication of the client.
5. The communication connection method according to any one of claims 1 to 4, wherein the unordered client identifier is generated by the client from a client MAC address and a random string.
6. The communication connection method according to claim 5, further comprising:
obtaining an MAC address string according to the client MAC address, wherein the MAC address string comprises a plurality of client MAC addresses which are connected end to end;
processing each character in the MAC address string by using a random algorithm to generate a random character string;
determining characters to be replaced in the random character string;
and replacing the characters to be replaced by using the characters in the MAC address identifier to obtain the unordered client identifier.
7. A method of communication connection, comprising:
the cloud receives a connection request sent by a client;
under the condition that the connection request comprises a compatible identifier and an unordered client identifier, when the cloud end determines that a check code corresponding to the unordered client identifier is prestored, the cloud end sends a check code request to the client end;
the cloud end completes communication connection with the client end according to the unordered client end identification;
and after the cloud end completes the verification of the client end according to the received check code fed back by the client end and completes the communication connection with the client end according to the unordered client end identification, the cloud end sends an indication for indicating the success of the communication connection to the client end.
8. The communication connection method according to claim 7, wherein when the cloud determines that the check code corresponding to the unordered client identifier is not pre-stored, the cloud generates the check code of the unordered client identifier for storage and sends the check code to the client;
and the cloud end completes communication connection with the client end according to the unordered client end identification, and sends an indication for indicating successful communication connection to the client end.
9. The communication connection method according to claim 7, wherein when the check code fed back by the client is not received within a preset time after the cloud sends the check code request to the client, the cloud sends an indication indicating that the communication connection has failed to the client.
10. The communication connection method according to claim 7, wherein in a case that the connection request only includes the MAC address, the cloud completes the communication connection with the client according to the client MAC address, and sends an indication indicating that the communication connection is successful to the client.
11. A client is characterized by comprising
The first communication unit is used for receiving the configuration information sent by the terminal;
the first processing unit is used for generating a connection request comprising an unordered client identifier and a compatible identifier when the configuration information comprises the compatible identifier, so that the first communication unit sends the connection request to a cloud end, and the cloud end completes communication connection with the client end according to the unordered client identifier;
the first communication unit is further configured to receive a check code request returned by the cloud, so that the first processing unit determines a corresponding check code according to the check code request; the first communication unit is further configured to feed back the check code to the cloud, and receive an indication sent by the cloud and used for indicating that the communication connection is successful, where the indication is sent by the cloud after the cloud completes the check on the client according to the check code and completes the communication connection with the client according to the unordered client identifier.
12. A cloud, comprising:
the second communication unit is used for receiving a connection request sent by the client;
the second processing unit is used for obtaining a check code request under the condition that the connection request comprises a compatible identifier and an unordered client identifier and a check code corresponding to the unordered client identifier is determined to be prestored, so that the second communication unit sends the check code request to the client;
the second communication unit is further configured to receive a check code fed back by the client, so that the second processing unit completes the check on the client according to the check code and completes the communication connection with the client according to the unordered client identifier; and is further configured to send an indication to the client indicating that the communication connection is successful.
13. A client, comprising: a memory, a processor, and a computer program;
wherein the computer program is stored in the memory and configured to be executed by the processor to implement the method of any one of claims 1-6.
14. A cloud, comprising: a memory, a processor, and a computer program;
wherein the computer program is stored in the memory and configured to be executed by the processor to implement the method of any one of claims 7-10.
15. A readable storage medium, having stored thereon a computer program which is processed to be executed to implement the method of any one of claims 1-10.
CN201910163093.2A 2019-03-05 2019-03-05 Communication connection method, client, cloud and readable storage medium Active CN109861796B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910163093.2A CN109861796B (en) 2019-03-05 2019-03-05 Communication connection method, client, cloud and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910163093.2A CN109861796B (en) 2019-03-05 2019-03-05 Communication connection method, client, cloud and readable storage medium

Publications (2)

Publication Number Publication Date
CN109861796A CN109861796A (en) 2019-06-07
CN109861796B true CN109861796B (en) 2021-12-21

Family

ID=66899854

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910163093.2A Active CN109861796B (en) 2019-03-05 2019-03-05 Communication connection method, client, cloud and readable storage medium

Country Status (1)

Country Link
CN (1) CN109861796B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106789876A (en) * 2016-11-15 2017-05-31 上海远景数字信息技术有限公司 The authentication method and its device of a kind of cloud terminal server
CN108323230A (en) * 2018-02-06 2018-07-24 福建联迪商用设备有限公司 A kind of method of transmission key receives terminal and distribution terminal

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9930009B2 (en) * 2015-03-13 2018-03-27 Intel IP Corporation Systems and methods to enable network coordinated MAC randomization for wi-fi privacy
JP2019041321A (en) * 2017-08-28 2019-03-14 ルネサスエレクトロニクス株式会社 Data receiver, data transmission system, and key generation device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106789876A (en) * 2016-11-15 2017-05-31 上海远景数字信息技术有限公司 The authentication method and its device of a kind of cloud terminal server
CN108323230A (en) * 2018-02-06 2018-07-24 福建联迪商用设备有限公司 A kind of method of transmission key receives terminal and distribution terminal

Also Published As

Publication number Publication date
CN109861796A (en) 2019-06-07

Similar Documents

Publication Publication Date Title
US20170163478A1 (en) Method,electronic device and system for updating client configuration in key-value pair database
US20160277496A1 (en) Method, server and system for application synchronization
US20220109730A1 (en) Method and proxy server for establishing communication connection
US20150358272A1 (en) Method and apparatus for message transmission
CN104580085A (en) Business data updating method, system, client side and server
WO2023024824A1 (en) Charging protocol determination method and apparatus, electronic device, and readable storage medium
CN109996219B (en) Internet of things authentication method, network equipment and terminal
CN112988485A (en) Simulation test method and device for power Internet of things equipment
CN107248995B (en) Account verification method and device
WO2021121407A1 (en) Capacity changing method and apparatus for virtual machine
US20140181942A1 (en) Startup method and apparatus, startup-acceptance method and apparatus, and mutual-startup method and system
WO2022142153A1 (en) Electricity meter upgrading method and system, smart meter, and storage medium
WO2020173126A1 (en) Method and device for blockchain-based session data processing, equipment, and medium
US9832198B2 (en) Service-based message access layer frame and implementation method thereof
CN109861796B (en) Communication connection method, client, cloud and readable storage medium
CN111835504B (en) Identification code generation method and server
CN111698097A (en) Certificate authentication method and device
CN111756844A (en) Multi-language message agent method and device
CN108881320B (en) Authentication processing method for user login, server and client
CN116389454A (en) Data downloading system
US10979287B2 (en) Method and apparatus for receiving a solution when configuration function verification fails in a terminal
CN113271337B (en) Method and device for subscribing computer message
CN112738823B (en) Interface data interaction method, distributed unit and central unit
CN114244648A (en) Method, device, equipment and medium for actively registering Internet of things platform by equipment
KR20040109977A (en) succeeding method of data in mobile

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Communication connection method, client, cloud and readable storage medium

Effective date of registration: 20230227

Granted publication date: 20211221

Pledgee: Tongxiang Yunbei Investment Construction Co.,Ltd.

Pledgor: SENGLED Co.,Ltd.

Registration number: Y2023980033490