LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 02-02-2005, 07:28 AM   #1
khards
LQ Newbie
 
Registered: Aug 2003
Posts: 6

Rep: Reputation: 0
Post Zytronic touch screen driver


Hello,

I have a touch screen made by a company called ZYTRONIC, for a while I have had some files (drivers) kicking around supposidly for redhat 8.1. Basically I dont have much of a clue how to compile them for the linux I am using, SUSE9.1 and would be gratefuull if someone could take a look at them.

Files can be found at:

geocities.com/keithhards2004/lma7.zip

Regards,

Keith Hards.
 
Old 02-03-2005, 07:10 AM   #2
khards
LQ Newbie
 
Registered: Aug 2003
Posts: 6

Original Poster
Rep: Reputation: 0
bump
 
Old 02-08-2005, 07:19 AM   #3
khards
LQ Newbie
 
Registered: Aug 2003
Posts: 6

Original Poster
Rep: Reputation: 0
bump again,
 
Old 02-08-2005, 01:27 PM   #4
prettysmurfed
LQ Newbie
 
Registered: Feb 2005
Posts: 4

Rep: Reputation: 0
Hi Khards

You cannot compile the driver while you don't have the source - but you could try installing the driver with your X windows - the driver you are asking about is a X windows driver.
I have unsuccesfully tried the drivers myself with a zytronic capacitive projection touch screen but I have not given up just yet.
the binstead_drv.so and binstead_dsp.so must be placed in your /usr/X11R6/lib/modules/input, the next step is to connect your touchscreen to your comport # - if you have used comport 1 then the corresponding device file is ttyS0 - if comport 2 then ttyS1, next you must configure your "XF86Config" script probably placed in the /etc/X11/ directory.
Add a new section

Section "InputDevice"
Identifier "TouchScreen1"
Driver "binstead"
Option "Device" "/dev/ttyS0"
Option "DspFile" "/usr/X11R6/lib/modules/input/binstead_dsp.so"
Option "Protocol" "TouchScreen"
EndSection

under "ServerLayout" add

InputDevice "TouchScreen1" "SendCoreEvents"


If you think your screen are using another baudrate than the standard 9600 you could add a Option "BaudRate" "19200" or some other setting of your liking. If you want (not very) verbose debug messages printed to your X console you could add Option "DebugLevel" "1"
If you want to switch between the different input devices on your system you could use xsetpointer
I probably have forgotten some steps involved from when I tried your driver but the above description is the basic steps involved
Hope this helps (It didn't do me any good :-))

Kind regards
Martin
 
Old 02-09-2005, 05:58 PM   #5
khards
LQ Newbie
 
Registered: Aug 2003
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks, I shall give it a try tomorrow on mandrake 9,2 but I dont hold much hope as these drivers are for redhat 8.2 . The link I gave includes some code, but I dont know exactly what this is, any ideas??
 
Old 02-10-2005, 02:52 AM   #6
prettysmurfed
LQ Newbie
 
Registered: Feb 2005
Posts: 4

Rep: Reputation: 0
To answer your first question: I tried the driver on a debian 2.4, with a XFree86 version 4.3.0. I did a "ldd binstead_drv.so" and "ldd binstead_dsp.so" and found no broken dependencies on my system. If you take a closer look at the binstead.c file you will find a reference to the XF86Config-4 file which means the driver will work on a XFree86 4.x server (somebody correct me if i'm wrong). I can't see that you should have a problem using the driver on your system as long as you have the right library files and the correct version of the X server.

The code you supplied contains a headerfile which shows the api layout of the binstead_dsp.so, this information can be utilized if you are linking the .so file directly with some code of your own. Because the design is made flexible separating the X server driver and the datacrunching you can actually interface the touchscreen to some other system than the x window.

The binstead.c file is the X window driver if you succesfully compile this file you will end up with the binstead_drv. In this file you can find which parameters you need to supply when you load the driver in your XF86Config file such as Option "Protocol" "TouchScreen", (this is what I did when i tried your driver).

regards
Martin
 
Old 02-12-2005, 07:47 AM   #7
khards
LQ Newbie
 
Registered: Aug 2003
Posts: 6

Original Poster
Rep: Reputation: 0
I have tried these pre-compiled binarys with no luch, it just crashes X with signall 11, this happens when it loads. I suppose my next step will be to compile the .c files, do you have any idea about a makefile and how to do this?

Cheers,

Keith.
 
Old 02-12-2005, 01:27 PM   #8
prettysmurfed
LQ Newbie
 
Registered: Feb 2005
Posts: 4

Rep: Reputation: 0
You only have one sourcefile - the X11 driver - binstead hasn't been so friendly :-) as to supply the source for the dsp part of the project (probably a company secret as to how the signals are being processed)
I have the following questions:
Have you any more info on the errors supplied from X11?
Zytronic has two types of capacitive touchscreens the normal one and the projected capacitive,
are you sure that the touchscreen are a binstead/zytronic capacitive projected touchscreen?
if you look at the controllerboard does it say "Binstead designs 1999" ?



compiling a shared object file from the binstead.c can be done with the following makescript (make sure your indentation is tab characters or it will not parse)

Code:
CFLAGS  = -Wall -ansi
CC      = gcc
LD      = gcc
LDFLAGS = -shared -Wl,-soname,$(TARGET).so -o
LDLIB   = 
TARGET  = binstead_drv
OBJS    = $(TARGET).o

$(TARGET).so : $(OBJS)
	$(LD)  $(LDFLAGS) $(TARGET).so $(OBJS) $(LDLIB)

%.o: ../%/%.c ../%/%.h
	$(CC) $(CFLAGS) -c ../%/%.c -o ../%/%.o

clean:
	rm -f $(TARGET).so
	rm -f $(TARGET).o
The resulting .so file should be copied to your /usr/X11R6/lib/modules/input
But I don't think this solves your problem, sorry -


go steady
Martin
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Connection between Touch Screen Device Driver and /dev/input/event ... okeyla Linux - Hardware 2 03-05-2006 05:52 AM
touch screen Teus Linux - Software 1 12-04-2004 12:19 PM
3M touch screen driver B0ryz Fedora 0 06-16-2004 12:18 PM
Touch screen driver development for Linux peso Linux - Software 1 02-02-2004 12:15 PM
TOUCH SCREEN tfrye Linux - General 0 04-25-2001 03:04 PM


All times are GMT -5. The time now is 01:47 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration