官术网_书友最值得收藏!

Serial and network connections

In this book, I'm mainly going to use two different kinds of connections to interact with the embedded kit: the serial console, and an SSH terminal and Ethernet connection.

The serial console, implemented over a USB connection, is mainly used to manage the system from the command line. It's largely used for monitoring the system, and especially for taking control of kernel messages.

An SSH terminal is quite similar to the serial console, even if is not exactly the same (for example, kernel messages do not automatically appear on a Terminal), but it can be used in the same manner as a serial console to give commands and edit files from the command line.

In the chapters, I'm going to use a Terminal on the serial console or over an SSH connection  to give the most of the commands and configuration settings needed to implement all the prototypes explained in this book.

To get access to the serial console from your host PC, you can use the minicon command, as follows:

$ minicom -o -D /dev/ttyUSB0

However, in Chapter 1 , Installing the Development System, these aspects are explained and you should not worry about them. Note also that on some systems, you may need root privileges to get access to the /dev/ttyUSB0 device. In this case, you can fix this issue or by using the sudo command or, better, by properly adding your system's user to the right group by using the following command:

$ sudo adduser $LOGNAME dialout

Then log out and log back in again, and you should be able to access the serial devices without any problem.

To get access to the SSH Terminal, you can use Ethernet connection. It is used mainly to download files from the host PC or the internet and can be established by connecting an Ethernet cable to the embedded kit's Ethernet port, and then configuring the port accordingly to the reader's LAN settings (see all the instructions in Chapter 1 , Installing the Development System).

主站蜘蛛池模板: 扬州市| 沧源| 雷州市| 五寨县| 铁岭市| 溆浦县| 内黄县| 含山县| 抚宁县| 同德县| 聂荣县| 通山县| 九龙城区| 正阳县| 尚义县| 沅江市| 新余市| 綦江县| 柏乡县| 吴桥县| 方城县| 呈贡县| 卓尼县| 新巴尔虎左旗| 青海省| 湘西| 深州市| 江山市| 阳朔县| 岗巴县| 雅江县| 灵寿县| 六枝特区| 宁晋县| 永靖县| 德昌县| 城固县| 丰都县| 江阴市| 广平县| 岢岚县|