Commit 6133ddc8 authored by garciay's avatar garciay

Bug fixed in UpperTesterPort/debug mode

parent f3ec837f
......@@ -136,23 +136,36 @@ public class UpperTesterPort extends AdapterPort implements IPort, IObservable {
rsp = new byte[]{(byte)0x01, (byte)0x01};
break;
case 0x02: // UtChangePosition
// No break;
case 0x03:
// No break;
case 0x04:
// No break;
case 0x05:
rsp = new byte[]{(byte)0x24, (byte)0x01};
rsp = new byte[]{(byte)0x03, (byte)0x01};
break;
case 0x04: // UtChangePseudonym
rsp = new byte[]{(byte)0x05, (byte)0x01};
break;
case 0x06: // UtActivatePositionTime
rsp = new byte[]{(byte)0x07, (byte)0x01};
break;
case 0x08: // UtDeactivatePositionTime
rsp = new byte[]{(byte)0x09, (byte)0x01};
break;
case 0x10: // UtDenmTrigger
rsp = new byte[]{(byte)0x11, (byte)0x01};
rsp = ByteHelper.concat(
new byte[]{ (byte)0x11, (byte)0x01 },
new byte[] { (byte)0xAA, (byte)0xAA, (byte)0xAA, (byte)0xAA }, // StationID
new byte[] { (byte)0x01, (byte)0xFF } // SequenceNumber
);
break;
case 0x12: // UtDenmUpdate
rsp = ByteHelper.concat(
new byte[]{ (byte)0x13, (byte)0x01 },
new byte[] { (byte)0xAA, (byte)0xAA, (byte)0xAA, (byte)0xAA }, // StationID
new byte[] { (byte)0x01, (byte)0xFF } // SequenceNumber
);
break;
case 0x14: // UtDenmTermination
rsp = new byte[]{(byte)0x15, (byte)0x01};
break;
default:
if ((message[0] >= 0x30) && (message[0] <= 0x3F)) { // UtCamTrigger_xxx
rsp = new byte[]{(byte)0x21, (byte)0x01};
} else {
rsp = new byte[]{(byte)0x41, (byte)0x01};
}
rsp = new byte[]{(byte)0x24, (byte)0x00};
break;
}
notifyObservers(new PortEvent(rsp, getPortName(), getComponentName()));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment