Go Down

Topic: Implementation for Microchip ENC28J60 Ethernet controller (Read 35 times) previous topic - next topic

maniacbug


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?

alvarojusten


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?
Blog pt_BR: http://blog.justen.eng.br/
Curso de Arduino (Arduino Course, in Brazil) - http://www.CursoDeArduino.com.br/

maniacbug


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?

maniacbug

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

Running WebServerDEBUG, I get this:
Code: [Select]

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: [Select]

$ 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.

alvarojusten


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

Code: [Select]

$ 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!
Blog pt_BR: http://blog.justen.eng.br/
Curso de Arduino (Arduino Course, in Brazil) - http://www.CursoDeArduino.com.br/

maniacbug

#20
Mar 29, 2011, 04:39 am Last Edit: Mar 29, 2011, 04:43 am by maniacbug Reason: 1
W00t!!

Code: [Select]

$ 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?! :D

alvarojusten


W00t!!

Code: [Select]

$ 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?! :D


Hahah. I need to debug TCP three-way handshake and modify send and disconnect functions.
Blog pt_BR: http://blog.justen.eng.br/
Curso de Arduino (Arduino Course, in Brazil) - http://www.CursoDeArduino.com.br/

maniacbug


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...

ITead

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

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

Itead Studio - Make innovation easier

alvarojusten


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

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


Nice! Can you send me the modifications?
Blog pt_BR: http://blog.justen.eng.br/
Curso de Arduino (Arduino Course, in Brazil) - http://www.CursoDeArduino.com.br/

GaryP

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
The only law for me; Ohms Law: U=R*I       P=U*I
Note to self: "Damn! Why don't you just fix it!!!"

maniacbug

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

chiva

There are boards in eBay from 12$ shipping included
Mercadillo electrónico. Kit iniciación a Arduino, shield LCD a color y más cosas!

GaryP

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

Price also matters...

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

pocketscience

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.
Is life really that serious...??!

Go Up