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
LPC2378 - Ethernet
Started by ●March 19, 2012
Reply by ●March 20, 20122012-03-20
Reply by ●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.
>
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 ●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
>
> 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 ●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
>
> 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 ●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
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 ●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..
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 ●March 21, 20122012-03-21
Thanks Richard...I shall start with the basics as suggested...then maybe i
can setup a simple Ethernet communication...
can setup a simple Ethernet communication...
Reply by ●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
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 ●March 21, 20122012-03-21