소켓이 0번잘되나 1~7번소켓은 수신시 2byte에러
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: 소켓이 0번잘되나 1~7번소켓은 수신시 2byte에러
by puredj ·
방금 테스트해봤는데 송신데이터는 정상입니다.
RE: 소켓이 0번잘되나 1~7번소켓은 수신시 2byte에러
by irina WIZnet ·
안녕하세요
W5300을 잘 사용해주셔서 감사합니다.
첨부해주셨던 구문중에, MR &MR_FS를 비교하는 구문이 있는데,
MR을 getMR()을 이용해서 사용하셔야 할것 같습니다.
즉, 함수를 시작할때, 미리 아래와 같이 작성하고,
uint16 mr = getMR();이후
if( *((vuint16* )MR) & MR_FS) 대신 if(mr & MR_RS)를 사용하시길 바랍니다.
변경하신 후에도 또다시 문제가 발생하게 된다면, 다시 답글을 남겨주시면 빠르게 대응해드리겠습니다.
감사합니다.
irina
RE: RE: 소켓이 0번잘되나 1~7번소켓은 수신시 2byte에러
by puredj ·
그다음날 iolibrary를 이용하여 해결하였습니다.
나중에 시간내서 말씀하신대로 해보고 답변드리겠습니다.
그리고 iolibrary에서 빅엔디언과 리틀엔디언 설정은 이전 라이브러리랑 동일하게 초기에 설정하면 되는건가요?
mr = getMR();
setMR(mr | MR_FS);
위 코드를 추가해서 해보니 안되고 MR_FS을 설정안하니 리틀엔디언 처리되어서 됩니다.
차후 타업체간의 연동시 빅엔디언을 사용하는데 iolibrary에서 빅엔디언 설정방법은 어떻게 하는지 부탁드리겠습니다.
RE: 소켓이 0번잘되나 1~7번소켓은 수신시 2byte에러
by irina WIZnet ·
네 ~ 초기에 설정해주시는게 맞습니다.
기본적으로 Big- endian 으로 사용되며, MR레지스터의 FS bit를 세팅하시면 Little-endian으로 동작하게 됩니다.
추후 문의 사항은 언제든 남겨주시면 답변해드리겠습니다.