BTool.DeviceForm.TestCase C# (CSharp) Method

TestCase() public method

public TestCase ( ) : void
return void
        public void TestCase()
        {
            sendCmds.SendUTIL(
                new HCICmds.UTILCmds.UTIL_Reset()
                {
                    resetType = HCICmds.UTIL_ResetType.Hard_Reset
                });
            sendCmds.SendHCIExt(
                new HCICmds.HCIExtCmds.HCIExt_SetBDADDR()
                {
                    bleDevAddr = "70:55:44:33:22:11"
                });
            HCICmds.GAPCmds.GAP_DeviceInit gapDeviceInit = new HCICmds.GAPCmds.GAP_DeviceInit();
            gapDeviceInit.broadcasterProfileRole = HCICmds.GAP_EnableDisable.Disable;
            gapDeviceInit.observerProfileRole = HCICmds.GAP_EnableDisable.Disable;
            gapDeviceInit.peripheralProfileRole = HCICmds.GAP_EnableDisable.Disable;
            gapDeviceInit.centralProfileRole = HCICmds.GAP_EnableDisable.Enable;
            gapDeviceInit.maxScanResponses = 3;
            gapDeviceInit.irk = "33:42:CF:14:BC:55:17:31:75:4F:BB:A4:C7:F2:8C:13";
            gapDeviceInit.csrk = "45:0A:F4:B0:03:07:B0:40:87:F4:18:23:75:4A:FB:A4";
            gapDeviceInit.signCounter = 0;
            sendCmds.SendGAP(gapDeviceInit);
            sendCmds.SendGAP(
                new HCICmds.GAPCmds.GAP_EstablishLinkRequest()
                {
                    highDutyCycle = HCICmds.GAP_EnableDisable.Disable,
                    whiteList = HCICmds.GAP_EnableDisable.Disable,
                    addrTypePeer = HCICmds.GAP_AddrType.Public,
                    peerAddr = "60:55:44:33:22:11"
                });
            sendCmds.SendGAP(
                new HCICmds.GAPCmds.GAP_Authenticate()
                {
                    connHandle = 0,
                    secReq_ioCaps = HCICmds.GAP_IOCaps.KeyboardDisplay,
                    secReq_oobAvailable = HCICmds.GAP_TrueFalse.False,
                    secReq_oob = "4d:9f:88:5a:6e:03:12:fe:00:00:00:00:00:00:00:00",
                    secReq_authReq = 1,
                    secReq_maxEncKeySize = 16,
                    secReq_keyDist = 0,
                    pairReq_Enable = HCICmds.GAP_EnableDisable.Disable,
                    pairReq_ioCaps = HCICmds.GAP_IOCaps.KeyboardDisplay,
                    pairReq_oobDataFlag = HCICmds.GAP_EnableDisable.Disable,
                    pairReq_authReq = 1,
                });
            sendCmds.SendGAP(
                new HCICmds.GAPCmds.GAP_TerminateLinkRequest()
                {
                    connHandle = (ushort)0,
                    discReason = HCICmds.GAP_DisconnectReason.Remote_User_Terminated
                });
        }