CN108390926A - terminal control method for internet of things - Google Patents
terminal control method for internet of things Download PDFInfo
- Publication number
- CN108390926A CN108390926A CN201810131338.9A CN201810131338A CN108390926A CN 108390926 A CN108390926 A CN 108390926A CN 201810131338 A CN201810131338 A CN 201810131338A CN 108390926 A CN108390926 A CN 108390926A
- Authority
- CN
- China
- Prior art keywords
- smart home
- home device
- data
- lan
- packet
- 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.)
- Pending
Links
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/02—Network architectures or network communication protocols for network security for separating internal from external traffic, e.g. firewalls
- H04L63/0227—Filtering policies
- H04L63/0236—Filtering by address, protocol, port number or service, e.g. IP-address or URL
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/2803—Home automation networks
- H04L12/2816—Controlling appliance services of a home automation network by calling their functionalities
-
- 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
- H04L67/125—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
-
- 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/0807—Network architectures or network communication protocols for network security for authentication of entities using tickets, e.g. Kerberos
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computing Systems (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Automation & Control Theory (AREA)
- Computer Hardware Design (AREA)
- Computer Security & Cryptography (AREA)
- General Engineering & Computer Science (AREA)
- Small-Scale Networks (AREA)
Abstract
The present invention provides a kind of terminal control method for Internet of Things, this method includes:Receive Industrial Ethernet data packet, extract source address, destination address, protocol type, source port and the destination interface parameter in data packet, it is compared with pre-stored licence list, if in licence list, then the packet is legal, the microprocessor of control unit judges the data received, if receiving the network packet containing configuration information, updates licence list information;It reads the information in FLASH memory and is uploaded to key network terminal.The present invention proposes a kind of terminal control method for Internet of Things, to application layer contour level protocol transparent, is not easily susceptible to network attack, substantially increases safety, and parallel processing speeds are fast, and internal hardware can define, flexibility is strong;It ensure that the manageability of large scale system.Smart home data are handled in conjunction with mobile terminal locations data, cycle requirement is divided online, has the advantages that acquisition operation is quick, reduce storage redundancy.
Description
Technical field
The present invention relates to Internet of Things, more particularly to a kind of terminal control method for Internet of Things.
Background technology
In the Internet of things era, daily-life related, and article is connected on network.Intelligent family based on Internet of Things
It is the various node resources integrated in household network to occupy future developing trend, by equipment user according to the demand of oneself dynamically group
Close multiplexing equipment, it is therefore desirable to which various nodes have programmability, to dynamically adjust itself function.And existing Internet of Things exists
Also great potential safety problem is brought while providing amenities for the people.In order to facilitate management, different types of network would generally be drawn
Divide in different smart home LAN segments, is independent between each other, but key network has connection with other networks, and
It is all exposed under other subnets, other smart homes LAN with key network can communicate without limitation, be existed to despotic network
The network attack of network.And the problem that existing node configuration method generally existing is transmitted and recombination expense is excessively high.Essentially from
The recombination generated when read-write memory cell on the transport overhead and node generated when code is sent and received between node to open
Pin.The position laid at present according to each sensor in domestic data fusion method, is merged, such information by some cycles
When handling and storage redundancy is excessive, and can not be formed and be melted with frequency of use variation and then dynamic change period progress data
It closes.
Invention content
To solve the problems of above-mentioned prior art, the present invention proposes a kind of terminal control side for Internet of Things
Method, including:
The LAN access units of smart home device receive Industrial Ethernet data packet, extract source address in data packet,
Destination address, protocol type, source port and destination interface parameter, are compared with pre-stored licence list, if being permitted
Can be in list, then the packet is legal, is determined data packet being transmitted to the control unit of smart home device still according to parameter
Other equipment LAN;
When the data received are legal and parameter specifies when being transmitted to control unit, then the LAN of smart home device
Access unit transfers a packet to control unit;The microprocessor of control unit judges the data received, if
The network packet containing configuration information is received, then the LAN for extracting register information write-in smart home device therein connects
Enter unit, updates licence list information;If receiving the network packet of querying command, microcomputer reads FLASH is deposited
Information in reservoir is simultaneously uploaded to key network terminal.
Preferably, if data belong to Session Initiation Protocol data packet, field related with IP inside Session Initiation Protocol is replaced;It will be new
Network packet verified again, statistics packet length, give data packet to Industrial Ethernet cell encoding after the completion and be output to
On Ethernet.
Preferably, the LAN access units of smart home device read the configuration information in meta-data index storage, with establishing source
Location, destination address, protocol type, source port, destination interface and the licence list for corresponding to smart home LAN IP mapping tables, and will
Licence list is stored in the piece external memory storage area in the LAN access units of smart home device;
Embedded chip connection in the LAN access units of the meta-data index storage and smart home device, metadata
Memory block is used to store the initial metadata of gateway of internet of things, and when powering on, the LAN access units of smart home device are deposited from metadata
Initial metadata is read in storage area, and the value of internal register is set;The LAN of clock module unit, smart home device in order to control
Access unit and Industrial Ethernet unit provide clock driving.
The present invention compared with prior art, has the following advantages:
The present invention proposes a kind of terminal control method for Internet of Things, to application layer contour level protocol transparent, is not easy
By network attack, safety is substantially increased, parallel processing speeds are fast, and internal hardware can define, flexibility is strong;It ensure that big
The manageability of type system.Smart home data are handled in conjunction with mobile terminal locations data, cycle requirement is drawn online
Point, have the advantages that acquisition operation is quick, reduce storage redundancy.
Description of the drawings
Fig. 1 is the flow chart of the terminal control method according to the ... of the embodiment of the present invention for Internet of Things.
Specific implementation mode
Retouching in detail to one or more embodiment of the invention is hereafter provided together with the attached drawing of the diagram principle of the invention
It states.The present invention is described in conjunction with such embodiment, but the present invention is not limited to any embodiments.The scope of the present invention is only by right
Claim limits, and the present invention covers many replacements, modification and equivalent.Illustrate in the following description many details with
Just it provides a thorough understanding of the present invention.These details are provided for exemplary purposes, and without in these details
Some or all details can also realize the present invention according to claims.
An aspect of of the present present invention provides a kind of terminal control method for Internet of Things.Fig. 1 is implemented according to the present invention
The terminal control method flow chart for Internet of Things of example.
The LAN access units of the smart home device of the present invention handle smart home lan data packet in real time, and smart home is set
Standby control unit includes the LAN access units of microprocessor and FLASH memory, wherein microprocessor and smart home device
In embedded chip connection.Control unit receives the management information from key network, according to different administration orders, carries out
Feedback of status, updates licence list, and configuration embedded chip operation makes smart home device secure connection network.Secondly, control
The status information of unit record workbench, including working platform environment, error log, FLASH memory store these states
Information.
The Industrial Ethernet unit of smart home device contains the independent Ethernet interface of two-way.Two-way Ethernet interface point
Do not connect different smart home LAN, realize the transfer between network analog signal and digital signal, and with smart home device
Embedded chip in LAN access units connects and carries out data exchange.
Embedded chip in the meta-data index storage of smart home device and the LAN access units of smart home device connects
It connects.Meta-data index storage is used to store the initial metadata of gateway of internet of things, when powering on, the LAN access units of smart home device
Initial metadata is read from meta-data index storage, and the value of internal register is set.Clock module unit, smart home in order to control
The LAN access units and Industrial Ethernet unit of equipment provide clock driving.
The LAN access units of smart home device read the configuration information in meta-data index storage, establish source address, purpose
Address, protocol type, source port, destination interface and the licence list for corresponding to smart home LAN IP mapping tables, and license is arranged
Table is stored in the piece external memory storage area in the LAN access units of smart home device.
After microprocessor in control unit is initialized, the network address defined in FLASH memory and end are read
Slogan completes the setting to own net address and port numbers, and is sent to key network and update network packet, while to
FLASH memory write-in record system mode log information.
When Ethernet data is passed to smart home device, Industrial Ethernet unit receives Ethernet data bag, by ether
The series analog memory signal of net, code conversion is the digital signal that the LAN access units of smart home device can be handled, and will be counted
According to parallel data is converted to, the data after transfer send the LAN access units of smart home device to fixed rate.
After the LAN access units of smart home device receive the network packet that the transmission of Industrial Ethernet unit comes, receive
To after a data packet, the ginsengs such as source address, destination address, protocol type, source port and the destination interface in data packet are extracted
Number.They are compared with the licence list stored in piece external memory storage area, if in licence list, the packet be it is legal,
It determines data packet being transmitted in control unit or other equipment LAN according to parameter;If not being inconsistent with licence list, the packet
It is illegal, is intercepted and abandoned.
When the data that the LAN access units of smart home device receive be it is legal, and data need to be transmitted to it is another
When a equipment LAN, according to the IP mapping table parameters of the correspondence smart home LAN in licence list, by the source in network packet
Address, destination address replace with the source address needed in the smart home LAN that reaches, destination address, if data belong to SIP associations
Data packet is discussed, then replaces field related with IP inside Session Initiation Protocol.New network packet is verified again, statistics packet
It is long, it gives data packet to Industrial Ethernet cell encoding after the completion and is output on Ethernet.
When the data that the LAN access units of smart home device receive are legal, and parameter specifies and is transmitted to control
When unit processed, then the LAN access units of smart home device transfer a packet to control unit.Microprocessor is to receiving
Data are judged, if receiving the network packet containing configuration information, extract register information write-in intelligence therein
Can home equipment LAN access units, the licence list information in more new film external storage area.If receiving the net of querying command
Network data packet then the information in microcomputer reads FLASH memory and is uploaded to key network terminal.
The new procedures mirror image that the LAN access units of the smart home device are write according to equipment user executes equipment automatically
Configuration and programmed tasks, process are as follows:
Incremental code is generated as unit of function first;
Then, the increment script comprising incremental code and programmable operations is sent to key network;
After key network receives increment script, increment script is sent to gateway of internet of things;
After reconfiguring node and receiving the increment script comprising incremental code, by increment script download in memory with
After old code combination, fresh code is generated;
If the volume of fresh code has been more than the volume of old code, the position of correlation function in code segment where adjusting it
It sets, to be put into the fresh code after volume increases;
After the whole replacement weighted value for recalculating current code section, judge whether to need to cache current code section;Such as
Fruit needs, then code segment is integrally put into buffer area.
Further, by the way that multiple functions with similitude are aggregated into a code segment so that the body of each code segment
Product is relatively fixed.Entire program will be fifty-fifty divided into multiple code segments, while increase by one to the end of each code segment
Volume is overflow space, position adjustment when increasing dedicated for function volume.
Wherein, when similarity between coded description, code u and code v is given, N (u) and N (v) is enabled to indicate u respectively
With the code for needing to call in v.The similarity of calculation code u and code v:
Further, for the caching characteristic of code segment, the calling and load mode of code are redesigned.Use register phase
To addressing, by the centralized management to code segment inner function address, when code segment is integrally placed into buffer area, code segment includes
The entry addresses of all functions will all change, use improved director data mixing list at this time.
While considering Programmable Dynamic feature, the slow of code segment is introduced using program structure as programmable static nature
Deposit algorithm.Mapping structure figure is established based on the call relation between code segment, and analyzes each code segment using Markov chain and exists
The possibility that starting stage is updated.Each code segment cache weights value is assigned, is decided whether generation according to cache weights value
Code section replaces out caching.
When code segment is integrally placed into buffer area, the entry address for all functions that code segment includes will all become
Change.Therefore on the basis of original function is resetted and used, the more efficient mode of use completes the management to function address, including:
Step 1, all functions for retaining and currently needing execution functional dependence;Then pass through the symbol of reading executable file
Number table, establishes function table;
Step 2, function table automatically generates after program image compiling, and is adjusted according to new program image.It utilizes
Call relation between buffer area function calculates the similarity between all functions, for determining code segment splitting scheme;According to
The position of all functions of buffer area is readjusted according to splitting scheme, and reserves corresponding overflow space for each code segment;
Step 3, source file is recompilated according to the new position of function;In the precompile stage, the method for calling of first Modification growth function
And register assignment instruction is added, the ground of respective function in the buffer area storage location and Modification growth function table of subsequent Tuning function
Location;
Step 4, according to the call relation of code segment, the initial replacement weighted value of each code segment is calculated, and most throughout one's life
At the buffer area program image of paging.
Wherein, control unit updates licence list, so that its secure connection network further comprises:
The smart home device of the present invention and key network Compliance control power transfer token.If smart home device connection is more
A equipment LAN, key network distribute sub- token according to the control weight of multiple equipment LAN for each smart home LAN.It gathers around
The sub- token length for the smart home LAN for having control weight high is also longer.Only when license carries out the intelligence of control right transfer
After the weight that household LAN is possessed reaches the threshold value of setting, smart home device control right transfer can be just carried out.
Authentication token k is had been written in smart home device internal storageau, control right transfer token kOTWith equipment body
Part identification code TID.Control right transfer threshold value thrld is set, is added in smart home device by key network, guarantee is only worked as
The smart home LAN or multiple smart homes LAN licenses for possessing smart home device control major part weight carry out control
When transfer, the control of smart home device could be given to new LAN.
In the present invention, smart home device needs are communicated with smart home LAN and key network, smart home
LAN is also required to be communicated with key network.Before carrying out control right transfer, the former smart home LAN of smart home device
The identification information of new LAN is sent to key network.
Before control right transfer, key network shares a control right transfer token k with smart home deviceOT.Master control
Network is according to the control weights of control right transfer token division methods and smart home device LAN, to control right transfer token
kOTIt carries out being divided into multiple sub- tokens, the sub- token that different smart home LAN possesses is different, and sub- token is sent to accordingly
Smart home device LAN.The weight that smart home LAN possesses smart home device control is more, the sub- token possessed
Length it is longer.When needing to carry out control right transfer, key network judges whether according to the sub- token that smart home LAN is sent
It can carry out smart home device control right transfer.
Key network is first by a control right transfer token kOTIt is written in smart home device, control right transfer token
kOTLength be slen, then sub- token is distributed for different LAN.One sub- token base length value is set, sub is usedlenIt indicates,
The length of each sub- token is sublenPositive integer times.
The sum of control weight of smart home device LAN is 100%, and minimum control weight is 1%.Therefore, intelligence
The maximum quantity of energy household LAN is 100.Possess the smart home LAN of sh% control weights sub- token length be sh ×
Sublen bits, and so on.Wherein, sh is positive integer.Different sub- tokens is mutually different.Therefore, control right transfer token
Length slen value should be greater than be equal to 100 × sublen.Next control right transfer token is divided and control right transfer is sentenced
It is disconnected to illustrate.
Control right transfer token division methods are executed by key network.Each in power transfer token compares in order to control first
Spy is numbered, and leftmost bit number is 1, and the number of each bit is followed successively by 1,2,3 from left to right ... ..., slen.
Assuming that the value of sub- token fundamental length sublen is 128 bits.
Key network is by the former smart home LAN random alignments of smart home device.If first smart home LAN is gathered around
The control weight of some smart home devices is sh1%, and key network is by control right transfer token kOTThe the 1st to the 128th ×
The sub- token that sh1 bits are possessed as smart home LAN, the length of 128 × sh1 bits.Ratio in the sub- token
Lowest number of the spy in control right transfer token is the serial number of smart home LAN.
If the control weight for the smart home device that second smart home LAN is possessed is sh2%, key network will
Control right transfer token kOT128 × sh1+1 bits to 128 × sh1+1+128 × sh2-1 i.e. 128 × (sh1+sh2) compare
The sub- token that spy is possessed as smart home LAN, the length of 128 × sh2 bits.Second smart home LAN possesses
Lowest number of the sub- token in control right transfer token be 128 × sh1+1, therefore, the serial number of smart home LAN
128×sh1+1。
If the control weight for the smart home device that third smart home LAN is possessed is sh3%, key network will
Control right transfer token kOTThe the 128th × (sh1+sh2)+1 bit to the 128th × (sh1+sh2)+1+128 × sh3-1 i.e. 128
The sub- token that × (sh1+sh2+sh3) bit is possessed as smart home LAN, the length of 128 × sh3 bits.Third
Lowest number of the sub- token that a smart home LAN possesses in control right transfer token is 128 × (sh1+sh2)+1, therefore
The serial number 128 of smart home LAN × (sh1+sh2)+1 ... ... and so on.
What the different intelligent household LAN of control right transfer deterministic process key network acquisition smart home device first possessed
Each license is carried out the sub- token of the former smart home LAN of control right transfer according to the sequence of original smart home LAN by sub- token
It number is recombinated.The specific steps are:Key network marks off dedicated memory block in the memory block of oneself, and the memory block is first
Any data are not stored when beginningization, if the memory block is Tsp.It is each bit since the leftmost bit in memory block
Memory block be numbered, be followed successively by 1,2,3 ... ..., slen.The sub- token received is put by key network successively according to serial number
In the Tsp of memory block, if the sub- token received is not continuous, the part lacked between different sub- tokens does not still store any
Data.After the sub- token received is all put into the Tsp of memory block, by the control of bit value and oneself storage in the Tsp of memory block
System power transfer token kOTIt is compared, i.e. the bit that number in Tsp is i and the bit that number is i in control right transfer token
It is compared.If wherein consistent has clenBit.If clen/slenValue be more than or equal to threshold value thrld, then allow to be controlled
The control of smart home device, is given new LAN by power transfer.If clen/slenValue be less than threshold value thrld, then refuse into
Row control right transfer.
The flow of agreement is as follows:
Current LAN AILANindex1Generate random number r1REQ is asked with control right transferindex1, send { REQindex1,
IDAILAN-index1, r1Give smart home device.Wherein, REQindex1For current LAN AILANindex1It is required that smart home device
Carry out the request of control right transfer, REQindex1Contain current LAN AILANindex1Serial number, i.e. AILANindex1The son possessed
Lowest number of the token in control right transfer token.
Smart home device receives { REQindex1, IDAILAN-index1, r1After, generate random number r2, calculate H (REQindex1,
IDAILAN-index1, r1, r2, kau), and send { REQindex1, IDAILAN-index1, r1, r2, H (REQindex1, IDAILAN-index1, r1,
r2, kau) give current LAN AILANindex1;Wherein, IDAILAN-index1For current LAN AILANindex1Identity, storage
In smart home device and current LAN AILANindex1In.
Current LAN AILANindex1Receive { REQindex1, IDAILAN-index1, r1, r2, H (REQindex1, IDAILAN-index1,
R1, r2, kau) after, with the token k' of oneself storageauCalculate H (REQindex1, IDAILAN-index1, r1, r2, k'au).If the calculating
As a result with the H (REQ that receiveindex1, IDAILAN-index1, r1, r2, kau) equal, i.e. kau=k'au, current LAN AILANindex1Really
The identity for recognizing smart home device passes through the certification to smart home device.Current LAN AILANindex1By smart home device
Identity IDT and oneself sub- token kindex1It is sent to key network, that is, sends { IDT, kindex1Give key network.
If current LAN AILANindex1Calculated H (REQindex1, IDAILAN-index1, r1, r2, k'au) with the H that receives
(REQindex1, IDAILAN-index1, r1, r2, kau) unequal, illustrate kau and former smart home LAN that smart home device uses
The k' usedauIt is different, i.e. kau≠k'au, current LAN AILANindex1It can not confirm the identity of smart home device, assist
View terminates.
Other current LAN AILAN of smart home deviceindex2-AILANindexnIt is executed respectively with smart home device
Step 1) is stated to step 3), then key network can receive current LAN AILANindex2-AILANindexnThe sub- token sent
kindex2、kindex3、……、kindexn.Key network is according to the identity IDT of the smart home device received in the number of oneself
According to finding out corresponding smart home device control right transfer token in library.It is enabled whenever receiving the son that former smart home LAN is sent
When board, sub- token k that key network is sent according to the former smart home LAN receivedindexi, i=1,2 ..., n, use
Control right transfer judgment method is to determine whether smart home device control right transfer can be carried out.If smart home cannot be carried out
Equipment control right transfer then continues waiting for other originals smart home LAN and sends sub- token.If smart home device control can be carried out
System power transfer, then key network is that smart home device generates new control right transfer token kOTN。
Key network generates random number r3, send { REQtr, r3, H (REQtr, r3, TID) } give smart home device.Wherein,
REQtrFor the control right transfer request from key network, TID is the equipment identities that smart home device is shared with key network
Identification code.
Smart home device receives the message { REQ of key network transmissiontr, r3, H (REQtr, r3, TID) } after, use oneself
The equipment identities identification code TID' of storage calculates H (REQtr, r3, TID'), and by the result of calculation and the H (REQ that receivetr, r3,
TID it) is compared.If the two is inconsistent, illustrate the equipment identities identification code TID' and key network of smart home device storage
The equipment identities identification code TID of storage is inconsistent, i.e. TID' ≠ TID, smart home device can not confirm key network
Identity, agreement terminate.
If the two is consistent, illustrate that the equipment identities identification code TID' of smart home device storage is set with what key network stored
Standby identity code TID is consistent, and smart home device confirms the identity of key network, passes through the certification to key network.
Smart home device generates random number r4, calculate H (REQtr, r3, r4, TID'), and send { REQtr, r3, r4, H
(REQtr, r3, r4, TID') } give key network.
Key network receives the message { REQ that smart home device is senttr, r3, r4, H (REQtr, r3, r4, TID') } after, it uses
The equipment identities identification code TID of oneself storage calculates H (REQtr, r3, r4, TID), and by itself and the H (REQ that receivetr, r3, r4,
TID' it) is compared.If the two is inconsistent, illustrate the equipment identities identification code TID and smart home device of key network storage
The equipment identities identification code TID' of storage is inconsistent, and key network can not confirm that the identity of smart home device, agreement terminate.
If the two is consistent, illustrate that the equipment identities identification code TID of key network storage is set with what smart home device stored
Standby identity code TID' is consistent, and key network confirms the identity of smart home device, passes through the certification to smart home device.
Key network uses the new control right transfer token k generated for smart home deviceOTNCalculate H (r3, r4, IDNO, TID, kOT)
⊕kOTNWith H (r3, r4, IDNO, TID, kOT, kOTN), send { r3, r4, IDNO, H (r3, r4, IDNO, TID, kOT)⊕kOTN, H (r3,
r4, IDNO, TID, kOT, kOTN) give smart home device.
Smart home device receives { r3, r4, IDNO, H (r3, r4, IDNO, TID, kOT)⊕kOTN, H (r3, r4, IDNO, TID,
kOT, kOTN) after, first with the equipment identities identification code TID' and control right transfer token k' of oneself storageOTCalculate H (r3, r4,
IDNO, TID', k'OT), and by result of calculation and the H (r that receive3, r4, IDNO, TID, kOT)⊕kOTNCarry out exclusive or.If TID' and
K'OT is equal with the TID and kOT of key network storage respectively, then calculated H (r3, r4, IDNO, TID', k'OT) with the H that receives
(r3, r4, IDNO, TID, kOT) identical, H (r3, r4, IDNO, TID', k'OT)⊕H(r3, r4, IDNO, TID, kOT)⊕kOTN=kOTN。
The smart home device equipment identities identification code TID' and k'OT and calculated new control oneself stored
Power transfer token k'OTNCalculate H (r3, r4, IDNO, TID', k'OT, k'OTN), and by the result of calculation and the H (r that receive3, r4,
IDNO, TID', k'OT, k'OTN) compared.If the two is unequal, illustrate the equipment identities identification code of smart home device storage
TID' or control right transfer token k'OTOr calculated k'OTNEquipment identities identification code TID with key network storage or control
Power transfer token kOTOr kOTNIt is inconsistent, i.e. three inequality TID' ≠ TID, k'OT≠kOTAnd k'OTN≠kOTNIn at least one
It sets up.In this case, smart home device fails to negotiate a shared new control right transfer order with key network
Board, agreement restart to execute.
If the two is equal, i.e. three equation TID' ≠ TID, k'OT≠kOTAnd k'OTN≠kOTNAll set up.In this case,
Correctly new control right transfer token k' has had successfully been obtained in smart home deviceOTN, smart home device and key network
Possess the same new control right transfer token.Smart home device calculates H (r3, r4, IDNO, TID', k'OTN), send { r3,
r4, IDNO, H (r3, r4, IDNO, TID', k'OTN) give key network.
Key network receives the message { r that smart home device is sent3, r4, IDNO, H (r3, r4, IDNO, TID', k'OTN)}
Afterwards, with the equipment identities identification code TID and new control right transfer token k of oneself storageOTNCalculate H (r3, r4, IDNO, TID,
kOTN), and by the result of calculation and the H (r that receive3, r4, IDNO, TID', k'OTN) compared.
If the two is unequal, illustrate the equipment identities identification code TID or control right transfer token k of key network storageOTNWith
The TID' or k' of smart home device storageOTNIt is inconsistent, key network and smart home device fail to negotiate one it is shared
New control right transfer token, agreement restart to execute.
If the two is equal, illustrate the equipment identities identification code TID and control right transfer token k of key network storageOTNWith intelligence
The TID' and k' of energy home equipment storageOTNUnanimously, key network negotiates a shared new control with smart home device
Power transfer token, and key network determines that correctly new control right transfer token has had successfully been obtained in smart home device
k'OTN。
Key network sends { SUC, IDT, IDNO, kOTNGive new LAN.Wherein, SUC weighs transfer success notification in order to control,
For notifying new LAN to obtain the new control right transfer token k of smart home deviceOTN, control right transfer completion.New LAN takes
Obtained control right transfer token kOTN, the control to smart home device is obtained, control right transfer token k can be usedOTNWith
Smart home device is communicated.
Described control unit carries out data fusion based on smart home mobile terminal location data.It specifically includes:
Extraction time unit metadata is analyzed in time predefined section [ts, te] interior smart home device multiple sensors
Historical data chronomere feature.Specifically include following steps:
1. to multi-source data record extraction parameter import database, and adjust data field SensorID, AreaNo,
Time, Occ, wherein SensorID are sensor number, and AreaNo numbers for regional location, and time is detection time, and Occ is control
System power time ratio.
2. to historgraphic data recording extraction time sequence, then data time series the finite aggregate { (t that acquires1,o1),(t2,
o2),…,(tn,on) meet ts≤ti≤teAnd ti<ti+1(i=1,2 ..., n-1), oiFor corresponding time tiParameter set includes control
System power time ratio Occ, calculates period [ts, te] gathered data chronomere { Δ tk|Δtk=ti+1-tiAnd i=1,
2,…,n-1};
3. calculating chronomere's metadata of multi-source sensing data acquisition time unit, i.e., in period [ts, te] in, base
In the data record extraction time unit metadata t of m kinds chronomerebFor:
Wherein pikFor k-th of acquisition time units of delta t in i-th of smart home devicekThe probability of appearance, riIt is i-th
The gathered data amount of smart home device accounts for the weight of all sensing datas, and n is smart home device quantity in region.
Space position parameter Dx, Dy is extracted, carrying out spatial information to sensing data loads to obtain the unified field of data
SensorID, Dx, Dy, AreaNo, time, Occ, wherein Dx are sensing station abscissa, and Dy is sensing station ordinate.
For the data of single smart home device, the data quality control flow based on chronomere's metadata is specifically wrapped
Include following steps:
If existence anduniquess (ti, oi)∈(ntb, (n+1) tb], then by data (ti, oi) it is adapted to (t(n+1)tb, oi);
If there are multiple (ti, oi)∈(ntb, (n+1) tb], then k number evidence is set to data (ti_1, oi_1), (ti_2,
oi_2) ..., (ti_k, oi_k), o(n+1)tb=(oi_1+oi_2+…+oi_k)/k obtains normalization data (t(n+1)tb, o(n+1)tb)。
If there is no (ti, oi)∈(ntb, (n+1) tb], it is determined that front and back cycle data (ti-2, oi-2), (ti-1, oi-1) and
(ti+1, oi+1), (ti+2, oi+2),Obtain normalization data (t(n+1)tb, o(n+1)tb)。
N smart home device to be fused is determined, to i-th of smart home device data xiIt calculates and j-th of intelligence
Home equipment data xjThe discrete data incidence coefficient r in time span TijFor
Wherein xikFor k-th of chronomere's metadata in i-th of smart home device data time length T, xjkFor jth
K-th of chronomere's metadata in a smart home device data time length T.
According to smart home device discrete data incidence coefficient, calculate the data correlation degree of i-th of smart home device because
Number is
Data conversion and filtering are carried out to customer mobile terminal location information, and to mobile terminal location number in detection zone
According to dynamic change update;Specifically include following steps:
1. check location data attribute information it is whether complete, to data according to criteria field locid, locname, x, y,
CheckedUserID formats are modified, and wherein locid is location data number, locname is position location title, x is fixed
Position position abscissa, y are position location ordinate, CheckedUserID is location data source mobile terminal number;
2. the resetting data of couple identical CheckedUserID carry out data merging treatment, the redundancy of data is reduced,
Initialization time identical element data coefficient δ is 1.
3. by discrete location location point using the δ times of time of chronomere's metadata as fusion cycle, before current time t
[t-2δ*tb,t-δ*tb] section and [t- δ * tb, t] and in section, judge the polygonal region belonging to the smart home device of position, and
Count the quantity m of location data0And m1。
4. with present fusion period [t- δ * tb, t] and fusion cycle [t-2 δ * tb,t-δ*tb] in location data variable quantity
Δ m=| m1-m0| with upper limit threshold Mmax, lower threshold MminCompare;If Δ m<Mmin, then δ=δ+1 and repetition step 3;If Δ
m>Mmax, then δ=δ -1 and repetition step 3;If Δ m ∈ [Mmin,Mmax], it is determined that chronomere's member that cycle dynamics are δ times
Data.
Changed to obtain to cycle requirement by positioning change to attributes, for obtain unified field Dx, Dy of data, AreaNo,
Time, Occ carry out multiple smart home devices according to period application demand the fusion of parameter field data.I.e.:
1. in dynamic interval [t, t+ δ * tb] in n sensor data measured weight matrix W={ ω1,ω2...
ωn}T, wherein ωiIndicate i-th of sensor record parameter field data xiThe shared weight in fusion process.
2. in dynamic interval [t, t+ δ * tb] the interior n to i-th of smart home deviceiA data calculate i-th of intelligence
The fuse information of energy home equipmentWherein xaIt is obtained for i-th of smart home device sensor to be fused
Data.
3. in dynamic interval [t, t+ δ * tb] the obtained data fusion result of interior much information acquisition method is:Wherein XiFor the data fusion result of i-th of smart home device.
In conclusion the present invention proposes a kind of terminal control method for Internet of Things, to the high layer protocol such as application layer
It is transparent, be not easily susceptible to network attack, substantially increase safety, parallel processing speeds are fast, internal hardware can define, flexibility
By force;It ensure that the manageability of large scale system.Smart home data are handled in conjunction with mobile terminal locations data, to the period
Demand divides online, has the advantages that acquisition operation is quick, reduces storage redundancy.
It should be understood that the above-mentioned specific implementation mode of the present invention is used only for exemplary illustration or explains the present invention's
Principle, but not to limit the present invention.Therefore, that is done without departing from the spirit and scope of the present invention is any
Modification, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.In addition, appended claims purport of the present invention
Covering the whole variations fallen into attached claim scope and boundary or this range and the equivalent form on boundary and is repairing
Change example.
Claims (3)
1. a kind of terminal control method for Internet of Things, which is characterized in that including:
The LAN access units of smart home device receive Industrial Ethernet data packet, extract source address, the purpose in data packet
Address, protocol type, source port and destination interface parameter, are compared with pre-stored licence list, if being arranged in license
In table, then the packet is legal, according to parameter determine by data packet be transmitted to smart home device control unit or other
Equipment LAN;
When the data received are legal and parameter specifies when being transmitted to control unit, then the LAN accesses of smart home device
Unit transfers a packet to control unit;The microprocessor of control unit judges the data received, if received
To the network packet containing configuration information, then the LAN accesses for extracting register information write-in smart home device therein are single
Member updates licence list information;If receiving the network packet of querying command, microcomputer reads FLASH memory
In information and be uploaded to key network terminal.
2. according to the method described in claim 1, it is characterized in that:
If data belong to Session Initiation Protocol data packet, field related with IP inside Session Initiation Protocol is replaced;By new network data
Packet is verified again, and statistics packet length is given data packet to Industrial Ethernet cell encoding after the completion and is output on Ethernet.
3. according to the method described in claim 1, it is characterized in that, further including:
The LAN access units of smart home device read the configuration information in meta-data index storage, establish source address, destination
Location, protocol type, source port, destination interface and corresponding smart home LAN IP mapping tables licence list, and by licence list
It is stored in the piece external memory storage area in the LAN access units of smart home device;
Embedded chip connection in the LAN access units of the meta-data index storage and smart home device, metadata storage
Area is used to store the initial metadata of gateway of internet of things, and when powering on, the LAN access units of smart home device are from meta-data index storage
Middle reading initial metadata, is arranged the value of internal register;Clock module in order to control unit, smart home device LAN access
Unit and Industrial Ethernet unit provide clock driving.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810131338.9A CN108390926A (en) | 2018-02-09 | 2018-02-09 | terminal control method for internet of things |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810131338.9A CN108390926A (en) | 2018-02-09 | 2018-02-09 | terminal control method for internet of things |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108390926A true CN108390926A (en) | 2018-08-10 |
Family
ID=63075431
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810131338.9A Pending CN108390926A (en) | 2018-02-09 | 2018-02-09 | terminal control method for internet of things |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108390926A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114095379A (en) * | 2021-10-30 | 2022-02-25 | 北京天融信网络安全技术有限公司 | Rapid modeling method and system based on Internet of things |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102694705A (en) * | 2012-05-22 | 2012-09-26 | 项小东 | Internet-based home appliance information management and service device and realization method thereof |
CN103236960A (en) * | 2013-04-18 | 2013-08-07 | 重庆邮电大学 | Method and system for data interaction between home server and plurality of terminals |
CN103312715A (en) * | 2013-06-14 | 2013-09-18 | 西安交通大学 | Web service oriented home network system architecture |
US20170163685A1 (en) * | 2015-12-08 | 2017-06-08 | Jpu.Io Ltd | Network routing and security within a mobile radio network |
-
2018
- 2018-02-09 CN CN201810131338.9A patent/CN108390926A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102694705A (en) * | 2012-05-22 | 2012-09-26 | 项小东 | Internet-based home appliance information management and service device and realization method thereof |
CN103236960A (en) * | 2013-04-18 | 2013-08-07 | 重庆邮电大学 | Method and system for data interaction between home server and plurality of terminals |
CN103312715A (en) * | 2013-06-14 | 2013-09-18 | 西安交通大学 | Web service oriented home network system architecture |
US20170163685A1 (en) * | 2015-12-08 | 2017-06-08 | Jpu.Io Ltd | Network routing and security within a mobile radio network |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114095379A (en) * | 2021-10-30 | 2022-02-25 | 北京天融信网络安全技术有限公司 | Rapid modeling method and system based on Internet of things |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110535777A (en) | Access request control method, device, electronic equipment and readable storage medium storing program for executing | |
CN108427956B (en) | A kind of clustering objects method and apparatus | |
US10268485B2 (en) | Constrained device and supporting operating system | |
CN107016056B (en) | Distributed storage system and method for large-volume heterogeneous sensing data in Internet of things | |
CN110050474A (en) | The type name of subobject for the composite object in Internet of Things network and block chain | |
CN108199897A (en) | A kind of OPC UA multiserver polymerizations for supporting cache management | |
CN104796969A (en) | Network accessing method and system for equipment of internet of things on basis of recognition codes of internet of things | |
CN107948027A (en) | One kind carries smart home data safety backup system and method for work | |
CN110225039A (en) | Authority models acquisition, method for authenticating, gateway, server and storage medium | |
CN108566653A (en) | A kind of operation management method and base station equipment of base station equipment | |
CN109493072A (en) | A method of the privacy contract protection based on alliance's block chain | |
CN105227352A (en) | A kind of update method of user ID collection and device | |
CN108833267A (en) | Intelligent industrial gateway | |
CN103490962A (en) | Internet of Things access platform system and Internet of Things access method | |
CN102724079A (en) | Method and system for auxiliary configuration of Ethernet equipment | |
CN108600163A (en) | A kind of cloud environment distributed hash chain framework and cloud data integrity verification method | |
CN109067732A (en) | Internet of things equipment and data insertion system, method and computer readable storage medium | |
CN107580040A (en) | The method and apparatus that a kind of communication module in intelligent household terminal upgrades | |
CN112118133B (en) | Method for facilitating quick upgrade of intelligent contracts of Ethernet based on custom structure data | |
CN103916397A (en) | Safety monitoring method under distributed network environment | |
CN110351388A (en) | A kind of application method based on internet of things architecture system | |
CN104754287A (en) | Video monitoring equipment configuration parameter issuing method and system | |
CN110278255A (en) | A kind of method and device of the Internet of Things IOT communication between devices based on block chain | |
CN108592311A (en) | Air conditioner equipment pairing method and device | |
CN108390926A (en) | terminal control method for internet of things |
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 | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20180810 |