Tuesday, March 6, 2012

DE4: Ethernet accepting packets!

At first (the last week or so), we were having a problem with our DE4 ethernet devices not accept packets. We spent days pouring through each function and trying to find a reason for this. We used Wireshark to make sure it was sending the DHCP requests and to make sure our routers were replying to DHCP requests. After some guidance from Professor Pak Chan, we found ourselves stuck in the same location (except now our MAC addresses were being read from the flash correctly).
We ended up starting over and for some reason, still couldn't receive any packets on our board. So after another few hours of testing, we found that there was no problem with the code or anything. In fact, the problem was that we pressed "Cancel" on the OpenCore Plus IP dialog box after programming onto the board.  As upsetting as this was (we could have finished last week), we at least walk away from this experience knowing more about each function that is being used and an experience of how MicroCOS works.

Now that we know that, we have setup the simple socket server on two interfaces. Right now, we only have two problems that don't exactly meet what we want. The first one is that we need to find the place to read in the MAC address for eth1. As it is now, all we did was move a pointer up based on which number eth device is being initialized. The second problem is that right now, we only have one SSS task running. Ideally, I believe we are supposed to have a task for each device. I'm not exactly sure how to declare a device per task and right now, it seems that it can run SSS at a time (meaning it works on both ports as long as the telnet session is not happening concurrently). We will iron this out soon. A separate write up is on it's way once we iron out all the details.

No comments:

Post a Comment