Modes; Command Mode; Through Mode - TAIYO YUDEN EYSKJNAWB-VX Manual

Table of Contents

Advertisement

3-Sep 2021 Ver.0.91
EYSKJNAWB-VX
TAIYO YUDEN CO., LTD.

4.2 Modes

Two communication modes are available: Command and Through. By default, the EYSKJNAWB-VX
is always in command mode and follows the formats outlined in section 3.1 Command and Event.
When the EYSKJNAWB-VX is connected to a peer device and notifications are enabled on the
peripheral's Read/Notify characteristic, the communication mode will change depending on the state
of the mode select pin. The default mode when notifications are enabled is Through, Command
mode can be selected by pulling the pin high. A Mode (MODE) event will be generated whenever the
mode is changed.
通信モードにはコマンドモードとスルーモードの二種類があります。他デバイスと接続するまでは
EYSKJNAWB-VX はコマンドモードで動作を行います。 コマンドモードの動作は、 3.1 章の 「Command
and Event Formats」に記載されたフォーマットで動作します。EYSKJNAWB-VX が他デバイスに接
続し、 peripheral の Read/Notify が有効になるとモード選択 Pin(P0.30)の状態に応じて通信モードが変
化します。モード選択 Pin が Low の場合はスルーモードとなり、モード選択 Pin が High の場合では
コマンドモードで動作します。モードに関するイベント(MODE)はモードが変更された時に出力され
ます。

4.2.1 Command Mode

In Command mode, the EYSKJNAWB-VX device follows the protocol described in section 3.1
Command and Event. In order to send data over the BLE link to a connected peer device, the SEND
command can be used. Refer to section 5.5 Connections for information about when this command is
available. A Transmit complete (BTTX) event will be generated when the data has been sent to the
peer device. If data is received from the peer device, a Data Received (BTRX) event will be
generated.
コマンドモードでは、EYSKJNAWB-VX は 3.1 章の「Command and Event Formats」に記載されたフ
ォーマットで動作します。ペアリングを行ったデバイスにデータを送信するためには、SEND コマン
ドを使用します。このコマンドの詳細な使用方法については、5.5 章を参照してください。送信完了
イベント(BTTX)はペアリングを行ったデバイスへデータが送信された時に出力されます。 ペアリング
を行ったデバイスからデータを受信した時、データ受信イベント(BTRX)が出力されます。

4.2.2 Through Mode

In Through mode, all data received on the current interface (UART) is queued directly for
transmission over the BLE link. Commands cannot be used in this mode. If the EYSKJNAWB-VX
device is configured in a central role Write-without-response operations are performed on the
peripheral's Write characteristic until the queue is empty. In peripheral role Notification operations
will be performed until the queue is empty. Events will not be output while this mode is active, except
Mode (MODE) events to notify the user that the mode has changed.
Attempting to send commands to the EYSKJNAWB-VX while this mode is active will result in the
command being transmitted to the peer device. The command will not be executed by the peer
device.data received over the BLE link (notifications or writes depending on the current role) will be
output directly on the current interface.
スルーモードでは、現在使用しているインターフェース(UART)で受信したデータを、BLE リンク
で送信します。そのためスルーモードではコマンドが使用できません。 EYSKJNAWB-VX をセント
ラルとして使用している場合、 キューが空になるまでペリフェラルの Write Characteristic に対して応
答なしの書き込み操作が実行されます。ペリフェラルでは、Notification 操作はキューが空になるまで
実行されます。スルーモードでは、モードが変更されたことをユーザーに通知するためのモードイベ
ント(MODE)を除いてイベントが出力されません。
TAIYO YUDEN CO., LTD.
43/198

Advertisement

Chapters

Table of Contents
loading

Table of Contents