// 6=AT Command (D)
// 7=AT Command (L)
if (response instanceof RxResponse16) {
handleRxResponse16((RxResponse16) response);
} else if (response instanceof TxStatusResponse) {
final Command command = extractCommand(response);
final String rawBytes = ByteUtils.toBase16(response.getRawPacketBytes());
final TxStatusResponse txResponse = (TxStatusResponse) response;
RxData rd;
if (txResponse.getStatus() == TxStatusResponse.Status.SUCCESS) {
rd = new RxRawData<String>(null, Status.NORMAL, 0, rawBytes);
processData(null, UGateEvent.Type.WIRELESS_DATA_TX_STATUS_RESPONSE_SUCCESS, command, rd,
RS.rbLabel(KEY.SERVICE_TX_RESPONSE_SUCCESS, rd, txResponse.getStatus()));
} else {
rd = new RxRawData<String>(null, Status.GENERAL_FAILURE, 0, rawBytes);
processData(null, UGateEvent.Type.WIRELESS_DATA_TX_STATUS_RESPONSE_FAILED, command, rd,
RS.rbLabel(KEY.SERVICE_TX_RESPONSE_ERROR, rd, txResponse.getStatus()));
}
} else if (response instanceof ErrorResponse) {
final Command command = extractCommand(response);
final ErrorResponse errorResponse = (ErrorResponse) response;
final String rawBytes = ByteUtils.toBase16(response.getRawPacketBytes());
RxData rd;
// TODO : need a way to determine what address the error came from for an ErrorResponse
// if (imgMap.containsKey(errorResponse.getRemoteAddress())) {