server application that we will take a look at in a moment.
Right now, let’s see just how easy it is to set up and serve
a simple web page using the Moray.
Behold Screenshot 4. I have displayed the contents of
the Numbat’s internal file system by issuing the
WiConnect ls -l command. Some of the files have a
familiar feel. For instance, files with the extension of .html
are HTML page files that are used by the web server. The
files called index.html are the “front pages” of a particular
The setup web application is fronted by
/setup/ index.html. It looks like the /setup directory holds
its own index.html file, and the /webapp directory does
likewise with its particular index.html file entry.
The Numbat’s WiConnect file system does not really
support directories. However, when it comes to
designating directories and files, just do as you have
always done and the WiConnect’s file system
management components will take care of the rest.
The Numbat’s memory is divided into three distinct
parts. The internal Flash is found within the Numbat’s
microprocessor. An extended Flash IC
exists under the module’s metal shield
that is under the control of the user via
the API. In an embedded application,
memory is always a coveted resource.
To augment the Numbat’s standard
memory configuration, the Numbat can
be fitted with additional external bulk
The Numbat specs tell us that up to
128 MB of bulk Flash can be supported.
Bulk Flash — like extended Flash — is serial
Flash. Several types of serial Flash ICs are
Macronix has a 1 MB (MX25L8006E)
and 2 MB (MX25L1606E) Flash memory
device that is certified. Microchip has a 1
MB Flash device (SST25Vf080B) on the
list, and Eon Silicon Solution adds two
more 1 MB Flash ICs to the approved list
(EN25QH16 and en25Q80B). All of the
aforementioned serial Flash ICs interface to the
Numbat Wi-Fi module via its SPI master portal.
All we have to do to activate the new bulk
Flash is specify which Numbat GPIO we want to
act as the serial Flash chip select pin. We perform
the chip select pin selection by executing the
system.bflash.cs_gpio command and populating its
associated configuration variable with the desired
GPIO pin number using a set command. For
instance, let’s assign GPIO_1 to the chip select
duty: set system.bflash.cs_gpio 1.
The default Moray hardware configuration
contains a 1 MB chunk of serial Flash. That’s more
than enough for us to assemble, load, and display a nice
and pretty index.html page.
From the Beginning
Let’s start with a clean slate. The first thing we’ll do is
force a factory reset. The factory reset sequence is shown
in Screenshot 5. We will have to use the set command
sequences to manually reload our wlan and network
70 May 2015
Post comments on this article and find any associated files and/or downloads at www.nutsvolts.com/
Moray Development Board
Numbat Wi-Fi Module
■ Screenshot 5. To perform a factory reset, we must know the
module's MAC address. As you can see, we obtain the MAC address
with the get wlan.mac command. You don't see it here, but just for
grins I performed a reboot following the factory reset operation.
■ Screenshot 4. I smell Linux here. The listing represents the contents of the
Numbat's internal file system.