EmbeddedRelated.com
Forums

[LPC2300][TCP-IP]: "Keil's easyweb application doesn't work if connected to wireless router

Started by pravin falcao March 12, 2013
Hello,

I am using an "easyweb" webserver application of Keil on LPC 2300 demo board to check the basic things of TCP IP. If I connect the demo boarddirectlyto the PC, it works fine and I can ping or see HTTP webpage on my browser. However if I connect the same via DLink wireless router, it doesn't work at all. I have configured proper IP (192.168.1.10),subnetmask (255.255.255.0), and gateway ip of dlink (192.168.1.1) in the application. Again if I connect DVR which is also having static ip to dlink router, it works fine. This gives me the conclusion that, there is some problem in configuration of "easyweb" application itself. Could you please help me if anybody has already done this? I am struggling since last one week.

Thanks,
Pravin Falcao



An Engineer's Guide to the LPC2100 Series

It is a router issue. Maybe with DHCP. Check your dlink dhcp ip range.
2013/3/12 pravin falcao

> **
> Hello,
>
> I am using an "easyweb" webserver application of Keil on LPC 2300 demo
> board to check the basic things of TCP IP. If I connect the demo
> board directly to the PC, it works fine and I can ping or see HTTP webpage
> on my browser. However if I connect the same via DLink wireless router, it
> doesn't work at all. I have configured proper IP
> (192.168.1.10), subnet mask (255.255.255.0), and gateway ip of dlink
> (192.168.1.1) in the application. Again if I connect DVR which is also
> having static ip to dlink router, it works fine. This gives me the
> conclusion that, there is some problem in configuration of "easyweb"
> application itself. Could you please help me if anybody has already done
> this? I am struggling since last one week.
>
> Thanks,
> Pravin Falcao
>
>
>
>
>


Hello Falcao,

> I am struggling since last one week.

have you tried if "ping" is working?
Have you tried to create a wireshark trace on your PC?
Have you tried to get information on your LPC2300,
e.g. like
do you receive an IP address (which one?),
do you receive packets at all,
do you receive valid packets?
Perhaps your board has a LED on Ethernet port,
do you see it blinking when PC is trying to connect?

What is your exact setup? PC to router1, then wireless to router2,
router2 connected to LPC2300?
Or PC and LPC2300 both to same wireless router,
but wireless way is not used at all?

Best regards,

Martin

Hello Capiman,

Ping doesn't work if I connect LPC 2300 to router in following way.
LAN 1 of Router to LPC 2300 by wire => fixed IP (192.168.1.10, gateway: 192.168.1.1)
Desktop to router => Wireless with dynamic IP
Laptop to router => Wireless with dynamic IP
Android to router => Wireless with dynamic IP
DVR to router LAN 2 by wire => Fixed IP  (192.168.1.11, gateway: 192.168.1.1)  => ping and works fine.

So If I ping from my laptop or from desktop, LPC doesn't work as I can see reply (on Windows 7 only) "Destination Host Unreachable". 
I can see LED blinking. My DVR works fine as it is also having fixed IP.

Thanks,
Pravin Falcao

________________________________
From: capiman26061973
To: l...
Sent: Wednesday, 13 March 2013 12:07 AM
Subject: [lpc2000] Re: [LPC2300][TCP-IP]: "Keil's easyweb application doesn't work if connected to wireless router


 
Hello Falcao,

> I am struggling since last one week.

have you tried if "ping" is working?
Have you tried to create a wireshark trace on your PC?
Have you tried to get information on your LPC2300,
e.g. like
do you receive an IP address (which one?),
do you receive packets at all,
do you receive valid packets?
Perhaps your board has a LED on Ethernet port,
do you see it blinking when PC is trying to connect?

What is your exact setup? PC to router1, then wireless to router2,
router2 connected to LPC2300?
Or PC and LPC2300 both to same wireless router,
but wireless way is not used at all?

Best regards,

Martin




DHCP range from 100-199 and LPC IP is 10.
________________________________
From: Felipe de Andrade Neves Lavratti
To: l...
Sent: Tuesday, 12 March 2013 11:29 PM
Subject: Re: [lpc2000] [LPC2300][TCP-IP]: "Keil's easyweb application doesn't work if connected to wireless router

It is a router issue. Maybe with DHCP. Check your dlink dhcp ip range.
2013/3/12 pravin falcao

> **
> Hello,
>
> I am using an "easyweb" webserver application of Keil on LPC 2300 demo
> board to check the basic things of TCP IP. If I connect the demo
> board directly to the PC, it works fine and I can ping or see HTTP webpage
> on my browser. However if I connect the same via DLink wireless router, it
> doesn't work at all. I have configured proper IP
> (192.168.1.10), subnet mask (255.255.255.0), and gateway ip of dlink
> (192.168.1.1) in the application. Again if I connect DVR which is also
> having static ip to dlink router, it works fine. This gives me the
> conclusion that, there is some problem in configuration of "easyweb"
> application itself. Could you please help me if anybody has already done
> this? I am struggling since last one week.
>
> Thanks,
> Pravin Falcao
>
>
>
>
>


Sorry for my dumb answer... I'm no expert and I don't know any of the board
details or how it works.

If it works when you connect directly to your PC but it doesn't work when
connected to the router isn't it a cable issue?
Aren't you using a crossover cable to connect directly to the PC? Are you
connecting to the router with a straight cable?
I remember from the old days when I needed to connect some ethernet device
to the computer the cable had to be crossed and when using routers, hubs or
switches cables had to be straight. Nowadays nobody uses crossed-over
cables because there are routers and switches everywhere and everyone
always connects to one of those...

Regards,
Bernardo Marques.


> Sorry for my dumb answer... I'm no expert and I don't know any of the
> board details or how it works.
>
> If it works when you connect directly to your PC but it doesn't work when
> connected to the router isn't it a cable issue?
> Aren't you using a crossover cable to connect directly to the PC? Are you
> connecting to the router with a straight cable?
> I remember from the old days when I needed to connect some ethernet device
> to the computer the cable had to be crossed and when using routers, hubs
> or switches cables had to be straight. Nowadays nobody uses crossed-over
> cables because there are routers and switches everywhere and everyone
> always connects to one of those...

Most MAC/PHYs these days can do MDIX detection and set themselves up
automatically in negotiation. But it is worth checking...

--
Paul Curtis, Rowley Associates Ltd http://www.rowley.co.uk
SolderCore Development Platform http://www.soldercore.com

No. Cable is not a problem as DVR works fine with the same cable. 
________________________________
From: Bernardo Marques
To: l...
Sent: Wednesday, 13 March 2013 3:11 PM
Subject: Re: [lpc2000] [LPC2300][TCP-IP]: "Keil's easyweb application doesn't work if connected to wireless router


 
Sorry for my dumb answer... I'm no expert and I don't know any of the board
details or how it works.

If it works when you connect directly to your PC but it doesn't work when
connected to the router isn't it a cable issue?
Aren't you using a crossover cable to connect directly to the PC? Are you
connecting to the router with a straight cable?
I remember from the old days when I needed to connect some ethernet device
to the computer the cable had to be crossed and when using routers, hubs or
switches cables had to be straight. Nowadays nobody uses crossed-over
cables because there are routers and switches everywhere and everyone
always connects to one of those...

Regards,
Bernardo Marques.