User Manual

Table Of Contents
204
CATC MERLINS WAND 1.22 APPENDIX C
Users Manual Merlin’s Wand Scripting Commands
Return value
“Success”
“Failure”
“Invalid parameter”
Comments
Instructs the Host Controller to send only certain types of events to the
Host.
Examples
# Clear All Filters
result = HCISetEventFilter(0);
Trace("Result of clearing all filters: ", result, "\n");
# Inquiry Result
result = HCISetEventFilter(1, 2,
[0xA,0x1,0x24,0x12,0xFB,0xAA]);
Trace("Result of Inquiry Result filter: ", result, "\n");
# Connection Setup
result = HCISetEventFilter(2, 0, [0x1]);
Trace("Result of Connection Setup filter: ", result, "\n");
HCISniffMode()
HCISniffMode(Address, MaxInterval, MinInterval, Attempt,
Timeout)
Condition Details of the
filter to be set.
Must be entered as a series of bytes within brack-
ets, e.g., [0x1, 0x12, 0x0F]. Byte values must be
entered in hex notation separated by commas.
Parameter Meaning Default Value Comments
Address Bluetooth
address of
device in
question
MaxInterval Maximum
number of
0.625-msec
intervals
between sniff
periods.
Range is 0x0001 to 0xFFFF
(0.625 msec to 40.9 sec).
Parameter Meaning Default Value Comments