CN111917758B - Method, device, computer equipment and storage medium for accessing Internet of things platform - Google Patents
Method, device, computer equipment and storage medium for accessing Internet of things platform Download PDFInfo
- Publication number
- CN111917758B CN111917758B CN202010732482.5A CN202010732482A CN111917758B CN 111917758 B CN111917758 B CN 111917758B CN 202010732482 A CN202010732482 A CN 202010732482A CN 111917758 B CN111917758 B CN 111917758B
- Authority
- CN
- China
- Prior art keywords
- equipment
- internet
- product key
- product
- accessed
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/08—Network architectures or network communication protocols for network security for authentication of entities
- H04L63/083—Network architectures or network communication protocols for network security for authentication of entities using passwords
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Landscapes
- Engineering & Computer Science (AREA)
- Computing Systems (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- Computer Security & Cryptography (AREA)
- General Engineering & Computer Science (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Computer And Data Communications (AREA)
- Telephonic Communication Services (AREA)
Abstract
The application relates to a method, a device, computer equipment and a storage medium for accessing an Internet of things platform. The method comprises the following steps: obtaining product information; generating a corresponding first product key according to the product information, wherein the first product key is used for being burnt into target equipment; receiving registration information of equipment to be accessed, wherein the registration information comprises a second product key of the equipment to be accessed, and verifying whether the second product key is matched with the first product key; and when the second product key is matched with the first product key, the equipment to be accessed is judged to be target equipment, and the reported data sent by the equipment to be accessed is received. And whether the target equipment is allowed to be accessed into the Internet of things platform can be judged only by comparing the second product key in the target equipment with the first product key stored in the Internet of things platform, equipment information of the equipment is not required to be imported into the Internet of things platform in advance, the step of accessing the equipment into the Internet of things platform is simplified, and the access efficiency of the equipment is improved.
Description
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method, an apparatus, a computer device, and a storage medium for accessing an internet of things platform.
Background
The internet of things platform provides connection communication capability for internet of things equipment, and provides an API (Application Programming Interface, application program interface) for application services upwards so as to meet development requirements of application systems in various industries; and connecting the Internet of things equipment downwards, and supporting the access and management of the Internet of things equipment.
The existing internet of things platform generally needs to create a product and import the equipment information of the equipment into the corresponding type of product information, and only accepts an access request sent by the equipment of which the equipment information is imported into the internet of things platform, but the equipment of which the equipment information is not imported into the internet of things platform by extraction cannot be accessed into the internet of things platform.
The existing internet of things platform is mainly oriented to access of different industries and different types of products, but the access steps of the products are complicated due to the fact that the types of the products are more, the development difficulty is higher, and the access efficiency of the internet of things equipment is seriously affected.
Disclosure of Invention
In order to solve the technical problems, the application provides a method, a device, computer equipment and a storage medium for accessing an Internet of things platform.
In a first aspect, the present application provides a method for accessing an internet of things platform, applied to the internet of things platform, the method includes:
obtaining product information, wherein the product information comprises product category and product model;
generating a corresponding first product key according to the product information, wherein the first product key is used for being burnt into target equipment;
receiving registration information of equipment to be accessed, wherein the registration information comprises a second product key of the equipment to be accessed, and verifying whether the second product key is matched with the first product key;
and when the second product key is matched with the first product key, judging that the equipment to be accessed is the target equipment, and receiving the reported data sent by the equipment to be accessed.
In a second aspect, the present application provides a method for accessing an internet of things platform, applied to an internet of things device, the method comprising:
sending registration information to an Internet of things platform;
when a state modification instruction sent by the Internet of things platform is received, executing the state modification instruction, wherein the state modification instruction is used for modifying state information from unregistered to registered;
and sending the reported data to the Internet of things platform.
In a third aspect, the present application provides a device for accessing to an internet of things platform, applied to the internet of things platform, including:
the information acquisition module is used for acquiring product information, wherein the product information comprises product types and product models;
the product key generation module is used for generating a corresponding first product key according to the product information, wherein the first product key is used for being burnt into target equipment;
the information receiving module is used for receiving registration information of equipment to be accessed, wherein the registration information comprises a second product key of the equipment to be accessed, and whether the second product key is matched with the first product key or not is verified;
and the connection module is used for judging the equipment to be accessed as the target equipment and receiving the reported data sent by the equipment to be accessed when the second product key is matched with the first product key.
In a fourth aspect, the present application provides an apparatus for accessing an internet of things platform, applied to an internet of things device, including:
the information sending module is used for sending the registration information to the Internet of things platform;
the execution module is used for executing the state modification instruction when receiving the state modification instruction sent by the Internet of things platform, wherein the state modification instruction is used for modifying the state information from unregistered to registered;
and the data reporting module is used for sending reporting data to the Internet of things platform.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of:
obtaining product information, wherein the product information comprises product category and product model;
generating a corresponding first product key according to the product information, wherein the first product key is used for being burnt into target equipment;
receiving registration information of equipment to be accessed, wherein the registration information comprises a second product key of the equipment to be accessed, and verifying whether the second product key is matched with the first product key;
and when the second product key is matched with the first product key, judging that the equipment to be accessed is the target equipment, and receiving the reported data sent by the equipment to be accessed.
A computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
obtaining product information, wherein the product information comprises product category and product model;
generating a corresponding first product key according to the product information, wherein the first product key is used for being burnt into target equipment;
receiving registration information of equipment to be accessed, wherein the registration information comprises a second product key of the equipment to be accessed, and verifying whether the second product key is matched with the first product key;
and when the second product key is matched with the first product key, judging that the equipment to be accessed is the target equipment, and receiving the reported data sent by the equipment to be accessed.
The method, the device, the computer equipment and the storage medium for accessing the internet of things platform comprise the following steps: obtaining product information, wherein the product information comprises product category and product model; generating a corresponding first product key according to the product information, wherein the first product key is used for being burnt into target equipment; receiving registration information of equipment to be accessed, wherein the registration information comprises a second product key of the equipment to be accessed, and verifying whether the second product key is matched with the first product key; and when the second product key is matched with the first product key, judging that the equipment to be accessed is the target equipment, and receiving the reported data sent by the equipment to be accessed. And whether the target equipment is allowed to be accessed into the Internet of things platform can be judged only by comparing the second product key in the target equipment with the first product key stored in the Internet of things platform, equipment information of the equipment is not required to be imported into the Internet of things platform in advance, the step of accessing the equipment into the Internet of things platform is simplified, and the access efficiency of the equipment is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
In order to more clearly illustrate the embodiments of the invention or the technical solutions of the prior art, the drawings which are used in the description of the embodiments or the prior art will be briefly described, and it will be obvious to a person skilled in the art that other drawings can be obtained from these drawings without inventive effort.
FIG. 1 is an application environment diagram of a method of accessing an Internet of things platform in one embodiment;
FIG. 2 is a platform end flow diagram of a method of accessing an Internet of things platform in one embodiment;
FIG. 3 is a schematic flow diagram of a device end of a method of accessing an Internet of things platform in one embodiment;
FIG. 4 is a block diagram of a platform end architecture of a device accessing an Internet of things platform in one embodiment;
FIG. 5 is a block diagram of a device end structure of an apparatus for accessing an Internet of things platform in one embodiment;
fig. 6 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present application based on the embodiments herein.
Fig. 1 is an application environment diagram of a method for accessing an internet of things platform in an embodiment. Referring to fig. 1, the method for accessing the internet of things platform is applied to an internet of things system. The internet of things system comprises a terminal 110, an internet of things platform 120 and internet of things equipment 130. The terminal 110, the server 120 and the internet of things device 130 are connected through a network. The platform of the internet of things can be specifically an IOT platform, the terminal 110 can be specifically a desktop terminal or a mobile terminal, and the mobile terminal can be specifically at least one of a mobile phone, a tablet computer, a notebook computer, and the like. The internet of things device 130 is a device that includes at least bar codes, radio frequency identification technology, sensors, global positioning systems, laser scanners.
In an embodiment, fig. 2 is a flow chart of a method for accessing an internet of things platform in an embodiment, and referring to fig. 2, a method for accessing an internet of things platform is provided. The embodiment is mainly exemplified by the application of the method to the internet of things platform 120 in fig. 1, and the method for accessing the internet of things platform specifically includes the following steps:
step S210, obtaining product information.
In this particular embodiment, the product information includes a product category and a product model.
Specifically, product information input by a user into the internet of things platform is received, a product is created according to the product information, the product information specifically comprises, but is not limited to, parameters such as a product category, a product model, a product name, a node type, an internet access certificate, a networking mode and the like, and a plurality of devices with common product categories are arranged under the product.
Step S220, corresponding first product keys are generated according to the product information.
In this embodiment, the first product key is used for burning into the target device.
In this embodiment, the product key refers to an identifier generated according to a product model in the product information, where the product model corresponds to the product key one by one, and the product key of each target device is a first product key. The product key can be specifically a product key (activation verification code), the product key is used for being burnt into target equipment, the product key is used as the activation verification code of the target equipment accessing to the internet of things platform, and the target equipment is one or more internet of things equipment which can access to the internet of things platform and belongs to specific products.
Step S230, receiving registration information of the device to be accessed.
In this embodiment, the device to be accessed may be one or more devices of the internet of things, and the registration information includes device information of the device to be accessed, a second product key, and so on.
Step S240 verifies whether the second product key matches the first product key.
Specifically, a second product key of the equipment to be accessed is matched with a first product key of the internet of things platform, and whether the second product key of the equipment to be accessed is consistent with an activation verification code of a specific product in the internet of things platform is judged.
Step S250, when the second product key is matched with the first product key, the equipment to be accessed is judged to be target equipment, and reporting data sent by the equipment to be accessed are received.
Specifically, when the second product key is matched with the first product key, that is, the second product key of the device to be accessed is consistent with the activation verification code of the accessible internet of things platform, the device to be accessed is judged to be a target device belonging to a specific product in the internet of things platform, the device to be accessed is accessed into the internet of things platform through a message protocol, the message protocol can be specifically but not limited to an MQTT protocol, an HTTP protocol or a COAP protocol, the device accessed into the internet of things platform sends reporting data to the internet of things platform in real time, and the reporting data comprises device attributes, event data and the like.
In one embodiment, the device information is stored, and a state modification instruction is sent to the device to be accessed, so that the device to be accessed executes the state modification instruction, and the state modification instruction is used for modifying the state information of the device to be accessed into registered state; the receiving state information is the reported data sent by the registered equipment to be accessed.
Specifically, the device information specifically includes, but is not limited to, a device identifier, a device code, a communication address, and the like, when it is determined that a second product key of the device to be accessed matches with a first product key, the internet of things platform classifies and stores the device information sent by the device to be accessed into a corresponding data table, returns a state modification instruction to the device to be accessed, enables the device to be accessed to modify the state information into registered, indicates that the device to be accessed can access the internet of things platform, sends reporting data to the internet of things platform, and the internet of things platform collects the reporting data and performs visual display.
In one embodiment, when the second product key is not matched with the first product key, the device to be accessed is determined not to be the target device, and the receiving of the report data sent by the device to be accessed is refused.
Specifically, when the second product key is not matched with the first product key, the second product key of the device to be accessed is inconsistent with the activation verification code of the accessible internet of things platform, which means that the device to be accessed does not belong to a specific product in the internet of things platform and cannot be accessed to the internet of things platform, and the internet of things platform cannot receive the reported data sent by the device.
In one embodiment, a control instruction sent by an application service is received; determining corresponding equipment to be controlled according to the product information and the equipment identifier carried by the control instruction; and sending a control instruction to the equipment to be controlled, and enabling the equipment to be controlled to execute the control instruction.
Specifically, the to-be-controlled device is any one or more of the internet of things devices registered and connected to the internet of things platform, the internet of things platform provides an API interface towards the application service upwards to receive a control instruction sent by the terminal, the control instruction carries product information and device identification of the to-be-controlled device, the internet of things platform accurately determines the to-be-controlled device according to the product information and the device identification, and issues the control instruction to the to-be-controlled device, and the to-be-controlled device executes corresponding actions according to the control instruction, so that the terminal can remotely control the internet of things device through the internet of things platform.
In an embodiment, fig. 3 is a schematic flow diagram of a device end of a method for accessing an internet of things platform in an embodiment, and referring to fig. 3, the embodiment provides a method for accessing an internet of things platform, which is applied to an internet of things device, and the method includes:
step S310, the registration information is sent to the platform of the Internet of things.
In this embodiment, the registration information includes device information of the internet of things device and a second product key, where the second product key is used to match with the first product key of the internet of things platform, and determine whether the internet of things device is a device that can access the internet of things platform, and if the matching between the first product key and the second product key fails, the internet of things platform cannot allow the internet of things device to access; if the first product key and the second product key are successfully matched, the Internet of things device can be connected to the Internet of things platform, and the Internet of things device is indicated to belong to a specific product in the Internet of things platform.
Step S320, when a state modification instruction sent by the internet of things platform is received, the state modification instruction is executed, where the state modification instruction is used to modify the state information from unregistered to registered.
In this embodiment, when the first product key and the second product key are successfully matched, the internet of things platform returns a state modification instruction to the device, so that the device modifies the state information to be registered, which indicates that the internet of things device has successfully accessed the internet of things platform.
And step S330, sending the report data to the platform of the Internet of things.
Specifically, the reported data comprises equipment attribute, event data and the like, before the internet of things equipment sends registration information, the internet of things equipment firstly acquires own state information, and if the state information of the internet of things equipment is registered, the registration information does not need to be sent to the internet of things platform, and the reported data is directly sent to the internet of things platform; if the state information of the Internet of things equipment is unregistered, the registration information is sent to the Internet of things platform for access, and after the Internet of things equipment is accessed to the Internet of things platform, the reported data is sent.
Fig. 2 and fig. 3 are schematic flow diagrams of a method for accessing an internet of things platform in an embodiment. It should be understood that, although the steps in the flowcharts of fig. 2 and 3 are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in fig. 2 and 3 may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor does the order in which the sub-steps or stages are performed necessarily occur in sequence, but may be performed alternately or alternately with at least a portion of the other steps or sub-steps of other steps.
In one embodiment, fig. 4 is a block diagram of a platform end structure of an apparatus for accessing an internet of things platform in one embodiment, and as shown in fig. 4, an apparatus for accessing an internet of things platform is provided, including:
an information acquisition module 410 for acquiring product information including a product category and a product model;
the product key generation module 420 is configured to generate a corresponding first product key according to the product information, where the first product key is used for being burned into the target device;
an information receiving module 430, configured to receive registration information of a device to be accessed, where the registration information includes a second product key of the device to be accessed;
a verification module 440 for verifying whether the second product key matches the first product key
And the connection module 450 is configured to determine the device to be accessed as the target device when the second product key matches the first product key, and receive the report data sent by the device to be accessed.
In one embodiment, the registration information further includes device information of the device to be accessed, and the connection module 450 includes:
the storage module is used for storing equipment information, sending a state modification instruction to equipment to be accessed, and enabling the equipment to be accessed to execute the state modification instruction, wherein the state modification instruction is used for modifying the state information of the equipment to be accessed into registered;
and the receiving module is used for receiving the reported data sent by the registered equipment to be accessed by the state information.
In one embodiment, the apparatus further comprises:
and the refusing access module is used for judging that the equipment to be accessed is not target equipment when the second product key is not matched with the first product key, and refusing to receive the report data sent by the equipment to be accessed.
In one embodiment, the apparatus further comprises:
the instruction receiving module is used for receiving a control instruction sent by the application service;
the determining module is used for determining corresponding equipment to be controlled according to the product information and the equipment identifier carried by the control instruction;
the instruction generation module is used for sending a control instruction to the equipment to be controlled, so that the equipment to be controlled executes the control instruction.
In an embodiment, fig. 5 is a block diagram of a device end of a device for accessing an internet of things platform in an embodiment, and referring to fig. 5, this embodiment provides a device for accessing an internet of things platform, which is applied to an internet of things device, and the device includes:
the information sending module 510 is configured to send registration information to the platform of the internet of things;
the execution module 520 is configured to execute a state modification instruction when receiving a state modification instruction sent by the internet of things platform, where the state modification instruction is configured to modify state information from unregistered to registered;
the data reporting module 530 is configured to send reporting data to the platform of the internet of things.
FIG. 6 illustrates an internal block diagram of a computer device in one embodiment. The computer device may specifically be the internet of things platform 120 (or the internet of things device 130, the terminal 110) in fig. 1. As shown in fig. 6, the computer device includes a processor, a memory, a network interface, an input device, and a display screen connected by a system bus. The memory includes a nonvolatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system, and may also store a computer program that, when executed by the processor, causes the processor to implement a method of accessing the internet of things platform. The internal memory may also store a computer program that, when executed by the processor, causes the processor to perform a method for accessing the internet of things platform. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, the input device of the computer equipment can be a touch layer covered on the display screen, can also be keys, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structure shown in fig. 6 is merely a block diagram of some of the structures associated with the present application and is not limiting of the computer device to which the present application may be applied, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, the apparatus for accessing an internet of things platform provided in the present application may be implemented as a computer program, which may be executed on a computer device as shown in fig. 6. The memory of the computer device may store various program modules of the apparatus constituting the access internet of things platform, such as the information acquisition module 410, the product key generation module 420, the information reception module 430, and the connection module 450 shown in fig. 4. The computer program comprising the respective program modules causes the processor to execute the steps in the method for accessing the internet of things platform according to the embodiments of the present application described in the present specification.
The computer apparatus shown in fig. 6 may perform acquiring product information including a product category and a product model through the information acquisition module 410 in the device accessing the internet of things platform as shown in fig. 4. The computer device may generate a corresponding first product key according to the product information by the product key generation module 420, where the first product key is used for burning into the target device. The computer device may perform receiving registration information of the device to be accessed through the information receiving module 430, the registration information including a second product key of the device to be accessed, and verifying whether the second product key matches the first product key. The computer device may determine that the device to be accessed is the target device when the second product key matches the first product key through the connection module 450, and receive the report data sent by the device to be accessed.
The computer device shown in fig. 6 may perform sending registration information to the internet of things platform through the information sending module 510 in the device for accessing the internet of things platform as shown in fig. 5. The computer device may execute, via the execution module 520, the state modification instruction for modifying the state information from unregistered to registered when the state modification instruction sent by the internet of things platform is received. The computer device may perform sending the report data to the internet of things platform through the data report module 530.
In one embodiment, a computer device is provided that includes a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the steps in any one of the embodiments of the method of accessing an internet of things platform described above when the computer program is executed.
In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, which when executed by a processor implements the steps of any one of the embodiments of the method of accessing an internet of things platform described above.
Those skilled in the art will appreciate that implementing all or part of the above-described methods in accordance with the embodiments may be accomplished by way of a computer program, which may be stored on a non-transitory computer readable storage medium, and which, when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the various embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
It should be noted that in this document, relational terms such as "first" and "second" and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing is only a specific embodiment of the invention to enable those skilled in the art to understand or practice the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (10)
1. A method for accessing an internet of things platform, which is characterized by being applied to the internet of things platform, the method comprising:
obtaining product information, wherein the product information comprises product category and product model;
generating a corresponding first product key according to the product information, wherein the first product key is a product key burnt into target equipment, and the target equipment is one or more pieces of internet of things equipment which can be connected to an internet of things platform and belongs to specific products;
receiving registration information of equipment to be accessed, wherein the registration information comprises a second product key of the equipment to be accessed, and the second product key is a product key burnt in the equipment to be accessed;
verifying whether the second product key matches the first product key;
and when the second product key is matched with the first product key, judging that the equipment to be accessed is the target equipment, and receiving reporting data sent by the equipment to be accessed, wherein the reporting data comprises equipment attributes and event data.
2. The method of claim 1, wherein the registration information further includes device information of the device to be accessed, and the receiving the report data sent by the device to be accessed includes:
storing the equipment information, and sending a state modification instruction to the equipment to be accessed, so that the equipment to be accessed executes the state modification instruction, wherein the state modification instruction is used for modifying the state information of the equipment to be accessed into registered state;
and receiving the state information as reported data sent by the registered equipment to be accessed.
3. The method according to claim 1, wherein the method further comprises:
and when the second product key is not matched with the first product key, judging that the equipment to be accessed is not the target equipment, and refusing to receive the report data sent by the equipment to be accessed.
4. The method according to claim 1, wherein the method further comprises:
receiving a control instruction sent by an application service;
determining corresponding equipment to be controlled according to the product information and the equipment identifier carried by the control instruction;
and sending the control instruction to the equipment to be controlled, and enabling the equipment to be controlled to execute the control instruction.
5. A method for accessing an internet of things platform, which is characterized by being applied to internet of things equipment, the method comprising:
transmitting registration information to an internet of things platform, wherein the registration information comprises a second product key of the internet of things device, and the second product key is a product key burnt in the device to be accessed;
when a state modification instruction sent by the internet of things platform is received, executing the state modification instruction, wherein the state modification instruction is used for modifying state information from unregistered to registered, and returning the state modification instruction to the internet of things device when a first product key of the internet of things platform is successfully matched with the second product key, wherein the first product key is generated according to a product type and a product model in the product information and obtained by the internet of things platform, and the first product key is a product key burnt into the internet of things device;
and sending reporting data to the Internet of things platform, wherein the reporting data comprises equipment attributes and event data.
6. An apparatus for accessing an internet of things platform, the apparatus being characterized by being applied to the internet of things platform, the apparatus comprising:
the information acquisition module is used for acquiring product information, wherein the product information comprises product types and product models;
the product key generation module is used for generating a corresponding first product key according to the product information, wherein the first product key is a product key burnt into target equipment, and the target equipment is one or more pieces of internet of things equipment which can be connected to the internet of things platform and belongs to specific products;
the information receiving module is used for receiving registration information of equipment to be accessed, wherein the registration information comprises a second product key of the equipment to be accessed, and the second product key is a product key burnt in the equipment to be accessed;
a verification module for verifying whether the second product key matches the first product key;
and the connection module is used for judging the equipment to be accessed as the target equipment when the second product key is matched with the first product key, and receiving reporting data sent by the equipment to be accessed, wherein the reporting data comprises equipment attributes and event data.
7. The apparatus of claim 6, wherein the registration information further comprises device information of the device to be accessed, and wherein the connection module comprises:
the storage module is used for storing the equipment information, sending a state modification instruction to the equipment to be accessed, and enabling the equipment to be accessed to execute the state modification instruction, wherein the state modification instruction is used for modifying the state information of the equipment to be accessed into registered state;
and the receiving module is used for receiving the reported data sent by the registered equipment to be accessed by the state information.
8. An apparatus for accessing an internet of things platform, the apparatus being applied to an internet of things device, the apparatus comprising:
the information sending module is used for sending registration information to the internet of things platform, wherein the registration information comprises a second product key of the internet of things equipment, and the second product key is a product key burnt in the equipment to be accessed;
the execution module is used for executing the state modification instruction when receiving the state modification instruction sent by the Internet of things platform, wherein the state modification instruction is used for modifying the state information from unregistered state to registered state, and returning the state modification instruction to the Internet of things device when the first product key of the Internet of things platform is successfully matched with the second product key, wherein the first product key is generated according to the product type and the product model in the product information and obtained by the Internet of things platform, and the first product key is a product key burnt into the Internet of things device;
and the data reporting module is used for sending reporting data to the Internet of things platform, wherein the reporting data comprises equipment attributes and event data.
9. A computer readable storage medium, characterized in that the computer storage medium stores a computer program comprising program instructions which, when executed by a processor, cause the processor to perform the method of any of claims 1-5.
10. A device comprising a processor, an input device, an output device and a memory, the processor, the input device, the output device and the memory being interconnected, wherein the memory is configured to store application code, the processor being configured to invoke the program code to perform the method of any of claims 1-5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010732482.5A CN111917758B (en) | 2020-07-27 | 2020-07-27 | Method, device, computer equipment and storage medium for accessing Internet of things platform |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010732482.5A CN111917758B (en) | 2020-07-27 | 2020-07-27 | Method, device, computer equipment and storage medium for accessing Internet of things platform |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111917758A CN111917758A (en) | 2020-11-10 |
CN111917758B true CN111917758B (en) | 2023-06-09 |
Family
ID=73280126
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010732482.5A Active CN111917758B (en) | 2020-07-27 | 2020-07-27 | Method, device, computer equipment and storage medium for accessing Internet of things platform |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111917758B (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112565380B (en) * | 2020-11-30 | 2022-08-12 | 上海瑞眼科技有限公司 | Fire-fighting Internet of things data access method and system |
CN112511653B (en) * | 2021-02-03 | 2021-05-07 | 武汉慧联无限科技有限公司 | Service authority activation method, configuration method and registration method of Internet of things equipment |
CN113162917A (en) * | 2021-03-24 | 2021-07-23 | 杭州安恒信息技术股份有限公司 | Internet of things equipment access method, system, device and storage medium |
CN113206886B (en) * | 2021-05-08 | 2023-02-10 | 深圳市信锐网科技术有限公司 | Method, device, equipment and medium for accessing equipment to Internet of things platform |
CN113839992B (en) * | 2021-08-31 | 2023-09-19 | 青岛海尔科技有限公司 | Equipment control method and device |
CN114826687A (en) * | 2022-03-30 | 2022-07-29 | 杭州博联智能科技股份有限公司 | Method, system, device and medium for edge gateway to access cloud platform |
CN115022365A (en) * | 2022-05-31 | 2022-09-06 | 新奥数能科技有限公司 | DTU equipment access method and device, electronic equipment and storage medium |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
GB2560895B (en) * | 2017-03-23 | 2019-05-29 | Taberner Neil | Secure transfer of data between internet of things devices |
CN107580054A (en) * | 2017-09-08 | 2018-01-12 | 深圳市智物联网络有限公司 | Industrial equipment Reverse Turning Control method and system based on Internet of Things |
CN110099065A (en) * | 2019-05-10 | 2019-08-06 | 北京百度网讯科技有限公司 | Internet of things equipment and authentication method, Cloud Server, processing equipment, readable medium |
CN110740424A (en) * | 2019-10-28 | 2020-01-31 | 杭州涂鸦信息技术有限公司 | networking method and system, readable storage medium and device |
CN110995308B (en) * | 2019-11-22 | 2021-05-07 | 宁波伊士通控制技术有限公司 | Terminal data acquisition system and acquisition method thereof |
CN111092949B (en) * | 2019-12-20 | 2022-05-03 | 北京百度网讯科技有限公司 | Method and device for registering equipment |
-
2020
- 2020-07-27 CN CN202010732482.5A patent/CN111917758B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN111917758A (en) | 2020-11-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111917758B (en) | Method, device, computer equipment and storage medium for accessing Internet of things platform | |
CN111475376B (en) | Method, apparatus, computer device and storage medium for processing test data | |
US10764304B2 (en) | User location check method, controlled device access method, controlled device, and user terminal | |
CN110908683A (en) | Software system upgrading method and device of hardware module, storage medium and terminal | |
CN112399130B (en) | Processing method and device of cloud video conference information, storage medium and communication equipment | |
CN110750222A (en) | Printing method, printing device, computer equipment and storage medium | |
CN108959384B (en) | Webpage data acquisition method and device, computer equipment and storage medium | |
CN110471884A (en) | Data managing method, device, equipment, system and computer readable storage medium | |
CN112468540A (en) | Data distribution method, device and medium based on cloud platform | |
CN111222153A (en) | Application program authority management method and device and storage medium | |
CN118101466A (en) | Node upgrading method, system, computer equipment and storage medium | |
CN114338130A (en) | Information processing method, device, server and storage medium | |
JP7008636B2 (en) | How to check for phone number changes, devices, and systems | |
KR101328118B1 (en) | Method for providing log in service based on passdata | |
CN115314372B (en) | Equipment distribution network method, system, computer equipment and storage medium | |
CN116600367A (en) | Equipment networking method, device, system, equipment and medium | |
CN114585055B (en) | Vehicle-mounted WiFi access method, vehicle controller, cloud server and mobile terminal | |
CN107613496B (en) | Queuing method, system and authentication server | |
CN114968822A (en) | Interface testing method and device, computer equipment and storage medium | |
CN108737350B (en) | Information processing method and client | |
CN110912959B (en) | Equipment access method and device, management and control system and electronic equipment | |
CN113487053A (en) | Maintenance service method, device, equipment and computer readable storage medium | |
CN114816965A (en) | Data verification method and device | |
CN112181785A (en) | Method, terminal and storage medium for automatically adding monitoring equipment | |
CN111064675A (en) | Access flow control method, device, network 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 | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20230511 Address after: 518031 room 1071, 10th floor, East Building, Xinghua building, No. 2018, Shennan Middle Road, Huaqiangbei street, Futian District, Shenzhen, Guangdong Province Applicant after: SHENZHEN BREO TECHNOLOGY Co.,Ltd. Address before: Room 1905, 19th Floor, Hisense South Building, No. 1777 Chuangye Road, Ulan Coast Community, Yuehai Street, Nanshan District, Shenzhen City, Guangdong Province, 518052 Applicant before: Shenzhen Micro Control Technology Co.,Ltd. |
|
TA01 | Transfer of patent application right | ||
GR01 | Patent grant | ||
GR01 | Patent grant |