mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
test/fix bug refresh cache after connect
This commit is contained in:
parent
822dac5659
commit
0b447f0003
@ -355,11 +355,11 @@ initial condition:
|
|||||||
- - R SSC2 C +BLEADV:OK
|
- - R SSC2 C +BLEADV:OK
|
||||||
- - SSC SSC2 gatts -S -z load -p 0xA0
|
- - SSC SSC2 gatts -S -z load -p 0xA0
|
||||||
- - R SSC2 C +GATTS:StartService,OK,A000
|
- - R SSC2 C +GATTS:StartService,OK,A000
|
||||||
|
- - SSC SSC1 gattc -F -r <dut2_bt_mac>
|
||||||
|
- - R SSC1 C +GATTC:OK
|
||||||
- - SSC SSC1 bleconn -C -p 0x10 -a <dut2_bt_mac>
|
- - SSC SSC1 bleconn -C -p 0x10 -a <dut2_bt_mac>
|
||||||
- - R SSC1 C +BLE:GattcConnect,OK
|
- - R SSC1 C +BLE:GattcConnect,OK
|
||||||
- P SSC2 C +BLE:GattsConnect
|
- P SSC2 C +BLE:GattsConnect
|
||||||
- - SSC SSC1 gattc -F -r <dut2_bt_mac>
|
|
||||||
- - R SSC1 C +GATTC:OK
|
|
||||||
force restore cmd set:
|
force restore cmd set:
|
||||||
- ''
|
- ''
|
||||||
- - SSC SSC[1-2] reboot
|
- - SSC SSC[1-2] reboot
|
||||||
@ -383,11 +383,11 @@ initial condition:
|
|||||||
- - R SSC2 C +BLEADV:OK
|
- - R SSC2 C +BLEADV:OK
|
||||||
- - SSC SSC2 gatts -S -z load -p 0xA0
|
- - SSC SSC2 gatts -S -z load -p 0xA0
|
||||||
- - R SSC2 C +GATTS:StartService,OK,A000
|
- - R SSC2 C +GATTS:StartService,OK,A000
|
||||||
|
- - SSC SSC1 gattc -F -r <dut2_bt_mac>
|
||||||
|
- - R SSC1 C +GATTC:OK
|
||||||
- - SSC SSC1 bleconn -C -p 0x10 -a <dut2_bt_mac>
|
- - SSC SSC1 bleconn -C -p 0x10 -a <dut2_bt_mac>
|
||||||
- - R SSC1 C +BLE:GattcConnect,OK
|
- - R SSC1 C +BLE:GattcConnect,OK
|
||||||
- P SSC2 C +BLE:GattsConnect
|
- P SSC2 C +BLE:GattsConnect
|
||||||
- - SSC SSC1 gattc -F -r <dut2_bt_mac>
|
|
||||||
- - R SSC1 C +GATTC:OK
|
|
||||||
restore post cmd set:
|
restore post cmd set:
|
||||||
- ''
|
- ''
|
||||||
- - SSC SSC1 ram
|
- - SSC SSC1 ram
|
||||||
@ -425,11 +425,11 @@ initial condition:
|
|||||||
- - R SSC2 C +BLEADV:OK
|
- - R SSC2 C +BLEADV:OK
|
||||||
- - SSC SSC2 gatts -S -z load -p 0xA2
|
- - SSC SSC2 gatts -S -z load -p 0xA2
|
||||||
- - R SSC2 C +GATTS:StartService,OK,A002
|
- - R SSC2 C +GATTS:StartService,OK,A002
|
||||||
|
- - SSC SSC1 gattc -F -r <dut2_bt_mac>
|
||||||
|
- - R SSC1 C +GATTC:OK
|
||||||
- - SSC SSC1 bleconn -C -p 0x10 -a <dut2_bt_mac>
|
- - SSC SSC1 bleconn -C -p 0x10 -a <dut2_bt_mac>
|
||||||
- - R SSC1 C +BLE:GattcConnect,OK
|
- - R SSC1 C +BLE:GattcConnect,OK
|
||||||
- P SSC2 C +BLE:GattsConnect
|
- P SSC2 C +BLE:GattsConnect
|
||||||
- - SSC SSC1 gattc -F -r <dut2_bt_mac>
|
|
||||||
- - R SSC1 C +GATTC:OK
|
|
||||||
force restore cmd set:
|
force restore cmd set:
|
||||||
- ''
|
- ''
|
||||||
- - SSC SSC[1-2] reboot
|
- - SSC SSC[1-2] reboot
|
||||||
@ -453,11 +453,11 @@ initial condition:
|
|||||||
- - R SSC2 C +BLEADV:OK
|
- - R SSC2 C +BLEADV:OK
|
||||||
- - SSC SSC2 gatts -S -z load -p 0xA2
|
- - SSC SSC2 gatts -S -z load -p 0xA2
|
||||||
- - R SSC2 C +GATTS:StartService,OK,A002
|
- - R SSC2 C +GATTS:StartService,OK,A002
|
||||||
|
- - SSC SSC1 gattc -F -r <dut2_bt_mac>
|
||||||
|
- - R SSC1 C +GATTC:OK
|
||||||
- - SSC SSC1 bleconn -C -p 0x10 -a <dut2_bt_mac>
|
- - SSC SSC1 bleconn -C -p 0x10 -a <dut2_bt_mac>
|
||||||
- - R SSC1 C +BLE:GattcConnect,OK
|
- - R SSC1 C +BLE:GattcConnect,OK
|
||||||
- P SSC2 C +BLE:GattsConnect
|
- P SSC2 C +BLE:GattsConnect
|
||||||
- - SSC SSC1 gattc -F -r <dut2_bt_mac>
|
|
||||||
- - R SSC1 C +GATTC:OK
|
|
||||||
restore post cmd set:
|
restore post cmd set:
|
||||||
- ''
|
- ''
|
||||||
- - SSC SSC1 ram
|
- - SSC SSC1 ram
|
||||||
@ -495,13 +495,13 @@ initial condition:
|
|||||||
- - R SSC2 C +BLEADV:OK
|
- - R SSC2 C +BLEADV:OK
|
||||||
- - SSC SSC[1-2] gatts -S -z load -p 0xA2
|
- - SSC SSC[1-2] gatts -S -z load -p 0xA2
|
||||||
- - R SSC[1-2] C +GATTS:StartService,OK,A002
|
- - R SSC[1-2] C +GATTS:StartService,OK,A002
|
||||||
|
- - SSC SSC[1-2] gattc -F -r <dut[2,1]_bt_mac>
|
||||||
|
- - R SSC[1-2] C +GATTC:OK
|
||||||
- - SSC SSC1 bleconn -C -p 0x10 -a <dut2_bt_mac>
|
- - SSC SSC1 bleconn -C -p 0x10 -a <dut2_bt_mac>
|
||||||
- - R SSC1 C +BLE:GattcConnect,OK
|
- - R SSC1 C +BLE:GattcConnect,OK
|
||||||
- P SSC2 C +BLE:GattsConnect
|
- P SSC2 C +BLE:GattsConnect
|
||||||
- - SSC SSC2 bleconn -C -p 0x10 -a <dut1_bt_mac>
|
- - SSC SSC2 bleconn -C -p 0x10 -a <dut1_bt_mac>
|
||||||
- - R SSC2 C +BLE:GattcOpen,OK
|
- - R SSC2 C +BLE:GattcOpen,OK
|
||||||
- - SSC SSC[1-2] gattc -F -r <dut[2-1]_bt_mac>
|
|
||||||
- - R SSC[1-2] C +GATTC:OK
|
|
||||||
force restore cmd set:
|
force restore cmd set:
|
||||||
- ''
|
- ''
|
||||||
- - SSC SSC[1-2] reboot
|
- - SSC SSC[1-2] reboot
|
||||||
@ -525,13 +525,13 @@ initial condition:
|
|||||||
- - R SSC2 C +BLEADV:OK
|
- - R SSC2 C +BLEADV:OK
|
||||||
- - SSC SSC[1-2] gatts -S -z load -p 0xA2
|
- - SSC SSC[1-2] gatts -S -z load -p 0xA2
|
||||||
- - R SSC[1-2] C +GATTS:StartService,OK,A002
|
- - R SSC[1-2] C +GATTS:StartService,OK,A002
|
||||||
|
- - SSC SSC[1-2] gattc -F -r <dut[2,1]_bt_mac>
|
||||||
|
- - R SSC[1-2] C +GATTC:OK
|
||||||
- - SSC SSC1 bleconn -C -p 0x10 -a <dut2_bt_mac>
|
- - SSC SSC1 bleconn -C -p 0x10 -a <dut2_bt_mac>
|
||||||
- - R SSC1 C +BLE:GattcConnect,OK
|
- - R SSC1 C +BLE:GattcConnect,OK
|
||||||
- P SSC2 C +BLE:GattsConnect
|
- P SSC2 C +BLE:GattsConnect
|
||||||
- - SSC SSC2 bleconn -C -p 0x10 -a <dut1_bt_mac>
|
- - SSC SSC2 bleconn -C -p 0x10 -a <dut1_bt_mac>
|
||||||
- - R SSC2 C +BLE:GattcOpen,OK
|
- - R SSC2 C +BLE:GattcOpen,OK
|
||||||
- - SSC SSC[1-2] gattc -F -r <dut[2-1]_bt_mac>
|
|
||||||
- - R SSC[1-2] C +GATTC:OK
|
|
||||||
restore post cmd set:
|
restore post cmd set:
|
||||||
- ''
|
- ''
|
||||||
- - SSC SSC1 ram
|
- - SSC SSC1 ram
|
||||||
@ -565,6 +565,8 @@ initial condition:
|
|||||||
- - P SSC[2-5] C +BLEADV:Start,OK
|
- - P SSC[2-5] C +BLEADV:Start,OK
|
||||||
- - SSC SSC[2-5] gatts -S -z load -p 0xA2
|
- - SSC SSC[2-5] gatts -S -z load -p 0xA2
|
||||||
- - P SSC[2-5] C +GATTS:StartService,OK,A002
|
- - P SSC[2-5] C +GATTS:StartService,OK,A002
|
||||||
|
- - SSC SSC1 gattc -F -r <dut2_bt_mac>
|
||||||
|
- - R SSC1 C +GATTC:OK
|
||||||
- - LOOP 4 1 "[2,3,4,5]" "[2,3,4,5]" "[2,3,4,5]"
|
- - LOOP 4 1 "[2,3,4,5]" "[2,3,4,5]" "[2,3,4,5]"
|
||||||
- ''
|
- ''
|
||||||
- - SSC SSC1 bleconn -C -p 0x10 -a <dut{%d}_bt_mac>
|
- - SSC SSC1 bleconn -C -p 0x10 -a <dut{%d}_bt_mac>
|
||||||
@ -593,13 +595,13 @@ initial condition:
|
|||||||
- - P SSC[2-5] C +BLEADV:Start,OK
|
- - P SSC[2-5] C +BLEADV:Start,OK
|
||||||
- - SSC SSC[2-5] gatts -S -z load -p 0xA2
|
- - SSC SSC[2-5] gatts -S -z load -p 0xA2
|
||||||
- - P SSC[2-5] C +GATTS:StartService,OK,A002
|
- - P SSC[2-5] C +GATTS:StartService,OK,A002
|
||||||
|
- - SSC SSC1 gattc -F -r <dut2_bt_mac>
|
||||||
|
- - R SSC1 C +GATTC:OK
|
||||||
- - LOOP 4 1 "[2,3,4,5]" "[2,3,4,5]" "[2,3,4,5]"
|
- - LOOP 4 1 "[2,3,4,5]" "[2,3,4,5]" "[2,3,4,5]"
|
||||||
- ''
|
- ''
|
||||||
- - SSC SSC1 bleconn -C -p 0x10 -a <dut{%d}_bt_mac>
|
- - SSC SSC1 bleconn -C -p 0x10 -a <dut{%d}_bt_mac>
|
||||||
- - R SSC1 RE "\+BLE:GattcConnect,OK,0010,%%s"%%(<dut{%d}_bt_mac>)
|
- - R SSC1 RE "\+BLE:GattcConnect,OK,0010,%%s"%%(<dut{%d}_bt_mac>)
|
||||||
- P SSC{%d} C +BLE:GattsConnect
|
- P SSC{%d} C +BLE:GattsConnect
|
||||||
- - SSC SSC1 gattc -F -r <dut2_bt_mac>
|
|
||||||
- - R SSC1 C +GATTC:OK
|
|
||||||
restore post cmd set:
|
restore post cmd set:
|
||||||
- ''
|
- ''
|
||||||
- - SSC SSC1 ram
|
- - SSC SSC1 ram
|
||||||
@ -637,11 +639,11 @@ initial condition:
|
|||||||
- ''
|
- ''
|
||||||
- - SSC SSC1 bleadv -D -z start
|
- - SSC SSC1 bleadv -D -z start
|
||||||
- - P SSC1 C +BLEADV:Start,OK
|
- - P SSC1 C +BLEADV:Start,OK
|
||||||
|
- - SSC SSC[2-5] gattc -F -r <dut1_bt_mac>
|
||||||
|
- - R SSC[2-5] C +GATTC:OK
|
||||||
- - SSC SSC{%d} bleconn -C -p 0x10 -a <dut1_bt_mac>
|
- - SSC SSC{%d} bleconn -C -p 0x10 -a <dut1_bt_mac>
|
||||||
- - R SSC{%d} RE "\+BLE:GattcConnect,OK,0010,%%s"%%(<dut1_bt_mac>)
|
- - R SSC{%d} RE "\+BLE:GattcConnect,OK,0010,%%s"%%(<dut1_bt_mac>)
|
||||||
- P SSC1 C +BLE:GattsConnect
|
- P SSC1 C +BLE:GattsConnect
|
||||||
- - SSC SSC[2-5] gattc -F -r <dut1_bt_mac>
|
|
||||||
- - R SSC[2-5] C +GATTC:OK
|
|
||||||
force restore cmd set:
|
force restore cmd set:
|
||||||
- ''
|
- ''
|
||||||
- - SSC SSC[1-5] reboot
|
- - SSC SSC[1-5] reboot
|
||||||
@ -661,6 +663,8 @@ initial condition:
|
|||||||
- - R SSC[1-5] C +BLEADV:OK
|
- - R SSC[1-5] C +BLEADV:OK
|
||||||
- - SSC SSC1 gatts -S -z load -p 0xA2
|
- - SSC SSC1 gatts -S -z load -p 0xA2
|
||||||
- - R SSC1 C +GATTS:StartService,OK,A002
|
- - R SSC1 C +GATTS:StartService,OK,A002
|
||||||
|
- - SSC SSC[2-5] gattc -F -r <dut1_bt_mac>
|
||||||
|
- - R SSC[2-5] C +GATTC:OK
|
||||||
- - LOOP 4 2 "[2,3,4,5]" "[2,3,4,5]"
|
- - LOOP 4 2 "[2,3,4,5]" "[2,3,4,5]"
|
||||||
- ''
|
- ''
|
||||||
- - SSC SSC1 bleadv -D -z start
|
- - SSC SSC1 bleadv -D -z start
|
||||||
@ -668,8 +672,6 @@ initial condition:
|
|||||||
- - SSC SSC{%d} bleconn -C -p 0x10 -a <dut1_bt_mac>
|
- - SSC SSC{%d} bleconn -C -p 0x10 -a <dut1_bt_mac>
|
||||||
- - R SSC{%d} RE "\+BLE:GattcConnect,OK,0010,%%s"%%(<dut1_bt_mac>)
|
- - R SSC{%d} RE "\+BLE:GattcConnect,OK,0010,%%s"%%(<dut1_bt_mac>)
|
||||||
- P SSC1 C +BLE:GattsConnect
|
- P SSC1 C +BLE:GattsConnect
|
||||||
- - SSC SSC[2-5] gattc -F -r <dut1_bt_mac>
|
|
||||||
- - R SSC[2-5] C +GATTC:OK
|
|
||||||
restore post cmd set:
|
restore post cmd set:
|
||||||
- ''
|
- ''
|
||||||
- - SSC SSC1 ram
|
- - SSC SSC1 ram
|
||||||
@ -1045,6 +1047,8 @@ initial condition:
|
|||||||
- ["P SSC[2-5] C +GATTS:StartService,OK,A000"]
|
- ["P SSC[2-5] C +GATTS:StartService,OK,A000"]
|
||||||
- - SSC SSC[1-5] bleadv -D -z stop
|
- - SSC SSC[1-5] bleadv -D -z stop
|
||||||
- - R SSC[1-5] C +BLEADV:OK
|
- - R SSC[1-5] C +BLEADV:OK
|
||||||
|
- - SSC SSC1 gattc -F -r <dut2_bt_mac>
|
||||||
|
- - R SSC1 C +GATTC:OK
|
||||||
- - SSC SSC1 ram
|
- - SSC SSC1 ram
|
||||||
- - R SSC1 A <heap_size>:(\d+)
|
- - R SSC1 A <heap_size>:(\d+)
|
||||||
- tag: BLE_INIT_SMP
|
- tag: BLE_INIT_SMP
|
||||||
@ -1084,6 +1088,8 @@ initial condition:
|
|||||||
- - R SSC2 C +BLEADV:OK
|
- - R SSC2 C +BLEADV:OK
|
||||||
- - SSC SSC[1-2] blesmp -L -c [1,0]
|
- - SSC SSC[1-2] blesmp -L -c [1,0]
|
||||||
- - R SSC[1-2] C +BLESMP:OK
|
- - R SSC[1-2] C +BLESMP:OK
|
||||||
|
- - SSC SSC1 gattc -F -r <dut2_bt_mac>
|
||||||
|
- - R SSC1 C +GATTC:OK
|
||||||
- - SSC SSC1 ram
|
- - SSC SSC1 ram
|
||||||
- - R SSC1 A <heap_size>:(\d+)
|
- - R SSC1 A <heap_size>:(\d+)
|
||||||
restore post cmd set:
|
restore post cmd set:
|
||||||
@ -1111,6 +1117,8 @@ initial condition:
|
|||||||
- - R SSC2 C +BLEADV:OK
|
- - R SSC2 C +BLEADV:OK
|
||||||
- - SSC SSC[1-2] blesmp -L -c [1,0]
|
- - SSC SSC[1-2] blesmp -L -c [1,0]
|
||||||
- - R SSC[1-2] C +BLESMP:OK
|
- - R SSC[1-2] C +BLESMP:OK
|
||||||
|
- - SSC SSC1 gattc -F -r <dut2_bt_mac>
|
||||||
|
- - R SSC1 C +GATTC:OK
|
||||||
- - SSC SSC1 ram
|
- - SSC SSC1 ram
|
||||||
- - R SSC1 A <heap_size>:(\d+)
|
- - R SSC1 A <heap_size>:(\d+)
|
||||||
- tag: BLE_INIT_SMP5
|
- tag: BLE_INIT_SMP5
|
||||||
@ -1150,6 +1158,8 @@ initial condition:
|
|||||||
- - R SSC[2-5] C +BLEADV:OK
|
- - R SSC[2-5] C +BLEADV:OK
|
||||||
- - SSC SSC[1-5] blesmp -L -c [1,0]
|
- - SSC SSC[1-5] blesmp -L -c [1,0]
|
||||||
- - R SSC[1-5] C +BLESMP:OK
|
- - R SSC[1-5] C +BLESMP:OK
|
||||||
|
- - SSC SSC1 gattc -F -r <dut2_bt_mac>
|
||||||
|
- - R SSC1 C +GATTC:OK
|
||||||
restore post cmd set:
|
restore post cmd set:
|
||||||
- ''
|
- ''
|
||||||
- - SSC SSC[1-5] ble -R
|
- - SSC SSC[1-5] ble -R
|
||||||
@ -1175,6 +1185,8 @@ initial condition:
|
|||||||
# do wifi disconnect, to prevent wifi reconnect cause bad BLE performance
|
# do wifi disconnect, to prevent wifi reconnect cause bad BLE performance
|
||||||
- - SSC SSC[1-5] sta -D
|
- - SSC SSC[1-5] sta -D
|
||||||
- []
|
- []
|
||||||
|
- - SSC SSC1 gattc -F -r <dut2_bt_mac>
|
||||||
|
- - R SSC1 C +GATTC:OK
|
||||||
- - SSC SSC1 ram
|
- - SSC SSC1 ram
|
||||||
- - R SSC1 A <heap_size>:(\d+)
|
- - R SSC1 A <heap_size>:(\d+)
|
||||||
- tag: NOW1
|
- tag: NOW1
|
||||||
|
@ -304,6 +304,7 @@ test cases:
|
|||||||
initial condition: BLE_CONN3
|
initial condition: BLE_CONN3
|
||||||
cmd set:
|
cmd set:
|
||||||
- ""
|
- ""
|
||||||
|
- *primary_service_discovery
|
||||||
- - "SSC SSC2 gatts -V -c 0xC300 -p 0xA2 -z set -v 0x02"
|
- - "SSC SSC2 gatts -V -c 0xC300 -p 0xA2 -z set -v 0x02"
|
||||||
- ["R SSC2 C +GATTS:SetAttrVal,OK"]
|
- ["R SSC2 C +GATTS:SetAttrVal,OK"]
|
||||||
- - "SSC SSC1 gattc -R -z char -s 0xA002 -c 0xC300 -p 0x10"
|
- - "SSC SSC1 gattc -R -z char -s 0xA002 -c 0xC300 -p 0x10"
|
||||||
@ -499,6 +500,7 @@ test cases:
|
|||||||
initial condition: BLE_CONN3
|
initial condition: BLE_CONN3
|
||||||
cmd set:
|
cmd set:
|
||||||
- ""
|
- ""
|
||||||
|
- *primary_service_discovery
|
||||||
- - "SSC SSC2 gatts -V -c 0xC300 -d 0x2901 -p 0xA2 -z set -v 0x02"
|
- - "SSC SSC2 gatts -V -c 0xC300 -d 0x2901 -p 0xA2 -z set -v 0x02"
|
||||||
- ["R SSC2 C +GATTS:SetAttrVal,OK"]
|
- ["R SSC2 C +GATTS:SetAttrVal,OK"]
|
||||||
- - "SSC SSC1 gattc -R -z descriptor -s 0xA002 -c 0xC300 -d 0x2901 -p 0x10"
|
- - "SSC SSC1 gattc -R -z descriptor -s 0xA002 -c 0xC300 -d 0x2901 -p 0x10"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user