Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and device for sending and receiving files

A technology for sending and transferring files, which is applied in the receiving method and device, and the field of file sending, can solve problems such as insufficient file transfer stability, and achieve the effect of increasing stability

Active Publication Date: 2020-05-19
YULONG COMPUTER TELECOMM SCI (SHENZHEN) CO LTD
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The present invention provides a file sending and receiving method and device to solve the problem of insufficient stability of file transmission in the prior art

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
  • Method and device for sending and receiving files
  • Method and device for sending and receiving files
  • Method and device for sending and receiving files

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0029] This embodiment provides a file sending method. figure 1 It is a flow chart of the file sending method according to the first embodiment of the present invention. This embodiment is the steps performed by the sending terminal side.

[0030] Step S110, acquiring the file to be transferred and its file information.

[0031] The file to be transmitted refers to the main body of the file stored in the sending terminal. For example: the files to be transferred are phonebook, favorites, short messages, photo albums, etc.

[0032] The file information is the information of all files to be transferred. The number of files to be transferred is one or more, and the file information includes: the number of files to be transferred.

[0033] Step S120, sequentially transmitting the transmission start flag and file information to the receiving terminal.

[0034] In other words, the sending terminal first sends the transmission start flag to the receiving terminal, and then sends...

Embodiment 2

[0046] This implementation provides a file receiving method. figure 2It is a flow chart of the file receiving method according to the second embodiment of the present invention. This embodiment is the steps performed by the receiving terminal side.

[0047] Step S210, receiving the transmission flag sent by the sending terminal.

[0048] The transfer flags include: start transfer flag, file transfer flag and end transfer flag.

[0049] After receiving the transmission flag sent by the sending terminal, identify the transmission flag, determine the type of the received transmission flag, and further determine the data to be received according to the type of the transmission flag.

[0050] Step S220, judging whether the received transmission flag is a start transmission flag; if yes, execute step S230; if not, execute step 240.

[0051] Step S230, receiving file information. After receiving the file information, continue to execute step S210, so as to receive the file to be...

Embodiment 3

[0058] The number of files to be transmitted is one or more. When there are multiple files to be transmitted, the multiple files to be transmitted can be separated by a transmission flag, so that the receiving terminal can receive each file to be transmitted separately.

[0059] Such as image 3 Shown is a flow chart of the file sending method according to the third embodiment of the present invention.

[0060] Step S310, acquiring the file to be transmitted and its file information, and sequentially transmitting the transmission start flag and file information to the receiving terminal.

[0061] In addition to the number of files to be transferred, the file information may also include: sending terminal information, total data volume of all files to be transferred, expected transfer time of all files to be transferred, and receiving terminal information. Wherein, the sending terminal information is the sending terminal user name, user ID, or user nickname. The receiving ter...

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 sending method and device, and file receiving method and device. According to the methods, steps carried out at a sending terminal comprise obtaining a to-be-transmitted file and file information thereof; transmitting a start transmission mark and the file information to a receiving terminal in sequence; and transmitting the file transmission mark, the to-be-transmitted file and a finishing transmission mark to the receiving terminal in sequence. According to the methods, steps carried out at the receiving terminal comprise identifying the transmission mark sent by the sending terminal; preparing to receive the file information if the transmission mark is identified as the start transmission mark; preparing to receive the to-be-transmitted file if the transmission mark is identified as the file transmission mark; and finishing receiving the to-be-transmitted file if the transmission mark is identified as the finishing transmission mark. According to the method and the device, the file body and the file related information are sent closely following the transmission mark and are not limited by a capacity; the receiving terminal can receive the file body and the file related information accurately according to the transmission mark; and the file transmission stability is increased.

Description

technical field [0001] The invention relates to the technical field of file communication, in particular to a method and device for sending and receiving files. Background technique [0002] When the sending terminal sends a file to the receiving terminal, it must strictly follow the structure specified in the transmission protocol to form the main body of the file and its related information into a data frame. [0003] In the prior art, in addition to defining the structure of the data frame, the transmission protocol also limits the size of data transmitted in each time slot in the frame structure. For example: the file name, file path, file size, and file number in the file-related information are only allowed to occupy 1 byte of the data frame. [0004] However, the length of the file name and file path may exceed 1 byte, so that the sending terminal can only send part of the file name or file path to the receiving terminal. Moreover, with the advent of the era of big ...

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 Patents(China)
IPC IPC(8): H04L29/08
CPCH04L67/06
Inventor 张照康
Owner YULONG COMPUTER TELECOMM SCI (SHENZHEN) CO LTD