LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 03-24-2004, 04:12 PM   #1
pld
Member
 
Registered: Jun 2003
Location: Southern US
Distribution: Ubuntu 5.10
Posts: 206

Rep: Reputation: 30
Capturing raw mouse data


Hi all,

Just wondering. I want to be able to use the encoders in an old usb ball mouse for some little projects I was going to try out. Maybe even an old optical usb mouse as well.

Anyone with any ideas on how I could log the mouse data as it comes? Is there a particular file I could tail, and then convert the output from?

This is part of a small robotics project that I wanted to goof around with using a secondhand nix box for the controller. Any good websites or tutorials/how-to's would be greatly appreciated!

TIA
 
Old 03-24-2004, 05:02 PM   #2
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 97
Hi.

Try
$ cat /dev/mouse > outfile (you'll have to change the device if it's not a ps2 mouse)

Dave
 
Old 04-11-2004, 11:26 AM   #3
pld
Member
 
Registered: Jun 2003
Location: Southern US
Distribution: Ubuntu 5.10
Posts: 206

Original Poster
Rep: Reputation: 30
thanks, ilikejam,

however, now that i can capture the raw mouse data, I am having issues understanding what I am looking at. Any thoughts on where I can translate the data captured from the mouse and make some sense of it?

tia
 
Old 04-11-2004, 01:54 PM   #4
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 97
Erm, frankly, no.

I can only suggest you capture data from doing very simple (left -> right, up -> down, etc) movements and mouse clicks and looking to see what is generated for each.

You might want to use Emacs to view the data, as programs like 'more' and 'less' etc aren't designed to handle files which could concievably have control characters (stuff like Ctrl-C) in the data.

I'm sure the ps2 signaling specification would be pretty useful, but I can't find it.

Dave
 
Old 04-11-2004, 08:13 PM   #5
pld
Member
 
Registered: Jun 2003
Location: Southern US
Distribution: Ubuntu 5.10
Posts: 206

Original Poster
Rep: Reputation: 30
thanks! i'll google around for the ps2 signaling spec and see what i can dig up. I appreciate the input!
 
  


Reply



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
iwlist vs tethereal in capturing 802.11 wifi ESSID and data rates powah Linux - Wireless Networking 0 11-07-2005 10:21 AM
Capturing FTP data on wireless ravigupta Linux - Wireless Networking 0 04-17-2005 07:24 AM
Raw Syn Packet with Data GodSendDeath Programming 4 04-06-2004 04:53 PM
Raw Packet Data vanibhat Linux - Security 1 08-01-2003 07:42 AM
Capturing tty data to a file svaujin Linux - Newbie 2 04-03-2001 09:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:10 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration