CN108847935A - Data transmission method for uplink - Google Patents
Data transmission method for uplink Download PDFInfo
- Publication number
- CN108847935A CN108847935A CN201810718657.XA CN201810718657A CN108847935A CN 108847935 A CN108847935 A CN 108847935A CN 201810718657 A CN201810718657 A CN 201810718657A CN 108847935 A CN108847935 A CN 108847935A
- Authority
- CN
- China
- Prior art keywords
- control command
- controlling terminal
- send
- transmission method
- data 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/08—Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
- H04L9/0816—Key establishment, i.e. cryptographic processes or cryptographic protocols whereby a shared secret becomes available to two or more parties, for subsequent use
- H04L9/0819—Key transport or distribution, i.e. key establishment techniques where one party creates or otherwise obtains a secret value, and securely transfers it to the other(s)
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L5/00—Arrangements affording multiple use of the transmission path
- H04L5/003—Arrangements for allocating sub-channels of the transmission path
- H04L5/0053—Allocation of signaling, i.e. of overhead other than pilot signals
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/04—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
- H04L63/0428—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
- H04L63/045—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload wherein the sending and receiving network entities apply hybrid encryption, i.e. combination of symmetric and asymmetric encryption
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/16—Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
- H04L69/164—Adaptation or special uses of UDP protocol
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/08—Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
- H04L9/0816—Key establishment, i.e. cryptographic processes or cryptographic protocols whereby a shared secret becomes available to two or more parties, for subsequent use
- H04L9/0819—Key transport or distribution, i.e. key establishment techniques where one party creates or otherwise obtains a secret value, and securely transfers it to the other(s)
- H04L9/0822—Key transport or distribution, i.e. key establishment techniques where one party creates or otherwise obtains a secret value, and securely transfers it to the other(s) using key encryption key
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Communication Control (AREA)
Abstract
The invention discloses a kind of data transmission method for uplink, include the following steps:Controlling terminal sends the public key of oneself to primary gateway;Primary gateway judges whether the information of controlling terminal is legal, with the public key encryption answering system password got to controlling terminal if legal;Controlling terminal completes the encapsulation of control command, and carries out encryption data with the system password got;Then control command is pressed onto and sends buffer area, thread is sent by buffer area and is sent one by one;It sends thread and detects that control command needs to send and arrived the time that delay is sent, begin to send control command;The reply that control device is received after transmission control command, waits M milliseconds and just then sends next control command;The N milliseconds of replies for not receiving control device are waited after sending control command, indicates to send failure, then retransmits current control commands, repeating transmission is exited if sending times are beyond F times, then just then sends next control command.The safety of present invention guarantee Communication Control order.
Description
Technical field
The present invention relates to communication technique fields, and in particular to a kind of data transmission method for uplink.
Background technique
The communication data of current corporate device is no encrypted transmission, is not involved with the encryption of data, communication is very
It is dangerous.The communication mechanism of corporate device is controlling terminal using udp protocol, and broadcast issues control command, and control device receives
Order is executed when to control command.But broadcast has a defect, that is, does not know other side either with or without receiving.Communication mechanism is all before
It is that data broadcasting is gone out, does not confirm the reply of data, will lead to data packetloss in this way and also do not know, does not also know that terminal is set
It has and is not controlled to.Udp protocol, which has lacked, receives data answer mechanism, therefore obtains and increase private on the basis of this agreement
Some answer mechanism, it is ensured that data completely reach control device be there is an urgent need to.
Summary of the invention
In view of this, in order to solve the above problem in the prior art, the present invention proposes a kind of data transmission method for uplink.
The present invention is solved the above problems by following technological means:
A kind of data transmission method for uplink, includes the following steps:
S1, controlling terminal use udp protocol, send the public key of oneself to primary gateway;
S2, primary gateway judge whether the information of controlling terminal is legal, are replied if legal with the public key encryption got
System password is to controlling terminal;
S3, controlling terminal complete the encapsulation of control command according to the privately owned udp protocol that company sets, and are with what is got
Password of uniting carries out encryption data;
Then S4, controlling terminal are pressed onto control command and send buffer area, send thread by buffer area and send one by one;
S5, transmission thread detect that control command needs to send and arrived the time that delay is sent, and begin to transmission control
System order;
The reply that control device is received after S6, transmission control command waits M milliseconds just then to send next control life
It enables;
S7, the N milliseconds of replies for not receiving control device are waited after sending control command, indicates to send failure, just then
Current control commands are retransmitted, repeating transmission is exited if sending times are beyond F times, then just then sends next control command.
Further, in step S1, transmission protocol format is Business Name+order PublicKey:The public affairs of+controlling terminal
Key.
Further, in step S2, the acquisition modes of controlling terminal from primary gateway acquisition system password are using asymmetric
Algorithm obtains.
Further, in step S2, the data format that primary gateway replies to controlling terminal is Business Name+order
PasswordACK+ system password.
Further, in step S3, encryption data is carried out with the system password got using symmetry algorithm.
Further, in step S6, M=30.
Further, in step S7, N=500.
Further, in step S7, F=3.
Compared with prior art, beneficial effects of the present invention include at least:
In intelligent furniture field, data communication is very important safely.Present invention uses unique security mechanism,
Guarantee the safety to Communication Control order.Data communication between terminal device and control device is also extremely important.Because eventually
End equipment may fall far short with control device distance, and communication line environment may be very poor, accomplish that data are controlled in completely reaching
And middle control receives data feedback state and is very important to controlling terminal.The present invention can accomplish the control command of controlling terminal
Control device can be reached in real time, and terminal can also receive the state that control device receives control command.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for
For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other
Attached drawing.
Fig. 1 is the flow chart of data transmission method for uplink of the present invention;
Fig. 2 is the procedure chart of data transmission method for uplink of the present invention.
Specific embodiment
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, below in conjunction with attached drawing and specifically
Embodiment technical solution of the present invention is described in detail.It should be pointed out that described embodiment is only this hair
Bright a part of the embodiment, instead of all the embodiments, based on the embodiments of the present invention, those of ordinary skill in the art are not having
Every other embodiment obtained under the premise of creative work is made, shall fall within the protection scope of the present invention.
As shown in Figs. 1-2, the present invention provides a kind of data transmission method for uplink, includes the following steps:
S1, controlling terminal use udp protocol, send the public key of oneself to primary gateway.Transmission protocol format is Business Name
(HDL:)+order (PublicKey:The public key of)+controlling terminal.
S2, primary gateway judge whether the information of controlling terminal is legal.It is replied if legal with the public key encryption got
System password is to controlling terminal.The data format that primary gateway replies to controlling terminal is Business Name (HDL:)+order
(PasswordACK)+system password.
S3, controlling terminal complete the encapsulation of control command according to the privately owned udp protocol that company sets, and use symmetry algorithm
Encryption data is carried out with the system password got.
S4, then control command be pressed onto send buffer area, by buffer area send thread send one by one.
S5, transmission thread detect that control command needs to send and arrived the time that delay is sent, and begin to transmission control
System order.
The reply that control device is received after S6, transmission control command waits 30 milliseconds just then to send next control life
It enables.
S7,500 milliseconds of replies for not receiving control device are waited after sending control command, indicates to send failure, just connects
Repeating transmission current control commands.Repeating transmission is exited if sending times are beyond 3 times, then just then sends next control life
It enables.
Data transmission method for uplink of the invention has the characteristics that:
1, controlling terminal obtains system password from primary gateway, and acquisition modes are obtained using asymmetric arithmetic.
2, using the system password control extension order got, then control command is pressed onto and sends buffer area.
3, control command is the order that controlling terminal is sent to control device, is a kind of proprietary protocol of company.It is based on UDP
A kind of application layer protocol extended in agreement.
4, sending is that control command is packaged into udp protocol by application program, is then added to transmission thread.
5, control command is sent, if relevant order will be replied by being received by control device.Program can be held automatically
Row sends the order not sent out in thread.
If 6, sending failure will retransmit, until sending time-out with regard to stopping the transmission of the current command and sending next
Data.
Compared with prior art, beneficial effects of the present invention include at least:
In intelligent furniture field, data communication is very important safely.Present invention uses unique security mechanism,
Guarantee the safety to Communication Control order.Data communication between terminal device and control device is also extremely important.Because eventually
End equipment may fall far short with control device distance, and communication line environment may be very poor, accomplish that data are controlled in completely reaching
And middle control receives data feedback state and is very important to controlling terminal.The present invention can accomplish the control command of controlling terminal
Control device can be reached in real time, and terminal can also receive the state that control device receives control command.
The embodiments described above only express several embodiments of the present invention, and the description thereof is more specific and detailed, but simultaneously
Limitations on the scope of the patent of the present invention therefore cannot be interpreted as.It should be pointed out that for those of ordinary skill in the art
For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to guarantor of the invention
Protect range.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.
Claims (8)
1. a kind of data transmission method for uplink, which is characterized in that include the following steps:
S1, controlling terminal use udp protocol, send the public key of oneself to primary gateway;
S2, primary gateway judge whether the information of controlling terminal is legal, with the public key encryption answering system got if legal
Password is to controlling terminal;
S3, controlling terminal complete the encapsulation of control command according to the privately owned udp protocol that company sets, and close with the system got
Code carries out encryption data;
Then S4, controlling terminal are pressed onto control command and send buffer area, send thread by buffer area and send one by one;
S5, transmission thread detect that control command needs to send and arrived the time that delay is sent, and begin to transmission control life
It enables;
The reply that control device is received after S6, transmission control command, waits M milliseconds and just then sends next control command;
S7, the N milliseconds of replies for not receiving control device are waited after sending control command, indicates to send failure, just then retransmits
Current control commands exit repeating transmission if sending times are beyond F times, then just then send next control command.
2. data transmission method for uplink according to claim 1, which is characterized in that in step S1, transmission protocol format is company
Title+order PublicKey:The public key of+controlling terminal.
3. data transmission method for uplink according to claim 1, which is characterized in that in step S2, controlling terminal is obtained from primary gateway
The acquisition modes for taking system password are obtained using asymmetric arithmetic.
4. data transmission method for uplink according to claim 1, which is characterized in that in step S2, primary gateway replies to control eventually
The data format at end is Business Name+order PasswordACK+ system password.
5. data transmission method for uplink according to claim 1, which is characterized in that in step S3, obtained using symmetry algorithm
The system password arrived carries out encryption data.
6. data transmission method for uplink according to claim 1, which is characterized in that in step S6, M=30.
7. data transmission method for uplink according to claim 1, which is characterized in that in step S7, N=500.
8. data transmission method for uplink according to claim 1, which is characterized in that in step S7, F=3.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810718657.XA CN108847935A (en) | 2018-07-03 | 2018-07-03 | Data transmission method for uplink |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810718657.XA CN108847935A (en) | 2018-07-03 | 2018-07-03 | Data transmission method for uplink |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108847935A true CN108847935A (en) | 2018-11-20 |
Family
ID=64200091
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810718657.XA Pending CN108847935A (en) | 2018-07-03 | 2018-07-03 | Data transmission method for uplink |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108847935A (en) |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101207617A (en) * | 2006-12-22 | 2008-06-25 | 英业达股份有限公司 | Method for data transmission of network storing system |
CN104035793A (en) * | 2014-05-22 | 2014-09-10 | 浙江大学 | In-application wireless programming method based on single-chip microcomputer |
CN104811444A (en) * | 2015-04-02 | 2015-07-29 | 谢杰涛 | Secure cloud control method and system |
CN105656912A (en) * | 2016-01-29 | 2016-06-08 | 广西咪付网络技术有限公司 | Mobile intelligent terminal APP request process control method |
CN105959417A (en) * | 2016-07-05 | 2016-09-21 | 合肥高美清洁设备有限责任公司 | Remote management and control method for sweeper and scrubber |
CN106375126A (en) * | 2016-09-06 | 2017-02-01 | 南京大全自动化科技有限公司 | Onsite batch equipment maintenance method of photovoltaic box transformer substation measurement and control device |
CN106658355A (en) * | 2016-09-26 | 2017-05-10 | 珠海格力电器股份有限公司 | Method for forwarding broadcast packet in bluetooth BLE networking and system thereof |
CN106789476A (en) * | 2016-12-29 | 2017-05-31 | Tcl集团股份有限公司 | A kind of gateway communication method and system |
CN107783809A (en) * | 2017-09-29 | 2018-03-09 | 烽火通信科技股份有限公司 | A kind of smart machine control panel remote rendering method |
CN107786974A (en) * | 2017-10-31 | 2018-03-09 | 深圳市鑫宇鹏电子科技有限公司 | The method and system that cell phone application communicates with equipment safety in a kind of LAN |
CN108234657A (en) * | 2018-01-04 | 2018-06-29 | 江苏十月中宸科技有限公司 | A kind of high performance information safe processing system based on Internet of Things |
-
2018
- 2018-07-03 CN CN201810718657.XA patent/CN108847935A/en active Pending
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101207617A (en) * | 2006-12-22 | 2008-06-25 | 英业达股份有限公司 | Method for data transmission of network storing system |
CN104035793A (en) * | 2014-05-22 | 2014-09-10 | 浙江大学 | In-application wireless programming method based on single-chip microcomputer |
CN104811444A (en) * | 2015-04-02 | 2015-07-29 | 谢杰涛 | Secure cloud control method and system |
CN105656912A (en) * | 2016-01-29 | 2016-06-08 | 广西咪付网络技术有限公司 | Mobile intelligent terminal APP request process control method |
CN105959417A (en) * | 2016-07-05 | 2016-09-21 | 合肥高美清洁设备有限责任公司 | Remote management and control method for sweeper and scrubber |
CN106375126A (en) * | 2016-09-06 | 2017-02-01 | 南京大全自动化科技有限公司 | Onsite batch equipment maintenance method of photovoltaic box transformer substation measurement and control device |
CN106658355A (en) * | 2016-09-26 | 2017-05-10 | 珠海格力电器股份有限公司 | Method for forwarding broadcast packet in bluetooth BLE networking and system thereof |
CN106789476A (en) * | 2016-12-29 | 2017-05-31 | Tcl集团股份有限公司 | A kind of gateway communication method and system |
CN107783809A (en) * | 2017-09-29 | 2018-03-09 | 烽火通信科技股份有限公司 | A kind of smart machine control panel remote rendering method |
CN107786974A (en) * | 2017-10-31 | 2018-03-09 | 深圳市鑫宇鹏电子科技有限公司 | The method and system that cell phone application communicates with equipment safety in a kind of LAN |
CN108234657A (en) * | 2018-01-04 | 2018-06-29 | 江苏十月中宸科技有限公司 | A kind of high performance information safe processing system based on Internet of Things |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP2266224B1 (en) | Method of transmitting rlc data | |
US8374339B2 (en) | Security setting method of wireless communication network, wireless communication network system, client device and recording medium | |
CN108551681B (en) | Data transmission control method, device and system | |
US9319439B2 (en) | Secured wireless session initiate framework | |
WO2020214264A9 (en) | Acknowledgment messaging for resource reservations | |
KR102209598B1 (en) | System and method for maintaining synchronization in connectionless transmission | |
US20190141141A1 (en) | Dynamic detection of inactive virtual private network clients | |
EP3926875A4 (en) | Hybrid automatic repeat request (harq) feedback method, terminal, and network device | |
CN105681160B (en) | The method and device of conversation message random ordering is corrected in a kind of instantaneous communication system | |
US20120113977A1 (en) | Vpn device and vpn networking method | |
WO2015131689A1 (en) | Sensor code-pairing processing method, apparatus, network platform device, and internet of things gateway | |
CN109561087B (en) | Firewall penetration method and system | |
CN104394050A (en) | Connection method and connection device for intelligent housing system | |
US9485217B2 (en) | Method for configuring network nodes of a telecommunications network, telecommunications network, program and computer program product | |
CN102739494B (en) | SSL vpn gateway and the method automatically controlling SSL VPN passage thereof | |
CN104168273A (en) | Method and system for achieving TCP proxy in thin AP mode | |
CN102804664A (en) | Communication system, communication device, communication method, and program | |
CN108847935A (en) | Data transmission method for uplink | |
TWI599207B (en) | Push message transmitting method and message transmitting system | |
TW201742501A (en) | Data transmission method, equipment and system | |
MX2021007683A (en) | Data retransmission indication and processing method and device. | |
CN104618468A (en) | Method and device for transmitting service data message | |
CN113810476A (en) | Signaling safety transmission method and device for industrial internet | |
KR101911045B1 (en) | Device and method for processing keep-alive message from packet-transport-limited mobile | |
JP2017034627A (en) | System and method for communication control |
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 |
Effective date of registration: 20181226 Address after: 510000 No. 86 Lianhua West Road, Shilou Town, Panyu District, Guangzhou, Guangdong Province (No. 7 Workshop) Applicant after: Guangzhou Hedong Technology Co., Ltd. Address before: 510000 Lifeng Avenue, Shilou Town, Panyu District, Guangzhou, Guangdong Province Applicant before: GUANGZHOU HEDONG INTELLIGENT SCIENCE AND TECHNOLOGY CO., LTD. |
|
TA01 | Transfer of patent application right | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181120 |
|
RJ01 | Rejection of invention patent application after publication |