34
Docklight V2.2 User Manual 07/2016 Copyright 2016 Flachmann und Heggelbacher GbR
Working with Docklight (Advanced)
Preconditions
·
Docklight is ready to run a test as described in
testing a serial device or a protocol
.
·
Flow Control Support is set to "Manual" in the
.
·
The Docklight project already contains one or several
, but there is
an additional requirement for changing RTS / DTR signals while sending.
Implementing RTS/DTR signal changes
For our example we assume that we are using a
, but uses the DTR signal instead of RTS for switching between
"transmit" and "receive" mode. We further assume there is already a "Test" Send
Sequence which looks like this in ASCII mode:
T | e | s | t
A) Modifying the existing Send Sequence
1.
Open the
2.
Switch the
Edit Mode
to
Decimal
. Our "Test" example looks like this in decimal
mode:
084 | 101 | 115 | 116
3.
Insert an RTS/DTR function character at the beginning: Press
F11
, or open the
context menu using the
right mouse button
and choose
Function character
'!' (RTS and DTR signals)
. The example sequence now reads:
! | 084 | 101 | 115 | 116
4.
Add the new RTS/DTR state as a decimal
example we need the DTR signal set to high. We choose "002" as the parameter
value, so the sequence is now:
! | 002 | 084 | 101 | 115 | 116
5.
Add a RTS/DTR function character at the end of the sequence, and use "000" as
parameter value to reset the DTR signal low. The sequence data is now:
! | 002 | 084 | 101 | 115 | 116 | ! | 000
6.
Click
OK
to confirm the changes
NOTE: To distinguish a '!' RTS/DTR function character from a exclamation mark ASCII
character (decimal code 33), the RTS/DTR function character is shown on a different
background color by the sequence editor.
NOTE: The character after a RTS/DTR function character is used to set the RTS / DTR
signals and is not sent to the serial device (see parameter values below).
B) Sending the data with additional DTR control
1.
Send the test sequence using the
Send
button.
Docklight will now set the DTR signal to high, send the ASCII sequence "Test" and then
reset DTR.
NOTE: The RTS/DTR indicators will indicate any changes of the RTS or DTR state.
However, in the above example the DTR is set and reset very quickly, so the DTR
indicator will probably not give any visual feedback. If you want to actually "see" the DTR
behavior, try introducing a small
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...