A kind of equipment authentication method and device based on Internet of Things
Technical field
The present invention relates to Internet of Things authentication techniques field, specially a kind of equipment authentication method and dress based on Internet of Things
It sets.
Background technique
Internet of Things is one based on the information carriers such as internet, conventional telecommunications net, and allowing all can be independently addressable
Physical object realizes the network to interconnect, using communication technologys such as localized network or internets sensor, controller, machine
Device, personnel and object etc. are linked togather by new mode, are formed people and are connected with object, object and object.
And in internet of things field, it is a generally existing reality that equipment, which needs to power, thus exist largely need into
The equipment of row supplied by AC/DC electricity, these equipment carry out equipment by the way of being directly articulated in exchange or direct current power supply loop
Power supply, but there are some potential safety problemss for this power supply mode, for example, in the case where output power is undesirable, when
Electrical equipment can not be cut off when electricity consumption transfinites or starting current transfinites to protect current supply circuit, not can avoid electricity consumption and transfinited and lead
The appearance for the problem of causing current supply circuit to burn.
These defects mentioned above have become technical problem urgently to be solved.
Summary of the invention
The present invention devises a kind of equipment authentication method and device based on Internet of Things.
Present invention employs following technical solutions:
A kind of equipment authentication method based on Internet of Things, which is characterized in that this method specifically comprises the following steps:
Step 1, the device attribute information profile stored in equipment authentication device reading non-volatile storage, and will
The device attribute information profile got is sent to Internet of Things management platform;
Step 2, Internet of Things management platform receives the device attribute information profile, and obtains the device attribute letter
The device id and default setting information carried in breath profile;
Step 3, the device id that Internet of Things management platform will acquire is sent to device identification certificate server, and device identification is recognized
Card server inquire-receive to the device id whether be stored in the device identification certificate server, if so, to
Internet of Things manages platform returning equipment ID and authenticates success message, and executes step 4;If it is not, then being returned to Internet of Things management platform
Device id authentification failure message, and terminate;
Step 4, Internet of Things manages platform and the device id and default setting information is sent to equipment performance management service
Whether device, the device id that equipment performance management server queries receive have been stored in the equipment performance management server
In, if it is not, then managing platform returning equipment performance certification failed message to Internet of Things, and terminate;If so, equipment performance management
Server obtains the default setting information with the device id associated storage saved, and by the default setting of the associated storage
Information is compared with the default setting of acquisition, if comparison result is identical, returning equipment performance certification success message;If than
Relatively result is difference, then returning equipment performance certification failed message.
Further, further include the registration step of following equipment authentication device before carrying out equipment certification:
Step 101, device attribute information profile is sent to Internet of Things management platform, equipment category by equipment authentication device
Property information profile includes device id and default setting information;
Step 102, Internet of Things manage platform receiving device attribute information profile, and from the device attribute information
Device id and default setting information are obtained in profile;
The device id that step 103, Internet of Things management platform will acquire is sent to device identification certificate server, device identification
Certificate server judges whether the equipment authentication device is the equipment authentication device authorized according to the device id received, if
It is that the device id that then will acquire is saved, return authentication success message, and execute step 104;If it is not, then terminating to infuse
Volume process.
Further, the registration step of the equipment authentication device further include:
The device id and default setting information that step 104, Internet of Things management platform will acquire are sent to equipment performance
Management server, the default setting information and preset parameter information that the equipment performance management server will acquire carry out
Compare, if the default setting information meets the requirement of the preset parameter information, records the device id, and will be described
Default setting information is associated storage, and returning equipment performance parameter typing success message;If the default setting information is not
Meet the requirement of the preset parameter information, then and returning equipment performance parameter typing failed message.
Further, when equipment is dispatched from the factory, the device attribute information profile, which is solidificated in equipment by device manufacturer, to be recognized
In the nonvolatile memory of card device.
A kind of equipment authentication device based on Internet of Things, for realizing the equipment certification as described in one of Claims 1-4
Method, it is characterised in that:
The equipment authentication device includes: equipment supply input interface, data acquisition unit, has equipment power supply output interface
Line communication interface, wireless communication interface and controller;
Equipment supply input interface connects controller after equipment supply input for the input of equipment power supply;
Bus loop power switch connects equipment supply input interface and equipment power supply output interface, for controlling equipment
The power supply of the subsequent concatenated all equipment authentication devices of authentication device;
Equipment power supply output interface, for connecting the input of follow-up equipment power supply;
Data acquisition unit connects controller, for acquiring plant capacity, the equipment starting current, equipment of power supply unit
Electricity consumption, and collected data are sent to controller;
Controller, connection equipment supply input interface, equipment power supply output interface, data acquisition unit, wire communication are total
Line interface and radio antenna, for being managed the power supply management of device and power load.
Further, wired communication interface connects controller, wired total between multiple equipment authentication device for completing
The interactive maintenance of the management data information of equipment authentication device is realized in line communication;
Wireless communication interface connects controller, for realizing the information exchange between controller and Internet of Things management platform.
Further, the equipment supply input interface, the interface have tri- connecting terminals of L, N, E, connect power supply respectively
The firewire of input, zero curve, ground wire or higher level equipment authentication device equipment power supply output interface L, N, E.
Further, wireless communication interface, the feeder line for drawing the wireless communication module in controller chip are fixed
On the circuit board of device;
Wired communication interface, including RS485 communication interface are used for wire communication chip RS485 on controller and other
The RS485 chip of equipment authentication device is attached, and completes the information exchange between equipment authentication device.
Further, controller uses STM32F103RC chip, realizes that the core processing of equipment authentication device calculates.
Further, nonvolatile memory realizes the record of electricity consumption using M25P32 chip.
The beneficial effects of the present invention are: design through the invention can be realized the identification with equipment authentication device,
And by the plant capacity of collected electrical equipment, equipment starting current, the monitoring of equipment electricity consumption and record, and by wireless
Communication antenna will record information and be sent to Internet of Things management platform, have exceeded the threshold values of setting in discovering device power and electricity consumption
When, corresponding safe handling is carried out, the stable operation of other electrical equipments is protected.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field
Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention
Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 is the flow diagram of equipment authentication method of the invention;
Fig. 2 is the composed structure schematic diagram of equipment authentication device;
Fig. 3 is the connection schematic diagram between equipment authentication device;
The invention will be further described with reference to the accompanying drawings and embodiments.
Specific embodiment
Present invention is further described in detail With reference to embodiment:
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with the application.On the contrary, they be only with it is such as appended
The example of the consistent device and method of some aspects be described in detail in claims, the application.
It is only to be not intended to be limiting the application merely for for the purpose of describing particular embodiments in term used in this application.
It is also intended in the application and the "an" of singular used in the attached claims, " described " and "the" including majority
Form, unless the context clearly indicates other meaning.It is also understood that term "and/or" used herein refers to and wraps
It may be combined containing one or more associated any or all of project listed.
It will be appreciated that though in the application various dresses may be described using term " place device ", " other devices " etc.
It sets, but these devices should not necessarily be limited by these terms.These terms are only used to for device being distinguished from each other out.For example, not departing from this
In the case where application range, place device can also be referred to as other devices, similarly, where other devices can also be referred to as
Device.Depending on context, word as used in this " if " can be construed to " ... when " or " when ... "
Or " in response to determination ".
Fig. 1 is the flow diagram of equipment authentication method of the invention.
Step 1, the device attribute information profile stored in equipment authentication device reading non-volatile storage, and will
The device attribute information profile got is sent to Internet of Things management platform;
Step 2, Internet of Things management platform receives the device attribute information profile, and obtains the device attribute letter
The device id and default setting information carried in breath profile;
Step 3, the device id that Internet of Things management platform will acquire is sent to device identification certificate server, and device identification is recognized
Card server inquire-receive to the device id whether be stored in the device identification certificate server, if so, to
Internet of Things manages platform returning equipment ID and authenticates success message, and executes step 4;If it is not, then being returned to Internet of Things management platform
Device id authentification failure message, and terminate;
Step 4, Internet of Things manages platform and the device id and default setting information is sent to equipment performance management service
Whether device, the device id that equipment performance management server queries receive have been stored in the equipment performance management server
In, if it is not, then managing platform returning equipment performance certification failed message to Internet of Things, and terminate;If so, equipment performance management
Server obtains the default setting information with the device id associated storage saved, and by the default setting of the associated storage
Information is compared with the default setting of acquisition, if comparison result is identical, returning equipment performance certification success message;If than
Relatively result is difference, then returning equipment performance certification failed message.
Further include the registration step of following equipment authentication device before carrying out equipment certification:
Step 101, device attribute information profile is sent to Internet of Things management platform, equipment category by equipment authentication device
Property information profile includes device id and default setting information;
In equipment factory, the device attribute information profile is solidificated in equipment authentication device by device manufacturer
In nonvolatile memory;
Step 102, Internet of Things manage platform receiving device attribute information profile, and from the device attribute information
Device id and default setting information are obtained in profile;
The device id that step 103, Internet of Things management platform will acquire is sent to device identification certificate server, device identification
Certificate server judges whether the equipment authentication device is the equipment authentication device authorized according to the device id received, if
It is that the device id that then will acquire is saved, return authentication success message, and execute step 104;If it is not, then terminating to infuse
Volume process;
The device id and default setting information that step 104, Internet of Things management platform will acquire are sent to equipment performance
Management server, the default setting information and preset parameter information that the equipment performance management server will acquire carry out
Compare, if the default setting information meets the requirement of the preset parameter information, records the device id, and will be described
Default setting information is associated storage, and returning equipment performance parameter typing success message;If the default setting information is not
Meet the requirement of the preset parameter information, then and returning equipment performance parameter typing failed message;
Fig. 2 is the composed structure schematic diagram of equipment authentication device.The equipment authentication device includes: equipment supply input connects
Mouth, equipment power supply output interface, data acquisition unit, wired communication interface, wireless communication interface and controller.
1) equipment supply input interface connects controller after equipment supply input for the input of equipment power supply;
2) bus loop power switch connects equipment supply input interface and equipment power supply output interface, sets for controlling
The power supply of the standby subsequent concatenated all equipment authentication devices of authentication device;
3) equipment power supply output interface, for connecting the input of follow-up equipment power supply;
4) data acquisition unit connects controller, for acquiring the plant capacity of power supply unit, equipment starting current, setting
Spare electricity, and collected data are sent to controller;
5) controller, connection equipment supply input interface, equipment power supply output interface, data acquisition unit, wire communication
Bus interface and radio antenna, for being managed the power supply management of device and power load;
6) wired communication interface connects controller, for completing the communication of the wired bus between multiple equipment authentication device,
Realize the interactive maintenance of the management data information of equipment authentication device;
7) wireless communication interface connects controller, hands over for realizing the information between controller and Internet of Things management platform
Mutually.
The specific descriptions information of above-mentioned hardware device is as follows:
1) equipment supply input interface, the interface have tri- connecting terminals of L, N, E, connect respectively supply input firewire,
L, N, E of the equipment power supply output interface of zero curve, ground wire or higher level equipment authentication device;
2) equipment power supply output interface, the interface have tri- connecting terminals of L, N, E, connect subordinate equipment authentication device respectively
L, N, E;
3) wireless communication interface, including SMA antenna pedestal, the feedback for drawing the wireless communication module in controller chip
Line is fixed on the circuit board of device, while external connection antenna, with guarantee device wireless communication it is reliable.
4) wired communication interface, including RS485 communication interface are used for wire communication chip RS485 on controller and its
He is attached the RS485 chip of equipment authentication device, the information exchange between equipment authentication device is completed, in addition, wire communication
Interface can also include the other kinds of bus communication interface of CAN bus, I2C bus, spi bus etc..
5) controller realizes that the core processing of equipment authentication device calculates using STM32F103RC chip.
6) nonvolatile memory (not shown), the record of electricity consumption is realized using M25P32 chip, is recorded per minute simultaneously
Store the voltage of a power load equipment, electric current, power, power factor (PF), consumption electric energy;
7) RTC clock chip (not shown) realizes RTC clock timing using DS1302 chip, according to every point of the RTC clock
Clock carries out the record of the power information of power load equipment.
Fig. 3 is the connection schematic diagram between equipment authentication device, specifically includes following content: 1) setting supply input access
The equipment supply input interface of standby authentication device 1, realizes total input of more equipment authentication devices;2) number of equipment authentication device 1
Power load equipment 1 is connected according to acquisition unit, realizes the power supply management of power load 1;3) equipment of equipment authentication device 1 is supplied
Electricity output interface is connected with the equipment supply input interface of equipment authentication device 2, realizes equipment authentication device 2 and subsequent electricity consumption
The power supply of load equipment;4) wired communication bus of equipment authentication device 1 is connected with the wired communication interface of equipment authentication device 2
It connects, realizes the information exchange and communication between equipment authentication device;5) wireless communication interface of equipment authentication device 1, equipment are recognized
The wireless communication interface of card device 2 is carried out wireless communication with long-range Internet of Things management platform respectively, is realized information exchange and is led to
Letter.
The foregoing is only a preferred embodiment of the present invention, but scope of protection of the present invention is not limited thereto,
In the technical scope disclosed by the present invention, any changes or substitutions that can be easily thought of by anyone skilled in the art,
It should be covered by the protection scope of the present invention.Therefore, protection scope of the present invention should be with the protection model of the claim
Subject to enclosing.