I tried the following sequence, it seems to work better, though still timeouts some times: - set /reset pin to low - setup spi - set /reset pin to high - delay 2s - init enc28j60
Most of the time it works. Not ideal, but I can live with this :) I have few comments in general: - enc28j60.jal requires debug lib: I think it would be better to remove this dependency. I also understand this is still work in progress, some more work needed, so that's ok :) - hide ARP details from ICMP level: I think it would be great if all ARP details would handled behind the scene and hidden to user. Maybe a "ping" procedure, which would internally deal with ARP and ICMP protocols. I'll give a try if you're ok. Cheers, Seb 2011/12/11 mattschinkel <[email protected]> > I have not had this issue, but it is obvious that it is some power > issue. > > I heard from someone (maybe william), that ENC28J60 takes a lot of > current. > > How about USB power? > > Matt. > > On Dec 11, 10:46 am, Sebastien Lelong <[email protected]> > wrote: > > Hi Matt, guys, > > > > Good news, I have a ping sample working nicely on my jaluino bee board. > > I've adapted it from one of yours, I can my board, and ping google as > well. > > > > One weird behavior though: when I power the board (from PicKit2), I got a > > timeout while getting ARP reply: > > > > sending arp request, waiting for reply... > > > > ERROR: ARP did not get a reply. Is your network connected correctly? > > > > When I power, keep PIC in reset state with MCLR, then let the PIC start, > I > > get ARP replies: > > > > -- ENC28J60 Ping sample -- > > > > Chip rev: 6 > > > > sending arp request, waiting for reply... > > > > ARP Reply Recieved! > > > > ARP Reply Recieved! > > > > ARP Reply Recieved! > > > > ARP Reply Recieved! > > > > ARP Reply Recieved! > > > > You are connected! Your Router or PC mac address is: > > > > 00-0B-DB-6B-59-F5 > > > > I'm wondering if there's a timing issue, have you faced this behavior > too ? > > > > Thanks > > Seb > > > > 2011/12/3 mattschinkel <[email protected]> > > > > > > > > > > > > > I used a module from ebay.. something like this: > > > > >http://www.ebay.com/itm/ICDev-ENC28J60-Ethernet-Module-Development-Bo. > .. > > > > > Matt. > > > > > On Dec 3, 3:59 am, Sebastien Lelong <[email protected]> > > > wrote: > > > > thanks > > > > seb > > > > > > 2011/12/3 vasile surducan <[email protected]> > > > > > > > On Wed, Nov 30, 2011 at 12:11 PM, Sebastien Lelong < > > > > > [email protected]> wrote: > > > > > > >> Hi Matt, guys, > > > > > > >> I'm about to try ENC28J60 module on Bee board, PIC18F27J53 based. > I > > > took > > > > >> 18f4620_network_ping.jal as a starting sample. I have few > questions > > > about > > > > >> pin definitions: sample sets enc_reset and enc_int, are they > really > > > needed > > > > >> ? I thought only SPI lines were needed. I don't see where enc_int > > > used. > > > > > > >> (any schematic ? :)) > > > > > > >> See if you don't read carefully the jallib posts? > > > > > [?] > > > > > I've re-attached two schematics, take any one which you've > understood. > > > > > The Eagle style is is from Olimex. > > > > > > > Vasile > > > > > > >> Thanks > > > > >> Seb > > > > > > >> -- > > > > >> You received this message because you are subscribed to the Google > > > Groups > > > > >> "jallib" group. > > > > >> To post to this group, send email to [email protected]. > > > > >> To unsubscribe from this group, send email to > > > > >> [email protected]. > > > > >> For more options, visit this group at > > > > >>http://groups.google.com/group/jallib?hl=en. > > > > > > > -- > > > > > You received this message because you are subscribed to the Google > > > Groups > > > > > "jallib" group. > > > > > To post to this group, send email to [email protected]. > > > > > To unsubscribe from this group, send email to > > > > > [email protected]. > > > > > For more options, visit this group at > > > > >http://groups.google.com/group/jallib?hl=en. > > > > > > -- > > > > Sébastien Lelong > > > > > > 338.gif > > > > < 1KViewDownload- Hide quoted text - > > > > > > - Show quoted text - > > > > > -- > > > You received this message because you are subscribed to the Google > Groups > > > "jallib" group. > > > To post to this group, send email to [email protected]. > > > To unsubscribe from this group, send email to > > > [email protected]. > > > For more options, visit this group at > > >http://groups.google.com/group/jallib?hl=en. > > > > -- > > Sébastien Lelong- Hide quoted text - > > > > - Show quoted text - > > -- > You received this message because you are subscribed to the Google Groups > "jallib" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/jallib?hl=en. > > -- Sébastien Lelong -- You received this message because you are subscribed to the Google Groups "jallib" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/jallib?hl=en.
