CN110161873A - A kind of method and system of smart home sensor low power consumption data safe transmission - Google Patents
A kind of method and system of smart home sensor low power consumption data safe transmission Download PDFInfo
- Publication number
- CN110161873A CN110161873A CN201910506353.1A CN201910506353A CN110161873A CN 110161873 A CN110161873 A CN 110161873A CN 201910506353 A CN201910506353 A CN 201910506353A CN 110161873 A CN110161873 A CN 110161873A
- Authority
- CN
- China
- Prior art keywords
- data
- sensor
- control host
- sequence number
- transmission
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B15/00—Systems controlled by a computer
- G05B15/02—Systems controlled by a computer electric
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/418—Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS], computer integrated manufacturing [CIM]
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/20—Pc systems
- G05B2219/26—Pc applications
- G05B2219/2642—Domotique, domestic, home control, automation, smart house
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Abstract
The invention discloses a kind of method and system of smart home sensor low power consumption data safe transmission, sensor is interacted and is bound before carrying out information data transmission with control host, with control host;When sensor and control host are interacted and bound, sensor and control host protocol go out communication key and data transfer sequence number and save respectively;For sensor when carrying out information data transmission with control host, sensor is with the disconnected external radio transmission data of mode.The beneficial effects of the present invention are operating power consumption is lower, and can be with preventing playback attack.
Description
Technical field
The present invention relates to sensor communications, the especially communication of smart home sensor.
Background technique
Complete smart home system includes at least control host, sensor and controlled home equipment.Wherein, sensor is used
In monitoring state information and environmental data;The open and-shut mode of status information such as door and window, environmental data such as temperature humidity, dioxy
Change the data such as concentration of carbon, carbonomonoxide concentration, combustion gas, PM2.0, smog.The status information and environmental data that sensor monitors
It is wirelessly sent to control host, control host passes through the analytical judgment of status information and environmental data, and instruction is controlled
Home equipment makes corresponding movement.That is, there is linkage in sensor monitoring data and controlled home equipment.For example, cigarette
Mist sensor detects smog, and is uploaded to control host, and thus control host may think that in family catches fire, and examines for safety
Consider, instruction door and window is opened, and activates sprinkler and warning device.Therefore, the data between sensor and control host are transmitted
Safety it is extremely important, the data between sensor and control host are transmitted to avoid in plain text, and being capable of preventing playback attack.Institute
Calling Replay Attack is exactly to grab data packet, then resets, may result in system disorders.Due between sensor and control host
It is communicated by radio wave, grabs data packet in radio wave and playback is relatively easy to, therefore in a wireless communication system,
Preventing playback attack seems more important.
On the other hand, the sensor in smart home system belongs to the equipment of low frequency use but abnormal alarm, usually independent
It in the electric system of building, is battery powered, wirelessly sends status information and environmental data to control host.Due to
Sensor bulk is smaller, battery it is size-constrained, capacity also because volume reason capacity it is smaller, for system maintenance reason,
It asks smaller batteries capacity that sensor is maintained to work long hours, generally requires 2 years or more.
Under the prior art, ZigBee be a kind of short distance, low-power consumption, low cost wireless communication technique, network layer mentions
For AES encryption, and there is preventing playback attack mechanism, can be used for smart home sensor.But ZigBee is applied to smart home
When sensor, the safety of data transmission can satisfy general requirement, though its low-power consumption, but due to ZigBee technology
It is proprietary technology, the communication of equipment needs communication converter that ZigBee signal is converted to the mode of WIFI or bluetooth convenient for control
Host manipulation, and as the universal most convenient and fast smart home main control device of mobile phone is no more than mobile phone, so low-power consumption bluetooth BLE
Communication mode be generally applicable to smart home, can save communication converter reduce middleware forwarding the problems such as.But due to indigo plant
Tooth equipment is more, can wake up it is also more with the mode of data intercept, so but when being also unable to maintain that work in sensor 2 years or more
Between.
Summary of the invention
Problem to be solved by this invention: the safety and low-power consumption of smart home sensing data communication.
To solve the above problems, the scheme that the present invention uses is as follows:
A kind of method of smart home sensor low power consumption data safe transmission according to the present invention, sensor with control
Before host carries out information data transmission, interacts and bind with control host;Sensor and control host interact simultaneously
When binding, sensor and control host protocol go out communication key and data transfer sequence number and save respectively;Sensor with control
When host processed carries out information data transmission, sensor is with the disconnected external radio transmission data of mode, the transmission number
The data transfer sequence number and information data encryption are formed according to by the communication key, the primary transmission number of the every broadcast of sensor
According to the data transfer sequence number on sensor adds 1;The transmission data that control host receiving sensor is broadcasted, receive transmission
After data, determine that phase whether in control host binding, is then extracted if it is the sensor of binding in the source of the transmission data first
Then the communication key and data transfer sequence number answered decrypt the transmission data according to the communication key, obtain sensor and sent out
The data transfer sequence number and information data sent, then data transfer sequence number transmitted by sensor and extracted data are passed
Defeated sequence number is matched, and control host only receives through the matched information data of data transfer sequence number.
Further, the method for smart home sensor low power consumption data safe transmission according to the present invention, the sensor
With control host interact and bind the following steps are included:
Sensor receives binding instruction and enters binding pattern;Into after binding pattern, sensor generates tie up in a random basis
Determine code, and the binding code is sent to control host;
After control host receives the binding code, generate communication key at random, and according to binding code to the communication key into
It is sent after row encryption to sensor;
Sensor receives be decrypted according to binding code after encrypted communication key after, with the communication key to test
It is sent after data encryption to control host;
Control host receives and verifying is decrypted according to communication key after encrypted test data, after being verified,
It saves communication key corresponding to the sensor and initializes and save corresponding data transfer sequence number, and tied up to sensor transmission
Determine confirmation message;
After sensor receives binding acknowledgement message, communication key is saved, closes binding pattern.
Further, the method for smart home sensor low power consumption data safe transmission according to the present invention, the sensor
It binds in step, when sensor sends test data to control host, sensor is with communication key to test data and check code
Control host is sent after encryption;The test data includes data transfer sequence number;The check code is dissipating for test data
Train value;It whether is that the hashed value of test data is verified by check code when controlling host to test data decryption verification;Control
When host initialization processed saves corresponding data transfer sequence number, the data transfer sequence number saved is in the test data
Data transfer sequence number.
Further, the method for smart home sensor low power consumption data safe transmission according to the present invention, the sensor
When radio transmission data external in disconnected mode, every part of information data is retransmitted repeatedly, and transmission data further include retransmitting
Number serial number retransmits the data transfer sequence number every time and adds 1;Control host uses when transmitting sequence numbers match to two data
Following Boolean expression: X-i≤Y and X-i > Y-c;Wherein, X is that control host received data transmits sequence number, and Y is
The sequence number that control host is stored, i are sending times serial number, and c is preset constant.
A kind of system of smart home sensor low power consumption data safe transmission according to the present invention, the system include sensing
Device and control host;The sensor comprises the following modules:
MC1 is used for: being received binding instruction and is entered binding pattern;
MC2 is used for: after entering binding pattern, generating binding code in a random basis, and the binding code is sent out to control host
It send;
MC3 is used for: being received after being decrypted after encrypted communication key according to binding code, with the communication key pair
It is sent after test data encryption to control host;
MC4 is used for: after receiving binding acknowledgement message, being saved communication key, is closed binding pattern;
MC5 is used for: with the disconnected external radio transmission data of mode, the transmission data are close by the communication
Key forms the data transfer sequence number and information data encryption, the primary transmission data of the every broadcast of sensor, on sensor
Data transfer sequence number adds 1;
The control host comprises the following modules:
MS1 is used for: after receiving binding code, generating communication key at random, and carry out to the communication key according to binding code
It is sent after encryption to sensor;
MS2 is used for: it receives and verifying is decrypted according to communication key after encrypted test data, after being verified,
It saves communication key corresponding to the sensor and initializes and save corresponding data transfer sequence number, and tied up to sensor transmission
Determine confirmation message;
MS3 is used for: the transmission data that receiving sensor is broadcasted, and after receiving transmission data, determines the transmission number first
According to source whether in control host binding, then extract corresponding communication key and data if it is the sensor of binding and transmit sequence
Then row number decrypts the transmission data according to the communication key, obtains data transfer sequence number transmitted by sensor and information
Data, then data transfer sequence number transmitted by sensor is matched with extracted data transfer sequence number, when two
When data transfer sequence number matches, receive corresponding information data.
Further, the system of smart home sensor low power consumption data safe transmission according to the present invention, in module MC3,
When sending test data to control host, control host is sent to test data and after verifying code encryption with communication key;Institute
Stating test data includes data transfer sequence number;The check code is the hashed value of test data;In module MS2, host is controlled
When initialization saves corresponding data transfer sequence number, the data transfer sequence number saved is the data in the test data
Transmit sequence number.
Further, the system of smart home sensor low power consumption data safe transmission according to the present invention, in module MC5,
When radio transmission data external in disconnected mode, every part of information data is retransmitted repeatedly, and transmission data further include retransmitting
Number serial number retransmits the data transfer sequence number every time and adds 1;In module MS3, adopted when transmitting sequence numbers match to two data
With following Boolean expression: X-i≤Y and X-i > Y-c;Wherein, X is that control host received data transmits sequence number, Y
For the sequence number that control host is stored, i is sending times serial number, and c is preset constant.
Technical effect of the invention is as follows:
1, when sensor carries out information data transmission, with disconnected mode radio broadcasting, make the wireless communication of sensor
The intermittent work of module, and without additionally consuming energy Wei connection is established, to greatly reduce energy consumption.
2, when sensor carries out information data transmission, data encryption solves problem of data safety, and combined data transmits sequence
Number and sending times serial number, control host by judge whether data transfer sequence number matches, the authenticity of verify data with have
Effect property, to resist Replay Attack.
3, when sensor carries out information data transmission, solve the problems, such as that packet loss and radio wave collide by information data repeating transmission
Problem.
Detailed description of the invention
Fig. 1 is the structural schematic diagram of smart home system embodiment of the present invention.Wherein, 100 be sensor, and 200 be control
Host, 300 be controlled home equipment.
Specific embodiment
The present invention is described in further details with reference to the accompanying drawing.
If Fig. 1 is a kind of smart home system, including several sensors 100, control host 200 and several controlled families
Occupy equipment 300.Sensor 100 is used for monitoring state information and environmental data, and wirelessly believes the state monitored
Breath and environmental data be sent to control host 200, control the status information according to transmitted by each sensor 100 of host 200 and
Environmental data carries out intellectual analysis processing, issues corresponding action command to controlled home equipment 300.Signified intelligence of the invention
The system of home sensor low power consumption data safe transmission merely relates to sensor 100 and control in above-mentioned smart home system
Host 200.As between sensor 100 and control host 200 it is wireless how framework, if need router, gateway etc. to set
Standby is not the scope that the present invention will be discussed, and this specification repeats no more.Control host 200 and controlled home equipment 300 it
Between, it is the scope that using wireless mode or wired mode etc. and non-present invention is discussed, this specification repeats no more.
There are three types of operating modes for the tool of sensor of the invention 100: the first is init state, and second is binding mould
Formula, the third is data-transmission mode.Under init state, it can receive binding instruction and enter binding pattern.Sensor
100 reception binding patterns can be realized by the button on sensor 100;It can also be by the way that the sensor 100 be connect by USB
Mouth connection configurating terminal, then issues binding instruction by configurating terminal and realizes;Or it can also be by the way that sensor 100 be passed through
USB interface connection control host 200, then controls host 200 and issues binding instruction and realize.In binding pattern, sensor 100
It interacts with control host 200, is bound on control host 200, initialize or generate data transfer sequence number and communicate close
Key, sensor 100 enters data-transmission mode after binding pattern completes binding, and binding pattern is interrupted or then returned to just after failing
Beginning state.Sensor 100 enter data-transmission mode after, no longer with control host 200 or wireless router, gateway etc. other
Equipment is attached, and does not also receive external data and instruction, only by the status information monitored or environmental data with disconnected
Mode encrypted with communication key after radio broadcasting.Information data above-mentioned is the status information monitored or environmental data.
When radio broadcasting is carried out dependent on different sensors.If sensor is used for monitoring state information, then ought usually monitor
Radio broadcasting is carried out when status information changes;If sensor is for monitoring environmental data, then usually when the ring monitored
Border data occur to carry out radio broadcasting when great change, and also can periodically carry out radio broadcasting, the ring that will periodically monitor
Border data are uploaded to control host 200.When sensor 100 is in binding pattern or data-transmission mode, pass through sensor 100
On reset button and enter init state.
When the present embodiment, sensor 100 and control host 200 are bound, carried out by configurating terminal, configurating terminal is logical
Cross wireless connection control host 200.The configurating terminal of the present embodiment is mobile terminal, generally smart phone.Configurating terminal is auxiliary
Before helping some sensor 100 and control host 200 to be bound, configurating terminal passes through wireless connection control host 200.Configuration
When terminal connection control host 200, need to carry out identity and Authority Verification.The body that configurating terminal connection control host 200 carries out
The technology that part and Authority Verification are known to those skilled in the art, this specification repeat no more.Then configurating terminal passes through USB
Interface connects the sensor 100 of some init state, after connection, configurating terminal obtain the sensor 100 EIC equipment identification code,
The sensors essential information such as sensor type.Then bind command is inputted in configurating terminal by user, configurating terminal is by the input
Bind command be converted into binding instruction be sent to sensor 100.After sensor 100 receives binding instruction, into binding mould
After formula, binding code is then generated in a random basis, binding code is then sent to configurating terminal, control is forwarded to by configurating terminal
Host 200.Configurating terminal by bind code be forwarded to control host 200 when, will binding code be packaged into bind request, be sent to control
Host 200, bind request include binding code, EIC equipment identification code, sensor type, MAC Address.The above process is as above-mentioned
" sensor generates binding code in a random basis, and the binding code is sent to control host ".It will be appreciated by those skilled in the art that not
With the connection of mode, sensor can send binding code to control host by different modes, and above-described embodiment is only it
One of middle embodiment.For example, sensing can also be passed through after configurating terminal and sensor 100 connect and enter binding pattern
The wireless network that device 100 is connected itself sends binding code to control host 200.For another example, sensor 100 passes through USB interface
It is directly connected under the mode of control host 200, binding instruction can be issued by control host 200, under 100 binding pattern of sensor
Binding code by USB interface be sent directly to control host 200.
After control host 200 receives bind request, communication key is generated at random, and according to binding code to the communication key
Communication key ciphertext is formed after being encrypted, and is back to configurating terminal.Configurating terminal sends out communication key ciphertext by USB interface
It send to sensor 100.The above process is as aforementioned " after control host receives the binding code, to generate communication key, and root at random
It is sent after being encrypted according to binding code to the communication key to sensor ".
Sensor 100 receive after communication key ciphertext to the communication key ciphertext by bind code decrypt to obtain communicate it is close
Key, to test data and after verifying code encryption, configurating terminal is sent to by USB interface, by configurating terminal with communication key
It is forwarded to control host 200.The above process it is as aforementioned " sensor receive after encrypted communication key according to binding code into
It after row decryption, is sent after being encrypted with the communication key to test data to control host ".In the present embodiment, test data includes
The data transfer sequence number of initialization.Check code is the hashed value of test data.In the present embodiment, data transfer sequence number is one
A signless 32 integers, are initialized to a random value.Here hashed value be by hash function, that is, dissipate
The value that array function is calculated, hash function can be MD5 SHA3 scheduling algorithm.
After control host 200 receives the test data of configurating terminal forwarding and the encryption information of verification code encryption, carry out
Decryption obtains test data and check code, then verifies to check code, after being verified, data are extracted from test data
Sequence number is transmitted, by the corresponding EIC equipment identification code of the sensor, sensor type, MAC Address, data transfer sequence number and communication
Key is stored on control host 200, and binding acknowledgement message is then sent to configurating terminal, by configurating terminal by binding acknowledgement
Information is forwarded to sensor 100.The above process is as above-mentioned, and " basis is logical after control host receives encrypted test data
Verifying is decrypted in letter key, after being verified, saves communication key corresponding to the sensor and initializes preservation accordingly
Data transfer sequence number, and binding acknowledgement message is sent to sensor ".
After sensor 100 receives binding acknowledgement message, communication key and data transfer sequence number are saved, closes binding mould
Formula, into data-transmission mode.
The sensor 100 is as above-mentioned " with control by the process that configurating terminal and control host 200 interact
Host is interacted and is bound " process.After interaction, sensor 100 and control host 200 preserve communication key and
Data transfer sequence number, that is, it is above-mentioned " sensor and control host protocol go out communication key and data transfer sequence number simultaneously
It saves respectively ".After sensor 100 enters data-transmission mode, into formal use state, during which, sensor 100 is led to control
200 unidirectional data transmission of machine.Specifically, when sensor 100, which exists, needs information data to be transmitted, sensor is with non-company
The external radio transmission data of the mode connect.In the present embodiment, transmit data by communication key to data transfer sequence number, again
Hair number serial number, the total degree of repeating transmission and information data encryption form.In view of packet loss problem and wireless collision problem, to each
Part information data to be transmitted, sensor 100 can all retransmit this part of information data to be transmitted repeatedly, and the total degree of repeating transmission exists
Aforementioned arrangements terminal connection sensor can be configured when entering binding pattern by configurating terminal, and generally 3~5 times.It passes
The every broadcast of sensor 100 is primary to transmit data, and the data transfer sequence number on sensor adds 1.For example, to certain Information Number to be transmitted
When according to being sent, data transfer sequence number 10000, then in the case of the information data to be transmitted retransmitted three times, three biographies
Data transfer sequence number and sending times serial number in transmission of data are respectively as follows: 10000,0;10001,1;10002,2.Later, it passes
The data transfer sequence number that sensor 100 is saved is 10003.
The transmission data that control 200 receiving sensor of host is broadcasted determine the transmission after receiving transmission data first
Whether the source of data is in control host binding.The method compared is comparison MAC Address.Host 200 is controlled according to transmission data
The MAC Address EIC equipment identification code corresponding with the sensor saved in source, sensor type, MAC Address, data transmit sequence
MAC Address matching in row number and communication key, if two MAC Address are identical, then it represents that the source of the transmission data comes from
The sensor of binding, while thus obtaining the corresponding data transfer sequence number of the sensor and lead to that control host 200 is stored
Believe key.Host 200 is controlled according to the communication key of the storage to transmission data deciphering, obtains number transmitted by sensor 100
According to transmission sequence number, sending times serial number, the total degree of repeating transmission and information data.Then host 200 is controlled by 100 institute of sensor
The data transfer sequence number that data transfer sequence number, sending times serial number and the control host 200 of transmission are stored is matched.
Matching process Boolean expression can be expressed as: X-i≤Y and X-i > Y-c.Wherein, X is controls the received number of host
According to data transfer sequence number transmitted by transmission sequence number i.e. sensor, to control the sequence number that host is stored, i is Y
Sending times serial number, c are preset constant.If two data transfer sequence numbers do not match that, then it represents that the transmission number
It according to may be derived from Replay Attack, ignoring, if the two matches, receiving information data therein, and make corresponding
Processing.In addition, if the two match, control host 200 by the corresponding data transfer sequence number of the sensor be updated to X-i+N with
Remain consistent on sensor, N is the total degree that sensor is retransmitted.Here constant c be packet loss buffer number, generally 3~5,
To solve the problems, such as the packet loss that remains unchanged under retransmission mechanism, because control host 200 needs to maintain data transfer sequence number and sensor
On it is consistent, if retransmit after or packet loss, control host 200 by being led after not receiving the transmission data that sensor is broadcasted
Cause data transfer sequence number with it is inconsistent on sensor, allow a certain range of packet loss after having packet loss buffer number, still
It can be matched with the data transfer sequence number on sensor.
Claims (7)
1. a kind of method of smart home sensor low power consumption data safe transmission, which is characterized in that sensor is led with control
Before machine carries out information data transmission, interacts and bind with control host;Sensor is interacted and is tied up with control host
Periodically, sensor and control host protocol go out communication key and data transfer sequence number and save respectively;Sensor with control
When host carries out information data transmission, sensor is with the disconnected external radio transmission data of mode, the transmission data
The data transfer sequence number and information data encryption are formed by the communication key, the primary transmission number of the every broadcast of sensor
According to the data transfer sequence number on sensor adds 1;The transmission data that control host receiving sensor is broadcasted, receive transmission
After data, determine that phase whether in control host binding, is then extracted if it is the sensor of binding in the source of the transmission data first
Then the communication key and data transfer sequence number answered decrypt the transmission data according to the communication key, obtain sensor and sent out
The data transfer sequence number and information data sent, then data transfer sequence number transmitted by sensor and extracted data are passed
Defeated sequence number is matched, and control host only receives through the matched information data of data transfer sequence number.
2. the method for smart home sensor low power consumption data safe transmission as described in claim 1, which is characterized in that described
Sensor and control host interact and bind the following steps are included:
Sensor receives binding instruction and enters binding pattern;Into after binding pattern, sensor generates binding code in a random basis,
And the binding code is sent to control host;
After control host receives the binding code, communication key is generated at random, and add to the communication key according to binding code
It is sent after close to sensor;
Sensor receives be decrypted according to binding code after encrypted communication key after, with the communication key to test data
It is sent after encryption to control host;
Control host receives and verifying is decrypted according to communication key after encrypted test data, after being verified, preservation
Communication key corresponding to the sensor simultaneously initializes the corresponding data transfer sequence number of preservation, and sends binding really to sensor
Recognize information;
After sensor receives binding acknowledgement message, communication key is saved, closes binding pattern.
3. the method for smart home sensor low power consumption data safe transmission as claimed in claim 2, which is characterized in that described
Sensor is bound in step, when sensor sends test data to control host, sensor with communication key to test data and
Control host is sent after verifying code encryption;The test data includes data transfer sequence number;The check code is test number
According to hashed value;Control host to test data decryption verification when, by check code whether be test data hashed value carry out
Verifying;When controlling the host initialization corresponding data transfer sequence number of preservation, the data transfer sequence number saved is the survey
Try the data transfer sequence number in data.
4. the method for smart home sensor low power consumption data safe transmission as described in claim 1, which is characterized in that described
When external in the disconnected mode radio transmission data of sensor, every part of information data is retransmitted repeatedly, and transmission data are also wrapped
Sending times serial number is included, the data transfer sequence number is retransmitted every time and adds 1;It controls host and sequence numbers match is transmitted to two data
The following Boolean expression of Shi Caiyong: X-i≤Y and X-i > Y-c;Wherein, X is that control host received data transmits sequence
Number, the sequence number that Y is stored for control host, i is sending times serial number, and c is preset constant.
5. a kind of system of smart home sensor low power consumption data safe transmission, which is characterized in that the system includes sensor
With control host;The sensor comprises the following modules:
MC1 is used for: being received binding instruction and is entered binding pattern;
MC2 is used for: after entering binding pattern, generating binding code in a random basis, and the binding code is sent to control host;
MC3 is used for: being received after being decrypted after encrypted communication key according to binding code, with the communication key to test
It is sent after data encryption to control host;
MC4 is used for: after receiving binding acknowledgement message, being saved communication key, is closed binding pattern;
MC5 is used for: with the disconnected external radio transmission data of mode, the transmission data are by the communication key pair
The data transfer sequence number and information data encryption form, the primary transmission data of the every broadcast of sensor, the data on sensor
Transmission sequence number adds 1;
The control host comprises the following modules:
MS1 is used for: after receiving binding code, generating communication key at random, and encrypt to the communication key according to binding code
It is sent afterwards to sensor;
MS2 is used for: receiving and verifying is decrypted according to communication key after encrypted test data, after being verified, save
Communication key corresponding to the sensor simultaneously initializes the corresponding data transfer sequence number of preservation, and sends binding really to sensor
Recognize information;
MS3 is used for: the transmission data that receiving sensor is broadcasted, and after receiving transmission data, determines the transmission data first
Corresponding communication key and data transmission sequence are then extracted if it is the sensor of binding whether in control host binding in source
Number, the transmission data are then decrypted according to the communication key, obtain data transfer sequence number transmitted by sensor and Information Number
According to, then data transfer sequence number transmitted by sensor matched with extracted data transfer sequence number, when two numbers
When according to transmission sequence numbers match, receive corresponding information data.
6. the system of smart home sensor low power consumption data safe transmission as claimed in claim 5, which is characterized in that module
In MC3, to control host send test data when, with communication key to test data and verification code encryption after will control host hair
It send;The test data includes data transfer sequence number;The check code is the hashed value of test data;In module MS2, control
When host initialization saves corresponding data transfer sequence number, the data transfer sequence number saved is in the test data
Data transfer sequence number.
7. the system of smart home sensor low power consumption data safe transmission as claimed in claim 5, which is characterized in that module
In MC5, when radio transmission data external in disconnected mode, every part of information data is retransmitted repeatedly, and transmission data are also wrapped
Sending times serial number is included, the data transfer sequence number is retransmitted every time and adds 1;In module MS3, to two data transfer sequence numbers
Timing uses following Boolean expression: X-i≤Y and X-i > Y-c;Wherein, X is that control host received data transmits sequence
Row number, the sequence number that Y is stored for control host, i are sending times serial number, and c is preset constant.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910506353.1A CN110161873B (en) | 2019-06-12 | 2019-06-12 | Method and system for low-power-consumption data secure transmission of smart home sensor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910506353.1A CN110161873B (en) | 2019-06-12 | 2019-06-12 | Method and system for low-power-consumption data secure transmission of smart home sensor |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110161873A true CN110161873A (en) | 2019-08-23 |
CN110161873B CN110161873B (en) | 2022-11-18 |
Family
ID=67628729
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910506353.1A Active CN110161873B (en) | 2019-06-12 | 2019-06-12 | Method and system for low-power-consumption data secure transmission of smart home sensor |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110161873B (en) |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060259969A1 (en) * | 2005-05-13 | 2006-11-16 | Samsung Electronics Co., Ltd. | Method of preventing replay attack in mobile IPv6 |
CN101242274A (en) * | 2005-06-24 | 2008-08-13 | 华为技术有限公司 | Method for guaranteeing non-duplicate message SN and preventing from re-play attack and mobile terminal |
CN103763107A (en) * | 2014-01-24 | 2014-04-30 | 刘文军 | Intelligent household appliance system secret key control method and intelligent household appliance system |
CN103941665A (en) * | 2013-12-31 | 2014-07-23 | 海尔集团公司 | Household appliance control device and method |
CN105119785A (en) * | 2015-07-15 | 2015-12-02 | 泰凌微电子(上海)有限公司 | Configuration method of smart home network nodes and data transmitting and receiving methods |
CN105162776A (en) * | 2015-08-11 | 2015-12-16 | 重庆大学 | SCPS-SP multi-security level and anti-replay function design method |
CN205071192U (en) * | 2015-09-16 | 2016-03-02 | 天津市凯源新能电气有限公司 | A intelligent communication system for household security |
CN105787344A (en) * | 2016-03-25 | 2016-07-20 | 江苏惠通集团有限责任公司 | Slave device and method for establishing connection between same and master device |
CN108111576A (en) * | 2017-12-01 | 2018-06-01 | 中国铁道科学研究院电子计算技术研究所 | A kind of car-ground radio transmission method and device |
CN108462687A (en) * | 2018-01-08 | 2018-08-28 | 平安科技(深圳)有限公司 | Method, apparatus, terminal device and the storage medium that anti-brush logs in |
-
2019
- 2019-06-12 CN CN201910506353.1A patent/CN110161873B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060259969A1 (en) * | 2005-05-13 | 2006-11-16 | Samsung Electronics Co., Ltd. | Method of preventing replay attack in mobile IPv6 |
CN101242274A (en) * | 2005-06-24 | 2008-08-13 | 华为技术有限公司 | Method for guaranteeing non-duplicate message SN and preventing from re-play attack and mobile terminal |
CN103941665A (en) * | 2013-12-31 | 2014-07-23 | 海尔集团公司 | Household appliance control device and method |
CN103763107A (en) * | 2014-01-24 | 2014-04-30 | 刘文军 | Intelligent household appliance system secret key control method and intelligent household appliance system |
CN105119785A (en) * | 2015-07-15 | 2015-12-02 | 泰凌微电子(上海)有限公司 | Configuration method of smart home network nodes and data transmitting and receiving methods |
CN105162776A (en) * | 2015-08-11 | 2015-12-16 | 重庆大学 | SCPS-SP multi-security level and anti-replay function design method |
CN205071192U (en) * | 2015-09-16 | 2016-03-02 | 天津市凯源新能电气有限公司 | A intelligent communication system for household security |
CN105787344A (en) * | 2016-03-25 | 2016-07-20 | 江苏惠通集团有限责任公司 | Slave device and method for establishing connection between same and master device |
CN108111576A (en) * | 2017-12-01 | 2018-06-01 | 中国铁道科学研究院电子计算技术研究所 | A kind of car-ground radio transmission method and device |
CN108462687A (en) * | 2018-01-08 | 2018-08-28 | 平安科技(深圳)有限公司 | Method, apparatus, terminal device and the storage medium that anti-brush logs in |
Non-Patent Citations (4)
Title |
---|
FUXIWEN: "Distributed Kalman filtering for robust state estimation over wireless sensor networks under malicious cyber attacks", 《DIGITAL SIGNAL PROCESSING》 * |
MATTHEW S.GAST: "《802.11无线网络权威指南 第2版》", 31 December 2007, 东南大学出版社 * |
张聚伟: "基于部署信息的无线传感器网络配对密钥方案", 《计算机工程与应用》 * |
白媛: "分布式网络入侵检测防御关键技术的研究", 《中国博士论文全文数据库》 * |
Also Published As
Publication number | Publication date |
---|---|
CN110161873B (en) | 2022-11-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Fouladi et al. | Security evaluation of the Z-Wave wireless protocol | |
Chakrabarty et al. | Black SDN for the Internet of Things | |
CN101820619B (en) | Efficient and energy-saving link safety method in wireless sensor network | |
CN110024448A (en) | A kind of system and method for safely and fast waking up website | |
GB2512501A (en) | Packet identification | |
CN104994112A (en) | Method for encrypting communication data chain between unmanned aerial vehicle and ground station | |
CN104618204A (en) | Intelligent home system for guaranteeing safe and remote control based on security modules and realization method thereof | |
CN105119785A (en) | Configuration method of smart home network nodes and data transmitting and receiving methods | |
CN102035845B (en) | Switching equipment for supporting link layer secrecy transmission and data processing method thereof | |
CN103765848A (en) | Apparatus and methods for media access control replacement | |
WO2008145059A1 (en) | A method for secure data transmission in wireless sensor network | |
CN104658090B (en) | A kind of smart lock of built-in security module and ZigBee wireless communication modules | |
CN104618899A (en) | ZigBee router with built-in safety module | |
US11804972B2 (en) | Fluid meter communicating with an electromechanical valve | |
Ilchev et al. | Internet-of-Things communication protocol for low-cost devices in heterogeneous wireless networks | |
Farha et al. | Enhanced timestamp scheme for mitigating replay attacks in secure ZigBee networks | |
CN108155996B (en) | Smart home safe communication method based on family's channel | |
Agosta et al. | Cyber-security analysis and evaluation for smart home management solutions | |
CN110161873A (en) | A kind of method and system of smart home sensor low power consumption data safe transmission | |
JP2014225813A (en) | Communication system, communication device and communication method | |
CN101123538B (en) | Remote encryption and supervision method for communication interfaces of wireless local network | |
CN111065091B (en) | Wireless data acquisition system and data transmission method based on lora | |
CN207869118U (en) | Data transmission system based on quantum cryptography exchange apparatus | |
Krentz et al. | More lightweight, yet stronger 802.15. 4 security through an intra-layer optimization | |
US8644514B2 (en) | Security model for a relay network system |
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 | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: No.27 Puzhou Road, Jiangbei new district, Nanjing, Jiangsu Province 210032 Applicant after: Dongwu Shian IOT Technology (Jiangsu) Co.,Ltd. Address before: No.27 Puzhou Road, Jiangbei new district, Nanjing, Jiangsu Province 210032 Applicant before: NANJING EASTHOUSE ELECTRICAL Co.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |