Main Content

이 번역 페이지는 최신 내용을 담고 있지 않습니다. 최신 내용을 영문으로 보려면 여기를 클릭하십시오.

TCP/IP 통신

TCP/IP 인터페이스를 통해 데이터 읽기 및 쓰기

TCP(Transmission Control Protocol)는 IP(인터넷 프로토콜) 위에서 동작하는 전송 프로토콜로, 가장 많이 사용되는 네트워킹 프로토콜 중 하나입니다. MATLAB®은 TCP/IP 클라이언트 통신을 지원하므로, 사용자는 네트워크 소켓 통신을 통해 MATLAB에서 원격 호스트에 연결하여 이진 데이터와 ASCII 데이터를 모두 읽고 쓸 수 있습니다.

tcpclient를 사용하여 서버나 하드웨어에 연결하는 TCP/IP 클라이언트를 만들고 읽기 및 쓰기 작업을 수행합니다.

함수

모두 확장

tcpclientCreate TCP/IP client connection with TCP/IP server
echotcpipStart or stop TCP/IP echo server
configureTerminatorSet terminator for ASCII string communication with remote host over TCP/IP (R2020b 이후)
configureCallbackSet callback function and trigger condition for communication with remote host over TCP/IP (R2020b 이후)
readRead data from remote host over TCP/IP
readlineTCP/IP를 통한 원격 호스트에서 ASCII 문자열 데이터 라인 읽기 (R2020b 이후)
writeTCP/IP를 통해 원격 호스트에 데이터 쓰기
writelineTCP/IP를 통해 원격 호스트에 ASCII 데이터 라인 쓰기 (R2020b 이후)
flushClear buffers for communication with remote host over TCP/IP (R2020b 이후)

TCP/IP 탐색기Connect to and communicate with TCP/IP server (R2021b 이후)
하드웨어 관리자Discover and get started with your hardware (R2022a 이후)

도움말 항목

문제 해결

Troubleshooting TCP/IP Client Interface

Troubleshoot the TCP/IP client interface.

TCP/IP 클라이언트 연결 오류 해결하기

TCP/IP 클라이언트 생성 문제를 해결합니다.

Resolve TCP/IP Client Warning: Unable to Read Any Data

Troubleshoot when you receive no data and you get the warning message: 'tcpclient' unable to read any data.