Hi I went through forum posts and have not found a solution to my problem.
I'm building a webserver of pages: [url]http://members.home.nl/bzijlstra/software/examples/enc28j60.htm[/url]
I bought a module with ENC28J60 and ATMEGA168. Hardware is Tux WWW.
I used the source code from Ben's site but I can not see the device on the network.
Ping does not work. I tried to communicate with the module (such as the flashing of both LED and it works for me.)
Enclose the protocol packets:
[code:1:0a548e9e58]EPKTCNT = 00000010
Present nextpacketpntr 1DCE
New Nextpacketpntr 1E14
Packetlength = 0040
Rxstat = 0000001111000000
The packet:
FF FF FF FF FF FF 20 CF 30 34 3B E0 08 06 00 01 08 00 06 04 00 01 20 CF 30 34 3B E0 C0 A8 00 3C 00 00 00 00 00 00 C0 A8 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
EPKTCNT = 00000001
Present nextpacketpntr 1E14
New Nextpacketpntr 1E5A
Packetlength = 0040
Rxstat = 0000001111000000
The packet:
FF FF FF FF FF FF 54 04 A6 96 13 98 08 06 00 01 08 00 06 04 00 01 54 04 A6 96 13 98 C0 A8 00 39 00 00 00 00 00 00 C0 A8 00 43 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
EPKTCNT = 00000001
Present nextpacketpntr 1E5A
New Nextpacketpntr 1EA0
Packetlength = 0040
Rxstat = 0000001110100000
The packet:
FF FF FF FF FF FF 00 C0 EE AC 26 58 00 2B E0 E0 03 FF FF 00 28 00 01 00 00 00 00 FF FF FF FF FF FF 04 53 00 00 00 00 00 C0 EE AC 26 58 76 2D 00 01 FF FF FF FF 00 00 00 00 FF 00 00
EPKTCNT = 00000001
Present nextpacketpntr 1EA0
New Nextpacketpntr 1EE6
Packetlength = 0040
Rxstat = 0000001111000000
The packet:
FF FF FF FF FF FF 54 04 A6 96 13 98 08 06 00 01 08 00 06 04 00 01 54 04 A6 96 13 98 C0 A8 00 39 00 00 00 00 00 00 C0 A8 00 43 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
EPKTCNT = 00000001
Present nextpacketpntr 1EE6
New Nextpacketpntr 1F2C
Packetlength = 0040
Rxstat = 0000001110100000
The packet:
FF FF FF FF FF FF 00 C0 EE AC 26 58 00 2B E0 E0 03 FF FF 00 28 00 01 00 00 00 00 FF FF FF FF FF FF 04 53 00 00 00 00 00 C0 EE AC 26 58 76 2D 00 01 FF FF FF FF 00 00 00 00 FF 00 00 [/code:1:0a548e9e58]
The forum is a lot of posts that code from Ben's is wrong.
Does anybody have the latest source code for the ATmega168?
Thank you for all the contributions and tips.
Sorry for my English.[/code]
↧