CN114285890B - 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
CN114285890B
CN114285890B CN202111506295.6A CN202111506295A CN114285890B CN 114285890 B CN114285890 B CN 114285890B CN 202111506295 A CN202111506295 A CN 202111506295A CN 114285890 B CN114285890 B CN 114285890B
Authority
CN
China
Prior art keywords
cloud platform
parameters
mqtt
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.)
Active
Application number
CN202111506295.6A
Other languages
Chinese (zh)
Other versions
CN114285890A (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

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Stored Programmes (AREA)
  • Information Transfer Between Computers (AREA)
  • Computer And Data Communications (AREA)

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 creation parameters of a cloud platform, wherein the creation parameters indicate connection of the cloud platform; acquiring an algorithm corresponding to the cloud platform from a preconfigured algorithm; invoking an algorithm to acquire an MQTT authentication parameter corresponding to the creation parameter; and establishing connection with the cloud platform according to the MQTT authentication parameters. Since the algorithm of the cloud platform for acquiring the MQTT certification parameters is preconfigured, the MQTT certification parameters for connecting the platforms can be acquired even if the SDK is not deployed.

Description

Cloud platform connection method, device, equipment and storage medium
Technical Field
The present disclosure relates to the field of computers, and in particular, to a cloud platform connection method, device, equipment, and storage medium.
Background
Along with the development of the internet of things technology, each big company gives out own MQTT (Message Queuing Telemetry Transport, message queue telemetry transmission protocol) internet of things cloud platform schemes, such as Arian cloud, hua-Gui cloud, amazon cloud, baidu cloud, tencent cloud and the like, each cloud platform is in butt joint with an SDK (software development kit) or a specific authentication method provided by a platform, then connection with the cloud platform is completed on the basis of MQTT standard protocols, and severe butt joint requirements are provided for an internet of things module, so that different MQTT cloud platforms must be in butt joint by using different SDKs, and the internet of things module must provide different software to adapt to different cloud platforms, so that the development cost and the maintenance cost are not small.
Disclosure of Invention
The application provides a cloud platform connection method, device, equipment and storage medium, which are used for solving the problems of high development cost and maintenance cost caused by the fact that an internet of things module must provide different software to adapt to different cloud platforms when different SDKs are used for docking different MQTT cloud platforms in the related technology.
In a first aspect, a cloud platform connection method is provided, including:
acquiring creation parameters of a cloud platform, wherein the creation parameters indicate connection to the cloud platform;
acquiring an algorithm corresponding to the cloud platform from a preconfigured algorithm;
invoking the algorithm to obtain an MQTT authentication parameter corresponding to the creation parameter;
and establishing connection with the cloud platform according to the MQTT authentication parameters.
Optionally, the creation 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, according to an instruction of a user, the MQTT authentication parameter corresponding to the creation parameter.
Optionally, the creation parameters include device parameters and product parameters of the cloud platform side;
invoking the algorithm to obtain an MQTT authentication parameter corresponding to the creation parameter, including:
and calculating the equipment parameters and the product parameters by adopting the algorithm to obtain the MQTT authentication parameters.
Optionally, the creation parameters include product parameters of the cloud platform side;
invoking the algorithm to obtain an MQTT authentication parameter corresponding to the creation parameter, including:
acquiring at least one equipment parameter corresponding to the product parameter;
acquiring target equipment parameters from the at least one equipment 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 connection with the cloud platform according to the MQTT certification parameter, the method further includes:
encrypting the MQTT authentication parameters;
establishing connection with the cloud platform according to the MQTT authentication parameters, including:
and establishing connection with the cloud platform by adopting the encrypted MQTT authentication parameters.
Optionally, establishing connection with the cloud platform according to the MQTT authentication parameter, including:
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 internet of things module and the cloud platform;
the Internet of things module is used for acquiring creation parameters of a cloud platform, wherein the creation parameters indicate connection to the cloud platform; acquiring an algorithm corresponding to the cloud platform from a preconfigured algorithm; invoking the algorithm to obtain an MQTT authentication parameter corresponding to the creation parameter; and establishing connection with the cloud platform according to the MQTT authentication parameters.
In a third aspect, a cloud platform connection device is provided, including:
the cloud platform connection control system comprises a first acquisition unit, a second acquisition unit and a control unit, wherein the first acquisition unit is used for acquiring creation parameters of a cloud platform, and the creation parameters indicate connection to the cloud platform;
the second acquisition unit is used for acquiring an algorithm corresponding to the cloud platform from preset algorithms;
the calling unit is used for calling the algorithm and acquiring the 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, there is provided an electronic device comprising: the device 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 is used 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, in which a computer program is stored, where 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: in the technical scheme provided by the embodiment of the application, the creation parameters of the cloud platform are acquired, and the creation parameters indicate the connection to the cloud platform; acquiring an algorithm corresponding to the cloud platform from a preconfigured algorithm; invoking an algorithm to acquire an MQTT authentication parameter corresponding to the creation parameter; and establishing connection with the cloud platform according to the MQTT authentication parameters. Since the algorithm of the cloud platform for acquiring the MQTT certification parameters is preconfigured, the MQTT certification parameters for connecting the platforms can be acquired 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 invention or the technical solutions of the prior art, the drawings which are used in the description of the embodiments or the prior art will be briefly described, and it will be obvious to a person skilled in the art that other drawings can be obtained from these drawings without inventive effort.
FIG. 1 is a schematic flow chart of a cloud platform connection in the related art;
fig. 2 is a schematic flow chart of cloud platform connection in the embodiment of the present application;
fig. 3 is a schematic flow chart of cloud platform connection according to an embodiment of the present application;
fig. 4 is a signaling flow chart of cloud platform connection in the embodiment of the present application;
fig. 5 is a schematic structural diagram of a cloud platform connection system according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a cloud platform connection device according to 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
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of 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 apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present application based on the embodiments herein.
It should be noted that the terms "first," "second," and the like in the description and claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that embodiments of the present application described herein may be implemented in sequences other than those illustrated or otherwise 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 describing embodiments of the present invention in further detail, the terms and terminology involved in the embodiments of the present invention will be described, and the terms and terminology involved in the embodiments of the present invention will be used in the following explanation.
MQTT: message protocols under the ISO standard (ISO/IEC PRF 20922) based on the publish/subscribe paradigm. It works on the TCP/IP protocol family and is a publish/subscribe message protocol designed for remote devices with low hardware performance and in poor network conditions.
AT instruction: is sent from a Terminal (Terminal Equipment, TE) or data Terminal (Data Terminal Equipment, DTE) to a Terminal Adapter (TA) or data circuit Terminal (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 the AT two characters.
Each AT command line can only contain one AT command; the AT command ends with a carriage return, and responds or reports to end with a carriage return line.
SDK: software development kits are typically a collection of development tools that some software engineers create application software for a particular software package, software framework, hardware platform, operating system, or the like.
Cloud platform: also referred to as a cloud computing platform, refers to services based on hardware resources and software resources, providing computing, networking, and storage capabilities. Cloud computing platforms can be divided into 3 classes: a storage type cloud platform mainly used for data storage, a computing type cloud platform mainly used for data processing and a comprehensive cloud computing platform taking both computing and data storage processing into consideration.
MCU (Microcontroller Unit, micro control unit): the CPU frequency and specification of CPU (Central Process Unit) are properly reduced, and peripheral interfaces such as memory (Timer), USB, A/D conversion and UART, PLC, DMA, and even LCD driving circuit are integrated on a single chip to form a chip-level computer for different application occasions.
TLS protocol (secure transport layer protocol): for providing confidentiality and data integrity between two communication applications. The protocol consists of two layers: TLS recording protocol (TLS Record) and TLS Handshake protocol (TLS handle).
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 technology is introduced. As shown in fig. 1, the method comprises the following steps:
and step 101, transplanting SDK codes of the cloud platform by the Internet of things module.
Step 102, determining an AT instruction matched with the cloud platform through an MCU connected with the Internet of things module.
In the application, the MCU stores the corresponding relation between the cloud platform and the AT instruction, so that the corresponding relation can be queried through the identification of the cloud platform to determine the AT instruction matched with the cloud platform.
Step 103, obtaining parameters such as a device ID, a device key, a product ID, a product key, a 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 for uniquely identifying the hardware device and a device key for authenticating the hardware device.
It should be appreciated 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 104, calculating the parameters acquired in the previous step based on the SDK codes to obtain the MQTT authentication parameters of the cloud platform.
It is understood that the MQTT authentication parameter is used to implement connection between the cloud platform and the internet of things module based on the MQTT protocol.
It should be appreciated that the MQTT certification parameters herein include, but are not limited to, client ID (device identification), username (user name), and password.
And 105, configuring an MQTT authentication parameter in the AT instruction, and completing connection of the Internet of things module and the cloud platform through the AT instruction.
In the related art, an algorithm for calculating the MQTT authentication parameters is deployed in the SDK codes, and the SDK codes integrated by different cloud platforms are different, so that in order to realize connection with different cloud platforms through the MQTT protocol, the SDK codes of different cloud platforms need to be respectively transplanted into the Internet of things module, so that the MQTT authentication parameters of different cloud platforms can be calculated and adapted by adopting the SDK codes, and further the connection with different cloud platforms is realized through the MQTT authentication parameters based on the MQTT protocol. However, the SDK codes of different cloud platforms are transplanted, which puts forward a severe demand for docking on the internet of things module, 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.
In order to solve the technical problems in the related art, the embodiment of the application provides a cloud platform connection method, which can be applied to any electronic device;
the electronic device described in the embodiments of the present application may include a smart Phone (such as an Android mobile Phone, an iOS mobile Phone, a Windows Phone mobile 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, etc., which are merely examples, but not exhaustive, including but not limited to the above devices, and of course, the above 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 creation parameters of a cloud platform, wherein the creation parameters indicate connection to the cloud platform;
step 202, acquiring an algorithm corresponding to a cloud platform from a preconfigured algorithm;
step 203, invoking an algorithm to acquire an MQTT authentication parameter corresponding to the creation parameter;
and 204, establishing connection with the cloud platform according to the MQTT authentication parameters.
It should be understood that the MQTT certification parameter is a parameter capable of implementing connection with the cloud platform through the MQTT protocol.
It should be appreciated that the creation parameters of the cloud platform include, but are not limited to, manual input 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 MQTT authentication parameters corresponding to the creation parameters:
firstly, the creation parameters are MQTT parameters, the MQTT parameters comprise 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 obtains the MQTT authentication parameter corresponding to the creation parameters according to the indication of a user;
in this case, the MQTT certification parameters are obtained from the MQTT parameters.
In application, the MQTT certification parameters obtained from the MQTT parameters may be indicated by the user.
Second, creating parameters including equipment parameters and product parameters of the cloud platform side;
in this case, when the MQTT authentication parameters corresponding to the creation parameters are acquired, an algorithm is adopted to calculate the device parameters and the product parameters, so as 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 certification parameters.
It should be understood that the correspondence between the cloud platform and the algorithm is preconfigured in the electronic device, so when the algorithm corresponding to the cloud platform needs to be acquired, the preset correspondence between the cloud platform and the algorithm is queried by adopting the identification of the cloud platform, thereby acquiring 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, creating parameters including product parameters of a 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 target equipment parameters from at least one equipment parameter; and calculating the product parameters and the target equipment parameters by adopting an algorithm to obtain the MQTT authentication parameters.
The method includes, but is not limited to, acquiring at least one device parameter corresponding to a product parameter from a cloud platform by using an HTTP protocol.
The method includes, but is not limited to, obtaining a target device parameter from at least one device parameter based on an indication of a user.
It should be understood that the correspondence between the cloud platform and the algorithm is preconfigured in the electronic device, so when the algorithm corresponding to the cloud platform needs to be acquired, the preset correspondence between the cloud platform and the algorithm is queried by adopting the identification of the cloud platform, thereby acquiring 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 connection is established between the MQTT authentication parameters and the cloud platform.
Correspondingly, establishing connection with the cloud platform according to the MQTT authentication parameters comprises establishing connection with the cloud platform by adopting the encrypted MQTT authentication parameters.
In this embodiment, an AT instruction is specifically adopted to complete connection with the cloud platform.
In one 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 the MQTT authentication parameters to the cloud platform.
In the technical scheme provided by the embodiment of the application, the creation parameters of the cloud platform are acquired, and the creation parameters indicate the connection to the cloud platform; acquiring an algorithm corresponding to the cloud platform from a preconfigured algorithm; invoking an algorithm to acquire an MQTT authentication parameter corresponding to the creation parameter; and establishing connection with the cloud platform according to the MQTT authentication parameters. Since the algorithm of the cloud platform for acquiring the MQTT certification parameters is preconfigured, the MQTT certification parameters for connecting the platforms can be acquired even if the SDK is not deployed.
The above technical solution is explained below with reference to the example shown in fig. 3, and the main solution may 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 HTTP protocol or MQTT protocol.
Step 301, acquiring creation parameters of a cloud platform;
step 302, judging whether the creation parameters comprise equipment parameters, if so, executing step 303, otherwise, executing step 305;
step 303, acquiring an algorithm corresponding to the cloud platform;
step 304, calculating the creation parameters by adopting an algorithm corresponding to the cloud platform to obtain MQTT authentication parameters;
step 305, obtaining product parameters in the creation parameters;
step 306, obtaining at least one device parameter corresponding to the product parameter based on the HTTP protocol;
step 307, obtaining target device parameters from at least one device parameter;
step 308, acquiring an algorithm corresponding to the cloud platform;
step 309, calculating the product parameters and the target equipment parameters by adopting an algorithm to obtain MQTT authentication parameters;
step 310, configuring certificates in the device parameters;
step 311, an AT instruction matched with the cloud platform is obtained;
step 312, configuring MQTT authentication parameters to the AT instruction;
step 313, encrypting the MQTT authentication parameter in the AT instruction by adopting the certificate;
and step 314, sending an AT instruction for configuring the encrypted MQTT authentication parameters to the cloud platform.
The above technical solution is explained below with reference to the example shown in fig. 4, and the main solution may be implemented by the technical solutions represented by steps 301 to 303:
step 401, an internet of things module acquires creation parameters 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 the MQTT authentication parameters from the creation parameters;
step 404, the information acquisition module returns an MQTT authentication parameter to the internet of things module;
step 405, the internet of things module configures MQTT authentication parameters into AT instructions;
step 406, the internet of things module encrypts the MQTT authentication parameter in the AT instruction based on the selected TLS connection;
step 407, the internet of things module initiates an MQTT connection.
Based on the same concept, the embodiments of the present application provide a cloud platform connection system, and the specific implementation of the system may refer to the description of the embodiment parts of the method, and the details are not repeated, as shown in fig. 5, where the system mainly includes:
the cloud platform comprises an internet of things module 501 and a cloud platform 502;
the internet of things module 501 is configured to obtain creation parameters of the cloud platform 502, where the creation parameters indicate connection to the cloud platform 502; acquiring an algorithm corresponding to the cloud platform 502 from the pre-configured algorithms; invoking an algorithm to acquire an MQTT authentication parameter corresponding to the creation parameter; a connection is established with cloud platform 502 in accordance with MQTT authentication parameters.
Based on the same conception, the embodiment of the present application provides a cloud platform connection device, and the specific implementation of the device may be referred to the description of the embodiment of the method, and the repetition is omitted, as shown in fig. 6, where the device 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 the pre-configured algorithms;
a calling unit 603, configured to call an algorithm, and obtain an MQTT authentication parameter corresponding to the creation parameter;
and the establishing unit 604 is used for establishing connection with the cloud platform according to the MQTT authentication parameters.
Optionally, the creation 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 obtains the MQTT authentication parameter corresponding to the creation 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 acquisition unit 602 is configured to:
and calculating the equipment parameters and the product parameters by adopting an algorithm to obtain the MQTT authentication parameters.
Optionally, the creation parameters include product parameters of the cloud platform side;
the second acquisition unit 602 is configured to:
acquiring at least one equipment parameter corresponding to the product parameter;
acquiring target equipment parameters from at least one equipment parameter;
and calculating the product parameters and the target equipment parameters by adopting an algorithm to obtain the MQTT authentication parameters.
The device is also used for:
encrypting the MQTT authentication parameters before establishing connection with the cloud platform according to the MQTT authentication parameters;
establishing connection with the cloud platform according to the MQTT authentication parameters, including:
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 a cloud platform;
configuring MQTT authentication parameters to the AT instruction;
and sending an AT instruction for configuring the MQTT authentication parameters to the cloud platform.
Based on the same concept, the embodiment of the application also provides an electronic device, as shown in fig. 7, where the electronic device mainly includes: a processor 701, a memory 702, and a communication bus 703, wherein the processor 701 and the memory 702 perform communication with each other through 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 creation parameters of a cloud platform, wherein the creation parameters indicate connection to the cloud platform;
acquiring an algorithm corresponding to the cloud platform from a preconfigured algorithm;
invoking an algorithm to acquire an MQTT authentication parameter corresponding to the creation parameter;
and establishing connection with the cloud platform according to the MQTT authentication parameters.
The communication bus 703 mentioned in the above-mentioned electronic device may be a peripheral component interconnect standard (Peripheral Component Interconnect, abbreviated to PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, abbreviated to EISA) bus, or the like. The communication bus 703 may be classified into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in fig. 7, but not only one bus or one type of bus.
The memory 702 may include random access memory (Random Access Memory, RAM) or may include non-volatile memory (non-volatile memory), such as at least one magnetic disk memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor 701.
The processor 701 may be a general-purpose processor including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), a digital signal processor (Digital Signal Processing, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a Field programmable gate array (Field-Programmable Gate Array, FPGA), or other programmable logic device, discrete gate or transistor logic device, or 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 perform the cloud platform connection method described in the above embodiments.
In the above embodiments, it may be implemented in whole or in part 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 the computer instructions are loaded and executed on a computer, the processes or functions described in accordance with the embodiments of the present application are produced in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, by a wired (e.g., coaxial cable, optical fiber, digital Subscriber Line (DSL)), or wireless (e.g., infrared, microwave, etc.) means from one website, computer, server, or data center to another. The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape, etc.), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk), etc.
It should be noted that in this document, relational terms such as "first" and "second" and the like are 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. Moreover, 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 one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing is only a specific embodiment of the invention to enable those skilled in the art to understand or practice the 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 (9)

1. The cloud platform connection method is characterized by comprising the following steps of:
acquiring creation parameters of a cloud platform, wherein the creation parameters indicate connection to the cloud platform;
acquiring an algorithm corresponding to the cloud platform from a preconfigured algorithm;
invoking the algorithm to obtain an MQTT authentication parameter corresponding to the creation parameter, wherein the MQTT authentication parameter is used for realizing the connection between the cloud platform and the Internet of things module based on an MQTT protocol;
establishing connection with the cloud platform according to the MQTT authentication parameters;
the creation parameters comprise equipment parameters and product parameters of the cloud platform side;
invoking the algorithm to obtain an MQTT authentication parameter corresponding to the creation parameter, including:
and calculating the equipment parameters and the product parameters by adopting the algorithm to obtain 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 certification parameter, any one of the at least one MQTT certification parameter points to one device on the cloud platform side, and the algorithm corresponding to the cloud platform is to obtain the MQTT certification parameter corresponding to the creation parameter according to the instruction of the user.
3. The method of claim 1, wherein the creation parameters include product parameters of the cloud platform side;
invoking the algorithm to obtain an MQTT authentication parameter corresponding to the creation parameter, including:
acquiring at least one equipment parameter corresponding to the product parameter;
acquiring target equipment parameters from the at least one equipment 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.
4. A method according to any of claims 1-3, further comprising, prior to establishing a connection with the cloud platform in accordance with the MQTT-certification parameters:
encrypting the MQTT authentication parameters;
establishing connection with the cloud platform according to the MQTT authentication parameters, including:
and establishing connection with the cloud platform by adopting the encrypted MQTT authentication parameters.
5. A method according to any of claims 1-3, wherein establishing a connection with the cloud platform in accordance with the MQTT certification 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.
6. A cloud platform connection system, comprising:
the internet of things module and the cloud platform;
the Internet of things module is used for acquiring creation parameters of a cloud platform, wherein the creation parameters indicate connection to the cloud platform; acquiring an algorithm corresponding to the cloud platform from a preconfigured algorithm; invoking the algorithm to obtain an MQTT authentication parameter corresponding to the creation parameter, wherein the MQTT authentication parameter is used for realizing the connection between the cloud platform and the Internet of things module based on an MQTT protocol; establishing connection with the cloud platform according to the MQTT authentication parameters;
the creation parameters comprise equipment parameters and product parameters of the cloud platform side;
invoking the algorithm to obtain an MQTT authentication parameter corresponding to the creation parameter, including:
and calculating the equipment parameters and the product parameters by adopting the algorithm to obtain the MQTT authentication parameters.
7. A cloud platform connection device, comprising:
the cloud platform connection control system comprises a first acquisition unit, a second acquisition unit and a control unit, wherein the first acquisition unit is used for acquiring creation parameters of a cloud platform, and the creation parameters indicate connection to the cloud platform;
the second acquisition unit is used for acquiring an algorithm corresponding to the cloud platform from preset algorithms;
the calling unit is used for calling the algorithm, acquiring an MQTT authentication parameter corresponding to the creation parameter, wherein the MQTT authentication parameter is used for realizing the connection between the cloud platform and the Internet of things module based on an MQTT protocol;
the establishing unit is used for establishing connection with the cloud platform according to the MQTT authentication parameters;
the creation parameters comprise equipment parameters and product parameters of the cloud platform side;
invoking the algorithm to obtain an MQTT authentication parameter corresponding to the creation parameter, including:
and calculating the equipment parameters and the product parameters by adopting the algorithm to obtain the MQTT authentication parameters.
8. An electronic device, comprising: the device 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 is used 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 any one of claims 1 to 5.
9. A computer readable storage medium storing a computer program, wherein the computer program when executed by a processor implements the cloud platform connection method of any of claims 1-5.
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 CN114285890A (en) 2022-04-05
CN114285890B true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114285890B (en) * 2021-12-10 2024-03-15 西安广和通无线通信有限公司 Cloud platform connection method, device, equipment 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).2021,全文. *
物联网断路器系统的设计与实现;赖美森;工程科技Ⅱ辑;20210115;全文 *

Also Published As

Publication number Publication date
CN114285890A (en) 2022-04-05
WO2023103331A1 (en) 2023-06-15

Similar Documents

Publication Publication Date Title
EP3333744B1 (en) Authorization code flow for in-browser applications
CN107360261B (en) HTTP request processing method and device and electronic equipment
EP3614643B1 (en) Oauth2 saml token service
CN108924219B (en) Method, device and system for remotely operating terminal
WO2017101186A1 (en) Method for establishing wireless connection for application of user equipment
US20150371327A1 (en) System for dynamically selecting a communications fabric
CN112165727B (en) Parallel network distribution system and method and mobile terminal
CN108549586B (en) Information processing method and device
CN114285890B (en) Cloud platform connection method, device, equipment and storage medium
CN111163052B (en) Method, device, medium and electronic equipment for connecting Internet of things platform
CN113438256B (en) Data transmission method, system and proxy server based on double-layer SSL
CN109495362B (en) Access authentication method and device
CN110808974A (en) Data acquisition method and device, computer device and storage medium
CN110572476B (en) Remote control method, device and equipment
CN110602218A (en) Method and related device for assembling cloud service in user-defined manner
CN113014610B (en) Remote access method, device and system
CN110535977B (en) File distribution method and device, computer device and storage medium
CN108288135B (en) System compatibility method and device, computer readable storage medium and electronic equipment
KR101660791B1 (en) Client device of service proving system, and service providing method therof
Karlsson Internet of Things–Does Particle Photon rely too much on its own cloud solution?
US20190230146A1 (en) Communicating with a remote service through a hypertext transfer protocol (http) session
CN115297066B (en) Resource dynamic cooperation method, device, server and medium
US8738049B1 (en) Converged dialog in hybrid mobile applications
US11102085B2 (en) Service implementations via resource agreements
CN116192950A (en) Communication method and device based on GRPC communication protocol and electronic equipment

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