|
Testing a Serial Device or a Protocol Implementation |
|
|
Preconditions
Performing the test
A) Creating a new project Create a new Docklight project by selecting the menu File >
B) Setting the Communication Options
C) Defining the Send Sequences to be used You will probably test your serial device by sending specific sequences, according to the protocol used by the device, and observe the device's reaction. Perform the following steps to create your list of sequences:
Repeat steps 1 - 4 to define the other Send Sequences needed to perform your test.
D) Defining the Receive Sequences used If you want Docklight to react when receiving specific sequences, you have to define a list of Receive Sequences.
Answer - After receiving the sequence, transmit one of the Send Sequences. Comment - After receiving the sequence, insert a user-defined comment into the communication window (and log file, if available). Trigger - This is an advanced feature described in Catching a specific sequence... Stop - After receiving the sequence, Docklight stops communications.
Repeat steps 1 - 4 to define the other Receive Sequences you need to perform your test.
E) Storing the project Before running the actual test, it is recommended that the communication settings and sequences defined be stored. This is done using the menu File >
F) Running the test Start Docklight by choosing Run >
Docklight will open a serial connection according to the parameters specified. It will then display all incoming and outgoing communication in the communication window. Use the
TIP: Using the notepad window (F12 key / menu Tools > Show Notepad), you can easily take additional notes, or copy & paste parts of the communication log for further documentation. |