RDK Resources
[*RDK Preferred*]
Code Management Facility
RDK Forums
[RDK Conferences]
RDK Support
Archives
Papers & Presentations Archive
...
Code Block | ||||
---|---|---|---|---|
| ||||
root@Filogic-GW:/usr/ccsp/EasyMesh# onewifi_em_ctrl bpi@root connect:169: user:bpi pass:root load_tables:1558: data base empty ... needs reset init:1958: Load operation failed, err: dm_orch_type_unknown data_model_init:541: data model init failed mgr_input_listen:290 Thread stack size = 8388608 bytes execute:56: Controller communication path: /tmp/onewifi_mesh_ctrl mgr_nodes_listen:422 Thread stack size = 8388608 bytes |
10. To reset database, start Start onewifi_em_cli (CLI) in a new tab.
Reset database like below.
Panel | ||||||
---|---|---|---|---|---|---|
| ||||||
/usr/ccsp/EasyMesh# onewifi_em_cli bpi → In the cli use "Tab" to move between Update, Apply and Cancel button in the cli, use keys "j" and "k" to scroll up and down |
CLI screenshots given below.
Change colocatedAgentID mac addr to interface Change colocatedAgentID with brlan0 MAC address which needs to be treated as AL MAC
CLI screenshots given below.
11. Once AL MAC is set with brlan0 MAC address, check the ctrl prompt whether for 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
Run local Agent with below cmd, (this step is not mandatory)
systemctl start em_agent
Logs will be available in /tmp/em_agent.log
Note - Initially, Agent and ctrl process are not sync . Need to do restart the em process for 1st time alone .
systemctl restart em_ctrl
systemctl restart em_agent
...
.
Sample log from EM-Controller
Code Block | ||
---|---|---|
| ||
root@Filogic-GW:/usr/ccsp/EasyMesh# onewifi_em_ctrl bpi@root
connect:169: user:bpi pass:root
load_tables:1558: data base empty ... needs reset
init:1958: Load operation failed, err: dm_orch_type_unknown
data_model_init:541: data model init failed
mgr_input_listen:290 Thread stack size = 8388608 bytes
execute:56: Controller communication path: /tmp/onewifi_mesh_ctrl
mgr_nodes_listen:422 Thread stack size = 8388608 bytes
pre_process_orch_op:342: Deleting all data models
dm_network_list_t:update_db:167: Operation: dm_orch_type_db_insert
create_data_model:1502: Created data model for net_id: OneWifiMesh mac: a2:f0:d1:69:f5:ae, coloc:1
create_data_model:1522: Number of policies: 6
create_data_model:1539: Putting data model at key: OneWifiMesh@a2:f0:d1:69:f5:ae
start_complete:847 Collocated agent ID: a2:f0:d1:69:f5:ae publish fail
init_network_topology:1925: Root: a2:f0:d1:69:f5:ae added to network topology
update_tables:1721: Op Class[0] ruid: a2:f0:d1:69:f5:ae Type: 7 Class: 81
update_tables:1721: Op Class[1] ruid: a2:f0:d1:69:f5:ae Type: 7 Class: 115
update_tables:1721: Op Class[2] ruid: a2:f0:d1:69:f5:ae Type: 7 Class: 135
update_tables:1721: Op Class[3] ruid: a2:f0:d1:69:f5:ae Type: 8 Class: 81
update_tables:1721: Op Class[4] ruid: a2:f0:d1:69:f5:ae Type: 8 Class: 115
update_tables:1721: Op Class[5] ruid: a2:f0:d1:69:f5:ae Type: 8 Class: 135
analyze_config_renew:98: Radio: 00:00:00:00:00:00
../../../git/src/ctrl/../../src/dm/dm_network_ssid.cpp:205:85: runtime error: load of value 50462976, which is not a valid value for type 'em_haul_type_t'
../../../git/src/ctrl/../../src/dm/dm_network_ssid.cpp:200:71: runtime error: load of value 48, which is not a valid value for type 'bool' |
Screenshot from database: Respective rows are updated in db
12. Run local Agent manually with below command in new tab.
Code Block | ||
---|---|---|
| ||
cd /usr/ccsp/EasyMesh/
onewifi_em_agent |
Workaround: Initially, EM-Agent and EM-Contrller processes will not be in sync . Need to do restart the both EM-Agent and EM-Controller processes for 1st time alone.
Code Block | ||
---|---|---|
| ||
killall onewifi_em_agent
killall onewifi_em_ctrl |
Re-run EM-Controller in controller tab.
Re-run EM-Agent in Agent tab.
Observation in EM-Contrller device side:
Prerequisites - One Time Process
...