View previous topic :: View next topic |
Author |
Message |
sraiderk
Joined: 09 Feb 2005 Posts: 48
|
ENC28J60 |
Posted: Wed Oct 31, 2007 3:55 am |
|
|
I have the ethernet control kit with enc28j60. I use the pic as a server and PC as a client connection is ok on the kit. I made mysell circuit. After I give the energy my circuit the pc gives the new connection ok information. But Pc software try to connect the my circuit then giving the following message
"Socket Error #100060"
Rbias= 2.7k I use Nothing change
Rbias= 2.32k I use Nothing change
kit and mycircuit using the same code (ex13b.c)
on MCU (18f4620) c5,c3,d1,d0 pins connect to directly ENC28J60 and the also this pins going to ground with 4.7k resistance.
on ENC28J60 ant pin 3 I saw the clk at 6.25Mhz
Do you have any succestion. |
|
|
asmallri
Joined: 12 Aug 2004 Posts: 1634 Location: Perth, Australia
|
|
Posted: Wed Oct 31, 2007 8:11 am |
|
|
The message you are getting is on the PC. It is telling you it does not have a route to the target. If you are connecting you PIC to the PC via a crossover cable then it is possible the link is not up indicating a possible fault on the PIC however it could be due to other reasons.
Start debugging at the PC end first. Does the interface connecting to the target have an ip address? Is the IP address in the same subnet as the target? _________________ Regards, Andrew
http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!! |
|
|
sraiderk
Joined: 09 Feb 2005 Posts: 48
|
|
Posted: Wed Oct 31, 2007 9:16 am |
|
|
asmallri ,
You are right, This message is on PC (source code in delphi). My card has a pic (18f4620) and ENC28J60. This card works as a server. The PC is a Client. On pc side I can select the server IP adres and TCP port addres (this port also be defined in my card) . TCP port addres and My card IP adres are selected the same on PC side. LedA and LedB are off position on the ENC28J60 when I supply the energy to my card. At this position, PC crosscable connected.
When I supply the energy to my card, then PC side gives the connecting message from windows. If I switch off the my card, then "no connection" message at the bottom right corner of the monitor from windows. |
|
|
sraiderk
Joined: 09 Feb 2005 Posts: 48
|
|
Posted: Wed Oct 31, 2007 9:25 am |
|
|
Yes, IP adress , Subnet mask adress, network gateway aderess .Port adress are the same |
|
|
asmallri
Joined: 12 Aug 2004 Posts: 1634 Location: Perth, Australia
|
|
Posted: Wed Oct 31, 2007 9:36 am |
|
|
sraiderk wrote: | Yes, IP adress , Subnet mask adress, network gateway aderess .Port adress are the same |
What is the IP address of the PIC?
What is the IP address of the PC?
Have you tried pinging the PIC?
Can you see the PICs MAC address in the PC's ARP cache? ARP - a _________________ Regards, Andrew
http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!! |
|
|
sraiderk
Joined: 09 Feb 2005 Posts: 48
|
|
Posted: Tue Nov 06, 2007 8:48 am |
|
|
asmallri, Thanks for all reply.
I found my problem. Every thing ok now. Thanks... |
|
|
|