CN109743353A - A kind of data transfer device based on Internet of Things - Google Patents

A kind of data transfer device based on Internet of Things Download PDF

Info

Publication number
CN109743353A
CN109743353A CN201811471671.0A CN201811471671A CN109743353A CN 109743353 A CN109743353 A CN 109743353A CN 201811471671 A CN201811471671 A CN 201811471671A CN 109743353 A CN109743353 A CN 109743353A
Authority
CN
China
Prior art keywords
data
detected value
internet
cell
segments
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
Application number
CN201811471671.0A
Other languages
Chinese (zh)
Other versions
CN109743353B (en
Inventor
张玉磊
张邦
袁园
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xunzhong Communication Technology Co ltd
Original Assignee
Henan Gaotong Internet Of Things Co Ltd
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 Henan Gaotong Internet Of Things Co Ltd filed Critical Henan Gaotong Internet Of Things Co Ltd
Priority to CN201811471671.0A priority Critical patent/CN109743353B/en
Publication of CN109743353A publication Critical patent/CN109743353A/en
Application granted granted Critical
Publication of CN109743353B publication Critical patent/CN109743353B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention discloses a kind of data transfer device based on Internet of Things, include the following steps: that data sending terminal generates body of data and reads detection table end to end, detect the cell in table end to end according to the selection of setting rule, this element lattice are set as current cell, and integral data (format of integral data are as follows: head detected value+body of data+tail detected value+particular value) is generated by current cell, integral data encryption is become into encryption data by des encryption algorithm, encryption data is collapsed into compressed data by DEFLATE compress mode, the length of compressed data is counted.The data transfer device based on Internet of Things, table is judged by segments and detects the use of table end to end, so that being reasonably segmented when data conversion according to the length of data, and by detecting twice, the data of transmission are encrypted and compressed simultaneously, the safety of data is strengthened, while can be very good the mode being segmented when changing and transmit according to the physical length of data.

Description

A kind of data transfer device based on Internet of Things
Technical field
The present invention relates to internet of things field, specially a kind of data transfer device based on Internet of Things.
Background technique
Internet of Things is the important component of generation information technology and the important development stage of information age, is cared for Name Si Yi, Internet of Things are exactly the connected internet of object object, and application innovation is the core of Internet of Things development, in the application of Internet of Things, It needs to carry out transmission operation to data using the data transfer device of Internet of Things.
Traditional data transfer device based on Internet of Things, safety is not high, and is difficult to the reality according to data well Length change be segmented when transmission mode (if relatively excessive for number of fragments, can because component head and component tail are excessive and Caused data length additional amount is relatively excessive, if number of fragments is relatively too small, if there is individual data missing, needs again The data of conversion are too long), use while reducing working efficiency to user is made troubles.
Summary of the invention
(1) the technical issues of solving
In view of the deficiencies of the prior art, it the present invention provides a kind of data transfer device based on Internet of Things, solves based on object The data transfer device safety of networking is not high, and is difficult to the side being segmented when changing and transmit according to the physical length of data well Formula (if relatively excessive for number of fragments, can because of component head and component tail it is excessive caused by data length additional amount phase To excessive, if number of fragments is relatively too small, if there is individual data missing, the data for needing to convert again are too long) the problem of.
(2) technical solution
In order to achieve the above object, the present invention is achieved by the following technical programs: a kind of data conversion side based on Internet of Things Method, which comprises the steps of:
S1, data generate: data sending terminal generates body of data and reads detects table end to end, examines end to end according to setting rule selection The cell in table is surveyed, this element lattice are set as current cell, and integral data (integral data is generated by current cell Format are as follows: head detected value+body of data+tail detected value+particular value);
S2, data encryption: integral data encryption is become by encryption data by des encryption algorithm;
S3, data compression: encryption data is collapsed into compressed data by DEFLATE compress mode;
S4, data statistics: the length of compressed data is counted, and reads segments judgement table, and according to safety index and Length statistical value corresponding segments number judgement table finds out current corresponding segments;
S5, segmental machining: compressed data is divided into several segment datas according to single component, and generates segment data (segment data Format are as follows: component head+segment data+number of components+component tail);
S6, data A/D conversion and transmission: segment data is converted to by electric signal by A/D converter, and is passed by data line It send;
S7, data receiver and D/A are converted: electric signal is received and passes through D/A converter by receiving end converts electrical signals to segmentation Data;
S8, Data Detection and recombination: whether just the fragment header, segmentation tail and segments of segment data are judged by segments Really, it if correctly, segment data is combined into compressed data again according to segments judgement table, if incorrect, is sent out to data Sending end sends wrong data, and data sending terminal is sent out the segment data of respective components number by the number of components in wrong data again It send, then re-starts step S8;
S9, algorithm decompression: the compressed data in step S8 is decompressed by way of DEFLATE decompression as integral data;
S10, body of data are extracted: head detected value, tail detected value and the particular value in integral data obtained in step S9 are mentioned It takes and compares detection table end to end, if meeting detection table end to end, a detected value, tail detected value and particular value are removed, to obtain Body of data issues to data sending terminal if not being inconsistent syncephalon detected value, tail detected value and particular value and retransmits request.
Preferably, in S1, the sheet format of detection end to end is as follows: row: head detected value;Column: tail detected value;Cell: Particular value.
Preferably, in S1, the setting rule is is starting point from detection table upper left side first cell end to end, often The secondary lattice selecting unit lattice that move right add the line number of cell if current cell is in detects the most right place of table end to end It is selected since Far Left together, when selection tail detection the last one cell of table lower right to the end, reselects upper left side First cell, recycled with this.
Preferably, in S4, the segments judges that sheet format is as follows: row: length statistical value;Column: safety index;Unit Lattice: segments.
Preferably, in S4, the segments includes: single component, component, number of components, component head and component tail.
Preferably, in S4, the safety index needs user to be previously set, if not setting, uses default value.
Preferably, in S8, the format of the wrong data are as follows: error code+number of components.
(3) beneficial effect
The present invention provides a kind of data transfer devices based on Internet of Things.Have it is following the utility model has the advantages that
The data transfer device based on Internet of Things judges table by segments and detects the use of table end to end, so that data turn It is reasonably segmented when changing according to the length of data, and by detecting twice, while the data of transmission is encrypted and pressed Contracting, strengthens the safety of data, while it is (right to can be very good the mode being segmented when changing and transmit according to the physical length of data If relatively excessive in number of fragments, can because of component head and component tail it is excessive caused by data length additional amount with respect to mistake Greatly, if number of fragments is relatively too small, if there is individual data missing, the data for needing to convert again are too long), improve work effect The use for the person of being convenient to use while rate.
Specific embodiment
Described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Based on the present invention In embodiment, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
A kind of data transfer device based on Internet of Things, which comprises the steps of:
S1, data generate: data sending terminal generates body of data and reads detects table end to end, examines end to end according to setting rule selection The cell in table is surveyed, this element lattice are set as current cell, and integral data (integral data is generated by current cell Format are as follows: head detected value+body of data+tail detected value+particular value;Detection sheet format is as follows end to end: row: head detected value;Column: Tail detected value;Cell: particular value;Setting rule is is starting point from detection table upper left side first cell end to end, every time Move right a lattice selecting unit lattice, if current cell is in detects the most right place of table end to end, the line number of cell is added one And selected since Far Left, when selection tail detection the last one cell of table lower right to the end, reselect upper left First cell is recycled with this), wherein head detected value, tail detected value and particular value are three bytes (24) Binary system ordered series of numbers;
S2, data encryption: integral data encryption is become by encryption data by des encryption algorithm;
S3, data compression: encryption data is collapsed into compressed data by DEFLATE compress mode;
S4, data statistics: the length of compressed data is counted, and reads segments judgement table, and according to safety index and Length statistical value corresponding segments number judgement table finds out current corresponding segments, and (segments judges that sheet format is as follows: row: length system Evaluation;Column: safety index;Cell: segments;Segments includes: single component, component, number of components, component head and component Tail;Safety index needs user to be previously set, if not setting, uses default value), wherein segments is three bytes (two 14) binary system ordered series of numbers;
S5, segmental machining: compressed data is divided into several segment datas according to single component, and generates segment data (segment data Format are as follows: component head+segment data+number of components+component tail), wherein component head and component tail are three bytes (24 Position) binary system ordered series of numbers, number of components be five bytes (40) binary system ordered series of numbers;
S6, data A/D conversion and transmission: segment data is converted to by electric signal by A/D converter, and is passed by data line It send;
S7, data receiver and D/A are converted: electric signal is received and passes through D/A converter by receiving end converts electrical signals to segmentation Data;
S8, Data Detection and recombination: whether just the fragment header, segmentation tail and segments of segment data are judged by segments Really, it if correctly, segment data is combined into compressed data again according to segments judgement table, if incorrect, is sent out to data Sending end sends wrong data, and data sending terminal is sent out the segment data of respective components number by the number of components in wrong data again It send, then re-starts the format of step S8(wrong data are as follows: error code+number of components);
S9, algorithm decompression: the compressed data in step S8 is decompressed by way of DEFLATE decompression as integral data;
S10, body of data are extracted: head detected value, tail detected value and the particular value in integral data obtained in step S9 are mentioned It takes and compares detection table end to end, if meeting detection table end to end, a detected value, tail detected value and particular value are removed, to obtain Body of data issues to data sending terminal if not being inconsistent syncephalon detected value, tail detected value and particular value and retransmits request.
In conclusion should data transfer device based on Internet of Things, made by segments judgement table and end to end detection table With so that being reasonably segmented when data conversion according to the length of data, and by detecting twice, while to the data of transmission When being encrypted and compressed, strengthen the safety of data, while can be very good to change transmission according to the physical length of data Segmentation mode (if relatively excessive for number of fragments, can because of component head and component tail it is excessive caused by data length Additional amount is relatively excessive, if number of fragments is relatively too small, if there is individual data missing, and the data mistake that needs to convert again It is long), the use for the person of being convenient to use while improving working efficiency.
It although an embodiment of the present invention has been shown and described, for the ordinary skill in the art, can be with A variety of variations, modification, replacement can be carried out to these embodiments without departing from the principles and spirit of the present invention by understanding And modification, the scope of the present invention is defined by the appended.

Claims (7)

1. a kind of data transfer device based on Internet of Things, which comprises the steps of:
S1, data generate: data sending terminal generates body of data and reads detects table end to end, examines end to end according to setting rule selection The cell in table is surveyed, this element lattice are set as current cell, and integral data (integral data is generated by current cell Format are as follows: head detected value+body of data+tail detected value+particular value);
S2, data encryption: integral data encryption is become by encryption data by des encryption algorithm;
S3, data compression: encryption data is collapsed into compressed data by DEFLATE compress mode;
S4, data statistics: the length of compressed data is counted, and reads segments judgement table, and according to safety index and Length statistical value corresponding segments number judgement table finds out current corresponding segments;
S5, segmental machining: compressed data is divided into several segment datas according to single component, and generates segment data (segment data Format are as follows: component head+segment data+number of components+component tail);
S6, data A/D conversion and transmission: segment data is converted to by electric signal by A/D converter, and is passed by data line It send;
S7, data receiver and D/A are converted: electric signal is received and passes through D/A converter by receiving end converts electrical signals to segmentation Data;
S8, Data Detection and recombination: whether just the fragment header, segmentation tail and segments of segment data are judged by segments Really, it if correctly, segment data is combined into compressed data again according to segments judgement table, if incorrect, is sent out to data Sending end sends wrong data, and data sending terminal is sent out the segment data of respective components number by the number of components in wrong data again It send, then re-starts step S8;
S9, algorithm decompression: the compressed data in step S8 is decompressed by way of DEFLATE decompression as integral data;
S10, body of data are extracted: head detected value, tail detected value and the particular value in integral data obtained in step S9 are mentioned It takes and compares detection table end to end, if meeting detection table end to end, a detected value, tail detected value and particular value are removed, to obtain Body of data issues to data sending terminal if not being inconsistent syncephalon detected value, tail detected value and particular value and retransmits request.
2. a kind of data transfer device based on Internet of Things according to claim 1, it is characterised in that: described in S1 Detection sheet format is as follows end to end: row: head detected value;Column: tail detected value;Cell: particular value.
3. a kind of data transfer device based on Internet of Things according to claim 1, it is characterised in that: described in S1 Setting rule is is starting point from detection table upper left side first cell end to end, and move right a lattice selecting unit lattice every time, If current cell is in detects the most right place of table end to end, the line number of cell is added and is selected since Far Left together, is elected to When selecting the last one cell of detection table lower right end to end, upper left first cell is reselected, is recycled with this.
4. a kind of data transfer device based on Internet of Things according to claim 1, it is characterised in that: described in S4 Segments judges that sheet format is as follows: row: length statistical value;Column: safety index;Cell: segments.
5. a kind of data transfer device based on Internet of Things according to claim 1, it is characterised in that: described in S4 Segments includes: single component, component, number of components, component head and component tail.
6. a kind of data transfer device based on Internet of Things according to claim 1, it is characterised in that: described in S4 Safety index needs user to be previously set, if not setting, uses default value.
7. a kind of data transfer device based on Internet of Things according to claim 1, it is characterised in that: described in S8 The format of wrong data are as follows: error code+number of components.
CN201811471671.0A 2018-12-04 2018-12-04 Data conversion method based on Internet of things Active CN109743353B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811471671.0A CN109743353B (en) 2018-12-04 2018-12-04 Data conversion method based on Internet of things

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811471671.0A CN109743353B (en) 2018-12-04 2018-12-04 Data conversion method based on Internet of things

Publications (2)

Publication Number Publication Date
CN109743353A true CN109743353A (en) 2019-05-10
CN109743353B CN109743353B (en) 2021-06-25

Family

ID=66358486

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811471671.0A Active CN109743353B (en) 2018-12-04 2018-12-04 Data conversion method based on Internet of things

Country Status (1)

Country Link
CN (1) CN109743353B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111224749A (en) * 2020-01-08 2020-06-02 重庆邮电大学 Method and system for diversity combining transmission of signals in heterogeneous transmission medium
CN112364611A (en) * 2020-09-29 2021-02-12 成都商通数治科技有限公司 High-performance table importing method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050135355A1 (en) * 2003-12-22 2005-06-23 Raman Muthukrishnan Switching device utilizing internal priority assignments
CN102164095A (en) * 2011-05-31 2011-08-24 西安空间无线电技术研究所 Datagram segmentation and reassembly system and realization method for onboard switching module
CN102752102A (en) * 2012-07-02 2012-10-24 珠海全志科技股份有限公司 Data package segmented encryption and transmission processing method and device
CN104518864A (en) * 2013-10-04 2015-04-15 德克萨斯仪器股份有限公司 Power Line communication (PLC) network nodes using cipher then segment security

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050135355A1 (en) * 2003-12-22 2005-06-23 Raman Muthukrishnan Switching device utilizing internal priority assignments
CN102164095A (en) * 2011-05-31 2011-08-24 西安空间无线电技术研究所 Datagram segmentation and reassembly system and realization method for onboard switching module
CN102752102A (en) * 2012-07-02 2012-10-24 珠海全志科技股份有限公司 Data package segmented encryption and transmission processing method and device
CN104518864A (en) * 2013-10-04 2015-04-15 德克萨斯仪器股份有限公司 Power Line communication (PLC) network nodes using cipher then segment security

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张法全 等: "基于LabVIEW的多通道槽波地震数据采集系统", 《仪表技术与传感器》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111224749A (en) * 2020-01-08 2020-06-02 重庆邮电大学 Method and system for diversity combining transmission of signals in heterogeneous transmission medium
CN111224749B (en) * 2020-01-08 2022-08-09 重庆邮电大学 Method and system for diversity combining transmission of signals in heterogeneous transmission medium
CN112364611A (en) * 2020-09-29 2021-02-12 成都商通数治科技有限公司 High-performance table importing method

Also Published As

Publication number Publication date
CN109743353B (en) 2021-06-25

Similar Documents

Publication Publication Date Title
CN103701564B (en) The implementation method of PDCCH total blindness detection in a kind of LTE system
CN109743353A (en) A kind of data transfer device based on Internet of Things
CN104199298A (en) Controller area network (CAN) bus Baud rate self-adapting method
CN104966396B (en) Air Conditioner Remote code learning method based on cloud platform
US10396921B2 (en) Multi-lane synchronization method, synchronization apparatus and system, and computer storage medium
CN104993855A (en) Method for switching antennas in communication terminal, and communication terminal
EA024623B1 (en) Data transmission method and system and data transmitter
EP3605881A1 (en) Method and device for transmitting and receiving network management information, transmitting apparatus and receiving apparatus
US10140853B2 (en) Household appliances infrared remote waveform replication learning method and system
CN104732041B (en) A kind of empty terminal table automatic generation method based on many SCD templates
CN109752607A (en) A kind of method and system of traction converter failure diagnosis
CN105225464A (en) A kind of infrared code adaptation method of remote control and device
CN108282265A (en) Error correction/encoding method, device, equipment and computer readable storage medium
CN102883227B (en) Character inputting method, devices and system
CN206775651U (en) A kind of intelligent converter based on power line carrier
CN110167193A (en) WiFi matches network method and WiFi equipment automatically
CN106027686A (en) Enhanced type MODBUS communication protocol based on MPEG-2
CN111564858B (en) Method for enabling household energy storage battery to be compatible with multiple inverters
CN105719473B (en) A kind of SCM Based multifunction remote-control method and remote control device
EP2420936B1 (en) Protocol conversion Communication Device
CN103487640A (en) Current monitoring method for enterprise electric equipment based on distributed type network
CN110751821A (en) RGB (Red Green blue) collector based on wifi (Wireless Fidelity) transmission and collecting method
JP2008005442A (en) Communication apparatus, communication system, and communication method
CN103377550B (en) Composite decoding method and device for infrared signal
CN114996182B (en) Steady-state data stream output device for training load identification model

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20210526

Address after: 100044 605, 6th floor, No.A 6, Zhongguancun South Street, Haidian District, Beijing

Applicant after: Beijing XunZhong Communication Technology Co.,Ltd.

Address before: 450000 building 3, No.57, science Avenue, development zone, high tech Industrial Park, Zhongyuan District, Zhengzhou City, Henan Province 2007

Applicant before: HENAN GT IOT Co.,Ltd.

GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: Room 1101, 11th Floor, Block B, Xingdi Center, Building 2, No.10, Jiuxianqiao North Road, Jiangtai Township, Chaoyang District, Beijing, 100020

Patentee after: Beijing XunZhong Communication Technology Co.,Ltd.

Country or region after: China

Address before: 100044 605, 6th floor, No.A 6, Zhongguancun South Street, Haidian District, Beijing

Patentee before: Beijing XunZhong Communication Technology Co.,Ltd.

Country or region before: China