| | |
| | | Date d1 = new Date();
|
| | | int rx_read_time_out = 0;
|
| | | //int rx_len = 0;
|
| | | //System.out.println("数据长度" + plain_tx_t.length + "\t发送数据:" + ComFn.bytesToHexString(plain_tx_t, plain_tx_t.length));
|
| | | System.out.println("数据长度" + plain_tx_t.length + "\t发送数据:" + ComFn.bytesToHexString(plain_tx_t, plain_tx_t.length));
|
| | | out.write(plain_tx_t);
|
| | | out.flush();
|
| | | sysState.makeDevCommDataFlowSum(plain_tx_t.length);
|
| | |
| | |
|
| | | sysState.makeDevCommDataFlowSum(cipher_buf.length);
|
| | |
|
| | | //System.out.println("数据长度"+cipher_buf.length+"\t返回数据:"+ ComFn.bytesToHexString(cipher_buf, cipher_buf.length));
|
| | | System.out.println("数据长度"+cipher_buf.length+"\t返回数据:"+ ComFn.bytesToHexString(cipher_buf, cipher_buf.length));
|
| | | //Log.e(TAG, "SocketComm: "+ComFn.bytesToHexString(plain_buf, plain_buf.length));
|
| | | if(true == getDataFromCommBuf(cipher_buf)) {
|
| | | res_t = true;
|