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

send information through ethernet

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



Joined: 31 Dec 2009
Posts: 4

View user's profile Send private message

send information through ethernet
PostPosted: Sun Jan 03, 2010 6:48 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Sun Jan 03, 2010 9:27 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Sun Jan 03, 2010 9:51 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Sun Jan 03, 2010 9:59 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Mon Jan 04, 2010 12:07 am     Reply with quote

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

View user's profile Send private message

PostPosted: Mon Jan 04, 2010 1:25 pm     Reply with quote

By itself, the PIC wouldn't be able to do it.

However, if you checked into an MPEG2 encoder that would compress the stream for you, figure out the bandwidth requirements and then use something like the PIC's with embedded ethernet (like the 97J60).

Fujitsu makes one: http://www.fujitsu.com/emea/news/pr/fme_20090609-947.html

Magnum: http://www.magnumsemi.com/products/ms269x.shtml

NEC: http://www.am.necel.com/news/newsdetail.html?page=avfront (Except it's PCI based)

Here's an interesting article: http://users.ece.utexas.edu/~adnan/comm-08/mpeg-jssc-03.pdf

Anyway - you get the idea...

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



Joined: 31 Dec 2009
Posts: 4

View user's profile Send private message

PostPosted: Mon Jan 04, 2010 7:25 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Mon Jan 04, 2010 10:19 pm     Reply with quote

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








PostPosted: Fri Mar 05, 2010 7:01 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Fri Mar 05, 2010 9:24 pm     Reply with quote

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
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