[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
BOUNCE rtl@rtlinux.org: Approval required: Non-member submissionfrom [Thomas Lehwald <thomas.lehwald@Ruetz.de>] (fwd)
- To: rtl@rtlinux.org
- Subject: BOUNCE rtl@rtlinux.org: Approval required: Non-member submissionfrom [Thomas Lehwald <thomas.lehwald@Ruetz.de>] (fwd)
- From: Der Herr Hofrat <der.herr@hofr.at>
- Date: Wed, 6 Jun 2001 05:56:12 +0200 (CEST)
>From owner-rtl Tue Jun 5 02:01:54 2001
Received: from central.webforum.de (central.webforum.de [193.141.169.166])
by hq.fsmlabs.com (8.11.2/8.11.2) with ESMTP id f5581rx06596
for <rtl@fsmlabs.com>; Tue, 5 Jun 2001 02:01:53 -0600
Received: (from smap@localhost) by central.webforum.de (8.7.6/8.7.6-webforum) id JAA11733 for <rtl@fsmlabs.com>; Tue, 5 Jun 2001 09:56:18 +0200
Received: from exchange.ruetz.de(192.168.53.2)
via SMTP by central.webforum.de, id smtpda11728; Tue Jun 5 07:55:57 2001
Received: by EXCHANGE with Internet Mail Service (5.5.2448.0)
id <KQPB6XRC>; Tue, 5 Jun 2001 09:49:49 +0200
Message-ID: <5194C7501DC8D311A7DA00C0F015DD9111FCC3@EXCHANGE>
From: Thomas Lehwald <thomas.lehwald@Ruetz.de>
To: "'rtl@fsmlabs.com'" <rtl@fsmlabs.com>
Subject: AW: [rtl] rt_com
Date: Tue, 5 Jun 2001 09:49:48 +0200
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2448.0)
Content-Type: text/plain;
charset="windows-1252"
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by hq.fsmlabs.com id f5581sx06597
Hi,
the simpiest way to fox this problem is to set the fifo size in rt_comP.h to
1 and recompile the driver. This will generate an IRQ for every char.
Hope this helps
Tom
-----Ursprungliche Nachricht-----
Von: Anders Gnistrup [mailto:agn@city.dk]
Gesendet: Freitag, 1. Juni 2001 22:00
An: rtl@fsmlabs.com
Betreff: Re: [rtl] rt_com
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
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail majordomo@rtlinux.org OR
echo "unsubscribe rtl <Your_email>" | mail majordomo@rtlinux.org
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/
----- End of forwarded message from owner-rtl@fsmlabs.com -----