귀사의 W5100을 사용하고 있습니다.
W5100 4개의 소켓중 1개는 텔넷으로 이용하고 3개는 TCP Server Mode로 사용중입니다.
Telnet 접속시 이상현상이 생겨 문의 드립니다.
Telnet에서 Mac, IP, Gateway, Subnet을 표시해주는 함수를 불러올 때 가끔 아래와 같은 메세지가 표시 됩니다.
///////////////////////////////////////////////////////////////////////////
void display_netconf_Telnet(NETCONF* pNetConf)
{
u_int i;
fsprintf(CTRL_SOCK,“\r\nMAC Addr : “);
for(i=0; i<5;i++) fsprintf(CTRL_SOCK,”%02X.”,pNetConf->mac[i]);
fsprintf(CTRL_SOCK,“%02X”,pNetConf->mac[i]);
fsprintf(CTRL_SOCK,“\r\nSource IP : %s”,inet_ntoa(ntohl(pNetConf->sip)));
fsprintf(CTRL_SOCK,“\r\nGateway IP : %s”,inet_ntoa(ntohl(pNetConf->gwip)));
fsprintf(CTRL_SOCK,“\r\nSubnet Mask : %s\r\n”,inet_ntoa(ntohl(pNetConf->sn)));
}
///////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////
host= HTTP/1.0
Host: xx.xx.xx.xx : 5000
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
Content-Type: ?plt: xx.xx.xx.xx:5000
////////////////////////////////////////////////////////////
이와 같은 현상이 있었거나 원인을 알고 계시면 도움 감사히 받겠습니다.
수고하십시요.