Pages: 1 [2] 3 4 ... 7   Go Down
Author Topic: Implementation for Microchip ENC28J60 Ethernet controller  (Read 35082 times)
0 Members and 1 Guest are viewing this topic.
Seattle, WA
Offline Offline
God Member
*****
Karma: 11
Posts: 673
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

firstly I'm trying to finish the socket layer (implementing part of TCP and UDP stacks).

So, what's left to be done to get clients working?
Logged


Rio de Janeiro, Brazil
Offline Offline
Jr. Member
**
Karma: 1
Posts: 85
Software developer, free software activist
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Yeah, I just pulled this, and compiled the examples, and they all compiled without any complaints.  This is on OSX.

Nice! Did you opened your browser to test if page load fine?
Logged

Blog pt_BR: http://blog.justen.eng.br/
Curso de Arduino (Arduino Course, in Brazil) - http://www.CursoDeArduino.com.br/

Seattle, WA
Offline Offline
God Member
*****
Karma: 11
Posts: 673
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Nice! Did you opened your browser to test if page load fine?

Nono, haven't touched the hardware yet.  Just pulled down the software and started to dig through it.

What do you suggest as a simple test to see if the connections are even hooked up right?
Logged


Seattle, WA
Offline Offline
God Member
*****
Karma: 11
Posts: 673
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Ok, actually just for fun, I threw this together.

Running WebServerDEBUG, I get this:
Code:
DEBUG:
  INIT
DEBUG:
  ANSWERING_RECEIVED_ARP_REQUEST
DEBUG:
  INIT
DEBUG:
  INIT
DEBUG:
  ANSWERING_RECEIVED_ARP_REQUEST
DEBUG:
  INIT
DEBUG:
  INIT
DEBUG:
  INIT
DEBUG:
  INIT
DEBUG:
  INIT
DEBUG:
  INIT
DEBUG:
  INIT
DEBUG:
  ANSWERING_RECEIVED_ARP_REQUEST
DEBUG:
  INIT
DEBUG:
  IGNORING_PACKET_NOT_FOR_ME
DEBUG:
  INIT
DEBUG:
  INIT
DEBUG:
  INIT

And this is what I did to trigger it (and yes, I changed the IP address in the example to this one)

Code:
$ wget http://192.168.1.98/
--2011-03-27 20:47:21--  http://192.168.1.98/
Connecting to 192.168.1.98:80... connected.
HTTP request sent, awaiting response... Read error (Operation timed out) in headers.
Logged


Rio de Janeiro, Brazil
Offline Offline
Jr. Member
**
Karma: 1
Posts: 85
Software developer, free software activist
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

And this is what I did to trigger it (and yes, I changed the IP address in the example to this one)

Code:
$ wget http://192.168.1.98/
--2011-03-27 20:47:21--  http://192.168.1.98/
Connecting to 192.168.1.98:80... connected.
HTTP request sent, awaiting response... Read error (Operation timed out) in headers.

I know about this problem. The fact is that debugging uses too much memory and probably it needs more memory than an Arduino have. The version without debugging works perfectly. In the next days I'll work on this problem to reduce memory usage of debugging routines and hope it be fixed. Please see for updates on GitHub!
Logged

Blog pt_BR: http://blog.justen.eng.br/
Curso de Arduino (Arduino Course, in Brazil) - http://www.CursoDeArduino.com.br/

Seattle, WA
Offline Offline
God Member
*****
Karma: 11
Posts: 673
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

W00t!!

Code:
$ wget -O - -q http://192.168.1.98/
analog input 0 is 8<br />
analog input 1 is 1019<br />
analog input 2 is 434<br />
analog input 3 is 403<br />
analog input 4 is 366<br />
analog input 5 is 351<br />

Ok so like I said before...  What's left for the client?! smiley-grin
« Last Edit: March 28, 2011, 09:43:43 pm by maniacbug » Logged


Rio de Janeiro, Brazil
Offline Offline
Jr. Member
**
Karma: 1
Posts: 85
Software developer, free software activist
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

W00t!!

Code:
$ wget -O - -q http://192.168.1.98/
analog input 0 is 8<br />
analog input 1 is 1019<br />
analog input 2 is 434<br />
analog input 3 is 403<br />
analog input 4 is 366<br />
analog input 5 is 351<br />


Nice! :-)

Ok so like I said before...  What's left for the client?! smiley-grin

Hahah. I need to debug TCP three-way handshake and modify send and disconnect functions.
Logged

Blog pt_BR: http://blog.justen.eng.br/
Curso de Arduino (Arduino Course, in Brazil) - http://www.CursoDeArduino.com.br/

Seattle, WA
Offline Offline
God Member
*****
Karma: 11
Posts: 673
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hahah. I need to debug TCP three-way handshake and modify send and disconnect functions.

Well, when you do, you've got a ready user and tester right here...
Logged


0
Offline Offline
Jr. Member
**
Karma: 1
Posts: 70
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

We make a slight change on the code and now it can work with our IE shield with D8 pin config  smiley-lol

http://arduino.cc/forum/index.php/topic,57006.0.html

Logged

Itead Studio - Make innovation easier

Rio de Janeiro, Brazil
Offline Offline
Jr. Member
**
Karma: 1
Posts: 85
Software developer, free software activist
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

We make a slight change on the code and now it can work with our IE shield with D8 pin config  smiley-lol

http://arduino.cc/forum/index.php/topic,57006.0.html

Nice! Can you send me the modifications?
Logged

Blog pt_BR: http://blog.justen.eng.br/
Curso de Arduino (Arduino Course, in Brazil) - http://www.CursoDeArduino.com.br/

Espoo, Finland
Offline Offline
God Member
*****
Karma: 7
Posts: 586
"Oops, try again..."
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Where could I find magjacks? Seems to be out of stock in sparkfun, and I don't know any similar products.

Of course other solutions are possible, but I don't have experince with the interfacing of the ethernet.

Cheers,
Kari
Logged


The only law for me; Ohms Law: U=R*I       P=U*I
Note to self: "Damn! Why don't you just fix it!!!"

Seattle, WA
Offline Offline
God Member
*****
Karma: 11
Posts: 673
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I am using a module from MDFly.com for $16.95: http://www.mdfly.com/index.php?main_page=product_info&cPath=9_41&products_id=109

It's out of stock now, but they seem to also have this...  http://www.mdfly.com/index.php?main_page=product_info&cPath=9_41&products_id=484
Logged


Offline Offline
Edison Member
*
Karma: 23
Posts: 1375
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

There are boards in eBay from 12$ shipping included
Logged

Mercadillo electrónico. Kit iniciación a Arduino, shield LCD a color y más cosas!

Espoo, Finland
Offline Offline
God Member
*****
Karma: 7
Posts: 586
"Oops, try again..."
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm looking for this: http://www.sparkfun.com/products/8534

Price also matters...

Cheers,
Kari
Logged


The only law for me; Ohms Law: U=R*I       P=U*I
Note to self: "Damn! Why don't you just fix it!!!"

Sydney, Australia
Offline Offline
Full Member
***
Karma: 3
Posts: 230
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hey, this sounds great! I'll give it whirl and let you know! I've had troubles in the past with the ENC based shields, but just recently posted an apology to those shields... :-)


G.
Logged

Is life really that serious...??!

Pages: 1 [2] 3 4 ... 7   Go Up
Jump to: