2 - Connection Types
eDynamo| Secure Card Reader Authenticator | Programmer’s Manual (COMMANDS)
Page 28 of 245 (
D998200115-17
)
Table 2-5 - Data Read Status Characteristic
Characteristic Name
Data Read Status
Properties
Write
Data Size
3
UUID (LSB Order)
03:02:B6:0C:41:E3:43:F8:8F:89:82:AD:F8:E6:08:05
Description/Usage
Contains the characteristic identifier (byte 0), characteristic block identifier
(byte 1), and the read status (byte 2) of the data that was ready to be read.
The host software should write a 0 to this characteristic after reading a block
of card data, to notify the device it is ready to read the next block of card
data, at which point the device posts the next block of data to the Data ready
characteristic. The device does not accept any more card swipes until the
host writes to this characteristic. If the host fails to write to this
characteristic within 10 seconds of being notified a card data block is ready,
the device terminates the transaction and discards all card data.
2.2.2
How to Connect to a Device Using Bluetooth LE
The general steps for a host to communicate with the device via Bluetooth LE are as follows:
1)
Scan for nearby Bluetooth LE peripherals advertising the desired GATT service UUID.
2)
If multiple devices of the desired type are available, examine each device’s name property. A
specific device’s default name is a constant, and by default is equal to the product name plus a hyphen
plus the serial number on the device label.
3)
Establish a Bluetooth LE connection with the device.
4)
Pair with the device using passkey 000000. In many cases this step is operator-driven.
5)
Make sure, if the host is expecting to receive data from any Bluetooth LE characteristics, those
characteristics are configured to enable notifications (see section
). The specific method to enable notifications for a characteristic is different in
different Bluetooth LE development libraries. For example, iOS code would be similar to
[servicePeripheral setNotifyValue:YES
forCharacteristic:characteristic]
.
6)
Send commands to the device (see section
2.2.3 How to Send Commands On the Bluetooth LE
) and process incoming messages from the device (see section
Data On the Bluetooth LE Connection
2.2.3
How to Send Commands On the Bluetooth LE Connection
To send a command request and to receive the command response, the host should do the following:
1)
Make sure it is connected to the device (see section
2.2.2 How to Connect to a Device Using
.
2)
Write the command request data to the
Command Data
3)
Wait to receive a
Data Ready
notification with the characteristic identifier set to 0 (command data).
4)
Read the command response data from the
Command Data
characteristic.
5)
Interpret the data according to section
3.2 How to Use GATT Format (GATT Only)
For a full list of commands and details about how to use them, see section