【正文】
) 數(shù)據(jù) : 用戶要傳輸?shù)臄?shù)據(jù),為提高通信的可靠性,建議對(duì)數(shù)據(jù)進(jìn)行曼徹斯特編碼或采用 DPCM方式發(fā)送,并對(duì)數(shù)據(jù)進(jìn)行校驗(yàn)。在采用曼徹斯特編碼或 DPCM 方式傳輸中,數(shù)據(jù)長(zhǎng)度一般不要超過 256字節(jié) ; 反之 , 不要超過 64 字節(jié)。但是在無(wú)線可視對(duì)講門鈴系統(tǒng)里,數(shù)字語(yǔ)音無(wú)線發(fā)射模塊的最高傳輸數(shù)據(jù)速率為 kbps,但是語(yǔ)音從 A/D 芯片出來(lái)的數(shù)據(jù)就有 64 kbps,由于受到 CPLD 容量以及發(fā)射天線帶寬兩方面因素的制約,我們沒有采取復(fù)雜的編碼處理 。 其中 0x99為前導(dǎo)碼,用于初始位同步和接收狀態(tài)機(jī)復(fù)位, 0xCCCCCC為數(shù)據(jù)幀同步碼,幀同步碼后面八位用來(lái)傳控制碼。無(wú)線可視對(duì)講門鈴系統(tǒng)中的控制碼個(gè)數(shù)不多,室內(nèi)到室外有 3個(gè),即主動(dòng)監(jiān)視、開鎖、摘掛機(jī)。 室外到室內(nèi)的控制信號(hào)只有一個(gè)呼叫按鍵,所以我們?cè)O(shè)計(jì)時(shí) , 將幀同步碼后的一個(gè)字節(jié)留給傳輸控制信號(hào),在控制信號(hào)后面再緊跟以字節(jié)為單位的語(yǔ)音數(shù)據(jù)。 軟件采用自頂向下設(shè)計(jì)方法 ,一共由五個(gè)文件組成:分別是頂層文件、發(fā)送模塊、接受模塊、 數(shù)字鎖相環(huán)和幀狀態(tài)機(jī)。頂層文件的系統(tǒng)時(shí)鐘為 2048 kHz。 具有與語(yǔ)音編解碼芯片 MC145481 的接口,包含發(fā)送和接收兩個(gè)子功能模塊 L其中發(fā)送模塊是為了發(fā)送數(shù)據(jù),在原始數(shù)據(jù)前添加幀頭,語(yǔ)音通信的幀頭為 0x99, 0xCC, 0xCC,0xCC,后面跟控制信號(hào)字節(jié),再跟以字節(jié)為單位的語(yǔ)音數(shù)據(jù) L 接收模塊是為了檢測(cè)控制和語(yǔ)音信號(hào),相對(duì)復(fù)雜一些,包括數(shù)字鎖相環(huán)和幀狀態(tài)機(jī)兩狀態(tài),如果檢測(cè)到0xCC,由狀態(tài) 0,進(jìn)入狀態(tài) 1; 如果下一個(gè)字節(jié)也是 0xCC,由狀態(tài) 1,進(jìn)入狀態(tài) 2,否則返回狀態(tài) 0。 如果第 3個(gè)字節(jié)還是 0xCC,由 狀態(tài) 2 進(jìn)入狀態(tài) 3,進(jìn)入同步態(tài),否則返回狀態(tài) 0L其中數(shù)字鎖相環(huán)是進(jìn)行位同步。 由于語(yǔ)音信號(hào)一般都比較微弱 ,根據(jù) M u/A 律的編碼規(guī)律,有可能會(huì)出現(xiàn)長(zhǎng)連“1”的情況,從而使得接收端無(wú)法提取正確的位同步信息,所以我們對(duì)語(yǔ)音數(shù)據(jù)進(jìn)行了簡(jiǎn)單的處理,若連 “1”個(gè)數(shù)大于 或 等于 8,則第八個(gè) 1 進(jìn)行反向,即 “1”變?yōu)?“0”。由于一個(gè)采樣點(diǎn)的量化數(shù)據(jù)最后一位權(quán)值最小,所以這樣處理不會(huì)帶來(lái)什么影響 。 結(jié)束語(yǔ) 本文基于無(wú)線可視對(duì)講門鈴系統(tǒng) ,對(duì)其雙向語(yǔ)音通信進(jìn)行了設(shè)計(jì)和實(shí)現(xiàn),現(xiàn)已經(jīng)通過測(cè)試,空曠距離達(dá) 60m ,有障礙物時(shí) 30m ,語(yǔ)音清晰 。 測(cè)試結(jié)果表明本設(shè)計(jì)方案具有性能穩(wěn)定可靠、語(yǔ)音清晰、設(shè)計(jì)簡(jiǎn)單等特點(diǎn),具有實(shí)用價(jià)值 L當(dāng)然本文提出的方案在性能上還有待改進(jìn),接下來(lái)我們要做的工作是進(jìn)行圖像信息的數(shù)字化實(shí)時(shí)傳輸,從而實(shí)現(xiàn)全數(shù)字無(wú)線可視對(duì)講門鈴系統(tǒng) 。 附件 2:外文原文(復(fù)印件) Visual Round wireless doorbell in the voice munications system design and implementation First: Introduction Microelectronics technology, wireless technology and work technology for the development of modern people living environment of security, facilitate the provision of a strong technical support, This presents a smart area for the safety of the new wireless doorbell system visualization Round, On the system39。s overall structure and working principle and the key technology fullduplex digital voice munications for the design and realization of, Analysis of the digital transmission of voice processing, a frame structure on the design and realization of the CPLD in a wireless doorbell system visualization Roundframe synchronization . Finally, the prototype system by the field test, stable performance, reliable, clear voice, has good practical value. The development of electronic, wireless and work technology provides the strong technical support for security and convenience of modern residential quarters. In this paper, we introduce a new style wireless visual interconversation doorbell system, which is used in the intelligent residential quarters. Then explains the structure of this system, and it’s fullduplex digital voice munication is designed and implemented. We emphasize the digital voice process in transmission, and discuss the design of the structure of frame, and the frame synchronization realized in CPLD. Finally, the test result shows