Go Back   PCMech Forums > Help & Discussion > Networking & Online Security

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 11-08-2007, 10:37 PM   #1
Member (9 bit)
 
ironzombie99's Avatar
 
Join Date: Jul 2001
Posts: 355
ethernet packet recording?

This post maybe a little out of the "league" for some of you but it is network related.

Supposedly there is a microcontroller with an embedded Ethernet daughter board. I am going to send data from the microcontroller through the embedded Ethernet board (that part is simple at least for me) and the line is running to a pc.

For starters the packet that the embedded Ethernet board sends out is an normal Ethernet packet....with that settled the actual question to you networking guys is that I would like the packet to be saved as a text file on the pc possibly as it is received for right now, how can i go about doing that?

I know there is ethereal to view packets and you can save them from there but i need something to do it automatically. Will some kind of simple program have to be written in order to parse the packet for the information?


*By the way the reason i am using wired Ethernet right now in this example is that it will be part of a larger network, not just one controller to pc connection, by end of the project there maybe 4 or so controllers going through a switch or hub to a pc. The PC as of now is not planned to be connected to internet, just dedicated to this project.
ironzombie99 is offline   Reply With Quote
Old 11-09-2007, 08:13 AM   #2
I am, in reality, a moose
Staff
Premium Member
 
mbossman2's Avatar
 
Join Date: Aug 1999
Location: RTP, NC
Posts: 2,439
the best way to do this is with a switch probe or packet sniffer.

these can be highly effective but do have limitations: on a decent sized network you can run into bandwidth issues and other performance issues as the network may be able to generate more information than the device can receive (the connected switch port is slower than the total amount of traffic).

the better ones, of course, are expensive but a pretty good one you can get is from Ethereal (www.ethereal.com)

I am curious, what kind of data are you trying to capture from this controller?
__________________
Veritas Principium Libertas

Traveling Moose
mbossman2 is offline   Reply With Quote
Old 11-09-2007, 12:35 PM   #3
Member (9 bit)
 
ironzombie99's Avatar
 
Join Date: Jul 2001
Posts: 355
basically its like this in that i will be taking analog data from the sensor and converting it to digital and then sending it out to the pc and i want to retrieve the digital data from the payload portion of the packet and possibly the source ip address. How the data is going to be used on the pc is undetermined yet, not quite there yet.

sensor --> a/d converter --> microcontroller --> embedded Ethernet board --> pc
ironzombie99 is offline   Reply With Quote
Old 11-09-2007, 01:22 PM   #4
I am, in reality, a moose
Staff
Premium Member
 
mbossman2's Avatar
 
Join Date: Aug 1999
Location: RTP, NC
Posts: 2,439
the source IP address is no big issue, you don't need to scoop packets for that.

Is this controller "mated" to the PC by a specific manufacturer application running on the PC or is this a home grown solution?

if it is the former, be careful that you don't spend a ton of time and effort to find out that the packets are encrypted and require the application to unlock them to display the data.
mbossman2 is offline   Reply With Quote
Old 11-09-2007, 02:13 PM   #5
Member (9 bit)
 
ironzombie99's Avatar
 
Join Date: Jul 2001
Posts: 355
it will be a homebrew solution on the pc
ironzombie99 is offline   Reply With Quote
Old 11-09-2007, 03:52 PM   #6
I am, in reality, a moose
Staff
Premium Member
 
mbossman2's Avatar
 
Join Date: Aug 1999
Location: RTP, NC
Posts: 2,439
then you should be able to capture and decode the packet without an issue. use ethereal it's a good package...and if at all possible, hardcode the IP address for the microcontroller, it'll make locating and isolating the packets much easier.
mbossman2 is offline   Reply With Quote
Old 11-09-2007, 04:18 PM   #7
Member (9 bit)
 
ironzombie99's Avatar
 
Join Date: Jul 2001
Posts: 355
it would be running static ip address.

Thanks for the help.
ironzombie99 is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
connecting two ethernet cables revron Networking & Online Security 6 07-13-2007 08:47 AM
On-board ethernet vs Ethernet Adapter t7riggah Networking & Online Security 2 03-08-2007 11:07 PM
Computer Acronyms Floppyman Computer Hardware 156 06-18-2006 07:25 AM
Confused Siberian Bear Distributed Computing 15 06-16-2005 07:42 AM
cannot assign ip address PardeGT Windows Legacy Support (XP and earlier) 34 01-31-2002 01:06 AM


All times are GMT -5. The time now is 12:30 AM.
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.6.0