Power down command, Get battery status command – MagTek Bluetooth MagneSafe V5 Swipe Reader User Manual

Page 57

Advertising
background image

Section 5. Communications

49

POWER DOWN COMMAND

Command number:

0x28

Description:

This command is used to power down the magnetic stripe circuit. If the
reader is running on battery only (no USB cable attached), the entire
reader is powered down. The behavior of the reader is exactly the same as
if the user had pressed and held down the User Switch for three seconds to
turn it off.


Data structure:

Request Data: None
Response Data: None

Result codes:

0x00 (Success)


Example Power Down Request (Hex):

Cmd Num

Data Len

Data

28

00

Example Power Down Response (Hex):

Result Code Data Len

Data

00

00


GET BATTERY STATUS COMMAND

Command number:

0x29

Description:

This command is used to get the status of the battery.


Data structure:

Request Data: None
Response Data:

Offset

Field Name

Description

0

Battery Status

Value of 0x00 indicates battery charge is low,
battery should be charged before further use. Value
of 0x01 indicates battery charge is sufficient for
normal use.


Result codes:

0x00 (success)


Example Get Battery Status Request (Hex):

Cmd Num

Data Len

Data

29

00

Example Get Battery Status Response (Hex) (Charge is low):

Result Code Data Len

Data

00

01

00

Advertising