muiltple opening of ports...

Hi All,

This is regarding muiltiple opening of a port…as we found that in
controller program
the device driver written for NS83815 supports only one opening of
port…and when
many applications try to open the same port…it sends error signal…


I happen to see, how 2 or more files are written to a floppy disk and my
observations
is that writing more than 2 files takes place concurrently and that shows
that we
can also have some way of doing the same thing with our NS83815 port.

Can you give me some suggestions or advice about how we can go ahead
implementing
this feature of muiltple opening of ports?

Thx inadvance,

rgds,
Mankan

You can run as many ethernet protocols as you like simultaneously
over this adapter. What do you mean by “supports only one opening
of port”?

dB


“Mankan” wrote, ca. Wed, 9 Apr 2003 13:38:24 -0400:

Hi All,

This is regarding muiltiple opening of a port…as we found that in
controller program
the device driver written for NS83815 supports only one opening of
port…and when
many applications try to open the same port…it sends error signal…


I happen to see, how 2 or more files are written to a floppy disk and my
observations
is that writing more than 2 files takes place concurrently and that shows
that we
can also have some way of doing the same thing with our NS83815 port.

Can you give me some suggestions or advice about how we can go ahead
implementing
this feature of muiltple opening of ports?

Thx inadvance,

rgds,
Mankan

Hi David,

Thx for the reply…my basic question was…I am not using that adapter…we
have developed our
own hardware which uses NS83815 chip and we have written a code for opening
single port
and sending data out of that port…

And my question was how to make muiltple application opening that port…do
i have to create
separate private data structure for each and every application going out of
that port…

hope I am able to make my question clear,if not…do let me know…I will
again put my question.

Thx,
Mankan

“David Bacon” <dbacon@qnx.com> wrote in message
news:1049912721999.dB@nntp.qnx.com

You can run as many ethernet protocols as you like simultaneously
over this adapter. What do you mean by “supports only one opening
of port”?

dB


“Mankan” wrote, ca. Wed, 9 Apr 2003 13:38:24 -0400:

Hi All,

This is regarding muiltiple opening of a port…as we found that in
controller program
the device driver written for NS83815 supports only one opening of
port…and when
many applications try to open the same port…it sends error signal…


I happen to see, how 2 or more files are written to a floppy disk and my
observations
is that writing more than 2 files takes place concurrently and that shows
that we
can also have some way of doing the same thing with our NS83815 port.

Can you give me some suggestions or advice about how we can go ahead
implementing
this feature of muiltple opening of ports?

Thx inadvance,

rgds,
Mankan

Is the device driver written as a QNX “resource manager”? It may
be enforcing single-client access for a good reason. If multiple
clients want to share access to the port, you will have to have
some kind of convention to keep track of which data goes with which
client. A data structure encapsulated in a “packet” is a popular
way to organize that kind of thing. And since you probably want to
avoid reinventing the wheel, the ideal way to use the port might be
to run TCP/IP over it, perhaps with the aid of devn-fd.so (though I
hope someone who knows more about devn-fd.so than I do will correct
me if that seems silly).

dB


“Mankan” wrote, ca. Wed, 9 Apr 2003 15:22:43 -0400:

Hi David,

Thx for the reply…my basic question was…I am not using that adapter…we
have developed our
own hardware which uses NS83815 chip and we have written a code for opening
single port
and sending data out of that port…

And my question was how to make muiltple application opening that port…do
i have to create
separate private data structure for each and every application going out of
that port…

hope I am able to make my question clear,if not…do let me know…I will
again put my question.

Thx,
Mankan

“David Bacon” <dbacon@qnx.com> wrote in message
news:1049912721999.dB@nntp.qnx.com

You can run as many ethernet protocols as you like simultaneously
over this adapter. What do you mean by “supports only one opening
of port”?

dB


“Mankan” wrote, ca. Wed, 9 Apr 2003 13:38:24 -0400:

Hi All,

This is regarding muiltiple opening of a port…as we found that in
controller program
the device driver written for NS83815 supports only one opening of
port…and when
many applications try to open the same port…it sends error signal…


I happen to see, how 2 or more files are written to a floppy disk and my
observations
is that writing more than 2 files takes place concurrently and that shows
that we
can also have some way of doing the same thing with our NS83815 port.

Can you give me some suggestions or advice about how we can go ahead
implementing
this feature of muiltple opening of ports?

Thx inadvance,

rgds,
Mankan

At some point you data needs to be serialized when it is being pushed to the
hardware.IMHO your best bet would be to use the standard interface provided
by io-net to do that.You could write a device driver for your hardware and
register it with io-net.Then all the packets that need to go out are
automatically serialized.

Sreekanth

“Mankan” <smankan@nospam.ueidaq.com> wrote in message
news:b71qjb$eeg$1@inn.qnx.com

Hi David,

Thx for the reply…my basic question was…I am not using that
adapter…we
have developed our
own hardware which uses NS83815 chip and we have written a code for
opening
single port
and sending data out of that port…

And my question was how to make muiltple application opening that
port…do
i have to create
separate private data structure for each and every application going out
of
that port…

hope I am able to make my question clear,if not…do let me know…I will
again put my question.

Thx,
Mankan

“David Bacon” <> dbacon@qnx.com> > wrote in message
news:> 1049912721999.dB@nntp.qnx.com> …
You can run as many ethernet protocols as you like simultaneously
over this adapter. What do you mean by “supports only one opening
of port”?

dB


“Mankan” wrote, ca. Wed, 9 Apr 2003 13:38:24 -0400:

Hi All,

This is regarding muiltiple opening of a port…as we found that in
controller program
the device driver written for NS83815 supports only one opening of
port…and when
many applications try to open the same port…it sends error signal…


I happen to see, how 2 or more files are written to a floppy disk and my
observations
is that writing more than 2 files takes place concurrently and that
shows
that we
can also have some way of doing the same thing with our NS83815 port.

Can you give me some suggestions or advice about how we can go ahead
implementing
this feature of muiltple opening of ports?

Thx inadvance,

rgds,
Mankan