From: "Tony Howat" <tony@i-r-genius.com>
To: linux-kernel@vger.kernel.org
Subject: Bit by bit parallel port control
Date: Mon, 11 Oct 2004 15:10:13 +0100 [thread overview]
Message-ID: <20041011141018.M62685@i-r-genius.com> (raw)
Hi Everyone,
I'm having problems controlling the parallel port on a bit-on bit-off basis
for a relay switch on a control project.
Linux marmot 2.6.5-1.358 #1 Sat May 8 09:04:50 EDT 2004 i686 athlon i386
GNU/Linux
I have tried using the /dev/port method and putb - I can seemingly set bits
on the port OK. However, checking with a meter shows the line changing for a
few milliseconds then returning to 0v. I need the levels to hold. I believe
that's what SHOULD happen...
I figured the lp module may interfere, so removed that. No help. Currently
lsmod shows:
w83781d 26240 0
i2c_sensor 2176 1 w83781d
i2c_amd756 4484 0
i2c_core 16388 3 w83781d,i2c_sensor,i2c_amd756
autofs4 10624 0
sunrpc 101064 1
forcedeth 10624 0
floppy 47440 0
sg 27552 0
scsi_mod 91344 1 sg
dm_mod 33184 0
ati_remote 9228 0
ohci_hcd 14748 0
button 4504 0
battery 6924 0
asus_acpi 8472 0
ac 3340 0
ext3 102376 3
jbd 40216 1 ext3
Board is an ASUS A72N266VM (nforce based). Build is fedora 2. I'm not
running lpd or X etc. Any suggestions?
There's plenty of sample code around, so I'm pretty confident I'm doing
things right. My test code is here :
http://www.i-r-genius.com/paralleltest.c
I suspect there's something odd going on. I aim to try the code on an older
machine soon.
Any help or pointers appreciated,
--
Tony
next reply other threads:[~2004-10-11 14:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-11 14:10 Tony Howat [this message]
2004-10-11 15:01 ` Jan-Benedict Glaw
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20041011141018.M62685@i-r-genius.com \
--to=tony@i-r-genius.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®