mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Parallel Port: Settings PINs on?
@ 2005-06-01 10:01 Nico Schottelius
  2005-06-01 10:10 ` DervishD
  2005-06-01 10:12 ` Jan-Benedict Glaw
  0 siblings, 2 replies; 4+ messages in thread
From: Nico Schottelius @ 2005-06-01 10:01 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 528 bytes --]

Hello!

Is it possible to select (in userspace) which pins
should be enabled or do I have to write a kernel driver
for that?

I want to switch a light on/off through my parallel port
(attached to a optocoupler, which is attached to an ATX
power supply), so I can control the heat in my
drying chamber for the eggs of my bearded dragon.

Greetings,

Nico

-- 
Keep it simple & stupid, use what's available.
Please use pgp encryption: 8D0E 27A4 is my id.
http://nico.schotteli.us | http://linux.schottelius.org

[-- Attachment #2: Type: application/pgp-signature, Size: 827 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Parallel Port: Settings PINs on?
  2005-06-01 10:01 Parallel Port: Settings PINs on? Nico Schottelius
@ 2005-06-01 10:10 ` DervishD
  2005-06-01 10:13   ` Jan-Benedict Glaw
  2005-06-01 10:12 ` Jan-Benedict Glaw
  1 sibling, 1 reply; 4+ messages in thread
From: DervishD @ 2005-06-01 10:10 UTC (permalink / raw)
  To: Nico Schottelius, linux-kernel

    Hi Nico :)

 * Nico Schottelius <nico-kernel@schottelius.org> dixit:
> Is it possible to select (in userspace) which pins
> should be enabled or do I have to write a kernel driver
> for that?

    Userspace will do. Take a look at programs like 'parapin', 'k74',
'libieee1284', 'libparportled', or similars. Look in FreshMeat. As
far as I know, all them runs in userspace, although you can find some
Linux drivers for performing pin control of parallel port.
 
    Raúl Núñez de Arenas Coronado

-- 
Linux Registered User 88736 | http://www.dervishd.net
http://www.pleyades.net & http://www.gotesdelluna.net
It's my PC and I'll cry if I want to...

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Parallel Port: Settings PINs on?
  2005-06-01 10:01 Parallel Port: Settings PINs on? Nico Schottelius
  2005-06-01 10:10 ` DervishD
@ 2005-06-01 10:12 ` Jan-Benedict Glaw
  1 sibling, 0 replies; 4+ messages in thread
From: Jan-Benedict Glaw @ 2005-06-01 10:12 UTC (permalink / raw)
  To: linux-kernel; +Cc: Nico Schottelius

[-- Attachment #1: Type: text/plain, Size: 961 bytes --]

On Wed, 2005-06-01 12:01:50 +0200, Nico Schottelius <nico-kernel@schottelius.org> wrote:
> Is it possible to select (in userspace) which pins
> should be enabled or do I have to write a kernel driver
> for that?

There's already a driver available for exactly this purpose: ppdev.

At http://lug-owl.de/~jbglaw/software/steckdose/steckdose.c is a program
I wrote for controlling a shift register (serial in, parallel out) with
relays attached (to switch on/off computers or to reset them). This
should help you for a start. (Basically, open/claim the port and set the
bits of the DATA port via an ioctl())

MfG, JBG

-- 
Jan-Benedict Glaw       jbglaw@lug-owl.de    . +49-172-7608481             _ O _
"Eine Freie Meinung in  einem Freien Kopf    | Gegen Zensur | Gegen Krieg  _ _ O
 fuer einen Freien Staat voll Freier Bürger" | im Internet! |   im Irak!   O O O
ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA));

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Parallel Port: Settings PINs on?
  2005-06-01 10:10 ` DervishD
@ 2005-06-01 10:13   ` Jan-Benedict Glaw
  0 siblings, 0 replies; 4+ messages in thread
From: Jan-Benedict Glaw @ 2005-06-01 10:13 UTC (permalink / raw)
  To: Nico Schottelius, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1088 bytes --]

On Wed, 2005-06-01 12:10:22 +0200, DervishD <lkml@dervishd.net> wrote:
>  * Nico Schottelius <nico-kernel@schottelius.org> dixit:
> > Is it possible to select (in userspace) which pins
> > should be enabled or do I have to write a kernel driver
> > for that?
> 
>     Userspace will do. Take a look at programs like 'parapin', 'k74',
> 'libieee1284', 'libparportled', or similars. Look in FreshMeat. As
> far as I know, all them runs in userspace, although you can find some
> Linux drivers for performing pin control of parallel port.

Just for the records: some programs that access the parport use
non-portable inb/outb at PCish I/O addresses to control the parport
line. Though, I haven't checked the programs mentioned above.

MfG, JBG

-- 
Jan-Benedict Glaw       jbglaw@lug-owl.de    . +49-172-7608481             _ O _
"Eine Freie Meinung in  einem Freien Kopf    | Gegen Zensur | Gegen Krieg  _ _ O
 fuer einen Freien Staat voll Freier Bürger" | im Internet! |   im Irak!   O O O
ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA));

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-06-01 10:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-01 10:01 Parallel Port: Settings PINs on? Nico Schottelius
2005-06-01 10:10 ` DervishD
2005-06-01 10:13   ` Jan-Benedict Glaw
2005-06-01 10:12 ` Jan-Benedict Glaw

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®