Equipment authentication method and device based on Internet of things
Technical Field
The invention relates to the technical field of authentication of the Internet of things, in particular to an equipment authentication method and device based on the Internet of things.
Background
The internet of things is a network which is based on information carriers such as the internet, a traditional telecommunication network and the like and enables all independently addressable physical objects to be interconnected and intercommunicated, and communication technologies such as a local network or the internet are utilized to link sensors, controllers, machines, personnel, objects and the like together in a new mode to form person-to-object and object-to-object linkage.
And in the thing networking field, equipment needs the power supply be a ubiquitous reality, consequently there is a large amount of equipment that need carry out the alternating current-direct current power supply, these equipment adopt the mode of direct articulate in interchange or direct current supply circuit to carry out the equipment power supply, but this kind of power supply mode has certain potential safety hazard, for example, under the condition that output is not conform to the requirement, can't cut off the consumer and protect the power supply circuit when power consumption transfinites or starting current transfinites, can't avoid the emergence that the power consumption transfinites the problem that leads to the power supply circuit to burn out.
The above-mentioned defects have become a technical problem to be solved urgently.
Disclosure of Invention
The invention designs an equipment authentication method and device based on the Internet of things.
The invention adopts the following technical scheme:
an equipment authentication method based on the Internet of things is characterized by comprising the following steps:
step 1, an equipment authentication device reads equipment attribute information profile stored in a nonvolatile memory and sends the obtained equipment attribute information profile to an internet of things management platform;
step 2, the Internet of things management platform receives the equipment attribute information profile and acquires an equipment ID and factory setting information carried in the equipment attribute information profile;
step 3, the management platform of the Internet of things sends the acquired equipment ID to an equipment identification authentication server, the equipment identification authentication server inquires whether the received equipment ID is stored in the equipment identification authentication server, if so, an equipment ID authentication success message is returned to the management platform of the Internet of things, and step 4 is executed; if not, returning a device ID authentication failure message to the Internet of things management platform, and ending;
step 4, the management platform of the internet of things sends the equipment ID and factory setting information to an equipment performance management server, the equipment performance management server inquires whether the received equipment ID is stored in the equipment performance management server, if not, an equipment performance authentication failure message is returned to the management platform of the internet of things, and the operation is finished; if yes, the equipment performance management server acquires the stored factory setting information which is stored in association with the equipment ID, compares the factory setting information stored in association with the acquired factory setting information, and returns an equipment performance authentication success message if the comparison result is the same; and if the comparison result is different, returning a device performance authentication failure message.
Further, before the device authentication, the method further comprises a registration step of the following device authentication apparatus:
step 101, the equipment authentication device sends equipment attribute information profile to an internet of things management platform, wherein the equipment attribute information profile comprises equipment ID and factory setting information;
102, receiving equipment attribute information profile by an internet of things management platform, and acquiring an equipment ID and factory setting information from the equipment attribute information profile;
103, the internet of things management platform sends the acquired equipment ID to an equipment identification authentication server, the equipment identification authentication server judges whether the equipment authentication device is an authorized equipment authentication device or not according to the received equipment ID, if so, the acquired equipment ID is stored, an authentication success message is returned, and step 104 is executed; if not, the registration process is ended.
Further, the registering step of the device authentication apparatus further includes:
step 104, the internet of things management platform sends the acquired equipment ID and factory setting information to an equipment performance management server, the equipment performance management server compares the acquired factory setting information with preset parameter information, if the factory setting information meets the requirement of the preset parameter information, the equipment ID is recorded, the factory setting information is stored in an associated manner, and an equipment performance parameter entry success message is returned; and if the factory setting information does not meet the requirement of the preset parameter information, returning an equipment performance parameter entry failure message.
Further, when the device is shipped from the factory, the device attribute information profile is solidified in the non-volatile memory of the device authentication apparatus by the device manufacturer.
An internet-of-things-based device authentication apparatus for implementing the device authentication method according to any one of claims 1 to 4, wherein:
the device authentication apparatus includes: the device comprises a device power supply input interface, a device power supply output interface, a data acquisition unit, a wired communication interface, a wireless communication interface and a controller;
the equipment power supply input interface is used for inputting equipment power supply, and the equipment power supply input interface is connected with the controller;
the bus loop power supply switch is connected with the equipment power supply input interface and the equipment power supply output interface and is used for controlling the power supply of all the equipment authentication devices which are connected in series subsequently;
the equipment power supply output interface is used for connecting the input of the subsequent equipment power supply;
the data acquisition unit is connected with the controller and is used for acquiring the equipment power, the equipment starting current and the equipment power consumption of the power supply equipment and sending the acquired data to the controller;
and the controller is connected with the equipment power supply input interface, the equipment power supply output interface, the data acquisition unit, the wired communication bus interface and the wireless communication antenna and is used for carrying out power supply management on the management device and the power utilization load.
Furthermore, the wired communication interface is connected with the controller and is used for finishing wired bus communication among the equipment authentication devices and realizing interactive management of management data information of the equipment authentication devices;
and the wireless communication interface is connected with the controller and is used for realizing information interaction between the controller and the Internet of things management platform.
Furthermore, the device power supply input interface has L, N, E three terminals, which are respectively connected to the live wire, the zero wire, the ground wire of the power supply input or L, N, E of the device power supply output interface of the superior device authentication device.
Further, the wireless communication interface is used for fixing a feeder line led out by the wireless communication module in the controller chip on a circuit board of the device;
and the wired communication interface comprises an RS485 communication interface and is used for connecting the RS485 chip of the wired communication chip on the controller with the RS485 chips of other equipment authentication devices to complete information interaction between the equipment authentication devices.
Further, the controller adopts an STM32F103RC chip to realize core processing calculation of the equipment authentication device.
Further, the nonvolatile memory realizes the recording of the electricity consumption by using an M25P32 chip.
The invention has the beneficial effects that: the design of the invention can realize the identity recognition of the equipment authentication device, monitor and record the collected equipment power, equipment starting current and equipment power consumption of the electric equipment, send the recorded information to the Internet of things management platform through the wireless communication antenna, and perform corresponding safety processing when the equipment power and the power consumption exceed the set threshold value, thereby protecting the stable operation of other electric equipment.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a flow chart diagram of a device authentication method of the present invention;
fig. 2 is a schematic diagram of a component structure of the device authentication apparatus;
fig. 3 is a schematic diagram of the connection between the device authentication apparatuses;
the invention is further explained with reference to the drawings and the embodiments.
Detailed Description
The present invention will be described in further detail with reference to specific embodiments below:
reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It should be understood that although the terms "device," "other device," etc. may be used herein to describe various devices, these devices should not be limited by these terms. These terms are only used to distinguish one device from another. For example, a device may also be referred to as another device, and similarly, another device may also be referred to as a device without departing from the scope of the present application. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
Fig. 1 is a flowchart illustrating a device authentication method according to the present invention.
Step 1, an equipment authentication device reads equipment attribute information profile stored in a nonvolatile memory and sends the obtained equipment attribute information profile to an internet of things management platform;
step 2, the Internet of things management platform receives the equipment attribute information profile and acquires an equipment ID and factory setting information carried in the equipment attribute information profile;
step 3, the management platform of the Internet of things sends the acquired equipment ID to an equipment identification authentication server, the equipment identification authentication server inquires whether the received equipment ID is stored in the equipment identification authentication server, if so, an equipment ID authentication success message is returned to the management platform of the Internet of things, and step 4 is executed; if not, returning a device ID authentication failure message to the Internet of things management platform, and ending;
step 4, the management platform of the internet of things sends the equipment ID and factory setting information to an equipment performance management server, the equipment performance management server inquires whether the received equipment ID is stored in the equipment performance management server, if not, an equipment performance authentication failure message is returned to the management platform of the internet of things, and the operation is finished; if yes, the equipment performance management server acquires the stored factory setting information which is stored in association with the equipment ID, compares the factory setting information stored in association with the acquired factory setting information, and returns an equipment performance authentication success message if the comparison result is the same; and if the comparison result is different, returning a device performance authentication failure message.
Before the device authentication, the method also comprises the following registration steps of the device authentication device:
step 101, the equipment authentication device sends equipment attribute information profile to an internet of things management platform, wherein the equipment attribute information profile comprises equipment ID and factory setting information;
when the equipment leaves a factory, the equipment attribute information profile is solidified in a nonvolatile memory of an equipment authentication device by an equipment manufacturer;
102, receiving equipment attribute information profile by an internet of things management platform, and acquiring an equipment ID and factory setting information from the equipment attribute information profile;
103, the internet of things management platform sends the acquired equipment ID to an equipment identification authentication server, the equipment identification authentication server judges whether the equipment authentication device is an authorized equipment authentication device or not according to the received equipment ID, if so, the acquired equipment ID is stored, an authentication success message is returned, and step 104 is executed; if not, ending the registration process;
step 104, the internet of things management platform sends the acquired equipment ID and factory setting information to an equipment performance management server, the equipment performance management server compares the acquired factory setting information with preset parameter information, if the factory setting information meets the requirement of the preset parameter information, the equipment ID is recorded, the factory setting information is stored in an associated manner, and an equipment performance parameter entry success message is returned; if the factory setting information does not meet the requirement of the preset parameter information, returning a device performance parameter input failure message;
fig. 2 is a schematic diagram of the configuration of the device authentication apparatus. The device authentication apparatus includes: the device comprises a device power supply input interface, a device power supply output interface, a data acquisition unit, a wired communication interface, a wireless communication interface and a controller.
1) The equipment power supply input interface is used for inputting equipment power supply, and the equipment power supply input interface is connected with the controller;
2) the bus loop power supply switch is connected with the equipment power supply input interface and the equipment power supply output interface and is used for controlling the power supply of all the equipment authentication devices which are connected in series subsequently;
3) the equipment power supply output interface is used for connecting the input of the subsequent equipment power supply;
4) the data acquisition unit is connected with the controller and is used for acquiring the equipment power, the equipment starting current and the equipment power consumption of the power supply equipment and sending the acquired data to the controller;
5) the controller is connected with the equipment power supply input interface, the equipment power supply output interface, the data acquisition unit, the wired communication bus interface and the wireless communication antenna and is used for carrying out power supply management on the management device and the power utilization load;
6) the wired communication interface is connected with the controller and is used for finishing wired bus communication among the equipment authentication devices and realizing interactive management of management data information of the equipment authentication devices;
7) and the wireless communication interface is connected with the controller and is used for realizing information interaction between the controller and the Internet of things management platform.
The specific description information of the hardware device is as follows:
1) the equipment power supply input interface is provided with L, N, E three wiring terminals which are respectively connected with a live wire, a zero wire and a ground wire of power supply input or L, N, E of an equipment power supply output interface of a superior equipment authentication device;
2) the equipment power supply output interface is provided with L, N, E three terminals which are respectively connected with L, N, E of the lower equipment authentication device;
3) the wireless communication interface comprises an SMA antenna pedestal used for fixing a feeder line led out by a wireless communication module in the controller chip on a circuit board of the device and externally connecting an antenna to ensure the reliability of the wireless communication of the device.
4) The wired communication interface comprises an RS485 communication interface and is used for connecting a wired communication chip RS485 on the controller with RS485 chips of other equipment authentication devices to complete information interaction among the equipment authentication devices, and in addition, the wired communication interface CAN also comprise other types of bus communication interfaces such as a CAN bus, an I2C bus, an SPI bus and the like.
5) And the controller adopts an STM32F103RC chip to realize the core processing calculation of the equipment authentication device.
6) A nonvolatile memory (not shown) for recording the power consumption by using an M25P32 chip, and recording and storing the voltage, current, power factor and consumed electric energy of the electric load equipment once every minute;
7) an RTC clock chip (not shown) is used for implementing RTC clock timing by using the DS1302 chip, and the electricity consumption information of the electricity consumption load device is recorded every minute according to the RTC clock chip.
Fig. 3 is a schematic diagram of connection between device authentication apparatuses, which specifically includes the following contents: 1) the power supply input is accessed to the equipment power supply input interface of the equipment authentication device 1 to realize the total input of the multi-equipment authentication device; 2) the data acquisition unit of the equipment authentication device 1 is connected with the electric load equipment 1 to realize the power supply management of the electric load equipment 1; 3) connecting an equipment power supply output interface of the equipment authentication device 1 with an equipment power supply input interface of the equipment authentication device 2 to realize power supply of the equipment authentication device 2 and subsequent electric load equipment; 4) the wired communication bus of the equipment authentication device 1 is connected with the wired communication interface of the equipment authentication device 2, so that information interaction and communication between the equipment authentication devices are realized; 5) the wireless communication interface of the equipment authentication device 1 and the wireless communication interface of the equipment authentication device 2 are respectively in wireless communication with a remote internet of things management platform, so that information interaction and communication are realized.
The above description is only for the preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.