TestIT:Configuration Serial Advanced

From Nolek Wiki
Jump to navigation Jump to search

6.3.12 Serial advanced

In serial advanced there is a communication with a serial port with advanced features.

Setup fields:

  1. Configuration
  2. Send/receive parameters
  3. Test device

Configuration:

  1. Write the device name and device description (required)
  2. Select if the device is active or not
  3. Select the following:
    1. Baud rates – Serial port parameter
    2. Data bit - Serial port parameter
    3. Parity - Serial port parameter
    4. Stop bit - Serial port parameter
    5. Com port – Will show all registered COM ports on the PC
    6. Send termination char – Where the char must send the communication
    7. Receive termination char - Where the char should receive the communication
    8. Send as – Text or byte array
    9. Send encoding – None or Char to Hex
    10. Send params – Number of sending parameters
    11. Receive delimiter – Which character to split the received text
    12. Receive params – Number of receiving parameters
    13. Receive as – Text or byte array
    14. Receive encoding – None or char to Hex
  4. Press Save

Send/receive parameters:

  • Send parameters – Symbol values to be sent to the COM port.
  • Receive parameters – Connect the received data from COM port together with symbols. Values will be separated by receive delimiter.

Test device:

There are two types of tests; a standard test and one where the use the command parameters is included. After the wanted tests, it is possible to clear the text, at the clear received text button. When the tests are finished, press Unlock config and Save.

To run a standard test:

  1. Press the test device tab
  2. Press Lock config to open the COM port
  3. Insert text in the command field to send.
    1. If byte array is selected in send as, use a space separated structure to fill the byte array. - E.g. “15 53 24 11 01”.
    2. If Char to Hex is selected in send encoding, the values will be encoded.
  4. Press Send and the received text will be shown in the read box.

To run a test including the use of command parameters:

  1. Press the test device tab
  2. Press Lock config to open the COM port
  3. Insert text in the command field to send.
    1. If byte array is selected in send as, use a space separated structure to fill the byte array. - E.g. “15 53 24 11 01”.
    2. If Char to Hex is selected in send encoding, the values will be encoded.
  4. Select “use command parameters”.
  5. Write the type in the criteria.
    1. If the result should be received, then write the same as in the command.
  6. Select the criteria type as in the command.
    1. None; Begins with; Contains.
  7. Press Send and the received text will be in evaluation.
  8. The command response will be the same response as the result of the command. This is based on the evaluation above.

6.3.12.1 Commands

Command in serial advanced is:

Find a code example and the parameters in the functions window, in section serial.