Versions Compared

Key

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

...

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

    → Input command mysql in prompt, enter into mariadb console
    → 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
    titleSetupbpi root

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

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

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

  4. Start onewifi easymesh controller in new tab
    /usr/ccsp/EasyMesh# ./onewifi_em_ctrl bpi@root (Here bpi is the user and root is the password)

    Reset database, resetting can be done from cli (see log: data base empty ... needs reset)
  5. Start onewifi easymesh cli in a new tab
    /usr/ccsp/EasyMesh# ./onewifi_em_cli bpi

    Panel
    borderColorblack
    borderStyledashed
    titleSetuponewifi_em_cli bpi

    → In the cli use keys "j" to scroll down and "k" to scroll up the menu.
    → Select "Wifi Reset" and then select Update to update the window.
    → In the CollocatedAgentID update the Mac address of the interface which needs to be treated as AL MAC. In case of using wireless backhaul, use the appropriate "wlan" interface as CollocatedAgentID.
    → Select Apply to reset the database.


    Sample cli response given below:

    Change colocatedAgentID mac addr to interface which needs to be treated as AL MAC


  6. 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: 

    Response in database: Respective rows will be updated in db

  7. Restart onewifi_em_ctrl
    Observe private_ssid are broadcasting

  8. asa

...

  1. OneWifi should be up and running
  2. In /nvram/EasyMesh.json update CollocatedAgentID Mac address forthe interface which needs to be treated as AL MAC

    Sample response:

  3. Start onewifi easymesh agent
    sample response:

    Panel
    borderColorblack
    borderStyledashed
    titleSetupsample response

    /usr/ccsp/EasyMesh#./onewifi_em_agent
    input_listener:646 he_bus open success
    input_listener:664 recv data:
    {
        "Version":    "1.0",
        "SubDocName":    "dml",
        "WifiConfig":    {
            "GASConfig":    {
                "AdvertisementId":    0,
                "PauseForServerResp":    true,
                "RespTimeout":    5000,
                "ComebackDelay":    1000,
                "RespBufferTime":    1000,
                "QueryRespLengthLimit":    127
            },

  4. Check whether agent window receives subdoc decode success
  5. Check whether AP acquired private_ssid through backhaul

...