CN107835260A - A kind of file speedy delivery method - Google Patents
A kind of file speedy delivery method Download PDFInfo
- Publication number
- CN107835260A CN107835260A CN201711351456.2A CN201711351456A CN107835260A CN 107835260 A CN107835260 A CN 107835260A CN 201711351456 A CN201711351456 A CN 201711351456A CN 107835260 A CN107835260 A CN 107835260A
- Authority
- CN
- China
- Prior art keywords
- file
- server
- equipment
- transmission
- sent
- 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
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Communication Control (AREA)
Abstract
The invention discloses a kind of file speedy delivery method, the transmission method data receiver, data in programming are sent carries out equipment using function pointer mode, it is gone for any character type coffret, such as:RS232, RS485, network etc.;File is read, file write-in also uses such a mode, it is gone for the equipment of no file system, and this transmission means can be used using only needing simple realization file to read write-in;The transmission means of the question-response of this transmission means abandoning tradition character communication simultaneously, using once asking more bag transmission means to be designed, reduces the stand-by period in answering, reaches the maximization of efficiency of transmission.
Description
Technical field
The present invention relates to file transfer technology field, specially a kind of file speedy delivery method.
Background technology
The file of embedded system mainly uses FTP now;But File Transfer Protocol needs to enter based on Transmission Control Protocol
Row transmission, higher is required to Embedded Application, using more in implantation Linux embedded scheme, to nothing can not be applied to
Operating system is implanted into the embedded scheme of simple operations system using more difficult;FTP is designed based on TCP, makes it
The embedded scheme without network or WIFI interface can not be applied to, and transplanting Transmission Control Protocol is also needed in transplanting, add its transplanting
Difficulty;FTP and TCP requires higher to system resource simultaneously, and minimum TCP protocol stack needs more than 64K internal memories, makes it can not be
Applied in small embedded systems project.
The content of the invention
It is an object of the invention to provide a kind of file speedy delivery method, is asked with solve to propose in above-mentioned background technology
Topic.
To achieve the above object, the present invention provides following technical scheme:A kind of file speedy delivery method, including lower style of writing
Part transmits and the transmission of up file, wherein, descending file transmission comprises the following steps:
A, descending file transmission start:Server issues 0x8060 instructions, file name that annunciator needs to transmit, big
Small to wait constituent instruments information, whether equipment creates corresponding file, and allow file to transmit to server response;
B, descending scarce bag mends biography mechanism:After startup file transmission, equipment detection local file integrality, missing data is counted
Bag;Instruct notification server current device to lack those packets by 0x0602, server after 0x0602 instructions are received,
Sequentially file data bag 0x8060 is sent to equipment;Server is not to wait for equipment response in the process, with most block speed to setting
Preparation send file data bag, substantially increases transmission speed;When equipment receives last bag of 0x0602 or waits to be received
After 0x8060 time-out, local file is most counted again, if missing data bag, then sends 0x0602 to server again, such as
Fruit is transmitted without missing packet documentary evidence;
C, downstream state reports mechanism:Equipment is starting, file transmit, the individual stage such as is being transmitted and can sent to server
Present transmission state 0x0603 is instructed.
Preferably, up file transmission comprises the following steps:
A, up file transmission start:When equipment is needed to server transport file, send 0x0604 to server and refer to
Order, notification server need to transmit the transmission of the constituent instruments such as title, the size of file;
B, up missing data bag, which is mended, passes:Equipment default server lacks all packets after startup, and to by forward taking
Business device transmits all missing data bags;After all packets are transmitted, device-to-server sends 0x0609 instructions, inquiry
Which packet server lacks;After receiving missing data the package list 0x80609 that server is sent to equipment, equipment is again
Packet sequentially is sent to server, until the 0x80609 missing data reports list that server is sent to equipment is sky;
C, uplink state reports mechanism:Equipment is starting, file transmit, the individual stage such as is being transmitted and can sent to server
Present transmission state 0x0605 is instructed.
Compared with prior art, the beneficial effects of the invention are as follows:The present invention can be provided for embedded OS it is simple,
Stable, quick file transfer mode provides support;The present invention is applied to without operating system application, simple operations system and Linux
System, it is widely used;The transmission method of the present invention data receiver, data in programming, which are sent, uses function pointer mode
Equipment is carried out, it is gone for any character type coffret, such as:RS232, RS485, network etc.;File is read, file
Write-in also uses such a mode, it is gone for the equipment of no file system, is read using simple realization file is only needed
This transmission means can be used in write-in;The transmission means of the question-response of this transmission means abandoning tradition character communication simultaneously, is used
Once ask more bag transmission means to be designed, reduce the stand-by period in answering, reach the maximization of efficiency of transmission.
Embodiment
The technical scheme in the embodiment of the present invention is clearly and completely described below, it is clear that described embodiment
Only part of the embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, the common skill in this area
The every other embodiment that art personnel are obtained under the premise of creative work is not made, belong to the model that the present invention protects
Enclose.
The present invention provides following technical scheme:A kind of file speedy delivery method, including the transmission of descending file and upper style of writing
Part transmits, wherein, descending file transmission comprises the following steps:
A, descending file transmission start:Server issues 0x8060 instructions, file name that annunciator needs to transmit, big
Small to wait constituent instruments information, whether equipment creates corresponding file, and allow file to transmit to server response;
B, descending scarce bag mends biography mechanism:After startup file transmission, equipment detection local file integrality, missing data is counted
Bag;Instruct notification server current device to lack those packets by 0x0602, server after 0x0602 instructions are received,
Sequentially file data bag 0x8060 is sent to equipment;Server is not to wait for equipment response in the process, with most block speed to setting
Preparation send file data bag, substantially increases transmission speed;When equipment receives last bag of 0x0602 or waits to be received
After 0x8060 time-out, local file is most counted again, if missing data bag, then sends 0x0602 to server again, such as
Fruit is transmitted without missing packet documentary evidence;
C, downstream state reports mechanism:Equipment is starting, file transmit, the individual stage such as is being transmitted and can sent to server
Present transmission state 0x0603 is instructed.
In the present invention, up file transmission comprises the following steps:
A, up file transmission start:When equipment is needed to server transport file, send 0x0604 to server and refer to
Order, notification server need to transmit the transmission of the constituent instruments such as title, the size of file;
B, up missing data bag, which is mended, passes:Equipment default server lacks all packets after startup, and to by forward taking
Business device transmits all missing data bags;After all packets are transmitted, device-to-server sends 0x0609 instructions, inquiry
Which packet server lacks;After receiving missing data the package list 0x80609 that server is sent to equipment, equipment is again
Packet sequentially is sent to server, until the 0x80609 missing data reports list that server is sent to equipment is sky;
C, uplink state reports mechanism:Equipment is starting, file transmit, the individual stage such as is being transmitted and can sent to server
Present transmission state 0x0605 is instructed.
The present invention can be provided for embedded OS it is simple, stably, quick file transfer mode support is provided;This hair
It is bright to be applied to, without operating system application, simple operations system and linux system, be widely used;The transmission method of the present invention is in journey
Data receiver, data are sent when sequence designs carries out equipment using function pointer mode, it is gone for any character type
Coffret, such as:RS232, RS485, network etc.;File is read, file write-in also uses such a mode, goes for it
Equipment without file system, this transmission means can be used using only needing simple realization file to read write-in;This transmission simultaneously
Mode abandoning tradition character communicates the transmission means of question-response, using once asking more bag transmission means to be designed, reduces
Stand-by period in answering, reach the maximization of efficiency of transmission.
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 changes, modification can be carried out to these embodiments, replace 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 (2)
- A kind of 1. file speedy delivery method, it is characterised in that:Including the transmission of descending file and the transmission of up file, wherein, under Style of writing part transmission comprises the following steps:A, descending file transmission start:Server issues 0x8060 instructions, and annunciator needs file name, size transmitted etc. Constituent instruments information, whether equipment creates corresponding file, and allow file to transmit to server response;B, descending scarce bag mends biography mechanism:After startup file transmission, equipment detection local file integrality, missing data bag is counted; Notification server current device is instructed to lack those packets by 0x0602, server is pressed after 0x0602 instructions are received Sequence sends file data bag 0x8060 to equipment;Server is not to wait for equipment response in the process, with most block speed to equipment File data bag is sent, substantially increases transmission speed;When equipment receives last bag of 0x0602 or waits 0x8060 to be received After time-out, local file is most counted again, if missing data bag, then 0x0602 is sent to server again, if intact Packet documentary evidence is lost to be transmitted;C, downstream state reports mechanism:Equipment is starting, file transmit, a stage such as is being transmitted and can sent currently to server Transmission state 0x0603 is instructed.
- A kind of 2. file speedy delivery method according to claim 1, it is characterised in that:Up file transmission includes following Step:A, up file transmission start:When equipment is needed to server transport file, 0x0604 instructions are sent to server, are accused Know that server needs to transmit the transmission of the constituent instruments such as title, the size of file;B, up missing data bag, which is mended, passes:Equipment default server lacks all packets after startup, and to by forward server Transmit all missing data bags;After all packets are transmitted, device-to-server sends 0x0609 instructions, inquiry service Which packet device lacks;After receiving missing data the package list 0x80609 that server is sent to equipment, equipment is again sequentially Packet is sent to server, until the 0x80609 missing data reports list that server is sent to equipment is sky;C, uplink state reports mechanism:Equipment is starting, file transmit, a stage such as is being transmitted and can sent currently to server Transmission state 0x0605 is instructed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711351456.2A CN107835260A (en) | 2017-12-15 | 2017-12-15 | A kind of file speedy delivery method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711351456.2A CN107835260A (en) | 2017-12-15 | 2017-12-15 | A kind of file speedy delivery method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107835260A true CN107835260A (en) | 2018-03-23 |
Family
ID=61644943
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711351456.2A Pending CN107835260A (en) | 2017-12-15 | 2017-12-15 | A kind of file speedy delivery method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107835260A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090157896A1 (en) * | 2007-12-17 | 2009-06-18 | Electronics And Telecommunications Research Institute | Tcp offload engine apparatus and method for system call processing for static file transmission |
CN101473628A (en) * | 2006-04-12 | 2009-07-01 | 思杰系统有限公司 | Systems and methods for accelerating delivery of a computing environment to remote user |
CN104239092A (en) * | 2014-08-25 | 2014-12-24 | 国网电力科学研究院 | Online updating method for program based on remote wireless channel with packet-reissuing system |
CN106453474A (en) * | 2015-07-17 | 2017-02-22 | 生物辐射实验室股份有限公司 | Network transfer of large files in unstable network environments |
-
2017
- 2017-12-15 CN CN201711351456.2A patent/CN107835260A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101473628A (en) * | 2006-04-12 | 2009-07-01 | 思杰系统有限公司 | Systems and methods for accelerating delivery of a computing environment to remote user |
US20090157896A1 (en) * | 2007-12-17 | 2009-06-18 | Electronics And Telecommunications Research Institute | Tcp offload engine apparatus and method for system call processing for static file transmission |
CN104239092A (en) * | 2014-08-25 | 2014-12-24 | 国网电力科学研究院 | Online updating method for program based on remote wireless channel with packet-reissuing system |
CN106453474A (en) * | 2015-07-17 | 2017-02-22 | 生物辐射实验室股份有限公司 | Network transfer of large files in unstable network environments |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
DE69233608T2 (en) | Local radio frequency network | |
CN101252591B (en) | Apparatus and method for realizing uplink and downlink data separation | |
CN100525152C (en) | System and method for broadband digital broadcasting | |
CN102143035A (en) | Data traffic processing method, network device and network system | |
CN109639679A (en) | A kind of Tianhuangping pumped storage plant data format design method adapting to Big Dipper short message | |
CN109921843A (en) | A kind of Big Dipper short message communication method towards distance education based on satellite communication system | |
CN101534249A (en) | Method for transmitting data on bound link and network equipment thereof | |
CN102065152A (en) | Joined screen system and communication device thereof | |
CN105871706A (en) | File transmission method and file transmission system | |
CN109286854A (en) | The detection of network flow-medium Caton and optimization system and method based on WiFi network | |
CN103414508A (en) | Method for establishing communication links between master-and-slave satellites | |
US20070274246A1 (en) | Reliable multicast in a network having a power saving protocol | |
CN109572764A (en) | A kind of band eat dishes without rice or wine school when function plane marshalling system and calibration method | |
CN102497014A (en) | Method and device for realizing remote control command transmission in automatic power distribution system | |
CN107835260A (en) | A kind of file speedy delivery method | |
WO2019134496A1 (en) | Data transmission method and communication device | |
CN102238493B (en) | Machine-to-machine (M2M)-platform-based message sequential transmission and receiving method and device | |
WO2016131323A1 (en) | Method and apparatus for controlling dual connection x2 state report transmission and secondary base station | |
CN102368767A (en) | Internet acceleration method and system based on HFC (hybrid fiber coaxial) network | |
CN106775961A (en) | A kind of method of cross-system data and signal transmission | |
CN102316417A (en) | Command distribution method for wireless fidelity (Wi-Fi) wireless sensing network | |
CN110460579B (en) | Flight data display method, system and device and readable storage medium | |
CN111092741B (en) | System and method for distributing files through multicast channel | |
EP4224809A1 (en) | Message transmission method, terminals and storage medium | |
CN102685130A (en) | Dispatching control method and system for cloud conference |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180323 |
|
RJ01 | Rejection of invention patent application after publication |