Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Hardware
User Name
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?


  Search this Thread
Old 06-29-2004, 03:05 AM   #1
Mike Yates
LQ Newbie
Registered: Jun 2004
Location: Frome, England
Distribution: Mandrake
Posts: 1

Rep: Reputation: 0
howto monitor i386 serial-port pins?

I want to use the buttons of an old serial mouse (rewired direct to DTR, RTS) to operate some software, independently of the main mouse. I was able to do this in a DOS program (under Win98) using the "Powerbasic" function inp(766) where 766 is 02FE, the actual pins of COM2, accessed via the BIOS.

So far, the nearest I've got in Linux is using "apcupsd", the daemon to monitor APC UPS which, in "dumb" mode, monitors specific pins to activate four scriptable options. Unfortunately (a) it monitors CD and RI, not in a mouse cable, and (b) it only polls every 5 secs. The sources are very complex to patch. It uses many different ioctl() functions, and "#include <sys/iocotl.h>" which I don't have.

Does anyone here know of another monitoring program which could be used to pick up the status of the actual pins? Some "soft LED" monitors seem to pick up carrier-detect (CD, pin 1 of 9) independently, but I can only find X11 ones at present. I could rewire to CD and RI if necessary.


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
Using serial port card(PCMCIA) with IPAQ running Linux, can't find ttyS0 port d2army Linux - Laptop and Netbook 0 11-12-2005 08:07 PM
howto log/monitor port-access? overlord73 Linux - Security 2 04-20-2005 11:22 PM
setting up com port for serial connection to monitor network switch help murf562 Linux - Hardware 1 10-30-2004 09:46 AM
Howto monitor network trafic on specific port MDanger Linux - Networking 2 03-31-2004 01:45 PM
I need a Advance Serial Port Monitor/Rcvr/Log sfingerh Linux - Software 5 04-09-2003 10:47 AM > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 06:50 PM.

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