Re: how to handle input device

New Message Reply Date view Thread view Subject view Author view

Herve Maurel (maurel++at++BAROCO.matra-espace.fr)
Mon, 21 Aug 95 17:24:40 +0200


> From guest++at++holodeck.asd.sgi.com Wed Aug 16 07:01:39 1995
> From: d3++at++po.iijnet.or.jp
> Date: Wed, 16 Aug 1995 11:26:21 +0900
> Subject: how to handle input device
> To: info-performer++at++sgi.com
> X-Mailer: AIR Mail 3.X (SPRY, Inc.)
> Content-Length: 869
>
> Hello.
> I am designing a real-time simulation software with Performer. The rendering
> process must handles input devices(It might be a serial port or a TCP/IP
> socket). What is the best way to handle them? My experiences say:
>
> 1)If the input device is a serial port, a special I/O process is created and
> it handles the serial port. Shared memory is used for communicatation between
> the rendering process and the I/O process.
>
> 2)If the input device is a socket, the UNIX signal SIGIO can be used. This
> means that I can handle input data by asynchronous I/O. Of course method 1)
> can be used.
>
> BUT I am sorry I have no working-knowledge with Performer... I wonder there
> are some SPECIAL METHODS for input handling using Performer. Does anyone know
> them? Or is there no special method available?
>
> Thanks in advance
> Yutaka Kanou(3D Incorporate)
> d3++at++po.iijnet.or.jp
>
>
>
>

I have developped a simulation software including special devices connected
to a serial port. We used un-related processes in our S/W and Unix IPC mechanism
(message queue) to communicate between the process handling the serial port and the application (APP) performer process. The msgrcv in the application process
is used in IPC_NOWAIT mode.

In a second project, we have used sockets. We have implemented again the same solution and never try the use of the signal SIGIO... I have been told to avoid
the use of SIGNAL within performer processes... (maybe somebody has more infos ?)

regards.

_____________________________________________________________
Herve Maurel - Europe Informatique
under contract with MATRA MARCONI SPACE
Toulouse - France
phone : +33 62247521 e-mail: maurel++at++baroco.matra-espace.fr


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:51:49 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.