Ceci est une ancienne révision du document !
Part 1 :Serial Terminal Introduction
The purpose of this section is to propose a protocol for a new user to be able to create a serial connection to their Intel Galileo Gen 2 using a “terminal emulator”. A “terminal emulator” is a program that will allow us to communicate with the Galileo via command line. Note The command line communication in and of itself offers no benefit to a newbie user. However, it is the only way to take advantage of a whole host of tools to better exploit our Galileo Gen 2.
The reader should already have read through the previous sections and should be familiar with the basic Terminal Connection Vocabulary. Just as importantly all drivers and firmware should be up to date. The reader should equally have already installed the Arduino IDE and have successfully tested the communication with the Galileo using the "Blink" example.
Intel's IoT devellopement kit
To start we must first download a larger version of linux than what is already found within the galieo's flash drive. We must also download a software that will allow us to write this software onto a microSD card. I will be using Win32 The software can be downloaded from the “Galileo Basic's section” of this tutorial or can be found here:
Accessing the Linux Shell
I will be using PuTTY for this tutorial which can be downloaded here:
PuTTY. This is a well known software for Windows that will enable SSH and serial communication with the Galileo.
There are multiple methods to establish serial communication with the Galileo. In this tutorial we will be using just an Ethernet Cable and a pre-made Arduino Script. Other methods require special FTID cables which I do not currently have.
<note>
void setup() {
Serial.begin(9600);
//It’ll not continue until you send an ‘a’ through the serial monitor
while(Serial.read()!='a'){
Serial.println("hello");
delay(1000);
}
//Display ifconfig result to serial monitor
system("ifconfig > /dev/ttyGS0");
}
void loop() { } </note>
Part 1 Conclusion
After reading the first part of the Linux Terminal Communication, you should now have the Intel IoT devellopement kit installed onto your Galileo Gen 2. We have introduced only 1 means of serial communication; using an ethernet cable and an arduino sketch. We hope to explore the pros/cons of this choice over an alternative method. To test a second method, we will need an FTDI cable.
It should be noted that there exist multiple terminal emulators, each with pros & cons. It may interest certain users to consider:
Part 2: SSH for Newbies
Secure Shell is a cryptographic network protocol for operating network services securely over an unsecured network. It is the method that we must use in order to communicate with the Intel Galileo. In order to help new users, we have compiled a short list of helpful commands to get jump started.
For all of these examples:
Where am I
What is in here
Run a Program
Terminate a running program
Create a new folder
Change directory