CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

ENC28J60

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
sraiderk



Joined: 09 Feb 2005
Posts: 48

View user's profile Send private message

ENC28J60
PostPosted: Wed Oct 31, 2007 3:55 am     Reply with quote

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: 1635
Location: Perth, Australia

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Wed Oct 31, 2007 8:11 am     Reply with quote

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

View user's profile Send private message

PostPosted: Wed Oct 31, 2007 9:16 am     Reply with quote

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

View user's profile Send private message

PostPosted: Wed Oct 31, 2007 9:25 am     Reply with quote

Yes, IP adress , Subnet mask adress, network gateway aderess .Port adress are the same
asmallri



Joined: 12 Aug 2004
Posts: 1635
Location: Perth, Australia

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Wed Oct 31, 2007 9:36 am     Reply with quote

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

View user's profile Send private message

PostPosted: Tue Nov 06, 2007 8:48 am     Reply with quote

asmallri, Thanks for all reply.

I found my problem. Every thing ok now. Thanks...
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
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


Powered by phpBB © 2001, 2005 phpBB Group