리눅스(데비안)에서 Socket 프로그램 제작 문의
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: 리눅스(데비안)에서 Socket 프로그램 제작 문의
by justinkim ·
안녕하세요?
PC에서 쓰던 Socket 프로그램을 그대로 W5100에서 사용할 수는 없습니다.
당연히 WIZnet에서 제공하는 API를 사용해야합니다.
API 이름이 같더라도 내부는 다릅니다. 접근하는 레지스터가 전혀 다르기 때문이죠.
W5100 관련 자료는 아래 링크를 타시면 얻을 수 있구요
wiznet.co.kr/ko/product-item/w5100/
W5100의 Makefile은 Application note를 받으시면 내부에 있구요 해당 mcu와 make 설정을 수정 하신후 사용하시면 됩니다.
감사합니다.
RE: 리눅스(데비안)에서 Socket 프로그램 제작 문의
by bangbh ·
안녕하세요 Wiznet의 Peter입니다.
리눅스에서 일반적인 Socket 프로그램을 사용하시면 당연히 W5100은 동작하지 않습니다.
일반적인 socket 프로그램은 말그대로 프로그램입니다만 W5100의 socket 프로그램은 SPI 통신으로 W5100의 레지스터를 컨트롤하는 것과 일맥상통합니다.
저는 해보지 않았지만 다음과 같은 과정을 거칠 것으로 예상됩니다.
리눅스가 올라가 있는 CPU의 SPI를 활성화 및 spi read/write 함수 작성. W5100의 cs pin 활성화 및 enable/disable 함수 작성.
ioLibrary의 함수를 이용해 spi read/write 함수 등록, cs enable/disable 함수 등록.
리눅스에 포함되어 있는 socket 소프트웨어를 W5100으로 대체. 혹은 W5100의 iolibrary(socket 함수)를 다른 이름으로 make.
사용.
그럼 더 궁금한 점 있으면 댓글 남겨 주세요.
수고하세요.