/// <summary> /// Инициализация сканера Dolphin 6100 /// </summary> /// <returns>Whether initialization was successful</returns> public override bool Initialize() { base.nTermType = TERM_TYPE.HWELL6100; xEng = new DecodeControl(); xEng.DecodeEvent += new DecodeBase.DecodeEventHandler(xEng_DecodeEvent); xEng.TriggerKey = TriggerKeyEnum.TK_ONSCAN; xEng.DecodeMode = DecodeMode.DM_STANDARD; xEng.ScanTimeout = 5000; // Разрешение DATAMATRIX xEng.EnableSymbology(SymID.SYM_DATAMATRIX, true); xEng.AutoScan = true; // WiFi Init //base.WiFi = new HoneyWiFi(); base.WiFi = new HoneyWiFi(30, 22, 164, 18); return(true); }
//public DolphinBarcodeScanner(TERM_TYPE nT) //{ // base.nTermType = nT; //} /// <summary> /// Инициализация сканера Dolphin 7850 /// </summary> /// <returns>Whether initialization was successful</returns> public override bool Initialize() { base.nTermType = TERM_TYPE.DOLPH7850; xEng = new DecodeControl(); xEng.Visible = false; //xEng.DecodeMode = DecodeMode.DM_STANDARD; xEng.DecodeMode = DecodeMode.DM_STANDARD; xEng.ScanTimeout = 5000; xEng.AudioMode = AudioDevice.SND_STD_AND_FRONT; xEng.AutoSounds = true; xEng.AutoLEDs = true; // Разрешение DATAMATRIX xEng.EnableSymbology(SymID.SYM_DATAMATRIX, true); /* * xEng.EnableSymbology(SymID.SYM_EAN13, true); * xEng.EnableSymbology(SymID.SYM_EAN8, true); * xEng.EnableSymbology(SymID.SYM_INT25, true); * xEng.EnableSymbology(SymID.SYM_CODE128, true); */ xEng.DecodeEvent += new DecodeBase.DecodeEventHandler(xEng_DecodeEvent); //SymbologyConfig sc = new SymbologyConfig(SymID.SYM_DATAMATRIX); //sc.ReadConfig(SetupType.ST_CURRENT); //sc.flags |= SymFlags.SYMBOLOGY_ENABLE; //sc.WriteConfig(); // WiFi Init base.WiFi = new DolphinWiFi(); return(true); }