- commands
- #Login to MariaDB monitor
- #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, |