>
> --- In "Tim Trudeau" <> wrote:
>> I have a serial port class written in C++ that make use of Linux POSIX.
>> This should make the code portable between a PC target and a TS7250
>> target. The code works perfectly running on the PC but some times hangs
>> in the POSIX read function. Other time the read function returns
>> nothing even though there is activity on the serial port.
>>
>> My question is, should I attempt direct manipulation of the TS7250
>> serial port hardware, (is this even possible under TS-Linux?) or is
>> there another solution to accessing the serial port on the TS7250?
>>
>> Is TS-Linux itself the problem??
I have using TS-7250 with modem and RS-485 device aprox. 2 years. I use
in project i386 embedded computer and after I switch to TS-7250 and now
all devices share the same source. I run the same program on VIA EPIA
too without any problem. All writen in C. I found only one problem I
first I start use select() and read() but this combination didn't work
for me well. After this I switch to nonblocking read() and alarm() and
it works perfect.
Dan
--
Mydatex s r.o.
http://www.mydatex.cz
email:
mob: 604200362
tel: 226210085
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/
|