mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-24 04:43:36 +00:00
pts/sm_test: suppprt numeric comparison failed. SCJW tests complete
This commit is contained in:
parent
97a8d07355
commit
8493626b86
@ -271,7 +271,9 @@ static void app_packet_handler (uint8_t packet_type, uint16_t channel, uint8_t *
|
||||
break;
|
||||
case SM_EVENT_JUST_WORKS_REQUEST:
|
||||
printf("JUST_WORKS_REQUEST\n");
|
||||
// sm_just_works_confirm(little_endian_read_16(packet, 2));
|
||||
break;
|
||||
case SM_EVENT_NUMERIC_COMPARISON_REQUEST:
|
||||
printf("NUMERIC_COMPARISON_REQUEST\n");
|
||||
break;
|
||||
case SM_EVENT_PASSKEY_INPUT_NUMBER:
|
||||
// display number
|
||||
|
@ -57,8 +57,10 @@ SM/MAS/SCJW/BI-01-C/02,0,0,8,8,0,0,8
|
||||
SM/MAS/SCJW/BI-01-C/03,0,0,8,8,0,0,5
|
||||
SM/MAS/SCJW/BI-01-C/04,0,0,8,8,0,0,9
|
||||
|
||||
# TODO: tester responds with pairing failure during phase 2
|
||||
SM/MAS/SCJW/BI-01-C/05,0,0,8,8,0,0,12
|
||||
SM/MAS/SCJW/BI-01-C/05,1,1,12,12,0,0,12
|
||||
|
||||
# IO Cababilities + MITM -> Numeric Comparison -> Numeric Comparison Failed
|
||||
SM/MAS/SCJW/BI-01-C/05,1,1,12,12,0,0,12
|
||||
|
||||
# tester responds with pairing failure during phase 2
|
||||
SM/SLA/SCJW/BI-02-C,0,3,8,8,0,0,4
|
||||
|
|
@ -196,6 +196,14 @@ def run(test_descriptor, nodes):
|
||||
else:
|
||||
print('Accept bonding')
|
||||
node.write('a')
|
||||
elif line.startswith('NUMERIC_COMPARISON_REQUEST'):
|
||||
print('%s numeric comparison requested' % node.get_name())
|
||||
if node.get_name() == 'tester' and test_descriptor['tester_failure'] == '12':
|
||||
print('Decline bonding')
|
||||
node.write('d')
|
||||
else:
|
||||
print('Accept bonding')
|
||||
node.write('a')
|
||||
elif line.startswith('PASSKEY_DISPLAY_NUMBER'):
|
||||
passkey = line.split(': ')[1]
|
||||
print('%s passkey display %s' % (node.get_name(), passkey))
|
||||
|
Loading…
x
Reference in New Issue
Block a user