| | |
| | | tmpbf.get(cipher_tx_t);
|
| | | //=====================================================================//
|
| | | Date d1 = new Date();
|
| | | System.err.println("发送数据:"+ComFn.bytesToHexString(cipher_tx_t, cipher_tx_t.length));
|
| | | //System.err.println("发送数据:"+ComFn.bytesToHexString(cipher_tx_t, cipher_tx_t.length));
|
| | | int rx_read_time_out = 0;
|
| | | out.write(cipher_tx_t);
|
| | | out.flush();
|
| | |
| | | byte[] cipher_buf = new byte[bytebuffer_for_socket_RX.limit()];
|
| | | byte[] plain_buf = new byte[bytebuffer_for_socket_RX.limit()];
|
| | | bytebuffer_for_socket_RX.get(cipher_buf);
|
| | | System.out.println("接收数据:"+ComFn.bytesToHexString(cipher_buf,cipher_buf.length));
|
| | | //System.out.println("接收数据:"+ComFn.bytesToHexString(cipher_buf,cipher_buf.length));
|
| | | if((cipher_buf.length > 8) && (true == getDataFromCommBuf(cipher_buf))) {
|
| | | rx_errcount_for_live_of_thread = 0;
|
| | | res_t = true;
|
| | |
| | | isSuccess = true;
|
| | | }
|
| | | }
|
| | | System.out.println(tmp_buf);
|
| | | System.out.println(bf.limit());
|
| | | //System.out.println(tmp_buf);
|
| | | //System.out.println(bf.limit());
|
| | | if(FBS9600_ComBase.CMD_SysInfo_Addr == tmp_buf.getTrans()) {
|
| | | System.err.println(bf.limit());
|
| | |
|