* [Xenomai-help] real-time parallel port communication
@ 2009-11-05 5:05 Peter Pastor
2009-11-05 7:39 ` Remco den Breeje
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Peter Pastor @ 2009-11-05 5:05 UTC (permalink / raw)
To: xenomai
[-- Attachment #1: Type: text/plain, Size: 432 bytes --]
Hello there,
I need to get real-time communication over a parallel port working. I got
the serial port to run in real-time using the drivers provided by xenomai.
However, I haven't found similar drivers for the parallel port yet. Does the
new analogy branch contain real-time drivers for the parallel port ??
I would be happy for any hints. Also, would be cool if somebody could point
me to some example programs.
Thanks,
peter
[-- Attachment #2: Type: text/html, Size: 464 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Xenomai-help] real-time parallel port communication
2009-11-05 5:05 [Xenomai-help] real-time parallel port communication Peter Pastor
@ 2009-11-05 7:39 ` Remco den Breeje
2009-11-05 8:47 ` Jan Kiszka
2009-11-05 9:01 ` Alexis Berlemont
2009-11-05 14:21 ` Pierre Ficheux
2 siblings, 1 reply; 8+ messages in thread
From: Remco den Breeje @ 2009-11-05 7:39 UTC (permalink / raw)
To: Peter Pastor; +Cc: xenomai
On Thu, Nov 5, 2009 at 6:05 AM, Peter Pastor <peter.pastor@domain.hid> wrote:
> Hello there,
>
> I need to get real-time communication over a parallel port working. I got
> the serial port to run in real-time using the drivers provided by xenomai.
> However, I haven't found similar drivers for the parallel port yet. Does the
> new analogy branch contain real-time drivers for the parallel port ??
>
> I would be happy for any hints. Also, would be cool if somebody could point
> me to some example programs.
>
> Thanks,
> peter
>
outb(char, 0x378) works for me. Or do you need something more fancy?
Cheers,
Remco den Breeje
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Xenomai-help] real-time parallel port communication
2009-11-05 7:39 ` Remco den Breeje
@ 2009-11-05 8:47 ` Jan Kiszka
0 siblings, 0 replies; 8+ messages in thread
From: Jan Kiszka @ 2009-11-05 8:47 UTC (permalink / raw)
To: Remco den Breeje; +Cc: xenomai, Peter Pastor
[-- Attachment #1: Type: text/plain, Size: 900 bytes --]
Remco den Breeje wrote:
> On Thu, Nov 5, 2009 at 6:05 AM, Peter Pastor <peter.pastor@domain.hid> wrote:
>> Hello there,
>>
>> I need to get real-time communication over a parallel port working. I got
>> the serial port to run in real-time using the drivers provided by xenomai.
>> However, I haven't found similar drivers for the parallel port yet. Does the
>> new analogy branch contain real-time drivers for the parallel port ??
>>
>> I would be happy for any hints. Also, would be cool if somebody could point
>> me to some example programs.
>>
>> Thanks,
>> peter
>>
>
> outb(char, 0x378) works for me. Or do you need something more fancy?
Interrupt handling, I bet. User space drivers are feasible, but can have
poor re-use factors.
I think the key to a parallel port driver is an RTDM device profile that
matches more than one use case. Suggestions welcome.
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 257 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Xenomai-help] real-time parallel port communication
2009-11-05 5:05 [Xenomai-help] real-time parallel port communication Peter Pastor
2009-11-05 7:39 ` Remco den Breeje
@ 2009-11-05 9:01 ` Alexis Berlemont
2009-11-05 9:24 ` peter.pastor
2009-11-05 14:21 ` Pierre Ficheux
2 siblings, 1 reply; 8+ messages in thread
From: Alexis Berlemont @ 2009-11-05 9:01 UTC (permalink / raw)
To: Peter Pastor; +Cc: xenomai
Hi,
On Thu, Nov 5, 2009 at 6:05 AM, Peter Pastor <peter.pastor@domain.hid> wrote:
> Hello there,
>
> I need to get real-time communication over a parallel port working. I got
> the serial port to run in real-time using the drivers provided by xenomai.
> However, I haven't found similar drivers for the parallel port yet. Does the
> new analogy branch contain real-time drivers for the parallel port ??
No. But there is a comedi driver for the parallel port. That would not
take too long to convert it for analogy.
Does the comedi driver suit your need ?
> I would be happy for any hints. Also, would be cool if somebody could point
> me to some example programs.
>
> Thanks,
> peter
>
Alexis.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Xenomai-help] real-time parallel port communication
2009-11-05 9:01 ` Alexis Berlemont
@ 2009-11-05 9:24 ` peter.pastor
2009-11-08 15:13 ` Alexis Berlemont
0 siblings, 1 reply; 8+ messages in thread
From: peter.pastor @ 2009-11-05 9:24 UTC (permalink / raw)
To: Alexis Berlemont, Peter Pastor; +Cc: xenomai
[-- Attachment #1: Type: text/plain, Size: 1187 bytes --]
Hey Alexis,
Thanks for the response !!
> Does the comedi driver suit your need ?
I actually can't tell since I haven't tried it out. I will try whether outb
does the job. However, it would be really cool if you could port the comedi
driver for the parallel port to analogy (hope this does not take too long).
Thanks a lot,
Peter
On Nov 5, 2009 1:01am, Alexis Berlemont <berlemont.hauw@domain.hid> wrote:
> Hi,
> On Thu, Nov 5, 2009 at 6:05 AM, Peter Pastor peter.pastor@domain.hid>
> wrote:
> > Hello there,
> >
> > I need to get real-time communication over a parallel port working. I
> got
> > the serial port to run in real-time using the drivers provided by
> xenomai.
> > However, I haven't found similar drivers for the parallel port yet.
> Does the
> > new analogy branch contain real-time drivers for the parallel port ??
> No. But there is a comedi driver for the parallel port. That would not
> take too long to convert it for analogy.
> Does the comedi driver suit your need ?
> > I would be happy for any hints. Also, would be cool if somebody could
> point
> > me to some example programs.
> >
> > Thanks,
> > peter
> >
> Alexis.
[-- Attachment #2: Type: text/html, Size: 1677 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Xenomai-help] real-time parallel port communication
2009-11-05 5:05 [Xenomai-help] real-time parallel port communication Peter Pastor
2009-11-05 7:39 ` Remco den Breeje
2009-11-05 9:01 ` Alexis Berlemont
@ 2009-11-05 14:21 ` Pierre Ficheux
2 siblings, 0 replies; 8+ messages in thread
From: Pierre Ficheux @ 2009-11-05 14:21 UTC (permalink / raw)
To: xenomai
Peter Pastor a écrit :
> Hello there,
>
> I need to get real-time communication over a parallel port working. I
> got the serial port to run in real-time using the drivers provided by
> xenomai. However, I haven't found similar drivers for the parallel port
> yet. Does the new analogy branch contain real-time drivers for the
> parallel port ??
>
> I would be happy for any hints. Also, would be cool if somebody could
> point me to some example programs.
>
I wrote a sample RTDM driver based on outb (char, 0x378). What do you
want to do with // port? input? output? interrupt? somthing like old
style "Centronics" ?
regards
--
Pierre FICHEUX -/- CTO OW/OS4I, France -\- pierre.ficheux@domain.hid
http://www.os4i.com
http://www.ficheux.org
I would love to change the world, but they won't give me the source code
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Xenomai-help] real-time parallel port communication
2009-11-05 9:24 ` peter.pastor
@ 2009-11-08 15:13 ` Alexis Berlemont
0 siblings, 0 replies; 8+ messages in thread
From: Alexis Berlemont @ 2009-11-08 15:13 UTC (permalink / raw)
To: peter.pastor; +Cc: xenomai
Hi,
On Thursday 05 November 2009 10:24:17 peter.pastor@domain.hid wrote:
> Hey Alexis,
>
> Thanks for the response !!
>
> > Does the comedi driver suit your need ?
>
> I actually can't tell since I haven't tried it out. I will try whether outb
> does the job. However, it would be really cool if you could port the comedi
> driver for the parallel port to analogy (hope this does not take too long).
I integrated the parport driver into analogy. So far, the driver is only
available in my git repository (branch: analogy).
This driver is quite peculiar even within the comedi drivers set. The way the
instructions "config" are handled is different from other drivers. That means
that your user app must setup instructions' data differently according to the
driver it uses. I think it should be not left like this; I will fix that.
However, The driver is functional. You can use it. That would be nice to send
some feedback.
Here is the "analoy_config" command to attach it:
# analogy_config analogy0 analogy_parport 0x378,7
Here are some notes located in the sources; they will help you:
A cheap and easy way to get a few more digital I/O lines. Steal
additional parallel ports from old computers or your neighbors'
computers.
Option list:
0: I/O port base for the parallel port.
1: IRQ
Parallel Port Lines:
pin subdev chan aka
--- ------ ---- ---
1 2 0 strobe
2 0 0 data 0
3 0 1 data 1
4 0 2 data 2
5 0 3 data 3
6 0 4 data 4
7 0 5 data 5
8 0 6 data 6
9 0 7 data 7
10 1 3 acknowledge
11 1 4 busy
12 1 2 output
13 1 1 printer selected
14 2 1 auto LF
15 1 0 error
16 2 2 init
17 2 3 select printer
18-25 ground
Notes:
Subdevices 0 is digital I/O, subdevice 1 is digital input, and
subdevice 2 is digital output. Unlike other Analogy devices,
subdevice 0 defaults to output.
Pins 13 and 14 are inverted once by Analogy and once by the
hardware, thus cancelling the effect.
Pin 1 is a strobe, thus acts like one. There's no way in software
to change this, at least on a standard parallel port.
Subdevice 3 pretends to be a digital input subdevice, but it always
returns 0 when read. However, if you run a command with
scan_begin_src=TRIG_EXT, it uses pin 10 as a external triggering
pin, which can be used to wake up tasks.
see http://www.beyondlogic.org/ for information.
or http://www.linux-magazin.de/ausgabe/1999/10/IO/io.html
> Thanks a lot,
> Peter
>
> On Nov 5, 2009 1:01am, Alexis Berlemont <berlemont.hauw@domain.hid> wrote:
> > Hi,
> >
> >
> >
> > On Thu, Nov 5, 2009 at 6:05 AM, Peter Pastor peter.pastor@domain.hid>
> >
> > wrote:
> > > Hello there,
> > >
> > >
> > >
> > > I need to get real-time communication over a parallel port working. I
> >
> > got
> >
> > > the serial port to run in real-time using the drivers provided by
> >
> > xenomai.
> >
> > > However, I haven't found similar drivers for the parallel port yet.
> >
> > Does the
> >
> > > new analogy branch contain real-time drivers for the parallel port ??
> >
> > No. But there is a comedi driver for the parallel port. That would not
> >
> > take too long to convert it for analogy.
> >
> >
> >
> > Does the comedi driver suit your need ?
> >
> > > I would be happy for any hints. Also, would be cool if somebody could
> >
> > point
> >
> > > me to some example programs.
> > >
> > >
> > >
> > > Thanks,
> > >
> > > peter
> >
> > Alexis.
>
Alexis.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Xenomai-help] real-time parallel port communication
@ 2009-11-06 16:44 Peter Pastor
0 siblings, 0 replies; 8+ messages in thread
From: Peter Pastor @ 2009-11-06 16:44 UTC (permalink / raw)
To: xenomai, pierre.ficheux
[-- Attachment #1: Type: text/plain, Size: 842 bytes --]
Hey Pierre,
I need the parallel port driver to do input/output at a relatively high
frequency. In case your driver is suited for that, it would be cool if I
could try it out :)
Thanks,
Peter
>Peter Pastor a ?crit :
>> Hello there,
>>
>> I need to get real-time communication over a parallel port working. I
>> got the serial port to run in real-time using the drivers provided by
>> xenomai. However, I haven't found similar drivers for the parallel port
>> yet. Does the new analogy branch contain real-time drivers for the
>> parallel port ??
>>
>> I would be happy for any hints. Also, would be cool if somebody could
>> point me to some example programs.
>>
>
>I wrote a sample RTDM driver based on outb (char, 0x378). What do you
>want to do with // port? input? output? interrupt? somthing like old
>style "Centronics" ?
>
>regards
[-- Attachment #2: Type: text/html, Size: 1234 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2009-11-08 15:13 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-05 5:05 [Xenomai-help] real-time parallel port communication Peter Pastor
2009-11-05 7:39 ` Remco den Breeje
2009-11-05 8:47 ` Jan Kiszka
2009-11-05 9:01 ` Alexis Berlemont
2009-11-05 9:24 ` peter.pastor
2009-11-08 15:13 ` Alexis Berlemont
2009-11-05 14:21 ` Pierre Ficheux
2009-11-06 16:44 Peter Pastor
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.