private void StartReceivingTags() { CAENRFIDReader reader = Reader.GetReader(); CAENRFIDLogicalSource source = null; source = reader.GetSource("Source_0"); source.ReadCycle = 0; source.Selected_EPC_C1G2 = CAENRFIDLogicalSourceConstants.EPCC1G2AllSELECTED; source .EventInventoryTag( new byte[0], (short)0x0, (short)0x0, (short)0x7); }
/* ######################### # ANT0 ######## ANT2 #### #### ANT1 ######## ANT3 # ######################### */ /***************** ** CORE METHODS ** *****************/ // Set up myReader, mySource and mySource2. void Initialise() { myReader.Connect(CAENRFIDPort.CAENRFID_TCP, readerIP); mySource = myReader.GetSource("Source_0"); if (ant0) { mySource.AddReadPoint("Ant0"); } if (ant1) { mySource.AddReadPoint("Ant1"); } if (ant2) { mySource.AddReadPoint("Ant2"); } if (ant3) { mySource.AddReadPoint("Ant3"); } }
/***************** ** CORE METHODS ** *****************/ // Set up myReader, mySource and mySource2. void Initialise() { myReader.Connect(CAENRFIDPort.CAENRFID_RS232, readerPort); mySource = myReader.GetSource("Source_0"); mySource2 = myReader.GetSource("Source_1"); }
public static M3ClientInitializationStatus Init() { //Берём из реестра данные о соединении и сборке configuration = new ClientConfiguration(); //Сохраняем в реестре новую версию сборки configuration.Build = ClientConfiguration.DefaultBuild; configuration.Save(); //Интернационализация i8n.Init(); i8n.strings.SetLanguage(configuration.Language); web = new RfidWebClient(configuration); try { reader = new CAENRFIDReader(); reader.Connect(CAENRFIDPort.CAENRFID_RS232, "MOC1"); System.Threading.Thread.Sleep(500); M3Client.source = M3Client.reader.GetSources()[0]; } catch (CAENRFIDException e) { return M3ClientInitializationStatus.ReaderNotReady; } if (configuration.Server == String.Empty || configuration.DeviceKey == String.Empty) { return M3ClientInitializationStatus.ClientConfigurationMissing; } return M3ClientInitializationStatus.Ok; }