=====================================================================
=               Linux Driver for Counter Input                      =
=                                     API-CNT(LNX)u        Ver5.50  =
=                                                  CONTEC Co.,Ltd.  =
=====================================================================

Index 
=======
  Introduction
  About the Product
  Restrictions
  Note 
  How to install
  Sample programs
  Version up history 


Introduction
===========
  The explanation of API-CNT(LNX)u is described as follows. You must read it because
some contents are not described in help. 

About the Product
===========
- API-CNT(LNX)u supplies the set of functions for controlling our counter board by
  the driver and the shared library in module.

- The basic functionality of setting mode, getting count value, Count-Match interrupt
  and Timer interrupt is provided.

- Setup and use the device to be used by using the setup program (config) and setup files.

- Setup program outputs the setting files, which are easy, migrate to the executing environment,
  start script and stop script. 

- The source code of user interrupt processing which can execute with the driver is supplied.

Restrictions
============
  Please check the help for the supported Linux version of this product.

Note
==========
  To install and setup the driver, it is required to startup with root authority.

How to install 
==================
  Refer to the following help file after extracting the download file.
      contec/ccnt/help/en/ccnt.htm

Sample programs
====================
  The following directories include the sample programs in each language.
  /<User Directory>/contec/ccnt/samples

 The explanation of directory

  /inc
    Include the function define file in C/C++ and Python. 
    When you create the program in C/C++ or Python, include this file.
    And, don't edit this file.
  /gcc/console
    Sample program source code in C language and Makefile.
  /python/console
    Sample program source code in Python language.

Version up history API-CNT(LNX)u
=========================================
  Ver5.41 -> Ver5.50 (Web Release 2026.06)
  --------------------------------
  - New corresponded distribution (x86)
    - Red Hat Enterprise Linux 10.2 (x86_64)
    - Red Hat Enterprise Linux 9.8 (x86_64)
  - Add confirmation distribution (x86)
    - Ubuntu 26.04 LTS (x86_64)
    - Ubuntu 24.04.4 LTS (x86_64)
  - Add confirmation distribution (Raspberry Pi 5)
    - Raspberry Pi OS (64-bit) April 2026
  - Add confirmation distribution (Raspberry Pi 4)
    - Raspberry Pi OS (64-bit) April 2026
    - Raspberry Pi OS (Legacy) (64-bit) April 2026
    - Raspberry Pi OS (Legacy) (32-bit) April 2026
  - Add confirmation distribution (Raspberry Pi 3)
    - Raspberry Pi OS (64-bit) April 2026
    - Raspberry Pi OS (32-bit) April 2026
    - Raspberry Pi OS (Legacy) (64-bit) April 2026
    - Raspberry Pi OS (Legacy) (32-bit) April 2026
  - Removed the driver start script and enabled automatic startup of the device driver.
  - Add support device
    Support device: CPSN-CNT-3201I2
  - The support on the following platforms was terminated
    - DX-U1100, DX-U1100P1
  - The support on the following distributions was terminated (DX-U1100, DX-U1100P1)
    - Ubuntu 18.04.6 LTS  4.9.337-tegra (aarch64), JetPack4.6.5 R32.7.5
    - Ubuntu 18.04.6 LTS  4.9.337-tegra (aarch64), JetPack4.6.4 R32.7.4
    - Ubuntu 18.04.5 LTS  4.9.140-tegra (aarch64), JetPack4.4.1

  Ver5.40 -> Ver5.41 (Web Release 2026.03)
  --------------------------------
  - Fixed a bug in which events occasionally failed to occur correctly on the CPI-CNT-3201I.(Updated the driver and configuration.)

  Ver5.30 -> Ver5.40 (Web Release 2026.01)
  --------------------------------
  - Add support development language
    Support language: Python 3.14
  - The support on the following development languages was terminated
                      Python 3.9
  - The support on the following distributions was terminated (DX-U1220, DX-U1220P1)
    - Ubuntu 18.04.6 LTS  4.9.253-tegra (aarch64), JetPack4.6.2 R32.7.2
  - The support on the following distributions was terminated (DX-U1200, DX-U1200P1, DX-U1210)
    - Ubuntu 20.04.4 LTS  5.10.104-tegra (aarch64), without JetPack R35.1.0
    - Ubuntu 18.04.6 LTS  4.9.253-tegra (aarch64), JetPack4.6.2 R32.7.2
    - Ubuntu 18.04.5 LTS  4.9.253-tegra (aarch64), JetPack4.6 R32.6.1
    - Ubuntu 18.04.5 LTS  4.9.201-tegra (aarch64), JetPack4.5.1 R32.5.2
    - Ubuntu 18.04.5 LTS  4.9.140-tegra (aarch64), JetPack4.4.1
  - The support on the following distributions was terminated (DX-U1100, DX-U1100P1)
    - Ubuntu 18.04.6 LTS  4.9.253-tegra (aarch64), JetPack4.6.2 R32.7.2
    - Ubuntu 18.04.5 LTS  4.9.253-tegra (aarch64), JetPack4.6 R32.6.1
    - Ubuntu 18.04.5 LTS  4.9.201-tegra (aarch64), JetPack4.5.1 R32.5.2

  Ver5.20 -> Ver5.30 (Web Release 2025.10)
  --------------------------------
  - New corresponded distribution
    - Red Hat Enterprise Linux 10.0 (x86_64)
    - Red Hat Enterprise Linux 9.6 (x86_64)
  - Add confirmation distribution (Raspberry Pi 5)
    - Raspberry Pi OS (64-bit) May 2025
  - Add confirmation distribution (Raspberry Pi 3, Raspberry Pi 4)
    - Raspberry Pi OS (64-bit) May 2025
    - Raspberry Pi OS (32-bit) May 2025
    - Raspberry Pi OS (Legacy) (64-bit) May 2025
    - Raspberry Pi OS (Legacy) (32-bit) May 2025
  - Add Python GUI samples

  Ver5.10 -> Ver5.20 (Web Release 2025.06)
  --------------------------------
  - Add confirmation distribution (x86)
    Confirmation distribution: Ubuntu 24.04.2 LTS  6.11.0-17-generic (x86_64)
  - Add confirmation distribution (DX-M2300)
    Confirmation distribution: Ubuntu 22.04.4 LTS  5.15.148-tegra (aarch64), JetPack6.1.0 R36.4.0
  - Add confirmation distribution (DX-U2200, DX-U2100)
    Confirmation distribution: Ubuntu 22.04.4 LTS  5.15.148-tegra (aarch64), JetPack6.1.0 R36.4.0
  - Add confirmation distribution (DX-U1200, DX-U1200P1, DX-U1210)
    Confirmation distribution: Ubuntu 20.04.6 LTS  5.10.192-tegra (aarch64), without JetPack R35.5.0
  - Add confirmation distribution (DX-U1100, DX-U1100P1)
    Confirmation distribution: Ubuntu 18.04.6 LTS  4.9.337-tegra (aarch64), JetPack4.6.5 R32.7.5
  - The support on the following distributions was terminated (x86)
    Ubuntu 20.04 LTS    5.4.0-26-generic (x86_64)
    Ubuntu 18.04.3 LTS  5.0.0-23-generic (x86_64)
    Ubuntu 18.04.1 LTS  4.15.0-29-generic (x86_64)
    Ubuntu 16.04.1 LTS  4.4.0-31-generic (x86_64)
    Ubuntu 16.04.5 LTS  4.15.0-29-generic (i686)
    Ubuntu 16.04.1 LTS  4.4.0-31-generic (i686)
  - The support on the following distributions was terminated (Raspberry Pi  4 Model B)
    Ubuntu 20.04.01 LTS Server  5.4.0-1015-raspi (aarch64)
  - The support on the following distributions was terminated (Raspberry Pi  3 Model B+)
    Ubuntu 20.04.01 LTS Server  5.4.0-1015-raspi (aarch64)
  - Fixed a bug when using CPSN-CNT-3201I that prevented with the CntSetCountMatchEvent function from setting the value of the comparison register.

  Ver5.00 -> Ver5.10 (Web Release 2025.01)
  --------------------------------
  - Add support controller
    Support controller: CPSN-MCB271-1-081
  - Fixed a bug that the CntInit function may end normally when the following devices are not registered by the Configuration.
    Target device: CNT-3204IN-ETH
                   CPSN-CNT-3201I + CPSN-MCB271

  Ver4.90 -> Ver5.00 (Web Release 2024.12)
  --------------------------------
  - Add support development language
    Support language: Python 3.13
  - The support on the following development languages was terminated
                      Python 3.8
  - Add support platform
    - DX-M2300
  - Add confirmation distribution (DX-M2300)
    - Ubuntu 20.04.6 LTS (64-bit)  Kernel 5.10.192-tegra (aarch64)
  - The support on the following distributions was terminated
    - Red Hat Enterprise Linux 7.2 (x86_64)
    - Red Hat Enterprise Linux 7.1 (x86_64)
    - Red Hat Enterprise Linux 7.0 (x86_64)

  Ver4.80 -> Ver4.90 (Web Release 2024.10)
  --------------------------------
  - Add support platform
    - MR4100
  - Add confirmation distribution (MR4100)
    - MIRACLE LINUX 9.0 (64-bit)  Kernel 5.14.0-70.13.1.el9_0.x86_64
  - Add confirmation distribution (DX-U2200)
    - Ubuntu 20.04.6 LTS (64-bit)  Kernel 5.10.192-tegra (aarch64)
  - Add confirmation distribution (DX-U2100)
    - Ubuntu 20.04.6 LTS (64-bit)  Kernel 5.10.192-tegra (aarch64)
  - Add confirmation distribution (DX-U1220, DX-U1220P1)
    - Ubuntu 20.04.6 LTS (64-bit)  Kernel 5.10.192-tegra (aarch64)
    - Ubuntu 20.04.6 LTS (64-bit)  Kernel 5.10.120-tegra (aarch64)
    - Ubuntu 18.04.6 LTS (64-bit)  Kernel 4.9.337-tegra (aarch64)
  - Add confirmation distribution (DX-U1200, DX-U1200P1, DX-U1210)
    - Ubuntu 20.04.6 LTS (64-bit)  Kernel 5.10.120-tegra (aarch64)
    - Ubuntu 18.04.6 LTS (64-bit)  Kernel 4.9.337-tegra (aarch64)
  - Add confirmation distribution (DX-U1100, DX-U1100P1)
    - Ubuntu 18.04.6 LTS (64-bit)  Kernel 4.9.337-tegra (aarch64)
  - Add confirmation distribution (Raspberry Pi 3, Raspberry Pi 4)
    - Raspberry Pi OS (64-bit) March 2024
    - Raspberry Pi OS (32-bit) March 2024
    - Raspberry Pi OS (Legacy) (64-bit) March 2024
    - Raspberry Pi OS (Legacy) (32-bit) March 2024

  Ver4.70 -> Ver4.80 (Web Release 2024.09)
  --------------------------------
  - Add support platform
    - CPI-MS10CM4-2E021
    - CPI-PS10CM4-2E021
  - Fixed a bug that the CPI-CNT-3201I event was not notified on the following operating system
    Target OS:     Raspberry Pi OS March 2024

  Ver4.60 -> Ver4.70 (Web Release 2024.07)
  --------------------------------
  - New corresponded distribution
    - Red Hat Enterprise Linux 9.4 (x86_64)
  - Add confirmation distribution
    - Ubuntu 24.04 LTS (x86_64)
  - Add support platform
    - Raspberry Pi 5
  - Add confirmation distribution (Raspberry Pi 5)
    - Raspberry Pi OS (64-bit) March 2024
  - The support on the following distributions was terminated
    - Red Hat Enterprise Linux 6.7 (x86_64)
    - Red Hat Enterprise Linux 6.7 (i686)
    - Red Hat Enterprise Linux 6.0 (i686)
    - Ubuntu 14.04.3 LTS (x86_64)
    - Ubuntu 14.04.3 LTS (i686)

  Ver4.50 -> Ver4.60 (Web Release 2024.04)
  --------------------------------
  - Add support platform
    - Tinker Board 2
    - Tinker Board 2S
  - Add confirmation distribution (Tinker Board 2, Tinker Board 2S)
    - Debian 11 V3.0.11 (64-bit)  Kernel 5.10.160 (aarch64)
    - Debian 10 V2.1.16 (64-bit)  Kernel 4.19.232 (aarch64)

  Ver4.40 -> Ver4.50 (Web Release 2023.11)
  --------------------------------
  - Add support development language
    Support language:  Python 3.12
  - Add confirmation distribution (DX-U2100, DX-U2200)
    - Ubuntu 20.04.6 LTS (64-bit)  Kernel 5.10.120-tegra (aarch64)
  - Add confirmation distribution
    - Ubuntu 22.04.3 LTS (x86_64)
  - Add support device
    Support device:    CNT-3204IN-ETH

  Ver4.30 -> Ver4.40 (Web Release 2023.09)
  --------------------------------
  - New corresponded distribution
    - Red Hat Enterprise Linux 9.2 (x86_64)
    - Red Hat Enterprise Linux 8.8 (x86_64)
  - Add confirmation distribution(VPC-7000)
    - MIRACLE LINUX 8.6 (64-bit) Kernel 4.18.0-372.9.1.el8.x86_64
  - Add confirmation distribution(VPC-5000-J)
    - MIRACLE LINUX 8.4 (64-bit) Kernel 4.18.0-305.el8.x86_64
  - Add confirmation distribution
    - Raspberry Pi OS (64-bit) May 2023
    - Raspberry Pi OS (32-bit) May 2023
    - Raspberry Pi OS (Legacy) (32-bit) May 2023
  - Add support controller
    Support controller: CPSN-MCB271-1-041

  Ver4.20 -> Ver4.30 (Web Release 2023.05)
  --------------------------------
  - Add support device(Sampling mode is not supported)
    Support device:    CNT-3204MT-LPE
                       CNT32-8M(PCI)
                       CNT32-4MT(LPCI)
  - Fixed a bug that data may not be acquired normally with the CntReadStatusEx function.
    Target device:     CNT-3204IN-USB
  - Change the status acquisition function of the advancedcounter sample to CntReadStatusEx.

  Ver4.10 -> Ver4.20 (Web Release 2023.04)
  --------------------------------
  - Add support device(Sampling mode is not supported)
    Support device:    CNT-3208M-PE

  Ver4.00 -> Ver4.10 (Web Release 2023.03)
  --------------------------------
  - New corresponded distribution
    - Red Hat Enterprise Linux 8.6 (x86_64)
    - Red Hat Enterprise Linux 8.4 (x86_64)
  - Add confirmation distribution
    - Ubuntu 22.04.2 LTS (x86_64)
    - Raspberry Pi OS (64-bit) February 2023
    - Raspberry Pi OS (32-bit) February 2023
    - Raspberry Pi OS (Legacy) (32-bit) February 2023

  Ver3.90 -> Ver4.00 (Web Release 2023.01)
  --------------------------------
  - Add confirmation distribution (DX-U1220, DX-U1220P1)
    - Ubuntu 20.04.4 LTS (64-bit)  Kernel 5.10.104-tegra (aarch64)
    - Ubuntu 18.04.6 LTS (64-bit)  Kernel 4.9.253-tegra (aarch64)
    - Ubuntu 18.04.5 LTS (64-bit)  Kernel 4.9.253-tegra (aarch64)
  - Add confirmation distribution (DX-U1200, DX-U1200P1, DX-U1210)
    - Ubuntu 20.04.4 LTS (64-bit)  Kernel 5.10.104-tegra (aarch64)
    - Ubuntu 18.04.6 LTS (64-bit)  Kernel 4.9.253-tegra (aarch64)
  - Add confirmation distribution (DX-U1100, DX-U1100P1)
    - Ubuntu 18.04.6 LTS (64-bit)  Kernel 4.9.253-tegra (aarch64)

  Ver3.80 -> Ver3.90 (Web Release 2022.11)
  --------------------------------
  - Add support development language
    Support language:  Python 3.11

  Ver3.70 -> Ver3.80 (Web Release 2022.07)
  --------------------------------
  - New corresponded distribution
    - Red Hat Enterprise Linux 9.0 (x86_64)
  - Add confirmation distribution
    - Ubuntu 22.04 LTS (x86_64)
    - Raspberry Pi OS (64-bit) April 2022
    - Raspberry Pi OS (32-bit) April 2022
  - Fixed a bug that I2C-0 area was accessed on platforms other than Raspberry Pi in the configuration.
  - Fixed a bug that CPI series displays that there is no device driver when outputting a diagnostic report.
  - Fixed a bug that a segmentation fault occurs when CntExit is executed twice or more when using two or more CPI series in the same process.

  Ver3.60 -> Ver3.70 (Web Release 2022.05)
  --------------------------------
  - Add confirmation distribution (DX-U1100, DX-U1100P1)
    - Ubuntu 18.04.5 LTS (64-bit)  Kernel 4.9.201-tegra (aarch64)
    - Ubuntu 18.04.5 LTS (64-bit)  Kernel 4.9.253-tegra (aarch64)
  - Add confirmation distribution (DX-U1200, DX-U1200P1, DX-U1210)
    - Ubuntu 18.04.5 LTS (64-bit)  Kernel 4.9.201-tegra (aarch64)
    - Ubuntu 18.04.5 LTS (64-bit)  Kernel 4.9.253-tegra (aarch64)

  Ver3.50 -> Ver3.60 (Web Release 2022.03)
  --------------------------------
  - Add confirmation distribution (Raspberry Pi)
    - Raspberry Pi OS (64-bit) January 2022
    - Raspberry Pi OS (32-bit) January 2022
    - Raspberry Pi OS (Legacy) (32-bit) January 2022
  - Improved the memory usage that increased after Ver.2.50.

  Ver3.40 -> Ver3.50 (Web Release 2022.01)
  --------------------------------
  - Add support development language
    Support language:  Python 3.10
  - Fixed a bug that two or more categories (AIO and DIO, etc.) cannot be used at the same time when the device is accessed via LAN.

  Ver3.30 -> Ver3.40 (Web Release 2021.11)
  --------------------------------
  - Add support device
    Support device:    CPI-CNT-3201I

  Ver3.20 -> Ver3.30 (Web Release 2021.08)
  --------------------------------
  - Add support platform
    - DX-U1200
    - DX-U1200P1
    - DX-U1210
  - Add confirmation distribution (DX-U1200, DX-U1200P1, DX-U1210)
    - Ubuntu 18.04.5 LTS (64-bit)  Kernel 4.9.140-tegra (aarch64)

  Ver3.10 -> Ver3.20 (Web Release 2021.06)
  --------------------------------
  - Add confirmation distribution (Raspberry Pi)
    - Raspberry Pi OS (32-bit) March 2021

  Ver3.00 -> Ver3.10 (Web Release 2021.05)
  --------------------------------
  - Tested on the following distribution.
    Ubuntu 20.04.2 LTS (x86_64)
  - Add diagnostic report function to the Setup Tool.

  Ver2.90 -> Ver3.00 (Web Release 2021.04)
  --------------------------------
  - Add support development language
    Support language: Python 3.9

  Ver2.80 -> Ver2.90 (Web Release 2021.03)
  --------------------------------
  - Add support platform
    - DX-U1100
    - DX-U1100P1
  - Add confirmation distribution (DX-U1100, DX-U1100P1)
    - Ubuntu 18.04.5 LTS (64-bit)  Kernel 4.9.140-tegra (aarch64)

  Ver2.70 -> Ver2.80 (Web Release 2020.12)
  --------------------------------
  - Add support platform
    - Raspberry Pi 3 Model B+
    - Raspberry Pi 4 Model B
  - Add confirmation distribution (Raspberry Pi)
    - Raspberry Pi OS (32-bit) August 2020
    - Ubuntu 20.04.01 LTS Server(64-bit)

  Ver2.60 -> Ver2.70 (Web Release 2020.11)
  --------------------------------
  - Add support device
    Support device:    CPSN-CNT-3201I
  - Add support controller
    Support controller:CPSN-MCB271-S1-041

  Ver2.50 -> Ver2.60 (Web Release 2020.09)
  --------------------------------
  - Add support development language
    Support language: Python 3.8

  Ver2.40 -> Ver2.50 (Web Release)
  --------------------------------
  - Tested on the following distribution.
    Ubuntu 20.04 LTS (x86_64)
  - Addition of the board which can be used
    An additional board CNT-3204IN-USB

  Ver2.30 -> Ver2.40 (Web Release)
  --------------------------------
  - New corresponded distribution
    Red Hat Enterprise Linux 8.0

  - Tested on the following distribution.
    Ubuntu 18.04.3 LTS (x86_64)

  Ver2.20 -> Ver2.30 (Web Release)
  --------------------------------
  - The following board stacked on CPS-BXC200 are added and supported.
    CPS-CNT-3202I

  Ver2.10 -> Ver2.20 (Web Release)
  --------------------------------
  - Tested on the following distributions.
    Ubuntu 16.04.5 LTS (i686)
    Ubuntu 18.04.1 LTS (x86_64)

  Ver2.00 -> Ver2.10 (Web Release)
  --------------------------------
  - Tested on the following distributions.
    Ubuntu 16.04.1 LTS
    Fedora 24

  Ver1.20 -> Ver2.00 (Web Release)
  --------------------------------
  - A part of driver source code is published

  - New corresponded distributions (x86 edition)
    Red Hat Enterprise Linux 6
    Red Hat Enterprise Linux 6.7

  - New corresponded distributions (x64 edition)
    Red Hat Enterprise Linux 6.7
    Red Hat Enterprise Linux 7
    Red Hat Enterprise Linux 7.1
    Red Hat Enterprise Linux 7.2

  - Tested on the following distributions.
    CentOS 7.0-1406
    CentOS 7.2-1511
    Ubuntu 14.04.3 LTS
    Fedora 20

  - The support on the following distributions was terminated
    RedHat Linux 6.2
    RedHat Linux 7.0
    RedHat Linux 7.1
    RedHat Linux 7.2
    RedHat Linux 7.3
    RedHat Linux 8.0
    RedHat Linux 9
    Red Hat Professional Workstation
    TurboLinux   6.0
    TurboLinux   7.0
    TurboLinux   8

  Ver.1.10 -> Ver.1.20 (Ver Apr.2005)
  --------------------------------
  - Addition of the board which can be used
    An additional board CNT24-4(PCI)H, CNT24-4D(PCI)H
  - It corresponds to Red Hat Professional Workstation.
  - Trouble from which the interrupt of Timer might not be notified is corrected.
  - When the load is put on CPU when the interrupt function is used, 
    trouble that might cause the kernel panic is corrected.

  Ver.1.01 -> Ver.1.10 (Web Release)
  --------------------------------
  - It corresponds to Red Hat Linux 8.0 Red Hat Linux 9.

  Ver.1.00 -> Ver.1.01 (Ver. Dec.2002)
  --------------------------------
  - It corrects that the rate of CPU use had become 100% at the time of interruption use.
  - Modify Help

  Ver1.00 (Ver.Dec.2002)
  --------------------------------
  - First release

