CN114285890A - Cloud platform connection method, device, equipment and storage medium - Google Patents

Cloud platform connection method, device, equipment and storage medium Download PDF

Info

Publication number
CN114285890A
CN114285890A CN202111506295.6A CN202111506295A CN114285890A CN 114285890 A CN114285890 A CN 114285890A CN 202111506295 A CN202111506295 A CN 202111506295A CN 114285890 A CN114285890 A CN 114285890A
Authority
CN
China
Prior art keywords
cloud platform
mqtt
parameters
parameter
authentication
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.)
Granted
Application number
CN202111506295.6A
Other languages
Chinese (zh)
Other versions
CN114285890B (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.)
Xi'an Guanghetong Wireless Communication Co ltd
Original Assignee
Xi'an Guanghetong Wireless Communication 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 Xi'an Guanghetong Wireless Communication Co ltd filed Critical Xi'an Guanghetong Wireless Communication Co ltd
Priority to CN202111506295.6A priority Critical patent/CN114285890B/en
Publication of CN114285890A publication Critical patent/CN114285890A/en
Priority to PCT/CN2022/100067 priority patent/WO2023103331A1/en
Application granted granted Critical
Publication of CN114285890B publication Critical patent/CN114285890B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols

Abstract

The application relates to a cloud platform connection method, a device, equipment and a storage medium, wherein the method comprises the steps of obtaining a creation parameter of a cloud platform, wherein the creation parameter indicates the connection of the cloud platform; acquiring an algorithm corresponding to the cloud platform from a pre-configured algorithm; calling an algorithm to obtain MQTT authentication parameters corresponding to the creation parameters; and establishing connection with the cloud platform according to the MQTT authentication parameters. Due to the fact that the algorithm of the cloud platform for obtaining the MQTT authentication parameters is configured in advance, the MQTT authentication parameters for connecting the platform can be obtained even if the SDK is not deployed.

Description

Cloud platform connection method, device, equipment and storage medium
Technical Field
The present application relates to the field of computers, and in particular, to a cloud platform connection method, apparatus, device, and storage medium.
Background
With the development of the internet of things technology, each large company provides its own MQTT (Message Queuing Telemetry Transport protocol) internet of things cloud platform scheme, such as arri cloud, hua shi cloud, amazon cloud, Baidu cloud, Tencent cloud, and the like, each cloud platform needs to use SDK (software development kit) or a specific authentication method provided by the platform for docking, and then completes the connection with the cloud platform on the basis of the MQTT standard protocol, which provides a strict docking requirement for the internet of things module, so that different SDKs must be used for docking different MQTT cloud platforms, and the internet of things module must provide different software to adapt to different cloud platforms, resulting in not small development cost and maintenance cost.
Disclosure of Invention
The application provides a cloud platform connection method, a cloud platform connection device, cloud platform connection equipment and a storage medium, and aims to solve the problem that in the prior art, when different MQTT cloud platforms are connected in a butt joint mode through different SDKs, an Internet of things module must provide different software to adapt to the different cloud platforms, and development cost and maintenance cost are high.
In a first aspect, a cloud platform connection method is provided, including:
acquiring a creation parameter of a cloud platform, wherein the creation parameter indicates connection to the cloud platform;
acquiring an algorithm corresponding to the cloud platform from a pre-configured algorithm;
calling the algorithm to acquire MQTT authentication parameters corresponding to the creation parameters;
and establishing connection with the cloud platform according to the MQTT authentication parameters.
Optionally, the creating parameter is an MQTT parameter, the MQTT parameter includes at least one MQTT authentication parameter, any one of the at least one MQTT authentication parameter points to one device on the cloud platform side, and an algorithm corresponding to the cloud platform is to obtain the MQTT authentication parameter corresponding to the creating parameter according to an instruction of a user.
Optionally, the creation parameters include device parameters and product parameters of the cloud platform side;
calling the algorithm to acquire MQTT authentication parameters corresponding to the creation parameters, wherein the method comprises the following steps:
and calculating the equipment parameters and the product parameters by adopting the algorithm to obtain the MQTT authentication parameters.
Optionally, the creation parameter comprises a product parameter of the cloud platform side;
calling the algorithm to acquire MQTT authentication parameters corresponding to the creation parameters, wherein the method comprises the following steps:
acquiring at least one equipment parameter corresponding to the product parameter;
acquiring a target device parameter from the at least one device parameter;
acquiring an algorithm corresponding to the cloud platform;
and calculating the product parameters and the target equipment parameters by adopting the algorithm to obtain the MQTT authentication parameters.
Optionally, before establishing a connection with the cloud platform according to the MQTT authentication parameter, the method further includes:
encrypting the MQTT authentication parameters;
establishing connection with the cloud platform according to the MQTT authentication parameters, wherein the connection comprises the following steps:
and establishing connection with the cloud platform by adopting the encrypted MQTT authentication parameters.
Optionally, establishing a connection with the cloud platform according to the MQTT authentication parameters includes:
acquiring an AT instruction matched with the cloud platform;
configuring the MQTT authentication parameters to the AT instruction;
and sending an AT instruction for configuring the MQTT authentication parameters to the cloud platform.
In a second aspect, a cloud platform connection system is provided, including:
the system comprises an Internet of things module and a cloud platform;
the Internet of things module is used for acquiring creation parameters of a cloud platform, and the creation parameters indicate connection to the cloud platform; acquiring an algorithm corresponding to the cloud platform from a pre-configured algorithm; calling the algorithm to acquire MQTT authentication parameters corresponding to the creation parameters; and establishing connection with the cloud platform according to the MQTT authentication parameters.
In a third aspect, a cloud platform connection apparatus is provided, including:
a first obtaining unit, configured to obtain a creation parameter of a cloud platform, where the creation parameter indicates a connection to the cloud platform;
the second acquisition unit is used for acquiring an algorithm corresponding to the cloud platform from the pre-configured algorithms;
the calling unit is used for calling the algorithm to acquire MQTT authentication parameters corresponding to the creation parameters;
and the establishing unit is used for establishing connection with the cloud platform according to the MQTT authentication parameters.
In a fourth aspect, an electronic device is provided, comprising: the system comprises a processor, a memory and a communication bus, wherein the processor and the memory are communicated with each other through the communication bus;
the memory for storing a computer program;
the processor is configured to execute the program stored in the memory, and implement the cloud platform connection method according to the first aspect.
In a fifth aspect, a computer-readable storage medium is provided, which stores a computer program, wherein the computer program, when executed by a processor, implements the cloud platform connection method according to the first aspect.
Compared with the prior art, the technical scheme provided by the embodiment of the application has the following advantages: according to the technical scheme provided by the embodiment of the application, the creation parameters of the cloud platform are obtained, and the creation parameters indicate the connection of the cloud platform; acquiring an algorithm corresponding to the cloud platform from a pre-configured algorithm; calling an algorithm to obtain MQTT authentication parameters corresponding to the creation parameters; and establishing connection with the cloud platform according to the MQTT authentication parameters. Due to the fact that the algorithm of the cloud platform for obtaining the MQTT authentication parameters is configured in advance, the MQTT authentication parameters for connecting the platform can be obtained even if the SDK is not deployed.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
FIG. 1 is a schematic flow chart illustrating cloud platform connection in the related art;
fig. 2 is a schematic flow chart of cloud platform connection according to an embodiment of the present disclosure;
fig. 3 is a schematic flow chart of cloud platform connection according to an embodiment of the present application;
fig. 4 is a signaling flowchart of cloud platform connection in the embodiment of the present application;
fig. 5 is a schematic structural diagram of a cloud platform connection system in an embodiment of the present application;
fig. 6 is a schematic structural diagram of a cloud platform connection device in an embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device in an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Before further detailed description of the embodiments of the present invention, terms and expressions referred to in the embodiments of the present invention are described, and the terms and expressions referred to in the embodiments of the present invention are applicable to the following explanations.
MQTT: the message protocol under the ISO standard (ISO/IEC PRF 20922) is based on a publish/subscribe paradigm. It works on the TCP/IP suite and is a publish/subscribe messaging protocol designed for remote devices with poor hardware performance and in poor network conditions.
The AT commands: and a Terminal Equipment (TE) or a Data Terminal Equipment (DTE) to a Terminal Adapter (TA) or a Data Circuit Terminal Equipment (DCE). It defines the size of the transmitted data packet: i.e., for the transmission of AT commands, a length of 1056 characters (including the last null character) can be received AT most, in addition to two characters for AT.
Each AT command line can only contain one AT instruction; the AT command ends with a carriage return, and the response or report ends with a carriage return and line feed.
And (3) SDK: a software development kit is generally a collection of development tools used by some software engineers to build application software for a particular software package, software framework, hardware platform, operating system, and the like.
Cloud platform: also known as a cloud computing platform, refers to a service based on hardware resources and software resources that provides computing, networking, and storage capabilities. Cloud computing platforms can be divided into 3 classes: the cloud computing platform comprises a storage type cloud platform taking data storage as a main part, a computing type cloud platform taking data processing as a main part and a comprehensive cloud computing platform taking computing and data storage processing into consideration.
MCU (Microcontroller Unit, microcontrol Unit): the system is also called a Single Chip Microcomputer (Microcomputer) or a Single Chip Microcomputer, and is characterized in that the frequency and specification of a Central Processing Unit (CPU) are properly reduced, and peripheral interfaces such as a memory (memory), a counter (Timer), a USB, an a/D conversion, a UART, a PLC, a DMA and the like, even an LCD driving circuit are integrated on a Single Chip to form a Chip-level computer, so that different combination control is performed for different application occasions.
TLS protocol (secure transport layer protocol): for providing privacy and data integrity between two communicating applications. The protocol consists of two layers: the TLS Record protocol (TLS Record) and the TLS Handshake protocol (TLS Handshake).
Taking the SDK provided by the cloud platform as an example, the process of docking the internet of things module with the cloud platform in the related art is introduced. As shown in fig. 1, the method comprises the following steps:
and 101, transplanting the SDK code of the cloud platform by the Internet of things module.
And 102, determining an AT instruction matched with the cloud platform through an MCU connected with the Internet of things module.
In application, the MCU stores the corresponding relation between the cloud platform and the AT instruction, so that the corresponding relation can be inquired through the identification of the cloud platform to determine the AT instruction matched with the cloud platform.
Step 103, obtaining parameters such as the device ID, the device key, the product ID, the product key, the device certificate and the like of the cloud platform.
It should be understood that the cloud platform side has a plurality of hardware devices, each having a device ID and a device key, wherein the device ID is used for uniquely identifying the hardware device, and the device key is used for authenticating the hardware device.
It should be understood that each hardware device has a product to which it belongs, the product indicating the class of the hardware device, and thus the product ID is used to uniquely identify a class of products, and the product key is used to authenticate a class of products.
And step 104, calculating the parameters acquired in the last step based on the SDK codes to obtain MQTT authentication parameters of the cloud platform.
It should be understood that the MQTT authentication parameters are used for realizing the connection between the cloud platform and the Internet of things module based on the MQTT protocol.
It should be understood that the MQTT authentication parameters herein include, but are not limited to, client ID (device identification), username (user name), and password (password).
And 105, configuring MQTT authentication parameters in the AT instruction, and completing the connection between the Internet of things module and the cloud platform through the AT instruction.
In the related technology, algorithms for calculating MQTT authentication parameters are deployed in SDK codes, and the SDK codes integrated by different cloud platforms are different, so that to implement connection with different cloud platforms through MQTT protocols, the SDK codes of different cloud platforms need to be transplanted into the internet of things module respectively, so that the MQTT authentication parameters of different cloud platforms can be adapted by SDK code calculation, and connection with different cloud platforms is implemented through MQTT authentication parameters based on MQTT protocols. However, the transplantation of the SDK codes of different cloud platforms poses a severe requirement for the internet of things module, and the internet of things module must provide different software to adapt to different cloud platforms, which causes not less development cost and maintenance cost.
In order to solve technical problems in the related art, embodiments of the present application provide a cloud platform connection method, which may be applied to any electronic device;
the electronic device described in the embodiment of the present application may include a smart Phone (e.g., an Android Phone, an iOS Phone, a Windows Phone, etc.), a tablet computer, a palm computer, a notebook computer, a video matrix, a monitoring platform, a Mobile Internet device (MID, Mobile Internet Devices), a wearable device, or an Internet of things module, which are only examples, but not exhaustive, and include but are not limited to the foregoing Devices, and of course, the electronic device may also be a server, for example, a cloud server.
As shown in fig. 2, the method may include the steps of:
step 201, acquiring a creation parameter of a cloud platform, wherein the creation parameter indicates connection to the cloud platform;
step 202, acquiring an algorithm corresponding to the cloud platform from pre-configured algorithms;
step 203, calling an algorithm to acquire an MQTT authentication parameter corresponding to the creation parameter;
and step 204, establishing connection with the cloud platform according to the MQTT authentication parameters.
It should be understood that the MQTT authentication parameter is a parameter that can be connected with the cloud platform through the MQTT protocol.
It should be understood that the creation parameters of the cloud platform include, but are not limited to, manual entry into the electronic device by a user.
Based on the difference of the creation parameters, the present embodiment provides the following three schemes to obtain the MQTT authentication parameters corresponding to the creation parameters:
firstly, creating parameters which are MQTT parameters, wherein the MQTT parameters comprise at least one MQTT authentication parameter, any one MQTT authentication parameter in the at least one MQTT authentication parameter points to one device on the cloud platform side, and an algorithm corresponding to the cloud platform is to acquire the MQTT authentication parameter corresponding to the creating parameters according to the instruction of a user;
in this case, MQTT authentication parameters are acquired from the MQTT parameters.
In application, the MQTT authentication parameters obtained from the MQTT parameters may be indicated by the user.
Secondly, establishing parameters including equipment parameters and product parameters at the cloud platform side;
under the condition, when the MQTT authentication parameters corresponding to the creation parameters are obtained, the equipment parameters and the product parameters are calculated by adopting an algorithm to obtain the MQTT authentication parameters.
It should be understood that the algorithm of the cloud platform herein refers to an algorithm capable of calculating MQTT authentication parameters.
It should be understood that, the electronic device is preconfigured with the corresponding relationship between the cloud platform and the algorithm, and therefore when the algorithm corresponding to the cloud platform needs to be obtained, the preset corresponding relationship between the cloud platform and the algorithm is queried by using the identifier of the cloud platform, so as to obtain the algorithm corresponding to the cloud platform.
In this embodiment, the device parameters include, but are not limited to, a device ID and a device key; product parameters include, but are not limited to, a product ID and a product key.
Thirdly, establishing parameters including product parameters at the cloud platform side;
in this case, when the MQTT authentication parameter corresponding to the creation parameter is acquired, at least one device parameter corresponding to the product parameter is acquired; acquiring a target device parameter from at least one device parameter; and calculating the product parameters and the target equipment parameters by adopting an algorithm to obtain MQTT authentication parameters.
The embodiment includes, but is not limited to, acquiring at least one device parameter corresponding to the product parameter from the cloud platform by using an HTTP protocol.
In this embodiment, but not limited to, obtaining the target device parameter from the at least one device parameter based on the user's instruction is included.
It should be understood that, the electronic device is preconfigured with the corresponding relationship between the cloud platform and the algorithm, and therefore when the algorithm corresponding to the cloud platform needs to be obtained, the preset corresponding relationship between the cloud platform and the algorithm is queried by using the identifier of the cloud platform, so as to obtain the algorithm corresponding to the cloud platform.
In this embodiment, in order to ensure security and prevent information leakage, the MQTT authentication parameters may be encrypted before the MQTT authentication parameters are connected to the cloud platform.
Correspondingly, the connection with the cloud platform is established according to the MQTT authentication parameters, and the connection with the cloud platform is established by adopting the encrypted MQTT authentication parameters.
In this embodiment, the AT instruction is specifically used to complete the connection with the cloud platform.
In a specific embodiment, an AT instruction matched with a cloud platform is obtained; configuring MQTT authentication parameters to the AT instruction; and sending an AT instruction for configuring MQTT authentication parameters to the cloud platform.
According to the technical scheme provided by the embodiment of the application, the creation parameters of the cloud platform are obtained, and the creation parameters indicate the connection of the cloud platform; acquiring an algorithm corresponding to the cloud platform from a pre-configured algorithm; calling an algorithm to obtain MQTT authentication parameters corresponding to the creation parameters; and establishing connection with the cloud platform according to the MQTT authentication parameters. Due to the fact that the algorithm of the cloud platform for obtaining the MQTT authentication parameters is configured in advance, the MQTT authentication parameters for connecting the platform can be obtained even if the SDK is not deployed.
The following explains the above technical solution with reference to the example shown in fig. 3, and the main solution can be implemented by the technical solutions embodied in steps 201 to 203:
in fig. 3, the cloud platform can communicate with the electronic device based on the HTTP protocol or the MQTT protocol.
301, acquiring a creating parameter of a cloud platform;
step 302, judging whether the created parameters include equipment parameters, if so, executing step 303, otherwise, executing step 305;
303, acquiring an algorithm corresponding to the cloud platform;
step 304, calculating the created parameters by adopting an algorithm corresponding to the cloud platform to obtain MQTT authentication parameters;
305, acquiring product parameters in the creation parameters;
step 306, acquiring at least one device parameter corresponding to the product parameter based on the HTTP;
307, acquiring a target device parameter from at least one device parameter;
308, acquiring an algorithm corresponding to the cloud platform;
309, calculating product parameters and target equipment parameters by adopting an algorithm to obtain MQTT authentication parameters;
step 310, configuring the certificate in the equipment parameter;
311, acquiring an AT instruction matched with the cloud platform;
step 312, configuring MQTT authentication parameters to the AT instruction;
313, encrypting the MQTT authentication parameters in the AT command by using the certificate;
and step 314, sending an AT instruction for configuring the encrypted MQTT authentication parameters to the cloud platform.
The following explains the above technical solution with reference to the example shown in fig. 4, and the main solution can be implemented by the technical solutions embodied in steps 301 to 303:
step 401, an internet of things module acquires a creation parameter of a cloud platform;
step 402, the internet of things module sends the creation parameter to an information acquisition module;
step 403, the information acquisition module acquires MQTT authentication parameters from the creation parameters;
step 404, the information acquisition module returns MQTT authentication parameters to the Internet of things module;
step 405, configuring MQTT authentication parameters to the AT instruction by the Internet of things module;
step 406, the internet of things module encrypts an MQTT authentication parameter in the AT instruction based on the selected TLS connection;
and 407, initiating MQTT connection by the Internet of things module.
Based on the same concept, the embodiment of the present application provides a cloud platform connection system, and the specific implementation of the system may refer to the description of the method embodiment, and repeated details are not repeated, as shown in fig. 5, the system mainly includes:
an internet of things module 501 and a cloud platform 502;
the internet of things module 501 is used for acquiring creation parameters of the cloud platform 502, and the creation parameters indicate connection to the cloud platform 502; acquiring an algorithm corresponding to the cloud platform 502 from the pre-configured algorithms; calling an algorithm to obtain MQTT authentication parameters corresponding to the creation parameters; and establishing connection with the cloud platform 502 according to the MQTT authentication parameters.
Based on the same concept, embodiments of the present application provide a cloud platform connection apparatus, and specific implementation of the apparatus may refer to descriptions in the method embodiment section, and repeated details are not repeated, as shown in fig. 6, the apparatus mainly includes:
a first obtaining unit 601, configured to obtain a creation parameter of a cloud platform, where the creation parameter indicates a connection to the cloud platform;
a second obtaining unit 602, configured to obtain an algorithm corresponding to the cloud platform from preconfigured algorithms;
a calling unit 603, configured to call an algorithm to obtain an MQTT authentication parameter corresponding to the creation parameter;
the establishing unit 604 is configured to establish a connection with the cloud platform according to the MQTT authentication parameters.
Optionally, the creating parameter is an MQTT parameter, the MQTT parameter includes at least one MQTT authentication parameter, any one MQTT authentication parameter of the at least one MQTT authentication parameter points to one device on the cloud platform side, and an algorithm corresponding to the cloud platform is to obtain the MQTT authentication parameter corresponding to the creating parameter according to an instruction of a user.
Optionally, the creation parameters include device parameters and product parameters of the cloud platform side;
the second obtaining unit 602 is configured to:
and calculating the equipment parameters and the product parameters by adopting an algorithm to obtain MQTT authentication parameters.
Optionally, the creation parameter comprises a product parameter of the cloud platform side;
the second obtaining unit 602 is configured to:
acquiring at least one equipment parameter corresponding to the product parameter;
acquiring a target device parameter from at least one device parameter;
and calculating the product parameters and the target equipment parameters by adopting an algorithm to obtain MQTT authentication parameters.
The apparatus is also configured to:
before connection is established between the MQTT authentication parameters and the cloud platform, the MQTT authentication parameters are encrypted;
establishing connection with a cloud platform according to MQTT authentication parameters, comprising the following steps:
and establishing connection with the cloud platform by adopting the encrypted MQTT authentication parameters.
Optionally, the establishing unit 603 is configured to:
acquiring an AT instruction matched with the cloud platform;
configuring MQTT authentication parameters to the AT instruction;
and sending an AT instruction for configuring MQTT authentication parameters to the cloud platform.
Based on the same concept, an embodiment of the present application further provides an electronic device, as shown in fig. 7, the electronic device mainly includes: a processor 701, a memory 702, and a communication bus 703, wherein the processor 701 and the memory 702 communicate with each other via the communication bus 703. The memory 702 stores a program executable by the processor 701, and the processor 701 executes the program stored in the memory 702 to implement the following steps:
acquiring a creation parameter of the cloud platform, wherein the creation parameter indicates the connection of the cloud platform;
acquiring an algorithm corresponding to the cloud platform from a pre-configured algorithm;
calling an algorithm to obtain MQTT authentication parameters corresponding to the creation parameters;
and establishing connection with the cloud platform according to the MQTT authentication parameters.
The communication bus 703 mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus 703 may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 7, but this is not intended to represent only one bus or type of bus.
The Memory 702 may include a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Alternatively, the memory may be at least one memory device located remotely from the processor 701.
The Processor 701 may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like, or may be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic devices, discrete gates or transistor logic devices, and discrete hardware components.
In yet another embodiment of the present application, there is also provided a computer-readable storage medium having stored therein a computer program, which, when run on a computer, causes the computer to execute the cloud platform connection method described in the above embodiment.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wirelessly (e.g., infrared, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that includes one or more of the available media. The available media may be magnetic media (e.g., floppy disks, hard disks, tapes, etc.), optical media (e.g., DVDs), or semiconductor media (e.g., solid state drives), among others.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing are merely exemplary embodiments of the present invention, which enable those skilled in the art to understand or practice the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A cloud platform connection method is characterized by comprising the following steps:
acquiring a creation parameter of a cloud platform, wherein the creation parameter indicates connection to the cloud platform;
acquiring an algorithm corresponding to the cloud platform from a pre-configured algorithm;
calling the algorithm to acquire MQTT authentication parameters corresponding to the creation parameters;
and establishing connection with the cloud platform according to the MQTT authentication parameters.
2. The method according to claim 1, wherein the creation parameter is an MQTT parameter, the MQTT parameter includes at least one MQTT authentication parameter, any MQTT authentication parameter of the at least one MQTT authentication parameter points to a device on the cloud platform side, and the algorithm corresponding to the cloud platform is to obtain the MQTT authentication parameter corresponding to the creation parameter according to an instruction of a user.
3. The method of claim 1, wherein the creation parameters comprise device parameters and product parameters of the cloud platform side;
calling the algorithm to acquire MQTT authentication parameters corresponding to the creation parameters, wherein the method comprises the following steps:
and calculating the equipment parameters and the product parameters by adopting the algorithm to obtain the MQTT authentication parameters.
4. The method of claim 1, wherein the creation parameters comprise product parameters of the cloud platform side;
calling the algorithm to acquire MQTT authentication parameters corresponding to the creation parameters, wherein the method comprises the following steps:
acquiring at least one equipment parameter corresponding to the product parameter;
acquiring a target device parameter from the at least one device parameter;
acquiring an algorithm corresponding to the cloud platform;
and calculating the product parameters and the target equipment parameters by adopting the algorithm to obtain the MQTT authentication parameters.
5. The method according to any one of claims 1 to 4, wherein before establishing the connection with the cloud platform according to the MQTT authentication parameters, the method further comprises:
encrypting the MQTT authentication parameters;
establishing connection with the cloud platform according to the MQTT authentication parameters, wherein the connection comprises the following steps:
and establishing connection with the cloud platform by adopting the encrypted MQTT authentication parameters.
6. The method according to any one of claims 1-4, wherein establishing a connection with the cloud platform according to the MQTT authentication parameters comprises:
acquiring an AT instruction matched with the cloud platform;
configuring the MQTT authentication parameters to the AT instruction;
and sending an AT instruction for configuring the MQTT authentication parameters to the cloud platform.
7. A cloud platform connection system, comprising:
the system comprises an Internet of things module and a cloud platform;
the Internet of things module is used for acquiring creation parameters of a cloud platform, and the creation parameters indicate connection to the cloud platform; acquiring an algorithm corresponding to the cloud platform from a pre-configured algorithm; calling the algorithm to acquire MQTT authentication parameters corresponding to the creation parameters; and establishing connection with the cloud platform according to the MQTT authentication parameters.
8. A cloud platform connection apparatus, comprising:
a first obtaining unit, configured to obtain a creation parameter of a cloud platform, where the creation parameter indicates a connection to the cloud platform;
the second acquisition unit is used for acquiring an algorithm corresponding to the cloud platform from the pre-configured algorithms;
the calling unit is used for calling the algorithm to acquire MQTT authentication parameters corresponding to the creation parameters;
and the establishing unit is used for establishing connection with the cloud platform according to the MQTT authentication parameters.
9. An electronic device, comprising: the system comprises a processor, a memory and a communication bus, wherein the processor and the memory are communicated with each other through the communication bus;
the memory for storing a computer program;
the processor, configured to execute the program stored in the memory, and implement the cloud platform connection method according to any one of claims 1 to 6.
10. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the cloud platform connection method according to any one of claims 1 to 6.
CN202111506295.6A 2021-12-10 2021-12-10 Cloud platform connection method, device, equipment and storage medium Active CN114285890B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202111506295.6A CN114285890B (en) 2021-12-10 2021-12-10 Cloud platform connection method, device, equipment and storage medium
PCT/CN2022/100067 WO2023103331A1 (en) 2021-12-10 2022-06-21 Cloud platform connection method and apparatus, and device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111506295.6A CN114285890B (en) 2021-12-10 2021-12-10 Cloud platform connection method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114285890A true CN114285890A (en) 2022-04-05
CN114285890B CN114285890B (en) 2024-03-15

Family

ID=80871656

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111506295.6A Active CN114285890B (en) 2021-12-10 2021-12-10 Cloud platform connection method, device, equipment and storage medium

Country Status (2)

Country Link
CN (1) CN114285890B (en)
WO (1) WO2023103331A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023103331A1 (en) * 2021-12-10 2023-06-15 西安广和通无线通信有限公司 Cloud platform connection method and apparatus, and device and storage medium

Citations (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101217508A (en) * 2007-12-29 2008-07-09 腾讯科技(深圳)有限公司 A network agent system and the corresponding realizing methods based on instant communication platform
CN107147666A (en) * 2017-06-07 2017-09-08 江苏海平面数据科技有限公司 The method of data encrypting and deciphering between internet-of-things terminal and cloud data platform
CN107493310A (en) * 2016-06-13 2017-12-19 腾讯科技(深圳)有限公司 A kind of cloud resource processing method and cloud management platform
CN107846447A (en) * 2017-09-21 2018-03-27 烽火通信科技股份有限公司 A kind of method of the home terminal access message-oriented middleware based on MQTT agreements
CN107896220A (en) * 2017-11-30 2018-04-10 成都航天科工大数据研究院有限公司 A kind of cloud platform tenant management method based on multi-tenant and the industrial Internet of Things cloud platform for realizing this method
CN108681288A (en) * 2018-06-28 2018-10-19 上海电器科学研究所(集团)有限公司 A kind of novel maintenance system based on cloud platform
WO2019071134A1 (en) * 2017-10-06 2019-04-11 Stealthpath, Inc. Methods for internet communication security
CN110807905A (en) * 2019-10-23 2020-02-18 北方工业大学 Community fire monitoring system based on end-edge-cloud architecture
CN210155210U (en) * 2019-06-27 2020-03-17 宁波弘讯软件开发有限公司 Industrial electric power meter
CN111262961A (en) * 2020-01-16 2020-06-09 苏州浪潮智能科技有限公司 Cloud platform resource management method and device and electronic equipment
CN111866006A (en) * 2020-07-28 2020-10-30 山东浪潮通软信息科技有限公司 Internet of things supervision system and method
CN111899515A (en) * 2020-09-29 2020-11-06 深圳市城市交通规划设计研究中心股份有限公司 Vehicle detection system based on wisdom road edge calculates gateway
CN112738042A (en) * 2020-12-22 2021-04-30 上海上实龙创智能科技股份有限公司 Internet of things equipment model based on MQTT protocol and data penetration method thereof
CN112770321A (en) * 2021-01-18 2021-05-07 四川长虹电器股份有限公司 Internet of things equipment authentication and secure transmission method, computer equipment and storage medium
CN112769685A (en) * 2019-11-05 2021-05-07 中国科学院沈阳自动化研究所 Industrial gateway from UPC UA to MQTT and communication method thereof
WO2021207191A1 (en) * 2020-04-06 2021-10-14 Computime Ltd. Method and apparatus to implement a home computing cloud
CN113507483A (en) * 2021-07-27 2021-10-15 平安国际智慧城市科技股份有限公司 Instant messaging method, device, server and storage medium
CN113612605A (en) * 2021-08-02 2021-11-05 中电信量子科技有限公司 Method, system and equipment for enhancing MQTT protocol identity authentication by using symmetric cryptographic technology
CN113687989A (en) * 2021-08-09 2021-11-23 华东师范大学 Internet of things data anomaly detection method and system based on server-free architecture

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102857566B (en) * 2012-09-06 2018-07-06 上海计算机软件技术开发中心 A kind of intelligent networking gateway that can be software customized
US20200412713A1 (en) * 2019-06-28 2020-12-31 Gemini Open Cloud Computing Inc. Authentication and authorization integration system in heterogeneous cloud platform
CN113691575A (en) * 2020-05-18 2021-11-23 华为技术有限公司 Communication method, device and system
CN113098863B (en) * 2021-03-31 2022-03-11 郑州信大捷安信息技术股份有限公司 TLS + MQTT protocol-based Internet of things double-authentication method and system
CN114285890B (en) * 2021-12-10 2024-03-15 西安广和通无线通信有限公司 Cloud platform connection method, device, equipment and storage medium

Patent Citations (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101217508A (en) * 2007-12-29 2008-07-09 腾讯科技(深圳)有限公司 A network agent system and the corresponding realizing methods based on instant communication platform
CN107493310A (en) * 2016-06-13 2017-12-19 腾讯科技(深圳)有限公司 A kind of cloud resource processing method and cloud management platform
CN107147666A (en) * 2017-06-07 2017-09-08 江苏海平面数据科技有限公司 The method of data encrypting and deciphering between internet-of-things terminal and cloud data platform
CN107846447A (en) * 2017-09-21 2018-03-27 烽火通信科技股份有限公司 A kind of method of the home terminal access message-oriented middleware based on MQTT agreements
WO2019071134A1 (en) * 2017-10-06 2019-04-11 Stealthpath, Inc. Methods for internet communication security
CN107896220A (en) * 2017-11-30 2018-04-10 成都航天科工大数据研究院有限公司 A kind of cloud platform tenant management method based on multi-tenant and the industrial Internet of Things cloud platform for realizing this method
CN108681288A (en) * 2018-06-28 2018-10-19 上海电器科学研究所(集团)有限公司 A kind of novel maintenance system based on cloud platform
CN210155210U (en) * 2019-06-27 2020-03-17 宁波弘讯软件开发有限公司 Industrial electric power meter
CN110807905A (en) * 2019-10-23 2020-02-18 北方工业大学 Community fire monitoring system based on end-edge-cloud architecture
CN112769685A (en) * 2019-11-05 2021-05-07 中国科学院沈阳自动化研究所 Industrial gateway from UPC UA to MQTT and communication method thereof
CN111262961A (en) * 2020-01-16 2020-06-09 苏州浪潮智能科技有限公司 Cloud platform resource management method and device and electronic equipment
WO2021207191A1 (en) * 2020-04-06 2021-10-14 Computime Ltd. Method and apparatus to implement a home computing cloud
CN111866006A (en) * 2020-07-28 2020-10-30 山东浪潮通软信息科技有限公司 Internet of things supervision system and method
CN111899515A (en) * 2020-09-29 2020-11-06 深圳市城市交通规划设计研究中心股份有限公司 Vehicle detection system based on wisdom road edge calculates gateway
CN112738042A (en) * 2020-12-22 2021-04-30 上海上实龙创智能科技股份有限公司 Internet of things equipment model based on MQTT protocol and data penetration method thereof
CN112770321A (en) * 2021-01-18 2021-05-07 四川长虹电器股份有限公司 Internet of things equipment authentication and secure transmission method, computer equipment and storage medium
CN113507483A (en) * 2021-07-27 2021-10-15 平安国际智慧城市科技股份有限公司 Instant messaging method, device, server and storage medium
CN113612605A (en) * 2021-08-02 2021-11-05 中电信量子科技有限公司 Method, system and equipment for enhancing MQTT protocol identity authentication by using symmetric cryptographic technology
CN113687989A (en) * 2021-08-09 2021-11-23 华东师范大学 Internet of things data anomaly detection method and system based on server-free architecture

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
MILICA MATIĆ;: "Scheduling messages within MQTT shared subscription group in the clustered cloud architecture", 2020 28TH TELECOMMUNICATIONS FORUM (TELFOR), 11 January 2021 (2021-01-11) *
赖美森: "物联网断路器系统的设计与实现", 工程科技Ⅱ辑, 15 January 2021 (2021-01-15) *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023103331A1 (en) * 2021-12-10 2023-06-15 西安广和通无线通信有限公司 Cloud platform connection method and apparatus, and device and storage medium

Also Published As

Publication number Publication date
CN114285890B (en) 2024-03-15
WO2023103331A1 (en) 2023-06-15

Similar Documents

Publication Publication Date Title
EP3391616B1 (en) Device management with tunneling
US11140137B2 (en) Method and industrial computing apparatus for performing a secure communication
EP3575975B1 (en) Method and apparatus for operating smart network interface card
CN109586962B (en) Device and method for processing HTTPS (hypertext transfer protocol secure) outer chain problem of upgrading IPv4 to IPv6 and electronic equipment
US10244392B2 (en) Over-the-air personalization of network devices
CN108924219B (en) Method, device and system for remotely operating terminal
CN111666539B (en) Real estate resource management method, device, server and storage medium
CN112883366A (en) Account sharing login method, device, system, electronic equipment and storage medium
US10990694B2 (en) Processing private data using a workflow action
CN111163052B (en) Method, device, medium and electronic equipment for connecting Internet of things platform
CN112165727A (en) Parallel network distribution system and method and mobile terminal
CN114285890B (en) Cloud platform connection method, device, equipment and storage medium
CN111314355B (en) Authentication method, device, equipment and medium of VPN (virtual private network) server
CN112769757A (en) Data pushing method, device and system
US20170286560A1 (en) Method, device and system for device troubleshooting service of the internet of things
CN110535977B (en) File distribution method and device, computer device and storage medium
CN113014610B (en) Remote access method, device and system
CN109543398B (en) Application program account migration method and device and electronic equipment
CN108288135B (en) System compatibility method and device, computer readable storage medium and electronic equipment
Karlsson Internet of Things–Does Particle Photon rely too much on its own cloud solution?
JP6366037B2 (en) Account aggregation system, program and account aggregation server
US20230093470A1 (en) Account authorization mapping
US10601677B2 (en) Device and method for a dynamic virtual private network and computer readable recording medium
US11102085B2 (en) Service implementations via resource agreements
US8601106B2 (en) Remote command execution over a network

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