示例#1
0
 //修改epc
 public void updateEpc(string oldEpc, string newEpc)
 {
     _readerSettings.addAccessSpec(_currentSpecID, oldEpc, newEpc);
     _readerSettings.enableAccessSpec();
     _readerSettings.Enable_ROSpec(_currentSpecID);
     _readerSettings.Start_ROSpec(_currentSpecID);
 }
示例#2
0
        public void StartInventory()
        {
            if (!SaveSettings())
            {
                return;
            }

            //if (btnHolographicsConfirm.Enabled)
            //{
            //    MessageBox.Show("Please confirm Holographics Settins before starting invenroty!", "Warning");
            //    return;
            //}
            //else
            //{
            //    _th = new Thread(SARThread);
            //    _th.IsBackground = true;
            //    _th.Start();
            //}


            _readerSettings.SetReaderConfiguration(_filepath);
            //_readerSettings.GetReaderConfigFromReader();

            //Send the messages
            //_readerSettings.GetROSpecFromReader();
            _currentSpecID = _readerSettings.AddROSpec(_filepath);
            //_readerSettings.GetROSpecFromReader();
            _readerSettings.Enable_ROSpec(_currentSpecID);
            _readerSettings.Start_ROSpec(_currentSpecID);
        }