View previous topic :: View next topic |
Author |
Message |
bzijlstra
Joined: 30 Dec 2004 Posts: 1179 Location: Tilburg - Netherlands
|
Posted: Thu Apr 25, 2013 11:41 am Post subject: PC network settings... |
|
|
And to be complete. How is your module connected to the network, how is your PC connected to the network. What is the IP-address of your PC? |
|
Back to top |
|
|
jakub.jnm
Joined: 26 Mar 2013 Posts: 20
|
Posted: Thu Apr 25, 2013 1:12 pm Post subject: Re: PC network settings... |
|
|
bzijlstra wrote: | And to be complete. How is your module connected to the network, how is your PC connected to the network. What is the IP-address of your PC? |
By this PDF http://www.tme.eu/cz/Document/b8f1cbb6491703b1bb14331982f52e62/wiz810mj.pdf I connect JP2 9 with VCC through resistor.
My computer has address 192.168.0.50
Modul is connected with my computer through by switch. |
|
Back to top |
|
|
bzijlstra
Joined: 30 Dec 2004 Posts: 1179 Location: Tilburg - Netherlands
|
Posted: Thu Apr 25, 2013 5:02 pm Post subject: |
|
|
What about the leds on the Wiz810mj? Do you get a link? Two leds, which one is on. On the switch do you have a link? On what voltage your Atmega32 is running? Is it possible to put your pc fixed on a ip address and connect the wiz with a crosscable to your pc and do a ping? What leds are on when you do this?
There is a small led test on my homepage. Does that work? We could check with this test if SPI is running well.
Did you check your reset signal with a scope?
Ben Zijlstra |
|
Back to top |
|
|
jakub.jnm
Joined: 26 Mar 2013 Posts: 20
|
Posted: Fri May 03, 2013 11:14 am Post subject: |
|
|
bzijlstra wrote: | What about the leds on the Wiz810mj? Do you get a link? Two leds, which one is on. On the switch do you have a link? On what voltage your Atmega32 is running? Is it possible to put your pc fixed on a ip address and connect the wiz with a crosscable to your pc and do a ping? What leds are on when you do this?
There is a small led test on my homepage. Does that work? We could check with this test if SPI is running well.
Did you check your reset signal with a scope?
Ben Zijlstra |
Both of the Leds are blinking [orange and green].
Atmega32 is on testing board with 5V.
Wiznet is running on 3,6V from laboratory power supply.
I connected wiznet and PC directly without switch and ping didn't work.
I am desperate:(
I tried but had same result.
Before this documentation i connected wiznet with atmega
http://www.atmel.com/Images/doc2503.pdf
PB4-PB7 as SPI interface
PB2 as Chipselect
PD3 as Reset
Is this ok? |
|
Back to top |
|
|
WXYZ
Joined: 07 Apr 2013 Posts: 11
|
Posted: Fri May 03, 2013 6:51 pm Post subject: Led's |
|
|
You wrote: "Both of the Leds are blinking [orange and green]."
In my opinion You have periodically Reset of module. In normal work green Led should shine continuously...
And cable between PC and WIZ810MJ should be cross. Maybe that "PD3 as Reset" is responsible for trouble. Can You try working without INT1?
In your case it will be:
Code: | Config Tcpip = Noint , Mac = 00.40.66.34.56.78 , Ip = 192.168.0.50 , Submask = 255.255.255.0 , Gateway = 192.168.0.1 , Localport = 8000 , Tx = &B11 , Rx = &B11 , Chip = W5100 , Spi = 1 , Cs = Portb.2 |
Of course SPI_Enable must be set to 1. |
|
Back to top |
|
|
jakub.jnm
Joined: 26 Mar 2013 Posts: 20
|
Posted: Tue May 07, 2013 10:41 am Post subject: Re: Led's |
|
|
WXYZ wrote: | You wrote: "Both of the Leds are blinking [orange and green]."
In my opinion You have periodically Reset of module. In normal work green Led should shine continuously...
And cable between PC and WIZ810MJ should be cross. Maybe that "PD3 as Reset" is responsible for trouble. Can You try working without INT1?
In your case it will be:
Code: | Config Tcpip = Noint , Mac = 00.40.66.34.56.78 , Ip = 192.168.0.50 , Submask = 255.255.255.0 , Gateway = 192.168.0.1 , Localport = 8000 , Tx = &B11 , Rx = &B11 , Chip = W5100 , Spi = 1 , Cs = Portb.2 |
Of course SPI_Enable must be set to 1. |
His thanks for your advice!!
Sorry i made wrong in my previous respone. The green LED is still lighting and orange is Flashing.
As you wrote i tried this code:
Code: |
$regfile = "m32def.dat"
$crystal = 16000000
$hwstack = 64
$swstack = 64
$framesize = 64
Config Tcpip = Noint , Mac = 00.40.66.34.56.78 , Ip = 10.0.1.171 , Submask = 255.255.255.0 , Gateway = 10.0.1.1 , Localport = 8000 , Tx = &B11 , Rx = &B11 , Chip = W5100 , Spi = 1 , Cs = Portb.2
Spiinit
|
But still didn't respone on ping :O/
Yes, I have connected SPI_EN for enbable SPI. I connected Wiznet directly with computer via cross cable. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum
|
|