CN111163052A - Method, device, medium and electronic equipment for connecting Internet of things platform - Google Patents

Method, device, medium and electronic equipment for connecting Internet of things platform Download PDF

Info

Publication number
CN111163052A
CN111163052A CN201911205180.6A CN201911205180A CN111163052A CN 111163052 A CN111163052 A CN 111163052A CN 201911205180 A CN201911205180 A CN 201911205180A CN 111163052 A CN111163052 A CN 111163052A
Authority
CN
China
Prior art keywords
terminal
internet
things platform
information
platform
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
CN201911205180.6A
Other languages
Chinese (zh)
Other versions
CN111163052B (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.)
Taikang Insurance Group Co Ltd
Original Assignee
Taikang Insurance Group 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 Taikang Insurance Group Co Ltd filed Critical Taikang Insurance Group Co Ltd
Priority to CN201911205180.6A priority Critical patent/CN111163052B/en
Publication of CN111163052A publication Critical patent/CN111163052A/en
Application granted granted Critical
Publication of CN111163052B publication Critical patent/CN111163052B/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
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/083Network architectures or network communication protocols for network security for authentication of entities using passwords
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0876Network architectures or network communication protocols for network security for authentication of entities based on the identity of the terminal or configuration, e.g. MAC address, hardware or software configuration or device fingerprint
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer Security & Cryptography (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Power Engineering (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a method for connecting an Internet of things platform, which is applied to a server or a terminal, and comprises the following steps: receiving terminal information; generating a configuration file of the terminal based on the terminal information; the method comprises the steps of receiving a request sent by a terminal and connected with the Internet of things platform, sending a configuration file to a sending terminal according to the request, enabling the terminal to be connected with the Internet of things platform according to the configuration file, and therefore a user does not need to memorize a terminal id, a user name, a password and an access address, information of the terminal accessed to the Internet platform is protected, loss is prevented, and working efficiency of the user can be improved. The invention also provides a platform device, a medium and electronic equipment for connecting the Internet of things.

Description

Method, device, medium and electronic equipment for connecting Internet of things platform
Technical Field
The invention relates to the technical field of connection of Internet of things, in particular to a method, a device, a medium and electronic equipment for connecting an Internet of things platform.
Background
With the high-speed development of the technology of the internet of things, various terminals have intelligent capability, the terminals can be accessed into the platform of the internet of things through various protocols at present, the internet of things performs equipment management, and services are uniformly and externally performed through interfaces, so that the connection development of the application to the equipment is simplified, and the application is enabled to be rapidly iterated. However, when the terminal accesses the internet of things platform, various factors need to be considered, including data encryption, device authentication, communication authentication and other complex steps. For example, a user registers equipment through the Internet of things platform, the Internet of things platform allocates a unique id, a user name and a password to the terminal, and the terminal can be connected to the Internet of things platform through the id, the user name and the password, so that the purpose of equipment authentication is achieved. However, such a connection method is too cumbersome, and each time a user connects to the internet of things platform, the user needs id, user name and password, and if the number of terminals is large, the user needs to remember the id, user name and password of each terminal, so that the workload of the user is caused, and the working efficiency is further reduced.
It is to be noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present invention and therefore may include information that does not constitute prior art known to a person of ordinary skill in the art.
Disclosure of Invention
Embodiments of the present invention provide a method, an apparatus, a medium, and an electronic device for connecting an internet of things platform, so that at least when a terminal connects to the internet of things platform, a user does not need to care about trivial information (e.g., a terminal id, a user name, and a password), thereby protecting device access information and preventing loss.
Additional features and advantages of the invention will be set forth in the detailed description which follows, or may be learned by practice of the invention.
According to a first aspect of the embodiments of the present invention, there is provided a method for connecting an internet of things platform, which is applied to a server, and the method includes: receiving terminal information; configuring the communication link authority of the terminal according to the terminal information; configuring information of the terminal on the Internet of things platform according to the terminal information; generating a configuration file of the terminal based on the terminal information, the communication link authority of the terminal, the encryption information of the terminal and the information of the terminal on the platform of the Internet of things; and receiving a request for connecting the Internet of things platform sent by the terminal, and sending the configuration file to a sending terminal according to the request, so that the terminal is connected with the Internet of things platform according to the configuration file.
In some embodiments of the present invention, configuring the communication link authority of the terminal according to the terminal information comprises: and configuring the authority of the terminal according to the terminal information through a message queue telemetry transmission protocol so as to acquire the communication link authority of the terminal.
In some embodiments of the invention, the terminal information comprises any one or more of: the terminal identification, the terminal ip address, the terminal physical address, the terminal location information, and the terminal type, wherein the information of the terminal on the internet of things platform includes any one or more of the following items: the method comprises the steps of logging in an account and a password of the Internet of things platform, the identification of the terminal on the Internet of things platform and the topological relation of the terminal on the Internet of things platform.
According to a second aspect of the embodiments of the present invention, there is provided a method for connecting an internet of things platform, which is applied to a terminal, and the method includes: sending a request for connecting the Internet of things platform to a server; receiving a configuration file which is sent by the server and determined according to the request, wherein the configuration file comprises any one or more of the following items: the terminal comprises encryption information of the terminal, communication link permission of the terminal, identification of the terminal, position information of the terminal, the type of the terminal, account numbers and passwords for logging in the Internet of things platform, identification of the Internet of things platform, topological relation of the Internet of things platform and addresses of the Internet of things platform accessed by the terminal, and the Internet of things platform is connected based on the configuration file.
In some embodiments of the invention, connecting the internet of things platform based on the configuration file comprises: analyzing the configuration file through the SDK to obtain an account and a password for logging in the Internet of things platform, an identifier of the terminal and an address for accessing the terminal to the Internet of things platform; and based on the account number and the password for logging in the Internet of things platform, the identification of the terminal and the address for accessing the terminal into the Internet of things platform, the terminal is connected with the Internet of things platform.
In some embodiments of the invention, the method further comprises: after the terminal is successfully connected with the Internet of things platform, the configuration file is analyzed through the SDK, encryption information of the terminal, communication link permission of the terminal and the topological relation of the terminal on the Internet of things platform are obtained, and communication with the Internet of things platform is achieved based on the encryption information of the terminal, the communication link permission of the terminal and the topological relation of the terminal on the Internet of things platform.
According to a third aspect of the embodiments of the present invention, there is provided a platform device for connecting to an internet of things, which is applied to a server, and includes: the receiving module is used for receiving terminal information; the first configuration module is used for configuring the encryption information of the terminal according to the terminal information; the second configuration module is used for configuring the communication link authority of the terminal according to the terminal information; the third configuration module is used for configuring the information of the terminal on the Internet of things platform according to the terminal information; the generating module is used for generating a configuration file of the terminal based on the terminal information, the communication link authority of the terminal, the encryption information of the terminal and the information of the terminal on the Internet of things platform; the connection module is used for receiving a request sent by the terminal for connecting the Internet of things platform and sending the configuration file to the sending terminal according to the request, so that the terminal is connected with the Internet of things platform according to the configuration file.
In some embodiments of the present invention, the second configuration module is further configured to perform permission configuration on the terminal according to the terminal information through a message queue telemetry transmission protocol, so as to obtain a communication link permission of the terminal.
In some embodiments of the invention, the terminal information comprises any one or more of: the terminal identification, the terminal ip address, the terminal physical address, the terminal location information, and the terminal type, wherein the information of the terminal on the internet of things platform includes any one or more of the following items: the method comprises the steps of logging in an account and a password of the Internet of things platform, the identification of the terminal on the Internet of things platform and the topological relation of the terminal on the Internet of things platform.
According to a fourth aspect of the embodiments of the present invention, there is provided a platform device for connecting internet of things, which is applied to a terminal, and the device includes: the sending module is used for sending a request for connecting the Internet of things platform to a server; a receiving module, configured to receive a configuration file sent by the server and determined according to the request, where the configuration file includes any one or more of the following items: the terminal comprises encryption information of the terminal, communication link permission of the terminal, an identifier of the terminal, position information of the terminal, the type of the terminal, an account and a password for logging in the Internet of things platform, the identifier of the terminal on the Internet of things platform, a topological relation of the terminal on the Internet of things platform and an address of the terminal for accessing the Internet of things platform; and the connection module is used for connecting the Internet of things platform based on the configuration file.
In some embodiments of the invention, the connection module comprises: the first analysis module is used for analyzing the configuration file through the SDK to obtain an account and a password for logging in the Internet of things platform, an identifier of the terminal and an address for accessing the terminal to the Internet of things platform; and the connection sub-module is used for connecting the address of the Internet of things platform accessed by the terminal and the Internet of things platform based on the account number and the password for logging in the Internet of things platform.
In some embodiments of the present invention, after the terminal is successfully connected to the internet of things platform, the apparatus further includes: the second analysis module is used for analyzing the configuration file through the SDK to obtain the encryption information of the terminal, the communication link authority of the terminal and the topological relation of the terminal on the Internet of things platform; and the communication module is used for communicating with the Internet of things platform based on the encrypted information of the terminal, the communication link authority of the terminal and the topological relation of the terminal on the Internet of things platform.
According to a fifth aspect of embodiments of the present invention, there is provided an electronic apparatus, including: one or more processors; a storage device configured to store one or more programs, which when executed by the one or more processors, cause the one or more processors to implement the method for connecting to an internet of things platform according to the first aspect or the second aspect of the embodiments.
According to a sixth aspect of the embodiments of the present invention, there is provided a computer readable medium, on which a computer program is stored, which when executed by a processor, implements the method for connecting to the internet of things platform according to the first aspect or the second aspect of the embodiments.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
in the technical solutions provided in some embodiments of the present invention, a server may receive terminal information, generate a configuration file of a terminal based on the terminal information, receive a request for connecting to the internet of things platform sent by the terminal, and send the configuration file to a sending terminal according to the request, so that the terminal is connected to the internet of things platform according to the configuration file, and thus, a user does not need to remember a terminal id, a user name, a password, and an access address, thereby protecting information of the terminal accessing to the internet platform, preventing loss, and improving the working efficiency of the user.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.
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. It is obvious that the drawings in the following description are only some embodiments of the invention, and that for a person skilled in the art, other drawings can be derived from them without inventive effort. In the drawings:
fig. 1 is a schematic diagram illustrating an exemplary system architecture to which a method of connecting to an internet of things platform or a platform device of the internet of things can be applied according to an embodiment of the present invention;
fig. 2 is a flowchart schematically illustrating a method for connecting to an internet of things platform applied to a server according to an embodiment of the present invention;
fig. 3 is a flowchart schematically illustrating a method for connecting an internet of things platform applied to a terminal according to an embodiment of the present invention;
fig. 4 is a flowchart schematically illustrating a method of connecting to an internet of things platform applied to a terminal according to another embodiment of the present invention;
fig. 5 is a flowchart schematically illustrating a method of connecting to an internet of things platform applied to a terminal according to another embodiment of the present invention;
fig. 6 schematically shows a schematic diagram of an interaction of an internet of things platform and a terminal according to an embodiment of the invention;
fig. 7 is a block diagram schematically illustrating a platform device for connecting internet of things applied to a server according to an embodiment of the present invention;
fig. 8 is a block diagram schematically illustrating a platform device for connecting internet of things applied to a terminal according to an embodiment of the present invention;
fig. 9 is a block diagram schematically illustrating a platform device for connecting internet of things applied to a terminal according to another embodiment of the present invention;
fig. 10 is a block diagram schematically illustrating a platform device for connecting internet of things applied to a terminal according to another embodiment of the present invention;
FIG. 11 illustrates a schematic structural diagram of a computer system suitable for use with the electronic device to implement an embodiment of the invention.
FIG. 12 shows a schematic diagram of a computer system suitable for use with an electronic device to implement another embodiment of the invention
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art.
Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to provide a thorough understanding of embodiments of the invention. One skilled in the relevant art will recognize, however, that the invention may be practiced without one or more of the specific details, or with other methods, components, devices, steps, and so forth. In other instances, well-known methods, devices, implementations or operations have not been shown or described in detail to avoid obscuring aspects of the invention.
The block diagrams shown in the figures are functional entities only and do not necessarily correspond to physically separate entities. I.e. these functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor means and/or microcontroller means.
The flow charts shown in the drawings are merely illustrative and do not necessarily include all of the contents and operations/steps, nor do they necessarily have to be performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
Fig. 1 is a schematic diagram illustrating an exemplary system architecture to which a method for connecting to an internet of things platform or a device for connecting to an internet of things platform according to an embodiment of the present invention may be applied.
As shown in fig. 1, the system architecture 100 may include one or more of terminals 101, 102, 103, a network 104, and a server 105. The network 104 serves as a medium for providing communication links between the terminals 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
It should be understood that the number of terminals, networks, and servers in fig. 1 are merely illustrative. There may be any number of terminals, networks, and servers, as desired for an implementation. For example, server 105 may be a server cluster comprised of multiple servers, or the like.
The user may use the terminals 101, 102, 103 to interact with the server 105 via the network 104 to receive or send messages or the like. The terminals 101, 102, 103 may be various electronic devices having a display screen, including but not limited to smart phones, tablet computers, portable computers, desktop computers, and the like.
The server 105 may be a server that provides various services. For example, a user registers the terminal 103 (which may also be the terminal 101 or 102) on the internet of things platform of the server 105, so that the server 105 acquires information of the terminal 103, then the server 105 generates a configuration file of the terminal 103 based on the information of the terminal 103, receives a request sent by the terminal 103 to connect to the internet of things platform, and sends the configuration file to the sending terminal 103 according to the request, so that the terminal 103 connects to the internet of things platform according to the configuration file, and thus, the user does not need to remember a terminal id, a user name, a password, and an access address, thereby protecting information of the terminal accessing to the internet platform, preventing loss, and improving the working efficiency of the user.
In some embodiments, the method for connecting to the internet of things platform provided by the embodiments of the present invention is generally performed by the server 105, and accordingly, the internet of things platform device is generally disposed in the server 105. In other embodiments, some terminals may have similar functionality as the server to perform the method. Therefore, the method for connecting the internet of things platform provided by the embodiment of the invention is not limited to be executed at the server side.
Fig. 2 is a flowchart schematically illustrating a method for connecting to an internet of things platform applied to a server according to an embodiment of the present invention.
As shown in fig. 2, the method for connecting to the internet of things platform applied to the server may include steps S210 to S260.
In step S210, terminal information is received.
In step S220, the encryption information of the terminal is configured according to the terminal information.
In step S230, the communication link authority of the terminal is configured according to the terminal information.
In step S240, information of the terminal on the internet of things platform is configured according to the terminal information.
In step S250, a configuration file of the terminal is generated based on the terminal information, the communication link authority of the terminal, the encryption information of the terminal, and the information of the terminal on the internet of things platform.
In step S260, a request for connecting the internet of things platform sent by the terminal is received, and the configuration file is sent to the sending terminal according to the request, so that the terminal is connected to the internet of things platform according to the configuration file.
The method can receive terminal information, configures encryption information of the terminal, communication link authority of the terminal and information of the terminal on the Internet of things platform according to the terminal information, generates a configuration file of the terminal based on the terminal information, the communication link authority of the terminal, the encryption information of the terminal and the information of the terminal on the Internet of things platform, receives a request sent by the terminal and connected with the Internet of things platform, and sends the configuration file to a sending terminal according to the request so that the terminal is connected with the Internet of things platform according to the configuration file, and therefore a user does not need to memorize a terminal id, a user name, a password and an access address, information of the terminal accessed to the Internet of platform is protected, loss is prevented, and working efficiency of the user can be improved.
In an embodiment of the present invention, the terminal information may include any one or more of the following items: the identification of the terminal, the ip address of the terminal, the physical address of the terminal, the position information of the terminal and the type of the terminal. For example, when the terminal is connected with the internet of things platform, the terminal firstly needs to be registered on the internet of things platform, so that the background server of the internet of things platform can acquire the information of the terminal.
In an embodiment of the present invention, after the user registers the terminal on the platform of the internet of things, the server may configure the terminal according to the terminal information. In this example, the server may include a configurator for configuring the terminal. The configurator may configure the terminal according to the terminal information. For example, the configurator may configure encryption information of the terminal according to the terminal information, configure communication link authority of the terminal according to the terminal information, configure information of the terminal on the internet of things platform according to the terminal information, and generate a configuration file of the terminal based on the terminal information, the communication link authority of the terminal, the encryption information of the terminal, and the information of the terminal on the internet of things platform.
In an embodiment of the present invention, the encryption information may be a key used for encrypting data when the terminal interacts with the server, so as to ensure security of the data during the interaction.
In an embodiment of the invention, the communication link permission refers to a communication link permission for a terminal to access an internet of things platform, and the terminal can perform data interaction with the internet of things platform through a communication link configured by a configurator, so that the phenomenon that the internet of things platform cannot know timely because the terminal sends data to other links is avoided. For example, the configurator may configure the communication link permissions of the terminal according to the ip address and/or the physical address of the terminal.
In an embodiment of the present invention, the information of the terminal on the internet of things platform may include any one or more of the following items: the method comprises the steps of logging in an account and a password of the Internet of things platform, the identification of the terminal on the Internet of things platform and the topological relation of the terminal on the Internet of things platform. The account and the password for logging in the internet of things platform can be configured by the configurator according to each terminal id. The identifier of the terminal on the platform of the internet of things can be the id of the terminal on the platform of the internet of things configured by the configurator according to the id of each terminal. The topological relation of the terminal on the platform of the internet of things can be the topological relation of the terminal on the platform of the internet of things which is configured by the configurator according to the type of each terminal, for example, the terminal is an intelligent desk lamp, the intelligent desk lamp is connected with the platform of the internet of things through a gateway when being connected with the platform of the internet of things, and the network can be a computer. In this case, the configurator configures the topological relation of each terminal on the platform of the internet of things as the platform of the intelligent desk lamp, the gateway and the internet of things according to the type of the terminal.
In an embodiment of the present invention, the configurator may further generate a configuration file of the terminal based on the terminal information, the communication link authority of the terminal, the encryption information of the terminal, and the information of the terminal on the platform of the internet of things. When a user uses the terminal to connect the Internet of things platform, the user only needs to download the configuration file from the Internet of things platform, the terminal can be connected with the Internet of things platform based on the configuration file, the user does not need to use a user name and a password to realize the connection with the Internet of things platform, and the user does not need to remember the terminal id, the user name, the password and the access address, so that the information of the terminal accessing the Internet platform is protected, the loss is prevented, and the working efficiency of the user can be improved.
In one embodiment of the present invention, configuring the communication link authority of the terminal according to the terminal information includes: and configuring the authority of the terminal according to the terminal information through a message queue telemetry transmission protocol so as to acquire the communication link authority of the terminal. For example, the authority configuration is performed on the terminal according to the ip address and/or the physical address of the terminal through a message queue telemetry transmission protocol, so as to obtain the communication link authority of the terminal. The communication link permission can refer to the communication link permission of the terminal for accessing the platform of the internet of things, and the terminal can perform data interaction with the platform of the internet of things through the communication link configured by the configurator, so that the phenomenon that the platform of the internet of things cannot know timely due to the fact that the terminal sends data to other links is avoided. In this example, the message queue Telemetry transport protocol may be abbreviated as mqtt (message Queuing Telemetry transport) protocol
Fig. 3 is a flowchart schematically illustrating a method for connecting to an internet of things platform applied to a terminal according to an embodiment of the present invention.
As shown in fig. 3, the method for connecting to the internet of things platform applied to the terminal includes steps S310 to S330.
In step S310, a request for connecting the internet of things platform is sent to a server.
In step S320, a configuration file determined according to the request sent by the server is received.
In step S330, the internet of things platform is connected based on the configuration file.
According to the method, the terminal can send a request for connecting the Internet of things platform to the server, receive the configuration file which is sent by the server and determined according to the request, and can be connected with the Internet of things platform based on the configuration file.
In an embodiment of the invention, the request for connecting the internet of things platform may include an id of the terminal, so that when the server receives the request for connecting the internet of things platform, the server can determine the configuration file corresponding to the terminal based on the id of the terminal, thereby realizing that the internet of things platform can be connected without a user inputting a user name and a password on the terminal.
In an embodiment of the present invention, the configuration file includes any one or more of the following items: the method comprises the steps of encrypting information of a terminal, communication link permission of the terminal, identification of the terminal, position information of the terminal, the type of the terminal, an account number and a password for logging in an Internet of things platform, identification of the terminal on the Internet of things platform, topological relation of the terminal on the Internet of things platform and an address of the terminal for accessing the Internet of things platform.
In an embodiment of the present invention, when the terminal receives the configuration file sent by the server, the configuration file may be analyzed based on the SDK to obtain information of the terminal on the platform of the internet of things (for example, an account and a password for logging in the platform of the internet of things, an identifier of the terminal on the platform of the internet of things, and a topological relation of the terminal on the platform of the internet of things). In this example, the SDK is a software development kit, which is generally a collection of development tools used by some software engineers to build application software for a specific software package, software framework, hardware platform, operating system, and the like. The SDK may be a software development kit that is local to the presence terminal. Or the SDK may be sent to the terminal by the server when sending the configuration file.
Fig. 4 is a flowchart schematically illustrating a method for connecting to an internet of things platform applied to a terminal according to another embodiment of the present invention.
As shown in fig. 4, the step S330 may specifically include a step S410 and a step S420.
In step S410, the configuration file is analyzed through the SDK, so as to obtain an account and a password for logging in the internet of things platform, an identifier of the terminal, and an address for accessing the terminal to the internet of things platform.
In step S420, the internet of things platform is connected to the terminal based on the account and the password for logging in the internet of things platform, the identifier of the terminal, and the address of the terminal accessing the internet of things platform.
According to the method, the configuration file can be analyzed through the SDK, the account and the password for logging in the Internet of things platform, the identification of the terminal and the address for accessing the terminal to the Internet of things platform are obtained, the connection with the Internet of things platform is simpler based on the account and the password for logging in the Internet of things platform, the identification of the terminal and the address for accessing the terminal to the Internet of things platform, the connection with the Internet of things platform is simpler in the mode, a user does not need to input a user name and a password on the terminal, namely the user does not need to memorize the terminal id, the user name, the password and the access address, so that the information for accessing the terminal to the Internet platform is protected.
In an embodiment of the present invention, when the terminal receives the configuration file sent by the server, the configuration file may be parsed based on the SDK to obtain information of the terminal on the internet of things platform (for example, an account and a password for logging in the internet of things platform, an identifier of the terminal, and an address for accessing the terminal to the internet of things platform). In this example, the SDK is a software development kit, which is generally a collection of development tools used by some software engineers to build application software for a specific software package, software framework, hardware platform, operating system, and the like. The SDK may be a software development kit that is local to the presence terminal. Or the SDK may be sent to the terminal by the server when sending the configuration file.
Fig. 5 is a flowchart schematically illustrating a method for connecting to an internet of things platform applied to a terminal according to another embodiment of the present invention.
After the terminal is successfully connected with the internet of things platform, the method further includes, as shown in fig. 5, step S510 and step S520.
In step S510, after the terminal is successfully connected to the platform of the internet of things, the configuration file is analyzed through the SDK, so as to obtain the encryption information of the terminal, the communication link authority of the terminal, and the topological relation of the terminal on the platform of the internet of things.
In step S520, the communication with the platform of the internet of things is performed based on the encryption information of the terminal, the communication link authority of the terminal, and the topological relation of the terminal on the platform of the internet of things.
According to the method, after the terminal is successfully connected with the Internet of things platform, the configuration file is analyzed through the SDK, encrypted information of the terminal, the communication link authority of the terminal and the topological relation of the terminal on the Internet of things platform are obtained, and then the terminal is communicated with the Internet of things platform based on the encrypted information of the terminal, the communication link authority of the terminal and the topological relation of the terminal on the Internet of things platform.
In an embodiment of the invention, the information of the configuration file can be analyzed out at one time through the SDK, or the configuration file can be analyzed through the SDK respectively to obtain information (namely, an account and a password for logging in the internet of things platform, an identifier of the terminal, and an address for accessing the terminal to the internet of things platform) required for connecting the internet of things platform and information (namely, encryption information of the terminal, communication link authority of the terminal, and a topological relation of the terminal on the internet of things platform) communicated with the internet of things platform when the internet of things platform is connected or communicated with the internet of things platform.
Fig. 6 schematically shows a schematic diagram of interaction of an internet of things platform and a terminal according to an embodiment of the invention.
As shown in fig. 6, before the terminal 1, the terminal 2, and the terminal 3 are connected, a user needs to manually operate the terminal 1, the terminal 2, and the terminal 3 to register on the internet of things platform 600, so that the internet of things platform 600 can obtain information of the terminal 1, information of the terminal 2, and information of the terminal 3, that is, a background server of the internet of things platform 600 obtains information of each terminal.
After the user manually operates the terminal 1, the terminal 2, and the terminal 3 to register on the internet of things platform 600, the configurator 601 in the server may configure the terminal 1, the terminal 2, and the terminal 3 according to the information of the terminal 1, the information of the terminal 2, and the information of the terminal 3, respectively.
For example, the configurator 601 configures the encryption information of the terminal 1, the communication link authority of the terminal 1, and the information of the terminal 1 on the internet of things platform 600 according to the information of the terminal 1, and generates the configuration file of the terminal 1 based on the encryption information of the terminal 1, the communication link authority of the terminal 1, and the information of the terminal 1 on the internet of things platform 600, in this case, the terminal 1 may send a request for connecting the internet of things platform 600 to the server, and then the server determines the configuration file of the terminal 1 according to the request for connecting the internet of things platform 600 and sends the configuration file to the terminal 1. At this time, the terminal 1 may analyze the configuration file through the SDK to obtain information of the terminal 1 on the internet of things platform 600, and finally, the terminal 1 is connected and communicates with the internet of things platform 600 according to the information of the terminal 1 on the internet of things platform 600.
For another example, the configurator 601 configures the encryption information of the terminal 2, the communication link authority of the terminal 2, and the information of the terminal 2 on the internet of things platform 600 according to the information of the terminal 2, and generates the configuration file of the terminal 2 based on the encryption information of the terminal 2, the communication link authority of the terminal 2, and the information of the terminal 2 on the internet of things platform 600, in this case, the terminal 2 may send a request for connecting the internet of things platform 600 to the server, and then the server determines the configuration file of the terminal 2 according to the request for connecting the internet of things platform 600 and sends the configuration file to the terminal 2. At this time, the terminal 2 may analyze the configuration file through the SDK to obtain information of the terminal 2 on the internet of things platform 600, and finally, the terminal 2 is connected and communicates with the internet of things platform 600 according to the information of the terminal 2 on the internet of things platform 600.
For another example, the configurator 601 configures the encryption information of the terminal 3, the communication link authority of the terminal 3, and the information of the terminal 3 on the internet of things platform 600 according to the information of the terminal 3, and generates the configuration file of the terminal 3 based on the encryption information of the terminal 3, the communication link authority of the terminal 3, and the information of the terminal 3 on the internet of things platform 600, in this case, the terminal 3 may send a request for connecting the internet of things platform 600 to the server, and then the server determines the configuration file of the terminal 3 according to the request for connecting the internet of things platform 600 and sends the configuration file to the terminal 3. At this time, the terminal 3 may parse the configuration file through the SDK to obtain information of the terminal 3 on the internet of things platform 600, and finally, the terminal 3 is connected to and communicates with the internet of things platform 600 according to the information of the terminal 3 on the internet of things platform 600.
Fig. 7 is a block diagram schematically illustrating a platform device for connecting internet of things applied to a server according to an embodiment of the present invention.
As shown in fig. 7, the internet of things-connected platform device 700 applied to the server includes a receiving module 710, a first configuration module 720, a second configuration module 730, a third configuration module 740, a generation module 750, and a connection module 760.
Specifically, the receiving module 710 is configured to receive the terminal information.
A first configuration module 720, configured to configure the encryption information of the terminal according to the terminal information.
A second configuration module 730, configured to configure the communication link permission of the terminal according to the terminal information.
A third configuration module 740, configured to configure information of the terminal on the internet of things platform according to the terminal information; and
the generating module 750 generates a configuration file of the terminal based on the terminal information, the communication link authority of the terminal, the encryption information of the terminal, and the information of the terminal on the internet of things platform.
The connection module 760 is configured to receive a request sent by the terminal to connect the internet of things platform, and send the configuration file to a sending terminal according to the request, so that the terminal is connected to the internet of things platform according to the configuration file.
The internet of things connection platform device 700 applied to the server can receive terminal information, configures encryption information of a terminal, communication link authority of the terminal and information of the terminal on the internet of things platform according to the terminal information, the communication link authority of the terminal, the encryption information of the terminal and the information of the terminal on the internet of things platform, generates a configuration file of the terminal based on the terminal information, the communication link authority of the terminal, the encryption information of the terminal and the information of the terminal on the internet of things platform, receives a request sent by the terminal to connect the internet of things platform, and sends the configuration file to a sending terminal according to the request, so that the terminal is connected with the internet of things platform according to the configuration file, and a user does not need to memorize terminal id, user name, password and access address, thereby protecting the information of the terminal accessing the internet of the platform.
According to the embodiment of the present invention, the internet of things platform connecting device 700 applied to the server may be used to implement the internet of things platform connecting method applied to the server described in the embodiment of fig. 2.
For details that are not disclosed in the embodiment of the apparatus of the present invention, please refer to the above-described embodiment of the internet of things platform connecting method for a server of the present invention for details that are not disclosed in the embodiment of the apparatus of the present invention, because each module of the internet of things platform connecting apparatus for a server of the present invention can be used to implement the steps of the above-described embodiment of the internet of things platform connecting method for a server of fig. 2.
It is understood that the receiving module 710, the first configuration module 720, the second configuration module 730, the third configuration module 740, the generating module 750, and the connecting module 760 may be combined in one module to be implemented, or any one of them may be split into a plurality of modules. Alternatively, at least part of the functionality of one or more of these modules may be combined with at least part of the functionality of the other modules and implemented in one module. According to an embodiment of the present invention, at least one of the receiving module 710, the first configuration module 720, the second configuration module 730, the third configuration module 740, the generating module 750, and the connecting module 760 may be implemented at least in part as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or any other reasonable manner of integrating or packaging a circuit, such as hardware or firmware, or in a suitable combination of three implementations of software, hardware, and firmware. Alternatively, at least one of the receiving module 710, the first configuration module 720, the second configuration module 730, the third configuration module 740, the generating module 750 and the connecting module 760 may be at least partially implemented as a computer program module, which when executed by a computer may perform the functions of the respective modules.
Fig. 8 is a block diagram schematically illustrating an internet of things-connected platform device applied to a terminal according to an embodiment of the present invention.
As shown in fig. 8, the internet of things-connected platform device 800 applied to the terminal includes a transmitting module 810, a receiving module 820 and a connecting module 830.
Specifically, the sending module 810 is configured to send a request for connecting the internet of things platform to a server.
A receiving module 820, configured to receive the configuration file sent by the server and determined according to the request.
A connection module 830, configured to connect the internet of things platform based on the configuration file.
In the internet of things platform connection device 800 applied to the terminal, the terminal can send a request for connecting the internet of things platform to the server, receives a configuration file which is sent by the server and determined according to the request, and the terminal can be connected with the internet of things platform based on the configuration file.
According to an embodiment of the present invention, the internet of things connecting platform device 800 applied to the terminal may be used to implement the internet of things connecting platform method applied to the terminal described in the embodiment of fig. 3.
Fig. 9 is a block diagram schematically illustrating a platform device for connecting internet of things applied to a terminal according to another embodiment of the present invention.
As shown in fig. 9, the connection module 830 may specifically include a parsing module 831 and a binding module 832.
Specifically, the first parsing module 831 is configured to parse the configuration file through the SDK to obtain an account and a password for logging in the internet of things platform, an identifier of the terminal, and an address of the terminal accessing the internet of things platform.
The connection submodule 832 is configured to connect with the internet of things platform based on an account and a password for logging in the internet of things platform, the identifier of the terminal, and an address for accessing the terminal to the internet of things platform.
This connection module 830 can be through SDK analysis the configuration file, obtain account number and the password of logging in thing networking platform, the sign at terminal, and terminal access the address of thing networking platform, then be connected with thing networking platform based on account number and the password of logging in thing networking platform, the sign at terminal, and the address that terminal access thing networking platform, it is simpler to connect thing networking platform with this mode, need not the user and input user name and password on the terminal, need not the user to carry out the memorial to terminal id, user name, password and access address promptly, thereby the information that the terminal accessed internet platform has been protected, in order to prevent to lose, can also promote user's work efficiency.
According to an embodiment of the present invention, the connection module 830 may be used to implement the method for connecting to an internet of things platform applied to a terminal described in the embodiment of fig. 4.
Fig. 10 schematically shows a block diagram of a platform device for connecting internet of things applied to a terminal according to another embodiment of the present invention.
After the terminal is successfully connected with the internet of things platform, the internet of things platform connecting device 800 applied to the terminal further includes a second parsing module 840 and a communication module 850, as shown in fig. 10.
Specifically, the second parsing module 840 is configured to parse the configuration file through the SDK to obtain the encryption information of the terminal, the communication link permission of the terminal, and the topological relation of the terminal on the platform of the internet of things.
The communication module 850 communicates with the internet of things platform based on the encryption information of the terminal, the communication link authority of the terminal, and the topological relation of the terminal on the internet of things platform.
In the internet of things connection platform device 800 applied to the terminal, after the terminal is successfully connected with the internet of things platform, the configuration file is analyzed through the SDK, encrypted information of the terminal, communication link permission of the terminal and the topological relation of the terminal on the internet of things platform are obtained, then communication with the internet of things platform is achieved based on the encrypted information of the terminal, the communication link permission of the terminal and the topological relation of the terminal on the internet of things platform, communication with the internet of things platform is simpler in the way, a user does not need to manually inquire the encrypted information of the terminal, the communication link permission of the terminal and the topological relation of the terminal on the internet of things platform, information of the terminal accessing the internet of things platform is protected, loss is prevented, and working efficiency of the user can be improved.
According to an embodiment of the present invention, the internet of things connecting platform device 800 applied to the terminal may be used to implement the internet of things connecting platform method applied to the terminal described in the embodiment of fig. 5.
For details that are not disclosed in the embodiments of the apparatus of the present invention, please refer to the above-described embodiment of the method for connecting to an internet of things platform applied to a terminal of the present invention for details that are not disclosed in the embodiments of the apparatus of the present invention, because each module of the platform device of an internet of things applied to a terminal of the present invention can be used to implement the steps of the above-described embodiment of the method for connecting to an internet of things platform applied to a terminal of the present invention described in fig. 3 to 5.
It is understood that the transmitting module 810, the receiving module 820, the connecting module 830, the first parsing module 831, the connecting sub-module 832, the second parsing module 840, and the communication module 850 may be combined into one module to be implemented, or any one of them may be split into a plurality of modules. Alternatively, at least part of the functionality of one or more of these modules may be combined with at least part of the functionality of the other modules and implemented in one module. According to an embodiment of the present invention, at least one of the transmitting module 810, the receiving module 820, the connecting module 830, the first parsing module 831, the connecting sub-module 832, the second parsing module 840, and the communication module 850 may be implemented at least partially as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or any other reasonable manner of integrating or packaging a circuit, such as hardware or firmware, or any suitable combination of three implementations of software, hardware, and firmware. Alternatively, at least one of the transmitting module 810, the receiving module 820, the connecting module 830, the first parsing module 831, the connecting sub-module 832, the second parsing module 840, and the communication module 850 may be at least partially implemented as a computer program module that, when executed by a computer, may perform the functions of the respective module.
Referring now to FIG. 11, shown is a block diagram of a computer system 1000 suitable for use with the electronic device implementing an embodiment of the present invention. The computer system 1000 of the electronic device shown in fig. 11 is only an example, and should not bring any limitation to the function and the scope of use of the embodiments of the present invention. The electronic device in this example may be a server, such as a server that implements internet of things platform functionality.
As shown in fig. 11, the computer system 1000 includes a Central Processing Unit (CPU)1001 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)1002 or a program loaded from a storage section 1008 into a Random Access Memory (RAM) 1003. In the RAM 1003, various programs and data necessary for system operation are also stored. The CPU 1001, ROM 1002, and RAM 1003 are connected to each other via a bus 1004. An input/output (I/O) interface 1005 is also connected to bus 1004.
The following components are connected to the I/O interface 1005: an input section 1006 including a keyboard, a mouse, and the like; an output section 1007 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 1008 including a hard disk and the like; and a communication section 1009 including a network interface card such as a LAN card, a modem, or the like. The communication section 1009 performs communication processing via a network such as the internet. The driver 1010 is also connected to the I/O interface 1005 as necessary. A removable medium 1011 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 1010 as necessary, so that a computer program read out therefrom is mounted into the storage section 1008 as necessary.
In particular, according to an embodiment of the present invention, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the invention include a computer program product comprising a computer program embodied on a computer-readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication part 1009 and/or installed from the removable medium 1011. The computer program executes the above-described functions defined in the system of the present application when executed by the Central Processing Unit (CPU) 1001.
It should be noted that the computer readable medium shown in the present invention can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present invention may be implemented by software, or may be implemented by hardware, and the described units may also be disposed in a processor. Wherein the names of the elements do not in some way constitute a limitation on the elements themselves.
As another aspect, the present application also provides a computer-readable medium, which may be contained in the electronic device described in the above embodiments; or may exist separately without being assembled into the electronic device. The computer readable medium carries one or more programs, and when the one or more programs are executed by the electronic device, the electronic device (i.e., the server) is enabled to implement the internet of things platform connecting method applied to the server as described in the above embodiments.
For example, the electronic device (i.e., server) may implement the following as shown in fig. 2: in step S210, terminal information is received. In step S220, the encryption information of the terminal is configured according to the terminal information. In step S230, the communication link authority of the terminal is configured according to the terminal information. In step S240, information of the terminal on the internet of things platform is configured according to the terminal information. In step S250, a configuration file of the terminal is generated based on the terminal information, the communication link authority of the terminal, the encryption information of the terminal, and the information of the terminal on the internet of things platform. In step S260, a request for connecting the internet of things platform sent by the terminal is received, and the configuration file is sent to the sending terminal according to the request, so that the terminal is connected to the internet of things platform according to the configuration file.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the invention. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiment of the present invention can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the embodiment of the present invention.
Referring now to FIG. 12, shown is a block diagram of a computer system 1100 suitable for use in implementing an electronic device of another embodiment of the present invention. The computer system 1100 of the electronic device shown in fig. 12 is only an example, and should not bring any limitation to the function and the scope of use of the embodiments of the present invention. The electronic device in this example may be a terminal, such as a terminal that requests to connect to an internet of things platform for development.
As shown in fig. 12, the computer system 1100 includes a Central Processing Unit (CPU)1101, which can perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)1102 or a program loaded from a storage section 1108 into a Random Access Memory (RAM) 1103. In the RAM 1103, various programs and data necessary for system operation are also stored. The CPU 1101, ROM 1102, and RAM 1103 are connected to each other by a bus 1104. An input/output (I/O) interface 1105 is also connected to bus 1104.
The following components are connected to the I/O interface 1105: an input portion 1106 including a keyboard, mouse, and the like; an output portion 1107 including a signal output unit such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and a speaker; a storage section 1108 including a hard disk and the like; and a communication section 1109 including a network interface card such as a LAN card, a modem, or the like. The communication section 1109 performs communication processing via a network such as the internet. A driver 1110 is also connected to the I/O interface 1105 as necessary. A removable medium 1111 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 1110 as necessary, so that a computer program read out therefrom is mounted into the storage section 1108 as necessary.
In particular, according to an embodiment of the present invention, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the invention include a computer program product comprising a computer program embodied on a computer-readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication portion 1109 and/or installed from the removable medium 1111. The above-described functions defined in the system of the present application are executed when the computer program is executed by a Central Processing Unit (CPU) 1101.
It should be noted that the computer readable medium shown in the present invention can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present invention may be implemented by software, or may be implemented by hardware, and the described units may also be disposed in a processor. Wherein the names of the elements do not in some way constitute a limitation on the elements themselves.
As another aspect, the present application also provides a computer-readable medium, which may be contained in the electronic device described in the above embodiments; or may exist separately without being assembled into the electronic device. The computer readable medium carries one or more programs, and when the one or more programs are executed by the electronic device, the electronic device (i.e., the terminal) is enabled to implement the method for connecting to the internet of things platform applied to the terminal as described in the above embodiments.
For example, the electronic device (i.e., the terminal) may implement the following as shown in fig. 3: in step S310, a request for connecting the internet of things platform is sent to a server. In step S320, a configuration file determined according to the request sent by the server is received. In step S330, the internet of things platform is connected based on the configuration file.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the invention. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiment of the present invention can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the embodiment of the present invention.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (10)

1. A method for connecting an Internet of things platform is applied to a server, and comprises the following steps:
receiving terminal information;
configuring encryption information of the terminal according to the terminal information;
configuring the communication link authority of the terminal according to the terminal information;
configuring information of the terminal on the Internet of things platform according to the terminal information;
generating a configuration file of the terminal based on the terminal information, the communication link authority of the terminal, the encryption information of the terminal and the information of the terminal on the platform of the Internet of things;
and receiving a request for connecting the Internet of things platform sent by the terminal, and sending the configuration file to a sending terminal according to the request, so that the terminal is connected with the Internet of things platform according to the configuration file.
2. The method of claim 1, wherein configuring the communication link rights of the terminal according to the terminal information comprises:
and configuring the authority of the terminal according to the terminal information through a message queue telemetry transmission protocol so as to acquire the communication link authority of the terminal.
3. The method according to any one of claims 1 or 2, wherein the terminal information comprises any one or more of: the identification of the terminal, the ip address of the terminal, the physical address of the terminal, the position information of the terminal and the type of the terminal; the information of the terminal on the Internet of things platform comprises any one or more of the following items: the terminal comprises an account and a password for logging in the Internet of things platform, an identifier of the terminal on the Internet of things platform, a topological relation of the terminal on the Internet of things platform, and an address of the terminal accessing the Internet of things platform.
4. A method for connecting an Internet of things platform is applied to a terminal, and comprises the following steps:
sending a request for connecting the Internet of things platform to a server;
receiving a configuration file which is sent by the server and determined according to the request, wherein the configuration file comprises any one or more of the following items: the terminal comprises encryption information of the terminal, communication link permission of the terminal, an identifier of the terminal, position information of the terminal, the type of the terminal, an account and a password for logging in the Internet of things platform, the identifier of the terminal on the Internet of things platform, a topological relation of the terminal on the Internet of things platform and an address of the terminal for accessing the Internet of things platform;
and connecting the Internet of things platform based on the configuration file.
5. The method of claim 4, wherein connecting the Internet of things platform based on the configuration file comprises:
analyzing the configuration file through the SDK to obtain an account and a password for logging in the Internet of things platform, an identifier of the terminal and an address for accessing the terminal to the Internet of things platform;
and based on the account number and the password for logging in the Internet of things platform, the identification of the terminal and the address for accessing the terminal into the Internet of things platform, the terminal is connected with the Internet of things platform.
6. The method of claim 4, further comprising:
after the terminal is successfully connected with the Internet of things platform, the configuration file is analyzed through the SDK, and encryption information of the terminal, communication link permission of the terminal and a topological relation of the terminal on the Internet of things platform are obtained;
and communicating with the Internet of things platform based on the encrypted information of the terminal, the communication link authority of the terminal and the topological relation of the terminal on the Internet of things platform.
7. The utility model provides a connect thing networking platform device, is applied to the server, and the device includes:
the receiving module is used for receiving terminal information;
the first configuration module is used for configuring the encryption information of the terminal according to the terminal information;
the second configuration module is used for configuring the communication link authority of the terminal according to the terminal information;
the third configuration module is used for configuring the information of the terminal on the Internet of things platform according to the terminal information;
the generating module is used for generating a configuration file of the terminal based on the terminal information, the communication link authority of the terminal, the encryption information of the terminal and the information of the terminal on the Internet of things platform;
the connection module is used for receiving a request sent by the terminal for connecting the Internet of things platform and sending the configuration file to the sending terminal according to the request, so that the terminal is connected with the Internet of things platform according to the configuration file.
8. The utility model provides a connect thing networking platform device, is applied to the terminal, and the device includes:
the sending module is used for sending a request for connecting the Internet of things platform to a server;
a receiving module, configured to receive a configuration file sent by the server and determined according to the request, where the configuration file includes any one or more of the following items: the terminal comprises encryption information of the terminal, communication link permission of the terminal, an identifier of the terminal, position information of the terminal, the type of the terminal, an account and a password for logging in the Internet of things platform, the identifier of the terminal on the Internet of things platform, a topological relation of the terminal on the Internet of things platform and an address of the terminal for accessing the Internet of things platform;
and the connection module is used for connecting the Internet of things platform based on the configuration file.
9. An electronic device, comprising:
one or more processors; and
storage means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to carry out a method according to any one of claims 1 to 3 or 4 to 6.
10. A computer-readable medium, on which a computer program is stored, which program, when being executed by a processor, carries out the method according to any one of claims 1 to 3 or the method according to any one of claims 4 to 6.
CN201911205180.6A 2019-11-29 2019-11-29 Method, device, medium and electronic equipment for connecting Internet of things platform Active CN111163052B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911205180.6A CN111163052B (en) 2019-11-29 2019-11-29 Method, device, medium and electronic equipment for connecting Internet of things platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911205180.6A CN111163052B (en) 2019-11-29 2019-11-29 Method, device, medium and electronic equipment for connecting Internet of things platform

Publications (2)

Publication Number Publication Date
CN111163052A true CN111163052A (en) 2020-05-15
CN111163052B CN111163052B (en) 2022-09-02

Family

ID=70556313

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911205180.6A Active CN111163052B (en) 2019-11-29 2019-11-29 Method, device, medium and electronic equipment for connecting Internet of things platform

Country Status (1)

Country Link
CN (1) CN111163052B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111884864A (en) * 2020-08-04 2020-11-03 北京立通智联科技有限公司 Method and device for managing Internet of things equipment
CN112532458A (en) * 2020-12-03 2021-03-19 瀚云科技有限公司 Cooperative configuration method and device for Internet of things equipment and electronic equipment
CN113839992A (en) * 2021-08-31 2021-12-24 青岛海尔科技有限公司 Equipment control method and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102238201A (en) * 2010-04-23 2011-11-09 中兴通讯股份有限公司 Internet of things application module and communication method for Internet of things application and Internet of things terminal
CN102868998A (en) * 2012-09-14 2013-01-09 中国联合网络通信集团有限公司 Method and device for visiting businesses of internet of things
CN104967596A (en) * 2014-10-31 2015-10-07 腾讯科技(深圳)有限公司 Method and apparatus for realizing binding and communication between user terminal and Internet of things device
CN104967595A (en) * 2014-10-31 2015-10-07 腾讯科技(深圳)有限公司 Method and apparatus for registering devices on Internet of things platform
CN105429798A (en) * 2015-11-25 2016-03-23 北京邮电大学 Network configuration system for the internet of things
CN106713230A (en) * 2015-11-13 2017-05-24 深圳市光峰光电技术有限公司 Method of projection equipment for registering internet of things and projection equipment and user terminal
CN109361771A (en) * 2018-12-11 2019-02-19 湖北科技学院 Registration, certification, the connection method of a kind of Internet of things system and its equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102238201A (en) * 2010-04-23 2011-11-09 中兴通讯股份有限公司 Internet of things application module and communication method for Internet of things application and Internet of things terminal
CN102868998A (en) * 2012-09-14 2013-01-09 中国联合网络通信集团有限公司 Method and device for visiting businesses of internet of things
CN104967596A (en) * 2014-10-31 2015-10-07 腾讯科技(深圳)有限公司 Method and apparatus for realizing binding and communication between user terminal and Internet of things device
CN104967595A (en) * 2014-10-31 2015-10-07 腾讯科技(深圳)有限公司 Method and apparatus for registering devices on Internet of things platform
CN106713230A (en) * 2015-11-13 2017-05-24 深圳市光峰光电技术有限公司 Method of projection equipment for registering internet of things and projection equipment and user terminal
CN105429798A (en) * 2015-11-25 2016-03-23 北京邮电大学 Network configuration system for the internet of things
CN109361771A (en) * 2018-12-11 2019-02-19 湖北科技学院 Registration, certification, the connection method of a kind of Internet of things system and its equipment

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111884864A (en) * 2020-08-04 2020-11-03 北京立通智联科技有限公司 Method and device for managing Internet of things equipment
CN112532458A (en) * 2020-12-03 2021-03-19 瀚云科技有限公司 Cooperative configuration method and device for Internet of things equipment and electronic equipment
CN113839992A (en) * 2021-08-31 2021-12-24 青岛海尔科技有限公司 Equipment control method and device
CN113839992B (en) * 2021-08-31 2023-09-19 青岛海尔科技有限公司 Equipment control method and device

Also Published As

Publication number Publication date
CN111163052B (en) 2022-09-02

Similar Documents

Publication Publication Date Title
US10601596B2 (en) Techniques to secure computation data in a computing environment
US20210377038A1 (en) Method and apparatus for processing privacy data of block chain, device, and storage medium
CN111163052B (en) Method, device, medium and electronic equipment for connecting Internet of things platform
CN111062024A (en) Application login method and device
US20110154435A1 (en) Identity mediation in enterprise service bus
EP4350556A1 (en) Information verification method and apparatus
KR20220002616A (en) Encryption key orchestration between trusted containers in a multi-node cluster
CN112954050A (en) Distributed management method and device, management equipment and computer storage medium
CN112165727A (en) Parallel network distribution system and method and mobile terminal
CN111600787B (en) Information processing method, information processing apparatus, electronic device, and medium
CN111885190A (en) Service request processing method and system
CN116244682A (en) Database access method, device, equipment and storage medium
CN115964726A (en) Robot process automation data processing method, device, equipment and storage medium
CN113395326B (en) Network service-based login method, device and computer-readable storage medium
CN110098921A (en) Verification code generation method, device, application service end and system
US20220158824A1 (en) Private key management
CN113946816A (en) Cloud service-based authentication method and device, electronic equipment and storage medium
CN114024692A (en) Signing method, device and system
CN113014610A (en) Remote access method, device and system
CN109586901A (en) A kind of key updating method and equipment
CN110351262A (en) A kind of data interactive method, device, electronic equipment
CN113472785B (en) Data processing method and device, electronic equipment and readable storage medium
CN117395084B (en) Cloud storage resource access method, device, equipment and storage medium
CN113572763B (en) Data processing method and device, electronic equipment and storage medium
CN113783835B (en) Password sharing method, device, equipment and storage medium

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