Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Enc28j60 And Atmega32
Goto page 1, 2  Next
 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> EASY TCP/IP
View previous topic :: View next topic  
Author Message
farhadi

Bascom Member



Joined: 09 Feb 2008
Posts: 46
Location: TEHRAN

iran.gif
PostPosted: Thu Feb 28, 2008 9:00 pm    Post subject: Enc28j60 And Atmega32 Reply with quote

Hi Dear(s).
I want work with enc28j60 Ethernet Chip beacuse this chip is very simple.
please help me.


best regard.
Back to top
View user's profile Yahoo Messenger
george2002

Bascom Member



Joined: 23 Nov 2005
Posts: 74
Location: Krakow

poland.gif
PostPosted: Fri Feb 29, 2008 12:16 am    Post subject: Reply with quote

http://members.home.nl/bzijlstra/software/examples/enc28j60.htm ben have nice page about connecting atmega to enc28j60 :)
Back to top
View user's profile Visit poster's website
farhadi

Bascom Member



Joined: 09 Feb 2008
Posts: 46
Location: TEHRAN

iran.gif
PostPosted: Fri Feb 29, 2008 3:06 pm    Post subject: Reply with quote

Hi.
Thank you george2002 for your post. Smile
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
View user's profile Yahoo Messenger
george2002

Bascom Member



Joined: 23 Nov 2005
Posts: 74
Location: Krakow

poland.gif
PostPosted: Mon Mar 03, 2008 11:40 pm    Post subject: Reply with quote

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
View user's profile Visit poster's website
farhadi

Bascom Member



Joined: 09 Feb 2008
Posts: 46
Location: TEHRAN

iran.gif
PostPosted: Tue Mar 04, 2008 4:55 pm    Post subject: Reply with quote

thank you george2002.

best regard.
Back to top
View user's profile Yahoo Messenger
bzijlstra

Bascom Ambassador



Joined: 30 Dec 2004
Posts: 1179
Location: Tilburg - Netherlands

netherlands.gif
PostPosted: Tue Mar 04, 2008 5:56 pm    Post subject: ENC28J60.... Reply with quote

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
View user's profile Visit poster's website
farhadi

Bascom Member



Joined: 09 Feb 2008
Posts: 46
Location: TEHRAN

iran.gif
PostPosted: Wed Mar 12, 2008 10:55 am    Post subject: Reply with quote

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. Sad
please help me.


best regard.
Back to top
View user's profile Yahoo Messenger
bzijlstra

Bascom Ambassador



Joined: 30 Dec 2004
Posts: 1179
Location: Tilburg - Netherlands

netherlands.gif
PostPosted: Wed Mar 12, 2008 1:38 pm    Post subject: ethernet... Reply with quote

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
View user's profile Visit poster's website
Alex20q90

Bascom Member



Joined: 24 Sep 2007
Posts: 89

germany.gif
PostPosted: Mon Dec 08, 2008 6:39 pm    Post subject: Reply with quote

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
View user's profile
Alex20q90

Bascom Member



Joined: 24 Sep 2007
Posts: 89

germany.gif
PostPosted: Tue Dec 09, 2008 4:32 pm    Post subject: Reply with quote

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
View user's profile
pashe007

Bascom Member



Joined: 28 Dec 2006
Posts: 7

iran.gif
PostPosted: Sat Dec 13, 2008 7:00 am    Post subject: Reply with quote

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
View user's profile
pashe007

Bascom Member



Joined: 28 Dec 2006
Posts: 7

iran.gif
PostPosted: Tue Dec 16, 2008 8:25 am    Post subject: Reply with quote

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
View user's profile
bzijlstra

Bascom Ambassador



Joined: 30 Dec 2004
Posts: 1179
Location: Tilburg - Netherlands

netherlands.gif
PostPosted: Tue Dec 16, 2008 9:42 am    Post subject: ENC28J60 and newer Bascom-versions... Reply with quote

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
View user's profile Visit poster's website
pashe007

Bascom Member



Joined: 28 Dec 2006
Posts: 7

iran.gif
PostPosted: Tue Dec 16, 2008 12:22 pm    Post subject: Reply with quote

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 .
Shocked
Back to top
View user's profile
Alex20q90

Bascom Member



Joined: 24 Sep 2007
Posts: 89

germany.gif
PostPosted: Wed Dec 17, 2008 1:47 pm    Post subject: Reply with quote

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
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> EASY TCP/IP All times are GMT + 1 Hour
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
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