⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme_e.txt

📁 一份介绍在S3C2410上液晶屏驱动程序的实现
💻 TXT
📖 第 1 页 / 共 2 页
字号:
********************************************************************************************
*                            DMC-Touch-Panel Driver
*
*                            TSC-10/LD Version1.1.2
*
*                            Rev.A    January 7, 2006
*
********************************************************************************************

*DMC Co., Ltd does not provide technical support, a maintenance, etc to this driver software 
 and this document.
 DMC will not be liable for any damage and loss caused by the use of this software. DMC will
 not be liable for any type of compensation.
 This software is subject to change without notice.

********************************************************************************************
1.OUTLINE
********************************************************************************************
	The TSC-10/LD mouse emulation software lets you use our touch screen controller,
	the TSC-10/IC and TSC-20/IC just as though you were using a mouse by operating 
	the touch screen.
	Mouse operation is emulated as a xinput driver of XWindow system.
	This book is an instructions manual of setting programs, such as a driver and
	a calibration, etc.

	By XF86Config setting, operation by either USB or RS-232C communication is possible.

	丒USB
		+----------------------------------------------+
		|     丂丂丂丂       XWindow                   |
		+-------------------------------------+        |
		|     XINPUT driver  dmc_drv.o        |        |
		+-------------------------------------+--------+
		|                       OS                     |
		+-------------------------------------+        |
		|     usb driver      usbdmc.o        |  <--In Kernel2.6, it is usbdmc.ko
		+-------------------------------------+--------+
		|                       HW                     |
		+----------------------------------------------+
	
	丒RS-232C
		+----------------------------------------------+
		|     丂丂丂丂       XWindow                   |
		+-------------------------------------+        |
		|     XINPUT driver  dmc_drv.o        |        |
		+-------------------------------------+--------+
		|                       OS                     |
		+-------------------------------------+        |
		|          RS-232C driver             |        |
		+-------------------------------------+--------+
		|                       HW                     |
		+----------------------------------------------+
	
		*RS-232C driver can communicate by the tty driver of OS attachment.

********************************************************************************************
2.SPEC
********************************************************************************************
	Correspondence
		USB (USB Specification 1.1 Low Speed)
		Asynchronous Serial (RS-232C)

	Setting program
		(1)Calibration
			2/3/4/5/9 points
		(2)Coordinate output rate (point/sec)
			30 p/s
			50 p/s
			80 p/s
			100 p/s
			130 p/s
			150 p/s
		(3)Beep sound
			Touch down beep ON/OFF
			Touch up beep ON/OFF

	XINPUT Driver
		(1)By the xinput specification driver of a XWindow system, touch input
		   is outputted as mouse input. Of course, the concurrent use with 
		   a mouse is possible.
		(2)A calibration data is saved in following order.
			EEPROM on a controller
			"dmc_calib.dat" file
		     *Error data are disregarded.
		(3)The "dmc_calib.dat" file can be specified with a directory in XF86Config.
		(4)When a driver (XWindow) starts up, calibration data are read
		   in following order.
			"dmc_calib.dat" file
			EEPROM on a controller
		     *It is used giving priority to the data in EEPROM.
	USB Driver
		(1)The USB driver is used from a XINPUT driver.
			You have to load the USB driver, before starting XWindow.
		(2)Since the USB driver is a kernel driver, it is dependent on a kernel 
		   version.
			Therefore, it is necessary to recompile the USB driver in usage's 
			environment.

********************************************************************************************
3.Development / Checking of operations environment
********************************************************************************************
	Development environment
		CPU		AthlonXP
		Distribution	Vine2.6r4
		Kernel		Kernel-2.4.22-0vl2.10-i686
	Checking environment
		CPU		x86 architecture
				  Pentium 4
				  AthlonXP
	                	  ViaC3
		--------+------------------------------
			| kernel	XWindow
		--------+------------------------------
		Vine2.6 | 2.4.22	4.2.0
		Vine3.1 | 2.4.27	6.7.0
		Redhat8	| 2.4.18-14	4.2.0
		Redhat9 | 2.4.20-8	4.3.0
		Fedora3	| 2.6.9		6.8.1
		Fedora4	| 2.6.11	6.8.2
		---------------------------------------
		*Re-conpile is required for a USB driver.
		*When compiling a XINPUT driver on Redhat 8, it is necessary to remove
		 the following comment.
			MODULE_GCC_FLAGS=#-fno-merge-constants

********************************************************************************************
4.Exposition of file
********************************************************************************************
	Please expand tpxxxxxx.tgz by the arbitrary directories on Linux.
	The contents are as follows.

	   [TSC10LD_Vxxx] 		<---'xxx' is a version number
	     |
	     +-- XF86Config             XF86Config sample
	     +-- dmc_calib.dat          Initial data sample of a calibration
	     +-- objinstall             The batch file for object installation
	     +-- [driver]               --- Driver directory ---
	     |      |
	     |      +-- makefile
	     |      +-- xf86DMC.h       Driver header
	     |      +-- xf86DMC.c       Driver source
	     |      +-- dmc_drv.o       Driver
	     |
	     +-- [usb]			--- USB driver directory (kernel 2.4) ---
	     |	    |
	     |	    +-- makefile
	     |      +-- <usbdmc.h>      Driver header:usb26/usbdmc.h is used.
	     |      +-- <usbdmc.c>      Driver source:usb26/usbdmc.c is used.
	     |      +-- usbdmc.o        Driver
	     |
	     +-- [usb26]		--- USB driver directory (kernel 2.6) ---
	     |	    |
	     |	    +-- makefile
	     |      +-- usbdmc.h        Driver header
	     |      +-- usbdmc.c        Driver source
	     |      +-- usbdmc.o        Driver
	     |
	     +-- [tbctl]                --- Setting program directory ---
	            |
	            +-- makefile
	            +-- tb.h            header
	            +-- tbctl.c         Main program source
	            +-- tbcalib.c       Calibration program source
	            +-- tbtest.c        Touch input trace test program source
	            +-- tbselector.c    Button selector program source
	            +-- ulib.c          Library for XWindow
	            +-- xilib.c         xinput interface library
	            +-- tbctl           Main execution object
	            +-- tbcalib         Calibration execution object
	            +-- tbtest          Touch input trace test execution object
	            +-- tbselector      Button selector execution object

********************************************************************************************
5.Execution
********************************************************************************************
	It is also possible to use an object as it is without compiling,if it is 
	the same environment as the above development environment.
	It will operate, if the version and CPU of XWindow are the same.
	Please refer to a remarks 2, when compile is required.

	*Operate by root user.

	(1)In USB operation, USB device is created and it loads USB driver.
		kernel2.4
			$ cd /dev/usb
			$ mknod dmc0 c 180 181             ...create device
			$ cd <install-TSC10LD_Vxxx>/usb
			$ insmod usbdmc.o                  ...load
	  	kernel2.6 (It is not necessary to create the device)
			$ cd <install-TSC10LD_Vxxx>/usb26
			$ insmod usbdmc.ko                 ...load

	(2)Please copy the object in the uncompressed file to a predetermined directory.
	   A batch file named "objinstall" is prepared.

			object            	directory
			----------------------------------------------------------
			dmc_drv.o               /usr/X111R6/lib/modules/input
			tbctl                   /usr/X11R6/bin
			tbcalib                 /usr/X11R6/bin
			tbtest                  /usr/X11R6/bin
			tbselector              /usr/X11R6/bin

		*If tbctl, tbcalib, tbtest, and tbselector are directory which specify 
		 the execution pass, they do not need to be /usr/X11R6/bin.

	(3)Please refer to XF86Config and correct /etc/X11/XF86Config.

	   *It will correct /etc/X11/XF86Config-4 if it is Vine2.6.
	    That is, please correct XF86Config which XWindow uses.

	  Registration as a pointer device.
	   		Section "ServerLayout"
			   Identifier     "Anaconda Configured"
			   Screen         0  "Screen0" 0 0
			   InputDevice    "Mouse0" "CorePointer"
			   InputDevice    "Mouse1" "SendCoreEvents"    <--- Addition
			   InputDevice    "Keyboard0" "CoreKeyboard"
			EndSection

	   USB=Device is added.
		kernel2.4
		  Section "InputDevice"
		    Identifier  "Touch"
		    Driver      "dmc"
		    Option      "USB"  "1"
		    Option      "Device"  "/dev/usb/dmc0" ...The device name created by (1)
		    Option      "SaveFile" "/etc/X11/dmc_calib.dat"
		  EndSection
		kernel2.6
		  Section "InputDevice"
		    Identifier  "Touch"
		    Driver      "dmc"
		    Option      "USB"  "1"
		    Option      "Device"  "/dev/dmc0"    ...The device name created by (1)			    Option      "SaveFile" "/etc/X11/dmc_calib.dat"
		  EndSection
			
	    RS-232C=Device is added
		  Section "InputDevice"
		    Identifier  "Touch"
		    Driver      "dmc"
		    Option      "Device"  "/dev/ttyS0"   ...Connection serial port
		    Option      "SaveFile" "/etc/X11/dmc_calib.dat"
		  EndSection

	(4)Please copy dmc_calib.dat in the uncompressed file to /etc/X11.
	   And, correct if needed.
	   Please refer to a remarks 1 for details.

			# ---------------------------------
			# DMC-Touch-Panel setup
			# ---------------------------------
			PenDownBeep  1
			PenUpBeep    1
			SamplingRate 0
			# ---------------------------------
			# raw data
			# ---------------------------------
			RawX0   56
			RawY0   65
			RawX1   919
			RawY1   929
			# ---------------------------------
			# calibration data
			# ---------------------------------
			CalX0   25
			CalY0   25
			CalX1   999
			CalY1   743

	(5)If XWindow is restarted, a driver will operate.
	   *When a touch screen does not operate, the power source of a touch screen
	    controller is re-switched on and please restart a system.

	(6)If touch input is possible, in "$tbctl", please start a setting program and
	   perform the calibration of a touch screen.

********************************************************************************************
6.Setting program
********************************************************************************************
	6-1.tbctl
		Executing of "tbctl" displays the following main windows.
		Each button is clicked and each function is performed.

	             +----------------------------------------------------+
	             | TSC-10/LD Control Main                             |
	             +----------------------------------------------------+
	             |                                         Ver1.x.x   |
	             | < Sampling Rate >        < Sound >                 | 
	             |    仜  30 p/s         仩 Touch Down Beep on        |
	             |    仜  50 p/s         仩 Touch Up Beep on          |
	             |    仜  80 p/s                                      |
	             |    仜 100 p/s                                      |
	             |    仜 130 p/s                                      |
	             |    仜 150 p/s                                      |
		     | +---------------------+ +------------------------+ |
		     | |        Apply        | |       Test...        	| |
		     | +---------------------+ +------------------------+ |
		     | +---------------------+				  |
		     | |    Run Selector     |				  |
		     | +---------------------+				  |
		     |							  |
		     | < Calibration Points > < Calibration Time Out >    |
	             |    仜 2 point            仜 10 sec                 |
	             |    仜 3 point            仜 20 sec                 |
	             |    仜 4 point            仜 60 sec                 |
	             |    仜 5 point					  |
		     |	  仜 9 point					  |
	             | +------------------------------------------------+ |
	             | |               Calibration...                   | |
	             | +------------------------------------------------+ |
		     +----------------------------------------------------+

		< Sampling Rate >
		Coordinate output rate. (point/sec)

		< Sound >
		Enable or disable the Sound option that accompanies simulated touch screen
		presses.

		< Apply >
		Applies all changes.

		< Test >
		Invokes the pointing device test utility. (tbtest)

		< Run Selector >
		Invokes button selector utility. (tbselector)

		< Calibration Points >
		Specifies the number of calibration points to be used. (Now "2 points" only)

		< Calibration Time Out >
		Indicates the calibration timeout value if the calibration point is not
		touched within the specified period. Defined in seconds.

		< Calibration >
		Invokes the calibration procedure. (tbcalib)

	6-2.tbcalib
		Once invoked the calibration screen is displayed requesting that
		each calibration point be selected in turn.

         +----------------------------------------------------------------------+
         | 亄                                                                   |

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -