欧美在线观看视频网站,亚洲熟妇色自偷自拍另类,啪啪伊人网,中文字幕第13亚洲另类,中文成人久久久久影院免费观看 ,精品人妻人人做人人爽,亚洲a视频

一種基于雙向確認(rèn)的數(shù)據(jù)傳輸系統(tǒng)及方法

文檔序號(hào):8284981閱讀:329來(lái)源:國(guó)知局
一種基于雙向確認(rèn)的數(shù)據(jù)傳輸系統(tǒng)及方法
【技術(shù)領(lǐng)域】
[0001]本發(fā)明屬于航空航天可靠性和數(shù)據(jù)傳輸技術(shù)領(lǐng)域,特別涉及一種基于雙向確認(rèn)的數(shù)據(jù)傳輸系統(tǒng)及方法。
【背景技術(shù)】
[0002]隨著空間技術(shù)的不斷發(fā)展,航天器的功能和結(jié)構(gòu)越來(lái)越復(fù)雜,如此龐雜的系統(tǒng)按照設(shè)計(jì)者預(yù)期方式運(yùn)行的難度越來(lái)越大,隨著系統(tǒng)功能模塊的不斷增多,軟硬件相互耦合的潛在風(fēng)險(xiǎn)不斷增大,因此,各模塊之間可靠實(shí)時(shí)的并行數(shù)據(jù)傳輸對(duì)航天器可靠運(yùn)行就顯得愈加重要。由于現(xiàn)階段航天器智能化的要求,系統(tǒng)運(yùn)行依靠模塊之間定時(shí)方式或指令-響應(yīng)方式完成的數(shù)據(jù)交互,其中數(shù)據(jù)的傳輸可靠性和實(shí)時(shí)性決定系統(tǒng)模塊甚至全系統(tǒng)運(yùn)行的可靠性和安全性。如果數(shù)據(jù)傳輸環(huán)節(jié)出現(xiàn)數(shù)據(jù)丟失、數(shù)據(jù)變異或數(shù)據(jù)延時(shí),輕則中止航天器的一次試驗(yàn)流程,重則影響航天器飛行可靠性和安全性,進(jìn)而造成大量人力、物力和財(cái)力的浪費(fèi)。因此,為航天器數(shù)據(jù)的傳輸建立一條高可靠性數(shù)據(jù)傳輸通路,從根本上保障航天器運(yùn)行可靠性就顯得尤為重要。

【發(fā)明內(nèi)容】

[0003]本發(fā)明的目的在于提供一種的適用于航天器模塊數(shù)據(jù)交互過(guò)程的基于雙向確認(rèn)的數(shù)據(jù)傳輸系統(tǒng)及方法,能夠及時(shí)容錯(cuò)并重新發(fā)起數(shù)據(jù)傳輸,保證航天器運(yùn)行過(guò)程中數(shù)據(jù)傳輸?shù)倪B續(xù)性和完整性,從而保障航天器運(yùn)行的持續(xù)性、可靠性和安全性。
[0004]實(shí)現(xiàn)本發(fā)明目的的技術(shù)方案:一種基于雙向確認(rèn)的數(shù)據(jù)傳輸系統(tǒng),該系統(tǒng)由數(shù)據(jù)發(fā)送模塊及數(shù)據(jù)接收回傳模塊組成,數(shù)據(jù)發(fā)送模塊由數(shù)據(jù)生成模塊、數(shù)據(jù)傳輸模塊、數(shù)據(jù)傳輸3遍重傳模塊及數(shù)據(jù)比對(duì)模塊組成,數(shù)據(jù)接收回傳模塊由數(shù)據(jù)接收模塊、數(shù)據(jù)回傳3遍重傳模塊及數(shù)據(jù)回傳模塊組成;數(shù)據(jù)生成模塊生成數(shù)據(jù),并將生成的數(shù)據(jù)傳輸給數(shù)據(jù)傳輸模塊;數(shù)據(jù)傳輸模塊等待接收數(shù)據(jù)接收模塊的數(shù)據(jù)接收請(qǐng)求,數(shù)據(jù)接收模塊通過(guò)數(shù)據(jù)傳輸3遍重傳模塊向數(shù)據(jù)傳輸模塊發(fā)送數(shù)據(jù)請(qǐng)求;數(shù)據(jù)傳輸模塊將數(shù)據(jù)進(jìn)行封裝,并將數(shù)據(jù)傳輸?shù)綌?shù)據(jù)接收模塊;數(shù)據(jù)接收模塊對(duì)數(shù)據(jù)進(jìn)行解包處理,并對(duì)數(shù)據(jù)完整性進(jìn)行判斷:若接收數(shù)據(jù)完整,則由數(shù)據(jù)回傳模塊發(fā)起數(shù)據(jù)回傳;若接收數(shù)據(jù)不完整,則數(shù)據(jù)接收模塊向數(shù)據(jù)發(fā)送模塊發(fā)起第二次數(shù)據(jù)請(qǐng)求,重新接收數(shù)據(jù);數(shù)據(jù)回傳模塊將接收完整的數(shù)據(jù)回傳至數(shù)據(jù)發(fā)送模塊的數(shù)據(jù)比對(duì)模塊;數(shù)據(jù)比對(duì)模塊對(duì)數(shù)據(jù)回傳模塊回傳的數(shù)據(jù)進(jìn)行解包、存儲(chǔ)處理,并將回傳數(shù)據(jù)與數(shù)據(jù)傳輸模塊發(fā)送來(lái)的數(shù)據(jù)進(jìn)行逐字節(jié)比對(duì),比對(duì)完成并向數(shù)據(jù)回傳模塊發(fā)送比對(duì)結(jié)果;若數(shù)據(jù)回傳模塊未收到比對(duì)結(jié)果,則數(shù)據(jù)回傳模塊重新向數(shù)據(jù)比對(duì)模塊回傳數(shù)據(jù)。
[0005]所述的數(shù)據(jù)傳輸3遍重傳模塊對(duì)消息進(jìn)行最多三次重發(fā),若三次數(shù)據(jù)傳輸結(jié)束前,接收到數(shù)據(jù)接收模塊的數(shù)據(jù)接收確認(rèn)信息,則返回3遍重傳成功標(biāo)志字,則數(shù)據(jù)傳輸成功;若三次傳輸結(jié)束均未收到數(shù)據(jù)接收模塊的數(shù)據(jù)接收確認(rèn)信息,則返回3遍重傳失敗標(biāo)志字,則數(shù)據(jù)接收模塊重新向數(shù)據(jù)傳輸模塊發(fā)送數(shù)據(jù)請(qǐng)求。
[0006]所述的數(shù)據(jù)回傳3遍重傳模塊對(duì)消息進(jìn)行最多三次重發(fā),若三次回傳結(jié)束前,接收到比對(duì)結(jié)果,則返回3遍重傳成功標(biāo)志字,則數(shù)據(jù)回傳成功;若三次回傳結(jié)束均未收到比對(duì)結(jié)果,則返回3遍重傳失敗標(biāo)志字,則數(shù)據(jù)回傳模塊重新向數(shù)據(jù)比對(duì)模塊回傳數(shù)據(jù)。
[0007]—種基于雙向確認(rèn)的數(shù)據(jù)傳輸方法,該方法包括以下步驟:
[0008]( I)數(shù)據(jù)生成模塊將生成的數(shù)據(jù)傳輸給數(shù)據(jù)傳輸模塊;
[0009](2)數(shù)據(jù)傳輸模塊與數(shù)據(jù)發(fā)送模塊之間進(jìn)行數(shù)據(jù)發(fā)送;
[0010](3)數(shù)據(jù)接收回傳模塊進(jìn)行數(shù)據(jù)接收回傳;
[0011](4)數(shù)據(jù)比對(duì)模塊將數(shù)據(jù)傳輸模塊傳輸?shù)臄?shù)據(jù)和數(shù)據(jù)回傳模塊回傳的數(shù)據(jù)進(jìn)行比對(duì)。
[0012]所述的步驟(2)中數(shù)據(jù)發(fā)送的具體步驟如下:
[0013](2.1)數(shù)據(jù)傳輸模塊將數(shù)據(jù)生成模塊傳輸?shù)臄?shù)據(jù)進(jìn)行解算,解算完畢進(jìn)行數(shù)據(jù)封裝
[0014](2.2)數(shù)據(jù)傳輸模塊等待數(shù)據(jù)接收模塊的數(shù)據(jù)接收請(qǐng)求
[0015](2.3)數(shù)據(jù)傳輸模塊接收到數(shù)據(jù)接收模塊的數(shù)據(jù)接收請(qǐng)求后,發(fā)送請(qǐng)求確認(rèn)信息,并通過(guò)數(shù)據(jù)傳輸3遍重傳模塊向數(shù)據(jù)接收模塊發(fā)送上述步驟(2.1)中已封裝的數(shù)據(jù)
[0016]數(shù)據(jù)傳輸模塊內(nèi)向數(shù)據(jù)接收模塊發(fā)送請(qǐng)求確認(rèn)信息,數(shù)據(jù)傳輸模塊每發(fā)送一幀數(shù)據(jù),等待數(shù)據(jù)接收模塊返回接收確認(rèn)信息;若數(shù)據(jù)傳輸模塊收到確認(rèn)信息,則發(fā)送下一幀數(shù)據(jù),直至數(shù)據(jù)發(fā)送完畢;
[0017](2.4)若數(shù)據(jù)傳輸3遍重傳返回傳輸失敗標(biāo)志字,則認(rèn)為數(shù)據(jù)傳輸模塊與數(shù)據(jù)接收模塊斷開鏈接,終止傳輸流程;數(shù)據(jù)傳輸模塊等待重新接收數(shù)據(jù)接收模塊發(fā)送的請(qǐng)求信息
[0018](2.5)若數(shù)據(jù)傳輸3遍重傳返回傳輸成功標(biāo)志字且數(shù)據(jù)傳輸完畢后,數(shù)據(jù)傳輸模塊等待數(shù)據(jù)接收模塊原樣返回的數(shù)據(jù),每接收一幀數(shù)據(jù),向數(shù)據(jù)接收模塊發(fā)送接收確認(rèn)信息
[0019](2.5.1)若數(shù)據(jù)接收模塊未收到完整數(shù)據(jù),則終止發(fā)送流程,等待重新接收數(shù)據(jù)接收模塊發(fā)送的數(shù)據(jù)請(qǐng)求信息;
[0020](2.5.2)若數(shù)據(jù)接收模塊接收完整數(shù)據(jù),則通過(guò)數(shù)據(jù)比對(duì)模塊對(duì)數(shù)據(jù)傳輸模塊發(fā)送來(lái)的數(shù)據(jù)和數(shù)據(jù)回傳模塊返回的數(shù)據(jù)進(jìn)行比對(duì),并數(shù)據(jù)回傳模塊發(fā)送比對(duì)結(jié)果。
[0021]所述的步驟(3)中數(shù)據(jù)接收回傳的具體步驟如下:
[0022](3.1)數(shù)據(jù)接收模塊通過(guò)數(shù)據(jù)傳輸3遍重傳模塊向數(shù)據(jù)傳輸模塊發(fā)送數(shù)據(jù)請(qǐng)求
[0023](3.1.1)若數(shù)據(jù)傳輸3遍重傳模塊返回傳輸成功標(biāo)志字,則開始數(shù)據(jù)接收模塊接收數(shù)據(jù)傳輸模塊發(fā)送來(lái)的數(shù)據(jù)直至接收完畢;
[0024](3.1.2)若數(shù)據(jù)傳輸3遍重傳模塊返回傳輸失敗標(biāo)志字,則認(rèn)為數(shù)據(jù)接收模塊與數(shù)據(jù)傳輸模塊通信中斷,終止數(shù)據(jù)發(fā)送流程;
[0025](3.2)數(shù)據(jù)接收模塊接收到格式正確的每一幀數(shù)據(jù)后立即通過(guò)數(shù)據(jù)回傳模塊向數(shù)據(jù)比對(duì)模塊返回?cái)?shù)據(jù)接收確認(rèn)幀,若數(shù)據(jù)接收模塊在數(shù)據(jù)接收過(guò)程中出現(xiàn)數(shù)據(jù)丟失或格式錯(cuò)誤,則停止發(fā)送接收確認(rèn)幀
[0026](3.2.1)若數(shù)據(jù)回傳模塊接收到完整數(shù)據(jù),按照協(xié)議封裝數(shù)據(jù)后以幀為單位通過(guò)數(shù)據(jù)回傳3遍重傳模塊向數(shù)據(jù)比對(duì)模塊返回?cái)?shù)據(jù);數(shù)據(jù)回傳模塊每返回一幀數(shù)據(jù),若數(shù)據(jù)回傳3遍重傳模塊返回傳輸成功標(biāo)志字,則發(fā)送下一幀直至數(shù)據(jù)完全返回;若數(shù)據(jù)回傳3遍重傳模塊返回傳輸失敗標(biāo)志字,則認(rèn)為數(shù)據(jù)回傳模塊與數(shù)據(jù)比對(duì)模塊通信中斷,終止數(shù)據(jù)回傳流程;
[0027](3.2.2)若數(shù)據(jù)回傳模塊未接收到完整數(shù)據(jù),則認(rèn)為與數(shù)據(jù)比對(duì)模塊通信中斷,終止數(shù)據(jù)回傳流程;
[0028](3.3)數(shù)據(jù)回傳模塊向數(shù)據(jù)比對(duì)模塊回傳數(shù)據(jù)完畢后,數(shù)據(jù)回傳模塊等待接收數(shù)據(jù)比對(duì)結(jié)果信息
[0029](3.3.1)若數(shù)據(jù)回傳模塊收到數(shù)據(jù)比對(duì)模塊發(fā)送的比對(duì)結(jié)果信息,則返回比對(duì)結(jié)果確認(rèn)巾貞;
[0030](3.3.2)若數(shù)據(jù)回傳模塊未收到數(shù)據(jù)比對(duì)模塊發(fā)送的比對(duì)結(jié)果,則認(rèn)為數(shù)據(jù)回傳模塊與數(shù)據(jù)比對(duì)模塊通信中斷,終止數(shù)據(jù)回傳流程。
[0031]所述的步驟(4)中數(shù)據(jù)比對(duì)的具體步驟如下:
[0032](4.1)數(shù)據(jù)比對(duì)模塊分別打開數(shù)據(jù)傳輸模塊的數(shù)據(jù)記錄文件和數(shù)據(jù)回傳模塊返回的數(shù)據(jù)記錄文件,并分別讀取一字節(jié)數(shù)據(jù);
[0033](4.2)判斷讀取字節(jié)的數(shù)據(jù)內(nèi)容是否均為空
[0034](4.2.1)若讀取字節(jié)的數(shù)據(jù)內(nèi)容均為空,表示文件讀取完畢,且比對(duì)未出現(xiàn)錯(cuò)誤,則結(jié)束比對(duì)流程,返回比對(duì)正確消息字;
[0035](4.2.2)若讀取字節(jié)的數(shù)據(jù)內(nèi)容不全為空,判斷數(shù)據(jù)傳輸模塊和數(shù)據(jù)回傳模讀取字節(jié)的數(shù)據(jù)內(nèi)容是否一致;若數(shù)據(jù)內(nèi)容一致,則從記錄文件中讀取下一字節(jié)數(shù)據(jù),準(zhǔn)備比對(duì);若數(shù)據(jù)內(nèi)容不一致,表示數(shù)據(jù)回傳過(guò)程有誤,則結(jié)束比對(duì)流程,返回比對(duì)錯(cuò)誤消息字。
[0036]本發(fā)明的有益技術(shù)效果在于:(I)通過(guò)本發(fā)明提供的適用于航天器模塊間數(shù)據(jù)交互過(guò)程的基于雙向確認(rèn)的數(shù)據(jù)傳輸系統(tǒng)及方法,數(shù)據(jù)通過(guò)請(qǐng)求-數(shù)據(jù)傳輸-確認(rèn)的流程進(jìn)行傳輸,當(dāng)傳輸環(huán)節(jié)出現(xiàn)故障,造成數(shù)據(jù)的丟失、變異或延時(shí),系統(tǒng)可以對(duì)此類故障進(jìn)行及時(shí)處理,根據(jù)當(dāng)前傳輸狀態(tài),重新發(fā)起指令或數(shù)據(jù)的傳輸,保證數(shù)據(jù)傳輸及航天器運(yùn)行的持續(xù)性,避免數(shù)據(jù)傳輸過(guò)程中的偶發(fā)故障引起的試驗(yàn)流程中止或運(yùn)行故障。(2)當(dāng)數(shù)據(jù)傳輸?shù)陌l(fā)送方或接收方由于通信故障未能在規(guī)定時(shí)間內(nèi)收到對(duì)方響應(yīng)時(shí),會(huì)及時(shí)發(fā)起數(shù)據(jù)重傳,避免偶發(fā)故障引起的通信中斷,從而保證航天器模塊間數(shù)據(jù)傳輸?shù)某掷m(xù)性和數(shù)據(jù)完整性。
(3)數(shù)據(jù)接收方在接收完整數(shù)據(jù)后,將
當(dāng)前第1頁(yè)1 2 3 
網(wǎng)友詢問(wèn)留言 已有0條留言
  • 還沒(méi)有人留言評(píng)論。精彩留言會(huì)獲得點(diǎn)贊!
1
阿勒泰市| 内乡县| 鲁甸县| 西乡县| 浠水县| 芷江| 资中县| 精河县| 金湖县| 余姚市| 桐庐县| 丹棱县| 黑河市| 大同市| 开远市| 印江| 景东| 朝阳县| 肃宁县| 凤翔县| 临沭县| 高台县| 阜阳市| 商洛市| 古田县| 晋城| 巴彦淖尔市| 天台县| 明星| 枞阳县| 延安市| 电白县| 康乐县| 门头沟区| 崇左市| 河池市| 丰城市| 南开区| 三门峡市| 新田县| 得荣县|