public void ProbeMobilityPatterns() { // Stop reader inventory if (IsInventoryRunning()) { reader.Stop_RoSpec(); reader.Delete_RoSpec(); currentMode = GuiModes.Ready; } if (probe_channel_timer != null) { probe_channel_timer.Close(); } // Mobility probe mode for (int ii = 0; ii < 50; ii++) { tagInfo.rssi[ii] = 0; } channel_counter = 0; /* * // Initialize the reader configuration to obtain another mobility pattern vector * // Clean current reader configuration * reader.CleanSubscriptionClient(); * currentMode = GuiModes.Idle; * * // Initialize the reader * bool connect = reader.connectTo("10.0.0.200"); * currentMode = GuiModes.Ready; * readerModes = reader.Get_Reader_Capability(); * SetDefaultReaderConfig(); * SetDefaultInventoryConfig(); * reader.Initialize();*/ inventoryconfig.duration = 30; readerconfig.modeIndex = 1000; reader.Set_Reader_Config(readerconfig); // Sets the client configuration currentMode = GuiModes.UserInventory; // Add a ROSpec reader.Add_RoSpec(inventoryconfig, readerconfig); reader.Enable_RoSpec(); // Start the first round of mobility detection if (stopInventory == false) { probe_channel_timer = new System.Timers.Timer(); probe_channel_timer.Elapsed += new System.Timers.ElapsedEventHandler(RecordMobilityPatterns); probe_channel_timer.Interval = 1500; probe_channel_timer.Enabled = true; } }
public void StopInventory() { if (IsInventoryRunning()) { reader.Stop_RoSpec(); reader.Delete_RoSpec(); currentMode = GuiModes.Ready; } }