外文文獻及翻譯-藍牙技術在工業(yè)監(jiān)控系統(tǒng)中的應用_第1頁
已閱讀1頁,還剩8頁未讀 繼續(xù)免費閱讀

下載本文檔

版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領

文檔簡介

1、<p>  藍牙技術在工業(yè)監(jiān)控系統(tǒng)中的應用</p><p>  摘要:介紹了一種短距離無線通信技術——藍牙在工業(yè)控制系統(tǒng)的應用實例。利用新華龍公司的C8051F020和第一代藍牙模塊芯片BCM-05,設計一個藍牙空氣粉塵檢測器,使之與藍牙接入設備搭建一套用于工業(yè)控制領域的的空氣粉塵檢測系統(tǒng),同時給出了該藍牙粉塵檢測器的硬件設計和系統(tǒng)的軟件框架。</p><p>  關鍵詞:藍牙,

2、粉塵傳感器,C8051F020</p><p>  A pplication of Bluetooth Technology inIndustrial Control System</p><p>  Abstract:Anapplication example of Bluetooth is proposedin the industrial control system.A Bluet

3、ooth air dustdetectoris designed by using the C8051F020 and the Bluetooth chip BCM-05. It can be used to detect the dustin the air with Bluetooth access device.The hardware and the software designs of the embedded device

4、 are proposed.</p><p>  Keywords:Bluetooth,dustsensor,C8051F020</p><p><b>  引言</b></p><p>  目前,藍牙技術已臻于完善。在局部范圍內,藍牙通信具有可靠性、安全性及容錯能力強等優(yōu)點。這些優(yōu)點使得藍牙技術在民用市場上的應用也越來越廣泛,手機周邊配件就是

5、它的一個典型且成熟的應用。在惡劣環(huán)境下,工業(yè)現(xiàn)場設備具有布線難及維修不方便等諸多缺點,把藍牙技術應用于這些工業(yè)現(xiàn)場環(huán)境中將可以發(fā)揮藍牙通信的優(yōu)勢而解決環(huán)境惡劣情況下的諸多不便。因此,近年來越來越多的藍牙設備也開始應用于工業(yè)無線領域。本文設計的藍牙粉塵檢測器就是藍牙技術在工業(yè)無線檢測系統(tǒng)中的一個應用實例。</p><p>  1 芯片的選擇和特點簡介</p><p>  目前,嵌入式系統(tǒng)芯片

6、眾多,主要有51系列、ARM系列及DSP系列。后兩者現(xiàn)在越來越有取代前者的趨勢,但考慮到作者學校主要在51系列芯片上教學,做過開發(fā),且目前C51系列仍有不少市場,因此本文芯片選用C51系列。新華龍公司出產的C8051F020是C51系列片子中用得比較廣的一款,此芯片主要特點有:高速、流水線結構的8051、兼容的CIP-51、內核(25MIPS);全速、非侵入式(不占用片內資源)的在系統(tǒng)調試接口(片內);64KB可在系統(tǒng)編程的FLASH存

7、儲器,這對一般應用而言,容量基本足夠;4352(4KB+256)字節(jié)的片內RAM;可尋址64KB地址空間的外部數(shù)據(jù)存儲器接口;接口豐富,具有硬件實現(xiàn)的SPI、SMBus/I2C和兩個UART串行接口;5個通用的16位定時器;片內看門狗定時器、VDD監(jiān)視器和溫度傳感器;同</p><p>  時內部集成的轉換器也具有一定精度,處理器內部自帶兩個12位的D/A轉換器和一個8位的A/D轉換器,8位的A/D有8個外部的輸

8、入端,最大的可編程采樣速率為500ksps;具有6個捕捉/比較模塊的可編程計數(shù)器/定時器陣列。</p><p>  2 系統(tǒng)硬件設計[1-2]</p><p>  2.1 系統(tǒng)硬件結構</p><p>  本系統(tǒng)硬件結構比較簡單,主要由電源部分、單片機拓展部分及串行通信接口部分(包括傳感器和藍牙部分)組成,如圖1所示。</p><p>  圖

9、1 設備的硬件結構示意圖</p><p>  2.2 電源模塊部分設計</p><p>  本文在設計該設備的時候,考慮到藍牙接入設備的可移動性,電源部分采用有源供電和電池供電兩種方式,電壓適配器采用普通的直流供電輸入范圍在3.7~7V之間,電池則采用普通的Li電池。因此本文采用了MAX1555來實現(xiàn)電池充電功能,該芯片具有兩種充電模式,這里用的是交流適配器供電模式,該芯片不管在有沒有電池

10、的情況下都能提供標準的4.2V電壓。同時采用MAX8881芯片將4.2V電壓轉換為標準的3.3V,采用MAX1615芯片將4.2V電壓轉換為標準的5V,從而給芯片供電;MAX8881及MAX1615給負載提供的總共是230mA的電流,而交流適配器充電電流在350mA左右,系統(tǒng)平均負載電流小于充電電流,電池在使用的同時仍然會被充電。為了增強設備的電源抗干擾能力,設計時在每級電源的前后級都加上濾波電路來減少外部干擾和前級電源的影響。電路設計

11、如圖2所示。</p><p>  圖2 電源模塊電路原理圖</p><p>  2.3 單片機拓展部分電路設計</p><p>  晶振時鐘電路,本文設計的是由外部電路提供,采用晶體振蕩器和兩個負載電容,電容的大小取決于晶體的頻率和輸入阻抗等參數(shù)。JTAG接口電路:C8051F020在進行調試或下</p><p>  載時支持在線操作,所用的

12、下載調試口為通用的10針標準JTAG接口,此接口可以與電腦中的并性數(shù)據(jù)接口連接通過JTAG和并口建立測試設備與電腦中與開發(fā)環(huán)境的連接。JTAG口在線調試支持斷點調試,支持寄存器和內存值顯示等一系列先進的調試方法,大大方便了用戶的軟件調試和代碼下載工作。在進行JTAG硬件原理圖設計的時候,設計方法按照通用的JTAG連接方法,其中TDI,TDO為JTAG的數(shù)據(jù)輸入、輸出線,TCK為時鐘脈沖端口,TMS為模式選擇端口。傳感器部分設計:本文采用

13、的傳感器是韓國SYHITECH公司的DSM501粉塵傳感器。該產品的主要特點有:采用粒子計數(shù)原理;靈敏度高,可檢測直徑1?m以上的粉塵粒子;檢測模式多樣,檢測粒子最小直徑的大小可調;內置加熱器可實現(xiàn)自動吸入空氣;尺寸小,重量輕,易安裝等。值得說明的是,器件管腳中,輸出腳Vout2為普通輸出腳位,靈敏度已預設定,最小粒子檢出能力為1?m;輸出腳Vout1為可調輸出腳位,靈敏度可通過控制腳來調整,默認為Vout2的2.5倍,即最小粒子檢出能

14、力為2.5?m;控制腳:通過在此腳與GND之間加一個電阻可調整Vout1的最小粒子檢出水平,調整</p><p>  2.4 藍牙電路設計</p><p>  藍牙接入設備選用以Bluecore02為內核的藍牙芯片,型號:BCM-05,此藍牙芯片體積小,功耗低,滿足藍牙1.1規(guī)范,提供了多種通信接口,如USB口、UART口、I2C口以及語音接口。其主要參數(shù)為:(1)通用串口(UART)波特

15、率為38400bps;(2)工作電壓為3.3V。</p><p>  在電路設計時,C8051F020微處理器的串行口與藍牙芯片的UART口相連接,通過串口實現(xiàn)藍牙模塊的初始化及數(shù)據(jù)通信。對于藍牙電路部分,需要特別注意的是對藍牙芯片的供電電壓不能正負極顛倒,否則容易燒毀藍牙芯片。</p><p>  3 驅動設計及軟件架構[2-4]</p><p>  該設備是通過

16、UART口來開發(fā)藍牙無線通信的相關應用,而UART口提供到HCI傳輸層的物理連接是高層與物理模塊進行通信的通道,所以藍牙接口驅動實際上就是解決藍牙串行接口(UART)驅動問題。UART口驅動程序主要包含C8051F020微處理器的串口(與藍牙的UART相接)初始化、藍牙通信參數(shù)設定、HCI指令封裝、數(shù)據(jù)信息處理等部分,主要函數(shù)功能描述如下:</p><p>  (1)串行口初始化函數(shù),主要設定其串口波特率為38,

17、400bps,數(shù)據(jù)格式為一個起始位、8個數(shù)據(jù)位、1個停止位,同時對串口作相應的處理;</p><p>  (2)藍牙數(shù)據(jù)參數(shù)設定函數(shù),此函數(shù)主要完成藍牙模塊初始化以及藍牙數(shù)據(jù)格式的打包;</p><p>  (3)數(shù)據(jù)信息處理函數(shù),此函數(shù)主要實現(xiàn)藍牙初始化時返回數(shù)據(jù)的處理,通過判斷這些返回的信息來確定藍牙模塊的狀態(tài);</p><p>  (4)串口讀寫數(shù)據(jù)函數(shù),此函

18、數(shù)就是串口發(fā)送和接收數(shù)據(jù)的實現(xiàn)。粉塵檢測器通過普通IO口和CPU進行數(shù)據(jù)交換。</p><p><b>  相關的軟件代碼為</b></p><p>  voidmain()</p><p><b>  {</b></p><p>  init-uart();//初始化uart接口,驅動藍牙模塊&l

19、t;/p><p>  init-device();//初始化粉塵檢測器,周期性獲取</p><p><b>  設備參數(shù)</b></p><p>  task-AP-Receive();//接收來自藍牙接入點的數(shù)</p><p><b>  據(jù)并更新指令</b></p><p>

20、  task-device();//獲取粉塵檢測器的設備參數(shù)</p><p>  task-AP-Send();//發(fā)送采集的數(shù)據(jù)給藍牙接入</p><p><b>  點</b></p><p><b>  }</b></p><p><b>  4 結束語</b></

21、p><p>  在工業(yè)監(jiān)控系統(tǒng)中,因為無線網絡可以提供更大的靈活性、流動性,省去了花在綜合布線上的費用和精力,而且它更適應于工業(yè)現(xiàn)場環(huán)境下的通訊圖3 藍牙粉塵檢測器工作流程圖</p><p>  特點,同時隨著無線網絡技術的進一步發(fā)展,也必將大大促進藍牙在工業(yè)監(jiān)控系統(tǒng)中的應用進程。本設計采用新華龍的C8051F020單片機開發(fā)了符合藍牙標準的粉塵檢測設備,在實驗中具有良好的實際效果。該設備根據(jù)

22、實際要求還可以將藍牙模塊替換為符合串口接口的802.11b模塊和ZigBee模塊,實現(xiàn)其他工業(yè)監(jiān)控領域粉塵檢測設備的硬件設計。因此,該設計的實現(xiàn)在家庭自動化(網絡家電,家庭各種電器控制),智能大廈及樓宇控制,工業(yè)現(xiàn)場設備監(jiān)控等領域實現(xiàn)通信具有一定應用價值。</p><p><b>  參考文獻</b></p><p>  [1] 桑楠.嵌入式系統(tǒng)原理及應用開發(fā)技術[M

23、].北京:北京航天航空大學出版社,2002.</p><p>  [2] 潘琢金譯.C8051F020數(shù)據(jù)手冊[M].北京:北京航天航空大學出版社,2004.</p><p>  [3] 譚浩強.C程序設計[M].3版.北京:清華大學出版社,2005.</p><p>  [4] 許鐵軍.嵌入式硬件設計[M].北京:中國電力出版社,2007.</p>

24、<p>  Bluetooth technology application in industrial control system</p><p>  Abstract:this paper introduces a short-range wireless communication technology, bluetooth in industrial control system applic

25、ation. Using the new hualong company C8051F020 and the first generation of bluetooth module chip BCM - 05, design a bluetooth air and dust detector, bluetooth access devices used to build a set of industrial control area

26、 ,The air dust detection system of the bluetooth is given, and the hardware design and dust detector of software system framework.</p><p>  Keywords: Bluetooth,Dust sensor,C8051F020</p><p>  Lea

27、d speech</p><p>  At present, bluetooth technology has greatly improved. In the local scope, blueTooth communication with reliability, safety and fault tolerant ability, etc. These advantages make bluetooth

28、in civil market application is also more To the broader, cell phone peripheral accessories is a typical and mature Application. In harsh environment, industrial site equipment has the wiring is difficult And maintenance

29、convenience, the disadvantages such as bluetooth technology applied to these Industrial fie</p><p>  1 chip choice and characteristic introduction </p><p>  At present, the embedded system chip

30、is numerous, mainly has 51 series, ARM series and DSP series. They now more and more replaced Former trend, but considering the author school mainly in 51 series core Slice the teaching, have done development, and at pre

31、sent there are still many city C51 series field, and therefore this paper chip choose C51 series. New hualong company produce C8051F020 C51 series is the film with a is wider A paragraph, the chip main characteristics ar

32、e: high speed, assembly</p><p>  2 the system hardware design [1-2]</p><p>  2.1 system hardware structure </p><p>  This system hardware structure is simple, mainly by power suppl

33、y parts, SCM development section and serial communication interface part (including sensors And bluetooth part) composition, as shown in figure 1 below. </p><p>  2.2 power supply module parts design </p&

34、gt;<p>  Based on the design of the equipment, considering the bluetooth access asher Prepare the mobility of the active power supply, power part adopts and batteries Two ways and voltage adapter using common dc s

35、upply input is the norm Around 3.7 ~ 7V between, battery is used ordinary Li batteries. because This paper USES MAX1555 to realize the battery function, this Chip has two kinds of charging mode, here is used for ac adapt

36、er electric mode, the chip no matter the circumstances in any battery can ca</p><p>  2.3 microcontroller expand part circuit design </p><p>  Crystals, this article designs a clock circuit by a

37、n external circuit is provided, Adopt crystal oscillator and two load capacitance, capacitance size opinion In crystal frequency and input impedance parameters. C8051F020 JTAG interface circuit: debugging or in Support o

38、nline operation, carrying the download used for general 10 debugging mouth Needle JTAG interface, the interface standard with in the computer and sex can be counted According to interface connection through establishing

39、testing e</p><p>  2.4 bluetooth circuit design </p><p>  Bluetooth access to Bluecore02 selection of equipment for the kernel's blue Tooth chip, type: this - 05 BCM bluetooth chip small vol

40、ume, power consumption Low, meet bluetooth 1.1 specification, offers a variety of communication interface, such as </p><p>  USB port, UART and voice mouth, the I2C mouth the interface. Its main Parameters i

41、s: (1) universal serial (UART) baud rate for 38400 BPS; (2) working voltage is 3.3 V. In the circuit design, the serial port C8051F020 microprocessor And bluetooth chip is connected to the UART through serial mouth reali

42、ze blueTooth module initialization and data communications. For bluetooth circuit part, Need special attention to bluetooth chip is the power supply voltage not positive Negative topsy-turvy, otherw</p><p> 

43、 3 drive design and software architecture [2-4] </p><p>  This equipment is developed by UART bluetooth wireless communication mouth Related application, and provide to HCI mouth UART transport layer things

44、Richard connection with physical module is top communication channels, so blueTooth interface drive is actually solve bluetooth serial interface (UART) drive problems. UART driver includes mouth C8051F020 microprocessor

45、with the UART serial port (bluetooth in reality Connect) initialization, bluetooth communication parameter setting, HCI instruction</p><p>  (1) a serial port initialization function, main set the serial por

46、t</p><p>  Rate for 38,400 BPS, data format for a starting position, eight data A, one stop bits, and makes the corresponding processing in serial;</p><p>  (2) bluetooth data parameter setting

47、function, the function mainly completes Bluetooth module initialization and the bluetooth data format of packing;</p><p>  (3) data information processing function, the function mainly realizes bluetooth Ini

48、tialize return data processing, by judging these returned letter Interest to determine the state of bluetooth module;</p><p>  (4) serial reading and writing data function, the function is a serial port to s

49、end and receiving data realization. The dust detector software flowchart of fig.03 shows, dust</p><p>  detector by ordinary IO mouth and CPU for data exchange.</p><p>  Relevant software code f

50、or</p><p>  Voidmain ()</p><p><b>  {</b></p><p>  Init - uart (); / / initialization uart interface, drive bluetooth module</p><p>  Init - device (); / /

51、initialization dust detector, periodic acquisition</p><p>  Equipment parameters</p><p>  Time - AP - Receive (); / / receiving the number from bluetooth access point</p><p>  Accor

52、ding to and updates the instructions</p><p>  Time - device (); / / gain. The parameters of the equipment of dust detector</p><p>  Time - AP - Send (); / / send the data to bluetooth access<

53、/p><p><b>  point</b></p><p><b>  }</b></p><p>  4 conclusion</p><p>  In industrial control systems, because the wireless network can provide more

54、 big flexibility, liquidity, tell the flowers of the integrated wiring fee use and energy, and it is more suitable for industrial site environment of communication Figure 3 bluetooth dust detector work flowchart features

55、, at the same time as the further development of wireless network technology, bluetooth will greatly promote the application in industrial monitoring system process. this design of C8051F020 SCM adopt new</p><

56、p>  References: </p><p>  [1]. SangNan principle and application of the embedded system developing technology [M].beijing: north Beijing aerospace university press, 2002. </p><p>  [2]. JinYi

57、 PanZhuo C8051F020 data manual [M].beijing: Beijing aerospace Aviation university press, 2004. </p><p>  [3]. TanHaoJiang C program design 3 edition [j]. Beijing: tsinghua university press Clubs, 2005. </

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
  • 4. 未經權益所有人同意不得將文件中的內容挪作商業(yè)或盈利用途。
  • 5. 眾賞文庫僅提供信息存儲空間,僅對用戶上傳內容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
  • 6. 下載文件中如有侵權或不適當內容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論