Advertisement

Orange Pi 2G-IOT User Manual
Copy right by Shenzhen Xunlong Software Co., Ltd
Orange Pi 2G-IOT

User Manual

www.orangepi.org
I
www.xunlong.tv

Advertisement

Table of Contents
loading

Summary of Contents for y Shenzhen Xunlong Software Co Orange Pi 2G-IOT

  • Page 1: User Manual

    Orange Pi 2G-IOT User Manual Copy right by Shenzhen Xunlong Software Co., Ltd Orange Pi 2G-IOT User Manual www.orangepi.org www.xunlong.tv...
  • Page 2: Table Of Contents

    Copy right by Shenzhen Xunlong Software Co., Ltd Content I. Orange Pi Introduction........................... 1 1. What is Orange Pi 2G-IOT?....................1 2. What can I do with Orange Pi 2G-IOT?................... 1 3. Whom is it for?......................... 1 4. Hardware specification......................1 5. GPIO Specifications........................4 II.
  • Page 3: Orange Pi Introduction

     3. Whom is it for? Orange Pi 2G-IOT is for anyone who wants to create with technology– not just consuming. It's a simple, fun, useful tool and you can use it to take control of the world around you.
  • Page 4 Orange Pi 2G-IOT User Manual Copy right by Shenzhen Xunlong Software Co., Ltd Onboard WIFI+BT RDA5991, WIFI+BT 2G model The four frequency single card GSM/GPRS Dedicated accelerators SIM card Video Input A CSI input connector Camera: Supports 8-bit YUV422 CMOS sensor interface...
  • Page 5: Top View

    Orange Pi 2G-IOT User Manual Copy right by Shenzhen Xunlong Software Co., Ltd Top view Bottom view www.orangepi.org www.xunlong.tv...
  • Page 6: Gpio Specifications

    Orange Pi 2G-IOT User Manual Copy right by Shenzhen Xunlong Software Co., Ltd Interface instructions: 5. GPIO Specifications he CSI Camera Connector is a 24-pin FPC connector which can connect external www.orangepi.org www.xunlong.tv...
  • Page 7 Copy right by Shenzhen Xunlong Software Co., Ltd camera module with proper signal pin mappings. The pin of CIS connector can be defined as follows. The connector marked with "CON 1" on the Orange Pi 2G-IOT is camera connector. OrangePi 2G-IOT-CSI...
  • Page 8: Using Method

    Orange Pi 2G-IOT User Manual Copy right by Shenzhen Xunlong Software Co., Ltd II. Using Method You can configure your Orange Pi in a very short period of time and use it according to the following steps. You need to fulfill the several steps before booting your Orange Pi.
  • Page 9 Orange Pi 2G-IOT User Manual Copy right by Shenzhen Xunlong Software Co., Ltd 1) Writing image into a SD card on Windows: Inserting the TF card into the computer, the capacity of the card must be larger than the operating system image, usually requires 8GB or bigger capacity.
  • Page 10 Orange Pi 2G-IOT User Manual Copy right by Shenzhen Xunlong Software Co., Ltd is as follows: http://www.orangepi.cn/downloadresourcescn/ d. Unzip the downloaded file (in addition to the Android system, this method can be used to burn to write, the Android system need another burn, the following will introduce).
  • Page 11: Step 3: Start Your Orange Pi

    Orange Pi 2G-IOT User Manual Copy right by Shenzhen Xunlong Software Co., Ltd ii. Make sure the image file hash key is the same as download page offered(optional) : sha1sum [path]/[imagename] Here will be output some number which should be same as the image page line of "SHA-1"...
  • Page 12 Orange Pi 2G-IOT User Manual Copy right by Shenzhen Xunlong Software Co., Ltd  Connect LCD and Camera www.orangepi.org www.xunlong.tv...
  • Page 13 Orange Pi 2G-IOT User Manual Copy right by Shenzhen Xunlong Software Co., Ltd  Connect TTL cable, you could refer to the Debug method in this instruction. Android and Linux use different Baud rate, please note the Baud rate setting.
  • Page 14: Step 4: Turn Off Your Orange Pi Correctly

    It will connect to orangepi hotspot default after booting the system. After that, use another cellphone to connect the hotspot, and use “wifi assistant” to check the IP of Orange Pi 2G-IOT. After getting the IP of Orange Pi 2G-IOT, you could use SSH remote login in Linux www.orangepi.org www.xunlong.tv...
  • Page 15: Write Android Into Nand

    After enter the system via ssh, run the following command to connect to router: sudo OrangePi_Settings 6. Write Android into Nand Orange Pi 2G-IOT is supported boot from Nand, and also supported update Android in Nand. 1) Boot Android from NAND Switching the boot mode into NAND via short jumper cap.
  • Page 16 Orange Pi 2G-IOT User Manual Copy right by Shenzhen Xunlong Software Co., Ltd 3) Install writing tool on Windows For now Nand writing tool could only support working on Windows, you could download the tool from official website: http://www.orangepi.org/downloadresources/ 4) Install USB driver on Windows...
  • Page 17 Copy right by Shenzhen Xunlong Software Co., Ltd driver, if it is 64bit, then is x64 USB driver. 5) Download Android Nand image Here is the ink for Orange Pi 2G-IOT Nand version image: http://www.orangepi.org/downloadresources/ 6) Use writing tool Use writing tool to write NAND: */OrangePi_2G-IOT_Toolschain/OrangePi_2G-IOT_NandUpdate_Tools/OrangePi_2G-I OT_Update.exe.
  • Page 18: Android In No Screen Adb Mode

    Orange Pi 2G-IOT User Manual Copy right by Shenzhen Xunlong Software Co., Ltd 7) Download Image Prepare an Android USB to DC cable, first connect to the OTG port of Orange Pi 2G-IOT, then push on the power button for 5s, and connect the cable to the Windows PC.
  • Page 19  After connect to OrangePi 2G-IOT via adb, you could refer to the adb debug method from the internet to enter into Orange Pi 2G-IOT We would recommend you use Plug-in Vysor in Chrome browser, this tool could enter Android via adb: www.orangepi.org...
  • Page 20: Universal Software Configuration

    Orange Pi 2G-IOT User Manual Copy right by Shenzhen Xunlong Software Co., Ltd 8. Universal software configuration 1) Change default account The default log-in account and password is orangepi/orangepi or root/orangepi. It is recommended to modify the default orangepi account to your own account for secure sake.
  • Page 21 Orange Pi 2G-IOT User Manual Copy right by Shenzhen Xunlong Software Co., Ltd $ cat /etc/passwd It should be shown as following: After the modification of the above steps, you could use the new account Zhangsan to log in. 2) System source configuration...
  • Page 22 Orange Pi 2G-IOT User Manual Copy right by Shenzhen Xunlong Software Co., Ltd 3) Enter the system via SSH You could refer to the previous charter 5. 2)Use SSH to connect Wifi. 4) Modify the size of ext4 file system It could promote system performance via expanding the rootfs partitions of file system after writing image, which could avoid the problems caused by insufficient space.
  • Page 23: Usage Of Gpio And Wiringpi

    Orange Pi 2G-IOT User Manual Copy right by Shenzhen Xunlong Software Co., Ltd first delete the partition then build a new one because the fdisk could not modify the size dynamic(you need to calculate the size, it have to enough to contain the file system adjusted in last step).
  • Page 24 ./build OrangePi_2G-IOT install d. Test WiringPi with gpio command You could use gpio command to test GPIO on 40pin on Orange Pi 2G-IOT with WiringPi installed. i Use "gpio readall" command to print out all WiringPi pin mapping as following.
  • Page 25 Orange Pi 2G-IOT User Manual Copy right by Shenzhen Xunlong Software Co., Ltd ii Use "gpio export pin mode" to explore wiringPi GPIO to the directory of /sys/class/gpio and set the GPIO mode into mode. According to the above WiringPi pin mapping, hardware pin number 37 is corresponding to WiringPi pin number GPIO 25, explore the number 25 and set it into output mode.
  • Page 26 Orange Pi 2G-IOT User Manual Copy right by Shenzhen Xunlong Software Co., Ltd orangepi# gpio unexport 25 iv Use "gpio exports" to check the current explored gpio. For expample: orangepi# gpio exports v Use "gpio mode pin mode" command to configure wiringPi pin mode. For example:...
  • Page 27: Connect To Network Via Gsm

    Before using the SMS function, please make sure the SIM card you use is active. Prepare First you need to prepare an activated Micro SIM card and insert into Orange Pi 2G-IOT, the Orange PI 2G-IOT could support the following frequency: Frequency Range: 850,900,1800,1900 Standard: GSM800 www.orangepi.org www.xunlong.tv...
  • Page 28 Orange Pi 2G-IOT User Manual Copy right by Shenzhen Xunlong Software Co., Ltd ii. Install SIM card Please note the direction of when inserting SIM card. www.orangepi.org www.xunlong.tv...
  • Page 29 There are many ways to use SMS, here will introduce the way with serial port and C language. a. With Serial Port You need to install the tool of minicom on Orange Pi 2G-IOT before using SMS. Please make sure the board has already connect to wifi. You could install minicom with the following command: sudo apt-get install minico The AP core and Modem will communicate via serial port.
  • Page 30 Orange Pi 2G-IOT User Manual Copy right by Shenzhen Xunlong Software Co., Ltd After input the command, you will enter the configure interface, select "Serial port setup" Push A to modify Serial Device into /dev/modem0 Use AT command to send message First you need to input AT command to check the situation of Modem, if Modem replies OK, then means Modem is connect correctly.
  • Page 31 Orange Pi 2G-IOT User Manual Copy right by Shenzhen Xunlong Software Co., Ltd Input command of AT +cfun=1 to open Modem full function Initialize serial port: www.orangepi.org www.xunlong.tv...
  • Page 32 Orange Pi 2G-IOT User Manual Copy right by Shenzhen Xunlong Software Co., Ltd Send AT command function AT send message www.orangepi.org www.xunlong.tv...
  • Page 33 Orange Pi 2G-IOT User Manual Copy right by Shenzhen Xunlong Software Co., Ltd Detail steps you could refer to the following: “OrangePi_2G_IOT_GSM_Demo.c” Here is the reflect of running C: www.orangepi.org www.xunlong.tv...
  • Page 34 Orange Pi 2G-IOT User Manual Copy right by Shenzhen Xunlong Software Co., Ltd www.orangepi.org www.xunlong.tv...
  • Page 35 Orange Pi 2G-IOT User Manual Copy right by Shenzhen Xunlong Software Co., Ltd Finally you will receive the message from OrangePi 2G-IOT OrangePi_2G_IOT_GSM_Demo.c  * OrangePi 2G-IOT GSM Demo (C) Copyright 2017 OrangePi #include <stdio.h> #include <stdlib.h> #include <unistd.h> www.orangepi.org...
  • Page 36 Orange Pi 2G-IOT User Manual Copy right by Shenzhen Xunlong Software Co., Ltd #include <fcntl.h> #include <string.h> #include <termios.h> #include <sys/types.h> #include <sys/stat.h> #define NR_CITY #define MODEM_PATH "/dev/modem0" #define VERSION "0.1.0" struct Centry_number { char *city; char *number; } City_Number[NR_CITY] = { { "ShenZhen",...
  • Page 37 Orange Pi 2G-IOT User Manual Copy right by Shenzhen Xunlong Software Co., Ltd cfsetospeed(&options, B9600); tcsetattr(fd, TCSANOW, &options); void display_message(int direction, const char *message) if (direction) { printf("Send Message ------> %s\n", MODEM_PATH); printf(">> %s\n", message); } else { printf("Rece Message <------ %s\n", MODEM_PATH);...
  • Page 38 Orange Pi 2G-IOT User Manual Copy right by Shenzhen Xunlong Software Co., Ltd printf("[%2d] %s\n", i, City_Number[i].city); printf("Please select your City!\n"); scanf("%d", &choice); do { memset(num1, 0, sizeof(num1)); printf("\nPlease Entry Receive phone number:\n"); scanf("%s", num1); } while (strlen(num1) != 11);...
  • Page 39 Orange Pi 2G-IOT User Manual Copy right by Shenzhen Xunlong Software Co., Ltd printf("Can't open %s\n", MODEM_PATH); return -1; /* Initialize /dev/modem0 */ serial_init(fd); printf("************************************************\n"); printf("\tWelcome to OrangePi 2G-IOT\n"); printf("\tModem version %s\n", VERSION); printf("************************************************\n"); printf("Entry your select:\n"); printf("1. Send Message\n");...
  • Page 40 Orange Pi 2G-IOT User Manual Copy right by Shenzhen Xunlong Software Co., Ltd 安装 SIM 卡,注意插入的方向,SIM 卡缺角方向在外侧 插入耳机 www.orangepi.org www.xunlong.tv...
  • Page 41 Orange Pi 2G-IOT User Manual Copy right by Shenzhen Xunlong Software Co., Ltd 登录 Linux  插好卡之后,上电启动 Linux 系统,用户可以使用多种方式连接系统,其中包括串口 方式连接, ssh 方式连接等。 具体连接方法, 请参考官方 OrangePi 2G-IOT 的用户手册。 如果使用串口方式连接,波特率请设置为 921600。  多种方式打电话 OrangePi 2G-IOT 的 Linux 发行版有多种方式可以使用通话功能, 本文重点介绍串口方 式和 C 程序方式。...
  • Page 42 Orange Pi 2G-IOT User Manual Copy right by Shenzhen Xunlong Software Co., Ltd 如下命令进行配置 sudo minicmo -s 输入命令之后,进入配置界面,如下图,选择 "Serial port setup" 按下 “A” 修改 Serial Device 为 /dev/modem0 2) 使用 AT 指令集进行短信的发送 首先输入 AT 命令对 Modem 状态进行检查, 如果 Modem 回复 OK, 表示 Modem 连接正常。...
  • Page 43 Orange Pi 2G-IOT User Manual Copy right by Shenzhen Xunlong Software Co., Ltd 输入完电话号码之后,以 “;” 结尾,例如 AT DT "+86135xxxxxxx;" 以上为一次完整的通话过程。 2. C 语言方式 C 代码中发打电话的流程与 AT 发端的流程一样,也使用串口和 Modem 进行通 信,然后交换 AT 命令。具体流程如下: 首先,初始化串口: 发送 AT 命令函数 www.orangepi.org www.xunlong.tv...
  • Page 44 Orange Pi 2G-IOT User Manual Copy right by Shenzhen Xunlong Software Co., Ltd AT 发短信流程 完整程序见附录 “OrangePi_2G_IOT_GSM_Demo.c” www.orangepi.org www.xunlong.tv...
  • Page 45 Orange Pi 2G-IOT User Manual Copy right by Shenzhen Xunlong Software Co., Ltd C 代码运行效果如下图: OrangePi_2G_IOT_GSM_Demo.c  Demo 程序请参考上一节。 OrangePi 2G-IOT Linux 发行版 GSM 上网  目前官方 OrangePi 2G-IOT Linux 发行版支持 Ubuntu, Debian 和 Raspbian, 这 些发新版已经支持 GSM 上网功能,开发者请到官网 (http://www.orangepi.cn/downloadresourcescn/) 下载最新的 Linux 发行版镜...
  • Page 46 Orange Pi 2G-IOT User Manual Copy right by Shenzhen Xunlong Software Co., Ltd 安装 SIM 卡,注意插入的方向,SIM 卡缺角方向在外侧 登录 Linux  插好卡之后,上电启动 Linux 系统,用户可以使用多种方式连接系统,其中包括串口 方式连接, ssh 方式连接等。 具体连接方法, 请参考官方 OrangePi 2G-IOT 的用户手册。 如果使用串口方式连接,波特率请设置为 921600。 www.orangepi.org www.xunlong.tv...
  • Page 47 Orange Pi 2G-IOT User Manual Copy right by Shenzhen Xunlong Software Co., Ltd  使用开源工具拨号上网 OrangePi 2G-IOT 目前支持 ppp 方式上网, 其上网基于 ppp 和 wvdial 两个开源工具。 开发者首先在 OrangePi 2G-IOT 上安装这两个开源工具,可使用如下命令: sudo apt-get install ppp wvdial 配置 wvdial  安装完毕后,对 wvdial 工具进行配置,修改 /etc/wvdial.conf 文件,如下...
  • Page 48 Orange Pi 2G-IOT User Manual Copy right by Shenzhen Xunlong Software Co., Ltd 使用 ifconfig 查看网络信息 使用 ping 命令测试连通状态 www.orangepi.org www.xunlong.tv...
  • Page 49 Orange Pi 2G-IOT User Manual Copy right by Shenzhen Xunlong Software Co., Ltd The open source project WiringPi is working on OrangePi 2G-IOT. This section will introduce how to utilize WiringPi on OrangePi 2G-IOT. The following is definition of 40pin.
  • Page 50 Orange Pi 2G-IOT User Manual Copy right by Shenzhen Xunlong Software Co., Ltd Usage: 1) Download WiringPi image of OrangePi 2G-IOT env GIT_SSL_NO_VERIFY=true git clone https://github.com/OrangePiLibra/WiringPi.git 2) Compile and install WiringPi cd WiringPi sudo ./build OrangePi_2G-IOT sudo ./build install 3) Utilze WiringPi...
  • Page 51 Orange Pi 2G-IOT User Manual Copy right by Shenzhen Xunlong Software Co., Ltd Please note that: On OrangePi 2G-IOT, GPIOA, GPIOB and GPIOD tract as general GPIO, but GPIOC as non-general GPIO. Because of some hardware design. The host of GPIOC is modem not CPU.
  • Page 52 Orange Pi 2G-IOT User Manual Copy right by Shenzhen Xunlong Software Co., Ltd unsigned int vol; /* Setup wiringPi */ wiringPiSetup(); /* Set Input Mode */ pinMode(PA1, INPUT); pinMode(PB5, INPUT); pinMode(PD2, INPUT); /* Get value from GPIO */ vol = digitalRead(PA1);...
  • Page 53: Use Gsm To Connect Network

    LOW); return 0; 11. Use GSM to Connect Network Orange Pi 2G-IOT Linux Dist has debugged to connect network via GSM. You could first download Linux Dist from official website, Debian, Ubuntu and Raspbian could support GSM function. First you need to prepare an activated...
  • Page 54 Orange Pi 2G-IOT User Manual Copy right by Shenzhen Xunlong Software Co., Ltd Download Linux Dist from official website: http://www.orangepi.org/downloadresources/ Download and write image into SD card, then insert SD card and SIM card into the board. You could login the system via serial port and SSH. If via serial port, please remember to set the baud rate into 921600.
  • Page 55 Orange Pi 2G-IOT User Manual Copy right by Shenzhen Xunlong Software Co., Ltd Execute the following command after power on and login to ppp dial up. wvdia Tom & This command will run at the backstage for dial up, after dial-up access, you could use ping and ifconfig to check the network.
  • Page 56 Orange Pi 2G-IOT User Manual Copy right by Shenzhen Xunlong Software Co., Ltd www.orangepi.org www.xunlong.tv...
  • Page 57 Orange Pi 2G-IOT User Manual Copy right by Shenzhen Xunlong Software Co., Ltd www.orangepi.org www.xunlong.tv...
  • Page 58: Source Code Compilation Of Android And Linux

    Orange Pi 2G-IOT User Manual Copy right by Shenzhen Xunlong Software Co., Ltd Source Code Compilation of Android and Linux III. Hardware: Orange Pi development board*1, Card reader*1, TF card*1, power supply*1 Software: Linux host computer, which hard disk space at least 50G (to meet a fully...
  • Page 59: Install Platform Supported Software

    Orange Pi 2G-IOT User Manual Copy right by Shenzhen Xunlong Software Co., Ltd  Switch to java version and select version 1.6, use the following command: sudo update-alternatives --config java sudo update-alternatives --config javac sudo update-alternatives --config jar sudo update-alternatives --config javap...
  • Page 60 Orange Pi 2G-IOT User Manual Copy right by Shenzhen Xunlong Software Co., Ltd $ tar -xvjf OrangePi_Doc.tar.bz2 $ cd Platform/RDA/modem-cross $ tar -xvzf modem-cross-compiler-linux.tar.gz $ cd cross-compiler After you get the corresponding tool, install the cross compilation tool of modem as...
  • Page 61: Compile Linux Source Code

    How to update Android Nand in the manual. 5. Compile Linux source Code Linux source code of Orange Pi 2G-IOT has been updated to github, you could download from github. Compile Linux would require you work under Linux environment.
  • Page 62 Orange Pi 2G-IOT User Manual Copy right by Shenzhen Xunlong Software Co., Ltd Select “Build system with kernel/uboot/rootfs” on main functional interface and use Enter key. And then select “OrangePi 2G-IOT” with Enter key to update source code. www.orangepi.org www.xunlong.tv...
  • Page 63 Orange Pi 2G-IOT User Manual Copy right by Shenzhen Xunlong Software Co., Ltd It would take around 40minutes to update source code and corresponding scripts. After updated the source code, there will be generated a directory of OrangePiRDA. This directory contains both Linux source code and scripts: ...
  • Page 64 Orange Pi 2G-IOT User Manual Copy right by Shenzhen Xunlong Software Co., Ltd You will enter into the main interface after entering password, select what you are going to do: This version is only support the above three options. After selecting the corresponding option, the system would compile automatically.
  • Page 65 Orange Pi 2G-IOT User Manual Copy right by Shenzhen Xunlong Software Co., Ltd  Update Linux Kernel and module After finished the above compilation steps, you could update the new kernel and module into the board to run it. Before this, you could refer to the charter about Linux image writing section to write a Linux distro into SD card.
  • Page 66: Orange Pi Driver Development

    Orange Pi 2G-IOT User Manual Copy right by Shenzhen Xunlong Software Co., Ltd Orange Pi Driver development In order to help developers more familiar with Orange Pi, this instruction will make a brief illustration on device driver module and application program.
  • Page 67 Orange Pi 2G-IOT User Manual Copy right by Shenzhen Xunlong Software Co., Ltd 2) Driver Program (OrangePi_misc.c) www.orangepi.org www.xunlong.tv...
  • Page 68: Compile Device Driver

    Orange Pi 2G-IOT User Manual Copy right by Shenzhen Xunlong Software Co., Ltd 2. Compile device driver Copy the OrangePi_misc.c to the */trunk/kernel/driver/misc: Enter to */trunk/kernel/driver/misc Modify Makefile on currently file, shown as following: There is Kconfig on the same sibling folders with Makefile. Each Kconfig respectively describes the the source directory file related kernel configuration menu.
  • Page 69 Orange Pi 2G-IOT User Manual Copy right by Shenzhen Xunlong Software Co., Ltd Insert U disk (please note the SD card should have written image) if the SD card is mounted to the directory system of /dev/sdc, then SD card will mount to rootfs, which is /dev/sdc7, and mounted to rootfs partition automatic.
  • Page 70: Running Driver And Application

    Orange Pi 2G-IOT User Manual Copy right by Shenzhen Xunlong Software Co., Ltd Unzip the downloaded file and enter the the directory Check the information after entering bin directory pwd hows the path and export it into the whole project...
  • Page 71 Orange Pi 2G-IOT User Manual Copy right by Shenzhen Xunlong Software Co., Ltd You need to switch to root users and load module driver module to the development board first. $ insmod /lib/modules/orangepi.ko $ lsmod To check whether it is loaded...
  • Page 72: Using Debug Tools On Orangepi

    Orange Pi 2G-IOT User Manual Copy right by Shenzhen Xunlong Software Co., Ltd V. Using Debug tools on OrangePi Hardware: Orange Pi development board*1, Card reader*1, TF card*1, power supply*1, TTL to USB cable*1 TTL to USB cable 1. Operations on Windows In order to get more debugging information in the project development process of using OrangePi, OrangePi default support for serial information debugging.
  • Page 73 Orange Pi 2G-IOT User Manual Copy right by Shenzhen Xunlong Software Co., Ltd Android Baud rate set as 921600 Linux Baud rate set as 921600 1) Install USB driver on Windows  Download and unzip the latest version of driver: PL2303_Prolific_DriverInstaller_v130.zip...
  • Page 74 Orange Pi 2G-IOT User Manual Copy right by Shenzhen Xunlong Software Co., Ltd  Open it after installed, shown as below: 3) Connect method Use the TTL to the serial port cable, one end connected to OrangePi, the other end connected to PC www.orangepi.org...
  • Page 75 Orange Pi 2G-IOT User Manual Copy right by Shenzhen Xunlong Software Co., Ltd 4) Equipment information acquisition  Select control panel on Start menu  Click on the device manager to check the port number 5) Putty configuration www.orangepi.org www.xunlong.tv...
  • Page 76: Operations On Linux

    Orange Pi 2G-IOT User Manual Copy right by Shenzhen Xunlong Software Co., Ltd Serial port should set to the corresponding port number (COM5), the speed should set to 115200 6) Start debug Power Orange Pi on and boot it, the serial port will automatic print out debug log.
  • Page 77 Orange Pi 2G-IOT User Manual Copy right by Shenzhen Xunlong Software Co., Ltd  Install the Kermit by execute command: $ sudo apt-get install ckermit Configurate Kermit  $ sudo vi /etc/kermit/kermrc  Add lines: set line /dev/ttyUSB1 set speed...
  • Page 78 Orange Pi 2G-IOT User Manual Copy right by Shenzhen Xunlong Software Co., Ltd 2) Connect method for debug Use the TTL to the serial port cable, one end connected to OrangePi, the other end connected to PC 3) Equipment information acquisition...
  • Page 79 Orange Pi 2G-IOT User Manual Copy right by Shenzhen Xunlong Software Co., Ltd 4) Start debug  Input command in the host computer terminal, enter the Kermit mode: $ sudo kermit –c  Power it on and boot Orange Pi, the serial port will automatic print debug log, the account and password ard root/orangepi and orangepi/orangepi www.orangepi.org...

Table of Contents