Data가 사라지는 현상에 대한 질문입니다
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: Data가 사라지는 현상에 대한 질문입니다
by tgo1800 ·
(GPS data가 정상적으로 넘어오는지 확인이 필요함)
이라는 말씀이 w5300으로 Copy하려는 GPS데이터가 정상인지 확인이 필요하다는 말씀이신가요?
아니면 GPS데이터가 w5300의 TX메모리로 Copy가 잘 되는지 확인이 필요하다는 말씀이신가요?
메모리에 저장된 GPS데이터를 확인한 것입니다.
(생략)
…
setMR(MR_MT);
(생략)
…
for(i=0;i<25600;i++)//51200/2=25600
{ read_data[i]=IINCHIP_READ(Sn_TX_FIFOR(0));
}
위와 같이 MR_MT를 설정하고 TX메모리의 데이터를 읽으려고 시도 하였는데 읽히지가 않네요.
‘How to Test Internal TX/RX Memory in w5300’ 을 참고하면서 하고있는데
제가 빼먹은 부분이 있을까요?
6968번에서는 GPS데이터가 확인되지만 다음 순서인 7389번 에서는 GPS데이터가 확인이 안됩니다.
클라이언트 (w5300) : 192.168.0.230, 서버 (PC) : 192.168.0.18
데이터 전송은 아래와 같습니다.
loopback_tcpc(0,ServerIP, 3000, gps_data,0,50); //GPS데이터
loopback_tcpc(0,ServerIP, 3000, adc_data_base,0,25000); // ADC 1데이터 (0 ~ 24,999)
loopback_tcpc(0,ServerIP, 3000, adc_data_base+25000,0,25000); // ADC 1데이터 (25,000 ~ 49,999)
loopback_tcpc(0,ServerIP, 3000, adc_data_base+50000,0,25000); // ADC 2데이터 (0 ~ 24,999)
loopback_tcpc(0,ServerIP, 3000, adc_data_base+75000,0,25000); // ADC 2데이터 (25,000 ~ 49,999)
확인부탁드립니다.
RE: Data가 사라지는 현상에 대한 질문입니다
by tgo1800 ·
위 질문중 2번에 해당하는 부분을 확인하였습니다.
그 결과 TX메모리에는 복사가 잘 되어있는것을 확인하였습니다.
unsigned int * read_data = (unsigned int *)0x00320000;
TX에 저장되어 있는 데이터를 불러올 공간의 시작 주소를 위처럼 설정하고
for(i=0;i<25600;i++)//51200/2=25600
{ read_data[i]=IINCHIP_READ(Sn_TX_FIFOR(0));
}
소켓의 크기를 50kbyte로 설정하여 사용하고 있기 때문에 위와 같이 TX메모리의 데이터를 불러왔습니다.
그 결과 GPS데이터가 TX메모리에 Copy된 것을 확인하였습니다.
TX메모리에도 저장되어 있는 GPS데이터가 전송이 안되는 원인을 찾지 못하겠습니다.
