Welcome to PCForumz.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

Source code for controlling ethernet card in DOS?

 
   Hardware Problem Solving Community! (Home) -> PC Networking RSS
Related Topics:
Ethernet card - I have a 7025 F40 RS 6000 and am chasing an IBM part number 10/100 Ethernet to put into it. Anyone have one lying around? Australia

Driver calls vs graphics mutex vs Ethernet card - I am currently debugging a where one thread (the thread) is using the display driver (i.e. through ExtEscape calls). The system is a dual CPU Windows 2000 system (SP2), with two displays (i.e. two display drivers); the..

pNA and Ethernet co-existing - Hi! I have an IDSL router connected to my Wireless Access Point, which I have a few computers networked into it (both wired and It works pretty well. I bought a device (the Rio MP3 Receiver) that I'd like to connect to my network. I'd..

Computer -> Ethernet -> USB - Hi, Does it exist a with ethernet and USB to enable me to connect a usb webcamera at the end of an ethernet cable? I know I can buy ethernet web cameras, but they are expensive and often have poor image Thanks for info..

efficiency of Ethernet? - Well, I got a laptop with both a Wi-Fi and an Ethernet port on it. Usually I'm using Wi-Fi unless I need to do something really intensive between two computers within my home network, such as printing or file transfer when I to Ethernet. Now..
Next:  PC Networking: Logon Problem  
Author Message
Jonas.L.Larsson

External


Since: Oct 26, 2007
Posts: 1



(Msg. 1) Posted: Fri Oct 26, 2007 6:05 am
Post subject: Source code for controlling ethernet card in DOS?
Archived from groups: comp>sys>ibm>pc>hardware>networking (more info?)

We control machines with PC-machines, DOS, C/C++ and lightbus I/O-
card.
We are using the 'main' IRQ to get a interrupt where we do stuff that
are time 'dependant'.
It's hard to use ordinary drivers and interrupt when we 'disturb' the
system like we do.
We would like to add a ethernet card (LAN RTL8100D) and, for starters,
communicate between two computers. (No real network)
Does anyone know of some source code for easy, direct access to the
ethernet card? Without interrupts? Polling.
Do you think it's impossible to achieve?
We do not have very much RAM left either. Smile

 >> Stay informed about: Source code for controlling ethernet card in DOS? 
Back to top
Login to vote
R.Wieser

External


Since: Oct 29, 2007
Posts: 6



(Msg. 2) Posted: Mon Oct 29, 2007 2:11 pm
Post subject: Re: Source code for controlling ethernet card in DOS? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

<Jonas.L.Larsson DeleteThis @gmail.com> schreef in berichtnieuws
1193390099.892815.42420 DeleteThis @y42g2000hsy.googlegroups.com...

<snip>

> Does anyone know of some source code for easy, direct access
> to the ethernet card? Without interrupts? Polling.

There is none I know of. Packet-driver software is tailored to specific
hardware. If you would want to "poll" that card you would need software
again tailored to that specific hardware. And as your request is quite
un-common probably noone has taken the time to write and publish such code.

But maybe you could simply use such packet-driver software and make sure
that the time spend in the interrupt (when receiving a packet) is as short
as you can get it. For example, by simply letting the driver-software store
the packet-data into a buffer, and than set a flag that the buffer is full.
Than you can poll that flag any way you like.

> Do you think it's impossible to achieve?

The "no interrupt" part ? Not impossible perhaps, just not feasible (you
would (probably) need to disassemble the cards packet-driver to know how to
address the hardware, and than write your own driver).

> We do not have very much RAM left either. Smile

I don't know what "not very much" means, but a file-transfer program that
relies on a packet-driver can be smaller than 5 KByte (inclusive the used
packet-buffer). It won't be fast, but will definitily work.

Regards,
Rudy Wieser

 >> Stay informed about: Source code for controlling ethernet card in DOS? 
Back to top
Login to vote
Patrick Klos

External


Since: Oct 29, 2007
Posts: 1



(Msg. 3) Posted: Mon Oct 29, 2007 4:21 pm
Post subject: Re: Source code for controlling ethernet card in DOS? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article <1193390099.892815.42420 RemoveThis @y42g2000hsy.googlegroups.com>,
<Jonas.L.Larsson RemoveThis @gmail.com> wrote:
>We control machines with PC-machines, DOS, C/C++ and lightbus I/O-
>card.
>We are using the 'main' IRQ

What do you mean by "main IRQ"? There is no "main IRQ".

>to get a interrupt where we do stuff that
>are time 'dependant'.

How "time dependent"? Are you worried about milliseconds or microseconds?
How many? And why is your code so time dependent?

>It's hard to use ordinary drivers and interrupt when we 'disturb' the
>system like we do.

We need details. What do you mean when you say "we disturb the system
like we do"? Interrupt processing doesn't "disturb" the system - it's the
normal way hardware is dealt with.

>We would like to add a ethernet card (LAN RTL8100D) and, for starters,
>communicate between two computers. (No real network)

You mean 2 machines/cards connected with a cross-over cable? No hubs or
switches, right?

And how did you pick your ethernet card? There are plenty of cards that
are probably easier to write code for than the RTL8100. Is that what's on
your motherboard??

>Does anyone know of some source code for easy, direct access to the
>ethernet card? Without interrupts? Polling.
>Do you think it's impossible to achieve?

Sure, if you can find the programmer's guide for the RTL8100 (check
Realtek's web site).

>We do not have very much RAM left either. Smile

How much RAM does your system have, and how much is used? Are you using
a 16-bit DOS? Have you tried setting up EMM or other such tricks?

Patrick
========= For LAN/WAN Protocol Analysis, check out PacketView Pro! =========
Patrick Klos Email: patrick RemoveThis @klos.com
Klos Technologies, Inc. Web: http://www.klos.com/
============================================================================
 >> Stay informed about: Source code for controlling ethernet card in DOS? 
Back to top
Login to vote
Display posts from previous:   
   Hardware Problem Solving Community! (Home) -> PC Networking All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]