CN108390802A - Communication control method for smart home - Google Patents

Communication control method for smart home Download PDF

Info

Publication number
CN108390802A
CN108390802A CN201810131347.8A CN201810131347A CN108390802A CN 108390802 A CN108390802 A CN 108390802A CN 201810131347 A CN201810131347 A CN 201810131347A CN 108390802 A CN108390802 A CN 108390802A
Authority
CN
China
Prior art keywords
smart home
data
lan
control
ethernet
Prior art date
Application number
CN201810131347.8A
Other languages
Chinese (zh)
Inventor
向立
Original Assignee
成都欧督系统科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 成都欧督系统科技有限公司 filed Critical 成都欧督系统科技有限公司
Priority to CN201810131347.8A priority Critical patent/CN108390802A/en
Publication of CN108390802A publication Critical patent/CN108390802A/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. local area networks [LAN], wide area networks [WAN]
    • H04L12/2803Home automation networks
    • H04L12/283Processing of data at an internetworking point of a home automation network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/02Network architectures or network communication protocols for network security for separating internal from external traffic, e.g. firewalls
    • H04L63/0227Filtering policies
    • H04L63/0236Filtering by address, protocol, port number or service, e.g. IP-address or URL
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for supporting authentication of entities communicating through a packet data network
    • H04L63/0807Network architectures or network communication protocols for network security for supporting authentication of entities communicating through a packet data network using tickets, e.g. Kerberos

Abstract

The present invention provides a kind of communication control method for for smart home, this method includes:When Ethernet data is passed to smart home device, the Industrial Ethernet unit of smart home device receives Ethernet data bag, is the digital signal that smart home device can be handled by the analog signal code conversion of Ethernet.The present invention proposes a kind of for being not easily susceptible to network attack to application layer contour level protocol transparent for the communication control method of smart home, substantially increases safety, 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

Communication control method for smart home

Technical field

The present invention relates to Internet of Things, more particularly to a kind of communication control method for smart home.

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 communication control for smart home Method, including:

When Ethernet data is passed to smart home device, the Industrial Ethernet unit of smart home device receives Ethernet The analog signal code conversion of Ethernet is the digital signal that smart home device can be handled by data packet.

Preferably, if the analog signal of the Ethernet is serial data, in code conversion, serial data is turned It is changed to parallel data.

Preferably, the data after transfer are sent to the LAN access units of smart home device with fixed rate.

Preferably, the LAN access units of smart home device receive the network packet that the transmission of Industrial Ethernet unit comes,

Receive source address, destination address, protocol type, source port and the purpose extracted after a data packet in data packet Port parameter is compared with the licence list stored in piece external memory storage area, if in licence list, which is legal , it is determined data packet being transmitted to the control unit of smart home device or other equipment LAN according to parameter;

Preferably, if source address, destination address, protocol type, source port and destination interface parameter in data packet with permitted Can list be not consistent, then the packet is illegal, is intercepted and is abandoned.

Preferably, when the data that the LAN access units of smart home device receive are legal, and data need to transmit When to another equipment LAN, according to the IP mapping table parameters of the correspondence smart home LAN in licence list, by network packet In source address, destination address replace with the source address needed in the smart home LAN that reaches, destination address.

The present invention compared with prior art, has the following advantages:

The present invention proposes a kind of communication control method for smart home, to application layer contour level protocol transparent, no It is vulnerable to network attack, substantially increases safety, parallel processing speeds is 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, it is online to cycle requirement It divides, has the advantages that acquisition operation is quick, reduces storage redundancy.

Description of the drawings

Fig. 1 is the flow chart of the communication control method according to the ... of the embodiment of the present invention for smart home.

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 communication control method for smart home.Fig. 1 is according to of the invention real Apply the communication control method flow chart for smart home 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 LANAILANindex1It is required that smart home device into The request of row control right transfer, REQindex1Contain current LANAILANindex1Serial number, i.e. AILANindex1The son possessed enables Lowest number of the board 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 LANAILANindex1;Wherein, IDAILAN-index1For current LAN AILANindex1Identity, be stored in Smart home device and current LANAILANindex1In.

Current LANAILANindex1Receive { 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 LANAILANindex1Really The identity for recognizing smart home device passes through the certification to smart home device.Current LANAILANindex1By smart home device Identity IDT and oneself sub- token kindex1It is sent to key network, that is, sends { IDT, kindex1Give key network.

If current LANAILANindex1Calculated 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 LANAILANindex1It can not confirm the identity of smart home device, assist View terminates.

Other current LANAILAN 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 LANAILANindex2-AILANindexnThe sub- token k sentindex2、 kindex3、……、kindexn.Key network is according to the identity IDT of the smart home device received in the database of oneself Find out corresponding smart home device control right transfer token.It is main whenever receiving the sub- token that former smart home LAN is sent The sub- token k that control network is sent according to the former smart home LAN receivedindexi, i=1,2 ..., n, using control turn Judgment method is moved to determine whether smart home device control right transfer can be carried out.If smart home device control cannot be carried out Power transfer, then continue waiting for other originals smart home LAN and send sub- token.If smart home device control can be carried out to turn It moves, 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 deviceOTNIt calculatesWith H (r3, r4, IDNO, TID, kOT, kOTN), it sends To smart home device.

Smart home device receives Afterwards, first with the equipment identities identification code TID' and control right transfer that oneself is stored Token k'OTCalculate H (r3, r4, IDNO, TID', k'OT), and by result of calculation and receive Carry out exclusive or.If TID and kOT that TID' and k'OT are stored with key network respectively It is equal, then calculated H (r3, r4, IDNO, TID', k'OT) with the H (r that receive3, r4, IDNO, TID, kOT) identical,

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={ ω12... ω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 XI isThe data fusion result of i-th of smart home device.

In conclusion the present invention proposes a kind of communication control method for smart home, application layer contour level is assisted It discusses transparent, is not easily susceptible to network attack, substantially increases safety, parallel processing speeds are fast, and 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 (6)

1. a kind of communication control method for smart home, which is characterized in that including:
When Ethernet data is passed to smart home device, the Industrial Ethernet unit of smart home device receives Ethernet data The analog signal code conversion of Ethernet is the digital signal that smart home device can be handled by packet.
2. according to the method described in claim 1, it is characterized in that, further including:
If the analog signal of the Ethernet is serial data, in code conversion, simultaneously line number is converted serial data into According to.
3. according to the method described in claim 2, further including, sending the data after transfer to smart home with fixed rate sets Standby LAN access units.
4. according to the method described in claim 1, further including, the LAN access units of smart home device receive Industrial Ethernet The network packet that unit transmission comes,
Receive source address, destination address, protocol type, source port and the destination interface extracted after a data packet in data packet Parameter is compared with the licence list stored in piece external memory storage area, if in licence list, which is legal, root It determines data packet being transmitted to the control unit of smart home device or other equipment LAN according to parameter.
5. if according to the method described in claim 4, it is characterized in that, source address, destination address, protocol class in data packet Type, source port and destination interface parameter are not consistent with licence list, then the packet is illegal, are intercepted and are abandoned.
6. according to the method described in claim 4, it is characterized in that, what the LAN access units for working as smart home device received Data are legal, and when data need to be transmitted to another equipment LAN, according to the correspondence smart home LAN in licence list IP mapping table parameters, the source address in network packet, destination address are replaced with and needed in the smart home LAN that reaches Source address, destination address.
CN201810131347.8A 2018-02-09 2018-02-09 Communication control method for smart home CN108390802A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810131347.8A CN108390802A (en) 2018-02-09 2018-02-09 Communication control method for smart home

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810131347.8A CN108390802A (en) 2018-02-09 2018-02-09 Communication control method for smart home

Publications (1)

Publication Number Publication Date
CN108390802A true CN108390802A (en) 2018-08-10

Family

ID=63075381

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810131347.8A CN108390802A (en) 2018-02-09 2018-02-09 Communication control method for smart home

Country Status (1)

Country Link
CN (1) CN108390802A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102227111A (en) * 2011-05-27 2011-10-26 苏州金纳信息技术有限公司 Household broadband gateway and household Internet of things gateway realization apparatus
CN102694705A (en) * 2012-05-22 2012-09-26 项小东 Internet-based home appliance information management and service device and realization method thereof
CN104580233A (en) * 2015-01-16 2015-04-29 重庆邮电大学 Internet of Things smart home security gateway system
US20160147684A1 (en) * 2014-11-26 2016-05-26 Qualcomm Incorporated In-band interrupt time stamp
CN107390544A (en) * 2017-09-08 2017-11-24 肇庆高新区恒泰信息服务有限公司 A kind of intelligent home control system based on Ethernet

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102227111A (en) * 2011-05-27 2011-10-26 苏州金纳信息技术有限公司 Household broadband gateway and household Internet of things gateway realization apparatus
CN102694705A (en) * 2012-05-22 2012-09-26 项小东 Internet-based home appliance information management and service device and realization method thereof
US20160147684A1 (en) * 2014-11-26 2016-05-26 Qualcomm Incorporated In-band interrupt time stamp
CN104580233A (en) * 2015-01-16 2015-04-29 重庆邮电大学 Internet of Things smart home security gateway system
CN107390544A (en) * 2017-09-08 2017-11-24 肇庆高新区恒泰信息服务有限公司 A kind of intelligent home control system based on Ethernet

Similar Documents

Publication Publication Date Title
US20190349733A1 (en) DECENTRALIZED DATA STORAGE AND PROCESSING FOR IoT DEVICES
US10854059B2 (en) Wireless sensor network
CN103701801B (en) Resource access control method
JP5981662B2 (en) Method and apparatus for access authorization authentication in a wireless communication system
CN103250383B (en) Terminal, control device, communication means, communication system, communication module, program and messaging device
CN103299594B (en) System and method for extendible authentication framework
US6757585B2 (en) Management system for vending machines
CN104040996B (en) For the gateway controlled by cloud computing of communication network
CN103516541B (en) Configuration information automatic management method based on Intelligent transformer station
US10289426B2 (en) Constrained device and supporting operating system
CN100370443C (en) Integrated circuit and method for transmitting request
AU769001B2 (en) Degree of outlier calculation device, and probability density estimation device and histogram calculation device for use therein
US9775050B1 (en) Spectrum access for fixed LTE user equipment
CN105191215A (en) Data plane learning of bi-directional service chains
CN1307564C (en) Network switch and components and method of operation
CN106161100B (en) A kind of internet of things equipment configuration method and internet-of-things terminal
CN103546294B (en) Entrance guard authorization method, device and equipment
US7031967B2 (en) Method and system for implementing policies, resources and privileges for using services in LDAP
CN106790112B (en) Node operating system integrating lightweight block chains and data updating method
CN1910854B (en) Automatic update system and method for using a meta mib
CN107292181A (en) Database Systems based on block chain and the application method using the system
CN101409614B (en) Data synchronization method, system and equipment
CN104883278A (en) Method for classifying network equipment by utilizing machine learning
CN103621049A (en) System and method for automatically addressing devices in multi-drop network
Ruta et al. Enabling the Semantic Web of Things: framework and architecture

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