Loading javasrc/adapter/org/etsi/its/adapter/ports/UpperTesterPort.java +37 −9 Original line number Diff line number Diff line Loading @@ -132,40 +132,68 @@ public class UpperTesterPort extends AdapterPort implements IPort, IObservable { setChanged(); byte[] rsp; switch (message[0]) { case 0x00: case (byte)0x00: rsp = new byte[]{(byte)0x01, (byte)0x01}; break; case 0x02: // UtChangePosition case (byte)0x02: // UtChangePosition rsp = new byte[]{(byte)0x03, (byte)0x01}; break; case 0x04: // UtChangePseudonym case (byte)0x04: // UtChangePseudonym rsp = new byte[]{(byte)0x05, (byte)0x01}; break; case 0x06: // UtActivatePositionTime case (byte)0x06: // UtActivatePositionTime rsp = new byte[]{(byte)0x07, (byte)0x01}; break; case 0x08: // UtDeactivatePositionTime case (byte)0x08: // UtDeactivatePositionTime rsp = new byte[]{(byte)0x09, (byte)0x01}; break; case 0x10: // UtDenmTrigger case (byte)0x10: // UtDenmTrigger 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 case (byte)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 case (byte)0x14: // UtDenmTermination rsp = new byte[]{(byte)0x15, (byte)0x01}; break; //reserved(0x92), case (byte)0x93: // UtSec_setCertificate case (byte)0x94: // UtSec_setPrivateKey case (byte)0x95: // UtSec_setTrustPoint( rsp = new byte[]{(byte)0x91, (byte)0x01}; // UtSecResult break; case (byte)0xA0: // UtMapemSpatemTrigger rsp = new byte[]{(byte)0xA1, (byte)0x01}; // UtMapemSpatemTriggerResult break; case (byte)0xA4: // UtIvimTrigger rsp = new byte[]{(byte)0xA5, (byte)0x01, (byte)0xA0, (byte)0xA0}; // UtIvimTriggerResult break; case (byte)0xA6: // UtIvimUpdate rsp = new byte[]{(byte)0xA7, (byte)0x01, (byte)0xA0, (byte)0xA0}; // UtIvimUpdateResult break; case (byte)0xA8: // UtIvimTermination rsp = new byte[]{(byte)0xA9, (byte)0x01, (byte)0xA0, (byte)0xA0}; // UtIvimTerminationResult break; case (byte)0xAB: // UtSremTrigger rsp = new byte[]{(byte)0xAC, (byte)0x01}; // UtSremTriggerResult break; case (byte)0xAD: // UtSremUpdate rsp = new byte[]{(byte)0xAE, (byte)0x01}; // UtSremUpdateResult break; default: if ((message[0] >= (byte)0x30) && (message[0] <= (byte)0x3F)) { // UtCamTrigger_xxx rsp = new byte[]{(byte)0x21, (byte)0x00}; // UtCamTriggerResult } else { rsp = new byte[]{(byte)0x24, (byte)0x00}; } break; } notifyObservers(new PortEvent(rsp, getPortName(), getComponentName())); Loading Loading
javasrc/adapter/org/etsi/its/adapter/ports/UpperTesterPort.java +37 −9 Original line number Diff line number Diff line Loading @@ -132,40 +132,68 @@ public class UpperTesterPort extends AdapterPort implements IPort, IObservable { setChanged(); byte[] rsp; switch (message[0]) { case 0x00: case (byte)0x00: rsp = new byte[]{(byte)0x01, (byte)0x01}; break; case 0x02: // UtChangePosition case (byte)0x02: // UtChangePosition rsp = new byte[]{(byte)0x03, (byte)0x01}; break; case 0x04: // UtChangePseudonym case (byte)0x04: // UtChangePseudonym rsp = new byte[]{(byte)0x05, (byte)0x01}; break; case 0x06: // UtActivatePositionTime case (byte)0x06: // UtActivatePositionTime rsp = new byte[]{(byte)0x07, (byte)0x01}; break; case 0x08: // UtDeactivatePositionTime case (byte)0x08: // UtDeactivatePositionTime rsp = new byte[]{(byte)0x09, (byte)0x01}; break; case 0x10: // UtDenmTrigger case (byte)0x10: // UtDenmTrigger 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 case (byte)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 case (byte)0x14: // UtDenmTermination rsp = new byte[]{(byte)0x15, (byte)0x01}; break; //reserved(0x92), case (byte)0x93: // UtSec_setCertificate case (byte)0x94: // UtSec_setPrivateKey case (byte)0x95: // UtSec_setTrustPoint( rsp = new byte[]{(byte)0x91, (byte)0x01}; // UtSecResult break; case (byte)0xA0: // UtMapemSpatemTrigger rsp = new byte[]{(byte)0xA1, (byte)0x01}; // UtMapemSpatemTriggerResult break; case (byte)0xA4: // UtIvimTrigger rsp = new byte[]{(byte)0xA5, (byte)0x01, (byte)0xA0, (byte)0xA0}; // UtIvimTriggerResult break; case (byte)0xA6: // UtIvimUpdate rsp = new byte[]{(byte)0xA7, (byte)0x01, (byte)0xA0, (byte)0xA0}; // UtIvimUpdateResult break; case (byte)0xA8: // UtIvimTermination rsp = new byte[]{(byte)0xA9, (byte)0x01, (byte)0xA0, (byte)0xA0}; // UtIvimTerminationResult break; case (byte)0xAB: // UtSremTrigger rsp = new byte[]{(byte)0xAC, (byte)0x01}; // UtSremTriggerResult break; case (byte)0xAD: // UtSremUpdate rsp = new byte[]{(byte)0xAE, (byte)0x01}; // UtSremUpdateResult break; default: if ((message[0] >= (byte)0x30) && (message[0] <= (byte)0x3F)) { // UtCamTrigger_xxx rsp = new byte[]{(byte)0x21, (byte)0x00}; // UtCamTriggerResult } else { rsp = new byte[]{(byte)0x24, (byte)0x00}; } break; } notifyObservers(new PortEvent(rsp, getPortName(), getComponentName())); Loading