示例#1
0
        protected override void CreateInstance()
        {
            _sendData = new SendDataOperation(DestNodeId, Data, TxOptions)
            {
                IsFollowup = IsFollowup
            };
            _sendData.DataDelay          = DataDelay;
            _sendData.SubstituteCallback = SendDataSubstituteCallback;
            _sendData.SubstituteSettings = SubstituteSettings;

            _sendDataBridge                    = new SendDataBridgeOperation(SrcNodeId, DestNodeId, Data, TxOptions);
            _sendDataBridge.DataDelay          = DataDelay;
            _sendDataBridge.SubstituteCallback = SendDataSubstituteCallback;
            _sendDataBridge.SubstituteSettings = SubstituteSettings;
            ExpectData = new ExpectDataOperation(SrcNodeId, DestNodeId, _dataToCompare, _timeoutMs);
        }
示例#2
0
        protected override void CreateInstance()
        {
            _expectSchemeGet = new ExpectDataOperation(0, 0, new COMMAND_CLASS_SECURITY.SECURITY_SCHEME_GET(), 2, _timeoutMs * 2)
            {
                Name             = "Expect SCHEME_GET",
                IgnoreRxStatuses = ReceiveStatuses.TypeMulti | ReceiveStatuses.TypeBroad
            };

            _expectKexGet = new ExpectDataOperation(0, 0, new COMMAND_CLASS_SECURITY_2.KEX_GET(), 2, _timeoutMs * 2)
            {
                Name             = "Expect KEX_GET",
                IgnoreRxStatuses = ReceiveStatuses.TypeMulti | ReceiveStatuses.TypeBroad
            };
            _memoryGetId          = new MemoryGetIdOperation();
            _serialApiGetInitData = new SerialApiGetInitDataOperation();
            _learnModeS2          = new SetLearnModeS2Operation(_securityManagerInfo);
            _learnModeS0          = new SetLearnModeS0Operation(_securityManagerInfo, 0, 0);
        }
示例#3
0
        protected override void CreateInstance()
        {
            requestScheme = new RequestDataOperation(0, 0,
                                                     new COMMAND_CLASS_SECURITY.SECURITY_SCHEME_GET()
            {
                supportedSecuritySchemes = SecurityManagerInfo.SecuritySchemeInGetS0
            },
                                                     SecurityManagerInfo.TxOptions,
                                                     new COMMAND_CLASS_SECURITY.SECURITY_SCHEME_REPORT(), 2, CMD_TIMEOUT);
            requestScheme.SubstituteSettings.SetFlag(SubstituteFlags.DenySecurity);

            sendNetworkKeySet = new SendDataOperation(0, null, SecurityManagerInfo.TxOptions);

            expectNetworkKeyVerify = new ExpectDataOperation(0, 0, new COMMAND_CLASS_SECURITY.NETWORK_KEY_VERIFY(), 2, CMD_TIMEOUT);

            requestSchemeInherit = new RequestDataOperation(0, 0,
                                                            new COMMAND_CLASS_SECURITY.SECURITY_SCHEME_INHERIT()
            {
                supportedSecuritySchemes = SecurityManagerInfo.SecuritySchemeInInheritS0
            },
                                                            SecurityManagerInfo.TxOptions,
                                                            new COMMAND_CLASS_SECURITY.SECURITY_SCHEME_REPORT(), 2, CMD_TIMEOUT);
        }
示例#4
0
 protected override void CreateInstance()
 {
     sendData = new SendDataExOperation(DestNodeId, Data, TxOptions, TxSecOptions, SecurityScheme, TxOptions2);
     sendData.SubstituteSettings = SubstituteSettings;
     expectData = new ExpectDataOperation(0, DestNodeId, new byte[] { CmdClass, Cmd }, 2, TimeoutMs);
 }