Discussion group dedicated to the Philips LPC2000 family of ARM MCUs
Web-Browser Interface to Microcontroller - thirdshoedrops - Oct 14 18:26:18 2008
I've seen several people mention that it'd be cool to connect to a
uProc with a web browser for configuration or monitoring, and some
speculation that you could do it by emulating a network interface with
the LPC2148 USB port. However, it doesn't look like Bertrik's LPCUSB
does that yet.
Has anybody succeeded with this? Any warnings from people who have
tried and failed?
For my project, I'm looking for the simplest way to plug a browser (on
ANY platform, Mac/Win/Linux, handheld gadget, etc) into a 2148-based
device and deliver a web page from the 2148. (I understand that a
"handheld gadget" that can't operate as a USB host is out.) I don't
want to have to load special drivers on the browser platform or
require the user to fiddle with network settings.
I _think_ this can be achieved by having the LPC2148 pretend to be a
network interface. When it connects, it provides an address via DHCP.
The browser device connects to the 2148's IP address and gets the web
page. (It would be GREAT if the 2148 could even provide DNS service,
so that the browser could use a URL like "http://www.my-2148-device.com")
Thanks for any pointers!
------------------------------------

(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )
Re: Web-Browser Interface to Microcontroller - basicnode - Oct 14 19:38:40 2008
> I've seen several people mention that it'd be cool to connect to a
> uProc with a web browser for configuration or monitoring, and some
> speculation that you could do it by emulating a network interface with
>
Our ARMweb product (2138 based) does provide-
get address via DHCP or webpage configuration.
programmable in BASIC via USB/webpage
serve user designed webpages
responds to NetBIOS name requests
does simple ftp
send simple emails
supports user UDP packets
http://www.coridiumcorp.com/ARMweb.php
------------------------------------

(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )
Re: Web-Browser Interface to Microcontroller - rtstofer - Oct 14 19:46:24 2008
--- In l...@yahoogroups.com, "thirdshoedrops"
wrote:
>
> I've seen several people mention that it'd be cool to connect to a
> uProc with a web browser for configuration or monitoring, and some
> speculation that you could do it by emulating a network interface with
> the LPC2148 USB port. However, it doesn't look like Bertrik's LPCUSB
> does that yet.
>
> Has anybody succeeded with this? Any warnings from people who have
> tried and failed?
>
> For my project, I'm looking for the simplest way to plug a browser (on
> ANY platform, Mac/Win/Linux, handheld gadget, etc) into a 2148-based
> device and deliver a web page from the 2148. (I understand that a
> "handheld gadget" that can't operate as a USB host is out.) I don't
> want to have to load special drivers on the browser platform or
> require the user to fiddle with network settings.
>
> I _think_ this can be achieved by having the LPC2148 pretend to be a
> network interface. When it connects, it provides an address via DHCP.
> The browser device connects to the 2148's IP address and gets the web
> page. (It would be GREAT if the 2148 could even provide DNS service,
> so that the browser could use a URL like
"http://www.my-2148-device.com")
>
> Thanks for any pointers!
>
You get uIP or one of the other protocol stacks, an ethernet adapter
(parallel or SPI) and stuff the code in the '2148.
See http://www.sparkfun.com/commerce/product_info.php?products_id=200
for the parallel version and
http://www.sparkfun.com/commerce/product_info.php?products_id=765 for
the SPI version.
There's code all over the place for tiny web servers. And yes, it
would work from any browser.
But there are tiny web servers already available. Search
www.sparkfun.com.
Richard
------------------------------------

(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )Re: Web-Browser Interface to Microcontroller - Xiaofan Chen - Oct 14 19:52:13 2008
On Wed, Oct 15, 2008 at 6:26 AM, thirdshoedrops
wrote:
> I've seen several people mention that it'd be cool to connect to a
> uProc with a web browser for configuration or monitoring, and some
> speculation that you could do it by emulating a network interface with
> the LPC2148 USB port. However, it doesn't look like Bertrik's LPCUSB
> does that yet.
>
> Has anybody succeeded with this? Any warnings from people who have
> tried and failed?
I guess you want something like USB RNDIS (so that it would work
under Windows and Linux) and not adding a Ethernet controller to
the LPC-2148.
Commercial:
http://www.smxrtos.com/rtos/usb/smxusbd.htm
http://www.jungo.com/st/embedded_usb_cdc.html (only LPC23xx/24xx)
http://www.thesycon.de/eng/embusbdevice.shtml
I have yet to find one free implementation for ARM7. It should be
doable though. Here is one free implementation (maybe only
a subset of full USB RNDIS) for PIC18F2550/4550.
http://www.raccoonrezcats.com/rfethernet.html
Xiaofan
http://mcuee.blogspot.com
------------------------------------

(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )Re: Re: Web-Browser Interface to Microcontroller - "J.C. Wren" - Oct 14 19:54:12 2008
In fact, my current project is connecting a ENC28J60 Ethernet controller via
uIP to the http://jcwren.com/arm LPC2148 demo code. I'm hoping to have it
working by the end of the week, if all goes well. Just got my in28J60
adapters from Microcontroller Pros today.
--jc
On Tue, Oct 14, 2008 at 7:46 PM, rtstofer
wrote:
> --- In l...@yahoogroups.com ,
> "thirdshoedrops" wrote:
> >
> > I've seen several people mention that it'd be cool to connect to a
> > uProc with a web browser for configuration or monitoring, and some
> > speculation that you could do it by emulating a network interface with
> > the LPC2148 USB port. However, it doesn't look like Bertrik's LPCUSB
> > does that yet.
> >
> > Has anybody succeeded with this? Any warnings from people who have
> > tried and failed?
> >
> > For my project, I'm looking for the simplest way to plug a browser (on
> > ANY platform, Mac/Win/Linux, handheld gadget, etc) into a 2148-based
> > device and deliver a web page from the 2148. (I understand that a
> > "handheld gadget" that can't operate as a USB host is out.) I don't
> > want to have to load special drivers on the browser platform or
> > require the user to fiddle with network settings.
> >
> > I _think_ this can be achieved by having the LPC2148 pretend to be a
> > network interface. When it connects, it provides an address via DHCP.
> > The browser device connects to the 2148's IP address and gets the web
> > page. (It would be GREAT if the 2148 could even provide DNS service,
> > so that the browser could use a URL like
> "http://www.my-2148-device.com")
> >
> > Thanks for any pointers!
> > You get uIP or one of the other protocol stacks, an ethernet adapter
> (parallel or SPI) and stuff the code in the '2148.
>
> See http://www.sparkfun.com/commerce/product_info.php?products_id=200
> for the parallel version and
> http://www.sparkfun.com/commerce/product_info.php?products_id=765 for
> the SPI version.
>
> There's code all over the place for tiny web servers. And yes, it
> would work from any browser.
>
> But there are tiny web servers already available. Search
> www.sparkfun.com.
>
> Richard
>
>
>
[Non-text portions of this message have been removed]
------------------------------------

(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )Re: Re: Web-Browser Interface to Microcontroller - Xiaofan Chen - Oct 14 22:40:01 2008
On Wed, Oct 15, 2008 at 7:53 AM, J.C. Wren
wrote:
> In fact, my current project is connecting a ENC28J60 Ethernet controller via
> uIP to the http://jcwren.com/arm LPC2148 demo code. I'm hoping to have it
> working by the end of the week, if all goes well. Just got my in28J60
> adapters from Microcontroller Pros today.
Nice exercise. I just started to learn about this one on the Microchip
platform (Explorer 16 demo board + ENC28J60 based PICtail+
Ethernet Daughter Board). Microchip provides TCP/IP stack
for PIC18/PIC24/PIC32.
Still I believe the OP does not intend to use a separate controller
for Ethernet. I think he wants to use something like RNDIS
or CDC Ethernet.
Xiaofan
------------------------------------

(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )Re: Web-Browser Interface to Microcontroller - thirdshoedrops - Oct 15 0:16:22 2008
--- In l...@yahoogroups.com, "Xiaofan Chen"
wrote:
> I guess you want something like USB RNDIS (so that it would work
> under Windows and Linux) and not adding a Ethernet controller to
> the LPC-2148.
That's exactly right -- there are several problems with adding a real
Ethernet port that I hope to avoid. (Problems are: many laptops only
have one Ethernet port. So, to hook up to this device, you [may] have
to disconnect your Internet. Or, you have to add another hub to the
setup. Plus, if you do that, then the ucontroller has to decide
whether it's a peer-to-peer link [so it should do DHCP] or an
infrastructure connection [so it shouldn't do DHCP, unless there isn't
any DHCP server already online...]. Plus, the magnetics & etc for
Ethernet are spendy. Plus there's already a USB port on the 2148!)
My goal is not to have something that works pretty easily for the
smart people in this group; my goal is to have something that works
every time for any idiot with a USB port on his browser device. And I
don't want to get customer support calls from people who think that
whatever I did, it broke their Internet connection.
I'll check your commercial links, but I'd really hoped to find an
OpenSource solution. (Both because I'm cheap, and because I want to
open-source my own work.)
Thanks!
------------------------------------

(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )RE: Re: Web-Browser Interface to Microcontroller - Bruce Paterson - Oct 15 1:02:17 2008
If you end up doing a port of the RNDIS PIC code mentioned, possibly
sitting between existing ports of uIP/lwIP and lpcusb (all opensource),
I'd be interested :)
Cheers,
Bruce
-----Original Message-----
From: l...@yahoogroups.com [mailto:l...@yahoogroups.com] On Behalf
Of thirdshoedrops
Sent: Wednesday, 15 October 2008 3:16 PM
To: l...@yahoogroups.com
Subject: [lpc2000] Re: Web-Browser Interface to Microcontroller
--- In l...@yahoogroups.com, "Xiaofan Chen"
wrote:
> I guess you want something like USB RNDIS (so that it would work
> under Windows and Linux) and not adding a Ethernet controller to
> the LPC-2148.
That's exactly right -- there are several problems with adding a real
Ethernet port that I hope to avoid. (Problems are: many laptops only
have one Ethernet port. So, to hook up to this device, you [may] have
to disconnect your Internet. Or, you have to add another hub to the
setup. Plus, if you do that, then the ucontroller has to decide
whether it's a peer-to-peer link [so it should do DHCP] or an
infrastructure connection [so it shouldn't do DHCP, unless there isn't
any DHCP server already online...]. Plus, the magnetics & etc for
Ethernet are spendy. Plus there's already a USB port on the 2148!)
My goal is not to have something that works pretty easily for the
smart people in this group; my goal is to have something that works
every time for any idiot with a USB port on his browser device. And I
don't want to get customer support calls from people who think that
whatever I did, it broke their Internet connection.
I'll check your commercial links, but I'd really hoped to find an
OpenSource solution. (Both because I'm cheap, and because I want to
open-source my own work.)
Thanks!
------------------------------------

(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )Re: Re: Web-Browser Interface to Microcontroller - Xiaofan Chen - Oct 15 3:43:46 2008
On Wed, Oct 15, 2008 at 12:16 PM, thirdshoedrops
wrote:
> I'll check your commercial links, but I'd really hoped to find an
> OpenSource solution. (Both because I'm cheap, and because I want to
> open-source my own work.)
You might be able to port Mike Zoran's PIC implementation to
LPC-2148. The following link may help.
http://forum.microchip.com/tm.aspx?m=291535
It would not be easy though. It is said that Microsoft's RNDIS
documentation is not easy to understand at all.
So the other option is to forget about LPC-2148 and use some MCUs
with both USB and Ethernet, for example, LPC-2468.
I wish I were a programmer so that I could try to do some more coding.
But so far I have only written 4 simple firmwares for my previous job.
My longest code (for production) is a 2k word program for PIC16F872
back in 2002 using HiTech PICC. Reading code is easier, writing
code is another matter...
Regards,
Xiaofan
------------------------------------

(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )