* [ECOS] Serial Port , Raw Mode using cyg_io_read
@ 2005-07-06 8:41 Annamalai Prakash
2005-07-06 9:02 ` Edgar Grimberg
0 siblings, 1 reply; 7+ messages in thread
From: Annamalai Prakash @ 2005-07-06 8:41 UTC (permalink / raw)
To: ecos-discuss
Hi List,
I am working on ARM920T (Integrator) and ecos. I have configured my kernel
with posix and Serial device drivers. following options are enabled in my
config file.
CYGOPT_IO_SERIAL_SUPPORT_NONBLOCKING
CYGPKG_IO_SERAIL_TTY
CYGPKG_IO_SERIAL_TTY_TTY1
CYGPKG_IO_SERIAL_DEVICES
CYGPKG_IO_SERIAL_ARM_INTEGRATOR_SERIAL1
I want to configure my serial port in RAW mode. i think ecos supports
two serial port drivers (raw and tty driver). Is there any explicit option to
specify for RAW drivers. I tried to disable (CYGPKG_IO_SERAIL_TTY_TTY1)
option, i wasnot able to read/write anything from serial port even opened
successfully.
I tried to use OPEN call also. i got compilation error due to
unresolved symbols `O_NDELAY' ,`B115200' ,`CLOCAL' ,`CREAD' . i have
decleared terminos.h ..
Any lights to move furthur..
Thanks
Prakash
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [ECOS] Serial Port , Raw Mode using cyg_io_read
2005-07-06 8:41 [ECOS] Serial Port , Raw Mode using cyg_io_read Annamalai Prakash
@ 2005-07-06 9:02 ` Edgar Grimberg
2005-07-06 9:18 ` Annamalai Prakash
0 siblings, 1 reply; 7+ messages in thread
From: Edgar Grimberg @ 2005-07-06 9:02 UTC (permalink / raw)
To: Annamalai Prakash; +Cc: ecos-discuss
Hi,
Did you tried to open the /dev/ser0 , /dev/ser1 ? Something like:
err = cyg_io_lookup( "/dev/ser1", &fd );
Edgar
Annamalai Prakash wrote:
>Hi List,
>
> I am working on ARM920T (Integrator) and ecos. I have configured my kernel
>with posix and Serial device drivers. following options are enabled in my
>config file.
>
> CYGOPT_IO_SERIAL_SUPPORT_NONBLOCKING
> CYGPKG_IO_SERAIL_TTY
> CYGPKG_IO_SERIAL_TTY_TTY1
> CYGPKG_IO_SERIAL_DEVICES
> CYGPKG_IO_SERIAL_ARM_INTEGRATOR_SERIAL1
>
> I want to configure my serial port in RAW mode. i think ecos supports
>two serial port drivers (raw and tty driver). Is there any explicit option to
>specify for RAW drivers. I tried to disable (CYGPKG_IO_SERAIL_TTY_TTY1)
>option, i wasnot able to read/write anything from serial port even opened
>successfully.
>
> I tried to use OPEN call also. i got compilation error due to
>unresolved symbols `O_NDELAY' ,`B115200' ,`CLOCAL' ,`CREAD' . i have
>decleared terminos.h ..
>
>Any lights to move furthur..
>
>Thanks
>Prakash
>
>
>
>
>
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [ECOS] Serial Port , Raw Mode using cyg_io_read
2005-07-06 9:02 ` Edgar Grimberg
@ 2005-07-06 9:18 ` Annamalai Prakash
2005-07-06 9:30 ` Andrew Lunn
2005-07-06 9:33 ` Edgar Grimberg
0 siblings, 2 replies; 7+ messages in thread
From: Annamalai Prakash @ 2005-07-06 9:18 UTC (permalink / raw)
To: Edgar Grimberg; +Cc: ecos-discuss
On Wednesday 06 July 2005 02:32 pm, you wrote:
> Hi,
>
> Did you tried to open the /dev/ser0 , /dev/ser1 ? Something like:
>
> err = cyg_io_lookup( "/dev/ser1", &fd );
yes, i tried to open ... it was opened...... but i want to make sure, whether
it is RAW Mode or TTY Mode.
>
> Edgar
Prakash
>
> Annamalai Prakash wrote:
> >Hi List,
> >
> > I am working on ARM920T (Integrator) and ecos. I have configured my
> > kernel with posix and Serial device drivers. following options are
> > enabled in my config file.
> >
> > CYGOPT_IO_SERIAL_SUPPORT_NONBLOCKING
> > CYGPKG_IO_SERAIL_TTY
> > CYGPKG_IO_SERIAL_TTY_TTY1
> > CYGPKG_IO_SERIAL_DEVICES
> > CYGPKG_IO_SERIAL_ARM_INTEGRATOR_SERIAL1
> >
> > I want to configure my serial port in RAW mode. i think ecos
> > supports two serial port drivers (raw and tty driver). Is there any
> > explicit option to specify for RAW drivers. I tried to disable
> > (CYGPKG_IO_SERAIL_TTY_TTY1) option, i wasnot able to read/write anything
> > from serial port even opened successfully.
> >
> > I tried to use OPEN call also. i got compilation error due to
> >unresolved symbols `O_NDELAY' ,`B115200' ,`CLOCAL' ,`CREAD' . i have
> >decleared terminos.h ..
> >
> >Any lights to move furthur..
> >
> >Thanks
> >Prakash
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [ECOS] Serial Port , Raw Mode using cyg_io_read
2005-07-06 9:18 ` Annamalai Prakash
@ 2005-07-06 9:30 ` Andrew Lunn
2005-07-06 9:33 ` Edgar Grimberg
1 sibling, 0 replies; 7+ messages in thread
From: Andrew Lunn @ 2005-07-06 9:30 UTC (permalink / raw)
To: Annamalai Prakash; +Cc: ecos-discuss
On Wed, Jul 06, 2005 at 02:35:27PM +0530, Annamalai Prakash wrote:
> On Wednesday 06 July 2005 02:32 pm, you wrote:
> > Hi,
> >
> > Did you tried to open the /dev/ser0 , /dev/ser1 ? Something like:
> >
> > err = cyg_io_lookup( "/dev/ser1", &fd );
>
> yes, i tried to open ... it was opened...... but i want to make sure, whether
> it is RAW Mode or TTY Mode.
The device does not have modes like in unix. There are different
devices for each mode. /dev/ser0 is the lowest level and gives you
direct access to the serial driver. /dev/tty0 is the next level up and
gives you a basic tty level similar to cooked mode. Then there is
/dev/termios0 which is layed on top of /dev/tty0.
Andrew
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [ECOS] Serial Port , Raw Mode using cyg_io_read
2005-07-06 9:18 ` Annamalai Prakash
2005-07-06 9:30 ` Andrew Lunn
@ 2005-07-06 9:33 ` Edgar Grimberg
1 sibling, 0 replies; 7+ messages in thread
From: Edgar Grimberg @ 2005-07-06 9:33 UTC (permalink / raw)
To: Annamalai Prakash; +Cc: ecos-discuss
Annamalai Prakash wrote:
>On Wednesday 06 July 2005 02:32 pm, you wrote:
>
>
>>Hi,
>>
>>Did you tried to open the /dev/ser0 , /dev/ser1 ? Something like:
>>
>>err = cyg_io_lookup( "/dev/ser1", &fd );
>>
>>
>
> yes, i tried to open ... it was opened...... but i want to make sure, whether
>it is RAW Mode or TTY Mode.
>
>
>
If you want raw mode, you should open /dev/ser0 and if you want tty use
/dev/tty0 . You cand find the name of the devices in the ecos.ecc file
of your build tree.
You can imagine some test case, something like sending an out of the
range for tty char over the serial port and trying to read it from your
PC. If you have a tty driver you will get nothing on the serial of the
PC, else you will get the char. First of all, be sure that the serial on
your Integrator works.
Edgar
>>Edgar
>>
>>
>
>Prakash
>
>
>>Annamalai Prakash wrote:
>>
>>
>>>Hi List,
>>>
>>>I am working on ARM920T (Integrator) and ecos. I have configured my
>>>kernel with posix and Serial device drivers. following options are
>>>enabled in my config file.
>>>
>>> CYGOPT_IO_SERIAL_SUPPORT_NONBLOCKING
>>> CYGPKG_IO_SERAIL_TTY
>>> CYGPKG_IO_SERIAL_TTY_TTY1
>>> CYGPKG_IO_SERIAL_DEVICES
>>> CYGPKG_IO_SERIAL_ARM_INTEGRATOR_SERIAL1
>>>
>>> I want to configure my serial port in RAW mode. i think ecos
>>>supports two serial port drivers (raw and tty driver). Is there any
>>>explicit option to specify for RAW drivers. I tried to disable
>>>(CYGPKG_IO_SERAIL_TTY_TTY1) option, i wasnot able to read/write anything
>>>from serial port even opened successfully.
>>>
>>> I tried to use OPEN call also. i got compilation error due to
>>>unresolved symbols `O_NDELAY' ,`B115200' ,`CLOCAL' ,`CREAD' . i have
>>>decleared terminos.h ..
>>>
>>>Any lights to move furthur..
>>>
>>>Thanks
>>>Prakash
>>>
>>>
>
>
>
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [ECOS] Serial Port , Raw Mode using cyg_io_read
2005-07-06 10:27 aprakash
@ 2005-07-06 10:49 ` Andrew Lunn
0 siblings, 0 replies; 7+ messages in thread
From: Andrew Lunn @ 2005-07-06 10:49 UTC (permalink / raw)
To: aprakash; +Cc: ecos-discuss
On Wed, Jul 06, 2005 at 03:06:33PM +0500, aprakash@tataelxsi.co.in wrote:
> Ok. Thanks andrew...
>
> Is there any function or call to know, howmany bytes available to read in my serial buffer ?.
Yes, it is described in the documentation, which you might want to
read.
http://ecos.sourceware.org/docs-latest/ref/io-serial-driver-details.html
Andrew
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [ECOS] Serial Port , Raw Mode using cyg_io_read
@ 2005-07-06 10:27 aprakash
2005-07-06 10:49 ` Andrew Lunn
0 siblings, 1 reply; 7+ messages in thread
From: aprakash @ 2005-07-06 10:27 UTC (permalink / raw)
To: Andrew Lunn; +Cc: ecos-discuss
Ok. Thanks andrew...
Is there any function or call to know, howmany bytes available to read in my serial buffer ?.
Thanks
Prakash
----- Original Message -----
From: Andrew Lunn <andrew@lunn.ch>
Date: Wednesday, July 6, 2005 3:00 pm
Subject: Re: [ECOS] Serial Port , Raw Mode using cyg_io_read
> On Wed, Jul 06, 2005 at 02:35:27PM +0530, Annamalai Prakash wrote:
> > On Wednesday 06 July 2005 02:32 pm, you wrote:
> > > Hi,
> > >
> > > Did you tried to open the /dev/ser0 , /dev/ser1 ? Something like:
> > >
> > > err = cyg_io_lookup( "/dev/ser1", &fd );
> >
> > yes, i tried to open ... it was opened...... but i want to make
> sure, whether
> > it is RAW Mode or TTY Mode.
>
> The device does not have modes like in unix. There are different
> devices for each mode. /dev/ser0 is the lowest level and gives you
> direct access to the serial driver. /dev/tty0 is the next level up and
> gives you a basic tty level similar to cooked mode. Then there is
> /dev/termios0 which is layed on top of /dev/tty0.
>
> Andrew
>
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2005-07-06 10:49 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-06 8:41 [ECOS] Serial Port , Raw Mode using cyg_io_read Annamalai Prakash
2005-07-06 9:02 ` Edgar Grimberg
2005-07-06 9:18 ` Annamalai Prakash
2005-07-06 9:30 ` Andrew Lunn
2005-07-06 9:33 ` Edgar Grimberg
2005-07-06 10:27 aprakash
2005-07-06 10:49 ` Andrew Lunn
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).