[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
BOUNCE rtl@rtlinux.org: Approval required: Non-member submissionfrom [Anders Gnistrup <agn@city.dk>] (fwd)
- To: rtl@rtlinux.org
- Subject: BOUNCE rtl@rtlinux.org: Approval required: Non-member submissionfrom [Anders Gnistrup <agn@city.dk>] (fwd)
- From: Der Herr Hofrat <der.herr@hofr.at>
- Date: Fri, 1 Jun 2001 19:47:44 +0200 (CEST)
>From owner-rtl Fri Jun 1 12:10:35 2001
Received: from emdrupborg.dk (emdrupborg.dk [130.226.204.250])
by hq.fsmlabs.com (8.11.2/8.11.2) with ESMTP id f51IAXs18926
for <rtl@fsmlabs.com>; Fri, 1 Jun 2001 12:10:34 -0600
Received: from city.dk (unknown [10.0.0.24])
by emdrupborg.dk (Postfix) with ESMTP id 585438C003
for <rtl@fsmlabs.com>; Fri, 1 Jun 2001 20:05:20 +0200 (CEST)
Sender: agn@emdrupborg.dk
Message-ID: <3B17F44D.4C485E45@city.dk>
Date: Fri, 01 Jun 2001 19:00:13 -0100
From: Anders Gnistrup <agn@city.dk>
X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.4.4 i686)
X-Accept-Language: en
MIME-Version: 1.0
To: rtl@fsmlabs.com
Subject: Re: [rtl] rt_com
References: <21280047.991386605291.JavaMail.imail@dotty.excite.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Evgeni Dobrev wrote:
> hello all,
>
> i am writing a device driver for an eib (European Instalation Bus) device.
> It communicates with a serial port. I wrote my own module which I load with
> rt_com and communicate with the device (19200 8n1)- it sends the computer a
> byte and the computer sends it back. The problem is that I want to make the
> response time of the serial device smaller.
The problem is not the driver but the way the register in the serial port is
set up.
The UART does not generate a interrupt for every char it recived if it has't
been
tould to do so. It is the register for the input fifo.
I think this is what happens. ->
the computer recives a char.
It does NOT make a interrups at once but wait's.
It ganerate a interrupt when "No Charecters have Been removed From or input to
the RCVR FIFO During the last 4 Char."
(thats 1/(19200/10bits) ~2mSec.)
The driver catch the interrupt. do what ever you wont it to and send a byte
(0.2~ mSec).
I can't remeber if it is posible to set the number of chars before interrups
with the rt_setup call. If not you have to make some minor changes in the
driver.
Anders Gnistrup