ruggedBOARD
Tutorial Using Python
Tutorial Using Python
  • Overview
  • Quick Start with RB
    • Pre-Requisite
      • Required Hardware and Software Components
      • Host Setup
      • Linux Commands
    • Power Up your RB
    • Fiddle with RB Command-line
  • Lib-Mraa & UPM Sensor Libraries (Python)
    • First Python Program
    • Know Your Libraries
      • LibMRAA
        • Python Programming using MRAA (SPI)
        • Python Programming using MRAA (PWM)
        • Python Programming using MRAA (gpio_blink)
        • Python Programming using MRAA (Aio)
      • LibUPM
    • Example Programs for Sensors
      • Procedure to interface phyNODE with RB
      • Accelerometer
      • Temperature Sensor
      • Pressure Sensor
      • Humidity Sensor
      • Magnetometer
      • PIR Sensor
      • Ultrasonic Sensor
      • Gas Sensor (MQ5)
    • mikroBUS UPM Sensor
    • Example programs for Communication Protocols
      • GPIO
      • I2C
      • UART
  • Hello World in C language
    • Setting up Environment
    • Transferring Files from Host to Board
    • Write your first C program
  • IoT Implementation
    • What is IoT?
    • IoT Protocols
    • MQTT Setup
  • Peripherals Functionality Testing using C Language
    • Interfaces
      • GPIO(General purpose Input/Output):
      • UART(Universal Asynchronous Receiver-Transmitter)
      • RS232
      • RS485
      • CAN
      • MikroBUS
      • mPCIe
  • Advance RB
    • Preparing SD card in case of OS failure
Powered by GitBook
On this page

Was this helpful?

  1. Quick Start with RB

Power Up your RB

PreviousLinux CommandsNextFiddle with RB Command-line

Last updated 6 years ago

Was this helpful?

This section will demonstrate you the board bring up activity.

Connect the USB to micro-USB cable to a windows PC and ruggedBOARD-A5D2x respectively.

Note: Once the cable is connected, you will be prompted with a USB connected sound. But at this point you will not see any mass storage symbol in task-bar/File Manager.

Next goto start menu and type:

device manager

Launch device manager. Device manger shows all the device and interfaces on a particular PC.

Look for COM port as shown in the image below. Mostly you should look for Port (COM & LPT). Your device will be displayed as USB Serial Port (COMx). Here x means the COM port number. In my case its COM8

Now open Putty.exe. Click on Serial and replace the COM port with your COM port shown from device manager and click "Open".

Connect the micro USB cable to PC and the board. Check if the light in the board glows up. If the LED is glowing in the board then proceed to test the serial Console on Linux Host.

To confirm USB device is detected, enter the following command

dmesg

Look for /dev/ttyUSBx where xmeans the connected port number. Example: If the device is connected in USB0, you will get message as /dev/ttyUSB0

Install minicom Serial Monitor on your host PC:

Ubuntu@pc:~$ sudo apt-get install minicom

Setting Serial Console (Minicom):

Ubuntu@pc:~$ sudo minicom –s

Select the option “serial port setup” from menu on terminal and press 'Enter

For ex: Serial device - /dev/ttyUSB0, first press ‘A’ the cursor blinks at the particular line then change the device name to /dev/ttyUSB0 and press ‘ENTER’

Note: Serial device name will vary based on your serial device. dev/ttyS0, if you are suing Serial cable and /dev/ttyUSB0, if you are using USB to Serial converter.

After making all changes like baud rate "115200", hardware flow control "NO" by pressing the keyword ‘F’ etc. that are required press ‘ENTER’ to come out from the screen,

Simply follow the further screens from the menu list and select “Save setup as default” by Press Enter key and Exit from the minicom setup process. It will take into ‘minicom’ the serial terminal.

Finally, you will get Board Console on the terminal after board boot-up ...what Next?

Note: In this stage if the board does not show the boot-logs/Board terminal, then just restart the board by switching power "OFF" and "ON".

Now will have two terminals:

  • PC - Terminal. PC terminal will have the following annotation:

    gopal@phytec:~$

  • Board Terminal.

    PC terminal will have the following annotation:root@ruggedBOARD-A5D2x:~#

Congratulations!!! Now you are ready to play around with ruggedBOARD-A5D2x SBC.

Terminal on the left side of the image is Board's terminal and the one on the right side of the image is HOST PC's terminal.

Upcoming Sections will show how to set up SD card to boot the board from SD card. Also "tftp" server and client communication to transfer files from host PC to

Device Manager
Terminal windows of Board and HOST PC