36
Docklight V2.2 User Manual 07/2016 Copyright 2016 Flachmann und Heggelbacher GbR
Working with Docklight (Advanced)
001
CTS = High
002
DSR = High
004
DCD = High
008
RI (Ring Indicator) = High
Example Receive Sequence definitions in Decimal Edit Mode:
Receive Sequence
(Decimal Mode)
Description
! | 001
triggers when CTS=high, all other signals low
! | 006
triggers when CTS=low, DSR=high, DCD=high, RI=low
! | ???
triggers on any change of the status lines
For the following example we assume that Docklight is ready to run a test as described
in
testing a serial device or a protocol implementation
and Flow Control Support is set to
"Manual" in the
.
A) Create a new Receive Sequence for detecting handshake signal changes.
1.
Open the
dialog.
2.
Switch the
Edit Mode
to
Decimal
.
3.
Insert a 'signals' function character at the beginning: Press
F11
, or open the context
menu using the
right mouse button
and choose
Function character '!' (CTS/
DSR/DCD/RI changes)
.
4.
Add the handshake state as a decimal
we want to detect when CTS is high, while all other signals are low. This means we
need to enter "001" as the parameter value, so the sequence is now:
! | 001
5.
Specifiy a
Comment
for this sequence, e.g. "[CTS = high, DSR/DCD/RI = low]"
6.
Click
OK
to confirm the new sequence
B) Start the test and confirm that Docklight now detects when the CTS line changes
from low to high.
Function character '^' (F12) - bitwise comparisons
The Function Character '^' can be added by pressing
F12
in the
dialog. After the ‘^’ character, two additional character values specify which bits to check
(
mask
) and which values to expect for these bits (
value
).
Receive Sequence
(HEX Mode)
Description
^ |
mask
|
value
Is a match for the next character received, when the following is
true:
((
nextCharacterReceived
XOR
value
) AND
mask
) = 0
In other words - the ‘^’ character picks only the bits marked in
mask
and compares them with the corresponding bits in
value
.
See below for examples.
^ | 0F | 05
Is a match, when for the next character the following is true:
Bit 0 = 1
Bit 1 = 0
Summary of Contents for Docklight V2.2
Page 1: ...Docklight V2 2 User Manual 07 2016 Copyright 2016 Flachmann und Heggelbacher GbR...
Page 5: ...Copyright...
Page 7: ...Introduction...
Page 11: ...User Interface...
Page 14: ...Features and Functions...
Page 17: ...Working with Docklight...
Page 28: ...Working with Docklight Advanced...
Page 41: ...Examples and Tutorials...
Page 46: ...Reference...
Page 62: ...Support...
Page 64: ...Appendix...
Page 76: ...76 Docklight V2 2 User Manual 07 2016 Copyright 2016 Flachmann und Heggelbacher GbR Appendix...
Page 77: ...Glossary Terms Used...