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
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
lejma
Guest







PostPosted: Tue Dec 08, 2009 2:32 am     Reply with quote

bkamen wrote:
Anonymous wrote:
I need to transmit a char string[16] over the ethernet from PIC to PC by using this damn ENC and I still don't know how to do it. :((

Any help will be nice.


Well, did you ask CCS for their TCP/IP stack?

What knowledge do you have so far? At what point are you stuck?


You've described nothing of your current environment (least the mandatory PIC Compiler version and PIC)

We can't help you with just an "I'm stuck".

-Ben


The PIC is 18F4620. I so far i have ENC connected to the PIC (like showed in ENC datasheet) and thats it.

I use MPLAB v8.30 with PICC compiler....

I need to transmit via LAN 8 integers (packet as 16 char long string).
char string[16] Smile

I need a script/driver where I can set the IP of target PC and put this Packet to the LAN ;]

(it have to be by UDP!)

Now my questions: What i need to download and where from?
What i need to do next and how to use it.
I searched on this forum but i dont find any info...

... so i need 'step by step' guide .
bkamen



Joined: 07 Jan 2004
Posts: 1619
Location: Central Illinois, USA

View user's profile Send private message

PostPosted: Tue Dec 08, 2009 11:59 am     Reply with quote

Have you compiled any of the example sources to learn how the TCP/IP stack works?

Have you asked for the TCP/IP stack from CCS yet? You really should get that as it will have a lot of your code written for you.

They even have a UDP example! (just what you want).

That has serial port configuration of TCP/IP parameters... with optional DHCP client for auto-configuring the IP address.

-Ben
_________________
Dazed and confused? I don't think so. Just "plain lost" will do. :D
lejma
Guest







PostPosted: Tue Dec 08, 2009 7:15 pm     Reply with quote

where i need to 'go' ask for this stack ?
i dont know how it works and how to use it
and i have not compiled any example codes.
bkamen



Joined: 07 Jan 2004
Posts: 1619
Location: Central Illinois, USA

View user's profile Send private message

PostPosted: Tue Dec 08, 2009 7:52 pm     Reply with quote

Email support@ccsinfo.com

To learn to use it, read all the example files that come with the zip file they send you.

The source files are pretty well commented or at least make sense.

If you don't already have one, you MUST buy a book on the OSI protocol stack. It's hard to use a tool if you don't understand it. If terms like MAC , socket, port, netmask, default gateway, frame and layer 1, 2, 3, 4 up to 7 are foreign terms for you, then you MUST get a book that covers this..

Once you have the book and stack and have tried it out... come back and ask us about what you don't understand.

We'll be happy to help you once you've taken a good crack at it.

-Ben

p.s. I meant to ask, is this for work, fun or for maybe a school project?
_________________
Dazed and confused? I don't think so. Just "plain lost" will do. :D
Guest








PostPosted: Wed Dec 09, 2009 7:45 am     Reply with quote

School project ;]
lejma
Guest







PostPosted: Fri Dec 11, 2009 3:01 am     Reply with quote

i emailed them but they didnt answer... ;/
bkamen



Joined: 07 Jan 2004
Posts: 1619
Location: Central Illinois, USA

View user's profile Send private message

PostPosted: Fri Dec 11, 2009 10:57 am     Reply with quote

Give it some time.

They get lots of questions from lots of users. It might take a couple days.

-Ben
_________________
Dazed and confused? I don't think so. Just "plain lost" will do. :D
Guest








PostPosted: Fri Dec 11, 2009 7:37 pm     Reply with quote

Got this 'stack' think...
However I still don't know how to make all this work together.
How to config ENC, which registers I need to setup and
how to use ENC to transmit this packets to the lan
and how is this 'stack' connected to all of this.

I'm a little lost...
bkamen



Joined: 07 Jan 2004
Posts: 1619
Location: Central Illinois, USA

View user's profile Send private message

PostPosted: Fri Dec 11, 2009 7:44 pm     Reply with quote

It's definitely not a walk in the park.

Start by looking at ex_st_udp.c

What demo board are you using?

Something from Microchip or CCS?
_________________
Dazed and confused? I don't think so. Just "plain lost" will do. :D
Guest








PostPosted: Sat Dec 12, 2009 3:00 am     Reply with quote

Nope, its my own project...
I made board with PIC, ENC and LCD on it. (+ RJ45;]).

Any sugestions?
bkamen



Joined: 07 Jan 2004
Posts: 1619
Location: Central Illinois, USA

View user's profile Send private message

PostPosted: Sat Dec 12, 2009 8:48 am     Reply with quote

well, you should still start with the example I pointed out in the previous post.

Make a copy and try to edit to match your project...

that's what I did...

Good luck,

-Ben
_________________
Dazed and confused? I don't think so. Just "plain lost" will do. :D
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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