beautypg.com

2 - connection types – MagTek DynaPro Mini Programmer's99875629 User Manual

Page 22

background image

2 - Connection Types

DynaPro Mini| PIN Encryption Device | Programmer’s Reference (Commands)


Page 22

7) Send commands to the device by writing to the Application Data From Host Length

characteristic, then to the Application Data From Host characteristic; receive notifications
that the device has changed the Application Data To Host Length characteristic, and read
the corresponding incoming data from the Application Data To Host characteristic.

8) The device will stay powered on until the host terminates the BLE connection, or until a user powers

off the device using the power switch. Powering off causes the device to terminate the BLE
connection. To conserve power, always power off the device when it is not in use.

Table 2-3 - BLE Characteristics and UUIDs

Characteristic

Max.

Size

UUID In LSB (Little Endian) Order

Some frameworks use MSB order

DynaPro Mini GATT service

N/A

01:01:B6:0C:41:E3:43:F8:8F:89:82:AD:F8:E6:08:05

Application Data From Host
Length

1 byte

20:02:B6:0C:41:E3:43:F8:8F:89:82:AD:F8:E6:08:05

Application Data From Host

65 bytes

21:02:B6:0C:41:E3:43:F8:8F:89:82:AD:F8:E6:08:05

Application Data To Host Length

1 byte

22:02:B6:0C:41:E3:43:F8:8F:89:82:AD:F8:E6:08:05

Application Data To Host

128 bytes 23:02:B6:0C:41:E3:43:F8:8F:89:82:AD:F8:E6:08:05

To communicate with a device using the BLE connection, hosts should begin all commands and
responses with the following header:

Bit

7

6

5

4

3

2

1

0

Byte 0

0x00 = Get
0x01 = Set

Byte 1
… Byte n

Request data as defined below and in section 3 Command Set.


The command / response for a Get report are formatted as follows:

Request from Host
Byte 0

0 (Get)

Byte 1

Report ID


Response from Device
Byte 0

Report ID

Byte 1 - n

Report

Maximum report size is 63 bytes.

The command / response for a Set report are formatted as follows:

Request from Host
Byte 0

1 (Set)

Byte 1

Report ID

Byte 2 – n

Report

Maximum report size is 63 bytes.