Solved

segementation fault, digitizer problem

Posted on 1997-08-31
1
294 Views
Last Modified: 2013-12-15
Hi,

Perhaps someone can help me to solve my digitizer problem.

I´m using  a calcomp drawing board III. It is connected to ttyS1(com2)
and works with Linux (Suse4.4). I can use it as a mice for example.
But when I try to use the digitizer in the program ´GRASS - v.digit
(geographic research analysis program)´ I get an error message :
segmentation fault.
I know that the program works fine and I´ve got the right digitizer
driver.
So I assume it is a hardware problem. In my linux box there is an Asus
P55 PCI board.

I tried to change the dram settings in the bios setup with the result
that sometimes appears an other error message when I run the GRASS
program. But this message wasn´t reproducible.

Do you have any suggestion. Perhaps you know a possibility to test the
tty-port when the program and the digitizer try to communicate.

Any hint is helpfull.

Thanks very, very much in advance and I´m sorry for my german-english.

Please reply by email

Christian

kerniebc@sp.zrz.tu-berlin.de
0
Comment
Question by:spyglass
1 Comment
 
LVL 4

Accepted Solution

by:
jlms earned 100 total points
ID: 1629498
The problems with digitizers  are of two kinds: the format of the data and the speed at which the data is sended.

To Isolate the problem follow these steps:

-Identify the format of the data required for your application: you have to check the manual of your program.

-Configure and test the digitizer:
  Check your digitizer's manual. Once you have configured it then test it, use this command:

cat /dev/ttyS1
or
cat /dev/ttyS1 > some_log_file (in case you need an constant stream of data)
and then press buttons and make movements  with the digitizer cursor and check that you are getting the information in the requested format. Be very careful with the cable that connects tha digitizer to your computer, some digitizers demand this cable to be shielded and the shield in contact with the metalic parts around the pins in both connectors. If you get the right format try
and the program still crashes the try changing the speed of the communication, this is particurlarly important if you have a constant stream of data. Check the Linux's setserial command ant how two change the samples/second in your digitizer.

-Check the software: if everything looks all right with the digitizer then try tracing your software. Try using the strace command to follow up the programs acctions. Maybe a permission is not set properly or a file somewhere is missing. Check that you have the exact requirements for your program (kernel version, libraries, X server, etc).
0

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

697 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question