| | |
| | | //=====================================================================//
|
| | | Date d1 = new Date();
|
| | | if(data.RES_Index == MyModBusCom.LD9_CMD_RESTART_ADDR) {
|
| | | System.out.println("发送数据:"+ComFn.bytesToHexString(cipher_tx_t, cipher_tx_t.length)+Com.getDateTimeFormat(new Date(), Com.DTF_YMDhms));
|
| | | //System.out.println("发送数据:"+ComFn.bytesToHexString(cipher_tx_t, cipher_tx_t.length)+Com.getDateTimeFormat(new Date(), Com.DTF_YMDhms));
|
| | | }
|
| | | int rx_read_time_out = 0;
|
| | | out.write(cipher_tx_t);
|
| | |
| | | bytebuffer_for_socket_RX.get(cipher_buf);
|
| | |
|
| | | if(data.RES_Index == MyModBusCom.LD9_CMD_RESTART_ADDR) {
|
| | | System.out.println("发送数据:"+ComFn.bytesToHexString(cipher_buf, cipher_buf.length)+Com.getDateTimeFormat(new Date(), Com.DTF_YMDhms));
|
| | | //System.out.println("发送数据:"+ComFn.bytesToHexString(cipher_buf, cipher_buf.length)+Com.getDateTimeFormat(new Date(), Com.DTF_YMDhms));
|
| | | }
|
| | | if(baseData.CMD == MyModBusCom.CMD_ReadGPRSCSQ){
|
| | | if(bytebuffer_for_socket_RX.limit() > 2) {
|