Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Document transmission method and apparatus

A file transfer and file technology, which is applied in the field of network and communication, can solve problems such as complex implementation, and achieve the effect of high read and write efficiency and rich file transfer commands

Active Publication Date: 2009-04-15
ZHUZHOU CSR TIMES ELECTRIC CO LTD
View PDF0 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

FTP has rich functions, but the implementation is too complicated

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Document transmission method and apparatus
  • Document transmission method and apparatus
  • Document transmission method and apparatus

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0066] In this embodiment, based on the process of uploading files, the transmission process of the message is described, refer to figure 1 ,details as follows:

[0067] In step S101, the operator sends a write request WRQ message to the agent.

[0068] The operator plays the function similar to the file transfer client, and the agent plays the function similar to the file transfer server.

[0069] Step S102, the agent judges whether the file name and path are correct, and whether the system can accept it. If correct, answer the ACK message. If it is wrong, reply with an ERROR message.

[0070] Step S103, after receiving the ACK message, the operator starts to send the DATA message to the agent.

[0071] Step S104, the agent receives the DATA message, writes it into the data file, and replies with an ACK message, and if an error occurs, replies with an ERROR message.

[0072] The operator repeats step S103, and the agent repeats step S104. until the data is sent. If the...

Embodiment 2

[0078] In this embodiment, the file transfer protocol uses 5 types of messages as mentioned above: read request Readrequest (RRQ), write request Write request (WRQ), data message Data (DATA), confirmation message Acknowledgment (ACK) and Error returns message Error(ERROR).

[0079] The following is based on the process of downloading files to illustrate the transmission process of the message, as follows:

[0080] Step S201. The operator sends a read request RRQ message to the agent;

[0081] Step S202. The agent judges whether the file name and path are correct, and whether the file can be opened. If correct, start transmitting the DATA message. If wrong, answer ERROR message;

[0082] Step S203. After receiving the DATA message, the operator determines if it is not the last message, and sends an ACK message to the agent to request the next piece of data;

[0083] Step S204. The agent receives the ACK message, if the file has not been transmitted, continue to answer the D...

Embodiment 3

[0091] Compared with the foregoing embodiments, the data transmission method provided by the embodiment of the present invention further includes:

[0092] The functions of querying files or directories, deleting files, and viewing the available disk space are implemented by calling the library functions of the operating system on the smart device. Different operating systems have different implementation methods.

[0093] (a) query file or directory operation

[0094] View the file list of the specified directory of the smart device on the train network, the attribute of the file (regular file or directory) and file size. Or view the list of devices on that device. The device list includes physical serial ports, Flash storage devices, remote host directories, and other devices and drivers.

[0095] The call message structure is defined as follows:

[0096] Call_Get_Dir::RECORD

[0097] {

[0098] dir_name_len UNSIGNED16;--used to store " / " (referring to the device list)...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a file transmission method which is applied to train communication network. In the method, operational request information is sent to an opposite end device in a predetermined format. The operational request information comprises an operational code, a transmission mode and path information. When confirmation information which is returned by the opposite end device is received, the data message operation is implemented according to the operational request information. A file transmission device for the train communication network is also provided. According to the filetransmission method, five functions of uploading files, downloading files, searching for files or catalogues, deleting files and viewing occupied space of disks can be realized. On the train communication network, systematic files, configuration files and application files can be transmitted to other intelligent devices just by one intelligent device. The file transmission method is beneficial tothe maintenance of file systems of train equipment.

Description

technical field [0001] The present invention relates to the field of network and communication technologies, in particular to a file transmission method and device. Background technique [0002] Train Communication Network (TCN, Train Communication Network) is used for exchanging data files between various operation management devices on the train, and usually adopts a distributed modular structure. Because it is a dedicated network, its transmission speed, transmission capacity, and real-time performance must meet the requirements of train operation, realizing a technological leap from centralized control to distributed network control. For TCN-based file transfer, methods that can be used for reference include the widely used TCP / IP-based TFTP and FTP (File Transfer Protocol). [0003] The Trivial File Transfer Protocol (TFTP, Trivial File Transfer Protocol) in the prior art is an application based on the User Datagram Protocol (UDP, User Datagram Protocol). At the begin...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): H04L29/08H04L29/06H04L1/16
Inventor 刘群欣蒋晓艳华斌
Owner ZHUZHOU CSR TIMES ELECTRIC CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products