SUPPORT

  •  

Home > Technical > Q&A

Q&A

SUBJECT CONNECT stage
NAME Ricardo Pedro DATE 2013-09-27 HIT 9377

Hi,

I´m using a W5100 like TCP CLIENT mode. I´m do a OPEN stage and CONNECT stage but the socket not stabilizes. When I read the register Sn_CR, socket 0, the value is 0x03 (this value not appear in datasheet).

Any suggestion?

In W5100 initialization I define:

    unsigned char mac_addr[] = {0x00, 0x22, 0x15, 0x2A, 0xB5, 0x1F};
    unsigned char ip_addr[] = {192, 168, 1, 13};
    unsigned char sub_mask[] = {255, 255, 255, 0};
    unsigned char gtw_addr[] = {192, 168, 1, 1}; //IP do router

In socket registers:

source port: 0x07

server IP: 192.168.1.2

server port: 0x07

Any definition wrong? (I´m using a router between laptop and W5100).


Thank you!


TCP CONNECTION ON WIZ710SR 2013-09-27
W5200 LEDs blinking at startup 2013-09-26
LIST

Name
REPLE

 

 

 

QUICK MENU

 

WIZnet
Museum

 

WizWiki

 

Forum

 

Online Store