---
title: "w5300 TCP 클라이언트 구현 중 데이터 Send 시 112Byte를 초과해서 전송이 안되는 문제"
url: "https://maker.wiznet.io/forum/15131"
markdown_url: "https://maker.wiznet.io/forum/15131/md"
type: "Forum topic"
category: "Ethernet Chips"
author: "kiwa72"
created: "2024-01-24T03:20:47+09:00"
last_activity: "2024-01-24T03:20:47+09:00"
language: "ko"
views: 180
replies: 0
source: "WIZnet Makers forum (https://maker.wiznet.io/forum/)"
---

# w5300 TCP 클라이언트 구현 중 데이터 Send 시 112Byte를 초과해서 전송이 안되는 문제

## Question

Asked by kiwa72 on 2024-01-24 in Ethernet Chips.

[W5300]
w5300 TCP 클라이언트 구현 중 데이터 Send 시 112Byte를 초과해서 전송이 안되는 문제가 생겨 문의 드립니다.
아래 구현 코드 내용입니다.

1. TX, RX 버퍼 셋팅
   unsigned char W5x00_AdrSet[2][8] = {{ 8, 8, 8, 8, 8, 8, 8, 8 }, { 8, 8, 8, 8, 8, 8, 8, 8 }};
   …
   if (ctlwizchip(CW_INIT_WIZCHIP, (void*)W5x00_AdrSet) == -1)
   …

2. 소켓 생성
   ret = socket(sn_TCP, Sn_MR_TCP, Port_Num, SF_TCP_NODELAY);

3. 서버 접속
   do
   {
   ret = connect(sn_TCP, IPaddr, Port_Num);
   …

4. 전송 데이터 버퍼 - 임의의 값으로 채움
   uint8_t SendBuf[40960] = {0,};

5. 데이터 전송
   int defOne = 112; &lt;&lt;- 112 Byte 까지는 정상 전송이 되만 113 Byte는 전송이 안됨
   do
   {
   int nOneSize = (nTotSendLength - nTotSending) >= defOne ? defOne : (nTotSendLength - nTotSending);
   ret = send(sn_TCP, SendBuf, nOneSize);
   …
   데이터 전송이 112 Byte 밖에 안되는 원인이 무엇인지 알려주시면 감사하겠습니다.

---

Source: https://maker.wiznet.io/forum/15131
