Scripting - Enable / Disable integrated scanner / RFID / Escape Sequences

Version 12

    Verified Product Versions

    Wavelink Terminal Emulation 7.3Wavelink Terminal Emulation 7.2

    Environment:

    TelnetCE 7.2.x to 7.3.x

     

    The following scripts will allow for the scanner to be turned on or off. Be careful when using these scripts.. if you turn off the scanner do not forget to turn it back on.

     

    * These methods do not work for BT scanners. for BT scanners you need to create a script to intercept the scanned data before it is printed to the screen

     

    Disable Scanner:

     

    Script( Scanner_Disable )

    Activate( From_Menu )

        Escape_Sequence( "%0S" )
        Return

     

    Enable Scanner:

     

    Script( Scanner_Enable )

    Activate( From_Menu )

        Escape_Sequence( "%1S" )
        Return

     

    Enable scan Trigger:

    Script( ScanTrigger_Enable )
    Activate( From_Menu )

        Escape_Sequence( "%6;1S" )
        Return

     

    Disable Scan Trigger:

     

    Script( ScanTrigger_Enable )
    Activate( From_Menu )

        Escape_Sequence( "%6;0S" )
        Return

     

    This type of script is normally used in conjunction with the Screen Reformatter to better handle of when to enable / disable the scanner on particular screens.

     

    Escape Sequence defined:

     

    Sets the scanner to be enabled/disabled after successful scans, where Pb is the bar code type scanned and Ps is the scanner setting to be set:

     

    Pb=0  After no scans (Ps ignored); disables mode

    Pb=1  After all scans

    Pb=2  After 1-D bar code scans

    Pb=3  After 2-D bar code scans

    Pb=4  Return current setting (Ps ignored).  Returns:

              ESC % ? <type> ; <setting> A

     

    Ps=0  Set mode off

    Ps=1  Set mode on

     

    Soft Trigger:

    Pn=6  Soft Trigger.  Disable 6 trigger.

    Pn=6  Soft Trigger.  Enable soft trigger.

    Example:

    ESC % 6 ; 0 S

    ESC % 6 ; 1 S

     

    Custom Sequence:

     

    ESC % Pb ; Ps A

     

    RFID Enable and Disable:

     

    Format: ESC $ Pe ; Pr R

     

    PE=0 Disable RFID

    Pe=1 Enable RFID

    Pe=2 Don't change RFID state

     

    Pr=0 Don't return new state

    Pr=1 Return new state

     

    if Pr=1, it returns ESC $ Pe R

     

    Where Pe=0 if the RFID reader is disabled, or Pe=1 if the RFID reader is enabled

    (The command ESC $ 2; 0 R is valid, but will do nothing)