|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (9 bit)
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. |
|
|
|
|
|
#2 |
|
I am, in reality, a moose
Staff
Premium Member
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? |
|
|
|
|
|
#3 |
|
Member (9 bit)
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 |
|
|
|
|
|
#4 |
|
I am, in reality, a moose
Staff
Premium Member
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. |
|
|
|
|
|
#5 |
|
Member (9 bit)
Join Date: Jul 2001
Posts: 355
|
it will be a homebrew solution on the pc
|
|
|
|
|
|
#6 |
|
I am, in reality, a moose
Staff
Premium Member
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.
|
|
|
|
|
|
#7 |
|
Member (9 bit)
Join Date: Jul 2001
Posts: 355
|
it would be running static ip address.
Thanks for the help. |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
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 |