EmbeddedRelated.com
Forums

Wifi for LPC2148

Started by ashish April 13, 2012
Hi,
I have connected the LPC2148 board to the EasyWifi board(the wi-fi module MRF24WB0MA is made by Microchip).

I only need to ping a website. I believe that the wifi board simply sends a message but I will have to write the code for the LPC2148. Are there any examples for LPC2148 that connect to wifi that will help me get started ?

Thanks

An Engineer's Guide to the LPC2100 Series

Plenty of SSP or SPI example software for LPC214x from the
left side:
http://tech.groups.yahoo.com/group/lpc2000/files/

regards,
Tom

--- In l..., "ashish" wrote:
>
> Hi,
> I have connected the LPC2148 board to the EasyWifi board(the wi-fi module MRF24WB0MA is made by Microchip).
>
> I only need to ping a website. I believe that the wifi board simply sends a message but I will have to write the code for the LPC2148. Are there any examples for LPC2148 that connect to wifi that will help me get started ?
>
> Thanks
>

On Fri, 2012-04-13 at 23:57 +0000, Tom Tang wrote:
> Plenty of SSP or SPI example software for LPC214x from the
> left side:
> http://tech.groups.yahoo.com/group/lpc2000/files/

It looks like you need more then only the spi comms.
The datasheet also mentions a tcp/ip stack that runs
on the host uC. The host uC being a microchip part.

Quote from page 7 of the mrf24wb datasheet :

"The combination of the module and a PIC running the
TCP/IP stack results in support for IEEE Standard
802.11 and IP services. This allows, the immediate
implementation of a wireless web server."

You can not use a lpc2xxx or whatever none microchip
processor when you are going to use the microchip
tcp/ip stack. I did not read the license but I am
willing to bet that I am right.
And for a tcp/ip stack other then microchip's you
will need to write the driver (between the stack
and the hardware).

roelof

--- In l..., roelof 't Hooft wrote:
> It looks like you need more then only the spi comms.
> The datasheet also mentions a tcp/ip stack that runs
> on the host uC. The host uC being a microchip part.
>
If I had this as a project, I would look at uIP as it comes with code that drives an SPI based Ethernet controller.

I would add this gadget:
http://www.sparkfun.com/products/765

And search Google for 'enc28j60 lpc21xx' where I might find:

http://www.google.com/url?sa=t&rct=j&q=enc28j60%20lpc21xx&source=web&cd=1&vedCMQFjAA&url=http%3A%2F%2Fcode.google.com%2Fp%2Flpc-uip%2Fsource%2Fbrowse%2Ftrunk%2Fnet-cpu%2Flpc21XX%2Fenc28j60%2Fenc28j60.c%3Fr%3D6&ei=XDaKT8atC8rOiAKHq8HLCw&usgQjCNEJjC0xdZsRA3Ve9wxV56PP8SbrCA

I have used a similar module with an LPC2106 and it was almost trivial to get the uIP stack running.

Also:
http://www.freertos.org/portrowleylpc2124.html

I used the Crystal LAN CS8900 device that Sparkfun used to offer on a DIP module. It doesn't seem to be available any longer.

Richard

--- In l..., "rtstofer" wrote:
>
> --- In l..., roelof 't Hooft wrote:
> > It looks like you need more then only the spi comms.
> > The datasheet also mentions a tcp/ip stack that runs
> > on the host uC. The host uC being a microchip part.
> >
> If I had this as a project, I would look at uIP as it comes with code that drives an SPI based Ethernet controller.

Where does the WiFi come from ??

None of these parts have WiFi included ??

Please clarify !!

>
> I would add this gadget:
> http://www.sparkfun.com/products/765
>
> And search Google for 'enc28j60 lpc21xx' where I might find:
>
> http://www.google.com/url?sa=t&rct=j&q=enc28j60%20lpc21xx&source=web&cd=1&vedCMQFjAA&url=http%3A%2F%2Fcode.google.com%2Fp%2Flpc-uip%2Fsource%2Fbrowse%2Ftrunk%2Fnet-cpu%2Flpc21XX%2Fenc28j60%2Fenc28j60.c%3Fr%3D6&ei=XDaKT8atC8rOiAKHq8HLCw&usgQjCNEJjC0xdZsRA3Ve9wxV56PP8SbrCA
>
> I have used a similar module with an LPC2106 and it was almost trivial to get the uIP stack running.
>
> Also:
> http://www.freertos.org/portrowleylpc2124.html
>
> I used the Crystal LAN CS8900 device that Sparkfun used to offer on a DIP module. It doesn't seem to be available any longer.
>
> Richard
>

On Sun, 2012-04-15 at 06:20 +0000, Donald H wrote:
> Where does the WiFi come from ??

It is a sales pitch for a collection of hardware and software.
> None of these parts have WiFi included ??
>
> Please clarify !!

Clarify what ?

It is clear to me that the module the OP was trying to connect
in his previous post of 3 april 2012 and is trying to use now
has no tcp/ip stack, only the transceiver part with some logic.

roelof

--- In l..., "Donald H" wrote:

>
> Where does the WiFi come from ??
>
> None of these parts have WiFi included ??
>
> Please clarify !!
My bad! I must have had a brain fade when it came to the WiFi bit. I was just thinking about an easy way to get Ethernet running on an LPC2148.

I'm certainly not in the business of hunting down links to parts and I have nothing to do with marketing or sales of anything for anybody.

So, use the Microchip WiFi gadget (if that's what it is, I haven't looked) and use their example code for the SPI interface. Then add those functions to uIP and it ought to work.

Install the Microchip demo code and look in:
C:\Microchip Solutions v2012-02-15\Microchip\TCPIP Stack\WiFi

Specifically, look at WF_SPI.C for code to initialize the device. There is a lot of code to ignore since Microchip writes the code for multiple platforms.

There is a lot of LPC2148 demo code at www.jcwren.com/arm.

This project is going to be a lot of work. I would skip the LPC2148 and just go for the Microchip Ethernet Starter Board, Starter Kit Expansion Board and the WiFi module. At least the OP would be working with code that has been tested.

Even then, it's not without some complications. Particularly in where to plug in the module. Check out the last post on this thread:
http://www.microchip.com/forums/m565297.aspx

Richard

--- In l..., "rtstofer" wrote:
>
> --- In l..., "Donald H" wrote:
>
> >
> > Where does the WiFi come from ??
> >
> > None of these parts have WiFi included ??
> >
> > Please clarify !!
> My bad! I must have had a brain fade when it came to the WiFi bit. I was just thinking about an easy way to get Ethernet running on an LPC2148.
>
> I'm certainly not in the business of hunting down links to parts and I have nothing to do with marketing or sales of anything for anybody.
>
> So, use the Microchip WiFi gadget (if that's what it is, I haven't looked) and use their example code for the SPI interface. Then add those functions to uIP and it ought to work.
>
> Install the Microchip demo code and look in:
> C:\Microchip Solutions v2012-02-15\Microchip\TCPIP Stack\WiFi
>
> Specifically, look at WF_SPI.C for code to initialize the device. There is a lot of code to ignore since Microchip writes the code for multiple platforms.
>
> There is a lot of LPC2148 demo code at www.jcwren.com/arm.
>
> This project is going to be a lot of work. I would skip the LPC2148 and just go for the Microchip Ethernet Starter Board, Starter Kit Expansion Board and the WiFi module. At least the OP would be working with code that has been tested.
>
> Even then, it's not without some complications. Particularly in where to plug in the module. Check out the last post on this thread:
> http://www.microchip.com/forums/m565297.aspx
>
> Richard
>

All of the WiFi solutions we have seen are still too expensive and ths Microchip one is also too expensive at around $15... Simplest and cheapest we found was a Chinese module (can't remember now who it was), and it was $9.00 in 1K quantities. Better, but still too expensive for a price sensitive product.

What we do is have the user buy a WiFi bridge for $30 or so and plug that into our Ethernet jack using our TCP/IP embedded stack. That works at least. Would be real nice to find something more affordable.

boB