Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Test EM on Raspbian OS

...

Platform agnostic c++ coding

State machine

GoLang support for EM CLI

BPI-R4 build instruction 

...

  1. Setup mysql in BPI controller (One time process)
    Panel
    borderColorblack
    borderStyledashed
    titleDB Setup

    → Input command mysql in prompt, enter into mariadb console and execute the below commands


    CREATE USER 'bpi'@'localhost' IDENTIFIED BY 'root';

    ALTER USER 'bpi'@'localhost' IDENTIFIED BY 'root';

    GRANT ALL PRIVILEGES ON *.* TO 'bpi'@'localhost' IDENTIFIED BY 'root';

    FLUSH PRIVILEGES;

    SELECT User, Host, plugin FROM mysql.user;


    → Exit from mysql

  2. Once user is added in mysql, enter into prompt with root access.
    Panel
    borderColorblack
    borderStyledashed
    titlebpi root

    → Input command mysql -u bpi -p, password is root

  3. Create OneWifiMesh table in mariadb
    Panel
    borderColorblack
    borderStyledashed
    titleCreating database

    create database OneWifiMesh;
    → use OneWifiMesh;
    → show tables;                   ==> should show no tables

      
  4. Please have below files in /nvram folder,            

...

Sample cli response given below:
Image RemovedImage RemovedImage RemovedImage AddedImage AddedImage Added
Change colocatedAgentID mac addr to interface which needs to be treated as AL MAC
Image RemovedImage RemovedImage AddedImage Added

  1. Once AL MAC is set check the ctrl prompt whether database reset happened

    Observe outputs deleting all datamodels and database insert to verify successful reset
    Sample response in ctrl: 
    Image RemovedImage Added
    Response in database: Respective rows will be updated in db
    Image RemovedImage Added

  Run local Agent with below cmd, (this step is not mandatory)

...