亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? xmodem.doc

?? XMODEM傳輸協議。 通信用代碼。 C語言實現
?? DOC
?? 第 1 頁 / 共 2 頁
字號:
   Table of Contents1. DEFINITIONS2. TRANSMISSION MEDIUM LEVEL PROTOCOL3. MESSAGE BLOCK LEVEL PROTOCOL4. FILE LEVEL PROTOCOL5. DATA FLOW EXAMPLE INCLUDING ERROR RECOVERY6. PROGRAMMING TIPS.-------- 1. DEFINITIONS.  <soh> 01H   <eot> 04H   <ack> 06H   <nak> 15H   <can> 18H-------- 2. TRANSMISSION MEDIUM LEVEL PROTOCOLAsynchronous, 8 data bits, no parity, one stop bit.    The protocol imposes no restrictions on the contents of thedata being transmitted.  No control characters are looked forin the 128-byte data messages.	Absolutely any kind of data maybe sent - binary, ASCII, etc.  The protocol has not formallybeen adopted to a 7-bit environment for the transmission ofASCII-only (or unpacked-hex) data , although it could be simplyby having both ends agree to AND the protocol-dependent datawith 7F hex before validating it.  I specifically am referringto the checksum, and the block numbers and their ones-complement.    Those wishing to maintain compatibility of the CP/M filestructure, i.e. to allow modemming ASCII files to or from CP/Msystems should follow this data format:  * ASCII tabs used (09H); tabs set every 8.  * Lines terminated by CR/LF (0DH 0AH)  * End-of-file indicated by ^Z, 1AH.  (one or more)  * Data is variable length, i.e. should be considered a    continuous stream of data bytes, broken into 128-byte    chunks purely for the purpose of transmission.  * A CP/M "peculiarity": If the data ends exactly on a    128-byte boundary, i.e. CR in 127, and LF in 128, a    subsequent sector containing the ^Z EOF character(s)    is optional, but is preferred.  Some utilities or    user programs still do not handle EOF without ^Zs.  * The last block sent is no different from others, i.e.    there is no "short block".-------- 3. MESSAGE BLOCK LEVEL PROTOCOL Each block of the transfer looks like:<SOH><blk #><255-blk #><--128 data bytes--><cksum>    in which:<SOH>	    = 01 hex<blk #>     = binary number, starts at 01 increments by 1, and	      wraps 0FFH to 00H (not to 01)<255-blk #> = blk # after going thru 8080 "CMA" instr, i.e.	      each bit complemented in the 8-bit block number.	      Formally, this is the "ones complement".<cksum>     = the sum of the data bytes only.  Toss any carry.-------- 4. FILE LEVEL PROTOCOL---- 4A. COMMON TO BOTH SENDER AND RECEIVER:    All errors are retried 10 times.    Some versions of the protocol use <can>, ASCII ^X, tocancel transmission.  This was never adopted as a standard, ashaving a single "abort" character makes the transmissionsusceptible to false termination due to an <ack> <nak> or <soh>being corrupted into a <can> and cancelling transmission.    The protocol may be considered "receiver driven", that is,the sender need not automatically re-transmit, although it doesin the current implementations.---- 4B. RECEIVE PROGRAM CONSIDERATIONS:    The receiver has a 10-second timeout.  It sends a <nak>every time it times out.  The receiver's first timeout, whichsends a <nak>, signals the transmitter to start.  Optionally,the receiver could send a <nak> immediately, in case the senderwas ready.  This would save the initial 10 second timeout.However, the receiver MUST continue to timeout every 10 secondsin case the sender wasn't ready.    Once into a receiving a block, the receiver goes into aone-second timeout for each character and the checksum.  If thereceiver wishes to <nak> a block for any reason (invalidheader, timeout receiving data), it must wait for the line toclear.	See "programming tips" for ideas    Synchronizing:  If a valid block number is received, itwill be: 1) the expected one, in which case everything is fine;or 2) a repeat of the previously received block.  This shouldbe considered OK, and only indicates that the receivers <ack>got glitched, and the sender re-transmitted; 3) any other blocknumber indicates a fatal loss of synchronization, such as therare case of the sender getting a line-glitch that looked likean <ack>.  Abort the transmission, sending a <can>---- 4C. SENDING PROGRAM CONSIDERATIONS.    While waiting for transmission to begin, the sender hasonly a single very long timeout, say one minute.  In thecurrent protocol, the sender has a 10 second timeout beforeretrying.  I suggest NOT doing this, and letting the protocolbe completely receiver-driven.	This will be compatible withexisting programs.    When the sender has no more data, it sends an <eot>, andawaits an <ack>, resending the <eot> if it doesn't get one.Again, the protocol could be receiver-driven, with the senderonly having the high-level 1-minute timeout to abort.-------- 5. DATA FLOW EXAMPLE INCLUDING ERROR RECOVERYHere is a sample of the data flow, sending a 3-block message.It includes the two most common line hits - a garbaged block,and an <ack> reply getting garbaged.  <xx> represents thechecksum byte.SENDER					RECEIVER				times out after 10 seconds,			<---		<nak><soh> 01 FE -data- <xx> --->			<---		<ack><soh> 02 FD -data- xx	--->	(data gets line hit)			<---		<nak><soh> 02 FD -data- xx	--->			<---		<ack><soh> 03 FC -data- xx	--->   (ack gets garbaged)  <---            <ack><soh> 03 FC -data- xx	--->		<ack><eot>			--->			<---		<ack>-------- 6. PROGRAMMING TIPS.* The character-receive subroutine should be called with aparameter specifying the number of seconds to wait.  Thereceiver should first call it with a time of 10, then <nak> andtry again, 10 times.  After receiving the <soh>, the receiver should call thecharacter receive subroutine with a 1-second timeout, for theremainder of the message and the <cksum>.  Since they are sentas a continuous stream, timing out of this implies a seriouslike glitch that caused, say, 127 characters to be seen insteadof 128.* When the receiver wishes to <nak>, it should call a "PURGE"subroutine, to wait for the line to clear.  Recall the sendertosses any characters in its UART buffer immediately uponcompleting sending a block, to ensure no glitches were mis-interpreted.  The most common technique is for "PURGE" to call thecharacter receive subroutine, specifying a 1-second timeout,and looping back to PURGE until a timeout occurs.  The <nak> isthen sent, ensuring the other end will see it.* You may wish to add code recommended by John Mahr to yourcharacter receive routine - to set an error flag if the UARTshows framing error, or overrun.  This will help catch a fewmore glitches - the most common of which is a hit in the highbits of the byte in two consecutive bytes.  The <cksum> comesout OK since counting in 1-byte produces the same result ofadding 80H + 80H as with adding 00H + 00H.--------------------------------------------------------------MODEM PROTOCOL OVERVIEW,  CRC OPTION ADDENDUM1/13/85 by John Byrns.Please pass on any reports of errors in this document or suggestionsfor improvement to me via Ward's/CBBS at (312) 849-1132, or by voiceat (312) 885-1105.Last Rev: (preliminary  1/13/85)This document describes the changes to the Christensen Modem Protocolthat implement the CRC option. This document is an addendum toWard Christensen's "Modem Protocol Overview". This document andWard's document are both required  for a complete description of theModem Protocol.	Table of Contents1.  DEFINITIONS7.  OVERVIEW OF CRC OPTION8.  MESSAGE BLOCK LEVEL PROTOCOL, CRC MODE9.  CRC CALCULATION10. FILE LEVEL PROTOCOL, CHANGES FOR COMPATIBILITY11. DATA FLOW EXAMPLES WITH CRC OPTION---- 1B. ADDITIONAL DEFINITIONS<C>	43H-------- 7. OVERVIEW OF CRC OPTIONThe CRC used in the Modem Protocol is an alternate form of block checkwhich provides more robust error detection than the original checksum.Andrew S. Tanenbaum says in his book, Computer Networks, that theCRC-CCITT used by the Modem Protocol will detect all single and doublebit errors, all errors with an odd number of bits, all burst errors oflength 16 or less, 99.997% of 17-bit error bursts, and 99.998% of18-bit and longer bursts.The changes to the Modem Protocol to replace the checksum with the CRCare straight forward. If that were all that we did we would not beable to communicate between a program using the old checksum protocol

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩欧美在线影院| 亚洲国产精品一区二区久久恐怖片| 久久久久久久久一| 一区二区三区精品在线观看| 狠狠色丁香婷婷综合久久片| 欧美日韩一区视频| 国产精品对白交换视频| 久久精品国产99国产| 91久久人澡人人添人人爽欧美| 久久日韩精品一区二区五区| 亚洲成人自拍偷拍| 成人av动漫网站| 久久精品日韩一区二区三区| 日欧美一区二区| 91福利视频久久久久| 国产精品成人免费在线| 国产91在线观看| 久久―日本道色综合久久| 久久91精品久久久久久秒播| 欧美精品免费视频| 亚洲1区2区3区视频| 色婷婷精品大在线视频| 亚洲男同性恋视频| 91热门视频在线观看| 中文字幕亚洲精品在线观看| 国产精品一级黄| 另类小说视频一区二区| 91精品久久久久久久久99蜜臂| 亚洲va在线va天堂| 在线精品国精品国产尤物884a| 国产精品大尺度| 91亚洲精品久久久蜜桃网站| 亚洲欧美怡红院| 色悠悠亚洲一区二区| 亚洲另类中文字| 欧美亚洲国产一区二区三区va| 亚洲美女屁股眼交3| 色噜噜夜夜夜综合网| 亚洲成av人片在线| 欧美成人bangbros| 成人理论电影网| 亚洲精品美国一| 欧美日韩国产123区| 蜜臀av一区二区在线免费观看| 精品久久久久久久人人人人传媒| 国产麻豆精品久久一二三| 久久精品一级爱片| 色综合久久综合网欧美综合网| 亚洲电影中文字幕在线观看| 4438成人网| 国产精品538一区二区在线| 国产精品拍天天在线| 91国产丝袜在线播放| 午夜久久久久久久久久一区二区| 日韩一区二区影院| 成人影视亚洲图片在线| 亚洲在线中文字幕| 精品噜噜噜噜久久久久久久久试看 | 亚洲一区二区成人在线观看| 欧美日韩精品一区二区在线播放| 看电视剧不卡顿的网站| 国产欧美一区二区精品忘忧草| av不卡在线播放| 美女免费视频一区| 国产精品第四页| 日韩欧美黄色影院| 99精品黄色片免费大全| 蜜臀av亚洲一区中文字幕| 136国产福利精品导航| 91精品婷婷国产综合久久性色| 国产在线精品不卡| 一区二区三区免费看视频| 日韩欧美中文字幕一区| 99re这里只有精品视频首页| 日韩福利电影在线| 国产精品女同互慰在线看| 欧美三级日韩三级| 福利一区福利二区| 免费精品视频在线| 一区二区三区不卡视频| 国产人伦精品一区二区| 欧美一区二区三区免费| 色欧美乱欧美15图片| 精品中文字幕一区二区| 伊人开心综合网| 国产精品久久久久毛片软件| 欧美一级淫片007| 欧洲一区二区av| 成人黄色777网| 国产一区二三区| 美女在线观看视频一区二区| 亚洲高清免费观看高清完整版在线观看 | 在线视频国内一区二区| 国产精品一区久久久久| 日韩电影在线看| 亚洲国产日韩在线一区模特| 亚洲欧洲av在线| 国产日韩欧美a| 精品国产乱码久久久久久1区2区 | 久久99最新地址| 美女视频一区二区| 天天av天天翘天天综合网| 一区二区三区四区不卡在线 | 国产丝袜在线精品| 欧美精品一区二区三区久久久 | 欧美aaaaaa午夜精品| 亚洲国产精品嫩草影院| 亚洲欧美一区二区久久| 国产精品久久久久7777按摩| 久久久国产一区二区三区四区小说| 欧美xxxxx裸体时装秀| 欧美一区二区久久久| 日韩一区二区三区在线观看| 欧美一区二区三区不卡| 欧美精品tushy高清| 欧美精品777| 欧美一区二区三区四区在线观看| 欧美日韩黄视频| 7777精品伊人久久久大香线蕉| 91精品婷婷国产综合久久竹菊| 91精品国产综合久久久蜜臀图片| 制服丝袜成人动漫| 日韩午夜三级在线| 精品播放一区二区| 中文字幕巨乱亚洲| 国产精品久久久久永久免费观看| 欧美国产激情一区二区三区蜜月| 国产精品美女久久久久久久久久久 | 亚洲成人免费看| 久久99精品一区二区三区三区| 国产一区二区网址| 97se亚洲国产综合自在线不卡| 欧美自拍偷拍午夜视频| 7777女厕盗摄久久久| 久久亚洲综合av| 国产精品久久久久久户外露出| 一区二区在线看| 蜜桃视频在线观看一区| 国产成人精品亚洲日本在线桃色 | 91 com成人网| 国产日韩欧美亚洲| 尤物视频一区二区| 蜜桃av噜噜一区| 99热这里都是精品| 8x8x8国产精品| 中文字幕日韩精品一区| 秋霞成人午夜伦在线观看| 国产精品一区在线观看乱码| 在线免费亚洲电影| 久久亚洲精精品中文字幕早川悠里| 亚洲视频在线一区| 看电视剧不卡顿的网站| 91色|porny| 久久青草国产手机看片福利盒子 | 精品一区二区国语对白| 91小视频免费看| 精品第一国产综合精品aⅴ| 亚洲精品视频在线观看网站| 另类专区欧美蜜桃臀第一页| 99久久er热在这里只有精品15 | 综合欧美亚洲日本| 麻豆极品一区二区三区| 色婷婷综合中文久久一本| 欧美成人一级视频| 一区二区三区在线看| 国产精品99久久久久久久女警| 欧美日韩一级视频| 国产精品成人一区二区三区夜夜夜| 日韩不卡一二三区| 欧美体内she精高潮| 国产精品高潮呻吟| 国产精品亚洲第一| 欧美电影免费观看完整版| 一区二区三区.www| 99久久精品费精品国产一区二区| 久久免费电影网| 久久疯狂做爰流白浆xx| 欧美日韩精品一区二区天天拍小说| 中文字幕永久在线不卡| 国产在线国偷精品产拍免费yy| 69堂精品视频| 日韩二区三区四区| 欧美日韩一级视频| 亚洲综合色丁香婷婷六月图片| 成人性生交大片免费看在线播放| 欧美sm美女调教| 另类成人小视频在线| 欧美一区二区性放荡片| 视频在线观看一区二区三区| 色婷婷av一区二区| 一区二区三区日韩欧美| 91小视频在线免费看| 亚洲欧美另类小说视频| 成人av动漫网站| 亚洲日本一区二区| 欧美网站大全在线观看| 亚洲成人精品一区| 在线播放亚洲一区| 男女性色大片免费观看一区二区 | 99精品久久99久久久久|