|
Dialog: Project Settings - Communication |
|
|
Menu Tools >
Communication Mode
Send/Receive Docklight acts both as transmitter and receiver of serial data. This mode is used when Testing the functionality or the protocol implementation of a serial device or simulating a serial device. Naming conventions: The received data (RX) will be displayed and processed as "Channel 1", the transmitted data (TX) will be displayed as "Channel 2".
Monitoring Docklight receives serial data on two different communication channels. This mode is used, for example, when Monitoring the communication between two devices. Naming conventions: The serial data from device 1 is "Channel 1", the data from device 2 is "Channel 2".
Communication Channels - Serial COM ports, Docklight TAP ports, TCP or UDP communications In Docklight Scripting, a communication channel can be configured as a serial COM port (RS232, RS422 or RS485), as TAP port for Docklight Tap monitoring, or as a network communication socket for TCP or UDP. The following settings can be used:
Monitoring Mode - Channel Combinations And Their Applications In Monitoring Mode, two communication channels are available, which can be set up individually. This allows Docklight Scripting to be used in a large number of different applications and test environments. Below is a list of typical channel combinations:
COM Port Settings (serial COM channels only)
Baud Rate Choose a standard baud rate from the dropdown list, or use a non-standard baud rate by typing any integer number between 110 and 9999999.
NOTE: Non-standard baud rates may not work correctly on all COM ports, dependant on the capabilities of your COM port's hardware UART chip. You will receive no warning, if any non-standard rate cannot be applied.
NOTE: Although Docklight's Project Settings allow you to specify baud rates up to 9 MBaud, this does not mean Docklight is able to handle this level of throughput continuously. The average data throughput depends very much on your PC's performance and the Docklight display settings. See also How to Increase the Processing Speed.
Data Bits and Stop Bits Specify the number of data bits and stop bits here. As with the baud rate, some of the available settings may not be supported by the COM port device(s) on your PC.
Parity All common parity check options are available here. (The settings 'Mark' and 'Space' will probably not be used in practical applications. 'Mark' specifies that the parity bit always is 1, 'Space' that the parity bit is always 0, regardless of the character transmitted.)
This is the character that replaces an invalid character in the data stream whenever a parity error occurs. You should specify an ASCII character (printing or non-printing) that does not usually appear within your serial data stream. Characters may be defined by entering the character itself or entering its decimal ASCII code (please enter at least two digits).
NOTE: Choose "(ignore)" for the Parity Error Character if you need to transmit/receive the parity bit but Docklight should preserve all incoming characters, even when the parity bit is wrong. This is useful for applications where a 9th bit is used for addressing purposes and not for error checking.
|