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())) {
// imgMap.get(errorResponse.getRemoteAddress()).setStatus(RxData.Status.PARSING_ERROR);
// rd = imgMap.get(errorResponse.getRemoteAddress()).createImageSegmentsSnapshot();
// imgMap.remove(errorResponse.getRemoteAddress());
// } 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, errorResponse.getErrorMsg()));
log.error("", errorResponse.getException());
} else {
final String rawBytes = ByteUtils.toBase16(response.getRawPacketBytes());
int[] processedPacketBytes = response.getProcessedPacketBytes();
if (processedPacketBytes != null && processedPacketBytes.length > 0) {
/*