Quantcast
Channel: Active questions tagged javascript - Stack Overflow
Viewing all articles
Browse latest Browse all 142382

Datalogic Falcon X3 - Barcode Scanner

$
0
0

I just got the Datalogic Falcon X3+ Barcode Device and got asked, if I could make a javascript application which reads the barcode and send it via sql to a database.

Since I'm not really into C++/C# and the Windows SDK in Visual Studio 2008, I don't know exactly how to start. On the homepage of datalogic I found some ActiveX API examples which are written in javascript for scanning (Memor X3 SDK).

5 files:

  • BARCODE_Identifiers.js
  • SCAN_PARAMENTERS.js
  • jsBarcodeIdDemo.htm
  • jsScanDemo.htm
  • jsScanSetupDemo.htm

BARCODE_Identifiers.js - Excerpt

    var BARCODE_ID_CODE_UNDEFINED=-1;
    var BARCODE_ID_CODE_25_CIP_HR=0;
    var BARCODE_ID_CODE_25_INTERLEAVED=1;
    var BARCODE_ID_CODE_25_INDUSTRIAL=2;

SCAN_PARAMETERS.js - Excerpt

    var SCAN_PARAM_WAVE_FILE=67108864;
    var SCAN_PARAM_TIMEOUT=67108865;
    var SCAN_PARAM_BEEPER_DURATION=67108866;
    var SCAN_PARAM_KEYBOARD_EMULATION=67108871;

jsScanDemo.htm - Excerpt

    //ScanEnable...
    function ScanEnable(sAction)
    {
        if (sAction=="ENABLE")
        {
            DatalogicScanner1.bScanEnabled = true;

            //ENABLE Continuous Mode PARAM ONLY IF READER == PORT REDIRECTOR
            var nReaderType = oScannerSetup.getReaderIdentifier();
            if (nReaderType==SE_READER_PR_CLASS_ID) 
            {
                        oScannerSetup.setParameter(SCAN_PARAM_CONTINUOUS_MODE,SCAN_PARAM_ENABLE);
            }
        }
        else
        {
            //DISABLE Continuous Mode PARAM ONLY IF READER == PORT REDIRECTOR
            var nReaderType = oScannerSetup.getReaderIdentifier();
            if (nReaderType==SE_READER_PR_CLASS_ID) 
            {
                          oScannerSetup.setParameter(SCAN_PARAM_CONTINUOUS_MODE,SCAN_PARAM_DISABLE);
            }

            DatalogicScanner1.bScanEnabled = false;
         }  

        if (DatalogicScanner1.bScanEnabled == true)
        {
            btnSoftTrigger.disabled = false;
            return("DISABLE");
        }

        btnSoftTrigger.disabled = true;
        return("ENABLE");
    }

The initial situation

When scanning a barcode with the Falcon X3+ being in any kind of text form, it doesn't send the decoded barcode as text. Means, that I can't grab the barcode with a keypress event. The Falcon has an application called "decoding" in it's control panel. Only in this application you can see the decoded data.

I couldn't find a setting where you can switch modes into keyboard_emulation = true, or something similar.

What I just tried is putting the example javascript onto a web server and then visiting that .htm-file with the Internet Explorer of the Falcon X3+ (which is included on the Windows CE 6.5). But here I have the same problem - there is no decoded data transmitted.

The Question

Is there anyone out there who already has something simple for the datalogic falcon x3 (maybe even based on javascript?) which I could work with?

Thanks!


Viewing all articles
Browse latest Browse all 142382

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>