| View previous topic :: View next topic |
| Author |
Message |
lejma Guest
|
|
Posted: Tue Dec 08, 2009 2:32 am |
|
|
| 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]
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
|
|
Posted: Tue Dec 08, 2009 11:59 am |
|
|
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
|
|
Posted: Tue Dec 08, 2009 7:15 pm |
|
|
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
|
|
Posted: Tue Dec 08, 2009 7:52 pm |
|
|
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
|
|
Posted: Wed Dec 09, 2009 7:45 am |
|
|
| School project ;] |
|
 |
lejma Guest
|
|
Posted: Fri Dec 11, 2009 3:01 am |
|
|
| i emailed them but they didnt answer... ;/ |
|
 |
bkamen
Joined: 07 Jan 2004 Posts: 1619 Location: Central Illinois, USA
|
|
Posted: Fri Dec 11, 2009 10:57 am |
|
|
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
|
|
Posted: Fri Dec 11, 2009 7:37 pm |
|
|
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
|
|
Posted: Fri Dec 11, 2009 7:44 pm |
|
|
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
|
|
Posted: Sat Dec 12, 2009 3:00 am |
|
|
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
|
|
Posted: Sat Dec 12, 2009 8:48 am |
|
|
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 |
|
 |
|