ts-7000
[Top] [All Lists]

Re: [ts-7000] Re: Serial port on the TS7250

To: timtrudeau <>
Subject: Re: [ts-7000] Re: Serial port on the TS7250
From: Daniel Smolik <>
Date: Mon, 22 Oct 2007 07:58:00 +0200
timtrudeau napsal(a):
> Thanks Dan,
> What library are you using for the nonblocking read() and alarm() 
> functions?
I use my own system compiled against uClibc but on PC normal libc is 
used. I don't use any special library I only include termios.h and setup 
serial port and after this  I use alarm() and read() nothing special.
After serial device is opened  I via fcntl setup descriptor to 
nonblocking mode.

                        Dan




> 
> To be clearer, I should have said my code works perfectly on the PC but 
> hangs on the TS7250 in the POSIX read function.
> 
> Daniel Smolik wrote:
>>
>>>
>>> --- 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/
 

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU