Reply by Hawthorn March 21, 20122012-03-21
> Ethereal was superseeded a few years ago by Wireshark:

Yep, you're right. That was about when I retired. Wireshark looks like a decent successor. Thanks.

Ian

An Engineer's Guide to the LPC2100 Series

Reply by Michael Frazier March 21, 20122012-03-21
We should start charging for this….anyone who gets a development board can just ask us…why do your own research??



From: l... [mailto:l...] On Behalf Of abhay ramteke

Sent: Wednesday, March 21, 2012 1:33 AM

To: l...

Subject: [lpc2000] LPC2378 - usb







Hello to all

I have Olimex LPC2378 stk and IAR compiler I want to transmit and receive the data to and from microcontroller right now i am start reading the USB complete book I am requesting to all kindly guide me and suggest me the source links,material etc....

thanks to all



regards

abhay









































Hi Dev,







I guess there are several options, have you considered using a wireless



interface and just RS232.



Typically I guess you have a few options but it depends on the range and



data rate and other system considerations.







You could use ZigBee, Bluetooth, powerline, Ethernet, WiFi, CAN, USB etc but



without knowing what range you want and what is on the other end it's



difficult to suggest anything specific.







Are you looking to remain compatible with other devices using the same



medium, or can you have a dedicated connection.







Do you need to have multiple modes, or is it just a point to point



interface.







If you are considering commercializing a product then you also have to



consider any interoperability regulations and approvals required for your



chosen medium.







Regards







Phil.







-----Original Message-----



From: l... [mailto:lpc2...] On Behalf Of



DeV



Sent: 19 March 2012 08:52



To: l...



Subject: Re: [lpc2000] LPC2378 - Ethernet







Also Phil, Please advise me some other mode of communication (e.g. CAN, USB



etc) which will be suitable for me to learn as a beginner..Thanks again..







> Hi Dev,



>>



>> This is a huge area, Ethernet is not like RS232, you don't just



>> squirt data in at one end and get data out at the other, there is a



>> lot of sw that needs to be running.



>>



>> The first thing you need to do is decide what protocols you wish to



>> communicate with, then you can build up a list of the required



>> protocols you need installed, ( it will be quite a bit larger ).



>>



>> For example are you planning on using it on a private network with



>> static IP address, or do you need it to have a DHCP client to get an



>> IP address at startup.



>>



>> I suggest learning about Networking from a more general forum first,



>> decide what protocols you need to implement, and then it's more



>> appropriate to ask on the LPC forum about specifics of implementing



>> them.



>>



>> Regards



>>



>> Phil.



>>



>> From: l... [mailto:l...] On



>> Behalf Of DeV



>> Sent: 19 March 2012 07:06



>> To: l...



>> Subject: [lpc2000] LPC2378 - Ethernet



>>



>>



>> Hello all...i own a lpc2378-stk kit and want to communicate via



>> Ethernet...Since i am entirely new to communication so i request all



>> the pros to pls suggest me some sources (online books, articles,



>> links



>> etc.) that can help me to clearly understand set this communication



>> as a beginner...thanks alot!



>>



>>



>>



>>



>>



>>



>>



>



>



>



> --



>



> Dev Sampat****



>



> Cell (Oman): (+968) - 9304 8932****



>



> Email: d...@gmail.com



>



>







--







Dev Sampat****







Cell (Oman): (+968) - 9304 8932****







Email: d...@gmail.com






















Reply by DeV March 21, 20122012-03-21
Thanks Richard...I shall start with the basics as suggested...then maybe i
can setup a simple Ethernet communication...


Reply by DeV March 21, 20122012-03-21
Thanks so much Ian..I dont have a stable address right now since I am in
transition of shifting my location..however, I shall inform u once I have
shifted..Thanks again for such a wonderful explanation and support..


Reply by abhay ramteke March 21, 20122012-03-21
Hello to all
I have Olimex LPC2378 stk and IAR compiler I want to transmit and receive the data to and from microcontroller right now i am start reading the USB complete book I am requesting to all kindly guide me and suggest me the source links,material etc....
thanks to all

regards
abhay

Hi Dev,

I guess there are several options, have you considered using a wireless

interface and just RS232.

Typically I guess you have a few options but it depends on the range and

data rate and other system considerations.

You could use ZigBee, Bluetooth, powerline, Ethernet, WiFi, CAN, USB etc but

without knowing what range you want and what is on the other end it's

difficult to suggest anything specific.

Are you looking to remain compatible with other devices using the same

medium, or can you have a dedicated connection.

Do you need to have multiple modes, or is it just a point to point

interface.

If you are considering commercializing a product then you also have to

consider any interoperability regulations and approvals required for your

chosen medium.

Regards

Phil.

-----Original Message-----

From: l... [mailto:l...] On Behalf Of

DeV

Sent: 19 March 2012 08:52

To: l...

Subject: Re: [lpc2000] LPC2378 - Ethernet

Also Phil, Please advise me some other mode of communication (e.g. CAN, USB

etc) which will be suitable for me to learn as a beginner..Thanks again..

> Hi Dev,

>>

>> This is a huge area, Ethernet is not like RS232, you don't just

>> squirt data in at one end and get data out at the other, there is a

>> lot of sw that needs to be running.

>>

>> The first thing you need to do is decide what protocols you wish to

>> communicate with, then you can build up a list of the required

>> protocols you need installed, ( it will be quite a bit larger ).

>>

>> For example are you planning on using it on a private network with

>> static IP address, or do you need it to have a DHCP client to get an

>> IP address at startup.

>>

>> I suggest learning about Networking from a more general forum first,

>> decide what protocols you need to implement, and then it's more

>> appropriate to ask on the LPC forum about specifics of implementing

>> them.

>>

>> Regards

>>

>> Phil.

>>

>> From: l... [mailto:l...] On

>> Behalf Of DeV

>> Sent: 19 March 2012 07:06

>> To: l...

>> Subject: [lpc2000] LPC2378 - Ethernet

>>

>>

>> Hello all...i own a lpc2378-stk kit and want to communicate via

>> Ethernet...Since i am entirely new to communication so i request all

>> the pros to pls suggest me some sources (online books, articles,

>> links

>> etc.) that can help me to clearly understand set this communication

>> as a beginner...thanks alot!

>>

>>

>>

>>

>>

>>

>>

>

>

>

> --

>

> Dev Sampat****

>

> Cell (Oman): (+968) - 9304 8932****

>

> Email: d...@gmail.com

>

>

--

Dev Sampat****

Cell (Oman): (+968) - 9304 8932****

Email: d...@gmail.com



Reply by rtstofer March 20, 20122012-03-20
--- In l..., DeV wrote:
>
> Hello all...i own a lpc2378-stk kit and want to communicate
> via Ethernet...Since i am entirely new to communication so i request all
>

A completely different approach is to have the TCP/IP stack and all related hardware on a different module.

See:
http://www.saelig.com/MFR00088/BRD032.htm

Read the manual here:
http://www.saelig.com/supplier/wiznet/wiz820io_user_manual_v1.0.pdf

That manual covers the module but nothing about Ethernet.

Read the WizNet 5200 documents here:
http://www.wiznettechnology.com/sub_modules/en/product/Product_Detail.asp?cate1=5&cate28&cate3=0&pid44#tab

I bought a couple of the WizNet modules but I haven't use them yet. There are projects all of the Internet that use the WizNet 5200 including both Arduino and Parallax projects.

Richard

Reply by rtstofer March 20, 20122012-03-20
--- In l..., DeV wrote:
>
> Hello all...i own a lpc2378-stk kit and want to communicate
> via Ethernet...Since i am entirely new to communication so i request all
> the pros to pls suggest me some sources (online books, articles, links
> etc.) that can help me to clearly understand set this communication as a
> beginner...thanks alot!
>

Start with the Olimex webserver code for your board:
http://www.olimex.com/dev/lpc-2378stk.html

It will have everything necessary to bring up TCP/IP.

Once you get the board working as a web server that can send your data back to a browser, you might want to turn things around.

At the far end, what do you want to have? A browser makes the far end a client and the 2378 a server. No problem, the code is in the example.

OTOH, if the far end wants to be some kind of custom application that gets fed data there are two solutions: 1) keep the web server and have the application make a connection and use a GET command to read the data (study HTML) or 2) if the application wants to wait for the remote to make a connection (study Berkeley Sockets) then your STK wants to be a TCP client and you need to study how sockets are implemented in uIP. It's pretty easy. Of course, you also have to know how sockets are impelemted on your remote system.

uIP is pretty small: it only handles one connection and it only allows one packet in flight. It will work fine for your project. However, don't expect to have 100,000 clients hammering on the web server. It won't happen.

I have used uIP to send packets from an LPC2106 to a LaserJet printer with very little effort and just using the documentation provided with uIP (plus the example code, of course).

To debug, you need WireShark running on something. Not necessarily the remote system. Buy an old fashioned network HUB (not switch) and plug the 2378 and debugging computer into the hub along with another cable to your remote system or (small) LAN. There's a question in my mind as to whether uIP is appropriate on a large scale LAN.

You might also Google for LPC2378 and lwIP which is a much more robust stack.

Richard

Reply by Mark March 20, 20122012-03-20
Hi

Ethereal was superseeded a few years ago by Wireshark:
http://www.wireshark.org/

I developed TCP/IP on an HCS12 several years ago but using a processor simulator together with Ethereal. This made it much easier - the brief story is here: http://en.wikipedia.org/wiki/UTasker

Regards

Mark
>
> You will need a copy of Ethereal for testing. It's a free download from www.ethereal.com under GNU licence. Like everything to do with Ethernet it's a bit confusing at first, but stick with it.
>

Reply by roelof 't Hooft March 20, 20122012-03-20
On Tue, 2012-03-20 at 15:14 +0000, Hawthorn wrote:
> By all means get some experience first with RS232/485 or CAN,
> though there too you will find a protocol analyser absolutely
> invaluable. (At some stage you will need to spend some money
> I'm afraid).

For a protocal analyzer you can buy one of these at :
http://www.saleae.com/logic
And best of all is that you do not have to use that
piece of crap software from Redmond !
And at 129 euro it is very affordable.

roelof

Reply by Hawthorn March 20, 20122012-03-20
> please tel me wat do u mean by requirement of Ethereal for
> testing...what is book about?...thanks again mate!

Sorry, I should have explained. Ethereal is a PC program which monitors network traffic and displays it on screen. It enables you to see what data is wandering across your network, and captures it all to a disk file which you can inspect at your leisure for debugging purposes. You can also set up various filters to ensure that you see only the data you really want to see.

When developing an ethernet product typically you will set up a test network - isolated from your LAN or net connection - which contains only the unit under test (UUT) and your PC running Ethereal. Typically your UUT will, for example, transmit requests for data, and you will monitor those packets on screen to check that they are properly constructed. The packet construction format is what you will learn from Stevens.

There's no denying that comms is tricky. But the standards are all published (as Requests For Comments - RFCs) and if you're going to learn network programming you should download the relevant RFCs first. I can't pretend they are easy bedtime reading, even for native English speakers, but all the information is there and it's (mostly) all logical. Get the RFCs from http://www.rfc-editor.org/rfc-index2.html . There are over 6,000 of them now, but you will use only a few of them. The books will tell you which ones you need.

By all means get some experience first with RS232/485 or CAN, though there too you will find a protocol analyser absolutely invaluable. (At some stage you will need to spend some money I'm afraid). There are books on each of these protocols: pick one and master it. All experience is good, and you will learn to think like a programmer. I can't help you much with your C code because I have been writing in Forth since before C was invented and I never use anything else. But although all this looks daunting, don't be put off. You can do it.

Ian