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 support@ccsinfo.com

ENC28j60 how to start

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



Joined: 10 Dec 2011
Posts: 376
Location: Sofiq,Bulgariq

View user's profile Send private message

ENC28j60 how to start
PostPosted: Fri Nov 29, 2013 1:47 pm     Reply with quote

Hello guys! I have some experience with CCS programming and I just bought http://store.comet.bg/Catalogue/Product/6275/ and I want to establish communication between my PC and enc28j60 via tcp/ip. What would you recommend me for beginning? Some posts, drivers, example codes ext...
Thank you in advance!
_________________
A person who never made a mistake never tried anything new.
jgschmidt



Joined: 03 Dec 2008
Posts: 184
Location: Gresham, OR USA

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

PostPosted: Fri Nov 29, 2013 10:00 pm     Reply with quote

Hi,

I'm assuming from your question that you have not done anything with embedded TCP/IP. Please be aware that any kind of development work with TCP/IP requires knowledge of the various TCP/IP protocols and how they are layered. That is not a trivial undertaking.

I used the CCS Embedded Ethernet development kit to learn how to use embedded TCP/IP. (One of the exercises in this kit is setting up a client/server connection to a PC.) That way I started with known working hardware and could experiment with the software files, which are collectively called the TCP/IP stack. Once I understood that, I ventured into making my own TCP/IP hardware, which is also not a trivial undertaking. Beginning both hardware and software development at the same time is guaranteed to be extremely frustrating because you never know if the hardware or the software or both is the problem.

CCS's TCP/IP stack is great for learning but also quite old. I've seen some posts about a more recent release but have not had a reason to check into that. My most recent work with TCP/IP used the Microchip compilers and libraries. They are frequently updated and there is a lot of support for them on the Microchip forums.

I've used modules similar to the one you mention. They usually need just power and SPI connections but still require a lot of software to make them work. While this hardware is cheap, developing for it will cost a lot of time.

There are solutions for embedded TCP/IP that don't require including the TCP/IP stack or Ethernet hardware in your application. I have 12F683-based logging systems posting to database servers over the Internet via inexpensive serial to TCP/IP boards that have TCP/IP embedded in the hardware.
_________________
Jürgen
www.jgscraft.com
rikotech8



Joined: 10 Dec 2011
Posts: 376
Location: Sofiq,Bulgariq

View user's profile Send private message

PostPosted: Sat Nov 30, 2013 3:03 am     Reply with quote

Thank you jgschmidt for the comprehensive answer! I considered to start with one of these embedded TCP/IP but the reason I already have ENC28J60 made me to ask about it. So, your very reasonable viewpoint changed my mind. Instead of reading and writing code for hours, I will accept your suggestions for the embedded TCP/IP solutions. I believe it is going to take less time.
_________________
A person who never made a mistake never tried anything new.
jgschmidt



Joined: 03 Dec 2008
Posts: 184
Location: Gresham, OR USA

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

PostPosted: Sat Nov 30, 2013 9:42 am     Reply with quote

Google "wiznet ethernet" and you should find the boards. I've used several of these. It still helps to know a little about how TCP/IP works, for example the difference between UDP and TCP. A network sniffer like wireshark is useful because then you can see what's actually going back and forth. Use it to watch the traffic back and forth just for accessing a web page from your browser.

Wikipedia is a good place to start.

Cheers,
_________________
Jürgen
www.jgscraft.com
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