View previous topic :: View next topic |
Author |
Message |
chicken12345
Joined: 31 Dec 2009 Posts: 4
|
send information through ethernet |
Posted: Sun Jan 03, 2010 6:48 pm |
|
|
Greetings. I wish to send a series of binary number from MCU through ethernet, so how should i do it? thankz |
|
|
bkamen
Joined: 07 Jan 2004 Posts: 1615 Location: Central Illinois, USA
|
|
Posted: Sun Jan 03, 2010 9:27 pm |
|
|
Your request is pretty vaguely specified.
What are you sending?
How fast does it need to be sent?
What kind of other tasks will the sender be handling?
Do you have a target processor in mind?
Are you going to do raw ethernet frames (layer 2) or are you going to stick IP on top?
There's a whole slew of questions that need to be answered.
-Ben _________________ Dazed and confused? I don't think so. Just "plain lost" will do. :D |
|
|
chicken12345
Joined: 31 Dec 2009 Posts: 4
|
|
Posted: Sun Jan 03, 2010 9:51 pm |
|
|
Actually I want to send some video signals through ethernet. Those video signals have been converted to digital data. The processor I wish to use is pic18f452 and enc28j60. At the receiver side, I want to view this video through web browser. So IP address is required to view this video. So any suggestion? |
|
|
bkamen
Joined: 07 Jan 2004 Posts: 1615 Location: Central Illinois, USA
|
|
Posted: Sun Jan 03, 2010 9:59 pm |
|
|
You're going to need the full TCP/IP stack.
Do you know what the bandwidth required for the video datastream?
Pushing video over the net will in most cases (I'm guessing you're talking live NTSC video?) will be outside the ability of an 8bit PIC.
The max connection speed for an ENC28J60 is 8Mb/s (SPI) which is even less than the 10Mb/s (10base-T) connection it can support.
And we're not even talking overhead for control.
-Ben _________________ Dazed and confused? I don't think so. Just "plain lost" will do. :D |
|
|
chicken12345
Joined: 31 Dec 2009 Posts: 4
|
|
Posted: Mon Jan 04, 2010 12:07 am |
|
|
oh.. is that means that this project cannot be done? ya.. i mean live ntsc video.. |
|
|
bkamen
Joined: 07 Jan 2004 Posts: 1615 Location: Central Illinois, USA
|
|
|
chicken12345
Joined: 31 Dec 2009 Posts: 4
|
|
Posted: Mon Jan 04, 2010 7:25 pm |
|
|
How about if I have one of this: PIC WEB SERVER? I still need the pic18f97j60 for it? If I get one mpeg2 encoder, then how can I connect it to MCU then? |
|
|
bkamen
Joined: 07 Jan 2004 Posts: 1615 Location: Central Illinois, USA
|
|
Posted: Mon Jan 04, 2010 10:19 pm |
|
|
This would be tricky in terms of "down to every last cycle".
Most likely, You'd want to hook it up via PMP (parallel master port) if the MPEG encoder had that as an option. Pay attention if the MPEG encoder puts out 16 vs 8bits. You'll have to contend with that some how.
From there, it's a pipe from PMP to Ethernet.
I can't stress enough how important it will be to get an idea of bandwidth requirements.
I would think this would be easiest done with a PIC32 as they have a few models with built-in Ethernet now. Unfortunately, there is no CCS Compiler.
A PIC24H might be a good bet coupled with the PIC624J600 via PMP/PSP. Then the Encoder could be on the PMP as well at another address.
There is a a PIC-C compiler for PIC24, but the TCP/IP Stack from Microchip is not currently PIC-C friendly (I Know, I was deep in it. Huge Pain)
I think Andrew might be able to help there.. see http://www.brushelectronics.com/, Andrew is an avid contributer to this site.
-Ben _________________ Dazed and confused? I don't think so. Just "plain lost" will do. :D |
|
|
Guest
|
|
Posted: Fri Mar 05, 2010 7:01 pm |
|
|
In CCS TCP/IP stack, I saw two folders, i.e. \drivers and \tcpip folder. I assume the drivers are from them and tcpip is the original Microchip stack??
Coz in discussions and even in the kit tutorial guide is mentioned \drivers\. |
|
|
bkamen
Joined: 07 Jan 2004 Posts: 1615 Location: Central Illinois, USA
|
|
Posted: Fri Mar 05, 2010 9:24 pm |
|
|
Anonymous wrote: | In CCS TCP/IP stack, I saw two folders, i.e. \drivers and \tcpip folder. I assume the drivers are from them and tcpip is the original Microchip stack??
Coz in discussions and even in the kit tutorial guide is mentioned \drivers\. |
The TCPIP folder is the CCS'ized version of the v3.75 Microchip stack.
Microchip is currently on version 5.20 (FYI).
-Ben _________________ Dazed and confused? I don't think so. Just "plain lost" will do. :D |
|
|
|