| | |
| | | comm_rx_cnt = 0; |
| | | CommThreadRunning = true; |
| | | } |
| | | |
| | | DEV_DATA_AESCHECK = false; |
| | | return res; |
| | | } |
| | | |
| | |
| | | } |
| | | if(0 == dt_cmd_cnt%5) { |
| | | dt_cmd = FBS9100_ComBase.CMD_GetMonomerTMP; |
| | | } |
| | | if(0 == dt_cmd_cnt%6) { |
| | | dt_cmd = FBS9100_ComBase.CMD_GetDischargeState; |
| | | } |
| | | dt_datatofbs9100 = ByteBuffer.allocate(0); |
| | | }else if(dev_data_type == DEV_DATA_AUTO_RANDOM) { |
| | |
| | | //非加密格式 |
| | | cipher_tx_t = plain_tx_t; |
| | | } |
| | | |
| | | //System.out.println("TX:" + ComFn.bytesToHexString(plain_tx_t, plain_tx_t.length)); |
| | | System.out.println("DEV_DATA_ENCIPHER:" + DEV_DATA_ENCIPHER); |
| | | System.out.println("TX:" + ComFn.bytesToHexString(cipher_tx_t, cipher_tx_t.length)); |
| | | |
| | | return cipher_tx_t; |
| | | } |
| | |
| | | bf.order(ByteOrder.LITTLE_ENDIAN); |
| | | bf.put(bytes); |
| | | bf.flip(); |
| | | //System.err.println(ComFn.bytesToHexString(bytes, bytes.length)); |
| | | System.err.println(ComFn.bytesToHexString(bytes, bytes.length)); |
| | | String msg = ""; |
| | | if(true == m_FBS_Cmd.putByteBuffer(bf)) |
| | | { |