ieee802154: update radio state in test

This commit is contained in:
xiaqilin 2023-06-19 22:15:14 +08:00
parent 043893a49f
commit 6b1e3924af

View File

@ -129,17 +129,17 @@ def test_based_txrx(dut: Tuple[IdfDut, IdfDut]) -> None:
receive.expect('RX Start', timeout=10)
transmit.expect('ieee802154>', timeout=10)
transmit.write('tx -l 10')
transmit.expect('tx sfd done, Radio state: 3', timeout=10)
transmit.expect('tx sfd done, Radio state: 4', timeout=10)
transmit.expect('Tx Done 10 bytes', timeout=10)
transmit.expect('00 01 02 03 04 05 06 07', timeout=10)
transmit.expect('08 09 00 00 00 00 00 00', timeout=10)
receive.expect('rx sfd done, Radio state: 2', timeout=10)
receive.expect('rx sfd done, Radio state: 3', timeout=10)
receive.expect('Rx Done 10 bytes', timeout=10)
receive.expect('00 01 02 03 04 05 06 07', timeout=10)
receive.write('rx -r 0')
receive.expect('radio exit receive mode', timeout=10)
transmit.write('tx -l 10')
transmit.expect('tx sfd done, Radio state: 3', timeout=10)
transmit.expect('tx sfd done, Radio state: 4', timeout=10)
transmit.expect('Tx Done 10 bytes', timeout=10)
transmit.expect('00 01 02 03 04 05 06 07', timeout=10)
transmit.expect('08 09 00 00 00 00 00 00', timeout=10)
@ -344,13 +344,13 @@ def test_based_autoack(dut: Tuple[IdfDut, IdfDut]) -> None:
receive.expect('RX Start', timeout=10)
transmit.write('tx 0x20 0x88 0x00 0x0A 0x28 0xDB 0x6F 0xBC 0x94 0x5A 0x43 0x68 0x02 0xaa 0x15 0x30 0x01 0x02')
transmit.expect('tx sfd done, Radio state: 3', timeout=10)
transmit.expect('rx sfd done, Radio state: 3', timeout=10)
transmit.expect('tx sfd done, Radio state: 4', timeout=10)
transmit.expect('rx sfd done, Radio state: 4', timeout=10)
transmit.expect('Tx Done 18 bytes', timeout=10)
transmit.expect('20 88 00 0a 28 db 6f bc', timeout=10)
transmit.expect('94 5a 43 68 02 aa 15 30', timeout=10)
receive.expect('rx sfd done, Radio state: 2', timeout=10)
receive.expect('rx sfd done, Radio state: 3', timeout=10)
receive.expect('Rx Done 18 bytes', timeout=10)
receive.expect('20 88 00 0a 28 db 6f bc', timeout=10)
receive.expect('94 5a 43 68 02 aa 15 30', timeout=10)
@ -573,7 +573,7 @@ def test_based_transmit_failed(dut: IdfDut) -> None:
transmit.write('tx -l 10 -C')
transmit.expect('the Frame Transmission failed, Failure reason: 1', timeout=10)
transmit.write('tx -l 10')
transmit.expect('tx sfd done, Radio state: 3', timeout=10)
transmit.expect('tx sfd done, Radio state: 4', timeout=10)
transmit.expect('Tx Done 10 bytes', timeout=10)
transmit.expect('00 01 02 03 04 05 06 07', timeout=10)
transmit.expect('08 09 00 00 00 00 00 00', timeout=10)