List Info

Thread: Re: Re: No SIGIO on com1? not working in com2




Re: Re: No SIGIO on com1? not working in com2
country flaguser name
United States
2008-03-28 22:36:37

Hi
Charlie
i have attcehd the code of my serial program which works in com1 with the SIGIO
but the same program after changing the

#define MODEMDEVICE "/dev/ttyAM1"

for com2 it is not working

but it works in com2 without SIGIO

where could be the problem

my application needs a interrupt driven serial input so that my program can do some other work istead of polling the serial port

any help will be highly appreciated

-laks

 
 
----- Original Message -----
Sent: Friday, March 28, 2008 7:51 PM
Subject: [ts-7000] Re: No SIGIO on com1?

--- In ts-7000@yahoogroups.com">ts-7000yahoogroups.com, "papp_lapp" <papp_lapp...> wrote:
>;
> I have enabled getty and tested it successfully, it works just as it
> should. So I guess it's a software issue. Unfortunately I don't know
> where to begin... I added a call to read on exit, and it prints out
> the strings sent from the laptop, so they ARE being recieved by the
> ts, there's just no SIGIO being generated. I tried using select() to
> poll for incoming data instead of the SIGIO/boolean combination from
> the howto, but that doesn't work either, though I'm not 100% sure I'm
> using it correctly. Anyone have a starting point or idea?

Can you post the code you are trying to use?

Regards, ........ Charlie

__._,_.___
.

__,_._,___
  
Re: Re: No SIGIO on com1? not working in com2
country flaguser name
United Kingdom
2008-03-30 11:45:49



On Sat, 29 Mar 2008, LaksCEO wrote:

> Hi
> Charlie
> i have attcehd the code of my serial program which works in com1 with the SIGIO
&gt; but the same program after changing the
> #define MODEMDEVICE "/dev/ttyAM1&quot;
>
> for com2 it is not working
>
> but it works in com2 without SIGIO
&gt;
> where could be the problem
>
> my application needs a interrupt driven serial input so that my program
> can do some other work istead of polling the serial port

Open the serial port in non-blocking mode and poll on atimer?
>
> any help will be highly appreciated
>
> -laks
&gt;
>
>
>; ----- Original Message -----
&gt; From: charliem_1216
> To: ts-7000%40yahoogroups.com">ts-7000yahoogroups.com
&gt; Sent: Friday, March 28, 2008 7:51 PM
> Subject: [ts-7000] Re: No SIGIO on com1?
&gt;
>
> --- In ts-7000%40yahoogroups.com">ts-7000yahoogroups.com, "papp_lapp" <papp_lapp...> wrote:
&gt; >
>; > I have enabled getty and tested it successfully, it works just as it
> > should. So I guess it's a software issue. Unfortunately I don't know
>; > where to begin... I added a call to read on exit, and it prints out
> > the strings sent from the laptop, so they ARE being recieved by the
> > ts, there's just no SIGIO being generated. I tried using select() to
> > poll for incoming data instead of the SIGIO/boolean combination from
>; > the howto, but that doesn't work either, though I'm not 100% sure I'm
> > using it correctly. Anyone have a starting point or idea?
&gt;
> Can you post the code you are trying to use?
>;
> Regards, ........ Charlie
>
>
>
&gt;

__._,_.___
.

__,_._,___
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )