Solved

Talking To Ethernet Card In Windows/MFC

Posted on 2001-07-20
5
332 Views
Last Modified: 2013-12-03
I need to create a small ethernet hub with a PC connected to a number of custom external devices. I don't know much about ethernet as in the past I have utilised something like a CSocket or a PIPE directly using TCP/IP.

In this case the protocol will be directly on the ethernet and I am wondering if there is a developer kit that allows talking directly to the ethernet card under Windows?

Anybody have any experience of this?

Env: VC++ 6.0, Win NT/2K/9x
0
Comment
Question by:sdj_work
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 32

Expert Comment

by:jhance
ID: 6301836
Can you be more specific about what you are trying to do.  To me, this question mixes terms incorrectly and really obscures the meaning.

0
 

Author Comment

by:sdj_work
ID: 6301859
The system will be a Windows based PC that needs to talk to a number of external devices. The devices are likely to be electrical signs (say 4 or 5 each with an Ethernet connection) which I need to communicate with.

I need to send/receive messages to/from the signs using the Ethernet protocol and I am assuming that to do this I will need to talk directly to the card (using an Ethernet Packet), via a developer kit of some kind.

Currently I don't know how I am going to talk to the card. My previous experience of networking has been via TCP/IP, hence I have used Windows Sockets that abstract away from the "packet" level of the protocol.

Hope this is clearer?
0
 
LVL 32

Accepted Solution

by:
jhance earned 200 total points
ID: 6301899
>>Ethernet protocol

This is what I mean.  Ethernet is NOT a protocol.  It's a networking physical layer.  Many protocols can be carried over an Ethernet network.

Do you want to use TCPIP?  If so, then WINSOCK is the way to go on a Windows host.

Do you want to use some other protocol?  Unless you are looking for a lot of work for yourself, choose one that has support on your host.

Do you want to send RAW PACKETS?  In that case, you may want to see:

http://www.rawether.net/

for a very useful toolkit and information.
0
 

Author Comment

by:sdj_work
ID: 6325926
I want to send a custom defined very simple 5 byte protocol. Can I send this as a part of a RAW PACKET? It seems that rawether.com is what I need.

I am confused as to where "raw packets" and using my own protocol fit in. You have suggested that these form two different options.
0

Featured Post

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows a few slightly more advanced techniques for Windows 7 gadget programming, including how to save and restore user settings for your gadget and how to populate the "details" panel that is displayed in the Windows 7 gadget gallery.  …
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question