W5300으로 udp 통신시 문의사항
Ethernet Chips
No replies yet. Be the first to reply.
Join the discussion.
Ethernet Chips
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: W5300으로 udp 통신시 문의사항
by viewnsys ·
ioLibrary_Driver를 다운로드 받아서
그걸 사용해 보려고 하는데 라이브러리 세팅 방법이 없네요.
혹시 예제는 없을까요?
RE: W5300으로 udp 통신시 문의사항
by bangbh ·
안녕하세요.
질문하신 내용이 정확하게 이해는 가지 않습니다만…
일단 코드상으로 보면 switch ~ case 문이 while로 돌거 같은데 새로 들어온 데이터가 있는지 getSn_RX_RSR(sn)으로 확인하시고
recvfrom을 수행하시면 좋을 것 같습니다.
그리고 랜 케이블을 제거하셨다고 해도 소켓은 SOCK_CLOSE 상태로 변하지 않습니다.
별도로 Link led의 상태를 확인해서 랜선이 떨어졌는지 유무를 확인하셔야합니다.
참고로 ioLibrary driver에 W5300 driver가 통합되었습니다.
아래 링크에서 다운로드할 수 있습니다.
[url]https://github.com/Wiznet/ioLibrary_Driver[/url]
감사합니다.
RE: W5300으로 udp 통신시 문의사항
by viewnsys ·
그곳에서 다운로드 받았는데
loopback 함수만 있고 라이브러리 초기세팅하는 부분이 없어서요…
ㅠㅠ…
RE: W5300으로 udp 통신시 문의사항
by viewnsys ·
통신문제는 알켜주신 방법으로 해결했습니다.
감사합니다.
RE: W5300으로 udp 통신시 문의사항
by bangbh ·
W5300과 interface되어 있는 MCU 혹은 보드를 가르쳐 주시면
검토하여 회신드리겠습니다. e-mail을 주셔도 됩니다.
peter@wiznet.co.kr
감사합니다.
RE: W5300으로 udp 통신시 문의사항
by viewnsys ·
W5300과 연결된 MCU는 ATMEGA128입니다.
chip init 부분과 sysinit 이부분이 다른것 같은데요…
RE: W5300으로 udp 통신시 문의사항
by bangbh ·
w5300을 initialization하는 부분은 동일할 거라고 생각됩니다.
먼저 wizchip_conf.h 중 4가지를 설정해주셔야 합니다.
WIZCHIP 5300 //W5300을 사용.
WIZCHIP_IO_MODE : direct 모드인지 indirect 모드인지.
WIZCHIP_IO_BUS_WIDTH: 8bit 주소인지 16bit 주소인지.
WIZCHIP_IO_BASE: W5300의 base address 주소(MCU에 맞게 설정하셔야 합니다.)
이 후 MCU에 맞는 bus call back 함수 작성하시고 reg_wizchip_bus_cbfunc()함수를 통해 물려주신 후
wizchip_init() 함수로 초기화 시키시고 사용하시면 될 것 같습니다.
iolibrary를 업데이트 한지 얼마 되지 않아서 아직 공식적인 예제는 없지만 필요하시다면 작성하여
공유하도록 하겠습니다.
감사합니다.