[From QnA]Wiznet812MJ register default values
IO Modules
No replies yet. Be the first to reply.
Join the discussion.
IO Modules
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: [From QnA]Wiznet812MJ register default values
by wiznetmuseum ·
Let me put it this way, I am following iEthernet bootcamp for my project and my program’s failing when I do the following:
//SOCKET INTI******************************************************
do{
wr_wiz_reg(Sn_MR_UDP,Sn_MR(0)) //protocol = UDP
wr_wiz_reg(0x00,Sn_PORT0(0)) //well-known ECHO port
wr_wiz_reg(0x07,Sn_PORT1(0))
wr_wiz_reg(Sn_CR_OPEN,Sn_CR(0)) //give the open command
if(rd_wiz_reg(Sn_SR(0)) != SOCK_UDP) //wait for the socket to come online
wr_wiz_reg(Sn_CR_CLOSE,Sn_CR(0))
}while(rd_wiz_reg(Sn_SR(0)) != SOCK_UDP)
My Sn_SR(0) is always showing 0x00 instead of SOCK_UDP. Ping works though.
RE: [From QnA]Wiznet812MJ register default values
by wiznetmuseum ·
Hello,
Thank you for your interest to WIZnet and our products.
You had better to use the W5100 driver.
When you write the Sn_CR, you should wait sometime to process.
But your case, read the Sn_SR just after writing the Sn_CR with any waiting time.
That might be always fail.
…
wr_wiz_reg(Sn_CR_OPEN,Sn_CR(0)) //give the open command
if(rd_wiz_reg(Sn_SR(0)) != SOCK_UDP) //wait for the socket to come online
…
So insert the belowing code
…
wr_wiz_reg(Sn_CR_OPEN,Sn_CR(0)) //give the open command
while( IINCHIP_READ(Sn_CR(s)) ) //Wait the process is done
if(rd_wiz_reg(Sn_SR(0)) != SOCK_UDP) //wait for the socket to come online
…
Thanks.
RE: [From QnA]Wiznet812MJ register default values
by wiznetmuseum ·
Hi,
Thanks for your reply. However, it didn’t make any difference. Actually I had tried it earlier too. I am still getting the same results, could there be another reason? I am really stuck in my project as this is a very basic step in setting up the sockets. Help!!
Hello,
Thank you for your interest to WIZnet and our products.
You had better to use the W5100 driver.
When you write the Sn_CR, you should wait sometime to process.
But your case, read the Sn_SR just after writing the Sn_CR with any waiting time.
That might be always fail.
…
wr_wiz_reg(Sn_CR_OPEN,Sn_CR(0)) //give the open command
if(rd_wiz_reg(Sn_SR(0)) != SOCK_UDP) //wait for the socket to come online
…
So insert the belowing code
…
wr_wiz_reg(Sn_CR_OPEN,Sn_CR(0)) //give the open command
while( IINCHIP_READ(Sn_CR(s)) ) //Wait the process is done
if(rd_wiz_reg(Sn_SR(0)) != SOCK_UDP) //wait for the socket to come online
…
Thanks.
RE: [From QnA]Wiznet812MJ register default values
by wiznetmuseum ·
Hello,
We do not know what problem do you have just seeing your question now.
There can be many reason of problem that unable to open a socket.
So if you do not mind, please let me see your register writing code for W5100 and also let me know
your testing environment more detail.
And check reading, writing the registers on W5100 was successful.
Thanks.