===================================================================
=                CONTEC Backlight Control Utility                 =
=                                                       Ver 1.01  =
=                                                       Feb.2021  =
=                                                CONTEC Co.,Ltd.  =
===================================================================

Contents
============================
  Introduction
  Support products
  Support OS
  Limitations
  To install 
  To Uninstall 
  About this utility
  API functions (CoBkCtrlDLL.dll)
  Sample programs
  History of Revisions

Introduction
============================
  Thank you for your continued patronage.
  This utility is a utility (sample, tool, etc.) 
  for customers to use the control of the LCD backlight 
  installed in the product more easily.

Support products
============================
  CONTEC Manager utility supports the following products.
   - Panel-PC Series
     - PT-V10WB
     - PT-V18

Support OS
============================
  - Windows 10 64bit
  - Windows 10 IoT Enterprise 2019 LTSC 64bit

Limitations
============================
  - Depending on your enviroment,
    "Microsoft Visual C++ 2017 redistributable package"
    is required. Please perform the download from Microsoft Web site.

  - Be sure to log in as an administrator when you install.

  - You might not be able to start the application for the UAC feature.
    (A confirmation dialog or password request dialog etc displayed)
    By performing a change settings related to security of the OS side, 
    or a promotion the execution privileges of the application, 
    you may be able to avoid the confirmation screen or 
    password at run time.

  - If this utility already installed, 
    please show "To Uninstall" ,
    please uninstall and start the installation.

  - If the function setting is enabled in the brightness initialization service 
    of this utility, the brightness setting will be reflected in the set value when 
    the service is started after the OS is started.

To install
============================
  1. Please unzipping the compressed file to any location.

  2. Follow the steps below to install the [CONTEC LCD Control Device] driver.

    (1) Press the [Win] key + [R] key to disaplay "Run" dialog.
    (2) Enter "hdwwiz.exe" to dispaly "Add Hardware" dialog. 
        Press [Next].
    (3) Select "Install the hardware that I manually select 
        from a list (Advanced)".
    (4) Press [Next]. Press [Have Disk] to disaplay "Install From Disk"
        dialog.
    (5) Press [Browse...] to display "Locate File" dialog.
    
        Specify the folder to unzip to ".\Drivers\Windows10\amd64\CoLcdCtrl.inf".
        Install the [[CONTEC LCD Ctrl Device] driver according to 
        the displayed contents.

  3. Run ".\Utility\Setup.exe" with the Administrator and follow 
     the instructions displayed on the screen to complete the
     installation process.

  4. For installation complete, you must reboot.

To Uninstall
============================
   Please uninstall the following procedure

   [Start]-[Control Panel]-[Programs]-[Programs and Features]-
   [CONTEC Backlight Control Utility]

   notes:
    Follow the steps below to uninstall [CONTEC LCD Ctrl Device].

    (1) Press the [Win] key + [R] key to disaplay "Run" dialog.
    (2) Enter "mmc devmgmt.msc" to dispaly "Device Manager" dialog. 
    (3) Select "System devices" -> "CONTEC LCD Ctrl Device". 
    (4) Right click and click "Uninstall" to display 
        "Confirm Device Uninstall" dialog.
        Please check "Delete the driver software for this device." 
        and Press [OK] button to complete the uninstallation.
 
About this utility
============================
  - About the setting utility (Backlight Control Utility)
     You can use the setting utility to set the operation settings (function enable/disable, 
     brightness Initialization value) of the brightness initialization service at startup.
     Below, it will be registered in the start menu.
     [Start] - [CONTEC Backlight Control Utility] - [Backlight Control Utility]
    
  - Brightness initialization service
     Luminance initialization is performed by the Luminance Initialization Service.
     When the initialization function setting is enabled, the brightness setting is reflected in 
     the setting value when the service is started after the OS is started.
     Until the setting is reflected, the brightness set in the BIOS will be used.

API functions (CoBkCtrlDLL.dll)
============================
  - Brightness initialization service settings
    - BOOL BKL_GetBrightnessInit(PDWORD Setting, PDWORD initval);
      Gets the service settings.
      - param
        - PDWORD Setting
          1 : Enable
          0 : Disable
        - PDWORD initval
          A brightness value is returned with a value of 0-100[%].
      - return
        TRUE on success, FALSE on failure

    - BOOL BKL_SetBrightnessInit(DWORD Setting, DWORD initval);
      Set the service settings.
      - param
        - DWORD Setting
          1 : Enable
          0 : Disable
        - DWORD initval
          Enter a brightness value with a value of 0-100[%].
      - return
        TRUE on success, FALSE on failure

  - Backlight brightness operation
    - BOOL BKL_SetBrightness(DWORD level);
      Set the brightness in the range of 0-100[%].
      - param
        - DWORD level
          Enter a brightness value with a value of 0-100[%].
      - return
        TRUE on success, FALSE on failure

    - BOOL BKL_GetBrightness(PDWORD level);
      Gets the brightness with a value of 0-100 [%].
      - param
        - PDWORD level
        The brightness is returned as 0-100 [%].
      - return
        TRUE on success, FALSE on failure

  - Backlight brightness operation (For TPBK(PC)S API function compatibility)
    - BOOL BKL_BrightnessDown(PVOID pv);
      Decreases the degree from the current brightness (default:5[%]).
      - param
        - PVOID pv
         Specify NULL: The default value of 5 Reduces the brightness.
         Enter a value with DWORD: Decrease the brightness according to the input value.
      - return
        TRUE on success, FALSE on failure

    - BOOL BKL_BrightnessUp(PVOID pv);
      Increases the brightness from the current brightness (default:5[%]).
      - param
        - PVOID pv
        Specify NULL: The default value of 5 Increases the brightness.
         Enter a value with DWORD: Increases the brightness according to the input value.
      - return
        TRUE on success, FALSE on failure

    - BOOL BKL_BkOn();
      Turn on the backlight.
      - return
        TRUE on success, FALSE on failure

    - BOOL BKL_BkOff();
      Turn off the backlight.
      - return
        TRUE on success, FALSE on failure

Sample programs
============================
A sample program using API functions (CoBkCtrlDLL.dll) is attached.
Regarding turning off the display of the sample program, it depends on the API and
Includes those that perform similar operations by setting the display state on the system.
In addition, a sample for tpui.dll compatible DLL of TPBK (PC) S and an execution sample are attached.

 .\Sample
  ├─include ... header files
  ├─lib ... .lib file
  ├─sample_app
  │  ├─VB2017 ... visual basic sample (visual studio 2017)
  │  ├─VC2017 ... visual C++ sample (visual studio 2017)
  │  └─VCS2017 ... visual C# sample (visual studio 2017)
  └─TTPBK(PC)S_compatible_dll
      └─tpui_compatible_dll
          ├─tpui_compatible_dll ... Sample DLL for tpui.dll function compatibility (visual studio 2017)
          ├─vb ... visual basic sample (visual studio 2017)
          └─vc ... visual C++ sample (visual studio 2017)

The TPBK(PC) tpui.dll compatible DLL functions include the following backlight operation functions.
  - void BKON(void);
    Turn on the backlight.
    Wrapper function for the BKL_BkOn() function.
  - void BKOFF(void);
    Turn off the backlight.
    Wrapper function for the BKL_BkOff() function.
  - void BRUPS(void);
    Use the BKL_SetBrightness(DWORD level) and BKL_SetBrightnessInit(DWORD Setting, DWORD initval)
    functions to change the brightness and set the service.
  - void BRDOWNS(void);
    Use the BKL_SetBrightness(DWORD level) and BKL_SetBrightnessInit(DWORD Setting, DWORD initval) 
    functions to change the brightness and set the service.

History of Revisions  
============================
  Ver1.01          (Feb.2021)
  -----------------
  - Added support products(PT-V18)
  Ver1.00          (Oct.2020)
  -----------------
  - First release
  - Supports PT-V10WB

<<------------------------------------------------------------------
  Microsoft, Windows are trademarks of Microsoft Corporation 
  in the U. S. A.
  and other countries where Microsoft has operations. 
  Other company names and product names mentioned in this document
  are trademarks or registered trademarks of respective owners.
-------------------------------------------------------------------->>