9度通讯程序适用于9度多组设备
Administrator
2023-12-27 c736aaea5522e295b42676f094d313e7f6a4afb4
src/com/dev/fbs9009/MyModBusSocketThread.java
@@ -458,7 +458,7 @@
            //=====================================================================//
              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);
@@ -515,7 +515,7 @@
            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) {