View previous topic :: View next topic |
Author |
Message |
farhadi
Joined: 09 Feb 2008 Posts: 46 Location: TEHRAN
|
Posted: Thu Feb 28, 2008 9:00 pm Post subject: Enc28j60 And Atmega32 |
|
|
Hi Dear(s).
I want work with enc28j60 Ethernet Chip beacuse this chip is very simple.
please help me.
best regard. |
|
Back to top |
|
|
george2002
Joined: 23 Nov 2005 Posts: 74 Location: Krakow
|
|
Back to top |
|
|
farhadi
Joined: 09 Feb 2008 Posts: 46 Location: TEHRAN
|
Posted: Fri Feb 29, 2008 3:06 pm Post subject: |
|
|
Hi.
Thank you george2002 for your post.
I was read this tutorial but its very difficult.
i want learn more simple.
I want send 4 variable to pc over ethernet, show me best and simple way.
please help me.
best regard. |
|
Back to top |
|
|
george2002
Joined: 23 Nov 2005 Posts: 74 Location: Krakow
|
Posted: Mon Mar 03, 2008 11:40 pm Post subject: |
|
|
hello again farhadi :) i'm study Ben's code and can't help you a lot but you could study itself and its not so difficult as you think but you must spend some time and study this code or ask Ben if he can help you :)
Best Regards
George2002 |
|
Back to top |
|
|
farhadi
Joined: 09 Feb 2008 Posts: 46 Location: TEHRAN
|
Posted: Tue Mar 04, 2008 4:55 pm Post subject: |
|
|
thank you george2002.
best regard. |
|
Back to top |
|
|
bzijlstra
Joined: 30 Dec 2004 Posts: 1179 Location: Tilburg - Netherlands
|
Posted: Tue Mar 04, 2008 5:56 pm Post subject: ENC28J60.... |
|
|
If you got any question about ENC28J60 and SPI ask it here in this friendly forum. I check this forum every day (and also learning a lot from it).
Have fun
Ben Zijlstra |
|
Back to top |
|
|
farhadi
Joined: 09 Feb 2008 Posts: 46 Location: TEHRAN
|
Posted: Wed Mar 12, 2008 10:55 am Post subject: |
|
|
Hi Ben.
Thank you For replying.
I Want make simple connection in Ethernet for send 4 variable to pc.
i read your tutorial its very very good but its professional i cant know this.
please help me.
best regard. |
|
Back to top |
|
|
bzijlstra
Joined: 30 Dec 2004 Posts: 1179 Location: Tilburg - Netherlands
|
Posted: Wed Mar 12, 2008 1:38 pm Post subject: ethernet... |
|
|
If you choose Ethernet than there are some routines you can't do without. You need at least ARP, Address Resultion Protocol. To get the MAC-address belonging to a IP-number. You could just use the UDP-protocol (connectionless) instead of TCP, the first one only shouts your information on the netwerk and hopes it will arrive. The TCP uses a session and you can be sure your data will arrive.
Perhaps you could consider something more easy to use if ethernet is to difficult. RF, serial...
Have fun
Ben Zijlstra |
|
Back to top |
|
|
Alex20q90
Joined: 24 Sep 2007 Posts: 89
|
Posted: Mon Dec 08, 2008 6:39 pm Post subject: |
|
|
Hi,
i would like to use the pollin AVR-NET-IO-Board with your code!
But i cant get it to work!
First time i would like to build a RS232_to_UDP-Bridge,
second, i would like to try a webserver!
greetings
alex |
|
Back to top |
|
|
Alex20q90
Joined: 24 Sep 2007 Posts: 89
|
Posted: Tue Dec 09, 2008 4:32 pm Post subject: |
|
|
Hi hi,
now i have the udp-part in work! I can port (on rs232) the source-ip and source/dest-port!
But, ive i try to get a http-site from the board, i cant!
the tcp_ack=0 and the tcp_psh=0 |
|
Back to top |
|
|
pashe007
Joined: 28 Dec 2006 Posts: 7
|
Posted: Sat Dec 13, 2008 7:00 am Post subject: |
|
|
Hello .
I have board from tuxgraphic project with enc28j60 chip . i uesed ben's hobby code from benshobbycorner.nl
but this code not work for me.
some time the ethernet LED blink after 2-3 min after power up . but no ping or arp on lan & on serial port i have only FFFFFF data on it.
some time the led not blink .
i sure my hardware is ok & dont have any problem .
but i used ATMEGA 168 V .
my bascom version is 1.11.9.0
please help me .
best regard |
|
Back to top |
|
|
pashe007
Joined: 28 Dec 2006 Posts: 7
|
Posted: Tue Dec 16, 2008 8:25 am Post subject: |
|
|
hello .
i think found my problem in bascom program or ENC28J60 chip.
my program stop working at
Waitus 12
Do
Call Enc28j60readcontrolregbyte(mistat)
Loop Until Enc28j60_data.mistat_busy =0
and goto loop for ever because the mistat register return 234 (decimal) and mistat_busy is 1 .
what hapend for program or ENC28J60 ?
when i remak that code the led blink at 1 HZ and i have fffff in data . see picture for more detail
please help me on my problem .
my bascom version is 1.11.9.0
http://s4.tinypic.com/5b789j.jpg |
|
Back to top |
|
|
bzijlstra
Joined: 30 Dec 2004 Posts: 1179 Location: Tilburg - Netherlands
|
Posted: Tue Dec 16, 2008 9:42 am Post subject: ENC28J60 and newer Bascom-versions... |
|
|
Hi All
There seems to be a problem with the code I wrote for the ENC28J60. On the Bascom-AVR version prior 1.11.91 everything works fine, on newer versions the SPI as I used it in the program doesn't seem to work anymore. I have contacted MCS about this and got some hints to solve this problem. Using SPImove instead of the SPI-commands I am using now. Will have a good look at it at make some corrections in the program.
http://members.home.nl/bzijlstra/software/examples/enc28j60.htm
Ben Zijlstra |
|
Back to top |
|
|
pashe007
Joined: 28 Dec 2006 Posts: 7
|
Posted: Tue Dec 16, 2008 12:22 pm Post subject: |
|
|
I used bascom avr 11.8.7 for new compile of code .
but i have same result .
have loop at
Do
Call Enc28j60readcontrolregbyte(mistat)
Loop Until Enc28j60_data.mistat_busy =0
the value of mistat is 234 & value of mistat_busy is 1.
i am mixup .
please help me on that .
my boss kill me at next week if i dont .
|
|
Back to top |
|
|
Alex20q90
Joined: 24 Sep 2007 Posts: 89
|
Posted: Wed Dec 17, 2008 1:47 pm Post subject: |
|
|
Hi Ben,
whats happen with the tcp_ack=0 and the tcp_psh=0 ?
Is that a SPI-Error?
I would like to programm a WebServer with the Pollin-Board.
Next i would like to Send UDP and Receive UDP-Messages!
Receiveing work! But sendig does not work well. My prob is understanding your code! It wile be fine if i know how to write a routine like
Sub UDP_Send(dest-ip-adress,nuber of bytes to send,SendigBytes())
or
Sub UDP_Send(dest-ip-adress,nuber of bytes to send)
Sendig Byte is like dim TrxByte(255) as byte.
Greeting Alex |
|
Back to top |
|
|
|