From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.



LabVIEW PDA 模組是否支援 Bluetooth



主要軟體:
主要軟體版本: 8.0.1
主要軟體修正版本: N/A
次要軟體: N/A

問題:
想利用 LabVIEW 在 PDA 上建構藍芽的通訊應用,這是可行的嗎?

解答:

對於 LabVIEW PDA module 7.1 或更新的版本,只要 PDA 裝置是 Palm OS 5.0 或更新版,Pocket PC 2003 搭配 WIDCOMM 1.4 或更新版的藍芽驅動程式,LabVIEW 就有支援藍芽。若 PDA 為 Pocket PC 2003,則需安裝額外的檔案;這部份請參考以下連結 Getting Started with the LabVIEW PDA Module。下面連結還有 LabVIEW 與 LabVIEW PDA 模組所附的藍芽通訊範例程式與教學。 

LabVIEW PDA 模組也可以使用藍芽的虛擬序列埠驅動程式〈virtual serial driver〉的功能來建構藍芽通訊。基本上,這個方式一次只能支援一個動作中的序列埠,也就是輸出埠〈outbound/client〉或輸入埠〈inbound/server〉其中之一。在 Pocket 與 Palm 的 PDA 上,各有不同的方式啟動序列埠;然而一旦啟動且連線,就可以使用現有 PDA 所支援的序列埠 VI。

建立連線的方式

  • PocketPC

    • 大部分在 PocketPC 上的藍芽驅動程式都有藍芽序列埠與虛擬 COM ports〈inbound/outbound〉的對照。舉例來說,使用 WIDCOMM 藍芽驅動程式〈BTW CE 1.4〉搭配 hp iPAQ h5550 時,會預設 COM port 5 為藍芽輸入埠〈inbound Bluetooth serial port〉而 COM port 8 為輸出埠。這點可以在藍芽組態中設定。
    • 使用 LabVIEW PocketPC 模組的 Serial Port Init VI ,只要輸入虛擬 COM port 的索引〈index,COM port 編號 - 1〉就可以用來開啟藍芽序列埠。例如若要開啟 COM port 5 為輸入埠,COM port 編號就輸入 4,這個編號也可以用來讀,寫或關閉這個序列埠。

  • PalmOS

    • PalmOS 不支援藍芽序列埠與虛擬序列埠的對照,因此必須用程式開啟藍芽序列埠;這可以使用 LabVIEW PalmOS 模組的 Bt Virtual Serial Port Init.vi 來達成。
    • Bt Virtual Serial Port Init VI 會開啟一個 PalmOS 藍芽序列埠作為輸出〈outbound/client〉或輸入埠〈inbound/server〉使用。
    • 在 PDA 建立這個 VI 時
      1. 將 BtVirtSerOpen.c 加入建立 VI 的清單。
      2. 將 port number out 作為其他 LabVIEW PalmOS Serial I/O 函式的輸入參數。
      3. 若需要詳細的錯誤代碼資訊,請參考以下所附的 BtVirtSerOpen.c。
      4. 注意:這個 VI 是給安裝有 LabVIEW,LabVIEW PalmOS Module 7.0 與 PamOS 3.5 或更新的版本所使用的。請確定您有安裝 Palm OS 5 SDK (68K) R3。這個 SDK 有編譯以下 C code 所需的藍芽 API;這個安裝檔可以在下面連結下載。


相關連結:
Download site -- Palm OS (Garnet OS) SDK: Version 5
KnowledgeBase 2YCG16DS: How Can I Implement Serial Communication with My PDA?
LabVIEW PDA Support
Product Manuals: Getting Started with the LabVIEW PDA Module for Windows Mobile
Developer Zone Tutorial: Developing Bluetooth Applications with LabVIEW

附加檔案:


PDABtSerial.llb - PDABtSerial.llbBtVirtSerOpen.c - BtVirtSerOpen.cPalmOSBtSdrv.dll - PalmOSBtSdrv.dll



報告日期: 10/17/2003
最後更新: 01/03/2008
文件偏號: 32GEGGTP