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

Streaming file transmission method based on Xmodem protocol

A transmission method and streaming file technology are applied in the field of streaming file transmission based on the Xmodem protocol, which can solve the problems that the receiving end cannot process it and the data is too fast, and achieve the effect of adding delay processing conveniently.

Pending Publication Date: 2022-02-15
四川泛华航空仪表电器有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The purpose of the present invention is to provide a stream file transmission method based on the Xmodem protocol, which is used to solve the problem that the sending end sends data too fast in the Xmodem protocol, causing the receiving end to handle it, and it is convenient to add delay processing

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
  • Streaming file transmission method based on Xmodem protocol

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0036] A kind of streaming file transmission method based on Xmodem protocol of the present embodiment, such as figure 1 As shown, the sender sends a signal to the receiver (including confirmation signal and available serial port number and other information), the receiver confirms and returns the signal, establishes a serial port connection, the sender compiles the sending resource into a hexadecimal file, and simultaneously Make files reversible encrypted, create a thread, continue to pack and send in 128 bytes, the receiver starts the receiving thread, continues to receive data packets, pass CRC verification, and then transmit based on the Xmodem protocol, if any data packet verification fails , the process is over, return to the sender to close the signal, close the serial port, if there is no abnormality, the sender’s data transmission is completed, close the sending data thread, send an end signal and a verification key to the sender, the verification key is the above Th...

Embodiment 2

[0038] This embodiment is further optimized on the basis of Embodiment 1, setting private InputStreaminputStream is used to set the input stream, setting private OutputStream outputStream is used to set the output stream.

[0039] Other parts of this embodiment are the same as those of Embodiment 1, so details are not repeated here.

Embodiment 3

[0041] This embodiment is further optimized on the basis of Embodiment 1. For the transmission method that the sender only supports checksum, the receiver should first send a serial port signal to initiate the transmission. If the sender has no data to send, it needs to wait for a timeout of 3 Seconds later, the serial port signal is initiated for data transmission. For correct data transmission, the receiver needs to send a confirmation signal to confirm. If the data transmission is wrong, send a serial port signal. The sender needs to re-initiate the data transmission after receiving the serial port signal. If the data transmission is almost completed , the sender needs to send an end signal to end the data transmission.

[0042] Other parts of this embodiment are the same as those of Embodiment 1, so details are not repeated here.

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 relates to the technical field of Xmodem protocols, and discloses a streaming file transmission method based on an Xmodem protocol, which comprises the following steps that: a sender sends a signal to a receiver, and establishes serial port connection; obtaining the error packet number, the packet sequence number and the byte number of the buffer region, and judging the final packet data; acquiring response data, and sending an ending identifier; the sender compiles response data into a hexadecimal file, encrypts the hexadecimal file at the same time, establishes a thread, and continuously sends a data packet; the receiver starts a receiving thread, judges whether the data packet is accepted or not according to the file path, imports CRC to verify the data packet, obtains the packet sequence number again, judges the packet sequence number, and receives the data packet when the packet sequence number is correct; and after the data transmission of the sender is finished, closing the data sending thread, receiving the signal by the receiver, synchronously closing the communication serial port, packaging and integrating a data packet, decoding the data packet into an original file through a secret key, and finishing the transmission of the stream file.

Description

technical field [0001] The present invention relates to the technical field of Xmodem protocol, in particular, it is a stream file transmission method based on Xmodem protocol, which is used to solve the problem that the sending end sends data too fast in the Xmodem protocol, causing the receiving end to be unable to handle it, and it is convenient to add delay deal with. Background technique [0002] With the continuous development of Internet technology and the continuous enhancement of network requirements, Xmodem is an asynchronous file transfer protocol widely used in serial communication. In Xmodem protocol, the sender only supports the transmission method of checksum, and the receiver should First send a NAK signal to initiate the transmission. If the sender has no data to send, it needs to wait for 3 seconds after a timeout and then initiate a NAK signal for data transmission. For correct data transmission, the receiver needs to send an ACK signal to confirm. If the...

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): G06F13/42G06F21/60H04L67/06H04L69/22H04L9/40
CPCG06F13/4282G06F21/602H04L67/06H04L69/22H04L63/12
Inventor 李霞张志明李成飞
Owner 四川泛华航空仪表电器有限公司
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