There was an error while loading. Please reload this page.
CAUTION: this page is working in progress and will be modified frequently. (at least, it will be translate into English)
Transparent 使用 ISSC Proprietary Service 作到傳送資訊的功能。傳送方指定 byte array,直接送到接收方,因此可以作到
另外,在 Server 端利用 Notification 將資料傳送給 Client,同時 Client 亦將相同資料回傳給 Server 端,此一功能我們稱之為 Echo。值得注意的是,LE 的設計誠如其名為 Low Energy,旨在以低功耗的方式溝通,並不適合傳送大檔。
會使用到的相關 UUID 有
TX 與 RX 是以 Server 的角度來詮釋,舉例來說,當我們要從手機送出資料到 Target Board,實作時要將 Value 寫到 Transfer RX Charactersistic。
由於 Server 端傳送資料給 Client 端是用 Notification,因此 Client 端要啟動相關設定
舉例來說
mGatt.setCharacteristicNotification(mTransTx, true); BluetoothGattDescriptor dsc = mTransTx.getDescriptor(UUID_OF_DES_CLIENT_CHR_CONFIG); dsc.setValue(BluetoothGattDescriptor.ENABLE_NOTIFICATION_VALUE); mGatt.writeDescriptor(dsc);