Weird TCP/IP behaviour with Ethernet2 SPI board.

General discussion on mikroPascal PRO for AVR.
Post Reply
Author
Message
astram
Posts: 53
Joined: 07 Jun 2011 21:51

Weird TCP/IP behaviour with Ethernet2 SPI board.

#1 Post by astram » 08 Sep 2012 20:21

Hi ME team.

I'm experiencing a strange problem with Ethernet2 SPI board.

Compiler: MikroPascalPro 5.60
MCU: ATMega16@16MHz
Board: Ethernet2 SPI

The setup respond perfectely when accessed from its local network:

Board: 192.168.15.60/24
Gateway: 192.168.15.1
PC Browser: 192.168.15.120/24

But when the browser is on another network (192.168.1.120/24) there is no answer from the board.

Analysis show that the request really reach the board (an LCD is connected that shows status of incoming request).

But the board seems not to answser back to the originating IP, even if the gateway has been correctely set up.

Is there any known issue, or limitation, with Ethernet2 board and SPI_Ethernet standard library regarding IP routing ?

Regards.

User avatar
janko.kaljevic
Posts: 3565
Joined: 16 Jun 2011 13:48

Re: Weird TCP/IP behaviour with Ethernet2 SPI board.

#2 Post by janko.kaljevic » 10 Sep 2012 13:25

Hello,

In the code you need to set up network parameters properly.
According to your post, you have set these parameters properly for one network, but not for other.

Please check settings of the IP address, sub net mask, gateway in the code.

Also in other case can you ping your board?

Best regards.

Post Reply

Return to “mikroPascal PRO for AVR General”