IT/IoT | Hardware 2021. 9. 3.
TI RTOS NDK 네트워크 tcp connect 연결 timeout 값 조정하기
잘 될때는 아무런 문제가 안되지만,,쩝 TCP 연결을 시도 했는데 상대방이 없거나 통신 두절인 경우 타임아웃 발생시까지 너무 오래 기다리고 있는 자신을 발견하게 된다! 안되면 그냥 한 5초 만에 결과를 알려줘!!! 이렇게 수정하고 싶은데, 음 이것도 쉽게 허락해 주지 않아. 암튼 대충 돌려보고 되는 코드는 아래와 같음 /* TCP connction timeout - 5 second */ uint32_t timeout = 5; CfgAddEntry(hCfg, CFGTAG_IP, CFGITEM_IP_SOCKTIMECONNECT, CFG_ADDMODE_UNIQUE, sizeof(uint32_t), (uint8_t *)&timeout, 0); uint32_t timeout_get1; /* Print the IP..
IT/IoT | Hardware 2019. 11. 6.
[Tech] Websocket - 웹소켓 demo site
자세히 공부한 것은 아니니, 일단 검색된 사이트 보관용. 동작을 테스트 할 수 있는 데모사이트 찾아서 정리해둠. ws/wss 테스트: http://demos.kaazing.com/echo/index.html ssl/tls 가 적용되는 버전은 wss:// 를 사용하면 된다. 그냥 시키는 대로 버튼만 누르면 테스트 가능 wss 테스트 : https://www.websocket.org/echo.html wss 만 지원된다. 패킷을 캡쳐하기 어렵다는 얘기 관련자료 WebSocket과 Socket.io https://www.websocket.org/ Youtube 영상 https://www.youtube.com/watch?v=i5OVcTdt_OU
IT/Software 2019. 10. 31.
[Tool] ScriptCommunicator - Serial, Network terminal, IPv6
또하나의 무료 시리얼 터미널 프로그램 이 프로그램은 IPv6를 지원하기 때문에 중요하다! 다운로드 링크는 아래 사이트로 방문 필수 https://sourceforge.net/projects/scriptcommunicator/ ScriptCommunicator / serial terminal Download ScriptCommunicator / serial terminal for free. Scriptable data terminal which supports several interfaces. ScriptCommunicator is a scriptable cross-platform data terminal which supports serial port (RS232, USB to serial), UDP,..
IT 2015. 3. 7.
TCP/IP 통신 예제 in mbed.org
대표적인 라이브러리를 정리해 보자.기본적으로 cookbook에 보면 몇가지 표로 정리되어 있다.http://mbed.org/handbook/TCP-IP-protocols-and-APIs주로, 공식 EthernetInterface 라이브러리를 사용하고 있다.HTTPClient - HTTPClient_HelloWorld (Donatien Garnier) TinyHTTP_b - denki-yohou_b (Suga koubou) NTPClient - NTPClient_HelloWorld (Donatien Garnier) WebSocketClient - WebSocket_HelloWorld(Samuel Mokrani) RPC over HTTP Server - RPC over HTTP Server (François..