Esempio n. 1
0
        private void SendBlock(char tableType, int tableId, int blockNumber, int totalBlocks, string block, bool replace, string filename)
        {
            var data = tableType +
                       tableId.ToString("D3") +
                       (replace ? 'R' : 'S') +
                       SynelNumericFormat.Convert(totalBlocks, 2) +
                       SynelNumericFormat.Convert(blockNumber, 2) +
                       block;

            var response = _client.SendAndReceive(RequestCommand.TableOperation, data, 3, "t");

            ValidateSendBlockResult(response);

            OnProgressChanged(new UploadProgressChangedEventArgs(blockNumber, totalBlocks, filename));
        }
Esempio n. 2
0
        /// <summary>
        /// Gets the status information from the terminal.
        /// </summary>
        public TerminalStatus GetTerminalStatus()
        {
            var response = _client.SendAndReceive(RequestCommand.GetStatus, null, "s");

            return(GetTerminalStatusResult(response));
        }
Esempio n. 3
0
        /// <summary>
        /// Gets the fingerprint unit status from the terminal.
        /// </summary>
        public FingerprintUnitStatus GetUnitStatus()
        {
            var response = _client.SendAndReceive(RequestCommand.Fingerprint, "M0", 3, "vM0");

            return(GetFingerprintUnitStatusResult(response));
        }