1 / 25

超聲波雷達

超聲波雷達. 當中紅色 =5V; 藍色 =Gnd; 黃色 = 信號. CODE. 成功畫面. 藍 芽 實 驗 板. 藍芽實驗版操作介紹. 所需軟體 : BlueLab28 超級終端機 Cygwin Java 2 Runtime Environment. BlueLab28. 其中要把 CSRSDKSTACK 的值 改成 C:BlueLab28firmwarefcomm_kato_bcsp ,此為燒錄軟體所要用到的* .xpv 檔. BlueLab28 安裝好之後, 環 境變數會新增兩個. BlueLab28.

Download Presentation

超聲波雷達

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 超聲波雷達

  2. 當中紅色=5V; 藍色=Gnd; 黃色=信號

  3. CODE

  4. 成功畫面

  5. 藍 芽 實 驗 板

  6. 藍芽實驗版操作介紹 • 所需軟體 : BlueLab28 超級終端機 Cygwin Java 2 Runtime Environment

  7. BlueLab28 其中要把CSRSDKSTACK的值 改成C:\BlueLab28\firmware\rfcomm_kato_bcsp ,此為燒錄軟體所要用到的*.xpv檔 • BlueLab28安裝好之後,環 • 境變數會新增兩個

  8. BlueLab28 • 至BlueLab28\bin\下可找到相關執行程式 如:PSTool、BlueFlash、vmSpy、appdebug。 • 至BlueLab28\apps\下可找到BlueLab藍芽實驗版的相關範例。 • BlueLab28\docs下則是介紹這套”BlueLab軟體”。

  9. PSTool執行程式介紹 • PSTool PSTool負責做LPT、COM port的參數設定

  10. PSTool執行程式介紹 • 點選“ok”之後進入參數設定的介面 如果有無法進入此介面功能或無法對參數進行設定的情況時,有可能是LPT、com port BIOS沒有做好設定或開啟。亦即LPT 與 COM Port沒有接上。

  11. BlueFlash執行程式介紹 • BlueFlash需使用到LPT port • Choose File : 選擇編譯好的燒入檔*.xpv • Stop Processor : 進行燒入之前要先停止晶片動作

  12. BlueFlash執行程式介紹 • 選擇好檔案之後 Download 即為燒入,燒好之後點Start Processor 晶片開始動作 • Flash Erase : 此可將上次燒入的內容做清除。

  13. BlueFlash執行程式介紹 • 如果開啟BlueFlash出現以下狀況 可能是LPT未接上或者BIOS設定上沒開啟或不支援

  14. VMspy執行程式介紹 • VM Spy所需用到com port,而VM Spy是利用com port把藍芽的訊息回傳到電腦顯示出來 • 點選connect之後可以做com port的設定 例:Transport type、Serial port 、鮑率

  15. VM Spy執行程式介紹 連線之後則獲得上次燒入的訊息Hello Word

  16. 超級終端機 超級終端機: 此功能跟VM Spy相同,做 連線前也要設定鮑率…等 才可以接收正確的資料。

  17. 超級終端機

  18. Cygwin執行程式介紹 • 安裝好Cygwin後,桌面上會出現捷徑 Cygwin功用是把寫好的程式 *.c檔 進行編譯除錯(Make) 編譯的方法需要到該*.C資料夾下後 打上make 可進行編譯

  19. Cygwin執行程式介紹

  20. Java 2 Runtime Environment • Java 2 Runtime Environment安裝好之後 • 其用途: 在安裝好的BlueLab資料夾底下(BlueLab28\bin\)可以使用appdebug.jar。

  21. appdebug • 在BlueLab28\bin\下找到appdebug.jar 開啟檔案的格式如下 程式開啟後如圖

  22. appdebug • 開啟專案可選擇Cygwin中make出來後的*.sym檔案,之後可以開始進行debug的動作。

  23. BIOS • 設定BIOS之目的: 在要做先前那些操作時,我們有遇到很多問題,其中問題來源都是port設定所產生的。 我們發現到只要 LPT1 和 COM1 這兩個PORT沒打開的話,硬體就不能操作,相對軟體連不到硬體也就不能運作。 • BIOS COM Port設定: OnboardSerialPort1(預設值為3F8H/IRQ4) 設定主機板上串列埠1之位址及IRQ (須開啟 如果無法動作再做調整) OnboardSerialPort2(預設值為2F8H/IRQ3) 設定主機板上串列埠2之位址及IRQ (依硬體與BIOS不同有些只有1個或2個SerialPort) Com port (Communication port通訊介面),早期是接mouse或繪圖板用的,所以也稱為Serial port,以前2S1P為PC 基本規格需求(就是2個Serial port序列埠和1個Parallel port並列埠),現在Com port則較常被使用於連接通訊裝置,如 Modem等。

  24. BIOS • ParallelPort 設定: OnboardParallelPort(預設值為378H/IRQ7) 設定主機板上並列埠之位址及IRQ。(須開啟 如果無法動作再做調整) ParallelPortMode(並列埠模式,預設值為ECP+EPP) 設定並列埠之操作模式,有下列選項: Normal:一般速度單向執行。 (有時也是SPP) EPP:最高速度雙向執行。 ECP:超高速雙自執行。 ECP+EPP : ECP與EPP二種模式並用。 ParallelPortMode 測試結果藍芽實驗板可能不支援EPP和ECP,因此需 要開啟Normal或者 SPP才可以使用 (ParallelPortMode 須開啟)

More Related