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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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)...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com