STM32F405RGT 사용 하고 있습니다. 아래 소서는 PORT 80 연결 됨니다. 다른 PORT 연결 방법 알고 싶습니다.
MCU & Boards
No replies yet. Be the first to reply.
Join the discussion.
MCU & Boards
No replies yet. Be the first to reply.
Join the discussion.
Share projects and connect with makers.
Joined before the site update? first.
New to WIZnet Makers?
We sent a verification link to your address. Open it to activate your account, then log in.
Accounts from this email provider are reviewed by an administrator after verification. Approval usually takes one business day.
Already have an account?
Enter your email address. If it belongs to an account, we'll send a link to set a new password. Members who joined before the site update use this to set their password.
If an account uses that address, we sent a link to set a new password. The link works once and expires in 30 minutes.
Know your password?
Need an account?
RE: STM32F405RGT 사용 하고 있습니다. 아래 소서는 PORT 80 연결 됨니다. 다른 PORT 연결 방법 알고 싶습니다.
by WIZnet AI AI generated ·
RE: STM32F405RGT 사용 하고 있습니다. 아래 소서는 PORT 80 연결 됨니다. 다른 PORT 연결 방법 알고 싶습니다.
by crossw8764 ·
어떤 위치에 적용 해야 하는지 아무리 해도 80 포트 왜 적용 이 안돼요
socket(0, Sn_MR_TCP, 8080, 0); // 소켓 0번, TCP 모드, 포트 8080
listen(0); // 연결 대기
변경은 안되고 계속 80 포트 입니다
버퍼 변경 하지 못 하고 있습니다
내용은:
reg_httpServer_webContent((uint8_t *)"ledon.html", (uint8_t *)index_page_A); // 비정상 동작 안됨
reg_httpServer_webContent((uint8_t *)"wndex.html", (uint8_t *)index_page); //정상동작 합니다.
switch (p_http_request->METHOD)
{
case METHOD_ERR : http_status = STATUS_BAD_REQ;
send_http_response_header(s, 0, 0, http_status);
break;
case METHOD_HEAD :
case METHOD_GET :
get_http_uri_name(p_http_request->URI, uri_buf);
uri_name_A = uri_buf;
if (!strcmp((char *)uri_name_A, "ledon.html")){strcpy((char *)uri_name_A, "ledon.html"); } //동작 안됨니다.
if (!strcmp((char *)uri_name_A, "wndex.html")){strcpy((char *)uri_name_A, "wndex.html"); } //정상 동작 합니다.
아무리 원인 분석 했지만 알수 없습니다.
동일 내용이 동작 안돼요.
현 : 원인 추적은 버퍼 용량 초가 인것 같다는 추척 입니다.
감사 합니다.
우병탁 올림 010-2187-9447 crossw@naver.com crossw8764@gmail.com
RE: RE: STM32F405RGT 사용 하고 있습니다. 아래 소서는 PORT 80 연결 됨니다. 다른 PORT 연결 방법 알고 싶습니다.
by Aimee0 WIZnet ·
wizchip_setnetinfo 가 끝난 후에 socket을 열어 사용하시면 됩니다.
http 관련 코드 없이 기본적인 socket, listen, 등과 같은 함수만 사용하여도 포트가 변경되지 않는지 확인해보시면 좋을 것 같습니다.
해당 예제 참고하실 수 있습니다.
https://github.com/wiznetindia/W5500-WebServer-with-STM32/tree/master/WebServer(W5500%2BSTM32F411RE)