Getdeviceserial, Getsessionid, Getksn – MagTek USB READER FOR ANDROID User Manual
Page 10: Sendcommandwithlength
![background image](/manuals/413805/10/background.png)
6
getDeviceSerial
Get stored device serial number.
-
public string
getDeviceSerial()
Parameters
Return Value
Return stored device serial number.
getSessionID
Get stored session ID.
-
public string
getSessionID()
Parameters
Return Value
Return stored session ID.
getKSN
Get stored key serial number.
-
public string
getKSN()
Parameters
Return Value
Return stored key serial number.
sendCommandWithLength
This function send command to reader.
- public byte[] sendCommandWithLength(CharSequence cmd)
Parameters
Cmd
A string command sent to reader. For example, command “000103” (Where “00” is command
number, "01" is the length and “03” is property ID) will retrieve device serial number from
reader.
Return Value
A response returned from reader.
For more details on other commands, please refer to COMMANDS section in “MagneSafe
Communication reference manual”