Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
AUI Tab Group
verticaltrue
Building2top

Linux Platform (RaspberryPi4) 

Build steps for compilation on Raspberry Pi with Raspbian OS:

Prerequisites

  1. Install the Raspian Pi OS from the “Raspberry Pi Imager” software. Select the Raspberry Pi Os (64-bit) image. 
  2. After installation below are additional packages to be installed for build, db and execution.

    1. bashRDark

Build Instructions

  1.  In a working directory git clone the OneWifi in generic folder and unified-wifi-mesh repository
    1. bashRDark
  2. Run the makefile of OneWifi with setup option to pull in other dependent repository. This is a one time operation. 
    1. bashRDark
  3. Build the Onewifi with make command
    1. bashRDark
  4. Build easymesh components in the 
    unified-wifi-mesh folder
    1. Controller
      1. bashRDark
    2. Cli
      1. bashRDark
    3. Agent
      1. bashRDark


OpenWrt Platform

[ToDo]

RDK Platform

bashRDark cd repo init -u https://code.rdkcentral.com/r/manifests -b kirkstone -m rdkb-extsrc.xml repo sync -j`nproc` --no-clone-bundle MACHINE=raspberrypi4-64-rdk-broadband source meta-cmf-raspberrypi/setup-environment bitbake rdk-generic-broadband-image]]>



Running2top

Linux Platform (RaspberryPi4)

Execution Steps

Prerequisites
OneWifi related
  • Install bridge utils 
    • sudo apt-get install bridge-utils
  • Mask running of wpa_supplicant with below commands and ensure that wpa_supplicant is not running after these steps using ps command.
    • sudo systemctl stop wpa_supplicant
    • sudo systemctl disable wpa_supplicant
    • sudo systemctl mask wpa_supplicant
    • sudo systemctl status wpa_supplicant 
  • Configure brlan0 interface, IP Tables, DHCP 
    • Enable brlan0 interface and configure ip address

      • bashRDark
    • #IP tables command
      • bashRDark /proc/sys/net/ipv4/ip_forward" ashraf@raspberrypi:~/easymesh_project $ sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE ashraf@raspberrypi:~/easymesh_project $ sudo iptables -A FORWARD -i eth0 -o brlan0 -m state --state RELATED,ESTABLISHED -j ACCEPT ashraf@raspberrypi:~/easymesh_project $ sudo iptables -A FORWARD -i eth0 -o brlan0 -j ACCEPT]]>
    • #dnsmasq for DHCP in background or in a different terminal
      • bashRDark

DB Setup commands (On controller)

  • Setup mysql database one time running below command. Choose "n" for Remove anonymous users and Remove test database.
  • sudo mysql_secure_installation
    • bashRDark
  • Setup "OneWifiMesh" database with the below commands
    • #Login to MariaDB monitor
      • sudo mysql -u root -p
    • #In MariaDB console
      • create database OneWifiMesh;
      • use OneWifiMesh;
      • show tables;                        ==> should show no tables
      • bashRDark create database OneWifiMesh; Query OK, 1 row affected (0.001 sec) MariaDB [(none)]> use OneWifiMesh; Database changed MariaDB [OneWifiMesh]> show tables; Empty set (0.001 sec) MariaDB [OneWifiMesh]>]]>
  • Reset database and check tables are created
    • #In a separate window run easy mesh ctrl with <username of db>@<password> to connect to DB.
      sudo ./onewifi_em_ctrl root@root

      #In a separate window run easy mesh cli and run reset command "reset eth0 pi4" as specified below to reset the database
      sudo ./onewifi_em_cli
      <<OneWifiMeshCli>>: reset eth0 pi4
    • #After this in MariaDB Console you if you run "show tables;" you will see 7 tables created with NetworkSSIDList and NetworkList tables Initialized.
      • # All other tables will be empty
        MariaDB [OneWifiMesh]> show tables;
        +-------------------------+
        | Tables_in_OneWifiMesh   |
        +-------------------------+
        | BSSList                              |
        | DeviceList                         |
        | NetworkList                      |
        | NetworkSSIDList              |
        | OperatingClassList          |
        | RadioList                           |
        | STAList                              |
        +------------------------+
bashRDark show tables; +-----------------------+ | Tables_in_OneWifiMesh | +-----------------------+ | BSSList | | DeviceList | | NetworkList | | NetworkSSIDList | | OperatingClassList | | PolicyList | | RadioList | | STAList | +-----------------------+ 8 rows in set (0.001 sec) MariaDB [OneWifiMesh]>]]>

Now, kill the cli and ctrl windows.

Running instructions

  • Run Easy mesh Controller and cli in separate windows. 
    • sudo ./one_wifi_em_ctrl root@root
    • sudo ./one_wifi_em_cli
  • Run OneWifi first in a separate window and then run easy mesh agent
    • sudo ./OneWifi -c
    • sudo ./one_wifi_em_agent
  • Check Below commands on cli window to see Agent configured 
    • <<OneWifiMeshCli>>:get_device OneWifiMesh
    • <<OneWifiMeshCli>>:get_radio OneWifiMesh
    • <<OneWifiMeshCli>>:get_bss OneWifiMesh
    • <<OneWifiMeshCli>>:get_ssid OneWifiMesh
  • Check on the Agent that it is beaconing with the configured SSID
bashRDark>: get_device OneWifiMesh { "Status": "Success", "Result": { "Network": { "ID": "OneWifiMesh", "DeviceList": [{ "▒\u000f▒▒U": "d8:3a:dd:27:41:ed", "MultiAPCapabilities": "", "CollectionInterval": 0, "ReportUnsuccessfulAssociations": false, "MaxReportingRate": 0, "APMetricsReportingInterval": 0, "Manufacturer": " Raspberry Pi 4 Model B Rev 1.5", "SerialNumber": " 100000004f5f3d57", "ManufacturerModel": " Raspberry Pi 4 Model B Rev 1.5", "SoftwareVersion": "", "ExecutionEnv": "", "DSCPMap": "", "MaxPrioritizationRules": 0, "MaxVIDs": 0, "CountryCode": "", "PrioritizationSupport": false, "ReportIndependentScans": false, "TrafficSeparationAllowed": false, "ServicePrioritizationAllowed": false, "DFSEnable": false, "MaxUnsuccessfulAssociationReportingRate": 0, "STASteeringState": false, "CoordinatedCACAllowed": false, "ControllerOperationMode": "", "BackhaulMACAddress": "00:00:00:00:00:00", "BackhaulDownMACAddress": [], "BackhaulPHYRate": 0, "BackhaulALID": "00:00:00:00:00:00", "TrafficSeparationCapability": false, "EasyConnectCapability": false, "TestCapabilities": 0, "APMLDMaxLinks": 0, "TIDLinkMapping": "", "AssociatedSTAReportingInterval": 0, "MaxNumMLDs": 0, "bSTAMLDMaxLinks": 0 }] } } } double free or corruption (out) Aborted ashraf@raspberrypi:~/easymesh_project/unified-wifi-mesh/install/bin $ sudo ./onewifi_em_cli <>: get_radio OneWifiMesh { "Status": "Success", "Result": { "Network": { "ID": "OneWifiMesh", "NumberOfDevices": 24624, "TimeStamp": "▒▒", "ControllerID": "02:01:02:01:00:01", "MSCSDisallowedStaList": [], "SCSDisallowedStaList": [], "CollocatedAgentID": "d8:3a:dd:27:41:ed", "DeviceList": [{ "ID": "d8:3a:dd:27:41:ed", "RadioList": [{ "ID": "d8:3a:dd:27:41:ee", "Enabled": true, "NumberOfBSS": 1, "NumberOfUnassocSta": 0, "Noise": 0, "Utilization": 0, "TrafficSeparationCombinedFronthaul": false, "TrafficSeparationCombinedBackhaul": false, "SteeringPolicy": 0, "ChannelUtilizationThreshold": 0, "RCPISteeringThreshold": 0, "STAReportingRCPIThreshold": 0, "STAReportingRCPIHysteresisMarginOverride": 0, "ChannelUtilizationReportingThreshold": 0, "AssociatedSTATrafficStatsInclusionPolicy": false, "AssociatedSTALinkMetricsInclusionPolicy": false, "ChipsetVendor": "", "APMetricsWiFi6": false, "TransmitPowerLimit": 0 }] }] } } } <>: get_bss OneWifiMesh { "Status": "Success", "Result": { "Network": { "ID": "OneWifiMesh", "DeviceList": [{ "ID": "d8:3a:dd:27:41:ed", "RadioList": [{ "ID": "d8:3a:dd:27:41:ee", "Enabled": true, "BSSList": [{ "BSSID": "d8:3a:dd:27:41:ee", "SSID": "private_ssid", "Enabled": false, "LastChange": 0, "TimeStamp": "", "UnicastBytesSent": 0, "UnicastBytesReceived": 0, "NumberOfSTA": 0, "EstServiceParametersBE": "", "EstServiceParametersBK": "", "EstServiceParametersVI": "", "EstServiceParametersVO": "", "ByteCounterUnits": 0, "Profile1bSTAsDisallowed": false, "Profile2bSTAsDisallowed": false, "AssociationAllowanceStatus": 0, "FronthaulUse": false, "BackhaulUse": false, "R1disallowed": false, "R2disallowed": false, "MultiBSSID": false, "TransmittedBSSID": false, "FronthaulAKMsAllowed": [], "BackhaulAKMsAllowed": [] }] }] }] } } } <>: get_ssid OneWifiMesh { "Status": "Success", "Result": { "NetworkSSIDList": [{ "SSID": "private_ssid", "PassPhrase": "test-fronthaul", "Band": ["2.4", "5", "6"], "Enable": true, "AKMsAllowed": ["dpp"], "SuiteSelector": "", "AdvertisementEnabled": true, "MFPConfig": "Optional", "MobilityDomain": "00:01:02:03:04:05", "HaulType": ["Fronthaul"] }, { "SSID": "iot_ssid", "PassPhrase": "test-backhaul", "Band": ["2.4", "5", "6"], "Enable": true, "AKMsAllowed": ["dpp", "sae", "SuiteSe"], "SuiteSelector": "00010203", "AdvertisementEnabled": true, "MFPConfig": "Required", "MobilityDomain": "00:01:02:03:04:05", "HaulType": ["IoT"] }, { "SSID": "lnf_radius", "PassPhrase": "test-backhaul", "Band": ["2.4", "5", "6"], "Enable": true, "AKMsAllowed": ["dpp", "sae", "SuiteSe"], "SuiteSelector": "00010203", "AdvertisementEnabled": true, "MFPConfig": "Required", "MobilityDomain": "00:01:02:03:04:05", "HaulType": ["Configurator"] }, { "SSID": "mesh_backhaul", "PassPhrase": "test-backhaul", "Band": ["2.4", "5", "6"], "Enable": true, "AKMsAllowed": ["dpp", "sae", "SuiteSe"], "SuiteSelector": "00010203", "AdvertisementEnabled": true, "MFPConfig": "Required", "MobilityDomain": "00:01:02:03:04:05", "HaulType": ["Backhaul"] }] } } <>: #In a separate window(W4), run onewifi ashraf@raspberrypi:~/easymesh_project/OneWifi/install/bin $ sudo ./OneWifi -c grep: /nvram/wifi_defaults.txt: No such file or directory grep: /nvram/wifi_defaults.txt: No such file or directory bridge brlan0 does not exist! interface wlan1 does not exist! grep: /nvram/wifi_defaults.txt: No such file or directory grep: /nvram/wifi_defaults.txt: No such file or directory grep: /nvram/wifi_defaults.txt: No such file or directory #In a separate window(W5), run onewifi Agent ashraf@raspberrypi:~/easymesh_project/unified-wifi-mesh/install/bin $ sudo ./onewifi_em_agent input_listener:382 he_bus open success input_listener:390 recv data: { "Version": "1.0", "SubDocName": "dml", "WifiConfig": { "GASConfig": { "AdvertisementId": 0, "PauseForServerResp": true, "RespTimeout": 5000, "ComebackDelay": 1000, "RespBufferTime": 1000, "QueryRespLengthLimit": 127 }, "NotifyWifiChanges": false, "PreferPrivate": false, "PreferPrivateConfigure": false, "FactoryReset": false, "TxOverflowSelfheal": false, "InstWifiClientEnabled": false, "InstWifiClientReportingPeriod": 0, "InstWifiClientMac": "00:00:00:00:00:00", "InstWifiClientDefReportingPeriod": 0, "WifiActiveMsmtEnabled": false, "WifiActiveMsmtPktsize": 0, "WifiActiveMsmtNumSamples": 0, "WifiActiveMsmtSampleDuration": 0, "VlanCfgVersion": 0, "WpsPin": "", "BandsteeringEnable": false, "GoodRssiThreshold": 0, "AssocCountThreshold": 0, "AssocGateTime": 0, "WhixLoginterval": 0, "whix_chutility_loginterval": 0, "AssocMonitorDuration": 0, "RapidReconnectEnable": false, "VapStatsFeature": false, "MfpConfigFeature": false, "ForceDisableRadioFeature": false, "ForceDisableRadioStatus": false, "FixedWmmParams": 0, "WifiRegionCode": "", "DiagnosticEnable": false, "ValidateSsid": false, "DeviceNetworkMode": 0, "NormalizedRssiList": "", "SNRList": "", "CliStatList": "", "TxRxRateList": "" }, "WifiRadioConfig": [{ "WifiRadioSetup": { "RadioIndex": 0, "VapMap": [{ "VapName": "private_ssid_2g", "VapIndex": 0 }] }, "RadioName": "radio1", "Enabled": true, "FreqBand": 1, "AutoChannelEnabled": true, "Channel": 1, "NumSecondaryChannels": 0, "SecondaryChannelsList": " ", "ChannelWidth": 1, "HwMode": 12, "CsaBeaconCount": 100, "Country": "US", "RegDomain": 0, "OperatingEnvironment": "I", "DFSEnable": false, "DfsEnabledBootup": false, "ChannelAvailability": "1:1,2:1,3:1,4:1,5:1,6:1,7:1,8:1,9:1,10:1,11:1", "radarInfo": "last_channel:0,num_detected:0,time:0", "DcsEnabled": false, "DtimPeriod": 1, "OperatingClass": 81, "BasicDataTransmitRates": 656, "OperationalDataTransmitRates": 8112, "FragmentationThreshold": 2346, "GuardInterval": 16, "TransmitPower": 100, "BeaconInterval": 100, "RtsThreshold": 2347, "FactoryResetSsid": false, "RadioStatsMeasuringRate": 0, "RadioStatsMeasuringInterval": 0, "CtsProtection": false, "ObssCoex": true, "StbcEnable": true, "GreenFieldEnable": false, "UserControl": 0, "AdminControl": 0, "ChanUtilThreshold": 90, "ChanUtilSelfHealEnable": false, "EcoPowerDown": false, "Tscan": 0, "Nscan": 0, "Tidle": 0, "DfsTimer": 30, "RadarDetected": " ", "NumberOfOpClass": 3, "OperatingClasses": [{ "NumberOfNonOperChan": 2, "Class": 81, "MaxTxPower": -30, "NonOperable": [12, 13] }, { "NumberOfNonOperChan": 0, "Class": 83, "MaxTxPower": -30, "NonOperable": "[]" }, { "NumberOfNonOperChan": 2, "Class": 84, "MaxTxPower": -30, "NonOperable": [12, 13] }], "CurrentOperatingClasses": [{ "Class": 81, "Channel": 1 }] }], "DeviceInfo": { "Manufacturer": " Raspberry Pi 4 Model B Rev 1.5", "Model": " Raspberry Pi 4 Model B Rev 1.5", "SerialNo": " 100000004f5f3d57", "Software_version": "2ae30f53898ae2f1ba77ff570a92991bedfb0398", "CMMAC": "d8:3a:dd:27:41:ed", "AL1905-MAC": "d8:3a:dd:27:41:ed" }, "WiFiCap": { "WiFiRadioCap": [{ "RadioIndex": 0, "PossibleChannels": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "PossibleChannelWidths": [1, 2], "RadioPresence": 1 }], "WiFiVapCap": [{ "VapName": "private_ssid_2g", "PhyIndex": 0, "RadioIndex": 0, "InterfaceName": "wlan0", "BridgeName": "brlan0", "VLANID": 0, "Index": 0 }], "WiFiRadioInterfaceCap": [{ "PhyIndex": 0, "RadioIndex": 0, "InterfaceName": "wlan0" }] }, "WifiVapConfig": [{ "VapName": "private_ssid_2g", "BridgeName": "brlan0", "RepurposedVapName": "", "RadioIndex": 0, "VapMode": 0, "Exists": true, "SSID": "RPI_RDKB-AP0", "BSSID": "d8:3a:dd:27:41:ee", "Enabled": true, "SSIDAdvertisementEnabled": true, "IsolationEnable": false, "ManagementFramePowerControl": 0, "BssMaxNumSta": 75, "BSSTransitionActivated": true, "NeighborReportActivated": true, "NetworkGreyList": false, "RapidReconnCountEnable": true, "RapidReconnThreshold": 180, "VapStatsEnable": true, "MacFilterEnable": false, "MacFilterMode": 0, "WmmEnabled": true, "UapsdEnabled": true, "BeaconRate": 16, "WmmNoAck": 0, "WepKeyLength": 128, "BssHotspot": false, "WpsPushButton": 0, "WpsEnable": true, "WpsConfigMethodsEnabled": 128, "WpsConfigPin": "12345678", "BeaconRateCtl": "6Mbps", "Connected_building_enabled": false, "HostapMgtFrameCtrl": false, "MboEnabled": true, "Security": { "Mode": "WPA2-Personal", "MFPConfig": "Disabled", "EncryptionMethod": "AES", "Wpa3_transition_disable": false, "Passphrase": "12345678", "KeyId": "", "RekeyInterval": 0 }, "Interworking": { "InterworkingEnable": false, "AccessNetworkType": 0, "Internet": false, "ASRA": false, "ESR": false, "UESA": false, "HESSOptionPresent": true, "HESSID": "11:22:33:44:55:66", "Venue": { "VenueType": 0, "VenueGroup": 0 } } }], "WifiMacFilter": [{ "VapName": "private_ssid_2g", "MACFilterList": [] }] } translate_onewifi_dml_data:199 Dev-Init decode success print_config:1753:Network:d8:3a:dd:27:41:ed print_config:1754:Controller MAC:d8:3a:dd:27:41:ed Controller AL MAC:d8:3a:dd:27:41:ed Agent AL MAC:d8:3a:dd:27:41:ed print_config:1756:Manufacturer: Raspberry Pi 4 Model B Rev 1.5 Manufacturere Model: Raspberry Pi 4 Model B Rev 1.5 SoftwareVersion:2ae30f53898ae2f1testEnv70a92991bedfb0398 print_config:1766: OpClass[0] id.ruid: d8:3a:dd:27:41:ee id.type: 2 id.index: 81 Channel : 0 Op_class : 81 num_channel : 2 print_config:1766: OpClass[1] id.ruid: d8:3a:dd:27:41:ee id.type: 2 id.index: 83 Channel : 0 Op_class : 83 num_channel : 0 print_config:1766: OpClass[2] id.ruid: d8:3a:dd:27:41:ee id.type: 2 id.index: 84 Channel : 0 Op_class : 84 num_channel : 2 print_config:1766: OpClass[3] id.ruid: d8:3a:dd:27:41:ee id.type: 1 id.index: 81 Channel : 1 Op_class : 81 num_channel : 0 print_config:1771:No of BSS=1 No of Radios=1 print_config:1774:Radio Mac : d8:3a:dd:27:41:ee BSSID : d8:3a:dd:27:41:ee print_config:1782:Radio Mac: d8:3a:dd:27:41:ee print_config:1783:Radio Band: 1 print_config:1784:TransmitPowerLimit: 0 execute:87: Waiting for client connection pre_process_orch_op:155: calling create node create_node:134: created entry for key:d8:3a:dd:27:41:ed pre_process_orch_op:166: AL node created commit_config:124 New Radio d8:3a:dd:27:41:ee configuration created no of radios=1 commit_config:149 New op class=81 commiting it commit_config:149 New op class=83 commiting it commit_config:149 New op class=84 commiting it commit_config:149 New op class=81 commiting it commit_config:157 Commit radio=d8:3a:dd:27:41:ee commit_config:174 New BSS d8:3a:dd:27:41:ee configuration updated no of bss=1 pre_process_orch_op:184: calling create_node freq_band=0 create_node:134: created entry for key:d8:3a:dd:27:41:ee send_result:138: write error on socket, err:88 handle_state_config_none:2872: autoconfig_search send successful Received resp and validated...creating M1 msg Op Class 0: 81, max_tx_eirp: -30, channels.num: 2 cap->op_classes[0].op_class: 81, cap->op_classes[0].max_tx_eirp 226, cap->op_classes[0].channels.num 2 Op Class 1: 83, max_tx_eirp: -30, channels.num: 0 cap->op_classes[1].op_class: 12, cap->op_classes[1].max_tx_eirp 13, cap->op_classes[1].channels.num 83 Op Class 2: 84, max_tx_eirp: -30, channels.num: 2 cap->op_classes[2].op_class: 226, cap->op_classes[2].max_tx_eirp 0, cap->op_classes[2].channels.num 84 find_em_for_msg_type:589: Found existing radio:d8:3a:dd:27:41:ee find_em_for_msg_type:589: Found existing radio:d8:3a:dd:27:41:ee handle_autoconfig_resp:2692: autoconfig wsc m1 send success handle_wsc_m2:2091: Parsing m1 message, len: 647 handle_autoconfig_wsc_m2:2262: Authenticator verification succeeded handle_encrypted_settings:2327: ssid attrib: private_ssid handle_encrypted_settings:2329: auth type attrib handle_encrypted_settings:2337: network key attrib: test-fronthaul handle_encrypted_settings:2340: mac address attrib: d8:3a:dd:27:41:ee handle_encrypted_settings:2343: key wrap auth attrib handle_encrypted_settings:2351 Recived new config ssid=private_ssid mode=16 pass=test-fronthaul execute:96: Connection accepted from client execute:87: Waiting for client connection analyze_m2ctrl_configuration:237 New configuration SSID=private_ssid Security mode=16 passphrase=test-fronthaul radiomac= analyze_m2ctrl_configuration:253 Private subdoc encode success { "Version": "1.0", "SubDocName": "Vap_2.4G", "Primary MacAddress": "d8:3a:dd:27:41:ee", "WifiVapConfig": [{ "VapName": "private_ssid_2g", "BridgeName": "brlan0", "RepurposedVapName": "", "RadioIndex": 0, "VapMode": 0, "Exists": true, "SSID": "private_ssid", "BSSID": "d8:3a:dd:27:41:ee", "Enabled": true, "SSIDAdvertisementEnabled": true, "IsolationEnable": false, "ManagementFramePowerControl": 0, "BssMaxNumSta": 75, "BSSTransitionActivated": true, "NeighborReportActivated": true, "NetworkGreyList": false, "RapidReconnCountEnable": true, "RapidReconnThreshold": 180, "VapStatsEnable": true, "MacFilterEnable": false, "MacFilterMode": 0, "WmmEnabled": true, "UapsdEnabled": true, "BeaconRate": 16, "WmmNoAck": 0, "WepKeyLength": 128, "BssHotspot": false, "WpsPushButton": 0, "WpsEnable": true, "WpsConfigMethodsEnabled": 128, "WpsConfigPin": "12345678", "BeaconRateCtl": "6Mbps", "Connected_building_enabled": false, "HostapMgtFrameCtrl": false, "MboEnabled": true, "Security": { "Mode": "WPA2-Personal", "MFPConfig": "Disabled", "EncryptionMethod": "AES", "Wpa3_transition_disable": false, "Passphrase": "test-fronthaul", "KeyId": "", "RekeyInterval": 0 }, "Interworking": { "InterworkingEnable": false, "AccessNetworkType": 0, "Internet": false, "ASRA": false, "ESR": false, "UESA": false, "HESSOptionPresent": true, "HESSID": "11:22:33:44:55:66", "Venue": { "VenueType": 0, "VenueGroup": 0 } } }] } analyze_m2ctrl_configuration:265 private subdoc send successfull onewifi_cb:466Recv data from onewifi: { "Version": "1.0", "SubDocName": "Vap_2.4G", "Primary MacAddress": "d8:3a:dd:27:41:ee", "WifiVapConfig": [{ "VapName": "private_ssid_2g", "BridgeName": "brlan0", "RepurposedVapName": "", "RadioIndex": 0, "VapMode": 0, "Exists": true, "SSID": "private_ssid", "BSSID": "d8:3a:dd:27:41:ee", "Enabled": true, "SSIDAdvertisementEnabled": true, "IsolationEnable": false, "ManagementFramePowerControl": 0, "BssMaxNumSta": 75, "BSSTransitionActivated": true, "NeighborReportActivated": true, "NetworkGreyList": false, "RapidReconnCountEnable": true, "RapidReconnThreshold": 180, "VapStatsEnable": true, "MacFilterEnable": false, "MacFilterMode": 0, "WmmEnabled": true, "UapsdEnabled": true, "BeaconRate": 16, "WmmNoAck": 0, "WepKeyLength": 128, "BssHotspot": false, "WpsPushButton": 0, "WpsEnable": true, "WpsConfigMethodsEnabled": 128, "WpsConfigPin": "12345678", "BeaconRateCtl": "6Mbps", "Connected_building_enabled": false, "HostapMgtFrameCtrl": false, "MboEnabled": true, "Security": { "Mode": "WPA2-Personal", "MFPConfig": "Disabled", "EncryptionMethod": "AES", "Wpa3_transition_disable": false, "Passphrase": "test-fronthaul", "KeyId": "", "RekeyInterval": 0 }, "Interworking": { "InterworkingEnable": false, "AccessNetworkType": 0, "Internet": false, "ASRA": false, "ESR": false, "UESA": false, "HESSOptionPresent": true, "HESSID": "11:22:33:44:55:66", "Venue": { "VenueType": 0, "VenueGroup": 0 } } }] } onewifi_cb:475 Found SubDocName: private analyze_onewifi_private_cb:295 Private subdoc decode success em candidates created for em_cmd_type_onewifi_cb submitted command for orchestration send_topology_response_msg:681: Testing topo, number of radios: 1, bss: 1 first tlv_len in em_configuration_t::create_operational_bss_tlv = 1 bss->ssid=private_ssid print_ap_operational_bss_tlv:837 Number of radios: 1 print_ap_operational_bss_tlv:840: Radio: d8:3a:dd:27:41:ee print_ap_operational_bss_tlv:843 Number of bss: 1 print_ap_operational_bss_tlv:846: BSS:d8:3a:dd:27:41:ee SSID:private_ssid, SSID Length: 13 send_topology_response_msg:786: Testing topo, frame length: 209 setting state to em_state_agent_topo_synchronized find_em_for_msg_type:619: Received channel preference query recv, found existing radio:d8:3a:dd:27:41:ee execute:96: Connection accepted from client execute:87: Waiting for client connection build_candidates:343 em_cmd_type_channel_pref_query build candidate MAC=d8:3a:dd:27:41:ee handle_channel_pref_query:149 send success find_em_for_msg_type:630:Received channel preference report find_em_for_msg_type:630:Received channel preference report send_channel_pref_report_msg:962: Channel Preference Report send success process_state:1290 channel_pref_report_msg send find_em_for_msg_type:642: Received em_msg_type_channel_sel_req, found existing radio:d8:3a:dd:27:41:ee handle_channel_pref_tlv:1135 Received channel selection request op_class=81 handle_channel_sel_req:1207 Received channel selection request execute:96: Connection accepted from client execute:87: Waiting for client connection find_em_for_msg_type:651: Received em_msg_type_channel_sel_resp analyze_channel_sel_req:448 No of opclass=1 analyze_channel_sel_req:514 Radio subdoc encode success { "Version": "1.0", "SubDocName": "radio_2.4G", "WifiRadioConfig": [{ "WifiRadioSetup": { "RadioIndex": 0, "VapMap": [{ "VapName": "private_ssid_2g", "VapIndex": 0 }] }, "RadioName": "radio1", "Enabled": true, "FreqBand": 1, "AutoChannelEnabled": true, "Channel": 6, "NumSecondaryChannels": 0, "SecondaryChannelsList": " ", "ChannelWidth": 1, "HwMode": 12, "CsaBeaconCount": 100, "Country": "US", "RegDomain": 0, "OperatingEnvironment": "I", "DFSEnable": false, "DfsEnabledBootup": false, "ChannelAvailability": "1:1,2:1,3:1,4:1,5:1,6:1,7:1,8:1,9:1,10:1,11:1", "radarInfo": "last_channel:0,num_detected:0,time:0", "DcsEnabled": false, "DtimPeriod": 1, "OperatingClass": 81, "BasicDataTransmitRates": 656, "OperationalDataTransmitRates": 8112, "FragmentationThreshold": 2346, "GuardInterval": 16, "TransmitPower": 100, "BeaconInterval": 100, "RtsThreshold": 2347, "FactoryResetSsid": false, "RadioStatsMeasuringRate": 0, "RadioStatsMeasuringInterval": 0, "CtsProtection": false, "ObssCoex": true, "StbcEnable": true, "GreenFieldEnable": false, "UserControl": 0, "AdminControl": 0, "ChanUtilThreshold": 90, "ChanUtilSelfHealEnable": false, "EcoPowerDown": false, "Tscan": 0, "Nscan": 0, "Tidle": 0, "DfsTimer": 30, ]]>



 OpenWrt Platform

[ToDo]



RDK Platform

Flashing

This section outlines two methods for flashing: Flashing using bmaptool (flashing steps in a Linux environment) and using balenaEtcher App (flashing in Windows).

Flashing using bmaptool
bashRDarksudo -E bmaptool copy --nobmap Example:$ bzip2 -d rdk-generic-broadband-image-raspberrypi-rdk-broadband.wic.bz2$ sudo -E bmaptool copy --nobmap rdk-generic-broadband-image-raspberrypi-rdk-broadband.wic /dev/sdb ]]>
 Flashing using BalenaEtcher

To flash the image on an SD card in Windows, you will need to download the BalenaEtcher application: https://www.balena.io/etcher/.
*Note: Prefer to use a 32GB SD card, and there should be a minimum of 12GB of free space available in the device. Be sure to remove all other portable flash drives/hard drives/SD cards from your computer before flashing the RDK image.

  • Open the application.
  • Select the image.
  • Select the drive containing your SD card.
  • Click “Flash” to copy the image onto the SD card.

Install SD Card and Connect Your Device

  • Insert the SD card into the microSD card slot on the underside of Raspberry Pi and connect all the devices.
  • Plug the USB power supply into a socket and connect it to your Raspberry Pi’s power port. A red LED light indicates that the Raspberry Pi is connected to power and is booting.
  • Type “root” when the login prompt is displayed
  • Run following in the terminal to know IP address
    • $ ifconfig
  • ssh to the rpi using ip address: ssh root@<Raspberry Pi's ip address>

Validate Onewifi

bashRDark

ifconfig

bashRDark Bcast:192.168.101.255 Mask:255.255.255.0 inet6 addr: fe80::1817:c0ff:fec5:42a7/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:11 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:1034 (1.0 KiB) wlan0 Link encap:Ethernet HWaddr inet6 addr: fe80::da3a:ddff:fee4:3657/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:11 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:1186 (1.1 KiB) root@RaspberryPi-Gateway:~# ]]>

Version.txt

bashRDark

Check for WiFi database

bashRDark

OneWiFi status

bashRDark

All process status

bashRDark

OneWifi related DataModel

bashRDark

cat /rdklogs/logs

bashRDark

Core file:-

Should not observe onewifi core files in tmp folder.

bashRDark

WiFi tick mark , SSID, password,   channel, ssid advertisement, bandwidth, security mode in RDKB webui

Edit Wifi configuration like SSID,

 

password,

 

channel, ssid advertisement, bandwidth and security mode in webui

 On

 On reboot, changed data should be persisted

bashRDark

On Factory reset of wifi, all default values to be

restored 

restored 

bashRDark

 Uptime:

bashRDark