--- In "BxWen" <> wrote:
>
> Hi:
>
> I am trying to receive some data from /dev/ttts2. The data come in at a rate
> of 1 byte per 5 millisecond. What I want is to response to this one byte data
> every 5 millisecond. But I actually receive nothing, or 2 bytes at 10
> millisecond interval. Is this a Linux kernel thing so that I can only read
> every 10 millisecond? What should I do to make the system response faster?
>
> Thanks.
>
> bing
>
Serial is kernel device but you can configure it. It has defined set of bit
rates but the standard does not recommend overriding those given rates.
1 byte per 5ms is 200 bytes/sec or 1600bps. AFAIK there is no such bit rate.
You can perhaps choose something close to (1800bps).
By the way both sides baud rate must match in order not to loose some data.
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|