Hi guys I am trying to interface the enc28j60 ethernet controller with one of the Atmel cortex microcontroller and my development environment is IAR embedded workbench. what I am trying is that I am trying to get the ip address assigned to my controller with the dhcp module. Actually the whole network is laid down as follows: I have one D-Link router of series 600M and through this router the PC is connected and the cable modem is connected. Also the development board of the Atmel cortex is connected to the router. now the problem is I am trying to get the details of the traffic between the enc28j60 controller and the router in my PC through the wireshark but unable to sniff the traffic between router and the development board connected to the enc28j60 ethernet controller. I am only able to see the internet traffic between my router and PC. So I want to know that how can I debug the development of the ethernet application in this setup. if my scene is not clear than please tell me what else information i need to provide. regards --------------------------------------- Posted through http://www.EmbeddedRelated.com
debugging the enc28j60 ethernet communication
Started by ●December 21, 2015
Reply by ●December 21, 20152015-12-21
On 21.12.15 14:51, piyushpandey wrote:> Hi guys > > > I am trying to interface the enc28j60 ethernet controller with one of the > Atmel cortex microcontroller and my development environment is IAR > embedded workbench. > > what I am trying is that I am trying to get the ip address assigned to my > controller with the dhcp module. > > Actually the whole network is laid down as follows: > > I have one D-Link router of series 600M and through this router the PC is > connected and the cable modem is connected. Also the development board of > the Atmel cortex is connected to the router. now the problem is I am > trying to get the details of the traffic between the enc28j60 controller > and the router in my PC through the wireshark but unable to sniff the > traffic between router and the development board connected to the enc28j60 > ethernet controller. > > I am only able to see the internet traffic between my router and PC. > > So I want to know that how can I debug the development of the ethernet > application in this setup. > > > if my scene is not clear than please tell me what else information i need > to provide. > > > regardsThe reason is that the router acts as a network switch, and it does not forward traffic between other ports to the PC port. You need a managed switch with a sniffer port configured or an Ethernet tap (google for it). Does your interface and the switch get the link up? -- -TV
Reply by ●December 21, 20152015-12-21
In article <-vqdnb1SusslaOrLnZ2dnUU7-WednZ2d@giganews.com>, 82952 @EmbeddedRelated says...> Hi guys > > > I am trying to interface the enc28j60 ethernet controller with one of the > Atmel cortex microcontroller and my development environment is IAR > embedded workbench. > > what I am trying is that I am trying to get the ip address assigned to my > controller with the dhcp module. > > Actually the whole network is laid down as follows: > > I have one D-Link router of series 600M and through this router the PC is > connected and the cable modem is connected. Also the development board of > the Atmel cortex is connected to the router. now the problem is I am > trying to get the details of the traffic between the enc28j60 controller > and the router in my PC through the wireshark but unable to sniff the > traffic between router and the development board connected to the enc28j60 > ethernet controller. > > I am only able to see the internet traffic between my router and PC. > > So I want to know that how can I debug the development of the ethernet > application in this setup. > > > if my scene is not clear than please tell me what else information i need > to provide. > > > regards > --------------------------------------- > Posted through http://www.EmbeddedRelated.comGet an old fashioned router, not a switch, or get a managed switch that you can setup to route all traffic out a port for your sniffer system. I keep an old router around for this kind of stuff, it is a 10mbps router, but that doesn't matter when the enc28j60 is a 10 meg IC anyway.
Reply by ●December 21, 20152015-12-21
On 2015-12-21 WangoTango wrote in comp.arch.embedded:> > Get an old fashioned router, not a switch, or get a managed switch that > you can setup to route all traffic out a port for your sniffer system. > I keep an old router around for this kind of stuff, it is a 10mbps > router, but that doesn't matter when the enc28j60 is a 10 meg IC anyway.Didn't you mean to say 'Hub'? Routers have always forwared traffic to only the intended port, it's the hubs who just repeat all traffic on all ports. -- Stef (remove caps, dashes and .invalid from e-mail address to reply by mail) The average individual's position in any hierarchy is a lot like pulling a dogsled -- there's no real change of scenery except for the lead dog.
Reply by ●December 23, 20152015-12-23
In article <ee4dd$56788881$5f6173bc$6217@abuse.newsxs.nl>, stef33d@yahooI-N-V-A-L-I-D.com.invalid says...> On 2015-12-21 WangoTango wrote in comp.arch.embedded: > > > > Get an old fashioned router, not a switch, or get a managed switch that > > you can setup to route all traffic out a port for your sniffer system. > > I keep an old router around for this kind of stuff, it is a 10mbps > > router, but that doesn't matter when the enc28j60 is a 10 meg IC anyway. > > Didn't you mean to say 'Hub'? Routers have always forwared traffic to > only the intended port, it's the hubs who just repeat all traffic on > all ports. > >Yes, I did. LOL Brain fart time.
Reply by ●December 25, 20152015-12-25
> > >The reason is that the router acts as a network switch, and >it does not forward traffic between other ports to the PC port. >You need a managed switch with a sniffer port configured or >an Ethernet tap (google for it). > >Does your interface and the switch get the link up? > >-- > >-TVCan you please provide me some example for it. Also I browsed all over the net and come to know that router traffic can be sniffed if it is set to the promiscous mode. So how can I set this promiscous mode in my router as I saw each and every corner in my router settings and I didn't find it anywhere in the settings webpage which I am able to access by just clicking 192.168.0.1 in the browser. regards --------------------------------------- Posted through http://www.EmbeddedRelated.com
Reply by ●December 25, 20152015-12-25
On Mon, 21 Dec 2015 17:11:11 +0200, Tauno Voipio <tauno.voipio@notused.fi.invalid> wrote:>The reason is that the router acts as a network switch, and >it does not forward traffic between other ports to the PC port.Yes.>You need a managed switch with a sniffer port configured or >an Ethernet tap (google for it).Or just use a splitter to put both devices on the same segment. George
Reply by ●December 25, 20152015-12-25
On Thu, 24 Dec 2015 23:00:29 -0600, "piyushpandey" <82952@EmbeddedRelated> wrote:>So how can I set this promiscous mode in my router as I saw each and every >corner in my router settings and I didn't find it anywhere in the settings >webpage which I am able to access by just clicking 192.168.0.1 in the >browser.SOHO routers don't permit promiscious mode - at least not with their standard firmware. You can get a more capable business-class router or look into hacking the firmware on yours. But it's easiest just to use a splitter to put your PC and the device on the same network segment. A decent 2-way splitter is < $10. George
Reply by ●December 25, 20152015-12-25
On 25.12.15 09:29, George Neuner wrote:> On Mon, 21 Dec 2015 17:11:11 +0200, Tauno Voipio > <tauno.voipio@notused.fi.invalid> wrote: > >> The reason is that the router acts as a network switch, and >> it does not forward traffic between other ports to the PC port. > > Yes. > >> You need a managed switch with a sniffer port configured or >> an Ethernet tap (google for it). > > Or just use a splitter to put both devices on the same segment. > > George >An Ethernet tap is a splitter. It seems that the search terms 'ethernet tap' give better results. -- -TV
Reply by ●December 25, 20152015-12-25
> >An Ethernet tap is a splitter. It seems that the search terms >'ethernet tap' give better results. > >-- > >-TVHi guys I think I need than another NIC card for my computer too so that I can sniff the network between my development board and the router and also would be able to access the internet at the same time. What you say ??????????? Also can you please tell me some decent ethernet tap with cheap price. --------------------------------------- Posted through http://www.EmbeddedRelated.com