Hardware Reference
In-Depth Information
• Have your Arduino code use some of the Linux capabilities of Galileo
• Act as a web server to serve information to a web browser
Connecting and Testing an Ethernet
Connection
First you should make sure that you can get your board to connect to the
Internet in the simplest way possible. Try it out now:
1. Connect your Galileo via an Ethernet cable to your network. You can ei-
ther plug it directly into an available port on your router, or if you are
wired for Ethernet, plug it into an active jack.
Some large networks—like those at companies, schools,
and hotels—don't let any device just plug in and connect
to the Internet. For instance, when I wanted to start using
the Galileo at New York University, I had to use my com-
puter's web browser to log in to my school account and
register Galileo's MAC address as a device that I own. If
you need to know your Galileo's MAC address, it can be
found either on the back side of the board (on the Mini PCI
Express port) or on top of the Ethernet port on the top of
the board.
2. Connect your Galileo to power.
3. Connect your computer to Galileo via the USB client port.
4. Within the Arduino IDE, select File Examples Ethernet WebClient.
5. Click Upload.
6. Open the serial monitor.
If your board was successful in connecting to a server, you'll see text start to
appear in the serial monitor ( Figure 6-1 ). This example programs your Galileo
to do a Google search for the term “Arduino.” As the HTML response from
Google's server is received, it sends those characters to the Serial Monitor.
 
Search WWH ::




Custom Search