![Magtek DYNAMAG Скачать руководство пользователя страница 35](http://html.mh-extra.com/html/magtek/dynamag/dynamag_instruction-manual_694747035.webp)
3 - MTSCRA Functions
Dynamag, DynaMAX, eDynamo, mDynamo, tDynamo, DynaWave, and iDynamo 6| Secure Card Reader Authenticators | Programmer’s
Reference (Java and Java Applet)
Page 35
Return Value: Returns a string containing the key serial number.
3.47
sendCommand
This function sends a direct “SET” byte command to the device. For information about direct commands,
see
D99875475 MagneSafe V5 Communication Reference Manual
.
long sendCommand(String lpCommand);
Parameter
Description
lpCommand
A hexadecimal command string to send to the device. For example,
command “0003” (where “00” is the command number and “03” is the
property ID) will retrieve device serial number.
Return Value: Null terminated hex string for the return result. NULL value for failed.
3.48
sendCommandWithLength
This function sends a direct “SET” byte command to the device. For information about direct commands,
see
D99875475 MagneSafe V5 Communication Reference Manual
.
long sendCommandWithLength(String lpCommand);
Parameter
Description
lpCommand
A hexadecimal command string to send to the device. For example,
command “000103” (where “00” is command number, "01" is the length,
and “03” is property ID) will retrieve the device serial number.
Return Value: Null terminated hex string for the return result. NULL value for failed.
3.49
sendData
This function sends a direct “SET” byte command to the device. For information about direct commands,
see
D99875475 MagneSafe V5 Communication Reference Manual
. The event associated with this
command is
long sendData(String lpCommand);
Parameter
Description
lpCommand
A hexadecimal command string to send to the device. For example,
command “000103” (where “00” is command number, "01" is the length,
and “03” is property ID) will retrieve the device serial number.
Return Value: 0 for no error.
3.50
getBatteryLevel
This function retrieves battery level between 0% and 100%.
long getBatteryLevel();