In HCITester tool, if highlight the command in Command Library
HCI_Set_Event_Filter
and the value Window shows the parameters:
Type: sc
Opcode: 0x0c05
Filter type: (0x02) Connection Setup
Result Filter Type: (0x00) All Devices
Auto Accept Flag: (0x03) Accept with role switch enabled
This command executed correctly.
But if put the same command in a script:
Send_HCI_Set_Event_Filter 0x0C05, 0x02, 0x00, 0x03
It returns error from execution:
ERROR - Invalid argument value "0x00"
then check the command library again:
In the value Window, the 3rd parameters has been changed to
BD Addess of the device: BD_ADDR
Was the command in script wrong? or any additional commands need to run together, this command was executed after TTInit-11.8.32.bts executed.
Thanks for reply.
Shengchu