Em 8/3/2010 13:56, Herbert Graf escreveu: > Hello all, > > Have been researching my options and I want to make sure I haven't > missed something. > > I want to build something that will count the number of bytes on an > Ethernet line. No interaction with the line or higher level monitoring > (i.e. packet sniffing), just a count. > > Using a PC or PC type infrastructure isn't really an option, can the PIC > Ethernet ports be put into a mode where they just receive bytes and > count them? = > > Other options are using a CPLD/FPGA with appropriate phy but that starts > getting a little much. > > Would prefer to support both 10BaseT and 100BaseT. Gigabit would be > grand, but probably not reasonable to expect. > > Thanks for any suggestions! > > TTYL > = You could put the PIC Ethernet interface in full-promiscuous mode and add all the incoming packet lengths. The PIC Ethernet interface is only 10Mbps tough. The new ENC24J600 is 100Mbps capable, but its SPI interface to the host (MCU) is restricted to 12Mbps. As long as you don't try to download all the packets to the PIC, you could be able to just check their lengths and discard the packets right away, not to overflow the receiving buffer. Best regards, Isaac __________________________________________________ Fa=E7a liga=E7=F5es para outros computadores com o novo Yahoo! Messenger = http://br.beta.messenger.yahoo.com/ = -- = http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist