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.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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.
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