.MESH_INIT_COND: &MESH_INIT_COND test script: InitCondMesh restore post cmd set: - '' - - 'MSSC SSC[1-] ram' - ['P SSC[1-] C +FREEHEAP:'] # - - 'MSSC SSC[1-] mesh -Q -o 1' # - ['P SSC[1-] C MESH_NETWORK'] .mesh_get_all_dut_mac: &mesh_get_all_dut_mac LIST_MERGE: - - 'MSSC SSC[1-] mac' - ['R SSC[1-] A :\+STAMAC:(.+)\r\n'] .mesh_check_tree_num: &mesh_check_tree_num LIST_MERGE: - - 'MSSC SSC[1-] mesh -Q -o 2' - ['P SSC[1-] T topo'] - - 'MESHTREE' - ['R PC_COM RE "MESHTREE:%%s"%%()'] .mesh_tree_stably: &mesh_tree_stably LIST_MERGE: - - 'SSC MNODE(0) mesh -Q -o 1 -t ' - ['P MNODE(0) RE "MESH_NETWORK:1,%%s"%%()', 'P MNODE(0) C MESH_STABLE_CHECK:PASS'] .deinit_mesh: &deinit_mesh LIST_MERGE: - - 'MSSC SSC[1-] mesh -I -o 1' - ['P SSC[1-] C +MESH:DEINITED'] .mesh_force_reboot: &mesh_force_reboot LIST_MERGE: - - 'MSSC SSC[1-] restore' - ['P SSC[1-] C !!!ready!!!'] .mesh_config_all_duts: &mesh_config_all_duts LIST_MERGE: - - 'MSSC SSC[1-] meshset -M -o 0 -t -e -l 10' - ['P SSC[1-] C +MESHSET:MAP_AUTH,OK'] - - 'MSSC SSC[1-] meshset -G -o 0 -m -s -p -n -b -t -e -i ' - ['P SSC[1-] C +MESHSET:CFG,OK'] - - 'MSSC SSC[1-] meshset -L -o 0 -l ' - ['P SSC[1-] C +MESHSET:MLAYER,OK'] - - 'MSSC SSC[1-] meshset -W -o 0 -t -n -l -i -k ' - ['P SSC[1-] C +MESHSET:SWITCH,OK'] - - 'MSSC SSC[1-] meshset -K -o 0 -i ' - ['P SSC[1-] C +MESHSET:ALLOW_ROOTS,OK'] - - 'MSSC SSC[1-] meshset -J -o 0 -t ' - ['P SSC[1-] C +MESHSET:ASSOC,OK'] .mesh_set_same_ssid_softap: &mesh_set_same_ssid_softap LIST_MERGE: - - 'MSSC SSC[1-3] op -S -o 2' - ['P SSC[1-3] C +MODE:OK'] - - 'MSSC SSC[1-3] ap -S -s -p -t -n [,,]' - ['P SSC[1-3] C +SAP:OK'] initial condition: - tag: MESH_DEINIT_STA <<: *MESH_INIT_COND initial condition detail: all DUTs with mesh not inited, station mode check cmd set: - '' - - MSSC SSC[1-] mesh -Q - - P SSC[1-] C MESH_STATE_NONE - - MSSC SSC[1-] op -S -o 1 - - P SSC[1-] C +MODE:OK - *mesh_get_all_dut_mac restore cmd set: - '' - - MSSC SSC[1-] mesh -I -o 1 - - P SSC[1-] C +MESH_DEINITED - - MSSC SSC[1-] op -S -o 1 - - P SSC[1-] C +MODE:OK - *mesh_get_all_dut_mac force restore cmd set: - '' # - - MSSC SSC[1-] reboot - - FREBOOT SSC[1-] - - P SSC[1-] C !!!ready!!! - *mesh_get_all_dut_mac - tag: MESH_INIT1 <<: *MESH_INIT_COND initial condition detail: DUTs with mesh network already established, router.... check cmd set: - '' - *mesh_get_all_dut_mac - - VALUE - - R PC_COM L OK - *mesh_check_tree_num - *mesh_tree_stably - - MSSC SSC[1-] mesh -Q -o 3 - - P SSC[1-] RE "MID,%%s"%%() - P SSC[1-] RE "MROUTER,%%s"%%() - P SSC[1-] RE "SWITCH_PARENT,%%s"%%() - P SSC[1-] C NO_SPECIFIC_SETTINGS restore cmd set: - '' - - MSSC SSC[1-] mesh -I -o 1 - - P SSC[1-] C MESH_DEINITED - - MSSC SSC[1-] op -S -o 1 - - P SSC[1-] C +MODE:OK - *mesh_get_all_dut_mac - - MSSC SSC[1-] mesh -I - - P SSC[1-] C +MESH:INIT,OK - *mesh_config_all_duts - - MSSC SSC[1-] mesh -T - - P SSC[1-] C +MESH:START,OK - - DELAY - - '' - - VALUE - - R PC_COM L OK - *mesh_check_tree_num - *mesh_tree_stably force restore cmd set: - '' - - MSSC SSC[1-] reboot - - P SSC[1-] C !!!ready!!! - *mesh_get_all_dut_mac - - MSSC SSC[1-] mesh -I - - P SSC[1-] C +MESH:INIT,OK - *mesh_config_all_duts - - MSSC SSC[1-] mesh -T - - P SSC[1-] C +MESH:START,OK - - DELAY - - '' - - VALUE - - R PC_COM L OK - *mesh_check_tree_num - *mesh_tree_stably - tag: MESH_INIT_SWITCH <<: *MESH_INIT_COND initial condition detail: 3 duts in softAP mode with same ssid/password, all duts establish network check cmd set: - '' - - SSC SSC[1-3] ap -Q - - P SSC[1-3] RE "RE "APCONFIG:%%s"%%() - - MSSC SSC[4-] mac - - R SSC[4-] A :\+STAMAC:(.+)\r\n - - VALUE -3 - - R PC_COM L OK - - MSSC SSC[4-] mesh -Q -o 2 - - P SSC[4-] T topo - - MESHTREE - - R PC_COM RE "TREE_TOTAL_NODES:%%s"%%() - - MSSC SSC[4-] mesh -Q -o 3 - P SSC[4-] RE "MROUTER,%%s"%%() - - DELAY 5 - - P PC_COM C +DELAYDONE - P SSC[4-] NC MESH_EVENT_DISCONNECTED restore cmd set: - '' - - ASSERT - - '' force restore cmd set: - '' - - MSSC SSC[1-] reboot - - P SSC[1-] C !!!ready!!! - *mesh_get_all_dut_mac - *mesh_set_same_ssid_softap - - MSSC SSC[4-] mesh -I - - P SSC[4-] C +MESH:INIT,OK - - MSSC SSC[4-] meshset -M -o 0 -t -e -l 10 - - P SSC[4-] C +MESHSET:MAP_AUTH,OK - - MSSC SSC[4-] meshset -G -o 0 -m -s -p -n -h 1 -t -e -i - - P SSC[4-] C +MESHSET:CFG,OK - - MSSC SSC[4-] meshset -L -o 0 -l - - P SSC[4-] C +MESHSET:MLAYER,OK - - MSSC SSC[4-] meshset -W -o 0 -t -n -l -i -k - - P SSC[4-] C +MESHSET:SWITCH,OK - - MSSC SSC[4-] meshset -K -o 0 -i - - P SSC[4-] C +MESHSET:ALLOW_ROOTS,OK - - MSSC SSC[4-] mesh -T - - P SSC[4-] C +MESH:START,OK - - DELAY - - '' - - VALUE -3 - - R PC_COM L OK - - MSSC SSC[4-] mesh -Q -o 2 - - P SSC[4-] T topo - - MESHTREE - - R PC_COM RE "TREE_TOTAL_NODES:%%s"%%() - - DELAY 10 - - P PC_COM C +DELAYDONE - P SSC[4-] NC MESH_EVENT_DISCONNECTED - tag: MESH_NO_ROUTER <<: *MESH_INIT_COND initial condition detail: DUTs with mesh network already established, router.... check cmd set: - '' - *mesh_get_all_dut_mac - - VALUE - - R PC_COM L OK - *mesh_check_tree_num - *mesh_tree_stably - - MSSC SSC[1-] mesh -Q -o 3 - - P SSC[1-] RE "MID,%%s"%%() - P SSC[1-] C NO_ROUTER restore cmd set: - '' - - ASSERT - - '' force restore cmd set: - '' - - ASSERT - - '' - tag: MESH_STABLE <<: *MESH_INIT_COND initial condition detail: DUTs with mesh network already established and stable, never restore check cmd set: - '' - *mesh_get_all_dut_mac - - MSSC SSC[1-] mesh -Q -o 2 - - P SSC[1-] T topo - - MESHTREE stable - - P PC_COM RE "MESHTREE:%%s%20nodes"%%() restore cmd set: - '' - - ASSERT - - '' force restore cmd set: - '' - - ASSERT - - ''