Description
Description-Separate-1Inspired from Serial Port Forwarding Example code. Then enhenced it into not only snif/forwarding 1 way communication from 1st Port to 2nd Port, but also viseversa that is snif/forward the response from 2nd Port to 1st Port.
This is useful when we are interested in sniffing the communication between Host/Master <-> Slave Device in two way communication (aka Command - Response).
Description-Separate-2How to Use
How-Separate-1
- Select the Com# ports each for the Host/Master and Slave/Device
- Configure the serial ports (baud rate, data bits, parity, stop bits, and flow control) equally for both.
- Make sure each Port are properely connected as physically or virutally.
- Run the VI to open both Com Port and start Sniffing.
- the Communication Log between the two ports are then Listed in the Log Indicator [Array]
- The Enum: "Command", "Response" are indicating wether the communication is from the Host to Slave ro viseversa.
- You may write Remark to manually Insert any necesary notes.
- Click Stop button to close both communication Ports and stop sniffing.
How-Separate-2Additional Information
Additional-Separate-1
You can also view the communication protocol/data in different format: Text/char, '\' code, as well as Hex
Additional-Separate-2